:root { color-scheme: light; font-family: "Segoe UI", system-ui, sans-serif; color: #192b41; background: #f4f6fa; }
* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 1360px; padding: 32px 36px 24px; margin: auto; }
header { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 26px; }
h1 { font-size: 32px; letter-spacing: -1px; margin: 4px 0 7px; }
h2 { margin: 3px 0; font-size: 22px; }
p { margin: 0; color: #5b6e84; line-height: 1.5; }
.eyebrow { font-size: 11px; letter-spacing: 2px; font-weight: 700; color: #3169b3; }
.badge { font-size: 12px; font-weight: 600; background: #e6edf8; border: 1px solid #d4e0f2; border-radius: 25px; padding: 9px 14px; white-space: nowrap; }
.controls { display: flex; align-items: end; gap: 10px; margin-bottom: 16px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; color: #465e78; }
.camera-label { flex: 1; max-width: 520px; }
select, input[type=number] { background: white; color: #192b41; font: inherit; font-size: 14px; border: 1px solid #cbd5e2; border-radius: 7px; padding: 10px 12px; min-width: 0; }
button, .button { display: inline-block; border: 1px solid transparent; border-radius: 7px; padding: 10px 17px; background: #246cda; color: white; font: inherit; font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; text-align: center; }
button:hover, .button:hover { background: #1a58b6; }
.secondary { border-color: #cbd5e2; background: white; color: #39516c; }
.secondary:hover { background: #eaf0f8; }
button:disabled { opacity: .45; cursor: default; }
:focus-visible { outline: 3px solid #87b9ff; outline-offset: 3px; }
.stage { position: relative; aspect-ratio: 16/9; width: 100%; overflow: hidden; background: #152337; border-radius: 10px; box-shadow: 0 8px 26px #21345018; }
#live, #overlay { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
#live.mirror { transform: scaleX(-1); }
#overlay { pointer-events: none; }
#empty { position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; flex-direction: column; color: #e9f0fa; gap: 9px; }
#empty p { color: #9aacc3; text-align: center; }
.camera-symbol { color: #8cacdb; font-size: 40px; margin-bottom: 5px; }
.guidance { position: absolute; left: 50%; bottom: 5%; transform: translateX(-50%); width: 37%; min-width: 190px; text-align: center; }
#step { color: white; font-size: clamp(10px, 1.1vw, 14px); font-weight: 600; margin-bottom: 8px; text-shadow: 0 1px 5px black; }
#instruction { background: #2479dc; color: white; border-radius: 5px; padding: 11px 8px; font-size: clamp(14px, 2vw, 23px); font-weight: 600; box-shadow: 0 3px 12px #0002; }
.progress { margin-top: 9px; height: 10px; border-radius: 20px; overflow: hidden; background: #ffffffd9; border: 1px solid white; }
#fill { width: 0; height: 100%; background: #348cef; transition: width 80ms linear; }
#hint { color: white; font-size: clamp(10px, 1vw, 13px); margin-top: 7px; text-shadow: 0 1px 5px black; }
#recording-indicator { position: absolute; right: 20px; top: 20px; font-size: 14px; font-weight: 700; color: white; border-radius: 5px; padding: 8px 10px; background: #152337b3; }
#recording-indicator i { display: inline-block; background: #ff5252; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; }
.footnote { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 11px; color: #6c7e93; padding: 11px 0 19px; }
.flow-summary { font-size: 13px; color: #3169b3; margin-bottom: 20px; }
#error { background: #fff0ee; border: 1px solid #ecc3bc; color: #963d2d; border-radius: 7px; padding: 13px; margin-bottom: 18px; }
#result, details { background: white; border: 1px solid #dbe2eb; border-radius: 9px; padding: 20px; margin-bottom: 16px; }
.result-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 17px; }
.result-actions { display: flex; gap: 9px; }
#playback { display: block; width: 100%; max-width: 640px; border-radius: 7px; background: #152337; }
#clip-info { margin-top: 10px; font-size: 12px; }
summary { cursor: pointer; font-weight: 600; font-size: 14px; }
summary span { font-weight: 400; color: #7c8ba0; font-size: 12px; margin-left: 15px; }
.help { font-size: 12px; margin: 16px 0; max-width: 900px; }
.settings-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 17px; }
.check { flex-direction: row; align-items: center; gap: 8px; }
.check input { accent-color: #246cda; }
.settings-actions { display: flex; gap: 16px; align-items: center; grid-column: 1/-1; }
#metrics { font-size: 12px; color: #5b6e84; font-variant-numeric: tabular-nums; }
footer { font-size: 11px; line-height: 1.8; color: #8492a4; margin-top: 20px; }
[hidden] { display: none !important; }
@media (max-width: 700px) { main { padding: 20px 14px; } header { align-items: start; } .badge { display: none; } h1 { font-size: 27px; } .controls { flex-wrap: wrap; } .camera-label { flex-basis: 100%; max-width: none; } .settings-grid { grid-template-columns: repeat(2, 1fr); } .result-heading, .settings-actions { align-items: start; flex-direction: column; } .guidance { bottom: 4%; } #instruction { padding: 6px; } .progress { height: 7px; margin-top: 5px; } #hint { margin-top: 4px; } summary span { display: block; margin: 7px 0 0; } }
