:root { color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, sans-serif; background: #0a0e0c; color: #edf6ef; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 50% -20%, #31513d 0, #101713 44%, #090c0a 100%); }
#shell { width: min(1120px, 100%); margin: 0 auto; padding: clamp(16px, 3vw, 36px); }
header { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
h1 { font-size: clamp(34px, 6vw, 68px); line-height: .9; margin: 8px 0 10px; letter-spacing: -.04em; }
header p { max-width: 720px; margin: 0; color: #b8c7bc; }
.eyebrow { color: #8fe0a7; letter-spacing: .16em; font-weight: 800; font-size: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: end; }
button, .button { border: 1px solid #50675a; border-radius: 8px; padding: 9px 13px; background: #18221c; color: inherit; font: inherit; cursor: pointer; }
button:hover, .button:hover { background: #243329; }
.button input { display: none; }
.primary { border: 0; background: #78d393; color: #08110b; font-weight: 800; font-size: 17px; padding: 12px 24px; }
.primary:hover { background: #99e6ad; }
#stage { position: relative; overflow: hidden; width: 100%; aspect-ratio: 4 / 3; background: #000; border: 1px solid #415347; border-radius: 12px; box-shadow: 0 24px 70px #0009; }
#outputCanvas { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; outline: none; }
#gate { position: absolute; inset: 0; display: grid; place-items: center; padding: 18px; background: linear-gradient(#07100bcc, #07100bf2); }
#gate.hidden { display: none; }
.panel { width: min(520px, 100%); text-align: center; padding: 26px; border-radius: 14px; border: 1px solid #456252; background: #111a15e8; }
.panel strong { font-size: 23px; }
.panel p { min-height: 42px; color: #c4d0c7; }
.panel small { display: block; margin-top: 12px; color: #8da095; }
progress { width: 100%; height: 9px; display: block; margin: 14px 0 18px; accent-color: #78d393; }
#saveStatus { position: absolute; right: 10px; bottom: 9px; padding: 5px 8px; border-radius: 6px; background: #07100bc7; color: #b9c9bd; font-size: 12px; }
details { margin-top: 18px; border: 1px solid #33443a; border-radius: 10px; background: #101713; padding: 13px 16px; }
summary { cursor: pointer; font-weight: 750; }
.controls { color: #c4d0c7; }
.controls p { margin: 10px 0 0; }
.footnote { color: #829087; font-size: 12px; }
@media (max-width: 760px) { header { align-items: start; flex-direction: column; } .actions { justify-content: start; } #shell { padding: 12px; } }
