:root { color-scheme: light; font: 16px/1.48 system-ui,sans-serif; background: #eef4f4; color: #152a32; --edge: #c8d9d9; --accent: #136356; }
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
.shell { width: min(1130px,calc(100% - 40px)); margin-inline: auto; }
header,footer { background: #fff; }
header { border-bottom: 1px solid var(--edge); }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
a { color: #0f594e; text-underline-offset: 3px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #152a32; font-weight: 750; }
main { padding-block: 34px 44px; }
h1 { font-size: clamp(2.4rem,5.1vw,4rem); letter-spacing: -.05em; line-height: 1.08; margin: 0; }
h2 { font-size: 1.22rem; margin: 0 0 14px; }
.intro { color: #486069; margin: .55em 0 1.45em; }
.workspace { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); align-items: start; gap: 14px; }
.panel { border: 1px solid var(--edge); border-radius: 11px; background: #fff; padding: 18px; }
.screen { min-height: 260px; background: #162b33; color: #e5eff0; border-radius: 8px; display: grid; place-items: center; overflow: hidden; }
.screen p { padding: 1rem; text-align: center; }
video { display: block; width: 100%; max-height: 430px; }
button,input { font: inherit; }
button,.file-button,#download { position: relative; border: 1px solid #9ebeb7; border-radius: 6px; background: #fff; color: #0f594e; padding: .57rem .72rem; font-weight: 650; text-decoration: none; cursor: pointer; }
button:hover:not(:disabled),.file-button:hover,#download:hover { filter: brightness(.96); }
button:disabled,.file-button:has(input:disabled) { opacity: .56; cursor: default; }
.file-button input { position: absolute; opacity: 0; inset: 0; width: 100%; cursor: pointer; }
button:focus-visible,input:focus-visible,.file-button:focus-within,a:focus-visible { outline: 3px solid #4b8e82; outline-offset: 3px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.hint,.status { color: #485f68; font-size: .86rem; overflow-wrap: anywhere; }
.hint:empty,.status:empty { display: none; }
.gain { margin-block: 15px; display: grid; grid-template-columns: 1fr auto; gap: 5px; font-weight: 650; }
.gain input { grid-column: 1/-1; width: 100%; accent-color: var(--accent); }
.gain output { font-variant-numeric: tabular-nums; }
.loop { display: flex; gap: .5em; align-items: center; font-size: .92rem; margin-block: 13px; }
footer { border-top: 1px solid var(--edge); padding-block: 14px; }
footer a + a { margin-left: 14px; }
.policy { max-width: 790px; }
.policy section { margin-bottom: 12px; }
.policy h1 { font-size: 2rem; }
@media (max-width: 740px) { .workspace { grid-template-columns: 1fr; } }
@media (max-width: 425px) { .shell { width: calc(100% - 28px); } .panel { padding: 14px; } .screen { min-height: 180px; } }
