:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #08090c;
  color: #f4f4f5;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at top, #202229 0, #0b0c10 38rem); }
.shell { width: min(720px, calc(100% - 32px)); margin: 0 auto; padding: 56px 0; }
.brand { text-align: center; margin-bottom: 30px; }
.logo { display: block; width: 112px; height: 112px; margin: 0 auto 18px; border-radius: 24px; box-shadow: 0 12px 36px rgba(255, 28, 39, .2); }
.eyebrow { margin: 0; color: #ff3b30; font-weight: 900; letter-spacing: .35em; }
h1 { margin: 8px 0 4px; font-size: clamp(2.2rem, 8vw, 4rem); letter-spacing: -.045em; }
.subtitle, .hint { color: #a1a1aa; }
.card { padding: clamp(20px, 5vw, 36px); border: 1px solid #30323a; border-radius: 22px; background: rgba(17, 18, 23, .94); box-shadow: 0 24px 80px rgba(0, 0, 0, .35); }
.hidden { display: none !important; }
h2 { margin-top: 0; }
label { display: block; margin: 18px 0 8px; font-weight: 700; }
textarea, select { width: 100%; border: 1px solid #3b3d46; border-radius: 12px; padding: 13px; background: #0c0d11; color: #fff; font: inherit; }
textarea:disabled { color: #a1a1aa; border-color: #30323a; cursor: not-allowed; opacity: 1; }
textarea:focus, select:focus, button:focus-visible { outline: 3px solid rgba(255, 59, 48, .45); outline-offset: 2px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid.single { grid-template-columns: 1fr; }
button, .file-button { border: 0; border-radius: 12px; padding: 13px 18px; font: inherit; font-weight: 800; cursor: pointer; text-align: center; }
.primary { width: 100%; margin-top: 18px; background: #ff3b30; color: #fff; }
.primary:disabled { opacity: .55; cursor: wait; }
.secondary, .file-button { background: #292b32; color: #fff; }
.file-button { display: inline-block; }
input[type=file] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.actions .secondary { margin-top: 18px; }
.status { min-height: 1.4em; color: #ffb4ae; }
#plaintext { white-space: pre-wrap; overflow-wrap: anywhere; padding: 18px; border-radius: 12px; background: #090a0d; }
code { overflow-wrap: anywhere; }
@media (max-width: 560px) { .grid, .actions { grid-template-columns: 1fr; } }
