/* ==========================================================================
   Quiet Story — Design System
   Direction: "Quiet Authority" (warm / editorial / trusted-advisor)
   Shared stylesheet imported by every page. Desktop-first, responsive.
   ========================================================================== */

/* ----- Fonts -------------------------------------------------------------- */
/* Option A (Quiet Authority) palette + Option B (Modern Slate) typography:
   all-Inter, with heavy/tight headings for a clean, confident, engineer-native feel. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */
:root {
  /* --- Color: surfaces --- */
  --canvas:        #FBF8F3;  /* warm cream — app background */
  --surface:       #FFFFFF;  /* cards, panels */
  --surface-sunk:  #F4EFE7;  /* inset / muted fills */
  --surface-ink:   #1C2A39;  /* dark panels, footers */

  /* --- Color: text --- */
  --ink:           #1C2A39;  /* primary text / headlines */
  --ink-soft:      #3C4A59;  /* secondary text */
  --slate:         #6B7280;  /* muted / captions */
  --slate-faint:   #9AA1AB;  /* placeholders, disabled */
  --on-dark:       #F3EEE6;  /* text on ink surfaces */

  /* --- Color: brand accents --- */
  --teal:          #2E6E6A;  /* primary accent / CTAs */
  --teal-strong:   #265A57;  /* hover */
  --teal-soft:     #E4EEED;  /* tints / backgrounds */
  --terracotta:    #C97B5A;  /* highlight / secondary accent */
  --terracotta-soft:#F6E7DF;

  /* --- Color: semantic --- */
  --success:       #2E6E6A;
  --success-soft:  #E4EEED;
  --warn:          #B7791F;
  --warn-soft:     #FBF0DA;
  --danger:        #B4524A;
  --danger-soft:   #F7E4E2;
  --info:          #3F6090;
  --info-soft:     #E6ECF4;

  /* --- Lines & borders --- */
  --line:          #E7E0D5;  /* warm hairline */
  --line-strong:   #D8CFC0;
  --focus-ring:    rgba(46,110,106,0.35);

  /* --- Radius --- */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 999px;

  /* --- Shadow (soft, low-key) --- */
  --shadow-sm: 0 1px 2px rgba(28,42,57,0.04), 0 1px 3px rgba(28,42,57,0.06);
  --shadow-md: 0 4px 12px rgba(28,42,57,0.06), 0 2px 4px rgba(28,42,57,0.04);
  --shadow-lg: 0 12px 32px rgba(28,42,57,0.10), 0 4px 8px rgba(28,42,57,0.05);

  /* --- Spacing scale (4px base) --- */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  /* --- Typography --- */
  /* --font-serif kept as a token name for parity across pages, but now maps to Inter. */
  --font-serif: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --fs-display: 44px;
  --fs-h1: 34px;
  --fs-h2: 26px;
  --fs-h3: 20px;
  --fs-h4: 17px;
  --fs-body: 16px;
  --fs-sm: 14px;
  --fs-xs: 12.5px;

  /* --- Layout --- */
  --maxw: 1180px;
  --maxw-narrow: 760px;
  --nav-w: 248px;
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--ink); line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); font-weight: 600; }

p { color: var(--ink-soft); }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-strong); text-decoration: underline; }
small { font-size: var(--fs-sm); }
strong { font-weight: 600; color: var(--ink); }
img { max-width: 100%; display: block; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-5) 0; }

::selection { background: var(--teal-soft); }

/* ==========================================================================
   3. TYPOGRAPHY HELPERS
   ========================================================================== */
.display { font-family: var(--font-serif); font-size: var(--fs-display); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; }
.eyebrow { font-family: var(--font-sans); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--teal); }
.lede { font-size: 18px; line-height: 1.6; color: var(--ink-soft); }
.muted { color: var(--slate); }
.faint { color: var(--slate-faint); }
.serif { font-family: var(--font-serif); font-weight: 700; }
.text-sm { font-size: var(--fs-sm); }
.text-xs { font-size: var(--fs-xs); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

/* ==========================================================================
   4. LAYOUT
   ========================================================================== */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s-5); }
.container-narrow { max-width: var(--maxw-narrow); margin: 0 auto; padding: 0 var(--s-5); }

.stack > * + * { margin-top: var(--s-4); }
.stack-lg > * + * { margin-top: var(--s-6); }
.stack-sm > * + * { margin-top: var(--s-2); }

.row { display: flex; gap: var(--s-4); align-items: center; }
.row-between { display: flex; gap: var(--s-4); align-items: center; justify-content: space-between; }
.row-top { align-items: flex-start; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; }

.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* App shell: fixed sidebar + content */
.app { display: grid; grid-template-columns: var(--nav-w) 1fr; min-height: 100vh; }
.app-main { min-width: 0; }
.page { padding: var(--s-7) var(--s-6) var(--s-9); max-width: var(--maxw); margin: 0 auto; }
.page-header { margin-bottom: var(--s-6); }
.page-header h1 { margin-bottom: var(--s-2); }

