:root{color-scheme:dark;font-family:system-ui,sans-serif;background:#000;color:#fff}
*{box-sizing:border-box}html,body{width:100%;height:100%;margin:0;overflow:hidden;overscroll-behavior:none}
[hidden],.transient-message[hidden],.save-panel[hidden]{display:none!important}
.recorder-stage{position:fixed;inset:0;width:100vw;height:100vh;height:100dvh;overflow:hidden;background:#000;touch-action:none}
#cameraPreview{display:block;width:100%;height:100%;object-fit:cover;background:#000}
#compositionCanvas{position:fixed;top:-2px;left:-2px;width:1px;height:1px;opacity:0;pointer-events:none}
#zoomControl{position:absolute;z-index:4;left:14px;bottom:18px;left:max(14px,env(safe-area-inset-left));bottom:max(18px,env(safe-area-inset-bottom))}
.identity-overlay.recording-failure{top:50%;left:50%;max-width:min(88vw,360px);padding:16px 20px;border:2px solid #fff;border-radius:12px;background:rgb(154 19 19 / .96);box-shadow:0 8px 28px rgb(0 0 0 / .5);font-size:1.12rem;line-height:1.35;text-align:center;white-space:pre-line;transform:translate(-50%,-50%);z-index:5}.record-button.retry-attention{animation:retry-pulse .75s ease-in-out 6}@keyframes retry-pulse{50%{transform:scale(1.08);box-shadow:0 0 0 8px rgb(191 36 36 / .35)}}
.camera-controls,.recording-controls,.brand-mark,.identity-overlay,.transient-message,.save-panel{position:absolute;z-index:2}.camera-controls{z-index:4;right:14px;bottom:18px;right:max(14px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));display:flex;align-items:center;gap:9px}.camera-icon{width:44px;height:44px;border:1px solid #d4e7db;border-radius:50%;background:rgb(8 14 15 / .78);color:#fff;font-size:1.6rem}.zoom-control{display:flex;min-width:0;align-items:center;gap:6px;padding:7px 9px;border-radius:999px;background:rgb(8 14 15 / .78);font-size:.68rem;font-weight:800}.zoom-control input{width:29vw;max-width:132px;accent-color:#b6f04d}.zoom-control span{min-width:2.6em;font-variant-numeric:tabular-nums;color:#d9e7e2}.record-button,.stop-button{min-height:52px;padding:0 21px;border:2px solid #fff;border-radius:999px;background:#bf2424;color:#fff;font:800 1rem system-ui;letter-spacing:.04em}.recording-controls{top:14px;right:14px;left:14px;top:max(14px,env(safe-area-inset-top));right:max(14px,env(safe-area-inset-right));left:max(14px,env(safe-area-inset-left));display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.recording-meta{display:flex;min-width:0;flex-wrap:wrap;gap:4px 10px;align-items:center;padding:7px 9px;border-radius:7px;background:rgb(8 14 15 / .72);font-size:.72rem;font-weight:750}.recording-meta strong{color:#ff5d5d;letter-spacing:.05em}.stop-button{background:rgb(32 41 42 / .9)}.brand-mark{top:14px;right:14px;top:max(14px,env(safe-area-inset-top));right:max(14px,env(safe-area-inset-right));padding:5px 7px;border-radius:6px;background:rgb(8 14 15 / .45);font-size:.66rem;font-weight:800;letter-spacing:.05em}.identity-overlay{top:14px;left:14px;top:max(14px,env(safe-area-inset-top));left:max(14px,env(safe-area-inset-left));max-width:45%;padding:5px 7px;border-radius:6px;background:rgb(8 14 15 / .5);font-size:.65rem;font-weight:750;line-height:1.2}.identity-overlay:empty{display:none}.transient-message{top:50%;left:50%;padding:8px 12px;border-radius:7px;background:rgb(8 14 15 / .58);font-size:.9rem;font-weight:800;transform:translate(-50%,-50%);transition:opacity .2s ease;pointer-events:none}.save-panel{top:68px;right:14px;width:72vw;max-width:330px;top:max(68px,calc(env(safe-area-inset-top) + 54px));right:max(14px,env(safe-area-inset-right));width:min(72vw,330px);display:grid;gap:4px;padding:8px 10px;border:1px solid #b6f04d;border-radius:7px;background:rgb(8 14 15 / .76);font-size:.7rem;overflow-wrap:anywhere;pointer-events:none}.save-panel button{pointer-events:auto;justify-self:start;min-height:38px;padding:7px 12px;border:1px solid #b6f04d;border-radius:7px;background:#b6f04d;color:#13200b;font:800 .8rem system-ui}
.recorder-status-overlay{position:absolute;inset:0;z-index:10;display:grid;place-items:center;padding:24px;background:rgb(0 0 0 / .84);text-align:center}.recorder-status-overlay__card{display:grid;justify-items:center;gap:8px;max-width:300px}.recorder-status-overlay__spinner{width:42px;height:42px;border:4px solid rgb(212 231 219 / .28);border-top-color:#b6f04d;border-radius:50%;animation:recorder-status-spin .8s linear infinite}.recorder-status-overlay__title,.recorder-status-overlay__elapsed,.recorder-status-overlay__notice,.recorder-status-overlay__hint{margin:0}.recorder-status-overlay__title{font-size:1.05rem;font-weight:900;letter-spacing:.07em}.recorder-status-overlay__elapsed{min-height:1.2em;font-variant-numeric:tabular-nums;color:#d9e7e2;font-size:.88rem;font-weight:800}.recorder-status-overlay__notice{color:#b6f04d;font-size:.74rem;font-weight:900;letter-spacing:.09em}.recorder-status-overlay__hint{color:#d9e7e2;font-size:.72rem;font-weight:800;letter-spacing:.06em}@keyframes recorder-status-spin{to{transform:rotate(360deg)}}
.recorder-info-panel{z-index:3;border:1px solid rgb(212 231 219 / .45);border-radius:12px;background:rgb(8 14 15 / .86);box-shadow:0 18px 40px rgb(0 0 0 / .32);color:#f5f7f3}.preflight-panel{position:absolute;top:54px;right:14px;bottom:88px;left:14px;max-height:none;overflow-y:auto;padding:14px 15px 18px;top:max(54px,calc(env(safe-area-inset-top) + 40px));right:max(14px,env(safe-area-inset-right));bottom:max(88px,calc(env(safe-area-inset-bottom) + 70px));left:max(14px,env(safe-area-inset-left))}.eyebrow{margin:0 0 4px;color:#b6f04d;font-size:.65rem;font-weight:850;letter-spacing:.12em}.recorder-info-panel h1{margin:0;font-size:1.05rem;letter-spacing:.03em}.official-condition{display:grid;gap:5px;margin-top:13px;color:#d9e7e2;font-size:.66rem;font-weight:850;letter-spacing:.08em}.official-condition select{width:100%;min-height:42px;border:1px solid #d4e7db;border-radius:7px;background:#15201f;color:#fff;font:750 .84rem system-ui}.recording-rules,.submission-steps{display:grid;gap:9px;margin:14px 0 0;padding-left:1.25rem;color:#d9e7e2;font-size:.8rem;line-height:1.36}.recording-rules li::marker,.submission-steps li::marker{color:#b6f04d;font-weight:850}.after-stop-panel{position:relative;display:grid;gap:0;margin:0 auto;padding:19px 16px 28px;max-width:640px;border-radius:12px 12px 0 0}.submit-record-button{display:grid;min-height:52px;place-items:center;margin-top:18px;border:2px solid #fff;border-radius:999px;background:#b6f04d;color:#13200b;font:850 .9rem system-ui;letter-spacing:.04em;text-align:center;text-decoration:none}.submit-record-button:focus-visible,.record-button:focus-visible,.stop-button:focus-visible,.camera-icon:focus-visible,.official-condition select:focus-visible{outline:3px solid #b6f04d;outline-offset:3px}.recorder-stage[data-recorder-state="recording"] .preflight-panel{display:none}.recorder-stage[data-recorder-state="after"]{position:relative;inset:auto;width:100%;height:auto;min-height:100vh;min-height:100dvh;overflow:visible;padding:0;background:#000;touch-action:auto}.recorder-stage[data-recorder-state="after"] #cameraPreview{position:relative;width:100%;height:43vh;max-height:350px;height:min(43dvh,350px);object-fit:cover}.recorder-stage[data-recorder-state="after"] .brand-mark{display:block}.recorder-stage[data-recorder-state="after"] .after-stop-panel{display:grid}.recorder-stage[data-recorder-state="after"] .preflight-panel{display:none}html.recorder-post-stop,html.recorder-post-stop body{height:auto;min-height:100%;overflow:auto;overscroll-behavior:auto}
button:disabled{opacity:.45}@media (max-width:360px){.zoom-control input{width:76px}.record-button{padding:0 15px}.recording-meta{font-size:.68rem}.stop-button{padding:0 15px}.preflight-panel{top:46px;bottom:80px;padding:12px 13px 15px;top:max(46px,calc(env(safe-area-inset-top) + 34px));bottom:max(80px,calc(env(safe-area-inset-bottom) + 70px))}.recording-rules{gap:8px;font-size:.76rem}}
@media (max-width:430px){#zoomControl{bottom:56px;bottom:max(56px,calc(env(safe-area-inset-bottom) + 56px))}.camera-controls{bottom:56px;bottom:max(56px,calc(env(safe-area-inset-bottom) + 56px))}.preflight-panel{right:24px;bottom:126px;left:24px;right:max(24px,env(safe-area-inset-right));bottom:max(126px,calc(env(safe-area-inset-bottom) + 126px));left:max(24px,env(safe-area-inset-left))}}
.record-new-series-button{display:grid;min-height:52px;width:100%;place-items:center;margin-top:10px;border:1px solid rgb(212 231 219 / .7);border-radius:999px;background:rgb(8 14 15 / .5);color:#f5f7f3;font:850 .9rem system-ui;letter-spacing:.04em;text-align:center}.record-new-series-button:focus-visible{outline:3px solid #b6f04d;outline-offset:3px}

/* Keep the camera visible while the shooter reads the pre-record checklist. */
.preflight-panel{bottom:auto;max-width:860px;max-height:calc(100dvh - 160px);background:rgb(8 14 15 / .70)}
@media(max-width:430px){.preflight-panel{bottom:auto;max-height:calc(100dvh - 185px)}}
