/* ==========================================================================
   着调 TONE — prototype design system
   A warm editorial system: paper, ink and one tomato accent.
   ========================================================================== */

:root {
  --paper: #f4efe4;
  --paper-deep: #ece4d5;
  --surface: #fffcf5;
  --surface-2: #f8f2e7;
  --ink: #1b1916;
  --ink-soft: #3b3730;
  --muted: #7c7468;
  --muted-2: #a59c8e;
  --line: #e2d8c7;
  --line-strong: #cec2ad;
  --accent: #c9532d;
  --accent-deep: #a64021;
  --accent-soft: #f4d9cc;
  --moss: #647157;
  --moss-soft: #dfe4d6;
  --gold: #b5884a;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, "Songti SC", "Noto Serif CJK SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Droid Sans Fallback", "Microsoft YaHei", sans-serif;
  --radius: 24px;
  --radius-s: 14px;
  --shadow: 0 20px 45px -30px rgba(48, 37, 24, 0.45);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(1200px 600px at 50% -10%, #f7f2e8 0%, #e9e1d3 55%, #e2dacb 100%);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  display: flex;
  justify-content: center;
}

body.sheet-open { overflow: hidden; }

button,
input,
textarea,
select { font: inherit; color: inherit; }

button { cursor: pointer; }

a { color: inherit; text-decoration: none; }

img, svg { display: block; }

::selection { background: var(--accent-soft); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.app {
  position: relative;
  width: 100%;
  max-width: 390px;
  min-height: 100dvh;
  background: var(--paper);
  box-shadow: 0 0 80px rgba(60, 45, 30, 0.18);
  overflow-x: clip;
}

.screen {
  padding: 44px 0 116px;
  animation: screen-in 0.55s var(--ease) both;
}

body[data-page="results"] .screen,
body[data-page="product"] .screen { padding-top: 104px; padding-bottom: 40px; }
body[data-page="cart"] .screen,
body[data-page="checkout"] .screen,
body[data-page="tags"] .screen,
body[data-page="success"] .screen { padding-top: 104px; }

body[data-page="checkout"] .screen,
body[data-page="success"] .screen { padding-bottom: 44px; }

body[data-page="cart"] .screen { padding-bottom: 190px; }

body[data-page="tags"] .screen { padding-bottom: 48px; }

.wrap { padding-left: 20px; padding-right: 20px; }

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

.icon { flex: none; }

/* ---------------------------------------------------------------- status bar */

.statusbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  width: 100%;
  max-width: 390px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  background: rgba(244, 239, 228, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.statusbar__right {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
}

/* --------------------------------------------------------------- tab bar */

.tabbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  z-index: 76;
  width: 100%;
  max-width: 390px;
  height: calc(64px + env(safe-area-inset-bottom));
  padding: 6px 10px calc(6px + env(safe-area-inset-bottom));
  display: flex;
  align-items: flex-start;
  background: rgba(244, 239, 228, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
}

.tab {
  flex: 1;
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 3px 0 0;
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.18s var(--ease);
}
.tab.is-active { color: var(--ink); }
.tab__icon { position: relative; width: 32px; height: 27px; display: grid; place-items: center; }
.tab.is-active .tab__icon::after {
  content: "";
  position: absolute;
  bottom: -1px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}
.tab__badge {
  position: absolute;
  top: -1px;
  right: -3px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 7.5px;
  font-weight: 700;
  line-height: 14px;
  text-align: center;
  border: 1.5px solid var(--paper);
}

/* ------------------------------------------------------------------- header */

.pageheader {
  position: fixed;
  top: 44px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 70;
  width: 100%;
  max-width: 390px;
  height: 56px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  background: rgba(244, 239, 228, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.pageheader__title {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.pageheader__side { display: flex; align-items: center; gap: 8px; }
.pageheader__side--right { justify-content: flex-end; }

.icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 252, 245, 0.72);
  color: var(--ink);
  display: inline-grid;
  place-items: center;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease);
}
.icon-btn:active { transform: scale(0.94); }
.icon-btn--plain { border-color: transparent; background: transparent; }
.icon-btn--ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.text-link .icon { transition: transform 0.18s var(--ease); }
.text-link:hover .icon { transform: translateX(2px); }

/* ---------------------------------------------------------------- typography */

.kicker {
  margin: 0 0 6px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.display {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 34px 0 14px;
}

.section-head h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-head h2 small {
  display: inline-block;
  margin-right: 7px;
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--accent);
  vertical-align: 2px;
}

.section-head p {
  margin: 3px 0 0;
  font-size: 11.5px;
  color: var(--muted);
}

.section-head .text-link { flex: none; padding-bottom: 2px; }

.serif { font-family: var(--serif); }

/* ----------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: 0.01em;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), opacity 0.18s var(--ease);
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: #2c2822; }
.btn--accent { background: var(--accent); color: #fff8f3; }
.btn--accent:hover { background: var(--accent-deep); }
.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn--surface { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn--block { width: 100%; }
.btn--sm { min-height: 36px; padding: 0 13px; font-size: 12px; }
.btn--icon { width: 46px; min-height: 46px; padding: 0; flex: none; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 11.5px;
  font-weight: 550;
  color: var(--ink-soft);
  white-space: nowrap;
}

.pill--accent { background: var(--accent-soft); border-color: transparent; color: var(--accent-deep); }
.pill--moss { background: var(--moss-soft); border-color: transparent; color: #495440; }
.pill--ink { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px 0;
}
.chip-row::-webkit-scrollbar { display: none; }

/* ------------------------------------------------------------------- forms */

.field {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  font-size: 13.5px;
  color: var(--ink);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.field::placeholder { color: var(--muted-2); }
.field:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(27, 25, 22, 0.06); }
textarea.field { min-height: 84px; resize: vertical; }

/* ------------------------------------------------------------------ topbar */

.home-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px 0;
  margin-bottom: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
}

.brand__mark {
  width: 32px;
  height: 32px;
  border-radius: 11px;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1;
  letter-spacing: -0.04em;
  position: relative;
}
.brand__mark::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  right: 5px;
  top: 5px;
}

.brand__name {
  font-size: 15.5px;
  font-weight: 750;
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.brand__name span {
  display: block;
  margin-top: 2px;
  font-family: var(--serif);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--muted);
}

.bar-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.bar-meta__dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted-2); }

.avatar-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  padding: 0;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--surface);
}

/* -------------------------------------------------------------------- hero */

.hero { padding: 0 20px; }

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
}
.hero__eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
}

.hero__title {
  margin: 0;
  font-size: 36px;
  line-height: 1.16;
  font-weight: 720;
  letter-spacing: -0.055em;
}

.hero__title .hl {
  position: relative;
  display: inline-block;
  padding: 0 2px;
  background: linear-gradient(transparent 64%, var(--accent-soft) 64%, var(--accent-soft) 92%, transparent 92%);
}

.hero__title .en {
  display: block;
  margin-top: 2px;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.hero__sub {
  margin: 12px 0 20px;
  max-width: 310px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 7px 7px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 16px 30px -24px rgba(45, 34, 20, 0.55);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(27, 25, 22, 0.05), 0 16px 30px -24px rgba(45, 34, 20, 0.55); }

.search__icon { color: var(--muted); flex: none; }

.search input {
  flex: 1;
  min-width: 0;
  height: 40px;
  border: 0;
  background: transparent;
  font-size: 13.5px;
  outline: none;
}
.search input::placeholder { color: var(--muted-2); }

.search__submit {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--accent);
  color: #fff8f3;
  display: grid;
  place-items: center;
  flex: none;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease);
}
.search__submit:hover { background: var(--accent-deep); }
.search__submit:active { transform: scale(0.94); }

.search-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  padding: 0 2px;
  font-size: 10px;
  color: var(--muted-2);
}
.search-hint .icon { color: var(--moss); }

