:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#19323e;background:#f4f7f9;font-synthesis:none;font-weight:400;line-height:1.5;--ink:#19323e;--muted:#647782;--border:#dce5eb;--green:#007d69;--blue:#3275bf;--red:#c45161}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;min-height:46px;border:1px solid var(--border);background:#fff;border-radius:10px;padding:10px 18px;color:var(--ink);font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:background .15s}button:hover{background:#edf4f5}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #3987d6;outline-offset:3px}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(1.8rem,4vw,2.5rem);font-weight:650;letter-spacing:-.045em;margin-bottom:9px}h2{font-size:1.35rem;letter-spacing:-.025em;margin-bottom:8px}p{color:var(--muted)}header{height:100px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100vw - 1180px)/2));background:#fff;gap:20px}.brand{display:flex;align-items:center;gap:12px;font-size:1.1rem;font-weight:700;white-space:nowrap}.brand>svg{width:42px;height:42px;padding:9px;background:var(--ink);color:#96e6ce;border-radius:12px}.brand small{display:block;font-size:.65rem;letter-spacing:.13em;font-weight:600;color:var(--muted);margin-top:3px}.local{font-size:.8rem;display:flex;align-items:center;gap:7px;color:var(--muted)}main{max-width:1180px;margin:auto;padding:42px 24px 60px}.heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:26px}.eyebrow{display:block;color:var(--green);font-size:.72rem;font-weight:750;letter-spacing:.12em;margin-bottom:8px}.start-card{display:flex;align-items:center;gap:24px;background:#19323e;color:white;padding:28px 32px;border-radius:18px;margin-bottom:28px}.start-card p{color:#bdcfd7;margin:0}.start-card h2{color:white}.start-card .eyebrow{color:#96e6ce}.start-card>button{margin-left:auto;white-space:nowrap}.iconbox{display:grid;place-items:center;flex-shrink:0;width:60px;height:60px;border-radius:16px;background:#ffffff12;color:#96e6ce}.primary{background:#087e6a;color:#fff;border-color:transparent}.primary:hover{background:#006653}.start-card .primary{background:#9de7d1;color:#123e33}.panel{background:white;border:1px solid var(--border);border-radius:16px;padding:26px;margin-bottom:24px}.empty{text-align:center;padding:80px 24px}.empty>svg{color:#80a7a5;margin-bottom:20px}.empty p{max-width:470px;margin:0 auto 24px}.pill{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--border);border-radius:30px;padding:5px 11px;font-size:.75rem;color:var(--muted)}@media(max-width:650px){header{height:80px;padding:0 20px}.local{display:none}main{padding:28px 18px 40px}.heading{align-items:flex-start;flex-direction:column}.start-card{padding:22px;gap:16px;flex-wrap:wrap}.start-card>.iconbox{display:none}.start-card>button{width:100%;margin:0}.panel{padding:20px}.empty{padding:48px 22px}}
/* Shared controls and responsive working surfaces */
[hidden]{display:none!important}.error-toast{color:#963849;background:#fff1f1;border-color:#e5bdc4}
nav{display:flex;align-items:center;gap:22px}.brand-button{border:0;background:none;padding:0;text-align:left}.brand-button:hover{background:none}.brand-button:disabled{opacity:1}.text-button{border:0;background:transparent;padding:8px;color:var(--muted)}.text-button:hover{background:#e6eff1}.narrow{max-width:790px}.page-title{margin:25px 0}.panel h2>svg{vertical-align:middle;margin-right:6px}.panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:22px}.panel-heading p{font-size:.875rem;margin:5px 0 0}.panel-heading h2{margin:0}.panel-heading select{width:auto;min-width:105px}.small{font-size:.85rem;color:var(--muted);line-height:1.6}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:24px 0}label{font-size:.875rem;font-weight:600;display:flex;flex-direction:column;gap:7px}input,select,textarea{border:1px solid #cbd9e1;background:#fff;border-radius:8px;padding:12px 13px;color:var(--ink);min-width:0;width:100%;font-size:1rem}textarea{resize:vertical;min-height:100px;margin-bottom:14px}select{cursor:pointer}input[type=checkbox]{width:19px;height:19px;min-width:19px;accent-color:#007d69;margin:2px 0 0;padding:0}.check{flex-direction:row;align-items:flex-start;gap:12px;font-weight:400;line-height:1.6}.spaced{padding:15px 0;border-bottom:1px solid #edf1f4}.checklist{padding:20px;background:#f3f7f8;border-radius:10px;margin-top:20px}.checklist p{font-size:.875rem;margin:7px 0 16px}.button-row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.wide{width:100%}.step-number{font-size:.8rem;color:var(--green);margin-bottom:8px;display:block;font-weight:700}.calibration{text-align:center;padding:22px 0}.calibration>label{max-width:240px;margin:auto}.calibration .button-row{justify-content:center}.level-display{font-size:3.3rem;font-weight:650;letter-spacing:-.04em;margin:20px 0}.level-display span{font-size:1rem;font-weight:400;margin-left:8px;letter-spacing:0;color:var(--muted)}.notice{padding:18px 20px;border:1px solid #e7c991;background:#fff8e9;border-radius:10px;color:#705224;font-size:.9rem;margin:20px 0}.notice p{color:inherit;margin:8px 0 0}.notice strong{display:flex;gap:9px;align-items:center}.danger{background:#fff1f1;border-color:#e5bdc4;color:#963849}.danger-button{color:#a7374c;border-color:#e6c9cf;background:#fff7f8}.positive{color:var(--green)}.sr-only{position:absolute;height:1px;width:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.profile-summary{min-width:0;flex:1}.profile-summary select{font-size:1.3rem;padding:0 25px 4px 0;border:0;color:#fff;background:transparent;font-weight:650;max-width:430px}.profile-summary select option{color:var(--ink);background:#fff}.profile-summary p{font-size:.8rem}.profile-summary p span{margin:0 6px;color:#6e8c99}.test-actions{display:flex;flex-direction:column;align-items:stretch;gap:6px;min-width:215px}.dark-secondary{background:transparent;border:0;color:#c9dce4;font-size:.8rem;min-height:32px;padding:5px}.dark-secondary:hover{background:#2b4652}.profile-tools{display:flex;justify-content:space-between;align-items:center;font-size:.8rem;color:var(--muted);margin:-18px 4px 25px;gap:10px}.profile-tools>span{display:flex;align-items:center;gap:8px}.profile-tools button{font-size:.8rem}.segmented{display:flex;background:#e9eef2;border-radius:10px;padding:4px;flex-shrink:0}.segmented button{min-height:36px;font-size:.875rem;padding:7px 17px;border:0;background:transparent;border-radius:7px;color:var(--muted)}.segmented button.active{background:#fff;box-shadow:0 1px 5px #0d283512;color:var(--ink)}.segmented span{font-size:.7rem;background:#e7edf0;border-radius:4px;padding:1px 5px}.empty-scale{margin-top:22px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:35px 0 20px}.section-title .eyebrow{font-size:.68rem}.section-title h2{margin:0}.stats-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:16px}.stat{padding:24px;background:white;border:1px solid var(--border);border-radius:13px}.stat>span{font-size:.8rem;color:var(--muted)}.stat>strong{display:block;font-size:2.5rem;font-weight:600;letter-spacing:-.055em;margin-top:7px}.stat>strong small{font-weight:400;font-size:1rem;color:var(--muted);letter-spacing:0}.stat>strong.text-stat{font-size:1.6rem;line-height:1.9;letter-spacing:-.025em}.stat p{margin:5px 0 0;font-size:.75rem}.session-metrics{display:flex;flex-wrap:wrap;gap:12px 25px;font-size:.75rem;color:var(--muted);padding:20px 2px 30px}.session-metrics b{color:var(--ink);font-weight:500;padding-left:5px}.chart-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:24px}.chart-grid>.panel{min-width:0}.chart{width:100%;display:block;overflow:visible}.chart text{font-family:inherit;fill:#526571;font-size:15px}.chart-unit{font-size:.72rem;color:var(--muted);margin:0 0 2px}.legend{display:flex;gap:22px;justify-content:center;font-size:.75rem;color:var(--muted);margin:0 0 4px}.legend span{display:flex;gap:7px;align-items:center}.legend i{width:7px;height:7px;border-radius:50%;display:block}.chart-panel>.small{margin:14px 0 0}.chart-grid .panel-heading{flex-wrap:wrap}.chart-empty{font-size:.85rem;text-align:center;margin:12px 0 0}.table-scroll{max-width:100%;overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:.8rem;white-space:nowrap;text-align:left}th,td{padding:15px 12px;border-bottom:1px solid #e7edf1}th{font-weight:600}thead{background:#f5f8fa;color:var(--muted);font-size:.75rem}td{font-variant-numeric:tabular-nums}tbody th{color:var(--ink)}.left-text{color:var(--blue)}.right-text{color:var(--red)}.panel>.small:last-child{margin:16px 0 0}details{font-size:.85rem;color:var(--muted)}summary{cursor:pointer;padding:8px 0}.session-list{display:flex;flex-direction:column;gap:6px}.session-row{border:1px solid transparent;border-radius:9px;display:flex;justify-content:flex-start;align-items:center;text-align:left;width:100%;font-size:.875rem;padding:16px 12px;gap:14px}.session-row.selected{background:#edf6f3;border-color:#b7d7ca}.session-row strong{font-weight:550}.session-row small{display:block;font-size:.75rem;color:var(--muted);font-weight:400;margin-top:4px}.session-note{font-size:.8rem;color:var(--muted);font-weight:400;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.notes-content{white-space:pre-wrap;margin:0}.profile-row{padding:18px 0;border-bottom:1px solid var(--border)}.profile-row p{font-size:.875rem;margin:6px 0 0}.data-counts{display:flex;gap:30px;margin:25px 0;color:var(--muted);font-size:.85rem}.data-counts strong{display:block;font-size:1.8rem;font-weight:600;color:var(--ink)}footer{max-width:1132px;margin:auto;padding:26px 24px 40px;border-top:1px solid var(--border);font-size:.75rem;color:var(--muted)}footer>div{display:flex;align-items:flex-start;gap:10px}footer svg{flex-shrink:0;margin-top:2px}footer p{margin:0 0 8px;max-width:860px}footer a{color:inherit;text-underline-offset:3px}footer>span{display:block;margin-top:18px;font-size:.7rem;letter-spacing:.07em}.toast{max-width:1132px;margin:20px auto -16px;padding:12px 18px;border:1px solid #badbce;background:#e9f6f0;border-radius:9px;display:flex;align-items:center;gap:10px;font-size:.875rem;color:#265c4a}.toast button{margin-left:auto;padding:0;min-height:28px;min-width:28px;background:none;border:0;font-size:1.25rem}.test-page{max-width:900px;min-height:calc(100dvh - 100px);display:flex;flex-direction:column;padding-bottom:22px}.test-toolbar{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:25px}.test-toolbar button{font-size:.85rem}.progress-label{display:flex;justify-content:space-between;font-size:.8rem;color:var(--muted);gap:10px;margin-bottom:10px}progress{height:6px;width:100%;border:0;border-radius:5px;overflow:hidden;appearance:none}progress::-webkit-progress-bar{background:#dce8e8}progress::-webkit-progress-value{background:var(--green);border-radius:5px}.listening{padding:45px 0 34px;text-align:center;flex:1;display:flex;align-items:center;justify-content:center;flex-direction:column}.listen-symbol{width:96px;height:96px;border:1px solid #cfe0e2;border-radius:50%;background:#e9f1f2;display:grid;place-items:center;margin-bottom:26px;color:#38616d}.listening h1{font-size:1.9rem;letter-spacing:-.03em;max-width:500px}.listening p{max-width:470px;font-size:.9rem}.response-buttons{display:grid;grid-template-columns:1fr 1fr;gap:18px}.response-buttons button{min-height:180px;flex-direction:column;font-size:1.4rem;gap:7px;border-width:2px;border-radius:17px;touch-action:manipulation;user-select:none;-webkit-user-select:none}.response-buttons button>span{font-size:2rem;font-weight:650}.response-buttons button.left-response{background:#edf4fc;border-color:#c1d6ed;color:#245d9e}.response-buttons button.right-response{background:#fff0f1;border-color:#ebc5ce;color:#a44254}.response-buttons button.pressed{filter:brightness(.86)}kbd{font-size:.75rem;border:1px solid currentColor;border-radius:5px;padding:2px 7px;opacity:.65;font-family:inherit;font-weight:400}.response-buttons button kbd{margin-top:10px}.response-buttons button:disabled{opacity:.4}.test-footnote{text-align:center;font-size:.75rem;margin:18px 0 0}.channel-check{text-align:center;padding:34px}.channel-check>svg{color:#628e94;margin:10px 0 20px}.channel-check p{max-width:520px;margin-left:auto;margin-right:auto}.compact{max-width:440px;margin:26px auto 15px}.compact button{min-height:100px;font-size:1.05rem;border-radius:11px;border-width:1px}.success-icon{width:65px;height:65px;border-radius:50%;display:grid;place-items:center;margin:0 auto 20px;background:#e8f4ef;color:var(--green)}.debug-container{max-width:1132px;margin:auto;padding:0 24px}.debug{background:#faf3de;border:1px solid #e5cf9c;border-radius:8px;padding:15px;margin-top:25px}.debug pre{overflow:auto;font-size:.75rem}.debug-panel table input{max-width:150px}.debug-panel>label{margin:20px 0}
@media(max-width:900px){.chart-grid{grid-template-columns:1fr}.stats-grid{gap:10px}.stat{padding:20px 16px}.start-card{padding:25px;gap:18px}.start-card .iconbox{display:none}.heading{gap:14px}.heading p{font-size:.9rem}.test-actions{min-width:185px}.local{display:none}}
@media(max-width:650px){header nav{gap:0}.brand{font-size:1rem;gap:9px}.brand small{font-size:.57rem}.brand>svg{height:37px;width:37px}.brand-button{min-height:38px}header .text-button{font-size:.85rem;padding:8px}.heading{margin-bottom:22px}.heading .segmented{width:100%}.segmented button{flex:1}.profile-summary{width:100%;flex:auto}.profile-summary select{font-size:1.15rem}.test-actions{width:100%}.test-actions .primary{min-height:49px}.start-card{margin-bottom:26px}.profile-tools{align-items:flex-start;flex-wrap:wrap;margin-bottom:18px}.profile-tools>span{font-size:.75rem;padding-top:4px}.profile-tools button{padding:3px 0;min-height:30px}.stats-grid{grid-template-columns:1fr 1fr}.stat:last-child{grid-column:span 2;display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:14px 18px}.stat:last-child>span{flex:1}.stat:last-child strong{margin:0;font-size:1.25rem;line-height:1.4}.stat:last-child p{width:100%;margin:0}.stat>span{font-size:.75rem}.stat>strong{font-size:2.2rem}.stat p{font-size:.7rem}.session-metrics{padding-bottom:24px;font-size:.7rem;gap:10px 17px}.panel-heading{flex-wrap:wrap;gap:14px}.panel-heading h2{font-size:1.15rem}.panel-heading button{font-size:.8rem}.chart-grid{gap:0}.chart-unit{font-size:.7rem}.legend{font-size:.7rem}.section-title{margin-top:28px}.section-title h2{font-size:1.15rem}.section-title button{font-size:.8rem;padding:8px 12px}.section-title .eyebrow{font-size:.62rem}.form-grid{grid-template-columns:1fr}.calibration .button-row{gap:6px}.calibration .button-row button{font-size:.8rem;padding:9px 12px}.calibration .button-row svg{width:15px}.panel .check{font-size:.875rem}.session-row{gap:9px;flex-wrap:wrap}.session-row .session-note{display:none}.session-row .pill{font-size:.65rem;margin-left:auto}.toast{margin:16px 18px -12px;font-size:.8rem}.test-page{min-height:calc(100dvh - 80px);padding:22px 18px 18px}.test-toolbar{margin-bottom:20px;align-items:flex-start}.test-toolbar>.pill{font-size:.65rem;padding:7px 9px}.test-toolbar .button-row{gap:6px}.test-toolbar button{font-size:.75rem;padding:8px 10px;min-height:36px}.test-toolbar svg{width:13px}.listening{padding:32px 0 24px}.listen-symbol{width:72px;height:72px;margin-bottom:20px}.listen-symbol svg{width:30px}.listening h1{font-size:1.5rem}.listening p{font-size:.85rem}.response-buttons{gap:12px}.response-buttons button{min-height:170px;font-size:1.2rem}.test-footnote{font-size:.65rem}.progress-label{font-size:.7rem}.compact button{min-height:100px}.channel-check{padding:28px 20px}.channel-check p{font-size:.9rem}.debug-container{padding:0 18px}.data-counts{gap:18px;justify-content:space-between}.data-counts span{font-size:.7rem}.data-counts strong{font-size:1.6rem}footer{padding:24px 20px 32px;font-size:.7rem}.button-row>.primary{flex-grow:1}.test-toolbar .button-row>.primary{flex-grow:0}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
.response-tally{display:flex;align-items:center;justify-content:center;gap:12px;margin:18px 0 8px;color:var(--ink)}.response-tally strong{font-size:1.65rem;line-height:1.2;font-variant-numeric:tabular-nums}.response-tally span{font-size:.9rem}.progress-explanation{text-align:center;font-size:.8rem;margin:0 auto;max-width:600px;color:var(--muted)}.response-feedback{min-height:3em;text-align:center;color:var(--green);font-size:.9rem;margin:0 0 10px;display:grid;place-items:center}.test-page .listening{padding:28px 0 22px}@media(max-width:650px){.response-tally{margin-top:14px}.progress-explanation{font-size:.75rem}.test-page .listening{padding:22px 0 18px}.response-feedback{font-size:.8rem}}
@media(max-width:650px) and (max-height:900px){.test-page .listening{padding:14px 0 10px}.test-page .listen-symbol{width:48px;height:48px;margin-bottom:12px}.test-page .listen-symbol svg{width:25px}.test-page .listening h1{font-size:1.35rem}.test-page .listening p{margin-bottom:8px}.test-page .response-buttons button{min-height:132px}.test-page .progress-explanation{max-width:360px}.test-page .response-feedback{min-height:2.7em;margin-bottom:8px}}

.test-countdown{text-align:center;color:var(--muted);font-size:.875rem}.test-countdown strong{font-variant-numeric:tabular-nums;color:var(--ink);font-size:1.3rem}.raw-results summary{cursor:pointer;font-weight:700}.raw-results .table-scroll{max-height:420px;overflow:auto}.raw-results thead{position:sticky;top:0;background:#fff}

.chart-grid .chart{max-height:460px}

.ear-charts{grid-template-columns:repeat(2,minmax(0,1fr))}.ear-charts h2{font-size:1.5rem}.ear-charts .panel:first-child h2{color:var(--blue)}.ear-charts .panel:last-child h2{color:var(--red)}
@media(max-width:900px){.ear-charts{grid-template-columns:minmax(0,1fr)}}

/* Theme applies without rerendering forms or interrupting an active measurement. */
.theme-toggle[aria-pressed=true]{background:#294758;color:#e8f2f7}
:root[data-theme=dark]{color-scheme:dark;background:#10191f;color:#e0eaf0;--ink:#e0eaf0;--muted:#a7bac6;--border:#354750;--green:#70d8ba;--blue:#7db9ff;--red:#ff95a7}
[data-theme=dark] header,[data-theme=dark] .panel,[data-theme=dark] .stat,[data-theme=dark] button{background:#1a2831;color:var(--ink)}
[data-theme=dark] button:hover{background:#2b414f}
[data-theme=dark] .brand-button,[data-theme=dark] .text-button{background:transparent}
[data-theme=dark] input,[data-theme=dark] select,[data-theme=dark] textarea{background:#13212a;color:var(--ink);border-color:var(--border)}
[data-theme=dark] .profile-summary select{background:transparent;color:#eef5fa}
[data-theme=dark] .profile-summary select option{background:#1a2831;color:#eef5fa}
[data-theme=dark] .start-card{background:#203b46}
[data-theme=dark] .primary{background:#196958;color:#effffb}
[data-theme=dark] .start-card .primary{background:#9de7d1;color:#123e33}
[data-theme=dark] .checklist,[data-theme=dark] thead,[data-theme=dark] .raw-results thead,[data-theme=dark] .segmented{background:#223540;color:var(--ink)}
[data-theme=dark] th,[data-theme=dark] td,[data-theme=dark] .spaced{border-color:var(--border)}
[data-theme=dark] .session-row.selected,[data-theme=dark] .toast{background:#193d35;color:#b5eedc;border-color:#397a68}
[data-theme=dark] .notice{background:#382f20;color:#f3d9a1;border-color:#71603d}
[data-theme=dark] .danger,[data-theme=dark] .danger-button,[data-theme=dark] .error-toast{background:#3b252c;color:#ffb2bf;border-color:#784450}
[data-theme=dark] .chart text{fill:#b8cad6}
[data-theme=dark] .chart line[stroke="#e4ebef"]{stroke:#354750}
[data-theme=dark] .chart [stroke="#3275bf"]{stroke:#7db9ff}
[data-theme=dark] .chart [stroke="#c45161"]{stroke:#ff95a7}
[data-theme=dark] .chart circle[fill="#3275bf"]{fill:#7db9ff}
[data-theme=dark] .chart circle[fill="#c45161"]{fill:#ff95a7}
[data-theme=dark] .chart circle[fill="white"],[data-theme=dark] .chart circle[fill="#fff"]{fill:#1a2831}
[data-theme=dark] .legend i{filter:brightness(1.5)}
[data-theme=dark] .listen-symbol,[data-theme=dark] .success-icon{background:#203d43;color:#a4e4d7;border-color:#486a73}
[data-theme=dark] .response-buttons button.left-response{background:#19334e;border-color:#598bc4;color:#acd4ff}
[data-theme=dark] .response-buttons button.right-response{background:#422631;border-color:#ba6d80;color:#ffc0cd}
[data-theme=dark] .debug{background:#352e21;border-color:#776444;color:#f2dba7}
@media(max-width:650px){header{padding:0 12px;gap:8px}header .theme-toggle{font-size:.75rem;padding:8px}.brand small{letter-spacing:.05em}}
:root{--better1:#cde2fb;--better2:#86b6ef;--worse1:#f6cfc9;--worse2:#ec9a8f;--same:#eef1f2}
[data-theme=dark]{--better1:#1c3f66;--better2:#24589a;--worse1:#5a2520;--worse2:#8a352c;--same:#24323a}
.ear-grid{width:auto;border-collapse:separate;border-spacing:3px;font-variant-numeric:tabular-nums}.ear-grid thead{background:none}.ear-grid th,.ear-grid td{border:0;padding:6px 8px;text-align:center}.ear-grid thead th{font-size:.7rem;line-height:1.3;font-weight:600;color:var(--muted)}.ear-grid tbody th{text-align:right;color:var(--muted);font-weight:600}.ear-grid td{min-width:58px;border-radius:5px;background:var(--same);color:var(--ink);font-size:.85rem}.ear-grid td.empty{background:transparent;color:var(--muted)}.ear-grid td.b1{background:var(--better1)}.ear-grid td.b2{background:var(--better2)}.ear-grid td.w1{background:var(--worse1)}.ear-grid td.w2,.ear-grid td.cross{background:var(--worse2)}.ear-grid td.cross{font-weight:700}.ear-grid td.nr{background:transparent;box-shadow:inset 0 0 0 1.5px var(--worse2)}.ear-grid td.ref{box-shadow:inset 0 0 0 1.5px var(--muted)}.ear-grid td.unc{background:transparent;box-shadow:inset 0 0 0 1px var(--border);color:var(--muted)}.ear-grid tr.flagged th{color:var(--red)}.ear-grid .dose-row td{font-size:.75rem}
.grid-legend{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:.75rem;color:var(--muted);margin-top:12px}.grid-legend span{display:inline-flex;align-items:center;gap:6px}.grid-legend i{display:inline-block;width:16px;height:11px;border-radius:2px;background:var(--same)}.grid-legend i.b1{background:var(--better1)}.grid-legend i.b2{background:var(--better2)}.grid-legend i.w1{background:var(--worse1)}.grid-legend i.w2{background:var(--worse2)}.grid-legend b{color:var(--ink)}
.max-details{margin-top:16px}.stats-grid.single{grid-template-columns:minmax(0,360px)}
.point-map{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin:6px 0 4px}.point-map .pt{display:inline-flex;align-items:center;gap:3px;border:1px solid var(--border);border-radius:8px;padding:3px 6px;font-size:.75rem;color:var(--muted)}.point-map b{font-weight:600;margin-right:3px;color:var(--ink)}.point-map i{font-style:normal;width:18px;height:18px;display:grid;place-items:center;border-radius:50%;font-size:.65rem;border:1px solid var(--border)}.point-map i.ok{background:var(--green);border-color:var(--green);color:#fff}
.trial-indicator{height:4px;border-radius:3px;background:var(--border);overflow:hidden;margin:12px auto 0;max-width:420px}.trial-indicator span{display:block;height:100%;width:0;background:var(--green)}.trial-indicator.active span{animation:trial-window 2.25s linear forwards}@keyframes trial-window{to{width:100%}}@media (prefers-reduced-motion:reduce){.trial-indicator.active span{animation:none;width:100%;opacity:.6}}
.live-counts{font-size:.8rem;margin:0 0 12px}
@media(max-width:650px){.stats-grid.single{grid-template-columns:1fr}.stats-grid.single .stat:last-child{grid-column:auto}.ear-grid td{min-width:48px;padding:5px 4px;font-size:.78rem}}
