:root {
  --bg: #080b0f;
  --panel: rgba(20, 25, 31, .78);
  --panel-solid: #12171d;
  --line: rgba(255, 255, 255, .09);
  --muted: #8d98a5;
  --text: #f4f7fa;
  --accent: #bdff48;
  --accent-dark: #18230c;
  --danger: #ff6b75;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: radial-gradient(circle at 70% -20%, #223313 0, transparent 37%), var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button { color: inherit; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.ambient { position: fixed; border-radius: 50%; filter: blur(100px); opacity: .08; pointer-events: none; }
.ambient-one { width: 320px; height: 320px; background: var(--accent); right: -120px; top: 28%; }
.ambient-two { width: 240px; height: 240px; background: #49a7ff; left: -150px; bottom: 5%; }
.shell { width: min(1120px, calc(100% - 40px)); margin: auto; padding: 28px 0 80px; position: relative; }
.masthead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 92px; }
.brand { color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 12px; }
.brand .mark { width: 39px; height: 39px; border: 1px solid #405025; color: var(--accent); display: grid; place-items: center; border-radius: 12px; font-weight: 800; transform: rotate(-4deg); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; letter-spacing: .01em; }
.brand small { color: var(--muted); font-size: 9px; letter-spacing: .2em; margin-top: 2px; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .18em; font-size: 11px; font-weight: 700; margin: 0 0 14px; }
h1 { font-size: clamp(42px, 6vw, 72px); line-height: .99; letter-spacing: -.055em; margin: 0; font-weight: 650; }
h1 span { color: #7b858f; }
.hero { display: grid; grid-template-columns: 1.4fr .6fr; gap: 50px; align-items: end; margin-bottom: 42px; }
.hero-note { margin: 0 0 4px; color: var(--muted); line-height: 1.65; font-size: 14px; max-width: 390px; }
.panel { border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); box-shadow: 0 24px 80px rgba(0,0,0,.24); backdrop-filter: blur(18px); }
.uploader { padding: 12px; }
.drop-zone { border: 1px dashed #3d4852; border-radius: 13px; min-height: 254px; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: .2s ease; outline: none; }
.drop-zone:hover, .drop-zone:focus-visible, .drop-zone.dragging { border-color: var(--accent); background: rgba(189,255,72,.035); }
.upload-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--accent-dark); color: var(--accent); display: grid; place-items: center; font-size: 25px; margin-bottom: 18px; }
.drop-zone h2 { font-size: 20px; margin: 0 0 7px; }
.drop-zone p { color: var(--muted); margin: 0; font-size: 14px; }
.drop-zone > span { color: #69737e; font-size: 12px; margin-top: 14px; }
.text-button { border: 0; padding: 0; background: none; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.notice { margin: 12px 4px 1px; color: #7f8994; font-size: 12px; display: flex; align-items: center; gap: 8px; }
.notice span { width: 17px; height: 17px; border: 1px solid #424a52; border-radius: 50%; display: inline-grid; place-items: center; font-size: 10px; }
.queue { padding: 8px 8px 3px; }
.queue-item { border-bottom: 1px solid var(--line); padding: 12px 3px; }
.queue-top { display: flex; justify-content: space-between; gap: 20px; font-size: 13px; margin-bottom: 8px; }
.queue-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue-state { color: var(--muted); flex: none; }
.queue-state.error { color: var(--danger); }
.progress { height: 3px; background: #252c33; border-radius: 5px; overflow: hidden; }
.progress > div { height: 100%; width: 0; background: var(--accent); transition: width .15s ease; }
.files-section { margin-top: 76px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 18px; }
.section-heading h2 { margin: 0; font-size: 27px; letter-spacing: -.03em; }
.section-heading .eyebrow { margin-bottom: 7px; }
.button, .icon-button { border: 1px solid var(--line); background: #171c22; border-radius: 10px; cursor: pointer; transition: .15s ease; }
.button { padding: 10px 16px; font-size: 13px; }
.button:hover, .icon-button:hover { border-color: #53606b; transform: translateY(-1px); }
.button.primary { color: #101407; border-color: var(--accent); background: var(--accent); font-weight: 750; }
.button.subtle { color: #aeb7c0; }
.icon-button { width: 38px; height: 38px; color: var(--muted); font-size: 20px; }
.table-wrap { overflow: hidden; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { color: #6f7a85; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; text-align: left; font-weight: 650; padding: 16px 20px; border-bottom: 1px solid var(--line); }
td { padding: 18px 20px; border-bottom: 1px solid var(--line); color: #aab3bc; }
tbody tr:last-child td { border-bottom: 0; }
.file-cell { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 550; max-width: 440px; }
.file-cell span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-badge { width: 34px; height: 38px; border: 1px solid #343d46; border-radius: 7px; display: grid; place-items: center; color: var(--accent); font-size: 9px; text-transform: uppercase; flex: none; }
.actions { display: flex; justify-content: flex-end; gap: 7px; }
.action { border: 0; background: transparent; color: #9da7b0; cursor: pointer; padding: 6px 7px; border-radius: 6px; font-size: 12px; }
.action:hover { color: var(--text); background: rgba(255,255,255,.06); }
.action.delete:hover { color: var(--danger); }
.empty { text-align: center; padding: 55px 20px; color: var(--muted); }
.empty span { color: var(--accent); font-size: 28px; }
.status { min-height: 20px; color: var(--muted); font-size: 13px; }
.files-section > .status { margin: -9px 0 8px; min-height: 0; }
.login-wrap { min-height: 52vh; display: grid; grid-template-columns: 1fr .75fr; gap: 90px; align-items: center; }
.login-copy > p:last-child { color: var(--muted); max-width: 420px; line-height: 1.7; margin-top: 28px; }
.login-card { padding: 26px; }
.login-card label { display: block; font-size: 12px; color: #aab2ba; margin-bottom: 9px; }
.password-row { display: flex; gap: 10px; }
.password-row input { width: 100%; min-width: 0; background: #0a0e12; border: 1px solid #343d46; border-radius: 10px; color: var(--text); padding: 12px 13px; outline: none; }
.password-row input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(189,255,72,.08); }
.toast { position: fixed; right: 24px; bottom: 24px; background: #e9f2dd; color: #17200e; padding: 12px 16px; border-radius: 10px; font-size: 13px; font-weight: 650; opacity: 0; transform: translateY(10px); pointer-events: none; transition: .2s; box-shadow: 0 14px 45px rgba(0,0,0,.35); }
.toast.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 760px) {
  .shell { width: min(100% - 24px, 620px); padding-top: 18px; }
  .masthead { margin-bottom: 58px; }
  .hero, .login-wrap { grid-template-columns: 1fr; gap: 28px; }
  .hero-note { margin-top: 4px; }
  .drop-zone { min-height: 225px; }
  .files-section { margin-top: 55px; }
  th:nth-child(2), td:nth-child(2), th:nth-child(3), td:nth-child(3) { display: none; }
  th, td { padding: 15px 13px; }
  .file-cell { max-width: 48vw; }
  .actions { gap: 1px; }
  .action { font-size: 0; }
  .action::first-letter { font-size: 14px; }
  .password-row { flex-direction: column; }
}

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