:root {
  --accent: #41719c;
  --accent-dark: #2f587c;
  --ink: #17324a;
  --muted: #64748b;
  --line: #d9e2ec;
  --danger: #b42318;
  --success: #147a45;
  --card: #ffffff;
  --shadow: 0 22px 55px rgba(30, 54, 82, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 12%, rgba(65, 113, 156, 0.16), transparent 32%),
    radial-gradient(circle at 85% 20%, rgba(131, 168, 199, 0.18), transparent 30%),
    linear-gradient(135deg, #f6f9fc 0%, #edf3f8 100%);
}

.upload-shell {
  width: min(85vw, 980px);
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  align-items: center;
  padding: 34px 0;
}

.upload-card {
  width: 100%;
  background: var(--card);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 42px);
}

.brand-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.brand-logo {
  width: 118px;
  max-height: 78px;
  object-fit: contain;
  display: block;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  letter-spacing: 0;
}

.logout-link {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
}

.login-form,
.upload-form {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span,
.confirm-row span {
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(65, 113, 156, 0.18);
}

.combo {
  position: relative;
}

.combo-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  display: none;
  max-height: 280px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(20, 44, 68, 0.18);
}

.combo-results.open {
  display: block;
}

.combo-option {
  width: 100%;
  min-height: 52px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid #eef3f7;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.combo-option:hover,
.combo-option:focus {
  background: #eef5fb;
  outline: none;
}

.combo-option strong {
  display: block;
  font-size: 0.98rem;
}

.combo-option small,
.field small,
.file-summary,
.drop-zone span {
  color: var(--muted);
}

.notice {
  border: 1px solid #d7e4ef;
  background: #f5f9fc;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 18px;
}

.notice.error,
.result-box.error {
  border-color: #f1b7b2;
  background: #fff5f4;
  color: var(--danger);
}

.notice.checklist ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.drop-zone {
  position: relative;
  min-height: 158px;
  border: 2px dashed #9eb8cf;
  border-radius: 8px;
  display: grid;
  place-items: center;
  text-align: center;
  background: #f8fbfd;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.drop-zone.drag-over {
  border-color: var(--accent);
  background: #eef6fc;
}

.drop-zone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.drop-zone strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.file-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.95rem;
}

.file-status {
  display: grid;
  gap: 8px;
}

.file-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid #e7eef5;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fbfdff;
}

.status-pill {
  min-width: 112px;
  text-align: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #40566d;
  background: #eaf0f5;
}

.status-pill.uploading {
  color: var(--accent-dark);
  background: #e5f1fa;
}

.confirm-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.confirm-row input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.progress-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.progress-bar {
  height: 13px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe9f1;
}

.progress-bar span {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--accent);
  transition: width 0.15s ease;
}

.result-box {
  display: none;
  border: 1px solid #b8dec9;
  background: #f1fbf5;
  color: var(--success);
  border-radius: 8px;
  padding: 14px 16px;
  font-weight: 700;
}

.result-box.show {
  display: block;
}

.result-box ul {
  margin: 8px 0 0;
  padding-left: 20px;
  font-weight: 400;
}

.primary-button {
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(65, 113, 156, 0.22);
}

.primary-button:hover,
.primary-button:focus {
  background: var(--accent-dark);
  outline: none;
}

.primary-button:disabled {
  opacity: 0.58;
  cursor: wait;
}

@media (max-width: 720px) {
  .upload-shell {
    width: min(94vw, 980px);
    padding: 16px 0;
  }

  .upload-card {
    padding: 20px;
  }

  .brand-header {
    grid-template-columns: 1fr;
  }

  .brand-logo {
    width: 104px;
  }

  .logout-link {
    justify-self: start;
  }

  .file-summary {
    display: grid;
  }
}
