:root {
  color-scheme: light;
  --ink: #151f24;
  --muted: #596970;
  --paper: #eff4f2;
  --panel: #ffffff;
  --line: #d4dedc;
  --blue: #245c7d;
  --oak: #355f3f;
  --heat: #b95b33;
  --ok: #2f7d38;
  --warn: #a75819;
  --bad: #b5342e;
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(140deg, rgba(36, 92, 125, 0.14), transparent 34rem),
    linear-gradient(220deg, rgba(185, 91, 51, 0.11), transparent 32rem),
    linear-gradient(180deg, #fbfdfc 0%, var(--paper) 100%);
  color: var(--ink);
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.shell {
  width: min(1060px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.site-header,
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.site-header {
  padding: 24px 0;
}

.brand {
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

nav a,
.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 750;
}

nav a {
  color: var(--muted);
}

nav a:hover,
nav a:focus-visible {
  background: rgba(36, 92, 125, 0.12);
  color: var(--ink);
  outline: none;
}

main {
  flex: 1;
  padding: 48px 0 72px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--heat);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(3.3rem, 9vw, 6.6rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.lead {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.62;
}

.drop-panel {
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid rgba(21, 31, 36, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 42px rgba(21, 31, 36, 0.1);
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 780;
}

.field input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
}

.field input:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(36, 92, 125, 0.16);
}

.drop-zone {
  min-height: 178px;
  border: 2px dashed rgba(36, 92, 125, 0.34);
  border-radius: var(--radius);
  background:
    linear-gradient(140deg, rgba(36, 92, 125, 0.08), transparent),
    #fbfdfc;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 22px;
  text-align: center;
  cursor: pointer;
}

.drop-zone.dragging {
  border-color: var(--heat);
  background: rgba(185, 91, 51, 0.12);
}

.drop-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.drop-title {
  color: var(--ink);
  font-size: 1.32rem;
  font-weight: 850;
}

.drop-meta {
  color: var(--muted);
  font-size: 0.94rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  border: none;
  cursor: pointer;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.button-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 14px 26px rgba(36, 92, 125, 0.24);
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
}

.status-line {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.status-line.ok {
  color: var(--ok);
}

.status-line.bad {
  color: var(--bad);
}

.queue-section {
  margin-top: 48px;
}

.section-heading {
  margin-bottom: 16px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
}

.file-list {
  display: grid;
  gap: 10px;
}

.empty,
.file-row {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
}

.empty {
  margin: 0;
  padding: 18px;
  color: var(--muted);
  font-weight: 720;
}

.file-row {
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.file-name {
  display: block;
  overflow-wrap: anywhere;
  font-weight: 820;
}

.file-meta {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.file-state {
  min-width: 7ch;
  color: var(--muted);
  font-weight: 850;
  text-align: right;
}

.file-state.ok {
  color: var(--ok);
}

.file-state.bad {
  color: var(--bad);
}

.progress {
  grid-column: 1 / -1;
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe8e4;
}

.progress span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
  transition: width 160ms ease;
}

.site-footer {
  padding: 24px 0 34px;
  border-top: 1px solid rgba(21, 31, 36, 0.1);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer a {
  font-weight: 800;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--ink);
  outline: none;
}

@media (max-width: 780px) {
  .site-header,
  .site-footer,
  .hero {
    display: grid;
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 24px, 1060px);
  }

  main {
    padding-top: 24px;
  }

  .file-row {
    grid-template-columns: 1fr;
  }

  .file-state {
    text-align: left;
  }
}
