/* Readable test text, shared by Reading, Listening, Writing and Speaking. */
.practice-page.in-test { font-size:18px; }
.practice-page.in-test .panel-kicker { font-size:12px; letter-spacing:.08em; }
.practice-page.in-test .panel-instructions { font-size:17px; line-height:1.6; }
.practice-page.in-test .question-group-intro h3 { font-size:21px; }
.practice-page.in-test .question-group-intro h4,
.practice-page.in-test .question-group-intro p,
.practice-page.in-test .question-legend li { font-size:17px; line-height:1.55; }
.practice-page.in-test .question-card h3,
.practice-page.in-test .completion-text { font-size:18px; line-height:1.7; }
.practice-page.in-test .choice-group .choice-option { font-size:17px; min-height:42px; padding:9px 11px; }
.practice-page.in-test .choice-option input { width:18px; height:18px; }
.practice-page.in-test .choice-letter { width:23px; height:23px; font-size:13px; }
.practice-page.in-test .question-card .question-number,
.practice-page.in-test .inline-answer-number,
.practice-page.in-test .passage-marker { font-size:15px; }
.practice-page.in-test .short-answer { font-size:18px; min-height:42px; }
.practice-page.in-test .inline-answer .short-answer { font-size:18px; width:160px; min-height:36px; }
.practice-page.in-test .completion-subhead { font-size:17px; }
.practice-page.in-test .matching-table { font-size:16px; }
.practice-page.in-test .matching-table thead th { font-size:15px; height:38px; }
.practice-page.in-test .matching-table .matching-prompt-heading { width:225px; }
.practice-page.in-test .matching-before,
.practice-page.in-test .matching-verdict,
.practice-page.in-test .matching-review,
.practice-page.in-test .answer-verdict { font-size:14px; }
.practice-page.in-test .flag-button { font-size:13px; min-height:30px; }
.practice-page.in-test .audio-note,
.practice-page.in-test .audio-error { font-size:16px; }
.practice-page.in-test .question-nav-rail .question-numbers button { width:30px; height:30px; font-size:13px; }
.practice-page.in-test .nav-part-label,
.practice-page.in-test .part-nav-footer > button,
.practice-page.in-test .test-nav-top span,
.practice-page.in-test .test-nav-top strong { font-size:13px; }
.practice-page.in-test .passage-toolbar-actions button,
.practice-page.in-test .text-size-value,
.practice-page.in-test .passage-part-label { font-size:13px; }
.practice-page.in-test .passage-toolbar-actions button { min-height:34px; }
.practice-page.in-test .test-topbar-inner { grid-template-columns:minmax(0,1fr) auto auto; gap:16px; min-height:70px; }
.practice-page.in-test .test-identity strong { font-size:15px; }
.practice-page.in-test .test-identity span { font-size:11px; }
.practice-page.in-test .desk-back,
.practice-page.in-test .desk-tool,
.practice-page.in-test .desk-finish { font-size:14px; min-height:38px; }
.practice-page.in-test .desk-theme { min-height:38px; }
.practice-page.in-test .desk-timer > span { font-size:11px; }
.practice-page.in-test .test-clock { font-size:25px; }
.practice-page.in-test .test-notice { font-size:14px; }
.practice-page.in-test .test-disclaimer { font-size:12px; }
.practice-page.in-test .test-notice:empty { display:none; }
.practice-page.in-test .score-table,
.practice-page.in-test .score-table th,
.practice-page.in-test .score-table td { font-size:16px; }
.practice-page.in-test .finish-dialog p { font-size:17px; }

/* Writing keeps the prompt beside the editor, with one task selector below. */
.practice-page.in-test .writing-layout .source-panel h2 { font-size:30px; }
.practice-page.in-test .writing-prompt { font-size:20px; line-height:1.6; margin-top:22px; }
.practice-page.in-test .data-table { font-size:17px; margin-top:25px; }
.practice-page.in-test .editor-head { font-size:17px; letter-spacing:0; margin-bottom:14px; }
.practice-page.in-test .word-counter { font-size:16px; }
.practice-page.in-test .editor-panel textarea { font-size:20px; line-height:1.65; min-height:220px; resize:none; }
.practice-page.in-test .editor-note { font-size:15px; margin-top:12px; }
.practice-page.in-test .task-nav-list { margin:0; gap:8px; }
.practice-page.in-test .task-nav-list button { font-size:16px; min-height:42px; }

