/* ── Light theme (default) ── */
:root {
  --bg:        #f5f7fa;
  --surface:   #ffffff;
  --surface2:  #f0f2f5;
  --border:    #e0e3e8;
  --border2:   #d0d4db;
  --text:      #1a1d23;
  --text-muted:#4a5568;
  --text-dim:  #7a869e;
  --accent:    #2b7de9;
  --accent2:   #1a5bb5;
  --gold:      #c78a10;
  --green:     #2d8a5e;
  --red:       #c94444;
  --radius:    8px;
  --shadow-soft: rgba(0,0,0,0.08);
  --shadow-med:  rgba(0,0,0,0.12);
}

/* ── Dark theme ── */
[data-theme="dark"] {
  --bg:        #0b0d11;
  --surface:   #13161d;
  --surface2:  #1a1e27;
  --border:    #252a36;
  --border2:   #303749;
  --text:      #e4e8f0;
  --text-muted:#7a869e;
  --text-dim:  #4a5568;
  --accent:    #4f9eff;
  --accent2:   #7bc8ff;
  --gold:      #f0b429;
  --green:     #4caf82;
  --red:       #e05c5c;
  --shadow-soft: rgba(0,0,0,0.3);
  --shadow-med:  rgba(0,0,0,0.5);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'DM Sans', sans-serif; font-size: 15px; background: var(--bg); color: var(--text); min-height: 100vh; }

/* ── Login ── */
#login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 60% 40%, rgba(79,158,255,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(240,180,41,0.06) 0%, transparent 50%),
              var(--bg);
}
[data-theme="dark"] #login-screen {
  background: radial-gradient(ellipse at 60% 40%, rgba(79,158,255,0.06) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(240,180,41,0.04) 0%, transparent 50%),
              var(--bg);
}

.login-box {
  width: 380px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 40px;
  box-shadow: 0 24px 80px var(--shadow-med);
}

.login-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 36px;
  letter-spacing: -1px;
  margin-bottom: 4px;
}
.login-logo span { color: var(--accent); }
.login-tagline {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 2.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 32px;
}

.login-field { margin-bottom: 16px; }
.login-field label {
  display: block;
  font-size: 12px;
  font-family: 'DM Mono', monospace;
  color: var(--text-dim);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.login-field input {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  color: var(--text);
  padding: 11px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
}
.login-field input:focus { border-color: var(--accent); }

.login-btn {
  width: 100%;
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  color: #000;
  padding: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.15s;
}
.login-btn:hover { background: var(--accent2); }
.login-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.login-error {
  background: rgba(224,92,92,0.1);
  border: 1px solid rgba(224,92,92,0.3);
  border-radius: var(--radius);
  color: var(--red);
  padding: 10px 14px;
  font-size: 13px;
  margin-top: 12px;
  display: none;
}

/* ── App (hidden until login) ── */
#app { display: none; height: 100vh; overflow: hidden; flex-direction: row; }
#app.visible { display: flex; }

/* ── Sidebar ── */
.sidebar {
  width: 260px; min-width: 260px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; overflow: hidden;
}
.sidebar-header { padding: 20px 20px 16px; border-bottom: 1px solid var(--border); }
.logo { font-family: 'DM Serif Display', serif; font-size: 22px; letter-spacing: -0.5px; }
.logo span { color: var(--accent); }
.logo-sub { font-size: 10px; font-family: 'DM Mono', monospace; color: var(--text-dim); letter-spacing: 2px; text-transform: uppercase; margin-top: 3px; }

.nav-section { padding: 12px 12px 6px; font-size: 10px; font-family: 'DM Mono', monospace; color: var(--text-dim); letter-spacing: 1.5px; text-transform: uppercase; }

.nav-btn {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 16px; background: none; border: none; border-radius: var(--radius);
  color: var(--text-muted); font-family: 'DM Sans', sans-serif; font-size: 14.5px;
  cursor: pointer; transition: all 0.15s; text-align: left; margin: 1px 0;
}
.nav-btn:hover { background: var(--surface2); color: var(--text); }
.nav-btn.active { background: rgba(79,158,255,0.12); color: var(--accent2); font-weight: 500; }
.nav-btn svg { opacity: 0.7; flex-shrink: 0; }
.nav-btn.active svg { opacity: 1; }

.sidebar-footer {
  padding: 12px; border-top: 1px solid var(--border); margin-top: auto;
}
.user-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; background: var(--surface2); border-radius: var(--radius);
  border: 1px solid var(--border);
}
.user-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; color: #000; flex-shrink: 0;
}
.user-info { flex: 1; min-width: 0; }
.user-name { font-size: 13px; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 10px; font-family: 'DM Mono', monospace; color: var(--text-dim); }
.logout-btn {
  background: none; border: none; color: var(--text-dim); cursor: pointer;
  padding: 4px; border-radius: 4px; transition: color 0.15s; flex-shrink: 0;
}
.logout-btn:hover { color: var(--red); }

