/* Test workspace; source questions and their controls remain in their original question nodes. */
body.tv-enabled{--tv-ink:#24322f;--tv-muted:#64716c;--tv-line:#dbe3df;--tv-accent:#21675c;background:#fff;color:var(--tv-ink);padding:0 0 calc(85px + env(safe-area-inset-bottom));margin:0;font:16px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC",sans-serif}
.tv-enabled *{box-sizing:border-box;letter-spacing:0}.tv-enabled [hidden]{display:none!important}
.tv-enabled .container{max-width:none;margin:0;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none}
.tv-enabled .container>.page-heading,.tv-enabled .container>h1,.tv-enabled .container>.subtitle,.tv-enabled .listening-module-picker,.tv-enabled .listening-nav-stack,.tv-enabled .listening-type-nav,.tv-enabled .listening-module-nav,.tv-enabled .questions-list>.section-heading{display:none!important}
.tv-enabled .questions-list{display:block!important}
.tv-shell{border-bottom:1px solid var(--tv-line);background:#f8faf9;position:sticky;top:0;z-index:5}
.tv-top{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 64px 12px 24px}
.tv-identity{display:flex;align-items:center;gap:14px;min-width:0}.tv-identity h1{font-size:18px;line-height:1.4;margin:0;color:var(--tv-ink);overflow-wrap:anywhere}.tv-subtitle{font-size:12px;color:var(--tv-muted)}
.tv-tools,.tv-modes,.tv-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.tv-modes{background:#eaf0ed;border-radius:5px;padding:3px;gap:2px}
.tv-enabled button,.tv-enabled select,.tv-enabled textarea,.tv-enabled input{font-family:inherit}
.tv-button,.tv-icon,.tv-mode{min-height:36px;border:1px solid var(--tv-line);border-radius:5px;background:#fff;color:var(--tv-ink);font-size:13px;cursor:pointer;padding:7px 12px;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:7px}
.tv-icon{width:36px;padding:7px;flex-shrink:0}.tv-icon svg,.tv-button svg{width:18px;height:18px;flex-shrink:0}
.tv-mode{background:transparent;border-color:transparent}.tv-mode[aria-pressed=true]{background:#fff;color:var(--tv-accent);box-shadow:0 1px 2px #0001}
.tv-button:hover:not(:disabled),.tv-icon:hover:not(:disabled){background:#eef5f1}.tv-primary{background:var(--tv-accent);border-color:var(--tv-accent);color:white}.tv-primary:hover:not(:disabled){background:#195247}
.tv-enabled button:disabled{opacity:.4;cursor:default}.tv-enabled :focus-visible{outline:3px solid #7fb8a7;outline-offset:3px}
.tv-bar{padding:10px 64px 10px 24px;display:flex;align-items:center;gap:12px;border-top:1px solid var(--tv-line);flex-wrap:wrap;background:#fff}
.tv-bar select{max-width:300px;min-width:150px;padding:6px 10px;border:1px solid var(--tv-line);border-radius:4px;background:#fff;font-size:13px;min-height:36px}
.tv-position{font-size:13px;min-width:136px;font-variant-numeric:tabular-nums}.tv-progress{margin-left:auto;font-size:12px;color:var(--tv-muted)}
.tv-clock{font-size:14px;font-variant-numeric:tabular-nums;min-width:56px;color:#9b5124;font-weight:650}
.tv-enabled .question{padding:0;border:0;border-radius:0;margin:0;background:#fff;box-shadow:none;scroll-margin-top:12px}
.tv-question-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 64px 12px 24px;border-bottom:1px solid var(--tv-line)}
.tv-enabled .q-header{margin:0;gap:8px}.tv-enabled .q-num{color:var(--tv-accent);font-size:15px}.tv-enabled .q-type{font-size:12px;background:none;padding:0;color:var(--tv-muted)}
.tv-enabled .q-header .q-topic,.tv-enabled .q-header .academic-subtype-badge,.tv-enabled .q-header .q-subnum{display:none}
.tv-enabled .q-header .listening-module-badge,.tv-enabled .q-header .listening-type-badge,.tv-enabled .q-header .interview-type-badge{background:none;border:0;font-size:12px;color:var(--tv-muted)}
.tv-flag[aria-pressed=true]{color:#9b6420;border-color:#d9b475;background:#fff8e7}
.tv-stage{display:grid;grid-template-columns:minmax(0,1.06fr) minmax(0,1fr);min-height:calc(100dvh - 290px);max-width:1600px;margin:auto}
.tv-material,.tv-response{min-width:0;padding:28px 30px;overflow-wrap:anywhere}
.tv-material{border-right:1px solid var(--tv-line);background:#fbfcfb;max-height:calc(100dvh - 215px);overflow:auto}
.tv-response{padding-right:64px}.tv-stage.tv-single{grid-template-columns:minmax(0,1fr);max-width:1050px}.tv-single .tv-material:empty{display:none}
.tv-enabled .passage-text{padding:0;margin:0 0 18px;background:none;border:0;border-radius:0;color:var(--tv-ink);font-size:16px;line-height:1.9;white-space:pre-wrap}
.tv-enabled .q-text{font-size:16px;line-height:1.65;margin:0 0 16px}.tv-enabled .options{margin:16px 0}
.tv-enabled .option{position:relative;display:flex;align-items:baseline;gap:12px;padding:12px 14px;border:1px solid var(--tv-line);border-radius:5px;margin:0 0 9px;font-size:16px;line-height:1.55;cursor:pointer;background:#fff}
.tv-enabled .option:has(input:checked){border-color:#518e7e;background:#edf6f1}.tv-choice{width:18px;height:18px;margin:0;accent-color:var(--tv-accent);flex-shrink:0;align-self:flex-start;transform:translateY(4px)}
.tv-option-text{min-width:0}.tv-enabled .option .opt-letter{display:none}
.tv-enabled .letter-blank{width:22px;height:30px;padding:0;margin:0 1px;border:1px solid #a5b6ad;border-bottom:2px solid #486a5f;border-radius:2px;background:white;text-align:center;font-size:16px;color:var(--tv-ink)}
.passage-text .letter-blank{vertical-align:baseline;font:inherit;line-height:normal}
.tv-cloze-word{display:inline-block;max-width:100%;vertical-align:baseline}
/* Letter inputs use an understated active underline instead of the general focus ring. */
.tv-enabled .letter-blank:focus{outline:none;box-shadow:inset 0 -1px 0 var(--tv-ink);border-bottom-color:var(--tv-ink)}
.tv-enabled:not(.tv-timed) .letter-blank[data-word-mark=correct]{border-bottom-color:#28705a;background:#eef7f1}
.tv-enabled:not(.tv-timed) .letter-blank[data-word-mark=incorrect]{border-color:#b84c47;background:#fff1f0}
.tv-enabled:not(.tv-timed) .letter-blank[data-word-mark=incomplete]{border-style:dashed;border-color:#936a2b;background:#fff9eb}
.tv-enabled .answer-expanded,.tv-enabled .q-text-expanded,.tv-enabled .transcript-expanded{max-height:none!important;opacity:1;overflow:visible}
.tv-enabled .a-toggle-btn,.tv-enabled .q-toggle-btn,.tv-enabled .t-toggle-btn{background:#f0f5f2;border:1px solid var(--tv-line);color:var(--tv-accent);padding:6px 11px;border-radius:4px;font-size:13px;margin:8px 0}
.tv-enabled .answer-box{font-size:14px;line-height:1.7;background:#f8f8ed;color:#53513a}.tv-enabled .transcript-box{font-size:15px;line-height:1.8;background:#f1f6f2;border:0;border-radius:4px}.tv-enabled .transcript-text{font-size:15px;line-height:1.8}
.tv-enabled .audio-player{background:none;padding:8px 0;margin:8px 0;border:0;border-radius:0;position:sticky;top:0;z-index:1;background:#fbfcfb}.tv-enabled audio{max-width:100%;width:100%}
.tv-enabled .passage-image img,.tv-enabled .question-image img,.tv-enabled .listen-repeat-scene img{display:block;max-width:100%;width:auto;height:auto;max-height:none;margin:8px auto;object-fit:contain;border:0;border-radius:0;cursor:zoom-in}
.tv-enabled .question-image img{max-height:290px}.tv-enabled .listen-repeat-scene img{max-height:220px}
.tv-enabled .shared-material-note{background:none;border:0;padding:0;font-size:12px;color:var(--tv-muted)}
.tv-enabled .sentence-builder,.tv-enabled .writing-task{padding:0;background:transparent;border:0;border-radius:0}.tv-enabled .discussion-thread{background:none}.tv-enabled .discussion-post{padding:15px 0;gap:16px;grid-template-columns:90px minmax(0,1fr)}
.tv-enabled .discussion-professor{background:none}.tv-enabled .writing-instructions{background:none;padding:0 0 16px}.tv-enabled .coach-box{border:0;background:#f5f8f6;border-radius:4px}.tv-enabled .coach-grid{display:block}.tv-enabled .coach-list{border:0;padding:8px 0;background:none}
.tv-answer-label{display:block;font-size:13px;font-weight:650;margin:14px 0 8px}.tv-response textarea{display:block;width:100%;min-height:260px;resize:vertical;border:1px solid #b7c8be;border-radius:4px;padding:16px;font-size:16px;line-height:1.7;background:#fff;color:var(--tv-ink)}
.tv-word-count{font-size:12px;color:var(--tv-muted);text-align:right;margin-top:6px;font-variant-numeric:tabular-nums}
.tv-sentence{font:inherit;text-align:left;color:inherit;background:none;border:0;border-radius:3px;padding:0;cursor:pointer;display:inline;line-height:inherit}.tv-sentence:hover{background:#e8f1ed}.tv-sentence[aria-pressed=true]{background:#dcefe5;box-shadow:0 0 0 2px #78ab91}
.tv-feedback{font-size:14px;color:var(--tv-accent);margin:10px 0}.tv-feedback[data-result=incorrect]{color:#a13c3c}
.tv-bottom{display:flex;justify-content:space-between;align-items:center;gap:16px;border-top:1px solid var(--tv-line);padding:14px 64px calc(14px + env(safe-area-inset-bottom)) 24px;margin:0;background:#fff;position:fixed;bottom:0;left:0;right:0;z-index:4}
.tv-status{font-size:12px;color:var(--tv-muted);padding:0 64px 0 24px;min-height:24px}.tv-status:empty{display:none}
.tv-dialog{padding:22px;border:1px solid var(--tv-line);border-radius:6px;width:min(760px,calc(100% - 28px));max-height:calc(100dvh - 32px);overflow:auto;color:var(--tv-ink);background:#fff}
.tv-dialog::backdrop{background:#17231f99}.tv-dialog header{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:0;margin:0 0 18px;border:0}.tv-dialog h2{font-size:19px;margin:0}.tv-dialog h3{font-size:15px;margin:20px 0 8px}.tv-dialog p{font-size:14px}.tv-dialog .tv-actions{justify-content:flex-end;margin-top:20px}
.tv-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(52px,1fr));gap:8px}.tv-grid button{min-height:44px;background:#fff;border:1px solid var(--tv-line);border-radius:4px;color:var(--tv-ink);font-size:14px;cursor:pointer;position:relative;font-variant-numeric:tabular-nums}
.tv-grid button[data-status=answered]{background:#e2f1e9;border-color:#7ba88e}.tv-grid button[data-status=partial]{border-style:dashed;border-color:#8a9a91}.tv-grid button[data-flagged=true]::after{content:'!';position:absolute;right:4px;top:0;color:#9b6420;font-weight:bold}.tv-grid button[aria-current=true]{outline:2px solid var(--tv-accent)}
.tv-dialog label{display:block;margin:12px 0;font-size:14px}.tv-dialog input[type=number]{width:110px;padding:7px;border:1px solid var(--tv-line);border-radius:4px;margin-left:12px}.tv-dialog input[type=checkbox]{accent-color:var(--tv-accent)}
.tv-image-dialog{width:min(1000px,calc(100% - 28px))}.tv-image-dialog>img{display:block;max-width:100%;max-height:calc(100dvh - 250px);object-fit:contain;margin:auto}.tv-image-audio{margin-top:16px}
.tv-timed .a-toggle-btn,.tv-timed .answer-box,.tv-timed .t-toggle-btn,.tv-timed .transcript-box,.tv-timed .q-toggle-btn,.tv-timed .q-text-collapsed,.tv-timed .q-text-expanded,.tv-timed .coach-box,.tv-timed .recording-coach,.tv-timed .recording-reminders,.tv-timed .tv-check,.tv-timed .tv-feedback,.tv-timed .tv-sample,.tv-timed .tv-speaking-prompt{display:none!important}
.tv-context{font-size:14px;margin:0 0 16px}.tv-context summary{cursor:pointer;color:var(--tv-accent)}.tv-context p{white-space:pre-wrap}.tv-resume{margin:8px 24px}.tv-check{margin-right:8px}
.tv-insert-position{display:inline;cursor:pointer}.tv-insert-position .tv-choice{appearance:none;display:inline-block;vertical-align:baseline;transform:none;width:16px;height:16px;border:2px solid #35594d;border-radius:1px;background:#35594d;margin:0 5px}.tv-insert-position .tv-choice:checked{background:#fff;box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 8px #35594d}.tv-inserted{background:#e2f1e9;color:#194d3f;padding:2px 4px}
.tv-enabled .recorder{margin-top:18px;min-width:0;max-width:100%}.tv-enabled .recording-tools{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.tv-enabled .recording-button{display:grid;place-items:center;width:36px;height:36px;padding:7px;border:1px solid var(--tv-line);border-radius:4px;background:#fff;color:#51665b;cursor:pointer}.tv-enabled .recording-button svg{width:18px;height:18px}.tv-enabled .recording-start{color:#a9233a}.tv-enabled .is-recording .recording-start{background:#a9233a;color:#fff}.tv-enabled .recording-time{min-width:40px;font-size:13px;font-variant-numeric:tabular-nums}.tv-enabled .recording-status{display:block;font-size:12px;color:var(--tv-muted);margin:5px 0}.tv-enabled .recording-preview{width:100%;height:36px}.tv-enabled .recording-coach{min-height:36px}
@media(max-width:850px){.tv-top{align-items:flex-start;flex-direction:column;padding:14px 58px 12px 16px}.tv-tools{width:100%}.tv-bar{padding:10px 58px 10px 16px}.tv-bar select{max-width:100%;flex:1}.tv-progress{margin-left:0}.tv-question-head{padding:12px 58px 12px 16px}.tv-stage{grid-template-columns:1fr;min-height:0}.tv-material{border-right:0;border-bottom:1px solid var(--tv-line);max-height:none}.tv-material,.tv-response{padding:20px 58px 20px 16px}.tv-bottom{padding:14px 58px 14px 16px;gap:10px}.tv-bottom .tv-button{padding:7px 9px}.tv-status{padding-left:16px;padding-right:58px}.tv-dialog{padding:16px}.tv-identity h1{font-size:17px}.tv-enabled .option{padding:10px;gap:10px}}
@media print{.tv-shell,.tv-bottom,.tv-status,.tv-question-head>.tv-icon{display:none!important}.tv-enabled .question[hidden]{display:block!important}.tv-stage{display:block}.tv-material{max-height:none;overflow:visible;border:0}.tv-response{padding:20px}.tv-enabled .questions-list>.section-heading{display:block!important}}
.tv-top{background:#125f64;color:white}.tv-identity h1,.tv-subtitle{color:inherit}.tv-tools .tv-clock{color:#fff}
.tv-task-title{font-size:19px;text-align:center;line-height:1.45;margin:0 0 22px}
.tv-intro{max-width:900px;margin:0 auto;padding:28px 22px;text-align:center}.tv-intro p{margin:0 auto 22px;max-width:780px}.tv-intro img{display:block;max-width:100%;max-height:52dvh;margin:auto;object-fit:contain}
.tv-question-head>.q-header{flex:1}.tv-prelude .tv-question-head>.tv-button,.tv-prelude .tv-flag{display:none}
.tv-passage-screen .tv-stage{display:block}.tv-passage-screen .tv-response{display:none}
.tv-passage-question:not(.tv-passage-screen) .tv-material{display:none}.tv-passage-question:not(.tv-passage-screen) .tv-stage{display:block;max-width:960px}
.tv-passage-screen .tv-material{max-height:none;background:white;border:0;max-width:760px;margin:auto}
.tv-passage-screen .tv-material-content{display:flex;align-items:stretch;flex-direction:column}
.tv-passage-screen .tv-task-title{order:-3}.tv-passage-screen .audio-player{order:-2;position:static;background:white;width:min(520px,100%);align-self:center}
.tv-passage-screen .shared-material-note,.tv-passage-screen .audio-player-label{display:none}
.tv-player-tools{display:flex;align-items:center;gap:8px;justify-content:flex-end}.tv-player-tools select{font:inherit;padding:3px}
.tv-volume{position:relative;font-size:13px}.tv-volume summary{cursor:pointer;padding:6px}.tv-volume input{position:absolute;z-index:2;top:100%;left:0;width:112px;background:white;accent-color:#21675c}
.tv-portrait{width:48px;height:48px;object-fit:cover;border-radius:50%}.tv-enabled .dialogue-turn:has(.tv-portrait){grid-template-columns:48px minmax(0,1fr)}
.tv-email-header{font-size:14px;line-height:1.7;margin:0 0 12px}.tv-enabled .tv-response>.discussion-thread{margin:0 0 18px}
.tv-passage-screen .tv-material .t-toggle-btn{align-self:flex-start}
.tv-dialog.tv-review-dialog[open]{display:flex;flex-direction:column;width:min(1220px,calc(100% - 32px));max-height:90dvh;overflow:hidden}
.tv-review-dialog header{margin-bottom:4px}.tv-review-dialog>p{margin:3px 0}.tv-review-dialog .tv-actions{margin:8px 0 12px}
.tv-review-dialog select{margin-right:auto;padding:6px;border:1px solid var(--tv-line);border-radius:4px;background:white;font:inherit;font-size:13px}
.tv-review-scroll{min-height:0;overflow:auto;overscroll-behavior:contain;border:1px solid var(--tv-line)}
.tv-review-table{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed;color:var(--tv-ink);font-size:14px;line-height:1.45}
.tv-review-table th,.tv-review-table td{overflow-wrap:anywhere;text-align:left;padding:9px 12px;border:0;border-bottom:1px solid var(--tv-line);vertical-align:middle}
.tv-review-table th{position:sticky;top:0;background:#f4f7f6;color:#495b54;font-weight:600;z-index:1}
.tv-review-table th:first-child{width:12%}.tv-review-table th:nth-child(2){width:14%}.tv-review-table th:nth-child(4){width:23%}
.tv-review-table tr:last-child td{border-bottom:0}.tv-review-table tbody tr{cursor:pointer}.tv-review-table tbody tr:hover{background:#f6faf9}
.tv-review-table tr[data-selected=true]{background:#e7f3ee}.tv-review-table tr[data-selected=true] td:first-child{box-shadow:inset 3px 0 var(--tv-accent)}
.tv-review-number{border:0;background:transparent;color:inherit;padding:2px 0;cursor:pointer;font:inherit;font-weight:650}
.tv-row-status{display:block;font-size:11px;color:#52655d}.tv-key-part{display:inline-block}.tv-review-key{font-variant-numeric:tabular-nums}
@media(max-width:600px){.tv-dialog.tv-review-dialog[open]{width:calc(100% - 12px);max-width:calc(100% - 12px);max-height:95dvh;padding:10px}.tv-review-table{font-size:13px}.tv-review-table th,.tv-review-table td{padding:7px 4px}.tv-review-table th:first-child{width:5.5em;white-space:nowrap}.tv-review-table th:nth-child(2){width:4.8em}.tv-review-table th:nth-child(4){width:20%}.tv-review-dialog .tv-actions{gap:4px}.tv-review-dialog .tv-button{padding:5px 8px}}
@media(max-width:850px){.tv-question-head{flex-wrap:wrap;gap:8px}.tv-bar{gap:6px}.tv-bar select{min-width:100px}.tv-position{min-width:106px}.tv-player-tools{justify-content:center}}