/* Section utility for the style guide */
.section { padding: var(--s-7) 0; border-top: 1px solid var(--line); }

/* ==========================================================================
   5. SIDEBAR NAV
   ========================================================================== */
.sidebar {
  background: var(--surface-ink);
  color: var(--on-dark);
  padding: var(--s-5) var(--s-4);
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: var(--s-2);
  overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2) var(--s-3) var(--s-5); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: linear-gradient(145deg, var(--teal), var(--terracotta));
  display: grid; place-items: center; color: #fff; font-family: var(--font-sans); font-weight: 800; font-size: 18px;
}
.brand-name { font-family: var(--font-sans); font-size: 16px; font-weight: 700; letter-spacing: -0.01em; color: var(--on-dark); line-height: 1.15; }
.brand-name span { display: block; font-family: var(--font-sans); font-size: 11px; font-weight: 500; letter-spacing: 0.04em; color: rgba(243,238,230,0.55); }

.nav-group-label { font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(243,238,230,0.4); padding: var(--s-4) var(--s-3) var(--s-2); }
.nav-item {
  display: flex; align-items: center; gap: var(--s-3);
  padding: 9px var(--s-3); border-radius: var(--r-sm);
  color: rgba(243,238,230,0.78); font-size: var(--fs-sm); font-weight: 500;
  text-decoration: none; transition: background .15s, color .15s;
}
.nav-item:hover { background: rgba(255,255,255,0.06); color: var(--on-dark); text-decoration: none; }
.nav-item.active { background: var(--teal); color: #fff; }
.nav-item .ico { width: 18px; text-align: center; opacity: .9; font-size: 15px; }
.nav-spacer { flex: 1; }
.nav-foot { border-top: 1px solid rgba(255,255,255,0.08); padding-top: var(--s-3); margin-top: var(--s-3); }

/* Top bar (inside content) */
.topbar { display: flex; align-items: center; justify-content: space-between; padding: var(--s-4) var(--s-6); border-bottom: 1px solid var(--line); background: rgba(251,248,243,0.85); backdrop-filter: blur(6px); position: sticky; top: 0; z-index: 20; }

/* ==========================================================================
   6. BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  font-family: var(--font-sans); font-size: var(--fs-sm); font-weight: 600; line-height: 1;
  padding: 11px 18px; border-radius: var(--r-sm); border: 1px solid transparent;
  cursor: pointer; transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .05s;
  text-decoration: none; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--focus-ring); }

.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-strong); color: #fff; text-decoration: none; }

.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--surface-sunk); color: var(--ink); text-decoration: none; }

.btn-ghost { background: transparent; color: var(--teal); }
.btn-ghost:hover { background: var(--teal-soft); text-decoration: none; }

.btn-terracotta { background: var(--terracotta); color: #fff; }
.btn-terracotta:hover { background: #b86b4c; color: #fff; text-decoration: none; }

.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger-soft); }
.btn-danger:hover { background: var(--danger-soft); }

.btn-lg { padding: 14px 24px; font-size: var(--fs-body); border-radius: var(--r-md); }
.btn-sm { padding: 7px 12px; font-size: var(--fs-xs); }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn .ico { font-size: 15px; }

/* Chip buttons (regeneration quick actions, fine-tune toggles) */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: var(--r-pill); border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink-soft); font-size: var(--fs-xs); font-weight: 500;
  cursor: pointer; transition: all .15s;
}
.chip:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-soft); }
.chip.selected { background: var(--teal); border-color: var(--teal); color: #fff; }

/* ==========================================================================
   7. CARDS & PANELS
   ========================================================================== */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: var(--s-5); box-shadow: var(--shadow-sm);
}
.card-lg { padding: var(--s-6); border-radius: var(--r-lg); }
.card-flush { padding: 0; overflow: hidden; }
.card-hover { transition: box-shadow .18s, transform .18s, border-color .18s; }
.card-hover:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--line-strong); }
.card-selectable { cursor: pointer; }
.card-selected { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal), var(--shadow-md); }

.panel { background: var(--surface-sunk); border-radius: var(--r-md); padding: var(--s-5); }
.panel-teal { background: var(--teal-soft); border: 1px solid #cfe3e1; border-radius: var(--r-md); padding: var(--s-5); }
.panel-warn { background: var(--warn-soft); border: 1px solid #efdcb0; border-radius: var(--r-md); padding: var(--s-5); }

.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-3); }
.card-title { font-family: var(--font-serif); font-size: var(--fs-h3); font-weight: 700; letter-spacing: -0.01em; }

