/* ============================================================
   衣镜 YIJING — 视觉系统
   Warm editorial wardrobe · cream paper, ink, tomato accent
   ============================================================ */

:root {
  --paper: #f2ede4;
  --paper-deep: #ebe4d8;
  --surface: #fbf8f1;
  --surface-2: #f7f1e7;
  --surface-3: #f1e9dc;
  --ink: #211e1a;
  --ink-soft: #37322b;
  --muted: #7a7266;
  --muted-2: #9a9184;
  --line: #ded4c5;
  --line-soft: #e8e0d4;
  --accent: #d9503a;
  --accent-deep: #b63c28;
  --accent-soft: #f4d8d0;
  --sage: #66765d;
  --sage-soft: #dce4d6;
  --butter: #e8b84b;
  --lilac: #8773a3;
  --sky: #a9c3d2;
  --blue-ink: #3d5662;
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 11px;
  --serif: "Iowan Old Style", "Baskerville", "Times New Roman", "Songti SC", "SimSun", serif;
  --sans: "Avenir Next", "Segoe UI Variable Display", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --shadow-soft: 0 18px 50px rgba(54, 42, 27, .07);
  --shadow-lift: 0 22px 60px rgba(54, 42, 27, .13);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.modal-open { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cfc4b4; border: 2px solid var(--paper); border-radius: 20px; }
::-webkit-scrollbar-thumb:hover { background: #b8a994; }

.ambient {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .42;
  pointer-events: none;
  z-index: 0;
}
.ambient-a { width: 460px; height: 460px; background: #ead5c2; right: -160px; top: -120px; }
.ambient-b { width: 520px; height: 520px; background: #d7ded0; left: 26%; bottom: -280px; opacity: .4; }

.ic {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.serif { font-family: var(--serif); font-weight: 400; }
.eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.muted { color: var(--muted); }
.ink { color: var(--ink); }
.accent { color: var(--accent); }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }

/* ---------- shell ---------- */
.app-shell { display: flex; min-height: 100vh; position: relative; z-index: 1; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 242px;
  padding: 28px 20px 22px;
  display: flex;
  flex-direction: column;
  background: rgba(242, 237, 228, .9);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  z-index: 40;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 8px;
}
.brand-mark {
  width: 39px;
  height: 39px;
  color: var(--ink);
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  transition: transform .5s var(--ease), background .3s;
}
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.04); background: var(--ink); color: var(--paper); }
.brand-mark svg { width: 27px; height: 27px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-family: var(--serif); font-size: 24px; font-weight: 500; letter-spacing: .08em; }
.brand-text small { margin-top: 5px; font-size: 8px; letter-spacing: .34em; color: var(--muted); }
.side-kicker {
  margin: 30px 8px 16px;
  font-size: 8px;
  line-height: 1.7;
  letter-spacing: .2em;
  color: var(--muted-2);
}
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  transition: background .25s var(--ease), color .25s, transform .25s;
}
.side-nav a .nav-idx {
  width: 16px;
  font-size: 8px;
  letter-spacing: .08em;
  color: var(--muted-2);
  transition: color .25s;
}
.side-nav a .ic { width: 17px; height: 17px; }
.side-nav a span:last-child { font-size: 13px; letter-spacing: .04em; }
.side-nav a:hover { color: var(--ink); background: rgba(255, 253, 247, .72); transform: translateX(2px); }
.side-nav a.active { color: var(--paper); background: var(--ink); box-shadow: 0 8px 20px rgba(33, 30, 26, .16); }
.side-nav a.active .nav-idx { color: rgba(242, 237, 228, .54); }
.side-bottom { margin-top: auto; }
.style-meter {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(251, 248, 241, .55);
}
.style-meter-head { display: flex; align-items: baseline; justify-content: space-between; }
.style-meter-head span { font-size: 10px; letter-spacing: .08em; color: var(--muted); }
.style-meter-head strong { font-family: var(--serif); font-size: 19px; font-weight: 400; }
.meter-track { height: 3px; margin: 9px 0 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.meter-track span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.style-meter p { font-size: 9px; line-height: 1.55; color: var(--muted-2); }
.side-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 9px 8px;
  border-radius: 14px;
  transition: background .2s;
}
.side-user:hover { background: rgba(255, 253, 247, .75); }
.side-user > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.side-user strong { font-size: 12px; font-weight: 600; }
.side-user small { font-size: 9px; color: var(--muted); margin-top: 1px; }
.side-user .ic { margin-left: auto; width: 14px; height: 14px; color: var(--muted-2); }
.mini-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(140deg, #d9a68a, #b77257);
  color: #fff8ee; font-family: var(--serif); font-size: 15px;
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.3);
}

.main-shell { width: calc(100% - 242px); margin-left: 242px; min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 40px;
  height: 74px;
  border-bottom: 1px solid rgba(222, 212, 197, .75);
  background: rgba(242, 237, 228, .78);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 12px; }
.mobile-menu { display: none !important; }
.weather-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px 8px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: border .2s, background .2s;
}
.weather-pill:hover { border-color: var(--line); background: rgba(251, 248, 241, .65); }
.weather-pill > .ic:first-child { width: 22px; height: 22px; color: var(--ink-soft); }
.weather-pill span { display: flex; align-items: baseline; gap: 7px; }
.weather-pill strong { font-family: var(--serif); font-size: 19px; font-weight: 400; }
.weather-pill em { font-style: normal; font-size: 10px; color: var(--muted); letter-spacing: .03em; }
.weather-pill .chev { width: 12px; height: 12px; color: var(--muted-2); }
.topbar-date { font-size: 10px; letter-spacing: .12em; color: var(--muted-2); padding-left: 8px; border-left: 1px solid var(--line); }
.search-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 245px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(251, 248, 241, .55);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .03em;
  transition: border .2s, background .2s;
}
.search-trigger:hover { border-color: var(--muted-2); background: var(--surface); }
.search-trigger .ic { width: 15px; height: 15px; }
.search-trigger kbd {
  margin-left: auto; font-family: var(--sans); font-size: 8px; letter-spacing: .04em;
  padding: 2px 5px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted-2);
}
.icon-btn {
  position: relative;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  color: var(--ink-soft);
  transition: background .2s, border .2s;
}
.icon-btn:hover { background: var(--surface); border-color: var(--line); }
.icon-btn .dot {
  position: absolute; top: 8px; right: 8px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 2px var(--paper);
}
.top-avatar {
  width: 33px; height: 33px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(140deg, #d9a68a, #b77257);
  color: #fff8ee; font-family: var(--serif); font-size: 14px;
  transition: transform .25s var(--ease);
}
.top-avatar:hover { transform: scale(1.06); }
.view {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 30px 40px 66px;
  flex: 1;
  animation: viewIn .55s var(--ease) both;
}
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 40px 26px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 8px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.loading-screen { min-height: 55vh; display: grid; place-content: center; justify-items: center; gap: 16px; color: var(--muted); }
.loading-mark {
  width: 58px; height: 58px; border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center; font-family: var(--serif); font-size: 24px;
  animation: breathe 2s ease-in-out infinite;
}
.loading-screen p { font-size: 10px; letter-spacing: .18em; }
.mobile-nav { display: none; }
.noscript { padding: 40px; text-align: center; }

/* ---------- common ---------- */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.page-head h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 55px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -.025em;
}
.page-head h1 em { font-style: italic; color: var(--accent); }
.page-head p { margin-top: 8px; font-size: 12px; color: var(--muted); max-width: 540px; line-height: 1.65; }
.page-head-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .05em;
  white-space: nowrap;
  transition: transform .22s var(--ease), background .22s, color .22s, box-shadow .22s, border-color .22s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(33,30,26,.17); }
.btn:active { transform: translateY(0); }
.btn .ic { width: 16px; height: 16px; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { background: var(--surface); border-color: var(--ink); box-shadow: none; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff9f2; }
.btn-accent:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn-soft { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-soft:hover { background: var(--surface-2); border-color: var(--muted-2); box-shadow: none; }
.btn-sm { min-height: 33px; padding: 0 13px; font-size: 10px; }
.btn-lg { min-height: 50px; padding: 0 24px; font-size: 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.text-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 10px; letter-spacing: .08em; color: var(--muted);
  padding: 5px 0; border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.text-btn:hover { color: var(--ink); border-color: var(--ink); }
.text-btn .ic { width: 14px; height: 14px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.section { margin-top: 42px; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 17px;
}
.section-head h2 {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -.02em;
}
.section-head h2 em { font-style: italic; color: var(--accent); }
.section-head .section-sub { margin-top: 5px; font-size: 10px; color: var(--muted); letter-spacing: .04em; }
.section-head-side { font-size: 10px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.section-head-side .ic { width: 14px; height: 14px; }

.tag {
  display: inline-flex; align-items: center; gap: 4px;
  min-height: 23px; padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 9px; letter-spacing: .03em; color: var(--muted);
  background: rgba(255,255,255,.28);
}
.tag-solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tag-accent { background: var(--accent-soft); color: var(--accent-deep); border-color: transparent; }
.tag-sage { background: var(--sage-soft); color: #4d5c44; border-color: transparent; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 10px; color: var(--muted);
  white-space: nowrap;
  transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--muted-2); color: var(--ink); background: var(--surface); }
.chip.active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip .ic { width: 14px; height: 14px; }

.score-ring {
  --p: 90;
  width: 64px; height: 64px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), rgba(255,255,255,.28) 0);
  position: relative;
  flex: 0 0 auto;
}
.score-ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--surface); }
.score-ring span { position: relative; font-family: var(--serif); font-size: 20px; line-height: 1; }
.score-ring small { position: absolute; bottom: 8px; font-size: 6px; letter-spacing: .08em; color: var(--muted); }

.avatar-svg, .garment-svg, .collage-svg, .radar-svg { display: block; width: 100%; height: auto; }
.avatar-svg { filter: drop-shadow(0 18px 22px rgba(46, 34, 22, .12)); }
.garment-svg { filter: drop-shadow(0 12px 16px rgba(46, 34, 22, .1)); }

.stat-number { font-family: var(--serif); font-size: 34px; line-height: .95; font-weight: 400; letter-spacing: -.03em; }
.stat-label { font-size: 9px; letter-spacing: .1em; color: var(--muted); }

/* ---------- home ---------- */
.home-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}
.home-intro .eyebrow { margin-bottom: 11px; }
.home-intro h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 66px);
  line-height: .98;
  font-weight: 400;
  letter-spacing: -.035em;
}
.home-intro h1 em { font-style: italic; color: var(--accent); position: relative; }
.home-intro h1 em::after { content: ""; position: absolute; left: 2px; right: 0; bottom: 2px; height: 1px; background: var(--accent); opacity: .4; }
.home-intro-side { display: flex; align-items: center; gap: 14px; }
.home-intro-side .round-note {
  width: 62px; height: 62px; border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-content: center; text-align: center; font-size: 7px; letter-spacing: .12em; color: var(--muted);
  line-height: 1.4; transform: rotate(-7deg);
}
.home-intro-side .round-note strong { display: block; font-family: var(--serif); font-size: 16px; font-weight: 400; color: var(--ink); letter-spacing: 0; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, .7fr); gap: 18px; }

