/* ═══════════════════════════════
   TOOLBAR
═══════════════════════════════ */
.toolbar {
  height: auto;
  min-height: var(--toolbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 0 var(--border);
  display: flex;
  flex-direction: column;
  padding: 0;
  flex-shrink: 0;
  z-index: 2002;
 
}

.toolbar-top {
  display: flex; 
  align-items: center;
  padding: 8px 8px 4px;
  gap: 6px;
  min-height: var(--toolbar-h);
}

.tb-back {
  width: 30px; height: 30px; border-radius: 9px; border: none;
  background: var(--surface-2); color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; flex-shrink: 0; cursor: pointer;
  transition: background .15s, transform .1s;
  
}
.tb-back:active { transform: scale(0.9); }

.tb-title {
  font-size: 14px; font-weight: 600; color: var(--text-1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  flex: 1; letter-spacing: -0.01em;
}

.tb-actions { display: flex; gap: 2px; flex-shrink: 0; }

.tb-btn {
  width: 32px; height: 32px; border-radius: 10px; border: none;
  background: transparent; color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; cursor: pointer; position: relative;
  transition: background .15s, transform .1s;
}
.tb-btn:active { transform: scale(0.9); background: var(--surface-2); }
.tb-btn.active { background: var(--accent-soft); color: var(--accent); }

.tb-dot {
  position: absolute; top: 5px; right: 5px;
  width: 7px; height: 7px; background: #ef4444;
  border-radius: 50%; border: 1.5px solid var(--surface);
}

.toolbar-tags {
  display: none;
  align-items: center; 
  justify-content: center;
  gap: 6px;
  padding: 0 8px 8px;
  flex-wrap: wrap;
}
.tag-item { font-size: 10px; font-weight: 500; color: var(--text-3); white-space: nowrap; }
.tag-separator { color: var(--text-3); font-size: 8px; opacity: 0.5; }
