@font-face {
  font-family: "AITE Sans";
  src: local("Inter"), local("Segoe UI");
  font-display: swap;
}

:root {
  --ink: #17211f;
  --ink-soft: #34413d;
  --muted: #68736f;
  --canvas: #f2f3ee;
  --paper: #fbfaf5;
  --white: #ffffff;
  --forest: #123b34;
  --forest-deep: #0c2b27;
  --forest-light: #1e6659;
  --teal: #147b6c;
  --teal-soft: #dcedea;
  --gold: #b18b4f;
  --gold-soft: #efe5d2;
  --oxblood: #713c3a;
  --line: #d7dbd4;
  --line-dark: #bdc5bd;
  --shadow-sm: 0 8px 24px rgba(29, 45, 39, 0.07);
  --shadow-md: 0 24px 62px rgba(24, 40, 35, 0.12);
  --radius: 16px;
  --serif: Georgia, "Times New Roman", "Noto Serif SC", serif;
  --sans: "AITE Sans", Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 8% 0%, rgba(183, 167, 126, 0.13), transparent 28rem),
    linear-gradient(180deg, #f7f7f2 0, var(--canvas) 38rem);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea { font: inherit; }

button,
select,
summary { -webkit-tap-highlight-color: transparent; }

button { color: inherit; }

button:not(:disabled),
select:not(:disabled),
summary { cursor: pointer; }

button:disabled { cursor: not-allowed; opacity: 0.55; }

img { display: block; max-width: 100%; }

[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--forest);
  color: white;
  text-decoration: none;
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid rgba(20, 123, 108, 0.35);
  outline-offset: 3px;
}

.site-header {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(200px, 1fr) auto minmax(200px, 1fr);
  min-height: 76px;
  align-items: center;
  gap: 28px;
  padding: 12px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid rgba(23, 33, 31, 0.1);
  background: rgba(250, 250, 246, 0.88);
  backdrop-filter: blur(18px);
}

.brand,
.report-brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}

.brand__mark {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  overflow: hidden;
  border-radius: 11px;
  background: var(--forest);
  box-shadow: 0 8px 19px rgba(18, 59, 52, 0.18);
}

.brand__mark img { width: 100%; height: 100%; }

.brand__copy { display: grid; line-height: 1.1; }
.brand__copy strong { font-size: 15px; letter-spacing: -0.01em; }
.brand__copy small {
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(23, 33, 31, 0.09);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
}