/* Client selector (admin only) */
.client-selector { padding: 12px; border-top: 1px solid var(--border); }
.client-selector label { display: block; font-size: 10px; font-family: 'DM Mono', monospace; color: var(--text-dim); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 6px; }
.client-selector select { width: 100%; background: var(--surface2); border: 1px solid var(--border2); color: var(--text); padding: 8px 10px; border-radius: var(--radius); font-family: 'DM Sans', sans-serif; font-size: 13px; cursor: pointer; outline: none; }

/* ── Main ── */
.main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.topbar { height: 56px; border-bottom: 1px solid var(--border); display: flex; align-items: center; padding: 0 24px; gap: 16px; flex-shrink: 0; }
.topbar-title { font-family: 'DM Serif Display', serif; font-size: 20px; color: var(--text); }

.search-bar { flex: 1; max-width: 480px; display: flex; align-items: center; gap: 8px; background: var(--surface2); border: 1px solid var(--border2); border-radius: 6px; padding: 0 12px; transition: border-color 0.15s; }
.search-bar:focus-within { border-color: var(--accent); }
.search-bar input { flex: 1; background: none; border: none; outline: none; color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 14.5px; padding: 9px 0; }
.search-bar input::placeholder { color: var(--text-dim); }

.search-type-btn { padding: 4px 10px; border-radius: 4px; border: none; background: none; font-size: 12px; font-family: 'DM Mono', monospace; cursor: pointer; color: var(--text-dim); transition: all 0.15s; }
.search-type-btn.active { background: var(--accent); color: #000; font-weight: 500; }

.content-area { flex: 1; overflow-y: auto; padding: 24px; }

/* ── Views ── */
.view { display: none; }
.view.active { display: block; }
#view-qa.active { display: flex; }

/* ── Chat History Sidebar ── */
.qa-history { width: 260px; min-width: 260px; border-right: 1px solid var(--border); display: flex; flex-direction: column; overflow: hidden; background: var(--surface); }
.qa-history-header { padding: 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.qa-history-title { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--text-dim); letter-spacing: 1px; text-transform: uppercase; }
.qa-new-chat-btn { padding: 6px 12px; border-radius: var(--radius); border: 1px solid var(--accent); background: transparent; color: var(--accent); font-family: 'DM Sans', sans-serif; font-size: 12px; cursor: pointer; transition: all 0.15s; display: flex; align-items: center; gap: 5px; }
.qa-new-chat-btn:hover { background: rgba(79,158,255,0.1); }
.qa-history-list { flex: 1; overflow-y: auto; padding: 8px; }
.qa-history-list::-webkit-scrollbar { width: 4px; }
.qa-history-list::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }
.qa-conv-item { padding: 10px 12px; border-radius: var(--radius); cursor: pointer; transition: all 0.12s; margin-bottom: 2px; position: relative; }
.qa-conv-item:hover { background: var(--surface2); }
.qa-conv-item.active { background: rgba(79,158,255,0.1); border: 1px solid rgba(79,158,255,0.2); }
.qa-conv-item:not(.active) { border: 1px solid transparent; }
.qa-conv-title { font-size: 13px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 3px; line-height: 1.3; }
.qa-conv-date { font-family: 'DM Mono', monospace; font-size: 10px; color: var(--text-dim); }
.qa-conv-delete { position: absolute; top: 8px; right: 8px; background: none; border: none; color: var(--text-dim); cursor: pointer; padding: 2px 4px; border-radius: 4px; opacity: 0; transition: all 0.15s; font-size: 14px; line-height: 1; }
.qa-conv-item:hover .qa-conv-delete { opacity: 1; }
.qa-conv-delete:hover { color: var(--red); background: rgba(224,92,92,0.1); }
.qa-history-empty { padding: 20px 16px; text-align: center; color: var(--text-dim); font-size: 13px; }

/* ── Content Grid ── */
.content-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 20px; }
.content-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 18px; cursor: pointer; transition: all 0.15s; position: relative; }
.content-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--accent), transparent); opacity: 0; transition: opacity 0.2s; }
.content-card:hover { border-color: var(--border2); transform: translateY(-1px); box-shadow: 0 4px 20px var(--shadow-soft); }
.content-card:hover::before { opacity: 1; }
.card-header-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.card-header-row .card-title { flex: 1; margin-bottom: 0; }
.card-title { font-family: 'DM Serif Display', serif; font-size: 18px; color: var(--text); margin-bottom: 10px; line-height: 1.3; }
.card-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.meta-chip { font-family: 'DM Mono', monospace; font-size: 13px; color: var(--text-dim); display: flex; align-items: center; gap: 4px; }
.card-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge { font-size: 12px; font-family: 'DM Mono', monospace; padding: 3px 10px; border-radius: 20px; font-weight: 500; }
.badge-green { background: rgba(76,175,130,0.15); color: var(--green); }
.badge-gold { background: rgba(240,180,41,0.15); color: var(--gold); }
.badge-red { background: rgba(224,92,92,0.15); color: var(--red); }
.badge-blue { background: rgba(79,158,255,0.15); color: var(--accent2); }

