:root {
  font-family: "Aptos", Inter, system-ui, sans-serif;
  color: #f0ede7;
  background: #171421;
  color-scheme: dark;
  font-size: 16px;
  line-height: 1.55;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: #e8c8fc; }
header, footer { display: flex; align-items: center; gap: 1.25rem; padding: .85rem clamp(1rem, 5vw, 4rem); }
header { justify-content: space-between; border-bottom: 1px solid #382e44; }
footer { border-top: 1px solid #382e44; font-size: .9rem; }
.brand { font-size: 1rem; display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: inherit; font-weight: 730; }
.brand img { border-radius: 8px; }
main { max-width: 75rem; min-height: 72vh; margin: auto; padding: clamp(1.6rem, 5vw, 4.4rem) 1rem 2.5rem; }
h1 { margin: 0; font-size: clamp(2rem, 6vw, 4rem); letter-spacing: -.07em; line-height: 1.08; font-weight: 760; }
h2 { margin: 0 0 .55rem; font-size: 1rem; }
.lead, .hint, small { color: #cdc1d5; }
.lead { margin: 1rem 0 1.8rem; max-width: 43rem; }
.layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(17rem, 1fr); gap: 1rem; }
.work, .options, main > section { background: #262033; border: 1px solid #413750; border-radius: 16px; padding: clamp(.8rem, 2vw, 1.25rem); }
.previews { display: flex; gap: .65rem; align-items: flex-start; }
.previews article { width: 100%; min-width: 0; }
video { width: 100%; border-radius: 9px; display: block; max-height: 26rem; background: #0e1117; object-fit: contain; }
.file-actions, .buttons { display: flex; gap: .55rem; flex-wrap: wrap; }
button, .primary { border: 1px solid #626f84; padding: .55rem .8rem; border-radius: 8px; color: inherit; font: inherit; font-weight: 650; text-decoration: none; background: #342840; cursor: pointer; }
.primary { display: inline-flex; background: #e8c8fc; color: #341b47; border-color: #e8c8fc; }
.choose { position: relative; }
.choose input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
:focus-visible, .choose:focus-within { outline: 2px solid #c2efff; outline-offset: 3px; }
:disabled, .choose:has(:disabled) { opacity: .6; cursor: default; }
.hint, small, #status { font-size: .88rem; }
#filename { overflow-wrap: anywhere; }
fieldset { margin: 1.1rem 0; border: 0; padding: 0; }
legend { margin-bottom: .35rem; font-weight: 700; }
fieldset label { display: flex; gap: .55rem; padding: .5rem 0; align-items: flex-start; cursor: pointer; }
fieldset input { accent-color: #e8c8fc; margin-top: .36rem; }
small { display: block; }
progress { width: 100%; height: .7rem; margin-top: .8rem; accent-color: #e8c8fc; }
#status:empty, #details:empty { display: none; }
#compare { margin-top: .8rem; }
main > section { margin-top: 1.4rem; }
@media (max-width: 750px) { .layout { grid-template-columns: 1fr; } .options { grid-row: 1; } }
@media (max-width: 450px) { .previews { flex-direction: column; } }