.hero-look {
  position: relative;
  min-height: 516px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #dbe2d4;
  border: 1px solid rgba(82, 95, 74, .18);
  display: grid;
  grid-template-columns: 53% 47%;
  box-shadow: var(--shadow-soft);
}
.hero-look::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 28% 22%, rgba(255,255,255,.6), transparent 28%),
    linear-gradient(115deg, rgba(255,255,255,.18), transparent 36%);
  pointer-events: none;
}
.hero-weather-ghost {
  position: absolute;
  left: 22px; top: 57px;
  font-family: var(--serif);
  font-size: clamp(120px, 14vw, 205px);
  line-height: .75;
  color: rgba(255, 253, 246, .34);
  letter-spacing: -.08em;
  pointer-events: none;
  user-select: none;
}
.hero-stage {
  position: relative;
  min-height: 516px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hero-stage .avatar-svg {
  position: relative;
  width: min(93%, 435px);
  margin-bottom: -34px;
  filter: drop-shadow(0 26px 30px rgba(46, 34, 22, .16));
}
.hero-stage::after {
  content: "";
  position: absolute;
  left: 12%; right: 12%; bottom: 28px; height: 1px;
  background: rgba(47, 55, 42, .18);
}
.hero-badge {
  position: absolute;
  top: 22px; left: 22px;
  z-index: 3;
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(33,30,26,.25);
  border-radius: 999px;
  font-size: 8px; letter-spacing: .18em; text-transform: uppercase;
  background: rgba(251,248,241,.44);
  backdrop-filter: blur(8px);
}
.hero-badge .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.hero-copy {
  position: relative;
  z-index: 2;
  padding: 68px 34px 94px 10px;
  display: flex;
  flex-direction: column;
}
.hero-copy .eyebrow { color: #5f6c58; }
.hero-copy h2 {
  margin: 12px 0 15px;
  font-family: var(--serif);
  font-size: clamp(34px, 3.6vw, 50px);
  line-height: 1.02;
  font-weight: 400;
  letter-spacing: -.035em;
}
.hero-copy h2 em { font-style: italic; color: #b74834; }
.hero-copy p { max-width: 310px; font-size: 11px; line-height: 1.8; color: #4e5847; }
.hero-items { display: flex; flex-direction: column; gap: 0; margin: 26px 0 0; }
.hero-item-line {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0;
  border-top: 1px solid rgba(58, 69, 52, .16);
  font-size: 10px; color: #404a3a;
}
.hero-item-line:last-child { border-bottom: 1px solid rgba(58, 69, 52, .16); }
.hero-item-line b { font-family: var(--serif); font-size: 9px; font-weight: 400; color: rgba(58,69,52,.62); }
.hero-item-line span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-item-line .line-price { margin-left: auto; font-family: var(--serif); font-size: 11px; color: #404a3a; }
.hero-copy .btn { align-self: flex-start; margin-top: 21px; background: #273125; border-color: #273125; }
.hero-bottom {
  position: absolute;
  left: 18px; right: 18px; bottom: 16px;
  z-index: 3;
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  border-radius: 15px;
  background: rgba(250, 247, 239, .69);
  border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(14px);
}
.hero-bottom .score-mini { display: flex; align-items: baseline; gap: 5px; }
.hero-bottom .score-mini strong { font-family: var(--serif); font-size: 23px; font-weight: 400; line-height: 1; }
.hero-bottom .score-mini small { font-size: 7px; letter-spacing: .12em; color: var(--muted); }
.hero-bottom .hero-bottom-text { font-size: 9px; color: #4f5849; line-height: 1.45; }
.hero-bottom .hero-bottom-text b { font-weight: 600; }
.hero-bottom .btn { margin-left: auto; min-height: 31px; padding: 0 12px; font-size: 9px; background: transparent; color: var(--ink); border-color: rgba(33,30,26,.25); }
.hero-bottom .icon-btn { width: 31px; height: 31px; border-color: rgba(33,30,26,.2); }

.home-side { display: flex; flex-direction: column; gap: 18px; }
.weather-card {
  position: relative;
  overflow: hidden;
  min-height: 276px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(148deg, #b9d0dc 0%, #cfdddf 44%, #efe5d4 100%);
  border: 1px solid rgba(87, 112, 124, .16);
  color: #26363d;
  box-shadow: var(--shadow-soft);
}
.weather-card::before {
  content: ""; position: absolute; width: 210px; height: 210px; border-radius: 50%;
  right: -70px; top: -62px; background: rgba(255,255,255,.22);
}
.weather-card::after {
  content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%;
  right: 22px; top: 22px; border: 1px solid rgba(255,255,255,.35);
}
.weather-top { position: relative; display: flex; justify-content: space-between; align-items: flex-start; z-index: 1; }
.weather-top .eyebrow { color: rgba(38,54,61,.55); }
.weather-top .weather-icon { color: rgba(38,54,61,.8); }
.weather-top .weather-icon .ic { width: 44px; height: 44px; stroke-width: 1.1; }
.weather-temp { position: relative; display: flex; align-items: flex-start; gap: 4px; margin-top: 15px; z-index: 1; }
.weather-temp strong { font-family: var(--serif); font-size: 66px; line-height: .8; font-weight: 400; letter-spacing: -.05em; }
.weather-temp span { font-family: var(--serif); font-size: 22px; margin-top: 1px; }
.weather-meta { position: relative; z-index: 1; display: flex; align-items: center; gap: 9px; margin-top: 8px; font-size: 10px; color: rgba(38,54,61,.68); }
.weather-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }
.weather-hours {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 19px;
  padding-top: 12px;
  border-top: 1px solid rgba(38,54,61,.13);
}
.weather-hour { display: flex; flex-direction: column; gap: 4px; font-size: 8px; color: rgba(38,54,61,.55); }
.weather-hour b { font-family: var(--serif); font-size: 15px; font-weight: 400; color: rgba(38,54,61,.9); }
.weather-card .city-btn {
  position: absolute; bottom: 16px; right: 18px; z-index: 2;
  display: flex; align-items: center; gap: 5px;
  font-size: 8px; letter-spacing: .08em; color: rgba(38,54,61,.6);
  border-bottom: 1px solid rgba(38,54,61,.25);
  padding-bottom: 2px;
}
.weather-card .city-btn .ic { width: 11px; height: 11px; }

.wardrobe-mini-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  flex: 1;
  min-height: 222px;
}
.wardrobe-mini-head { display: flex; justify-content: space-between; align-items: flex-start; }
.wardrobe-mini-head .eyebrow { margin-bottom: 7px; }
.wardrobe-mini-head h3 { font-family: var(--serif); font-size: 27px; font-weight: 400; line-height: 1; }
.wardrobe-mini-head h3 span { font-size: 12px; color: var(--muted); margin-left: 4px; }
.wardrobe-mini-head .round-arrow {
  width: 31px; height: 31px; border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center; color: var(--ink);
  transition: background .2s, color .2s, transform .2s;
}
.wardrobe-mini-head .round-arrow:hover { background: var(--ink); color: var(--paper); transform: rotate(45deg); }
.wardrobe-mini-head .round-arrow .ic { width: 14px; height: 14px; }
.mini-ring-row { display: flex; align-items: center; gap: 18px; margin-top: 18px; }
.mini-ring {
  width: 72px; height: 72px; border-radius: 50%;
  background: conic-gradient(var(--accent) 0 21%, var(--sage) 21% 42%, var(--butter) 42% 62%, var(--lilac) 62% 78%, #c9beb0 78% 100%);
  position: relative;
  display: grid; place-items: center;
  flex: 0 0 auto;
}
.mini-ring::before { content: ""; position: absolute; inset: 13px; border-radius: 50%; background: var(--surface); }
.mini-ring span { position: relative; font-family: var(--serif); font-size: 14px; }
.mini-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 12px; font-size: 8px; color: var(--muted); }
.mini-legend i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; margin-right: 5px; }
.mini-colored-dots { display: flex; gap: 5px; margin-top: 17px; }
.mini-colored-dots i { width: 17px; height: 17px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.mini-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: 8px; color: var(--muted); }
.mini-footer b { font-weight: 600; color: var(--ink); }

.look-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.look-card {
  position: relative;
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 14px;
  min-height: 166px;
  padding: 12px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
  cursor: pointer;
}
.look-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: transparent; }
.look-thumb { position: relative; border-radius: 14px; overflow: hidden; background: var(--surface-2); min-height: 142px; }
.look-thumb .collage-svg { position: absolute; width: 180%; max-width: none; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.look-thumb .look-index {
  position: absolute; top: 8px; left: 8px;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(251,248,241,.76);
  font-size: 7px; letter-spacing: .12em; color: var(--ink);
  backdrop-filter: blur(6px);
}
.look-info { display: flex; flex-direction: column; padding: 4px 2px 2px 0; min-width: 0; }
.look-info .eyebrow { font-size: 8px; }
.look-info h3 { margin: 7px 0 5px; font-family: var(--serif); font-size: 23px; font-weight: 400; line-height: 1.05; letter-spacing: -.02em; }
.look-info p { font-size: 9px; color: var(--muted); line-height: 1.55; }
.look-info .look-tags { display: flex; gap: 4px; margin-top: 8px; flex-wrap: wrap; }
.look-info .look-bottom { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 10px; font-size: 9px; color: var(--muted); }
.look-info .look-bottom b { color: var(--ink); font-family: var(--serif); font-size: 15px; font-weight: 400; }
.look-info .look-bottom .ic { width: 13px; height: 13px; margin-left: auto; color: var(--muted); transition: transform .2s; }
.look-card:hover .look-bottom .ic { transform: translateX(3px); color: var(--accent); }
.look-card .corner-score {
  position: absolute; right: 12px; top: 12px;
  font-family: var(--serif); font-size: 11px; color: var(--muted);
}
.look-card .corner-score b { color: var(--accent); font-weight: 400; }

.home-lower { display: grid; grid-template-columns: 1.12fr .88fr; gap: 18px; margin-top: 42px; }
.wardrobe-rail {
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}
.rail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.rail-head h2 { font-family: var(--serif); font-size: 28px; font-weight: 400; line-height: 1; }
.rail-head p { margin-top: 5px; font-size: 9px; color: var(--muted); }
.rail-items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.rail-item { cursor: pointer; }
.rail-item .rail-thumb {
  aspect-ratio: 1 / 1.13;
  border-radius: 12px;
  display: grid; place-items: center;
  overflow: hidden;
  position: relative;
  transition: transform .25s var(--ease);
}
.rail-item:hover .rail-thumb { transform: translateY(-3px); }
.rail-thumb .garment-svg { width: 82%; filter: drop-shadow(0 8px 10px rgba(42,30,20,.1)); }
.rail-thumb .rail-badge { position: absolute; left: 7px; bottom: 7px; font-size: 7px; letter-spacing: .06em; color: rgba(33,30,26,.55); }
.rail-item h4 { margin-top: 7px; font-size: 9px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-item p { font-size: 8px; color: var(--muted); margin-top: 1px; }

.community-rail { min-width: 0; }
.community-rail .post-mini { display: grid; grid-template-columns: 104px 1fr; gap: 13px; padding: 11px; background: var(--surface); border: 1px solid var(--line); border-radius: 17px; margin-bottom: 9px; transition: transform .25s, box-shadow .25s; cursor: pointer; }
.community-rail .post-mini:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.post-mini-thumb { border-radius: 11px; overflow: hidden; aspect-ratio: 1 / 1.08; position: relative; }
.post-mini-thumb .collage-svg { width: 100%; height: 100%; object-fit: cover; }
.post-mini-info { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.post-mini-info .post-author { display: flex; align-items: center; gap: 6px; font-size: 9px; color: var(--muted); }
.post-mini-info .post-author i { width: 16px; height: 16px; border-radius: 50%; display: inline-block; }
.post-mini-info h4 { margin: 8px 0 6px; font-family: var(--serif); font-size: 16px; font-weight: 400; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-mini-info .meta { display: flex; align-items: center; gap: 10px; margin-top: auto; font-size: 8px; color: var(--muted); }
.post-mini-info .meta .ic { width: 11px; height: 11px; }

.fun-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-top: 38px; }
.fun-card {
  position: relative;
  min-height: 150px;
  padding: 19px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: #fff9f1;
  transition: transform .3s var(--ease), box-shadow .3s;
  cursor: pointer;
}
.fun-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.fun-card::after { content: ""; position: absolute; right: -24px; bottom: -46px; width: 150px; height: 150px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; }
.fun-card::before { content: ""; position: absolute; right: 18px; top: 18px; width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.8); }
.fun-card .fun-en { font-size: 7px; letter-spacing: .24em; opacity: .6; }
.fun-card h3 { margin-top: 16px; font-family: var(--serif); font-size: 25px; font-weight: 400; line-height: 1; }
.fun-card p { margin-top: 9px; max-width: 190px; font-size: 9px; line-height: 1.6; opacity: .75; }
.fun-card .fun-arrow { position: absolute; right: 17px; bottom: 16px; width: 28px; height: 28px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; display: grid; place-items: center; }
.fun-card .fun-arrow .ic { width: 13px; height: 13px; }
.fun-card:nth-child(1) { background: linear-gradient(135deg, #b74432, #7c2922); }
.fun-card:nth-child(2) { background: linear-gradient(135deg, #d39b3f, #a56b2d); }
.fun-card:nth-child(3) { background: linear-gradient(135deg, #7d6996, #4e3f66); }

/* ---------- wardrobe ---------- */
.wardrobe-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; margin-bottom: 22px; }
.stat-card {
  position: relative;
  min-height: 112px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
}
.stat-card .stat-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.stat-card .stat-ico { color: var(--muted-2); }
.stat-card .stat-ico .ic { width: 19px; height: 19px; }
.stat-card .stat-number { margin-top: 8px; }
.stat-card .stat-number small { font-size: 13px; color: var(--muted); margin-left: 3px; font-family: var(--sans); }
.stat-card .stat-label { margin-top: 5px; }
.stat-card .stat-trend { font-size: 8px; color: var(--sage); margin-top: 5px; }
.stat-card .stat-trend.down { color: var(--accent); }
.stat-card-accent { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.stat-card-accent .stat-label, .stat-card-accent .stat-trend { color: rgba(242,237,228,.55); }
.stat-card-accent .stat-number { color: #f7f1e7; }
.stat-card-accent .stat-ico { color: rgba(242,237,228,.45); }
.stat-card::after { content: ""; position: absolute; width: 60px; height: 60px; right: -18px; bottom: -26px; border-radius: 50%; border: 1px solid rgba(33,30,26,.12); }
.stat-card-accent::after { border-color: rgba(242,237,228,.16); }

.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 11px 12px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(251,248,241,.74);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 86px;
  z-index: 20;
}
.filter-group { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.filter-divider { width: 1px; height: 20px; background: var(--line); }
.filter-label { font-size: 8px; letter-spacing: .12em; color: var(--muted-2); margin-right: 2px; }
.filter-bar .chip { height: 30px; padding: 0 11px; font-size: 9px; }
.filter-bar .search-field {
  display: flex; align-items: center; gap: 6px;
  width: 170px; height: 30px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
}
.filter-bar .search-field .ic { width: 13px; height: 13px; color: var(--muted); }
.filter-bar .search-field input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 9px; }
.filter-bar .search-field input::placeholder { color: var(--muted-2); }
.filter-sort { margin-left: auto; display: flex; align-items: center; gap: 5px; }
.filter-sort select {
  height: 30px; padding: 0 25px 0 10px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font-size: 9px; color: var(--muted); outline: 0; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 12px) 13px, calc(100% - 8px) 13px;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
}
.wardrobe-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.garment-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--surface);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
  cursor: pointer;
  animation: cardIn .5s var(--ease) both;
}
.garment-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); border-color: transparent; }
.garment-media {
  position: relative;
  aspect-ratio: 1 / 1.08;
  display: grid;
  place-items: center;
  background: var(--tile, var(--surface-2));
  overflow: hidden;
}
.garment-media::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 35%, rgba(255,255,255,.35), transparent 60%);
}
.garment-media .garment-svg { position: relative; width: 83%; max-height: 91%; }
.garment-media .media-index { position: absolute; top: 10px; left: 11px; font-family: var(--serif); font-size: 10px; color: rgba(33,30,26,.36); }
.garment-badge {
  position: absolute; top: 9px; right: 9px; z-index: 2;
  display: inline-flex; align-items: center; gap: 3px;
  height: 21px; padding: 0 7px;
  border-radius: 999px;
  background: rgba(251,248,241,.78);
  font-size: 7px; letter-spacing: .08em; color: var(--ink);
  backdrop-filter: blur(6px);
}
.garment-badge .ic { width: 10px; height: 10px; }
.garment-fav {
  position: absolute; right: 9px; bottom: 9px; z-index: 3;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(251,248,241,.8);
  color: var(--muted);
  backdrop-filter: blur(6px);
  transition: color .2s, background .2s, transform .2s;
}
.garment-fav:hover { transform: scale(1.08); color: var(--accent); }
.garment-fav.is-fav { color: var(--accent); background: #fff8f3; }
.garment-fav.is-fav .ic { fill: currentColor; }
.garment-fav .ic { width: 14px; height: 14px; }
.garment-quick {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 3;
  display: flex; gap: 5px;
  opacity: 0; transform: translateY(6px);
  transition: opacity .25s, transform .25s;
}
.garment-card:hover .garment-quick { opacity: 1; transform: translateY(0); }
.garment-quick button {
  flex: 1; height: 28px; border-radius: 999px;
  background: rgba(33,30,26,.9); color: var(--paper);
  font-size: 8px; letter-spacing: .04em;
  backdrop-filter: blur(5px);
}
.garment-quick button:hover { background: var(--accent); }
.garment-body { padding: 12px 13px 13px; }
.garment-body h3 { font-size: 11px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.garment-sub { display: flex; align-items: center; gap: 5px; margin-top: 3px; font-size: 8px; color: var(--muted); }
.garment-sub .sep { width: 2px; height: 2px; border-radius: 50%; background: var(--muted-2); }
.garment-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.wear-count { font-size: 8px; color: var(--muted); }
.wear-count b { color: var(--ink); font-weight: 600; }
.mini-stars { display: flex; gap: 1px; color: var(--butter); }
.mini-stars .ic { width: 9px; height: 9px; fill: currentColor; stroke-width: 1; }
.wardrobe-empty { grid-column: 1 / -1; padding: 60px 20px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius-lg); color: var(--muted); }
.wardrobe-empty .ic { width: 36px; height: 36px; margin: 0 auto 12px; color: var(--muted-2); }
.wardrobe-empty h3 { font-family: var(--serif); font-size: 24px; font-weight: 400; color: var(--ink); }
.wardrobe-empty p { margin-top: 5px; font-size: 11px; }
.wardrobe-empty .btn { margin-top: 18px; }

/* ---------- stylist ---------- */
.scene-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; margin-bottom: 22px; }
.scene-card {
  position: relative;
  min-height: 116px;
  padding: 14px 13px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.scene-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.scene-card.active { border-color: var(--ink); background: var(--ink); color: var(--paper); box-shadow: 0 14px 30px rgba(33,30,26,.16); }
.scene-card .scene-ico {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--scene, var(--surface-2)); color: var(--scene-ink, var(--ink));
  margin-bottom: 15px;
}
.scene-card .scene-ico .ic { width: 15px; height: 15px; }
.scene-card strong { display: block; font-size: 11px; font-weight: 600; letter-spacing: .02em; }
.scene-card small { display: block; margin-top: 3px; font-family: var(--serif); font-size: 8px; letter-spacing: .14em; color: var(--muted-2); }
.scene-card.active small { color: rgba(242,237,228,.5); }
.scene-card.active .scene-ico { background: rgba(242,237,228,.14); color: var(--paper); }
.scene-card .scene-check { position: absolute; right: 11px; top: 11px; width: 14px; height: 14px; color: var(--paper); opacity: 0; }
.scene-card.active .scene-check { opacity: 1; }

.stylist-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 17px; align-items: start; }
.stylist-controls { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 92px; }
.control-card { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.control-card .eyebrow { margin-bottom: 12px; }
.control-weather { display: flex; align-items: center; gap: 12px; }
.control-weather .control-weather-ico { width: 42px; height: 42px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; color: var(--blue-ink); }
.control-weather .control-weather-ico .ic { width: 24px; height: 24px; }
.control-weather strong { display: block; font-family: var(--serif); font-size: 23px; font-weight: 400; line-height: 1; }
.control-weather p { margin-top: 3px; font-size: 9px; color: var(--muted); }
.control-weather .weather-tip { margin-left: auto; font-size: 8px; color: var(--sage); background: var(--sage-soft); padding: 4px 7px; border-radius: 999px; }
.control-divider { height: 1px; background: var(--line-soft); margin: 15px 0; }
.pref-lines { display: flex; flex-direction: column; gap: 7px; }
.pref-line { display: flex; align-items: center; justify-content: space-between; font-size: 9px; color: var(--muted); }
.pref-line b { font-weight: 500; color: var(--ink); }
.pref-line .tag { min-height: 20px; font-size: 8px; }
.mode-list { display: flex; flex-direction: column; gap: 5px; }
.mode-option {
  display: flex; align-items: center; gap: 9px;
  padding: 8px; border-radius: 10px; text-align: left;
  transition: background .2s;
}
.mode-option:hover { background: var(--surface-2); }
.mode-option.active { background: var(--ink); color: var(--paper); }
.mode-option .mode-dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--ink); flex: 0 0 auto; }
.mode-option.active .mode-dot { background: rgba(242,237,228,.14); color: var(--paper); }
.mode-option .mode-dot .ic { width: 12px; height: 12px; }
.mode-option span { font-size: 9px; }
.mode-option small { margin-left: auto; font-size: 7px; opacity: .55; }
.stylist-actions { display: flex; flex-direction: column; gap: 7px; }
.stylist-actions .btn { width: 100%; }
.stylist-hint { text-align: center; font-size: 8px; color: var(--muted-2); line-height: 1.5; }

.look-stage {
  position: relative;
  min-height: 640px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--stage, #dbe2d4);
  border: 1px solid rgba(60,70,56,.15);
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: 52% 48%;
}
.look-stage::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 26% 18%, rgba(255,255,255,.48), transparent 30%), linear-gradient(120deg, transparent, rgba(0,0,0,.04));
  pointer-events: none;
}
.stage-label { position: absolute; top: 22px; left: 22px; z-index: 3; display: flex; align-items: center; gap: 8px; font-size: 8px; letter-spacing: .18em; text-transform: uppercase; color: rgba(33,30,26,.62); }
.stage-label .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.stage-avatar { position: relative; display: flex; align-items: flex-end; justify-content: center; z-index: 1; }
.stage-avatar .avatar-svg { width: min(97%, 430px); margin-bottom: -20px; }
.stage-copy { position: relative; z-index: 2; padding: 70px 28px 26px 0; display: flex; flex-direction: column; }
.stage-copy .eyebrow { color: rgba(33,30,26,.46); }
.stage-copy h2 { margin: 11px 0 9px; font-family: var(--serif); font-size: clamp(32px, 3.4vw, 47px); line-height: 1.02; font-weight: 400; letter-spacing: -.035em; }
.stage-copy h2 em { font-style: italic; color: var(--accent-deep); }
.stage-copy .stage-desc { font-size: 10px; line-height: 1.75; color: rgba(33,30,26,.65); max-width: 295px; }
.stage-score-row { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.stage-score-row .score-ring { --p: 94; background: conic-gradient(var(--accent-deep) calc(var(--p) * 1%), rgba(255,255,255,.35) 0); }
.stage-score-row .score-ring::before { background: rgba(251,248,241,.82); }
.stage-score-row .score-text { font-size: 9px; line-height: 1.5; color: rgba(33,30,26,.6); }
.stage-score-row .score-text b { display: block; color: var(--ink); font-family: var(--serif); font-size: 13px; font-weight: 400; }
.stage-items { margin-top: 18px; display: flex; flex-direction: column; }
.stage-item {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 0;
  border-top: 1px solid rgba(33,30,26,.12);
  font-size: 9px; color: rgba(33,30,26,.7);
}
.stage-item:last-child { border-bottom: 1px solid rgba(33,30,26,.12); }
.stage-item .stage-item-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.stage-item b { font-family: var(--serif); font-size: 8px; font-weight: 400; color: rgba(33,30,26,.42); width: 14px; }
.stage-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stage-item .swap-btn { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: rgba(33,30,26,.52); border: 1px solid rgba(33,30,26,.14); }
.stage-item .swap-btn:hover { background: rgba(251,248,241,.5); color: var(--ink); }
.stage-item .swap-btn .ic { width: 11px; height: 11px; }
.stage-actions { display: flex; gap: 7px; margin-top: auto; padding-top: 20px; flex-wrap: wrap; }
.stage-actions .btn { min-height: 37px; padding: 0 14px; font-size: 9px; }
.stage-reasons { display: flex; flex-direction: column; gap: 5px; margin-top: 14px; }
.stage-reason { display: flex; gap: 7px; font-size: 8px; line-height: 1.5; color: rgba(33,30,26,.55); }
.stage-reason .ic { width: 11px; height: 11px; margin-top: 1px; color: var(--sage); }
.look-placeholder { grid-column: 1 / -1; min-height: 640px; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; padding: 30px; }
.look-placeholder .ph-orb { width: 86px; height: 86px; border: 1px solid rgba(33,30,26,.18); border-radius: 50%; display: grid; place-items: center; animation: breathe 3s ease-in-out infinite; }
.look-placeholder .ph-orb .ic { width: 32px; height: 32px; color: rgba(33,30,26,.5); }
.look-placeholder h3 { font-family: var(--serif); font-size: 29px; font-weight: 400; }
.look-placeholder p { font-size: 10px; color: rgba(33,30,26,.55); max-width: 300px; line-height: 1.7; }
.generating-overlay {
  position: absolute; inset: 0; z-index: 10;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(242,237,228,.72);
  backdrop-filter: blur(10px);
}
.generating-orb { width: 86px; height: 86px; border-radius: 50%; border: 1px solid rgba(33,30,26,.18); display: grid; place-items: center; position: relative; margin-bottom: 18px; }
.generating-orb::before { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--accent); border-top-color: transparent; animation: spin 1.4s linear infinite; }
.generating-orb .ic { width: 28px; height: 28px; color: var(--accent); animation: pulse 1.4s ease-in-out infinite; }
.generating-overlay h3 { font-family: var(--serif); font-size: 26px; font-weight: 400; }
.generating-overlay p { margin-top: 5px; font-size: 9px; color: var(--muted); letter-spacing: .06em; }
.gen-steps { display: flex; gap: 5px; margin-top: 17px; }
.gen-step { width: 28px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.gen-step.done { background: var(--accent); }
.gen-step.active { background: linear-gradient(90deg, var(--accent) 50%, var(--line) 50%); background-size: 200% 100%; animation: stepFill 1s linear infinite; }

.fun-lab { margin-top: 40px; }
.fun-lab-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.fun-lab-card {
  position: relative; min-height: 190px; padding: 21px;
  border-radius: var(--radius-lg); overflow: hidden; color: #fff9f1;
  cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s;
}
.fun-lab-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.fun-lab-card .fun-lab-icon { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; display: grid; place-items: center; }
.fun-lab-card .fun-lab-icon .ic { width: 17px; height: 17px; }
.fun-lab-card h3 { margin-top: 22px; font-family: var(--serif); font-size: 28px; font-weight: 400; line-height: 1; }
.fun-lab-card p { margin-top: 8px; font-size: 9px; line-height: 1.6; opacity: .75; max-width: 210px; }
.fun-lab-card .fun-lab-note { position: absolute; bottom: 18px; left: 21px; font-size: 7px; letter-spacing: .12em; opacity: .55; }
.fun-lab-card .fun-lab-arrow { position: absolute; right: 18px; bottom: 17px; width: 29px; height: 29px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; display: grid; place-items: center; }
.fun-lab-card:nth-child(1) { background: linear-gradient(135deg, #b84634, #6e2821); }
.fun-lab-card:nth-child(2) { background: linear-gradient(135deg, #d7a13e, #a06728); }
.fun-lab-card:nth-child(3) { background: linear-gradient(135deg, #7e6998, #4b3c63); }

/* ---------- modals ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(28, 24, 19, .44);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: backdropIn .25s ease both;
}
.modal {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.45);
  box-shadow: 0 30px 90px rgba(20,14,8,.28);
  animation: modalIn .38s var(--ease) both;
}
.modal-wide { width: min(940px, 100%); }
.modal-xwide { width: min(1120px, 100%); }
.modal-full { width: min(1240px, 100%); }
.modal-head {
  position: sticky; top: 0; z-index: 4;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 18px;
  padding: 22px 24px 15px;
  background: linear-gradient(var(--surface) 76%, rgba(251,248,241,0));
  border-bottom: 1px solid transparent;
}
.modal-head h2 { font-family: var(--serif); font-size: 27px; font-weight: 400; line-height: 1.1; letter-spacing: -.02em; }
.modal-head p { margin-top: 5px; font-size: 9px; color: var(--muted); }
.modal-close {
  width: 33px; height: 33px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  flex: 0 0 auto;
  transition: background .2s, color .2s, transform .2s;
}
.modal-close:hover { background: var(--ink); color: var(--paper); transform: rotate(90deg); }
.modal-close .ic { width: 14px; height: 14px; }
.modal-body { padding: 4px 24px 26px; }
.modal-section { margin-top: 20px; }
.modal-section > .eyebrow { margin-bottom: 9px; }
.modal-actions { display: flex; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.modal-actions .btn { flex: 1; min-width: 130px; }
.modal-note { margin-top: 12px; font-size: 8px; color: var(--muted-2); line-height: 1.6; }

/* item detail */
.item-detail { display: grid; grid-template-columns: 42% 58%; gap: 0; }
.item-detail-art { position: relative; min-height: 470px; display: grid; place-items: center; background: var(--tile, var(--surface-2)); border-radius: 22px; margin: 0 0 0 0; overflow: hidden; }
.item-detail-art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 34%, rgba(255,255,255,.4), transparent 60%); }
.item-detail-art .garment-svg { position: relative; z-index: 1; width: 84%; }
.item-detail-art .art-label { position: absolute; bottom: 17px; left: 18px; z-index: 2; font-size: 7px; letter-spacing: .16em; color: rgba(33,30,26,.5); }
.item-detail-art .art-fav { position: absolute; top: 15px; right: 15px; z-index: 2; }
.item-detail-info { padding: 8px 0 0 26px; display: flex; flex-direction: column; }
.item-detail-info > .eyebrow { margin-bottom: 8px; }
.item-detail-info h2 { font-family: var(--serif); font-size: 31px; font-weight: 400; line-height: 1.1; letter-spacing: -.025em; }
.item-detail-info .item-brand { margin-top: 5px; font-size: 9px; color: var(--muted); letter-spacing: .05em; }
.item-detail-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.item-detail-meta div { padding: 9px 11px; border: 1px solid var(--line-soft); border-radius: 10px; background: rgba(255,255,255,.2); }
.item-detail-meta span { display: block; font-size: 7px; letter-spacing: .08em; color: var(--muted-2); }
.item-detail-meta b { display: block; margin-top: 2px; font-size: 10px; font-weight: 500; }
.item-note { margin-top: 17px; padding: 12px 14px; border-left: 2px solid var(--accent); background: var(--surface-2); font-family: var(--serif); font-size: 14px; line-height: 1.65; color: var(--ink-soft); }
.item-palette { display: flex; gap: 7px; margin-top: 14px; }
.item-palette i { width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.item-palette span { align-self: center; font-size: 8px; color: var(--muted); margin-left: 4px; }
.item-detail-info .tag-row { margin-top: 14px; }
.item-detail-info .modal-actions { margin-top: auto; padding-top: 18px; }
.item-detail-info .modal-actions .btn { flex: 1 1 100%; }
.item-detail-info .modal-actions .btn-row { display: flex; gap: 7px; width: 100%; }
.item-detail-info .modal-actions .btn-row .btn { flex: 1; }
.shop-similar { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.shop-similar .eyebrow { margin-bottom: 8px; }
.similar-row { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.similar-mini { display: flex; align-items: center; gap: 8px; padding: 7px; border: 1px solid var(--line-soft); border-radius: 10px; background: rgba(255,255,255,.25); cursor: pointer; }
.similar-mini:hover { background: var(--surface); }
.similar-mini .sim-swatch { width: 28px; height: 28px; border-radius: 7px; flex: 0 0 auto; display: grid; place-items: center; font-family: var(--serif); font-size: 12px; }
.similar-mini div { min-width: 0; }
.similar-mini b { display: block; font-size: 8px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.similar-mini span { display: block; font-size: 7px; color: var(--muted); margin-top: 1px; }

/* scan */
.scan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.scan-drop {
  position: relative; min-height: 320px; border: 1px dashed var(--muted-2); border-radius: 18px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 11px;
  padding: 22px; text-align: center; background: var(--surface-2);
  transition: border .2s, background .2s; overflow: hidden;
}
.scan-drop:hover { border-color: var(--ink); background: var(--surface); }
.scan-drop .scan-orb { width: 62px; height: 62px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; background: var(--surface); }
.scan-drop .scan-orb .ic { width: 25px; height: 25px; color: var(--muted); }
.scan-drop h3 { font-family: var(--serif); font-size: 22px; font-weight: 400; }
.scan-drop p { max-width: 230px; font-size: 9px; line-height: 1.6; color: var(--muted); }
.scan-drop .btn { margin-top: 5px; }
.scan-drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.scan-preview { position: absolute; inset: 0; background: #1e1b18; display: none; }
.scan-preview img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.scan-preview .scan-line { position: absolute; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, #f7f1e7, transparent); top: 10%; box-shadow: 0 0 24px rgba(247,241,231,.6); animation: scanMove 2.2s ease-in-out infinite; }
.scan-preview .scan-corner { position: absolute; width: 22px; height: 22px; border: 1px solid rgba(247,241,231,.8); }
.scan-preview .scan-corner.tl { top: 18px; left: 18px; border-right: 0; border-bottom: 0; }
.scan-preview .scan-corner.tr { top: 18px; right: 18px; border-left: 0; border-bottom: 0; }
.scan-preview .scan-corner.bl { bottom: 18px; left: 18px; border-right: 0; border-top: 0; }
.scan-preview .scan-corner.br { bottom: 18px; right: 18px; border-left: 0; border-top: 0; }
.scan-drop.has-image .scan-preview { display: block; }
.scan-drop.has-image .scan-empty { display: none; }
.scan-steps { display: flex; flex-direction: column; gap: 0; }
.scan-step { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; opacity: .3; transition: opacity .3s; }
.scan-step.active { opacity: 1; }
.scan-step.done { opacity: .65; }
.scan-step .step-num { width: 22px; height: 22px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 10px; flex: 0 0 auto; }
.scan-step.done .step-num { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.scan-step.active .step-num { border-color: var(--accent); color: var(--accent); animation: pulse 1.2s infinite; }
.scan-step b { display: block; font-size: 10px; font-weight: 500; }
.scan-step small { display: block; margin-top: 2px; font-size: 8px; color: var(--muted); line-height: 1.45; }
.scan-result { display: none; }
.scan-result .scan-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 26px; text-align: center; }
.scan-result.show { display: block; animation: fadeUp .4s var(--ease); }
.scan-result .result-art { width: 100%; aspect-ratio: 1.35; border-radius: 14px; background: var(--surface-2); display: grid; place-items: center; margin-bottom: 12px; overflow: hidden; }
.scan-result .result-art .garment-svg { width: 58%; }
.field { margin-bottom: 12px; }
.field > label { display: block; margin-bottom: 5px; font-size: 8px; letter-spacing: .08em; color: var(--muted); }
.field input[type="text"], .field input[type="number"], .field select, .field textarea {
  width: 100%; min-height: 38px; padding: 8px 11px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--surface);
  outline: 0; font-size: 10px; transition: border .2s;
}
.field textarea { min-height: 76px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.swatch-row { display: flex; gap: 7px; flex-wrap: wrap; }
.swatch {
  width: 25px; height: 25px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
  position: relative;
  transition: transform .2s;
}
.swatch:hover { transform: scale(1.1); }
.swatch.active::after { content: ""; position: absolute; inset: -4px; border: 1px solid var(--ink); border-radius: 50%; }
.choice-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.choice-chip { height: 27px; padding: 0 9px; border: 1px solid var(--line); border-radius: 999px; font-size: 8px; color: var(--muted); }
.choice-chip.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* try-on */
.tryon-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr); gap: 0; min-height: 640px; }
.tryon-stage { position: relative; display: flex; align-items: center; justify-content: center; background: #dfe4d8; border-radius: 22px; overflow: hidden; padding: 14px; }
.tryon-stage::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.45), transparent 40%); }
.tryon-preview { position: relative; width: min(100%, 430px); transition: filter .4s, transform .4s, opacity .4s; }
.tryon-preview .avatar-svg { width: 100%; max-height: 72vh; }
.tryon-stage .tryon-stamp { position: absolute; left: 17px; bottom: 15px; z-index: 2; font-size: 7px; letter-spacing: .16em; color: rgba(33,30,26,.5); }
.tryon-stage .tryon-export { position: absolute; right: 14px; top: 14px; z-index: 3; }
.tryon-stage.generating .tryon-preview { filter: blur(7px); transform: scale(.985); opacity: .55; }
.tryon-stage .tryon-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.tryon-stage.generating .tryon-flash { animation: flash 1.6s ease-in-out infinite; }
.tryon-side { padding: 2px 0 0 24px; display: flex; flex-direction: column; }
.tryon-side .eyebrow { margin-bottom: 8px; }
.tryon-side h2 { font-family: var(--serif); font-size: 30px; font-weight: 400; line-height: 1.08; }
.tryon-side > p { margin-top: 6px; font-size: 9px; line-height: 1.6; color: var(--muted); }
.tryon-controls { margin-top: 15px; display: flex; flex-direction: column; gap: 13px; }
.range-row { display: flex; flex-direction: column; gap: 5px; }
.range-head { display: flex; align-items: baseline; justify-content: space-between; font-size: 8px; color: var(--muted); }
.range-head b { font-family: var(--serif); font-size: 16px; font-weight: 400; color: var(--ink); }
.range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 3px; border-radius: 99px;
  background: linear-gradient(90deg, var(--accent) var(--fill, 50%), var(--line) var(--fill, 50%));
  outline: 0;
}
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); box-shadow: 0 1px 4px rgba(0,0,0,.18); cursor: pointer; }
.range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); cursor: pointer; }
.body-shape-line { display: flex; align-items: center; justify-content: space-between; padding: 7px 9px; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--surface-2); font-size: 8px; color: var(--muted); }
.body-shape-line b { color: var(--ink); font-weight: 500; }
.face-scan { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px dashed var(--line); border-radius: 10px; background: var(--surface-2); position: relative; overflow: hidden; }
.face-scan input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.face-scan .face-thumb { width: 42px; height: 42px; border-radius: 8px; background: var(--surface-3); display: grid; place-items: center; overflow: hidden; flex: 0 0 auto; }
.face-scan .face-thumb img { width: 100%; height: 100%; object-fit: cover; }
.face-scan .face-thumb .ic { width: 18px; height: 18px; color: var(--muted-2); }
.face-scan b { display: block; font-size: 9px; font-weight: 500; }
.face-scan small { display: block; margin-top: 2px; font-size: 7px; color: var(--muted); line-height: 1.5; }
.tryon-side .modal-actions { margin-top: auto; padding-top: 15px; }
.tryon-side .modal-actions .btn { flex: 1; }
.tryon-note { margin-top: 10px; font-size: 7px; line-height: 1.55; color: var(--muted-2); }
.tryon-success { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 8px; color: var(--sage); animation: fadeUp .3s; }

/* ---------- community ---------- */
.community-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: center;
  padding: 28px 30px;
  margin-bottom: 22px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(118deg, #25221d 0%, #353129 58%, #4b4133 100%);
  color: #f7f1e7;
  box-shadow: var(--shadow-soft);
}
.community-hero::before { content: ""; position: absolute; right: 10%; top: -100px; width: 340px; height: 340px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.community-hero::after { content: ""; position: absolute; right: 22%; bottom: -170px; width: 320px; height: 320px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; }
.community-hero .eyebrow { color: rgba(247,241,231,.45); }
.community-hero h1 { margin-top: 8px; font-family: var(--serif); font-size: clamp(32px, 4vw, 50px); font-weight: 400; line-height: 1.02; letter-spacing: -.03em; }
.community-hero h1 em { font-style: italic; color: #e9a58f; }
.community-hero p { margin-top: 9px; max-width: 460px; font-size: 10px; line-height: 1.75; color: rgba(247,241,231,.58); }
.community-hero .hero-actions { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.community-hero .btn-outline { border-color: rgba(247,241,231,.3); color: #f7f1e7; }
.community-hero .btn-outline:hover { background: rgba(255,255,255,.08); border-color: rgba(247,241,231,.65); }
.challenge-card { position: relative; z-index: 1; background: rgba(247,241,231,.08); border: 1px solid rgba(247,241,231,.16); border-radius: 18px; padding: 18px; backdrop-filter: blur(8px); }
.challenge-card .challenge-label { font-size: 7px; letter-spacing: .18em; color: #e9a58f; }
.challenge-card h3 { margin-top: 8px; font-family: var(--serif); font-size: 26px; font-weight: 400; line-height: 1; }
.challenge-card p { margin-top: 6px; font-size: 9px; line-height: 1.6; color: rgba(247,241,231,.55); }
.challenge-card .challenge-meta { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 8px; color: rgba(247,241,231,.5); }
.challenge-card .challenge-meta .avatars { display: flex; }
.challenge-card .challenge-meta .avatars i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #353129; margin-left: -5px; display: inline-block; }
.challenge-card .challenge-meta .avatars i:first-child { margin-left: 0; }
.community-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.tabs { display: flex; align-items: center; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: rgba(251,248,241,.6); }
.tab { height: 30px; padding: 0 15px; border-radius: 999px; font-size: 9px; color: var(--muted); transition: all .2s; }
.tab:hover { color: var(--ink); }
.tab.active { background: var(--ink); color: var(--paper); }
.community-toolbar .filter-group { gap: 6px; }
.masonry { column-count: 3; column-gap: 15px; }
.post-card {
  break-inside: avoid;
  margin-bottom: 15px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--surface);
  overflow: hidden;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
  animation: cardIn .5s var(--ease) both;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: transparent; }
.post-visual { position: relative; overflow: hidden; background: var(--surface-2); }
.post-visual .collage-svg { width: 100%; transition: transform .55s var(--ease); }
.post-card:hover .post-visual .collage-svg { transform: scale(1.025); }
.post-visual .post-scene { position: absolute; top: 10px; left: 10px; padding: 4px 8px; border-radius: 999px; background: rgba(251,248,241,.78); font-size: 7px; letter-spacing: .08em; backdrop-filter: blur(6px); }
.post-visual .post-rate-badge { position: absolute; right: 10px; top: 10px; display: flex; align-items: center; gap: 3px; padding: 4px 7px; border-radius: 999px; background: rgba(33,30,26,.78); color: #f7f1e7; font-size: 8px; backdrop-filter: blur(6px); }
.post-visual .post-rate-badge .ic { width: 9px; height: 9px; fill: var(--butter); stroke: none; }
.post-body { padding: 12px 14px 13px; }
.post-author-row { display: flex; align-items: center; gap: 7px; }
.post-author-row .pa-avatar { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff8ef; font-family: var(--serif); font-size: 9px; flex: 0 0 auto; }
.post-author-row b { font-size: 9px; font-weight: 500; }
.post-author-row span { font-size: 8px; color: var(--muted-2); }
.post-author-row .post-time { margin-left: auto; font-size: 7px; color: var(--muted-2); }
.post-body h3 { margin: 8px 0 5px; font-family: var(--serif); font-size: 18px; font-weight: 400; line-height: 1.2; letter-spacing: -.01em; }
.post-body .post-caption { font-size: 9px; line-height: 1.6; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 9px; }
.post-tags .tag { min-height: 19px; font-size: 7px; padding: 0 7px; }
.post-stats { display: flex; align-items: center; gap: 12px; margin-top: 11px; padding-top: 9px; border-top: 1px solid var(--line-soft); }
.post-stat { display: flex; align-items: center; gap: 4px; font-size: 8px; color: var(--muted); }
.post-stat .ic { width: 13px; height: 13px; }
.post-stat.liked { color: var(--accent); }
.post-stat.liked .ic { fill: currentColor; }
.post-stat .stars-mini { display: flex; gap: 1px; color: var(--butter); }
.post-stat .stars-mini .ic { width: 8px; height: 8px; fill: currentColor; stroke: none; }
.post-stat:last-child { margin-left: auto; }
.community-empty { padding: 60px; text-align: center; border: 1px dashed var(--line); border-radius: 20px; color: var(--muted); }

.post-detail { display: grid; grid-template-columns: 46% 54%; min-height: 580px; }
.post-detail-visual { background: var(--surface-2); border-radius: 22px; overflow: hidden; position: relative; display: flex; align-items: center; }
.post-detail-visual .collage-svg { width: 100%; }
.post-detail-body { padding: 6px 0 0 26px; display: flex; flex-direction: column; min-width: 0; }
.post-detail-author { display: flex; align-items: center; gap: 9px; }
.post-detail-author .pd-avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff8ef; font-family: var(--serif); font-size: 13px; }
.post-detail-author b { display: block; font-size: 11px; font-weight: 500; }
.post-detail-author span { display: block; font-size: 8px; color: var(--muted); }
.post-detail-author .btn { margin-left: auto; }
.post-detail-body h2 { margin: 16px 0 8px; font-family: var(--serif); font-size: 26px; font-weight: 400; line-height: 1.2; }
.post-detail-body .pd-caption { font-size: 10px; line-height: 1.75; color: var(--muted); }
.pd-items { display: flex; gap: 6px; margin-top: 13px; flex-wrap: wrap; }
.pd-item { display: flex; align-items: center; gap: 5px; padding: 4px 8px 4px 4px; border: 1px solid var(--line); border-radius: 999px; font-size: 8px; color: var(--muted); }
.pd-item i { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.rating-summary { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 13px; background: var(--surface-2); border-radius: 13px; }
.rating-big { text-align: center; flex: 0 0 auto; }
.rating-big strong { display: block; font-family: var(--serif); font-size: 39px; line-height: .9; font-weight: 400; }
.rating-big .mini-stars { justify-content: center; margin-top: 5px; }
.rating-big small { display: block; margin-top: 3px; font-size: 7px; color: var(--muted); }
.rating-bars { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.rating-bar { display: flex; align-items: center; gap: 6px; font-size: 7px; color: var(--muted); }
.rating-bar .bar { flex: 1; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.rating-bar .bar span { display: block; height: 100%; background: var(--butter); border-radius: inherit; }
.rate-me { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; }
.rate-me span { font-size: 8px; color: var(--muted); }
.star-input { display: flex; gap: 2px; }
.star-input button { width: 19px; height: 19px; color: var(--line); transition: transform .15s, color .15s; }
.star-input button .ic { width: 17px; height: 17px; fill: currentColor; stroke: none; }
.star-input button.on { color: var(--butter); }
.star-input button:hover { transform: scale(1.15); }
.pd-comments { margin-top: 16px; }
.pd-comments .eyebrow { margin-bottom: 7px; }
.comment-list { display: flex; flex-direction: column; gap: 9px; max-height: 128px; overflow-y: auto; padding-right: 3px; }
.comment { display: flex; gap: 7px; }
.comment .c-avatar { width: 21px; height: 21px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; font-size: 8px; color: #fff8ef; background: var(--surface-3); }
.comment b { font-size: 8px; font-weight: 500; }
.comment p { margin-top: 1px; font-size: 8px; line-height: 1.55; color: var(--muted); }
.comment small { display: block; margin-top: 2px; font-size: 7px; color: var(--muted-2); }
.comment-form { display: flex; gap: 6px; margin-top: 9px; }
.comment-form input { flex: 1; height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); outline: 0; font-size: 9px; }
.comment-form input:focus { border-color: var(--ink); }
.comment-form button { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; }
.comment-form button .ic { width: 13px; height: 13px; }
.post-detail-body .modal-actions { margin-top: auto; padding-top: 13px; }
.post-detail-body .modal-actions .btn { flex: 1; min-height: 36px; font-size: 9px; }

/* publish */
.publish-look-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.publish-look {
  display: flex; align-items: center; gap: 9px; padding: 7px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2);
  text-align: left; transition: border .2s, background .2s;
}
.publish-look:hover { background: var(--surface); }
.publish-look.active { border-color: var(--ink); background: var(--surface); }
.publish-look .pl-art { width: 42px; height: 52px; border-radius: 7px; overflow: hidden; background: var(--surface-3); flex: 0 0 auto; display: grid; place-items: center; }
.publish-look .pl-art .garment-svg { width: 80%; }
.publish-look b { display: block; font-size: 8px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.publish-look span { display: block; font-size: 7px; color: var(--muted); margin-top: 2px; }

/* ---------- shop ---------- */
.shop-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: center;
  gap: 24px;
  min-height: 220px;
  padding: 30px;
  margin-bottom: 24px;
  border-radius: var(--radius-xl);
  background: linear-gradient(115deg, #c9553f 0%, #b84431 55%, #8e3024 100%);
  color: #fff9f0;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.shop-hero::before { content: ""; position: absolute; width: 400px; height: 400px; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; right: -120px; top: -190px; }
.shop-hero::after { content: ""; position: absolute; width: 260px; height: 260px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; right: 10%; bottom: -170px; }
.shop-hero .eyebrow { color: rgba(255,249,240,.55); }
.shop-hero h1 { margin-top: 8px; font-family: var(--serif); font-size: clamp(33px, 4vw, 50px); font-weight: 400; line-height: 1.02; letter-spacing: -.03em; }
.shop-hero h1 em { font-style: italic; color: #f3c9a9; }
.shop-hero p { margin-top: 9px; max-width: 500px; font-size: 10px; line-height: 1.75; color: rgba(255,249,240,.65); }
.shop-search { display: flex; align-items: center; gap: 8px; margin-top: 18px; max-width: 440px; height: 42px; padding: 0 5px 0 14px; border-radius: 999px; background: rgba(255,249,240,.14); border: 1px solid rgba(255,249,240,.25); }
.shop-search .ic { width: 16px; height: 16px; color: rgba(255,249,240,.65); }
.shop-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #fff9f0; font-size: 10px; }
.shop-search input::placeholder { color: rgba(255,249,240,.5); }
.shop-search button { height: 32px; padding: 0 13px; border-radius: 999px; background: #fff9f0; color: #9e3626; font-size: 9px; }
.shop-hero-side { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.shop-hero-side .hero-product-num { font-family: var(--serif); font-size: 74px; line-height: .8; font-weight: 400; color: rgba(255,249,240,.85); }
.shop-hero-side p { font-size: 8px; letter-spacing: .12em; color: rgba(255,249,240,.5); text-align: right; }
.shop-hero-side .hero-swatches { display: flex; gap: 5px; margin-top: 6px; }
.shop-hero-side .hero-swatches i { width: 13px; height: 13px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); }
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.shop-toolbar h2 { font-family: var(--serif); font-size: 29px; font-weight: 400; line-height: 1; }
.shop-toolbar p { margin-top: 5px; font-size: 9px; color: var(--muted); }
.shop-filter { display: flex; gap: 5px; flex-wrap: wrap; }
.shop-filter .chip { height: 30px; font-size: 9px; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.product-card {
  border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
  cursor: pointer;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: transparent; }
.product-media { position: relative; aspect-ratio: 1 / .92; background: var(--tile, var(--surface-2)); display: grid; place-items: center; overflow: hidden; }
.product-media .garment-svg { width: 68%; transition: transform .45s var(--ease); }
.product-card:hover .product-media .garment-svg { transform: scale(1.04) rotate(-1deg); }
.product-match { position: absolute; top: 10px; left: 10px; padding: 4px 7px; border-radius: 999px; background: rgba(251,248,241,.8); font-size: 7px; letter-spacing: .06em; backdrop-filter: blur(6px); }
.product-match b { color: var(--accent); font-family: var(--serif); font-size: 10px; font-weight: 400; }
.product-platform { position: absolute; top: 10px; right: 10px; font-size: 7px; color: var(--muted); }
.product-info { padding: 12px 13px 14px; }
.product-brand { font-size: 7px; letter-spacing: .12em; color: var(--muted-2); text-transform: uppercase; }
.product-info h3 { margin-top: 4px; font-size: 11px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-price-row { display: flex; align-items: baseline; gap: 7px; margin-top: 8px; }
.product-price { font-family: var(--serif); font-size: 19px; }
.product-price small { font-family: var(--sans); font-size: 8px; color: var(--muted); margin-left: 1px; }
.product-tag { margin-left: auto; font-size: 7px; color: var(--muted); }
.product-actions { display: flex; gap: 5px; margin-top: 10px; }
.product-actions button { flex: 1; height: 27px; border-radius: 999px; border: 1px solid var(--line); font-size: 8px; color: var(--muted); }
.product-actions button:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.shop-disclosure { display: flex; align-items: flex-start; gap: 7px; margin-top: 20px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px; font-size: 8px; line-height: 1.6; color: var(--muted-2); background: rgba(251,248,241,.45); }
.shop-disclosure .ic { width: 13px; height: 13px; margin-top: 1px; flex: 0 0 auto; }

/* ---------- profile ---------- */
.profile-hero {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 270px;
  gap: 24px;
  align-items: center;
  padding: 25px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  overflow: hidden;
  position: relative;
}
.profile-hero::before { content: ""; position: absolute; right: 23%; top: -80px; width: 260px; height: 260px; border: 1px solid var(--line-soft); border-radius: 50%; }
.profile-portrait { position: relative; height: 225px; border-radius: 18px; overflow: hidden; background: #dfe4d8; }
.profile-portrait .avatar-svg { width: 150%; max-width: none; height: auto; margin-left: -25%; margin-top: -20%; transform: none; }
.profile-portrait .portrait-tag { position: absolute; left: 10px; bottom: 9px; padding: 4px 7px; border-radius: 999px; background: rgba(251,248,241,.7); font-size: 7px; letter-spacing: .1em; backdrop-filter: blur(5px); }
.profile-main { position: relative; z-index: 1; }
.profile-main .eyebrow { margin-bottom: 7px; }
.profile-main h1 { font-family: var(--serif); font-size: clamp(34px, 4vw, 50px); font-weight: 400; line-height: 1; letter-spacing: -.03em; }
.profile-main .profile-handle { margin-top: 7px; font-size: 9px; color: var(--muted); }
.profile-main .style-tags { display: flex; gap: 5px; margin-top: 13px; flex-wrap: wrap; }
.profile-main .profile-since { margin-top: 14px; font-size: 8px; color: var(--muted-2); }
.profile-hero-side { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; }
.profile-hero-side .profile-stat-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.profile-hero-side .profile-stat { text-align: center; padding: 8px 3px; border-left: 1px solid var(--line-soft); }
.profile-hero-side .profile-stat:first-child { border-left: 0; }
.profile-hero-side .profile-stat b { display: block; font-family: var(--serif); font-size: 22px; font-weight: 400; line-height: 1; }
.profile-hero-side .profile-stat span { display: block; margin-top: 3px; font-size: 7px; color: var(--muted); }
.profile-hero-side .btn { width: 100%; }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: 17px; }
.profile-card { padding: 20px; border: 1px solid var(--line); border-radius: 19px; background: var(--surface); }
.profile-card .card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.profile-card .card-head h2 { font-family: var(--serif); font-size: 25px; font-weight: 400; line-height: 1; }
.profile-card .card-head p { margin-top: 4px; font-size: 8px; color: var(--muted); }
.profile-card .card-head .ic { width: 17px; height: 17px; color: var(--muted-2); }
.radar-wrap { max-width: 360px; margin: 0 auto; }
.body-data-list { display: flex; flex-direction: column; }
.body-data-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-top: 1px solid var(--line-soft); font-size: 9px; color: var(--muted); }
.body-data-row:first-of-type { border-top: 0; }
.body-data-row b { font-weight: 500; color: var(--ink); }
.body-data-row .body-bar { width: 110px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.body-data-row .body-bar span { display: block; height: 100%; background: var(--sage); border-radius: inherit; }
.body-silhouette { display: flex; justify-content: center; padding: 4px 0 8px; }
.body-silhouette .avatar-svg { width: 130px; }
.saved-looks { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.saved-look { position: relative; border-radius: 12px; overflow: hidden; background: var(--surface-2); aspect-ratio: .82; cursor: pointer; }
.saved-look .collage-svg { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.saved-look:hover .collage-svg { transform: scale(1.03); }
.saved-look .saved-label { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 5px 7px; border-radius: 7px; background: rgba(251,248,241,.76); backdrop-filter: blur(6px); font-size: 7px; line-height: 1.3; }
.saved-look .saved-label b { display: block; font-family: var(--serif); font-size: 10px; font-weight: 400; }
.settings { display: flex; flex-direction: column; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line-soft); font-size: 9px; }
.setting-row:first-child { border-top: 0; }
.setting-row .setting-text b { display: block; font-size: 9px; font-weight: 500; }
.setting-row .setting-text span { display: block; margin-top: 2px; font-size: 7px; color: var(--muted); }
.switch { width: 34px; height: 19px; border-radius: 999px; background: var(--line); position: relative; transition: background .2s; flex: 0 0 auto; }
.switch::after { content: ""; position: absolute; width: 13px; height: 13px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.switch.on { background: var(--sage); }
.switch.on::after { transform: translateX(15px); }
.achievement-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 13px; }
.achievement { text-align: center; padding: 10px 5px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--surface-2); }
.achievement .ach-ico { width: 27px; height: 27px; margin: 0 auto 6px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--accent); }
.achievement .ach-ico .ic { width: 13px; height: 13px; }
.achievement b { display: block; font-size: 7px; font-weight: 500; }
.achievement span { display: block; font-size: 6px; color: var(--muted-2); margin-top: 1px; }

/* ---------- search / city / notifications ---------- */
.search-modal { width: min(680px, 100%); }
.search-modal .search-input-wrap { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.search-modal .search-input-wrap .ic { width: 21px; height: 21px; color: var(--muted); }
.search-modal .search-input-wrap input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 16px; }
.search-modal .search-input-wrap input::placeholder { color: var(--muted-2); }
.search-results { padding: 10px 12px 16px; max-height: 58vh; overflow-y: auto; }
.search-result { display: flex; align-items: center; gap: 11px; padding: 9px 8px; border-radius: 10px; cursor: pointer; transition: background .18s; }
.search-result:hover { background: var(--surface-2); }
.search-result .sr-art { width: 42px; height: 48px; border-radius: 8px; overflow: hidden; background: var(--surface-3); display: grid; place-items: center; flex: 0 0 auto; }
.search-result .sr-art .garment-svg { width: 82%; }
.search-result .sr-info { min-width: 0; }
.search-result .sr-info b { display: block; font-size: 10px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-result .sr-info span { display: block; margin-top: 2px; font-size: 8px; color: var(--muted); }
.search-result .sr-kind { margin-left: auto; font-size: 7px; letter-spacing: .1em; color: var(--muted-2); }
.search-hint { padding: 5px 10px 10px; font-size: 8px; color: var(--muted-2); }
.search-empty { padding: 34px 10px; text-align: center; font-size: 10px; color: var(--muted); }
.city-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.city-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 11px; border: 1px solid var(--line); border-radius: 9px; font-size: 10px; transition: all .2s; }
.city-item:hover { border-color: var(--ink); background: var(--surface); }
.city-item.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.city-item .ic { width: 13px; height: 13px; }
.notification-list { display: flex; flex-direction: column; gap: 7px; }
.notification { display: flex; gap: 10px; padding: 10px; border-radius: 10px; background: var(--surface-2); }
.notification.unread { background: #f8efe8; }
.notification .n-ico { width: 30px; height: 30px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; flex: 0 0 auto; color: var(--accent); }
.notification .n-ico .ic { width: 14px; height: 14px; }
.notification b { display: block; font-size: 9px; font-weight: 500; }
.notification p { margin-top: 2px; font-size: 8px; line-height: 1.55; color: var(--muted); }
.notification small { display: block; margin-top: 3px; font-size: 7px; color: var(--muted-2); }

/* ---------- toast ---------- */
.toast-root { position: fixed; right: 24px; bottom: 24px; z-index: 200; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 9px;
  min-width: 220px; max-width: 340px;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  font-size: 10px;
  line-height: 1.4;
  box-shadow: 0 15px 40px rgba(20,14,8,.25);
  animation: toastIn .35s var(--ease) both;
}
.toast .ic { width: 15px; height: 15px; flex: 0 0 auto; color: var(--butter); }
.toast.out { animation: toastOut .3s ease both; }

/* ---------- motion ---------- */
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes backdropIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(6px) scale(.97); } }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: .75; } 50% { transform: scale(1.04); opacity: 1; } }
@keyframes pulse { 0%, 100% { opacity: .65; transform: scale(1); } 50% { opacity: 1; transform: scale(1.05); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes scanMove { 0%, 100% { top: 9%; opacity: .4; } 50% { top: 86%; opacity: 1; } }
@keyframes stepFill { to { background-position: -200% 0; } }
@keyframes flash { 0%, 100% { opacity: 0; } 42% { opacity: .25; } 48% { opacity: .08; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
  .sidebar { width: 220px; padding-left: 16px; padding-right: 16px; }
  .main-shell { width: calc(100% - 220px); margin-left: 220px; }
  .view { padding-left: 28px; padding-right: 28px; }
  .topbar { padding: 0 28px; }
  .site-footer { padding-left: 28px; padding-right: 28px; }
  .home-grid { grid-template-columns: minmax(0, 1.5fr) minmax(260px, .68fr); }
  .hero-copy { padding-right: 24px; }
  .hero-copy h2 { font-size: 42px; }
  .look-row { gap: 12px; }
  .look-card { grid-template-columns: 92px minmax(0, 1fr); }
  .look-thumb { min-height: 130px; }
  .wardrobe-grid { grid-template-columns: repeat(4, 1fr); }
  .scene-strip { grid-template-columns: repeat(3, 1fr); }
  .stylist-grid { grid-template-columns: 290px minmax(0, 1fr); }
  .product-grid { grid-template-columns: repeat(4, 1fr); }
  .profile-hero { grid-template-columns: 190px minmax(0, 1fr) 250px; gap: 18px; }
}

@media (max-width: 1080px) {
  .home-grid { grid-template-columns: 1fr; }
  .home-side { display: grid; grid-template-columns: 1fr 1fr; }
  .weather-card { min-height: 240px; }
  .hero-look { min-height: 480px; }
  .hero-stage { min-height: 480px; }
  .look-row { grid-template-columns: 1fr 1fr; }
  .home-lower { grid-template-columns: 1fr; }
  .community-rail { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
  .community-rail .post-mini { margin-bottom: 0; }
  .wardrobe-grid { grid-template-columns: repeat(3, 1fr); }
  .stylist-grid { grid-template-columns: 1fr; }
  .stylist-controls { position: static; display: grid; grid-template-columns: 1fr 1fr; }
  .stylist-controls .control-card:last-child { grid-column: 1 / -1; }
  .look-stage { min-height: 590px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .profile-hero { grid-template-columns: 160px minmax(0, 1fr); }
  .profile-hero-side { grid-column: 1 / -1; flex-direction: row; align-items: center; }
  .profile-hero-side .profile-stat-row { flex: 1; }
  .profile-hero-side .btn { width: auto; }
  .profile-grid { grid-template-columns: 1fr; }
  .masonry { column-count: 2; }
  .post-detail { grid-template-columns: 42% 58%; }
}

@media (max-width: 900px) {
  .sidebar { display: none; }
  .main-shell { width: 100%; margin-left: 0; }
  .mobile-menu { display: grid !important; }
  .topbar { height: 62px; padding: 0 15px; }
  .topbar-date { display: none; }
  .search-trigger { width: 36px; padding: 0; justify-content: center; border-color: transparent; background: transparent; }
  .search-trigger span, .search-trigger kbd { display: none; }
  .view { padding: 20px 16px 92px; }
  .site-footer { display: none; }
  .mobile-nav {
    display: flex;
    position: fixed;
    left: 10px; right: 10px; bottom: 10px;
    z-index: 60;
    height: 58px;
    padding: 0 6px;
    border: 1px solid rgba(222,212,197,.8);
    border-radius: 20px;
    background: rgba(251,248,241,.9);
    backdrop-filter: blur(22px);
    box-shadow: 0 12px 40px rgba(40,30,20,.16);
    align-items: center;
    justify-content: space-around;
  }
  .mobile-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 52px; font-size: 7px; color: var(--muted); padding: 4px 0; }
  .mobile-nav a.active { color: var(--ink); }
  .mobile-nav a .ic { width: 18px; height: 18px; }
  .mobile-nav .mobile-add { position: relative; }
  .mobile-nav .mobile-add-inner { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; margin-top: -23px; border: 4px solid var(--paper); box-shadow: 0 6px 16px rgba(33,30,26,.2); }
  .mobile-nav .mobile-add-inner .ic { width: 18px; height: 18px; }
  .mobile-nav .mobile-add span:last-child { margin-top: 1px; }
  .home-intro h1 { font-size: 43px; }
  .home-intro { align-items: flex-start; }
  .home-intro-side { display: none; }
  .hero-look { grid-template-columns: 47% 53%; min-height: 440px; }
  .hero-stage { min-height: 440px; }
  .hero-stage .avatar-svg { width: 100%; margin-bottom: -18px; }
  .hero-copy { padding: 56px 20px 100px 4px; }
  .hero-copy h2 { font-size: 33px; }
  .hero-copy p { font-size: 10px; }
  .hero-items { display: none; }
  .hero-bottom { left: 10px; right: 10px; bottom: 10px; padding: 8px 10px; }
  .hero-bottom .hero-bottom-text { display: none; }
  .hero-bottom .btn { margin-left: auto; }
  .home-side { grid-template-columns: 1fr; }
  .weather-card { min-height: 245px; }
  .look-row { grid-template-columns: 1fr; }
  .look-card { grid-template-columns: 100px 1fr; }
  .rail-items { grid-template-columns: repeat(4, 1fr); }
  .fun-strip { grid-template-columns: 1fr; }
  .fun-card { min-height: 125px; }
  .fun-card h3 { margin-top: 8px; }
  .fun-card p { display: none; }
  .page-head h1 { font-size: 38px; }
  .wardrobe-stats { grid-template-columns: 1fr 1fr; }
  .wardrobe-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .filter-bar { position: static; padding: 9px; gap: 8px; }
  .filter-bar .filter-group { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
  .filter-divider { display: none; }
  .filter-sort { margin-left: 0; }
  .filter-bar .search-field { width: 100%; }
  .scene-strip { grid-template-columns: repeat(3, 1fr); }
  .scene-card { min-height: 104px; padding: 11px; }
  .scene-card .scene-ico { margin-bottom: 10px; }
  .stylist-controls { grid-template-columns: 1fr; }
  .look-stage { grid-template-columns: 46% 54%; min-height: 520px; }
  .stage-copy { padding: 55px 18px 18px 0; }
  .stage-copy h2 { font-size: 31px; }
  .stage-items { display: none; }
  .stage-actions { padding-top: 13px; }
  .stage-actions .btn { min-height: 32px; padding: 0 10px; font-size: 8px; }
  .stage-reasons { display: none; }
  .stage-avatar .avatar-svg { width: 100%; }
  .fun-lab-grid { grid-template-columns: 1fr; }
  .fun-lab-card { min-height: 145px; }
  .fun-lab-card h3 { margin-top: 10px; }
  .fun-lab-card p { display: none; }
  .modal-backdrop { padding: 10px; align-items: flex-end; }
  .modal { max-height: calc(100vh - 20px); border-radius: 20px; }
  .modal-head { padding: 17px 17px 12px; }
  .modal-head h2 { font-size: 23px; }
  .modal-body { padding: 4px 17px 20px; }
  .item-detail { grid-template-columns: 1fr; }
  .item-detail-art { min-height: 260px; border-radius: 16px; }
  .item-detail-art .garment-svg { width: 54%; }
  .item-detail-info { padding: 16px 0 0; }
  .item-detail-info h2 { font-size: 26px; }
  .item-detail-meta { grid-template-columns: 1fr 1fr; }
  .item-detail-info .modal-actions { margin-top: 15px; }
  .scan-grid { grid-template-columns: 1fr; }
  .scan-drop { min-height: 230px; }
  .tryon-layout { grid-template-columns: 1fr; }
  .tryon-stage { min-height: 390px; border-radius: 16px; }
  .tryon-preview { width: min(75%, 300px); }
  .tryon-preview .avatar-svg { max-height: 55vh; }
  .tryon-side { padding: 18px 0 0; }
  .tryon-side h2 { font-size: 26px; }
  .tryon-side .modal-actions { margin-top: 10px; }
  .community-hero { grid-template-columns: 1fr; padding: 22px; }
  .challenge-card { display: none; }
  .community-hero h1 { font-size: 38px; }
  .masonry { column-count: 2; column-gap: 10px; }
  .post-card { margin-bottom: 10px; }
  .post-body h3 { font-size: 16px; }
  .post-detail { grid-template-columns: 1fr; }
  .post-detail-visual { border-radius: 16px; max-height: 300px; }
  .post-detail-visual .collage-svg { width: 68%; margin: 0 auto; }
  .post-detail-body { padding: 16px 0 0; }
  .post-detail-body h2 { font-size: 23px; }
  .post-detail-body .modal-actions { margin-top: 14px; }
  .shop-hero { grid-template-columns: 1fr; padding: 22px; }
  .shop-hero-side { display: none; }
  .shop-hero h1 { font-size: 38px; }
  .shop-search { max-width: none; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .profile-hero { grid-template-columns: 1fr; padding: 18px; }
  .profile-portrait { height: 250px; }
  .profile-portrait .avatar-svg { width: 150%; margin-left: -25%; margin-top: -18%; }
  .profile-hero-side { flex-direction: column; align-items: stretch; }
  .profile-main h1 { font-size: 39px; }
  .saved-looks { grid-template-columns: 1fr 1fr; }
  .achievement-row { grid-template-columns: 1fr 1fr; }
  .toast-root { left: 15px; right: 15px; bottom: 82px; }
  .toast { min-width: 0; max-width: none; width: 100%; }
}

@media (max-width: 520px) {
  .home-intro h1 { font-size: 38px; }
  .hero-look { grid-template-columns: 1fr; min-height: 0; }
  .hero-stage { min-height: 345px; }
  .hero-stage .avatar-svg { width: 72%; margin-bottom: -20px; }
  .hero-copy { padding: 0 20px 100px; }
  .hero-copy .eyebrow { display: none; }
  .hero-copy h2 { margin-top: 0; font-size: 31px; }
  .hero-copy p { font-size: 9px; }
  .hero-copy .btn { margin-top: 13px; }
  .hero-weather-ghost { font-size: 118px; top: 180px; left: auto; right: 14px; }
  .hero-bottom { position: absolute; }
  .hero-bottom .btn { display: none; }
  .hero-bottom .icon-btn { margin-left: auto; }
  .home-side { gap: 10px; }
  .weather-card { min-height: 228px; }
  .weather-temp strong { font-size: 56px; }
  .look-card { grid-template-columns: 84px 1fr; min-height: 140px; }
  .look-thumb { min-height: 116px; }
  .look-info h3 { font-size: 20px; }
  .rail-items { grid-template-columns: 1fr 1fr; }
  .community-rail { grid-template-columns: 1fr; }
  .page-head { margin-bottom: 18px; }
  .page-head h1 { font-size: 34px; }
  .page-head p { font-size: 10px; }
  .wardrobe-grid { grid-template-columns: 1fr 1fr; }
  .garment-body { padding: 10px; }
  .garment-body h3 { font-size: 10px; }
  .garment-quick { display: none; }
  .scene-strip { grid-template-columns: 1fr 1fr; }
  .look-stage { grid-template-columns: 1fr; min-height: 560px; }
  .stage-avatar { position: absolute; inset: 0; align-items: flex-end; }
  .stage-avatar .avatar-svg { width: 82%; margin-bottom: 105px; }
  .stage-copy { padding: 54px 20px 20px; justify-content: flex-end; pointer-events: none; }
  .stage-copy > * { pointer-events: auto; }
  .stage-copy h2 { font-size: 34px; max-width: 80%; }
  .stage-copy .stage-desc { display: none; }
  .stage-score-row { position: absolute; top: 18px; right: 18px; margin: 0; }
  .stage-score-row .score-text { display: none; }
  .stage-actions { margin-top: 0; }
  .look-placeholder { min-height: 500px; }
  .community-hero h1 { font-size: 34px; }
  .community-hero p { font-size: 9px; }
  .masonry { column-count: 1; }
  .post-card { margin-bottom: 12px; }
  .shop-hero h1 { font-size: 34px; }
  .product-info h3 { font-size: 10px; }
  .product-price { font-size: 17px; }
  .profile-portrait { height: 220px; }
  .profile-stat-row { grid-template-columns: 1fr 1fr 1fr; }
  .city-list { grid-template-columns: 1fr 1fr; }
  .item-detail-art { min-height: 220px; }
  .item-detail-art .garment-svg { width: 48%; }
  .item-detail-info h2 { font-size: 23px; }
  .similar-row { grid-template-columns: 1fr; }
  .modal-actions .btn { min-width: 0; }
  .publish-look-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .tryon-stage { min-height: 330px; }
  .tryon-preview { width: 82%; }
}

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