:root {
  --ink: #21171a;
  --muted: #71666a;
  --wine: #94233a;
  --wine-dark: #741529;
  --wine-soft: #fbf0f2;
  --rose-line: #edd8dc;
  --paper: #fffdfc;
  --canvas: #f8f4f2;
  --green: #15735a;
  --amber: #9a6111;
  --red: #b32639;
  --shadow: 0 18px 60px rgba(91, 40, 49, 0.1);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 0%, rgba(173, 54, 76, 0.07), transparent 30rem),
    linear-gradient(180deg, #fffaf8 0, var(--canvas) 38rem);
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ambient {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(5px);
  pointer-events: none;
}

.ambient-one {
  width: 22rem;
  height: 22rem;
  top: 16rem;
  right: -10rem;
  background: rgba(183, 72, 93, 0.08);
}

.ambient-two {
  width: 18rem;
  height: 18rem;
  bottom: 10rem;
  left: -11rem;
  background: rgba(219, 179, 136, 0.1);
}

.site-header,
.admin-header {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(145deg, #ad2d47, #78172a);
  box-shadow: 0 8px 24px rgba(135, 27, 48, 0.22);
  font-size: 17px;
  font-weight: 800;
}

.brand > span:last-child {
  display: grid;
  gap: 2px;
}

.brand strong {
  font-size: 16px;
  letter-spacing: 0.02em;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
}

.event-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px 9px 15px;
  border: 1px solid var(--rose-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
}

.event-pill span {
  color: var(--muted);
  font-size: 12px;
}

.event-pill strong {
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--wine);
  background: var(--wine-soft);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
}

.page-shell,
.admin-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.page-shell {
  padding: 18px 0 40px;
}

.hero-card,
.content-card,
.admin-login-card,
.table-card,
.stat-card {
  border: 1px solid rgba(225, 200, 204, 0.82);
  background: rgba(255, 253, 252, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-card {
  padding: 38px 42px 30px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.hero-card::after {
  content: "";
  position: absolute;
  width: 18rem;
  height: 18rem;
  right: -10rem;
  top: -10rem;
  border: 50px solid rgba(151, 36, 58, 0.035);
  border-radius: 50%;
}

.eyebrow,
.section-kicker {
  color: var(--wine);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: end;
  margin-top: 12px;
}

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

.hero-grid h1 {
  max-width: 680px;
  margin-bottom: 12px;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.hero-grid > div:first-child > p {
  max-width: 700px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.stepper {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 36px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--rose-line);
  list-style: none;
}

.stepper li {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #9b9194;
}

.stepper li > span {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  border: 1px solid #ddd3d5;
  border-radius: 50%;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

.stepper li div {
  display: grid;
  gap: 2px;
}

.stepper li strong {
  font-size: 13px;
}

.stepper li small {
  font-size: 10px;
}

.stepper li.is-active,
.stepper li.is-complete {
  color: var(--wine);
}

.stepper li.is-active > span {
  color: #fff;
  border-color: var(--wine);
  background: var(--wine);
  box-shadow: 0 6px 16px rgba(148, 35, 58, 0.2);
}

.stepper li.is-complete > span {
  border-color: #d4a6af;
  background: var(--wine-soft);
}

.content-card {
  margin-top: 22px;
  padding: 34px 40px 38px;
  border-radius: var(--radius-lg);
}

.access-card {
  width: min(680px, 100%);
  margin: 26px auto 0;
}

.access-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.access-form .field {
  margin: 0;
}

.access-form .button {
  min-height: 46px;
}

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

.section-heading h2,
.success-card h2 {
  margin: 6px 0 7px;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 28px;
}

.section-heading p,
.success-card > p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.status-chip,
.download-status {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--muted);
  background: #f0eceb;
  font-size: 11px;
  font-weight: 700;
}

.status-chip.is-waiting {
  color: var(--amber);
  background: #fff5df;
}

.status-chip.is-success,
.download-status.is-downloaded {
  color: var(--green);
  background: #eaf6f1;
}

.status-chip.is-error {
  color: var(--red);
  background: #fdebed;
}

.login-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1.2fr);
  gap: 52px;
  align-items: center;
}

.qr-stage {
  position: relative;
  width: min(100%, 310px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: 0 auto;
  padding: 22px;
  border: 1px dashed #d9b5bc;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(250, 239, 241, 0.8)),
    repeating-linear-gradient(45deg, transparent 0 10px, rgba(148, 35, 58, 0.025) 10px 20px);
}

.qr-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.qr-placeholder {
  display: grid;
  place-items: center;
  gap: 8px;
  text-align: center;
}

.qr-placeholder-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-bottom: 5px;
  border-radius: 18px;
  color: var(--wine);
  background: #fff;
  box-shadow: 0 10px 30px rgba(116, 21, 41, 0.1);
  font-size: 32px;
}

.qr-placeholder strong {
  font-size: 14px;
}

.qr-placeholder small {
  color: var(--muted);
  font-size: 11px;
}

.qr-overlay {
  position: absolute;
  inset: 22px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: rgba(42, 29, 32, 0.78);
  backdrop-filter: blur(4px);
  font-size: 13px;
  font-weight: 700;
}

.login-instructions {
  max-width: 480px;
}

.credential-login {
  width: min(720px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 4px auto 0;
}

.credential-login .button {
  grid-column: 1 / -1;
  min-height: 48px;
}

.instruction-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid #eee5e5;
}

.instruction-item span {
  color: #b88b94;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 11px;
}

.instruction-item p {
  margin: 0;
  font-size: 13px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:focus-visible,
input:focus-visible,
select:focus-visible,
.account-chip button:focus-visible {
  outline: 3px solid rgba(148, 35, 58, 0.16);
  outline-offset: 2px;
}

.button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.button-primary {
  color: #fff;
  border-color: var(--wine);
  background: linear-gradient(145deg, #a92c45, var(--wine-dark));
  box-shadow: 0 10px 24px rgba(116, 21, 41, 0.18);
}

.button-ghost {
  color: var(--wine);
  border-color: #dfc3c8;
  background: #fff;
}

.button-danger {
  color: #fff;
  border-color: var(--red);
  background: linear-gradient(145deg, #c33a4d, #941f32);
}

.button-small {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 9px;
  font-size: 11px;
}

.login-instructions .button {
  width: 100%;
  margin-top: 22px;
}

.fine-print {
  margin: 12px 0 0;
  color: #8a7e81;
  font-size: 10px;
  line-height: 1.65;
}

.alert {
  margin-top: 18px;
  padding: 13px 16px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.6;
}

.alert-error,
.inline-error {
  color: #8c1f33;
  border: 1px solid #edc0c8;
  background: #fff0f2;
}

.account-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid var(--rose-line);
  border-radius: 12px;
  background: #fff;
}

.account-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2aaa7d;
  box-shadow: 0 0 0 4px rgba(42, 170, 125, 0.12);
}

.account-chip div {
  display: grid;
  gap: 1px;
}

.account-chip small {
  color: var(--muted);
  font-size: 9px;
}

.account-chip strong {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.account-chip button {
  padding: 5px 7px;
  border: 0;
  border-left: 1px solid #eee4e5;
  color: var(--wine);
  background: transparent;
  cursor: pointer;
  font-size: 10px;
}

.loading-block {
  display: grid;
  grid-template-columns: repeat(3, 8px);
  justify-content: center;
  gap: 7px;
  padding: 55px 0;
  text-align: center;
}

.loading-block span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wine);
  animation: bounce 900ms infinite alternate;
}

.loading-block span:nth-child(2) {
  animation-delay: 150ms;
}

.loading-block span:nth-child(3) {
  animation-delay: 300ms;
}

.loading-block p {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
}

@keyframes bounce {
  to { transform: translateY(-6px); opacity: 0.45; }
}

.form-section {
  padding: 25px 0;
  border-top: 1px solid #eee4e5;
}

.form-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.form-section-title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.form-section-title > span {
  padding-top: 3px;
  color: #bd8f98;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 10px;
}

.form-section-title h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.form-section-title p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.field-grid {
  display: grid;
  gap: 14px;
}

.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-columns {
  grid-template-columns: 0.8fr 0.9fr 1.3fr;
}

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

.field > span {
  color: #5f5357;
  font-size: 11px;
  font-weight: 700;
}

.field input,
.field select,
.search-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #e1d6d8;
  border-radius: 12px;
  color: var(--ink);
  background: #fbf8f7;
  font-size: 13px;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.field input:focus,
.field select:focus,
.search-field input:focus {
  border-color: #c88492;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(148, 35, 58, 0.07);
}

.buyer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.buyer-option {
  position: relative;
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border: 1px solid #e6dadd;
  border-radius: 12px;
  cursor: pointer;
  background: #fff;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.buyer-option:hover {
  transform: translateY(-1px);
  border-color: #cf9aa4;
}

.buyer-option:has(input:checked) {
  border-color: #b45165;
  background: var(--wine-soft);
}

.buyer-option input {
  position: absolute;
  opacity: 0;
}

.buyer-check {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: grid;
  place-items: center;
  border: 1px solid #cabfc1;
  border-radius: 7px;
  background: #fff;
}

.buyer-option input:checked + .buyer-check {
  border-color: var(--wine);
  background: var(--wine);
}

.buyer-option input:checked + .buyer-check::after {
  content: "✓";
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.buyer-option input:focus-visible + .buyer-check {
  outline: 3px solid rgba(148, 35, 58, 0.16);
  outline-offset: 2px;
}

.buyer-text {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.buyer-text strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.buyer-text small {
  color: var(--muted);
  font-size: 10px;
}

.submission-bar {
  margin-top: 2px;
  padding: 20px;
  border: 1px solid var(--rose-line);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #fffafa, #f8f1f0);
}

.submission-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
  margin-top: 0;
}

.order-summary {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 11px;
}

.order-summary strong {
  color: var(--wine);
  font-size: 16px;
}

.success-card {
  padding: 64px 30px;
  text-align: center;
}

.success-mark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  box-shadow: 0 12px 28px rgba(21, 115, 90, 0.22);
  font-size: 28px;
}

.reference-box {
  width: min(360px, 100%);
  display: grid;
  gap: 5px;
  margin: 26px auto 0;
  padding: 16px;
  border: 1px dashed #d6aab3;
  border-radius: 12px;
  background: var(--wine-soft);
}

.reference-box span {
  color: var(--muted);
  font-size: 10px;
}

.reference-box strong {
  color: var(--wine);
  font-family: ui-monospace, Consolas, monospace;
  letter-spacing: 0.08em;
}

.site-footer {
  width: min(1180px, calc(100% - 40px));
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
  padding: 22px 0 40px;
  color: #8a7f82;
  font-size: 10px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--wine);
  text-decoration: none;
}

.toast {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  max-width: min(420px, calc(100% - 32px));
  padding: 12px 16px;
  border-radius: 11px;
  color: #fff;
  background: rgba(34, 24, 27, 0.92);
  box-shadow: 0 14px 38px rgba(25, 15, 18, 0.25);
  font-size: 12px;
}

/* Admin */
.admin-page {
  background:
    linear-gradient(90deg, rgba(148, 35, 58, 0.025) 1px, transparent 1px),
    linear-gradient(rgba(148, 35, 58, 0.025) 1px, transparent 1px),
    #f7f3f2;
  background-size: 34px 34px;
}

.admin-header {
  width: 100%;
  min-height: 78px;
  padding: 0 max(28px, calc((100% - 1240px) / 2));
  border-bottom: 1px solid #e9dcde;
  background: rgba(255, 253, 252, 0.88);
  backdrop-filter: blur(14px);
}

.admin-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-shell {
  width: min(1240px, calc(100% - 48px));
  padding: 50px 0 70px;
}

.admin-login-card {
  width: min(440px, 100%);
  margin: 8vh auto 0;
  padding: 38px;
  border-radius: var(--radius-lg);
}

.admin-login-card h1,
.admin-title-row h1 {
  margin: 9px 0;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 32px;
}

.admin-login-card > p,
.admin-title-row p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.admin-login-card form {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.inline-error {
  margin-top: 14px;
  padding: 11px 13px;
  border-radius: 10px;
  font-size: 11px;
}

.admin-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 22px;
}

.admin-title-row p {
  max-width: 650px;
  margin: 0;
}

.admin-actions {
  min-width: min(430px, 100%);
  display: flex;
  gap: 10px;
}

.search-field {
  flex: 1;
}

.search-field input {
  min-height: 44px;
  background: #fff;
}

.warning-strip {
  padding: 13px 16px;
  border: 1px solid #ead3a2;
  border-radius: 12px;
  color: #775114;
  background: #fff7e7;
  font-size: 11px;
  line-height: 1.65;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 18px 0;
}

.stat-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 19px;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(91, 40, 49, 0.055);
}

.stat-card span {
  color: var(--muted);
  font-size: 11px;
}

.stat-card strong {
  color: var(--wine);
  font-size: 21px;
}

.table-card {
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(91, 40, 49, 0.07);
}

.key-create-card {
  margin: 18px 0;
  padding: 22px;
}

.card-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.card-section-heading h2 {
  margin: 0 0 5px;
  font-size: 20px;
}

.card-section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.key-form {
  display: grid;
  grid-template-columns: 1.15fr 1.15fr 0.7fr 1fr auto;
  gap: 12px;
  align-items: end;
}

.key-form .field {
  margin: 0;
}

.key-result {
  margin-top: 16px;
}

.key-table-card {
  margin-top: 18px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th {
  padding: 13px 15px;
  color: #817579;
  border-bottom: 1px solid #eadfe1;
  background: #faf6f5;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.04em;
}

td {
  max-width: 300px;
  padding: 15px;
  border-bottom: 1px solid #f0e7e8;
  font-size: 11px;
  vertical-align: middle;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: #fffbfa;
}

td strong,
td span,
td small {
  display: block;
}

td strong,
td > span:not(.download-status) {
  font-size: 11px;
}

td small {
  max-width: 270px;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
}

.project-code {
  color: var(--wine);
  font-family: ui-monospace, Consolas, monospace;
  font-weight: 750;
}

.download-status.is-new {
  color: var(--wine);
  background: var(--wine-soft);
}

.nowrap {
  white-space: nowrap;
}

.table-action {
  text-align: right;
}

.action-stack {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
}

.table-state {
  padding: 58px 20px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

@media (max-width: 860px) {
  .hero-grid,
  .login-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .three-columns {
    grid-template-columns: 1fr 1fr;
  }

  .three-columns .field:last-child {
    grid-column: 1 / -1;
  }

  .buyer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-title-row {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-actions {
    min-width: 0;
  }

  .key-form {
    grid-template-columns: 1fr 1fr;
  }

  .key-form .button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .site-header,
  .page-shell,
  .site-footer,
  .admin-shell {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    min-height: 76px;
  }

  .brand small {
    display: none;
  }

  .event-pill > span {
    display: none;
  }

  .hero-card,
  .content-card,
  .admin-login-card {
    padding: 25px 20px;
    border-radius: 20px;
  }

  .hero-grid h1 {
    font-size: 34px;
  }

  .stepper li div {
    display: none;
  }

  .stepper {
    justify-items: center;
  }

  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .account-chip {
    width: 100%;
  }

  .account-chip div {
    flex: 1;
  }

  .two-columns,
  .three-columns,
  .credential-login,
  .buyer-grid,
  .stats-row {
    grid-template-columns: 1fr;
  }

  .three-columns .field:last-child {
    grid-column: auto;
  }

  .submission-actions,
  .site-footer,
  .admin-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .access-form,
  .key-form {
    grid-template-columns: 1fr;
  }

  .order-summary {
    justify-content: space-between;
  }

  .site-footer {
    gap: 8px;
  }

  .admin-header {
    min-height: auto;
    padding: 0 14px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .admin-header .brand > span:last-child {
    display: none;
  }

  .admin-nav {
    order: 3;
    width: 100%;
    margin: 0 0 12px;
  }

  .admin-nav .button {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