/* A quiet navy desk, bright text and distinct surfaces for session choice/review. */
.productive-setup,
.productive-result {
  --work-surface:#ffffff;
  --work-raised:#edf4f8;
  --work-ink:#142f43;
  --work-secondary:#38566d;
  --work-border:#6b849a;
  --work-accent:#146678;
  color:var(--work-ink);
}
html[data-theme="dark"] .productive-setup,
html[data-theme="dark"] .productive-result {
  --work-surface:#17293b;
  --work-raised:#21384e;
  --work-ink:#f2f6fa;
  --work-secondary:#c4d4e3;
  --work-border:#6f8ba4;
  --work-accent:#91e3db;
}
.productive-setup { background:var(--desk-bg); border:0; padding:32px 24px; overflow:auto; min-height:0; flex:1; display:flex; flex-direction:column; }
.productive-setup-inner { width:min(100%,1120px); margin:auto; }
.practice-page.in-test .productive-setup .panel-kicker,
.practice-page.in-test .productive-result .panel-kicker { color:var(--work-accent); font-size:14px; margin:0 0 12px; }
.productive-setup h2 { font-size:clamp(30px,3vw,40px); font-weight:650; letter-spacing:-.035em; line-height:1.2; margin:0; }
.setup-intro { font-size:20px; line-height:1.5; color:var(--work-secondary); margin:14px 0 28px; }
.productive-modes { display:grid; gap:20px; }
.speaking-modes { grid-template-columns:repeat(2,minmax(0,1fr)); }
.writing-modes { grid-template-columns:repeat(3,minmax(0,1fr)); }
.productive-mode { border:1px solid var(--work-border); border-top:4px solid var(--work-border); padding:28px; background:var(--work-surface); display:flex; flex-direction:column; align-items:start; min-width:0; }
.productive-mode.is-featured { border-top-color:var(--work-accent); }
.productive-mode h3 { font-size:28px; font-weight:650; line-height:1.25; letter-spacing:-.025em; margin:0 0 16px; }
.productive-mode .mode-meta { font-size:18px; font-weight:600; color:var(--work-accent); margin:0 0 18px; line-height:1.45; }
.productive-mode .mode-description { font-size:20px; line-height:1.55; color:var(--work-ink); margin:0; }
.mode-details { color:var(--work-secondary); font-size:18px; line-height:1.55; padding:0 0 0 20px; margin:20px 0 28px; flex:1; }
.mode-details li + li { margin-top:8px; }
.productive-mode .button { width:100%; min-height:54px; margin:0; padding:14px 18px; justify-content:center; font-size:18px; }
.setup-note { font-size:18px; line-height:1.55; color:var(--work-secondary); max-width:85ch; margin:24px 0 0; }
.productive-setup .button:disabled,
.productive-result .button:disabled { opacity:1; background:var(--work-raised); color:var(--work-secondary); border-color:var(--work-border); cursor:not-allowed; }
.productive-note { font-size:18px; line-height:1.6; color:var(--muted); max-width:75ch; }
.productive-status { font-size:18px; line-height:1.55; color:var(--coral); }
.productive-status:empty { display:none; }

.speaking-mock { background:var(--question-panel); border:1px solid var(--line); padding:clamp(22px,4vw,42px); overflow:auto; min-height:0; flex:1; }
.speaking-mock h2,
.speaking-practice h2 { font-size:clamp(26px,2.5vw,34px); font-weight:650; letter-spacing:-.035em; line-height:1.25; margin:0 0 24px; }

