/* =====================================================================
   Inner Mastery Vignette Practice — Refined editorial luxury
   Brand source: site-v2/src/index.css
   ===================================================================== */

:root {
  --navy:        #1F2A44;
  --navy-dark:   #161D31;
  --navy-light:  #2A3A5C;
  --ink-body:    #2A3550;

  /* Inverted: these tokens were the LIGHT text/surfaces of the dark theme.
     Redefined to dark-on-light so every existing rule flips automatically. */
  --offwhite:    #1F2A44;
  --offwhite-mute: #2A3550;
  --offwhite-quiet: #6B705C;
  --offwhite-faint: rgba(31, 42, 68, 0.12);

  --paper:       #F4F3EE;
  --warm-white:  #F4F1EA;
  --sand:        #DEC09A;
  --olive:       #6B705C;

  --gold:        #C9A14A;
  --gold-hover:  #D8B25F;
  --gold-soft:   rgba(201, 161, 74, 0.16);
  --gold-glow:   rgba(201, 161, 74, 0.32);
  --gold-line:   rgba(201, 161, 74, 0.55);

  --line:        rgba(31, 42, 68, 0.12);
  --line-soft:   rgba(31, 42, 68, 0.06);

  /* Theme-switching surfaces (light/paper values; dark overrides below) */
  --bg:          #F4F3EE;                    /* body base */
  --panel:       rgba(244, 243, 238, 0.78);  /* reading-surface backdrops */
  --glass:       rgba(244, 243, 238, 0.90);  /* call-side glass panels + textarea */
  --overlay:     rgba(244, 243, 238, 0.92);  /* consent veil */
  --card:        rgba(244, 241, 234, 0.96);  /* consent card */
  --shadow-modal: rgba(31, 42, 68, 0.18);
  --shadow-card:  rgba(31, 42, 68, 0.14);

  --display:     'Cormorant Garamond', Georgia, serif;
  --body:        'Frank Ruhl Libre', Georgia, serif;
  --ui:          'Quicksand', system-ui, sans-serif;

  --ease:        cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* =====================================================================
   Theme system — light (Paper, default) vs dark (Navy)
   :root holds the light/paper tokens; body[data-theme="dark"] restores
   the original readable navy values. Fonts never change between themes.
   ===================================================================== */

body[data-theme="dark"] {
  --offwhite:       #F4F3EE;
  --offwhite-mute:  rgba(244, 243, 238, 0.82);
  --offwhite-quiet: rgba(244, 243, 238, 0.55);
  --offwhite-faint: rgba(244, 243, 238, 0.18);

  --gold-soft:   rgba(201, 161, 74, 0.20);
  --gold-glow:   rgba(201, 161, 74, 0.35);
  --gold-line:   rgba(201, 161, 74, 0.5);

  --line:        rgba(244, 243, 238, 0.14);
  --line-soft:   rgba(244, 243, 238, 0.08);

  --bg:          #1F2A44;
  --panel:       rgba(244, 243, 238, 0.04);
  --glass:       rgba(22, 29, 49, 0.92);
  --overlay:     rgba(15, 19, 33, 0.97);
  --card:        var(--navy-dark);
  --shadow-modal: rgba(0, 0, 0, 0.5);
  --shadow-card:  rgba(0, 0, 0, 0.24);
}

/* Dark atmosphere — navy veil → grain → same mountain (Luke's recipe) */
body[data-theme="dark"] .atmosphere {
  background-image:
    linear-gradient(rgba(31,42,68,0.94), rgba(31,42,68,0.86)),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/></svg>"),
    url("imm-hero-ridgeline.png");
}

/* ---- Light-theme readability boosts (paper over a busy mountain) ---- */
/* Small uppercase labels/eyebrows: navy ink, never low-contrast gold. */
body[data-theme="light"] .eyebrow,
body[data-theme="light"] .eyebrow-quiet,
body[data-theme="light"] .coaching__head .eyebrow,
body[data-theme="light"] .audio-settings__name,
body[data-theme="light"] .prior-notes__block-label,
body[data-theme="light"] .prior-notes__session-when,
body[data-theme="light"] .caption--mentor .caption__role,
body[data-theme="light"] .caption--character .caption__role,
body[data-theme="light"] .call-coaching__details summary,
body[data-theme="light"] .consent-eyebrow {
  color: var(--navy);
}

/* Body prose: heavier weight so it reads clearly on paper. */
body[data-theme="light"] { font-weight: 400; }
body[data-theme="light"] .body-text,
body[data-theme="light"] .footnote,
body[data-theme="light"] .status { font-weight: 400; }

/* Reading surfaces: lift text off the mountain with a paper backdrop. */
body[data-theme="light"] .login-card,
body[data-theme="light"] .evaluation {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px 26px;
}
body[data-theme="light"] .coaching { background: var(--panel); }
body[data-theme="light"] .character-card:hover { background: var(--warm-white); }

/* =====================================================================
   Theme toggle — one control in the masthead, covers every state
   ===================================================================== */
.theme-toggle {
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--offwhite-quiet);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  transition: color 240ms var(--ease), border-color 240ms var(--ease), background 240ms var(--ease);
}
.theme-toggle:hover,
.theme-toggle:focus-visible {
  outline: none;
  color: var(--gold);
  border-color: var(--gold);
  background: var(--gold-soft);
}
.theme-toggle__icon { display: none; line-height: 1; }
body[data-theme="light"] .theme-toggle__moon { display: inline; }
body[data-theme="dark"]  .theme-toggle__sun  { display: inline; }
@media (max-width: 600px) {
  .theme-toggle { right: 16px; width: 34px; height: 34px; font-size: 0.95rem; }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  font-family: var(--body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--offwhite-mute);
  background: var(--bg);
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;

  display: flex;
  flex-direction: column;
}

