:root {
  color-scheme: dark;
  --bg: #0d0f13;
  --panel: #15181f;
  --panel-2: #1b1f27;
  --line: #2b313d;
  --text: #f5f7fb;
  --muted: #a6afbf;
  --soft: #7e8797;
  --accent: #f5f7fb;
  --accent-text: #101218;
  --danger: #ffb6b6;
  --success: #bdeecb;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 20% -10%, rgba(255,255,255,.06), transparent 36rem), var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}
.shell { width: min(850px, calc(100% - 32px)); margin: 0 auto; padding: 64px 0 42px; }
.hero { margin-bottom: 30px; }
.eyebrow { color: var(--muted); font-size: .76rem; letter-spacing: .16em; font-weight: 750; margin-bottom: 10px; }
h1 { margin: 0; font-size: clamp(2.5rem, 8vw, 5.4rem); line-height: .98; letter-spacing: -.055em; }
.hero p { margin: 18px 0 0; max-width: 610px; color: var(--muted); font-size: 1.05rem; }
.card { background: rgba(21,24,31,.94); border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 5vw, 32px); margin: 18px 0; }
.card h2 { margin: 0 0 8px; font-size: 1.35rem; letter-spacing: -.015em; }
.muted { color: var(--muted); margin: 0 0 22px; }
.hidden { display: none !important; }
label { display: grid; gap: 8px; font-weight: 650; font-size: .95rem; }
.field { align-content: start; }
.field-label { display: inline-flex; align-items: baseline; gap: 6px; min-height: 1.25em; }
.field-help { display: block; min-height: 2.45em; line-height: 1.35; }
input, textarea { width: 100%; border: 1px solid var(--line); border-radius: 11px; background: #101319; color: var(--text); padding: 13px 14px; font: inherit; outline: none; }
input:focus, textarea:focus { border-color: #687386; box-shadow: 0 0 0 3px rgba(255,255,255,.06); }
small, .optional { color: var(--soft); font-weight: 450; }
.optional { font-size: .88em; white-space: nowrap; }
.fields { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; row-gap: 20px; }
.full { grid-column: 1 / -1; }
.full .field-help { min-height: 0; }
button { appearance: none; border: 0; border-radius: 11px; min-height: 44px; padding: 11px 16px; font: inherit; font-weight: 720; cursor: pointer; }
button:disabled { opacity: .45; cursor: not-allowed; }
.primary { background: var(--accent); color: var(--accent-text); margin-top: 16px; }
.wide { width: 100%; margin-top: 22px; }
.secondary { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); }
.text-button { background: transparent; color: var(--muted); padding: 6px; min-height: auto; }
.danger { color: var(--danger); margin-top: 18px; }
.error { color: #ffbcbc; min-height: 1.4em; margin-bottom: 0; }
.section-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.pill { border: 1px solid var(--line); background: var(--panel-2); color: var(--muted); border-radius: 999px; padding: 6px 10px; font-size: .8rem; }
.drop-zone { margin-top: 24px; min-height: 220px; border: 1.5px dashed #434b5a; border-radius: 16px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 7px; text-align: center; padding: 24px; transition: .15s ease; }
.drop-zone.drag { border-color: #d7dce5; background: rgba(255,255,255,.035); }
.drop-icon { font-size: 2.2rem; line-height: 1; color: var(--muted); }
.drop-zone span { color: var(--muted); }
.picker-row { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; justify-content: center; }
.selection { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 16px; }
.selection-head { display: flex; justify-content: space-between; align-items: center; }
.file-list, .upload-list { margin-top: 12px; display: grid; gap: 8px; max-height: 330px; overflow: auto; }
.file-row, .upload-row { background: #11141a; border: 1px solid #242a34; border-radius: 10px; padding: 10px 12px; }
.file-row { display: flex; justify-content: space-between; gap: 16px; }
.file-name { min-width: 0; overflow-wrap: anywhere; }
.file-size { color: var(--muted); white-space: nowrap; }
.progress-track { height: 10px; background: #0e1116; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: #e9edf5; transition: width .2s ease; }
.upload-row-top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 7px; font-size: .9rem; }
.upload-mini { height: 5px; background: #222833; border-radius: 999px; overflow: hidden; }
.upload-mini > div { height: 100%; width: 0; background: #aeb8c8; }
.upload-status { color: var(--muted); white-space: nowrap; }
.success { text-align: center; padding-block: 42px; }
.done-mark { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 999px; background: var(--success); color: #0d2514; font-size: 1.5rem; font-weight: 900; margin: 0 auto 16px; }
footer { text-align: center; color: #727c8c; font-size: .82rem; padding-top: 18px; }
@media (max-width: 640px) {
  .shell { padding-top: 36px; }
  .fields { grid-template-columns: 1fr; }
  .full { grid-column: auto; }
  .field-help { min-height: 0; }
  .section-head { align-items: flex-start; }
  .file-row { display: grid; gap: 3px; }
}