/* ── Content Card Checkbox (Multi-Select) ── */
.card-checkbox, .list-checkbox { width: 20px; height: 20px; min-width: 20px; border: 2px solid var(--border2); border-radius: 4px; background: var(--surface2); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.15s; z-index: 2; }
.card-checkbox:hover, .list-checkbox:hover { border-color: var(--accent); }
.card-checkbox.checked, .list-checkbox.checked { background: var(--accent); border-color: var(--accent); }
.card-checkbox.checked::after, .list-checkbox.checked::after { content: ''; width: 6px; height: 10px; border: solid #000; border-width: 0 2px 2px 0; transform: rotate(45deg); margin-bottom: 2px; }
.content-card.selected, .content-list-row.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 4px 20px rgba(79,158,255,0.15); }

/* ── Floating Action Bar ── */
.floating-action-bar { position: fixed; bottom: -80px; left: 260px; right: 0; height: 64px; background: var(--surface); border-top: 1px solid var(--accent); display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 24px; z-index: 100; transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 -4px 24px var(--shadow-soft); }
.floating-action-bar.visible { bottom: 0; }
.fab-count { font-family: 'DM Mono', monospace; font-size: 12px; color: var(--accent2); background: rgba(79,158,255,0.12); padding: 4px 12px; border-radius: 12px; white-space: nowrap; }
.fab-btn { display: flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: var(--radius); border: 1px solid var(--border2); background: var(--surface2); color: var(--text-muted); font-family: 'DM Sans', sans-serif; font-size: 13px; cursor: pointer; transition: all 0.15s; white-space: nowrap; }
.fab-btn:hover { border-color: var(--accent); color: var(--accent2); }
.fab-btn.primary { background: var(--accent); border-color: var(--accent); color: #000; font-weight: 500; }
.fab-btn.primary:hover { background: var(--accent2); border-color: var(--accent2); }
.fab-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.fab-btn .btn-cost { font-family: 'DM Mono', monospace; font-size: 10px; opacity: 0.7; }
.fab-divider { width: 1px; height: 28px; background: var(--border2); }
.fab-clear { background: none; border: 1px solid var(--border2); color: var(--text-dim); padding: 8px 12px; border-radius: var(--radius); font-family: 'DM Sans', sans-serif; font-size: 12px; cursor: pointer; transition: all 0.15s; }
.fab-clear:hover { border-color: var(--red); color: var(--red); }

/* ── Special Projects Placeholder ── */
.coming-soon { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 60vh; text-align: center; gap: 20px; }
.coming-soon-icon { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, rgba(240,180,41,0.12), rgba(79,158,255,0.08)); display: flex; align-items: center; justify-content: center; }
.coming-soon-icon svg { width: 36px; height: 36px; stroke: var(--gold); fill: none; stroke-width: 1.5; }
.coming-soon h2 { font-family: 'DM Serif Display', serif; font-size: 28px; color: var(--text); font-weight: 400; }
.coming-soon p { color: var(--text-dim); font-size: 14px; max-width: 480px; line-height: 1.7; }
.coming-soon .feature-list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 500px; }
.coming-soon .feature-chip { font-family: 'DM Mono', monospace; font-size: 11px; padding: 4px 12px; border-radius: 20px; border: 1px solid var(--border2); color: var(--text-muted); background: var(--surface2); }

/* ── Detail ── */
.detail-header { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.back-btn { background: var(--surface2); border: 1px solid var(--border2); color: var(--text-muted); padding: 8px 14px; border-radius: var(--radius); cursor: pointer; font-family: 'DM Sans', sans-serif; font-size: 13px; display: flex; align-items: center; gap: 6px; flex-shrink: 0; transition: all 0.15s; }
.back-btn:hover { border-color: var(--accent); color: var(--accent2); }
.detail-title { font-family: 'DM Serif Display', serif; font-size: 26px; color: var(--text); margin-bottom: 8px; line-height: 1.2; }
.detail-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.action-btn { display: flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: var(--radius); border: 1px solid var(--border2); background: var(--surface2); color: var(--text-muted); font-family: 'DM Sans', sans-serif; font-size: 12.5px; cursor: pointer; transition: all 0.15s; text-decoration: none; }
.action-btn:hover { border-color: var(--accent); color: var(--accent2); }

.tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.tab { padding: 10px 20px; border: none; background: none; color: var(--text-muted); font-family: 'DM Sans', sans-serif; font-size: 14.5px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all 0.15s; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--accent2); border-bottom-color: var(--accent); font-weight: 500; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Transcript ── */
.transcript-segments { max-width: 760px; }
.segment { display: flex; gap: 16px; padding: 8px 10px; border-radius: 4px; cursor: pointer; transition: background 0.1s; border-bottom: 1px solid var(--border); }
.segment:hover { background: var(--surface2); }
.segment.active-segment { background: rgba(79,158,255,0.08); }
.seg-time { font-family: 'DM Mono', monospace; font-size: 12px; color: var(--accent); min-width: 44px; padding-top: 2px; flex-shrink: 0; }
.seg-text { font-size: 15px; line-height: 1.7; color: var(--text); }

/* ── Audio ── */
.audio-player { background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 16px 20px; margin-bottom: 20px; display: flex; align-items: center; gap: 16px; }
.audio-player audio { display: none; }
.play-btn { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.15s; }
.play-btn:hover { background: var(--accent2); transform: scale(1.05); }
.player-controls { flex: 1; }
.progress-bar { width: 100%; height: 4px; background: var(--border2); border-radius: 2px; cursor: pointer; position: relative; margin-bottom: 8px; }
.progress-fill { height: 100%; background: var(--accent); border-radius: 2px; width: 0%; pointer-events: none; }
.player-time { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--text-muted); display: flex; justify-content: space-between; }