/* =====================================================================
   Atmosphere — radial light from above + subtle fractal noise
   ===================================================================== */

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(244,243,238,0.93), rgba(244,243,238,0.90)),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/></svg>"),
    url("imm-hero-ridgeline.png");
  background-repeat: no-repeat, repeat, no-repeat;
  background-position: center, 0 0, center 30%;
  background-size: cover, 220px 220px, cover;
  pointer-events: none;
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.025;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* =====================================================================
   Skip link (a11y)
   ===================================================================== */

.skip-link {
  position: absolute;
  top: -40px;
  left: 16px;
  background: var(--gold);
  color: var(--navy);
  padding: 8px 14px;
  border-radius: 4px;
  font-family: var(--ui);
  font-weight: 500;
  z-index: 100;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* =====================================================================
   Masthead — small, centered logo
   ===================================================================== */

.masthead {
  width: 100%;
  padding: 32px 24px 16px;
  display: flex;
  justify-content: center;
  position: relative;
}

.logo {
  height: 84px;
  width: auto;
  user-select: none;
  -webkit-user-drag: none;
}

@media (max-width: 600px) {
  .masthead { padding: 24px 20px 12px; }
  .logo { height: 64px; }
}

/* =====================================================================
   Stage — single-column, centered, generous space
   ===================================================================== */

.stage {
  flex: 1;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 56px 28px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (max-width: 600px) {
  .stage { padding: 40px 24px 32px; }
}

/* =====================================================================
   States — only the active one renders
   ===================================================================== */

.state {
  width: 100%;
  display: none;
  animation: state-fade 600ms var(--ease) both;
}

body[data-state="loading"] .state-loading,
body[data-state="pre"]     .state-pre,
body[data-state="in"]      .state-in,
body[data-state="post"]    .state-post,
body[data-state="fatal"]   .state-fatal {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.state[aria-hidden="false"] { /* JS toggles aria-hidden as well for SR */ }

@keyframes state-fade {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =====================================================================
   Typography
   ===================================================================== */

.eyebrow {
  font-family: var(--ui);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  animation: child-fade 600ms 80ms var(--ease) both;
}
.eyebrow-quiet {
  color: var(--offwhite-quiet);
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  margin-bottom: 16px;
}

.display {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(3.5rem, 8vw, 5.25rem);
  line-height: 1.05;
  color: var(--offwhite);
  margin-bottom: 24px;
  animation: child-fade 700ms 160ms var(--ease) both;
}
.display-md {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  line-height: 1.15;
}

.subhead {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  line-height: 1.5;
  color: var(--offwhite-mute);
  margin-bottom: 48px;
  max-width: 32ch;
  animation: child-fade 700ms 240ms var(--ease) both;
}

.lede {
  font-family: var(--body);
  font-weight: 400;
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.7;
  color: var(--offwhite-mute);
  margin-bottom: 36px;
  max-width: 56ch;
}

.body-text {
  font-family: var(--body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--offwhite-mute);
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}

.footnote {
  font-family: var(--body);
  font-weight: 300;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--offwhite-quiet);
  max-width: 42ch;
  margin: 28px auto 0;
}

.status {
  font-family: var(--body);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--offwhite-quiet);
  margin-top: 16px;
  min-height: 1.5em;
}
.status-quiet em {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

@keyframes child-fade {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =====================================================================
   Brief card — quiet manuscript page
   ===================================================================== */

.brief {
  position: relative;
  margin: 0 auto 56px;
  max-width: 56ch;
  padding: 28px 32px;
  border: 1px solid var(--offwhite-faint);
  border-radius: 4px;
  background: var(--panel);
  text-align: left;
  animation: child-fade 800ms 320ms var(--ease) both;
}
.brief::before {
  content: "";
  position: absolute;
  top: 0; left: 32px;
  height: 2px; width: 48px;
  background: var(--gold);
  transform: translateY(-50%);
}
.brief p {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--offwhite-mute);
}
.brief p + p { margin-top: 12px; }

@media (max-width: 600px) {
  .brief { padding: 22px 24px; margin-bottom: 40px; }
  .brief::before { left: 24px; }
}

/* =====================================================================
   Prior notes panel — pre-session "Your previous notes" stack.
   Shows each completed session as a card with Claude's key_facts summary
   and the mentor's own [mm:ss]-stamped notes. Empty state if first session.
   ===================================================================== */

.prior-notes {
  width: 100%;
  max-width: 56ch;
  margin: 0 auto 40px;
  text-align: left;
  animation: child-fade 800ms 360ms var(--ease) both;
}
.prior-notes .eyebrow {
  margin-bottom: 12px;
  text-align: center;
}
.prior-notes__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.prior-notes__session {
  border: 1px solid var(--offwhite-faint);
  border-radius: 4px;
  background: var(--panel);
  padding: 16px 18px;
}
.prior-notes__session-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--offwhite-faint);
}
.prior-notes__session-num {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--gold);
  letter-spacing: 0.04em;
}
.prior-notes__session-when {
  font-family: var(--ui);
  font-weight: 400;
  font-size: 0.7rem;
  color: var(--offwhite-quiet);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.prior-notes__block {
  margin-bottom: 10px;
}
.prior-notes__block:last-child { margin-bottom: 0; }
.prior-notes__block-label {
  font-family: var(--ui);
  font-weight: 500;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--offwhite-quiet);
  margin-bottom: 6px;
}
.prior-notes__block-content {
  font-family: var(--display);
  font-weight: 400;
  font-size: 0.97rem;
  color: var(--offwhite-mute);
  line-height: 1.55;
  white-space: pre-wrap;
}
.prior-notes__empty {
  font-family: var(--display);
  font-style: italic;
  font-size: 0.97rem;
  color: var(--offwhite-quiet);
  text-align: center;
  padding: 18px 16px;
  border: 1px dashed var(--offwhite-faint);
  border-radius: 4px;
}