/* Balance-sheet two-column (Snapshot) */
.balance { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
.balance .col-assets { border-top: 3px solid var(--teal); }
.balance .col-leaks { border-top: 3px solid var(--terracotta); }

/* List with leading marker */
.marker-list { list-style: none; padding: 0; }
.marker-list li { position: relative; padding: 10px 0 10px 26px; border-bottom: 1px dashed var(--line); color: var(--ink-soft); font-size: var(--fs-sm); }
.marker-list li:last-child { border-bottom: 0; }
.marker-list li::before { content: ''; position: absolute; left: 4px; top: 17px; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.marker-list.leaks li::before { background: var(--terracotta); }

/* ==========================================================================
   8. BADGES, PILLS & LABELS
   ========================================================================== */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: 600; line-height: 1.4; white-space: nowrap;
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-neutral { background: var(--surface-sunk); color: var(--ink-soft); }
.badge-teal { background: var(--teal-soft); color: var(--teal-strong); }
.badge-terracotta { background: var(--terracotta-soft); color: #a85a3c; }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-info { background: var(--info-soft); color: var(--info); }

/* Confidence indicators (label-first, per spec) */
.confidence { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 600; padding: 4px 11px; border-radius: var(--r-pill); }
.confidence::before { content: ''; width: 7px; height: 7px; border-radius: 50%; }
.confidence-strong { background: var(--success-soft); color: var(--success); }
.confidence-strong::before { background: var(--success); }
.confidence-good { background: var(--info-soft); color: var(--info); }
.confidence-good::before { background: var(--info); }
.confidence-possible { background: var(--surface-sunk); color: var(--slate); }
.confidence-possible::before { background: var(--slate); }

/* Draft status pills */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 600; padding: 4px 11px; border-radius: var(--r-pill); border: 1px solid transparent; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; }
.status-idea       { background: var(--surface-sunk); color: var(--slate); }
.status-idea::before { background: var(--slate-faint); }
.status-draft      { background: var(--info-soft); color: var(--info); }
.status-draft::before { background: var(--info); }
.status-approved   { background: var(--success-soft); color: var(--success); }
.status-approved::before { background: var(--success); }
.status-scheduled  { background: var(--terracotta-soft); color: #a85a3c; }
.status-scheduled::before { background: var(--terracotta); }
.status-published  { background: #E9E4DA; color: var(--ink); }
.status-published::before { background: var(--ink); }

/* Evidence-type tags (Block 10) */
.evi { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: var(--r-xs); letter-spacing: 0.02em; }
.evi-evidence { background: var(--success-soft); color: var(--success); }
.evi-inferred { background: var(--info-soft); color: var(--info); }
.evi-user { background: var(--teal-soft); color: var(--teal-strong); }
.evi-missing { background: var(--surface-sunk); color: var(--slate); }

/* ==========================================================================
   9. FORMS
   ========================================================================== */
.field { display: block; }
.label { display: block; font-size: var(--fs-sm); font-weight: 600; color: var(--ink); margin-bottom: var(--s-2); }
.hint { font-size: var(--fs-xs); color: var(--slate); margin-top: 6px; }

.input, .textarea, .select {
  width: 100%; font-family: var(--font-sans); font-size: var(--fs-body); color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  padding: 11px 13px; transition: border-color .15s, box-shadow .15s;
}
.input::placeholder, .textarea::placeholder { color: var(--slate-faint); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--focus-ring); }
.textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 38px; }

/* Selectable option cards (radio/checkbox-style choices) */
.choice {
  display: flex; align-items: flex-start; gap: var(--s-3);
  padding: var(--s-4); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--surface); cursor: pointer; transition: all .15s;
}
.choice:hover { border-color: var(--teal); background: var(--teal-soft); }
.choice.selected { border-color: var(--teal); background: var(--teal-soft); box-shadow: inset 0 0 0 1px var(--teal); }
.choice-mark { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; margin-top: 2px; display: grid; place-items: center; }
.choice.selected .choice-mark { border-color: var(--teal); background: var(--teal); }
.choice.selected .choice-mark::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.choice-body strong { display: block; font-size: var(--fs-sm); }
.choice-body span { font-size: var(--fs-xs); color: var(--slate); }
.choice-check { border-radius: var(--r-xs); }
.choice-check .choice-mark { border-radius: 5px; }

/* ==========================================================================
   10. ACCORDION (Fine-tune, "Why we recommended this")
   ========================================================================== */
.accordion { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); overflow: hidden; }
.accordion > summary {
  list-style: none; cursor: pointer; padding: var(--s-4) var(--s-5);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  font-size: var(--fs-sm); font-weight: 600; color: var(--ink);
}
.accordion > summary::-webkit-details-marker { display: none; }
.accordion > summary .chev { transition: transform .2s; color: var(--slate); }
.accordion[open] > summary .chev { transform: rotate(180deg); }
.accordion[open] > summary { border-bottom: 1px solid var(--line); }
.accordion-body { padding: var(--s-5); }

/* ==========================================================================
   11. STEPPER / PROGRESS (onboarding flow)
   ========================================================================== */
.stepper { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-xs); font-weight: 600; color: var(--slate); }
.step-num { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-sunk); color: var(--slate); font-size: 12px; border: 1px solid var(--line-strong); }
.step.active .step-num { background: var(--teal); color: #fff; border-color: var(--teal); }
.step.active { color: var(--ink); }
.step.done .step-num { background: var(--teal-soft); color: var(--teal); border-color: var(--teal); }
.step-line { width: 28px; height: 1px; background: var(--line-strong); }

/* Progress bar */
.progress { height: 8px; background: var(--surface-sunk); border-radius: var(--r-pill); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--teal); border-radius: var(--r-pill); }