/* ── Summary / Fact Check ── */
.summary-card { background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 24px; max-width: 760px; margin-bottom: 20px; }
.summary-card h3 { font-family: 'DM Serif Display', serif; font-size: 20px; margin-bottom: 14px; color: var(--text); }
.summary-text { font-size: 15px; line-height: 1.75; color: var(--text-muted); }
.claim-item { border-left: 2px solid var(--border2); padding: 8px 0 8px 16px; margin-bottom: 12px; transition: border-color 0.15s; }
.claim-item:hover { border-left-color: var(--accent); }
.claim-text { font-size: 14px; color: var(--text); margin-bottom: 4px; }
.claim-quote { font-family: 'DM Mono', monospace; font-size: 12px; color: var(--text-dim); font-style: italic; }
.claim-status { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-family: 'DM Mono', monospace; margin-top: 4px; }

/* ── Search ── */
.search-result-item { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px 20px; margin-bottom: 12px; cursor: pointer; transition: all 0.15s; }
.search-result-item:hover { border-color: var(--accent); transform: translateX(2px); }
.result-title { font-family: 'DM Serif Display', serif; font-size: 17px; color: var(--text); margin-bottom: 8px; }
.result-excerpt { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 8px; }
.result-meta { display: flex; gap: 12px; align-items: center; }
.similarity-bar { flex: 1; height: 3px; background: var(--border2); border-radius: 2px; max-width: 120px; }
.similarity-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); border-radius: 2px; }

/* ── Q&A Chat ── */
.qa-chat { display: flex; flex-direction: column; height: calc(100vh - 120px); flex: 1; min-width: 0; max-width: 840px; padding-left: 24px; }
.qa-chat-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 0; flex-shrink: 0; }
.qa-chat-title { font-family: 'DM Serif Display', serif; font-size: 20px; color: var(--text); }
.qa-clear-btn { padding: 6px 14px; border-radius: var(--radius); border: 1px solid var(--border2); background: var(--surface2); color: var(--text-dim); font-family: 'DM Mono', monospace; font-size: 11px; cursor: pointer; transition: all 0.15s; letter-spacing: 0.5px; }
.qa-clear-btn:hover { border-color: var(--red); color: var(--red); }

.qa-thread { flex: 1; overflow-y: auto; padding: 20px 0; scroll-behavior: smooth; }
.qa-thread::-webkit-scrollbar { width: 5px; }
.qa-thread::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 4px; }

.qa-welcome { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; text-align: center; gap: 20px; }
.qa-welcome-icon { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, rgba(79,158,255,0.12), rgba(240,180,41,0.08)); display: flex; align-items: center; justify-content: center; }
.qa-welcome-icon svg { width: 28px; height: 28px; stroke: var(--accent); fill: none; stroke-width: 1.5; }
.qa-welcome h3 { font-family: 'DM Serif Display', serif; font-size: 22px; color: var(--text); font-weight: 400; }
.qa-welcome p { color: var(--text-dim); font-size: 13.5px; max-width: 400px; line-height: 1.6; }
.qa-suggestions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 540px; }
.qa-suggestion { padding: 8px 16px; border-radius: 20px; border: 1px solid var(--border2); background: var(--surface); color: var(--text-muted); font-size: 12.5px; cursor: pointer; transition: all 0.15s; }
.qa-suggestion:hover { border-color: var(--accent); color: var(--accent2); background: rgba(79,158,255,0.06); }

.qa-bubble { max-width: 85%; margin-bottom: 16px; animation: qa-fade-in 0.25s ease; }
@keyframes qa-fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.qa-bubble.user { margin-left: auto; }
.qa-bubble.assistant { margin-right: auto; }
.qa-bubble-meta { font-family: 'DM Mono', monospace; font-size: 10px; color: var(--text-dim); margin-bottom: 4px; letter-spacing: 0.3px; }
.qa-bubble.user .qa-bubble-meta { text-align: right; }
.qa-bubble-body { padding: 14px 18px; border-radius: 14px; font-size: 15px; line-height: 1.7; white-space: pre-wrap; word-wrap: break-word; }
.qa-bubble.user .qa-bubble-body { background: linear-gradient(135deg, rgba(79,158,255,0.15), rgba(79,158,255,0.08)); border: 1px solid rgba(79,158,255,0.2); color: var(--text); border-bottom-right-radius: 4px; }
.qa-bubble.assistant .qa-bubble-body { background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); border-bottom-left-radius: 4px; }
.qa-sources { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); font-family: 'DM Mono', monospace; font-size: 11px; color: var(--text-dim); }
.qa-sources a { color: var(--accent); text-decoration: none; }
.qa-sources a:hover { text-decoration: underline; }
.qa-source-link { cursor: pointer; color: var(--accent); text-decoration: underline; }
.qa-source-link:hover { opacity: 0.8; }
.source-ext-link { color: var(--accent2); text-decoration: none; font-size: 13px; margin-left: 3px; opacity: 0.7; }
.source-ext-link:hover { opacity: 1; }

