:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --panel: #ffffff;
  --text: #111827;
  --muted: #66728a;
  --line: #dbe2ef;
  --blue: #3169e8;
  --blue-soft: #edf3ff;
  --blue-line: #abc5ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 800;
}

.brand-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
}

.brand-icon svg,
.upload-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #33405a;
  font-size: 14px;
  font-weight: 600;
}

.button.small {
  color: #fff;
  background: var(--blue);
  padding: 14px 20px;
  border-radius: 7px;
}

.page {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  text-align: center;
  padding: 52px 0 28px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 42px);
  line-height: 1.1;
  letter-spacing: 0;
}

.hero p {
  margin: 0 0 48px;
  color: #53607a;
  font-size: 17px;
}

.upload-box {
  margin: 0 auto;
  width: min(720px, 100%);
}

.upload-box input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-label {
  min-height: 268px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--blue-soft);
  border: 2px dashed var(--blue-line);
  border-radius: 16px;
  cursor: pointer;
}

.upload-icon {
  color: var(--blue);
  margin-bottom: 8px;
}

.upload-icon svg {
  width: 54px;
  height: 54px;
  stroke-width: 1.8;
}

.upload-label strong {
  font-size: 19px;
}

.upload-label span {
  color: #53607a;
  font-size: 15px;
}

.upload-label em {
  margin-top: 8px;
  display: inline-block;
  padding: 12px 20px;
  background: var(--blue);
  color: #fff;
  border-radius: 7px;
  font-style: normal;
  font-weight: 800;
  font-size: 14px;
}

.stats {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin: 28px 0 36px;
  color: #8a95aa;
  font-size: 14px;
}

.stats strong {
  color: var(--text);
}

.recent {
  width: min(720px, 100%);
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
}

.recent h2 {
  margin: 0;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  color: #53607a;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.recent ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.recent li {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 66px;
  padding: 12px 22px;
  border-bottom: 1px solid var(--line);
}

.recent li:last-child {
  border-bottom: 0;
}

.badge {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.red { background: #ef4444; }
.amber { background: #f59e0b; }
.green { background: #16a34a; }
.blue { background: var(--blue); }

.file-main {
  display: grid;
  gap: 3px;
  text-align: left;
}

.file-main strong {
  font-size: 15px;
}

.file-main small,
.expires {
  color: #8a95aa;
  font-size: 13px;
}

.footer {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 36px 16px 54px;
  color: #6f7b92;
  font-size: 14px;
}

.footer a::before {
  content: "·";
  margin-right: 6px;
}

@media (max-width: 640px) {
  .topbar {
    padding-top: 24px;
    align-items: flex-start;
  }

  .nav {
    gap: 14px;
    font-size: 13px;
  }

  .button.small {
    padding: 10px 12px;
  }

  .hero {
    padding-top: 34px;
  }

  .upload-label {
    min-height: 230px;
  }

  .stats {
    flex-direction: column;
    gap: 8px;
  }

  .recent li {
    grid-template-columns: 38px 1fr;
  }

  .expires {
    grid-column: 2;
  }
}