/* ==========================================================================
   12. MISC: stars, dividers, avatars, tooltips, empty states
   ========================================================================== */
.stars { color: var(--terracotta); letter-spacing: 2px; font-size: 16px; }
.stars .off { color: var(--line-strong); }

.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-strong); display: grid; place-items: center; font-weight: 600; font-size: var(--fs-sm); flex: none; }

.kbd { font-family: ui-monospace, Menlo, monospace; font-size: 12px; background: var(--surface-sunk); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; color: var(--ink-soft); }

.empty { text-align: center; padding: var(--s-8) var(--s-5); }
.empty .empty-mark { width: 56px; height: 56px; border-radius: var(--r-md); background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; margin: 0 auto var(--s-4); font-size: 26px; }
.empty h3 { margin-bottom: var(--s-2); }
.empty p { max-width: 420px; margin: 0 auto; color: var(--slate); }

.divider-label { display: flex; align-items: center; gap: var(--s-4); color: var(--slate); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.divider-label::before, .divider-label::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* Banner / callout */
.callout { display: flex; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-radius: var(--r-sm); align-items: flex-start; }
.callout .ico { font-size: 18px; line-height: 1.4; flex: none; }
.callout-info { background: var(--info-soft); color: var(--info); }
.callout-teal { background: var(--teal-soft); color: var(--teal-strong); }
.callout-warn { background: var(--warn-soft); color: var(--warn); }
.callout p { color: inherit; }

/* Table (admin) */
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table th { text-align: left; font-weight: 600; color: var(--slate); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.05em; padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line-strong); }
.table td { padding: var(--s-4); border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.table tr:hover td { background: var(--surface-sunk); }

/* ==========================================================================
   13. UTILITIES
   ========================================================================== */
.mt-0 { margin-top: 0; } .mt-2 { margin-top: var(--s-2); } .mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); } .mt-5 { margin-top: var(--s-5); } .mt-6 { margin-top: var(--s-6); }
.mb-2 { margin-bottom: var(--s-2); } .mb-3 { margin-bottom: var(--s-3); } .mb-4 { margin-bottom: var(--s-4); }
.mb-5 { margin-bottom: var(--s-5); } .mb-6 { margin-bottom: var(--s-6); }
.gap-2 { gap: var(--s-2); } .gap-3 { gap: var(--s-3); }
.flex-col { flex-direction: column; align-items: stretch; }
.hidden { display: none; }
.pill-track { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.tag-input { background: var(--teal-soft); color: var(--teal-strong); border-radius: var(--r-pill); padding: 4px 10px 4px 12px; font-size: var(--fs-xs); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.tag-input .x { cursor: pointer; opacity: .6; }
.tag-input .x:hover { opacity: 1; }


/* ==========================================================================
   14. APP SHELL EXTRAS & OVERLAYS  (shared by all app pages)
   ========================================================================== */
.nav-item .ico svg { width: 18px; height: 18px; display: block; }

/* Mobile sidebar toggle */
.menu-btn { display: none; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-sm); width: 38px; height: 38px; cursor: pointer; }
@media (max-width: 980px){ .menu-btn { display: grid; place-items: center; } }

/* Sidebar collapsible groups (admin sub-menus) */
.nav-grp { width: 100%; text-align: left; background: transparent; border: 0; font-family: inherit; }
.nav-grp .chev { margin-left: auto; font-size: 11px; transition: transform .2s; }
.nav-grp.open .chev { transform: rotate(180deg); }
.nav-sub { display: none; flex-direction: column; gap: 1px; margin: 2px 0 4px; }
.nav-sub.open { display: flex; }
.nav-sub-item { display: block; padding: 7px 12px 7px 42px; font-size: 12.5px; color: rgba(243,238,230,0.7); cursor: pointer; border-radius: var(--r-sm); text-decoration: none; line-height: 1.3; }
.nav-sub-item:hover { background: rgba(255,255,255,0.06); color: var(--on-dark); text-decoration: none; }
.nav-sub-item.active { background: var(--teal); color: #fff; }

/* Modal / dialog — pages override .modal width via their own <style> */
.modal-overlay { position: fixed; inset: 0; background: rgba(28,42,57,0.45); display: none; place-items: center; z-index: 200; padding: var(--s-5); }
.modal-overlay.open { display: grid; }
.modal { background: var(--surface); border-radius: var(--r-lg); max-width: 460px; width: 100%; box-shadow: var(--shadow-lg); }
.modal-head { padding: var(--s-5); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); }
.modal-body { padding: var(--s-5); }
.modal-foot { padding: var(--s-5); border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: var(--s-3); }
.x-btn { background: transparent; border: 0; font-size: 22px; line-height: 1; cursor: pointer; color: var(--slate); }

/* ==========================================================================
   15. RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .balance { grid-template-columns: 1fr; }
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); width: var(--nav-w); z-index: 100; transition: transform .2s; }
  .sidebar.open { transform: translateX(0); }
}
@media (max-width: 680px) {
  :root { --fs-display: 32px; --fs-h1: 27px; --fs-h2: 22px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .page { padding: var(--s-5) var(--s-4) var(--s-8); }
  .row-between { flex-wrap: wrap; }
}

/* ==========================================================================
   16. ASYNC STATES — skeleton / loading / inline error (every AI call)
   Shared so each engine page (Profile, Strategy, Planner, Creative, Tuning)
   shows a designed waiting + failure state instead of a frozen screen.
   ========================================================================== */
.skel { position: relative; overflow: hidden; background: var(--surface-sunk); border-radius: var(--r-sm); }
.skel::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,0.65), transparent); animation: skel 1.3s infinite; }
@keyframes skel { 100% { transform: translateX(100%); } }
.skel-line { height: 12px; margin-bottom: 11px; }
.skel-line.sh { height: 9px; }
.skel-line.w-30 { width: 30%; } .skel-line.w-40 { width: 40%; } .skel-line.w-55 { width: 55%; }
.skel-line.w-70 { width: 70%; } .skel-line.w-90 { width: 90%; } .skel-line.w-100 { width: 100%; }
.skel-block { height: 120px; }

