:root {
  color-scheme: dark;
  --paper: #090b10;
  --paper-2: #0d1016;
  --panel: #11151c;
  --panel-high: #161b24;
  --ink: #f5f6f8;
  --muted: #98a2b5;
  --quiet: #8993a6;
  --line: #282e3a;
  --violet: #806cff;
  --violet-bright: #a092ff;
  --violet-solid: #7055ef;
  --violet-soft: rgba(128, 108, 255, .13);
  --mint: #43dcb0;
  --cyan: #a9dcdf;
  --amber: #f3b756;
  --danger: #ff6d7d;
  --shadow: 0 28px 85px rgba(0, 0, 0, .42);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body { margin: 0; min-height: 100dvh; overflow-x: hidden; padding-bottom: env(safe-area-inset-bottom); background: radial-gradient(circle at 50% -8%, rgba(128,108,255,.12), transparent 34rem), var(--paper); color: var(--ink); }
body::before { content: ""; position: fixed; z-index: 200; inset: 0 0 auto; height: 4px; background: var(--cyan); }
button, input, textarea { font: inherit; }
button { min-height: 44px; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

.app-shell { width: min(1510px, 100%); min-height: 100dvh; margin: 0 auto; padding: 0 clamp(18px, 3vw, 46px) 36px; }
.topbar { position: relative; height: 78px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line); }
.brand { grid-column: 1; display: inline-flex; align-items: center; gap: 12px; width: fit-content; color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 770; letter-spacing: -.02em; }
.brand-mark { width: 31px; height: 22px; display: flex; align-items: center; justify-content: center; gap: 2px; }
.brand-mark i { display: block; width: 3px; border-radius: 99px; background: var(--violet-bright); }
.brand-mark i:nth-child(1), .brand-mark i:nth-child(5) { height: 8px; }
.brand-mark i:nth-child(2), .brand-mark i:nth-child(4) { height: 15px; background: var(--mint); }
.brand-mark i:nth-child(3) { height: 22px; }
.text-button { justify-self: end; border: 0; background: transparent; padding: 10px 0 10px 15px; color: var(--muted); cursor: pointer; font-size: 12px; }
.text-button:hover { color: var(--ink); }
.topbar-session { grid-column: 2; display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.topbar-session b { color: var(--ink); font-weight: 650; }
.topbar-clock { display: flex; align-items: center; gap: 9px; padding-left: 9px; border-left: 1px solid var(--line); }
.topbar-clock > small { color: var(--quiet); font-size: 8px; font-weight: 700; letter-spacing: .04em; }
.topbar-clock > span { display: flex; align-items: center; gap: 7px; }
.topbar-clock time { font-variant-numeric: tabular-nums; }
#session-countdown { color: var(--ink); font-weight: 720; }
#session-timer { padding-left: 7px; border-left: 1px solid var(--line); color: var(--quiet); font-size: 8px; }
.session-ending-soon { position: absolute; z-index: 2; top: 61px; left: 50%; transform: translateX(-50%); padding: 5px 8px; border: 1px solid rgba(243,183,86,.3); border-radius: 99px; background: rgba(20,16,12,.95); color: #f6cc82; font-size: 8px; font-weight: 760; letter-spacing: .025em; }
.topbar-clock[data-state="ending-soon"] #session-countdown { color: var(--amber); }
.status-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 6px rgba(243,183,86,.1); }
body[data-coach-mode="available"] .status-dot, body[data-coach-mode="ready"] .status-dot, body[data-coach-mode="listening"] .status-dot { background: var(--mint); box-shadow: 0 0 0 6px rgba(67,220,176,.11); }
body[data-coach-mode="speaking"] .status-dot { background: var(--violet-bright); box-shadow: 0 0 0 6px rgba(160,146,255,.12); }

.eyebrow { margin: 0 0 17px; color: var(--violet-bright); font-size: 10px; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.welcome { width: min(880px, 100%); min-height: calc(100dvh - 96px); display: flex; align-items: center; justify-content: center; margin: 0 auto; padding: clamp(52px, 9vh, 104px) 0; }
.welcome-copy { width: 100%; text-align: center; }
.welcome-copy .eyebrow { margin-bottom: 22px; }
.welcome h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(58px, 6.2vw, 88px); line-height: .98; letter-spacing: -.055em; font-weight: 500; text-wrap: balance; }
.welcome-lede { max-width: 610px; margin: 24px auto 0; color: var(--muted); font-size: 17px; line-height: 1.65; text-wrap: balance; }
.primary-button { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 21px; border: 0; border-radius: 13px; background: var(--violet-solid); color: white; box-shadow: 0 14px 36px rgba(112,85,239,.25); cursor: pointer; transition: transform .16s ease, background .16s ease; }
.primary-button:hover:not(:disabled) { transform: translateY(-1px); background: #6248dd; }
.primary-button:disabled { opacity: .55; cursor: wait; box-shadow: none; }
.primary-button span { font-size: 13px; font-weight: 760; }
.primary-button i { font-size: 20px; font-style: normal; }
.welcome-start { width: min(290px, 100%); margin: 34px auto 0; }
.welcome-note { margin: 13px 0 0; color: var(--quiet); font-size: 12px; line-height: 1.5; text-align: center; }

.session-setup-sheet { position: fixed; z-index: 74; inset: auto clamp(18px, 3vw, 42px) max(22px, env(safe-area-inset-bottom)) auto; width: min(570px, calc(100vw - 36px)); max-height: min(760px, calc(100dvh - 44px)); margin: 0; padding: 22px; overflow-y: auto; border: 1px solid rgba(160,146,255,.25); border-radius: 22px; background: rgba(13,16,23,.97); box-shadow: 0 30px 95px rgba(0,0,0,.58); color: var(--ink); backdrop-filter: blur(24px); scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.session-setup-sheet::backdrop { background: rgba(3,5,9,.36); backdrop-filter: blur(2px); }
.session-setup-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.session-setup-header > div { min-width: 0; }
.session-setup-header .eyebrow { margin-bottom: 7px; color: var(--mint); }
.session-setup-header h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 31px; font-weight: 500; line-height: 1.05; letter-spacing: -.04em; }
.session-setup-header p:last-child { max-width: 450px; margin: 9px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.session-setup-close { min-width: 58px; min-height: 42px; flex: 0 0 auto; padding: 0 12px; border: 1px solid var(--line); border-radius: 99px; background: transparent; color: var(--muted); cursor: pointer; font-size: 11px; font-weight: 720; }
.session-setup-close:hover { border-color: rgba(160,146,255,.4); color: var(--ink); }
.starter-card { margin-top: 31px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: rgba(17,21,28,.88); box-shadow: 0 22px 65px rgba(0,0,0,.22); }
.session-setup-sheet .starter-card { margin-top: 18px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.starter-card > label:first-child { display: block; margin-bottom: 9px; color: #e4e7ed; font-size: 13px; font-weight: 720; }
.starter-card > input { width: 100%; height: 50px; padding: 0 14px; border: 1px solid var(--line); border-radius: 11px; outline: none; background: #090c12; color: var(--ink); font-size: 14px; }
.starter-card > input::placeholder { color: var(--quiet); }
.starter-card > input:focus { border-color: var(--violet-bright); box-shadow: 0 0 0 3px rgba(128,108,255,.11); }
.starter-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.starter-chips button { min-height: 40px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; background: rgba(9,12,18,.56); color: var(--muted); cursor: pointer; font-size: 11px; }
.starter-chips button:hover, .starter-chips button.active { border-color: rgba(67,220,176,.42); background: rgba(67,220,176,.08); color: #dffff6; }
.session-length-picker { min-width: 0; margin: 19px 0 0; padding: 17px 0 0; border: 0; border-top: 1px solid var(--line); }
.session-length-picker legend { width: 100%; padding: 0; }
.session-length-picker legend span { color: #daddE7; font-size: 12px; font-weight: 720; }
.session-length-picker legend small { color: var(--quiet); font-size: 11px; font-weight: 500; text-align: right; }
.session-length-options { display: grid; grid-template-columns: repeat(4, minmax(58px, 1fr)) minmax(105px, 1.35fr); gap: 7px; margin-top: 10px; }
.session-length-options label { position: relative; min-width: 0; cursor: pointer; }
.session-length-options input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.session-length-options label > span { min-height: 42px; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 7px; border: 1px solid var(--line); border-radius: 9px; background: rgba(9,12,18,.58); color: var(--muted); transition: border-color .16s ease, background .16s ease, color .16s ease; }
.session-length-options label:hover > span { border-color: rgba(160,146,255,.4); color: var(--ink); }
.session-length-options input:focus-visible + span { outline: 2px solid var(--violet-bright); outline-offset: 2px; }
.session-length-options input:checked + span { border-color: rgba(67,220,176,.42); background: linear-gradient(145deg, rgba(67,220,176,.1), rgba(128,108,255,.08)); color: #effffb; box-shadow: inset 0 0 0 1px rgba(67,220,176,.05); }
.session-length-options b { font-size: 13px; font-weight: 780; }
.session-length-options small { color: var(--quiet); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.session-length-options input:checked + span small { color: var(--mint); }
.session-length-options .open-ended > span { gap: 2px; }
.session-length-picker > p { margin: 9px 0 0; color: var(--quiet); font-size: 11px; line-height: 1.45; }
.history-opt-in { min-height: 48px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; margin-top: 12px; padding: 7px 2px 0; border: 0; border-radius: 0; background: transparent; cursor: pointer; }
.history-opt-in > input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.history-opt-in > span:nth-of-type(1) { width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid #4b5363; border-radius: 5px; background: #090c12; }
.history-opt-in > input:checked + span:nth-of-type(1) { border-color: var(--mint); background: rgba(67,220,176,.13); }
.history-opt-in > input:checked + span:nth-of-type(1)::after { content: "✓"; color: var(--mint); font-size: 12px; font-weight: 850; }
.history-opt-in > input:focus-visible + span:nth-of-type(1) { outline: 2px solid var(--violet-bright); outline-offset: 2px; }
.history-opt-in > span:last-child { min-width: 0; }
.history-opt-in b, .history-opt-in small { display: block; }
.history-opt-in b { color: #dfe3ea; font-size: 12px; }
.history-opt-in small { margin-top: 3px; color: var(--quiet); font-size: 10px; line-height: 1.4; }
.session-setup-footer { display: grid; grid-template-columns: minmax(0, 1fr) 210px; align-items: center; gap: 18px; margin-top: 17px; padding-top: 17px; border-top: 1px solid var(--line); }
.session-setup-footer .coach-readiness { min-width: 0; margin: 0; }
.session-setup-footer .coach-readiness div { min-width: 0; }
.session-setup-footer .coach-readiness b, .session-setup-footer .coach-readiness small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.session-setup-footer .primary-button { width: 100%; min-height: 50px; }
.waiting-canvas { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 17px; overflow: hidden; background: linear-gradient(145deg, #080a11, #101322 54%, #081116); color: rgba(255,255,255,.92); isolation: isolate; }
.waiting-canvas::before { content: ""; position: absolute; z-index: -2; inset: 16% 8% 11%; background: radial-gradient(at 32% 38%, rgba(128,108,255,.3), transparent 38%), radial-gradient(at 70% 62%, rgba(67,220,176,.17), transparent 42%), radial-gradient(at 52% 50%, rgba(75,102,194,.12), transparent 52%); filter: blur(30px); opacity: .9; transform: rotate(-4deg) scale(1.08); animation: waiting-aurora 7s ease-in-out infinite alternate; }
.waiting-canvas::after { content: ""; position: absolute; z-index: -1; left: 18%; right: 18%; top: 50%; height: 1px; background: linear-gradient(90deg, transparent, rgba(160,146,255,.2) 23%, rgba(67,220,176,.26) 52%, rgba(160,146,255,.17) 77%, transparent); box-shadow: 0 -46px 85px rgba(128,108,255,.12), 0 42px 90px rgba(67,220,176,.07); }
.waiting-canvas span, .waiting-canvas b, .waiting-canvas i { position: relative; z-index: 1; }
.waiting-canvas span { font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 5vw, 70px); line-height: 1; letter-spacing: -.05em; white-space: nowrap; }
.waiting-canvas i { width: 111px; height: 30px; background: linear-gradient(var(--violet-bright), var(--violet-bright)) 0 50% / 3px 8px no-repeat, linear-gradient(var(--mint), var(--mint)) 13px 50% / 3px 16px no-repeat, linear-gradient(var(--violet-bright), var(--violet-bright)) 26px 50% / 3px 24px no-repeat, linear-gradient(var(--mint), var(--mint)) 39px 50% / 3px 13px no-repeat, linear-gradient(var(--violet-bright), var(--violet-bright)) 52px 50% / 3px 28px no-repeat, linear-gradient(var(--mint), var(--mint)) 65px 50% / 3px 18px no-repeat, linear-gradient(var(--violet-bright), var(--violet-bright)) 78px 50% / 3px 23px no-repeat, linear-gradient(var(--mint), var(--mint)) 91px 50% / 3px 14px no-repeat, linear-gradient(var(--violet-bright), var(--violet-bright)) 104px 50% / 3px 7px no-repeat; filter: drop-shadow(0 0 12px rgba(128,108,255,.32)); animation: waiting-wave 1.8s ease-in-out infinite; }
.waiting-canvas b { color: var(--mint); font-size: 9px; letter-spacing: .18em; text-align: center; text-transform: uppercase; }
@keyframes waiting-aurora { to { opacity: .72; transform: rotate(3deg) scale(1.14) translate3d(2%, -1%, 0); } }
@keyframes waiting-wave { 50% { opacity: .62; transform: scaleY(.72); } }
.coach-readiness { display: flex; align-items: center; gap: 12px; min-height: 44px; margin-top: 12px; padding: 0 3px; border: 0; background: transparent; }
.coach-readiness b, .coach-readiness small { display: block; }
.coach-readiness b { font-size: 12px; }
.coach-readiness small { margin-top: 2px; color: var(--quiet); font-size: 10px; }

.conversation { padding: 22px 0 0; }
.conversation-grid { height: calc(100dvh - 126px); min-height: min(560px, calc(100dvh - 126px)); display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--panel); box-shadow: var(--shadow); }
.conversation[data-console-open="true"] .conversation-grid { grid-template-columns: minmax(0, 1fr) minmax(360px, 390px); }
.coach-stage { position: relative; min-height: 0; overflow: hidden; background: radial-gradient(circle at 50% 50%, rgba(128,108,255,.11), transparent 58%), linear-gradient(180deg, #0a0d14, #07090d); }
.conversation[data-console-open="true"] .coach-stage { border-right: 1px solid var(--line); }
.coach-still { z-index: 1; }
.daily-stage { position: absolute; inset: 0; z-index: 2; overflow: hidden; background: radial-gradient(circle at 50% 50%, rgba(128,108,255,.09), transparent 62%), #07090d; }
.daily-stage.pending { opacity: 0; pointer-events: none; }
.daily-stage video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; object-position: 50% 50%; background: transparent; }
.self-view { position: absolute; z-index: 6; right: 19px; top: 19px; width: 150px; aspect-ratio: 4 / 3; object-fit: cover; transform: scaleX(-1); border: 1px solid rgba(255,255,255,.24); border-radius: 14px; background: #0b0d12; box-shadow: 0 12px 35px rgba(0,0,0,.34); }
.unmute-coach { position: absolute; z-index: 9; left: 50%; top: 50%; min-height: 48px; transform: translate(-50%, -50%); padding: 0 17px; border: 1px solid rgba(255,255,255,.25); border-radius: 99px; background: rgba(8,10,17,.9); color: white; box-shadow: 0 18px 45px rgba(0,0,0,.35); cursor: pointer; backdrop-filter: blur(14px); font-size: 12px; font-weight: 750; }
.unmute-coach span { margin-right: 7px; color: var(--mint); }
.coach-state { position: absolute; z-index: 7; top: 19px; left: 19px; display: flex; align-items: center; gap: 9px; padding: 9px 12px; border: 1px solid rgba(255,255,255,.2); border-radius: 99px; background: rgba(8,10,17,.74); color: white; backdrop-filter: blur(14px); font-size: 10px; }
.coach-state-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
body[data-coach-mode="ready"] .coach-state-dot, body[data-coach-mode="listening"] .coach-state-dot { background: var(--mint); box-shadow: 0 0 0 5px rgba(67,220,176,.13); }
body[data-coach-mode="speaking"] .coach-state-dot { background: var(--violet-bright); box-shadow: 0 0 0 5px rgba(160,146,255,.14); }
body[data-coach-mode="thinking"] .coach-state-dot { background: #86baff; box-shadow: 0 0 0 5px rgba(134,186,255,.12); }
.coach-caption { position: absolute; z-index: 7; left: 20px; right: 20px; bottom: 84px; padding: 14px 17px; border: 1px solid rgba(255,255,255,.15); border-radius: 14px; background: rgba(8,10,17,.78); color: white; backdrop-filter: blur(16px); }
.coach-caption span { display: block; margin-bottom: 6px; color: var(--mint); font-size: 8px; font-weight: 850; text-transform: uppercase; letter-spacing: .13em; }
.coach-caption p { display: -webkit-box; max-height: 4.5em; margin: 0; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; font-size: 14px; line-height: 1.5; }
.conversation-dock { position: absolute; z-index: 8; left: 50%; bottom: 18px; display: flex; align-items: center; gap: 8px; transform: translateX(-50%); padding: 6px; border: 1px solid rgba(255,255,255,.15); border-radius: 15px; background: rgba(8,10,17,.82); box-shadow: 0 13px 35px rgba(0,0,0,.26); backdrop-filter: blur(16px); }
.conversation-dock button { min-height: 42px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; color: rgba(255,255,255,.78); cursor: pointer; }
.conversation-dock button:hover:not(:disabled), .conversation-dock button[aria-expanded="true"] { background: rgba(128,108,255,.17); color: white; }
.conversation-dock button:disabled { opacity: .42; cursor: not-allowed; }
.conversation-dock button > span { color: var(--mint); font-size: 12px; }
.conversation-dock button:last-child > span { color: var(--violet-bright); }
.conversation-dock b { font-size: 11px; font-weight: 730; }
.connection-card { position: absolute; z-index: 8; left: 50%; top: 50%; width: min(390px, calc(100% - 48px)); transform: translate(-50%, -50%); padding: 23px; border: 1px solid rgba(160,146,255,.27); border-radius: 18px; background: rgba(13,16,24,.95); color: white; backdrop-filter: blur(20px); box-shadow: 0 20px 60px rgba(0,0,0,.42); }
.connection-card p { margin: 0; font-size: 17px; font-weight: 730; }
.connection-card > span { display: block; margin-top: 9px; color: rgba(255,255,255,.68); font-size: 11px; line-height: 1.55; }
.small-button { margin-top: 17px; padding: 10px 13px; border: 1px solid rgba(255,255,255,.22); border-radius: 9px; background: transparent; color: white; cursor: pointer; font-size: 10px; }
.small-button.strong { border-color: transparent; background: var(--violet-solid); }

.coach-console { min-width: 0; min-height: 0; display: none; flex-direction: column; overflow: hidden; background: var(--panel); }
.conversation[data-console-open="true"] .coach-console { display: flex; }
.console-backdrop { display: none; }
.conversation[data-mode="review"] .conversation-grid,
.conversation[data-mode="complete"] .conversation-grid { width: min(100%, 900px); height: auto; min-height: 640px; grid-template-columns: minmax(0, 1fr); margin-inline: auto; overflow: visible; }
.conversation[data-mode="review"] .coach-stage,
.conversation[data-mode="complete"] .coach-stage { display: none; }
.conversation[data-mode="review"] .coach-console,
.conversation[data-mode="complete"] .coach-console { min-height: 640px; display: flex; overflow: visible; border: 0; }
.conversation[data-mode="review"] .console-tabs #tools-tab,
.conversation[data-mode="review"] .console-tabs #practice-tab,
.conversation[data-mode="complete"] .console-tabs #tools-tab,
.conversation[data-mode="complete"] .console-tabs #practice-tab { display: none; }
.conversation[data-mode="review"] .console-tabs #log-tab,
.conversation[data-mode="complete"] .console-tabs #log-tab { flex: 1 1 100%; }
.conversation[data-mode="review"] .console-close,
.conversation[data-mode="complete"] .console-close { display: none; }
.conversation[data-mode="review"] .log-panel,
.conversation[data-mode="complete"] .log-panel { max-height: none; overflow: visible; }
.conversation[data-mode="review"] .log-heading,
.conversation[data-mode="review"] .session-summary-card,
.conversation[data-mode="review"] .language-review-card,
.conversation[data-mode="review"] .session-evidence,
.conversation[data-mode="review"] .evidence-guide,
.conversation[data-mode="review"] .log-privacy,
.conversation[data-mode="review"] .event-log { display: none; }
.conversation[data-mode="review"] .progress-review-section { margin-top: 0; }
.conversation[data-mode="live"] .progress-review-section,
.conversation[data-mode="live"] .learning-history-section,
.conversation[data-mode="live"] .learning-memory-section,
.conversation[data-mode="complete"] .progress-review-section,
.conversation[data-mode="complete"] .learning-history-section,
.conversation[data-mode="complete"] .learning-memory-section { display: none; }
.conversation[data-mode="review"] .request-summary,
.conversation[data-mode="complete"] .request-summary { display: none; }
.console-header { display: grid; grid-template-columns: minmax(0, 1fr) 52px; min-height: 58px; border-bottom: 1px solid var(--line); }
.console-tabs { display: grid; grid-template-columns: repeat(3, 1fr); min-width: 0; }
.console-close { min-height: 58px; border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--quiet); cursor: pointer; font-size: 22px; font-weight: 300; }
.console-close:hover { color: var(--ink); }
.console-tab { position: relative; border: 0; background: transparent; color: var(--quiet); cursor: pointer; font-size: 11px; }
.console-tab.active { color: var(--ink); }
.console-tab.active::after { content: ""; position: absolute; left: 16%; right: 16%; bottom: -1px; height: 2px; background: var(--violet-bright); }
.console-tab span { display: inline-grid; min-width: 18px; height: 18px; margin-left: 5px; place-items: center; border: 1px solid var(--line); border-radius: 99px; font-size: 8px; }
.tools-panel, .practice-panel, .log-panel { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: clamp(27px, 3vw, 42px); scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.console-intro h2, .practice-heading h2, .log-heading h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.04em; }
.console-intro h2 { font-size: clamp(30px, 3vw, 43px); line-height: 1.07; }
.console-intro > p:last-child { margin: 13px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.turn-feedback { margin-top: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--paper-2); }
.turn-feedback[data-state="ready"] { border-color: rgba(67,220,176,.3); background: linear-gradient(145deg, rgba(67,220,176,.055), rgba(13,16,22,.98) 50%); }
.turn-feedback[data-state="waiting"] .turn-details { display: none; }
.turn-feedback > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; border-bottom: 1px solid var(--line); }
.turn-feedback > header span { color: var(--mint); font-size: 8px; font-weight: 850; letter-spacing: .14em; }
.turn-feedback > header i { max-width: 68%; overflow: hidden; color: var(--quiet); font-size: 9px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.turn-feedback > p { display: -webkit-box; max-height: 4.65em; margin: 0; padding: 15px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; color: #e8ebf1; font-size: 12px; line-height: 1.55; }
.turn-metrics { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.turn-metrics > div { min-width: 0; padding: 12px 9px; }
.turn-metrics > div + div { border-left: 1px solid var(--line); }
.turn-metrics span, .turn-metrics b, .turn-metrics small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.turn-metrics span { color: var(--quiet); font-size: 7px; font-weight: 800; letter-spacing: .09em; }
.turn-metrics b { margin-top: 7px; font-size: 13px; }
.turn-metrics small { margin-top: 4px; color: var(--quiet); font-size: 7px; }
.turn-focus { padding: 13px 15px; }
.turn-focus span, .turn-focus b { display: block; }
.turn-focus span { color: var(--violet-bright); font-size: 7px; font-weight: 850; letter-spacing: .13em; }
.turn-focus b { margin-top: 6px; color: #dfe3ea; font-size: 11px; line-height: 1.45; }
.turn-details { border-top: 1px solid var(--line); }
.turn-details > summary { min-height: 44px; display: flex; align-items: center; padding: 0 15px; color: var(--muted); cursor: pointer; font-size: 10px; font-weight: 720; }
.turn-details[open] > summary { color: var(--violet-bright); }
.delivery-note { border-top: 1px solid var(--line); padding: 12px 15px; }
.delivery-note summary { color: var(--muted); cursor: pointer; font-size: 10px; font-weight: 700; }
.delivery-note p { margin: 10px 0 0; color: #c7cdd8; font-size: 10px; line-height: 1.55; }
.delivery-note small { display: block; margin-top: 7px; color: var(--quiet); font-size: 8px; }

.sentence-studio { margin-top: 13px; overflow: hidden; border: 1px solid rgba(160,146,255,.2); border-radius: 15px; background: linear-gradient(145deg, rgba(128,108,255,.055), rgba(13,16,22,.96) 48%); }
.sentence-studio[data-state="waiting"] { display: none; }
.sentence-studio[data-state="ready"] { border-color: rgba(67,220,176,.28); }
.sentence-studio-heading { display: flex; align-items: center; justify-content: space-between; gap: 13px; min-height: 62px; padding: 10px 15px; cursor: pointer; list-style: none; }
.sentence-studio-heading::-webkit-details-marker { display: none; }
.sentence-studio[open] .sentence-studio-heading { border-bottom: 1px solid var(--line); }
.sentence-studio-heading > div { min-width: 0; }
.sentence-studio-heading span, .sentence-studio-heading h3 { display: block; }
.sentence-studio-heading span { color: var(--violet-bright); font-size: 9px; font-weight: 850; letter-spacing: .14em; }
.sentence-studio-heading h3 { margin: 5px 0 0; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 19px; font-weight: 500; line-height: 1.05; letter-spacing: -.025em; }
.sentence-studio-heading > i { max-width: 52%; padding: 6px 8px; overflow: hidden; border: 1px solid var(--line); border-radius: 99px; color: var(--quiet); font-size: 9px; font-style: normal; line-height: 1.25; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.sentence-studio-heading::after { content: "+"; flex: 0 0 auto; color: var(--quiet); font-size: 18px; }
.sentence-studio[open] .sentence-studio-heading::after { content: "−"; }
.sentence-studio-heading > i { margin-left: auto; }
.sentence-studio[data-state="ready"] .sentence-studio-heading > i { border-color: rgba(67,220,176,.22); background: rgba(67,220,176,.055); color: var(--mint); }
.latest-sentence { padding: 13px 15px 0; }
.sentence-waveform { position: relative; min-height: 54px; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(160,146,255,.16); border-radius: 9px; background: linear-gradient(to bottom, transparent calc(50% - .5px), rgba(160,146,255,.13) 50%, transparent calc(50% + .5px)), rgba(8,11,17,.76); }
.sentence-waveform canvas { position: relative; z-index: 1; width: 100%; height: auto; min-height: 54px; display: block; }
.sentence-waveform > span { position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; padding: 9px; color: var(--quiet); font-size: 10px; text-align: center; }
.sentence-waveform[data-state="ready"] > span { display: none; }
.sentence-chart-key { position: absolute; z-index: 2; right: 7px; bottom: 5px; display: none; align-items: center; gap: 8px; padding: 4px 6px; border: 1px solid rgba(160,146,255,.12); border-radius: 99px; background: rgba(6,8,13,.78); color: var(--quiet); font-size: 8px; line-height: 1; }
.sentence-waveform[data-state="ready"] .sentence-chart-key { display: flex; }
.sentence-chart-key span { display: inline-flex; align-items: center; gap: 4px; }
.sentence-chart-key span[hidden] { display: none; }
.sentence-chart-key i { width: 9px; height: 2px; border-radius: 99px; background: var(--mint); }
.sentence-chart-key .pitch-key i { background: #ffbe59; }
.sentence-chart-key .pause-key i { height: 6px; background: rgba(134,186,255,.55); }
.sentence-chart-explainer { margin-top: 10px; padding: 12px; border: 1px solid rgba(160,146,255,.14); border-radius: 10px; background: rgba(8,11,17,.54); }
.sentence-chart-explainer-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sentence-chart-explainer-heading span { color: var(--violet-bright); font-size: 10px; font-weight: 850; letter-spacing: .12em; }
.sentence-chart-explainer-heading small { color: var(--quiet); font-size: 10px; line-height: 1.4; text-align: right; }
.sentence-chart-guide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 10px 0 0; }
.sentence-chart-guide > div { min-width: 0; padding: 9px; border: 1px solid var(--line); border-radius: 8px; background: rgba(13,16,22,.68); }
.sentence-chart-guide dt { display: flex; align-items: center; gap: 6px; color: #dfe3ea; font-size: 10px; font-weight: 760; }
.sentence-chart-guide dd { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.chart-guide-mark { width: 12px; height: 3px; flex: 0 0 auto; border-radius: 99px; background: var(--mint); }
.chart-guide-mark.pitch-mark { background: #ffbe59; transform: rotate(-12deg); }
.chart-guide-mark.pause-mark { height: 8px; border-radius: 2px; background: rgba(134,186,255,.55); }
.chart-guide-mark.gap-mark { position: relative; background: transparent; }
.chart-guide-mark.gap-mark::before, .chart-guide-mark.gap-mark::after { content: ""; position: absolute; top: 1px; width: 4px; height: 1px; background: var(--quiet); }
.chart-guide-mark.gap-mark::before { left: 0; }
.chart-guide-mark.gap-mark::after { right: 0; }
.sentence-chart-scale { margin: 9px 0 0; padding-top: 9px; border-top: 1px solid var(--line); color: var(--quiet); font-size: 10px; line-height: 1.5; }
.sentence-chart-scale b { color: var(--muted); }
.sentence-chart-boundary { margin: 9px 0 0; color: var(--quiet); font-size: 10px; line-height: 1.5; }
.sentence-chart-boundary b { color: var(--muted); }
.sentence-chart-meaning { margin-top: 9px; padding: 11px 12px; border: 1px solid rgba(67,220,176,.2); border-left: 2px solid var(--mint); border-radius: 4px 10px 10px 4px; background: rgba(67,220,176,.05); }
.sentence-chart-meaning > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sentence-chart-meaning > div span { color: var(--mint); font-size: 10px; font-weight: 850; letter-spacing: .12em; }
.sentence-chart-meaning > div i { color: var(--quiet); font-size: 10px; font-style: normal; }
.sentence-chart-meaning > p { margin: 7px 0 0; color: #dfe5e2; font-size: 11px; font-weight: 720; line-height: 1.5; }
.sentence-chart-meaning > small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.sentence-chart-meaning[data-state="ready"] { border-color: rgba(67,220,176,.38); background: linear-gradient(145deg, rgba(67,220,176,.1), rgba(13,16,22,.72)); }
.latest-sentence > blockquote { margin: 11px 0 0; color: #e8ebf1; font-family: inherit; font-size: 11px; font-style: normal; line-height: 1.5; }
.latest-sentence[data-state="waiting"] > blockquote { color: var(--quiet); }
.sentence-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 12px -15px 0; border-top: 1px solid var(--line); }
.sentence-metrics > div { min-width: 0; padding: 10px 11px; border-bottom: 1px solid var(--line); }
.sentence-metrics > div:not(:nth-child(3n + 1)) { border-left: 1px solid var(--line); }
.sentence-metrics span, .sentence-metrics b, .sentence-metrics small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sentence-metrics span { color: var(--quiet); font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.sentence-metrics b { margin: 6px 0 0; color: var(--ink); font-size: 13px; font-weight: 750; }
.sentence-metrics small { margin-top: 4px; color: var(--quiet); font-size: 9px; }
.sentence-evidence-notes { margin: 0 -15px; padding: 11px 15px; border-bottom: 1px solid var(--line); }
.sentence-evidence-notes summary, .sentence-timeline summary { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); cursor: pointer; font-size: 10px; font-weight: 720; list-style-position: inside; }
.sentence-evidence-notes summary i, .sentence-timeline summary i { color: var(--quiet); font-size: 9px; font-style: normal; font-weight: 650; }
.sentence-evidence-notes[open] summary { color: var(--mint); }
.sentence-evidence-notes > div { margin-top: 10px; padding: 10px 11px; border-left: 2px solid rgba(160,146,255,.35); background: rgba(128,108,255,.045); }
.sentence-evidence-notes p { margin: 0; color: #c7cdd8; font-size: 10px; line-height: 1.5; }
.sentence-evidence-notes p + p { margin-top: 5px; }
.sentence-evidence-notes small { display: block; margin-top: 8px; color: var(--quiet); font-size: 9px; line-height: 1.5; }
.sentence-timeline { padding: 11px 15px; }
.sentence-timeline[open] summary { color: var(--violet-bright); }
.sentence-timeline summary i { min-width: 18px; height: 18px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 99px; }
.sentence-timeline-list { list-style: none; display: grid; gap: 7px; max-height: 230px; margin: 10px 0 0; padding: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.sentence-timeline-empty { padding: 11px; border: 1px dashed var(--line); border-radius: 9px; color: var(--quiet); text-align: center; }
.sentence-timeline-empty b, .sentence-timeline-empty span { display: block; }
.sentence-timeline-empty b { color: var(--muted); font-size: 9px; }
.sentence-timeline-empty span { margin-top: 4px; font-size: 7px; line-height: 1.4; }
.sentence-timeline-list[data-state="ready"] .sentence-timeline-empty { display: none; }
.sentence-timeline-item { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; background: rgba(9,12,18,.66); }
.sentence-timeline-item[data-selected="true"] { border-color: rgba(67,220,176,.3); background: rgba(67,220,176,.045); }
.sentence-timeline-item > span:first-child { color: var(--quiet); font-size: 9px; font-variant-numeric: tabular-nums; }
.sentence-timeline-item > button { min-width: 0; min-height: 32px; padding: 0; overflow: hidden; border: 0; background: transparent; color: #dfe3ea; cursor: pointer; font-size: 10px; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.sentence-timeline-item > span:last-child { color: var(--violet-bright); font-size: 9px; }
.request-summary { width: 100%; min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 11px 0 0; padding: 12px 14px; border: 1px solid rgba(160,146,255,.24); border-left: 2px solid var(--violet-bright); border-radius: 4px 11px 11px 4px; background: var(--violet-soft); color: #dcd8ff; text-align: left; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.request-summary:hover:not(:disabled) { border-color: rgba(160,146,255,.48); background: rgba(128,108,255,.19); }
.request-summary:disabled { opacity: .42; cursor: not-allowed; }
.request-summary span, .request-summary b, .request-summary small { display: block; }
.request-summary b { font-size: 10px; }
.request-summary small { margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.4; }
.request-summary > i { color: var(--violet-bright); font-size: 15px; font-style: normal; }
.quick-actions { display: grid; gap: 9px; margin-top: 16px; }
.coach-tool[data-coach-request]:disabled { display: none; }
.coach-tool { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 15px 42px 15px 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper-2); color: var(--ink); text-align: left; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.coach-tool:hover { transform: translateY(-1px); border-color: rgba(160,146,255,.35); background: var(--violet-soft); }
.coach-tool:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.coach-tool span { grid-column: 1 / -1; color: var(--violet-bright); font-size: 8px; font-weight: 850; letter-spacing: .13em; }
.coach-tool b { margin-top: 5px; font-size: 14px; }
.coach-tool small { grid-column: 1 / -1; margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.coach-tool i { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--violet-bright); font-style: normal; font-size: 16px; }
.more-feedback { display: none; border-top: 1px solid var(--line); }
.turn-feedback[data-state="ready"] ~ .quick-actions .more-feedback { display: block; }
.more-feedback > summary { min-height: 44px; display: flex; align-items: center; color: var(--muted); cursor: pointer; font-size: 11px; font-weight: 700; }
.more-feedback[open] > summary { color: var(--violet-bright); }
.more-feedback > div { display: grid; gap: 9px; padding-bottom: 2px; }
.media-card { margin-top: 17px; padding: 0 2px; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
.media-card > summary { min-height: 44px; display: flex; align-items: center; color: var(--quiet); cursor: pointer; font-size: 10px; font-weight: 700; }
.media-card[open] > summary { color: var(--violet-bright); }
.media-copy span { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.media-controls { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 13px; }
.media-controls p { margin: 0; color: var(--quiet); font-size: 10px; line-height: 1.5; }
.media-controls button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer; font-size: 11px; }
.media-controls button[aria-pressed="true"] { border-color: rgba(67,220,176,.28); background: rgba(67,220,176,.08); }
.media-controls button:disabled { opacity: .45; cursor: not-allowed; }
.media-icon { color: var(--mint); }
.media-card > small { display: block; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); color: var(--quiet); font-size: 8px; line-height: 1.45; }
.visual-delivery-mode { margin-top: 9px; padding: 10px 11px; border: 1px solid rgba(160,146,255,.14); border-radius: 10px; background: rgba(8,11,17,.42); }
.visual-delivery-mode summary { color: var(--quiet); cursor: pointer; font-size: 9px; font-weight: 720; }
.visual-delivery-mode[open] summary { color: var(--violet-bright); }
.visual-delivery-mode p { margin: 9px 0; color: var(--quiet); font-size: 8px; line-height: 1.5; }
.visual-delivery-mode button { width: 100%; min-height: 40px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--ink); cursor: pointer; font-size: 10px; }
.visual-delivery-mode button[aria-pressed="true"] { border-color: rgba(67,220,176,.28); background: rgba(67,220,176,.08); }
.visual-delivery-mode button:disabled { opacity: .45; cursor: not-allowed; }
.chat-box { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.chat-box label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 9px; }
.chat-box > div { display: grid; grid-template-columns: 1fr auto; }
.chat-box input { min-width: 0; height: 43px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px 0 0 9px; outline: none; background: #090c12; color: var(--ink); font-size: 11px; }
.chat-box input:focus { border-color: var(--violet-bright); }
.chat-box button { min-width: 72px; border: 0; border-radius: 0 9px 9px 0; background: var(--violet-solid); color: white; cursor: pointer; font-size: 10px; font-weight: 750; }
.chat-box button { min-width: 46px; font-size: 17px; }

.practice-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.practice-heading .eyebrow { margin-bottom: 10px; }
.practice-heading h2 { font-size: clamp(29px, 2.6vw, 39px); line-height: 1.05; }
.practice-step { flex: 0 0 auto; max-width: 110px; padding: 7px 9px; border: 1px solid rgba(160,146,255,.25); border-radius: 99px; background: var(--violet-soft); color: var(--violet-bright); font-size: 8px; line-height: 1.25; text-align: center; }
.learning-recall-strip { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-top: 18px; padding: 13px 14px; overflow: hidden; border: 1px solid rgba(160,146,255,.28); border-radius: 14px; background: radial-gradient(circle at 0 50%, rgba(128,108,255,.16), transparent 42%), rgba(9,12,18,.72); }
.learning-recall-strip::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, var(--violet-bright), var(--mint), transparent 82%); opacity: .72; }
.learning-recall-mark { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(67,220,176,.24); border-radius: 50%; background: rgba(67,220,176,.08); }
.learning-recall-mark span { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 6px rgba(67,220,176,.1); }
.learning-recall-copy { min-width: 0; }
.learning-recall-copy span, .learning-recall-copy b, .learning-recall-copy small { display: block; }
.learning-recall-copy span { color: var(--mint); font-size: 8px; font-weight: 850; letter-spacing: .13em; }
.learning-recall-copy b { margin-top: 5px; overflow: hidden; color: var(--ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.learning-recall-copy small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.learning-recall-start { min-height: 40px; padding: 0 12px; border: 1px solid rgba(160,146,255,.34); border-radius: 10px; background: var(--violet-soft); color: #e7e3ff; cursor: pointer; font-size: 10px; font-weight: 750; white-space: nowrap; }
.learning-recall-start:hover:not(:disabled) { border-color: var(--violet-bright); background: rgba(128,108,255,.2); }
.learning-recall-start:disabled { opacity: .4; cursor: not-allowed; }
.learning-recall-start span { margin-left: 7px; color: var(--mint); }
.learning-recall-status { grid-column: 2 / -1; margin: -4px 0 0; color: var(--quiet); font-size: 8px; line-height: 1.35; }
.learning-recall-text-form { grid-column: 2 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; margin-top: 1px; }
.learning-recall-text-form input { min-width: 0; height: 38px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; outline: 0; background: rgba(5,8,13,.72); color: var(--ink); font: inherit; font-size: 10px; }
.learning-recall-text-form input:focus { border-color: var(--violet-bright); box-shadow: 0 0 0 2px rgba(128,108,255,.12); }
.learning-recall-text-form button { min-height: 38px; padding: 0 12px; border: 1px solid rgba(67,220,176,.3); border-radius: 9px; background: rgba(67,220,176,.09); color: #ddfff5; cursor: pointer; font-size: 9px; font-weight: 760; }
.learning-recall-strip[data-state="active"] { border-color: rgba(67,220,176,.42); background: linear-gradient(145deg, rgba(67,220,176,.09), rgba(128,108,255,.08)); }
body[data-recall-lock="true"] #practice-panel > :not(#learning-recall-strip) { display: none !important; }
body[data-recall-lock="true"] #learning-recall-strip { margin-top: 0; }
.practice-flow { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); margin: 25px 0 0; padding: 0; }
.practice-flow li { position: relative; min-width: 0; display: grid; justify-items: center; gap: 7px; color: var(--quiet); text-align: center; }
.practice-flow li:not(:last-child)::after { content: ""; position: absolute; left: calc(50% + 13px); right: calc(-50% + 13px); top: 10px; height: 1px; background: var(--line); }
.practice-flow li span { position: relative; z-index: 1; width: 21px; height: 21px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--panel); font-size: 7px; font-weight: 800; }
.practice-flow li b { font-size: 7px; font-weight: 700; line-height: 1.25; }
.practice-flow li.active { color: var(--violet-bright); }
.practice-flow li.active span { border-color: var(--violet-bright); background: var(--violet-solid); color: white; box-shadow: 0 0 0 5px rgba(128,108,255,.1); }
.practice-flow li.done { color: var(--mint); }
.practice-flow li.done span { border-color: rgba(67,220,176,.36); background: rgba(67,220,176,.11); }
.practice-flow li.done:not(:last-child)::after { background: rgba(67,220,176,.32); }

.practice-focus { margin: 21px 0 0; padding: 0; border: 0; }
.practice-focus legend { margin-bottom: 9px; color: var(--muted); font-size: 10px; font-weight: 700; }
.practice-focus > div { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.practice-focus button { min-height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper-2); color: var(--muted); cursor: pointer; font-size: 10px; }
.practice-focus button:hover, .practice-focus button.active { border-color: rgba(160,146,255,.42); background: var(--violet-soft); color: #e5e1ff; }

.practice-form { margin-top: 24px; padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper-2); }
.practice-form label { display: block; margin-bottom: 9px; color: var(--ink); font-size: 10px; font-weight: 700; }
.practice-form textarea { width: 100%; min-height: 76px; resize: vertical; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; outline: none; background: #090c12; color: var(--ink); font-size: 11px; line-height: 1.5; }
.practice-form textarea::placeholder { color: var(--quiet); }
.practice-form textarea:focus { border-color: var(--violet-bright); box-shadow: 0 0 0 3px rgba(128,108,255,.1); }
.practice-form-actions, .practice-model-actions, .practice-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.practice-form-actions { margin-top: 10px; }
.quiet-button, .accent-button { min-height: 44px; padding: 0 12px; border-radius: 10px; cursor: pointer; font-size: 11px; font-weight: 740; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.quiet-button { border: 1px solid var(--line); background: transparent; color: var(--ink); }
.quiet-button:hover:not(:disabled) { border-color: rgba(160,146,255,.4); background: var(--violet-soft); }
.accent-button { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid transparent; background: var(--violet-solid); color: white; }
.accent-button:hover:not(:disabled) { transform: translateY(-1px); background: #6248dd; }
.quiet-button:disabled, .accent-button:disabled { opacity: .38; cursor: not-allowed; transform: none; }
.play-mark { color: var(--mint); font-size: 8px; }

.practice-target-card { margin-top: 14px; padding: 18px; border: 1px solid rgba(160,146,255,.25); border-radius: 15px; background: radial-gradient(circle at 100% 0, rgba(128,108,255,.16), transparent 45%), linear-gradient(145deg, rgba(128,108,255,.08), rgba(13,16,22,.92)); }
.practice-target-card > span { color: var(--mint); font-size: 7px; font-weight: 850; letter-spacing: .14em; }
.practice-target-card > p { margin: 11px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 23px; line-height: 1.18; letter-spacing: -.03em; }
.practice-target-card > small { display: block; margin-top: 11px; color: var(--muted); font-size: 8px; line-height: 1.45; }
.practice-model-actions { margin-top: 9px; }
.text-link-button { min-height: 44px; margin: 7px 0 0; padding: 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 10px; text-decoration: underline; text-underline-offset: 3px; }
.text-link-button:disabled { opacity: .38; cursor: not-allowed; }
.evidence-boundary { margin-top: 12px; padding: 13px 14px; border: 1px dashed rgba(137,147,166,.32); border-radius: 11px; background: rgba(9,12,18,.55); }
.evidence-boundary span { color: var(--mint); font-size: 7px; font-weight: 850; letter-spacing: .13em; }
.evidence-boundary p { margin: 7px 0 0; color: var(--muted); font-size: 9px; line-height: 1.55; }

.attempt-stack { margin-top: 20px; }
.attempt-card { position: relative; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper-2); transition: border-color .18s ease, background .18s ease, opacity .18s ease; }
.attempt-card header { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 10px; }
.attempt-card header span { grid-column: 1 / -1; color: var(--violet-bright); font-size: 7px; font-weight: 850; letter-spacing: .14em; }
.attempt-card header b { font-size: 12px; }
.attempt-card header i { padding: 5px 7px; border: 1px solid var(--line); border-radius: 99px; color: var(--quiet); font-size: 7px; font-style: normal; font-weight: 750; }
.attempt-card > p { margin: 13px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.attempt-card > small { display: block; margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--quiet); font-size: 8px; line-height: 1.45; }
.attempt-card[data-state="locked"] { opacity: .56; background: rgba(13,16,22,.5); }
.attempt-card[data-state="listening"] { border-color: rgba(160,146,255,.55); background: linear-gradient(145deg, rgba(128,108,255,.12), var(--paper-2)); box-shadow: 0 0 0 3px rgba(128,108,255,.07); }
.attempt-card[data-state="listening"] header i { border-color: rgba(160,146,255,.35); color: var(--violet-bright); }
.attempt-card[data-state="captured"], .attempt-card[data-state="ready"] { border-color: rgba(67,220,176,.34); background: linear-gradient(145deg, rgba(67,220,176,.075), var(--paper-2)); }
.attempt-card[data-state="captured"] header i, .attempt-card[data-state="ready"] header i { border-color: rgba(67,220,176,.28); background: rgba(67,220,176,.08); color: var(--mint); }
.attempt-card[data-state="captured"] > p, .attempt-card[data-state="ready"] > p { color: var(--ink); }
.attempt-bridge { height: 36px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 9px; color: var(--quiet); }
.attempt-bridge span { height: 1px; background: var(--line); }
.attempt-bridge b { font-size: 7px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.practice-actions { margin-top: 10px; }

.comparison-card { margin-top: 15px; padding: 19px; border: 1px solid rgba(67,220,176,.31); border-radius: 15px; background: radial-gradient(circle at 100% 0, rgba(67,220,176,.12), transparent 42%), linear-gradient(145deg, rgba(128,108,255,.12), rgba(13,16,22,.96)); box-shadow: 0 18px 45px rgba(0,0,0,.18); }
.comparison-card > span { color: var(--mint); font-size: 7px; font-weight: 850; letter-spacing: .14em; }
.comparison-card h3 { margin: 10px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 23px; font-weight: 500; line-height: 1.15; letter-spacing: -.03em; }
.comparison-card p { margin: 10px 0 0; color: #d5dae4; font-size: 10px; line-height: 1.55; }
.transfer-button { width: 100%; min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 10px; padding: 0 14px; border: 1px solid rgba(67,220,176,.3); border-radius: 11px; background: rgba(67,220,176,.08); color: #ddfff5; cursor: pointer; font-size: 11px; font-weight: 750; }
.transfer-button:disabled { opacity: .36; cursor: not-allowed; }
.transfer-evidence-card { margin-top: 12px; padding: 16px; border: 1px solid rgba(160,146,255,.24); border-radius: 14px; background: linear-gradient(145deg, rgba(128,108,255,.08), rgba(13,16,22,.96)); }
.transfer-evidence-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 13px; }
.transfer-evidence-card > header > div { min-width: 0; }
.transfer-evidence-card > header span { color: var(--violet-bright); font-size: 8px; font-weight: 850; letter-spacing: .13em; }
.transfer-evidence-card h3 { margin: 7px 0 0; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 18px; font-weight: 500; line-height: 1.17; letter-spacing: -.025em; }
.transfer-evidence-card > header i { flex: 0 0 auto; padding: 5px 7px; border: 1px solid var(--line); border-radius: 99px; color: var(--quiet); font-size: 8px; font-style: normal; white-space: nowrap; }
.transfer-evidence-card > p { margin: 12px 0 0; color: #d9dde6; font-size: 10px; line-height: 1.55; }
.transfer-evidence-card > small { display: block; margin-top: 6px; color: var(--quiet); font-size: 8px; line-height: 1.45; }
.transfer-save-row { display: grid; grid-template-columns: minmax(120px, .7fr) minmax(0, 1fr); align-items: center; gap: 10px; margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line); }
.learning-save-button { width: 100%; }
.transfer-save-row > span { color: var(--muted); font-size: 9px; line-height: 1.4; }
.transfer-evidence-card[data-state="recognized"] { border-color: rgba(67,220,176,.36); background: linear-gradient(145deg, rgba(67,220,176,.09), rgba(13,16,22,.96)); }
.transfer-evidence-card[data-state="recognized"] > header i { border-color: rgba(67,220,176,.25); color: var(--mint); }

.log-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.log-heading .eyebrow { margin-bottom: 10px; }
.log-heading h2 { font-size: 31px; line-height: 1.05; }
.log-heading button { flex: 0 0 auto; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 9px; }
.session-summary-card { margin-top: 20px; overflow: hidden; border: 1px solid rgba(160,146,255,.28); border-radius: 16px; background: radial-gradient(circle at 100% 0, rgba(128,108,255,.15), transparent 38%), var(--paper-2); box-shadow: 0 18px 46px rgba(0,0,0,.15); }
.session-recap-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 17px; border-bottom: 1px solid var(--line); }
.session-recap-heading > div { min-width: 0; }
.session-recap-heading span, .session-recap-grid span { display: block; color: var(--mint); font-size: 10px; font-weight: 850; letter-spacing: .13em; }
.session-recap-heading h3 { margin: 7px 0 0; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 500; line-height: 1.08; letter-spacing: -.03em; }
.session-recap-heading i { flex: 0 1 auto; max-width: 52%; padding: 6px 9px; border: 1px solid var(--line); border-radius: 14px; color: var(--quiet); font-size: 10px; font-style: normal; line-height: 1.4; text-align: center; white-space: normal; }
.recap-visual { padding: 14px 15px; }
.recap-visual-empty { min-height: 118px; display: grid; align-content: center; gap: 15px; padding: 17px; border: 1px solid rgba(160,146,255,.18); border-radius: 12px; background: linear-gradient(145deg, rgba(128,108,255,.065), rgba(67,220,176,.025)); }
.recap-visual-empty-labels { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.recap-visual-empty-labels span { min-width: 0; overflow: hidden; color: var(--quiet); font-size: 9px; font-weight: 760; letter-spacing: .035em; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.recap-visual-empty-labels span::before { content: ""; width: 6px; height: 6px; display: block; margin: 0 auto 8px; border-radius: 50%; background: var(--line); }
.recap-visual-empty-labels span:last-child::before { background: rgba(67,220,176,.28); }
.recap-visual-empty > p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; text-align: center; }
.recap-visual[data-state="ready"] .recap-visual-empty { display: none; }
.recap-visual-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.recap-visual-section { min-width: 0; min-height: 112px; padding: 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: rgba(9,12,18,.56); }
.recap-visual-section[data-section="next-practice"], .recap-visual-section--next-practice { grid-column: 1 / -1; min-height: 92px; border-color: rgba(67,220,176,.24); background: linear-gradient(145deg, rgba(67,220,176,.07), rgba(128,108,255,.045)); }
.recap-visual-section-header { display: flex; align-items: baseline; justify-content: space-between; gap: 9px; }
.recap-visual-section-label { color: var(--violet-bright); font-size: 9px; font-weight: 840; letter-spacing: .075em; text-transform: uppercase; }
.recap-visual-section[data-section="next-practice"] .recap-visual-section-label, .recap-visual-section--next-practice .recap-visual-section-label { color: var(--mint); }
.recap-visual-value { flex: 0 0 auto; color: var(--ink); font-size: 13px; font-weight: 780; font-variant-numeric: tabular-nums; }
.recap-visual-summary { display: -webkit-box; max-height: 2.9em; margin: 9px 0 0; overflow: hidden; color: var(--muted); -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 10px; line-height: 1.45; }
.recap-visual-source { display: block; margin-top: 8px; color: var(--quiet); font-size: 9px; line-height: 1.4; }
.recap-visual-boundary { display: block; margin-top: 9px; color: var(--quiet); font-size: 9px; line-height: 1.4; text-align: center; }
.recap-visual-chart { margin-top: 11px; }

/* Neutral measurement gauge: position is descriptive, never a score. */
.recap-gauge { position: relative; height: 9px; overflow: visible; border-radius: 99px; background: #202633; }
.recap-gauge-fill { width: var(--recap-value, 0%); height: 100%; border-radius: inherit; background: rgba(160,146,255,.62); }
.recap-gauge-marker { position: absolute; top: 50%; left: var(--recap-value, 0%); width: 3px; height: 17px; transform: translate(-50%, -50%); border-radius: 99px; background: var(--ink); box-shadow: 0 0 0 3px rgba(245,246,248,.08); }
.recap-gauge-scale { display: flex; justify-content: space-between; margin-top: 6px; color: var(--quiet); font-size: 8px; }

/* Bounded item-count bar for grammar and wording suggestions. */
.recap-bar { height: 7px; overflow: hidden; border-radius: 99px; background: #202633; }
.recap-bar-fill { width: var(--recap-value, 0%); height: 100%; border-radius: inherit; background: var(--violet-bright); }
.recap-visual-section[data-section="wording"] .recap-bar-fill { background: #777d8d; }

/* One dot per observed event, capped by the data model. */
.recap-dot-chart { display: grid; gap: 8px; }
.recap-dot-row { display: grid; grid-template-columns: minmax(70px, 1fr) auto; align-items: center; gap: 7px; }
.recap-dot-label { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.recap-dots { display: flex; justify-content: flex-end; gap: 4px; }
.recap-dot { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: var(--violet-bright); box-shadow: 0 0 0 2px rgba(160,146,255,.06); }
.recap-dot.is-empty { border: 1px solid #5f6675; background: transparent; box-shadow: none; }
.recap-dot.is-overflow, .recap-dot-overflow { background: var(--violet-bright); }

/* Ordered turns or practice steps; spacing does not imply elapsed time. */
.recap-timeline { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(54px, 1fr); gap: 7px; padding-top: 2px; }
.recap-timeline::before { content: ""; position: absolute; z-index: 0; left: 8px; right: 8px; top: 8px; height: 1px; background: linear-gradient(90deg, rgba(160,146,255,.35), rgba(67,220,176,.38)); }
.recap-timeline-item { position: relative; z-index: 1; min-width: 0; padding-top: 16px; color: var(--muted); font-size: 8px; line-height: 1.35; text-align: center; }
.recap-timeline-item::before { content: ""; position: absolute; top: 3px; left: 50%; width: 9px; height: 9px; transform: translateX(-50%); border: 2px solid var(--paper-2); border-radius: 50%; background: var(--violet-bright); }
.recap-timeline-item:last-child::before { background: var(--mint); }
.recap-timeline-item b { display: block; overflow: hidden; color: var(--ink); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }

.session-recap-notes { border-top: 1px solid var(--line); }
.session-recap-notes > summary { min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 15px; color: var(--muted); cursor: pointer; font-size: 11px; font-weight: 720; list-style: none; }
.session-recap-notes > summary::-webkit-details-marker { display: none; }
.session-recap-notes > summary:hover, .session-recap-notes[open] > summary { color: var(--ink); }
.session-recap-notes > summary i { width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-style: normal; }
.session-recap-notes > summary i::before { content: "+"; font-size: 13px; font-weight: 400; line-height: 1; }
.session-recap-notes[open] > summary i::before { content: "−"; }
.session-recap-notes[open] > summary { border-bottom: 1px solid var(--line); }
.session-recap-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.session-recap-grid article { min-width: 0; padding: 14px 15px; border-bottom: 1px solid var(--line); }
.session-recap-grid article > p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.session-recap-overview, .session-recap-phrase, .session-recap-evidence { grid-column: 1 / -1; }
.session-recap-overview { background: rgba(128,108,255,.045); }
.session-recap-overview > p { color: #dde1ea; font-size: 13px; }
.session-recap-focus { border-left: 1px solid var(--line); background: rgba(67,220,176,.045); }
.session-recap-focus span { color: var(--violet-bright); }
.session-recap-phrase > p { color: #e9e7ff; font-weight: 700; }
.session-recap-evidence { border-bottom: 0; }
.session-recap-evidence span { color: var(--quiet); }
.session-recap-evidence > p { font-size: 11px; }
.session-recap-actions { display: grid; grid-template-columns: minmax(145px, 1.25fr) repeat(2, minmax(96px, .75fr)); gap: 8px; padding: 13px 15px 15px; border-top: 1px solid var(--line); background: rgba(8,11,17,.42); }
.session-recap-actions button { min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel-high); color: #d9dde6; cursor: pointer; font-size: 12px; font-weight: 730; }
.session-recap-actions button:hover:not(:disabled) { border-color: rgba(160,146,255,.42); color: var(--ink); }
.session-recap-actions button:disabled { opacity: .42; cursor: not-allowed; }
.session-recap-actions .session-recap-primary { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-color: rgba(160,146,255,.32); background: var(--violet-soft); color: #ece9ff; }
.session-summary-card[data-state="ready"] { border-color: rgba(67,220,176,.36); background: radial-gradient(circle at 100% 0, rgba(67,220,176,.12), transparent 36%), linear-gradient(145deg, rgba(128,108,255,.08), rgba(13,16,22,.97)); }
.session-summary-card[data-state="ready"] .session-recap-heading i, #recap-card[data-state="ready"] .session-recap-heading i { border-color: rgba(67,220,176,.28); background: rgba(67,220,176,.07); color: var(--mint); }
.session-summary-card[data-state="ready"] .session-recap-grid article > p, #recap-card[data-state="ready"] .session-recap-grid article > p { color: #dde2ea; }
.language-review-card { margin-top: 12px; overflow: hidden; border: 1px solid rgba(160,146,255,.24); border-radius: 14px; background: radial-gradient(circle at 100% 0, rgba(128,108,255,.1), transparent 34%), var(--paper-2); }
.language-review-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 15px; border-bottom: 1px solid var(--line); }
.language-review-heading > div { min-width: 0; }
.language-review-heading > div > span, .language-review-grid article > span { display: block; color: var(--violet-bright); font-size: 10px; font-weight: 850; letter-spacing: .13em; }
.language-review-heading h3 { margin: 6px 0 0; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 19px; font-weight: 500; line-height: 1.15; letter-spacing: -.025em; }
.language-review-heading p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.language-review-heading i { flex: 0 1 auto; max-width: 46%; padding: 5px 8px; border: 1px solid var(--line); border-radius: 99px; color: var(--quiet); font-size: 11px; font-style: normal; line-height: 1.35; text-align: center; }
.language-review-body { padding: 12px; }
.language-review-coverage { margin: 0 0 10px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; background: rgba(9,12,18,.48); color: var(--quiet); font-size: 11px; line-height: 1.45; }
.language-review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: 11px; }
.language-review-grid article { min-width: 0; padding: 13px; background: rgba(9,12,18,.55); }
.language-review-grid article:nth-child(even) { border-left: 1px solid var(--line); }
.language-review-grid article:nth-child(n+3) { border-top: 1px solid var(--line); }
.language-review-grid article > p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; white-space: pre-line; }
.language-review-grid article:nth-child(3) { grid-column: 1 / -1; border-left: 0; }
.language-review-grid .language-review-polished { grid-column: 1 / -1; border-left: 0; background: linear-gradient(145deg, rgba(128,108,255,.1), rgba(9,12,18,.62)); }
.language-review-grid .language-review-polished > span { color: var(--mint); }
.language-review-grid .language-review-polished > p { color: #e4e7ed; font-size: 12px; }
.language-review-transcript { margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(9,12,18,.42); }
.language-review-transcript summary { min-height: 44px; display: flex; align-items: center; padding: 0 11px; color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 720; list-style: none; }
.language-review-transcript summary::-webkit-details-marker { display: none; }
.language-review-transcript summary::before { content: "▸"; margin-right: 7px; color: var(--violet-bright); }
.language-review-transcript[open] summary::before { content: "▾"; }
.language-review-transcript > p { margin: 0; padding: 11px; border-top: 1px solid var(--line); color: #cfd4de; font-size: 12px; line-height: 1.6; white-space: pre-wrap; }
.language-review-actions { display: grid; grid-template-columns: minmax(180px, 1.3fr) minmax(100px, .7fr); gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: rgba(8,11,17,.42); }
.language-review-actions button { min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel-high); color: #d9dde6; cursor: pointer; font-size: 12px; font-weight: 730; }
.language-review-actions button:hover:not(:disabled) { border-color: rgba(160,146,255,.42); color: var(--ink); }
.language-review-actions button:disabled { opacity: .42; cursor: not-allowed; }
.language-review-actions .language-review-primary { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-color: rgba(160,146,255,.32); background: var(--violet-soft); color: #ece9ff; text-align: left; }
.language-review-primary b, .language-review-primary small { display: block; }
.language-review-primary b { font-size: 12px; }
.language-review-primary small { margin-top: 2px; color: #b8b2e3; font-size: 11px; font-weight: 600; }
.language-review-privacy { margin: 0; padding: 10px 12px 12px; border-top: 1px solid var(--line); color: var(--quiet); font-size: 11px; line-height: 1.5; }
.language-review-privacy b { color: #c9ced8; }
.language-review-card[data-state="ready"] { border-color: rgba(67,220,176,.34); background: radial-gradient(circle at 100% 0, rgba(67,220,176,.1), transparent 35%), var(--paper-2); }
.language-review-card[data-state="ready"] .language-review-heading i { border-color: rgba(67,220,176,.28); background: rgba(67,220,176,.07); color: var(--mint); }
.progress-review-section { margin-top: 12px; overflow: hidden; border: 1px solid rgba(67,220,176,.22); border-radius: 14px; background: radial-gradient(circle at 0 0, rgba(67,220,176,.09), transparent 33%), linear-gradient(145deg, rgba(128,108,255,.06), rgba(13,16,22,.98)); }
.progress-review-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 15px; border-bottom: 1px solid var(--line); }
.progress-review-heading > div { min-width: 0; }
.progress-review-heading > div > span, .progress-encouragement > span, .review-rhythm > header span { display: block; color: var(--mint); font-size: 10px; font-weight: 850; letter-spacing: .13em; }
.progress-review-heading h3 { margin: 6px 0 0; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 21px; font-weight: 500; line-height: 1.12; letter-spacing: -.025em; }
.progress-review-heading p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.progress-review-heading i { flex: 0 1 auto; max-width: 46%; padding: 5px 8px; border: 1px solid var(--line); border-radius: 99px; color: var(--quiet); font-size: 11px; font-style: normal; line-height: 1.35; text-align: center; }
.progress-review-section[data-state="active"] .progress-review-heading i { border-color: rgba(67,220,176,.28); background: rgba(67,220,176,.07); color: var(--mint); }
.progress-review-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-bottom: 1px solid var(--line); }
.progress-review-metrics > div { min-width: 0; padding: 12px; }
.progress-review-metrics > div + div { border-left: 1px solid var(--line); }
.progress-review-metrics dt, .progress-review-metrics dd, .progress-review-metrics dd > span, .progress-review-metrics small { display: block; }
.progress-review-metrics dt { color: var(--quiet); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.progress-review-metrics dd { margin: 6px 0 0; overflow: hidden; font-variant-numeric: tabular-nums; }
.progress-review-metrics dd > span { overflow: hidden; color: var(--ink); font-size: 18px; font-weight: 760; text-overflow: ellipsis; white-space: nowrap; }
.progress-review-metrics small { margin-top: 3px; color: var(--quiet); font-size: 11px; line-height: 1.35; }
.progress-encouragement { margin: 12px 12px 0; padding: 13px 14px; border: 1px solid rgba(160,146,255,.26); border-radius: 11px; background: linear-gradient(135deg, rgba(128,108,255,.12), rgba(67,220,176,.055)); }
.progress-encouragement > span { color: var(--violet-bright); }
.progress-encouragement > p { margin: 7px 0 0; color: #e2e5eb; font-size: 12px; line-height: 1.5; }
.review-rhythm { padding: 14px 12px 13px; }
.review-rhythm > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.review-rhythm > header > div { min-width: 0; }
.review-rhythm > header h4 { margin: 5px 0 0; color: #e3e7ed; font-size: 12px; font-weight: 700; line-height: 1.35; }
.review-rhythm > header b { flex: 0 0 auto; color: var(--mint); font-size: 11px; font-weight: 760; }
.review-rhythm-path { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; margin: 13px 0 0; padding: 0; list-style: none; }
.review-rhythm-path::before { content: ""; position: absolute; top: 8px; right: 7%; left: 7%; height: 1px; background: linear-gradient(90deg, var(--violet-bright), var(--mint)); opacity: .42; }
.review-rhythm-path li { position: relative; min-width: 0; padding: 20px 4px 0; text-align: center; }
.review-rhythm-path li::before { content: ""; position: absolute; top: 3px; left: 50%; width: 10px; height: 10px; transform: translateX(-50%); border: 2px solid #171b24; border-radius: 50%; background: #5b6070; box-shadow: 0 0 0 1px rgba(160,146,255,.35); }
.review-rhythm-path li[data-state="reached"]::before { background: var(--violet-bright); }
.review-rhythm-path li[data-state="due"]::before { background: var(--mint); box-shadow: 0 0 0 5px rgba(67,220,176,.1); }
.review-rhythm-path span, .review-rhythm-path small, .review-rhythm-path em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review-rhythm-path span { color: #dfe3ea; font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.review-rhythm-path small { margin-top: 3px; color: var(--quiet); font-size: 10px; }
.review-rhythm-path em { margin-top: 4px; color: #7f8593; font-size: 9px; font-style: normal; font-weight: 720; }
.review-rhythm-path li[data-state="reached"] em { color: var(--violet-bright); }
.review-rhythm-path li[data-state="due"] em { color: var(--mint); }
.review-rhythm-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line); }
.review-rhythm-actions p { margin: 0; color: var(--quiet); font-size: 11px; line-height: 1.45; }
.review-rhythm-actions button { min-height: 44px; padding: 0 12px; border: 1px solid rgba(67,220,176,.3); border-radius: 9px; background: rgba(67,220,176,.08); color: #ddfff5; cursor: pointer; font-size: 12px; font-weight: 740; }
.review-rhythm-actions button:hover:not(:disabled) { border-color: var(--mint); background: rgba(67,220,176,.13); }
.review-rhythm-actions button:disabled { opacity: .42; cursor: not-allowed; }
.learning-history-section { margin-top: 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg, rgba(128,108,255,.045), rgba(13,16,22,.98)); }
.learning-history-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 15px; border-bottom: 1px solid var(--line); }
.learning-history-heading > div:first-child { min-width: 0; }
.learning-history-heading > div:first-child > span { color: var(--violet-bright); font-size: 10px; font-weight: 850; letter-spacing: .13em; }
.learning-history-heading h3 { margin: 6px 0 0; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 19px; font-weight: 500; line-height: 1.15; letter-spacing: -.025em; }
.learning-history-heading p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.learning-history-heading-actions { flex: 0 0 auto; display: grid; justify-items: end; gap: 4px; }
.learning-history-heading-actions > span { color: var(--mint); font-size: 11px; font-weight: 760; }
.learning-history-heading-actions > small { color: var(--quiet); font-size: 10px; font-variant-numeric: tabular-nums; }
.learning-history-section[data-state="opted-out"] .learning-history-heading-actions > span { color: var(--quiet); }
.learning-history-heading-actions button { min-height: 40px; padding: 0 4px; border: 0; background: transparent; color: var(--quiet); cursor: pointer; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.learning-history-heading-actions button:hover:not(:disabled) { color: var(--ink); }
.learning-history-heading-actions button:disabled { opacity: .42; cursor: not-allowed; }
.learning-history-list { display: grid; gap: 9px; padding: 12px; }
.learning-history-empty { display: grid; gap: 5px; padding: 16px 14px; border: 1px dashed var(--line); border-radius: 10px; text-align: center; }
.learning-history-empty b { color: #dce1e9; font-size: 12px; }
.learning-history-empty span { color: var(--quiet); font-size: 11px; line-height: 1.45; }
.learning-history-item { padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: rgba(9,12,18,.66); }
.learning-history-item > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.learning-history-session-label time, .learning-history-session-label span { display: block; }
.learning-history-session-label time { color: #e3e6ec; font-size: 12px; font-weight: 760; }
.learning-history-session-label span { margin-top: 3px; color: var(--quiet); font-size: 11px; }
.learning-history-item-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 5px; }
.learning-history-item-actions button { min-height: 40px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-high); color: var(--muted); cursor: pointer; font-size: 11px; font-weight: 700; }
.learning-history-item-actions button:hover { border-color: rgba(160,146,255,.4); color: var(--ink); }
.learning-history-item-actions button:last-child { border-color: transparent; background: transparent; color: var(--quiet); text-decoration: underline; text-underline-offset: 3px; }
.learning-history-item > h4 { margin: 11px 0 0; color: var(--ink); font-size: 13px; font-weight: 680; line-height: 1.5; }
.learning-history-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 11px 0 0; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; }
.learning-history-metrics > div { min-width: 0; padding: 8px; }
.learning-history-metrics > div + div { border-left: 1px solid var(--line); }
.learning-history-metrics dt { color: var(--quiet); font-size: 10px; line-height: 1.2; }
.learning-history-metrics dd { margin: 5px 0 0; overflow: hidden; color: #e7e9ee; font-size: 12px; font-weight: 730; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.learning-history-review { display: grid; gap: 10px; margin-top: 11px; padding-top: 11px; border-top: 1px solid var(--line); }
.learning-history-review > div { padding-left: 10px; border-left: 2px solid rgba(160,146,255,.38); }
.learning-history-review > div:nth-child(2) { border-left-color: rgba(67,220,176,.42); }
.learning-history-review span { color: var(--violet-bright); font-size: 10px; font-weight: 850; letter-spacing: .11em; }
.learning-history-review p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.learning-history-privacy { margin: 0; padding: 10px 14px 12px; border-top: 1px solid var(--line); color: var(--quiet); font-size: 11px; line-height: 1.5; }
.learning-history-privacy b { color: #c9ced8; }
.learning-memory-section { margin-top: 12px; overflow: hidden; border: 1px solid rgba(160,146,255,.22); border-radius: 14px; background: radial-gradient(circle at 100% 0, rgba(128,108,255,.12), transparent 34%), var(--paper-2); }
.learning-memory-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 15px; border-bottom: 1px solid var(--line); }
.learning-memory-heading > div:first-child { min-width: 0; }
.learning-memory-heading span { color: var(--violet-bright); font-size: 8px; font-weight: 850; letter-spacing: .13em; }
.learning-memory-heading h3 { margin: 6px 0 0; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 19px; font-weight: 500; line-height: 1.15; letter-spacing: -.025em; }
.learning-memory-counts { flex: 0 0 auto; display: grid; grid-template-columns: repeat(2, minmax(42px, 1fr)); margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: rgba(9,12,18,.58); }
.learning-memory-counts > div { min-width: 42px; padding: 7px 9px; text-align: center; }
.learning-memory-counts > div + div { border-left: 1px solid var(--line); }
.learning-memory-counts dt { color: var(--quiet); font-size: 7px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.learning-memory-counts dd { margin: 4px 0 0; color: var(--ink); font-size: 13px; font-weight: 760; font-variant-numeric: tabular-nums; }
.learning-memory-counts > div:first-child dd { color: var(--mint); }
.learning-memory-list { display: grid; gap: 9px; padding: 12px; }
.learning-memory-empty { margin: 0; padding: 15px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); font-size: 9px; line-height: 1.5; text-align: center; }
.learning-memory-item { padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: rgba(9,12,18,.64); }
.learning-memory-item[data-state="due"] { border-color: rgba(67,220,176,.3); background: linear-gradient(145deg, rgba(67,220,176,.07), rgba(9,12,18,.72)); }
.learning-memory-item > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.learning-memory-item > header > div { min-width: 0; }
.learning-memory-item > header span { display: block; color: var(--mint); font-size: 7px; font-weight: 850; letter-spacing: .12em; }
.learning-memory-item > header p { margin: 7px 0 0; color: var(--ink); font-size: 11px; line-height: 1.45; }
.learning-memory-forget { min-height: 36px; flex: 0 0 auto; padding: 0 7px; border: 0; background: transparent; color: var(--quiet); cursor: pointer; font-size: 9px; text-decoration: underline; text-underline-offset: 3px; }
.learning-memory-forget:hover { color: var(--ink); }
.learning-memory-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line); color: var(--quiet); font-size: 8px; }
.learning-memory-meta time { text-align: right; }
.learning-memory-result { margin: 10px 0 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.learning-memory-outcomes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.learning-memory-outcomes button { min-height: 40px; padding: 0 8px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel-high); color: var(--muted); cursor: pointer; font-size: 9px; font-weight: 700; }
.learning-memory-outcomes button:hover { border-color: rgba(160,146,255,.4); color: var(--ink); }
.learning-memory-outcomes button:first-child { border-color: rgba(67,220,176,.28); background: rgba(67,220,176,.07); color: #ddfff5; }
.learning-memory-privacy { margin: 0; padding: 10px 14px 12px; border-top: 1px solid var(--line); color: var(--quiet); font-size: 8px; line-height: 1.45; }
.session-evidence { margin-top: 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--paper-2); }
.session-evidence > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 14px; border-bottom: 1px solid var(--line); }
.session-evidence > header span { color: var(--violet-bright); font-size: 8px; font-weight: 850; letter-spacing: .13em; }
.session-evidence > header i { color: var(--quiet); font-size: 8px; font-style: normal; }
.session-evidence > div { display: grid; grid-template-columns: repeat(2, 1fr); }
.session-evidence article { min-width: 0; padding: 13px 14px; }
.session-evidence article:nth-child(even) { border-left: 1px solid var(--line); }
.session-evidence article:nth-child(n+3) { border-top: 1px solid var(--line); }
.session-evidence article span, .session-evidence article b, .session-evidence article small { display: block; }
.session-evidence article span { color: var(--quiet); font-size: 7px; font-weight: 820; letter-spacing: .09em; }
.session-evidence article b { margin-top: 7px; font-size: 15px; }
.session-evidence article small { margin-top: 4px; color: var(--quiet); font-size: 8px; }
.evidence-guide { margin-top: 12px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(13,16,22,.64); }
.evidence-guide summary { color: var(--muted); cursor: pointer; font-size: 10px; font-weight: 700; }
.evidence-guide p { margin: 10px 0 0; color: var(--muted); font-size: 9px; line-height: 1.6; }
.evidence-guide b { color: #dbe0e8; }
.log-privacy { margin: 13px 0 21px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.event-log { display: grid; gap: 10px; }
.empty-log { display: grid; gap: 6px; padding: 25px 19px; border: 1px dashed var(--line); border-radius: 13px; color: var(--muted); text-align: center; }
.empty-log b { color: var(--ink); font-size: 11px; }
.empty-log span { font-size: 9px; line-height: 1.45; }
.log-turn { padding: 14px 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper-2); }
.log-turn.user { border-left: 2px solid var(--mint); }
.log-turn.coach { border-left: 2px solid var(--violet-bright); }
.log-turn header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.log-turn header b { color: var(--muted); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.log-turn header time { color: var(--quiet); font-size: 8px; font-variant-numeric: tabular-nums; }
.log-turn > p { margin: 8px 0 0; color: var(--ink); font-size: 11px; line-height: 1.5; }
.turn-signals { margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line); }
.turn-signals summary { color: var(--violet-bright); cursor: pointer; font-size: 8px; }
.turn-signals p { margin: 7px 0 0; color: var(--muted); font-size: 8px; line-height: 1.5; }

/* Optional personal coach setup */
.topbar-actions { grid-column: 3; justify-self: end; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.topbar-history { padding-inline: 10px; }
body:not([data-view="welcome"]) .topbar-history { display: none; }
body:not([data-view="welcome"]) .personalize-trigger { display: none; }
.personalize-trigger { min-height: 42px; display: flex; align-items: center; gap: 8px; padding: 5px 9px 5px 6px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; text-align: left; transition: border-color .16s ease, background .16s ease, color .16s ease; }
.personalize-trigger:hover { border-color: var(--line); background: rgba(17,21,28,.72); color: var(--ink); }
.personalize-trigger:disabled { opacity: .48; cursor: not-allowed; transform: none; }
.personalize-trigger-mark { width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid rgba(160,146,255,.28); border-radius: 50%; background: var(--violet-soft); color: var(--violet-bright); font-size: 14px; box-shadow: none; }
.personalize-trigger > span:last-child, .personalize-trigger b, .personalize-trigger small { display: block; }
.personalize-trigger b { font-size: 11px; line-height: 1.1; }
.personalize-trigger small { margin-top: 3px; color: var(--mint); font-size: 8px; font-weight: 760; letter-spacing: .09em; text-transform: uppercase; }

.personalization-dialog { width: min(1180px, calc(100vw - 32px)); height: min(900px, calc(100dvh - 32px)); max-width: none; max-height: none; margin: auto; padding: 0; overflow: hidden; border: 1px solid rgba(160,146,255,.25); border-radius: 25px; background: transparent; color: var(--ink); box-shadow: 0 42px 120px rgba(0,0,0,.68); }
.personalization-dialog::backdrop { background: rgba(3,5,9,.8); backdrop-filter: blur(11px); }
.personalization-dialog:not([open]) { display: none; }
.personalization-dialog[open] { animation: coach-setup-in .2s ease-out; }
@keyframes coach-setup-in { from { opacity: 0; transform: translateY(12px) scale(.992); } to { opacity: 1; transform: none; } }
.personalization-shell { width: 100%; height: 100%; display: flex; flex-direction: column; overflow: hidden; background: radial-gradient(circle at 92% -8%, rgba(128,108,255,.22), transparent 29rem), radial-gradient(circle at 0 100%, rgba(67,220,176,.075), transparent 28rem), #0d1016; }
.personalization-header { flex: 0 0 auto; min-height: 114px; display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; padding: 24px 28px 22px; border-bottom: 1px solid var(--line); background: rgba(13,16,22,.92); }
.personalization-title-group { max-width: 720px; }
.personalization-title-group .eyebrow { margin-bottom: 7px; color: var(--mint); font-size: 9px; }
.personalization-title-group h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(29px, 3vw, 43px); font-weight: 500; line-height: 1; letter-spacing: -.045em; }
.personalization-title-group > p:last-child { margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.personalization-header-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 11px; }
.personalization-status { display: inline-flex; align-items: center; gap: 7px; min-height: 31px; padding: 0 11px; border: 1px solid rgba(67,220,176,.22); border-radius: 99px; background: rgba(67,220,176,.07); color: var(--mint); font-size: 10px; font-weight: 760; }
.personalization-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 5px rgba(67,220,176,.08); }
.personalization-close { width: 36px; height: 36px; display: grid; place-items: center; padding: 0 0 3px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper-2); color: var(--muted); cursor: pointer; font-size: 22px; line-height: 1; transition: color .15s ease, border-color .15s ease, background .15s ease; }
.personalization-close:hover { border-color: rgba(160,146,255,.42); background: var(--violet-soft); color: var(--ink); }
.personalization-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 22px 28px 30px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }

.privacy-banner { display: flex; align-items: flex-start; gap: 13px; padding: 15px 17px; border: 1px solid rgba(67,220,176,.2); border-radius: 13px; background: rgba(67,220,176,.065); }
.privacy-banner-icon { width: 23px; height: 23px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: rgba(67,220,176,.12); color: var(--mint); font-size: 7px; }
.privacy-banner b { display: block; color: #d9fff3; font-size: 11px; }
.privacy-banner p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.personalization-choice { margin: 15px 0 0; padding: 0; border: 0; }
.personalization-choice legend { margin-bottom: 9px; color: #d5dae4; font-size: 10px; font-weight: 760; }
.personalization-choice > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.personalization-choice label { position: relative; min-width: 0; cursor: pointer; }
.personalization-choice input { position: absolute; opacity: 0; pointer-events: none; }
.personalization-choice span { min-height: 60px; display: flex; flex-direction: column; justify-content: center; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper-2); transition: border-color .15s ease, background .15s ease; }
.personalization-choice b, .personalization-choice small { display: block; }
.personalization-choice b { font-size: 11px; }
.personalization-choice small { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.personalization-choice input:checked + span { border-color: rgba(67,220,176,.48); background: rgba(67,220,176,.08); box-shadow: inset 3px 0 0 var(--mint); }
.personalization-choice input:focus-visible + span { outline: 3px solid rgba(67,220,176,.75); outline-offset: 3px; }
.personalization-shell[data-path="voice"] [data-path-card="face"],
.personalization-shell[data-path="voice"] [data-path-element="face"],
.personalization-shell[data-path="face"] [data-path-card="voice"] { display: none !important; }
.personalization-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 15px; margin-top: 15px; }
.setup-card { position: relative; min-width: 0; padding: 21px; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: rgba(17,21,28,.88); box-shadow: 0 12px 35px rgba(0,0,0,.12); }
.setup-card::after { content: ""; position: absolute; pointer-events: none; inset: 0 auto auto 0; width: 72px; height: 1px; background: var(--violet-bright); }
.setup-recording::after, .setup-face::after { background: var(--mint); }
.setup-card-number { position: absolute; top: 18px; right: 19px; color: var(--quiet); font-family: Georgia, "Times New Roman", serif; font-size: 23px; letter-spacing: -.04em; }
.setup-card-heading { padding-right: 58px; }
.setup-card-heading > span { color: var(--violet-bright); font-size: 9px; font-weight: 850; letter-spacing: .14em; }
.setup-recording .setup-card-heading > span, .setup-face .setup-card-heading > span { color: var(--mint); }
.setup-card-heading h3 { margin: 8px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 25px; font-weight: 500; line-height: 1.04; letter-spacing: -.035em; }
.setup-card-heading p { margin: 9px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.setup-field { display: grid; gap: 7px; margin-top: 17px; }
.setup-field > span, .field-label { color: #d5dae4; font-size: 10px; font-weight: 730; }
.setup-field input { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; outline: none; background: #090c12; color: var(--ink); font-size: 12px; }
.setup-field input::placeholder { color: var(--quiet); }
.setup-field input:focus { border-color: var(--violet-bright); box-shadow: 0 0 0 3px rgba(128,108,255,.1); }
.setup-field > small { color: var(--quiet); font-size: 9px; line-height: 1.4; }

.consent-script-wrap { margin-top: 14px; padding: 14px; border: 1px solid rgba(160,146,255,.22); border-radius: 12px; background: linear-gradient(145deg, rgba(128,108,255,.09), rgba(9,12,18,.7)); }
.consent-script-wrap blockquote { margin: 9px 0 0; padding-left: 11px; border-left: 2px solid var(--violet-bright); color: #e6e4f8; font-family: Georgia, "Times New Roman", serif; font-size: 13px; line-height: 1.48; }
.consent-script-wrap small { display: block; margin-top: 9px; color: var(--quiet); font-size: 9px; line-height: 1.4; }
.consent-check { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper-2); cursor: pointer; }
.consent-check input { width: 16px; height: 16px; flex: 0 0 auto; margin: 1px 0 0; accent-color: var(--mint); }
.consent-check span, .consent-check b, .consent-check small { display: block; }
.consent-check b { font-size: 11px; }
.consent-check small { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.4; }

.setup-camera-stage { position: relative; aspect-ratio: 16 / 9; margin-top: 17px; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: radial-gradient(circle at 50% 30%, rgba(128,108,255,.12), transparent 52%), #080b10; }
.setup-camera-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); background: transparent; }
.setup-camera-placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; color: var(--muted); text-align: center; }
.setup-camera-placeholder > span { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(160,146,255,.24); border-radius: 50%; color: var(--violet-bright); font-size: 20px; }
.setup-camera-placeholder b { margin-top: 3px; color: var(--ink); font-size: 11px; }
.setup-camera-placeholder small { font-size: 9px; }
.setup-camera-stage[data-state="previewing"] .setup-camera-placeholder, .setup-camera-stage[data-state="recording"] .setup-camera-placeholder { display: none; }
.setup-recording-indicator { position: absolute; z-index: 2; top: 10px; right: 10px; display: flex; align-items: center; gap: 7px; min-height: 29px; padding: 0 9px; border: 1px solid rgba(255,255,255,.16); border-radius: 99px; background: rgba(8,10,16,.72); color: white; backdrop-filter: blur(10px); font-size: 10px; font-variant-numeric: tabular-nums; }
.setup-recording-indicator i { width: 6px; height: 6px; border-radius: 50%; background: var(--quiet); }
.setup-camera-stage[data-state="recording"] .setup-recording-indicator i { background: var(--danger); box-shadow: 0 0 0 5px rgba(255,109,125,.11); }
.setup-recording-guide { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 9px 0 0; padding: 0; }
.setup-recording-guide li { min-width: 0; padding: 9px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper-2); }
.setup-recording-guide span, .setup-recording-guide b { display: block; }
.setup-recording-guide span { color: var(--mint); font-size: 8px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.setup-recording-guide b { margin-top: 5px; color: var(--muted); font-size: 9px; font-weight: 650; line-height: 1.35; }
.setup-recording-guide li.active { border-color: rgba(67,220,176,.38); background: rgba(67,220,176,.07); }
.setup-recording-guide li.active b { color: var(--ink); }
.setup-button-row { display: grid; grid-template-columns: 1fr .55fr; gap: 8px; margin-top: 10px; }
.setup-button-row .accent-button { justify-content: space-between; }
.setup-playback { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.setup-playback video { width: 100%; max-height: 230px; border: 1px solid var(--line); border-radius: 11px; background: #05070a; }
.download-recording { color: var(--violet-bright); font-size: 10px; font-weight: 730; text-underline-offset: 3px; }
.inline-status { color: var(--quiet); font-size: 9px; }

.voice-sample-card { display: grid; grid-template-columns: 1fr auto; gap: 13px 18px; margin-top: 17px; padding: 14px; border: 1px solid rgba(160,146,255,.22); border-radius: 12px; background: linear-gradient(145deg, rgba(128,108,255,.085), rgba(9,12,18,.78)); }
.voice-sample-copy { min-width: 0; }
.voice-sample-copy span, .voice-sample-copy b, .voice-sample-copy small { display: block; }
.voice-sample-copy span { color: var(--violet-bright); font-size: 8px; font-weight: 850; letter-spacing: .14em; }
.voice-sample-copy b { margin-top: 7px; font-size: 11px; }
.voice-sample-copy small { margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.voice-sample-card > time { align-self: start; min-width: 83px; padding: 8px 9px; border: 1px solid var(--line); border-radius: 99px; background: rgba(8,10,16,.72); color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; text-align: center; }
.voice-sample-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr .55fr; gap: 8px; }
.voice-sample-actions .accent-button { justify-content: space-between; }
.voice-sample-card audio { grid-column: 1 / -1; width: 100%; height: 37px; color-scheme: dark; }
.voice-sample-card[data-state="recording"] { border-color: rgba(255,109,125,.35); }
.voice-sample-card[data-state="recording"] > time { border-color: rgba(255,109,125,.34); color: #ffbcc5; }
.voice-sample-card[data-state="ready"] { border-color: rgba(67,220,176,.32); }
.voice-sample-card[data-state="ready"] > time { border-color: rgba(67,220,176,.26); color: var(--mint); }

.voice-remix { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.voice-remix-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.voice-remix-heading > div { min-width: 0; }
.voice-remix-heading > div > span { color: var(--mint); font-size: 11px; font-weight: 850; letter-spacing: .14em; }
.voice-remix-heading h4 { margin: 7px 0 0; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 500; line-height: 1.08; letter-spacing: -.025em; }
.voice-remix-heading p { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.voice-remix-heading > b { flex: 0 0 auto; padding: 6px 8px; border: 1px solid rgba(255,193,92,.25); border-radius: 99px; background: rgba(255,193,92,.08); color: #ffd18a; font-size: 11px; letter-spacing: .1em; }
.voice-remix-current { margin: 10px 0 0; color: var(--mint); font-size: 11px; font-weight: 750; letter-spacing: .02em; }
.voice-remix-boundary { margin-top: 13px; padding: 11px 12px; border-left: 2px solid var(--violet-bright); background: rgba(128,108,255,.075); }
.voice-remix-boundary b, .voice-remix-boundary span { display: block; }
.voice-remix-boundary b { color: #e9e6ff; font-size: 11px; }
.voice-remix-boundary span { margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.voice-remix-consent { display: flex; align-items: flex-start; gap: 9px; margin-top: 12px; padding: 11px 12px; border: 1px solid rgba(67,220,176,.2); border-radius: 10px; background: rgba(67,220,176,.045); cursor: pointer; }
.voice-remix-consent input { width: 16px; height: 16px; flex: 0 0 auto; margin: 1px 0 0; accent-color: var(--mint); }
.voice-remix-consent span, .voice-remix-consent b, .voice-remix-consent small { display: block; }
.voice-remix-consent b { color: var(--ink); font-size: 11px; line-height: 1.35; }
.voice-remix-consent small { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.voice-remix-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 9px; margin-top: 13px; }
.voice-remix-controls label > span { display: block; margin-bottom: 6px; color: #d5dae4; font-size: 11px; font-weight: 730; }
.voice-remix-controls select { width: 100%; height: 39px; padding: 0 31px 0 11px; border: 1px solid var(--line); border-radius: 9px; outline: none; background: #090c12; color: var(--ink); font-size: 12px; cursor: pointer; }
.voice-remix-controls select:focus { border-color: var(--violet-bright); box-shadow: 0 0 0 3px rgba(128,108,255,.1); }
.voice-remix-controls button { min-height: 39px; white-space: nowrap; }
.voice-remix-compare { min-inline-size: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 10px 0 0; padding: 0; border: 0; }
.voice-remix-option { min-width: 0; padding: 11px; border: 1px solid var(--line); border-radius: 11px; background: rgba(9,12,18,.72); transition: border-color .15s ease, background .15s ease, opacity .15s ease; }
.voice-remix-original { grid-column: 1 / -1; }
.voice-remix-option label { display: flex; align-items: center; gap: 9px; cursor: pointer; }
.voice-remix-option input { position: absolute; opacity: 0; pointer-events: none; }
.voice-remix-select { width: 15px; height: 15px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid rgba(160,146,255,.35); border-radius: 50%; }
.voice-remix-select::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: transparent; transform: scale(.4); transition: background .15s ease, transform .15s ease; }
.voice-remix-copy, .voice-remix-copy b, .voice-remix-copy small { display: block; min-width: 0; }
.voice-remix-copy b { color: var(--ink); font-size: 12px; }
.voice-remix-copy small { margin-top: 3px; color: var(--quiet); font-size: 11px; line-height: 1.3; }
.voice-remix-active { display: inline-block; margin-left: 5px; padding: 2px 5px; border-radius: 99px; background: rgba(67,220,176,.12); color: var(--mint); font-family: Arial, sans-serif; font-size: 11px; font-style: normal; letter-spacing: .08em; vertical-align: 1px; }
.voice-remix-active[hidden] { display: none; }
.voice-remix-option > p { min-height: 30px; margin: 9px 0 0; color: var(--quiet); font-size: 11px; line-height: 1.4; }
.voice-remix-option audio { width: 100%; height: 32px; margin-top: 8px; color-scheme: dark; }
.voice-remix-option[data-remix-state="waiting"] { opacity: .58; }
.voice-remix-option[data-remix-state="working"] { border-color: rgba(160,146,255,.34); background: rgba(128,108,255,.06); }
.voice-remix-option[data-remix-state="ready"] { opacity: 1; }
.voice-remix-option:has(input:checked) { border-color: rgba(67,220,176,.42); background: rgba(67,220,176,.055); box-shadow: inset 2px 0 0 var(--mint); }
.voice-remix-option input:checked + .voice-remix-select { border-color: var(--mint); }
.voice-remix-option input:checked + .voice-remix-select::after { background: var(--mint); transform: scale(1); }
.voice-remix-option input:focus-visible + .voice-remix-select { outline: 3px solid rgba(67,220,176,.65); outline-offset: 3px; }
.voice-remix-option[data-active="true"] { box-shadow: inset 2px 0 0 var(--mint); }
.voice-remix-status { margin-top: 10px; }
.voice-remix > .setup-wide-button { margin-top: 8px; justify-content: space-between; }

.credit-meter { display: grid; grid-template-columns: repeat(3, 1fr); margin: 17px 0 0; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--paper-2); }
.credit-meter > div { padding: 12px; }
.credit-meter > div + div { border-left: 1px solid var(--line); }
.credit-meter dt { color: var(--quiet); font-size: 8px; font-weight: 780; letter-spacing: .12em; text-transform: uppercase; }
.credit-meter dd { margin: 6px 0 0; color: var(--ink); font-size: 11px; font-weight: 720; }
.setup-wide-button { width: 100%; margin-top: 13px; }
.setup-wide-button i { font-size: 15px; font-style: normal; }
.advanced-face-training { margin-top: 15px; border-top: 1px solid var(--line); padding-top: 13px; }
.advanced-face-training summary { color: #c8ced9; font-size: 10px; font-weight: 720; cursor: pointer; }
.advanced-face-training > p { margin: 10px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.advanced-face-training[open] summary { color: var(--mint); }
.setup-action-note { margin: 7px 0 0; color: var(--quiet); font-size: 9px; line-height: 1.4; }
.setup-progress-status { display: flex; align-items: flex-start; gap: 9px; margin-top: 12px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(9,12,18,.7); color: var(--muted); font-size: 10px; line-height: 1.4; }
.setup-progress-status > i { width: 7px; height: 7px; flex: 0 0 auto; margin-top: 2px; border-radius: 50%; background: var(--quiet); }
.setup-progress-status[data-state="working"] { border-color: rgba(160,146,255,.3); color: #dcd8ff; }
.setup-progress-status[data-state="working"] > i { background: var(--violet-bright); box-shadow: 0 0 0 5px rgba(128,108,255,.1); }
.setup-progress-status[data-state="ready"] { border-color: rgba(67,220,176,.3); color: #d9fff3; }
.setup-progress-status[data-state="ready"] > i { background: var(--mint); box-shadow: 0 0 0 5px rgba(67,220,176,.09); }
.setup-progress-status[data-state="error"] { border-color: rgba(255,109,125,.3); color: #ffbcc5; }
.setup-progress-status[data-state="error"] > i { background: var(--danger); }
.pal-maker-option { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); }
.pal-maker-option div { min-width: 0; }
.pal-maker-option b, .pal-maker-option span { display: block; }
.pal-maker-option b { font-size: 10px; }
.pal-maker-option div > span { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.pal-maker-option > a { flex: 0 0 auto; padding: 8px 10px; border: 1px solid rgba(160,146,255,.28); border-radius: 8px; color: var(--violet-bright); text-decoration: none; font-size: 9px; font-weight: 730; }
.pal-maker-option > a:hover { background: var(--violet-soft); border-color: rgba(160,146,255,.5); }
.pal-maker-option > a span { display: inline; }

.personalization-footer { flex: 0 0 auto; min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 15px 28px; border-top: 1px solid var(--line); background: rgba(9,12,18,.97); box-shadow: 0 -16px 36px rgba(0,0,0,.16); }
.personalization-footer > div:first-child { min-width: 0; }
.personalization-footer b, .personalization-footer span { display: block; }
.personalization-footer b { font-size: 10px; }
.personalization-footer > div:first-child span { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.personalization-footer-actions { flex: 0 0 auto; display: grid; grid-template-columns: 130px 210px; gap: 9px; }
.personalization-footer-actions .accent-button { justify-content: space-between; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

@media (max-width: 1050px) {
  .session-length-options { grid-template-columns: repeat(3, minmax(58px, 1fr)); }
  .session-length-options .open-ended { grid-column: span 2; }
  .conversation[data-console-open="true"] .conversation-grid { grid-template-columns: minmax(0, 1fr) 350px; }
  .tools-panel, .practice-panel, .log-panel { padding: 28px; }
  .personalization-dialog { width: calc(100vw - 24px); height: calc(100dvh - 24px); }
  .personalization-grid { grid-template-columns: 1fr; }
  .session-recap-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .session-recap-actions .session-recap-primary { grid-column: 1 / -1; }
}

@media (min-width: 561px) and (max-height: 820px) {
  .welcome { min-height: auto; align-items: flex-start; padding: 38px 0 28px; }
  .welcome h1 { font-size: clamp(48px, 5vw, 58px); }
  .welcome-lede { margin-top: 14px; }
  .starter-card { margin-top: 22px; padding: 18px; }
  .session-length-picker { margin-top: 15px; padding-top: 14px; }
  .coach-readiness { min-height: 40px; margin-top: 8px; }
  .welcome-start { margin-top: 11px; }
  .history-opt-in { min-height: 42px; margin-top: 8px; }
}

@media (max-width: 840px) {
  .app-shell { padding-inline: 18px; }
  .topbar { position: sticky; z-index: 40; top: 0; background: rgba(9,11,16,.95); backdrop-filter: blur(15px); }
  .welcome { min-height: calc(100dvh - 78px); padding: 42px 0; }
  .session-setup-sheet { right: 18px; bottom: max(18px, env(safe-area-inset-bottom)); width: calc(100vw - 36px); max-height: calc(100dvh - 36px); }
  .conversation { padding-top: 12px; }
  .conversation-grid,
  .conversation[data-console-open="true"] .conversation-grid { height: calc(100dvh - 102px); min-height: 540px; grid-template-columns: 1fr; grid-template-rows: auto auto; overflow: hidden; border-radius: 20px; }
  .coach-stage { min-height: 100%; border: 0 !important; }
  .conversation[data-console-open="true"] .coach-console { position: fixed; z-index: 62; left: 14px; right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); max-height: min(72dvh, 720px); display: flex; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 28px 90px rgba(0,0,0,.62); }
  .conversation[data-console-open="true"] .console-backdrop:not([hidden]) { position: fixed; z-index: 61; inset: 0; display: block; min-height: 0; border: 0; background: rgba(2,4,8,.68); backdrop-filter: blur(3px); }
  .conversation[data-mode="review"] .conversation-grid,
  .conversation[data-mode="complete"] .conversation-grid { height: auto; min-height: 0; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .conversation[data-mode="review"] .coach-console,
  .conversation[data-mode="complete"] .coach-console { position: static; max-height: none; overflow: visible; border: 1px solid var(--line); border-radius: 20px; box-shadow: none; }
  .conversation[data-mode="review"] .tools-panel,
  .conversation[data-mode="review"] .practice-panel,
  .conversation[data-mode="review"] .log-panel,
  .conversation[data-mode="complete"] .tools-panel,
  .conversation[data-mode="complete"] .practice-panel,
  .conversation[data-mode="complete"] .log-panel { max-height: none; overflow: visible; }
  .personalization-dialog { width: 100vw; height: 100dvh; border: 0; border-radius: 0; }
  .personalization-header { padding-inline: 20px; }
  .personalization-scroll { padding-inline: 20px; }
  .personalization-footer { padding-inline: 20px; }
}

@media (max-width: 560px) {
  .app-shell { padding: 0 12px 26px; }
  .topbar { height: 66px; grid-template-columns: auto 1fr auto; }
  .topbar-session { justify-self: center; }
  .topbar-session b { display: none; }
  .topbar-clock { padding-left: 0; border-left: 0; }
  .topbar-clock > small, #session-timer { display: none; }
  .session-ending-soon { position: absolute; top: 59px; left: 50%; transform: translateX(-50%); background: rgba(20,16,12,.95); }
  .personalize-trigger { width: 44px; height: 44px; min-height: 44px; padding: 6px; justify-content: center; }
  .personalize-trigger > span:last-child { display: none; }
  .personalize-trigger-mark { width: 27px; height: 27px; }
  .welcome { min-height: calc(100dvh - 92px); padding: 34px 0 52px; }
  .welcome h1 { font-size: clamp(40px, 12.5vw, 46px); }
  .welcome-lede { font-size: 14px; }
  .session-setup-sheet { right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); width: calc(100vw - 20px); max-height: calc(100dvh - max(20px, env(safe-area-inset-bottom))); padding: 17px 16px; border-radius: 18px; }
  .session-setup-header { gap: 14px; padding-bottom: 15px; }
  .session-setup-header h2 { font-size: 27px; }
  .session-setup-header p:last-child { font-size: 10px; }
  .session-setup-sheet .starter-card { margin-top: 16px; padding: 0; }
  .starter-chips { display: flex; gap: 7px; margin-right: -16px; padding-right: 16px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x proximity; scrollbar-width: none; }
  .starter-chips::-webkit-scrollbar, .session-length-options::-webkit-scrollbar { display: none; }
  .starter-chips button { min-width: 132px; min-height: 42px; flex: 0 0 auto; scroll-snap-align: start; text-align: center; }
  .session-length-picker legend { display: block; }
  .session-length-picker legend small { display: block; margin-top: 4px; text-align: left; }
  .session-length-options { display: flex; margin-right: -16px; padding: 1px 16px 1px 0; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x proximity; scrollbar-width: none; }
  .session-length-options label { min-width: 66px; flex: 0 0 auto; scroll-snap-align: start; }
  .session-length-options .open-ended { min-width: 96px; }
  .session-setup-footer { grid-template-columns: 1fr; gap: 12px; }
  .session-setup-footer .primary-button { width: 100%; }
  .welcome-note { font-size: 10px; }
  .welcome-start { width: 100%; }
  .coach-caption { left: 12px; right: 12px; bottom: 78px; padding: 12px 13px; }
  .coach-caption p { font-size: 11px; }
  .conversation-dock { bottom: 12px; gap: 3px; }
  .conversation-dock button { min-width: 44px; min-height: 44px; padding: 0 10px; }
  .conversation-dock b { font-size: 10px; }
  .coach-state { top: 12px; left: 12px; }
  .self-view { top: 12px; right: 12px; width: 95px; border-radius: 10px; }
  .tools-panel, .practice-panel, .log-panel { padding: 24px 19px; }
  .turn-metrics { grid-template-columns: 1fr 1fr; }
  .turn-metrics > div:nth-child(3) { border-left: 0; }
  .turn-metrics > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .sentence-studio-heading { display: block; }
  .sentence-studio-heading > i { display: inline-block; max-width: 100%; margin-top: 9px; }
  .sentence-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sentence-metrics > div:not(:nth-child(3n + 1)) { border-left: 0; }
  .sentence-metrics > div:nth-child(even) { border-left: 1px solid var(--line); }
  .sentence-metrics > div:last-child { grid-column: 1 / -1; border-left: 0; }
  .sentence-chart-explainer-heading { display: block; }
  .sentence-chart-explainer-heading small { display: block; margin-top: 5px; text-align: left; }
  .sentence-chart-guide { grid-template-columns: 1fr; }
  .console-intro > p:last-child, .coach-tool small, .media-copy span, .media-card > small, .chat-box label { font-size: 10px; }
  .console-intro h2 { font-size: 34px; }
  .media-controls { grid-template-columns: 1fr; }
  .practice-heading { display: block; }
  .practice-heading h2 { font-size: 31px; }
  .practice-step { display: inline-block; max-width: none; margin-top: 12px; }
  .practice-flow { margin-top: 21px; }
  .practice-flow li b { font-size: 6px; }
  .practice-form-actions, .practice-model-actions, .practice-actions { grid-template-columns: 1fr; }
  .practice-target-card > p { font-size: 21px; }
  .learning-recall-strip { grid-template-columns: auto minmax(0, 1fr); }
  .learning-recall-start { grid-column: 1 / -1; width: 100%; }
  .learning-recall-status { grid-column: 1 / -1; margin-top: 0; }
  .learning-recall-text-form { grid-column: 1 / -1; }
  .transfer-evidence-card > header { display: block; }
  .transfer-evidence-card > header i { display: inline-block; margin-top: 9px; }
  .transfer-save-row { grid-template-columns: 1fr; }
  .learning-memory-heading { display: block; }
  .learning-memory-counts { width: fit-content; margin-top: 12px; }
  .learning-memory-outcomes { grid-template-columns: 1fr; }
  .learning-history-heading { display: block; }
  .learning-history-heading-actions { justify-items: start; margin-top: 12px; }
  .learning-history-item > header { display: block; }
  .learning-history-item-actions { margin-top: 9px; }
  .learning-history-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .learning-history-metrics > div:nth-child(3) { border-left: 0; }
  .learning-history-metrics > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .session-recap-heading { display: block; }
  .session-recap-heading i { display: inline-block; max-width: 100%; margin-top: 10px; }
  .recap-visual { padding: 12px; }
  .recap-visual-grid { grid-template-columns: 1fr; }
  .recap-visual-section[data-section="next-practice"], .recap-visual-section--next-practice { grid-column: 1; }
  .recap-visual-empty-labels { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 13px; }
  .recap-visual-empty-labels span { white-space: normal; }
  .session-recap-grid { grid-template-columns: 1fr; }
  .session-recap-grid article, .session-recap-overview, .session-recap-phrase, .session-recap-evidence { grid-column: 1; }
  .session-recap-focus { border-left: 0; }
  .session-recap-actions { grid-template-columns: 1fr; }
  .session-recap-actions .session-recap-primary { grid-column: 1; }
  .language-review-heading { display: block; }
  .language-review-heading i { display: inline-block; max-width: 100%; margin-top: 10px; }
  .language-review-grid { grid-template-columns: 1fr; }
  .language-review-grid article:nth-child(even) { border-left: 0; }
  .language-review-grid article:nth-child(n+2) { border-top: 1px solid var(--line); }
  .language-review-grid .language-review-polished { grid-column: 1; }
  .language-review-actions { grid-template-columns: 1fr; }
  .progress-review-heading { display: block; }
  .progress-review-heading i { display: inline-block; max-width: 100%; margin-top: 10px; }
  .progress-review-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .progress-review-metrics > div:nth-child(3) { border-left: 0; }
  .progress-review-metrics > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .review-rhythm > header { align-items: flex-start; flex-direction: column; }
  .review-rhythm-path { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 12px; }
  .review-rhythm-path::before { display: none; }
  .review-rhythm-actions { grid-template-columns: 1fr; }
  .review-rhythm-actions button { width: 100%; }
  .personalization-header { min-height: 104px; gap: 12px; padding: 18px 15px; }
  .personalization-close { width: 44px; height: 44px; }
  .personalization-title-group > p:last-child { display: none; }
  .personalization-title-group h2 { font-size: 30px; }
  .personalization-status { display: none; }
  .personalization-scroll { padding: 14px 12px 22px; }
  .personalization-choice > div { grid-template-columns: 1fr; }
  .personalization-choice span { min-height: 54px; }
  .setup-card { padding: 18px 15px; }
  .setup-card-heading p, .privacy-banner p, .voice-sample-copy small, .setup-action-note, .setup-field > small { font-size: 10px; }
  .setup-progress-status { font-size: 11px; }
  .setup-card-number { right: 15px; }
  .setup-card-heading { padding-right: 48px; }
  .setup-recording-guide { grid-template-columns: 1fr; }
  .setup-button-row { grid-template-columns: 1fr; }
  .voice-sample-card { grid-template-columns: 1fr; }
  .voice-sample-card > time { justify-self: start; }
  .voice-sample-actions { grid-column: 1; grid-template-columns: 1fr; }
  .voice-sample-card audio { grid-column: 1; }
  .voice-remix-heading { display: block; }
  .voice-remix-heading > b { display: inline-block; margin-top: 10px; }
  .voice-remix-controls, .voice-remix-compare { grid-template-columns: 1fr; }
  .voice-remix-original { grid-column: 1; }
  .voice-remix-controls button { width: 100%; }
  .credit-meter { grid-template-columns: 1fr; }
  .credit-meter > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .pal-maker-option { align-items: flex-start; flex-direction: column; }
  .personalization-footer { min-height: 0; display: block; padding: 12px; }
  .personalization-footer > div:first-child { display: none; }
  .personalization-footer-actions { grid-template-columns: 1fr 1.4fr; }
}

@media (max-width: 840px) and (max-height: 680px), (orientation: landscape) and (max-height: 600px) {
  .coach-stage { position: relative; top: auto; min-height: 420px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

:where(button, a, input, textarea, summary):focus-visible { outline: 3px solid rgba(67,220,176,.75); outline-offset: 3px; }
