/* ============================================================
   Pupillage Coach — design system
   Tokens transcribed from the design handoff (README "Design Tokens").
   Hierarchy comes from borders and background contrast; no shadows.
   ============================================================ */
:root {
  /* Surfaces */
  --bg: #faf7f0;          /* app background (ivory) */
  --card: #fffdf8;        /* card background */
  --card-border: #e3d9c6; /* 1px card border */
  --chip: #f2ecdf;        /* neutral chip background */
  --track: #efe8d9;       /* progress-bar track */
  --callout: #f5efe2;     /* callout background */
  --ink: #171310;         /* dark cards, primary buttons, active */
  --dark-bg: #141110;     /* dark screen background */

  /* Text */
  --body: #1c1813;        /* body text on light */
  --muted: #6f6759;       /* muted text */
  --faint: #a3947c;       /* faint / eyebrow labels on cards */
  --on-dark: #faf7f0;     /* text on dark */

  /* Accents (gold is a tweakable brand prop set from JS) */
  --gold: #b98d54;        /* gold on light */
  --gold-dark: #cda56b;   /* gold on dark */
  --gold-border: #d9bd8c; /* gold border on dark hero cards */
  --green: #3e6b4f;       /* strength / positive */
  --green-tint: #9fc7a8;  /* green on dark */
  --red: #9c4a33;         /* weakness / negative */
  --red-tint: #d98d75;    /* red on dark */

  /* Chip status backgrounds */
  --chip-green-bg: #e7efe6;
  --chip-red-bg: #f7e3d9;

  --tab-outline: #cbbd9f;

  /* Shape */
  --r-card: 4px;
  --r-chip: 2px;
  --r-tile: 3px;
  --r-pill: 999px;

  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: #141210;         /* backdrop behind the device frame */
  color: var(--body);
  font-family: 'Lato', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---- Presentation stage + device bezel (display only) ---- */
.stage {
  min-height: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 24px 0;
}
.device {
  width: 430px;
  max-width: 100vw;
  height: 920px;
  max-height: calc(100vh - 48px);
  background: var(--bg);
  border-radius: 44px;
  overflow: hidden;
  position: relative;
}
/* On real phones / narrow viewports the frame dissolves into a fullscreen app */
@media (max-width: 480px) {
  .stage { padding: 0; }
  .device { border-radius: 0; height: 100vh; height: 100dvh; max-height: none; }
}

.app {
  display: flex;
  flex-direction: column;
  height: 100%;
  /* Real safe-area inset replaces the prototype's hardcoded 62px status bar */
  padding-top: max(env(safe-area-inset-top), 62px);
  background: var(--bg);
  color: var(--body);
  transition: background .2s ease;
}
.app.is-dark { background: var(--dark-bg); }

/* ============================================================
   Layout primitives
   ============================================================ */
.screen {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 10px 22px 24px;
}
.screen--column { display: flex; flex-direction: column; }
.screen--dark {
  background: var(--dark-bg);
  color: var(--on-dark);
}
.spacer { flex: 1; }
.row { display: flex; }
.row--between { justify-content: space-between; }
.row--baseline { align-items: baseline; }
.row--center { align-items: center; }

/* ============================================================
   Typography
   ============================================================ */
.serif { font-family: 'Playfair Display', Georgia, serif; }
.italic { font-style: italic; }
.gold { color: var(--gold); }
.gold-d { color: var(--gold-dark); }

.eyebrow {
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
}
.eyebrow--card {           /* eyebrow inside cards, per handoff */
  font-size: 9.5px;
  letter-spacing: .18em;
  color: var(--faint);
}
.brand { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 17px; }
.brand-tag { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }

.screen-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  margin: 8px 0 0;
}
.greeting {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  margin: 8px 0 0;
}
.subtext { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin-top: 8px; }
.subtext--sm { font-size: 13px; line-height: 1.55; }
.section-label { margin-top: 26px; }
.link-muted { font-size: 13px; color: var(--muted); cursor: pointer; }

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--r-card);
  padding: 18px;
}
.card--dark {
  background: var(--ink);
  color: var(--on-dark);
  border: none;
}
.tappable { cursor: pointer; transition: transform .08s ease; -webkit-tap-highlight-color: transparent; }
.tappable:active { transform: scale(.99); }
.tappable--btn:active { transform: scale(.98); }

