:root {
  --bg: #f4efe5;
  --surface: rgba(255, 252, 246, 0.82);
  --surface-strong: #fffdf8;
  --surface-soft: rgba(255, 255, 255, 0.74);
  --ink: #1a1813;
  --ink-soft: #6e695d;
  --line: rgba(26, 24, 19, 0.08);
  --line-strong: rgba(26, 24, 19, 0.14);
  --accent: #f2cf52;
  --accent-deep: #7e6514;
  --shadow: 0 26px 70px rgba(30, 24, 16, 0.08);
  --shadow-soft: 0 16px 34px rgba(30, 24, 16, 0.05);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 440px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  color: var(--ink);
  font-family:
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    "Noto Sans CJK SC",
    system-ui,
    sans-serif;
  background:
    radial-gradient(circle at top left, rgba(242, 207, 82, 0.16), transparent 24%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.92), transparent 20%),
    linear-gradient(180deg, #f7f3eb 0%, var(--bg) 54%, #ece4d7 100%);
  overscroll-behavior-y: contain;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a,
button,
input,
.option-button,
.feel-button,
.step-button,
.primary-button,
.secondary-button,
.ghost-button,
.size-choice {
  -webkit-tap-highlight-color: transparent;
}

a,
button,
.option-button,
.feel-button,
.step-button,
.primary-button,
.secondary-button,
.ghost-button,
.size-choice {
  touch-action: manipulation;
}

button,
.option-button,
.feel-button,
.step-button,
.primary-button,
.secondary-button,
.ghost-button,
.size-choice {
  appearance: none;
  -webkit-appearance: none;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible) {
  outline: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid rgba(126, 101, 20, 0.42);
  outline-offset: 3px;
}

.page-shell {
  width: min(calc(100% - 16px), var(--max-width));
  margin: 0 auto;
  padding: 12px 0 24px;
}

.topbar,
.wizard-shell {
  border: 1px solid rgba(255, 255, 255, 0.88);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.topbar {
  padding: 14px 18px;
  margin-bottom: 18px;
  border-radius: 24px;
  background:
    radial-gradient(circle at left top, rgba(242, 207, 82, 0.18), transparent 36%),
    linear-gradient(135deg, rgba(255, 251, 244, 0.96), rgba(245, 237, 222, 0.88));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand strong {
  font-size: 0.98rem;
  font-weight: 800;
}

.brand small {
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.22;
}

.brand-meta {
  max-width: none;
  font-size: 0.76rem;
  line-height: 1.26;
  white-space: normal;
  overflow-wrap: anywhere;
}

.brand-note {
  max-width: none;
  font-size: 0.72rem;
  line-height: 1.28;
  white-space: normal;
  overflow-wrap: anywhere;
}

.wizard-shell {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: var(--radius-xl);
}

.wizard-shell::before {
  content: "";
  position: absolute;
  right: -100px;
  top: -120px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 207, 82, 0.16), transparent 70%);
  pointer-events: none;
}

.wizard-progress,
.step-panel {
  position: relative;
  z-index: 1;
}

.wizard-progress {
  display: grid;
  gap: 12px;
  padding-bottom: 18px;
}

.progress-kicker,
.eyebrow,
.mini-kicker {
  margin: 0 0 10px;
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wizard-progress h1,
.panel-copy h2 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
}

.wizard-progress h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.1;
}

.progress-track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(193, 170, 94, 0.16);
  overflow: hidden;
}

.progress-track span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #a58b2e 0%, #d8bb4a 52%, #f2cf52 100%);
  transition: width 240ms ease;
}

.progress-text,
.panel-lead,
.guide-card p,
.option-button span,
.size-hint,
.error-text,
.size-note,
.alt-note {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.75;
}

.wizard-panels {
  position: relative;
}

.step-panel {
  min-height: 0;
  display: grid;
  align-content: space-between;
  gap: 20px;
  padding: 20px 16px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  animation: rise-in 240ms ease both;
  contain: layout paint;
}

.step-panel[hidden] {
  display: none;
}

.panel-center {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.hero-panel {
  align-self: center;
}

.hero-logo {
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
  object-fit: contain;
}

.panel-copy {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.panel-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.hero-panel h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-family: "Noto Serif SC", "Songti SC", serif;
}

.panel-lead {
  margin-top: 16px;
}

.hero-stat-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
}