.spinner { width: 18px; height: 18px; border: 2px solid var(--line-strong); border-top-color: var(--teal); border-radius: 50%; display: inline-block; animation: spin .7s linear infinite; vertical-align: middle; }
.spinner-lg { width: 32px; height: 32px; border-width: 3px; }
@keyframes spin { 100% { transform: rotate(360deg); } }

.loading-state { display: flex; flex-direction: column; align-items: center; text-align: center; padding: var(--s-7) var(--s-5); }
.loading-state .spinner-lg { margin-bottom: var(--s-4); }
.loading-state h4 { margin-bottom: var(--s-2); }
.loading-state p { color: var(--slate); font-size: var(--fs-sm); max-width: 380px; }

.error-state { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-5); border: 1px solid #ecc9c5; background: var(--danger-soft); border-radius: var(--r-md); }
.error-state .err-ic { width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--danger); display: grid; place-items: center; flex: none; font-weight: 800; }
.error-state h4 { color: var(--danger); margin-bottom: 2px; }
.error-state p { color: var(--ink-soft); font-size: var(--fs-sm); margin-bottom: var(--s-3); }

/* Tiny demo control for previewing async states in the static mock (dev-only) */
.state-demo { display: inline-flex; gap: 3px; background: var(--surface-sunk); border: 1px dashed var(--line-strong); padding: 3px; border-radius: var(--r-pill); }
.state-demo button { border: 0; background: transparent; font-size: 11px; font-weight: 600; color: var(--slate); padding: 4px 10px; border-radius: var(--r-pill); cursor: pointer; }
.state-demo button.on { background: var(--ink); color: #fff; }


/* ==========================================================================
   17. PRODUCT REDESIGN ADDITIONS — Reputation GPS / Visibility Thesis
   ========================================================================== */
.strategy-strip { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; padding: var(--s-3) var(--s-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-sm); margin-bottom: var(--s-5); }
.strategy-strip .ss-label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); }
.strategy-strip .ss-item { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--r-pill); background: var(--surface-sunk); color: var(--ink-soft); font-size: var(--fs-xs); font-weight: 600; }
.thesis-hero { background: linear-gradient(135deg, var(--surface-ink), #243849); color: var(--on-dark); border: 0; overflow: hidden; position: relative; }
.thesis-hero::after { content: ''; position: absolute; right: -90px; top: -90px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(201,123,90,.35), transparent 70%); }
.thesis-hero h1, .thesis-hero h2, .thesis-hero h3, .thesis-hero h4, .thesis-hero strong { color: #fff; }
.thesis-hero p { color: rgba(243,238,230,.78); }
.thesis-hero .badge { background: rgba(255,255,255,.12); color: var(--on-dark); }
.thesis-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: var(--s-5); align-items: stretch; }
@media (max-width: 860px){ .thesis-grid { grid-template-columns: 1fr; } }
.sum-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); }
@media (max-width: 900px){ .sum-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px){ .sum-grid { grid-template-columns: 1fr; } }
.sum-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-4); box-shadow: var(--shadow-sm); }
.sum-card .k { font-size: var(--fs-xs); color: var(--slate); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 3px; }
.sum-card .v { font-size: var(--fs-sm); color: var(--ink); font-weight: 700; line-height: 1.35; }
.proof-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--s-3); }
.proof-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: var(--s-4); }
.proof-card .pk { font-size: 11px; color: var(--slate); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.proof-card .pv { font-size: var(--fs-sm); color: var(--ink); font-weight: 650; line-height: 1.35; }
.before-after { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--s-3); align-items: stretch; }
.ba-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-4); }
.ba-card.after { border-color: var(--teal); background: var(--teal-soft); }
.ba-arrow { display: grid; place-items: center; color: var(--teal); font-weight: 800; }
@media (max-width: 720px){ .before-after { grid-template-columns: 1fr; } .ba-arrow { display:none; } }
.next-move { border-left: 4px solid var(--teal); }
.next-move .nm-date { color: var(--terracotta); font-size: var(--fs-xs); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.plan-week { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; box-shadow: var(--shadow-sm); margin-bottom: var(--s-5); }
.plan-week-head { padding: var(--s-5); background: var(--surface-sunk); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }
.plan-week-head h3 { margin-bottom: 3px; }
.plan-post { display: grid; grid-template-columns: 120px 1fr auto; gap: var(--s-4); padding: var(--s-5); border-bottom: 1px solid var(--line); align-items: start; }
.plan-post:last-child { border-bottom: 0; }
.plan-post .date { font-size: var(--fs-xs); font-weight: 800; color: var(--teal-strong); text-transform: uppercase; letter-spacing: .05em; }
.plan-post .time { display:block; margin-top:4px; font-size: var(--fs-xs); color: var(--slate); font-weight: 600; text-transform:none; letter-spacing:0; }
.plan-post h4 { margin-bottom: 4px; }
.plan-post p { font-size: var(--fs-sm); margin: 0; }
.plan-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s-3); }
.role-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: var(--r-pill); font-size: 11px; font-weight: 700; background: var(--surface-sunk); color: var(--ink-soft); white-space: nowrap; }
.role-pov { background: var(--teal-soft); color: var(--teal-strong); }
.role-proof { background: var(--info-soft); color: var(--info); }
.role-story { background: var(--terracotta-soft); color: #a85a3c; }
.role-framework { background: var(--warn-soft); color: var(--warn); }
@media (max-width: 760px){ .plan-post { grid-template-columns: 1fr; } }
.score-card { display: grid; gap: var(--s-3); }
.score-row { display: grid; grid-template-columns: 140px 1fr 34px; align-items: center; gap: var(--s-3); font-size: var(--fs-xs); color: var(--ink-soft); }
.score-track { height: 8px; border-radius: var(--r-pill); background: var(--surface-sunk); overflow: hidden; }
.score-track i { display:block; height:100%; border-radius: var(--r-pill); background: var(--teal); }
.coach-panel { background: var(--surface-sunk); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-4); }
.coach-panel h4 { margin-bottom: var(--s-2); }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: var(--s-5); align-items: start; }
@media (max-width: 980px){ .post-layout { grid-template-columns: 1fr; } }
.route-step { display: flex; gap: var(--s-3); padding: var(--s-3) 0; border-bottom: 1px dashed var(--line); }
.route-step:last-child { border-bottom: 0; }
.route-num { width: 26px; height: 26px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-strong); display:grid; place-items:center; font-weight:800; font-size: var(--fs-xs); flex:none; }
.hook-card { border: 1px solid #cfe3e1; background: var(--teal-soft); border-radius: var(--r-md); padding: var(--s-5); }
.input-row { display: grid; grid-template-columns: 1fr auto; gap: var(--s-3); align-items: end; }
@media (max-width: 680px){ .input-row { grid-template-columns: 1fr; } }
.mini-calendar { display: grid; grid-template-columns: repeat(7, minmax(54px,1fr)); gap: 6px; }
.mini-day { display:block; min-height: 68px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 6px; background: var(--surface); font-size: 11px; color: var(--slate); text-decoration:none; }
.mini-day strong { display:block; font-size: 11px; color: var(--ink); }
.mini-day.has { border-color: var(--teal); background: var(--teal-soft); }
.mini-day.story { border-color: var(--terracotta); background: var(--terracotta-soft); }
.reco-card { border: 1px solid var(--teal); box-shadow: 0 0 0 1px var(--teal), var(--shadow-md); }
.reco-card .reco-label { color: var(--teal-strong); font-size: var(--fs-xs); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-bottom: var(--s-2); }
.feature-gate { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--slate); }