.qa-thinking { display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; border-bottom-left-radius: 4px; max-width: 280px; animation: qa-fade-in 0.25s ease; }
.qa-thinking-dots { display: flex; gap: 4px; }
.qa-thinking-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--text-dim); animation: qa-dot 1.4s ease-in-out infinite; }
.qa-thinking-dots span:nth-child(2) { animation-delay: 0.2s; }
.qa-thinking-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes qa-dot { 0%,80%,100% { opacity: 0.3; transform: scale(0.8); } 40% { opacity: 1; transform: scale(1); } }
.qa-thinking-text { font-size: 12px; color: var(--text-dim); font-family: 'DM Mono', monospace; }

.qa-error .qa-bubble-body { border-color: rgba(224,92,92,0.3); background: rgba(224,92,92,0.06); color: var(--red); }

.qa-input-bar { flex-shrink: 0; padding-top: 14px; border-top: 1px solid var(--border); }
.qa-input-row { display: flex; gap: 10px; align-items: flex-end; }
.qa-input { flex: 1; background: var(--surface2); border: 1px solid var(--border2); border-radius: 12px; color: var(--text); padding: 12px 16px; font-family: 'DM Sans', sans-serif; font-size: 14px; outline: none; transition: border-color 0.15s; resize: none; min-height: 46px; max-height: 120px; line-height: 1.5; }
.qa-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,158,255,0.08); }
.qa-input::placeholder { color: var(--text-dim); }
.qa-submit { width: 46px; height: 46px; border-radius: 12px; border: none; background: var(--accent); color: #000; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.15s; flex-shrink: 0; }
.qa-submit:hover { background: var(--accent2); }
.qa-submit:disabled { opacity: 0.35; cursor: not-allowed; }
.qa-submit svg { width: 20px; height: 20px; }

/* ── Admin Panel ── */
.admin-section { max-width: 700px; margin-bottom: 32px; }
.admin-section h3 { font-family: 'DM Serif Display', serif; font-size: 20px; margin-bottom: 16px; }
.user-table { width: 100%; border-collapse: collapse; }
.user-table th { text-align: left; font-family: 'DM Mono', monospace; font-size: 11px; color: var(--text-dim); letter-spacing: 1px; text-transform: uppercase; padding: 8px 12px; border-bottom: 1px solid var(--border); }
.user-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--text-muted); }
.user-table tr:hover td { background: var(--surface2); }
.form-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.form-row input, .form-row select { background: var(--surface2); border: 1px solid var(--border2); border-radius: var(--radius); color: var(--text); padding: 8px 12px; font-family: 'DM Sans', sans-serif; font-size: 13px; outline: none; flex: 1; min-width: 120px; }
.form-row input:focus, .form-row select:focus { border-color: var(--accent); }
.btn-sm { padding: 8px 16px; border-radius: var(--radius); border: 1px solid var(--border2); background: var(--surface2); color: var(--text-muted); font-family: 'DM Sans', sans-serif; font-size: 13px; cursor: pointer; transition: all 0.15s; }
.btn-sm:hover { border-color: var(--accent); color: var(--accent2); }
.btn-sm.danger:hover { border-color: var(--red); color: var(--red); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #000; font-weight: 600; }
.btn-primary:hover { background: var(--accent2); border-color: var(--accent2); color: #000; }

/* ── Credit Badge ── */
.credit-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 20px; font-family: 'DM Mono', monospace; font-size: 11px; border: 1px solid var(--border2); background: var(--surface); cursor: default; margin-right: 12px; }
.credit-badge .credit-bar { width: 40px; height: 4px; border-radius: 2px; background: var(--border2); overflow: hidden; }
.credit-badge .credit-fill { height: 100%; border-radius: 2px; transition: width 0.3s; }
.credit-badge.green .credit-fill { background: var(--green); }
.credit-badge.green { color: var(--green); border-color: rgba(76,175,130,0.3); }
.credit-badge.yellow .credit-fill { background: var(--gold); }
.credit-badge.yellow { color: var(--gold); border-color: rgba(240,180,41,0.3); }
.credit-badge.red .credit-fill { background: var(--red); }
.credit-badge.red { color: var(--red); border-color: rgba(224,92,92,0.3); }

/* ── Plans Table ── */
.plan-badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 0.5px; text-transform: uppercase; }
.plan-badge.starter { background: rgba(122,134,158,0.15); color: var(--text-muted); }
.plan-badge.professional { background: rgba(79,158,255,0.15); color: var(--accent2); }
.plan-badge.enterprise { background: rgba(240,180,41,0.15); color: var(--gold); }
.plan-badge.custom { background: rgba(76,175,130,0.15); color: var(--green); }
.plan-badge.suspended { background: rgba(239,68,68,0.15); color: var(--red); margin-left: 6px; }
.usage-expand { cursor: pointer; }
.usage-expand:hover td { background: var(--surface2); }
.usage-detail { background: var(--bg); }
.usage-detail td { padding: 0 !important; }
.usage-detail-inner { padding: 12px 20px; max-height: 300px; overflow-y: auto; }
.usage-log-entry { display: flex; gap: 12px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 12px; color: var(--text-dim); }
.usage-log-entry .action-tag { padding: 1px 6px; border-radius: 4px; font-family: 'DM Mono', monospace; font-size: 10px; }
.usage-log-entry .action-tag.query { background: rgba(79,158,255,0.15); color: var(--accent); }
.usage-log-entry .action-tag.search { background: rgba(76,175,130,0.15); color: var(--green); }