/* =====================================================================
   Coaching prompts (pre-session) — "Your supervisor suggests…".
   Deliberately distinct from the character brief: gold left-rail + faint
   gold wash signal "this is coaching, not character info" (spec §8.2).
   ===================================================================== */

.coaching {
  width: 100%;
  max-width: 56ch;
  margin: 0 auto 40px;
  text-align: left;
  border-left: 2px solid var(--gold);
  background: var(--gold-soft);
  border-radius: 0 4px 4px 0;
  padding: 18px 22px;
  animation: child-fade 800ms 320ms var(--ease) both;
}
.coaching__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.coaching__head .eyebrow {
  margin-bottom: 0;
  color: var(--gold);
}
.coaching__toggle {
  flex: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--ui);
  font-weight: 400;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--offwhite-quiet);
  border-bottom: 1px solid var(--offwhite-faint);
  padding: 0 0 2px;
  transition: color 240ms var(--ease), border-color 240ms var(--ease);
}
.coaching__toggle:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.coaching__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.coaching__list li {
  position: relative;
  padding-left: 18px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.0rem;
  line-height: 1.5;
  color: var(--offwhite-mute);
}
.coaching__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 1px;
  background: var(--gold);
}
.coaching__note {
  margin-top: 14px;
  font-family: var(--display);
  font-style: italic;
  font-size: 0.86rem;
  color: var(--offwhite-quiet);
}
.coaching.is-hidden .coaching__list,
.coaching.is-hidden .coaching__note { display: none; }

