/* ============================================================
   Law Study Tool — "Legal Clarity" Dark Theme
   2026 redesign: deep navy + warm gold, layered surfaces,
   frosted glass overlays, subtle ambient effects.
   ============================================================ */

/* ===== DESIGN TOKENS ===== */
:root {
  --bg:            #0a0e1a;
  --surface-0:     #0d1120;
  --surface-1:     #111827;
  --surface-2:     #18243a;
  --surface-3:     #1e2b45;

  --border:        rgba(255, 255, 255, 0.06);
  --border-mid:    rgba(255, 255, 255, 0.11);
  --border-strong: rgba(255, 255, 255, 0.18);

  --accent:        #c8a96e;
  --accent-light:  #d9be8c;
  --accent-dim:    rgba(200, 169, 110, 0.12);
  --accent-glow:   rgba(200, 169, 110, 0.20);

  --text-1:        #f1f5f9;
  --text-2:        #94a3b8;
  --text-3:        #64748b;

  --success:       #22c55e;
  --success-dim:   rgba(34, 197, 94, 0.10);
  --error:         #f87171;
  --error-dim:     rgba(248, 113, 113, 0.10);
  --warning:       #fbbf24;
  --warning-dim:   rgba(251, 191, 36, 0.10);
  --info:          #60a5fa;
  --info-dim:      rgba(96, 165, 250, 0.10);

  --radius-sm:     6px;
  --radius-md:     10px;
  --radius-lg:     14px;
  --radius-pill:   999px;

  --ease:          150ms ease;
  --ease-md:       200ms ease;
  --ease-lg:       250ms ease;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-1);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'kern' 1, 'liga' 1;
}

/* Global scrollbar */
::-webkit-scrollbar          { width: 6px; height: 6px; }
::-webkit-scrollbar-track    { background: var(--surface-1); }
::-webkit-scrollbar-thumb    { background: rgba(200, 169, 110, 0.28); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ===== HEADER ===== */
header {
  background: var(--surface-0);
  border-bottom: 1px solid var(--border-mid);
  color: var(--text-1);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 40px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow:
    0 1px 0 var(--border),
    0 8px 40px rgba(0, 0, 0, 0.4),
    0 2px 60px rgba(200, 169, 110, 0.03);
}

header h1 {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 1.2rem;
  font-weight: normal;
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: var(--accent);
  text-shadow: 0 0 40px rgba(200, 169, 110, 0.3);
}

nav { display: flex; gap: 4px; }

.tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-3);
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  transition: color var(--ease), background var(--ease), border-color var(--ease);
  letter-spacing: 0.01em;
}

.tab-btn:hover {
  color: var(--text-2);
  background: var(--surface-2);
  border-color: var(--border-mid);
}

.tab-btn.active {
  background: var(--accent);
  color: #0a0e1a;
  border-color: var(--accent);
  font-weight: 600;
}

/* ===== MAIN / TABS ===== */
main {
  max-width: 840px;
  margin: 48px auto;
  padding: 0 24px 80px;
  position: relative;
}

.tab-content { display: none; }
.tab-content.active {
  display: block;
  animation: tabFadeIn 220ms ease both;
}

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

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 6px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-mid);
  letter-spacing: -0.015em;
}

.hint {
  color: var(--text-3);
  font-size: 0.875rem;
  margin-bottom: 28px;
  margin-top: 10px;
  line-height: 1.55;
}

/* ===== FORMS ===== */
.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-row.inline {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
}

.form-row label {
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

input[type="text"],
input[type="number"],
select {
  padding: 9px 12px;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-family: inherit;
  background: var(--surface-1);
  color: var(--text-1);
  width: 100%;
  transition: border-color var(--ease), box-shadow var(--ease);
  -webkit-appearance: none;
}

/* Custom dropdown arrow */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

select option { background: var(--surface-1); color: var(--text-1); }

.form-row.inline input,
.form-row.inline select { width: auto; }

input:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

input::placeholder { color: var(--text-3); }

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; }

/* ===== BUTTONS ===== */
.primary-btn {
  background: var(--accent);
  color: #09100c;
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--ease), opacity var(--ease), box-shadow var(--ease);
  letter-spacing: 0.01em;
}

.primary-btn:hover:not(:disabled) {
  background: var(--accent-light);
  box-shadow: 0 2px 16px rgba(200, 169, 110, 0.30);
}

.primary-btn:active:not(:disabled) {
  background: var(--accent);
  box-shadow: none;
}

.primary-btn:disabled {
  opacity: 0.32;
  cursor: not-allowed;
}

/* ===== ADD-NEW ROW ===== */
.add-new-row {
  display: none;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}
