:root {
  color-scheme: light;
  --porcelain: #f2f0eb;
  --paper: #faf9f6;
  --ink: #151412;
  --graphite: #6a6761;
  --plum: #29232b;
  --champagne: #9a7e5d;
  --mist: #d9d5cc;
  --line: rgba(28, 25, 24, 0.11);
  --shadow-card: 0 18px 56px rgba(31, 27, 25, 0.075);
  --shadow-float: 0 18px 44px rgba(27, 23, 24, 0.13);
  --radius-xl: 18px;
  --radius-lg: 14px;
  --safe-top: max(18px, env(safe-area-inset-top));
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: #e9e6e1;
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.92), transparent 46%),
    #e5e2dc;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--champagne);
  outline-offset: 3px;
}

#app {
  min-height: 100dvh;
}

.app-shell {
  position: relative;
  width: min(100%, 430px);
  min-height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background:
    linear-gradient(rgba(21, 20, 18, 0.018) 1px, transparent 1px),
    var(--porcelain);
  background-size: 100% 7px;
  box-shadow: 0 0 70px rgba(36, 31, 29, 0.13);
}

.screen {
  min-height: 100dvh;
  padding: calc(var(--safe-top) + 24px) 22px 108px;
  animation: screen-enter 480ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes screen-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow {
  margin: 0 0 9px;
  color: #8b6f50;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

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

h1,
h2,
h3,
.serif {
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
  font-weight: 500;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(2.08rem, 9vw, 2.55rem);
  line-height: 1.27;
  letter-spacing: -0.055em;
}

.lede {
  max-width: 21rem;
  color: var(--graphite);
  font-size: 0.88rem;
  line-height: 1.75;
}

.top-row,
.section-heading,
.card-heading,
.match-summary,
.sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  font-family: "Times New Roman", "Noto Serif SC", serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.29em;
}

.wordmark i {
  margin-left: 3px;
  color: var(--champagne);
  font-family: "Songti SC", serif;
  font-size: 0.64rem;
  font-style: normal;
  letter-spacing: 0.12em;
}

.edition-mark {
  color: var(--graphite);
  font-family: "Times New Roman", serif;
  font-size: 0.52rem;
  letter-spacing: 0.11em;
}

.avatar,
.icon-button {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
}

.icon-button {
  border: 0;
  background: var(--plum);
  color: var(--paper);
  font-size: 1.25rem;
  cursor: pointer;
}

.wardrobe-screen > .page-header .icon-button {
  border: 1px solid rgba(154, 126, 93, 0.72);
  background: rgba(250, 249, 246, 0.76);
  color: #8b6f50;
}

.hero-copy {
  padding-top: 44px;
}

.hero-copy .eyebrow { margin-bottom: 14px; }

.hero-visual {
  position: relative;
  height: clamp(250px, 41dvh, 340px);
  margin: 19px 0 12px;
  overflow: hidden;
  border-radius: 2px;
  background: #ebe7df;
}

.hero-lookbook {
  display: grid;
  grid-auto-columns: 100%;
  grid-auto-flow: column;
  gap: 0;
  margin: 19px 0 0;
  padding: 0 0 4px;
  overflow-x: auto;
  scroll-padding-inline: 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
  overscroll-behavior-inline: contain;
}

.hero-lookbook:active { cursor: grabbing; }

.lookbook-guide {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 31px;
  color: var(--graphite);
  font-family: "Times New Roman", "Noto Serif SC", serif;
  font-size: 0.54rem;
  letter-spacing: 0.09em;
}

.lookbook-guide span { color: #9a958c; }
.lookbook-guide span b { color: var(--ink); font-weight: 600; }
.lookbook-dots { display: flex; justify-content: center; gap: 3px; }
.lookbook-dots button {
  width: 8px;
  height: 2px;
  padding: 0;
  border: 0;
  background: #c9c4bb;
  cursor: pointer;
}
.lookbook-dots button.is-active { background: var(--ink); }
.lookbook-next {
  padding: 6px 0 6px 8px;
  border: 0;
  background: transparent;
  color: var(--graphite);
  cursor: pointer;
  font-family: "Noto Sans SC", sans-serif;
  font-size: 0.58rem;
}
.lookbook-next em { margin-left: 4px; color: var(--champagne); font-size: 0.8rem; font-style: normal; }

.hero-lookbook::-webkit-scrollbar { display: none; }

.lookbook-card {
  position: relative;
  isolation: isolate;
  height: clamp(330px, 49dvh, 405px);
  overflow: hidden;
  border: 1px solid rgba(21, 20, 18, 0.08);
  background: #fbf8f3;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.lookbook-card::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.46);
  content: "";
  pointer-events: none;
}

.lookbook-card::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: rgba(181, 145, 112, 0.08);
  content: "";
  pointer-events: none;
}

.lookbook-card img {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  background: #fbf8f3;
  filter: saturate(0.98) contrast(1.005);
  object-fit: contain;
  object-position: center;
}

.lookbook-card__index {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 13px;
  padding: 5px 7px;
  background: rgba(250, 249, 246, 0.82);
  color: var(--graphite);
  font-family: "Times New Roman", serif;
  font-size: 0.5rem;
  letter-spacing: 0.12em;
  backdrop-filter: blur(6px);
}

.lookbook-card .hero-caption { bottom: 0; }

.hero-visual::after {
  position: absolute;
  inset: auto 12% 3% 12%;
  height: 20%;
  border-radius: 50%;
  background: rgba(75, 57, 55, 0.14);
  filter: blur(26px);
  content: "";
}

.hero-visual::before {
  position: absolute;
  z-index: 2;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  content: "";
  pointer-events: none;
}

.hero-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  animation: hero-float 7s ease-in-out infinite alternate;
}

.hero-caption {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  background: rgba(24, 22, 21, 0.72);
  color: rgba(255, 255, 255, 0.78);
  font-family: "Times New Roman", serif;
  font-size: 0.5rem;
  letter-spacing: 0.11em;
  backdrop-filter: blur(9px);
}

.hero-caption b { color: white; font-weight: 500; }

@keyframes hero-float {
  from {
    transform: translate3d(-2px, 2px, 0) scale(1.015);
  }
  to {
    transform: translate3d(3px, -4px, 0) scale(1.025);
  }
}

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

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 0 10px;
}

.choice-button {
  min-height: 114px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(250, 249, 246, 0.82);
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.choice-button:active {
  transform: scale(0.98);
}

.choice-button--accent {
  border-color: var(--plum);
  background: var(--plum);
  color: var(--paper);
}

.choice-button--wide {
  grid-column: 1 / -1;
  min-height: 88px;
  border-color: rgba(41, 35, 43, 0.24);
  background:
    linear-gradient(90deg, rgba(41, 35, 43, 0.035) 1px, transparent 1px),
    rgba(250, 249, 246, 0.82);
  background-size: 28px 100%;
}

.choice-button--wide > span {
  max-width: 19rem;
  margin-top: 7px;
}

.choice-button small,
.choice-button strong {
  display: block;
}

.choice-button small {
  margin-bottom: 13px;
  color: var(--champagne);
  font-family: "Times New Roman", serif;
  font-size: 0.56rem;
  letter-spacing: 0.12em;
}

.choice-button strong {
  display: flex;
  justify-content: space-between;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 0.96rem;
  font-weight: 500;
}

.choice-button strong i {
  font-family: system-ui, sans-serif;
  font-size: 0.75rem;
  font-style: normal;
}

.choice-button > span {
  display: block;
  margin-top: 10px;
  color: var(--graphite);
  font-size: 0.6rem;
  line-height: 1.5;
}

.choice-button--accent > span { color: rgba(255, 255, 255, 0.55); }
}

.inline-action,
.candidate-action {
  width: 100%;
  min-height: 58px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.inline-action small {
  display: block;
  margin-bottom: 3px;
  color: var(--champagne);
  font-family: "Times New Roman", serif;
  font-size: 0.5rem;
  letter-spacing: 0.12em;
}

.inline-action span,
.candidate-action span {
  float: right;
  color: var(--champagne);
}

.statline {
  margin: 16px 0 0;
  color: var(--graphite);
  font-size: 0.65rem;
}

.statline i {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 4px;
  border-radius: 50%;
  background: #66725d;
}

.bottom-nav {
  position: fixed;
  z-index: 20;
  right: max(16px, calc((100vw - 430px) / 2 + 16px));
  bottom: max(12px, env(safe-area-inset-bottom));
  left: max(16px, calc((100vw - 430px) / 2 + 16px));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 398px;
  min-height: 60px;
  margin: auto;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 17px;
  background: rgba(250, 249, 246, 0.91);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(18px);
}

.nav-item {
  display: grid;
  gap: 4px;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--graphite);
  font-size: 0.66rem;
  cursor: pointer;
}

.nav-item::before {
  width: 11px;
  height: 1px;
  border-radius: 99px;
  background: var(--mist);
  content: "";
}

.nav-item.is-active {
  color: var(--plum);
  font-weight: 650;
}

.nav-item.is-active::before {
  width: 21px;
  height: 2px;
  background: var(--plum);
}

.page-header {
  margin-bottom: 22px;
}

.page-header h1 {
  margin-bottom: 6px;
  font-size: 2rem;
}

.section-heading {
  margin: 18px 0 10px;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.15rem;
}

.section-heading span {
  color: var(--graphite);
  font-size: 0.7rem;
}

.rail {
  display: grid;
  grid-auto-columns: 44%;
  grid-auto-flow: column;
  gap: 12px;
  margin: 0 -24px;
  padding: 4px calc(50% - 22%) 16px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
}

.rail::-webkit-scrollbar {
  display: none;
}

.garment-card {
  position: relative;
  min-height: 188px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  padding: 0;
  text-align: left;
  cursor: pointer;
  scroll-snap-align: center;
  transition: transform 180ms ease, border-color 180ms ease;
}

.garment-card:focus,
.garment-card:hover {
  border-color: var(--champagne);
  transform: translateY(-2px);
}

.garment-card__art {
  height: 148px;
  background-image: var(--garment-image);
  background-repeat: no-repeat;
  background-size: 360% 112%;
  background-position: var(--crop-position, center);
  mix-blend-mode: multiply;
}

.catalog-art {
  background-color: #e9e4db;
  background-repeat: no-repeat;
  filter: none !important;
  mix-blend-mode: normal !important;
}

.garment-card__art--wine {
  filter: saturate(0.82) hue-rotate(-10deg) brightness(0.95);
}

.garment-card__art--charcoal,
.garment-card__art--ink {
  filter: saturate(0.2) brightness(0.72);
}

.garment-card__art--stone {
  filter: saturate(0.38) brightness(0.92);
}

.garment-card__art--ivory {
  filter: saturate(0.42) brightness(1.08);
}

.garment-card__name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 11px 13px;
  overflow: hidden;
  font-size: 0.75rem;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.garment-card__name span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.garment-card__name small {
  flex: none;
  color: var(--graphite);
  font-size: 0.5rem;
}

.wardrobe-screen { padding-bottom: 110px; }

.wardrobe-summary {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.wardrobe-summary strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 400;
}

.wardrobe-summary span { color: var(--graphite); font-size: 0.58rem; }
.wardrobe-summary i { flex: 1; }

.wardrobe-filters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 14px 0 16px;
  border: 1px solid var(--line);
}

.wardrobe-filter {
  display: flex;
  justify-content: center;
  gap: 5px;
  padding: 10px 4px;
  border: 0;
  border-right: 1px solid var(--line);
  background: var(--paper);
  color: var(--graphite);
  font-size: 0.6rem;
  cursor: pointer;
}

.wardrobe-filter:last-child { border-right: 0; }
.wardrobe-filter small { color: #9b8369; font-size: 0.5rem; }
.wardrobe-filter.is-active { background: var(--plum); color: var(--paper); }
.wardrobe-filter.is-active small { color: rgba(255,255,255,.65); }

.wardrobe-style-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -2px 0 14px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.38);
  color: #8b7258;
  font-size: .58rem;
  letter-spacing: .08em;
}

