:root { color-scheme: dark; font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif; background: #101215; color: #e9ecef; font-size: 14px; }
* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 1800px; margin: auto; padding: 28px 32px; }
header, .brand, #status, .button-row, .angle-row, .stage-label { display: flex; align-items: center; }
header { justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.brand { gap: 12px; }
.logo { color: #b5f06e; font-size: 29px; }
h1 { font-size: 21px; font-weight: 650; letter-spacing: -.6px; margin: 0; }
.tag { color: #6e7681; font-size: 10px; letter-spacing: 1.8px; margin-left: 15px; }
#status { color: #9da4ac; gap: 8px; font-size: 12px; white-space: nowrap; }
#status i { width: 7px; height: 7px; background: #66707a; border-radius: 50%; }
#status[data-state="live"] i { background: #b5f06e; box-shadow: 0 0 12px #b5f06e55; }
#status[data-state="error"] i { background: #ff9086; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.preview { min-width: 0; }
#stage { position: relative; width: 100%; height: clamp(360px, 70vh, 1100px); background: #060708; border: 1px solid #292d32; border-radius: 14px; overflow: hidden; }
#video { display: none; position: absolute; top: 50%; left: 50%; max-width: none; max-height: none; transform-origin: center; will-change: transform; }
#placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; background: radial-gradient(ellipse at center, #19201b55, transparent 60%); }
.camera-icon { border: 1px solid #374135; color: #b5f06e; font-size: 36px; height: 72px; width: 72px; border-radius: 21px; display: grid; place-items: center; margin-bottom: 16px; }
#placeholder h2 { font-size: 22px; margin: 8px 0 12px; letter-spacing: -.5px; }
#placeholder p { color: #969da5; line-height: 1.8; margin: 0; font-size: 13px; }
#placeholder .subtle { color: #68717a; font-size: 12px; margin-top: 6px; }
.stage-label { position: absolute; bottom: 0; left: 0; right: 0; justify-content: space-between; padding: 14px 18px; background: linear-gradient(transparent, #0009); pointer-events: none; }
#video-info { font-size: 10px; letter-spacing: 1.5px; color: #a3aab2; }
.stage-label button { pointer-events: auto; background: #16191cd9; font-size: 12px; padding: 7px 10px; }
#message { color: #858e97; font-size: 12px; line-height: 1.8; padding: 0 3px; min-height: 22px; }
#message[data-error="true"] { color: #ffada5; }
aside { background: #181b1f; border: 1px solid #2b2f34; border-radius: 14px; padding: 0 22px; }
.control-section { padding: 22px 0; border-bottom: 1px solid #2b2f34; }
.control-section h2 { font-size: 13px; margin: 0 0 19px; font-weight: 600; }
.control-section h2 span { font-size: 10px; color: #69747d; margin-right: 10px; font-weight: 500; }
label { color: #a8afb7; font-size: 12px; display: block; margin-bottom: 9px; }
select, button, input[type="number"] { font: inherit; color: #dfe4e8; background: #22262b; border: 1px solid #373d44; border-radius: 7px; }
select { width: 100%; padding: 10px; text-overflow: ellipsis; }
button { cursor: pointer; padding: 10px 12px; white-space: nowrap; }
button:hover { background: #2f363d; border-color: #5c6874; }
button:disabled { opacity: .4; cursor: default; }
button.primary { color: #1a2613; background: #b5f06e; border-color: #b5f06e; font-weight: 600; }
button.primary:hover { background: #c8fa8c; }
button[aria-pressed="true"] { color: #b5f06e; background: #293b20; border-color: #688c47; }
.button-row { gap: 8px; margin-top: 12px; }
.button-row button { flex: 1; padding-left: 6px; padding-right: 6px; font-size: 12px; }
.angle-row { justify-content: space-between; margin-bottom: 16px; }
.angle-row label { margin: 0; }
.angle-row > div { display: flex; align-items: center; gap: 7px; color: #9aa3ab; }
input[type="number"] { width: 94px; font-size: 23px; letter-spacing: -1px; text-align: right; padding: 5px 7px; }
input[type="range"] { width: 100%; accent-color: #b5f06e; cursor: ew-resize; margin: 0; }
.range-labels { display: flex; justify-content: space-between; color: #6e7881; font-size: 10px; margin-top: 6px; }
.hint { color: #78828c; font-size: 11px; margin: 12px 0 0; line-height: 1.6; }
.reset { width: 100%; margin-top: 12px; background: transparent; color: #a3acb5; font-size: 12px; }
footer { color: #737e89; font-size: 11px; line-height: 1.8; padding: 18px 0; }
:focus-visible { outline: 2px solid #b5f06e; outline-offset: 3px; }
#stage:fullscreen { width: 100vw; height: 100vh; border: 0; border-radius: 0; }
@media (max-width: 900px) { main { padding: 20px; } .workspace { grid-template-columns: minmax(0, 1fr) 270px; gap: 16px; } .tag { display: none; } aside { padding: 0 16px; } }
@media (max-width: 650px) { main { padding: 16px; } header { margin-bottom: 18px; } .workspace { grid-template-columns: 1fr; } #stage { height: 48vh; min-height: 260px; } aside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; } footer { grid-column: 1 / -1; } .button-row { flex-wrap: wrap; } h1 { font-size: 18px; } }
