:root {
  color-scheme: light;
  font-family: "SF Pro Display", "Geist Sans", "Helvetica Neue", Arial, sans-serif;
  background: #f7f6f3;
  color: #2f3437;
  --canvas: #f7f6f3;
  --surface: #ffffff;
  --surface-soft: #f9f9f8;
  --ink: #111111;
  --text: #2f3437;
  --muted: #787774;
  --border: #eaeaea;
  --green-bg: #edf3ec;
  --green-text: #346538;
  --yellow-bg: #fbf3db;
  --red-text: #9f2f2d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(149, 100, 0, 0.05), transparent 32%),
    linear-gradient(180deg, #fbfbfa 0%, var(--canvas) 100%);
}

.shell {
  width: min(980px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green-text);
  font-family: "Geist Mono", "SF Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: "Newsreader", "Instrument Serif", Georgia, serif;
  color: var(--ink);
}

h1 {
  font-size: clamp(46px, 7vw, 76px);
  line-height: 0.98;
  margin: 0;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.03em;
}

p {
  margin: 18px 0 0;
  max-width: 560px;
  color: var(--muted);
  line-height: 1.7;
}

.drop-zone {
  min-height: 420px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding: 56px 28px;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.drop-zone.dragging {
  border-color: #b8c8b4;
  background: #fbfbfa;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.drop-mark {
  width: 72px;
  height: 52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 28px;
}

.drop-mark span {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--green-bg);
}

.drop-mark span:nth-child(2) {
  background: var(--yellow-bg);
}

.drop-mark span:nth-child(3) {
  background: #ffffff;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  justify-content: center;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--ink);
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}

.button:hover {
  background: #333333;
}

.button:active {
  transform: scale(0.98);
}

.button.secondary {
  border-color: var(--border);
  background: var(--surface-soft);
  color: var(--text);
}

.text-button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

.status {
  margin-top: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px;
}

.summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  font-weight: 700;
}

.progress {
  height: 10px;
  background: #efefed;
  border-radius: 4px;
  margin-top: 14px;
  overflow: hidden;
}

.progress > div {
  width: 0%;
  height: 100%;
  background: var(--ink);
  transition: width 160ms ease;
}

.queue {
  margin-top: 14px;
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
}

.item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-soft);
  font-size: 13px;
}

.item-name {
  overflow-wrap: anywhere;
}

.item-state {
  color: var(--muted);
  white-space: nowrap;
}

.item.failed .item-state {
  color: var(--red-text);
}

.auth-page {
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-shell {
  width: min(420px, 100%);
}

.auth-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 34px;
}

.auth-card h1 {
  font-size: clamp(40px, 10vw, 62px);
}

.auth-copy {
  margin-bottom: 26px;
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.login-form input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fbfbfa;
  color: var(--text);
  font: inherit;
  padding: 0 12px;
}

.login-form input:focus {
  outline: 2px solid var(--green-bg);
  border-color: #b8c8b4;
}

.reveal {
  animation: reveal 600ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100vw - 20px, 1040px);
    padding: 28px 0;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
    margin-bottom: 28px;
  }

  .drop-zone {
    min-height: 340px;
    padding: 40px 18px;
  }

  .summary,
  .item {
    grid-template-columns: 1fr;
  }
}