/* =====================================================================
   Hairline divider (60px gold)
   ===================================================================== */

.hairline {
  width: 56px;
  height: 1px;
  background: var(--gold);
  margin: 16px auto 32px;
  opacity: 0.85;
}

/* =====================================================================
   Audio settings — quiet disclosure on pre-session
   ===================================================================== */

.audio-settings {
  width: 100%;
  max-width: 56ch;
  margin: 0 auto 32px;
  text-align: left;
  border-top: 1px solid var(--offwhite-faint);
  border-bottom: 1px solid var(--offwhite-faint);
  animation: child-fade 800ms 380ms var(--ease) both;
}
.audio-settings summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--ui);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--offwhite-quiet);
  transition: color 240ms var(--ease);
}
.audio-settings summary::-webkit-details-marker { display: none; }
.audio-settings summary:hover,
.audio-settings[open] summary { color: var(--gold); }
.audio-settings__chevron {
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0;
  transition: transform 280ms var(--ease);
  display: inline-block;
}
.audio-settings[open] .audio-settings__chevron {
  transform: rotate(45deg);
}
.audio-settings__body {
  padding: 4px 4px 18px;
}
.audio-settings__row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.audio-settings__name {
  font-family: var(--ui);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--offwhite-quiet);
}
.audio-settings select {
  width: 100%;
  background: var(--panel);
  color: var(--offwhite-mute);
  border: 1px solid var(--offwhite-faint);
  border-radius: 4px;
  padding: 10px 12px;
  font-family: var(--ui);
  font-weight: 400;
  font-size: 0.95rem;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--offwhite-quiet) 50%),
    linear-gradient(135deg, var(--offwhite-quiet) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px;
  background-repeat: no-repeat;
  cursor: pointer;
  transition: border-color 240ms var(--ease);
}
.audio-settings select:focus,
.audio-settings select:hover {
  outline: none;
  border-color: var(--gold);
}
.audio-settings__hint {
  font-family: var(--body);
  font-weight: 300;
  font-size: 0.78rem;
  color: var(--offwhite-quiet);
  margin: 8px 0 0;
  line-height: 1.55;
}

/* =====================================================================
   The Begin button — singular gold gesture
   ===================================================================== */

.btn-begin {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 56px 16px;
  background: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--ui);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  font-size: 0.95rem;
  transition: all 380ms var(--ease);
  animation: child-fade 800ms 400ms var(--ease) both;
  overflow: hidden;
}
.btn-begin::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold-hover);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 480ms var(--ease);
  z-index: 0;
}
.btn-begin > * { position: relative; z-index: 1; transition: color 380ms var(--ease); }
.btn-begin__rule {
  width: 32px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
  transition: width 380ms var(--ease), opacity 380ms var(--ease);
}
.btn-begin:hover:not(:disabled),
.btn-begin:focus-visible:not(:disabled) {
  outline: none;
  box-shadow: 0 0 0 4px var(--gold-soft);
}
.btn-begin:hover:not(:disabled)::before,
.btn-begin:focus-visible:not(:disabled)::before {
  transform: scaleY(1);
}
.btn-begin:hover:not(:disabled) > *,
.btn-begin:focus-visible:not(:disabled) > * {
  color: var(--navy);
}
.btn-begin:hover:not(:disabled) .btn-begin__rule {
  width: 48px;
  opacity: 1;
}
.btn-begin:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: var(--panel);
  border-color: var(--offwhite-faint);
  color: var(--offwhite-quiet);
}