/* ========================================================================== 
   18. CONTENT VAULT ADDITIONS — simple generated-post storage model
   ========================================================================== */
.vault-tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); background: var(--surface-sunk); border-radius: var(--r-sm); flex-wrap: wrap; }
.vault-tab { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: var(--r-xs); color: var(--ink-soft); font-size: var(--fs-xs); font-weight: 700; text-decoration: none; border:0; background:transparent; cursor:pointer; font-family:inherit; }
.vault-tab:hover { background: var(--surface); color: var(--ink); text-decoration: none; }
.vault-tab.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.vault-tab .count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-pill); background: var(--teal-soft); color: var(--teal-strong); display: inline-grid; place-items: center; font-size: 11px; }
.vault-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s-5); align-items: start; }
@media (max-width: 940px){ .vault-grid { grid-template-columns: 1fr; } }
.vault-card { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); padding: var(--s-5); box-shadow: var(--shadow-sm); }
.vault-card.needs { border-color: #efdcb0; background: linear-gradient(180deg, #fff, var(--warn-soft)); }
.vault-card.upcoming { border-color: #cfe3e1; }
.vault-card.saved { background: var(--surface-sunk); }
.vault-card + .vault-card { margin-top: var(--s-4); }
.vault-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-3); }
.vault-title-row h3 { font-size: var(--fs-h4); margin: 0; }
.vault-reason { margin-top: var(--s-3); padding: var(--s-3); border-radius: var(--r-sm); background: rgba(255,255,255,.65); border: 1px dashed var(--line-strong); }
.vault-actions { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-top: var(--s-4); }
.vault-rail .rail-row { display: flex; justify-content: space-between; gap: var(--s-3); padding: var(--s-3) 0; border-bottom: 1px dashed var(--line); }
.vault-rail .rail-row:last-child { border-bottom: 0; }
.vault-rail .rail-k { font-size: var(--fs-xs); color: var(--slate); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.vault-rail .rail-v { font-size: var(--fs-sm); color: var(--ink); font-weight: 700; text-align: right; }
.action-strip { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-sm); }
.action-strip.warn { border-color: #efdcb0; background: var(--warn-soft); }
.action-strip .action-copy { flex: 1; min-width: 260px; }
.action-strip .action-copy strong { display: block; }
.action-strip .action-copy span { display:block; font-size: var(--fs-sm); color: var(--ink-soft); margin-top: 2px; }
.chip-needs { background: var(--warn-soft); border-color: var(--warn); }
.chip-needs .ct { color: var(--ink); }
.chip-needs .cm { color: var(--warn); font-weight: 700; }
.status-needs { background: var(--warn-soft); color: var(--warn); }
.status-needs::before { background: var(--warn); }
.status-saved { background: var(--surface-sunk); color: var(--ink-soft); }
.status-saved::before { background: var(--slate-faint); }


.vault-card.today-post { border-color: #cfe3e1; background: linear-gradient(180deg, #fff, var(--teal-soft)); }
.chip-today { background: var(--teal-soft); border-color: var(--teal); }
.chip-today .ct { color: var(--ink); }
.chip-today .cm { color: var(--teal-strong); font-weight: 700; }
.chip-past { background: var(--surface-sunk); border-color: var(--line-strong); }
.chip-past .ct { color: var(--ink); }
.chip-past .cm { color: var(--ink-soft); font-weight: 700; }


/* ========================================================================== 
   19. BATCH 4 — Audience Radar, Commenting Workflow, Post Interview Wizard
   ========================================================================== */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s-4); }