.wardrobe-style-filter select {
  min-width: 0;
  max-width: 62%;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: .62rem;
  text-align: right;
}

.wardrobe-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.wardrobe-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -4px 0 14px;
  padding: 9px 11px;
  border-left: 2px solid #6e785d;
  background: rgba(110, 120, 93, 0.08);
  color: #58604b;
  font-size: 0.58rem;
}

.wardrobe-notice span { flex: 1; }

.wardrobe-notice button {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid rgba(88, 96, 75, 0.35);
  background: transparent;
  color: #58604b;
  font: inherit;
  cursor: pointer;
}

.garment-detail-backdrop {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-top: 40px;
  background: rgba(29, 25, 28, 0.42);
  backdrop-filter: blur(4px);
}

.garment-detail {
  width: min(100%, 430px);
  max-height: 92vh;
  overflow-y: auto;
  padding: 11px 20px 28px;
  border-radius: 20px 20px 0 0;
  background: var(--paper);
}

.garment-detail__handle {
  width: 34px;
  height: 3px;
  margin: 0 auto 13px;
  border-radius: 99px;
  background: var(--mist);
}

.garment-detail header {
  display: flex;
  align-items: start;
  justify-content: space-between;
}

.garment-detail header h2 { margin: 3px 0 13px; font-size: 1.35rem; }

.garment-detail__visual {
  height: 210px;
  border: 1px solid var(--line);
  background-color: #e9e4db;
  background-image: var(--garment-image);
  background-repeat: no-repeat;
  background-size: 300% 112%;
  background-position: var(--crop-position, center);
  mix-blend-mode: multiply;
}

