:root {
  --paper: #f5efe6;
  --paper-deep: #ece2d3;
  --card: rgba(255, 252, 247, .92);
  --ink: #2e2a27;
  --muted: #7f746a;
  --line: rgba(76, 61, 48, .12);
  --accent: #c96f55;
  --accent-deep: #9d4f3b;
  --sage: #829486;
  --shadow: 0 18px 60px rgba(77, 58, 42, .09);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 2%, rgba(215, 168, 141, .23), transparent 31rem),
    radial-gradient(circle at 94% 20%, rgba(146, 164, 145, .2), transparent 27rem),
    var(--paper);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.filter-definitions { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
img { max-width: 100%; }
.app-shell { min-height: 100vh; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1240px;
  margin: auto;
  padding: 12px 28px;
  background: rgba(245, 239, 230, .78);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); font-weight: 750; font-size: 21px; text-decoration: none; letter-spacing: .06em; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; color: #fffaf3; background: var(--accent); border-radius: 14px 14px 14px 4px; font-family: serif; }
.icon-button { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.5); font-size: 23px; cursor: pointer; transition: .2s ease; }
.icon-button:hover { transform: rotate(35deg); background: #fff; }

main { width: min(1184px, calc(100% - 40px)); margin: 0 auto; padding: 30px 0 120px; }
.view { display: none; animation: reveal .35s ease both; }
.view.is-active { display: block; }
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } }
.card { background: var(--card); border: 1px solid rgba(255,255,255,.75); border-radius: var(--radius); box-shadow: var(--shadow); }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(260px, .75fr); gap: 22px; }
.weather-card { min-height: 375px; padding: 33px 38px 30px; overflow: hidden; position: relative; background: linear-gradient(135deg, rgba(255,252,247,.95), rgba(238,226,210,.92)); }
.weather-card::after { content: ""; position: absolute; width: 270px; height: 270px; right: -75px; top: -100px; border: 1px solid rgba(201,111,85,.12); border-radius: 50%; box-shadow: 0 0 0 36px rgba(201,111,85,.04), 0 0 0 72px rgba(201,111,85,.025); }
.eyebrow-row { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.eyebrow { margin: 0 0 8px; font-size: 12px; color: var(--accent-deep); font-weight: 750; letter-spacing: .17em; text-transform: uppercase; }
.live-dot { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.live-dot i { width: 7px; height: 7px; border-radius: 50%; background: #73937a; box-shadow: 0 0 0 4px rgba(115,147,122,.13); }
.weather-main { display: flex; align-items: center; justify-content: space-between; min-height: 210px; position: relative; z-index: 1; }
.date-line { margin: 22px 0 0; color: var(--muted); font-size: 15px; }
.temperature { font-family: Georgia, "Times New Roman", serif; font-size: clamp(82px, 10vw, 126px); line-height: .93; letter-spacing: -.075em; }
.temperature sup { vertical-align: top; font-size: .37em; padding-left: 8px; }
.weather-desc { margin: 10px 0 0; color: var(--ink); font-size: 16px; }
.weather-symbol { display: grid; place-items: center; width: 150px; height: 150px; margin-right: 4%; color: #c48965; background: rgba(255,247,235,.72); border-radius: 50%; font-size: 72px; box-shadow: inset 0 0 0 1px rgba(201,111,85,.08); }
.weather-details { display: grid; grid-template-columns: repeat(3, 1fr); padding-top: 21px; border-top: 1px solid var(--line); position: relative; z-index: 1; }
.weather-details div { display: flex; flex-direction: column; gap: 5px; padding: 0 20px; border-right: 1px solid var(--line); }
.weather-details div:first-child { padding-left: 0; }
.weather-details div:last-child { border: 0; }
.weather-details span { color: var(--muted); font-size: 12px; }
.weather-details strong { font-size: 15px; }

.note-card { display: flex; flex-direction: column; justify-content: flex-end; padding: 32px; min-height: 375px; background: linear-gradient(160deg, #8b9d8f, #718779); color: white; }
.note-card .eyebrow { color: rgba(255,255,255,.7); }
.note-card h2 { margin: 5px 0 13px; max-width: 250px; font-family: Georgia, "Songti SC", serif; font-size: 31px; font-weight: 500; }
.note-card p:last-child { margin: 0; color: rgba(255,255,255,.76); font-size: 13px; line-height: 1.8; }
.note-icon { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 0 auto auto; color: #fff; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.22); border-radius: 50%; font-size: 28px; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 48px 2px 22px; }
.section-heading h1, .section-heading h2 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: clamp(28px, 4vw, 42px); font-weight: 500; letter-spacing: -.02em; }
.section-heading.compact { margin-top: 20px; }
.section-heading.compact h2 { font-size: 28px; }
.segmented { display: flex; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.55); border: 1px solid var(--line); }
.segmented button { min-width: 72px; padding: 9px 18px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; }
.segmented button.is-active { color: white; background: var(--ink); }

.recommendation-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.recommendation-card { min-height: 460px; overflow: hidden; background: var(--card); border: 1px solid rgba(255,255,255,.72); border-radius: 25px; box-shadow: 0 12px 45px rgba(77,58,42,.07); }
.recommendation-card.featured { transform: translateY(-7px); }
.look-images { display: grid; grid-template-columns: 1.55fr 1fr; grid-template-rows: 1fr 1fr; gap: 7px; height: 285px; padding: 7px; background: #e9dfd2; }
.look-images img { width: 100%; height: 100%; object-fit: cover; border-radius: 17px; background: #f4eee7; }
.look-images img:first-child { grid-row: 1 / 3; }
.look-copy { padding: 23px; }
.look-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.look-tag { padding: 6px 10px; color: var(--accent-deep); background: #f8e8df; border-radius: 999px; font-size: 11px; font-weight: 700; }
.look-copy h3 { margin: 0 0 9px; font-family: Georgia, "Songti SC", serif; font-size: 25px; font-weight: 500; }
.look-copy p { min-height: 42px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.look-actions { display: flex; gap: 9px; margin-top: 18px; }
.look-actions button { flex: 1; padding: 10px 12px; border-radius: 14px; cursor: pointer; }
.try-button { color: white; background: var(--ink); border: 1px solid var(--ink); }
.save-look-button { border: 1px solid var(--line); background: transparent; }
.skeleton { background: linear-gradient(100deg, #eee5d9 30%, #f7f2eb 50%, #eee5d9 70%); background-size: 300% 100%; animation: shine 1.4s infinite; }
@keyframes shine { to { background-position: -150% 0; } }

.page-intro { padding: 36px 4px 24px; }
.wardrobe-intro { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.add-item-button { width: auto; min-width: 150px; margin-bottom: 8px; }
.page-intro h1 { margin: 0 0 12px; font-family: Georgia, "Songti SC", serif; font-size: clamp(44px, 7vw, 72px); font-weight: 500; letter-spacing: -.04em; }
.page-intro > p:last-child, .styler-intro > div > p:last-child { margin: 0; color: var(--muted); }
.wardrobe-tools { position: sticky; top: 72px; z-index: 20; padding: 13px 0 18px; background: linear-gradient(var(--paper) 80%, transparent); }
.search-box { display: flex; align-items: center; gap: 12px; max-width: 520px; padding: 13px 17px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.64); }
.search-box span { font-size: 22px; color: var(--muted); }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.category-tabs { display: flex; gap: 8px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; }
.category-tabs::-webkit-scrollbar { display: none; }
.category-tabs button { white-space: nowrap; padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.4); color: var(--muted); cursor: pointer; }
.category-tabs button.is-active { background: var(--ink); color: white; border-color: var(--ink); }
.category-tabs span { opacity: .6; margin-left: 4px; font-size: 11px; }
.wardrobe-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.item-card { position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.7); border-radius: 22px; background: rgba(255,252,247,.78); box-shadow: 0 10px 30px rgba(77,58,42,.055); cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.item-card:hover { transform: translateY(-4px); box-shadow: 0 17px 38px rgba(77,58,42,.1); }
.item-card.is-selected { outline: 2px solid var(--accent); outline-offset: -2px; }
.item-card img { width: 100%; aspect-ratio: 1 / 1.05; display: block; object-fit: cover; background: #efe7dc; }
.item-card-copy { padding: 14px 15px 16px; }
.item-card-copy h3 { margin: 0 0 6px; font-size: 14px; font-weight: 700; }
.item-card-copy p { margin: 0; color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.warmth { position: absolute; top: 10px; left: 10px; padding: 5px 8px; border-radius: 999px; color: #645449; background: rgba(255,251,245,.88); backdrop-filter: blur(8px); font-size: 10px; }
.asset-status { position: absolute; right: 10px; top: 10px; padding: 5px 8px; border-radius: 999px; color: #765044; background: rgba(255,245,230,.92); font-size: 10px; }
.empty-state { padding: 80px 0; color: var(--muted); text-align: center; }

.styler-intro { display: flex; align-items: end; justify-content: space-between; }
.secondary-button, .primary-button { border-radius: 16px; padding: 12px 18px; cursor: pointer; }
.secondary-button { border: 1px solid var(--line); background: rgba(255,255,255,.55); }
.primary-button { width: 100%; border: 1px solid var(--ink); color: white; background: var(--ink); font-weight: 700; }
.generate-tryon-button { width: 100%; border-color: var(--accent); color: var(--accent-deep); font-weight: 700; }
.generate-tryon-button:disabled { cursor: wait; opacity: .62; }
.styler-layout { display: grid; grid-template-columns: minmax(350px, 1.07fr) minmax(360px, .93fr); gap: 24px; }
.doll-card { padding: 18px; }
.doll-stage { position: relative; min-height: 620px; display: grid; place-items: center; overflow: hidden; border-radius: 20px; background: linear-gradient(155deg, #f1e3d2, #e4d4c0); }
.doll-stage.has-full-render { background: #fff; }
.paper-doll { position: relative; z-index: 2; width: min(78%, 365px); height: 550px; overflow: visible; filter: drop-shadow(0 18px 18px rgba(82,62,47,.12)); transition: opacity .22s ease; }
.paper-doll.is-motion-hidden { opacity: 0; pointer-events: none; }
.paper-doll.is-always-moving { animation: doll-idle 3.2s ease-in-out infinite; transform-origin: center 88%; }
.animated-avatar { position: absolute; z-index: 3; inset: 16px 12% 20px; width: 76%; height: calc(100% - 36px); object-fit: contain; filter: drop-shadow(0 18px 18px rgba(82,62,47,.12)); }
.animated-avatar[hidden] { display: none; }
.animated-avatar.is-tryon-active { animation: doll-idle 3.2s ease-in-out infinite; transform-origin: center 88%; }
.tryon-placeholder { position: absolute; z-index: 3; display: grid; place-items: center; gap: 10px; width: min(78%, 370px); padding: 34px 26px; color: var(--muted); text-align: center; border: 1px dashed rgba(157,79,59,.42); border-radius: 24px; background: rgba(255,252,247,.82); }
.tryon-placeholder[hidden] { display: none; }
.tryon-placeholder span { color: var(--accent); font-size: 34px; }
.tryon-placeholder strong { color: var(--ink); font-size: 16px; }
.tryon-placeholder small { max-width: 250px; line-height: 1.7; }
@keyframes doll-idle { 0%,100% { transform: translateY(0) rotate(-.35deg); } 50% { transform: translateY(-5px) rotate(.35deg); } }
.doll-layer { position: absolute; display: block; pointer-events: none; transition: opacity .25s ease, transform .3s ease; }
.doll-base { inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: 1; filter: url("#cartoonAvatar"); }
.doll-bottom-layer { z-index: 2; left: 24%; top: 37%; width: 52%; height: 49%; object-fit: contain; object-position: center top; filter: url("#cartoonGarment") drop-shadow(0 5px 5px rgba(61,45,34,.14)); }
.doll-top-layer { z-index: 3; left: 22%; top: 17%; width: 56%; height: 34%; object-fit: contain; object-position: center top; filter: url("#cartoonGarment") drop-shadow(0 4px 4px rgba(61,45,34,.14)); }
.doll-shoe-layer { z-index: 4; left: 23%; top: 83%; width: 54%; height: 14%; object-fit: contain; object-position: center bottom; filter: url("#cartoonGarment") drop-shadow(0 4px 4px rgba(61,45,34,.17)); }
.doll-wearable-clip { display: none; z-index: 6; }
.paper-doll.rig-mode .doll-layer { inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; filter: none; }
.paper-doll.rig-mode .doll-base { z-index: 1; filter: saturate(.94) contrast(.98); }
.paper-doll.rig-mode .doll-shoe-layer { z-index: 5; filter: saturate(.86) contrast(.96) brightness(1.02) drop-shadow(0 3px 3px rgba(61,45,34,.14)); }
.paper-doll.rig-mode .doll-bottom-layer { z-index: 3; filter: saturate(.84) contrast(.96) brightness(1.02) drop-shadow(0 4px 4px rgba(61,45,34,.12)); }
.paper-doll.rig-mode .doll-top-layer { z-index: 4; filter: saturate(.84) contrast(.96) brightness(1.02) drop-shadow(0 4px 4px rgba(61,45,34,.12)); }
.paper-doll.rig-mode .doll-wearable-clip { z-index: 6; filter: saturate(.88) contrast(.98) drop-shadow(0 2px 2px rgba(61,45,34,.14)); }
.paper-doll.rig-mode .doll-clip-layer { display: none; }
.doll-clip-layer { position: absolute; z-index: 5; left: 27%; top: 7.5%; width: 34px; height: 22px; transform: rotate(-15deg); filter: drop-shadow(0 2px 2px rgba(61,45,34,.2)); }
.doll-clip-layer::before, .doll-clip-layer::after { content: ""; position: absolute; top: 1px; width: 19px; height: 19px; background: var(--clip-color, #9ebbd0); border: 2px solid rgba(255,255,255,.9); }
.doll-clip-layer::before { left: 0; border-radius: 70% 30% 55% 45%; transform: rotate(24deg); }
.doll-clip-layer::after { right: 0; border-radius: 30% 70% 45% 55%; transform: rotate(-24deg); }
.stage-decoration { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.55); }
.stage-decoration-one { width: 370px; height: 370px; top: -155px; right: -90px; }
.stage-decoration-two { width: 220px; height: 220px; bottom: -95px; left: -60px; }
.look-label { position: absolute; z-index: 4; right: 20px; bottom: 20px; display: flex; flex-direction: column; align-items: end; gap: 4px; padding: 11px 14px; border-radius: 14px; background: rgba(255,252,247,.8); backdrop-filter: blur(10px); }
.look-label span { color: var(--muted); font-size: 10px; }
.look-label strong { font-size: 13px; }
.selection-panel { display: flex; flex-direction: column; gap: 12px; }
.selected-row { display: grid; grid-template-columns: 34px 85px 1fr 34px; align-items: center; gap: 13px; min-height: 112px; padding: 11px; background: rgba(255,252,247,.72); border: 1px solid rgba(255,255,255,.78); border-radius: 22px; box-shadow: 0 8px 30px rgba(77,58,42,.05); }
.selected-row img { width: 85px; height: 88px; object-fit: cover; border-radius: 16px; background: #efe6da; }
.selected-row div { min-width: 0; }
.selected-row span { display: block; margin-bottom: 5px; color: var(--accent-deep); font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.selected-row strong, .selected-row small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.selected-row strong { font-size: 14px; }
.selected-row small { margin-top: 6px; color: var(--muted); font-size: 10px; }
.arrow-button { width: 34px; height: 42px; border: 0; border-radius: 12px; color: var(--muted); background: transparent; font-size: 29px; cursor: pointer; }
.arrow-button:hover { background: var(--paper-deep); color: var(--ink); }
.save-feedback { min-height: 18px; margin: -3px 0 0; color: var(--sage); font-size: 12px; text-align: center; }
.saved-section { margin-top: 45px; }
.saved-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.saved-look { padding: 8px; border: 1px solid rgba(255,255,255,.75); border-radius: 20px; background: rgba(255,252,247,.65); }
.saved-look-images { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
.saved-look img { width: 100%; aspect-ratio: .8; object-fit: cover; border-radius: 9px; }
.saved-look p { margin: 10px 6px 6px; font-size: 11px; color: var(--muted); }
.saved-empty { color: var(--muted); font-size: 13px; }

.add-dialog { width: min(620px, calc(100% - 28px)); max-height: min(860px, calc(100dvh - 30px)); padding: 0; color: var(--ink); background: #fbf7f0; border: 1px solid rgba(255,255,255,.8); border-radius: 26px; box-shadow: 0 30px 90px rgba(43,36,30,.28); overflow: auto; }
.add-dialog::backdrop { background: rgba(44,37,32,.46); backdrop-filter: blur(8px); }
.add-form { padding: 28px; }
.dialog-heading { display: flex; align-items: start; justify-content: space-between; margin-bottom: 20px; }
.dialog-heading h2 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: 31px; font-weight: 500; }
.dialog-close { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: white; font-size: 25px; cursor: pointer; }
.upload-drop { min-height: 210px; display: grid; place-items: center; overflow: hidden; border: 1.5px dashed rgba(157,79,59,.34); border-radius: 20px; background: #f4ede3; cursor: pointer; }
.upload-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-drop img { width: 100%; height: 260px; object-fit: contain; background: #eee5da; }
.upload-drop > span { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--accent-deep); }
.upload-drop b { font-size: 15px; }
.upload-drop small { color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.processing-note { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.add-form > label, .form-grid label { display: flex; flex-direction: column; gap: 7px; color: var(--muted); font-size: 12px; }
.add-form input[type="text"], .add-form input:not([type]), .add-form select, .form-grid input, .form-grid select { width: 100%; min-height: 46px; padding: 10px 13px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 13px; outline: none; }
.add-form input:focus, .add-form select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(201,111,85,.1); }
.add-form fieldset { display: flex; gap: 20px; margin: 18px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; }
.add-form legend { padding: 0 6px; color: var(--muted); font-size: 12px; }
.add-form fieldset label { display: flex; align-items: center; gap: 7px; font-size: 13px; }
.form-submit { margin-top: 22px; }
.form-status { min-height: 20px; margin: 9px 0 0; color: var(--accent-deep); font-size: 12px; text-align: center; }

.bottom-nav { position: fixed; z-index: 40; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; gap: 4px; padding: 7px; border: 1px solid rgba(255,255,255,.66); border-radius: 22px; background: rgba(43,39,36,.91); box-shadow: 0 12px 35px rgba(47,39,32,.2); backdrop-filter: blur(15px); }
.bottom-nav a { min-width: 84px; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 11px 15px; border-radius: 16px; color: rgba(255,255,255,.65); text-decoration: none; font-size: 12px; }
.bottom-nav a span { font-size: 17px; }
.bottom-nav a.is-active { color: var(--ink); background: #fff9f0; }
.toast { position: fixed; z-index: 100; left: 50%; top: 18px; transform: translate(-50%, -120px); padding: 12px 18px; border-radius: 14px; color: white; background: rgba(46,42,39,.94); box-shadow: var(--shadow); font-size: 13px; transition: transform .3s ease; }
.toast.show { transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .note-card { min-height: 230px; }
  .recommendation-grid { grid-template-columns: 1fr 1fr; }
  .recommendation-card:last-child { grid-column: 1 / -1; }
  .wardrobe-grid { grid-template-columns: repeat(3, 1fr); }
  .styler-layout { grid-template-columns: 1fr; }
  .doll-stage { min-height: 570px; }
}

@media (max-width: 620px) {
  .topbar { height: 66px; padding: 10px 18px; }
  .brand { font-size: 18px; }
  .brand-mark { width: 38px; height: 38px; }
  main { width: min(100% - 24px, 560px); padding-top: 16px; }
  .hero-grid { gap: 14px; }
  .weather-card { min-height: 340px; padding: 25px 22px 22px; }
  .weather-main { min-height: 190px; }
  .weather-symbol { width: 105px; height: 105px; margin-right: 0; font-size: 50px; }
  .temperature { font-size: 86px; }
  .weather-details div { padding: 0 10px; }
  .weather-details strong { font-size: 13px; }
  .note-card { min-height: 185px; padding: 23px; }
  .note-icon { width: 48px; height: 48px; font-size: 22px; }
  .note-card h2 { font-size: 25px; }
  .section-heading { align-items: start; flex-direction: column; margin-top: 36px; }
  .section-heading h1 { font-size: 31px; }
  .segmented { width: 100%; }
  .segmented button { flex: 1; }
  .recommendation-grid { grid-template-columns: 1fr; gap: 15px; }
  .recommendation-card:last-child { grid-column: auto; }
  .recommendation-card.featured { transform: none; }
  .look-images { height: 260px; }
  .page-intro { padding-top: 22px; }
  .wardrobe-intro { align-items: start; }
  .wardrobe-intro h1 { font-size: 43px; }
  .add-item-button { min-width: 126px; margin-top: 31px; padding-inline: 13px; }
  .page-intro h1 { font-size: 48px; }
  .wardrobe-tools { top: 62px; }
  .wardrobe-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .item-card { border-radius: 17px; }
  .item-card-copy { padding: 11px 12px 13px; }
  .styler-intro { align-items: start; gap: 20px; }
  .styler-intro .secondary-button { margin-top: 34px; white-space: nowrap; }
  .doll-card { padding: 10px; }
  .doll-stage { min-height: 510px; }
  .paper-doll { width: 84%; height: 470px; }
  .selected-row { grid-template-columns: 29px 72px 1fr 29px; min-height: 98px; gap: 9px; padding: 9px; }
  .selected-row img { width: 72px; height: 78px; }
  .arrow-button { width: 29px; }
  .saved-grid { grid-template-columns: 1fr 1fr; }
  .bottom-nav { width: calc(100% - 24px); bottom: max(10px, env(safe-area-inset-bottom)); }
  .bottom-nav a { min-width: 0; flex: 1; padding: 10px 8px; }
  .add-form { padding: 22px 17px; }
  .form-grid { grid-template-columns: 1fr; gap: 11px; }
}

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