:root { color-scheme: light; font: 16px/1.5 system-ui, sans-serif; color: #252427; background: #f9f2e8; --line: #e2d6c8; --dim: #5d564e; --accent: #913f2d; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
[hidden] { display: none !important; }
a { color: #813824; text-underline-offset: 3px; }
.bar, main, footer { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 66px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-size: 15px; font-weight: 740; }
.brand img { border-radius: 9px; }
.intro { padding: clamp(28px, 5.2vw, 68px) 0 25px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(41px, 6.2vw, 76px); letter-spacing: -.065em; line-height: 1.04; }
.intro p { color: var(--dim); margin-top: 12px; font-size: 1.075rem; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, 278px); align-items: start; gap: 16px; }
.preview, .controls { min-width: 0; border: 1px solid var(--line); background: #fffaf5; border-radius: 18px; }
.preview { overflow: hidden; }
.empty { display: grid; background: #292423; }
.empty img, .empty-actions { grid-area: 1 / 1; }
.empty img { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.empty-actions { display: flex; align-items: center; flex-wrap: wrap; align-self: end; gap: 9px; padding: 19px; background: linear-gradient(transparent, #1a120ee0); }
.controls { display: grid; gap: 13px; padding: 19px; }
.source { padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.source h2 { font-size: 1.08rem; }
.source p { font-size: .82rem; color: var(--dim); margin: 5px 0 9px; overflow-wrap: anywhere; }
.field { display: grid; gap: 4px; font-size: .84rem; font-weight: 650; }
button, select, .file-label, .download { padding: 8px 12px; min-height: 43px; font: inherit; color: inherit; background: #fffaf5; border: 1px solid #bcab9c; border-radius: 9px; cursor: pointer; }
button, .file-label, .download { font-weight: 670; text-align: center; }
button:disabled { opacity: .55; cursor: default; }
button:hover:not(:disabled), .file-label:hover { border-color: var(--accent); }
:focus-visible, .file-label:focus-within { outline: 3px solid #b6583c; outline-offset: 2px; }
.primary { color: white; background: var(--accent); border-color: var(--accent); }
.file-label { display: grid; place-items: center; position: relative; width: 100%; font-size: .86rem; }
.file-label input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.download { display: block; border-color: var(--accent); color: var(--accent); }
.preview-bar { min-height: 57px; padding: 8px 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.preview-bar > span { color: var(--dim); font-size: .8rem; font-variant-numeric: tabular-nums; }
.views { display: inline-flex; gap: 5px; }
.views button { min-height: 37px; font-size: .84rem; padding: 5px 11px; border-color: transparent; }
.views button[aria-pressed=true] { background: #efd9ca; color: #582419; border-color: #dfc1ae; }
.screen { display: grid; min-height: 280px; place-items: center; background: #252123; }
.stage { position: relative; width: min(100%, calc(435px * var(--ratio, 1))); aspect-ratio: var(--ratio, 1); overflow: hidden; }
video { width: 100%; height: 100%; display: block; object-fit: contain; }
video[data-axis=horizontal] { transform: scaleX(-1); }
video[data-axis=vertical] { transform: scaleY(-1); }
#status, .privacy-note { color: var(--dim); font-size: .8rem; }
#status:empty { display: none; }
#status[data-error] { color: #952a22; font-weight: 600; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 25px 0; font-size: .82rem; color: var(--dim); }
footer nav { display: flex; gap: 17px; }
.info { max-width: 760px; padding-block: 38px; }
.info h1 { font-size: clamp(38px, 6vw, 55px); }
.info section { margin-top: 27px; }
.info p { margin-top: 8px; }
@media (max-width: 690px) {
  .bar, main, footer { width: calc(100% - 26px); }
  .workspace { grid-template-columns: 1fr; }
  .screen { min-height: 0; }
  .empty-actions { padding: 9px; }
  .empty-actions button { font-size: .84rem; }
}
.timeline { display: grid; grid-template-columns: max-content minmax(0, 1fr) max-content; align-items: center; gap: 10px; padding: 8px 12px; }
.timeline button { min-height: 38px; font-size: .82rem; }
.timeline input { width: 100%; accent-color: var(--accent); }
.timeline span { color: var(--dim); font-size: .78rem; font-variant-numeric: tabular-nums; }
