:root {
  color-scheme: dark;
  --ink: #f6f7fb;
  --muted: #9aa4b2;
  --soft: #c9d0dc;
  --line: #253041;
  --line-strong: #344055;
  --surface: #111722;
  --surface-strong: #161e2b;
  --panel: #0b1018;
  --accent: #2dd4bf;
  --accent-strong: #14b8a6;
  --accent-soft: rgba(45, 212, 191, 0.12);
  --warning: #f2b84b;
  --danger: #f87171;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(45, 212, 191, 0.08), transparent 26rem),
    linear-gradient(90deg, rgba(242, 184, 75, 0.07), transparent 38rem),
    #070b12;
}

button,
input,
select {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 34px 0;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 16px;
  align-items: stretch;
}

.masthead,
.queue,
.dropzone,
.spoof-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 23, 34, 0.9);
  box-shadow: var(--shadow);
}

.masthead {
  min-height: 350px;
  padding: clamp(28px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 8ch;
  margin-bottom: 18px;
  font-size: clamp(3.25rem, 8.5vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.summary {
  max-width: 33rem;
  margin-bottom: 0;
  color: var(--soft);
  font-size: clamp(1.02rem, 1.8vw, 1.22rem);
  line-height: 1.55;
}

.dropzone {
  position: relative;
  min-height: 350px;
  padding: 28px;
  display: grid;
  place-items: center;
  text-align: center;
  border-style: dashed;
  background:
    linear-gradient(180deg, rgba(45, 212, 191, 0.08), transparent),
    rgba(11, 16, 24, 0.94);
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.dropzone.is-dragging {
  transform: translateY(-2px);
  border-color: var(--accent);
  background:
    linear-gradient(180deg, rgba(45, 212, 191, 0.16), transparent),
    rgba(14, 24, 34, 0.98);
}

.dropzone input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}

.drop-copy {
  display: grid;
  justify-items: center;
  gap: 11px;
}

.drop-copy strong {
  max-width: 15ch;
  color: var(--ink);
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.08;
}

.drop-copy span:last-child {
  max-width: 31rem;
  color: var(--muted);
  line-height: 1.5;
}

.upload-icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(45, 212, 191, 0.32);
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-soft);
}

.upload-icon svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

.primary-button,
.ghost-button,
.download-link {
  min-height: 42px;
  border-radius: 6px;
  border: 1px solid transparent;
  padding: 0 16px;
  cursor: pointer;
  font-weight: 850;
}

.primary-button {
  align-self: end;
  color: #04110f;
  background: var(--accent);
}

.primary-button:hover {
  background: #5eead4;
}

.queue,
.spoof-panel {
  grid-column: 1 / -1;
  padding: 22px;
}

.spoof-header,
.queue-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.spoof-header h2,
.queue-header h2 {
  margin: 0;
  font-size: 1.12rem;
}

.spoof-header .eyebrow {
  margin-bottom: 6px;
}

.profile-grid,
.unique-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.profile-grid label,
.unique-fields label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.unique-fields,
.inline-fields {
  grid-column: 1 / -1;
}

.inline-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.inline-fields[hidden] {
  display: none;
}

.profile-grid input,
.profile-grid select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 0 12px;
  color: var(--ink);
  background: #090e16;
  outline: none;
}

.profile-grid input:focus,
.profile-grid select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.14);
}

.profile-grid select option {
  color: var(--ink);
  background: #090e16;
}

.queue-header {
  margin-bottom: 12px;
}

.ghost-button {
  color: var(--soft);
  background: #0a1018;
  border-color: var(--line-strong);
}

.ghost-button:hover {
  color: var(--ink);
  border-color: var(--accent);
}

.status {
  min-height: 24px;
  color: var(--muted);
}

.file-list {
  list-style: none;
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 14px 0 0;
}

.file-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 66px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.file-name {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-weight: 850;
}

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

.download-link {
  display: inline-grid;
  place-items: center;
  min-width: 124px;
  color: #04110f;
  text-decoration: none;
  background: var(--accent);
}

.download-link:hover {
  background: #5eead4;
}

.file-row.is-error {
  border-color: rgba(248, 113, 113, 0.48);
}

.file-row.is-error .file-meta {
  color: var(--danger);
}

@media (max-width: 820px) {
  .shell {
    width: min(100% - 20px, 640px);
    padding: 10px 0;
  }

  .workspace {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .masthead,
  .dropzone {
    min-height: auto;
  }

  .masthead {
    padding: 30px 22px;
  }

  .dropzone {
    padding: 24px 16px;
  }

  h1 {
    font-size: clamp(3rem, 18vw, 4.7rem);
  }

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

  .spoof-header,
  .queue-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-grid,
  .unique-fields,
  .inline-fields {
    grid-template-columns: 1fr;
  }

  .download-link {
    width: 100%;
  }
}