.example-row {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  margin-top: 12px;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.example-row::-webkit-scrollbar { display: none; }

.example {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  min-height: 31px;
  padding: 0 11px;
  border: 1px dashed var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 11px;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}
.example:hover { background: var(--surface); border-color: var(--ink); }

.recent-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 11px;
  font-size: 10.5px;
  color: var(--muted-2);
  overflow: hidden;
}
.recent-row__item {
  border: 0;
  background: none;
  padding: 0;
  color: var(--muted);
  font-size: 10.5px;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

/* ---------------------------------------------------------------- scene grid */

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

.scene-card {
  position: relative;
  min-height: 124px;
  padding: 14px;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 88% 0%, rgba(255, 255, 255, 0.55) 0%, transparent 52%),
    linear-gradient(145deg, var(--s1), var(--s2));
  border: 1px solid rgba(60, 48, 32, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  isolation: isolate;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.scene-card:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -20px rgba(45, 34, 20, 0.55); }
.scene-card:active { transform: scale(0.985); }

.scene-card::after {
  content: "";
  position: absolute;
  right: -26px;
  bottom: -32px;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  border: 1px solid rgba(38, 31, 22, 0.12);
  box-shadow: 0 0 0 14px rgba(255, 255, 255, 0.08), 0 0 0 28px rgba(255, 255, 255, 0.05);
  z-index: -1;
}

.scene-card__top { display: flex; align-items: flex-start; justify-content: space-between; }
.scene-card__index {
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(38, 31, 22, 0.48);
}
.scene-card__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 252, 245, 0.42);
  display: grid;
  place-items: center;
  color: var(--ink-soft);
}
.scene-card__name { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.scene-card__en {
  display: block;
  margin-top: 1px;
  font-family: var(--serif);
  font-size: 8px;
  letter-spacing: 0.2em;
  color: rgba(38, 31, 22, 0.5);
}
.scene-card__copy {
  display: block;
  margin-top: 6px;
  font-size: 10.5px;
  line-height: 1.45;
  color: rgba(38, 31, 22, 0.68);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------------------------------------------------------------- mood grid */

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

.mood-card {
  position: relative;
  min-height: 118px;
  padding: 10px 9px 11px;
  border-radius: 18px;
  border: 1px solid rgba(60, 48, 32, 0.06);
  background: var(--mood-tint, var(--surface-2));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  overflow: hidden;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.mood-card:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -20px rgba(45, 34, 20, 0.5); }
.mood-card:active { transform: scale(0.98); }

.mood-card__face { color: var(--mood, var(--ink)); margin-left: 2px; }
.mood-card__name { font-size: 14.5px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.mood-card__en {
  display: block;
  font-family: var(--serif);
  font-size: 7.5px;
  letter-spacing: 0.16em;
  color: rgba(40, 32, 22, 0.45);
  margin-top: 1px;
}
.mood-card__arrow {
  position: absolute;
  right: 9px;
  top: 10px;
  color: rgba(40, 32, 22, 0.28);
}

/* --------------------------------------------------------------- UGC preview */

.ugc-strip {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  overflow-x: auto;
  padding: 0 20px 4px;
  margin: 0;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}
.ugc-strip::-webkit-scrollbar { display: none; }

.ugc-card {
  flex: 0 0 218px;
  scroll-snap-align: start;
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: left;
  padding: 0;
  color: var(--ink);
  transition: transform 0.2s var(--ease);
}
.ugc-card:active { transform: scale(0.985); }
.ugc-card .ugc-visual { border-radius: 0; }

.ugc-card__body { padding: 10px 12px 12px; }
.ugc-card__caption {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ugc-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--muted);
}
.ugc-card__meta .avatar { flex: none; }
.ugc-card__likes { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; color: var(--muted); }

.avatar {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--av, var(--moss));
  color: #fffaf4;
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
  overflow: hidden;
}

/* ------------------------------------------------------------- tag teaser */

.tag-teaser {
  position: relative;
  display: block;
  margin-top: 30px;
  padding: 22px 20px 20px;
  border-radius: 24px;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
}
.tag-teaser::before {
  content: "";
  position: absolute;
  right: -60px;
  top: -70px;
  width: 200px;
  height: 200px;
  border: 1px solid rgba(244, 239, 228, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 26px rgba(244, 239, 228, 0.04), 0 0 0 52px rgba(244, 239, 228, 0.03);
}
.tag-teaser__kicker {
  font-family: var(--serif);
  font-size: 9px;
  letter-spacing: 0.24em;
  color: rgba(244, 239, 228, 0.55);
  text-transform: uppercase;
}
.tag-teaser h2 {
  margin: 9px 0 4px;
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -0.035em;
  font-weight: 700;
}
.tag-teaser p {
  margin: 0;
  max-width: 280px;
  font-size: 11.5px;
  line-height: 1.6;
  color: rgba(244, 239, 228, 0.62);
}
.tag-teaser__formula {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-family: var(--serif);
  font-size: 10px;
  color: rgba(244, 239, 228, 0.78);
  letter-spacing: 0.04em;
}
.tag-teaser__formula span {
  padding: 5px 8px;
  border: 1px solid rgba(244, 239, 228, 0.24);
  border-radius: 7px;
}
.tag-teaser__formula b { font-weight: 400; color: rgba(244, 239, 228, 0.35); }
.tag-teaser__arrow {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  display: grid;
  place-items: center;
}

.home-footer {
  margin-top: 36px;
  padding: 22px 0 8px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--muted-2);
}
.home-footer p { margin: 0 0 4px; }

/* ------------------------------------------------------------------ visuals */

.ugc-visual {
  position: relative;
  aspect-ratio: 4 / 3.25;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(80% 80% at 18% 8%, rgba(255, 255, 255, 0.55) 0%, transparent 50%),
    linear-gradient(150deg, var(--ua), var(--ub));
  isolation: isolate;
}
.ugc-visual--tall { aspect-ratio: 4 / 4.35; }

.ugc-visual__sun {
  position: absolute;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  right: -22px;
  top: -26px;
  background: rgba(255, 249, 238, 0.32);
}

.ugc-visual__grain,
.look-visual__grain {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image: radial-gradient(rgba(30, 24, 17, 0.65) 0.55px, transparent 0.55px);
  background-size: 3px 3px;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.ugc-visual__main {
  position: absolute;
  width: 70%;
  left: -2%;
  bottom: -10%;
  transform: rotate(-4deg);
  filter: drop-shadow(0 12px 14px rgba(40, 28, 18, 0.16));
}

.ugc-visual__small {
  position: absolute;
  width: 42%;
  right: 4%;
  top: 12%;
  transform: rotate(5deg);
  opacity: 0.96;
  filter: drop-shadow(0 8px 12px rgba(40, 28, 18, 0.12));
}

.ugc-visual__tag {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 251, 243, 0.72);
  backdrop-filter: blur(4px);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
}

.look-visual {
  position: relative;
  aspect-ratio: 1.36;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(90% 90% at 78% 6%, rgba(255, 253, 245, 0.62) 0%, transparent 48%),
    linear-gradient(145deg, var(--lv-a), var(--lv-b));
  isolation: isolate;
}
.look-visual::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  right: -48px;
  bottom: -64px;
}

.look-grid {
  position: absolute;
  inset: 11px;
  display: grid;
  grid-template-columns: 1.16fr 0.84fr;
  grid-template-rows: 1.06fr 0.94fr;
  gap: 7px;
}

.look-tile {
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 4px;
  border-radius: 13px;
  background: rgba(255, 252, 246, 0.82);
  box-shadow: 0 9px 18px -14px rgba(40, 28, 18, 0.4);
  overflow: hidden;
}
.look-tile .garment { width: 100%; height: 100%; }
.look-tile--1 { grid-row: 1 / 3; transform: rotate(-2deg); }
.look-tile--2 { transform: rotate(2.4deg); }
.look-tile--3 { transform: rotate(1.4deg); }
.look-tile--4 { transform: rotate(-2.6deg); }