.garment-detail__form { display: grid; gap: 12px; margin-top: 15px; }
.garment-detail__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.garment-detail__fields label { display: grid; gap: 6px; }
.garment-detail__fields span { color: var(--graphite); font-size: 0.58rem; }
.garment-detail__fields select { width: 100%; padding: 11px 9px; border: 1px solid var(--line); background: #fff; color: var(--ink); }

.garment-detail__danger {
  margin-top: 17px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.garment-detail__danger > button {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #7d4743;
  text-align: left;
  cursor: pointer;
}

.garment-detail__danger > button span { font-size: 0.48rem; letter-spacing: .12em; }
.garment-detail__danger > button strong { font-size: 0.66rem; }
.garment-detail__danger p { margin: 0 0 10px; color: #7d4743; font-size: 0.6rem; }
.garment-detail__danger > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.garment-delete-confirm { border-color: #7d4743; background: #7d4743; color: #fff; }

.basis-intro {
  margin-bottom: 18px;
}

.basis-card {
  margin-bottom: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: none;
}

.location-picker {
  margin-bottom: 10px;
  border: 1px solid rgba(73, 61, 51, 0.14);
  border-radius: 3px;
  background: #f0ece5;
}

.location-picker summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  padding: 12px 16px;
  list-style: none;
  cursor: pointer;
}

.location-picker summary::-webkit-details-marker { display: none; }
.location-picker summary span { display: grid; gap: 3px; }
.location-picker summary small { color: #8a755d; font-size: 0.5rem; font-weight: 700; letter-spacing: 0.13em; }
.location-picker summary b { font-family: Georgia, "Noto Serif SC", serif; font-size: 1.05rem; font-weight: 500; }
.location-picker summary em { color: var(--graphite); font-size: 0.58rem; font-style: normal; }

.location-picker__panel {
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(73, 61, 51, 0.12);
  background: var(--paper);
}

.location-picker__panel > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--plum);
  background: var(--plum);
  color: var(--paper);
  font: inherit;
  cursor: pointer;
}

.location-picker__panel > button span { font-size: 0.7rem; font-weight: 650; }
.location-picker__panel > button small { color: rgba(255, 255, 255, 0.68); font-size: 0.54rem; }
.location-picker__cities { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.location-picker__cities button { min-height: 35px; border: 1px solid rgba(73, 61, 51, 0.14); background: #f3f0ea; color: var(--ink); font-size: 0.62rem; cursor: pointer; }
.location-picker__cities button.is-active { border-color: var(--plum); background: var(--plum); color: var(--paper); }
.location-picker__panel p { margin: 10px 0 0; color: var(--graphite); font-size: 0.55rem; line-height: 1.55; }

.weather-main {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
}

.weather-main strong {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 3rem;
  font-weight: 500;
}

.weather-main p {
  margin: 0 0 4px;
}

.weather-source-note {
  margin: 11px 0 0;
  padding: 9px 10px;
  border-left: 2px solid var(--champagne);
  background: rgba(181, 154, 120, 0.1);
  color: var(--graphite);
  font-size: 0.56rem;
  line-height: 1.55;
}

.metric-row,
.style-grid,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.metric-row {
  margin-top: 16px;
}

.metric,
.chip {
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: var(--porcelain);
  color: var(--graphite);
  font-size: 0.7rem;
}

button.chip {
  cursor: pointer;
}

.chip.is-active {
  background: var(--plum);
  color: var(--paper);
}

.style-grid {
  margin-top: 14px;
}

.style-selection {
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
  padding: 22px;
  border: 1px solid rgba(42, 37, 42, 0.16);
  border-radius: 3px;
  background: linear-gradient(145deg, #f2eee6, #e6ddd0);
}

.style-selection::after {
  position: absolute;
  top: -48px;
  right: -32px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  content: "";
}

.style-selection--navy,
.style-selection--ink,
.style-selection--carbon { background: linear-gradient(145deg, #302c31, #171719); color: var(--paper); }
.style-selection--wine,
.style-selection--rust { background: linear-gradient(145deg, #6c4144, #3f282c); color: var(--paper); }
.style-selection--olive,
.style-selection--forest,
.style-selection--jade { background: linear-gradient(145deg, #66705d, #343d34); color: var(--paper); }
.style-selection--blue,
.style-selection--slate { background: linear-gradient(145deg, #697785, #39434d); color: var(--paper); }
.style-selection--mauve,
.style-selection--rose { background: linear-gradient(145deg, #d8c8c4, #b49fa0); }
.style-selection--silver { background: linear-gradient(145deg, #ececea, #b8bdc1); }

.style-selection__head,
.style-selection__foot,
.style-focus__heading,
.style-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.style-selection__head { position: relative; z-index: 1; align-items: start; }
.style-selection__head h3 { margin: 3px 0 0; font-family: "Noto Serif SC", "Songti SC", serif; font-size: 1.48rem; font-weight: 500; }
.style-selection__head > span { font-family: "Times New Roman", serif; font-size: 0.66rem; letter-spacing: 0.12em; }
.style-selection > p { position: relative; z-index: 1; margin: 12px 0 16px; font-size: 0.72rem; opacity: 0.78; }

.style-starters {
  display: grid;
  position: relative;
  z-index: 1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.style-starter { overflow: hidden; min-width: 0; background: rgba(250, 249, 246, 0.9); color: var(--ink); }
.style-starter__art { height: 128px; background-repeat: no-repeat; }
.style-starter small { display: block; overflow: hidden; padding: 8px 7px 9px; font-size: 0.61rem; text-overflow: ellipsis; white-space: nowrap; }
.style-selection__foot { position: relative; z-index: 1; margin-top: 13px; padding-top: 11px; border-top: 1px solid currentColor; font-size: 0.62rem; opacity: 0.7; }
.style-selection__foot i { font-style: normal; }

.style-focus { padding: 18px 16px 16px; }
.style-focus__heading { align-items: end; }
.style-focus__heading > span { max-width: 120px; color: var(--graphite); font-size: 0.64rem; line-height: 1.45; text-align: right; }

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

.style-card {
  display: grid;
  position: relative;
  min-height: 134px;
  padding: 13px 12px 12px;
  border: 1px solid rgba(42, 37, 42, 0.12);
  border-radius: 2px;
  background: #f2efe9;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.style-card__index { color: #98846d; font-family: "Times New Roman", serif; font-size: 0.56rem; letter-spacing: 0.14em; }
.style-card__title { display: flex; align-items: baseline; gap: 6px; margin-top: 9px; }
.style-card__title b { font-family: "Times New Roman", "Noto Serif SC", serif; font-size: 1rem; font-weight: 500; }
.style-card__title i { color: var(--graphite); font-size: 0.62rem; font-style: normal; }
.style-card small { align-self: end; color: var(--graphite); font-size: 0.61rem; line-height: 1.55; }
.style-card em { position: absolute; top: 12px; right: 10px; font-size: 0.56rem; font-style: normal; opacity: 0.6; }
.style-card.is-active { border-color: var(--plum); background: var(--plum); color: var(--paper); }
.style-card.is-active .style-card__index,
.style-card.is-active .style-card__title i,
.style-card.is-active small { color: rgba(255, 255, 255, 0.72); }

.style-action {
  position: sticky;
  z-index: 7;
  bottom: 88px;
  margin-top: 14px;
  padding: 10px 10px 10px 14px;
  border: 1px solid rgba(42, 37, 42, 0.13);
  background: rgba(250, 249, 246, 0.94);
  box-shadow: 0 12px 28px rgba(42, 37, 42, 0.13);
  backdrop-filter: blur(14px);
}

.style-action > div { display: grid; gap: 2px; min-width: 0; }
.style-action small { color: var(--graphite); font-size: 0.58rem; }
.style-action strong { overflow: hidden; max-width: 160px; font-family: "Noto Serif SC", serif; font-size: 0.78rem; text-overflow: ellipsis; white-space: nowrap; }
.style-action .button { min-height: 44px; padding-inline: 15px; font-size: 0.72rem; }

.basis-card h2 {
  margin: 0 0 5px;
  font-size: 1.3rem;
}

.basis-card .lede {
  margin-bottom: 0;
}

.button {
  display: inline-grid;
  min-height: 52px;
  place-items: center;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.button--primary {
  border-color: var(--plum);
  background: var(--plum);
  color: var(--paper);
}

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

.button--full {
  width: 100%;
}

.combined-card {
  padding: 18px;
  border-radius: 20px;
  background: var(--plum);
  color: var(--paper);
}

.combined-card .eyebrow {
  margin-bottom: 5px;
}

.combined-card button {
  float: right;
  border: 0;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
}

.outfit-card {
  position: relative;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--paper);
  box-shadow: var(--shadow-card);
}

.prescription-card {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid rgba(73, 61, 51, 0.14);
  border-radius: 3px;
  background: var(--paper);
  box-shadow: 0 16px 44px rgba(44, 37, 32, 0.08);
}

.prescription-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(73, 61, 51, 0.11);
}

.prescription-card__header h2 {
  margin: 5px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.58rem;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.prescription-style-note {
  display: block;
  margin-top: 6px;
  color: var(--graphite);
  font-size: 0.54rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.prescription-card__header > span {
  display: grid;
  min-width: 62px;
  padding-left: 14px;
  border-left: 1px solid rgba(73, 61, 51, 0.16);
  color: var(--plum);
  text-align: right;
}

.prescription-card__header > span b {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1;
}

.prescription-card__header > span small {
  margin-top: 3px;
  color: var(--graphite);
  font-size: 0.54rem;
}

.prescription-formula {
  padding: 18px 20px 17px;
  background: var(--plum);
  color: var(--paper);
}

.prescription-formula small,
.prescription-why > small {
  display: block;
  margin-bottom: 8px;
  color: var(--champagne);
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.prescription-formula p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.04rem;
  line-height: 1.55;
}

.prescription-list {
  padding: 0 20px;
}

.prescription-item {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 86px;
  width: 100%;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(73, 61, 51, 0.1);
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.prescription-item:hover,
.prescription-item:focus-visible { background: rgba(181, 154, 120, 0.08); }

.prescription-item__visual {
  position: relative;
  display: grid;
  width: 70px;
  height: 68px;
  place-items: center;
  overflow: hidden;
  background: #efede8;
}

.prescription-item__visual > span {
  position: absolute;
  top: 5px;
  left: 6px;
  z-index: 2;
  color: #8a755d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.48rem;
}

.prescription-item__visual img,
.prescription-item__demo {
  width: 100%;
  height: 100%;
}

.prescription-item__visual img {
  padding: 5px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.prescription-item__demo {
  background-image: var(--garment-image);
  background-position: var(--crop-position, center);
  background-repeat: no-repeat;
  background-size: 360% 112%;
  mix-blend-mode: multiply;
}

.prescription-item > div:last-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.prescription-item small {
  color: #8a755d;
  font-size: 0.53rem;
  letter-spacing: 0.1em;
}

.prescription-item strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 560;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prescription-item em {
  color: var(--plum);
  font-size: 0.56rem;
  font-style: normal;
}

.swap-notice {
  margin: 0;
  padding: 10px 20px;
  border-left: 2px solid var(--champagne);
  background: rgba(181, 154, 120, 0.1);
  color: var(--plum);
  font-size: 0.62rem;
  line-height: 1.5;
}

.swap-panel {
  padding: 18px 20px 20px;
  border-top: 1px solid rgba(73, 61, 51, 0.1);
  background: #f5f2ec;
}

.swap-panel > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.swap-panel > header small {
  color: var(--champagne);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.swap-panel > header h3 {
  margin: 4px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.04rem;
  font-weight: 500;
}

.swap-panel > header button {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(73, 61, 51, 0.15);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.swap-panel > p {
  margin: 9px 0 13px;
  color: var(--graphite);
  font-size: 0.62rem;
  line-height: 1.55;
}

.swap-options { display: grid; gap: 7px; }

.swap-option {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 11px;
  align-items: center;
  min-height: 62px;
  padding: 5px 10px 5px 5px;
  border: 1px solid rgba(73, 61, 51, 0.11);
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.swap-option__art {
  display: block;
  width: 56px;
  height: 52px;
  background-color: #ebe8e1;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  mix-blend-mode: multiply;
}

.swap-option > span:nth-child(2) { display: grid; gap: 3px; min-width: 0; }
.swap-option small { color: #8a755d; font-size: 0.5rem; }
.swap-option strong { overflow: hidden; font-size: 0.7rem; text-overflow: ellipsis; white-space: nowrap; }
.swap-option__impact {
  display: grid;
  min-width: 50px;
  gap: 1px;
  padding-left: 8px;
  border-left: 1px solid rgba(73, 61, 51, 0.1);
  font-style: normal;
  text-align: right;
}
.swap-option__impact b { color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 0.82rem; font-weight: 500; }
.swap-option__impact small { font-size: 0.46rem; white-space: nowrap; }
.swap-option__impact.is-positive b, .swap-option__impact.is-positive small { color: #4d704f; }
.swap-option__impact.is-negative b, .swap-option__impact.is-negative small { color: #994c48; }
.swap-option__impact.is-neutral b, .swap-option__impact.is-neutral small { color: #786b5d; }
.swap-empty { padding: 20px 12px; border: 1px dashed rgba(73, 61, 51, 0.18); color: var(--graphite); font-size: 0.66rem; text-align: center; }

.swap-analysis {
  margin: 0;
  padding: 14px 20px 16px;
  border-top: 1px solid rgba(73, 61, 51, 0.09);
  background: #f8f6f1;
}
.swap-analysis > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.swap-analysis > header small { color: var(--champagne); font-size: 0.48rem; font-weight: 700; letter-spacing: 0.12em; }
.swap-analysis > header strong { font-size: 0.66rem; font-weight: 650; }
.swap-analysis.is-positive > header strong { color: #4d704f; }
.swap-analysis.is-negative > header strong { color: #994c48; }
.swap-analysis.is-neutral > header strong { color: #786b5d; }
.swap-analysis__metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 11px 0 10px; background: rgba(73, 61, 51, 0.1); }
.swap-analysis__metrics span { display: grid; gap: 3px; padding: 9px 8px; background: var(--paper); }
.swap-analysis__metrics small { color: #8a755d; font-size: 0.46rem; }
.swap-analysis__metrics b { color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 0.86rem; font-weight: 500; }
.swap-analysis > p { margin: 0; color: var(--graphite); font-size: 0.6rem; line-height: 1.55; }

.prescription-why {
  padding: 18px 20px;
  background: #f1eee8;
}

.prescription-why p {
  margin: 0;
  color: var(--ink);
  font-size: 0.72rem;
  line-height: 1.65;
}

.prescription-why .weather-note {
  margin-top: 10px;
  padding-left: 10px;
  border-left: 2px solid var(--champagne);
  color: var(--plum);
}

.prescription-card footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 20px;
  color: var(--graphite);
  font-size: 0.52rem;
}

.style-decision {
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid rgba(73, 61, 51, 0.13);
  border-radius: 3px;
  background: var(--paper);
  box-shadow: 0 12px 34px rgba(44, 37, 32, 0.055);
}

.style-decision > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 18px 14px;
}

.style-decision > header small {
  color: #8a755d;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.style-decision > header h3 {
  margin: 4px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  font-weight: 500;
}

.style-decision > header > span {
  padding: 5px 7px;
  background: #f0ece5;
  color: var(--graphite);
  font-size: 0.5rem;
}

.style-decision__axis {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 14px 18px;
  background: var(--plum);
  color: var(--paper);
}

.style-decision__axis > div { display: grid; gap: 4px; }
.style-decision__axis small { color: rgba(255, 255, 255, 0.58); font-size: 0.46rem; letter-spacing: 0.08em; }
.style-decision__axis strong { font-family: Georgia, "Times New Roman", serif; font-size: 0.76rem; font-weight: 500; }
.style-decision__axis i { color: var(--champagne); font-style: normal; }
.style-evidence { padding: 2px 18px 7px; }
.style-evidence article { display: grid; grid-template-columns: 25px 1fr; gap: 9px; padding: 12px 0; border-bottom: 1px solid rgba(73, 61, 51, 0.09); }
.style-evidence article:last-child { border-bottom: 0; }
.style-evidence article > b { color: var(--champagne); font-family: Georgia, "Times New Roman", serif; font-size: 0.56rem; }
.style-evidence article div { display: grid; gap: 3px; }
.style-evidence article small { color: #8a755d; font-size: 0.5rem; font-weight: 700; letter-spacing: 0.08em; }
.style-evidence article p { margin: 0; color: var(--ink); font-size: 0.66rem; line-height: 1.55; }
.style-warning { margin: 0 18px 16px; padding: 10px 11px; border-left: 2px solid #9b5d58; background: rgba(155, 93, 88, 0.07); }
.style-warning small { color: #8b4d48; font-size: 0.5rem; font-weight: 700; }
.style-warning p { margin: 4px 0 0; color: var(--graphite); font-size: 0.62rem; line-height: 1.5; }

.outfit-card__image {
  display: block;
  width: 100%;
  height: min(54dvh, 470px);
  padding: 18px;
  object-fit: contain;
  background: var(--paper);
}

.outfit-card__composition {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  min-height: min(44dvh, 380px);
  padding: 44px 12px 14px;
  background:
    linear-gradient(rgba(120, 108, 92, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 108, 92, 0.08) 1px, transparent 1px),
    #eeebe5;
  background-size: 28px 28px;
}

.outfit-card__composition::before {
  position: absolute;
  top: 17px;
  left: 16px;
  color: #806c54;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  content: "CURATED FROM YOUR WARDROBE";
}

.composition-item {
  position: relative;
  display: grid;
  min-width: 0;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(77, 67, 58, 0.1);
  border-radius: 1px;
  background: rgba(250, 248, 244, 0.76);
}

.composition-item img,
.composition-item__demo {
  width: 100%;
  height: 100%;
}

.composition-item img {
  padding: 8px 4px 42px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.composition-item__demo {
  background-image: var(--garment-image);
  background-position: var(--crop-position, center);
  background-repeat: no-repeat;
  background-size: 360% 112%;
  mix-blend-mode: multiply;
}

.composition-item > span {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 8px;
  padding: 8px 4px;
  overflow: hidden;
  border-top: 1px solid rgba(77, 67, 58, 0.12);
  background: rgba(250, 248, 244, 0.94);
  color: var(--graphite);
  font-size: 0.58rem;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: blur(9px);
}

.recommendation-loading {
  display: grid;
  min-height: 420px;
  margin-top: 18px;
  place-items: center;
  align-content: center;
  gap: 18px;
  border-radius: var(--radius-xl);
  background: var(--paper);
  color: var(--graphite);
  font-size: 0.8rem;
}

.recommendation-loading span {
  width: 48px;
  height: 48px;
  border: 1px solid var(--mist);
  border-top-color: var(--plum);
  border-radius: 50%;
  animation: analysis-spin 900ms linear infinite;
}

.demo-flow {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  gap: 7px;
  align-items: center;
  margin-top: 15px;
  padding: 11px 12px;
  border: 1px solid rgba(73, 61, 51, 0.11);
  background: rgba(250, 248, 244, 0.72);
}

.demo-flow > span { display: grid; grid-template-columns: auto 1fr; gap: 5px; align-items: center; color: #99938b; }
.demo-flow > span b { font-family: Georgia, "Times New Roman", serif; font-size: 0.55rem; font-weight: 500; }
.demo-flow > span small { font-size: 0.48rem; white-space: nowrap; }
.demo-flow > i { height: 1px; background: rgba(73, 61, 51, 0.15); }
.demo-flow > span.is-complete { color: var(--plum); }
.demo-flow > span.is-active { color: var(--champagne); }

@keyframes analysis-spin {
  to { transform: rotate(360deg); }
}

.score-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 9px 12px;
  border-radius: 2px;
  background: rgba(25, 23, 25, 0.86);
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
  color: var(--paper);
  font-size: 0.7rem;
}

.outfit-card__content {
  padding: 0 20px 20px;
}

.outfit-card__content h2 {
  margin: 0 0 8px;
  font-size: 1.42rem;
}

.outfit-card__content p {
  margin-bottom: 12px;
  color: var(--graphite);
  font-size: 0.8rem;
  line-height: 1.65;
}

.outfit-card__content .weather-note {
  padding-left: 10px;
  border-left: 2px solid var(--champagne);
  color: var(--plum);
}

.rule-status,
.recommendation-note {
  display: block;
  margin-top: 12px;
  color: var(--graphite);
  font-size: 0.66rem;
}

.rule-status.validated {
  color: var(--plum);
}

.outfit-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 8px;
  overflow: hidden;
  border: 1px solid rgba(64, 53, 74, 0.16);
  border-radius: 3px;
  background: var(--paper);
}

.outfit-actions .button {
  display: grid;
  min-height: 58px;
  padding: 9px 5px;
  place-content: center;
  gap: 3px;
  border: 0;
  border-right: 1px solid rgba(64, 53, 74, 0.12);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
}

.outfit-actions .button:last-child { border-right: 0; }

.outfit-actions .button b {
  font-size: 0.75rem;
  font-weight: 650;
}

.outfit-actions .button small {
  color: var(--graphite);
  font-size: 0.52rem;
  font-weight: 400;
}

.outfit-actions .button--primary {
  background: var(--plum);
  color: var(--paper);
}

.outfit-actions .button--primary small { color: rgba(255, 255, 255, 0.66); }

.outfit-actions .button.is-selected {
  box-shadow: inset 0 -3px 0 var(--champagne);
}

.feedback-explainer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.feedback-explainer strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.94rem;
  font-weight: 500;
}

.feedback-explainer span {
  color: var(--graphite);
  font-size: 0.58rem;
  text-align: right;
}

.outfit-refresh {
  display: block;
  margin: 12px auto 0;
  border: 0;
  background: transparent;
  color: var(--graphite);
  font-size: 0.74rem;
  cursor: pointer;
}

.feedback-message {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  align-items: center;
  margin: 10px 0 0;
  padding: 10px 12px;
  border-left: 2px solid var(--champagne);
  background: rgba(181, 154, 120, 0.1);
  color: var(--plum);
  font-size: 0.66rem;
  line-height: 1.45;
  text-align: left;
}

.feedback-message i {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--plum);
  color: var(--paper);
  font-size: 0.58rem;
  font-style: normal;
}

.learning-receipt {
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid rgba(73, 61, 51, 0.13);
  border-radius: 3px;
  background: var(--paper);
}

.learning-receipt > div:first-child {
  padding: 16px 18px 13px;
  background: var(--plum);
  color: var(--paper);
}

.learning-receipt > div:first-child small { color: var(--champagne); font-size: 0.5rem; font-weight: 700; letter-spacing: 0.14em; }
.learning-receipt > div:first-child h3 { margin: 5px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 1rem; font-weight: 500; }
.learning-receipt dl { display: grid; margin: 0; padding: 3px 18px; }
.learning-receipt dl > div { display: grid; grid-template-columns: 72px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(73, 61, 51, 0.09); }
.learning-receipt dl > div:last-child { border-bottom: 0; }
.learning-receipt dt { color: #8a755d; font-size: 0.54rem; }
.learning-receipt dd { margin: 0; color: var(--ink); font-size: 0.64rem; line-height: 1.5; }
.learning-receipt footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 18px; background: #f2efe9; color: var(--graphite); font-size: 0.54rem; }
.learning-receipt footer button { padding: 0; border: 0; background: transparent; color: var(--plum); font-size: 0.58rem; font-weight: 650; cursor: pointer; }

.tryon-card {
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid rgba(64, 53, 74, 0.12);
  border-radius: 22px;
  background: rgba(251, 250, 247, 0.9);
  box-shadow: 0 12px 34px rgba(44, 37, 32, 0.07);
}

.tryon-card.is-open {
  border-color: rgba(64, 53, 74, 0.2);
}

.tryon-card__summary {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 13px;
  align-items: center;
  width: 100%;
  padding: 13px 14px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.tryon-card__summary > span:nth-child(2) {
  display: grid;
  gap: 2px;
}

.tryon-card__summary small {
  color: var(--champagne);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.tryon-card__summary strong {
  font-size: 0.88rem;
}

.tryon-card__summary em {
  color: var(--graphite);
  font-size: 0.67rem;
  font-style: normal;
}

.tryon-card__summary > b {
  color: var(--plum);
  font-size: 0.68rem;
}

.tryon-card__icon {
  position: relative;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 15px;
  background: var(--plum);
}

.tryon-card__icon::before,
.tryon-card__icon i {
  position: absolute;
  display: block;
  background: var(--paper);
  content: "";
}

.tryon-card__icon::before {
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.tryon-card__icon i {
  top: 20px;
  width: 17px;
  height: 19px;
  border-radius: 8px 8px 5px 5px;
  clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%);
}

.tryon-card__body {
  display: grid;
  grid-template-columns: minmax(118px, 0.8fr) 1.2fr;
  gap: 15px;
  padding: 0 14px 14px;
  animation: screen-enter 280ms ease both;
}

.mannequin-stage {
  position: relative;
  display: grid;
  min-height: 260px;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 33%, rgba(255, 255, 255, 0.96), transparent 28%),
    linear-gradient(155deg, #e8e2d8, #d6d0c7);
}

.mannequin-stage::after {
  position: absolute;
  right: 18%;
  bottom: 25px;
  left: 18%;
  height: 12px;
  border-radius: 50%;
  background: rgba(32, 29, 30, 0.12);
  filter: blur(7px);
  content: "";
}

.mannequin {
  position: relative;
  z-index: 1;
  width: 88px;
  height: 214px;
}

.mannequin span {
  position: absolute;
  display: block;
}

.mannequin__head {
  top: 0;
  left: 35px;
  width: 22px;
  height: 29px;
  border-radius: 48% 48% 44% 44%;
  background: #dad7d1;
}

.mannequin__neck {
  top: 27px;
  left: 40px;
  width: 12px;
  height: 12px;
  background: #d3d0ca;
}

.mannequin__torso {
  top: 36px;
  left: 22px;
  width: 48px;
  height: 84px;
  border-radius: 15px 15px 7px 7px;
  background: #dedbd5;
  clip-path: polygon(12% 0, 88% 0, 73% 100%, 27% 100%);
}

.mannequin__top {
  top: 38px;
  left: 21px;
  z-index: 2;
  width: 50px;
  height: 75px;
  border-radius: 13px 13px 5px 5px;
  background: var(--top-tone);
  clip-path: polygon(12% 0, 88% 0, 76% 100%, 24% 100%);
}

.mannequin__outer {
  top: 37px;
  z-index: 3;
  width: 25px;
  height: 92px;
  background: var(--outer-tone);
}

.mannequin__outer--left {
  left: 18px;
  border-radius: 13px 2px 5px 8px;
  transform: skewX(-5deg);
}

.mannequin__outer--right {
  right: 14px;
  border-radius: 2px 13px 8px 5px;
  transform: skewX(5deg);
}

.mannequin__leg {
  top: 108px;
  z-index: 1;
  width: 25px;
  height: 99px;
  border-radius: 3px 3px 7px 7px;
  background: var(--bottom-tone);
}

.mannequin__leg--left { left: 21px; transform: rotate(1deg); }
.mannequin__leg--right { right: 17px; transform: rotate(-1deg); }

.tryon-stage-label {
  position: absolute;
  z-index: 2;
  right: 8px;
  bottom: 8px;
  left: 8px;
  padding: 7px 5px;
  border-radius: 9px;
  background: rgba(251, 250, 247, 0.82);
  color: var(--graphite);
  font-size: 0.54rem;
  text-align: center;
  backdrop-filter: blur(8px);
}

.tryon-details {
  min-width: 0;
  padding-top: 4px;
}

.tryon-details__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.tryon-details__head h3 {
  margin-bottom: 10px;
  font-size: 1rem;
}

.tryon-details__head > span {
  padding: 5px 7px;
  border-radius: 999px;
  background: rgba(181, 154, 120, 0.14);
  color: #7b654b;
  font-size: 0.55rem;
  white-space: nowrap;
}

.tryon-layers {
  display: grid;
  gap: 6px;
}

.tryon-layers > span {
  display: grid;
  grid-template-columns: 8px 29px 1fr;
  gap: 6px;
  align-items: center;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.65rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tryon-layers i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--swatch);
}

.tryon-layers small {
  color: var(--graphite);
  font-size: 0.58rem;
}

.tryon-details > p {
  margin: 12px 0;
  color: var(--graphite);
  font-size: 0.62rem;
  line-height: 1.6;
}

.tryon-details .button {
  min-height: 38px;
  padding: 0 10px;
  font-size: 0.66rem;
}

@media (max-width: 365px) {
  .tryon-card__body { grid-template-columns: 1fr; }
  .mannequin-stage { min-height: 240px; }
}

.candidate-card {
  display: grid;
  grid-template-columns: 43% 1fr;
  gap: 18px;
  margin-top: 18px;
  padding: 16px;
  border-radius: var(--radius-xl);
  background: var(--paper);
  box-shadow: var(--shadow-card);
}

.candidate-card__visual {
  display: grid;
  min-height: 190px;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  background: var(--porcelain);
}

.candidate-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.candidate-card__demo {
  width: 100%;
  height: 100%;
  background-image: var(--candidate-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 360% 112%;
  mix-blend-mode: multiply;
}

.candidate-card__content {
  padding-top: 10px;
}

.candidate-card__content h2 {
  margin: 14px 0 8px;
  font-size: 1.35rem;
}

.candidate-card__content p {
  color: var(--graphite);
  font-size: 0.76rem;
  line-height: 1.65;
}

.match-power {
  margin-top: 16px;
  padding: 20px;
  border-radius: 22px;
  background: var(--plum);
  color: var(--paper);
}

.match-score {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 3rem;
}

.match-score small {
  font-family: inherit;
  font-size: 0.7rem;
}

.match-power p {
  max-width: 12rem;
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.6;
}

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

.swatch-card {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--paper);
  font-size: 0.68rem;
  text-align: center;
}

.swatch-card::before {
  display: block;
  width: 38px;
  height: 46px;
  margin: 0 auto 8px;
  border-radius: 12px;
  background: var(--swatch);
  content: "";
}

.verdict {
  margin: 15px 0;
  color: var(--plum);
  font-size: 0.82rem;
  font-weight: 650;
}

.empty-card {
  padding: 48px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--paper);
  text-align: center;
}

.empty-card p {
  color: var(--graphite);
  line-height: 1.7;
}

.home-demo-message {
  margin: 12px 0 0;
  padding: 9px 11px;
  border-left: 2px solid var(--champagne);
  background: rgba(181, 154, 120, 0.1);
  color: var(--plum);
  font-size: 0.64rem;
}

.demo-console {
  overflow: hidden;
  border: 1px solid rgba(73, 61, 51, 0.14);
  border-radius: 3px;
  background: var(--paper);
  box-shadow: 0 16px 44px rgba(44, 37, 32, 0.08);
}

.demo-console__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 16px;
  background: var(--plum);
  color: var(--paper);
}

.demo-console__head span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.92rem;
}

.demo-console__head small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.54rem;
}

.demo-scenarios {
  padding: 0 16px;
}

.demo-scenario {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 11px;
  align-items: center;
  width: 100%;
  padding: 17px 0;
  border: 0;
  border-bottom: 1px solid rgba(73, 61, 51, 0.1);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.demo-scenario:last-child { border-bottom: 0; }

.demo-scenario > span {
  align-self: start;
  color: #8a755d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.6rem;
}

.demo-scenario > div {
  display: grid;
  gap: 3px;
}

.demo-scenario small {
  color: #8a755d;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.demo-scenario strong {
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
}

.demo-scenario p {
  margin: 0;
  color: var(--graphite);
  font-size: 0.59rem;
  line-height: 1.45;
}

.demo-scenario > b {
  color: var(--plum);
  font-size: 0.58rem;
  white-space: nowrap;
}

.demo-reset {
  display: grid;
  width: 100%;
  margin-top: 12px;
  padding: 15px 16px;
  border: 1px solid rgba(73, 61, 51, 0.14);
  border-radius: 3px;
  background: rgba(251, 250, 247, 0.78);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.demo-reset span {
  margin-bottom: 5px;
  color: #8a755d;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.demo-reset strong { font-size: 0.76rem; }

.demo-reset small {
  margin-top: 3px;
  color: var(--graphite);
  font-size: 0.56rem;
}

.demo-note {
  margin: 10px 4px 0;
  color: var(--graphite);
  font-size: 0.55rem;
  line-height: 1.55;
}

.profile-screen {
  padding-bottom: 112px;
}

.profile-header {
  padding-bottom: 18px;
}

.profile-overview {
  overflow: hidden;
  border: 1px solid rgba(73, 61, 51, 0.14);
  border-radius: 3px;
  background: var(--paper);
  box-shadow: 0 18px 48px rgba(44, 37, 32, 0.08);
}

.profile-overview__label {
  display: flex;
  justify-content: space-between;
  padding: 12px 15px;
  border-bottom: 1px solid rgba(73, 61, 51, 0.1);
  color: #8a755d;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.profile-overview__label small {
  color: var(--graphite);
  font-size: 0.52rem;
  letter-spacing: 0;
}

.profile-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 21px 8px 19px;
  background: var(--plum);
  color: var(--paper);
}

.profile-metrics article {
  display: grid;
  gap: 5px;
  text-align: center;
}

.profile-metrics article + article {
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.profile-metrics strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 400;
}

.profile-metrics span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.53rem;
}

.profile-signature {
  padding: 20px 17px 22px;
}

.profile-signature small {
  color: #8a755d;
  font-size: 0.51rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.profile-signature h2,
.profile-learning h2 {
  margin: 8px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  font-weight: 400;
}

.profile-signature p,
.profile-learning p {
  margin: 0;
  color: var(--graphite);
  font-size: 0.63rem;
  line-height: 1.7;
}
.profile-style-model { display: grid; gap: 15px; margin-top: 14px; padding: 18px 16px; border: 1px solid rgba(73, 61, 51, 0.14); background: rgba(251, 250, 247, 0.78); }
.profile-style-model > header { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.profile-style-model > header div { display: grid; gap: 5px; }
.profile-style-model > header small { color: #9a7651; font: 0.49rem/1.2 Georgia, serif; letter-spacing: 0.14em; }
.profile-style-model > header h2 { margin: 0; font-family: "Noto Serif SC", "Songti SC", serif; font-size: 1.05rem; font-weight: 520; }
.profile-style-model > header > span { padding: 5px 7px; border: 1px solid rgba(41, 35, 43, 0.22); color: var(--plum); font-size: 0.51rem; white-space: nowrap; }
.profile-model-note { margin: -4px 0 0; color: var(--graphite); font-size: 0.56rem; line-height: 1.65; }
.profile-style-ranking { display: grid; border-top: 1px solid rgba(73, 61, 51, 0.12); }
.profile-style-ranking article { display: grid; grid-template-columns: 24px 1fr 25px; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid rgba(73, 61, 51, 0.1); }
.profile-style-ranking article > b { color: #a58e76; font: 0.52rem/1 Georgia, serif; }
.profile-style-ranking article > div { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 5px 8px; min-width: 0; }
.profile-style-ranking article span { overflow: hidden; font-size: 0.61rem; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.profile-style-ranking article i { grid-column: 1 / -1; height: 3px; overflow: hidden; background: rgba(41, 35, 43, 0.1); }
.profile-style-ranking article i em { display: block; width: var(--profile-score); height: 100%; background: var(--plum); }
.profile-style-ranking article small { color: #89837d; font-size: 0.46rem; }
.profile-style-ranking article > strong { color: var(--plum); font: 0.68rem/1 Georgia, serif; text-align: right; }
.profile-model-action { display: grid; gap: 12px; padding: 14px; background: var(--plum); color: white; }
.profile-model-action > div { display: grid; gap: 5px; }
.profile-model-action small { color: #d0b58e; font: 0.48rem/1.2 Georgia, serif; letter-spacing: 0.13em; }
.profile-model-action strong { font-family: "Noto Serif SC", "Songti SC", serif; font-size: 0.78rem; font-weight: 520; }
.profile-model-action p { margin: 0; color: rgba(255, 255, 255, 0.62); font-size: 0.53rem; line-height: 1.55; }
.profile-model-action button { padding: 10px 12px; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.07); color: white; font-size: 0.58rem; text-align: left; }
.profile-activity { display: grid; gap: 0; padding-top: 2px; }
.profile-activity > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 8px; }
.profile-activity > div small { color: #9a7651; font: 0.48rem/1.2 Georgia, serif; letter-spacing: 0.12em; }
.profile-activity > div strong { font-size: 0.56rem; font-weight: 550; }
.profile-activity > p { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 8px 0; border-top: 1px solid rgba(73, 61, 51, 0.1); font-size: 0.53rem; }
.profile-activity > p span { color: var(--graphite); }
.profile-activity > p b { font-weight: 550; text-align: right; }

.profile-learning {
  margin-top: 14px;
  padding: 21px 17px;
  border: 1px solid rgba(73, 61, 51, 0.12);
  background: rgba(251, 250, 247, 0.7);
}

.profile-learning__steps {
  display: grid;
  margin-top: 16px;
  border-top: 1px solid rgba(73, 61, 51, 0.1);
}

.profile-learning__steps span {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid rgba(73, 61, 51, 0.1);
  color: var(--ink);
  font-size: 0.63rem;
}

.profile-learning__steps b {
  color: #8a755d;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.profile-learning__steps em {
  color: var(--graphite);
  font-size: 0.5rem;
  font-style: normal;
}

.profile-learning__steps .is-complete em {
  color: #6e785d;
}

.profile-learning__steps .is-complete em::before {
  margin-right: 4px;
  content: "✓";
}

.profile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.profile-action {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 104px;
  padding: 15px;
  border: 1px solid rgba(73, 61, 51, 0.14);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.profile-action--primary {
  background: var(--plum);
  color: var(--paper);
}

.profile-action small {
  color: #9b8369;
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.11em;
}

.profile-action strong {
  align-self: end;
  font-size: 0.7rem;
}

.profile-action > span {
  position: absolute;
  right: 13px;
  bottom: 13px;
  font-size: 0.65rem;
}

.profile-privacy {
  margin: 12px 4px 0;
  color: var(--graphite);
  font-size: 0.53rem;
}

.sheet {
  width: min(100%, 430px);
  max-width: none;
  margin: auto auto 0;
  padding: 0;
  border: 0;
  border-radius: 18px 18px 0 0;
  background: transparent;
}

.sheet::backdrop {
  background: rgba(20, 18, 18, 0.56);
  backdrop-filter: blur(10px) saturate(0.8);
}

.sheet__panel {
  max-height: 92dvh;
  padding: 10px 22px calc(26px + env(safe-area-inset-bottom));
  overflow-y: auto;
  border-radius: 18px 18px 0 0;
  background: var(--paper);
}

.sheet__handle {
  width: 34px;
  height: 2px;
  margin: 0 auto 13px;
  border-radius: 99px;
  background: var(--mist);
}

.sheet-progress {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  color: #9a958c;
  font-family: "Times New Roman", serif;
  font-size: 0.52rem;
  font-style: normal;
  letter-spacing: 0.12em;
}

.sheet-progress b { color: var(--ink); font-weight: 600; }
.sheet-progress i { font-style: normal; }
.sheet-progress span { height: 1px; background: var(--line); }

.sheet__header h2 {
  margin-bottom: 18px;
}

.upload-drop {
  display: grid;
  min-height: 226px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 3px;
  background:
    linear-gradient(90deg, rgba(21, 20, 18, 0.026) 1px, transparent 1px),
    linear-gradient(rgba(21, 20, 18, 0.026) 1px, transparent 1px),
    var(--porcelain);
  background-size: 28px 28px;
  color: var(--graphite);
  cursor: pointer;
}

#upload-placeholder {
  display: grid;
  max-width: 220px;
  place-items: center;
  text-align: center;
}

#upload-placeholder[hidden] { display: none; }

#upload-placeholder i {
  position: relative;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

#upload-placeholder i::before,
#upload-placeholder i::after {
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--ink);
  content: "";
  transform: translate(-50%, -50%);
}

#upload-placeholder i::before { width: 16px; height: 1px; }
#upload-placeholder i::after { width: 1px; height: 16px; }
#upload-placeholder strong { color: var(--ink); font-family: "Noto Serif SC", serif; font-size: 0.95rem; font-weight: 500; }
#upload-placeholder small { margin-top: 7px; color: var(--graphite); font-size: 0.64rem; line-height: 1.5; }

.upload-drop input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.upload-drop img {
  width: 100%;
  height: 250px;
  object-fit: contain;
}

.analysis-card {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(181, 154, 120, 0.34);
  border-radius: 3px;
  background: #f2eee7;
}

.analysis-card__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.analysis-card__heading strong {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 0.96rem;
  font-weight: 500;
}

.analysis-card__heading > span {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 2px;
  background: var(--plum);
  color: var(--paper);
  font-size: 0.62rem;
}

.analysis-card > p {
  margin: 10px 0 12px;
  color: var(--graphite);
  font-size: 0.7rem;
}

.analysis-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.analysis-fields label {
  display: grid;
  gap: 6px;
  color: var(--graphite);
  font-size: 0.68rem;
}

.analysis-fields label:last-child { grid-column: 1 / -1; }

.analysis-fields select {
  min-width: 0;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
}

fieldset {
  margin: 20px 0;
  padding: 0;
  border: 0;
}

legend,
.field span {
  margin-bottom: 9px;
  color: var(--graphite);
  font-size: 0.75rem;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
}

.segmented button {
  min-height: 40px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}

.segmented button:last-child { border-right: 0; }

.segmented button.is-active {
  background: var(--plum);
  box-shadow: none;
  color: var(--paper);
  font-weight: 650;
}

.field {
  display: grid;
  margin-bottom: 20px;
}

.field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
}

.mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0 0 12px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(250, 249, 246, 0.48);
}

.mode-switch button {
  display: grid;
  gap: 4px;
  min-height: 60px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--graphite);
  cursor: pointer;
}

.mode-switch button:last-child { border-right: 0; }
.mode-switch button small { color: var(--champagne); font-family: "Times New Roman", serif; font-size: 0.52rem; letter-spacing: 0.12em; }
.mode-switch button span { font-family: "Noto Serif SC", serif; font-size: 0.82rem; }

.mode-switch button.is-active {
  background: var(--plum);
  box-shadow: none;
  color: white;
}

.mode-switch button.is-active small { color: #c9b89f; }

.match-panel {
  display: grid;
  gap: 18px;
  padding: 24px 20px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(250, 249, 246, 0.74);
  box-shadow: none;
}

.match-panel__intro h2,
.candidate-confirm h3,
.advice-result h2 {
  margin-bottom: 7px;
}

.match-panel__intro > p:last-child,
.candidate-confirm__head + p,
.advice-result > p {
  margin-bottom: 0;
  color: var(--graphite);
  font-size: 0.83rem;
  line-height: 1.7;
}

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

.control-grid--single {
  grid-template-columns: 1fr;
}

.compact-field,
.url-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.url-entry {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 8px;
}

.url-entry-note {
  grid-column: 1 / -1;
  color: #8a857d;
  font-size: 0.62rem;
  line-height: 1.55;
}

.url-entry .button {
  min-height: 46px;
  padding-inline: 12px;
}

.compact-field span,
.url-field span {
  color: var(--graphite);
  font-size: 0.7rem;
}

.compact-field select,
.url-field input,
.candidate-confirm .field input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font: inherit;
  font-size: 0.78rem;
}

.style-picker {
  grid-column: 1 / -1;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.66);
}

.style-picker summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 12px 14px;
  list-style: none;
  cursor: pointer;
}

.style-picker summary::-webkit-details-marker { display: none; }
.style-picker summary > span { display: grid; min-width: 0; gap: 2px; }
.style-picker summary small { color: var(--graphite); font-size: 0.62rem; }
.style-picker summary b { font-family: "Noto Serif SC", "Songti SC", serif; font-size: 0.92rem; font-weight: 550; }
.style-picker summary em { overflow: hidden; color: var(--graphite); font-size: 0.6rem; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.style-picker summary > i { flex: 0 0 auto; padding: 6px 9px; border: 1px solid var(--line); color: var(--plum); font-size: 0.62rem; font-style: normal; }
.style-picker[open] summary > i { background: var(--plum); color: white; }

.style-picker__panel {
  padding: 13px;
  border-top: 1px solid var(--line);
  background: #f3f0ea;
}

.style-picker__heading {
  display: flex;
  justify-content: space-between;
  margin-bottom: 9px;
  color: var(--graphite);
  font-family: "Times New Roman", serif;
  font-size: 0.56rem;
  letter-spacing: 0.1em;
}

.style-picker__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  max-height: 380px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.style-picker__option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
  min-height: 82px;
  padding: 10px 9px;
  border: 1px solid rgba(42, 37, 42, 0.1);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.style-picker__option > span { color: #9d876e; font-family: "Times New Roman", serif; font-size: 0.54rem; letter-spacing: 0.08em; }
.style-picker__option > div { display: grid; gap: 5px; min-width: 0; }
.style-picker__option b { font-family: "Noto Serif SC", "Songti SC", serif; font-size: 0.7rem; font-weight: 550; line-height: 1.35; }
.style-picker__option small { color: var(--graphite); font-size: 0.55rem; line-height: 1.45; }
.style-picker__option > i { min-width: 12px; color: var(--paper); font-size: 0.68rem; font-style: normal; }
.style-picker__option.is-active { border-color: var(--plum); background: var(--plum); color: var(--paper); }
.style-picker__option.is-active > span,
.style-picker__option.is-active small { color: rgba(255, 255, 255, 0.7); }
.style-picker__option--auto { grid-column: 1 / -1; min-height: 66px; }

.candidate-upload {
  display: grid;
  place-items: center;
  min-height: 250px;
  padding: 28px;
  border: 1px solid rgba(42, 37, 42, 0.18);
  border-radius: 2px;
  background:
    radial-gradient(circle at 50% 30%, rgba(181, 154, 120, 0.16), transparent 45%),
    rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

.candidate-upload > span {
  display: grid;
  place-items: center;
  position: relative;
  width: 58px;
  height: 58px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--plum);
  color: white;
  font-size: 1.5rem;
}

.candidate-upload > span i::before,
.candidate-upload > span i::after {
  position: absolute;
  top: 50%;
  left: 50%;
  background: white;
  content: "";
  transform: translate(-50%, -50%);
}
.candidate-upload > span i::before { width: 18px; height: 1px; }
.candidate-upload > span i::after { width: 1px; height: 18px; }
.candidate-upload .eyebrow { margin-bottom: 7px; }
.candidate-upload strong { font-family: "Noto Serif SC", serif; font-size: 1.02rem; font-weight: 500; }

.candidate-upload small {
  margin-top: 7px;
  color: var(--graphite);
}

.candidate-upload em { margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--line); color: #8a847b; font-size: 0.58rem; font-style: normal; letter-spacing: 0.04em; }

.candidate-samples {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(42, 37, 42, 0.12);
  background: #f3f0ea;
}

.candidate-samples__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.candidate-samples__head span { font-family: "Noto Serif SC", serif; font-size: 0.78rem; }
.candidate-samples__head small { color: var(--graphite); font-size: 0.56rem; }
.candidate-samples__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }

.candidate-samples__grid button {
  display: grid;
  min-width: 0;
  padding: 0 0 9px;
  border: 1px solid rgba(42, 37, 42, 0.1);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.candidate-samples__grid button > span { display: block; width: 100%; height: 116px; background-repeat: no-repeat; }
.candidate-samples__grid button small { overflow: hidden; padding: 8px 8px 2px; font-size: 0.58rem; text-overflow: ellipsis; white-space: nowrap; }
.candidate-samples__grid button em { padding: 0 8px; color: var(--champagne); font-size: 0.52rem; font-style: normal; }

.candidate-sample-preview {
  display: grid;
  overflow: hidden;
  grid-template-columns: 46% 1fr;
  min-height: 240px;
  border: 1px solid rgba(42, 37, 42, 0.14);
  background: #f4f0e9;
}

.candidate-sample-preview > div { min-height: 240px; background-repeat: no-repeat; }
.candidate-sample-preview > span { display: grid; align-content: center; gap: 6px; padding: 20px; }
.candidate-sample-preview small { color: var(--champagne); font-family: "Times New Roman", serif; font-size: 0.54rem; letter-spacing: 0.13em; }
.candidate-sample-preview strong { font-family: "Noto Serif SC", serif; font-size: 1.05rem; font-weight: 500; line-height: 1.4; }
.candidate-sample-preview em { color: var(--graphite); font-size: 0.62rem; font-style: normal; line-height: 1.5; }
.candidate-sample-crop { display: block; width: 100%; height: 100%; background-repeat: no-repeat; }

.target-selector {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  border-radius: 2px;
  background: #dedad3;
  touch-action: none;
  user-select: none;
}

.target-selector img {
  display: block;
  width: 100%;
  height: min(66vh, 440px);
  object-fit: contain;
  pointer-events: none;
}

.target-selector.is-selecting {
  cursor: crosshair;
}

.target-selector.is-selecting::after {
  position: absolute;
  inset: 0;
  background: rgba(25, 24, 23, 0.13);
  content: "";
  pointer-events: none;
}

.target-box {
  position: absolute;
  z-index: 2;
  border: 2px solid #fff;
  border-radius: 8px;
  box-shadow: 0 0 0 999px rgba(25, 24, 23, 0.34), 0 0 0 1px var(--plum);
  pointer-events: none;
}

.target-box i {
  position: absolute;
  top: -26px;
  left: -2px;
  padding: 4px 7px;
  border-radius: 6px;
  background: white;
  color: var(--plum);
  font-size: 0.64rem;
  font-style: normal;
  white-space: nowrap;
}

.target-instruction {
  position: absolute;
  z-index: 3;
  right: 12px;
  bottom: 12px;
  left: 12px;
  padding: 9px 12px;
  border-radius: 11px;
  background: rgba(25, 24, 23, 0.72);
  color: white;
  font-size: 0.7rem;
  text-align: center;
  backdrop-filter: blur(9px);
  pointer-events: none;
}

.text-action {
  justify-self: end;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--plum);
  font-size: 0.76rem;
  cursor: pointer;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--graphite);
  font-size: 0.78rem;
}

.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--plum);
}

.candidate-confirm {
  display: grid;
  gap: 15px;
  padding: 20px 16px;
  border: 1px solid var(--line);
  background: rgba(242, 240, 235, 0.72);
}

.candidate-confirm__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.candidate-confirm .field {
  margin-bottom: 0;
}

.advice-result {
  display: grid;
  gap: 15px;
  margin: 8px -20px -24px;
  padding: 24px 20px 26px;
  border-top: 1px solid var(--ink);
  background: #ece8e1;
}

.report-index {
  display: flex;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(21, 20, 18, 0.15);
  color: var(--graphite);
  font-family: "Times New Roman", serif;
  font-size: 0.52rem;
  letter-spacing: 0.12em;
}

.report-index b { color: var(--ink); font-weight: 600; }

.truth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.74rem;
}

.truth-badge {
  padding: 6px 9px;
  border-radius: 2px;
  font-weight: 650;
}

.truth-badge.is-owned {
  background: #e5eee8;
  color: #2d6443;
}

.truth-badge.is-suggested {
  background: #f0e8dd;
  color: #815d36;
}

.truth-badge.is-candidate {
  background: #e9e4ec;
  color: var(--plum);
}

.missing-piece-card {
  padding: 18px;
  border: 1px solid rgba(181, 154, 120, 0.35);
  border-radius: 2px;
  background: #f8f5ef;
}

.missing-piece-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.missing-piece-card__head span {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 1.55rem;
}

.missing-piece-card p,
.missing-piece-card small {
  color: var(--graphite);
  font-size: 0.74rem;
  line-height: 1.65;
}

.spec-list {
  margin: 0 0 14px;
}

.spec-list div {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(64, 53, 74, 0.08);
  font-size: 0.72rem;
}

.spec-list dt {
  color: var(--graphite);
}

.spec-list dd {
  margin: 0;
}

.app-shell--tmall .edition-mark { color: #8b572f; }
.product-home { padding-bottom: 112px; }
.product-home .edition-mark { color: #46566f; }
.product-hero-copy { padding: 34px 0 8px; }
.product-hero-copy h1 {
  max-width: 390px;
  margin: 0 0 12px;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(1.9rem, 7.6vw, 2.45rem);
  font-weight: 480;
  line-height: 1.22;
  letter-spacing: -0.055em;
}
.product-hero-copy .lede { max-width: 330px; color: var(--graphite); font-size: 0.78rem; line-height: 1.7; }
.product-section { margin-top: 16px; }
.product-section > .tmall-section-kicker { margin-bottom: 8px; }
.product-section .hero-lookbook { margin-top: 0; }
.product-section .lookbook-card { height: clamp(270px, 38dvh, 330px); }
.product-section .choice-grid { margin-top: 0; }
.product-decision {
  padding: 14px;
  border: 1px solid rgba(41, 35, 43, 0.16);
  background: rgba(250, 249, 246, 0.68);
}
.product-decision .tmall-section-kicker { margin-bottom: 10px; }
.product-decision .tmall-flow { margin-top: 0; }
.product-decision .tmall-flow button:first-child {
  border-color: var(--plum);
  background: var(--plum);
}
.product-decision .tmall-flow button:last-child {
  border-color: rgba(41, 35, 43, 0.2);
  background: rgba(250, 249, 246, 0.9);
}
.product-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 12px;
  border: 1px solid var(--line);
}
.product-proof div { display: grid; gap: 3px; padding: 12px 8px; border-right: 1px solid var(--line); text-align: center; }
.product-proof div:last-child { border-right: 0; }
.product-proof strong { color: var(--plum); font-family: Georgia, "Times New Roman", serif; font-size: 1rem; font-weight: 500; }
.product-proof span { color: var(--graphite); font-size: 0.5rem; }
.product-journey {
  display: grid;
  gap: 10px;
  margin: 2px 0 18px;
  padding: 11px 0 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.product-journey > p { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 0; }
.product-journey > p span { color: #9a7651; font: 0.49rem/1.2 Georgia, serif; letter-spacing: 0.14em; }
.product-journey > p strong { color: var(--graphite); font-size: 0.57rem; font-weight: 500; text-align: right; }
.product-journey > div { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.product-journey button {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 8px 3px 7px;
  border: 1px solid rgba(41, 35, 43, 0.12);
  background: rgba(255, 255, 255, 0.5);
  color: #736e69;
  text-align: center;
}
.product-journey button small { font: 0.47rem/1 Georgia, serif; color: #a38b72; }
.product-journey button span { overflow: hidden; font-size: 0.55rem; line-height: 1.1; white-space: nowrap; text-overflow: ellipsis; }
.product-journey button.is-active { border-color: var(--plum); background: var(--plum); color: white; }
.product-journey button.is-active small { color: #d0b58e; }
.product-next-step {
  display: grid;
  gap: 15px;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid rgba(41, 35, 43, 0.18);
  background: linear-gradient(135deg, rgba(250, 249, 246, 0.94), rgba(237, 232, 223, 0.72));
}
.product-next-step > div:first-child { display: grid; gap: 6px; }
.product-next-step small { color: #9a7651; font: 0.52rem/1.2 Georgia, serif; letter-spacing: 0.14em; }
.product-next-step h2 { margin: 0; font-family: "Noto Serif SC", "Songti SC", serif; font-size: 1.04rem; font-weight: 520; line-height: 1.45; }
.product-next-step p { margin: 0; color: var(--graphite); font-size: 0.63rem; line-height: 1.65; }
.product-next-step > div:last-child { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid rgba(41, 35, 43, 0.16); }
.product-next-step button { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px; border: 0; background: rgba(255, 255, 255, 0.58); color: var(--ink); font-size: 0.65rem; text-align: left; }
.product-next-step button + button { border-left: 1px solid rgba(41, 35, 43, 0.16); }
.product-next-step button i { color: #9a7651; font-style: normal; }
.product-next-step--decision { background: var(--plum); color: white; }
.product-next-step--decision h2 { color: white; }
.product-next-step--decision p { color: rgba(255, 255, 255, 0.62); }
.product-next-step--decision button { background: rgba(255, 255, 255, 0.06); color: white; }
.product-next-step--decision button + button { border-left-color: rgba(255, 255, 255, 0.16); }
.garment-style-receipt { display: grid; gap: 10px; padding: 15px; border: 1px solid rgba(41, 35, 43, 0.14); background: #f4f0e9; }
.garment-style-receipt > div { display: grid; gap: 4px; }
.garment-style-receipt > div small { color: #9a7651; font: 0.5rem/1.2 Georgia, serif; letter-spacing: 0.14em; }
.garment-style-receipt > div strong { font-family: "Noto Serif SC", "Songti SC", serif; font-size: 0.86rem; font-weight: 520; }
.garment-style-receipt > p { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.garment-style-receipt > p span { padding: 6px 8px; border: 1px solid rgba(41, 35, 43, 0.14); background: rgba(255, 255, 255, 0.66); color: var(--graphite); font-size: 0.55rem; }
.garment-style-receipt > p span.is-primary { border-color: var(--plum); background: var(--plum); color: white; }
.garment-style-receipt > em { color: #77716c; font-size: 0.52rem; font-style: normal; line-height: 1.55; }
.wardrobe-intelligence { display: grid; gap: 12px; margin: 14px 0 18px; padding: 14px; border: 1px solid rgba(41, 35, 43, 0.16); background: var(--plum); color: white; }
.wardrobe-intelligence > header { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.wardrobe-intelligence > header div { display: grid; gap: 4px; }
.wardrobe-intelligence > header small { color: #d0b58e; font: 0.49rem/1.2 Georgia, serif; letter-spacing: 0.13em; }
.wardrobe-intelligence > header strong { font-family: "Noto Serif SC", "Songti SC", serif; font-size: 0.86rem; font-weight: 520; }
.wardrobe-intelligence > header span { padding: 4px 6px; border: 1px solid rgba(255, 255, 255, 0.2); color: rgba(255, 255, 255, 0.65); font-size: 0.48rem; }
.wardrobe-intelligence > div { display: grid; grid-template-columns: 1.15fr 0.8fr 1.2fr; border: 1px solid rgba(255, 255, 255, 0.14); }
.wardrobe-intelligence article { display: grid; align-content: start; gap: 5px; min-width: 0; padding: 10px 8px; border-right: 1px solid rgba(255, 255, 255, 0.14); }
.wardrobe-intelligence article:last-child { border-right: 0; }
.wardrobe-intelligence article small { color: rgba(255, 255, 255, 0.52); font-size: 0.48rem; }
.wardrobe-intelligence article strong { overflow: hidden; color: white; font-size: 0.61rem; font-weight: 550; line-height: 1.4; }
.wardrobe-intelligence article:nth-child(2) strong { font: 1.18rem/1 Georgia, serif; }
.wardrobe-intelligence article span { color: #d0b58e; font-size: 0.46rem; line-height: 1.35; }
.outfit-score-breakdown { display: grid; gap: 11px; padding: 13px 16px; border-top: 1px solid rgba(41, 35, 43, 0.14); border-bottom: 1px solid rgba(41, 35, 43, 0.14); background: rgba(244, 240, 233, 0.7); }
.outfit-score-breakdown > div { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 4px 12px; }
.outfit-score-breakdown > div small { color: #9a7651; font: 0.49rem/1.2 Georgia, serif; letter-spacing: 0.13em; }
.outfit-score-breakdown > div strong { font-size: 0.63rem; font-weight: 600; text-align: right; }
.outfit-score-breakdown > div span { grid-column: 1 / -1; color: var(--graphite); font-size: 0.5rem; }
.outfit-score-breakdown dl { display: grid; gap: 6px; margin: 0; }
.outfit-score-breakdown dl div { display: grid; grid-template-columns: 42px 1fr 22px; align-items: center; gap: 7px; }
.outfit-score-breakdown dt { color: var(--graphite); font-size: 0.51rem; }
.outfit-score-breakdown dd { height: 3px; margin: 0; overflow: hidden; background: rgba(41, 35, 43, 0.1); }
.outfit-score-breakdown dd i { display: block; width: var(--score); height: 100%; background: #9a7651; }
.outfit-score-breakdown dl b { color: var(--plum); font: 0.55rem/1 Georgia, serif; text-align: right; }
.candidate-increment { display: grid; gap: 11px; padding: 14px; border: 1px solid rgba(41, 35, 43, 0.16); background: #f4f0e9; }
.candidate-increment > header { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.candidate-increment > header div { display: grid; gap: 4px; }
.candidate-increment > header small { color: #9a7651; font: 0.48rem/1.2 Georgia, serif; letter-spacing: 0.13em; }
.candidate-increment > header strong { font-family: "Noto Serif SC", "Songti SC", serif; font-size: 0.78rem; font-weight: 520; }
.candidate-increment > header span { padding: 4px 6px; border: 1px solid rgba(41, 35, 43, 0.14); color: var(--graphite); font-size: 0.47rem; }
.candidate-increment__grid { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid rgba(41, 35, 43, 0.12); }
.candidate-increment__grid article { display: grid; gap: 5px; min-width: 0; padding: 11px 10px; border-right: 1px solid rgba(41, 35, 43, 0.1); border-bottom: 1px solid rgba(41, 35, 43, 0.1); }
.candidate-increment__grid article:nth-child(2n) { border-right: 0; }
.candidate-increment__grid article:nth-last-child(-n + 2) { border-bottom: 0; }
.candidate-increment__grid small { color: var(--graphite); font-size: 0.49rem; }
.candidate-increment__grid strong { color: var(--plum); font: 1rem/1 Georgia, serif; }
.candidate-increment__grid span { overflow: hidden; color: #8a755d; font-size: 0.48rem; line-height: 1.35; text-overflow: ellipsis; }
.duplicate-risk--high strong { color: #934c48; }
.duplicate-risk--medium strong { color: #9a7651; }
.duplicate-risk--low strong { color: #66725d; }
.candidate-combinations { display: grid; gap: 7px; }
.candidate-combinations article { display: grid; grid-template-columns: 50px 1fr auto; align-items: center; gap: 9px; padding: 10px 11px; border: 1px solid rgba(41, 35, 43, 0.12); background: rgba(255, 255, 255, 0.54); }
.candidate-combinations article b { color: #9a7651; font: 0.49rem/1 Georgia, serif; }
.candidate-combinations article p { margin: 0; color: var(--ink); font-size: 0.55rem; line-height: 1.45; }
.candidate-combinations article span { color: var(--graphite); font-size: 0.46rem; white-space: nowrap; }
.candidate-decision-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.candidate-decision-actions button { display: grid; gap: 5px; min-height: 76px; padding: 12px; border: 1px solid rgba(41, 35, 43, 0.16); background: rgba(255, 255, 255, 0.66); color: var(--ink); text-align: left; }
.candidate-decision-actions button:last-child { border-color: var(--plum); background: var(--plum); color: white; }
.candidate-decision-actions button.is-saved { border-color: #8a755d; background: #eee7dc; }
.candidate-decision-actions small { color: #9a7651; font-size: 0.47rem; }
.candidate-decision-actions button:last-child small { color: #d0b58e; }
.candidate-decision-actions strong { font-size: 0.59rem; line-height: 1.4; }
.candidate-state-note { margin: -3px 2px 0; color: var(--graphite); font-size: 0.49rem; line-height: 1.55; }
.app-shell--golden-eagle {
  --plum: #163b73;
  --champagne: #b88328;
}
.app-shell--golden-eagle .edition-mark { color: #1557c0; }
.golden-eagle-hero-copy { padding-bottom: 18px; }
.golden-eagle-hero-copy .eyebrow { color: #1557c0; }
.golden-eagle-decision {
  margin-top: 0;
  padding: 14px;
  border: 1px solid rgba(21, 87, 192, 0.2);
  background: linear-gradient(145deg, rgba(238, 243, 251, 0.92), rgba(250, 249, 246, 0.7));
}
.golden-eagle-decision .tmall-flow button:first-child { background: #163b73; }
.golden-eagle-decision .tmall-flow button:last-child { border-color: rgba(21, 87, 192, 0.35); background: #fff; }
.golden-eagle-decision .tmall-flow button:last-child small,
.golden-eagle-decision .tmall-flow button:last-child > i { color: #1557c0; }
.golden-eagle-proof strong { color: #1557c0; }
.tmall-home { padding-bottom: 112px; }
.tmall-hero-copy { padding: 28px 0 10px; }
.tmall-hero-copy h1 { margin: 7px 0 10px; font-family: "Noto Serif SC", "Songti SC", serif; font-size: clamp(2rem, 9vw, 3rem); font-weight: 480; line-height: 1.24; letter-spacing: -0.05em; }
.tmall-hero-copy .lede { max-width: 320px; color: var(--graphite); font-size: 0.78rem; line-height: 1.7; }
.tmall-lookbook-block,
.tmall-closet-actions,
.tmall-shopping-actions { margin-top: 10px; }
.tmall-section-kicker {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
  margin-bottom: 8px;
}
.tmall-section-kicker span {
  color: var(--champagne);
  font-family: "Times New Roman", serif;
  font-size: 0.5rem;
  letter-spacing: 0.14em;
}
.tmall-section-kicker strong {
  color: var(--ink);
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 0.78rem;
  font-weight: 500;
}
.tmall-lookbook-block .hero-lookbook { margin-top: 0; }
.tmall-lookbook-block .lookbook-card { height: clamp(250px, 33dvh, 292px); }
.tmall-closet-actions .choice-grid {
  margin-top: 0;
}
.tmall-closet-actions .choice-button {
  min-height: 106px;
}
.tmall-shopping-actions .tmall-flow { margin-top: 0; }
.tmall-hero-card { position: relative; overflow: hidden; min-height: 286px; border: 1px solid var(--line); background: #e9e4dc; }
.tmall-hero-card img { display: block; width: 100%; height: 286px; object-fit: cover; }
.tmall-hero-card::after { position: absolute; inset: 42% 0 0; background: linear-gradient(transparent, rgba(23, 20, 24, 0.82)); content: ""; }
.tmall-hero-card > div { position: absolute; z-index: 1; right: 18px; bottom: 18px; left: 18px; display: grid; gap: 7px; color: white; }
.tmall-hero-card small { font-size: 0.48rem; letter-spacing: 0.12em; }
.tmall-hero-card strong { font-family: "Noto Serif SC", "Songti SC", serif; font-size: 1.08rem; font-weight: 500; line-height: 1.55; }
.tmall-flow { display: grid; gap: 8px; margin-top: 10px; }
.tmall-flow button { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; min-height: 78px; padding: 12px 14px; border: 1px solid var(--line); background: rgba(250, 249, 246, 0.86); color: var(--ink); text-align: left; cursor: pointer; }
.tmall-flow button:first-child { background: var(--plum); color: white; }
.tmall-flow button > span { align-self: start; color: var(--champagne); font-family: "Times New Roman", serif; font-size: 0.64rem; }
.tmall-flow button div { display: grid; gap: 4px; }
.tmall-flow button small { color: var(--champagne); font-size: 0.48rem; letter-spacing: 0.11em; }
.tmall-flow button strong { font-family: "Noto Serif SC", "Songti SC", serif; font-size: 0.85rem; font-weight: 550; }
.tmall-flow button p { margin: 0; color: #817970; font-size: 0.58rem; line-height: 1.45; }
.tmall-flow button:first-child p { color: rgba(255, 255, 255, 0.66); }
.tmall-flow button > i { color: var(--champagne); font-size: 0.58rem; font-style: normal; white-space: nowrap; }
.tmall-proof { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 10px; border: 1px solid var(--line); }
.tmall-proof div { display: grid; gap: 3px; padding: 12px 8px; border-right: 1px solid var(--line); text-align: center; }
.tmall-proof div:last-child { border-right: 0; }
.tmall-proof strong { font-family: Georgia, "Times New Roman", serif; font-size: 1rem; font-weight: 500; }
.tmall-proof span { color: var(--graphite); font-size: 0.5rem; }

.shopping-brief { display: grid; gap: 13px; padding: 18px; border: 1px solid rgba(64, 53, 74, 0.22); background: var(--plum); color: white; }
.shopping-brief > header { display: flex; justify-content: space-between; gap: 12px; }
.shopping-brief > header div { display: grid; gap: 5px; }
.shopping-brief > header small { color: #c9b89f; font-size: 0.5rem; letter-spacing: 0.12em; }
.shopping-brief > header strong { font-family: "Noto Serif SC", "Songti SC", serif; font-size: 0.82rem; font-weight: 550; }
.shopping-brief > header > span { align-self: start; padding: 4px 6px; border: 1px solid rgba(255, 255, 255, 0.24); color: rgba(255, 255, 255, 0.62); font-size: 0.48rem; }
.shopping-query { display: grid; grid-template-columns: 1fr auto; align-items: stretch; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.08); }
.shopping-query p { margin: 0; padding: 12px; font-size: 0.68rem; line-height: 1.5; }
.shopping-query button { border: 0; border-left: 1px solid rgba(255, 255, 255, 0.18); background: transparent; color: #dcc9ad; font-size: 0.58rem; cursor: pointer; }
.shopping-filters { display: flex; flex-wrap: wrap; gap: 5px; }
.shopping-filters span { padding: 5px 7px; background: rgba(255, 255, 255, 0.09); color: rgba(255, 255, 255, 0.76); font-size: 0.52rem; }
.shopping-brief .button { background: #f5f0e8; color: var(--plum); }
.shopping-brief > p { margin: 0; color: rgba(255, 255, 255, 0.58); font-size: 0.54rem; line-height: 1.55; }

.owned-mini-rail {
  display: grid;
  grid-auto-columns: minmax(116px, 42%);
  grid-auto-flow: column;
  gap: 10px;
  overflow-x: auto;
  padding: 3px 1px 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.owned-mini-rail::-webkit-scrollbar { display: none; }

.owned-mini-item {
  min-width: 0;
  scroll-snap-align: start;
}

.owned-mini-item .composition-item {
  min-height: 156px;
  border: 1px solid rgba(21, 20, 18, 0.08);
  background: #f7f4ee;
}

.owned-mini-item .composition-item img,
.owned-mini-item .composition-item__demo { height: 156px; }

.owned-mini-item small {
  display: inline-block;
  margin-top: 5px;
  color: #2d6443;
  font-size: 0.64rem;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid rgba(21, 20, 18, 0.12);
  background: rgba(21, 20, 18, 0.12);
}

.benefit-grid div {
  display: grid;
  gap: 4px;
  padding: 13px 5px;
  border-radius: 0;
  background: #f5f2ec;
  text-align: center;
}

.benefit-grid div > small {
  color: #9c8871;
  font-family: "Times New Roman", serif;
  font-size: 0.48rem;
  letter-spacing: 0.12em;
}

.benefit-grid strong {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 1.15rem;
}

.benefit-grid span {
  color: var(--graphite);
  font-size: 0.59rem;
}

.candidate-result {
  gap: 18px;
  background: #efebe4;
}

.purchase-decision {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px;
  gap: 16px;
  align-items: center;
  padding: 21px 18px;
  border: 1px solid rgba(42, 37, 42, 0.12);
  background: #f8f5ef;
}

.purchase-decision--positive { border-left: 3px solid #496552; }
.purchase-decision--consider { border-left: 3px solid #aa835b; }
.purchase-decision--negative { border-left: 3px solid #875646; }
.purchase-decision__copy small { color: var(--champagne); font-family: "Times New Roman", serif; font-size: 0.55rem; letter-spacing: 0.14em; }
.purchase-decision__copy h2 { margin: 5px 0 8px; font-size: 1.7rem; }
.purchase-decision__copy p { margin: 0; color: var(--graphite); font-size: 0.7rem; line-height: 1.65; }

.purchase-score {
  display: grid;
  width: 82px;
  height: 82px;
  place-content: center;
  border-radius: 50%;
  background: radial-gradient(circle closest-side, #f8f5ef 76%, transparent 77% 99%), conic-gradient(var(--plum) calc(var(--purchase-score) * 1%), rgba(64, 53, 74, 0.12) 0);
  text-align: center;
}

.purchase-score strong { font-family: "Times New Roman", serif; font-size: 1.35rem; font-weight: 500; line-height: 1; }
.purchase-score small { margin-top: 3px; color: var(--graphite); font-size: 0.52rem; }

.candidate-identity {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(42, 37, 42, 0.12);
}

.candidate-identity__thumb {
  display: grid;
  overflow: hidden;
  width: 58px;
  height: 70px;
  place-items: center;
  background: var(--plum);
  color: var(--paper);
  font-family: "Noto Serif SC", serif;
  font-size: 0.72rem;
}

.candidate-identity__thumb img { width: 100%; height: 100%; object-fit: cover; }
.candidate-identity > div:nth-child(2) { display: grid; gap: 3px; min-width: 0; }
.candidate-identity small { color: var(--graphite); font-size: 0.57rem; }
.candidate-identity strong { overflow: hidden; font-family: "Noto Serif SC", serif; font-size: 0.85rem; text-overflow: ellipsis; white-space: nowrap; }
.candidate-identity span { color: var(--graphite); font-size: 0.61rem; }
.candidate-identity em { align-self: start; padding: 5px 7px; background: #e8e2da; color: var(--graphite); font-size: 0.53rem; font-style: normal; white-space: nowrap; }

.decision-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(42, 37, 42, 0.16);
}

.decision-section-title span { font-family: "Noto Serif SC", serif; font-size: 0.94rem; }
.decision-section-title small { color: var(--graphite); font-size: 0.55rem; letter-spacing: 0.05em; }
.decision-reasons { display: grid; gap: 0; }
.decision-reason { display: grid; grid-template-columns: 28px 1fr; gap: 8px; padding: 11px 0; border-bottom: 1px solid rgba(42, 37, 42, 0.08); }
.decision-reason b { color: var(--champagne); font-family: "Times New Roman", serif; font-size: 0.62rem; }
.decision-reason p { margin: 0; color: var(--graphite); font-size: 0.68rem; line-height: 1.55; }

.decision-caveats {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid rgba(135, 86, 70, 0.22);
  background: #f5e9e4;
}

.decision-caveats strong { font-family: "Noto Serif SC", serif; font-size: 0.76rem; }
.decision-caveats p { margin: 0; color: #785549; font-size: 0.64rem; line-height: 1.5; }

.purchase-next {
  padding: 15px 16px;
  border-left: 3px solid var(--champagne);
  background: #f8f5ef;
}

.purchase-next--positive { border-left-color: #496552; }
.purchase-next--negative { border-left-color: #875646; }
.purchase-next small { color: var(--champagne); font-family: "Times New Roman", serif; font-size: 0.54rem; letter-spacing: 0.14em; }
.purchase-next p { margin: 5px 0 0; color: var(--ink); font-size: 0.7rem; line-height: 1.55; }

.result-reason,
.uncertainty,
.form-error {
  margin: 0;
  padding: 10px 12px;
  border-left: 2px solid var(--champagne);
  border-radius: 0;
  background: rgba(250, 249, 246, 0.55);
  color: var(--graphite);
  font-size: 0.72rem;
  line-height: 1.6;
}

.uncertainty,
.form-error {
  background: #f5e9e4;
  color: #875646;
}

.preference-card {
  margin-bottom: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
}

.preference-card p:not(.eyebrow) {
  color: var(--graphite);
  font-size: 0.78rem;
  line-height: 1.65;
}

.honest-empty {
  display: grid;
  place-items: center;
  min-height: 330px;
  background: linear-gradient(145deg, #e8e3dc, #f7f4ef);
  color: var(--graphite);
}

.honest-empty span {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 4rem;
  color: var(--mist);
}

.honest-empty p {
  margin-top: -78px;
  font-size: 0.78rem;
}

.wardrobe-source-banner {
  display: grid;
  gap: 14px;
  margin: 16px 0;
  padding: 17px 18px;
  border: 1px solid rgba(42, 37, 42, 0.14);
  border-left: 3px solid var(--champagne);
  background: rgba(250, 249, 246, 0.72);
}

.wardrobe-source-banner > div:first-child { display: grid; gap: 4px; }
.wardrobe-source-banner small { color: var(--champagne); font-family: "Times New Roman", serif; font-size: 0.55rem; letter-spacing: 0.14em; }
.wardrobe-source-banner strong { font-family: "Noto Serif SC", serif; font-size: 0.92rem; font-weight: 500; }
.wardrobe-source-banner p { margin: 0; color: var(--graphite); font-size: 0.66rem; line-height: 1.55; }
.wardrobe-source-banner > button,
.wardrobe-source-confirm button {
  width: fit-content;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--ink);
  font-size: 0.64rem;
}

.wardrobe-source-banner--personal { border-left-color: #496552; }
.wardrobe-source-banner--mixed { border-left-color: #aa835b; }
.wardrobe-source-confirm {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(42, 37, 42, 0.12);
}
.wardrobe-source-confirm p { flex-basis: 100%; }
.wardrobe-source-confirm button:last-child { color: #875646; }

.empty-wardrobe-onboarding {
  display: grid;
  gap: 20px;
  margin-top: 16px;
  padding: 24px 20px;
  border: 1px solid rgba(42, 37, 42, 0.15);
  background: linear-gradient(145deg, rgba(250, 249, 246, 0.94), rgba(232, 226, 218, 0.72));
}

.empty-wardrobe-onboarding small { color: var(--champagne); font-family: "Times New Roman", serif; font-size: 0.56rem; letter-spacing: 0.14em; }
.empty-wardrobe-onboarding h2 { margin: 6px 0 8px; font-family: "Noto Serif SC", serif; font-size: 1.45rem; font-weight: 500; }
.empty-wardrobe-onboarding p { margin: 0; color: var(--graphite); font-size: 0.7rem; line-height: 1.65; }
.empty-wardrobe-onboarding ol { display: grid; margin: 0; padding: 0; list-style: none; }
.empty-wardrobe-onboarding li { display: grid; grid-template-columns: 30px 1fr; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(42, 37, 42, 0.1); font-size: 0.7rem; }
.empty-wardrobe-onboarding li b { color: var(--champagne); font-family: "Times New Roman", serif; font-size: 0.62rem; }
.empty-wardrobe-onboarding > div:last-child { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.empty-wardrobe-onboarding .button { min-height: 48px; padding-inline: 10px; font-size: 0.64rem; }

.button:disabled {
  cursor: progress;
  opacity: 0.62;
}

.recommendation-screen { padding-bottom: 154px; }
.recommendation-screen .style-evidence article { padding-block: 9px; }
.recommendation-screen .feedback-explainer { margin-top: 14px; }

@media (min-width: 700px) {
  body {
    padding: 28px 0;
  }

  .app-shell {
    min-height: calc(100dvh - 56px);
    border-radius: 38px;
  }

  .bottom-nav {
    bottom: 42px;
  }
}

@media (max-width: 365px) {
  .screen { padding-right: 16px; padding-left: 16px; }
  .candidate-samples { padding: 10px; }
  .candidate-samples__grid { gap: 4px; }
  .candidate-samples__grid button > span { height: 96px; }
  .candidate-sample-preview { grid-template-columns: 44% 1fr; min-height: 210px; }
  .candidate-sample-preview > div { min-height: 210px; }
  .candidate-sample-preview > span { padding: 14px; }
  .purchase-decision { grid-template-columns: minmax(0, 1fr) 68px; gap: 10px; padding: 16px 13px; }
  .purchase-score { width: 66px; height: 66px; }
  .purchase-score strong { font-size: 1.12rem; }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .candidate-identity { grid-template-columns: 50px minmax(0, 1fr); }
  .candidate-identity__thumb { width: 50px; height: 62px; }
  .candidate-identity > em { grid-column: 2; justify-self: start; }
}