/* Speaking shows one prompt with its controls in the same place. */
.practice-page.in-test .productive-speaking { display:block; overflow:auto; background:var(--question-panel); }
.speaking-practice { max-width:1000px; width:100%; margin:0 auto; padding:clamp(22px,4vw,42px); }
.speaking-stage-head { display:flex; justify-content:space-between; align-items:start; gap:20px; max-width:950px; }
.speaking-stage-head h2 { margin-bottom:20px; }
.mock-stage-clock { font-size:28px; font-variant-numeric:tabular-nums; color:var(--teal); line-height:1.25; flex:none; }
.question-progress { font-size:18px; color:var(--muted); margin:14px 0 10px; }
.mock-question { font-size:clamp(26px,3vw,34px); font-weight:600; max-width:950px; line-height:1.4; letter-spacing:-.025em; margin:0 0 24px; }
.practice-page.in-test .speaking-cue { font-family:inherit; font-size:25px; font-weight:600; line-height:1.45; max-width:900px; margin:16px 0; }
.speaking-cues { font-size:19px; line-height:1.55; max-width:900px; padding-left:24px; margin:10px 0 22px; }
.speaking-cues li { margin:8px 0; }
.speaking-actions { display:flex; align-items:center; flex-wrap:wrap; gap:12px; max-width:950px; margin:24px 0 12px; }
.speaking-mock .speaking-actions { justify-content:space-between; }
.speaking-actions .button { width:auto; margin:0; min-width:160px; min-height:50px; font-size:18px; padding:12px 18px; justify-content:center; }
.speaking-actions .inline-button,
.practice-preparation .inline-button { background:var(--white); border:1px solid var(--line); color:var(--ink); min-height:48px; padding:10px 14px; font-size:18px; cursor:pointer; }
.speaking-actions button:disabled { opacity:1; color:var(--muted); background:var(--white); border-color:var(--line); cursor:default; }
.recording-indicator { display:flex; align-items:center; gap:10px; font-weight:700; font-size:18px; color:var(--coral); }
.recording-indicator::before { content:''; width:9px; height:9px; background:currentColor; flex:none; }
.speaking-part-tabs { display:flex; justify-content:center; flex-wrap:wrap; gap:8px; }
.speaking-part-tabs > * { display:inline-block; min-width:90px; padding:9px 16px; background:var(--white); border:1px solid var(--line); color:var(--ink); text-align:center; font-size:16px; font-weight:700; }
.speaking-part-tabs .is-current { background:var(--teal); border-color:var(--teal); color:var(--white); }
.speaking-notes,
.speaking-playback { border-top:1px solid var(--line); padding-top:16px; margin:22px 0 0; max-width:900px; }
.speaking-notes summary,
.speaking-playback summary { cursor:pointer; font-size:18px; font-weight:600; }
.speaking-notes .notes-label { font-size:18px; margin:16px 0 8px; }
.mock-notes { display:block; width:100%; min-height:100px; background:var(--white); color:var(--ink); border:1px solid var(--line); padding:14px; font:inherit; font-size:19px; line-height:1.55; margin:10px 0 16px; resize:vertical; }
.speaking-playback audio { display:block; width:100%; max-width:600px; margin-top:18px; }
.practice-preparation { display:flex; flex-wrap:wrap; align-items:center; gap:14px; }

