:root { color-scheme: light; font-family: system-ui, sans-serif; color: #183749; background: #f1f6f6; --ink: #16516a; --quiet: #486875; --line: #cddfe1; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, textarea, select { font: inherit; }
button, select { cursor: pointer; }
button:disabled { opacity: .49; cursor: default; }
a { color: var(--ink); }
button:focus-visible, a:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #ad5513; outline-offset: 3px; }
header { min-height: 62px; padding: 11px max(22px, calc((100% - 1260px)/2)); display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 740; text-decoration: none; }
main { max-width: 1304px; padding: 34px 22px 23px; margin: auto; }
h1 { font-size: clamp(2rem, 5.4vw, 3.85rem); letter-spacing: -.058em; line-height: 1.05; margin: 0 0 12px; }
h2 { font-size: 17px; margin: 0; }
p { margin: 0; line-height: 1.5; }
.intro { color: var(--quiet); margin-bottom: 23px; }
.workspace { display: grid; grid-template-columns: minmax(0,1fr) minmax(270px,350px); gap: 16px; align-items: start; }
.card { border: 1px solid var(--line); border-radius: 13px; background: #fff; padding: 15px; min-width: 0; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 9px; min-height: 35px; }
.stage { display: grid; place-items: center; min-height: 305px; overflow: hidden; margin: 11px 0 8px; border-radius: 9px; background: #092532; }
video { display: block; width: 100%; max-height: min(57vh, 525px); }
.empty { display: grid; justify-items: center; gap: 11px; padding: 16px; }
.primary, .secondary, .light { min-height: 41px; padding: 8px 12px; font-weight: 680; border: 1px solid; border-radius: 7px; }
.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.primary:not(:disabled):hover { background: #256b86; }
.secondary { color: var(--ink); background: #f0f7f8; border-color: var(--line); }
.light { color: #e9fcff; background: #193e50; border-color: #557887; }
.controls { display: grid; gap: 8px; }
.controls label { font-size: 13px; font-weight: 670; }
textarea, select { width: 100%; border: 1px solid #b9cfd4; background: #fff; color: #183749; border-radius: 7px; padding: 8px; }
textarea { resize: vertical; min-height: 78px; }
select { min-height: 42px; }
#time-help, #source-info, #status, #result-info { font-size: 13px; color: var(--quiet); overflow-wrap: anywhere; }
#status { min-height: 19px; }
.results { margin-top: 16px; }
#zip { align-self: start; white-space: nowrap; text-decoration: none; }
#frames { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,208px),1fr)); gap: 11px; }
#frames li { border: 1px solid var(--line); padding: 9px; border-radius: 9px; display: grid; gap: 7px; align-content: start; background: #f8fbfb; }
#frames img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: contain; border-radius: 5px; background: #092532; }
#frames strong { font-size: 14px; }
#frames small { font-size: 12px; color: var(--quiet); }
#frames a { justify-self: start; }
footer { max-width: 1304px; display: flex; flex-wrap: wrap; gap: 16px; margin: auto; padding: 0 22px 26px; font-size: 13px; }
.info main { max-width: 800px; }
.info h2 { margin: 22px 0 8px; }
.info p + p { margin-top: 9px; }
@media (max-width: 770px) { .workspace { grid-template-columns: 1fr; } .stage { min-height: 222px; } }
@media (max-width: 460px) { header, footer { padding-inline: 13px; } main { padding: 24px 13px 17px; } .card { padding: 11px; } }
