:root {
  color-scheme: light dark;
  --bg: #08131f;
  --surface: #102235;
  --surface-2: #152b42;
  --text: #edf6ff;
  --muted: #b6cadc;
  --accent: #70d6c3;
  --accent-dark: #062f2a;
  --border: #35536e;
  --focus: #ffd166;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at top, #153452 0, var(--bg) 45rem); color: var(--text); }
main { width: min(900px, calc(100% - 2rem)); margin: 0 auto; padding: 4rem 0; }
header { max-width: 760px; margin-bottom: 2rem; }
.eyebrow { color: var(--accent); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; }
h1 { margin: .35rem 0 1rem; font-size: clamp(2.2rem, 7vw, 4.6rem); line-height: .98; letter-spacing: -.045em; }
h2 { margin-top: 0; font-size: 1.15rem; }
.lede, .notice p { color: var(--muted); line-height: 1.65; }
.panel, .notice { background: color-mix(in srgb, var(--surface) 93%, transparent); border: 1px solid var(--border); border-radius: 18px; padding: 1.4rem; margin: 1rem 0; box-shadow: 0 18px 60px #0005; }
label { display: block; font-weight: 700; margin-bottom: .6rem; }
input[type="file"] { width: 100%; border: 1px dashed var(--border); border-radius: 12px; padding: 1rem; background: var(--surface-2); color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1rem; }
button { appearance: none; border: 1px solid var(--accent); border-radius: 999px; padding: .72rem 1rem; font: inherit; font-weight: 800; background: var(--accent); color: var(--accent-dark); cursor: pointer; }
button.secondary { background: transparent; color: var(--accent); }
button.quiet { background: transparent; border-color: var(--border); color: var(--muted); }
button:disabled { opacity: .55; cursor: wait; }
button:focus-visible, input:focus-visible, pre:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
#status { min-height: 1.5em; margin-bottom: 0; color: var(--muted); }
.output-panel { padding: 0; overflow: hidden; }
.output-panel h2 { padding: 1.4rem 1.4rem 0; }
pre { margin: 0; padding: 1.4rem; max-height: 32rem; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; background: #050c14; border-top: 1px solid var(--border); color: #d9ebf8; font: .88rem/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; }
.notice { border-left: 4px solid var(--accent); }
@media (max-width: 540px) { main { padding: 2rem 0; } .actions { align-items: stretch; flex-direction: column; } button { width: 100%; } }
@media (prefers-reduced-motion: no-preference) { button { transition: transform .15s ease, background .15s ease; } button:hover { transform: translateY(-1px); } }