/* Readiness hero (Home) */
.hero {
  margin-top: 20px;
  background: var(--ink);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-card);
  padding: 22px;
  color: var(--on-dark);
  display: flex;
  align-items: center;
  gap: 18px;
}
.ring { position: relative; width: 84px; height: 84px; flex: none; }
.ring__score {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 27px; font-weight: 700;
}
.hero__label {
  font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-dark); font-weight: 700;
}
.hero__verdict {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px; font-weight: 600; margin-top: 5px; line-height: 1.3;
}
.delta-up { color: var(--green-tint); font-size: 12px; margin-top: 6px; }

/* Action card pair (Home) */
.actions { display: flex; gap: 10px; margin-top: 12px; }
.action { flex: 1; border-radius: var(--r-card); padding: 16px 15px; }
.action--dark { background: var(--ink); color: var(--on-dark); }
.action--light { background: var(--card); border: 1px solid var(--card-border); }
.action__title { font-family: 'Playfair Display', Georgia, serif; font-size: 16px; font-weight: 600; }
.action__meta { font-size: 11.5px; margin-top: 4px; }
.action__meta--dim { opacity: .7; }
.action__meta--flag { color: var(--red); font-weight: 600; }

/* ============================================================
   Competency rows + progress bars
   ============================================================ */
.comp { margin-bottom: 14px; }
.comp--report { margin-bottom: 16px; }
.comp__head { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 6px; }
.comp__name { font-weight: 600; }
.comp__name--report { font-weight: 700; }
.comp__score { color: var(--muted); }
.comp__note { font-size: 12px; color: var(--muted); line-height: 1.55; margin-top: 6px; }
.bar { height: 4px; background: var(--track); border-radius: var(--r-chip); overflow: hidden; }
.bar__fill { height: 100%; border-radius: var(--r-chip); }
.card--pad-list { padding: 18px 18px 8px; }
.card--pad-report { padding: 18px 18px 6px; }

/* ============================================================
   Chips
   ============================================================ */
