/* Generated from ui/legacy/site-study-linen.css. Legacy isolation; use ui/ for new design. */
@layer study-legacy {
/* Linen geometry, CHILLS colour system. Shared across Study application surfaces. */
:root{--linen-bg:#f7f5f0;--linen-surface:#fffefa;--linen-nav:#efede5;--linen-ink:#191919;--linen-muted:#625e55;--linen-line:#dedbd2;--linen-gold:#c69b26;--linen-gold-text:#765b12;--linen-soft:#f8edcc;--linen-success:#286649;--linen-error:#a1322c;--linen-radius:12px;--study-ink:var(--linen-ink);--study-paper:var(--linen-bg);--study-surface:var(--linen-surface);--study-line:var(--linen-line);--mustard:var(--linen-gold);--accent:var(--linen-gold);--quiet:var(--linen-muted);--muted:var(--linen-muted);--rule:var(--linen-line);--wash:var(--linen-bg);--chalk:var(--linen-surface);--ink:var(--linen-ink);--pale:var(--linen-soft)}
:root[data-study-theme=dark]{color-scheme:dark;--linen-bg:#191919;--linen-surface:#242424;--linen-nav:#20201f;--linen-ink:#fffefa;--linen-muted:#c7c3b8;--linen-line:#49473f;--linen-gold-text:#e5c56a;--linen-soft:#3a321d;--linen-success:#8dccaa;--linen-error:#ffaca3}
*{box-sizing:border-box}body{max-width:100%;margin:0}img,video,canvas{max-width:100%}button,input,select,textarea{font:inherit}a,button,input,select,textarea,summary{-webkit-tap-highlight-color:transparent}:focus-visible{outline:3px solid var(--linen-gold-text);outline-offset:3px}button{cursor:pointer}button:disabled{cursor:default}button,[role=button],summary{touch-action:manipulation}html{scroll-padding-top:90px}button[hidden],[hidden]{display:none!important}
body.study-unified{background:var(--linen-bg);color:var(--linen-ink);font-family:Geist,Arial,sans-serif;padding:0 0 0 232px;min-width:0;--sp-bg:var(--linen-surface);--sp-fg:var(--linen-ink)}
.study-unified>.header,.study-unified>.sidebar,.study-unified .sp-desktop-nav,.study-unified>.ops-header{display:none!important}
.study-global-nav{position:fixed;inset:0 auto 0 0;width:232px;padding:26px 16px 18px;background:var(--linen-nav);border-right:1px solid var(--linen-line);display:flex;flex-direction:column;gap:22px;overflow:auto;z-index:20;color:var(--linen-ink)}
.study-global-brand{font-size:30px;font-weight:850;letter-spacing:-1.8px;text-decoration:none;color:inherit;display:flex;align-items:center;gap:12px;padding:0 12px 20px}.study-global-brand small{font-size:12px;font-weight:450;letter-spacing:0;border-left:1px solid var(--linen-line);padding-left:12px}
.study-global-nav nav,.study-global-bottom{display:grid;gap:4px}.study-global-bottom{margin-top:auto;padding-top:16px;border-top:1px solid var(--linen-line)}
.study-global-nav a:not(.study-global-brand),.study-exam-nav summary{display:flex;align-items:center;gap:10px;min-height:44px;padding:10px 12px;border-radius:8px;font-size:13px;line-height:1.35;color:var(--linen-muted);text-decoration:none;font-weight:450;white-space:normal}
.study-global-nav a:hover,.study-global-nav a[aria-current=page]{background:var(--linen-surface);color:var(--linen-ink)}.study-global-nav a[aria-current=page]{box-shadow:inset 3px 0 var(--linen-gold);font-weight:650}.study-global-nav svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.5}.study-global-nav .study-owner-link{border:1px solid var(--linen-line)}.study-exam-nav{border-top:1px solid var(--linen-line);padding-top:8px}.study-exam-nav summary{cursor:pointer;font-weight:650}.study-exam-nav nav{padding-left:8px}.study-exam-nav nav a{font-size:12px}.study-global-bar{height:64px;padding:0 32px;display:flex;align-items:center;gap:20px;border-bottom:1px solid var(--linen-line);color:var(--linen-muted);background:var(--linen-bg)}.study-global-bar>a{font-size:13px;text-decoration:none;color:inherit}.study-global-bar>a:last-child{margin-left:auto}.study-global-bar>[data-study-menu],.study-menu-close{display:none}
.study-unified .workspace{margin-left:0;min-width:0}.study-unified #main,.study-unified.study-mode #main,.study-unified .ops-main{width:100%;max-width:1440px;margin:0 auto;padding:28px 32px;box-shadow:none;background:transparent;min-height:calc(100dvh - 140px)}
.study-unified .topbar{height:auto;min-height:44px;padding:12px 32px;background:var(--linen-bg);color:var(--linen-muted);border-bottom:0;gap:12px;flex-wrap:wrap;font-size:12px}.study-unified .topbar .mobile-menu-toggle{display:none}.study-unified .pilot-pill{margin-left:auto;background:var(--linen-surface);color:var(--linen-muted)}
.study-unified h1{font-size:clamp(24px,2.2vw,32px);font-weight:650;line-height:1.22;letter-spacing:-.6px}.study-unified h2{font-size:21px;line-height:1.3}.study-unified h3{font-size:17px;line-height:1.4}.study-unified .page-heading{margin-bottom:24px}.study-unified p{line-height:1.55}.study-unified .muted,.study-unified small{color:var(--linen-muted)}
.study-unified :is(.button,.sp-action){border-radius:8px;min-height:44px;padding:10px 16px;font-size:14px;line-height:1.35;white-space:normal}.study-unified :is(.button.primary,.sp-action.gold){background:var(--linen-gold);color:#191919;border-color:var(--linen-gold);font-weight:600}.study-unified :is(.button.secondary,.button:not(.primary):not(.ink),.sp-action.light){background:var(--linen-surface);color:var(--linen-ink);border:1px solid var(--linen-line)}.study-unified .button.ink{background:var(--linen-ink);color:var(--linen-surface)}.study-unified .button.danger{background:var(--linen-error);color:#fff;border-color:var(--linen-error)}
.study-unified :is(.panel,.account-card,.empty-state,.feedback-box,.writing-choice,.recorder-card,.timer-card,.question,.material,.ops-main section,.studio-panel,.builder-panel){border-radius:var(--linen-radius);border-color:var(--linen-line);background:var(--linen-surface);color:var(--linen-ink);box-shadow:none;min-width:0}.study-unified :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea){background:var(--linen-surface);color:var(--linen-ink);border:1px solid var(--linen-line);border-radius:8px;min-height:44px;max-width:100%;padding:10px 12px;font-size:16px}.study-unified textarea{line-height:1.6}.study-unified label{line-height:1.5}.study-unified dialog{border:1px solid var(--linen-line);border-radius:16px;background:var(--linen-surface);color:var(--linen-ink);max-width:calc(100% - 32px);max-height:85dvh;overflow:auto}.study-unified dialog::backdrop{background:#19191980}.study-password-toggle{display:block;margin:4px 0 12px auto;border:0;background:transparent;color:var(--linen-gold-text);padding:8px;min-height:44px;font-size:13px;text-decoration:underline}
/* Study: grouped lists and a compact light heading. */
.study-unified.study-mode .sp-frame{min-height:0;background:transparent;border:0;border-radius:0;overflow:visible}.study-unified.study-mode .sp-head{position:relative;top:auto;background:transparent;color:var(--linen-ink);box-shadow:none;border:0}.study-unified .sp-toolbar{padding:0 0 20px;min-height:64px;gap:8px}.study-unified .sp-title h1{font-size:clamp(24px,2.2vw,32px);font-weight:650}.study-unified .sp-title p{color:var(--linen-muted);font-size:14px}.study-unified .sp-bottom{display:none}
.study-unified.study-mode .sp-frame .sp-list{display:grid;grid-template-columns:1fr;gap:0;padding:0;border:1px solid var(--linen-line);border-radius:12px;overflow:hidden;background:var(--linen-surface);margin:8px 0 24px}.study-unified.study-mode .sp-row{border:0;border-bottom:1px solid var(--linen-line);border-radius:0;background:var(--linen-surface);color:var(--linen-ink);min-height:76px;padding:16px 20px;gap:16px}.study-unified.study-mode .sp-list .sp-row:last-child{border-bottom:0}.study-unified .sp-row:hover{background:var(--linen-bg);filter:none}.study-unified .sp-row h2,.study-unified .sp-row strong{font-size:16px;font-weight:550}.study-unified .sp-row p{font-size:14px;color:var(--linen-muted)}.study-unified .sp-circle,.study-unified .sp-circle.started{width:38px;height:38px;min-width:38px;background:var(--linen-soft);color:var(--linen-ink);font-size:13px}.study-unified .sp-lesson-score{font-size:12px;color:var(--linen-muted);text-align:right;max-width:130px}.study-unified .sp-lesson-score small{display:block;font-size:12px;margin-top:4px}.study-unified .sp-section,.study-unified .sp-section.dark{background:transparent;color:var(--linen-ink);padding:18px 0 10px;font-weight:600}.study-unified .sp-menu{gap:12px;padding:16px 0}.study-unified.study-mode .sp-menu .sp-row{border:1px solid var(--linen-line);border-radius:12px}.study-unified .sp-category-hero{background:var(--linen-soft);color:var(--linen-ink);border-radius:12px}.study-unified .sp-note,.study-unified .sp-caption{color:var(--linen-muted);padding:12px 0}.study-unified .sp-resume{display:flex;align-items:center;gap:20px;justify-content:space-between;padding:20px 24px;border:1px solid var(--linen-line);border-radius:12px;background:var(--linen-soft);margin-bottom:20px}.study-unified .sp-resume small{display:block;margin-bottom:4px}.study-unified .sp-resume p{margin:4px 0 0;font-size:14px}.study-unified .sp-library-tools{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:16px 0}.study-unified .sp-library-tools label{font-size:13px}.study-unified .sp-library-tools input{width:240px}.study-unified .sp-library-tools select{min-width:160px}.study-unified .sp-library-count{font-size:13px;color:var(--linen-muted)}
.study-unified.study-mode #main[data-study-page=catalog] .sp-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;border:0;background:transparent;overflow:visible}.study-unified.study-mode #main[data-study-page=catalog] .sp-row{border:1px solid var(--linen-line);border-radius:12px;min-height:120px}.study-unified .sp-search{padding:16px 0}.study-unified .sp-overview-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.study-unified .sp-overview-card{padding:20px;border:1px solid var(--linen-line);border-radius:12px;background:var(--linen-surface)}.study-unified .sp-overview-card p{margin:10px 0}.study-unified .sp-overview-card .sp-action{display:inline-flex;margin:8px 8px 0 0}
.study-unified.study-mode .sp-work{height:auto;min-height:calc(100dvh - 140px);max-width:100%;background:var(--linen-surface);border:1px solid var(--linen-line);border-radius:12px;padding:24px}.study-unified .sp-work .sp-title h1{font-size:21px}.study-unified .sp-work .sp-toolbar{padding-bottom:16px}.study-unified .sp-counts{color:var(--linen-muted)}.study-unified .sp-work .sp-options{min-height:0;flex:0;padding:20px 0;gap:12px}.study-unified .sp-work .sp-options button{min-height:52px;border:1px solid var(--linen-line);border-radius:8px;background:var(--linen-surface);font-size:18px;color:var(--linen-ink)}.study-unified .sp-mastery{margin:16px 0;padding:12px 0}.study-unified .sp-mastery>progress{width:100%;height:6px;accent-color:var(--linen-gold);display:block;margin:10px 0}.study-unified .sp-mastery-summary{display:flex;gap:12px;justify-content:space-between;flex-wrap:wrap;font-size:13px;color:var(--linen-muted)}.study-unified .sp-mastery details{margin-top:8px;font-size:13px}.study-unified .sp-mastery details .sp-matrix{display:grid;grid-template-columns:repeat(20,minmax(0,1fr));grid-auto-flow:row;grid-template-rows:none;grid-auto-rows:10px;gap:3px;max-height:180px;overflow:auto;margin:12px 0}.study-unified .sp-matrix .good{background:var(--linen-success)}.study-unified .sp-matrix .bad{background:var(--linen-error)}.study-unified .sp-next{min-height:64px;flex:0}.study-unified .sp-guide-nav{position:sticky;top:0;z-index:4;background:var(--linen-surface);padding:8px;border:1px solid var(--linen-line);border-radius:8px}.study-unified .sp-rich-guide{max-width:920px;width:100%;margin:0 auto;background:var(--linen-surface);border:1px solid var(--linen-line);border-radius:12px;padding:24px}.study-unified .sp-guide-section{scroll-margin-top:84px}.study-unified .sp-guide-footer{position:sticky;bottom:0;background:var(--linen-surface);padding:12px;border-top:1px solid var(--linen-line)}
/* Exam and operations share the same surfaces without replacing running media nodes. */
.study-unified .compact-exam-header{background:var(--linen-surface);border:1px solid var(--linen-line);border-radius:12px}.study-unified .mock-audio-panel{margin:0 32px;max-width:calc(100% - 64px);background:var(--linen-surface);color:var(--linen-ink);border-color:var(--linen-line)}.study-unified .simulation-report{display:flex;flex-direction:column}.study-unified .simulation-report .report-feedback{margin:16px 0}.study-unified .simulation-report .assessment-row{background:var(--linen-surface);color:var(--linen-ink)}.study-unified .report-method{font-size:13px;color:var(--linen-muted)}.study-unified .ops-main section{padding:24px;margin:24px 0}.study-unified .ops-nav{position:sticky;top:0;background:var(--linen-bg);padding:8px 0;z-index:4}.study-unified .ops-row{padding:16px 0}.study-unified footer{color:var(--linen-muted);border-color:var(--linen-line);padding:20px 32px}.study-unified [data-study-report]{font:inherit;font-size:13px;min-height:44px;padding:10px 12px;background:transparent;border:0;color:var(--linen-gold-text);text-decoration:underline}.study-unified .sp-frame>[data-study-report]{align-self:flex-start;margin:12px 0}.study-unified .speaking-mobile-switch{display:none}
/* Public pages retain their editorial hierarchy, with the same CHILLS palette. */
body:not(.study-unified){--accent:#765b12;--gold:#765b12}body:not(.study-unified) .shell{max-width:calc(100% - 32px)}body:not(.study-unified) a.text-link{color:#765b12}
@media(max-width:1099px){body.study-unified{padding:0}.study-global-nav{display:none;width:min(320px,calc(100% - 32px));box-shadow:20px 0 0 100vmax #19191980}.study-global-nav.is-open{display:flex}.study-menu-open{overflow:hidden}.study-global-bar{height:60px;padding:8px 16px;gap:12px}.study-global-bar>[data-study-menu],.study-menu-close{display:inline-flex}.study-unified #main,.study-unified.study-mode #main,.study-unified .ops-main{padding:24px;max-width:100%}.study-unified .topbar{padding:10px 24px}.study-unified .sp-work{min-height:0}.study-unified .sp-head{position:relative}.study-unified .study-global-nav nav a{min-height:44px}}
@media(max-width:600px){.study-unified #main,.study-unified.study-mode #main,.study-unified .ops-main{padding:20px 16px}.study-unified .topbar{padding:8px 16px}.study-unified .topbar .pilot-pill{display:none}.study-unified .sp-toolbar{flex-wrap:wrap;gap:4px}.study-unified .sp-title{min-width:140px}.study-unified .sp-title h1{font-size:23px}.study-unified.study-mode .sp-row{padding:14px 12px;gap:12px;min-height:76px}.study-unified .sp-lesson-score{max-width:75px;font-size:11px}.study-unified .sp-lesson-score small{font-size:11px}.study-unified .sp-row h2,.study-unified .sp-row strong{font-size:15px}.study-unified .sp-row p{font-size:13px}.study-unified .sp-resume{padding:16px;gap:12px;align-items:flex-start;flex-wrap:wrap}.study-unified .sp-resume .sp-action{margin-left:auto}.study-unified .sp-library-tools>*{min-width:0;flex:1}.study-unified .sp-library-tools input{width:100%}.study-unified.study-mode #main[data-study-page=catalog] .sp-list,.study-unified .sp-overview-cards{grid-template-columns:1fr}.study-unified.study-mode .sp-work{padding:16px}.study-unified .sp-work .sp-toolbar .sp-title{min-width:90px}.study-unified .sp-work .sp-options{gap:8px}.study-unified .sp-work .sp-options button{font-size:17px;padding:12px}.study-unified .sp-rich-guide{padding:16px}.study-unified .sp-guide-nav{top:0}.study-unified .mock-audio-panel{margin:0 16px;max-width:calc(100% - 32px)}.study-unified footer{padding:20px 16px;flex-wrap:wrap;gap:8px}.study-unified .ops-main section{padding:16px}.study-unified .ops-actions{width:100%}.study-unified .ops-actions button{flex:1}.study-unified .speaking-mobile-switch{display:flex;gap:8px;margin:12px 0;position:sticky;top:0;background:var(--linen-bg);z-index:6;padding:8px 0}.study-unified .speaking-mobile-switch button{flex:1}.study-unified .speaking-task-layout[data-mobile-view=conversation]>.speaking-prompt{display:none}.study-unified .speaking-task-layout[data-mobile-view=prompt]>.speaking-tools{display:none}.study-unified .speaking-task-layout{grid-template-columns:1fr}.study-unified .speaking-guide{padding:16px}.study-unified .speaking-guide-actions{position:sticky;bottom:0;background:var(--linen-surface);padding:8px 0}.study-unified .compact-exam-header{position:relative;top:auto}.study-unified .question-nav{overflow-x:auto;max-width:100%}.study-unified input,.study-unified select,.study-unified textarea{min-width:0}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}
.study-unified .sp-lesson-layout{display:grid;grid-template-columns:minmax(0,1fr) 244px;gap:24px;align-items:start}.study-unified .sp-progress-total{font-size:32px;font-weight:500;display:block;margin-top:20px}.study-unified .sp-progress-total small{font-size:12px}.study-unified .sp-library-tools label{display:grid;gap:6px}.study-unified .sp-library-count{align-self:end;padding-bottom:12px}.study-unified .sp-lesson-layout .sp-library-tools input{max-width:100%}
@media(max-width:1250px){.study-unified .sp-lesson-layout{grid-template-columns:minmax(0,1fr) 220px;gap:16px}.study-unified .sp-library-tools input{width:200px}}
@media(max-width:900px){.study-unified .sp-lesson-layout{grid-template-columns:1fr}.study-unified .sp-library-tools .sp-library-count{flex-basis:100%;padding:0}.study-unified .sp-library-tools{gap:8px}.study-unified .sp-library-tools label{flex:1;min-width:0}.study-unified .sp-library-tools input,.study-unified .sp-library-tools select{width:100%;min-width:0}.study-unified .sp-toolbar>[data-sp-account],.study-unified .sp-toolbar>a[href="/learn/#settings"]{display:none}}
@media(max-width:600px){.study-unified .conversation-workspace[data-mobile-view=conversation]>.speaking-prompt{display:none}.study-unified .conversation-workspace[data-mobile-view=prompt]>.partner-panel{display:none}.study-unified .conversation-workspace{grid-template-columns:1fr}.study-unified .conversation-controls{padding:16px}.study-unified .conversation-controls>p:first-of-type{font-size:14px}.study-unified .conversation-actions{position:sticky;bottom:0;padding:10px 0;background:var(--linen-surface);z-index:3}.study-unified .sp-toolbar .sp-title{min-width:0}.study-unified .sp-title h1{font-size:22px}}
/* Public presentation: CHILLS colours and the same control geometry. */
body:not(.study-unified){--gold-dark:#765b12;--muted:#625e55;--border:#dedbd2;--cream:#f7f5f0;--paper:#fffefa;background:#fffefa;color:#191919}
body:not(.study-unified) :is(.button,.module-card,.exam-grid article,.bundle,.lesson-preview){border-radius:12px}
body:not(.study-unified) .button{min-height:44px}body:not(.study-unified) :is(.text-link,.module-details,.module-bottom>a:not(.module-price)){color:#765b12}
body:not(.study-unified) .hero-art{min-width:0;max-width:100%}body:not(.study-unified) .header{border-bottom:1px solid #dedbd2;background:#fffefa}body:not(.study-unified) .module-card{background:#fffefa;box-shadow:none}body:not(.study-unified) .hero-copy p{color:#625e55}
.study-public-preview{display:block;width:100%;height:auto;border:1px solid #dedbd2;border-radius:12px}.study-preview-caption{margin-top:12px;font-size:14px;color:#625e55}
@media(max-width:1050px){body:not(.study-unified) .hero{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}body:not(.study-unified) .hero-art{padding-inline:12px}}
@media(max-width:700px){body:not(.study-unified) .hero{grid-template-columns:minmax(0,1fr)}}
.study-unified .ops-nav a[aria-current=page]{background:var(--linen-soft);border-color:var(--linen-gold);color:var(--linen-ink);font-weight:600}.study-unified .study-chart-detail{margin:16px 0;padding:12px 16px;border:1px solid var(--linen-line);border-radius:8px}.study-unified .report-feedback>[data-mock-feedback]{margin:12px 0}.study-unified .report-summary{background:var(--linen-surface);color:var(--linen-ink)}
:root[data-study-theme=dark] .study-unified :is(.storage-note,.intro,.eyebrow,.sp-instruction,.sp-context-note,.sp-eyebrow,.sp-caption,.sp-note,.report-estimate-note,.scale-components-heading span,.report-component-name span,.account-details dt,.form small){color:var(--linen-muted)}
:root[data-study-theme=dark] .study-unified :is(.sp-guide-table,.sp-guide-table th,.sp-guide-table td,.sp-theory table,.sp-theory td:nth-child(2),.sp-theory td:nth-child(3),.sp-offer){background:var(--linen-surface);color:var(--linen-ink);border-color:var(--linen-line)}
:root[data-study-theme=dark] .study-unified :is(.sp-result-band.good,.sp-offer[aria-checked=true],.pair-options-list button[aria-pressed=true]){background:var(--linen-soft);color:var(--linen-ink)}
@media(max-width:600px){.study-unified .auth-note{padding:20px;border:1px solid var(--linen-line);border-radius:12px}.study-unified .auth-note h2{font-size:18px}.study-unified .auth-note p{font-size:14px}.study-unified .ops-nav{gap:6px}.study-unified .ops-nav a{padding:10px;font-size:13px}.study-unified .report-summary{padding:16px;gap:12px}.study-unified .report-summary h2{font-size:36px}}
@media(max-width:600px){.study-unified.compact-exam .topbar{display:none}.study-unified.compact-exam #main{padding-top:12px;padding-bottom:100px}.study-unified.compact-exam .page-heading{margin:12px 0}.study-unified.compact-exam .page-heading h1{font-size:21px}.study-unified.compact-exam .page-heading p{font-size:13px}.study-unified .conversation-workspace .partner-panel{padding:16px}.study-unified .conversation-controls{padding:0}.study-unified .conversation-controls h2{font-size:18px;margin-bottom:8px}.study-unified .conversation-controls>p:first-of-type{line-height:1.45;margin:8px 0}.study-unified .conversation-actions,.study-unified .speaking-guide-actions{bottom:76px}.study-unified .conversation-phases{display:flex;flex-wrap:wrap;gap:6px}.study-unified .conversation-phases output{margin-left:auto}.study-unified .coach-consent{font-size:12px;line-height:1.45}.study-unified .conversation-workspace>.speaking-prompt{position:static}.study-unified .compact-exam-header{padding:12px}}
:root{--paper:var(--linen-bg);--white:var(--linen-surface);--line:var(--linen-line);--yellow:var(--linen-gold);--green:var(--linen-success);--red:var(--linen-error)}
body:not(.study-unified) .hero{overflow:clip}body:not(.study-unified) .header nav .study-owner-link{font-size:13px;border:1px solid #dedbd2;white-space:normal}
:root[data-study-theme=dark] .study-unified .sp-module-label{color:var(--linen-ink)}

/* Keep the CHILLS gold fill separate from the darker gold used for text. */
body:not(.study-unified) .button.gold{background:#c69b26;color:#191919}body:not(.study-unified) .button.gold:hover{background:#d2ac43;color:#191919}
.study-unified .skip{background:#c69b26;color:#191919}.study-unified .platform-paths>section>span{background:var(--linen-soft);color:var(--linen-ink)}
@media(max-width:600px){.study-unified.compact-exam:has(.conversation-workspace) .page-heading .intro{display:none}.study-unified .conversation-controls:has([data-coach-consent]:not(:checked)) .conversation-actions{position:static}}

@media(max-width:600px){.study-unified.compact-exam:has(.conversation-workspace) .attempt-top .back-link{display:none}.study-unified.compact-exam:has(.conversation-workspace) .attempt-top{min-height:0;margin:8px 0;padding:0}.study-unified.compact-exam:has(.conversation-workspace) .attempt-top .save-state{font-size:11px}}

@media(max-width:600px){.study-unified .conversation-phases{margin:12px 0}.study-unified .coach-consent{margin:12px 0 10px}}

.study-unified .report-summary :is(p,span,small){color:var(--linen-muted)}.study-unified .report-summary .eyebrow{color:var(--linen-gold-text)}.study-unified .report-summary :is(h2,strong){color:var(--linen-ink)}.study-unified .report-summary :is(.report-level,.report-grade){border-color:var(--linen-line)}
:root[data-study-theme=dark] .study-unified .button.danger{background:#96302a;border-color:#96302a;color:#fffefa}

.study-unified .report-component-score>span,.study-unified .report-component-score small,.study-unified .report-priorities p{color:var(--linen-muted)}.study-unified .report-review{color:var(--linen-gold-text)}.study-unified .report-priorities a{color:var(--linen-ink)}
:root[data-study-theme=dark] .study-unified :is(.stimuli span,.chat-turn){background:var(--linen-soft);color:var(--linen-ink);border-color:var(--linen-line)}

/* Study modal geometry is shared by every feature; inline preflight panels keep their own spacing. */
body.study-unified dialog[open],body:not(.study-unified) dialog[open]{position:fixed;inset:var(--study-vv-top,0px) calc(100% - var(--study-vv-left,0px) - var(--study-vv-width,100%)) calc(100% - var(--study-vv-top,0px) - var(--study-vv-height,100dvh)) var(--study-vv-left,0px);margin:auto;max-width:calc(var(--study-vv-width,100vw) - 32px);max-height:calc(var(--study-vv-height,100dvh) - 32px);border:1px solid var(--linen-line);border-radius:16px;overflow:auto;overscroll-behavior:contain;box-sizing:border-box}
body.study-unified dialog.answer-dialog[open]{overflow:hidden}.study-unified dialog .answer-dialog-body{min-height:0}.study-unified dialog :is(.dialog-actions,.record-actions,.sp-dialog-actions){flex-wrap:wrap}.study-unified dialog :is(button,input,select,textarea){max-width:100%}.study-unified dialog .answer-dialog-foot{flex-shrink:0}
body.study-unified #session-overlay{inset:var(--study-vv-top,0px) calc(100% - var(--study-vv-left,0px) - var(--study-vv-width,100%)) calc(100% - var(--study-vv-top,0px) - var(--study-vv-height,100dvh)) var(--study-vv-left,0px);padding:16px;overflow:auto;background:#19191980}body.study-unified #session-overlay>div{width:min(560px,100%);max-height:100%;overflow:auto;background:var(--linen-surface);padding:24px;border:1px solid var(--linen-line);border-radius:16px;color:var(--linen-ink)}
/* The timeline owns audio playback. Opening sound tools only changes the controls. */
.mock-sound-tools{position:relative;align-self:start}.mock-sound-tools summary{cursor:pointer;min-height:44px;display:flex;align-items:center;padding:8px 10px;border:1px solid var(--linen-line);border-radius:8px;font-size:12px}.mock-sound-tools .mock-volume{padding:10px 0;max-width:100%}.mock-sound-tools input{width:100%;min-height:44px}.mock-sound-tools[open]{min-width:95px}.mock-audio-panel .audio-current-part{display:block;font-size:12px;line-height:1.4;min-height:44px;padding:8px 0;color:var(--linen-gold-text)}
/* Paired Listening: one viewport, two independently scrollable full-text lists. */
.study-unified.paired-listening.compact-exam>.study-global-bar,.study-unified.paired-listening.compact-exam .topbar,.study-unified.paired-listening.compact-exam .workspace>footer{display:none}
.study-unified.paired-listening.compact-exam #main{height:100dvh;min-height:0;display:flex;flex-direction:column;gap:6px;padding:8px 12px max(8px,env(safe-area-inset-bottom));max-width:1300px}
.paired-listening.compact-exam #main>.page-heading,.paired-listening.compact-exam #main>.exercise-meta,.paired-listening.compact-exam #main>.submit-bar{display:none}
.study-unified.paired-listening.compact-exam .mock-bar{order:1;position:static;flex:none;margin:0;padding:6px 10px;border-radius:10px}.paired-listening.compact-exam .mock-parts{display:none}.paired-listening.compact-exam .mock-bar-top{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px}.paired-listening.compact-exam .mock-bar-top>div{display:flex;flex-wrap:wrap;align-items:center;gap:2px 6px}.paired-listening.compact-exam .mock-bar-top .eyebrow{display:none}.paired-listening.compact-exam .mock-bar-top strong{font-size:14px}.paired-listening.compact-exam .mock-clock{font-size:20px}.study-unified.paired-listening select[data-pair-part]{padding:6px 3px;min-height:44px;width:90px;font-size:13px;border:0;background:transparent}.paired-listening.compact-exam .mock-bar-top>button{min-height:44px;padding:8px;font-size:12px;width:auto}
.study-unified.paired-listening.compact-exam .mock-audio-panel:not([hidden]){order:2;position:static;display:grid;grid-template-columns:minmax(0,1fr) auto;flex:none;gap:6px 10px;margin:0;padding:6px 10px!important;width:100%;max-width:none;box-shadow:none}.paired-listening .mock-audio-info{min-width:0}.paired-listening .mock-audio-panel #mock-audio-status{font-size:12px;line-height:1.4;margin:0 0 5px}.paired-listening .mock-audio-panel .mock-sound-tools summary{min-height:44px}.paired-listening .mock-audio-panel [data-mock-audio]{min-height:44px}
.study-unified.paired-listening.compact-exam .attempt-top{order:3;flex:none;min-height:18px;margin:0;padding:0;display:flex;gap:6px;align-items:center}.paired-listening.compact-exam .attempt-top>.back-link{display:none}.paired-listening .attempt-top .save-state{font-size:11px;line-height:1.4}.paired-listening .attempt-top #retry-save{min-height:44px;font-size:12px}
.study-unified.paired-listening .listening-pairs{width:100%;max-width:none;margin:0;display:flex;flex-direction:column;gap:6px;min-height:0}.paired-listening.compact-exam .listening-pairs{order:4;flex:1}.pair-toolbar{display:flex;align-items:center;gap:6px;flex:none}.study-unified .pair-title{margin:0;flex:1;font-size:14px;line-height:1.3}.pair-toolbar button,.pair-tabs button{min-height:44px;border:1px solid var(--linen-line);border-radius:8px;padding:8px 10px;background:var(--linen-surface);color:var(--linen-ink);font-size:12px}.pair-toolbar button[aria-pressed=true],.pair-tabs button[aria-pressed=true]{background:var(--linen-soft);border-color:var(--linen-gold)}
.study-unified .speaker-nav{margin:0;gap:6px;display:flex;flex:none}.study-unified .speaker-nav button{min-height:44px;min-width:44px;flex:1;font-size:15px;display:flex;gap:8px;align-items:center;justify-content:center;border-color:var(--linen-line);background:var(--linen-surface);color:var(--linen-ink);box-shadow:none}.speaker-nav small{font-size:10px;font-weight:400}.study-unified .speaker-nav button[aria-pressed=true]{background:var(--linen-soft);border-color:var(--linen-gold)}
.study-unified .pair-tasks{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr);align-items:stretch;gap:8px;min-height:0;flex:1}.study-unified .pair-task{padding:0;display:flex;flex-direction:column;min-height:0;overflow:hidden;background:var(--linen-surface);border:1px solid var(--linen-line);border-radius:12px}.pair-task-head{display:flex;gap:6px;padding:8px 10px;align-items:center;flex:none;border-bottom:1px solid var(--linen-line)}.pair-task-head>div{flex:1;min-width:0}.study-unified .pair-task h3{font-size:14px;line-height:1.35;margin:0}.pair-task-head small{font-size:10px;color:var(--linen-muted);display:block;margin-top:3px}.pair-selected{font-size:14px;font-weight:600;padding:5px;border-radius:5px;background:var(--linen-soft);min-width:26px;text-align:center}.pair-clear{width:44px;min-height:44px;flex:none;border:0;border-radius:6px;background:transparent;color:var(--linen-muted);font-size:22px}.pair-clear:disabled{opacity:.35}
.study-unified .pair-options-list{display:block;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:4px 6px;scroll-padding:5px}.study-unified .pair-options-list button{width:100%;display:flex;align-items:baseline;gap:8px;min-height:44px;padding:10px 8px;margin:2px 0;font-size:15px;line-height:1.45;background:transparent;color:var(--linen-ink);border:1px solid transparent;border-radius:7px}.study-unified .pair-options-list button b{min-width:16px;font-size:13px}.study-unified .pair-options-list button[aria-pressed=true]{background:var(--linen-soft);border:1px solid var(--linen-gold)}.pair-tabs{display:none;gap:8px;flex:none}.pair-tabs button{flex:1}.listening-pairs[data-view=focus] .pair-tabs{display:flex}.study-unified .listening-pairs[data-view=focus] .pair-tasks{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr)}
.study-unified.paired-listening.compact-exam .exam-stepper{order:5;position:static;padding:6px 0 0;flex:none;box-shadow:none;gap:6px;background:var(--linen-bg)}.study-unified.paired-listening.compact-exam .exam-stepper .button{min-width:0;min-height:44px;padding:8px;font-size:12px}.paired-listening .exam-stepper [data-exam-position]{font-size:11px}
.paired-listening:not(.compact-exam) .pair-tasks{height:65dvh;flex:none}.paired-listening:not(.compact-exam) .listening-pairs{margin:16px 0}.paired-listening:not(.compact-exam) .pair-practice-nav{margin:6px 0}
@media(max-width:699px){.study-unified .pair-tasks{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) minmax(0,1fr)}.study-unified .pair-task h3{font-size:13px}.pair-task-head{padding:7px 8px}.pair-toolbar button{padding:8px;font-size:12px}.study-unified.paired-listening.compact-exam #main{padding-inline:10px}}
@media(max-width:360px){.paired-listening.compact-exam .mock-bar-top>div{gap:0}.paired-listening.compact-exam .mock-bar-top strong{font-size:12px}.study-unified.paired-listening select[data-pair-part]{width:90px}.paired-listening.compact-exam .mock-bar-top strong{display:none}.study-unified .pair-title{font-size:12px}}
/* At heavy zoom or a very short viewport, keep readable content and allow page scrolling. */
@media(max-height:600px){.study-unified.paired-listening.compact-exam #main{height:auto;min-height:100dvh}.paired-listening.compact-exam .listening-pairs{flex:none;height:480px}}

.study-unified .mock-bar{background:var(--linen-surface);color:var(--linen-ink);border-color:var(--linen-line)}.study-unified .mock-bar :is(strong,.mock-clock){color:var(--linen-ink)}.study-unified .pair-selected{color:var(--linen-ink)}.study-unified dialog :is(.photo-dialog-header,.answer-dialog-foot){background:var(--linen-surface);color:var(--linen-ink);border-color:var(--linen-line)}
/* Approved public presentation and contextual navigation, October 2026. */
.study-global-nav{gap:16px}.study-global-brand{padding-bottom:8px}
.study-global-nav [hidden]{display:none!important}
.study-module-switch{padding:10px 12px;margin-bottom:12px;border:1px solid var(--linen-line);border-radius:8px;background:var(--linen-surface)}
.study-module-switch strong{font-size:15px;line-height:1.4;display:block}.study-global-nav .study-module-switch a{padding:4px 0;min-height:44px;font-size:13px;color:var(--linen-gold-text)}
.study-global-nav [data-study-context] nav a{font-size:14px}.study-context-suggestions{border-top:1px solid var(--linen-line);padding-top:8px}.study-context-suggestions summary{font-size:12px;color:var(--linen-muted);padding:12px;min-height:44px;cursor:pointer}.study-context-suggestions nav{padding-top:4px}
body:not(.study-unified) .wrap{width:min(1200px,calc(100% - 48px))}
body:not(.study-unified) .study-public-header{display:flex;align-items:center;gap:24px;height:auto;min-height:80px;position:relative;padding-block:12px;flex-wrap:nowrap;z-index:30}
body:not(.study-unified) .study-public-header .brand,body:not(.study-unified) .study-public-footer .brand{display:inline-flex;align-items:baseline;gap:5px;font-size:28px;line-height:1.2;letter-spacing:-1px;white-space:nowrap;color:#191919;padding:0}
body:not(.study-unified) :is(.study-public-header,.study-public-footer) .brand strong{font-size:inherit;font-weight:850;letter-spacing:inherit}
body:not(.study-unified) :is(.study-public-header,.study-public-footer) .brand span{font-size:inherit;font-weight:400;letter-spacing:inherit;display:inline;border:0;padding:0}
body:not(.study-unified) .study-public-header nav{display:flex;position:static;align-items:center;gap:24px;padding:0;margin-left:auto;border:0;background:transparent;box-shadow:none;width:auto}
body:not(.study-unified) .study-public-header nav a{font-size:15px;font-weight:500;line-height:1.4;min-height:44px;padding:10px 0;display:flex;align-items:center;color:#191919;white-space:nowrap}
.study-public-account{display:flex;gap:12px;align-items:center}.study-public-account [data-study-admin-slot]:empty{display:none}
body:not(.study-unified) .study-public-header :is(.account,.study-owner-link){display:flex;align-items:center;justify-content:center;margin:0;padding:10px 14px;min-height:44px;font-size:14px;line-height:1.4;border:1px solid #dedbd2;border-radius:8px;text-decoration:none;background:#fffefa;color:#191919;white-space:nowrap;font-weight:500}
body:not(.study-unified) .study-public-header .menu{display:none}
body:not(.study-unified) .study-public-footer{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;gap:18px 24px;padding:28px 0 40px;border-top:1px solid #dedbd2}
body:not(.study-unified) .study-public-footer .brand{font-size:24px}
body:not(.study-unified) .study-public-footer nav{margin-left:auto;display:flex;align-items:center;flex-wrap:wrap;gap:8px 20px}
body:not(.study-unified) .study-public-footer nav a{min-height:44px;display:flex;align-items:center;font-size:14px;line-height:1.4;color:#625e55}
body:not(.study-unified) .study-public-footer [data-study-report]{display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin:0;padding:10px 16px;border:1px solid #dedbd2;border-radius:8px;background:#fffefa;color:#191919;font:500 14px/1.4 Geist,Arial,sans-serif;text-decoration:none;cursor:pointer}
body:not(.study-unified) .study-public-footer small{flex-basis:100%;font-size:12px;line-height:1.6;color:#625e55}
body:not(.study-unified) :is(.study-public-header,.study-public-footer) a:hover,body:not(.study-unified) .study-public-footer [data-study-report]:hover{color:#765b12}
body:not(.study-unified) :is(.study-public-header,.study-public-footer,.study-video-card) :is(a,button):focus-visible{outline:3px solid #765b12;outline-offset:3px}
body:not(.study-unified) .study-presentation{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:48px;align-items:center;min-height:0;padding-block:56px}
body:not(.study-unified) .study-presentation h1{font-size:clamp(32px,3.7vw,48px);line-height:1.13;letter-spacing:-1.6px;margin:0 0 24px;font-weight:650}
body:not(.study-unified) .study-presentation .hero-copy p{font-size:17px;line-height:1.65;margin:0 0 24px;max-width:490px}
.study-presentation-actions{display:flex;gap:12px;flex-wrap:wrap}
body:not(.study-unified) .study-presentation .button{margin:0;min-width:0;min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:11px 16px;border:1px solid #dedbd2;border-radius:8px;background:#fffefa;color:#191919;font-size:14px;font-weight:550;line-height:1.4;text-decoration:none;cursor:pointer}
body:not(.study-unified) .study-presentation .button.gold{background:#c69b26;border-color:#c69b26}
.study-presentation .hero-copy small{display:block;margin-top:18px;font-size:12px;line-height:1.6;color:#625e55}
.study-video-card{min-width:0;border:1px solid #dedbd2;border-radius:16px;background:#fffefa;overflow:hidden;box-shadow:0 18px 40px #19191909}
.study-video-heading{display:flex;justify-content:space-between;gap:12px;padding:14px 18px;font-size:13px}.study-video-heading span{color:#625e55;white-space:nowrap}
.study-video-card video{display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:contain;background:#f7f5f0;border-block:1px solid #dedbd2}
.study-video-controls{display:flex;gap:8px;flex-wrap:wrap;justify-content:space-between;padding:12px 14px 14px}.study-video-status{font-size:12px;line-height:1.5;margin:0 14px 14px;color:#625e55;min-height:0}
@media(max-width:1100px){body:not(.study-unified) .study-public-header{gap:16px}.study-public-account{gap:8px}body:not(.study-unified) .study-public-header nav{gap:16px}body:not(.study-unified) .study-public-footer nav{margin-left:0}}
@media(max-width:900px){
 body:not(.study-unified) .study-public-header{min-height:68px;gap:8px;flex-wrap:wrap;padding-block:10px}
 body:not(.study-unified) .study-public-header .brand{font-size:24px}
 .study-public-account{margin-left:auto;flex-wrap:wrap;justify-content:flex-end;max-width:calc(100% - 44px)}
 body:not(.study-unified) .study-public-header :is(.account,.study-owner-link){font-size:13px;padding:10px 12px}
 body:not(.study-unified) .study-public-header .menu{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;padding:10px;width:44px;height:44px;min-width:44px;border:1px solid #dedbd2;border-radius:8px;background:#fffefa;margin:0}
 .study-public-header .menu span{height:2px;width:20px;background:#191919}
 body:not(.study-unified) .study-public-header nav{display:none;position:static;order:4;flex-basis:100%;max-height:60dvh;overflow:auto;border-top:1px solid #dedbd2;padding:8px 0;margin:0}
 body:not(.study-unified) .study-public-header.is-open nav{display:flex;flex-direction:column;align-items:stretch;gap:0}
 body:not(.study-unified) .study-public-header nav a{padding:12px}
 body:not(.study-unified) .study-presentation{gap:28px}
}
@media(max-width:700px){
 body:not(.study-unified) .wrap{width:calc(100% - 32px)}
 body:not(.study-unified) .study-presentation{grid-template-columns:minmax(0,1fr);padding-block:32px}
 body:not(.study-unified) .study-presentation h1{font-size:36px}
 body:not(.study-unified) .study-presentation .hero-copy p{font-size:16px}
 body:not(.study-unified) .study-public-footer{gap:12px;padding-bottom:32px}.study-public-account:has([data-study-owner-link]){order:3;width:100%;max-width:none;margin:0;justify-content:flex-start}.study-public-header:has([data-study-owner-link]) .menu{margin-left:auto}
 body:not(.study-unified) .study-public-footer nav{gap:4px 16px}
}
@media(max-width:360px){body:not(.study-unified) .study-public-header .brand{font-size:21px}body:not(.study-unified) .study-public-header .account{font-size:12px;padding:10px 8px}body:not(.study-unified) .study-presentation h1{font-size:32px}.study-video-controls .button{flex:1 1 auto}}

@media(max-width:700px){.study-video-card video{aspect-ratio:4/5}}
/* Keep exam offers readable when browser zoom narrows the content column. */
body:not(.study-unified) .exam-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
body:not(.study-unified) .exam-grid article{min-width:0;flex-wrap:wrap}
body:not(.study-unified) .exam-grid article>div{min-width:0;flex:1 1 180px}
body:not(.study-unified) .exam-actions .text-link{white-space:normal;max-width:100%;gap:10px}
@media(max-width:700px){body:not(.study-unified) .exam-grid{grid-template-columns:minmax(0,1fr)}}

.study-video-status[hidden]{display:none}
/* Shared Study surfaces and controls: all component colours follow the active theme. */
:root {
 --surface:var(--linen-surface);--control:var(--linen-line);--border:var(--linen-line);
 --focus:var(--linen-gold-text);--accent-soft:var(--linen-soft);
 --gap-bg:#f8edcc;--gap-ink:#191919;--gap-muted:#625323;--gap-border:#957823;
}
:root[data-study-theme] {background:var(--linen-bg);color-scheme:light}
:root[data-study-theme=dark] {color-scheme:dark}
.study-unified :is(.passage,.question,.mock-bar,.mock-audio-panel,.exam-stepper,.option-bank,.exam-level-card,.simulation-card,.listening-board,.board-speakers,.report-answers,.report-feedback,.report-method,.feedback-box,.account-card,.panel,.prompt-card,.editor-card,.recorder-card,.timer-card) {
 background:var(--linen-surface);color:var(--linen-ink);border-color:var(--linen-line);
}
.study-unified :is(.exam-level-card:hover,.simulation-card:hover,.report-part-link:hover,.pair-options[open] summary) {background:var(--linen-soft);color:var(--linen-ink)}
.study-unified :is(.mock-parts>a,.question-nav button,.paper-tabs button,.studio-tabs button,.board-speakers button,.board-options button) {
 background:var(--linen-surface);color:var(--linen-ink);border-color:var(--linen-line);
}
.study-unified :is(.mock-parts>a[aria-current],.question-nav button[aria-pressed=true],.question-nav button[aria-current],.paper-tabs button[aria-pressed=true],.studio-tabs button[aria-pressed=true],.board-speakers button[aria-pressed=true]) {
 background:var(--linen-ink);color:var(--linen-surface);border-color:var(--linen-ink);
}
.study-unified :is(.board-options button[aria-pressed=true],.pair-options button[aria-pressed=true],.pair-options button:hover,.question-nav .answered,.question-nav [data-answered=true]) {
 background:var(--linen-soft);color:var(--linen-ink);border-color:var(--linen-gold-text);
}
.study-unified .question-nav :is([aria-current],[aria-pressed=true]).answered {background:var(--linen-ink);color:var(--linen-surface)}
.study-unified :is(.mock-bar-top .eyebrow,.mock-parts::before,.exam-stepper [data-exam-position],.pair-help,.coach-text-alternative>p,.guided-speaking #partner-request-status,.listening-board-head [data-board-count],.board-foot,.report-component-score>span,.report-component-score small,.report-priorities p,.report-paper summary>span,.report-part-link>span,.report-method,.report-estimate-note) {color:var(--linen-muted)}
.study-unified :is(.report-part-link,.report-priorities a:not(.button),.simulation-report .report-review) {color:var(--linen-ink);border-color:var(--linen-line)}
.study-unified :is(.report-priorities,.report-cefr,.report-status,.conversation-state) {background:var(--linen-soft);color:var(--linen-ink);border-color:var(--linen-line)}
.study-unified :is(.report-review,.pair-options [data-pair-answer] b) {color:var(--linen-gold-text)}
.study-unified :is(.report-part-link,.report-answers,.report-feedback,.simulation-report .report-method) {border-color:var(--linen-line)}
.study-unified .report-component progress,.study-unified .report-component progress::-webkit-progress-bar {background:var(--linen-line)}
.study-unified .coach-error {background:var(--linen-surface);color:var(--linen-error);border-left:3px solid var(--linen-error)}
/* Account tabs are navigation, with the same underline and spacing as module tabs. */
.study-unified :is(.account-tabs,.tabs) {display:flex;flex-wrap:wrap;gap:4px 20px;border-bottom:1px solid var(--linen-line)}
.study-unified :is(.account-tabs,.tabs) a {
 display:inline-flex;align-items:center;min-height:44px;padding:10px 2px;margin:0;
 background:transparent;color:var(--linen-muted);border:0;border-bottom:3px solid transparent;
 border-radius:0;text-decoration:none;font-size:14px;line-height:1.4;
}
:root[data-study-theme] .study-unified :is(.account-tabs,.tabs) a {background:transparent;color:var(--linen-muted)}
:root[data-study-theme] .study-unified :is(.account-tabs,.tabs) a[aria-current] {color:var(--linen-ink);border-bottom-color:var(--linen-gold);font-weight:600}
.study-unified :is(.button,.sp-action):not(:disabled):hover {border-color:var(--linen-gold-text)}
.study-unified :is(button,a,input,select,textarea,summary):focus-visible {outline:2px solid var(--linen-gold-text);outline-offset:3px}
.study-unified :is(.button,.sp-action):disabled {opacity:.5;cursor:not-allowed}
.study-unified :is(.sp-like,.sp-like small,.sp-result-band mark,.sp-offer .sp-tick) {color:#191919}
/* Gold answer gaps deliberately retain dark ink in both themes, like the approved reference. */
.study-unified.compact-exam .exam-gap,
.study-unified .gap-marker,
.study-unified .exercise-layout.inline-workspace .inline-answer {
 display:inline-flex;align-items:center;vertical-align:middle;min-height:44px;
 background:var(--gap-bg);color:var(--gap-ink);border:1px solid var(--gap-border);
 border-radius:8px;box-shadow:none;
}
.study-unified.compact-exam .exam-gap {min-width:64px;padding:5px 10px;line-height:1.4}
.study-unified .exercise-layout.inline-workspace .inline-answer {height:44px;padding:0 7px;gap:5px;margin:3px 4px}
.study-unified .exercise-layout.inline-workspace .inline-answer :is(input,select) {
 background:transparent;color:var(--gap-ink);caret-color:var(--gap-ink);color-scheme:light;
 border:0;box-shadow:none;outline:none;min-height:42px;height:42px;padding:6px 3px;
}
.study-unified .exercise-layout.inline-workspace .inline-answer input::placeholder {color:var(--gap-muted);opacity:1}
.study-unified .exercise-layout.inline-workspace .inline-number {color:var(--gap-muted);font-size:12px}
.study-unified .exercise-layout.inline-workspace .inline-number::after {content:" ·"}
.study-unified .exercise-layout.inline-workspace .inline-root {color:var(--gap-muted);border-color:var(--gap-border)}
.study-unified .question :is(.transformation-context,.completion-sentence) .sentence-answer {
 min-height:44px;height:44px;background:var(--gap-bg);color:var(--gap-ink);caret-color:var(--gap-ink);
 border:1px solid var(--gap-border);border-radius:8px;padding:7px 10px;color-scheme:light;
}
.study-unified .sentence-answer::placeholder {color:var(--gap-muted);opacity:1}
.study-unified.compact-exam .exam-gap[aria-pressed=true],
.study-unified .gap-marker[aria-current],
.study-unified .exercise-layout.inline-workspace .inline-answer:focus-within {
 background:var(--gap-bg);color:var(--gap-ink);border-color:var(--gap-border);
 outline:2px solid var(--linen-gold-text);outline-offset:2px;box-shadow:inset 0 0 0 1px var(--gap-border);
}
.study-unified .exam-gap-menu button:is(:hover,:focus-visible,[aria-selected=true]) {background:var(--linen-soft);color:var(--linen-ink)}
@media(max-width:600px){.study-unified :is(.account-tabs,.tabs){gap:4px 14px}}
/* Secondary learning and account surfaces use the same theme contract. */
.study-unified :is(.sp-unlock,.notice-inline,.account-prepurchase,.speaking-guide [role=status],.keyword) {background:var(--linen-surface);color:var(--linen-ink);border-color:var(--linen-line)}
.study-unified .question-number {background:var(--linen-gold);color:#191919}
.study-unified.compact-exam .mock-parts::before {color:var(--linen-muted)}
.study-unified #study-unlock {background:var(--linen-surface);color:var(--linen-ink);border-color:var(--linen-line)}
.study-unified #study-unlock :is(.unlock-level,.unlock-close) {color:var(--linen-gold-text);border-color:var(--linen-line)}
.study-unified #study-unlock .unlock-note {color:var(--linen-muted)}
.study-unified #study-unlock .unlock-result {color:var(--linen-error)}
body.study-unified.study-mode .sp-work .sp-options button:is([aria-pressed=true],:hover:not(:disabled)) {background:var(--linen-soft);color:var(--linen-ink);border-color:var(--linen-gold)}
:root[data-study-theme=dark] .study-unified .sp-matrix .good {background:var(--linen-success)}
:root[data-study-theme=dark] .study-unified .sp-matrix .bad {background:var(--linen-error)}
.study-unified :is(.ai-preflight,.mic-preflight,.account-preflight,.recorder-state,.partner-status,.ai-job-status) {background:var(--linen-soft);color:var(--linen-ink);border-color:var(--linen-line)}

.study-unified .recorder-state[data-state=recording] {color:var(--linen-error);border-color:var(--linen-error)}

.study-unified .button[aria-pressed=true]:not(.primary),
.study-unified .workspace-tabs button:is([aria-selected=true],[aria-pressed=true]) {
 background:var(--linen-soft);color:var(--linen-ink);border-color:var(--linen-gold);
}
:root[data-study-theme] .study-unified .workspace-sections a[aria-current] {background:var(--linen-soft);color:var(--linen-ink);border-color:var(--linen-gold)}

/* Practice and result surfaces share the same theme as the exam workspace. */
.study-unified .module-hint{border-left-color:var(--linen-gold)}
.study-unified .practice-test[aria-pressed=true]{background:var(--linen-soft);color:var(--linen-ink);border-color:var(--linen-gold)}
.study-unified .practice-test[aria-pressed=true] small{color:var(--linen-muted)}
.study-unified .sp-review-badge{color:var(--linen-gold-text);background:var(--linen-soft);border-color:var(--linen-line)}

/* Module header: consistent icon controls, retaining translated accessible names. */
.study-unified .sp-head .sp-toolbar>.sp-icon{display:inline-flex;align-items:center;justify-content:center;width:46px;min-width:46px;height:46px;min-height:46px;flex:0 0 46px;padding:11px;border:1px solid var(--linen-line);border-radius:12px;background:var(--linen-surface);color:var(--linen-ink);position:relative;transition:background .18s,border-color .18s}

.study-unified .sp-head .sp-toolbar>.sp-icon svg{width:22px;height:22px;flex:none}


.study-unified .sp-head :is(a,button):focus-visible{outline:3px solid var(--linen-gold-text);outline-offset:3px}
@media(hover:hover){.study-unified .sp-head .sp-toolbar>.sp-icon:hover{border-color:var(--linen-gold)}}
@media(prefers-reduced-motion:reduce){.study-unified .sp-head .sp-toolbar>.sp-icon{transition:none}}

}