.look-visual__badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(27, 25, 22, 0.82);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 8.5px;
  letter-spacing: 0.15em;
}

.look-visual__swatches {
  position: absolute;
  right: 12px;
  bottom: 10px;
  z-index: 2;
  display: flex;
  gap: 4px;
}
.look-visual__swatches i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.garment { width: 100%; height: 100%; }

/* ------------------------------------------------------------------ results */

.query-banner {
  margin: 10px 20px 0;
  padding: 16px 17px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.query-banner__quote {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.42;
  letter-spacing: -0.01em;
}
.query-banner__quote::before { content: "「"; color: var(--accent); }
.query-banner__quote::after { content: "」"; color: var(--accent); }

.query-banner__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.query-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.analysis {
  position: relative;
  margin: 16px 20px 0;
  padding: 18px;
  border-radius: 22px;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
  animation: fade-in 0.35s var(--ease) both;
}
.analysis::before {
  content: "";
  position: absolute;
  right: -38px;
  top: -52px;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 83, 45, 0.42), transparent 68%);
  animation: pulse-soft 2.4s ease-in-out infinite;
}
.analysis__orb {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(244, 239, 228, 0.34);
  display: grid;
  place-items: center;
  color: var(--paper);
  margin-bottom: 14px;
  position: relative;
}
.analysis__orb::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: breathe 1.4s ease-in-out infinite;
}
.analysis__title { margin: 0 0 3px; font-size: 15px; font-weight: 650; }
.analysis__sub { margin: 0 0 14px; font-size: 10.5px; color: rgba(244, 239, 228, 0.55); }
.analysis__steps { display: grid; gap: 8px; }
.analysis__step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: rgba(244, 239, 228, 0.42);
  transition: color 0.3s var(--ease);
}
.analysis__step::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(244, 239, 228, 0.26);
  flex: none;
}
.analysis__step.is-on { color: rgba(244, 239, 228, 0.92); }
.analysis__step.is-on::before { background: var(--accent); box-shadow: 0 0 0 3px rgba(201, 83, 45, 0.22); }
.analysis__step.is-done { color: rgba(244, 239, 228, 0.62); }
.analysis__step.is-done::before { background: var(--moss-soft); box-shadow: none; }
.analysis__progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #e6a77f);
  width: 0;
  transition: width 0.4s var(--ease);
}

.results-head { margin: 26px 20px 13px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.results-head h1 { margin: 0; font-size: 23px; line-height: 1.25; letter-spacing: -0.03em; }
.results-head p { margin: 5px 0 0; font-size: 11px; color: var(--muted); }
.results-head__count {
  flex: none;
  text-align: right;
  font-family: var(--serif);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  line-height: 1.6;
}
.results-head__count strong { display: block; font-size: 22px; letter-spacing: 0; color: var(--ink); font-weight: 500; }

.looks { padding: 0 14px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }

.look-card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 14px;
  box-shadow: var(--shadow);
  animation: fade-up 0.55s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 70ms);
}

.look-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 2px 2px 12px; }
.look-card__head > div:first-child { min-width: 0; }
.look-card__eyebrow {
  font-family: var(--serif);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  color: var(--accent);
  text-transform: uppercase;
}
.look-card__title { margin: 5px 0 0; font-size: 21px; line-height: 1.2; letter-spacing: -0.03em; font-weight: 700; }
.look-card__sub { margin: 4px 0 0; font-size: 11px; color: var(--muted); }

.match {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  line-height: 1;
}
.match strong { font-family: var(--serif); font-size: 14px; font-weight: 600; }
.match span { display: block; font-size: 7px; color: var(--muted); margin-top: 2px; letter-spacing: 0.05em; }

.look-card__body { padding: 0 2px; }

.reason {
  margin-top: 13px;
  padding: 13px 14px;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid rgba(206, 194, 173, 0.45);
}
.reason__label {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 6px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  color: var(--accent);
  text-transform: uppercase;
}
.reason p { margin: 0; font-size: 12.5px; line-height: 1.68; color: var(--ink-soft); }
.reason__styling {
  display: flex;
  gap: 6px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px dashed var(--line-strong);
  font-size: 10.5px;
  line-height: 1.55;
  color: var(--muted);
}
.reason__styling .icon { flex: none; margin-top: 1px; color: var(--moss); }

.tags-line { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.tags-line .pill { min-height: 25px; font-size: 9.5px; padding: 0 8px; }

.items-scroll {
  display: flex;
  min-width: 0;
  gap: 8px;
  overflow-x: auto;
  margin: 12px -14px 0;
  padding: 0 14px 3px;
  scrollbar-width: none;
}
.items-scroll::-webkit-scrollbar { display: none; }

.item-card {
  position: relative;
  flex: 0 0 112px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  padding: 6px 6px 8px;
  text-align: left;
  color: var(--ink);
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease);
}
.item-card:hover { border-color: var(--line-strong); transform: translateY(-1px); }

.item-card__art {
  position: relative;
  aspect-ratio: 1;
  border-radius: 11px;
  background:
    radial-gradient(80% 70% at 28% 18%, rgba(255, 255, 255, 0.75), transparent 60%),
    var(--tile-bg, var(--surface-2));
  overflow: hidden;
  display: grid;
  place-items: center;
}
.item-card__art .garment { width: 88%; height: 88%; }
.item-card__swap {
  position: absolute;
  right: 4px;
  bottom: 4px;
  z-index: 2;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 252, 245, 0.92);
  color: var(--ink);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px -6px rgba(40, 28, 18, 0.45);
}
.item-card__swap:active { transform: scale(0.92); }
.item-card__slot {
  display: block;
  margin-top: 6px;
  font-size: 7.5px;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  text-transform: uppercase;
}
.item-card__name {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  line-height: 1.35;
  font-weight: 550;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 28px;
}
.item-card__price { display: block; margin-top: 4px; font-size: 10px; color: var(--muted); }

.look-actions { display: flex; gap: 8px; margin-top: 13px; }
.look-actions .btn--ink { flex: 1; }
.look-actions .btn--icon { border: 1px solid var(--line); background: var(--surface); }
.look-actions .btn--icon.is-saved { color: var(--accent); border-color: var(--accent-soft); background: var(--accent-soft); }
.look-actions .btn--icon.is-saved .icon { fill: currentColor; }

.related-ugc { margin-top: 12px; padding: 0 20px; }

/* -------------------------------------------------------------------- product */