.hero-stat-row div,
.guide-card,
.option-button,
.size-card,
.feel-card,
.result-primary,
.alt-card {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.hero-stat-row div {
  min-width: 138px;
  padding: 18px 16px;
  border-radius: 22px;
}

.hero-stat-row strong {
  display: block;
  font-size: 1.36rem;
  font-weight: 800;
}

.hero-stat-row span {
  display: block;
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.guide-card {
  padding: 20px;
  border-radius: 22px;
}

.guide-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 720px;
  margin: 0 auto;
}

.option-grid-wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 720px;
}

.option-button,
.feel-button,
.step-button,
.primary-button,
.secondary-button,
.ghost-button,
.size-choice {
  transition:
    transform 140ms ease,
    background-color 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    color 140ms ease,
    opacity 140ms ease;
}

.option-button {
  display: grid;
  gap: 8px;
  min-height: 106px;
  padding: 16px 14px;
  border-radius: 24px;
  text-align: center;
}

.option-button strong,
.feel-button strong {
  font-size: 1rem;
}

.option-button.is-selected,
.feel-button.is-selected,
.size-choice.is-selected {
  border-color: #191813;
  background: #191813;
  color: #fffdf8;
  box-shadow: 0 14px 30px rgba(25, 24, 19, 0.14);
}

.option-button:hover,
.feel-button:hover,
.step-button:hover,
.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.size-choice:hover {
  transform: translateY(-1px);
}

.option-button:active,
.feel-button:active,
.step-button:active,
.primary-button:active,
.secondary-button:active,
.ghost-button:active,
.size-choice:active {
  transform: scale(0.985);
}

.auto-tip {
  margin: 0;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.panel-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  font-weight: 700;
}

.primary-button {
  background: #191813;
  color: #fffdf8;
}

.secondary-button,
.ghost-button {
  background: rgba(255, 255, 255, 0.82);
  border-color: var(--line-strong);
  color: var(--ink);
}

.size-feel-layout {
  display: grid;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}

.size-card,
.feel-card {
  padding: 22px;
  border-radius: 24px;
}

.size-stepper {
  display: grid;
  grid-template-columns: 74px minmax(120px, 180px) 74px;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.step-button,
.size-stepper input {
  min-height: 56px;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
}

.step-button {
  background: rgba(255, 255, 255, 0.84);
}

.size-stepper input {
  width: 100%;
  padding: 0 16px;
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 1.24rem;
  font-weight: 800;
  text-align: center;
  outline: none;
}

.size-stepper input:focus {
  border-color: rgba(126, 101, 20, 0.54);
  box-shadow: 0 0 0 4px rgba(242, 207, 82, 0.14);
}

.size-hint {
  margin-top: 12px;
  text-align: center;
}

.feel-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.feel-button {
  display: grid;
  gap: 6px;
  min-height: 110px;
  padding: 14px 10px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  text-align: center;
}

.feel-button span {
  color: inherit;
  font-size: 0.84rem;
  line-height: 1.5;
}

.error-text {
  text-align: center;
  color: #9c3a28;
  font-weight: 700;
}

.result-scroll {
  display: grid;
  gap: 16px;
  max-height: 470px;
  padding-right: 4px;
  overflow: auto;
}

.result-primary,
.alt-card {
  padding: 18px;
  border-radius: 24px;
}

.result-primary {
  display: grid;
  align-content: start;
  gap: 14px;
}

.result-primary-body {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.result-alt-wrap {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.result-primary-header,
.alt-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: flex-start;
  gap: 8px;
}

.result-primary-header > div:first-child,
.alt-head > div:first-child {
  min-width: 0;
}

.result-card-head {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.result-card-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.shoe-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  border: 1px solid rgba(242, 207, 82, 0.24);
  background:
    radial-gradient(circle at top right, rgba(242, 207, 82, 0.24), transparent 52%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(247, 241, 229, 0.92));
  box-shadow: 0 8px 20px rgba(25, 24, 19, 0.05);
}

.shoe-mark-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  padding: 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 16px rgba(25, 24, 19, 0.06);
}

.tag-row,
.summary-row,
.match-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row {
  margin: 14px 0 10px;
}

.result-card-tags {
  margin: 0;
}

.tag-row span,
.summary-row span,
.match-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  font-size: 0.86rem;
}

.result-card-tags span {
  min-height: 30px;
  padding: 0 10px;
  font-size: 0.78rem;
}

.result-rank {
  margin: 0 0 6px;
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.result-primary h3,
.alt-head h3 {
  margin: 0;
  font-size: 1.34rem;
  line-height: 1.25;
}

.brand-line,
.result-note {
  margin: 2px 0 0;
  color: var(--ink-soft);
  line-height: 1.45;
}

.result-note--compact,
.alt-note--compact {
  margin: 0;
}

.score-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(242, 207, 82, 0.2);
  color: #5f4d10;
  font-size: 0.86rem;
  font-weight: 700;
}

