:root {
  color-scheme: dark;
  --ink: #f4f1ea;
  --muted: #a8a49d;
  --paper: #11110f;
  --panel: #191917;
  --line: #34332f;
  --acid: #d8ff47;
  --coral: #ff765e;
  --green: #7ee0a2;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--paper); }
button, input { font: inherit; }
button { color: inherit; }

.site-header {
  min-height: 76px;
  padding: 0 5vw;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark { color: var(--ink); text-decoration: none; font-size: 1.05rem; font-weight: 800; letter-spacing: -.03em; display: flex; gap: 12px; align-items: center; }
.mini-mark { height: 22px; display: flex; gap: 3px; align-items: flex-end; }
.mini-mark i { display: block; width: 3px; background: var(--acid); border-radius: 2px; }
.mini-mark i:nth-child(1) { height: 9px; }
.mini-mark i:nth-child(2) { height: 20px; }
.mini-mark i:nth-child(3) { height: 14px; }
.mini-mark i:nth-child(4) { height: 6px; }
.account { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: .85rem; }
.text-button { padding: 0; border: 0; background: none; cursor: pointer; color: var(--ink); border-bottom: 1px solid var(--muted); }

.upload-shell {
  width: min(1180px, 90vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(50px, 8vw, 130px);
  padding: clamp(65px, 9vw, 130px) 0 90px;
}

.eyebrow, .step { margin: 0 0 18px; color: var(--acid); text-transform: uppercase; letter-spacing: .18em; font-size: .7rem; font-weight: 800; }
.intro h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.2rem, 6.2vw, 6.6rem); font-weight: 400; line-height: .9; letter-spacing: -.055em; margin: 0 0 36px; }
.intro h1 em { color: var(--acid); }
.intro > p:last-child { max-width: 430px; color: var(--muted); line-height: 1.75; }

.upload-panel { background: var(--panel); border: 1px solid var(--line); padding: clamp(24px, 3vw, 44px); box-shadow: 16px 16px 0 #0b0b0a; }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 30px; }
.panel-heading .step { margin-bottom: 8px; }
.panel-heading h2 { margin: 0; font-family: Georgia, serif; font-size: 2rem; font-weight: 400; }
.limit { color: var(--muted); font-size: .72rem; }

.drop-zone { width: 100%; min-height: 265px; border: 1px dashed #58564e; background: #141412; display: flex; flex-direction: column; justify-content: center; align-items: center; cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.drop-zone:hover, .drop-zone.dragging { border-color: var(--acid); background: #1b1d15; transform: translateY(-2px); }
.upload-icon { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--acid); border-radius: 50%; color: var(--acid); font-size: 1.4rem; margin-bottom: 20px; }
.drop-zone strong { font-family: Georgia, serif; font-size: 1.45rem; font-weight: 400; }
.drop-zone > span:not(.upload-icon) { color: var(--muted); margin: 6px 0 24px; font-size: .85rem; }
.drop-zone small { color: #77746d; font-size: .65rem; letter-spacing: .15em; }

.metadata-options { border-bottom: 1px solid var(--line); }
.metadata-options summary { padding: 20px 0; cursor: pointer; font-size: .8rem; }
.metadata-options summary span { color: var(--muted); float: right; }
.metadata-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: 22px; }
label > span { display: block; color: var(--muted); font-size: .72rem; margin-bottom: 8px; }
input { width: 100%; border: 1px solid var(--line); color: var(--ink); background: #10100f; padding: 13px 14px; outline: none; }
input:focus { border-color: var(--acid); }

.queue-section { margin-top: 28px; }
.queue-title { display: flex; justify-content: space-between; align-items: center; }
.queue-title .step { margin: 0; }
.queue-title > span { color: var(--muted); font-size: .72rem; }
.queue { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 8px; }
.queue li { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 15px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.queue li > div:first-child { min-width: 0; display: flex; flex-direction: column; }
.queue li strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .82rem; }
.queue li div > span { color: var(--muted); font-size: .68rem; margin-top: 4px; }
.file-status { color: var(--muted); font-size: .7rem; text-align: right; }
.complete .file-status { color: var(--green); }
.failed .file-status { color: var(--coral); max-width: 190px; }
.progress { position: absolute; height: 2px; bottom: 0; left: 0; right: 0; background: #252521; }
.progress span { display: block; width: 0; height: 100%; background: var(--acid); transition: width .15s; }
.failed .progress span { background: var(--coral); }

.primary-button { width: 100%; border: 0; padding: 16px 22px; font-weight: 800; background: var(--acid); color: #111; cursor: pointer; transition: filter .2s, transform .2s; }
.primary-button:hover { filter: brightness(.9); transform: translateY(-1px); }
.primary-button:disabled { cursor: default; opacity: .55; transform: none; }
.announcement, .alert { margin-top: 18px; padding: 14px 16px; font-size: .8rem; line-height: 1.5; border-left: 3px solid var(--green); background: #19221b; }
.announcement.error, .alert.error { border-color: var(--coral); background: #271a17; }

footer { width: 90vw; min-height: 70px; margin: auto; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; color: #74716b; text-transform: uppercase; letter-spacing: .1em; font-size: .61rem; }

.login-page { background: radial-gradient(circle at 68% 35%, #292c1d 0, #11110f 37%); }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 28px; }
.login-card { width: min(440px, 100%); background: var(--panel); border: 1px solid var(--line); padding: clamp(32px, 6vw, 58px); box-shadow: 18px 18px 0 #090908; }
.brand-mark { height: 56px; display: flex; gap: 6px; align-items: center; margin-bottom: 40px; }
.brand-mark span { width: 6px; background: var(--acid); border-radius: 4px; }
.brand-mark span:nth-child(1) { height: 22px; }
.brand-mark span:nth-child(2) { height: 50px; }
.brand-mark span:nth-child(3) { height: 34px; }
.brand-mark span:nth-child(4) { height: 14px; }
.login-card h1 { font-family: Georgia, serif; font-weight: 400; font-size: 2.6rem; line-height: 1; letter-spacing: -.04em; margin: 0 0 18px; }
.lede { color: var(--muted); line-height: 1.6; font-size: .9rem; margin-bottom: 30px; }
.login-form { display: grid; gap: 18px; }
.login-form .primary-button { margin-top: 6px; }

@media (max-width: 820px) {
  .upload-shell { grid-template-columns: 1fr; gap: 45px; padding-top: 60px; }
  .intro h1 { font-size: clamp(3.5rem, 15vw, 5.5rem); }
  .intro > p:last-child { max-width: 560px; }
}

@media (max-width: 520px) {
  .site-header { padding: 0 6vw; }
  .account > span { display: none; }
  .upload-shell { width: 88vw; }
  .upload-panel { padding: 22px; box-shadow: 9px 9px 0 #0b0b0a; }
  .panel-heading { align-items: flex-start; }
  .limit { max-width: 80px; text-align: right; }
  .drop-zone { min-height: 230px; }
  .metadata-grid { grid-template-columns: 1fr; }
  footer { align-items: flex-start; padding: 24px 0; gap: 12px; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
