select{font:inherit;padding:10px;border:1px solid #618878;border-radius:8px;margin:10px;width:calc(100% - 20px)}main>a{color:#f5d457;font-size:13px}#start-test{width:100%;min-height:110px;font-size:30px}#camera-frame{position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;background:#000}video{width:100%;height:100%;object-fit:cover;object-position:center}#line{position:absolute;top:0;bottom:0;width:2px;background:#f5d457;pointer-events:none}#line span{position:absolute;top:10px;left:8px;font-size:11px;color:#f5d457;white-space:nowrap}input[type=range]{padding:0;min-height:38px;touch-action:pan-y}#photo-port{overflow-x:auto;position:relative;height:340px;background:#000;touch-action:pan-x pan-y pinch-zoom}#photo{position:sticky;left:0;top:0;height:340px;touch-action:pan-x pan-y pinch-zoom}pre{font-size:11px;white-space:pre-wrap;overflow-wrap:anywhere}.test-time{font-size:12px;color:#f5d457}.test-time strong{display:block;font-size:38px;font-variant-numeric:tabular-nums}#warning{color:#ffbc8b}#sync-status{font-weight:800;color:#95ecb1}.runner{display:flex;align-items:center;gap:8px;padding:12px 0;border-bottom:1px solid #38644f}.runner span{flex:1;min-width:0;overflow-wrap:anywhere}.runner button{flex:0 0 auto;font-size:12px;padding:8px}.proto-spacer{height:1px;pointer-events:none}#judging{padding:12px}#camera-status,#receive-state,#save-state{font-size:13px}#finish-panel .actions button{flex:1}#remote-result{color:#f5d457}[hidden]{display:none!important}

#diagnostic .metric strong{font-size:18px;font-variant-numeric:tabular-nums}#diagnostic-stage{font-weight:700;color:#f5d457}#diagnostic-reasons{color:#ffbc8b}#continue-measurement{display:block;width:100%;margin-top:14px;min-height:58px}#diagnostic #burst{width:100%}#measurement{padding:12px;background:#052f25}#diagnostic .metrics{grid-template-columns:repeat(2,minmax(0,1fr))}@media(min-width:650px){#diagnostic .metrics{grid-template-columns:repeat(4,minmax(0,1fr))}}

.method-cards{display:grid;gap:8px}.method-cards button{text-align:left;min-height:98px;padding:12px 14px;border:1px solid #bda649;background:#104335;color:#edf5ef;border-radius:10px;min-width:0;width:100%;line-height:1.25}.method-cards button:hover{background:#18523f;border-color:#f5d457}.method-cards button:focus-visible{outline:3px solid #f5d457;outline-offset:3px}.method-cards strong{display:block;font-size:18px;line-height:1.25}.method-cards small{color:#f5d457;font-size:10px;letter-spacing:.06em;margin-top:3px;line-height:1.3}.method-cards span{display:block;font-size:12px;color:#bdd1c6;font-weight:500;line-height:1.4;margin-top:6px}#method-banner{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-top:16px;font-size:14px}#method-banner button{background:#245a46;color:white;font-size:12px}.prep-check{display:flex;align-items:center;gap:10px;margin:20px 0}.prep-check input,#calibration-screen input[type=checkbox]{width:24px;height:24px;flex:0 0 24px;letter-spacing:0}#calibration-screen button{margin:8px 4px 8px 0}#calibration-screen .check-label{display:flex;align-items:center;gap:10px;font-size:14px}#measurement-status{white-space:pre-line;font-size:14px;color:#95ecb1;background:#073b2e;padding:14px;border-radius:10px}#audio-integration-note{color:#ffbc8b}#speaker-status{font-size:14px}#measurement-back,#diagnostic-back,#connection-back{background:#245a46;color:#fff;font-size:13px;margin:10px 0}

/* Compact preparation UI; scope to this page, leave capture and timing untouched. */
.two-device-header{position:sticky;top:0;z-index:20;gap:12px;padding: max(8px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right),calc((100vw - 800px)/2)) 8px max(12px,env(safe-area-inset-left),calc((100vw - 800px)/2))}
.two-device-header #leave{width:auto;flex:0 0 auto;min-height:44px;padding:10px 12px;margin:0;border:1px solid #618878;background:#104335;color:#f5d457;font-size:14px;line-height:1.2}
.two-device-header .header-brand{min-width:0;text-align:right;font-size:13px;font-weight:900;letter-spacing:.08em;color:#f5d457}.two-device-header .header-brand small{font-size:9px;letter-spacing:.06em;color:#bdd1c6}
main{padding:16px max(12px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}h1{font-size:24px;line-height:1.2;margin:0 0 8px}h1 small{font-size:10px;line-height:1.4;letter-spacing:.06em}
.intro{font-size:12px;line-height:1.4;margin:0 0 6px}.intro strong{font-size:10px;letter-spacing:.08em;color:#bdd1c6}.prototype-explanation{margin-top:6px;padding-top:4px}.prototype-explanation summary{font-size:12px;padding:3px 0}.prototype-explanation p{font-size:12px;color:#bdd1c6;margin:6px 0;line-height:1.5}
#method-select{padding:12px;margin:10px 0;border-radius:12px}#method-select h2{font-size:16px;line-height:1.3;margin:0 0 10px}#method-select h2 small{font-size:9px;margin-top:2px;letter-spacing:.06em;color:#bdd1c6}#method-select .method-hint{font-size:11px;line-height:1.4;margin:10px 0 0}.sync-test-link{display:inline-block;font-size:12px;color:#bdd1c6;margin:8px 0;text-underline-offset:3px}
@media(min-width:650px){main{padding-top:22px}.method-cards button{padding:14px 16px}.method-cards strong{font-size:20px}}

#next-race{width:100%;min-height:60px;margin-top:16px;font-size:18px}#next-race-status{padding:12px;background:#104335;color:#f5d457;border-radius:10px;font-size:14px;line-height:1.5}#next-race-retry{width:100%;margin-bottom:12px}
/* Prototype audio controls; keep camera/judging and single-device styles isolated. */
#start-panel .check-label{display:flex;align-items:center;gap:10px;font-size:14px;margin:12px 0}
#start-panel input[type=checkbox]{display:inline-block;width:24px;height:24px;flex:0 0 24px;margin:0;padding:0;letter-spacing:0;accent-color:#f5d457}
#start-panel input[type=number]{font-size:16px;letter-spacing:0;max-width:140px;padding:9px;margin:6px 0 14px}
#start-panel select{margin:8px 0;width:100%;font-size:16px}
#two-audio-ready{font-size:13px;color:#95ecb1}#start-state{font-size:16px;font-weight:700;color:#f5d457}
#start-test{font-size:clamp(20px,6vw,30px);overflow-wrap:normal}
#capture-settings{margin:12px 0;border-top:1px solid #38644f;padding-top:10px}#capture-settings h3{font-size:14px;margin:0 0 6px}#capture-settings select{margin:6px 0;width:100%}.capture-window{display:grid;grid-template-columns:1fr 1fr;gap:12px}.capture-window label{font-size:13px}.capture-window input{font-size:16px;letter-spacing:0;margin:5px 0 0;padding:8px;min-width:0}#two-capture-validation{font-size:13px;color:#ffbc8b}#two-capture-begin{width:100%;min-height:64px;font-size:20px;background:#f5d457;color:#092c23}#two-audio-settings{font-size:12px;line-height:1.6}
/* One stationary FINISH control dock: same slot for manual START and END. */
.photo-controls{position:fixed;z-index:30;left:50%;transform:translateX(-50%);bottom:0;width:min(100%,800px);padding:8px max(12px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));background:#073b2ef5;border-top:1px solid #618878;box-shadow:0 -4px 15px #0004}
.photo-controls p{margin:0 0 5px;font-size:12px;line-height:1.4;color:#edf5ef}.photo-controls button,#two-capture-begin{display:block;width:100%;min-height:64px;margin:0;padding:10px 12px;background:#f5d457;color:#092c23;font-size:21px;line-height:1.2;touch-action:manipulation}.photo-controls button small{font-size:10px;letter-spacing:.05em}
body.photo-controls-active main{padding-bottom:calc(140px + env(safe-area-inset-bottom))}body.photo-controls-active #camera-frame{scroll-margin-bottom:calc(140px + env(safe-area-inset-bottom))}

.two-result-meta{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;margin:12px 0}.two-result-meta label{font-size:13px;min-width:0}.two-result-meta input{font-size:16px;letter-spacing:0;padding:8px;min-width:0;margin:5px 0}

#quick-results{position:fixed;inset:0;z-index:120;background:#073b2e;overflow:auto;padding:max(16px,env(safe-area-inset-top)) 16px max(24px,env(safe-area-inset-bottom));overscroll-behavior:contain}#quick-results .quick-results-header{position:sticky;top:0;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#073b2e;padding-bottom:12px;border-bottom:1px solid #dddc58}#quick-results h2{margin:0;font-size:1.15rem}#quick-results-list section{border:1px solid #918e42;border-radius:10px;padding:12px;margin:12px 0}#quick-results-list h3{margin:0}#quick-results-list p{overflow-wrap:anywhere}#image-quality-details{white-space:pre-wrap;overflow-wrap:anywhere}