.size-box {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 24px;
  border: 1px solid rgba(242, 207, 82, 0.24);
  background: linear-gradient(180deg, rgba(242, 207, 82, 0.14), rgba(255, 255, 255, 0.88));
}

.size-box--compact {
  margin-top: 0;
}

.size-main {
  display: grid;
  gap: 6px;
}

.size-main strong {
  display: block;
  margin-top: 4px;
  font-size: 2.18rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.size-main p {
  max-width: none;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  text-align: left;
  line-height: 1.7;
}

.size-ladder {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.size-choice {
  display: grid;
  gap: 6px;
  min-height: 76px;
  padding: 10px 8px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  text-align: center;
}

.size-choice span {
  font-size: 0.78rem;
  line-height: 1.35;
}

.size-choice strong {
  font-size: 0.98rem;
}

.result-alt-list {
  display: grid;
  gap: 12px;
}

.result-page-shell {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.result-brand-card {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(126, 101, 20, 0.12);
  background:
    radial-gradient(circle at right top, rgba(242, 207, 82, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(255, 251, 244, 0.98), rgba(244, 236, 219, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.result-brand-mark {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(25, 24, 19, 0.08);
}

.result-brand-mark img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.result-brand-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.result-brand-copy h2 {
  margin: 0;
  font-size: 1.85rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.result-brand-subtitle {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

.result-brand-note {
  margin: 0;
  color: rgba(26, 24, 19, 0.68);
  font-size: 0.76rem;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
}

.result-page-hero,
.result-page-empty {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.result-page-hero h1,
.result-page-empty h2 {
  margin: 0;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
}

.result-page-hero h1 {
  font-size: clamp(1.78rem, 7vw, 2.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

@media (max-width: 820px) {
  .result-brand-copy h2 {
    font-size: clamp(1.22rem, 4.8vw, 1.58rem);
    line-height: 1.08;
  }

  .result-brand-subtitle {
    font-size: 0.92rem;
  }

  .result-brand-note {
    font-size: 0.72rem;
    line-height: 1.34;
  }

  .result-page-hero h1 {
    font-size: clamp(1.04rem, 4.6vw, 1.34rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    white-space: nowrap;
  }
}

.result-page-summary {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.65;
}

.result-page-body {
  display: grid;
  gap: 12px;
}

.result-page-empty {
  text-align: center;
}

.result-page-empty p {
  margin: 12px auto 0;
  max-width: 40ch;
  color: var(--ink-soft);
  line-height: 1.75;
}

.alt-card h3 {
  font-size: 1.08rem;
}

.alt-size {
  margin-top: 4px;
  font-size: 1rem;
  font-weight: 800;
}

.result-page-body .panel-actions {
  padding: 2px 0 4px;
}

.result-page-body .primary-button,
.result-page-body .secondary-button,
.result-page-empty .primary-button {
  min-width: 148px;
}

.result-page-body .secondary-button {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(242, 207, 82, 0.28);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .step-panel {
    min-height: auto;
  }

  .option-grid,
  .option-grid-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-grid,
  .feel-grid,
  .size-ladder {
    grid-template-columns: 1fr;
  }

  .result-card-head {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
  }

  .shoe-mark {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }

  .shoe-mark-logo {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(calc(100% - 12px), var(--max-width));
    padding-top: 10px;
  }

  .wizard-shell,
  .result-page-shell {
    padding: 14px;
  }

  .topbar {
    padding: 12px 14px;
    margin-bottom: 12px;
  }

  .brand {
    width: 100%;
    min-width: 0;
    align-items: flex-start;
  }

  .brand strong {
    font-size: 0.94rem;
    line-height: 1.15;
  }

  .brand small {
    line-height: 1.22;
  }

  .brand-meta {
    font-size: 0.7rem;
    line-height: 1.28;
  }

  .brand-note {
    font-size: 0.66rem;
    line-height: 1.32;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .result-brand-card {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }

  .result-brand-mark {
    width: 64px;
    height: 64px;
  }

  .result-brand-mark img {
    width: 48px;
    height: 48px;
  }

  .result-brand-copy h2 {
    font-size: 1.46rem;
    line-height: 1.08;
  }

  .result-brand-subtitle {
    font-size: 0.94rem;
  }

  .result-brand-note {
    font-size: 0.68rem;
    line-height: 1.32;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .hero-stat-row {
    display: none;
  }

  .guide-grid,
  .feel-grid {
    grid-template-columns: 1fr;
  }

  .size-stepper {
    grid-template-columns: 1fr 1.2fr 1fr;
  }

  .panel-actions {
    flex-direction: column;
  }

  .result-primary,
  .result-alt-wrap,
  .alt-card,
  .result-primary-body {
    padding: 14px;
  }

  .result-page-hero h1 {
    font-size: clamp(1.26rem, 5.8vw, 1.62rem);
    line-height: 1.14;
    letter-spacing: -0.02em;
    white-space: nowrap;
  }

  .result-card-head {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 10px;
  }

  .shoe-mark {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .shoe-mark-logo {
    width: 30px;
    height: 30px;
    border-radius: 10px;
  }

  .result-card-tags span:nth-child(n + 3) {
    display: none;
  }

  .result-note--compact,
  .alt-note--compact {
    font-size: 0.92rem;
    line-height: 1.6;
  }

  .size-main strong {
    font-size: 1.8rem;
  }

  .size-box {
    padding: 14px;
  }
}

@media (max-width: 820px) {
  body {
    background: linear-gradient(180deg, #f7f3eb 0%, #f1eadf 100%);
  }

  .topbar,
  .wizard-shell {
    backdrop-filter: none;
    box-shadow: none;
  }

  .topbar {
    background: rgba(255, 251, 244, 0.96);
  }

  .wizard-shell::before {
    display: none;
  }

  .step-panel,
  .result-page-shell,
  .result-page-hero,
  .result-page-empty,
  .result-primary,
  .result-primary-body,
  .alt-card,
  .guide-card,
  .size-card,
  .feel-card {
    box-shadow: none;
    background: rgba(255, 255, 255, 0.78);
  }

  .step-panel {
    animation: none;
  }

  .option-button,
  .feel-button,
  .primary-button,
  .secondary-button,
  .ghost-button,
  .size-choice {
    transition: none;
  }

  .primary-button:hover,
  .secondary-button:hover,
  .ghost-button:hover,
  .size-choice:hover {
    transform: none;
  }

  .shoe-mark,
  .shoe-mark-logo {
    box-shadow: none;
  }
}

@media (hover: none), (pointer: coarse) {
  .topbar,
  .wizard-shell {
    backdrop-filter: none;
  }

  .option-button,
  .feel-button,
  .primary-button,
  .secondary-button,
  .ghost-button,
  .size-choice {
    transition: none;
  }

  .option-button:hover,
  .feel-button:hover,
  .step-button:hover,
  .primary-button:hover,
  .secondary-button:hover,
  .ghost-button:hover,
  .size-choice:hover {
    transform: none;
  }
}

.admin-page-body .page-shell {
  width: min(calc(100% - 20px), 1180px);
}

.admin-shell {
  display: grid;
  gap: 16px;
}

.admin-progress {
  padding-bottom: 0;
}

.admin-card {
  display: grid;
  gap: 18px;
  padding: 20px 18px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.admin-copy {
  max-width: none;
}

.admin-copy h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.admin-setup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-field {
  display: grid;
  gap: 8px;
}

.admin-field span {
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-field-wide {
  grid-column: 1 / -1;
}

.admin-field input,
.admin-field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font: inherit;
  resize: vertical;
  outline: none;
}

.admin-field input:focus,
.admin-field textarea:focus {
  border-color: rgba(126, 101, 20, 0.54);
  box-shadow: 0 0 0 4px rgba(242, 207, 82, 0.12);
}

.admin-actions {
  flex-wrap: wrap;
}

.admin-status-line {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.admin-status-line[data-tone="success"] {
  color: #365c28;
}

.admin-status-line[data-tone="warn"] {
  color: #7f5b11;
}

.admin-status-line[data-tone="danger"] {
  color: #9c3a28;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.admin-stat-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.admin-stat-card strong {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.05;
}

.admin-stat-card p:last-child {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.admin-table-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.admin-table-head h2 {
  margin: 0;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
}

.admin-row-count {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 700;
}

.admin-table-wrap {
  overflow: auto;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.admin-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(26, 24, 19, 0.08);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(247, 241, 229, 0.86);
}

.admin-table td {
  line-height: 1.55;
}

.admin-empty-cell {
  color: var(--ink-soft);
  text-align: center;
}

@media (max-width: 980px) {
  .admin-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .admin-page-body .page-shell {
    width: min(calc(100% - 12px), 100%);
  }

  .admin-card {
    padding: 16px 14px;
  }

  .admin-setup-grid,
  .admin-stats-grid {
    grid-template-columns: 1fr;
  }

  .admin-actions {
    flex-direction: column;
  }

  .admin-table {
    min-width: 720px;
  }
}
