/* ── Reset ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f8f7f4;
  --bg-white: #ffffff;
  --bg-hover: #f0efec;
  --bg-active: #e8e7e3;
  --bg-input: #ffffff;
  --border: #e5e3df;
  --border-light: #edebe8;
  --text: #1a1a1a;
  --text-secondary: #6b6966;
  --text-muted: #9c9893;
  --accent: #4f46e5;
  --accent-light: #eef2ff;
  --accent-hover: #4338ca;
  --green: #16a34a;
  --green-light: #f0fdf4;
  --amber: #d97706;
  --amber-light: #fffbeb;
  --red: #dc2626;
  --sidebar-width: 260px;
  --font: 'Outfit', -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', monospace;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
  --transition: 0.15s ease;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* ── App Shell ─────────────────────────────── */
.app-shell {
  display: flex;
  height: 100%;
}

/* ── Sidebar ───────────────────────────────── */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-white);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow-y: auto;
}

.sidebar-header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border-light);
}

.brand {
  display: flex;
  align-items: center;
  gap: 2px;
}

.brand-icon {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
}

.brand-name {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.5px;
}

.sidebar-nav {
  flex: 1;
  padding: 8px;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border: none;
  background: none;
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
}

.nav-item:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.nav-item.active {
  background: var(--accent-light);
  color: var(--accent);
}

.nav-item svg {
  flex-shrink: 0;
  opacity: 0.6;
}

.nav-item.active svg {
  opacity: 1;
}

.nav-divider {
  height: 1px;
  background: var(--border-light);
  margin: 10px 12px;
}

.nav-label {
  padding: 8px 12px 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.nav-cat {
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 400;
}

.cat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cat-count {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  min-width: 18px;
  text-align: right;
}

.sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border-light);
}

.pulse-badge {
  padding: 8px 10px;
  background: var(--bg);
  border-radius: var(--radius-xs);
  margin-bottom: 8px;
}

.pulse-line {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.6;
}

.pulse-val {
  color: var(--accent);
  font-weight: 500;
}

.btn-export {
  width: 100%;
  padding: 8px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-export:hover {
  background: var(--bg-hover);
  border-color: var(--text-muted);
}

/* ── Mobile Header ─────────────────────────── */
.mobile-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand-mobile {
  gap: 1px;
}

.brand-mobile .brand-icon { font-size: 18px; }
.brand-mobile .brand-name { font-size: 18px; }

.btn-icon {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 6px;
  border-radius: var(--radius-xs);
  cursor: pointer;
}

.btn-icon:hover {
  background: var(--bg-hover);
}

/* ── Main Content ──────────────────────────── */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.view {
  display: none;
  flex-direction: column;
  height: 100%;
}

.view.active {
  display: flex;
}

/* ── Chat View ─────────────────────────────── */
.chat-header {
  padding: 20px 28px 16px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-white);
}

.chat-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}

.chat-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

.messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 28px;
  padding-bottom: 100px;
}

.message {
  margin-bottom: 16px;
  animation: slideUp 0.2s ease-out;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.msg-bubble {
  max-width: 680px;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.6;
}

.message.user .msg-bubble {
  margin-left: auto;
  background: var(--accent);
  color: white;
  border-bottom-right-radius: 4px;
  max-width: 520px;
}

.message.agent .msg-bubble {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.message.welcome-msg .msg-bubble {
  background: var(--accent-light);
  border-color: #c7d2fe;
}

.msg-text { margin-bottom: 6px; }
.msg-text:last-child { margin-bottom: 0; }

.msg-hint {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--mono);
}

/* ── Filing Preview Card ───────────────────── */
.filing-card {
  margin-top: 8px;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.fc-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--text);
}

.fc-summary {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.5;
}