.add-new-row.visible { display: flex; }

.add-new-row input[type="text"] {
  flex: 1;
  padding: 7px 10px;
  font-size: 0.9rem;
}

.add-new-btn {
  background: var(--success);
  color: #fff;
  border: none;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity var(--ease);
  font-weight: 600;
}
.add-new-btn:hover { opacity: 0.85; }

.cancel-btn {
  background: transparent;
  color: var(--text-3);
  border: 1px solid var(--border-mid);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-family: inherit;
  cursor: pointer;
  transition: color var(--ease), border-color var(--ease);
}
.cancel-btn:hover { color: var(--text-2); border-color: var(--border-strong); }

/* ===== PROCESSING MODE TOGGLE ===== */
.mode-toggle {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.mode-option {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 180px;
  padding: 14px 16px;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-md);
  cursor: pointer;
  background: var(--surface-1);
  transition: border-color var(--ease-md), background var(--ease-md), box-shadow var(--ease-md);
}

.mode-option:hover {
  background: var(--surface-2);
  border-color: rgba(200, 169, 110, 0.28);
}

.mode-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-dim);
  box-shadow: 0 0 0 1px var(--accent) inset;
}

.mode-option input[type="radio"] { display: none; }

.mode-option span {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-1);
  text-transform: none;
  letter-spacing: normal;
}

.mode-option small {
  font-size: 0.8rem;
  color: var(--text-3);
  line-height: 1.4;
  text-transform: none;
  letter-spacing: normal;
}

/* ===== SUMMARISE INSTRUCTIONS ===== */
.instructions-row { margin-top: -6px; }

.instructions-optional {
  font-weight: normal;
  color: var(--text-3);
  font-size: 0.8rem;
  text-transform: none;
  letter-spacing: normal;
}

.instructions-row textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
  line-height: 1.55;
  resize: vertical;
  background: var(--surface-1);
  color: var(--text-1);
  transition: border-color var(--ease), box-shadow var(--ease);
  min-height: 80px;
}

.instructions-row textarea::placeholder { color: var(--text-3); }

.instructions-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.instructions-hint {
  font-size: 0.775rem;
  color: var(--text-3);
  margin-top: 2px;
}

/* ===== DROP ZONE ===== */
.drop-zone {
  border: 2px dashed rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-lg);
  padding: 52px 24px 40px;
  text-align: center;
  cursor: pointer;
  background: var(--surface-1);
  margin-bottom: 24px;
  transition: border-color var(--ease-md), background var(--ease-md);
  position: relative;
}

/* Upload arrow icon */
.drop-zone::before {
  content: '↑';
  display: block;
  font-size: 1.875rem;
  font-weight: 300;
  color: var(--text-3);
  margin-bottom: 14px;
  transition: color var(--ease-md), transform var(--ease-md);
  line-height: 1;
}

.drop-zone:hover,
.drop-zone.dragover {
  border-color: var(--accent);
  background: var(--surface-2);
}

.drop-zone:hover::before,
.drop-zone.dragover::before {
  color: var(--accent);
  transform: translateY(-3px);
}

.drop-zone p { color: var(--text-2); margin-bottom: 4px; font-size: 0.9375rem; }
.drop-zone .hint { margin: 0; color: var(--text-3); }

#file-preview,
.file-preview {
  margin-top: 16px;
  font-weight: 600;
  color: var(--accent);
  font-size: 0.9rem;
}

/* ===== STATUS BOX ===== */
.status-box {
  margin-top: 20px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.55;
  border-left: 3px solid;
}

.status-box.hidden { display: none; }

.status-box.info {
  background: var(--info-dim);
  border-color: var(--info);
  color: #bfdbfe;
}
.status-box.success {
  background: var(--success-dim);
  border-color: var(--success);
  color: #bbf7d0;
}
.status-box.error {
  background: var(--error-dim);
  border-color: var(--error);
  color: #fecaca;
}
.status-box.loading {
  background: var(--warning-dim);
  border-color: var(--warning);
  color: #fef3c7;
}

.status-box a { color: inherit; text-decoration: underline; opacity: 0.8; }
.status-box a:hover { opacity: 1; }

/* ===== QUESTIONS TAB ===== */
.controls-row {
  display: flex;
  gap: 24px;
  align-items: flex-end;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.q-type-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-mid);
  width: fit-content;
}

.q-type-btn {
  background: var(--surface-1);
  border: none;
  border-right: 1px solid var(--border-mid);
  padding: 8px 20px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--text-3);
  transition: background var(--ease), color var(--ease);
}