.pdp-hero {
  position: relative;
  margin-top: 0;
  padding: 22px 24px 44px;
  background:
    radial-gradient(72% 62% at 76% 8%, rgba(255, 253, 245, 0.72) 0%, transparent 58%),
    linear-gradient(150deg, var(--ph-a), var(--ph-b));
  overflow: hidden;
}
.pdp-hero::before {
  content: "";
  position: absolute;
  left: -44px;
  top: -58px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: 0 0 0 26px rgba(255, 255, 255, 0.06), 0 0 0 52px rgba(255, 255, 255, 0.035);
}
.pdp-hero__badge {
  position: absolute;
  left: 20px;
  top: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(27, 25, 22, 0.82);
  color: var(--paper);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.pdp-hero__art { position: relative; z-index: 1; height: 300px; display: grid; place-items: center; }
.pdp-hero__art .garment { width: 84%; height: 100%; filter: drop-shadow(0 22px 26px rgba(48, 33, 19, 0.16)); }
.pdp-hero__index {
  position: absolute;
  right: 20px;
  bottom: 38px;
  font-family: var(--serif);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: rgba(38, 31, 22, 0.45);
}

.pdp-body {
  position: relative;
  margin-top: -26px;
  border-radius: 28px 28px 0 0;
  background: var(--paper);
  padding-top: 22px;
}

.pdp-info { padding: 0 20px; }
.pdp-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 4px;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
}
.pdp-brand::before { content: ""; width: 14px; height: 1px; background: var(--muted-2); }
.pdp-title { margin: 0; font-size: 25px; line-height: 1.25; letter-spacing: -0.035em; font-weight: 700; }
.pdp-sub { margin: 7px 0 0; font-size: 11.5px; color: var(--muted); line-height: 1.6; }
.pdp-price-row { display: flex; align-items: flex-end; gap: 8px; margin-top: 14px; }
.pdp-price { font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.pdp-price-original { font-size: 12px; color: var(--muted-2); text-decoration: line-through; padding-bottom: 4px; }
.pdp-rating { margin-left: auto; display: flex; align-items: center; gap: 4px; font-size: 10.5px; color: var(--muted); padding-bottom: 4px; }
.pdp-rating .icon { color: var(--gold); fill: var(--gold); }
.pdp-installment { margin: 3px 0 0; font-size: 10px; color: var(--muted-2); }

.pdp-section { margin: 22px 20px 0; padding-top: 20px; border-top: 1px solid var(--line); }
.pdp-section__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.pdp-section__head h2 { margin: 0; font-size: 14px; font-weight: 700; }
.pdp-section__head span { font-family: var(--serif); font-size: 8px; letter-spacing: 0.16em; color: var(--muted-2); }

.tag-block { margin-bottom: 13px; }
.tag-block__label { display: block; margin-bottom: 7px; font-size: 9px; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; }
.tag-block .chip-row { flex-wrap: wrap; overflow: visible; }

.ai-note {
  margin: 20px 20px 0;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent-soft), #f7e6da);
  border: 1px solid rgba(201, 83, 45, 0.16);
}
.ai-note__head { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; font-size: 9px; font-weight: 700; letter-spacing: 0.13em; color: var(--accent-deep); text-transform: uppercase; }
.ai-note p { margin: 0; font-size: 12px; line-height: 1.7; color: #5b3728; }

.detail-list { margin-top: 4px; }
.detail-row { border-bottom: 1px solid var(--line); }
.detail-row:last-child { border-bottom: 0; }
.detail-row summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 550;
  list-style: none;
}
.detail-row summary::-webkit-details-marker { display: none; }
.detail-row summary .icon { color: var(--muted); transition: transform 0.2s var(--ease); }
.detail-row[open] summary .icon { transform: rotate(90deg); }
.detail-row__body { padding: 0 0 13px; font-size: 11.5px; line-height: 1.7; color: var(--muted); }

.ugc-product-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.ugc-mini {
  position: relative;
  border: 0;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  text-align: left;
  color: var(--ink);
}
.ugc-mini .ugc-visual { border-radius: 16px; }
.ugc-mini__info {
  position: relative;
  padding: 9px 10px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 16px 16px;
  margin-top: -4px;
}
.ugc-mini__caption {
  margin: 0 0 6px;
  font-size: 10px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ugc-mini__meta { display: flex; align-items: center; gap: 5px; font-size: 8.5px; color: var(--muted); }

.related-look {
  margin: 9px 20px 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  display: flex;
  align-items: center;
  gap: 12px;
}
.related-look .look-thumb { width: 76px; flex: none; aspect-ratio: 1; border-radius: 13px; overflow: hidden; }
.related-look .look-thumb .look-visual { aspect-ratio: 1; border-radius: 13px; }
.related-look .look-thumb .look-grid { inset: 5px; gap: 3px; }
.related-look .look-thumb .look-visual__badge,
.related-look .look-thumb .look-visual__swatches { display: none; }
.related-look__body { flex: 1; min-width: 0; }
.related-look__body h3 { margin: 0 0 2px; font-size: 13px; }
.related-look__body p { margin: 0; font-size: 9.5px; color: var(--muted); }
.related-look .icon { color: var(--muted); }

.buybar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  z-index: 75;
  width: 100%;
  max-width: 390px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(244, 239, 228, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
}
.buybar__price { flex: 1; min-width: 0; }
.buybar__price strong { display: block; font-family: var(--serif); font-size: 19px; font-weight: 600; line-height: 1.2; }
.buybar__price span { display: block; font-size: 9px; color: var(--muted); margin-top: 1px; }
.buybar .btn--ink { min-width: 128px; }

.size-row { display: flex; flex-wrap: wrap; gap: 7px; }
.size-btn {
  min-width: 46px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-size: 11px;
  color: var(--ink-soft);
}
.size-btn.is-active { border-color: var(--ink); background: var(--ink); color: var(--paper); }

/* --------------------------------------------------------------------- cart */

.cart-head { margin: 12px 20px 16px; display: flex; align-items: flex-end; justify-content: space-between; }
.cart-head h1 { margin: 0; font-size: 28px; letter-spacing: -0.04em; line-height: 1.1; }
.cart-head h1 span { font-family: var(--serif); font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.cart-head .text-link { padding-bottom: 3px; }

.cart-list { padding: 0 16px; display: grid; gap: 10px; }

.cart-item {
  display: grid;
  grid-template-columns: 22px 84px 1fr;
  gap: 10px;
  padding: 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 19px;
}

.checkbox {
  width: 20px;
  height: 20px;
  padding: 0;
  border-radius: 50%;
  border: 1.4px solid var(--line-strong);
  background: transparent;
  display: grid;
  place-items: center;
  color: transparent;
  margin-top: 3px;
  flex: none;
}
.checkbox.is-checked { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.cart-item__art {
  aspect-ratio: 0.82;
  border-radius: 12px;
  background:
    radial-gradient(80% 70% at 28% 18%, rgba(255, 255, 255, 0.7), transparent 60%),
    var(--tile-bg, var(--surface-2));
  overflow: hidden;
  display: grid;
  place-items: center;
}
.cart-item__art .garment { width: 94%; height: 94%; }

.cart-item__main { min-width: 0; display: flex; flex-direction: column; }
.cart-item__brand { font-size: 7.5px; letter-spacing: 0.13em; color: var(--muted-2); text-transform: uppercase; }
.cart-item__name { margin: 2px 0 0; font-size: 12.5px; line-height: 1.35; font-weight: 600; }
.cart-item__meta { margin: 3px 0 0; font-size: 9.5px; color: var(--muted); }
.cart-item__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.cart-item__price { font-family: var(--serif); font-size: 14px; font-weight: 600; }
.cart-item__price small { font-family: var(--sans); font-size: 9px; color: var(--muted); margin-left: 4px; }

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  background: var(--paper);
}
.qty button {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  color: var(--ink);
}
.qty button:active { background: var(--paper-deep); }
.qty span { min-width: 22px; text-align: center; font-size: 10.5px; font-weight: 600; }

.cart-item__remove {
  border: 0;
  background: transparent;
  padding: 2px;
  color: var(--muted-2);
  margin-left: 2px;
}
.cart-item__remove:hover { color: var(--accent); }

.cart-extra { margin: 12px 16px 0; display: grid; gap: 10px; }
.promo-card { display: flex; align-items: center; gap: 8px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.promo-card .icon { color: var(--muted); }
.promo-card input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 11.5px; outline: none; height: 30px; }
.promo-card input::placeholder { color: var(--muted-2); }
.promo-card .btn--sm { min-height: 30px; background: var(--ink); color: var(--paper); }
.promo-note { font-size: 9.5px; color: var(--muted); padding: 0 4px; }
.promo-note b { color: var(--moss); }

.summary {
  margin: 12px 16px 0;
  padding: 15px 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.summary__row { display: flex; align-items: center; justify-content: space-between; padding: 5px 0; font-size: 11.5px; color: var(--muted); }
.summary__row strong { font-weight: 500; color: var(--ink-soft); }
.summary__row--total { margin-top: 7px; padding-top: 11px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink); }
.summary__row--total strong { font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--ink); }
.summary__row .discount { color: var(--accent); }
.summary__note { margin: 6px 0 0; font-size: 9px; color: var(--muted-2); }

.checkoutbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  z-index: 76;
  width: 100%;
  max-width: 390px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(244, 239, 228, 0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
}
.checkoutbar__total { flex: 1; min-width: 0; }
.checkoutbar__total span { display: block; font-size: 9px; color: var(--muted); }
.checkoutbar__total strong { display: block; font-family: var(--serif); font-size: 20px; font-weight: 600; line-height: 1.25; }
.checkoutbar .btn { min-width: 132px; }

.cart-recommend { padding: 0 16px; }
.product-strip { display: flex; gap: 9px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.product-strip::-webkit-scrollbar { display: none; }
.product-mini { flex: 0 0 118px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); padding: 6px; text-align: left; color: var(--ink); }
.product-mini__art { aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; overflow: hidden; background: radial-gradient(80% 70% at 28% 18%, rgba(255, 255, 255, 0.7), transparent 60%), var(--tile-bg, var(--surface-2)); }
.product-mini__art .garment { width: 88%; height: 88%; }
.product-mini__name { display: block; margin-top: 6px; font-size: 10px; font-weight: 550; line-height: 1.35; }
.product-mini__price { display: block; margin-top: 2px; font-size: 9px; color: var(--muted); }

.empty-state { margin: 54px 30px 0; text-align: center; }
.empty-state__art { width: 86px; height: 86px; margin: 0 auto 18px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); }
.empty-state h2 { margin: 0 0 6px; font-size: 19px; letter-spacing: -0.02em; }
.empty-state p { margin: 0 auto 20px; max-width: 260px; font-size: 11.5px; line-height: 1.65; color: var(--muted); }