.chip-row { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.chip {
  font-size: 10.5px; padding: 4px 10px; border-radius: var(--r-chip);
  letter-spacing: .06em; text-transform: uppercase;
}
.chip--status { font-weight: 700; }
.chip--neutral { background: var(--chip); color: var(--muted); }
.chip--reviewed { background: var(--chip-green-bg); color: var(--green); }
.chip--flags { background: var(--chip-red-bg); color: var(--red); }
.chip--notreviewed { background: var(--chip); color: var(--muted); }
.chip--setup { background: var(--chip); color: #5c5344; letter-spacing: .05em; font-weight: 600; }

/* ============================================================
   Recent activity / list rows
   ============================================================ */
.activity {
  margin-top: 12px; display: flex; align-items: center; gap: 13px;
  padding: 15px 16px;
}
.score-tile {
  border-radius: var(--r-tile); background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', Georgia, serif; font-weight: 700;
  color: var(--gold-dark); flex: none;
}
.score-tile--sm { width: 40px; height: 40px; font-size: 16px; }
.score-tile--lg { width: 66px; height: 66px; font-size: 27px; border: 1px solid var(--gold-border); border-radius: var(--r-card); }
.activity__title { font-size: 13.5px; font-weight: 700; }
.activity__meta { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.chev { color: #b9ad99; }

/* ============================================================
   Gateway answer list (Review)
   ============================================================ */
.gw { margin-top: 13px; padding: 17px; }
.gw__q { font-family: 'Playfair Display', Georgia, serif; font-size: 16px; font-weight: 600; margin-top: 7px; line-height: 1.4; }

/* ============================================================
   Answer detail / transcript — inline annotation pattern
   ============================================================ */
.back-link {
  font-size: 13px; color: var(--muted); cursor: pointer;
  margin-top: 4px;
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 6px 14px 6px 0;   /* ≥44px tap target */
  align-self: flex-start;
  -webkit-tap-highlight-color: transparent;
}
.back-link:active { opacity: .55; }
.detail-q {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 19px; font-weight: 600; margin-top: 14px; line-height: 1.4;
}
.legend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 14px; font-size: 10.5px; color: var(--muted); letter-spacing: .04em; }
.legend__swatch { display: inline-block; width: 8px; height: 8px; border-radius: 1px; margin-right: 5px; vertical-align: middle; }

.prose {
  margin-top: 13px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--r-card);
  padding: 19px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 15px;
  line-height: 1.85;
}
.prose--report { margin-top: 10px; font-size: 14.5px; }
.seg { border-radius: 1px; transition: background .15s ease; }
.seg--annotated { cursor: pointer; }

/* Annotation card (dark, tinted top border) */
.ann {
  margin-top: 12px;
  background: var(--ink);
  color: var(--on-dark);
  border-radius: var(--r-card);
  padding: 18px;
  border-top: 2px solid var(--gold-dark);
}
.ann__head { display: flex; justify-content: space-between; align-items: center; }
.ann__kind { font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; }
.ann__close { cursor: pointer; color: rgba(250,247,240,.5); font-size: 15px; padding: 0 2px; }
.ann__title { font-family: 'Playfair Display', Georgia, serif; font-size: 16.5px; font-weight: 600; margin-top: 8px; line-height: 1.35; }
.ann__note { font-size: 13px; line-height: 1.6; color: rgba(250,247,240,.8); margin-top: 8px; }
.ann__fix {
  margin-top: 12px; padding: 12px 13px;
  background: rgba(250,247,240,.07); border-radius: var(--r-tile);
  font-size: 12.5px; line-height: 1.6;
}
.ann__fix-label { color: var(--gold-dark); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 10px; }
.ann__fix-text { font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-size: 13.5px; }

.hint {
  margin-top: 12px; border: 1px dashed var(--tab-outline);
  border-radius: var(--r-card); padding: 15px;
  font-size: 12.5px; color: var(--muted); text-align: center;
}

/* ============================================================
   Interview setup
   ============================================================ */
.format-title { font-family: 'Playfair Display', Georgia, serif; font-size: 17px; font-weight: 600; margin-top: 7px; }
.format-meta { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.callout {
  margin-top: 12px; background: var(--callout);
  border-left: 2px solid var(--gold);
  border-radius: 0 4px 4px 0;
  padding: 14px 16px; font-size: 12.5px; line-height: 1.6; color: #5c5344;
}
.cta {
  background: var(--ink); color: var(--on-dark);
  border-radius: var(--r-pill); padding: 17px; text-align: center;
  font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  cursor: pointer; margin-top: 18px;
}
.cta--report { margin-top: 22px; padding: 16px; font-size: 13.5px; }

/* ============================================================
   Live interview (dark)
   ============================================================ */
.live { flex: 1; display: flex; flex-direction: column; background: var(--dark-bg); color: var(--on-dark); padding: 10px 22px 28px; }
.live__top { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.live__end {
  font-size: 12px; color: rgba(250,247,240,.5); cursor: pointer; letter-spacing: .06em;
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 6px 16px 6px 0;   /* ≥44px tap target */
  margin: -6px 0;
  -webkit-tap-highlight-color: transparent;
}
.live__end:active { opacity: .6; }
.live__qcount { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-dark); font-weight: 700; }
.live__timer { font-size: 12.5px; color: rgba(250,247,240,.5); font-variant-numeric: tabular-nums; }
.dots { display: flex; gap: 6px; margin-top: 14px; }
.dot { flex: 1; height: 2px; }
.live__center { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.monogram {
  width: 54px; height: 54px; border-radius: 50%;
  border: 1px solid var(--gold-dark);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-style: italic;
  font-size: 18px; color: var(--gold-dark);
}
.live__panelist { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(250,247,240,.5); margin-top: 14px; }
.live__question { font-family: 'Playfair Display', Georgia, serif; font-size: 24px; line-height: 1.45; font-weight: 600; margin-top: 12px; }
.live__assessing { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-dark); margin-top: 16px; }

/* Self-view + capture area (Tier 2 live recording) */
.live__panel-row { display: flex; align-items: center; justify-content: space-between; }
.self-view-wrap {
  width: 76px; height: 76px; border-radius: 50%; overflow: hidden;
  border: 1px solid var(--gold-dark); flex: none; background: #000;
}
.self-view { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.capture-area { margin-bottom: 16px; }
.capture-connecting {
  text-align: center; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(250,247,240,.55); padding: 20px 0;
}
.live-transcript {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 14px; line-height: 1.6; color: rgba(250,247,240,.85);
  max-height: 132px; overflow-y: auto; margin-bottom: 14px;
  min-height: 44px;
}
.live-transcript:empty::before {
  content: 'Listening — speak your answer…';
  color: rgba(250,247,240,.4); font-style: italic;
}
.manual-input {
  width: 100%; box-sizing: border-box; background: rgba(250,247,240,.06);
  border: 1px solid rgba(250,247,240,.18); border-radius: var(--r-card);
  color: var(--on-dark); font-family: 'Playfair Display', Georgia, serif;
  font-size: 14.5px; line-height: 1.6; padding: 12px 13px; resize: vertical;
  min-height: 120px; margin-bottom: 14px;
}
.manual-input:focus { outline: none; border-color: var(--gold-dark); }
.manual-hint {
  font-size: 10.5px; letter-spacing: .06em; color: rgba(250,247,240,.5);
  margin-bottom: 8px; text-transform: uppercase;
}

.waveform { display: flex; align-items: flex-end; justify-content: center; gap: 5px; height: 34px; margin-bottom: 20px; }
.waveform__bar { width: 4px; height: 30px; background: var(--gold-dark); transform-origin: bottom; animation: wf 1s ease-in-out infinite; }
.done-pill {
  background: var(--on-dark); color: var(--dark-bg);
  border-radius: var(--r-pill); padding: 17px; text-align: center;
  font-size: 13.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
}
.record-wrap { display: flex; flex-direction: column; align-items: center; gap: 13px; margin-bottom: 6px; }
.record-btn {
  width: 74px; height: 74px; border-radius: 50%; background: var(--red);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 0 0 1px var(--gold-dark), 0 0 0 8px rgba(156,74,51,.18);
  animation: pulse 2.4s ease-in-out infinite;
}
.record-btn:active { transform: scale(.95); }
.record-btn__inner { width: 24px; height: 24px; border-radius: var(--r-tile); background: var(--on-dark); }
.record-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(250,247,240,.55); }

/* ============================================================
   Analysing (dark)
   ============================================================ */
.analysing {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--dark-bg); color: var(--on-dark); gap: 20px; padding: 0 44px; text-align: center;
}
.spinner {
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid rgba(250,247,240,.12); border-top-color: var(--gold-dark);
  animation: spin 1s linear infinite;
}
.analysing__title { font-family: 'Playfair Display', Georgia, serif; font-size: 22px; font-weight: 600; line-height: 1.3; }
.analysing__step { font-size: 12.5px; line-height: 1.6; color: rgba(250,247,240,.55); min-height: 1.6em; transition: opacity .2s ease; }

/* ============================================================
   Report
   ============================================================ */
.report-head { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.report-title { font-family: 'Playfair Display', Georgia, serif; font-size: 21px; font-weight: 700; }
.report-date { font-size: 12px; color: var(--muted); margin-top: 4px; }
.report-date .up { color: var(--green); font-weight: 700; }
.grid-2 { margin-top: 11px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.metric { padding: 14px 15px; }
.metric__label { font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.metric__value { font-family: 'Playfair Display', Georgia, serif; font-size: 21px; font-weight: 700; margin-top: 6px; }
.metric__note { font-size: 11px; color: var(--muted); margin-top: 4px; line-height: 1.45; }
.incon {
  margin-top: 24px; background: var(--ink); color: var(--on-dark);
  border-radius: var(--r-card); padding: 18px; border-top: 2px solid var(--gold-dark);
}
.incon__label { font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-dark); font-weight: 700; }
.incon__body { font-size: 13px; line-height: 1.65; margin-top: 9px; color: rgba(250,247,240,.85); }
.report-hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.incon__quotes { margin-top: 12px; padding: 12px 13px; background: rgba(250,247,240,.06); border-radius: var(--r-tile); }
.incon__q-label { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark); font-weight: 700; }
.incon__q { font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-size: 13px; color: rgba(250,247,240,.85); }

/* Coach's note — Chelsea Ward's voice, callout treatment */
.coach-note {
  margin-top: 12px; background: var(--callout);
  border-left: 2px solid var(--gold); border-radius: 0 4px 4px 0;
  padding: 15px 17px;
}
.coach-note__label { font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.coach-note__quote {
  font-family: 'Playfair Display', Georgia, serif; font-style: italic;
  font-size: 14.5px; line-height: 1.65; color: #3d362c; margin-top: 8px;
}
.coach-note__source { font-size: 11px; color: var(--faint); margin-top: 7px; }

/* ============================================================
   Progress
   ============================================================ */
.chart {
  display: flex; align-items: flex-end; gap: 10px; height: 112px; margin-top: 16px;
}
.chart__col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.chart__num { font-size: 11px; font-weight: 700; }
.chart__bar { width: 100%; max-width: 32px; border-radius: 2px 2px 0 0; }
.chart__label { font-size: 10px; color: var(--faint); letter-spacing: .04em; }
.mover {
  margin-top: 10px; padding: 14px 16px;
  display: flex; justify-content: space-between; align-items: center;
}
.mover__name { font-size: 13px; font-weight: 700; }
.mover__note { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.mover__delta { font-size: 13px; font-weight: 700; }

/* ============================================================
   Tab bar
   ============================================================ */
.tabbar {
  flex: none; display: flex;
  border-top: 1px solid var(--card-border);
  background: var(--card);
  padding: 8px 6px max(env(safe-area-inset-bottom), 4px);
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  cursor: pointer; padding: 5px 0; min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}
.tab__icon {
  width: 22px; height: 22px; border-radius: var(--r-chip);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', Georgia, serif; font-size: 11px; font-weight: 700; font-style: italic;
  border: 1px solid var(--tab-outline); color: var(--faint);
}
.tab__label { font-size: 10px; color: var(--faint); letter-spacing: .04em; font-weight: 400; }
.tab.is-active .tab__icon { background: var(--ink); border-color: var(--ink); color: var(--gold-dark); }
.tab.is-active .tab__label { color: var(--ink); font-weight: 700; }

/* ============================================================
   Compose form (AI review input)
   ============================================================ */
.field-label {
  display: block;
  font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--faint); font-weight: 700; margin-bottom: 7px;
}
.field {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--r-card);
  padding: 13px 14px;
  font-family: 'Lato', Helvetica, Arial, sans-serif;
  font-size: 13.5px; color: var(--body); line-height: 1.55;
  -webkit-appearance: none;
}
.field:focus { outline: none; border-color: var(--gold); }
.field--area {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 14.5px; line-height: 1.7; resize: vertical; min-height: 160px;
}
.field::placeholder { color: #b9ad99; }
.form-error {
  margin-top: 14px; padding: 12px 14px;
  background: var(--chip-red-bg); border-radius: var(--r-card);
  color: var(--red); font-size: 12.5px; line-height: 1.5;
}
/* ============================================================
   Sign in (dark)
   ============================================================ */
.signin {
  flex: 1; display: flex; flex-direction: column;
  background: var(--dark-bg); color: var(--on-dark);
  padding: 10px 28px 30px;
}
.signin__hero { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.signin__mono {
  width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--gold-dark);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-style: italic;
  font-size: 26px; color: var(--gold-dark);
}
.signin__wordmark { font-family: 'Playfair Display', Georgia, serif; font-size: 27px; font-weight: 700; margin-top: 18px; }
.signin__tag { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-dark); font-weight: 700; margin-top: 8px; }
.signin__sub { font-size: 13.5px; color: rgba(250,247,240,.6); line-height: 1.6; margin-top: 16px; max-width: 260px; }
.signin__form { display: flex; flex-direction: column; gap: 10px; }
.auth-field {
  background: rgba(250,247,240,.06); border: 1px solid rgba(250,247,240,.25); border-radius: 3px;
  padding: 14px 16px; font-size: 13.5px; color: var(--on-dark);
  font-family: 'Lato', Helvetica, Arial, sans-serif; outline: none; min-height: 44px; box-sizing: border-box;
}
.auth-field:focus { border-color: var(--gold-dark); }
.auth-field::placeholder { color: rgba(250,247,240,.4); }
.auth-optin { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; padding: 6px 2px; }
.auth-check {
  width: 18px; height: 18px; flex: none; margin-top: 1px; border-radius: 2px;
  border: 1px solid rgba(250,247,240,.4); background: transparent;
  display: flex; align-items: center; justify-content: center; color: var(--dark-bg); font-size: 12px; font-weight: 700;
}
.auth-check.is-on { background: var(--gold-dark); border-color: var(--gold-dark); }
.auth-optin__label { font-size: 11.5px; color: rgba(250,247,240,.65); line-height: 1.55; }
.auth-cta {
  background: var(--on-dark); color: var(--dark-bg); border-radius: var(--r-pill);
  padding: 15px; text-align: center; font-size: 13.5px; font-weight: 700; cursor: pointer;
  min-height: 44px; box-sizing: border-box;
}
.auth-or { display: flex; align-items: center; gap: 12px; margin: 2px 0; }
.auth-or__line { flex: 1; height: 1px; background: rgba(250,247,240,.15); }
.auth-or__word { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgba(250,247,240,.35); }
.auth-oauth { display: flex; gap: 10px; }
.auth-oauth__btn {
  flex: 1; background: transparent; color: var(--on-dark); border: 1px solid rgba(250,247,240,.3);
  border-radius: var(--r-pill); padding: 13px; text-align: center; font-size: 12.5px; font-weight: 700;
  cursor: pointer; min-height: 44px; box-sizing: border-box;
}
.auth-legal { font-size: 10.5px; color: rgba(250,247,240,.4); text-align: center; line-height: 1.6; margin-top: 6px; padding: 0 10px; }

/* ============================================================
   Subscription paywall
   ============================================================ */
.plan { margin-top: 13px; background: var(--card); border-radius: var(--r-card); padding: 17px; position: relative; }
.plan__badge {
  position: absolute; top: -9px; right: 14px; background: var(--ink); color: var(--gold-dark);
  font-size: 9px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
  padding: 4px 9px; border-radius: var(--r-chip);
}
.plan__head { display: flex; justify-content: space-between; align-items: baseline; }
.plan__name { font-family: 'Playfair Display', Georgia, serif; font-size: 17px; font-weight: 700; }
.plan__price { font-size: 14px; font-weight: 700; }
.plan__desc { font-size: 12px; color: var(--muted); line-height: 1.6; margin-top: 6px; }
.plan__fine { font-size: 11px; color: var(--faint); text-align: center; margin-top: 16px; }
.paywall-note {
  margin-top: 9px; padding: 11px 13px; background: var(--callout);
  border-left: 2px solid var(--gold); border-radius: 0 4px 4px 0;
  font-size: 12.5px; color: #5c5344; line-height: 1.55;
}

/* ============================================================
   Recording consent + Privacy toggles
   ============================================================ */
.consent__body { font-size: 13px; color: #3d362c; line-height: 1.65; margin-top: 9px; }
.consent__divider { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--track); }
.consent__legal { margin-top: 12px; font-size: 11px; color: var(--faint); line-height: 1.6; padding: 0 4px; }
.retain-row { display: flex; justify-content: space-between; align-items: center; cursor: pointer; min-height: 44px; box-sizing: border-box; }
.retain-row__label { font-size: 12.5px; font-weight: 600; padding-right: 12px; }
.toggle { width: 44px; height: 26px; flex: none; border-radius: 999px; background: #d8cdb8; position: relative; transition: background .2s; }
.toggle.is-on { background: var(--green); }
.toggle__knob { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fffdf8; transition: left .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.toggle.is-on .toggle__knob { left: 21px; }

.privacy-table { padding: 6px 18px; margin-top: 16px; }
.privacy-row { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--track); }
.privacy-row:last-child { border-bottom: none; }
.privacy-row--toggle { cursor: pointer; min-height: 44px; }
.privacy-row__name { font-size: 13px; font-weight: 700; padding-right: 10px; }
.privacy-row__note { font-size: 11.5px; color: var(--muted); margin-top: 2px; line-height: 1.5; }
.privacy-actions { padding: 6px 18px; margin-top: 12px; }
.privacy-action { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; cursor: pointer; min-height: 44px; box-sizing: border-box; border-bottom: 1px solid var(--track); }
.privacy-action:last-child { border-bottom: none; }
.privacy-action__label { font-size: 13px; font-weight: 700; }
.privacy-action--danger .privacy-action__label { color: var(--red); }
.privacy-action__spin { color: var(--faint); }
.privacy-note { margin-top: 14px; font-size: 11px; color: var(--faint); line-height: 1.65; padding: 0 4px; }

/* Home footer links (Privacy & data · Manage plan) */
.home-footer { display: flex; justify-content: center; gap: 18px; margin-top: 26px; padding-bottom: 4px; }
.home-footer__link { font-size: 12px; color: var(--muted); cursor: pointer; }

/* ============================================================
   Onboarding
   ============================================================ */
.area-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.area-chip {
  padding: 11px 15px; border-radius: var(--r-tile);
  font-size: 13px; font-weight: 600; cursor: pointer;
  border: 1px solid var(--card-border);
  min-height: 44px; box-sizing: border-box;
  display: flex; align-items: center;
  -webkit-tap-highlight-color: transparent;
}
.area-chip:active { transform: scale(.97); }
.area-count { font-size: 11.5px; color: var(--faint); text-align: center; margin-top: 16px; }

.ob-row { display: flex; justify-content: space-between; align-items: center; margin-top: 13px; }
.ob-chambers { font-family: 'Playfair Display', Georgia, serif; font-size: 15.5px; font-weight: 600; }
.ob-areas { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.ob-doc { font-size: 13.5px; font-weight: 600; }
.ob-add {
  margin-top: 14px; border: 1px dashed var(--tab-outline); border-radius: var(--r-tile);
  padding: 11px; font-size: 12px; color: var(--muted); text-align: center; cursor: pointer;
}

/* Interview setup — "This session" numbered plan */
.plan-row { display: flex; gap: 13px; margin-top: 14px; }
.plan-num {
  width: 26px; height: 26px; flex: none;
  border: 1px solid var(--tab-outline); border-radius: var(--r-chip);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-weight: 700;
  font-size: 12px; color: var(--faint);
}
.plan-title { font-size: 13px; font-weight: 700; }
.plan-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; line-height: 1.5; }
.format-head { display: flex; justify-content: space-between; align-items: center; }
.edit-areas { font-size: 11.5px; color: var(--gold); cursor: pointer; font-weight: 600; }

.upload-row { display: flex; }
.upload-btn {
  font-size: 10.5px; letter-spacing: .04em; font-weight: 700;
  color: var(--gold); cursor: pointer; -webkit-tap-highlight-color: transparent;
  padding: 4px 0;
}
.upload-btn:active { opacity: .6; }
.upload-status {
  font-size: 11.5px; line-height: 1.45; color: var(--muted);
  margin-bottom: 8px; min-height: 0;
}
.upload-status:empty { display: none; }
.upload-status--ok { color: var(--green); }
.upload-status--err { color: var(--red); }

.cta--busy { opacity: .6; pointer-events: none; }
.mode-note {
  margin-top: 12px; text-align: center;
  font-size: 11px; color: var(--faint); letter-spacing: .02em;
}

/* "Review a new answer" entry card on the review list */
.gw-new {
  margin-top: 13px; padding: 15px 17px;
  display: flex; align-items: center; gap: 12px;
  border-style: dashed;
}
.gw-new__plus {
  width: 30px; height: 30px; border-radius: var(--r-tile);
  background: var(--ink); color: var(--gold-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-family: 'Playfair Display', Georgia, serif; flex: none;
}
.gw-new__label { font-size: 13.5px; font-weight: 700; }
.gw-new__meta { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* ============================================================
   Animations
   ============================================================ */
@keyframes wf { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

@media (prefers-reduced-motion: reduce) {
  .waveform__bar, .record-btn, .spinner { animation: none; }
}