/* =====================================================================
   In-session — strip everything to essentials
   ===================================================================== */

.state-in {
  padding-top: 80px;
  padding-bottom: 60px;
  min-height: 60vh;
  justify-content: center;
}

/* ---------------------------------------------------------------------
   Call-screen side panel — wraps the brief and the live notes panel.
   Desktop: pinned top-right, doesn't disturb the centred main column.
   Mobile: stacks inline above the breathing dot.
   --------------------------------------------------------------------- */

.call-side-panel {
  position: fixed;
  top: 96px;
  right: 24px;
  width: 240px;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--offwhite-faint) transparent;
}
.call-side-panel::-webkit-scrollbar { width: 6px; }
.call-side-panel::-webkit-scrollbar-track { background: transparent; }
.call-side-panel::-webkit-scrollbar-thumb {
  background: var(--offwhite-faint);
  border-radius: 3px;
}

.call-brief {
  text-align: left;
  animation: child-fade 800ms 200ms var(--ease) both;
}
.call-brief__details {
  background: var(--glass);
  border: 1px solid var(--offwhite-faint);
  border-radius: 4px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.call-brief__details summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--ui);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--offwhite-quiet);
  transition: color 240ms var(--ease);
}
.call-brief__details summary::-webkit-details-marker { display: none; }
.call-brief__details summary:hover,
.call-brief__details[open] summary { color: var(--gold); }
.call-brief__chevron {
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--gold);
  transition: transform 280ms var(--ease);
}
.call-brief__details:not([open]) .call-brief__chevron {
  transform: rotate(45deg);
}
.call-brief__list {
  list-style: none;
  padding: 4px 16px 14px;
  margin: 0;
  max-height: 55vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--offwhite-faint) transparent;
}
.call-brief__list::-webkit-scrollbar { width: 6px; }
.call-brief__list::-webkit-scrollbar-track { background: transparent; }
.call-brief__list::-webkit-scrollbar-thumb {
  background: var(--offwhite-faint);
  border-radius: 3px;
}
.call-brief__list li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 8px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--offwhite-mute);
}
.call-brief__list li:last-child { margin-bottom: 0; }
.call-brief__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 1px;
  background: var(--gold);
}

/* Below ~1180px the fixed-right side panel overlaps the centred main column
   (timer, captions, end button). Below this breakpoint the panel goes static
   and renders inline above the breathing dot. */
@media (max-width: 1180px) {
  .call-side-panel {
    position: static;
    width: 100%;
    max-width: 56ch;
    max-height: none;
    overflow: visible;
    margin: 0 auto 32px;
  }
  .call-brief__list { max-height: 32vh; }
  .call-notes__textarea { max-height: 24vh; }
}

/* On wide screens, reserve right-side space in the main column so the
   fixed-position side panel never overlaps the timer / captions / end button. */
@media (min-width: 1181px) {
  .state-in {
    padding-right: 290px;
  }
}

/* ---------------------------------------------------------------------
   Live notes panel — mentor's working notebook during the session.
   Mirrors the brief panel's visual language.
   --------------------------------------------------------------------- */

.call-notes {
  text-align: left;
  animation: child-fade 800ms 280ms var(--ease) both;
}
.call-notes__details {
  background: var(--glass);
  border: 1px solid var(--offwhite-faint);
  border-radius: 4px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.call-notes__details summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--ui);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--offwhite-quiet);
  transition: color 240ms var(--ease);
}
.call-notes__details summary::-webkit-details-marker { display: none; }
.call-notes__details summary:hover,
.call-notes__details[open] summary { color: var(--gold); }
.call-notes__chevron {
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--gold);
  transition: transform 280ms var(--ease);
}
.call-notes__details:not([open]) .call-notes__chevron {
  transform: rotate(45deg);
}
.call-notes__body {
  padding: 4px 12px 12px;
}
.call-notes__textarea {
  width: 100%;
  min-height: 76px;
  max-height: 30vh;
  padding: 8px 10px;
  background: var(--glass);
  border: 1px solid var(--offwhite-faint);
  border-radius: 3px;
  color: var(--offwhite);
  font-family: var(--ui);
  font-weight: 300;
  font-size: 0.92rem;
  line-height: 1.55;
  resize: vertical;
  transition: border-color 240ms var(--ease);
  scrollbar-width: thin;
  scrollbar-color: var(--offwhite-faint) transparent;
}
.call-notes__textarea::-webkit-scrollbar { width: 6px; }
.call-notes__textarea::-webkit-scrollbar-track { background: transparent; }
.call-notes__textarea::-webkit-scrollbar-thumb {
  background: var(--offwhite-faint);
  border-radius: 3px;
}
.call-notes__textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.call-notes__textarea::placeholder {
  color: var(--offwhite-quiet);
  font-style: italic;
}
.call-notes__autosave {
  margin-top: 8px;
  font-family: var(--body);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--offwhite-quiet);
  text-align: right;
  opacity: 0;
  transition: opacity 320ms var(--ease);
}
.call-notes__autosave.is-visible {
  opacity: 0.85;
}

