* { box-sizing: border-box; }
:root {
  color-scheme: light;
  font: 16px/1.5 ui-sans-serif, system-ui, sans-serif;
  background: #eef2e9;
  color: #12322d;
  --ink: #12322d;
  --muted: #4d655d;
  --line: #cbd8cd;
}
body { margin: 0; min-width: 280px; }
[hidden] { display: none !important; }
.frame { width: min(calc(100% - 64px), 1220px); margin-inline: auto; }
.top { background: #f9fcf7; border-bottom: 1px solid var(--line); }
.top .frame { display: flex; min-height: 65px; align-items: center; justify-content: space-between; gap: 14px; }
a { color: #215c4b; }
.brand { color: var(--ink); display: inline-flex; gap: 10px; align-items: center; text-decoration: none; font-size: 15px; font-weight: 760; }
.brand img { border-radius: 9px; }
.intro { margin: 43px 0 25px; }
h1 { font-size: clamp(39px, 6.3vw, 78px); line-height: 1; letter-spacing: -.059em; margin: 0; }
.intro p { color: var(--muted); margin: 13px 0 0; }
.workspace { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 17px; align-items: start; }
.controls, .preview { border: 1px solid var(--line); border-radius: 13px; background: #f9fcf7; }
.controls { display: grid; gap: 9px; padding: 18px; }
.controls label { font-size: 13px; font-weight: 720; }
button, select { font: inherit; color: inherit; border-radius: 7px; min-height: 40px; }
button { font-weight: 700; cursor: pointer; }
button:disabled { opacity: .5; cursor: default; }
.outline, select { border: 1px solid #a7bbad; background: #f9fcf7; }
.outline:hover:not(:disabled), .text-action:hover { background: #e7f0e5; }
select { width: 100%; padding: 7px 10px; margin-bottom: 2px; font-size: 14px; }
.text-action { min-height: 33px; border: 0; background: transparent; color: #205e4c; font-size: 13px; }
.primary { background: #bde481; border: 1px solid #a3c974; margin-top: 9px; color: #153429; }
.primary:hover:not(:disabled) { background: #aee069; }
.download { display: grid; place-items: center; min-height: 39px; border-radius: 7px; font-weight: 700; border: 1px solid #215c4b; }
.small { color: var(--muted); font-size: 12px; margin: 0; overflow-wrap: anywhere; }
.small:empty { display: none; }
.small[data-error] { color: #a62921; }
.divider { border-bottom: 1px solid var(--line); margin-block: 6px; }
:focus-visible { outline: 3px solid #327b63; outline-offset: 3px; }
.preview { overflow: hidden; }
.preview-bar, .preview-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; }
.preview-bar h2 { font-size: 15px; margin: 0; }
.preview-bar span, .preview-actions span { color: var(--muted); font-size: 12px; text-align: right; }
.empty, .screen { min-height: 325px; display: grid; place-content: center; justify-items: center; padding: 15px; text-align: center; }
.empty { color: var(--muted); border-top: 1px solid var(--line); }
.empty img { border-radius: 17px; }
.screen { background: #142c28; place-content: unset; place-items: center; }
.stage { position: relative; overflow: hidden; width: min(100%, calc(370px * var(--ratio, 1))); aspect-ratio: var(--ratio, 1); }
video { display: block; max-width: none; position: absolute; top: 50%; left: 50%; object-fit: contain; }
.preview-actions button { min-height: 34px; padding-inline: 11px; font-size: 13px; }
footer { display: flex; justify-content: space-between; gap: 17px; padding-block: 23px; font-size: 12px; color: var(--muted); }
nav { display: flex; gap: 17px; }
.visually-hidden { clip-path: inset(50%); width: 1px; height: 1px; position: absolute; overflow: hidden; }
.info { max-width: 750px; padding-block: 46px; }
.info h1 { font-size: clamp(34px, 5.5vw, 52px); }
.info section { margin-top: 32px; }
@media (max-width: 760px) {
  .frame { width: calc(100% - 28px); }
  .intro { margin-top: 30px; }
  .workspace { grid-template-columns: 1fr; }
  .screen { min-height: 0; }
}