/* ----------------------------------------------------------------- checkout */

.checkout-title { margin: 12px 20px 4px; font-size: 28px; line-height: 1.15; letter-spacing: -0.04em; }
.checkout-title span { display: block; margin-top: 4px; font-family: var(--serif); font-size: 10px; letter-spacing: 0.08em; color: var(--muted); }

.checkout-block {
  margin: 14px 16px 0;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.checkout-block__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.checkout-block__head h2 { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 650; }
.checkout-block__head h2 .icon { color: var(--muted); }
.checkout-block__head .text-link { font-size: 10.5px; color: var(--accent); }

.address { display: flex; align-items: flex-start; gap: 10px; }
.address__icon { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-deep); display: grid; place-items: center; flex: none; }
.address__name { margin: 0 0 2px; font-size: 12.5px; font-weight: 600; }
.address__name span { margin-left: 6px; font-size: 10px; font-weight: 400; color: var(--muted); }
.address__line { margin: 0; font-size: 10.5px; line-height: 1.6; color: var(--muted); }

.option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.option:last-child { border-bottom: 0; padding-bottom: 2px; }
.radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.4px solid var(--line-strong);
  flex: none;
  display: grid;
  place-items: center;
}
.radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: transparent; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option input:checked + .radio { border-color: var(--ink); }
.option input:checked + .radio::after { background: var(--ink); }
.option input:focus-visible + .radio { outline: 2px solid var(--accent); outline-offset: 2px; }
.option__body { flex: 1; min-width: 0; }
.option__title { display: block; font-size: 11.5px; font-weight: 550; }
.option__sub { display: block; margin-top: 1px; font-size: 9.5px; color: var(--muted); }
.option__price { font-size: 10.5px; color: var(--muted); }
.option__price.is-free { color: var(--moss); }
.option__logo {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  flex: none;
}
.option__logo--alipay { background: #1677ff; }
.option__logo--wechat { background: #07c160; }
.option__logo--apple { background: #111; }

.checkout-items { display: grid; gap: 9px; }
.checkout-item { display: flex; align-items: center; gap: 9px; }
.checkout-item__art { width: 46px; height: 54px; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; flex: none; }
.checkout-item__art .garment { width: 94%; height: 94%; }
.checkout-item__body { flex: 1; min-width: 0; }
.checkout-item__name { display: block; font-size: 10.5px; font-weight: 550; line-height: 1.35; }
.checkout-item__meta { display: block; font-size: 9px; color: var(--muted); margin-top: 2px; }
.checkout-item__price { font-family: var(--serif); font-size: 12px; }

.checkout-total { margin: 14px 20px 0; }
.checkout-total .summary { margin: 0; }

.checkout-note {
  display: flex;
  gap: 8px;
  margin: 12px 20px 0;
  font-size: 9.5px;
  line-height: 1.6;
  color: var(--muted-2);
}
.checkout-note .icon { flex: none; margin-top: 1px; }

/* ------------------------------------------------------------------ success */

.success-screen {
  min-height: calc(100dvh - 104px);
  padding: 38px 26px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background:
    radial-gradient(80% 50% at 50% 0%, #f9f4ea 0%, transparent 70%),
    var(--paper);
}

.success-check {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin: 4px 0 18px;
  animation: pop-in 0.6s var(--ease) both;
}
.success-check::before,
.success-check::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
}
.success-check::before { inset: -12px; }
.success-check::after { inset: -26px; opacity: 0.55; }
.success-check .icon { animation: draw-check 0.55s 0.15s var(--ease) both; }

.success-kicker { font-family: var(--serif); font-size: 9px; letter-spacing: 0.28em; color: var(--accent); text-transform: uppercase; }
.success-title { margin: 8px 0 7px; font-size: 30px; letter-spacing: -0.04em; line-height: 1.2; }
.success-sub { margin: 0; font-size: 12px; line-height: 1.7; color: var(--muted); max-width: 280px; }

.order-card {
  width: 100%;
  margin: 20px 0 0;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: left;
}
.order-card__row { display: flex; align-items: center; justify-content: space-between; padding: 5px 0; gap: 12px; font-size: 11px; color: var(--muted); }
.order-card__row strong { color: var(--ink); font-weight: 550; font-family: var(--serif); font-size: 12px; letter-spacing: 0.02em; }
.order-card__row--total { margin-top: 6px; padding-top: 10px; border-top: 1px dashed var(--line); }
.order-card__row--total strong { font-size: 19px; }
.order-card__items { display: flex; gap: 6px; padding: 10px 0 11px; border-bottom: 1px dashed var(--line); margin-bottom: 6px; }
.order-card__thumb { width: 42px; height: 50px; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; }
.order-card__thumb .garment { width: 94%; height: 94%; }
.order-card__more { align-self: center; font-size: 9px; color: var(--muted); }

.success-actions { width: 100%; display: grid; gap: 9px; margin-top: 22px; }
.success-note { margin-top: auto; padding-top: 26px; font-size: 9px; letter-spacing: 0.05em; color: var(--muted-2); }

.success-steps { display: flex; justify-content: center; gap: 0; width: 100%; margin-top: 22px; }
.success-step { flex: 1; position: relative; font-size: 8.5px; color: var(--muted-2); padding-top: 18px; }
.success-step::before { content: ""; position: absolute; top: 4px; left: 50%; width: 7px; height: 7px; transform: translateX(-50%); border-radius: 50%; background: var(--line-strong); }
.success-step::after { content: ""; position: absolute; top: 7px; left: 0; width: 100%; height: 1px; background: var(--line); z-index: -1; }
.success-step:first-child::after { left: 50%; width: 50%; }
.success-step:last-child::after { width: 50%; }
.success-step.is-on { color: var(--ink); }
.success-step.is-on::before { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---------------------------------------------------------------------- tags */

.tags-hero { padding: 18px 20px 0; }
.tags-hero h1 { margin: 0; font-size: 31px; line-height: 1.2; letter-spacing: -0.045em; }
.tags-hero h1 em { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--accent); }
.tags-hero p { margin: 12px 0 0; font-size: 12px; line-height: 1.7; color: var(--muted); }
.tags-hero__formula {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 8px 11px;
  border-radius: 11px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: 0.04em;
}
.tags-hero__formula b { color: rgba(244, 239, 228, 0.4); font-weight: 400; }

.tag-tabs {
  position: sticky;
  top: 100px;
  z-index: 30;
  display: flex;
  gap: 4px;
  margin-top: 22px;
  padding: 7px 20px;
  background: rgba(244, 239, 228, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow-x: auto;
  scrollbar-width: none;
}
.tag-tabs::-webkit-scrollbar { display: none; }
.tag-tab {
  flex: none;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.tag-tab.is-active { background: var(--ink); color: var(--paper); }

.tag-panel { padding: 8px 20px 0; }
.tag-panel[hidden] { display: none; }

.tag-intro { margin: 12px 0 16px; font-size: 11.5px; line-height: 1.7; color: var(--muted); }

.dict-grid { display: grid; gap: 9px; }
.dict-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
}
.dict-card__head { display: flex; align-items: center; gap: 9px; }
.dict-card__icon { width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; flex: none; }
.dict-card__name { font-size: 14px; font-weight: 650; }
.dict-card__en { margin-left: auto; font-family: var(--serif); font-size: 8px; letter-spacing: 0.14em; color: var(--muted-2); }
.dict-card__copy { margin: 9px 0 0; font-size: 11px; line-height: 1.6; color: var(--muted); }
.dict-card__keywords { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 9px; }
.dict-card__keywords span { padding: 2px 6px; border-radius: 5px; background: var(--surface-2); font-size: 8.5px; color: var(--muted); }
.dict-card__stat { margin-top: 9px; font-family: var(--serif); font-size: 8px; letter-spacing: 0.1em; color: var(--accent); }

.matrix-scroll { margin: 4px -20px 0; padding: 0 12px 6px; overflow-x: auto; scrollbar-width: none; }
.matrix-scroll::-webkit-scrollbar { display: none; }
.matrix { border-collapse: separate; border-spacing: 3px; margin: 0 auto; }
.matrix th { font-size: 8.5px; font-weight: 600; color: var(--muted); padding: 2px; }
.matrix th:first-child { text-align: left; padding-left: 4px; }
.matrix td { padding: 0; }
.matrix__cell {
  width: 44px;
  height: 38px;
  border: 0;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 9px;
  color: var(--cell-ink, var(--ink));
  background: var(--cell, var(--surface-2));
  transition: transform 0.15s var(--ease);
}
.matrix__cell:hover { transform: scale(1.06); }
.matrix__cell.is-on { outline: 2px solid var(--ink); outline-offset: 1px; }

.matrix-result {
  margin-top: 14px;
  padding: 14px;
  border-radius: 17px;
  background: var(--ink);
  color: var(--paper);
}
.matrix-result__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.matrix-result h3 { margin: 0; font-size: 15px; }
.matrix-result__score { font-family: var(--serif); font-size: 22px; color: var(--accent-soft); }
.matrix-result p { margin: 7px 0 12px; font-size: 10.5px; line-height: 1.6; color: rgba(244, 239, 228, 0.62); }
.matrix-result .btn { width: 100%; background: var(--paper); color: var(--ink); }
.matrix-hint { margin-top: 8px; font-size: 9px; color: var(--muted-2); text-align: center; }

.rule-list { display: grid; gap: 10px; }
.rule-card { padding: 14px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }
.rule-card__num { font-family: var(--serif); font-size: 9px; letter-spacing: 0.12em; color: var(--accent); }
.rule-card h3 { margin: 5px 0 4px; font-size: 14px; letter-spacing: -0.01em; }
.rule-card p { margin: 0; font-size: 10.5px; line-height: 1.65; color: var(--muted); }
.rule-formula {
  margin: 13px 0 0;
  padding: 13px;
  border-radius: 13px;
  background: var(--surface-2);
  font-family: var(--serif);
  font-size: 11px;
  line-height: 1.7;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.rule-formula b { color: var(--accent); font-weight: 500; }

.pipeline { margin: 14px 0 0; display: grid; gap: 0; }
.pipeline__step { position: relative; padding: 0 0 18px 34px; }
.pipeline__step:last-child { padding-bottom: 0; }
.pipeline__step::before {
  content: attr(data-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 9px;
  color: var(--muted);
  background: var(--paper);
}
.pipeline__step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 26px;
  bottom: 0;
  width: 1px;
  background: var(--line);
}
.pipeline__step h3 { margin: 2px 0 3px; font-size: 12.5px; }
.pipeline__step p { margin: 0; font-size: 10px; line-height: 1.6; color: var(--muted); }

.tag-table { width: 100%; border-collapse: collapse; font-size: 10px; }
.tag-table th { text-align: left; font-size: 8.5px; letter-spacing: 0.1em; color: var(--muted-2); text-transform: uppercase; padding: 0 5px 7px; font-weight: 600; }
.tag-table td { padding: 8px 5px; border-top: 1px solid var(--line); vertical-align: middle; }
.tag-table td:first-child { padding-left: 0; }
.tag-table td:last-child { padding-right: 0; text-align: right; }
.tag-table__product { display: flex; align-items: center; gap: 6px; }
.tag-table__art { width: 30px; height: 36px; border-radius: 6px; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; flex: none; }
.tag-table__art .garment { width: 94%; height: 94%; }
.tag-table__name { font-size: 10px; line-height: 1.3; font-weight: 550; }
.tag-table__tags { display: flex; gap: 3px; flex-wrap: wrap; }
.tag-table__tags span { font-size: 7.5px; padding: 2px 4px; border-radius: 4px; background: var(--surface-2); color: var(--muted); }
.tag-table__price { font-family: var(--serif); font-size: 10px; }
.tag-table__link { font-size: 8px; color: var(--accent); }

.factory-note {
  margin: 16px 0 0;
  padding: 16px;
  border-radius: 18px;
  background: var(--moss-soft);
  color: #39432f;
}
.factory-note h3 { margin: 0 0 5px; font-size: 13px; }
.factory-note p { margin: 0; font-size: 10.5px; line-height: 1.7; }
.tag-doc-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 22px 0 0;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 11px;
}
.tag-doc-link .icon { color: var(--muted); }

/* ---------------------------------------------------------------- inspiration */

.insp-hero { padding: 14px 20px 4px; }
.insp-hero .kicker { color: var(--accent); }
.insp-hero h1 { margin: 4px 0 0; font-size: 34px; letter-spacing: -0.05em; line-height: 1.15; }
.insp-hero h1 em { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--accent); }
.insp-hero p { margin: 8px 0 0; font-size: 11.5px; line-height: 1.6; color: var(--muted); }

.filter-bar {
  position: sticky;
  top: 100px;
  z-index: 30;
  padding: 11px 20px;
  background: rgba(244, 239, 228, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-bar .chip-row { padding: 0; }

.feed {
  padding: 8px 16px 0;
  column-count: 2;
  column-gap: 10px;
}
.feed-card {
  break-inside: avoid;
  margin-bottom: 10px;
  border-radius: 17px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: left;
  padding: 0;
  width: 100%;
  color: var(--ink);
  display: block;
}
.feed-card .ugc-visual { border-radius: 0; }
.feed-card__body { padding: 8px 9px 10px; }
.feed-card__caption { margin: 0 0 6px; font-size: 10.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.feed-card__meta { display: flex; align-items: center; gap: 5px; font-size: 8.5px; color: var(--muted); }
.feed-card__meta .avatar { width: 20px !important; height: 20px !important; font-size: 8px; }
.feed-card__likes { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; }
.feed-card__likes .icon { width: 10px; height: 10px; }

/* ------------------------------------------------------------------ profile */

.profile-hero {
  margin: 12px 16px 0;
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(145deg, #26231e, #3a352c);
  color: var(--paper);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.profile-hero::after {
  content: "";
  position: absolute;
  right: -48px;
  top: -56px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 1px solid rgba(244, 239, 228, 0.16);
  box-shadow: 0 0 0 22px rgba(244, 239, 228, 0.05), 0 0 0 44px rgba(244, 239, 228, 0.025);
}
.profile-hero__row { display: flex; align-items: center; gap: 13px; }
.profile-hero .avatar { width: 58px !important; height: 58px !important; font-size: 21px; border: 1px solid rgba(244, 239, 228, 0.22); }
.profile-hero__name { margin: 0; font-size: 20px; letter-spacing: -0.02em; }
.profile-hero__tag { margin: 3px 0 0; font-family: var(--serif); font-size: 9px; letter-spacing: 0.1em; color: rgba(244, 239, 228, 0.55); }
.profile-hero__moods { display: flex; gap: 5px; margin-top: 14px; flex-wrap: wrap; }
.profile-hero__moods span { padding: 4px 8px; border-radius: 6px; background: rgba(244, 239, 228, 0.1); font-size: 8.5px; color: rgba(244, 239, 228, 0.75); }

.profile-stats { display: flex; margin: 14px 16px 0; gap: 8px; }
.profile-stat { flex: 1; padding: 11px 12px; border-radius: 15px; border: 1px solid var(--line); background: var(--surface); }
.profile-stat strong { display: block; font-family: var(--serif); font-size: 18px; font-weight: 600; }
.profile-stat span { display: block; margin-top: 1px; font-size: 8.5px; color: var(--muted); }

.order-row { margin: 18px 16px 0; padding: 15px 14px; border-radius: 19px; border: 1px solid var(--line); background: var(--surface); }
.order-row__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.order-row__head h2 { margin: 0; font-size: 13px; }
.order-row__head a { font-size: 9.5px; color: var(--muted); }
.order-row__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.order-action { border: 0; background: transparent; display: grid; gap: 5px; justify-items: center; padding: 6px 2px; color: var(--ink-soft); font-size: 9px; position: relative; }
.order-action .icon { color: var(--ink); }
.order-action__badge { position: absolute; top: 0; right: 18px; min-width: 14px; height: 14px; padding: 0 3px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 7.5px; display: grid; place-items: center; }

.menu { margin: 14px 16px 0; border-radius: 19px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.menu__row { display: flex; align-items: center; gap: 10px; padding: 13px 14px; border-bottom: 1px solid var(--line); font-size: 12px; }
.menu__row:last-child { border-bottom: 0; }
.menu__row .menu__icon { width: 30px; height: 30px; border-radius: 9px; background: var(--surface-2); display: grid; place-items: center; color: var(--ink-soft); flex: none; }
.menu__row small { margin-left: auto; font-size: 9px; color: var(--muted-2); }
.menu__row .icon:last-child { color: var(--muted-2); }

.fav-list { display: flex; gap: 9px; overflow-x: auto; padding: 2px 16px 4px; scrollbar-width: none; }
.fav-list::-webkit-scrollbar { display: none; }

.profile-reset { margin: 18px 16px 0; }
.profile-reset button { width: 100%; border: 1px dashed var(--line-strong); background: transparent; border-radius: 13px; padding: 11px; font-size: 10px; color: var(--muted); }
.profile-note { margin: 18px 24px 0; text-align: center; font-size: 8.5px; line-height: 1.7; color: var(--muted-2); }

/* ---------------------------------------------------------------- overlays */

#toast-root {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(94px + env(safe-area-inset-bottom));
  z-index: 160;
  width: min(calc(100% - 32px), 358px);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border-radius: 14px;
  background: rgba(27, 25, 22, 0.94);
  color: var(--paper);
  box-shadow: 0 16px 30px -16px rgba(20, 15, 8, 0.65);
  font-size: 11.5px;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  pointer-events: auto;
}
.toast.is-show { opacity: 1; transform: translateY(0); }
.toast__icon { color: var(--accent-soft); flex: none; }
.toast__text { flex: 1; }
.toast__action { color: var(--accent-soft); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; flex: none; }

#sheet-root { position: fixed; inset: 0; z-index: 170; pointer-events: none; }
#sheet-root:empty { display: none; }

.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(24, 20, 14, 0.45);
  opacity: 0;
  transition: opacity 0.26s var(--ease);
  pointer-events: auto;
}
.sheet-backdrop.is-open { opacity: 1; }

.sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 104%);
  width: 100%;
  max-width: 390px;
  max-height: 82dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -20px 60px -30px rgba(20, 15, 8, 0.6);
  transition: transform 0.3s var(--ease);
  pointer-events: auto;
  padding-bottom: env(safe-area-inset-bottom);
}
.sheet.is-open { transform: translate(-50%, 0); }

.sheet__handle { width: 38px; height: 4px; border-radius: 999px; background: var(--line-strong); margin: 8px auto 0; flex: none; }
.sheet__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 20px 10px; flex: none; }
.sheet__header .kicker { margin-bottom: 2px; }
.sheet__title { margin: 0; font-size: 20px; line-height: 1.25; letter-spacing: -0.025em; }
.sheet__body { padding: 4px 20px 18px; overflow-y: auto; overscroll-behavior: contain; }
.sheet__footer { padding: 10px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); flex: none; }

.sheet-search { display: grid; gap: 12px; }
.sheet-search .field { min-height: 48px; }
.sheet-label { display: block; margin: 2px 0 6px; font-size: 9px; font-weight: 700; letter-spacing: 0.13em; color: var(--muted); text-transform: uppercase; }
.sheet-options { display: grid; gap: 6px; }
.sheet-option {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  font-size: 11.5px;
  text-align: left;
  color: var(--ink);
}
.sheet-option.is-active { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.sheet-option .mood-face { flex: none; }
.sheet-option small { margin-left: auto; font-size: 8.5px; opacity: 0.55; }

.alt-list { display: grid; gap: 8px; }
.alt-item {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  text-align: left;
  color: var(--ink);
}
.alt-item.is-current { border-color: var(--ink); box-shadow: 0 0 0 2px rgba(27, 25, 22, 0.08); }
.alt-item__art { width: 62px; height: 72px; border-radius: 9px; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; }
.alt-item__art .garment { width: 94%; height: 94%; }
.alt-item__name { display: block; font-size: 11.5px; font-weight: 600; line-height: 1.35; }
.alt-item__meta { display: block; margin-top: 2px; font-size: 9px; color: var(--muted); }
.alt-item__price { font-family: var(--serif); font-size: 12px; white-space: nowrap; }
.alt-item__use { display: block; margin-top: 3px; font-size: 8px; color: var(--accent); text-align: right; }

.address-option { display: flex; align-items: flex-start; gap: 9px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-align: left; }
.address-option.is-active { border-color: var(--ink); }
.address-option strong { display: block; font-size: 11.5px; }
.address-option span { display: block; margin-top: 3px; font-size: 9.5px; line-height: 1.55; color: var(--muted); }
.address-option .radio { margin-top: 2px; }

.post-sheet { display: grid; gap: 12px; }
.post-sheet .ugc-visual { border-radius: 18px; aspect-ratio: 4 / 3.4; }
.post-sheet__meta { display: flex; align-items: center; gap: 8px; }
.post-sheet__user { font-size: 12px; font-weight: 600; }
.post-sheet__handle { font-size: 9px; color: var(--muted); }
.post-sheet__likes { margin-left: auto; display: flex; align-items: center; gap: 3px; font-size: 9px; color: var(--muted); }
.post-sheet__caption { margin: 0; font-size: 13px; line-height: 1.7; }
.post-sheet__items { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; }
.post-sheet__items::-webkit-scrollbar { display: none; }
.post-item { flex: 0 0 92px; padding: 5px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); text-align: left; }
.post-item__art { aspect-ratio: 1; border-radius: 7px; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; }
.post-item__art .garment { width: 92%; height: 92%; }
.post-item__name { display: block; margin-top: 4px; font-size: 8.5px; line-height: 1.35; }
.post-item__price { display: block; font-size: 8px; color: var(--muted); }

.load-error { padding: 80px 30px; text-align: center; }
.load-error h1 { font-size: 22px; }
.load-error p { font-size: 12px; color: var(--muted); line-height: 1.7; }
.load-error code { background: var(--surface-2); padding: 2px 5px; border-radius: 4px; }

.loading-card { margin: 30px 20px; padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); text-align: center; font-size: 11px; color: var(--muted); }

/* ------------------------------------------------------------------- misc */

.load-error .btn { margin-top: 14px; }
.hide { display: none !important; }

.skip-link {
  position: fixed;
  left: 50%;
  top: -60px;
  transform: translateX(-50%);
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 0 0 10px 10px;
  font-size: 11px;
}
.skip-link:focus { top: 0; }

/* --------------------------------------------------------------- animations */

@keyframes screen-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@keyframes pop-in {
  0% { transform: scale(0.6); opacity: 0; }
  60% { transform: scale(1.06); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes draw-check {
  from { opacity: 0; transform: scale(0.4); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulse-soft {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes breathe {
  0%, 100% { transform: scale(0.6); opacity: 0.55; }
  50% { transform: scale(1); opacity: 1; }
}

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

@media (max-width: 400px) {
  .hero__title { font-size: 33px; }
  .looks { padding: 0 10px; }
  .match { width: 42px; height: 42px; }
}

/* ------------------------------------------------------------------ patches */

.section-head__note,
.section-head > .section-head__note {
  flex: none;
  padding-bottom: 3px;
  font-family: var(--serif);
  font-size: 8px;
  letter-spacing: 0.13em;
  color: var(--muted-2);
}

.search input { transition: opacity 0.16s var(--ease); }
.search input.is-swapping { opacity: 0.25; }

.query-banner__note {
  margin: 10px 0 0;
  padding-top: 9px;
  border-top: 1px dashed var(--line);
  font-size: 9.5px;
  line-height: 1.55;
  color: var(--muted);
}

.look-card.no-anim { animation: none; }
.item-card__open { display: block; width: 100%; height: 100%; }
.item-card__open .garment { width: 88%; height: 88%; margin: auto; }
.look-actions .btn.is-added { background: var(--moss); }

body[data-page="product"] .screen { padding-bottom: 124px; }
.pdp-body { padding-bottom: 20px; }
body[data-page="checkout"] .screen { padding-bottom: 142px; }

body[data-page="cart"] .checkoutbar { bottom: calc(64px + env(safe-area-inset-bottom)); }

body[data-page="inspiration"] .filter-bar { top: 44px; }

body[data-page="product"] #toast-root { bottom: calc(100px + env(safe-area-inset-bottom)); }
body[data-page="cart"] #toast-root { bottom: calc(158px + env(safe-area-inset-bottom)); }
body[data-page="checkout"] #toast-root { bottom: calc(100px + env(safe-area-inset-bottom)); }

.fav-empty {
  flex: 1;
  min-height: 96px;
  padding: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface);
}
.fav-empty p { margin: 0; max-width: 200px; font-size: 10.5px; line-height: 1.6; color: var(--muted); }

.tag-table-wrap { overflow-x: auto; scrollbar-width: none; }
.tag-table-wrap::-webkit-scrollbar { display: none; }

.radio.is-active { border-color: var(--ink); }
.radio.is-active::after { background: var(--ink); }

.feed-card { cursor: pointer; }
.feed-card:active { transform: scale(0.99); }
.feed-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.success-screen { min-height: calc(100dvh - 104px); }

/* ------------------------------------------------------- reasons & budget */

.reason__label { margin-bottom: 5px; }
.reason__label--mood {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line-strong);
}
.reason__mood { color: var(--ink-soft); }
.reason__styling { border-top: 1px dashed var(--line-strong); }
.reason__styling b {
  margin-right: 4px;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-deep);
}
.reason__basis {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  font-size: 9px;
  line-height: 1.55;
  color: var(--muted-2);
}
.budget-note {
  margin: 9px 2px 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--surface-2);
  font-size: 9.5px;
  line-height: 1.45;
  color: var(--muted);
}
.budget-note.is-over { background: var(--accent-soft); color: #71402d; }
.budget-note.is-ok { background: var(--moss-soft); color: #43513a; }
.item-card.is-focus { border-color: var(--accent); }
.item-card__focus {
  position: absolute;
  left: 4px;
  top: 4px;
  z-index: 2;
  padding: 2px 5px;
  border-radius: 5px;
  background: var(--accent);
  color: #fff8f3;
  font-size: 7px;
  font-weight: 650;
  letter-spacing: 0.04em;
}
.query-banner__note + .query-banner__note { margin-top: 6px; padding-top: 6px; }

.dict-card__signature {
  margin: 8px 0 0;
  font-size: 9.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.dict-card__signature b { color: var(--muted); font-weight: 600; letter-spacing: 0.04em; }
.factory-note b { color: inherit; }

/* ---------------------------------------------------------------- audience */

.audience-chip {
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.audience-chip:hover { border-color: var(--line-strong); }

.audience-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 6px;
}
.audience-option {
  padding: 15px 8px 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  text-align: center;
}
.audience-option b { display: block; font-size: 18px; line-height: 1.2; }
.audience-option span { display: block; margin-top: 4px; font-size: 8px; color: var(--muted); line-height: 1.4; }
.audience-option.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.audience-option.is-active span { color: rgba(244, 239, 228, 0.6); }
.audience-sheet__footer { display: grid; gap: 8px; }
.audience-note {
  margin-top: 14px;
  padding: 12px 13px;
  border-radius: 13px;
  background: var(--surface-2);
  font-size: 10px;
  line-height: 1.65;
  color: var(--muted);
}
.audience-note b { color: var(--ink); }

.audience-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 5px;
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.03em;
  white-space: nowrap;
  background: var(--surface-2);
  color: var(--muted);
}
.audience-badge--women { background: var(--accent-soft); color: var(--accent-deep); }
.audience-badge--men { background: var(--moss-soft); color: #45503d; }
.audience-badge--unisex { background: #e8e1d4; color: #5e584c; }

.audience-switch { border: 0; background: transparent; padding: 0; }

.look-card__meta-row { display: flex; align-items: center; gap: 6px; }
.look-card__sub + .audience-badge { margin-top: 7px; }
.audience-switch { border: 0; cursor: pointer; }

.audience-card {
  margin: 14px 16px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.audience-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 5px; }
.audience-card__head h2 { margin: 0; font-size: 13px; }
.audience-card p { margin: 0; font-size: 9.5px; line-height: 1.6; color: var(--muted); }
.audience-segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 10px;
  padding: 4px;
  border-radius: 12px;
  background: var(--surface-2);
}
.audience-segmented button {
  min-height: 34px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.audience-segmented button.is-active { background: var(--ink); color: var(--paper); }
.audience-hint { margin-top: 7px !important; font-size: 8.5px !important; color: var(--muted-2) !important; }

.audience-model { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.audience-model__card {
  padding: 11px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.audience-model__card h3 { margin: 7px 0 3px; font-size: 15px; letter-spacing: -0.02em; }
.audience-model__card p { margin: 0; font-size: 8.5px; line-height: 1.5; color: var(--muted); }
.audience-model__card > span:last-child { display: block; margin-top: 6px; font-size: 8px; color: var(--muted-2); }
.audience-model__card--women { border-color: #e8c8ba; }
.audience-model__card--men { border-color: #c8d2bd; }
.audience-model__card--unisex { border-color: #d9d0bf; }