/* ---------------------------------------------------------------------
   Coaching prompts carried into the call. Mirrors the brief/notes panel
   shape but keeps the gold left-rail accent so it stays visually marked
   as coaching, not character info. Compact + capped so it never reopens
   the side-panel overlap regression.
   --------------------------------------------------------------------- */

.call-coaching {
  text-align: left;
  animation: child-fade 800ms 240ms var(--ease) both;
}
.call-coaching__details {
  background: var(--glass);
  border: 1px solid var(--offwhite-faint);
  border-left: 2px solid var(--gold);
  border-radius: 4px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.call-coaching__details summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--ui);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  transition: color 240ms var(--ease);
}
.call-coaching__details summary::-webkit-details-marker { display: none; }
.call-coaching__chevron {
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--gold);
  transition: transform 280ms var(--ease);
}
.call-coaching__details:not([open]) .call-coaching__chevron {
  transform: rotate(45deg);
}
.call-coaching__list {
  list-style: none;
  padding: 4px 16px 10px;
  margin: 0;
  max-height: 34vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--offwhite-faint) transparent;
}
.call-coaching__list::-webkit-scrollbar { width: 6px; }
.call-coaching__list::-webkit-scrollbar-track { background: transparent; }
.call-coaching__list::-webkit-scrollbar-thumb {
  background: var(--offwhite-faint);
  border-radius: 3px;
}
.call-coaching__list li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 8px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--offwhite-mute);
}
.call-coaching__list li:last-child { margin-bottom: 0; }
.call-coaching__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 1px;
  background: var(--gold);
}
.coaching__toggle--call {
  display: block;
  margin: 0 16px 12px;
}

/* =====================================================================
   Audio scoring section (post-session) — Vocal & Emotional Presence
   Mirrors the editorial language of the existing eval sections.
   ===================================================================== */

.eval-section--audio,
.eval-section--audio-pending {
  margin-top: 32px;
}

.audio-scores {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.audio-score {
  border-left: 1px solid var(--gold-soft);
  padding: 4px 0 4px 16px;
}
.audio-score__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
}
.audio-score__label {
  font-family: var(--ui);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--offwhite-mute);
}
.audio-score__value {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--gold);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.audio-score__value-of {
  font-size: 0.85rem;
  color: var(--offwhite-quiet);
  margin-left: 4px;
}
.audio-score__rationale {
  font-family: var(--display);
  font-weight: 400;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--offwhite-mute);
  margin: 0;
}

.lede-quiet {
  color: var(--offwhite-mute);
  font-style: italic;
}

/* Audio-section pending state with subtle pulse so the mentor knows it's working */
.eval-section--audio-pending.is-loading p[data-bind="evalAudioPendingMsg"] {
  position: relative;
  animation: audio-pending-pulse 2.4s var(--ease) infinite;
}
.eval-section--audio-pending.is-loading p[data-bind="evalAudioPendingMsg"]::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: middle;
  animation: audio-pending-dot 1.4s ease-in-out infinite;
  box-shadow: 0 0 8px var(--gold-glow);
}
@keyframes audio-pending-pulse {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 1; }
}
@keyframes audio-pending-dot {
  0%, 100% { transform: scale(0.7); opacity: 0.6; }
  50%      { transform: scale(1.1); opacity: 1; }
}

