:root{color-scheme:light;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#172033;background:#f5f7fb;font-size:16px}*{box-sizing:border-box}body{margin:0}.masthead{display:flex;align-items:center;justify-content:flex-end;max-width:1180px;margin:0 auto;padding:20px 20px 10px;font-weight:650}.badge{padding:5px 12px;border:1px solid #c9d7ee;border-radius:20px;background:#eaf0fc;color:#234879;font-size:.875rem}.page{width:min(1180px,calc(100% - 2rem));margin:1rem auto 2rem}.panel{border:1px solid #dce2ee;border-radius:10px;padding:2rem;background:white;box-shadow:0 12px 28px rgb(15 23 42 / 5%)}.narrow{max-width:760px;margin:auto}.hidden{display:none!important}h1{font-size:2rem;line-height:1.2;margin:.4rem 0 1rem;letter-spacing:-.035em}h2{font-size:1.1rem}p{line-height:1.65}.eyebrow{color:#376196;font-weight:700;font-size:.875rem;letter-spacing:.06em;text-transform:uppercase;margin:0}.copy{line-height:1.7}.muted,.comment-help,.shortcuts,.footer{color:#5c697c}.footer{text-align:center;font-size:.875rem;margin-top:20px}.error{color:#b42318;min-height:1.25em;margin:.5rem 0 0}.notice{padding:1rem;background:#fff2d0}button,input,textarea,select{font:inherit}button{border:1px solid transparent;border-radius:7px;background:#2357c6;color:white;padding:.8rem 1.1rem;font-weight:650;cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}.secondary{border-color:#b9c8e1;background:white;color:#234879}input[type=text],input:not([type]),textarea{width:100%;border:1px solid #bac6d8;border-radius:7px;padding:.8rem;background:white}textarea{resize:vertical;min-height:80px}fieldset{border:0;padding:0;margin:0}legend,label{font-weight:650}#token-form,#participant-form,#trial-form{display:grid;gap:1rem}#token-form{margin-top:1.5rem}#token-help{margin:0;font-size:.875rem}.options{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.75rem}.options label{display:flex;gap:.5rem;align-items:center;border:1px solid #c7cfdd;border-radius:7px;padding:.6rem .8rem;font-weight:500;cursor:pointer}.options label:has(input:checked){border-color:#2357c6;background:#edf3ff}.check{display:flex;gap:.7rem;align-items:flex-start;font-weight:500;line-height:1.5}.check input{margin-top:.35rem}.instructions{background:#f3f6fc;border-radius:8px;padding:.5rem 1rem}.progress-row{display:flex;gap:1rem;justify-content:space-between;font-weight:650;margin-bottom:.6rem}progress{width:100%;height:7px;accent-color:#2357c6}.trial-layout{display:grid;grid-template-columns:1fr 1fr;gap:3rem;margin-top:2rem}.listen-column audio{width:100%;margin:1rem 0}.playback-status{color:#295b93;font-weight:650;font-size:.875rem}.rating-options{display:grid;gap:.55rem;margin:.8rem 0}.rating-option{display:grid;grid-template-columns:20px 2rem 1fr;align-items:center;gap:.65rem;border:1px solid #c7cfdd;padding:.85rem 1rem;border-radius:8px;cursor:pointer}.rating-option:has(input:checked){background:#edf3ff;border-color:#2357c6}.rating-value{font-weight:750;font-size:1.25rem}.rating-label{font-weight:500}.actions{display:flex;justify-content:space-between;gap:1rem;margin-top:.5rem}.comment-help{font-size:.875rem;line-height:1.5;margin:-.4rem 0 0}summary{cursor:pointer;font-weight:650}kbd{font: .875rem ui-monospace,monospace;padding:2px 5px;border:1px solid #cad3df;border-radius:4px;background:#f5f7fb}.shortcuts{font-size:.875rem;margin-top:2rem}.completion-code{font-family:ui-monospace,monospace;border:1px solid #b8cae7;background:#f0f5ff;padding:1rem;border-radius:8px;font-size:1.2rem;font-weight:700;overflow-wrap:anywhere}.summary{display:grid;grid-template-columns:1fr auto;gap:.85rem;border-block:1px solid #dce2ee;padding:1rem 0}.summary dt{color:#536177}.summary dd{margin:0;font-weight:650;text-align:right}button:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #6098f1;outline-offset:3px}@media(max-width:800px){.trial-layout{grid-template-columns:1fr;gap:1.5rem;margin-top:1.5rem}.panel{padding:1.25rem}.masthead{padding-inline:16px}.actions{flex-wrap:wrap}.progress-row{flex-wrap:wrap}h1{font-size:1.7rem}.summary{grid-template-columns:1fr}.summary dd{text-align:left}} 

.rating-option:has(input:disabled){opacity:.5;cursor:not-allowed}

/* Centered evaluation page: audio, instruction card, score row, comment, navigation. */
#trial-screen{max-width:900px;margin-inline:auto;padding:2rem 2.5rem}
#trial-screen .evaluation-content{display:grid;gap:1.5rem;margin-top:1.75rem}
#trial-screen audio{display:block;width:100%;margin:0}
.rating-instructions{border:1px solid #d7e2f2;border-radius:10px;background:#f6f9fe;overflow:hidden}
.rating-instructions summary{display:flex;align-items:center;gap:.75rem;padding:1rem 1.2rem;list-style:none;color:#294e83;font-size:.9375rem}
.rating-instructions summary::-webkit-details-marker{display:none}
.instruction-icon{display:grid;place-items:center;width:1.35rem;height:1.35rem;border:1px solid #9cb5d8;border-radius:50%;font-size:.875rem;font-style:normal;font-weight:700}
.instruction-toggle{position:relative;margin-left:auto;width:1rem;height:1rem}
.instruction-toggle::before,.instruction-toggle::after{content:"";position:absolute;left:0;top:7px;width:14px;height:2px;background:#57749e;border-radius:2px}
.instruction-toggle::after{transform:rotate(90deg);transition:transform .15s}
.rating-instructions[open] .instruction-toggle::after{transform:rotate(0deg)}
.rating-instructions[open] summary{border-bottom:1px solid #d7e2f2}
.instruction-body{padding:.35rem 1.2rem .75rem;color:#3d4f68}
.instruction-body p{margin:.8rem 0;line-height:1.65}
.instruction-body .shortcuts{margin-top:1.25rem;font-size:.875rem}
#trial-screen #trial-form{gap:1.75rem}
#trial-screen legend{font-size:1rem;margin-bottom:.9rem}
.score-scroll{overflow-x:auto;padding:4px;margin:-4px;scrollbar-width:thin}
#trial-screen .rating-options{display:grid;grid-template-columns:repeat(9,minmax(44px,1fr));gap:.6rem;margin:0;min-width:460px}
#trial-screen .rating-option{display:grid;position:relative;grid-template-columns:1fr;place-items:center;min-height:64px;padding:.75rem .2rem;gap:0;border:1px solid #becce0;border-radius:9px;background:#fff;transition:border-color .15s,background .15s,box-shadow .15s}
#trial-screen .rating-option input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}
#trial-screen .rating-value{font-size:1.2rem;font-weight:650;font-variant-numeric:tabular-nums}
#trial-screen .rating-option:has(input:checked){border-color:#2357c6;background:#2357c6;color:#fff;box-shadow:0 2px 5px #2357c61a}
#trial-screen .rating-option:has(input:focus-visible){outline:3px solid #6098f1;outline-offset:2px}
#trial-screen .rating-option:not(:has(input:disabled)):hover{border-color:#2357c6;box-shadow:0 0 0 1px #2357c6}
#trial-screen .rating-option:has(input:disabled){opacity:.45;background:#f5f7fb;cursor:not-allowed}
.scale-anchors{display:flex;justify-content:space-between;margin-top:.7rem;color:#5c697c;font-size:.875rem}
.comment-section{display:grid;gap:.6rem}
#trial-screen .comment-help{margin:0;font-size:.875rem}
#trial-screen .actions{padding-top:1.25rem;margin:0;border-top:1px solid #e2e8f1}
#trial-screen #save-status:empty,#trial-screen #trial-error:empty{display:none}
#trial-count:focus{outline:none}
@media(max-width:640px){#trial-screen{padding:1.25rem}#trial-screen .evaluation-content{margin-top:1.25rem;gap:1.25rem}#trial-screen .rating-options{gap:.4rem;min-width:440px}#trial-screen .rating-option{min-height:58px}.rating-instructions summary{padding:.9rem}.instruction-body{padding-inline:.9rem}}
@media(prefers-reduced-motion:reduce){.rating-option,.instruction-toggle::after{transition:none!important}}

#trial-screen{max-width:1180px}
#trial-screen .progress-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;border-bottom:1px solid #e2e8f1;padding-bottom:1rem}
.progress-count{display:flex;gap:.35rem 1rem;flex-wrap:wrap;align-items:center;font-size:.9375rem}
.shortcut-bar{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:.4rem .8rem;font-size:.875rem;color:#5c697c;font-weight:500}
.shortcut-bar strong{color:#172033}.shortcut-bar span{white-space:nowrap}
#trial-screen .evaluation-content{max-width:820px;margin-inline:auto}
.volume-check{border:1px solid #d7e2f2;border-radius:10px;padding:1rem 1.2rem;background:#f6f9fe}
.volume-check h2{margin-top:0}.volume-check p{line-height:1.6}.volume-check audio{width:100%;margin:.3rem 0 1rem}.volume-check .check{margin-top:.75rem}.volume-check #volume-status{font-size:.875rem;margin-bottom:0}
#autoplay-fallback,#volume-play-fallback{justify-self:start;margin-top:.5rem}
@media(max-width:800px){#trial-screen .progress-row{align-items:flex-start;flex-direction:column}.shortcut-bar{justify-content:flex-start}}

.proceed-consent{font-size:.875rem;line-height:1.6;color:#5c697c;margin:.25rem 0}

#token-label{font-size:1.35rem}
.participant-information{display:grid;gap:1.3rem;background:#eef4fc;border:1px solid #c5d6ee;border-radius:10px;padding:1.3rem}
.participant-information h2{margin:0;font-size:1.2rem;color:#254c82}
.accent-field{display:grid;gap:.65rem}
.readiness-status{display:grid;grid-template-columns:1fr 1fr;gap:.85rem}
.status-block{display:grid;gap:.5rem;padding:1rem;border:1px solid #d7bc83;border-radius:8px;background:#fff8e9;color:#73501c;line-height:1.5}
.status-block strong{font-size:1rem}.status-block span{font-size:.9375rem}
.status-block[data-complete="true"]{border-color:#a1cbb1;background:#eff9f2;color:#205d38}
.proceed-consent{font-size:1.2rem;font-weight:750;color:#b42318;line-height:1.65;margin:.5rem 0}
#trial-screen .evaluation-title{font-size:1.65rem;font-weight:700;line-height:1.35;letter-spacing:-.025em;margin:0}
#trial-screen .comment-help{font-size:1.0625rem;line-height:1.65;color:#334155}
@media(max-width:640px){.readiness-status{grid-template-columns:1fr}.participant-information{padding:1rem}#trial-screen .evaluation-title{font-size:1.4rem}}

#participant-screen>.instructions{margin-bottom:1.5rem;padding:1rem 1.25rem;line-height:1.7}
#participant-screen>.instructions p{margin:.5rem 0}
#participant-screen>.instructions ul{margin:.6rem 0 1rem;padding-left:1.4rem}
#participant-screen>.instructions li+li{margin-top:.5rem}
.proceed-consent{font-size:1.0625rem}
.control-shortcut{font-size:.875rem;line-height:1.5;font-weight:500;color:#5c697c;white-space:nowrap}
.playback-section{display:grid;gap:.6rem}.playback-section>.control-shortcut{justify-self:end}
.score-shortcut{text-align:right;margin:-.2rem 0 .8rem}
.navigation-control{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}.next-control{justify-content:flex-end}
#trial-screen #comment{font-size:1.0625rem;line-height:1.6;min-height:112px}
#trial-screen #comment::placeholder{color:#64748b;opacity:1}
@media(max-width:640px){.navigation-control{flex-direction:column;align-items:flex-start;gap:.5rem}.next-control{align-items:flex-end;flex-direction:column-reverse}.control-shortcut{font-size:.875rem}}
.playback-section{display:flex;align-items:center;gap:1rem}
.playback-section audio{flex:1;min-width:0;order:0}
.playback-section>.control-shortcut{order:1;flex:none}
@media(max-width:640px){.playback-section{flex-wrap:wrap}.playback-section audio{flex-basis:100%}.playback-section>.control-shortcut{margin-left:auto}}

/* One card language for instructions, participant fields, volume check and readiness. */
#participant-screen .instructions,
#participant-screen .participant-information,
#participant-screen .volume-check,
#participant-screen .status-block{font-family:inherit;font-size:1rem;line-height:1.65;color:#273a52;background:#f2f6fc;border:1px solid #d3dfef;border-radius:10px;padding:1.25rem}
#participant-screen .participant-information h2,
#participant-screen .volume-check h2{font-size:1.125rem;font-weight:700;line-height:1.4;color:#273a52;margin:0 0 .75rem}
#participant-screen .participant-information h2{margin:0}
#participant-screen .status-block strong{font-size:1rem;color:#273a52;font-weight:650}
#participant-screen .status-result{display:flex;align-items:center;gap:.6rem;min-height:1.5rem;color:#61728a}
#participant-screen .status-result span[role="status"]{font-size:1rem;font-weight:600;line-height:1.5}
.status-icon{display:inline-flex;flex:none;width:1.4rem;height:1.4rem}
.status-icon svg{width:100%;height:100%}
.status-complete-icon{display:none}
.status-block[data-complete="true"] .status-pending-icon{display:none}
.status-block[data-complete="true"] .status-complete-icon{display:block}
#participant-screen .status-block[data-complete="true"] .status-result{color:#247347}
@media(max-width:640px){#participant-screen .instructions,#participant-screen .participant-information,#participant-screen .volume-check,#participant-screen .status-block{padding:1rem}}

#participant-screen .status-block[data-complete="false"]{background:#f1f3f5;border-color:#d1d5db;color:#475569}
#participant-screen .status-block[data-complete="false"] strong,#participant-screen .status-block[data-complete="false"] .status-result{color:#475569}
#participant-screen .status-block[data-complete="true"]{background:#edf8f0;border-color:#a1cbb1;color:#205d38}
#participant-screen .status-block[data-complete="true"] strong,#participant-screen .status-block[data-complete="true"] .status-result{color:#205d38}
#participant-screen .proceed-consent{font-size:.9375rem;font-weight:700;line-height:1.65}
.consent-document-note a{color:#2357c6;text-decoration:underline;text-underline-offset:3px;font-weight:650}
.consent-document-note a:focus-visible{outline:3px solid #6098f1;outline-offset:3px}