/* ── MOTD Modal ── */
.motd-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; z-index: 2000; animation: qa-fade-in 0.15s ease; }
.motd-box { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 32px; max-width: 480px; width: 90%; box-shadow: 0 24px 80px var(--shadow-med); }
.motd-box h3 { font-family: 'DM Serif Display', serif; font-size: 20px; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.motd-box .motd-body { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin: 16px 0 24px; white-space: pre-wrap; }
.motd-box .motd-dismiss { width: 100%; padding: 10px; border-radius: var(--radius); border: none; font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.15s; }
.motd-type-info h3 { color: var(--accent); }
.motd-type-info .motd-dismiss { background: var(--accent); color: #000; }
.motd-type-info .motd-dismiss:hover { background: var(--accent2); }
.motd-type-warning h3 { color: var(--gold); }
.motd-type-warning .motd-dismiss { background: var(--gold); color: #000; }
.motd-type-warning .motd-dismiss:hover { opacity: 0.85; }
.motd-type-urgent h3 { color: var(--red); }
.motd-type-urgent .motd-box { border-color: var(--red); }
.motd-type-urgent .motd-dismiss { background: var(--red); color: #fff; }
.motd-type-urgent .motd-dismiss:hover { opacity: 0.85; }

/* ── Session Timeout Banner ── */
.timeout-banner { position: fixed; top: 0; left: 0; right: 0; background: var(--gold); color: #000; text-align: center; padding: 8px 16px; font-size: 13px; font-weight: 600; z-index: 3000; display: none; animation: qa-fade-in 0.15s ease; }
.timeout-banner button { background: rgba(0,0,0,0.2); border: none; color: #000; padding: 4px 14px; border-radius: 4px; margin-left: 12px; cursor: pointer; font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 12px; }
.timeout-banner button:hover { background: rgba(0,0,0,0.3); }

/* ── Edit Plan Modal ── */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; z-index: 1000; animation: qa-fade-in 0.15s ease; }
.modal-box { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 28px; max-width: 420px; width: 100%; box-shadow: 0 24px 80px var(--shadow-med); }
.modal-box h3 { font-family: 'DM Serif Display', serif; font-size: 18px; margin-bottom: 18px; }

/* ── Topic Timeline ── */
.topic-timeline { max-width: 900px; }
.topic-search-bar { display: flex; gap: 10px; margin-bottom: 24px; align-items: center; }
.topic-search-bar input { flex: 1; background: var(--surface2); border: 1px solid var(--border2); border-radius: var(--radius); color: var(--text); padding: 10px 14px; font-family: 'DM Sans', sans-serif; font-size: 14px; outline: none; }
.topic-search-bar input:focus { border-color: var(--accent); }
.topic-month-marker { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--text-dim); letter-spacing: 1px; text-transform: uppercase; padding: 8px 0; margin-top: 20px; border-bottom: 1px solid var(--border); }
.topic-lane { margin-bottom: 20px; border-left: 3px solid var(--accent); padding-left: 16px; }
.topic-lane-header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; cursor: pointer; }
.topic-lane-header:hover { opacity: 0.8; }
.topic-lane-name { font-family: 'DM Serif Display', serif; font-size: 16px; }
.topic-lane-count { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--text-dim); }
.topic-lane-desc { font-size: 12px; color: var(--text-dim); margin-bottom: 10px; }
.topic-node { display: flex; gap: 12px; align-items: flex-start; padding: 10px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; cursor: pointer; transition: all 0.15s; }
.topic-node:hover { border-color: var(--accent); transform: translateX(2px); }
.topic-node-claim { font-size: 13px; color: var(--text-muted); line-height: 1.5; flex: 1; }
.topic-node-meta { font-family: 'DM Mono', monospace; font-size: 10px; color: var(--text-dim); white-space: nowrap; }
.topic-edge-label { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; margin: 2px 0 6px 20px; }
.edge-continuation { color: var(--text-dim); }
.edge-refinement { color: var(--gold); }
.edge-contradiction { color: var(--red); }
.edge-related { color: var(--accent); }
.topic-empty { text-align: center; padding: 60px 20px; color: var(--text-dim); }

/* ── Topic Map ── */
.topic-map { max-width: 960px; }

/* Scripture Index */
.scripture-book { margin-bottom: 4px; }
.scripture-book-header {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; cursor: pointer;
  border-radius: var(--radius); transition: background 0.15s;
}
.scripture-book-header:hover { background: var(--surface2); }
.scripture-book-chevron {
  font-size: 10px; color: var(--text-dim);
  transition: transform 0.2s; display: inline-block;
}
.scripture-book.open .scripture-book-chevron { transform: rotate(90deg); }
.scripture-book-name { font-family: 'DM Serif Display', serif; font-size: 15px; color: var(--text); }
.scripture-book-count { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--text-dim); }
.scripture-book-body { padding-left: 20px; display: none; }
.scripture-book.open .scripture-book-body { display: block; }
.scripture-chapter {
  font-family: 'DM Mono', monospace; font-size: 12px;
  color: var(--text-dim); margin: 12px 0 4px; padding-left: 4px;
}
.scripture-citation {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 14px; border: 1px solid var(--border);
  border-radius: 10px; margin-bottom: 6px; cursor: pointer;
  transition: all 0.15s;
}
.scripture-citation:hover { border-color: var(--accent); transform: translateX(2px); }
.citation-type-col { display: flex; flex-direction: column; gap: 4px; min-width: 100px; flex-shrink: 0; }
.citation-type {
  font-family: 'DM Mono', monospace; font-size: 10px;
  padding: 2px 6px; border-radius: 4px;
  background: var(--surface2); color: var(--text-dim);
  white-space: nowrap; display: inline-block; width: fit-content;
}
.citation-type.direct_quote { background: var(--accent); color: white; }
.citation-type.explicit_reference { background: var(--surface2); color: var(--accent2, var(--accent)); }
.citation-type.paraphrase { background: var(--surface2); color: var(--gold, var(--text-dim)); }
.citation-ref { font-family: 'DM Mono', monospace; font-size: 10px; color: var(--text-dim); }
.citation-context { font-size: 13px; color: var(--text-muted); line-height: 1.5; flex: 1; }
.citation-source { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 80px; flex-shrink: 0; }
.citation-source-title { font-family: 'DM Mono', monospace; font-size: 10px; color: var(--text-dim); text-align: right; }
.citation-source-date { font-family: 'DM Mono', monospace; font-size: 10px; color: var(--text-dim); }

/* Heatmap */
.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 4px;
}
.heatmap-section-label {
  grid-column: 1 / -1;
  font-family: 'DM Mono', monospace; font-size: 11px;
  color: var(--text-dim); letter-spacing: 1px;
  text-transform: uppercase; padding: 12px 0 4px;
}
.heatmap-cell {
  aspect-ratio: 1.4;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  border-radius: var(--radius); font-size: 11px;
  cursor: default; transition: transform 0.15s;
  border: 1px solid var(--border);
}
.heatmap-cell:hover { transform: scale(1.08); z-index: 1; }
.heatmap-cell-book { font-weight: 500; font-size: 10px; color: var(--text); }
.heatmap-cell-count { font-family: 'DM Mono', monospace; font-size: 10px; opacity: 0.8; color: var(--text); }
.heatmap-legend {
  display: flex; align-items: center; gap: 8px;
  margin-top: 16px; font-size: 11px; color: var(--text-dim);
}
.heatmap-legend-bar {
  display: flex; height: 12px; border-radius: 3px; overflow: hidden;
}
.heatmap-legend-bar span { width: 20px; }