.breathing {
  position: relative;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 64px;
}
.breathing::before,
.breathing::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--gold);
  opacity: 0;
  animation: breathing-ring 4.5s var(--ease) infinite;
}
.breathing::after {
  animation-delay: 1.5s;
}
.breathing__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 24px var(--gold-glow);
  animation: breathing-dot 4s ease-in-out infinite;
}
@keyframes breathing-dot {
  0%, 100% { transform: scale(0.85); opacity: 0.7; }
  50%      { transform: scale(1.15); opacity: 1; }
}
@keyframes breathing-ring {
  0%   { transform: scale(0.4); opacity: 0; }
  35%  { opacity: 0.45; }
  100% { transform: scale(2.4); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .breathing__dot { animation: none; }
  .breathing::before, .breathing::after { animation: none; opacity: 0.3; }
}

.session-meta {
  margin-bottom: 8px;
}

.timer {
  font-family: var(--display);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(2.75rem, 6vw, 3.5rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--offwhite);
  margin-bottom: 64px;
}

.btn-end {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--offwhite-faint);
  padding: 8px 4px 6px;
  font-family: var(--ui);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--offwhite-quiet);
  cursor: pointer;
  transition: color 280ms var(--ease), border-color 280ms var(--ease);
}
.btn-end:hover,
.btn-end:focus-visible {
  outline: none;
  color: var(--gold);
  border-color: var(--gold);
}

/* =====================================================================
   Session notice — gentle contextual messages (timer warning, inactivity)
   ===================================================================== */

.session-notice {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--gold);
  margin: -32px 0 32px;
  text-align: center;
  max-width: 42ch;
  opacity: 0;
  transition: opacity 480ms var(--ease);
  min-height: 1.6em;
}
.session-notice[hidden] { display: none; }
.session-notice.is-visible { opacity: 1; }

/* =====================================================================
   Mic level meter — visual proof the page is hearing you
   ===================================================================== */

.mic-meter {
  width: 240px;
  height: 4px;
  margin: 0 auto 8px;
  background: var(--offwhite-faint);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.mic-meter--preview {
  width: 100%;
  margin: 6px 0 4px;
}
.mic-meter__bar {
  position: absolute;
  inset: 0 100% 0 0;
  background: linear-gradient(90deg, var(--gold) 0%, #E8C56F 100%);
  transition: right 80ms linear;
  will-change: right;
}
.mic-meter-hint {
  font-family: var(--body);
  font-weight: 300;
  font-size: 0.78rem;
  color: var(--offwhite-quiet);
  margin: 0 0 32px;
  text-align: center;
  min-height: 1.4em;
  transition: color 280ms var(--ease);
}
.mic-meter-hint.is-warning { color: var(--gold); }

/* =====================================================================
   Live captions — what's being heard right now
   ===================================================================== */

.captions {
  width: 100%;
  max-width: 56ch;
  margin: 0 auto 56px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  text-align: left;
}
.caption {
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0.92;
  transition: opacity 600ms var(--ease);
}
.caption__role {
  font-family: var(--ui);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.caption--mentor .caption__role { color: var(--offwhite-quiet); }
.caption--character .caption__role { color: var(--gold); opacity: 0.85; }
.caption__text {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--offwhite-mute);
  margin: 0;
  min-height: 1.7em;
}
.caption__text em {
  color: var(--offwhite-quiet);
  font-size: 0.9rem;
  font-style: italic;
}
.caption.is-active .caption__text {
  color: var(--offwhite);
}
.caption.is-pending .caption__text::after {
  content: "…";
  margin-left: 4px;
  opacity: 0.5;
}

/* =====================================================================
   Post-session — evaluating, then evaluation
   ===================================================================== */

.evaluating {
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ring {
  width: 36px;
  height: 36px;
  border: 1px solid var(--offwhite-faint);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: ring-spin 1.6s linear infinite;
  margin-bottom: 24px;
}
@keyframes ring-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .ring { animation: none; border-top-color: var(--offwhite-faint); }
}

.evaluation {
  width: 100%;
  text-align: left;
  max-width: 56ch;
  margin: 0 auto;
}
.evaluation .eyebrow,
.evaluation .display,
.evaluation .lede {
  text-align: left;
  margin-left: 0;
}
.evaluation .display { animation-delay: 100ms; }
.evaluation .lede {
  animation: child-fade 700ms 200ms var(--ease) both;
}
.evaluation .hairline { margin: 24px 0 32px; }

.eval-section {
  margin-bottom: 32px;
}
.eval-section .eyebrow-quiet { text-align: left; margin-bottom: 12px; }

.bullet-list {
  list-style: none;
  padding: 0;
}
.bullet-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  font-family: var(--body);
  font-weight: 300;
  color: var(--offwhite-mute);
  line-height: 1.7;
}
.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.85em;
  width: 16px; height: 1px;
  background: var(--gold);
}