.radar-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s-5); align-items: start; }
@media (max-width: 940px){ .radar-grid { grid-template-columns: 1fr; } }
.audience-card { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); padding: var(--s-5); box-shadow: var(--shadow-sm); }
.audience-card + .audience-card { margin-top: var(--s-4); }
.audience-card.priority { border-color: var(--teal); background: linear-gradient(180deg, #fff, var(--teal-soft)); }
.audience-head { display:flex; align-items:flex-start; justify-content:space-between; gap: var(--s-3); margin-bottom: var(--s-3); }
.audience-head h3 { font-size: var(--fs-h4); margin: 0; }
.audience-row { display:flex; gap: var(--s-3); align-items:flex-start; padding: var(--s-3) 0; border-top: 1px dashed var(--line); }
.audience-row:first-of-type { border-top: 0; padding-top: 0; }
.audience-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--surface-sunk); color: var(--teal-strong); display:grid; place-items:center; font-weight:800; font-size: 12px; flex:none; }
.radar-note { border: 1px dashed var(--line-strong); background: var(--surface-sunk); border-radius: var(--r-sm); padding: var(--s-3); }
.radar-meter { display:grid; grid-template-columns: 120px 1fr 34px; gap: var(--s-3); align-items:center; font-size: var(--fs-xs); color: var(--ink-soft); }
.comment-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s-5); align-items: start; }
@media (max-width: 940px){ .comment-grid { grid-template-columns: 1fr; } }
.comment-step { display:flex; gap: var(--s-3); padding: var(--s-4); border:1px solid var(--line); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-sm); }
.comment-step + .comment-step { margin-top: var(--s-3); }
.comment-num { width: 30px; height: 30px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-strong); display:grid; place-items:center; font-weight:800; font-size: var(--fs-xs); flex:none; }
.comment-bank { display:grid; gap: var(--s-3); }
.comment-template { border:1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); padding: var(--s-4); }
.comment-template .ct-label { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-strong); margin-bottom: 5px; }
.interview-card { border: 1px solid #cfe3e1; background: linear-gradient(180deg, #fff, var(--teal-soft)); border-radius: var(--r-md); padding: var(--s-5); box-shadow: var(--shadow-sm); }
.interview-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s-3); }
.interview-prompt { background: rgba(255,255,255,.78); border:1px solid var(--line); border-radius: var(--r-sm); padding: var(--s-3); }
.interview-prompt label { display:block; font-size: var(--fs-xs); font-weight: 800; color: var(--teal-strong); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.after-post-card { border:1px solid var(--line); background: var(--surface); border-radius: var(--r-md); padding: var(--s-5); box-shadow: var(--shadow-sm); }
.after-post-card .mini-action { display:flex; justify-content:space-between; gap: var(--s-3); padding: var(--s-3) 0; border-bottom: 1px dashed var(--line); }
.after-post-card .mini-action:last-child { border-bottom: 0; }


/* Batch 6: Supporting review styles */
.proof-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s-4); }
.proof-item { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-md); padding: var(--s-5); box-shadow: var(--shadow-sm); }
.proof-item.strong { border-color: var(--teal); background: linear-gradient(180deg, #fff, var(--teal-soft)); }
.proof-item .proof-type { font-size: 11px; color: var(--slate); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.proof-item h3 { font-size: var(--fs-h4); margin-bottom: 5px; }
.proof-links { display:flex; gap: var(--s-2); flex-wrap: wrap; margin-top: var(--s-3); }
.review-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s-5); align-items: start; }
@media (max-width: 860px){ .review-grid { grid-template-columns: 1fr; } }
.review-row { display:flex; justify-content:space-between; gap: var(--s-3); padding: var(--s-3) 0; border-bottom: 1px dashed var(--line); }
.review-row:last-child { border-bottom: 0; }
.review-k { font-size: var(--fs-sm); font-weight: 650; color: var(--ink); }
.review-v { font-size: var(--fs-xs); color: var(--slate); text-align:right; }
.metric-mini { display:grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.metric-mini .m { border:1px solid var(--line); background:var(--surface-sunk); border-radius: var(--r-sm); padding: var(--s-3); }
.metric-mini .k { font-size: 11px; color: var(--slate); text-transform: uppercase; font-weight: 800; letter-spacing: .05em; }
.metric-mini .v { font-size: var(--fs-h4); font-weight: 800; color: var(--ink); margin-top: 2px; }


/* Batch 10: UX clarity fixes */
.format-switch-card { display:flex; justify-content:space-between; align-items:center; gap:var(--s-4); flex-wrap:wrap; border:1px solid var(--line); background:var(--surface); border-radius:var(--r-md); padding:var(--s-4); box-shadow:var(--shadow-sm); }
.format-tabs { display:inline-flex; gap:4px; background:var(--surface-sunk); border:1px solid var(--line); border-radius:var(--r-pill); padding:4px; }
.format-tab { border:0; background:transparent; color:var(--ink-soft); border-radius:var(--r-pill); padding:7px 12px; font-size:var(--fs-sm); font-weight:650; cursor:pointer; }
.format-tab.active { background:var(--surface); color:var(--ink); box-shadow:var(--shadow-sm); }
.format-reason { border:1px dashed var(--line-strong); background:var(--surface-sunk); border-radius:var(--r-sm); padding:var(--s-3); }
.toast { position:fixed; right:24px; bottom:24px; z-index:50; background:var(--surface-ink); color:var(--on-dark); border-radius:var(--r-md); padding:12px 16px; box-shadow:var(--shadow-lg); max-width:320px; opacity:0; transform:translateY(10px); pointer-events:none; transition:opacity .2s ease, transform .2s ease; }
.toast.show { opacity:1; transform:translateY(0); }
.empty-state { border:1px dashed var(--line-strong); background:var(--surface-sunk); border-radius:var(--r-lg); padding:var(--s-7); text-align:center; }
.empty-state .empty-icon { width:48px; height:48px; border-radius:50%; margin:0 auto var(--s-3); background:var(--teal-soft); color:var(--teal-strong); display:grid; place-items:center; font-weight:900; }
.empty-state h3 { font-size:var(--fs-h3); margin-bottom:var(--s-2); }
.empty-state p { max-width:440px; margin:0 auto var(--s-4); color:var(--ink-soft); }
.setup-progress { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.progress-pill { display:inline-flex; align-items:center; gap:6px; border:1px solid var(--line); background:var(--surface); color:var(--ink-soft); border-radius:var(--r-pill); padding:7px 11px; font-size:var(--fs-xs); font-weight:700; }
.progress-pill.done { background:var(--teal-soft); border-color:#cfe3e1; color:var(--teal-strong); }
.progress-pill.active { background:var(--ink); border-color:var(--ink); color:#fff; }
.roadmap-note { border:1px dashed var(--line-strong); background:var(--surface-sunk); border-radius:var(--r-sm); padding:var(--s-3); }

/* Batch 12: monthly post limit */
.limit-card { display:flex; align-items:center; justify-content:space-between; gap:var(--s-4); border:1px solid var(--line); background:var(--surface); border-radius:var(--r-md); padding:var(--s-4) var(--s-5); box-shadow:var(--shadow-sm); }
.limit-meter { width:180px; height:10px; background:var(--surface-sunk); border-radius:var(--r-pill); overflow:hidden; flex:none; }
.limit-meter > i { display:block; height:100%; background:var(--teal); border-radius:var(--r-pill); }
@media(max-width:700px){ .limit-card{align-items:flex-start; flex-direction:column;} .limit-meter{width:100%;} }
