:root {
  --bg: #090c10;
  --panel: #11161d;
  --panel-2: #171e27;
  --text: #f3f6f8;
  --muted: #96a2af;
  --line: #28323e;
  --accent: #53e0b2;
  --accent-ink: #07130f;
  --danger: #ff7b84;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 0%, rgba(83, 224, 178, .10), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shell { width: min(900px, calc(100% - 32px)); margin: 0 auto; padding: 72px 0; }
header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.eyebrow { margin: 0 0 7px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .2em; }
h1 { margin: 0; font-size: clamp(32px, 6vw, 54px); letter-spacing: -.045em; }
.card, .file { border: 1px solid var(--line); background: rgba(17, 22, 29, .92); border-radius: 16px; }
.login-card { max-width: 620px; padding: 28px; }
label { display: block; margin-bottom: 10px; color: var(--muted); font-size: 14px; font-weight: 650; }
.login-row { display: flex; gap: 10px; }
input { min-width: 0; flex: 1; padding: 13px 14px; border: 1px solid #354252; border-radius: 10px; outline: 0; background: #0a0f14; color: var(--text); font: inherit; }
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(83, 224, 178, .12); }
button, .fallback { border: 0; border-radius: 10px; padding: 12px 17px; background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 750; cursor: pointer; text-decoration: none; white-space: nowrap; }
button:hover, .fallback:hover { filter: brightness(1.08); }
button:disabled { cursor: wait; opacity: .6; }
.ghost { border: 1px solid var(--line); background: transparent; color: var(--muted); }
.file-list { display: grid; gap: 14px; }
.file { padding: 22px; overflow: hidden; }
.file-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.filename { margin: 0 0 7px; overflow-wrap: anywhere; font-size: 17px; font-weight: 720; }
.meta, .stats { color: var(--muted); font-size: 13px; }
.download-button { min-width: 108px; }
.download-button.pause { border: 1px solid #465363; background: var(--panel-2); color: var(--text); }
.progress-wrap { margin-top: 18px; }
.progress-track { height: 8px; overflow: hidden; border-radius: 10px; background: #252e38; }
.progress-bar { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #36c69b, #75f1ca); transition: width .15s linear; }
.stats { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px; margin-top: 9px; }
.status { color: var(--text); }
.error { min-height: 1.25em; margin: 12px 0 0; color: var(--danger); font-size: 14px; }
.notice { margin-bottom: 18px; padding: 14px 16px; border: 1px solid #554b2b; border-radius: 10px; background: #201d12; color: #e9d997; }
.empty { padding: 48px 0; color: var(--muted); text-align: center; }
.hidden { display: none !important; }

@media (max-width: 600px) {
  .shell { width: min(100% - 22px, 900px); padding: 38px 0; }
  header { align-items: center; }
  .login-row, .file-top { align-items: stretch; flex-direction: column; }
  .file-top { gap: 17px; }
  .download-button { width: 100%; }
  .login-card, .file { padding: 18px; }
}
