* { box-sizing: border-box; }
:root { color-scheme: light; background: #f2f1f8; color: #26213b; font: 16px/1.5 ui-sans-serif, system-ui, sans-serif; --ink:#26213b; --muted:#635e76; --line:#d9d5e7; }
body { margin: 0; min-width: 280px; }
[hidden] { display: none !important; }
.frame { width: min(calc(100% - 64px), 1220px); margin-inline: auto; }
.top { background: #fcfbff; border-bottom: 1px solid var(--line); }
.top .frame { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 14px; }
a { color: #493382; }
.brand { color: var(--ink); display: inline-flex; align-items: center; gap: 11px; font-size: 15px; font-weight: 750; text-decoration: none; }
.brand img { border-radius: 9px; }
.intro { margin: 39px 0 23px; }
h1 { font-size: clamp(38px, 6.4vw, 76px); line-height: 1; letter-spacing: -.055em; margin: 0; }
.intro p { margin: 13px 0 0; color: var(--muted); }
.workspace { display: grid; grid-template-columns: 345px minmax(0, 1fr); align-items: start; gap: 16px; }
.controls, .preview { background: #fcfbff; border: 1px solid var(--line); border-radius: 12px; }
.controls { display: grid; gap: 8px; padding: 16px; }
.inputs, .preview-bar, .actions { display: flex; justify-content: space-between; gap: 9px; align-items: center; }
h2 { margin: 0; font-size: 15px; }
.inputs span, .small, .preview-bar span, .clip-meta { color: var(--muted); font-size: 12px; margin: 0; }
.small:empty { display: none; }
.small[data-error] { color: #9b2517; }
button, select { color: inherit; font: inherit; min-height: 38px; background: #fcfbff; border: 1px solid #bdb4d6; border-radius: 6px; }
button { cursor: pointer; font-weight: 670; }
button:disabled { opacity: .55; cursor: default; }
button:hover:not(:disabled) { background: #ece7fa; }
label { font-weight: 690; font-size: 13px; }
select { width: 100%; padding: 5px 9px; font-size: 13px; }
.actions button { flex: 1; font-size: 13px; }
.clip-list { display: grid; gap: 7px; padding: 0; margin: 2px 0; list-style: none; }
.clip-list:empty { display: none; }
.clip-list li { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; padding: 8px; background: #f7f5fe; }
.clip-name { display: block; font-size: 13px; font-weight: 690; overflow-wrap: anywhere; }
.clip-controls { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.clip-controls button { min-height: 30px; font-size: 11px; padding-inline: 6px; }
.primary, #download { background: #6448a7; color: #fff; border-color: #6448a7; }
.primary { margin-top: 7px; }
.primary:hover:not(:disabled), #download:hover { background: #52388f; }
#download { display: grid; place-items: center; min-height: 39px; border-radius: 7px; font-weight: 700; }
.divider { border-bottom: 1px solid var(--line); margin-block: 5px; }
:focus-visible { outline: 3px solid #7756bc; outline-offset: 2px; }
.preview { overflow: hidden; }
.preview-bar { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.empty, .screen { min-height: 318px; display: grid; place-content: center; justify-items: center; padding: 14px; text-align: center; }
.empty { color: var(--muted); }
.empty img { border-radius: 17px; }
.screen { background: #201b33; place-content: unset; place-items: center; }
.stage { width: min(100%, calc(385px * var(--ratio, 1.7778))); aspect-ratio: var(--ratio, 1.7778); background: #09080c; }
video { width: 100%; height: 100%; display: block; }
footer { display: flex; justify-content: space-between; gap: 18px; padding-block: 20px; font-size: 12px; color: var(--muted); }
nav { display: flex; gap: 16px; }
.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 h2 { margin-top: 32px; font-size: 18px; }
@media(max-width: 760px) {
  .frame { width: calc(100% - 28px); }
  .intro { margin-top: 28px; }
  .workspace { grid-template-columns: 1fr; }
  .screen { min-height: 0; }
}