.quote {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--offwhite);
  border-left: 2px solid var(--gold);
  padding: 4px 0 4px 20px;
  margin: 0;
}

.eval-section--reflect {
  margin-top: 36px;
  padding: 22px 24px;
  background: rgba(201, 161, 74, 0.06);
  border: 1px solid rgba(201, 161, 74, 0.18);
  border-radius: 4px;
  position: relative;
}
.eval-section--reflect::before {
  content: "";
  position: absolute;
  top: 0; left: 24px;
  height: 2px; width: 36px;
  background: var(--gold);
  transform: translateY(-50%);
}
.reflect {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--offwhite);
  margin: 0;
}

.return-link {
  margin-top: 40px;
  text-align: left;
}
.return-link a {
  font-family: var(--ui);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-soft);
  padding-bottom: 2px;
  transition: border-color 240ms var(--ease);
}
.return-link a:hover,
.return-link a:focus-visible {
  outline: none;
  border-bottom-color: var(--gold);
}

/* =====================================================================
   Footer
   ===================================================================== */

.ground {
  width: 100%;
  padding: 28px 24px 36px;
  text-align: center;
  font-family: var(--ui);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--offwhite-quiet);
  opacity: 0.6;
}
.ground-confidential {
  margin: 8px auto 0;
  max-width: 62ch;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: none;
  line-height: 1.5;
  color: var(--offwhite-quiet);
  opacity: 0.7;
}

/* =====================================================================
   First-login confidentiality agreement modal (blocking, one-time per user)
   ===================================================================== */
.consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--overlay);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 6vh 20px 8vh;
}
.consent-overlay[hidden] { display: none; }
.consent-card {
  width: 100%;
  max-width: 640px;
  background: var(--card);
  border: 1px solid var(--offwhite-faint);
  border-top: 3px solid var(--gold);
  border-radius: 6px;
  padding: 36px 38px 32px;
  text-align: left;
  box-shadow: 0 24px 80px var(--shadow-modal);
  animation: child-fade 600ms var(--ease) both;
}
.consent-eyebrow {
  font-family: var(--ui);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  text-align: center;
}
.consent-body p {
  font-family: var(--display);
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--offwhite-mute);
  margin-bottom: 12px;
}
.consent-body ul { list-style: none; padding: 0; margin: 0 0 12px; }
.consent-body li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 9px;
  font-family: var(--display);
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--offwhite-mute);
}
.consent-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 1px;
  background: var(--gold);
}
.consent-confirm {
  color: var(--offwhite) !important;
  font-style: italic;
  margin-top: 16px !important;
}
.consent-agree {
  display: block;
  width: 100%;
  margin-top: 24px;
  padding: 15px 24px;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 6px;
  font-family: var(--ui);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 200ms var(--ease), transform 120ms var(--ease);
}
.consent-agree:hover { background: var(--gold-hover); }
.consent-agree:active { transform: translateY(1px); }
.consent-agree:disabled { opacity: 0.5; cursor: default; }
.consent-status {
  margin-top: 12px;
  text-align: center;
  font-family: var(--ui);
  font-size: 0.78rem;
  color: var(--gold);
}
.consent-status[hidden] { display: none; }
@media (max-width: 560px) {
  .consent-card { padding: 26px 22px 24px; }
  .consent-body p, .consent-body li { font-size: 0.95rem; }
}

/* =====================================================================
   Reduced motion overrides
   ===================================================================== */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
