.ml-workspace{display:grid;grid-template-columns:minmax(240px,.8fr) minmax(0,1.8fr);gap:18px;background:#181e22;border:1px solid #465057;border-radius:12px;padding:18px;color:#eeeae4;margin:20px 0}.ml-workspace *{box-sizing:border-box}.ml-workspace [hidden]{display:none!important}.ml-source{min-width:0;padding:0 18px 0 0;border-right:1px solid #465057}.ml-main{min-width:0}.ml-workspace h2{font-size:1.1rem;margin:0 0 12px}.ml-workspace p{margin:9px 0}.ml-note{font-size:.86rem;line-height:1.5;color:#bcc3c7}.ml-file{padding:12px;background:#222a30;border:1px solid #465057;border-radius:7px;margin-bottom:10px}.ml-file strong{display:block}.ml-file p{font-size:.84rem;overflow-wrap:anywhere}.ml-file-picker{margin:8px 0 0!important;font-size:.88rem}.ml-workspace input[type=file]{max-width:100%;font-size:.8rem;padding:8px 0;background:transparent;color:#eeeae4}.ml-workspace input[type=file]::file-selector-button{background:#37434b;border:1px solid #68757e;border-radius:4px;color:#fff;padding:7px;cursor:pointer}.ml-workspace input:not([type=checkbox]):not([type=range]):not([type=file]),.ml-workspace select,.ml-workspace textarea{width:100%;background:#10161a;color:#f4efe7;border:1px solid #657079;border-radius:5px;padding:9px;min-height:42px;margin-top:5px}.ml-workspace input[aria-invalid=true]{border-color:#f28d75}.ml-workspace label{display:block;font-size:.9rem;margin:10px 0}.ml-workspace button{cursor:pointer;font:inherit;font-size:.9rem;min-height:42px;border-radius:5px;border:1px solid #66737b;padding:8px 13px;background:#2b353c;color:#f4efe7}.ml-workspace button:hover:not(:disabled){background:#3a4852;color:#fff}.ml-workspace button:disabled{opacity:.45;cursor:default}.ml-workspace button:focus-visible,.ml-workspace summary:focus-visible{outline:2px solid #f1bd70;outline-offset:3px}.ml-workspace .btn:not(.btn--secondary){background:#deb374;color:#151a1e;border-color:#deb374}.ml-workspace .btn:not(.btn--secondary):hover:not(:disabled){background:#f0c98f;color:#151a1e}.ml-steps{display:flex;gap:7px;border-bottom:1px solid #465057;padding-bottom:12px;margin-bottom:16px}.ml-steps button{flex:1;padding:8px 4px}.ml-steps button[aria-current=step]{border-color:#e3b575;color:#f1c990;background:#342f27}.ml-workspace section[data-pane]{padding:0;margin:0;border:0}.ml-range{display:grid;grid-template-columns:1fr 1fr;gap:12px}.ml-workspace details{margin:12px 0;border:1px solid #465057;border-radius:6px;padding:10px}.ml-workspace summary{cursor:pointer;font-size:.9rem;font-weight:600}.ml-workspace canvas{width:100%;height:160px;display:block;border:1px solid #56626a;border-radius:5px;touch-action:pan-y}.ml-workspace input[type=range]{width:100%;accent-color:#e1b474;min-height:30px}.ml-choices{display:flex;gap:10px;margin-bottom:12px}.ml-choices button{width:80px;font-size:1.2rem;font-weight:700}.ml-choices button[aria-pressed=true],.ml-workspace #lab-votes button[aria-pressed=true]{border-color:#edc17e;background:#4b3b26;color:#ffe2b5}.ml-transport,.ml-exports,#lab-votes{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.ml-workspace label.ml-check{display:flex;align-items:center;gap:7px;margin:8px 0}.ml-workspace input[type=checkbox]{accent-color:#e1b474;width:17px;height:17px;margin:0}.ml-workspace #lab-settings{display:grid;grid-template-columns:1fr 1fr;gap:4px 12px}.ml-workspace #lab-settings>label:last-child{grid-column:1/-1}.ml-workspace #lab-time{display:block;font-variant-numeric:tabular-nums;color:#f0c98f}.ml-workspace #lab-status{border-left:3px solid #dcb36d;padding:8px 10px;min-height:42px;font-size:.92rem;line-height:1.45}.ml-workspace #lab-trials{max-height:200px;overflow:auto;padding-left:25px}.ml-workspace #lab-trials li{font-size:.9rem;margin:7px 0}.ml-workspace #lab-volume{max-width:250px}.ml-workspace #lab-continue,.ml-workspace #lab-to-save{margin-top:12px}@media(max-width:700px){.ml-workspace{grid-template-columns:1fr;padding:12px;gap:14px}.ml-source{padding:0 0 12px;border:0;border-bottom:1px solid #465057}.ml-files{display:grid;grid-template-columns:1fr 1fr;gap:8px}.ml-file{min-width:0;margin:0;padding:9px}.ml-workspace input[type=file]{width:100%;font-size:.75rem}.ml-steps{position:relative}.ml-workspace canvas{height:140px}.ml-workspace #lab-settings{grid-template-columns:1fr}.ml-workspace .ml-range{gap:8px}.ml-workspace h2{font-size:1rem}}

.ml-workspace .ml-file-picker{position:relative;display:inline-flex;align-items:center;border:1px solid #71808a;border-radius:4px;background:#303c44;color:#f4efe7;padding:9px 12px;min-height:42px;cursor:pointer}.ml-workspace .ml-file-picker input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;padding:0;margin:0}.ml-workspace .ml-file-picker:focus-within{outline:2px solid #edbd79;outline-offset:3px}.ml-workspace #lab-status:empty{display:none}

.ml-workspace .hk-file-activity[data-state=done],.ml-workspace .hk-file-activity[data-state=error],.ml-workspace .hk-file-activity[data-state=cancelled]{display:none}.ml-workspace .hk-file-activity{font-size:.85rem;margin-top:12px}.ml-workspace .hk-file-activity progress{width:100%}

.ml-workspace.tool-panel section[data-pane]{margin:0!important;padding:0!important;border:0!important}.ml-workspace.tool-panel label.ml-check{display:flex!important;align-items:center;gap:8px!important}.ml-workspace.tool-panel .ml-check input{flex:0 0 17px}

/* Audio 21: one visible task at a time. */
.ml-workspace[data-lab-step=save],.ml-workspace[data-blind=true]{grid-template-columns:minmax(0,1fr)}
.ml-workspace[data-lab-step=save]>.ml-source,.ml-workspace[data-blind=true]>.ml-source{display:none}
.ml-workspace .ml-choices button{flex:1;width:auto;min-width:0;overflow-wrap:anywhere;font-size:1rem;text-align:left}
.ml-workspace .ml-scope{border:0;padding:0;margin:12px 0;display:flex;gap:8px 18px;flex-wrap:wrap}
.ml-workspace .ml-scope legend{font-size:.85rem;color:#bdc7cd;margin-bottom:5px}
.ml-workspace .ml-scope label{display:flex;gap:8px;align-items:center;cursor:pointer;min-height:36px;margin:0}
.ml-workspace .ml-scope input{accent-color:#dfb476;width:17px;height:17px;margin:0}
.ml-workspace .ml-summary{font-size:.93rem;padding:10px 12px;background:#222b30;border-left:3px solid #dcb36d;border-radius:3px}
.ml-workspace .ml-listening{font-size:.9rem;color:#efc78f;min-height:22px;margin:5px 0 10px}
.ml-workspace .ml-example-note{font-size:.88rem;line-height:1.5;border-left:3px solid #82b6b2;background:#1d2b2e;padding:10px 12px;margin:0 0 16px}
.ml-workspace #lab-examples button{display:block;width:100%;text-align:left;margin:8px 0}
.ml-workspace #lab-pair-summary p{font-size:.85rem;overflow-wrap:anywhere;padding:8px 10px;background:#222a30;border-radius:4px}
.ml-workspace #lab-pair-summary button{font-size:.85rem;width:100%}
.ml-workspace .ml-wave-times{display:flex;justify-content:space-between;font-size:.8rem;color:#c7d0d4;font-variant-numeric:tabular-nums}
.ml-workspace #lab-visual{margin:12px 0}
.ml-workspace[data-lab-step=listen] canvas{height:110px}
.ml-workspace #lab-visual .ml-note{font-size:.8rem;margin:4px 0}
.ml-workspace .ml-decision-buttons{display:flex;flex-wrap:wrap;gap:8px}
.ml-workspace .ml-decision-buttons button[aria-pressed=true]{border-color:#e5b877;background:#4b3b26;color:#ffe2b5}
.ml-workspace #lab-open-decision{border-top:1px solid #465057;padding-top:12px;margin-top:14px}
.ml-workspace h3{font-size:1rem;margin:4px 0 8px}
.ml-workspace .ml-result{padding:14px 16px;border:1px solid #8e7855;border-radius:6px;background:#202a2e;margin:12px 0 18px}
.ml-workspace .ml-result h3{color:#edc78e;font-size:1.1rem;overflow-wrap:anywhere}
.ml-workspace .ml-result dl{display:grid;grid-template-columns:minmax(110px,.6fr) minmax(0,1.5fr);gap:8px 16px;margin:12px 0 0}
.ml-workspace .ml-result dt{font-size:.85rem;color:#bdc9ce}
.ml-workspace .ml-result dd{margin:0;font-size:.9rem;overflow-wrap:anywhere}
.ml-workspace #lab-match-wrap{margin:12px 0}
.ml-workspace #lab-match-wrap p{font-size:.8rem;margin:2px 0 0 25px}
.ml-workspace #lab-status{font-size:.87rem}
.ml-workspace #lab-status:empty,.ml-workspace #lab-play-note:empty,.ml-workspace #lab-capacity:empty{display:none}
.ml-workspace #lab-settings label{grid-column:1/-1}
.ml-workspace #lab-settings[open]{display:block}
.ml-workspace #lab-settings input[type=range]{display:block}
@media(max-width:700px){.ml-workspace .ml-result dl{grid-template-columns:1fr;gap:3px}.ml-workspace .ml-result dd{margin-bottom:8px}.ml-workspace[data-lab-step=listen] .ml-source{display:none}.ml-workspace .ml-steps button{font-size:.8rem}.ml-workspace .ml-choices button{font-size:.88rem}.ml-workspace .ml-decision-buttons{display:grid;grid-template-columns:1fr 1fr}.ml-workspace #lab-decide-equal{grid-column:1/-1}.ml-workspace #lab-votes button{flex:1 1 auto}}

.ml-workspace #lab-settings{display:block}

#lab-panel.ml-workspace{padding:18px;gap:18px}#lab-panel.ml-workspace h2{font-size:1.1rem;line-height:1.3;margin:0 0 8px}#lab-panel.ml-workspace h3{font-size:1rem;line-height:1.3;margin:0 0 8px}#lab-panel.ml-workspace p{line-height:1.45;margin:7px 0}#lab-panel.ml-workspace label{margin:7px 0;font-size:.88rem}#lab-panel.ml-workspace details{padding:9px 10px;margin:10px 0}#lab-panel.ml-workspace summary{padding:0;min-height:22px;font-size:.86rem;line-height:1.5}#lab-panel.ml-workspace .ml-steps{padding-bottom:10px;margin-bottom:12px}#lab-panel.ml-workspace .ml-example-note{padding:9px 11px;margin:0 0 12px;font-size:.84rem}#lab-panel.ml-workspace .ml-choices{margin:10px 0 5px}#lab-panel.ml-workspace .ml-listening{margin:3px 0 8px;font-size:.85rem}#lab-panel.ml-workspace #lab-visual{margin:10px 0}#lab-panel.ml-workspace #lab-visual p{font-size:.78rem;margin:3px 0}#lab-panel.ml-workspace #lab-open-decision{margin-top:10px;padding-top:10px}#lab-panel.ml-workspace .ml-result{padding:14px}#lab-panel.ml-workspace .ml-result h3{margin:0 0 10px;color:#edc78e}#lab-panel.ml-workspace .ml-note{font-size:.84rem}#lab-panel.ml-workspace #lab-time{font-size:.85rem}#lab-panel.ml-workspace #lab-match-wrap .ml-note{margin:2px 0 0 25px;font-size:.78rem}#lab-panel.ml-workspace input[type=range]{min-height:24px;margin:3px 0}#lab-panel.ml-workspace #lab-to-save{margin-top:10px}#lab-panel.ml-workspace[data-lab-step=listen] #lab-wave{height:100px}#lab-panel.ml-workspace #lab-visual .ml-wave-times{font-size:.78rem}#lab-panel.ml-workspace #lab-play-note:empty{display:none}@media(max-width:700px){#lab-panel.ml-workspace{padding:12px;gap:12px}#lab-panel.ml-workspace .ml-steps button{font-size:.78rem}#lab-panel.ml-workspace h2{font-size:1.03rem}}

/* Keep the native input accessible without the browser's clipped filename. */
#lab-restore .ml-restore-pick{display:inline-flex;position:relative;align-items:center;justify-content:center;min-height:2.75rem;width:fit-content;max-width:100%;cursor:pointer;margin:.4rem 0}
#lab-restore .ml-restore-pick:focus-within{outline:2px solid currentColor;outline-offset:3px}
#lab-restore input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
#lab-restore .ml-restore-pick:has(input:disabled){opacity:.55;cursor:default}
#lab-restore .ml-restore-pick input:disabled{cursor:default}
#lab-restore .ml-note{margin-block:.5rem}

#lab-panel .ml-decision-next{padding:10px 12px;border:1px solid #465057;border-radius:8px;margin:12px 0}
#lab-panel .ml-heard{font-size:.87rem;color:#e8ddd0}
#lab-panel #lab-to-save{margin:3px 0 0}
#lab-panel .ml-decision-pick{margin-bottom:12px}
#lab-panel .ml-decision-back{margin-top:12px}
#lab-panel h2[id^="lab-heading-"]{scroll-margin-top:5rem}

.mr-entry,.mr-review .ml-actions{display:flex;gap:.75rem;align-items:center;flex-wrap:wrap}
.mr-entry{margin:1rem 0}
.mr-entry a{min-height:44px;display:inline-flex;align-items:center}
.mr-review,.mr-verify,.mr-stage{scroll-margin-top:1rem}
.mr-review .mr-stage{margin:1rem 0;padding:clamp(.85rem,2vw,1.3rem);border:1px solid #34454e;border-radius:12px}
.mr-review .mr-stage h3,.mr-verify h2{margin-top:0}
.mr-review .mr-requirements{margin:1rem 0;padding:.75rem;border:1px solid #34454e;border-radius:8px}
.mr-review summary{cursor:pointer;font-weight:600}
.mr-review textarea{margin:.35rem 0 .7rem;resize:vertical}
.mr-review input[type=file],.mr-verify input[type=file]{display:block;max-width:100%;margin:.4rem 0 .7rem}
.mr-review ol:empty,.mr-review ul:empty,.mr-review p:empty,.mr-verify p:empty{display:none}
.mr-review :is(.mr-hash,li),.mr-verify{overflow-wrap:anywhere}
.mr-verify{margin-top:1rem}

[data-mix-view="compare"] :is(#mr-panel,#mr-verification),
[data-mix-view="review"] :is(#lab-panel,#mr-verification,#lab-comparison-help),
[data-mix-view="verify"] :is(#lab-panel,#mr-panel,#lab-comparison-help){display:none!important}
.mr-entry{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.mr-entry a{justify-content:center;text-align:center;padding:.6rem .75rem;border:1px solid #34454e;border-radius:.5rem;text-decoration:none}
.mr-entry a[aria-current="true"]{border-color:var(--accent,#65c9c2);background:#1c363b;font-weight:700}
#lab-panel,#mr-draft-recovery{scroll-margin-top:1rem}
@media(max-width:600px){.mr-entry{grid-template-columns:1fr;gap:.4rem}}