/* Cross-References */
.cross-ref-card {
  padding: 16px; border: 1px solid var(--border);
  border-radius: 10px; margin-bottom: 10px;
}
.cross-ref-header {
  display: flex; align-items: baseline; gap: 10px;
  margin-bottom: 10px;
}
.cross-ref-header span:first-child { font-family: 'DM Serif Display', serif; font-size: 16px; color: var(--text); }
.cross-ref-count { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--text-dim); }
.cross-ref-items { display: flex; flex-wrap: wrap; gap: 8px; }
.cross-ref-item {
  padding: 10px 14px; border-radius: var(--radius);
  background: var(--surface2); border: 1px solid var(--border);
  cursor: pointer; transition: all 0.15s; flex: 1; min-width: 200px; max-width: 320px;
}
.cross-ref-item:hover { border-color: var(--accent); }
.cross-ref-item-title { font-size: 13px; color: var(--text); margin-bottom: 4px; }
.cross-ref-item-meta { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-dim); }

/* ── Related Content ── */
.related-section { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.related-section h4 { font-family: 'DM Serif Display', serif; font-size: 16px; margin-bottom: 12px; color: var(--text); }
.related-items { display: flex; gap: 12px; flex-wrap: wrap; }
.related-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; cursor: pointer; transition: all 0.15s; flex: 1; min-width: 200px; max-width: 280px; }
.related-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.related-card-title { font-family: 'DM Serif Display', serif; font-size: 14px; color: var(--text); margin-bottom: 6px; }
.related-card-meta { font-family: 'DM Mono', monospace; font-size: 10px; color: var(--text-dim); }

