:root { color-scheme: dark; font: 16px/1.5 "Inter", system-ui, sans-serif; color: #f0ebf6; background: #15111b; }
* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 1180px; margin: auto; padding: 32px clamp(16px, 4vw, 48px); }
header, .toolbar, .row { display: flex; align-items: center; gap: 12px; }
header, .row { justify-content: space-between; }
header { margin-bottom: 24px; border-bottom: 1px solid #3a2d45; }
h1 { margin: 0 0 16px; font-size: clamp(28px, 5vw, 44px); letter-spacing: -.04em; }
h2 { font-size: 17px; margin: 0; }
a { color: #e2b5ff; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 265px; gap: 20px; align-items: start; }
.preview { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 16px; border: 1px solid #3a2d45; background: #0d0a11; display: grid; place-items: center; }
video, canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
video { object-fit: fill; transform: scaleX(-1); }
canvas { pointer-events: none; }
#placeholder { text-align: center; color: #c5b6d1; padding: 20px; z-index: 1; }
.toolbar { flex-wrap: wrap; margin-top: 14px; }
button { background: #d7a9fc; color: #241433; border: 0; border-radius: 8px; padding: 9px 14px; font: inherit; font-weight: 650; cursor: pointer; }
button:disabled { opacity: .45; cursor: default; }
aside { display: grid; gap: 13px; padding: 20px; background: #22192b; border: 1px solid #3a2d45; border-radius: 16px; }
input { accent-color: #d7a9fc; }
input[type=range], input[type=number] { width: 100%; }
input[type=number] { font: inherit; padding: 5px 8px; margin-top: 5px; }
.hint, #status { color: #c5b6d1; font-size: 14px; margin: 0; }
hr { width: 100%; border: 0; border-top: 1px solid #3a2d45; }
@media (max-width: 760px) { .workspace { grid-template-columns: 1fr; } }