.q-type-btn:last-child { border-right: none; }
.q-type-btn:hover { background: var(--surface-2); color: var(--text-2); }
.q-type-btn.active {
  background: var(--surface-2);
  color: var(--accent);
  font-weight: 600;
}

/* Digest card */
.digest-card {
  background: var(--surface-1);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
}

.digest-card summary {
  padding: 13px 18px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-1);
  list-style: none;
  font-size: 0.9rem;
  transition: background var(--ease);
}

.digest-card summary::-webkit-details-marker { display: none; }
.digest-card summary:hover { background: var(--surface-2); }

.digest-body {
  padding: 14px 18px 18px;
  border-top: 1px solid var(--border);
  white-space: pre-wrap;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-2);
}

/* Problem question cards */
.problem-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color var(--ease);
}

.problem-card:hover { border-color: var(--border-mid); }
.problem-card[open] { border-color: var(--border-mid); }

.problem-card summary {
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-1);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background var(--ease);
  font-size: 0.9375rem;
}

.problem-card summary::-webkit-details-marker { display: none; }
.problem-card summary:hover { background: var(--surface-2); }

.problem-card summary::before {
  content: '▶';
  font-size: 0.6rem;
  color: var(--text-3);
  transition: transform 0.2s ease, color var(--ease);
  flex-shrink: 0;
}

.problem-card[open] summary::before {
  transform: rotate(90deg);
  color: var(--accent);
}

.problem-card .card-body {
  padding: 0 18px 18px;
  border-top: 1px solid var(--border);
}

.problem-card .question-text {
  margin: 14px 0 12px;
  line-height: 1.75;
  color: var(--text-2);
  font-size: 0.9375rem;
}

.issues-list {
  margin: 0;
  padding-left: 20px;
}

.issues-list li {
  color: var(--text-3);
  font-size: 0.875rem;
  margin-bottom: 5px;
  line-height: 1.5;
}

.q-number {
  background: var(--surface-2);
  color: var(--accent);
  border: 1px solid rgba(200, 169, 110, 0.22);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* MCQ cards */
.mcq-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 10px;
  transition: border-color var(--ease);
}

.mcq-card:hover { border-color: var(--border-mid); }

.mcq-card .question-text {
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--text-1);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.mcq-options { list-style: none; padding: 0; }

.mcq-options li {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
  cursor: pointer;
  transition: background var(--ease), color var(--ease);
  font-size: 0.9rem;
  color: var(--text-2);
}

.mcq-options li { cursor: pointer; }
.mcq-options li:hover { background: var(--surface-2); color: var(--text-1); }
.mcq-options li.correct { background: rgba(34, 197, 94, 0.12); color: #86efac; font-weight: 600; }
.mcq-options li.incorrect { background: rgba(248, 113, 113, 0.10); color: #fca5a5; }

.mcq-card--answered .mcq-options li { cursor: default; pointer-events: none; }
.mcq-card--answered .mcq-options li:not(.correct):not(.incorrect) { opacity: 0.5; }

.mcq-score {
  font-size: 0.9rem;
  color: var(--text-2);
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}

/* ===== EXAM PREP TAB ===== */
.ep-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
  margin-bottom: 24px;
}

@media (max-width: 600px) { .ep-grid { grid-template-columns: 1fr; } }

.ep-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color var(--ease-md), background var(--ease-md), box-shadow var(--ease-md);
  position: relative;
  overflow: hidden;
}

/* Gold top-bar accent — appears on hover */
.ep-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light), transparent);
  opacity: 0;
  transition: opacity var(--ease-md);
}

.ep-card:hover {
  border-color: var(--border-mid);
  background: var(--surface-2);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}
.ep-card:hover::before { opacity: 1; }

.ep-card h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.ep-card p { font-size: 0.85rem; color: var(--text-3); line-height: 1.55; flex: 1; }
.ep-btn { align-self: flex-start; }

/* ===== PAGE PICKER ===== */
.page-picker {
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-md);
  background: var(--surface-1);
  overflow: hidden;
}

.pp-list {
  max-height: 260px;
  overflow-y: auto;
  /* Scoped scrollbar for picker */
  scrollbar-width: thin;
  scrollbar-color: rgba(200, 169, 110, 0.25) transparent;
}

.pp-list::-webkit-scrollbar          { width: 4px; }
.pp-list::-webkit-scrollbar-track    { background: transparent; }
.pp-list::-webkit-scrollbar-thumb    { background: rgba(200, 169, 110, 0.25); border-radius: 2px; }
.pp-list::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.pp-row-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px 9px 14px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  user-select: none;
  transition: background var(--ease);
}