/* ── Stats ── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-bottom: 28px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 18px 20px; }
.stat-value { font-family: 'DM Serif Display', serif; font-size: 32px; color: var(--text); margin-bottom: 4px; }
.stat-label { font-size: 12px; font-family: 'DM Mono', monospace; color: var(--text-dim); letter-spacing: 0.5px; }

/* ── Utilities ── */
.section-header { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.section-title { font-family: 'DM Serif Display', serif; font-size: 22px; color: var(--text); }
.section-count { font-family: 'DM Mono', monospace; font-size: 12px; color: var(--text-dim); }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-dim); }
.empty-state p { font-size: 15px; margin-top: 12px; }
.loading { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 14.5px; padding: 20px 0; }
.spinner { width: 18px; height: 18px; border: 2px solid var(--border2); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Skeleton Loaders ── */
.skeleton-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.skeleton-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.skeleton-line { height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--border) 25%, var(--border2) 50%, var(--border) 75%); background-size: 200% 100%; animation: skeleton-shimmer 1.5s ease-in-out infinite; margin-bottom: 10px; }
.skeleton-line.short { width: 60%; }
.skeleton-line.medium { width: 80%; }
.skeleton-line.tiny { width: 40%; height: 10px; }
@keyframes skeleton-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── Error States ── */
.error-state { text-align: center; padding: 40px 20px; }
.error-state-icon { font-size: 32px; margin-bottom: 12px; opacity: 0.6; }
.error-state-title { font-family: 'DM Serif Display', serif; font-size: 17px; color: var(--text); margin-bottom: 8px; }
.error-state-msg { font-size: 13px; color: var(--text-dim); max-width: 400px; margin: 0 auto; line-height: 1.6; }
.error-state-msg a { color: var(--accent); text-decoration: none; }
.error-state-msg a:hover { text-decoration: underline; }
mark { background: rgba(240,180,41,0.3); color: var(--gold); border-radius: 2px; padding: 0 1px; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

/* ── Admin Dashboard ── */
.admin-dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
  max-width: 700px;
}
.dash-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.dash-card h4 {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.dash-stat {
  font-family: 'DM Mono', monospace;
  font-size: 28px;
  color: var(--accent);
  margin-bottom: 8px;
}
.dash-stat-row {
  display: flex;
  gap: 24px;
  margin-top: 8px;
}
.dash-stat-item {
  text-align: center;
}
.dash-stat-item .dash-stat { font-size: 24px; margin-bottom: 2px; }
.dash-stat-item .dash-stat-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.active-user-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 4px 0;
}
.online-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

/* ── View Toggle ── */
.view-toggle { display: flex; gap: 4px; margin-left: auto; }
.view-toggle-btn { background: var(--surface2); border: 1px solid var(--border2); border-radius: var(--radius); padding: 6px 8px; cursor: pointer; color: var(--text-muted); transition: all 0.15s; display: flex; align-items: center; }
.view-toggle-btn:hover { border-color: var(--accent); color: var(--text); }
.view-toggle-btn.active { background: var(--accent); border-color: var(--accent); color: #000; }
.view-toggle-btn svg { display: block; }

/* ── Content List View ── */
.content-list { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.content-list-row { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; cursor: pointer; transition: all 0.15s; }
.content-list-row:hover { border-color: var(--border2); background: var(--surface2); }
.list-title { font-family: 'DM Serif Display', serif; font-size: 16px; color: var(--text); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-meta { display: flex; gap: 12px; flex-shrink: 0; }
.list-badges { display: flex; gap: 6px; flex-shrink: 0; }

/* ── Theme Toggle ── */
.theme-toggle-btn { background: none; border: none; color: var(--text-dim); cursor: pointer; padding: 4px; border-radius: 4px; transition: color 0.15s; flex-shrink: 0; }
.theme-toggle-btn:hover { color: var(--accent); }

/* ── Light theme adjustments ── */
.login-btn { color: #fff; }
.login-btn:hover { color: #fff; }
[data-theme="dark"] .login-btn { color: #000; }
[data-theme="dark"] .login-btn:hover { color: #000; }
.search-type-btn.active { color: #fff; }
[data-theme="dark"] .search-type-btn.active { color: #000; }
.play-btn svg { fill: #fff; }
[data-theme="dark"] .play-btn svg { fill: #000; }
.qa-submit { color: #fff; }
[data-theme="dark"] .qa-submit { color: #000; }
.btn-primary { color: #fff; }
[data-theme="dark"] .btn-primary { color: #000; }
[data-theme="dark"] .btn-primary:hover { color: #000; }
.view-toggle-btn.active { color: #fff; }
[data-theme="dark"] .view-toggle-btn.active { color: #000; }
.fab-btn.primary { color: #fff; }
[data-theme="dark"] .fab-btn.primary { color: #000; }

/* Scrollbar */
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
