.site-header {
  color: var(--text-on-dark);
  background: var(--brand-burgundy-900);
  border-bottom: 1px solid rgb(223 174 82 / 42%);
}

.site-header__inner {
  display: flex;
  width: min(100% - 2rem, var(--content-width));
  min-height: 104px;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.25rem);
  color: var(--text-on-dark);
  text-decoration: none;
}

.brand:hover {
  color: var(--brand-gold-200);
}

.brand__mark {
  display: grid;
  flex: 0 0 auto;
  width: 80px;
  height: 80px;
  padding: 8px;
  place-items: center;
}

.brand__logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.brand__title {
  display: grid;
  gap: 0.1rem;
}

.brand__name {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.8vw, 1.75rem);
  font-weight: 700;
  line-height: 1;
}

.brand__season {
  color: var(--brand-gold-200);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  min-height: 44px;
  padding: 0.7rem 1.15rem;
  align-items: center;
  justify-content: center;
  color: var(--text-on-dark);
  background: var(--brand-burgundy-700);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  color: var(--text-on-dark);
  background: var(--brand-burgundy-500);
}

.button--primary {
  color: var(--text-primary);
  background: var(--brand-gold-400);
  border-color: var(--brand-gold-600);
}

.button--primary:hover {
  color: var(--text-primary);
  background: var(--brand-gold-200);
}

.stack {
  display: grid;
  gap: 1rem;
}

.stack > * {
  margin-block: 0;
}

.panel {
  padding: clamp(1rem, 3vw, 1.5rem);
  background: var(--surface-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.eyebrow {
  color: var(--brand-burgundy-700);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.notice {
  padding: 0.85rem 1rem;
  color: var(--text-primary);
  background: rgb(223 174 82 / 18%);
  border: 1px solid rgb(183 121 31 / 35%);
  border-radius: var(--radius-sm);
}

.notice--error {
  color: var(--danger-700);
  background: rgb(163 41 41 / 10%);
  border-color: rgb(163 41 41 / 30%);
}

.completed-screen {
  width: min(100%, 46rem);
  margin-inline: auto;
  text-align: center;
}

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
}

.table-scroll table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
}

.card {
  padding: clamp(1rem, 3vw, 2rem);
  background: var(--surface-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.form-card {
  width: min(100%, 46rem);
  margin-inline: auto;
}

.message-card {
  width: min(100%, 46rem);
  margin-inline: auto;
  text-align: center;
}

.message-card p {
  margin-inline: auto;
}

.form-card h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
}

.form-stack,
.form-field {
  display: grid;
}

.form-stack {
  gap: 1rem;
}

.form-error {
  padding: 0.75rem 0.9rem;
  color: var(--danger-700);
  background: rgb(163 41 41 / 10%);
  border: 1px solid rgb(163 41 41 / 30%);
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.form-field {
  gap: 0.4rem;
}

.form-field label {
  font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.75rem;
  color: var(--text-primary);
  background: var(--surface-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  border-color: var(--brand-gold-600);
}

.form-control--code {
  max-width: 12rem;
  font-size: 1.35rem;
  letter-spacing: 0.3em;
}

.form-stack > .button {
  justify-self: start;
}

.status {
  display: inline-flex;
  min-height: 44px;
  padding: 0.55rem 0.8rem;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.status::before {
  width: 0.65rem;
  height: 0.65rem;
  border: 2px solid currentcolor;
  border-radius: 50%;
  content: "";
}

.status--success {
  color: var(--success-700);
  background: rgb(46 107 79 / 10%);
}

.status--danger {
  color: var(--danger-700);
  background: rgb(163 41 41 / 10%);
}

@media (max-width: 560px) {
  .site-header__inner {
    width: min(100% - 1rem, var(--content-width));
    min-height: 88px;
  }

  .brand__mark {
    width: 64px;
    height: 64px;
    padding: 6px;
  }

  .brand__logo {
    width: 52px;
    height: 52px;
  }

  .brand__season {
    letter-spacing: 0.08em;
  }

  .form-stack > .button {
    width: 100%;
  }
}