/* The review has a feedback panel and a separate panel for saved work. */
.practice-page.in-test .productive-result { width:min(100%,1280px); margin:0 auto; padding:28px 16px 32px; border:0; background:transparent; }
.productive-result .result-head { padding:0; margin:0 0 26px; border:0; }
.practice-page.in-test .productive-result .result-head h2 { font-size:clamp(30px,3vw,38px); line-height:1.2; font-weight:650; }
.review-intro { font-size:20px; line-height:1.5; color:var(--work-secondary); margin:12px 0 0; }
.productive-review-grid { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); gap:24px; align-items:start; }
.productive-result .grading-region,
.productive-result .writing-review-panel,
.productive-result .productive-speaking-review { background:var(--work-surface); border:1px solid var(--work-border); padding:28px; margin:0; min-width:0; }
.productive-result .productive-note { color:var(--work-secondary); margin:12px 0 20px; }
.productive-result .grading-region h3,
.productive-result .writing-review-panel > h3,
.productive-result .productive-speaking-review > h3 { font-family:inherit; font-size:26px; font-weight:650; line-height:1.3; letter-spacing:-.025em; margin:0 0 12px; }
.grading-region > .button { width:auto; max-width:100%; margin:4px 0 20px; min-height:54px; font-size:18px; justify-content:center; }
.grading-about { border-top:1px solid var(--work-border); padding-top:16px; }
.grading-about summary { font-size:18px; line-height:1.5; font-weight:600; cursor:pointer; }
.productive-result .feedback-empty { padding:14px 16px; border-left:3px solid var(--work-accent); background:var(--work-raised); color:var(--work-ink); }
.demo-grading-notice { border:1px solid #a47b31; padding:14px 16px; margin:0 0 24px; background:#fff3df; color:#533712; font-weight:600; font-size:18px; line-height:1.55; }
html[data-theme="dark"] .demo-grading-notice { background:#312c26; border-color:#9b7441; color:#ffd48f; }
.productive-result .result-actions { border:0; padding:0; margin:24px 0 0; gap:14px; }
.productive-result .result-actions .button { min-height:52px; font-size:18px; padding:13px 20px; justify-content:center; }
.productive-result .writing-review,
.productive-result .self-review,
.productive-result .speaking-review { background:var(--work-raised); border:1px solid var(--work-border); padding:0; margin:16px 0; }
.practice-page.in-test .productive-result .writing-review summary,
.practice-page.in-test .productive-result .self-review summary,
.practice-page.in-test .productive-result .speaking-review summary { font-family:inherit; font-size:20px; font-weight:600; line-height:1.4; padding:18px; cursor:pointer; color:var(--work-ink); list-style:none; display:flex; align-items:center; gap:12px; }
.productive-result .writing-review summary::-webkit-details-marker,
.productive-result .self-review summary::-webkit-details-marker,
.productive-result .speaking-review summary::-webkit-details-marker { display:none; }
.productive-result .writing-review summary::after,
.productive-result .self-review summary::after,
.productive-result .speaking-review summary::after { content:'+'; color:var(--work-accent); font-size:24px; line-height:1; margin-left:auto; flex:none; }
.productive-result .writing-review[open] summary::after,
.productive-result .self-review[open] summary::after,
.productive-result .speaking-review[open] summary::after { content:'−'; }
.review-word-count { margin-left:auto; font-size:18px; font-weight:400; color:var(--work-secondary); white-space:nowrap; }
.productive-result .writing-review summary::after { margin-left:0; }
.practice-page.in-test .productive-result .writing-review > p,
.practice-page.in-test .productive-result .speaking-review > p { font-size:18px; line-height:1.6; color:var(--work-secondary); margin:0 18px 16px; }
.practice-page.in-test .productive-result .draft-preview { background:var(--work-surface); border:0; color:var(--work-ink); font-size:20px; line-height:1.65; padding:18px; margin:0 18px 18px; }
.productive-result .self-review ul { font-size:18px; line-height:1.65; margin:0 18px 20px; padding-left:22px; }
.productive-result .draft-download { width:100%; margin:6px 0 0; font-size:18px; min-height:52px; justify-content:center; }
.productive-result .productive-speaking-review .inline-button { font-size:18px; margin:0 18px 18px; }
.productive-result .productive-speaking-review > .inline-button { margin:8px 0 0; }
.productive-result .speaking-review audio { width:calc(100% - 36px); margin:0 18px 18px; }
.productive-result .speaking-review .transcript-text { color:var(--work-ink); font-size:20px; margin:0 18px 18px; }
.estimated-band-head { display:flex; flex-direction:column; align-items:start; border-left:4px solid var(--teal); padding:8px 24px; background:var(--sage); }
.productive-result .estimated-band-head { background:var(--work-raised); padding:22px; border-color:var(--work-accent); }
.estimated-band { font-size:70px; line-height:1.05; letter-spacing:-.04em; color:var(--teal); font-variant-numeric:tabular-nums; }
.estimated-band-head .panel-kicker { color:var(--ink); }
.criterion-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.criterion-card { border:1px solid var(--work-border); background:var(--work-raised); padding:21px; min-width:0; }
.criterion-head { display:flex; flex-wrap:wrap; align-items:start; justify-content:space-between; gap:12px; }
.criterion-head h4 { font-size:20px; line-height:1.4; margin:0; flex:1 1 150px; }
.criterion-band { font-size:28px; color:var(--teal); line-height:1.1; overflow-wrap:anywhere; }
.criterion-card p { font-size:18px; line-height:1.6; }
.criterion-detail summary,
.speech-diagnostics summary { font-size:18px; cursor:pointer; font-weight:700; padding:12px 0; }
.criterion-detail h5 { font-size:18px; margin:18px 0 5px; }
.criterion-detail p { font-size:18px; line-height:1.6; }
.criterion-detail p { margin:5px 0 15px; }
.criterion-detail blockquote { margin:12px 0; padding:12px; border-left:2px solid var(--teal); background:var(--work-surface); font-size:18px; line-height:1.6; white-space:pre-wrap; overflow-wrap:anywhere; }
.grading-priorities { padding:16px 0; }
.grading-priorities h4,
.grading-priorities li { font-size:18px; line-height:1.6; }
.grading-priorities li { margin:8px 0; }
.speech-diagnostics { border-top:1px solid var(--line); padding:14px 0; }
.diagnostic-list { display:grid; grid-template-columns:1fr auto; gap:9px; font-size:18px; max-width:500px; }
.diagnostic-list dd { margin:0; font-weight:700; }
.productive-speaking-review audio { display:block; width:100%; margin-bottom:16px; }
.practice-page.in-test .writing-review summary,
.practice-page.in-test .speaking-review summary { font-family:inherit; font-size:19px; line-height:1.5; }
.practice-page.in-test .draft-preview,
.transcript-text { font-size:18px; line-height:1.7; white-space:pre-wrap; overflow-wrap:anywhere; }
.productive-speaking-review .inline-button { margin:12px 10px 12px 0; display:inline-block; font-size:16px; }
.productive-speaking-review > button { color:var(--coral); }
.productive-setup button:focus-visible,
.speaking-mock button:focus-visible,
.speaking-practice button:focus-visible,
.speaking-part-tabs button:focus-visible,
.grading-region button:focus-visible,
.productive-speaking-review button:focus-visible,
.mock-notes:focus-visible { outline:3px solid var(--teal); outline-offset:3px; }
.productive-result button:focus-visible,
.productive-result a:focus-visible,
.productive-result summary:focus-visible { outline:3px solid var(--work-accent); outline-offset:4px; }

@media(max-width:1000px) {
  .productive-review-grid { grid-template-columns:1fr; gap:20px; }
}
@media(max-width:800px) {
  .productive-modes { grid-template-columns:1fr; }
}

@media(max-width:900px) {
  .practice-page.in-test .test-topbar-inner { grid-template-columns:minmax(0,1fr) auto; gap:8px; }
  .practice-page.in-test .test-controls { flex-wrap:wrap; }
  .productive-setup,.speaking-mock { min-height:0; }
}
@media(max-width:620px) {
  .practice-page.in-test .desk-back,
  .practice-page.in-test .desk-tool,
  .practice-page.in-test .desk-finish { font-size:13px; padding:8px; }
  .practice-page.in-test .test-identity strong { font-size:13px; }
  .practice-page.in-test .desk-theme { width:38px; height:38px; }
  .practice-page.in-test .editor-panel { padding:20px 16px; }
  .practice-page.in-test .editor-head { flex-wrap:wrap; gap:6px 12px; }
  .practice-page.in-test .matching-table .matching-prompt-heading { width:200px; }
  .criterion-grid { grid-template-columns:1fr; }
  .criterion-card { padding:17px; }
  .criterion-head { flex-wrap:wrap; }
  .estimated-band-head { padding:16px; }
  .estimated-band { font-size:58px; }
  .grading-region .button { width:100%; }
  .productive-mode { padding:22px; }
  .productive-setup,.speaking-mock,.speaking-practice { padding:23px 18px; }
  .productive-setup-inner { margin:0 auto; }
  .productive-mode h3 { font-size:26px; }
  .productive-mode .mode-description { font-size:19px; }
  .practice-page.in-test .productive-result { padding:20px 0; }
  .productive-result .grading-region,
  .productive-result .writing-review-panel,
  .productive-result .productive-speaking-review { padding:20px 16px; }
  .productive-result .result-actions .button { width:100%; }
  .speaking-stage-head { gap:12px; }
  .speaking-stage-head h2 { font-size:25px; }
  .mock-stage-clock { font-size:25px; }
  .speaking-actions .button { min-width:0; flex:1 1 100%; }
  .speaking-actions .inline-button { flex:1; text-align:center; }
}