.pp-row-inner:hover { background: var(--surface-2); }

.pp-row-inner.highlighted {
  background: var(--accent-dim);
  box-shadow: inset 3px 0 0 var(--accent);
}

.pp-row-title {
  flex: 1;
  font-size: 0.875rem;
  color: var(--text-2);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pp-row-inner.highlighted .pp-row-title {
  color: var(--text-1);
}

.pp-expand-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-3);
  font-size: 1.1rem;
  line-height: 1;
  padding: 0 2px;
  flex-shrink: 0;
  font-family: inherit;
  transition: color var(--ease);
}
.pp-expand-btn:hover { color: var(--accent); }

.pp-sub-list.hidden { display: none; }

.pp-loading,
.pp-empty {
  padding: 16px 14px;
  color: var(--text-3);
  font-style: italic;
  font-size: 0.875rem;
  margin: 0;
}

/* ===== PAGE HINT ===== */
.page-hint {
  margin-top: 8px;
  font-size: 0.8375rem;
  color: var(--text-3);
}
.page-hint.hidden { display: none; }
.page-hint strong { color: var(--accent); font-weight: 600; }

/* ===== LOADING OVERLAY ===== */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 26, 0.82);
  backdrop-filter: blur(12px) saturate(0.8);
  -webkit-backdrop-filter: blur(12px) saturate(0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.loading-overlay.hidden { display: none; }

.loading-card {
  text-align: center;
  padding: 48px 52px;
  max-width: 360px;
  width: 90%;
  background: var(--surface-1);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--border);
}

.loading-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--border-mid);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 0 auto 24px;
  animation: spin 0.85s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-msg {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.55;
  margin: 0 0 24px;
}

/* ===== MISC ===== */
.empty-state {
  color: var(--text-3);
  font-style: italic;
  text-align: center;
  padding: 52px 0;
}

a { color: var(--accent); transition: opacity var(--ease); }
a:hover { text-decoration: underline; opacity: 0.8; }

/* ===== LOGIN OVERLAY ===== */
.login-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 26, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.login-overlay.hidden { display: none; }
.login-card {
  background: var(--surface-1);
  border: 1px solid var(--border-mid);
  border-radius: 16px;
  padding: 48px 40px;
  text-align: center;
  max-width: 360px;
  width: 90%;
}
.login-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-1);
  margin: 0 0 8px;
}
.login-card p {
  color: var(--text-2);
  margin: 0 0 32px;
}
.google-signin-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #0a0e1a;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  cursor: pointer;
  transition: opacity 0.15s;
}
.google-signin-btn:hover { opacity: 0.85; }

/* ============================================================
   Notes source picker (Notion setup — Screen A)
   ============================================================ */
.notes-source-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}
.notes-source-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-mid);
  background: var(--bg-card);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  position: relative;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-1);
  text-align: left;
  width: 100%;
}
.notes-source-row:not(.disabled):hover {
  border-color: var(--accent);
  background: rgba(99,102,241,0.08);
}
.notes-source-logo {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.notes-source-logo svg {
  width: 28px;
  height: 28px;
}
.notes-source-row .notes-source-name {
  flex: 1;
  font-weight: 600;
  font-size: 0.95rem;
}
.notes-source-row.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.notes-source-row.coming-soon::after {
  content: 'Coming soon';
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-3);
  background: var(--bg-2);
  border-radius: 4px;
  padding: 2px 6px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* ============================================================
   Notion setup steps (Screen B)
   ============================================================ */
.login-card.hidden { display: none; }

.setup-back-btn {
  background: none;
  border: none;
  color: var(--text-2);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0 0 12px;
  display: block;
  transition: color 0.15s;
}
.setup-back-btn:hover { color: var(--text-1); }

.setup-step {
  display: flex;
  gap: 14px;
  text-align: left;
  margin-bottom: 18px;
}
.setup-step-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #0a0e1a;
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.setup-step-body {
  flex: 1;
}
.setup-step-body strong {
  display: block;
  color: var(--text-1);
  font-size: 0.92rem;
  margin-bottom: 4px;
}
.setup-step-body p {
  color: var(--text-2);
  font-size: 0.83rem;
  margin: 0 0 6px;
}
.setup-step-link {
  display: inline-block;
  font-size: 0.83rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.setup-step-link:hover { text-decoration: underline; }
.setup-token-input {
  width: 100%;
  padding: 9px 12px;
  margin-top: 6px;
  border-radius: 6px;
  border: 1px solid var(--border-mid);
  background: var(--bg-2);
  color: var(--text-1);
  font-size: 14px;
  box-sizing: border-box;
  font-family: monospace;
}