.fc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.fc-category {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* Category colors */
.fc-category[data-cat="research"] { background: #eef2ff; color: #4f46e5; }
.fc-category[data-cat="article"] { background: #f0f9ff; color: #0284c7; }
.fc-category[data-cat="project"] { background: #f0fdf4; color: #16a34a; }
.fc-category[data-cat="product"] { background: #fffbeb; color: #d97706; }
.fc-category[data-cat="idea"] { background: #fdf2f8; color: #db2777; }
.fc-category[data-cat="company"] { background: #f5f3ff; color: #7c3aed; }
.fc-category[data-cat="person"] { background: #f0fdfa; color: #0d9488; }
.fc-category[data-cat="market"] { background: #fff7ed; color: #ea580c; }
.fc-category[data-cat="ops"] { background: #f1f5f9; color: #475569; }
.fc-category[data-cat="personal"] { background: #fdf2f8; color: #be185d; }
.fc-category[data-cat="other"] { background: #f3f4f6; color: #6b7280; }

.fc-tag {
  font-family: var(--mono);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 20px;
  background: var(--bg-white);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.fc-tier {
  font-family: var(--mono);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.fc-tier.tier-1 { background: var(--green-light); color: var(--green); }
.fc-tier.tier-2 { background: var(--amber-light); color: var(--amber); }
.fc-tier.tier-3 { background: var(--accent-light); color: var(--accent); }

.fc-dedup {
  font-family: var(--mono);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 20px;
  background: var(--bg-white);
  color: var(--text-muted);
  border: 1px solid var(--border-light);
}

.fc-why {
  font-size: 12px;
  color: var(--text-secondary);
  font-style: italic;
  padding-top: 8px;
  margin-top: 8px;
  border-top: 1px solid var(--border-light);
}

.fc-notes {
  margin-top: 10px;
}

.fc-notes textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  padding: 8px 12px;
  resize: vertical;
  min-height: 36px;
  transition: border-color var(--transition);
}

.fc-notes textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.08);
}

.fc-notes textarea::placeholder { color: var(--text-muted); }

.fc-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.fc-actions button {
  flex: 1;
  padding: 9px 14px;
  border-radius: var(--radius-xs);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 1.5px solid transparent;
}

.btn-file-now {
  background: var(--accent);
  color: white;
  border-color: var(--accent) !important;
}
.btn-file-now:hover { background: var(--accent-hover); }

.btn-inbox-only {
  background: white;
  color: var(--amber);
  border-color: var(--amber) !important;
}
.btn-inbox-only:hover { background: var(--amber-light); }

.btn-review-later {
  background: white;
  color: var(--text-secondary);
  border-color: var(--border) !important;
}
.btn-review-later:hover { background: var(--bg-hover); }

/* ── Chat Input ────────────────────────────── */
.chat-input-area {
  padding: 16px 28px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
}

.input-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  max-width: 680px;
}

#chat-input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  padding: 12px 16px;
  resize: none;
  max-height: 120px;
  line-height: 1.4;
  transition: border-color var(--transition), box-shadow var(--transition);
}

#chat-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.08);
  background: var(--bg-white);
}

#chat-input::placeholder { color: var(--text-muted); }

.btn-send {
  background: var(--accent);
  border: none;
  color: white;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
  flex-shrink: 0;
}

.btn-send:hover { background: var(--accent-hover); }
.btn-send:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Browse Bar ─────────────────────────────── */
.browse-bar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.browse-cat-tabs {
  display: flex;
  min-width: max-content;
  padding: 0 16px;
}

.cat-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 20px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.cat-tab:hover {
  color: var(--text);
  background: var(--bg-hover);
}

.cat-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

.cat-tab-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cat-tab-count {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  min-width: 14px;
}

.cat-tab.active .cat-tab-count {
  color: var(--accent);
}

.browse-search-bar {
  position: relative;
  padding: 10px 20px;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
}

.browse-search-bar .search-icon {
  position: absolute;
  left: 32px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.browse-search-bar #search-input {
  width: 100%;
  padding: 8px 12px 8px 36px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  transition: all var(--transition);
}

.browse-search-bar #search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.08);
  background: var(--bg-white);
}

.browse-search-bar #search-input::placeholder { color: var(--text-muted); }

/* ── Entry List ────────────────────────────── */
.entries-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 16px;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--text-muted);
  text-align: center;
}

.empty-icon {
  margin-bottom: 16px;
  opacity: 0.3;
}

.empty-state p {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.empty-state span {
  font-size: 13px;
}

.entry-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
  border-bottom: 1px solid var(--border-light);
}

.entry-row:hover {
  background: var(--bg-hover);
}

.entry-row:last-child {
  border-bottom: none;
}

.entry-cat-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}

.entry-body {
  flex: 1;
  min-width: 0;
}

.entry-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.entry-summary {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.entry-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.entry-domain {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
}

.entry-status {
  font-family: var(--mono);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: 500;
}

.entry-status.filed { background: var(--green-light); color: var(--green); }
.entry-status.captured { background: var(--amber-light); color: var(--amber); }
.entry-status.pending_review { background: var(--accent-light); color: var(--accent); }
.entry-status.failed { background: #fef2f2; color: var(--red); }

.entry-date {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Typing Indicator ──────────────────────── */
.typing-dots {
  display: inline-flex;
  gap: 4px;
  padding: 4px 0;
}

.typing-dots span {
  width: 7px;
  height: 7px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: pulse 1.2s infinite;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes pulse {
  0%, 80%, 100% { opacity: 0.25; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1); }
}

/* ── Sidebar Overlay (mobile) ──────────────── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 99;
}

.sidebar-overlay.open {
  display: block;
}

/* ── Scrollbar ─────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── Responsive ────────────────────────────── */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    bottom: 0;
    z-index: 100;
    width: 280px;
    transition: left 0.25s ease;
    box-shadow: var(--shadow-lg);
  }

  .sidebar.open {
    left: 0;
  }

  .mobile-header {
    display: flex;
  }

  .chat-header {
    display: none;
  }

  .messages {
    padding: 16px;
    padding-bottom: 90px;
  }

  .chat-input-area {
    padding: 12px 16px;
  }

  .browse-bar {
    padding: 12px 16px;
  }

  .entries-list {
    padding: 4px 8px;
  }

  .entry-row {
    padding: 12px;
  }
}

@media (min-width: 769px) {
  .mobile-header { display: none; }
}

/* ── Entry Detail (expanded) ─────────────── */
.entry-row.expanded {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  margin-bottom: 4px;
}

.entry-detail {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
}

.ed-section {
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.5;
}

.ed-section:last-child {
  margin-bottom: 0;
}

.ed-link {
  color: var(--accent);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 12px;
  word-break: break-all;
}

.ed-link:hover {
  text-decoration: underline;
}

.ed-full-summary {
  color: var(--text-secondary);
  font-size: 13px;
}

.ed-meta-row {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
}

.ed-label {
  font-weight: 500;
  color: var(--text-secondary);
}

/* ── Star/Flag Button ──────────────────────── */
.star-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-top: 2px;
  flex-shrink: 0;
  border-radius: 4px;
  transition: all 0.15s;
  opacity: 0.4;
}

.star-btn:hover {
  opacity: 1;
  background: var(--amber-light);
}

.star-btn.flagged {
  opacity: 1;
}

.entry-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

/* Hide scrollbar on tab bar */
.browse-cat-tabs::-webkit-scrollbar {
  height: 0;
}

.browse-cat-tabs {
  scrollbar-width: none;
}

/* ── Labels ────────────────────────────────── */
.add-label-btn {
  color: var(--accent) !important;
  font-size: 13px !important;
}

.add-label-form {
  padding: 8px 12px;
}

.add-label-form input {
  width: 100%;
  padding: 7px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-family: var(--font);
  font-size: 13px;
  color: var(--text);
  margin-bottom: 8px;
}

.add-label-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.color-picks {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.color-pick {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.15s;
}

.color-pick:hover {
  transform: scale(1.15);
}

.color-pick.selected {
  border-color: var(--text);
  box-shadow: 0 0 0 2px var(--bg-white);
}

.add-label-actions {
  display: flex;
  gap: 6px;
}

.btn-create-label {
  flex: 1;
  padding: 6px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-xs);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.btn-cancel-label {
  padding: 6px 10px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
}

.label-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 12px;
  border: none;
  background: none;
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 13px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
}

.label-nav-item:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.label-nav-item.active {
  background: var(--accent-light);
  color: var(--accent);
}

.label-chip {
  font-family: var(--mono);
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 10px;
  color: white;
  font-weight: 500;
  white-space: nowrap;
}

.label-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 20px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.label-tab:hover {
  color: var(--text);
  background: var(--bg-hover);
}

.label-tab.active {
  border-bottom-color: var(--accent);
  font-weight: 600;
}

.entry-labels-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

/* Label assign popover in entry detail */
.label-assign {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
}

.label-toggle-btn {
  font-family: var(--mono);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 12px;
  border: 1.5px dashed var(--border);
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}

.label-toggle-btn:hover {
  border-color: var(--text-secondary);
  color: var(--text-secondary);
}

.label-toggle-btn.assigned {
  border-style: solid;
  color: white;
}

/* ── Add Tab Button ────────────────────────── */
.add-tab-btn {
  color: var(--accent) !important;
  border-bottom: none !important;
  padding: 14px 12px !important;
  opacity: 0.6;
}

.add-tab-btn:hover {
  opacity: 1;
  background: var(--accent-light) !important;
}

/* ── Label Creation Dropdown ───────────────── */
.add-label-dropdown {
  padding: 12px 20px;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  animation: slideDown 0.15s ease-out;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.add-label-dropdown input {
  padding: 7px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-family: var(--font);
  font-size: 13px;
  color: var(--text);
  width: 160px;
}

.add-label-dropdown input:focus {
  outline: none;
  border-color: var(--accent);
}

.add-label-dropdown .color-picks {
  display: flex;
  gap: 5px;
  margin-bottom: 0;
}

.add-label-dropdown .add-label-actions {
  display: flex;
  gap: 6px;
  margin-bottom: 0;
}