.site-nav a {
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.is-active { background: var(--teal-soft); color: var(--forest); }

.header-seal {
  display: inline-flex;
  justify-self: end;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.03em;
}

.header-seal svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.interview-flow {
  position: relative;
  z-index: 18;
  height: 64px;
  min-height: 64px;
  padding: 0 clamp(22px,5vw,72px);
  border-bottom: 1px solid rgba(23,33,31,.09);
  background: rgba(247,247,242,.94);
  backdrop-filter: blur(16px);
}

.interview-flow ol {
  display: grid;
  width: min(820px,100%);
  height: 100%;
  min-height: 0;
  grid-template-columns: repeat(4,minmax(0,1fr));
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.interview-flow li { position: relative; min-width: 0; }
.interview-flow li:not(:last-child)::after {
  position: absolute;
  top: 31px;
  right: -22%;
  left: 78%;
  height: 1px;
  background: var(--line-dark);
  content: "";
}
.interview-flow li.is-complete:not(:last-child)::after { background: var(--teal); }
.interview-flow button {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 0;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 7px 10px;
  border: 0;
  background: transparent;
  color: #8a938f;
  text-align: left;
}
.interview-flow button:disabled { cursor: default; opacity: 1; }
.interview-flow li.is-current button { color: var(--forest); }
.interview-flow li.is-complete button { color: var(--teal); }
.interview-flow li.is-complete button:not(:disabled):hover { background: rgba(220,237,234,.58); }
.interview-flow__number {
  position: relative;
  z-index: 1;
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  place-items: center;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  background: #f7f7f2;
  font-family: var(--serif);
  font-size: 9px;
}
.interview-flow li.is-current .interview-flow__number { border-color: var(--forest); background: var(--forest); color: white; box-shadow: 0 0 0 4px rgba(20,123,108,.1); }
.interview-flow li.is-complete .interview-flow__number { border-color: var(--teal); background: var(--teal-soft); color: var(--teal); }
.interview-flow button > span:last-child { display: grid; min-width: 0; gap: 1px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.interview-flow small { color: inherit; font-family: var(--serif); font-size: 8px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; opacity: .64; }

.view { min-height: calc(100vh - 140px); }

body[data-view="session"] .site-header,
body[data-view="report"] .site-header { display: none; }
body[data-view="session"] .session-view,
body[data-view="report"] .report-view { min-height: calc(100vh - 64px); }

.setup-view { min-height: 0; }
.configure-step { padding: 42px 0 92px; }
.configure-intro {
  display: grid;
  width: min(1180px,calc(100% - 44px));
  grid-template-columns: auto minmax(0,1fr);
  align-items: start;
  gap: 28px;
  margin: 0 auto 28px;
}
.configure-intro h1 { margin: 6px 0 5px; font-family: var(--serif); font-size: clamp(31px,3.5vw,45px); font-weight: 500; letter-spacing: -.035em; }
.hero-copy h1[tabindex="-1"]:focus,
.configure-intro h1[tabindex="-1"]:focus { outline: none; }
.configure-intro p:last-child { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.back-step {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 9px 13px;
  border: 1px solid var(--line-dark);
  border-radius: 9px;
  background: rgba(255,255,255,.72);
  color: var(--forest);
  font-size: 11px;
  font-weight: 800;
}
.back-step:hover { border-color: var(--teal); background: var(--teal-soft); }
.back-step svg { width: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

.hero-shell {
  position: relative;
  display: grid;
  max-width: 1340px;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.66fr);
  align-items: center;
  gap: clamp(48px, 7vw, 112px);
  margin: 0 auto;
  padding: clamp(66px, 8vw, 112px) clamp(22px, 5vw, 72px) 82px;
}

.landing-step .hero-shell {
  min-height: calc(100dvh - 140px);
  padding-top: clamp(24px,4.2vh,42px);
  padding-bottom: clamp(20px,3.2vh,34px);
}

.hero-shell::before {
  position: absolute;
  top: 44px;
  left: clamp(22px, 5vw, 72px);
  width: 1px;
  height: 48px;
  background: var(--gold);
  content: "";
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow span { width: 28px; height: 1px; background: var(--gold); }

.hero-copy h1 {
  max-width: 820px;
  margin: 18px 0 16px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(38px, 4.6vw, 64px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.hero-copy h1 em { color: var(--forest-light); font-weight: 400; }

.hero-lede {
  max-width: 670px;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.75;
}

.landing-action {
  display: inline-flex;
  min-width: min(100%,310px);
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 22px;
  padding: 11px 17px 11px 20px;
  border: 0;
  border-radius: 11px;
  background: var(--forest);
  box-shadow: 0 16px 34px rgba(18,59,52,.22);
  color: white;
  text-align: left;
  transition: transform 160ms ease,box-shadow 160ms ease,background 160ms ease;
}
.landing-action:hover { background: var(--forest-deep); box-shadow: 0 20px 39px rgba(18,59,52,.28); transform: translateY(-2px); }
.landing-action span { display: grid; gap: 2px; font-size: 15px; font-weight: 800; }
.landing-action small { color: rgba(255,255,255,.64); font-family: var(--serif); font-size: 9px; font-weight: 400; letter-spacing: .055em; }
.landing-action svg { width: 25px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.landing-encyclopedia {
  display: inline-flex;
  min-width: min(100%,310px);
  margin-top: 10px;
  padding: 10px 4px;
  color: var(--forest);
  text-decoration: none;
}
.landing-encyclopedia span { display: grid; gap: 2px; font-size: 14px; font-weight: 800; }
.landing-encyclopedia small { color: var(--muted); font-family: var(--serif); font-size: 9px; font-weight: 400; letter-spacing: .055em; }
.landing-encyclopedia:hover { color: var(--forest-deep); }
.landing-assurance { margin: 10px 0 0; color: var(--muted); font-size: 10px; }
.landing-assurance span { color: var(--teal); font-size: 7px; }
.landing-step .interviewer-intro { max-width: clamp(315px,29vw,390px); }

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 20px;
  max-width: 720px;
  margin: clamp(16px, 2.6vh, 24px) 0 0;
  padding: clamp(14px, 2.2vh, 20px) 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.feature-row li { margin: 0; padding: 0; display: grid; align-content: start; gap: 6px; }
.feature-row strong { color: var(--ink); font-size: 13px; font-weight: 800; letter-spacing: .01em; }
.feature-row p {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.55;
}

.interviewer-intro { width: 100%; max-width: 430px; margin: 0; justify-self: end; }

.portrait-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 0.87;
  border: 8px solid rgba(255, 255, 255, 0.92);
  border-radius: 150px 150px 16px 16px;
  background: #c9c6bb;
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(29, 45, 39, 0.12);
}

.portrait-frame > img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }

.portrait-light {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(6, 19, 17, 0.63));
  pointer-events: none;
}

.portrait-frame figcaption {
  position: absolute;
  right: 20px;
  bottom: 18px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: white;
}

.portrait-frame figcaption span:last-child { display: grid; gap: 3px; }
.portrait-frame figcaption strong { font-family: var(--serif); font-size: 17px; font-weight: 500; }
.portrait-frame figcaption small { color: rgba(255,255,255,.72); font-size: 10px; letter-spacing: .04em; }
.live-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #83d9af; box-shadow: 0 0 0 5px rgba(131,217,175,.14); }

.interviewer-intro blockquote {
  max-width: 340px;
  margin: 21px 0 0 auto;
  padding-right: 10px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
  line-height: 1.6;
  text-align: right;
}

.setup-grid,
.history-section {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
}

.setup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 22px;
}

.setup-card,
.expect-card,
.report-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

.setup-card { padding: clamp(25px, 4vw, 42px); }
.expect-card { padding: clamp(25px, 3vw, 34px); background: var(--paper); }

.section-heading,
.report-card__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 29px;
}

.section-heading h2,
.report-card__heading h2,
.expect-card h2,
.history-heading h2 {
  margin: 7px 0 0;
  font-family: var(--serif);
  font-size: clamp(24px, 2.5vw, 31px);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.section-heading--compact { margin-bottom: 14px; }

.step-count,
.report-card__heading > span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.field-label,
.choice-field legend {
  display: block;
  margin: 0 0 10px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.025em;
}

.select-wrap { position: relative; }

.select-wrap select {
  width: 100%;
  min-height: 54px;
  appearance: none;
  padding: 12px 44px 12px 15px;
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.select-wrap > span { position: absolute; top: 15px; right: 17px; color: var(--teal); font-size: 20px; pointer-events: none; }

.choice-field { min-width: 0; margin: 24px 0 0; padding: 0; border: 0; }

.segmented-options,
.duration-options { display: grid; gap: 8px; }
.segmented-options { grid-template-columns: repeat(3, 1fr); }
.duration-options { grid-template-columns: repeat(3, 1fr); }

.option-label { position: relative; display: block; min-width: 0; }
.option-label input { position: absolute; opacity: 0; pointer-events: none; }
.option-label span {
  display: flex;
  min-height: 68px;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafbf9;
  color: var(--ink-soft);
  text-align: center;
  transition: 160ms ease;
}

.option-label span strong { font-size: 13px; }
.option-label span small { overflow: hidden; color: var(--muted); font-size: 10px; line-height: 1.35; text-overflow: ellipsis; }
.option-label:hover span { border-color: #9eb9b1; transform: translateY(-1px); }
.option-label input:checked + span { border-color: var(--teal); background: var(--teal-soft); box-shadow: inset 0 0 0 1px var(--teal); color: var(--forest); }
.option-label input:focus-visible + span { outline: 3px solid rgba(20,123,108,.3); outline-offset: 2px; }

.candidate-dossier {
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(250,251,249,.96), rgba(245,247,243,.92));
}
.candidate-dossier summary {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 15px;
  color: var(--ink-soft);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.candidate-dossier summary::-webkit-details-marker { display: none; }
.candidate-dossier summary > span:first-child { display: grid; gap: 3px; font-size: 13px; font-weight: 800; }
.candidate-dossier summary small { color: var(--teal); font-family: var(--serif); font-size: 9px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.candidate-dossier__toggle { display: grid; width: 27px; height: 27px; flex: 0 0 27px; place-items: center; border: 1px solid #aebeb8; border-radius: 50%; color: var(--teal); font-size: 17px; font-weight: 400; transition: transform 180ms ease, background 180ms ease; }
.candidate-dossier[open] .candidate-dossier__toggle { background: var(--teal-soft); transform: rotate(45deg); }
.candidate-dossier__body { padding: 3px 15px 16px; border-top: 1px solid var(--line); }
.candidate-dossier__intro { margin: 13px 0 15px; color: var(--muted); font-size: 10px; line-height: 1.65; }
.candidate-dossier__grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 12px; }
.candidate-dossier__grid--compact { margin-top: 0; }
.dossier-field { display: grid; min-width: 0; gap: 7px; }
.dossier-field > span { color: var(--ink-soft); font-size: 10px; font-weight: 800; }
.dossier-field > span small { float: right; color: var(--muted); font-size: 8px; font-weight: 500; }
.dossier-field input,
.dossier-field select,
.dossier-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: rgba(255,255,255,.94);
  color: var(--ink);
  font: inherit;
  font-size: 11px;
  line-height: 1.5;
}
.dossier-field input,
.dossier-field select { min-height: 42px; padding: 9px 11px; }
.dossier-field textarea { min-height: 82px; padding: 10px 11px; resize: vertical; }
.dossier-field input::placeholder,
.dossier-field textarea::placeholder { color: #929b96; }
.dossier-field input:focus,
.dossier-field select:focus,
.dossier-field textarea:focus { border-color: var(--teal); outline: 3px solid rgba(20,123,108,.12); }
.candidate-dossier__privacy { display: flex; align-items: flex-start; gap: 7px; margin: 13px 0 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.candidate-dossier__privacy span { display: grid; width: 15px; height: 15px; flex: 0 0 15px; place-items: center; border-radius: 50%; background: var(--teal-soft); color: var(--teal); font-size: 9px; }

.adaptive-brief {
  display: flex;
  gap: 13px;
  margin-top: 25px;
  padding: 15px;
  border-left: 3px solid var(--gold);
  border-radius: 3px 10px 10px 3px;
  background: #f8f4ea;
}

.adaptive-brief__icon { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; border-radius: 50%; background: var(--gold-soft); color: #745a32; }
.adaptive-brief strong { font-size: 13px; }
.adaptive-brief p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }

.bank-proof {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 13px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fafbf9;
}
.bank-proof > span { display: grid; width: 29px; height: 29px; flex: 0 0 29px; place-items: center; border-radius: 8px; background: var(--teal-soft); color: var(--teal); font-family: var(--serif); }
.bank-proof strong { display: block; font-size: 11px; }
.bank-proof p { margin: 3px 0 0; color: var(--muted); font-size: 9px; line-height: 1.45; }

.primary-action {
  display: flex;
  width: 100%;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  padding: 11px 18px 11px 21px;
  border: 0;
  border-radius: 10px;
  background: var(--forest);
  box-shadow: 0 13px 28px rgba(18, 59, 52, 0.2);
  color: white;
  text-align: left;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-action:hover:not(:disabled) { background: var(--forest-deep); box-shadow: 0 16px 34px rgba(18,59,52,.26); transform: translateY(-2px); }
.primary-action span { display: grid; gap: 2px; font-weight: 800; }
.primary-action small { color: rgba(255,255,255,.65); font-family: var(--serif); font-size: 10px; font-weight: 400; letter-spacing: .06em; }
.primary-action svg { width: 24px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.form-error { min-height: 18px; margin: 10px 0 0; color: var(--oxblood); font-size: 12px; }

.expect-list { display: grid; gap: 0; margin: 20px 0 0; padding: 0; list-style: none; }
.expect-list li { display: grid; grid-template-columns: 31px 1fr; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.expect-list li > span { display: grid; width: 27px; height: 27px; place-items: center; border: 1px solid #c2b393; border-radius: 50%; color: #866c3e; font-family: var(--serif); font-size: 12px; }
.expect-list strong { font-size: 13px; }
.expect-list p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

.ai-practice-warning {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 20px;
  padding: 14px 15px;
  border: 1px solid rgba(121,57,47,.28);
  border-radius: 10px;
  background: linear-gradient(135deg,#fff8f4,#f8eee8);
  color: var(--ink-soft);
}
.ai-practice-warning > span { display: grid; width: 23px; height: 23px; flex: 0 0 23px; place-items: center; border-radius: 50%; background: var(--oxblood); color: white; font-family: var(--serif); font-size: 13px; }
.ai-practice-warning p { margin: 0; font-size: 11px; line-height: 1.6; }
.ai-practice-warning strong { display: block; margin-bottom: 2px; color: var(--oxblood); font-size: 12px; }
.reality-boundary { margin: 12px 2px 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.reality-boundary strong { color: var(--ink-soft); }

.privacy-note { display: flex; gap: 13px; margin-top: 20px; padding: 15px; border-radius: 10px; background: #e9efec; }
.privacy-note svg { width: 24px; height: 24px; flex: 0 0 auto; fill: none; stroke: var(--teal); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.privacy-note p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.privacy-note strong { display: block; margin-bottom: 2px; color: var(--ink); font-size: 12px; }

.history-section { margin-top: 76px; }
.history-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 21px; }
.history-heading > p { max-width: 480px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; text-align: right; }
.history-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.history-empty { display: grid; min-height: 154px; grid-column: 1 / -1; place-items: center; align-content: center; gap: 10px; border: 1px dashed var(--line-dark); border-radius: var(--radius); color: var(--muted); text-align: center; }
.history-empty span { width: 20px; height: 20px; border: 2px solid var(--line-dark); border-top-color: var(--teal); border-radius: 50%; animation: spin 900ms linear infinite; }
.history-empty:not(.is-loading) span { display: none; }
.history-empty p { margin: 0; font-size: 13px; }

.history-item {
  display: grid;
  min-height: 154px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 7px 20px rgba(29,45,39,.045);
  text-align: left;
  transition: 160ms ease;
}
.history-item:hover { border-color: #9db5ad; transform: translateY(-2px); }
.history-item__top { display: flex; justify-content: space-between; gap: 10px; }
.history-item__top span { color: var(--teal); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.history-item__top time { color: var(--muted); font-size: 10px; }
.history-item h3 { margin: 11px 0 5px; font-family: var(--serif); font-size: 19px; font-weight: 500; }
.history-item p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.history-item__foot { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-top: 16px; }
.history-score { font-family: var(--serif); font-size: 26px; }
.history-score small { display: block; max-width: 112px; color: var(--muted); font-family: var(--sans); font-size: 8px; line-height: 1.25; }
.history-focus { max-width: 62%; color: var(--forest); font-size: 10px; font-weight: 700; text-align: right; }

/* Live room */
.session-view { min-height: calc(100vh - 140px); padding-bottom: 168px; background: #e8ebe7; }
.session-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 74px;
  align-items: center;
  gap: 18px;
  padding: 10px clamp(18px, 3.5vw, 54px);
  border-bottom: 1px solid rgba(255,255,255,.09);
  background: var(--forest-deep);
  color: white;
}
.session-identity { display: flex; align-items: center; gap: 11px; }
.session-crest { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border: 1px solid rgba(255,255,255,.26); border-radius: 50%; color: #d4bf92; font-family: var(--serif); font-size: 11px; }
.session-identity p { margin: 0 0 3px; color: rgba(255,255,255,.58); font-family: var(--serif); font-size: 10px; letter-spacing: .07em; }
.session-identity h1 { margin: 0; font-size: 13px; }
.session-meta { display: flex; align-items: center; justify-content: center; gap: 16px; }
.session-meta span { color: rgba(255,255,255,.72); font-size: 11px; }
.session-meta .time-closing-notice { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border: 1px solid rgba(229,204,147,.38); border-radius: 99px; background: rgba(212,181,113,.13); color: #ead8ae; font-size: 9px; font-weight: 800; letter-spacing: .02em; }
.session-meta .time-closing-notice::before { width: 6px; height: 6px; border-radius: 50%; background: #d8bd83; box-shadow: 0 0 0 4px rgba(216,189,131,.13); content: ""; }
.session-meta .time-closing-notice[hidden] { display: none; }
.session-meta time { min-width: 64px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.16); border-radius: 7px; font-variant-numeric: tabular-nums; font-size: 13px; text-align: center; }
.end-button { min-height: 42px; justify-self: end; padding: 8px 15px; border: 1px solid rgba(255,255,255,.22); border-radius: 8px; background: transparent; color: rgba(255,255,255,.85); font-size: 12px; font-weight: 700; }
.end-button:hover { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.07); }

.room-shell { display: grid; min-height: calc(100vh - 244px); grid-template-columns: minmax(0, 1.56fr) minmax(330px, .68fr); gap: 14px; padding: 14px; }
.room-shell.has-stimulus { grid-template-columns: minmax(380px,1.08fr) minmax(300px,.62fr) minmax(330px,.62fr); }
.interviewer-stage { position: relative; min-height: 580px; overflow: hidden; border-radius: 14px; background: #33433f; box-shadow: var(--shadow-md); isolation: isolate; }
.stage-ambient { position: absolute; inset: 0; z-index: -2; background: radial-gradient(circle at 18% 13%, rgba(239,216,173,.27), transparent 33%), linear-gradient(110deg,#2a3c38 0,#43514c 43%,#243b36 100%); }
.stage-ambient::before { position: absolute; top: 0; left: 7%; width: 35%; height: 39%; border-right: 5px solid rgba(78,55,35,.45); border-bottom: 7px solid rgba(78,55,35,.42); background: linear-gradient(135deg,rgba(213,196,164,.3),rgba(91,93,80,.1)), repeating-linear-gradient(90deg,rgba(255,255,255,.06) 0 2px,transparent 2px 8px); box-shadow: inset 0 0 0 12px rgba(63,45,31,.55); content: ""; transform: translate(-5%,-4%); }
.stage-ambient::after { position: absolute; right: 3%; bottom: -13%; width: 41%; height: 48%; border-radius: 50% 50% 0 0; background: radial-gradient(ellipse at top,#89735b 0,#3b3e37 56%,#20312d 57%); opacity: .5; content: ""; }
.stage-portrait { position: absolute; inset: 0; transform-origin: center 73%; }
.stage-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 37%; filter: saturate(.84) contrast(.96) brightness(.93); }
.stage-shade { position: absolute; inset: 0; background: linear-gradient(90deg,rgba(8,24,21,.14),transparent 45%,rgba(8,24,21,.19)), linear-gradient(180deg,transparent 62%,rgba(7,23,20,.77)); }
.interviewer-stage.is-speaking .stage-portrait { animation: breathe 3.8s ease-in-out infinite; }
.interviewer-lower-third { position: absolute; right: 25px; bottom: 25px; left: 25px; display: flex; align-items: end; justify-content: space-between; gap: 20px; color: white; }
.interviewer-lower-third h2 { margin: 0 0 4px; font-family: var(--serif); font-size: clamp(22px,2.3vw,32px); font-weight: 500; }
.interviewer-lower-third p { margin: 0; color: rgba(255,255,255,.63); font-size: 11px; }
.voice-wave { display: flex; height: 30px; align-items: center; gap: 3px; opacity: .38; }
.voice-wave i { width: 2px; height: 7px; border-radius: 3px; background: #e8d7b0; }
.interviewer-stage.is-speaking .voice-wave { opacity: 1; }
.interviewer-stage.is-speaking .voice-wave i { animation: wave 740ms ease-in-out infinite alternate; }
.interviewer-stage.is-speaking .voice-wave i:nth-child(2) { animation-delay: -520ms; }
.interviewer-stage.is-speaking .voice-wave i:nth-child(3) { animation-delay: -180ms; }
.interviewer-stage.is-speaking .voice-wave i:nth-child(4) { animation-delay: -630ms; }
.interviewer-stage.is-speaking .voice-wave i:nth-child(5) { animation-delay: -330ms; }
.interviewer-stage.is-speaking .voice-wave i:nth-child(6) { animation-delay: -80ms; }
.interviewer-state { position: absolute; top: 20px; left: 20px; z-index: 6; display: inline-flex; align-items: center; gap: 9px; padding: 9px 12px; border: 1px solid rgba(255,255,255,.16); border-radius: 99px; background: rgba(5,22,19,.54); backdrop-filter: blur(12px); color: rgba(255,255,255,.85); font-size: 11px; }
.state-orb { width: 7px; height: 7px; border-radius: 50%; background: #d0b87f; box-shadow: 0 0 0 4px rgba(208,184,127,.13); }
.interviewer-stage.is-speaking .state-orb { background: #83d9af; animation: pulse 1.4s ease-out infinite; }
.interviewer-stage.is-thinking .state-orb { animation: glow 1.5s ease-in-out infinite; }
.interviewer-stage.is-your-turn .interviewer-state {
  border-color: transparent;
  background: #f6d27a;
  color: #2a1c04;
  font-weight: 800;
}
.interviewer-stage.is-your-turn .state-orb { background: #c2410c; box-shadow: 0 0 0 4px rgba(194,65,12,.18); animation: pulse 1.2s ease-out infinite; }
.speak-prompt {
  position: absolute;
  top: 64px;
  right: 16px;
  left: 16px;
  z-index: 6;
  display: grid;
  gap: 4px;
  max-width: 520px;
  padding: 14px 16px;
  border: 2px solid rgba(246,210,122,.92);
  border-radius: 14px;
  background: linear-gradient(180deg,#fff8e4,#ffe7a8);
  box-shadow: 0 14px 32px rgba(0,0,0,.28);
  color: #3a2a08;
}
.speak-prompt[hidden] { display: none; }
.speak-prompt strong { font-size: 20px; letter-spacing: .01em; }
.speak-prompt p { margin: 0; font-size: 13px; line-height: 1.45; }
.speak-prompt.is-wait {
  max-width: 360px;
  border-color: rgba(255,255,255,.28);
  background: rgba(8,28,24,.82);
  color: rgba(255,255,255,.92);
}
.speak-prompt.is-wait strong { font-size: 15px; }
.speak-prompt.is-wait p { color: rgba(255,255,255,.72); font-size: 12px; }
.speak-prompt.is-think {
  border-color: rgba(20,123,108,.28);
  background: linear-gradient(180deg,#f3faf6,#e4f3ec);
  color: #16352d;
  animation: none;
}
.speak-prompt.is-think strong { font-size: 17px; }
.candidate-level {
  position: absolute;
  z-index: 6;
  right: 16px;
  bottom: 18px;
  left: 16px;
  display: grid;
  gap: 6px;
  max-width: 420px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 14px;
  background: rgba(6,24,21,.82);
  box-shadow: 0 12px 28px rgba(0,0,0,.28);
  color: white;
  backdrop-filter: blur(12px);
}
.candidate-level[hidden] { display: none; }
.candidate-level p {
  margin: 0;
  color: #dcc794;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}
.candidate-level__bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 36px;
}
.candidate-level__bars i {
  flex: 1;
  height: 6px;
  border-radius: 99px;
  background: rgba(255,255,255,.18);
  transition: height 80ms linear, background 80ms linear;
}
.candidate-level__bars i.is-on { background: #7ee0b0; }
.candidate-level.is-hot .candidate-level__bars i.is-on { background: #f6d27a; }
.candidate-level span { color: rgba(255,255,255,.78); font-size: 12px; font-weight: 700; }
.mic-cluster { display: grid; gap: 6px; justify-items: center; }
.voice-level {
  display: grid;
  justify-items: center;
  gap: 3px;
  min-width: 92px;
}
.voice-level[hidden] { display: none; }
.voice-level__label {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .12em;
}
.voice-level__bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 22px;
}
.voice-level__bars i {
  width: 4px;
  height: 4px;
  border-radius: 99px;
  background: #d7ddd8;
  transition: height 80ms linear, background 80ms linear;
}
.voice-level__bars i.is-on { background: var(--teal); }
.voice-level.is-hot .voice-level__bars i.is-on { background: #c47b12; }
.voice-level__status { color: var(--forest); font-size: 9px; font-weight: 700; }
.speak-prompt.is-urgent { border-color: #c2410c; background: linear-gradient(180deg,#fff1e4,#ffd0a8); }
@keyframes speakGo {
  0%, 100% { transform: translateY(0); box-shadow: 0 14px 32px rgba(0,0,0,.28); }
  50% { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(194,120,12,.28); }
}
.candidate-question-panel { position: absolute; z-index: 7; right: clamp(16px,3vw,30px); bottom: 92px; left: clamp(16px,3vw,30px); display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 20px; padding: 18px 20px; border: 1px solid rgba(232,213,171,.42); border-radius: 13px; background: linear-gradient(125deg,rgba(8,35,30,.94),rgba(20,65,56,.9)); box-shadow: 0 18px 46px rgba(0,0,0,.26); backdrop-filter: blur(16px); color: white; }
.candidate-question-panel[hidden] { display: none; }
.candidate-question-panel p { margin: 0 0 5px; color: #dcc794; font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.candidate-question-panel h3 { margin: 0; font-family: var(--serif); font-size: 23px; font-weight: 500; }
.candidate-question-panel span { display: block; max-width: 620px; margin-top: 6px; color: rgba(255,255,255,.7); font-size: 10px; line-height: 1.55; }
.candidate-question-panel button { min-height: 43px; padding: 9px 13px; border: 1px solid rgba(255,255,255,.28); border-radius: 8px; background: rgba(255,255,255,.1); color: white; font-size: 10px; font-weight: 800; white-space: nowrap; }
.candidate-question-panel button:hover:not(:disabled) { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.16); }
.reveal-question { position: absolute; right: 20px; top: 20px; min-height: 44px; padding: 9px 12px; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; background: rgba(5,22,19,.7); color: white; font-size: 11px; }
.fallback-question { position: absolute; right: 20px; bottom: 100px; left: 20px; max-width: 720px; padding: 18px; border: 1px solid rgba(255,255,255,.16); border-radius: 10px; background: rgba(6,27,23,.87); backdrop-filter: blur(14px); color: white; }
.fallback-question p:last-child { margin: 9px 0 0; font-family: var(--serif); font-size: 17px; line-height: 1.6; }
.local-video { position: absolute; top: 75px; right: 20px; width: min(23%, 180px); overflow: hidden; aspect-ratio: 4/3; border: 2px solid rgba(255,255,255,.66); border-radius: 10px; background: #17211f; box-shadow: 0 9px 26px rgba(0,0,0,.25); }
.local-video video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.local-video span { position: absolute; right: 6px; bottom: 6px; padding: 3px 5px; border-radius: 4px; background: rgba(5,20,18,.65); color: white; font-size: 9px; }

.stimulus-workbench {
  position: sticky;
  top: 88px;
  min-width: 0;
  height: clamp(420px,calc(100dvh - 190px),820px);
  align-self: start;
  padding: 22px;
  overflow: auto;
  border: 1px solid #cec8b8;
  border-radius: 14px;
  background:
    linear-gradient(rgba(255,254,248,.95),rgba(250,248,239,.98)),
    repeating-linear-gradient(0deg,transparent 0 28px,rgba(73,100,92,.055) 28px 29px);
  box-shadow: var(--shadow-sm);
  scrollbar-color: #b8c3bb transparent;
  scrollbar-width: thin;
}
.stimulus-workbench[hidden] { display: none; }
.stimulus-workbench::before { position: absolute; top: 0; bottom: 0; left: 10px; width: 1px; background: rgba(153,79,69,.18); content: ""; pointer-events: none; }
.stimulus-workbench__header { display: flex; align-items: start; justify-content: space-between; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid #d9d4c7; }
.stimulus-workbench__header p { margin: 0 0 5px; color: var(--teal); font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.stimulus-workbench__header h2 { margin: 0; font-family: var(--serif); font-size: clamp(20px,2vw,26px); font-weight: 500; line-height: 1.15; }
.stimulus-kind { flex: 0 0 auto; padding: 6px 8px; border: 1px solid rgba(20,123,108,.25); border-radius: 99px; background: var(--teal-soft); color: var(--forest); font-size: 7px; font-weight: 900; letter-spacing: .1em; white-space: nowrap; }
.stimulus-instruction { margin: 15px 0 0; padding: 11px 12px; border-left: 2px solid var(--gold); background: rgba(248,242,225,.72); color: var(--ink-soft); font-size: 10px; line-height: 1.6; }
.stimulus-content { margin-top: 17px; min-width: 0; }
.stimulus-text { margin: 0; color: var(--ink); font-family: var(--serif); font-size: 15px; line-height: 1.85; white-space: pre-line; }
.stimulus-table-wrap,.stimulus-table--compact-wrap { max-width: 100%; overflow-x: auto; border: 1px solid #d8d5cb; border-radius: 8px; background: rgba(255,255,252,.78); }
.stimulus-table { width: 100%; min-width: 360px; border-collapse: collapse; color: var(--ink-soft); font-size: 9px; font-variant-numeric: tabular-nums; }
.stimulus-table th,.stimulus-table td { padding: 9px 8px; border-right: 1px solid #e2e0d7; border-bottom: 1px solid #e2e0d7; text-align: right; vertical-align: top; }
.stimulus-table th:last-child,.stimulus-table td:last-child { border-right: 0; }
.stimulus-table tbody tr:last-child > * { border-bottom: 0; }
.stimulus-table thead th { background: #edf3ef; color: var(--forest); font-size: 8px; font-weight: 900; letter-spacing: .025em; }
.stimulus-table thead th:first-child,.stimulus-table tbody th { text-align: left; }
.stimulus-table tbody th { color: var(--ink); font-weight: 800; }
.stimulus-chart-wrap { min-width: 0; }
.stimulus-chart { display: block; width: 100%; height: auto; overflow: visible; border: 1px solid #dedbd1; border-radius: 8px; background: rgba(255,255,252,.82); }
.stimulus-chart__grid { stroke: #e5e5dd; stroke-width: 1; stroke-dasharray: 3 5; }
.stimulus-chart__tick,.stimulus-chart__axis { stroke: #89948f; stroke-width: 1.2; }
.stimulus-chart__label { fill: #737e79; font-family: var(--sans); font-size: 10px; }
.stimulus-chart__axis-title { fill: #4f5f59; font-family: var(--sans); font-size: 11px; font-weight: 700; }
.stimulus-chart__line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.stimulus-chart__line.stimulus-chart__series-0 { stroke: #147b6c; }
.stimulus-chart__line.stimulus-chart__series-1 { stroke: #a77d36; }
.stimulus-chart__line.stimulus-chart__series-2 { stroke: #6c7096; }
.stimulus-chart__line.stimulus-chart__series-3 { stroke: #a65b57; }
.stimulus-chart__point { stroke: white; stroke-width: 2; }
.stimulus-chart__point.stimulus-chart__series-0 { fill: #147b6c; }
.stimulus-chart__point.stimulus-chart__series-1 { fill: #a77d36; }
.stimulus-chart__point.stimulus-chart__series-2 { fill: #6c7096; }
.stimulus-chart__point.stimulus-chart__series-3 { fill: #a65b57; }
.stimulus-chart__legend { display: flex; flex-wrap: wrap; gap: 7px 14px; margin: 10px 0 0; padding: 0; color: var(--muted); font-size: 8px; list-style: none; }
.stimulus-chart__legend li { display: flex; align-items: center; gap: 5px; }
.stimulus-chart__legend i { width: 9px; height: 9px; border-radius: 50%; }
.stimulus-chart__legend .stimulus-chart__series-0 i { background: #147b6c; }
.stimulus-chart__legend .stimulus-chart__series-1 i { background: #a77d36; }
.stimulus-chart__legend .stimulus-chart__series-2 i { background: #6c7096; }
.stimulus-chart__legend .stimulus-chart__series-3 i { background: #a65b57; }
.stimulus-chart-data { margin-top: 12px; border-top: 1px solid #dedbd1; }
.stimulus-chart-data summary { padding: 10px 2px 8px; color: var(--teal); font-size: 9px; font-weight: 800; cursor: pointer; }
.stimulus-chart-data .stimulus-table { min-width: 320px; }
.stimulus-workbench footer { margin-top: 19px; padding-top: 12px; border-top: 1px solid #d9d4c7; color: var(--muted); font-size: 8px; line-height: 1.5; }

.notebook-panel { position: sticky; top: 88px; display: grid; min-width: 0; height: clamp(420px,calc(100dvh - 190px),820px); grid-template-rows: auto minmax(180px,1fr) auto auto; align-self: start; padding: 20px; overflow: hidden; border: 1px solid #d4d1c8; border-radius: 14px; background: #f5f2e9; box-shadow: var(--shadow-sm); }
.notebook-heading { display: flex; align-items: start; justify-content: space-between; gap: 13px; }
.notebook-heading h2 { margin: 6px 0 0; font-family: var(--serif); font-size: 21px; font-weight: 500; }
.ledger-summary { display: grid; justify-items: end; gap: 6px; }
.ledger-summary strong { padding: 6px 9px; border: 1px solid rgba(20,123,108,.24); border-radius: 99px; background: var(--teal-soft); color: var(--forest); font-size: 10px; white-space: nowrap; }
.ledger-summary span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 8px; white-space: nowrap; }
.ledger-summary span i { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.question-ledger { display: grid; min-height: 0; align-content: start; gap: 10px; margin: 16px -7px 14px 0; padding: 1px 7px 12px 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: #b8c3bb transparent; scrollbar-width: thin; }
.question-ledger__empty { display: grid; min-height: 128px; place-items: center; align-content: center; gap: 8px; padding: 18px; border: 1px dashed #c7c9c1; border-radius: 10px; color: var(--muted); text-align: center; }
.question-ledger__empty span { display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid #c8b892; border-radius: 50%; color: #866d3e; font-family: var(--serif); font-size: 10px; }
.question-ledger__empty p { max-width: 230px; margin: 0; font-size: 10px; line-height: 1.55; }
.ledger-question { position: relative; padding: 14px 14px 13px 17px; border: 1px solid #d7d6ce; border-radius: 10px; background: rgba(255,255,252,.86); box-shadow: 0 5px 15px rgba(50,58,50,.035); }
.ledger-question::before { position: absolute; top: 14px; bottom: 14px; left: 0; width: 2px; border-radius: 2px; background: #c6af7c; content: ""; }
.ledger-question.is-awaiting::before { background: var(--teal); }
.ledger-question.is-recording { border-color: #aebfb8; background: #f8fbf8; }
.ledger-question.is-complete { background: rgba(250,249,244,.76); }
.ledger-question--welcome { border-color: #cfc5aa; background: linear-gradient(135deg,rgba(255,253,246,.96),rgba(247,244,233,.92)); }
.ledger-question--welcome::before { background: #a98648; }
.ledger-question--welcome .ledger-question__label { color: #806536; }
.ledger-question--candidate-question { border-color: rgba(20,123,108,.34); background: linear-gradient(135deg,#f7fbf8,#edf5f1); }
.ledger-question--candidate-question::before { background: var(--teal); }
.ledger-question--candidate-question .ledger-question__label { color: var(--forest); }
.ledger-question--closing { border-color: #cfc5aa; background: linear-gradient(135deg,#fffdf7,#f4f0e4); }
.ledger-question--closing::before { background: #9d7c42; }
.ledger-question--closing .ledger-question__label { color: #806536; }
.ledger-question.needs-clarification { border-color: #d5bd83; background: #fffdf7; }
.ledger-question.needs-clarification::before { background: #b58a36; }
.ledger-question.is-skipped { border-color: #cbc9c0; background: rgba(247,246,241,.9); }
.ledger-question.is-skipped::before { background: #929a95; }
.ledger-question.is-skipped .ledger-question__status { color: #69736f; }
.ledger-question__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ledger-question__label { color: var(--teal); font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.ledger-question__status { color: var(--muted); font-size: 8px; font-weight: 700; white-space: nowrap; }
.ledger-question.is-recording .ledger-question__status { color: var(--teal); }
.ledger-question.is-complete .ledger-question__status { color: #6d5a35; }
.ledger-question.is-unanswered::before { background: #9ca49f; }
.ledger-question.is-unanswered .ledger-question__status { color: #7b847f; }
.ledger-question__text { margin: 9px 0 0; color: var(--ink); font-family: var(--serif); font-size: 13px; line-height: 1.55; white-space: pre-wrap; }
.ledger-question__text .inline-math,
.ledger-question-hint__text .inline-math {
  display: inline-block;
  max-width: 100%;
  vertical-align: middle;
  white-space: normal;
}
.ledger-question__text .katex,
.ledger-question-hint__text .katex {
  font-size: 1.05em;
}
.ledger-welcome-bridge { margin-top: 10px; padding-top: 9px; border-top: 1px solid rgba(128,101,54,.18); }
.ledger-welcome-bridge__label { display: block; color: #806536; font-size: 8px; font-weight: 900; letter-spacing: .08em; }
.ledger-welcome-bridge__text { margin: 4px 0 0; color: var(--ink-soft); font-family: var(--serif); font-size: 11px; line-height: 1.5; }
.ledger-clarifications { display: grid; gap: 7px; margin-top: 11px; }
.ledger-clarification { padding: 9px 10px; border: 1px solid rgba(181,138,54,.28); border-radius: 8px; background: rgba(250,244,226,.72); }
.ledger-clarification__label { display: block; color: #84642c; font-size: 8px; font-weight: 900; letter-spacing: .08em; }
.ledger-clarification__text { margin: 4px 0 0; color: var(--ink-soft); font-family: var(--serif); font-size: 11px; line-height: 1.5; }
.ledger-question-hints { display: grid; gap: 7px; margin-top: 11px; }
.ledger-question-hint { padding: 9px 10px; border-left: 2px solid #b9975c; border-radius: 0 8px 8px 0; background: rgba(250,244,226,.68); }
.ledger-question-hint__label { display: block; color: #84642c; font-size: 8px; font-weight: 900; letter-spacing: .08em; }
.ledger-question-hint__text { margin: 4px 0 0; color: var(--ink-soft); font-family: var(--serif); font-size: 11px; line-height: 1.5; }
.ledger-answer-mark { display: flex; align-items: center; gap: 9px; margin-top: 11px; padding-top: 9px; border-top: 1px solid #e2e1d9; color: var(--muted); font-size: 8px; }
.ledger-answer-mark[hidden] { display: none; }
.ledger-answer-mark__ink { display: flex; min-width: 70px; flex: 1; flex-direction: column; gap: 3px; }
.ledger-answer-mark__ink i { display: block; height: 2px; border-radius: 99px; background: #55746d; opacity: .46; transform-origin: left; }
.ledger-answer-mark__ink i:nth-child(1) { width: 92%; }
.ledger-answer-mark__ink i:nth-child(2) { width: 73%; }
.ledger-answer-mark__ink i:nth-child(3) { width: 84%; }
.ledger-question.is-recording .ledger-answer-mark__ink i { animation: ledgerInk 1.4s ease-in-out infinite alternate; }
.ledger-question.is-recording .ledger-answer-mark__ink i:nth-child(2) { animation-delay: -700ms; }
.ledger-question.is-recording .ledger-answer-mark__ink i:nth-child(3) { animation-delay: -350ms; }
.live-note-card { display: grid; grid-template-columns: minmax(112px,.72fr) minmax(120px,1fr); align-items: center; gap: 13px; padding: 12px; border: 1px solid #d8d2c4; border-radius: 10px; background: rgba(255,253,245,.67); }
.notebook-paper { position: relative; min-height: 330px; margin-top: 21px; overflow: hidden; border: 1px solid #d8d2c4; border-radius: 6px 16px 7px 6px; background: #fffdf5; box-shadow: 0 16px 28px rgba(73,65,45,.1), inset 27px 0 0 #f6eedf; }
.notebook-paper--compact { min-height: 112px; margin-top: 0; box-shadow: 0 7px 18px rgba(73,65,45,.08),inset 16px 0 0 #f6eedf; }
.notebook-paper::before { position: absolute; top: 0; bottom: 0; left: 27px; width: 1px; background: rgba(163,94,80,.24); content: ""; }
.notebook-paper--compact::before { left: 16px; }
.paper-lines,.ink-marks { position: absolute; inset: 0; width: 100%; height: 100%; }
.paper-lines path { fill: none; stroke: #dcded7; stroke-width: 1; }
.ink-marks path { fill: none; stroke: #294c48; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.1; opacity: .76; stroke-dasharray: 900; stroke-dashoffset: 900; animation: writeLine 1.25s ease-out forwards; }
.paper-date { position: absolute; top: 8px; right: 9px; color: #aaa99f; font-family: var(--serif); font-size: 7px; }
.pen-nib { position: absolute; z-index: 4; top: 15%; left: 60%; width: 30px; filter: drop-shadow(4px 8px 6px rgba(50,40,25,.22)); transform: rotate(-37deg); transition: top .65s ease, left .8s ease; }
.pen-body { fill: #b9975c; stroke: #6e5834; stroke-width: 2; }
.pen-detail { fill: none; stroke: #5d4b2d; stroke-width: 2; }
.pen-nib circle { fill: #263a37; }
.notebook-paper.is-writing .pen-nib { animation: notePen 1.1s ease-in-out infinite alternate; }
.notebook-copy { min-width: 0; margin-top: 0; }
.notebook-copy strong { font-family: var(--serif); font-size: 13px; font-weight: 500; }
.notebook-copy p { margin: 5px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.privacy-strip { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 11px; padding-top: 11px; border-top: 1px solid #dbd6ca; color: var(--muted); font-size: 9px; }
.privacy-strip span { display: inline-flex; align-items: center; gap: 5px; }
.privacy-strip i { display: grid; width: 14px; height: 14px; place-items: center; border: 1px solid #9baaa4; border-radius: 50%; color: var(--teal); font-size: 11px; font-style: normal; }

.session-controls { position: fixed; z-index: 30; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: minmax(150px,1fr) auto minmax(150px,1fr); align-items: center; gap: 20px; padding: 13px clamp(17px,3vw,44px) max(13px,env(safe-area-inset-bottom)); border-top: 1px solid rgba(15,42,37,.12); background: rgba(252,252,248,.94); box-shadow: 0 -10px 38px rgba(26,39,35,.09); backdrop-filter: blur(18px); }
.control-status { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 11px; }
.connection-dot { width: 7px; height: 7px; border-radius: 50%; background: #ae8b51; }
.connection-dot.is-online { background: var(--teal); box-shadow: 0 0 0 4px rgba(20,123,108,.12); }
.connection-dot.is-error { background: #a04d47; }
.connection-dot.is-ended { background: #8a8378; }
.primary-controls { display: flex; align-items: center; justify-content: center; gap: 11px; }
.round-control { display: grid; min-width: 72px; min-height: 60px; place-items: center; align-content: center; gap: 3px; border: 1px solid var(--line); border-radius: 11px; background: white; color: var(--muted); }
.round-control svg { width: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.round-control span { font-size: 9px; }
.round-control[aria-pressed="true"] { border-color: var(--teal); background: var(--teal-soft); color: var(--forest); }
.mic-control[aria-pressed="true"] { box-shadow: 0 0 0 5px rgba(20,123,108,.08); }
.finish-turn { display: grid; min-width: 176px; min-height: 60px; place-items: center; align-content: center; gap: 2px; padding: 8px 20px; border: 0; border-radius: 11px; background: var(--forest); color: white; }
.finish-turn span { font-size: 13px; font-weight: 800; }
.finish-turn small { color: rgba(255,255,255,.6); font-size: 9px; }
.finish-turn:not(:disabled) {
  opacity: 1;
  box-shadow: 0 0 0 4px rgba(18, 92, 64, .22);
  animation: finishReady 1.8s ease-in-out infinite;
}
@keyframes finishReady {
  0%, 100% { box-shadow: 0 0 0 4px rgba(18, 92, 64, .18); }
  50% { box-shadow: 0 0 0 8px rgba(18, 92, 64, .08); }
}
.skip-question-wrap { position: relative; }
.skip-question { display: grid; min-width: 138px; min-height: 60px; place-items: center; align-content: center; gap: 2px; padding: 8px 13px; border: 1px solid #c9c5b9; border-radius: 11px; background: #fbfaf5; color: var(--ink-soft); }
.skip-question span { font-size: 11px; font-weight: 800; }
.skip-question small { color: var(--muted); font-size: 8px; }
.skip-question:hover:not(:disabled) { border-color: #a99770; background: #fffdf6; color: #6b5732; }
.skip-question-confirm { position: absolute; z-index: 8; bottom: calc(100% + 13px); left: 50%; width: min(280px,calc(100vw - 26px)); padding: 14px; border: 1px solid #d0c3a3; border-radius: 11px; background: #fffdf7; box-shadow: var(--shadow-md); transform: translateX(-50%); }
.skip-question-confirm[hidden] { display: none; }
.skip-question-confirm::after { position: absolute; top: 100%; left: 50%; width: 11px; height: 11px; border-right: 1px solid #d0c3a3; border-bottom: 1px solid #d0c3a3; background: #fffdf7; content: ""; transform: translate(-50%,-6px) rotate(45deg); }
.skip-question-confirm p { margin: 0; color: var(--ink); font-family: var(--serif); font-size: 12px; line-height: 1.5; text-align: center; }
.skip-question-confirm > div { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 11px; }
.skip-question-confirm button { min-height: 37px; border: 1px solid var(--line-dark); border-radius: 7px; background: white; color: var(--ink-soft); font-size: 10px; font-weight: 800; }
.skip-question-confirm button:last-child { border-color: #85693a; background: #85693a; color: white; }
.text-fallback { justify-self: end; position: relative; }
.text-fallback__toggle {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--forest);
  border-radius: 10px;
  background: #e7f1ec;
  color: var(--forest);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.text-fallback__toggle:hover { background: #d7ebe3; }
.text-fallback__toggle[aria-expanded="true"] { background: var(--forest); color: white; }
.text-fallback__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 14px);
  z-index: 40;
  width: min(390px, calc(100vw - 28px));
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  box-shadow: var(--shadow-md);
}
.text-fallback__panel[hidden] { display: none; }
.text-fallback__toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.text-fallback__toolbar p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.text-fallback__toolbar button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: #f7f6f1;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}
.text-fallback textarea { width: 100%; resize: vertical; padding: 11px; border: 1px solid var(--line-dark); border-radius: 8px; color: var(--ink); font-size: 13px; line-height: 1.5; }
.text-fallback form > button[type="submit"] {
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  border: 0;
  border-radius: 8px;
  background: var(--forest);
  color: white;
  font-size: 12px;
  font-weight: 800;
}
.text-fallback form > button[type="submit"]:not(:disabled) { opacity: 1; }

/* Report */
.report-view { padding-bottom: 70px; background: #edf0ec; }
.report-header { display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 20px; padding: 12px clamp(20px,4vw,58px); border-bottom: 1px solid var(--line); background: white; }
.report-brand { font-weight: 800; }
.report-brand img { width: 34px; height: 34px; border-radius: 9px; }
.report-actions { display: flex; gap: 8px; }
.report-actions button { min-height: 42px; padding: 9px 14px; border: 1px solid var(--line-dark); border-radius: 8px; background: white; font-size: 11px; font-weight: 800; }
.report-actions button:first-child { border-color: var(--forest); background: var(--forest); color: white; }
.report-document { width: min(1180px,calc(100% - 38px)); margin: 34px auto 0; }
.report-cover { display: flex; min-height: 265px; align-items: center; justify-content: space-between; gap: 36px; padding: clamp(30px,5vw,60px); overflow: hidden; border-radius: 17px; background: radial-gradient(circle at 79% -30%,rgba(204,181,126,.32),transparent 48%),var(--forest-deep); box-shadow: var(--shadow-md); color: white; }
.report-cover__copy h1 { margin: 17px 0 8px; font-family: var(--serif); font-size: clamp(37px,5vw,62px); font-weight: 400; letter-spacing: -.045em; }
.report-cover__copy > p:not(.eyebrow) { margin: 0; color: rgba(255,255,255,.61); font-size: 13px; }
.report-verdict { display: inline-flex; margin-top: 24px; padding: 8px 11px; border: 1px solid rgba(224,199,142,.35); border-radius: 99px; background: rgba(225,202,148,.1); color: #e8d5aa; font-size: 11px; }
.score-medallion { position: relative; display: grid; width: 170px; height: 170px; flex: 0 0 170px; place-items: center; }
.score-medallion svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.score-track,.score-arc { fill: none; stroke-width: 5; }
.score-track { stroke: rgba(255,255,255,.12); }
.score-arc { stroke: #d8bd83; stroke-linecap: round; stroke-dasharray: 314.16; stroke-dashoffset: 314.16; transition: stroke-dashoffset 1s ease; }
.score-medallion div { display: grid; place-items: center; }
.score-medallion strong { font-family: var(--serif); font-size: 52px; font-weight: 400; line-height: .92; }
.score-medallion span { max-width: 102px; margin-top: 5px; color: rgba(255,255,255,.55); font-size: 10px; line-height: 1.35; text-align: center; }
.score-medallion.is-unscored .score-arc { opacity: .18; }
.report-grid { display: grid; gap: 16px; margin-top: 16px; }
.report-grid--overview { grid-template-columns: minmax(0,1.08fr) minmax(0,.92fr); }
.report-grid--next { grid-template-columns: minmax(0,1.25fr) minmax(300px,.75fr); }
.report-stack { display: grid; gap: 16px; }
.report-card { padding: clamp(23px,3vw,34px); }
.report-card__heading { margin-bottom: 20px; }
.report-card__heading p,.feedback-column > p { margin: 0; color: var(--teal); font-size: 9px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.report-card__heading h2,.feedback-column h2 { margin: 6px 0 0; font-size: 23px; }
.radar-wrap { display: grid; min-height: 310px; place-items: center; margin-top: -12px; }
.score-radar { width: min(100%,420px); overflow: visible; }
.score-radar .grid { fill: none; stroke: #dce1dc; stroke-width: 1; }
.score-radar .axis { stroke: #e4e7e3; stroke-width: 1; }
.score-radar .area { fill: rgba(20,123,108,.18); stroke: var(--teal); stroke-width: 2; }
.score-radar .point { fill: var(--forest); stroke: white; stroke-width: 2; }
.score-radar text { fill: var(--muted); font-family: var(--sans); font-size: 9px; }
.score-radar .unscored-note { fill: #7b847f; font-size: 10px; font-weight: 700; }
.dimension-bars { display: grid; gap: 8px; }
.dimension-detail { overflow: hidden; border: 1px solid #e0e4df; border-radius: 9px; background: #fbfcfa; }
.dimension-detail > summary { list-style: none; }
.dimension-detail > summary::-webkit-details-marker { display: none; }
.dimension-row { display: grid; grid-template-columns: minmax(110px,.8fr) minmax(90px,1fr) 28px 12px; align-items: center; gap: 10px; }
.dimension-label { overflow: hidden; font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.dimension-detail > .dimension-row { min-height: 44px; padding: 8px 10px; cursor: pointer; }
.dimension-detail > .dimension-row:hover { background: #f4f7f4; }
.dimension-detail > .dimension-row::after { color: var(--teal); font-size: 11px; content: "+"; }
.dimension-detail[open] > .dimension-row::after { content: "−"; }
.dimension-track { height: 6px; overflow: hidden; border-radius: 99px; background: #e7e9e5; }
.dimension-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--teal),#4e9c8e); transition: width .8s ease; }
.dimension-row strong { font-family: var(--serif); font-size: 15px; font-weight: 500; text-align: right; }
.dimension-detail.is-unscored .dimension-track { background: repeating-linear-gradient(90deg,#e7e9e5 0 7px,#f5f6f3 7px 12px); }
.dimension-detail.is-unscored .dimension-row strong { color: var(--muted); }
.dimension-detail__body { display: grid; gap: 12px; padding: 2px 12px 14px; border-top: 1px solid #e6e9e5; }
.dimension-detail__body section { padding-top: 11px; }
.dimension-detail__body h3 { margin: 0 0 5px; color: var(--teal); font-size: 8px; letter-spacing: .09em; text-transform: uppercase; }
.dimension-detail__body p,.dimension-detail__body li { margin: 0; color: var(--ink-soft); font-size: 10px; line-height: 1.55; }
.dimension-detail__body ul { display: grid; gap: 5px; margin: 0; padding-left: 16px; }
.dimension-detail__body li.is-empty { color: var(--muted); font-style: italic; }
.report-summary { margin: 0; color: var(--ink-soft); font-family: var(--serif); font-size: 17px; line-height: 1.75; }
.communication-card { padding-bottom: 27px; }
.communication-metrics { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 7px; }
.communication-metric { display: grid; min-width: 0; place-items: center; gap: 5px; padding: 10px 4px; border: 1px solid var(--line); border-radius: 8px; background: #fafbf9; text-align: center; }
.communication-metric strong { font-family: var(--serif); font-size: 21px; font-weight: 500; }
.communication-metric span { width: 100%; overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.communication-metric small { color: #8a928e; font-size: 7px; line-height: 1.2; }
.communication-metric.is-unscored { background: repeating-linear-gradient(135deg,#fafbf9 0 8px,#f4f6f2 8px 13px); }
.split-feedback { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 0; overflow: hidden; }
.feedback-column { padding: 28px; }
.feedback-column + .feedback-column { border-left: 1px solid var(--line); background: #faf8f2; }
.feedback-column h2 { font-family: var(--serif); font-weight: 500; }
.feedback-column ul { display: grid; gap: 10px; margin: 17px 0 0; padding: 0; list-style: none; }
.feedback-column li { position: relative; padding-left: 17px; color: var(--ink-soft); font-size: 11px; line-height: 1.6; }
.feedback-column li::before { position: absolute; top: .65em; left: 0; width: 6px; height: 6px; border: 1px solid var(--teal); border-radius: 50%; content: ""; }
.feedback-column--growth li::before { border-color: var(--gold); border-radius: 0; transform: rotate(45deg); }
.question-analysis { margin-top: 16px; }
.question-review { display: grid; gap: 11px; }
.review-item { border: 1px solid var(--line); border-radius: 10px; background: #fbfcfa; }
.review-item summary { display: grid; min-height: 58px; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; padding: 11px 14px; list-style: none; }
.review-item summary::-webkit-details-marker { display: none; }
.review-number { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: var(--teal-soft); color: var(--teal); font-size: 10px; font-weight: 800; }
.review-item summary strong { overflow: hidden; font-family: var(--serif); font-size: 14px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.review-item summary > span:last-child { color: var(--muted); font-size: 11px; }
.review-body { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; padding: 0 20px 20px 60px; }
.review-body div { min-width: 0; }
.review-body h3 { margin: 0 0 6px; color: var(--teal); font-size: 9px; letter-spacing: .09em; text-transform: uppercase; }
.review-body p { margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.65; }
.next-round-card { background: linear-gradient(135deg,#fff 0,#f5f5ee 100%); }
.next-round-card > h2 { margin: 7px 0 12px; font-family: var(--serif); font-size: 29px; font-weight: 500; }
.next-round-card > p:not(.section-kicker) { margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.7; }
.target-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.target-chips span { padding: 7px 9px; border: 1px solid #c7b993; border-radius: 99px; background: #faf6eb; color: #6b5732; font-size: 10px; font-weight: 700; }
.next-round-questions { display: grid; gap: 10px; margin-top: 18px; padding: 15px; border: 1px solid rgba(20,123,108,.2); border-radius: 11px; background: rgba(237,246,242,.58); }
.next-round-questions[hidden] { display: none; }
.next-round-questions__heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.next-round-questions__heading span { color: var(--teal); font-size: 8px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.next-round-questions__heading h3 { margin: 0; color: var(--ink); font-family: var(--serif); font-size: 17px; font-weight: 500; }
.next-round-question-list { display: grid; gap: 8px; }
.next-round-question { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 10px 11px; border-radius: 8px; background: rgba(255,255,255,.82); }
.next-round-question span { min-width: 28px; padding-top: 2px; color: var(--teal); font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.next-round-question p { margin: 0; color: var(--ink); font-family: var(--serif); font-size: 12px; line-height: 1.55; }
.next-exercises { display: grid; gap: 8px; margin-top: 18px; }
.next-exercise { display: grid; grid-template-columns: 24px 1fr; gap: 9px; padding: 11px; border-radius: 8px; background: rgba(222,230,224,.55); }
.next-exercise span { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 6px; background: white; color: var(--teal); font-family: var(--serif); font-size: 11px; }
.next-exercise p { margin: 1px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.5; }
.trend-card { min-width: 0; }
.trend-chart { position: relative; min-height: 220px; overflow: hidden; border-bottom: 1px solid var(--line); }
.trend-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.trend-chart .trend-grid { stroke: #e5e8e4; stroke-width: 1; stroke-dasharray: 3 4; }
.trend-chart .trend-line { fill: none; stroke: var(--teal); stroke-width: 2.5; }
.trend-chart .trend-area { fill: url(#trendFill); }
.trend-chart .trend-point { fill: white; stroke: var(--teal); stroke-width: 2.5; }
.trend-chart text { fill: var(--muted); font-family: var(--sans); font-size: 9px; }
.trend-empty { display: grid; min-height: 210px; place-items: center; color: var(--muted); font-size: 11px; text-align: center; }
.trend-note { margin: 15px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.report-footnote { display: flex; justify-content: space-between; gap: 20px; margin-top: 24px; padding-top: 18px; border-top: 1px solid #cfd4ce; color: var(--muted); font-size: 9px; }
.report-footnote span { color: var(--teal); font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.report-footnote p { margin: 0; text-align: right; }

/* Dialog and busy states */
.confirm-dialog { width: min(440px,calc(100% - 30px)); padding: 0; border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: 0 30px 90px rgba(10,30,26,.3); }
.confirm-dialog::backdrop { background: rgba(9,27,23,.58); backdrop-filter: blur(3px); }
.confirm-dialog form { padding: 31px; text-align: center; }
.dialog-mark { display: grid; width: 40px; height: 40px; margin: 0 auto; place-items: center; border-radius: 50%; background: var(--gold-soft); color: #7f6638; font-family: var(--serif); font-size: 22px; }
.confirm-dialog h2 { margin: 17px 0 8px; font-family: var(--serif); font-size: 25px; font-weight: 500; }
.confirm-dialog p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.confirm-dialog form > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 22px; }
.confirm-dialog button { min-height: 46px; border: 1px solid var(--line-dark); border-radius: 8px; background: white; font-size: 12px; font-weight: 800; }
.confirm-dialog button:last-child { border-color: var(--forest); background: var(--forest); color: white; }
.busy-overlay { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(10,31,27,.72); backdrop-filter: blur(8px); }
.busy-card { width: min(370px,100%); padding: 34px; border: 1px solid rgba(255,255,255,.12); border-radius: 15px; background: #f9faf6; box-shadow: 0 25px 80px rgba(0,0,0,.25); text-align: center; }
.thinking-mark { display: flex; height: 34px; align-items: center; justify-content: center; gap: 5px; }
.thinking-mark i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); animation: thinking 1s ease-in-out infinite; }
.thinking-mark i:nth-child(2) { animation-delay: 140ms; }
.thinking-mark i:nth-child(3) { animation-delay: 280ms; }
.busy-card strong { display: block; margin-top: 14px; font-family: var(--serif); font-size: 20px; font-weight: 500; }
.busy-card p { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.toast { position: fixed; z-index: 120; right: 18px; bottom: 18px; max-width: min(390px,calc(100% - 36px)); padding: 12px 15px; border-radius: 9px; background: var(--forest-deep); box-shadow: var(--shadow-md); color: white; font-size: 11px; line-height: 1.5; opacity: 0; pointer-events: none; transform: translateY(12px); transition: 180ms ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(131,217,175,.42); } 100% { box-shadow: 0 0 0 9px rgba(131,217,175,0); } }
@keyframes glow { 50% { opacity: .35; transform: scale(.75); } }
@keyframes breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.008) translateY(-1px); } }
@keyframes wave { to { height: 27px; } }
@keyframes thinking { 0%,100% { opacity: .25; transform: translateY(3px); } 50% { opacity: 1; transform: translateY(-3px); } }
@keyframes writeLine { to { stroke-dashoffset: 0; } }
@keyframes notePen { from { transform: rotate(-37deg) translate(0,0); } to { transform: rotate(-34deg) translate(11px,3px); } }
@keyframes ledgerInk { from { opacity: .25; transform: scaleX(.72); } to { opacity: .63; transform: scaleX(1); } }

@media (max-width: 1250px) and (min-width: 861px) {
  .room-shell.has-stimulus { grid-template-columns: minmax(0,1.35fr) minmax(330px,.65fr); }
  .room-shell.has-stimulus .interviewer-stage { grid-column: 1; grid-row: 1; }
  .room-shell.has-stimulus .stimulus-workbench { position: relative; top: auto; height: auto; max-height: 560px; grid-column: 1; grid-row: 2; }
  .room-shell.has-stimulus .notebook-panel { grid-column: 2; grid-row: 1 / span 2; }
}

@media (max-width: 1060px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-nav { order: 3; grid-column: 1 / -1; width: 100%; }
  .site-header { padding-bottom: 10px; }
  .header-seal { grid-column: 2; grid-row: 1; }
  .hero-shell { grid-template-columns: minmax(0,1fr) minmax(310px,.58fr); }
  .room-shell { grid-template-columns: minmax(0,1.35fr) minmax(300px,.65fr); }
  .notebook-panel { padding: 18px; }
  .notebook-paper--compact { min-height: 105px; }
  .session-controls { grid-template-columns: 130px auto 130px; }
}

@media (max-width: 860px) {
  .interview-flow { padding-inline: 12px; }
  .interview-flow button { gap: 6px; padding-inline: 5px; }
  .interview-flow li:not(:last-child)::after { right: -14%; left: 84%; }
  .configure-step { padding-top: 28px; }
  .configure-intro { grid-template-columns: 1fr; gap: 18px; }
  .back-step { width: max-content; }
  .hero-shell { grid-template-columns: 1fr; padding-bottom: 54px; }
  .landing-step .hero-shell { min-height: 0; }
  .feature-row { grid-template-columns: 1fr; max-width: none; }
  .interviewer-intro { width: min(430px,88%); justify-self: center; }
  .setup-grid { grid-template-columns: 1fr; }
  .history-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .session-view { padding-bottom: 200px; }
  .session-bar { grid-template-columns: 1fr auto; }
  .session-meta { order: 3; grid-column: 1/-1; justify-content: flex-start; padding-top: 9px; border-top: 1px solid rgba(255,255,255,.1); }
  .end-button { grid-column: 2; grid-row: 1; }
  .room-shell { min-height: 0; grid-template-columns: 1fr; }
  .room-shell.has-stimulus { grid-template-columns: 1fr; }
  .room-shell.has-stimulus .interviewer-stage,
  .room-shell.has-stimulus .stimulus-workbench,
  .room-shell.has-stimulus .notebook-panel { position: static; height: auto; max-height: none; grid-column: auto; grid-row: auto; }
  .stimulus-workbench { min-height: 0; }
  .interviewer-stage { min-height: min(67vh,620px); }
  .notebook-panel { position: static; height: auto; min-height: 500px; grid-template-rows: auto minmax(220px,52vh) auto auto; }
  .notebook-paper--compact { min-height: 112px; }
  .session-controls { grid-template-columns: 1fr auto; }
  .primary-controls { grid-row: 1 / span 2; grid-column: 2; }
  .text-fallback { justify-self: start; }
  .text-fallback__panel { right: auto; left: 0; }
  .report-grid--overview,.report-grid--next { grid-template-columns: 1fr; }
  .report-stack { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .report-stack .communication-card { grid-column: 1 / -1; }
  .split-feedback { grid-template-columns: 1fr; }
  .feedback-column + .feedback-column { border-top: 1px solid var(--line); border-left: 0; }
}

@media (max-width: 620px) {
  .site-header { min-height: 66px; grid-template-columns: 1fr auto; gap: 12px; padding: 10px 14px; }
  .brand__mark { width: 34px; height: 34px; flex-basis: 34px; }
  .brand__copy small,.header-seal { display: none; }
  .site-nav { display: grid; grid-template-columns: repeat(4,1fr); gap: 2px; overflow-x: auto; }
  .site-nav a { display: grid; min-height: 44px; place-items: center; padding: 8px 5px; font-size: 11px; }
  .interview-flow { height: 58px; min-height: 58px; padding-inline: 6px; overflow: hidden; }
  .interview-flow ol { min-height: 0; }
  .interview-flow button { min-height: 0; gap: 4px; padding: 5px 2px; }
  .interview-flow__number { width: 22px; height: 22px; flex-basis: 22px; font-size: 8px; }
  .interview-flow button > span:last-child { font-size: 9px; }
  .interview-flow small { display: none; }
  .interview-flow li:not(:last-child)::after { top: 28px; right: -11%; left: 89%; }
  .view { min-height: calc(100vh - 118px); }
  .configure-step { padding: 24px 0 60px; }
  .configure-intro { width: min(100% - 24px,1180px); }
  .configure-intro h1 { font-size: 34px; }
  .hero-shell { gap: 43px; padding: 59px 20px 48px; }
  .landing-step .hero-shell { padding-top: 42px; }
  .hero-shell::before { top: 24px; left: 20px; height: 30px; }
  .hero-copy h1 { margin-top: 17px; font-size: clamp(32px,10vw,48px); }
  .hero-lede { font-size: 15px; line-height: 1.72; }
  .feature-row { grid-template-columns: 1fr; gap: 14px; }
  .interviewer-intro { width: 88%; }
  .interviewer-intro blockquote { text-align: left; }
  .setup-grid,.history-section { width: min(100% - 24px,1180px); }
  .setup-card,.expect-card { padding: 22px 17px; }
  .candidate-dossier__grid { grid-template-columns: 1fr; }
  .segmented-options,.duration-options { grid-template-columns: 1fr; }
  .option-label span { min-height: 54px; flex-direction: row; align-items: center; justify-content: space-between; text-align: left; }
  .option-label span small { max-width: 55%; text-align: right; }
  .history-section { margin-top: 54px; }
  .history-heading { display: block; }
  .history-heading > p { margin-top: 8px; text-align: left; }
  .history-list { grid-template-columns: 1fr; }
  .session-view { padding-bottom: 255px; }
  .session-bar { padding: 9px 12px; }
  .session-identity p { display: none; }
  .session-identity h1 { font-size: 11px; }
  .session-meta { gap: 10px; overflow-x: auto; }
  .session-meta span { font-size: 10px; white-space: nowrap; }
  .end-button { min-height: 44px; padding-inline: 11px; }
  .room-shell { gap: 9px; padding: 8px; }
  .stimulus-workbench { padding: 18px 16px; border-radius: 11px; }
  .stimulus-workbench__header { gap: 9px; }
  .stimulus-workbench__header h2 { font-size: 21px; }
  .stimulus-instruction { margin-top: 12px; }
  .stimulus-content { margin-top: 13px; }
  .stimulus-text { font-size: 14px; line-height: 1.75; }
  .stimulus-table th,.stimulus-table td { padding: 8px 7px; }
  .interviewer-stage { min-height: 57vh; border-radius: 11px; }
  .interviewer-lower-third { right: 16px; bottom: 18px; left: 16px; }
  .interviewer-state { top: 12px; left: 12px; }
  .speak-prompt { top: 52px; right: 12px; left: 12px; padding: 12px 14px; }
  .speak-prompt strong { font-size: 17px; }
  .candidate-question-panel { right: 12px; bottom: 78px; left: 12px; grid-template-columns: 1fr; gap: 12px; padding: 15px; }
  .candidate-question-panel h3 { font-size: 20px; }
  .candidate-question-panel button { width: 100%; }
  .reveal-question { top: 61px; right: 12px; }
  .fallback-question { right: 12px; bottom: 82px; left: 12px; }
  .local-video { top: 59px; right: 12px; width: 28%; }
  .notebook-panel { min-height: 520px; grid-template-rows: auto minmax(230px,48vh) auto auto; padding: 16px; }
  .notebook-heading { display: flex; }
  .ledger-summary { gap: 4px; }
  .ledger-summary strong { font-size: 9px; }
  .ledger-summary span { font-size: 7px; }
  .question-ledger { margin-top: 13px; }
  .ledger-question__text { font-size: 13px; }
  .notebook-paper--compact { min-height: 100px; }
  .live-note-card { grid-template-columns: minmax(102px,.64fr) 1fr; }
  .session-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 12px; padding: 9px 10px max(10px,env(safe-area-inset-bottom)); }
  .control-status { width: 100%; justify-content: center; }
  .primary-controls { order: 2; width: 100%; gap: 7px; }
  .round-control { min-width: 62px; min-height: 57px; }
  .finish-turn { min-width: 0; flex: 1; min-height: 57px; padding-inline: 10px; }
  .skip-question { min-width: 85px; min-height: 57px; padding-inline: 8px; }
  .skip-question small { display: none; }
  .skip-question-confirm { position: fixed; right: 12px; bottom: 218px; left: 12px; width: auto; transform: none; }
  .skip-question-confirm::after { display: none; }
  .text-fallback { order: 3; max-width: 100%; }
  .text-fallback__toggle { width: 100%; }
  .text-fallback__panel { position: fixed; right: 10px; bottom: 220px; left: 10px; width: auto; }
  .report-header { align-items: flex-start; padding: 11px 13px; }
  .report-brand { font-size: 12px; }
  .report-brand img { width: 30px; height: 30px; }
  .report-actions { display: grid; }
  .report-actions button { min-height: 40px; padding: 7px 9px; font-size: 9px; }
  .report-document { width: min(100% - 20px,1180px); margin-top: 10px; }
  .report-cover { min-height: 380px; flex-direction: column; align-items: flex-start; padding: 28px 22px; }
  .score-medallion { width: 132px; height: 132px; flex-basis: 132px; align-self: flex-end; margin-top: -20px; }
  .score-medallion strong { font-size: 42px; }
  .report-stack { grid-template-columns: 1fr; }
  .report-stack .communication-card { grid-column: auto; }
  .communication-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .report-card { padding: 22px 17px; }
  .radar-wrap { min-height: 275px; overflow: hidden; }
  .dimension-row { grid-template-columns: minmax(95px,.9fr) minmax(65px,1fr) 25px 11px; gap: 7px; }
  .review-item summary { grid-template-columns: 30px minmax(0,1fr) auto; padding: 10px; }
  .review-body { grid-template-columns: 1fr; padding: 0 14px 16px 54px; }
  .report-footnote { display: block; }
  .report-footnote p { margin-top: 7px; text-align: left; }
}

@media (min-width: 1100px) {
  body[data-view="landing"] { height: 100dvh; overflow-y: auto; }
  body[data-view="landing"] main,
  body[data-view="landing"] .setup-view,
  body[data-view="landing"] .landing-step { min-height: calc(100dvh - 140px); height: auto; }
  body[data-view="landing"] .hero-shell { min-height: calc(100dvh - 140px); height: auto; }
}

@media (max-width: 360px) {
  .brand__copy strong { font-size: 13px; }
  .site-nav a { font-size: 10px; }
  .hero-shell { padding-inline: 16px; }
  .hero-copy h1 { font-size: 32px; }
  .feature-row { grid-template-columns: 1fr; }
  .setup-grid,.history-section { width: calc(100% - 16px); }
  .section-heading { display: block; }
  .step-count { display: inline-block; margin-top: 9px; }
  .session-crest { display: none; }
  .session-meta span:nth-child(2) { display: none; }
  .interviewer-stage { min-height: 52vh; }
  .round-control { min-width: 55px; padding: 4px; }
  .finish-turn small { display: none; }
  .skip-question { min-width: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  body { background: white; }
  .site-header,.interview-flow,.report-header,.report-actions,.busy-overlay,.toast { display: none !important; }
  .view { min-height: 0; }
  .report-view { padding: 0; background: white; }
  .report-document { width: 100%; margin: 0; }
  .report-cover,.report-card { break-inside: avoid; box-shadow: none; }
  .report-grid--overview,.report-grid--next { grid-template-columns: 1fr 1fr; }
  .report-cover { min-height: 220px; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .review-item,.dimension-detail { break-inside: avoid; }
  .review-item > .review-body,.dimension-detail > .dimension-detail__body { display: grid !important; }
  .next-round-card .primary-action { display: none; }
}
