@font-face{font-family:"Lora";src:url(/closet-remix/fonts/lora-variable.woff) format("woff");font-weight:400 700;font-display:swap}
@font-face{font-family:"Inter";src:url(/closet-remix/fonts/inter-Regular.woff) format("woff");font-weight:400;font-display:swap}
@font-face{font-family:"Inter";src:url(/closet-remix/fonts/inter-Medium.woff) format("woff");font-weight:500;font-display:swap}
@font-face{font-family:"Inter";src:url(/closet-remix/fonts/inter-SemiBold.woff) format("woff");font-weight:600;font-display:swap}

/* Closet Remix: Everyday Outfit Index design system.
   Tokens come from the brief (paper, charcoal, olive, grey-green). Clay and sage are added for status and rules.
   Fonts: Lora (display) and Inter (text), both SIL OFL, subset and served from /fonts. */

:root {
  --paper: #F7F4EE;
  --paper-2: #FBF9F5;
  --white: #FFFFFF;
  --ink: #232620;
  --olive: #44543D;
  --olive-deep: #36432F;
  --mute: #62665E;
  --sage: #E8EDDF;
  --rule: #D6CFC4;
  --rule-strong: #B9B0A2;
  --clay: #855027;
  --clay-tint: #F2E6D9;
  --error: #8A2D22;
  --error-tint: #F6E3DF;

  --serif: Lora, Charter, "Bitstream Charter", Georgia, serif;
  --sans: Inter, "Source Sans 3", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;

  --t-xs: 0.8125rem;
  --t-sm: 0.9375rem;
  --t-base: 1.0625rem;
  --t-md: 1.375rem;
  --t-lg: clamp(1.75rem, 3.2vw, 2.25rem);
  --t-xl: clamp(2.1rem, 4.6vw, 3.4rem);
  --t-hero: clamp(2.9rem, 6.4vw, 5.6rem);

  --gutter: 20px;
  --wrap: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--t-base)/1.6 var(--sans); font-feature-settings: "kern", "calt";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; box-shadow: 0 0 0 5px var(--paper); }
.offer-sec :focus-visible, .banner :focus-visible { outline-color: var(--paper); box-shadow: 0 0 0 5px var(--olive-deep); }
#main:focus, h1:focus, h2:focus, h3:focus { outline: none; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 2px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--mute); }
.small { font-size: var(--t-sm); }
.stack > * + * { margin-top: 18px; }

/* ---------- type */
h1, h2, h3, h4, .wordmark, .numeral-sm, .price-n, .cover-title, .page-title { font-family: var(--serif); font-weight: 400; letter-spacing: -0.012em; }
h1 { font-size: var(--t-hero); line-height: 1.02; letter-spacing: -0.028em; }
.h-xl { font-size: var(--t-xl); line-height: 1.04; letter-spacing: -0.022em; }
.h-lg { font-size: var(--t-lg); line-height: 1.1; }
.h-md { font-size: var(--t-md); line-height: 1.2; }
.h-sm { font-family: var(--sans); font-size: var(--t-sm); font-weight: 600; letter-spacing: 0; margin: 28px 0 8px; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; max-width: 38em; color: var(--ink); }
.lede-sm { font-size: 1.0625rem; line-height: 1.55; max-width: 38em; margin: 14px 0 6px; }
.count { color: var(--mute); font-variant-numeric: tabular-nums; font-weight: 500; }
p + p { margin-top: 12px; }

/* ---------- controls */
.btn {
  --bg: transparent; --fg: var(--ink); --bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd); border-radius: 2px;
  font-weight: 600; font-size: var(--t-sm); line-height: 1.2; text-decoration: none; text-align: center;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.btn-primary { --bg: var(--olive); --fg: #fff; --bd: var(--olive); }
.btn-primary:hover:not(:disabled) { --bg: var(--olive-deep); --bd: var(--olive-deep); }
.btn-secondary:hover:not(:disabled) { --bg: var(--ink); --fg: var(--paper); }
.btn-quiet { --bd: transparent; padding: 0 12px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; font-weight: 500; }
.btn-quiet:hover:not(:disabled) { --bg: var(--sage); }
.btn-danger { --bd: var(--error); --fg: var(--error); }
.btn-danger:hover:not(:disabled) { --bg: var(--error); --fg: #fff; }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 1rem; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: var(--t-xs); }
.btn:disabled { --bg: transparent; --fg: var(--mute); --bd: var(--rule-strong); text-decoration: none; }
.btn-primary:disabled { --bg: var(--rule); --fg: #4b4f48; --bd: var(--rule); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.linklike { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; color: var(--olive); font-weight: 600; min-height: 24px; }
.icon-btn { width: 48px; height: 48px; display: inline-grid; place-items: center; border: 1px solid var(--ink); background: transparent; border-radius: 50%; transition: background-color .18s var(--ease), color .18s var(--ease); }
.icon-btn:hover { background: var(--ink); color: var(--paper); }
.row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 22px; }
.back { margin-bottom: 14px; padding-left: 0; }

.field { display: block; font-weight: 600; font-size: var(--t-sm); }
.selected-composition { margin-bottom:24px; padding:20px; border:1px solid var(--line, #cbc7bb); background:#fffdf8; }
.selected-pieces { display:grid; grid-template-columns:repeat(auto-fit,minmax(110px,1fr)); gap:16px; padding:0; list-style:none; }
.selected-pieces li { display:flex; flex-direction:column; align-items:center; gap:6px; text-align:center; font-size:14px; overflow-wrap:anywhere; }
.selected-pieces .piece-illustration { width:100%; max-width:120px; height:110px; }
.missing-piece-mark { height:110px; display:grid; place-items:center; font-size:44px; color:#62665e; }
.field-help { display: block; margin: 6px 0 8px; font-size: 14px; line-height: 1.5; font-weight: 400; color: var(--muted, #62665e); white-space: normal; overflow-wrap: anywhere; }
.field > label, label.field { display: block; }
.field input, .field select, .field textarea, label.field input, label.field select, label.field textarea,
.piece-avail select, .role-pick select, .inline-select select {
  display: block; width: 100%; margin-top: 6px; min-height: 48px; padding: 10px 12px; background: var(--white);
  border: 1px solid var(--rule-strong); border-radius: 2px; font-weight: 400; font-size: 1rem;
}
.field textarea, label.field textarea { resize: vertical; line-height: 1.5; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23232620' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px !important; }
.devcode { font-family: var(--sans); font-variant-numeric: tabular-nums; font-weight: 600; letter-spacing: .12em; background: var(--white); padding: 2px 8px; border: 1px solid var(--rule-strong); border-radius: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: var(--t-sm); line-height: 1.45; min-height: 32px; padding: 6px 0; cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--olive); }
.checks { display: grid; gap: 2px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 600; font-size: var(--t-sm); padding: 0; margin-bottom: 10px; }
.fs + .fs { margin-top: 26px; }
.hint { font-size: var(--t-xs); color: var(--mute); margin: -4px 0 10px; line-height: 1.45; }
.inline-error { color: var(--error); font-weight: 500; font-size: var(--t-sm); margin-top: 8px; }
.ok-line { color: var(--olive); font-weight: 500; font-size: var(--t-sm); }
.callout { background: var(--sage); border-left: 3px solid var(--olive); padding: 14px 16px; font-size: var(--t-sm); line-height: 1.5; margin: 16px 0; max-width: 46em; }
.callout-error { background: var(--error-tint); border-left-color: var(--error); color: #5d1c14; }
.draft-line { font-size: var(--t-sm); color: var(--clay); font-weight: 500; border-top: 1px solid var(--clay); padding-top: 8px; margin: 14px 0; max-width: 46em; }

/* segmented, pills, tiles, swatches: native radios, visually restyled */
.seg, .pills, .tiles, .swatches, .anchors { display: flex; flex-wrap: wrap; gap: 8px; }
.seg { gap: 0; }
.seg-item, .pill, .tile, .swatch { position: relative; cursor: pointer; }
.seg-item input, .pill input, .tile input, .swatch input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg-item { flex: 1 1 0; min-height: 48px; display: grid; place-items: center; text-align: center; padding: 0 10px; border: 1px solid var(--ink); font-weight: 600; font-size: var(--t-sm); margin-left: -1px; background: transparent; transition: background-color .18s var(--ease), color .18s var(--ease); }
.seg-item:first-child { margin-left: 0; border-radius: 2px 0 0 2px; }
.seg-item:last-child { border-radius: 0 2px 2px 0; }
.seg-item.on { background: var(--ink); color: var(--paper); }
.seg-item.on .count { color: var(--rule); }
.seg-item:has(input:focus-visible), .pill:has(input:focus-visible), .tile:has(input:focus-visible), .swatch:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 5px var(--paper); z-index: 2; }
.pill { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--rule-strong); border-radius: 999px; font-size: var(--t-sm); font-weight: 500; background: var(--white); transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease); }
.pill:hover { border-color: var(--ink); }
.pill.on { background: var(--olive); border-color: var(--olive); color: #fff; }
.pill.on .count { color: #DDE5D5; }
.pill-btn { background: var(--white); color: var(--ink); }
.pill-btn.on { background: var(--olive); color: #fff; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.tile { min-height: 56px; padding: 10px 12px; display: flex; flex-direction: column; justify-content: center; border: 1px solid var(--rule-strong); border-radius: 2px; background: var(--white); font-size: var(--t-sm); font-weight: 500; line-height: 1.25; transition: border-color .18s var(--ease), background-color .18s var(--ease); }
.tile:hover { border-color: var(--ink); }
.tile.on { border-color: var(--olive); background: var(--sage); box-shadow: inset 0 0 0 1px var(--olive); }
.tile-state { font-size: var(--t-xs); color: var(--olive); font-weight: 600; margin-top: 2px; }
.tile-unsure { border-style: dashed; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 6px 8px; }
.swatch { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 4px 10px 4px 6px; border: 1px solid transparent; border-radius: 2px; font-size: var(--t-sm); }
.swatch:hover { border-color: var(--rule-strong); }
.swatch.on { border-color: var(--ink); background: var(--white); font-weight: 600; }
.chip { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(35,38,32,.35); display: grid; place-items: center; font-size: var(--t-xs); font-weight: 600; }
.chip-unsure { background: var(--paper); border-style: dashed; color: var(--mute); }
.attr { margin-top: 14px; }
.attr-q { display: block; font-size: var(--t-sm); font-weight: 500; margin-bottom: 6px; }
.implied { font-size: var(--t-sm); margin-top: 10px; }
.pform-row { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 26px; }

/* ---------- banner, masthead, footer */
.banner { background: var(--ink); color: var(--paper); font-size: var(--t-xs); line-height: 1.45; padding: 9px var(--gutter); text-align: center; }
.banner b { font-weight: 600; }
.masthead { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.masthead-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.wordmark { font-size: 1.5rem; text-decoration: none; letter-spacing: -0.02em; display: inline-flex; gap: .3em; line-height: 1; white-space: nowrap; min-height: 44px; align-items: center; }
.wm-r { color: var(--olive); }
.topnav { display: flex; align-items: center; gap: 2px; }
.topnav a { text-decoration: none; font-size: var(--t-sm); font-weight: 500; padding: 12px 10px; border-bottom: 2px solid transparent; min-height: 44px; display: inline-flex; align-items: center; }
.topnav a:hover { border-bottom-color: var(--rule-strong); }
.topnav a[aria-current="page"] { border-bottom-color: var(--ink); font-weight: 600; }
.topnav .nav-acct { margin-left: 8px; border: 1px solid var(--ink); border-radius: 2px; padding: 0 16px; }
.topnav .nav-acct:hover { background: var(--ink); color: var(--paper); }
.page-home { display: block; }
.page-wrap { padding-block: 56px 96px; }
.foot { border-top: 1px solid var(--rule); background: var(--paper-2); padding-block: 48px 56px; margin-top: 0; }
.foot-in { display: grid; gap: 28px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.foot-links a { font-size: var(--t-sm); display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0; }
.foot-note { max-width: 56em; }

/* ---------- signature: the numbered outfit plate */
.plate { position: relative; }
.plate-table { position: relative; padding: 22px; background: var(--white); border: 1px solid var(--rule); }
.plate-hero .plate-table { padding: 34px 34px 36px; }
.plate-mini .plate-table, .plate-row .plate-table { padding: 14px; }
.crop { position: absolute; width: 11px; height: 11px; border-color: var(--ink); border-style: solid; border-width: 0; pointer-events: none; opacity: .75; }
.crop-tl { left: 7px; top: 7px; border-top-width: 1px; border-left-width: 1px; }
.crop-tr { right: 7px; top: 7px; border-top-width: 1px; border-right-width: 1px; }
.crop-bl { left: 7px; bottom: 7px; border-bottom-width: 1px; border-left-width: 1px; }
.crop-br { right: 7px; bottom: 7px; border-bottom-width: 1px; border-right-width: 1px; }
.plate-mini .crop { display: none; }
.plate-tab { position: absolute; left: 22px; top: -1px; transform: translateY(-100%); display: flex; align-items: baseline; gap: 8px; background: var(--ink); color: var(--paper); padding: 6px 14px 5px; font-size: var(--t-xs); font-weight: 500; line-height: 1.2; }
.plate-tab b { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; letter-spacing: .02em; font-variant-numeric: lining-nums; }
.plate-hero .plate-tab { left: 34px; padding: 8px 18px 6px; }
.plate-hero .plate-tab b { font-size: 1.5rem; }
.plate-mini .plate-tab, .plate-row .plate-tab { left: 14px; }
.plate-art { position: relative; width: 100%; aspect-ratio: 4 / 5; }
.plate-mini .plate-art { aspect-ratio: 1 / 1.12; }
.slot { container-type: size; position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); display: flex; flex-direction: column; background: var(--paper-2); border: 1px solid var(--rule-strong); overflow: hidden; }
.slot-text { padding: 8px 10px 4px; display: flex; flex-direction: column; gap: 1px; min-height: 0; }
.slot-role { font-size: var(--t-xs); color: var(--mute); font-weight: 500; line-height: 1.25; }
.slot-name { font-weight: 500; font-size: var(--t-sm); line-height: 1.2; }
.plate-hero .slot-name { font-size: 1rem; }
@container (max-height: 150px) { .slot .slot-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .slot .slot-photo { font-size: 0; } .slot .slot-name { font-size: .8125rem; } .slot .slot-text { padding-top: 6px; } }
@container (max-width: 130px) { .slot .slot-sw span { padding: 6px; } }
.slot-photo { flex: 1; min-height: 0; overflow: hidden; display: grid; place-items: center; text-align: center; padding: 4px; font-size: var(--t-xs); color: var(--mute); background: repeating-linear-gradient(135deg, transparent 0 9px, rgba(35,38,32,.045) 9px 10px); line-height: 1.25; }
.slot-sw { display: flex; }
.slot-sw span { flex: 1; padding: 7px 8px; font-size: var(--t-xs); font-weight: 600; line-height: 1.2; border-top: 1px solid rgba(35,38,32,.18); }
.slot-sw span + span { border-left: 1px solid rgba(35,38,32,.18); }
.plate-mini .slot-text, .plate-mini .slot-photo { display: none; }
.plate-mini .slot-sw { flex: 1; }
.plate-mini .slot-sw span { font-size: 0; padding: 0; border: 0; }
.plate-row .slot-text { padding: 6px 8px 2px; }
.plate-row .slot-name { font-size: .78rem; }
.plate-row .slot-photo { font-size: 0; }
.plate-row .slot-sw span { padding: 5px 6px; }
.plate-cap { font-size: var(--t-xs); color: var(--mute); margin-top: 10px; line-height: 1.45; max-width: 46em; }

@keyframes slot-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.plate-hero .slot { animation: slot-in .6s var(--ease) both; }
.plate-hero .slot:nth-child(2) { animation-delay: .07s; }
.plate-hero .slot:nth-child(3) { animation-delay: .14s; }
.plate-hero .slot:nth-child(4) { animation-delay: .21s; }
.plate-hero .slot:nth-child(5) { animation-delay: .28s; }

/* ---------- status */
.status { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 8px; font-size: var(--t-sm); font-weight: 600; line-height: 1.3; border-radius: 2px; }
.status svg { flex: none; }
.status-READY_BY_SELECTION { background: var(--sage); color: var(--olive-deep); }
.status-CONFIRM_DETAILS { background: var(--clay-tint); color: #6a3f1d; }
.status-NEEDS_PIECE { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.status-NO_ELIGIBLE_MATCH { background: #ECE8E0; color: #4b4f48; }

/* ---------- hero */
.hero { padding-block: clamp(36px, 5vw, 72px) clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; gap: 48px; align-items: start; }
.hero-copy h1 { max-width: none; font-size: clamp(3rem, 4.4vw, 4rem); }
.hero-copy .lede { margin-top: 28px; }
.hero-actions { margin-top: 34px; }
.hero-price-lockup { display: flex; align-items: center; gap: 18px; width: fit-content; max-width: 100%; margin-top: 28px; padding: 14px 22px 14px 18px; color: var(--olive-deep); background: var(--sage); border: 1px solid var(--rule-strong); border-left: 5px solid var(--olive); }
.hero-price-lockup > strong { font-family: var(--serif); font-size: clamp(3rem, 6vw, 4.35rem); font-weight: 400; line-height: .88; letter-spacing: -.045em; font-variant-numeric: lining-nums; }
.hero-price-lockup > span { display: grid; gap: 4px; }
.hero-price-lockup b { font-size: var(--t-base); }
.hero-price-lockup small { color: var(--mute); font-size: var(--t-xs); line-height: 1.4; }
.hero-terms { margin-top: 24px; font-size: var(--t-sm); max-width: 36em; padding: 16px 18px; background: var(--sage); border-left: 4px solid var(--olive); border-radius: 2px; }
.hero-terms b { display: block; margin-bottom: 4px; color: var(--olive-deep); font-size: var(--t-base); font-weight: 700; }
.hero-promise { font-size: var(--t-sm); color: var(--mute); margin-top: 6px; }
.hero-plate { max-width: 560px; width: 100%; margin-inline: auto; padding-top: 30px; }
.hero-plate img { display: block; width: 100%; height: auto; max-height: 680px; object-fit: cover; border-radius: 3px; }
.hero-cap { display: grid; gap: 6px; margin-top: 18px; }
.hero-cap-title { font-family: var(--serif); font-size: 1.5rem; line-height: 1.15; display: block; }
.hero-cap-meta { color: var(--mute); font-size: var(--t-sm); display: block; margin-top: 2px; }
.hero-note { font-size: var(--t-sm); max-width: 38em; }
.hero-ctl { display: flex; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.hero-count { font-size: var(--t-sm); color: var(--mute); font-variant-numeric: tabular-nums; margin-inline: 4px; }
.hero-caption { font-size: var(--t-xs); color: var(--clay); font-weight: 500; margin-top: 12px; }
.overview-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 36px 0 20px; }
.overview-card { min-height: 168px; padding: 20px; background: var(--paper-2); border: 1px solid var(--rule); }
.overview-card h3 { font-family: var(--serif); font-size: 1.6rem; margin: 8px 0; }
.overview-card p:last-child { color: var(--mute); }
.lifetime-price { display: flex; align-items: baseline; gap: 12px; margin: 20px 0 4px; font-family: var(--serif); font-size: clamp(3.5rem, 8vw, 6.5rem); line-height: .95; letter-spacing: -.04em; }
.lifetime-price span { font-family: var(--sans); font-size: var(--t-md); letter-spacing: 0; }
.checkout-lifetime { font-family: var(--serif); font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1; margin: 18px 0 8px; color: var(--olive); }
.checkout-lifetime span { font-family: var(--sans); font-size: var(--t-sm); color: var(--mute); }

/* ---------- sections */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section + .section { border-top: 1px solid var(--rule); }
.demo-head, .index-head { max-width: 44em; margin-bottom: 40px; }
.demo-head .lede, .index-head .lede { margin-top: 18px; }
.anchors { margin-bottom: 28px; }
.demo { background: var(--paper-2); }

/* rows: result list without card chrome, ruled like an index */
.rows { display: flex; flex-direction: column; }
.row { display: grid; gap: 22px; padding-block: 34px; border-top: 1px solid var(--ink); }
.row:last-child { border-bottom: 1px solid var(--rule); }
.row-plate { max-width: 340px; width: 100%; padding-top: 24px; }
.row-compact .row-plate { max-width: 200px; padding-top: 20px; }
.row-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.numeral-sm { font-size: 2.4rem; line-height: .9; color: var(--olive); font-variant-numeric: lining-nums; min-width: 1.8em; letter-spacing: -.01em; }
.row-title { font-size: 1.55rem; line-height: 1.15; }
.meta { display: flex; flex-wrap: wrap; gap: 0 14px; color: var(--mute); font-size: var(--t-sm); margin-top: 4px; }
.meta span + span::before { content: ""; display: inline-block; width: 1px; height: .9em; background: var(--rule-strong); margin-right: 14px; vertical-align: -1px; }
.row-note { margin-top: 12px; max-width: 40em; }
.piecemap { margin-top: 16px; display: grid; gap: 0; max-width: 44em; border-top: 1px solid var(--rule); }
.pm { display: grid; grid-template-columns: minmax(84px, 120px) 1fr; gap: 4px 14px; padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: var(--t-sm); }
.pm dt { color: var(--mute); }
.pm dd { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; }
.pm-name { font-weight: 600; }
.pm-flag { color: #6a3f1d; font-weight: 500; }
.pm-swap { color: var(--olive); font-weight: 500; }
.pm-missing { font-weight: 600; }
.pm-need, .pm-hint { color: var(--mute); }
.demo-rows .row:first-child { border-top-color: var(--ink); }
.swap-line-inline { font-size: var(--t-sm); color: var(--mute); max-width: 34em; }

/* steps */
.steps { display: grid; gap: 0; margin-top: 40px; border-top: 1px solid var(--ink); }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding-block: 28px; border-bottom: 1px solid var(--rule); }
.step-n { font-family: var(--serif); font-size: 2.6rem; line-height: .9; color: var(--olive); }
.steps h3 { font-size: 1.6rem; line-height: 1.15; margin-bottom: 8px; }
.steps p { max-width: 40em; color: #3c403a; }

/* index */
.index-cols { display: grid; gap: 44px; margin-bottom: 28px; }
.index-g { font-size: 1.75rem; line-height: 1.1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.index-g span { font-family: var(--sans); font-size: var(--t-sm); color: var(--mute); }
.index-list li { display: flex; align-items: baseline; gap: 10px; padding-block: 10px; font-size: var(--t-sm); line-height: 1.35; }
.ix-n { font-family: var(--serif); color: var(--olive); font-size: 1.05rem; min-width: 2.4em; flex: none; font-variant-numeric: lining-nums; }
.ix-t { flex: 0 1 auto; min-width: 0; font-weight: 500; }
.ix-lead { flex: 1 1 12px; min-width: 12px; border-bottom: 1px dotted var(--rule-strong); transform: translateY(-4px); }
.ix-o { flex: none; color: var(--mute); font-size: var(--t-xs); max-width: 40%; text-align: right; }
.ix-free { color: var(--olive); font-weight: 600; }

/* included */
.inc-grid { display: grid; gap: 48px; margin-top: 40px; }
.deflist > div { padding-block: 22px; border-top: 1px solid var(--rule); }
.deflist > div:first-child { border-top-color: var(--ink); }
.deflist dt { font-family: var(--serif); font-size: 1.45rem; line-height: 1.2; margin-bottom: 6px; }
.deflist dd { max-width: 36em; color: #3c403a; }
.inc-list > .muted { margin-top: 22px; }
.included-gate-note { max-width: 54em; margin-top: 22px; padding: 18px 20px; border-left: 4px solid var(--olive); background: var(--sage); color: var(--ink); }

/* offer: the single saturated moment */
.offer-sec { background: var(--olive); color: var(--paper); border-top: 0 !important; }
.offer { display: grid; gap: 48px; }
.offer .lede { color: #EEF1E8; margin-top: 12px; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-top: 22px; }
.price-n { font-size: clamp(4.5rem, 12vw, 8rem); line-height: .85; letter-spacing: -.04em; font-variant-numeric: lining-nums; }
.price-t { font-size: var(--t-sm); max-width: 20em; }
.offer .btn-primary { --bg: var(--paper); --fg: var(--olive-deep); --bd: var(--paper); }
.offer .btn-primary:hover:not(:disabled) { --bg: #fff; --bd: #fff; }
.offer .btn-secondary { --fg: var(--paper); --bd: var(--paper); }
.offer .btn-secondary:hover:not(:disabled) { --bg: var(--paper); --fg: var(--olive-deep); }
.offer .btn:disabled { --bg: transparent; --fg: #C9D3C0; --bd: #8A9A82; }
.terms th, .terms td { text-align: left; vertical-align: top; padding: 14px 0; border-top: 1px solid var(--rule); font-size: var(--t-sm); line-height: 1.5; }
.terms th { font-weight: 600; width: 9em; padding-right: 16px; }
.offer .terms th, .offer .terms td { border-top-color: rgba(247,244,238,.35); }
.terms tr:last-child th, .terms tr:last-child td { border-bottom: 1px solid var(--rule); }
.offer .terms tr:last-child th, .offer .terms tr:last-child td { border-bottom-color: rgba(247,244,238,.35); }
.why { margin-top: 24px; font-size: var(--t-sm); max-width: 44em; }
.why summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; padding: 4px 0; }
.why ul { list-style: disc; padding-left: 22px; margin-top: 8px; }
.why li { margin-top: 5px; }
.offer .why { border-top: 1px solid rgba(247,244,238,.35); padding-top: 12px; }
.offer .muted { color: #D5DDCB; }

/* faq */
.faq { display: grid; gap: 28px; }
.faq-list details { border-top: 1px solid var(--rule); }
.faq-list details:first-child { border-top-color: var(--ink); }
.faq-list details:last-child { border-bottom: 1px solid var(--rule); }
.faq-list summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-family: var(--serif); font-size: 1.3rem; line-height: 1.25; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform .2s var(--ease); }
.faq-list details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-list details p { padding: 0 0 24px; max-width: 40em; color: #3c403a; }

/* ---------- workspace */
.workspace { display: block; }
.wtabs { position: sticky; top: 64px; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--ink); }
.wtabs-in { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wtab { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 52px; padding: 4px 4px; font-weight: 600; font-size: var(--t-sm); line-height: 1.1; text-decoration: none; text-align: center; border-bottom: 3px solid transparent; }
.wtab:hover { background: var(--sage); }
.wtab.on { border-bottom-color: var(--ink); background: var(--white); }
.wtab .count { font-size: var(--t-xs); }
.wmain { max-width: var(--wrap); margin-inline: auto; padding: 24px var(--gutter) 72px; min-width: 0; }
.has-cta .wmain { padding-bottom: 128px; }
.discover, .pieces-tab, .saved, .guide, .detail { max-width: 1040px; margin-inline: auto; }
.workspace .sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--ink); }
.sticky-cta .btn { width: 100%; }
.live { margin: 0; min-height: 0; font-size: var(--t-sm); }
.live:not(:empty) { margin-top: 8px; }
.save-status:not(:empty) { font-size: var(--t-sm); }

/* discover */
.condbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 10px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); margin: 18px 0 8px; }
.cond-line { margin: 0; font-size: var(--t-sm); max-width: 38em; }
.anchor-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; background: var(--sage); border-left: 3px solid var(--olive); padding: 12px 14px; margin: 14px 0; font-size: var(--t-sm); }
.anchor-banner p { margin: 0; max-width: 38em; }
.first-use { margin: 18px 0 8px; max-width: 42em; padding-top: 18px; border-top: 1px solid var(--ink); }
.count-line { margin: 16px 0 4px; font-size: var(--t-base); max-width: 44em; }
.count-line b { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; color: var(--olive); font-variant-numeric: lining-nums; }
.group-h { font-size: 1.6rem; line-height: 1.15; margin: 36px 0 4px; display: flex; gap: 10px; align-items: baseline; }
.coverage { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); column-gap: 24px; border-top: 1px solid var(--ink); margin: 16px 0 4px; max-width: 40em; }
.coverage li { padding: 10px 0; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 8px; font-size: var(--t-sm); }
.coverage .none span { color: var(--clay); font-weight: 500; }
.coverage .has span { color: var(--olive); font-weight: 600; }
.stale { opacity: .55; transition: opacity .2s; }
.empty { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); padding-block: 32px; max-width: 46em; margin-top: 18px; }
.empty h3 { font-size: 1.6rem; line-height: 1.15; margin-bottom: 8px; }
.empty .row-actions { margin-top: 18px; }
.empty-sm { padding-block: 18px; }
.nearby { margin-top: 20px; }
.almost-list { display: grid; gap: 0; max-width: 46em; }
.almost-list li { padding: 12px 0; border-top: 1px solid var(--rule); font-size: var(--t-sm); display: grid; grid-template-columns: 2.6em 1fr auto; gap: 4px 12px; align-items: baseline; }
.almost-list .numeral-sm { font-size: 1.4rem; min-width: 0; }
.row-body { display: grid; align-content: start; }
.row-body > .status { justify-self: start; margin-bottom: 12px; }
.row-actions .savewrap { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 12px; }

/* pieces */
.pieces { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.piece { display: grid; grid-template-columns: 22px 1fr; gap: 8px 12px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.piece-chip { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(35,38,32,.35); margin-top: 3px; }
.piece-main { display: grid; gap: 1px; min-width: 0; }
.piece-name { font-weight: 600; font-size: var(--t-sm); overflow-wrap: anywhere; }
.piece-detail { color: var(--mute); font-size: var(--t-sm); }
.piece-unk { color: #6a3f1d; font-size: var(--t-sm); font-weight: 500; }
.piece-off .piece-name { color: var(--mute); text-decoration: line-through; text-decoration-thickness: 1px; }
.piece-anchor { background: var(--sage); box-shadow: -10px 0 0 var(--sage), 10px 0 0 var(--sage); }
.piece-actions { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.piece-avail select { width: auto; min-width: 150px; margin-top: 0; min-height: 44px; }
.piece-edit { display: block; padding: 18px 0; }
.menu summary { list-style: none; min-height: 44px; padding: 0 12px; display: inline-flex; align-items: center; cursor: pointer; font-weight: 500; font-size: var(--t-sm); text-decoration: underline; text-underline-offset: 4px; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--sage); }
.menu-items { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 6px 0 2px; }
.confirm-remove { grid-column: 1 / -1; background: var(--clay-tint); border-left: 3px solid var(--clay); padding: 12px 14px; font-size: var(--t-sm); }
.confirm-remove .row-actions { margin-top: 10px; }
.pieces-grid { display: grid; gap: 44px; margin-top: 8px; }
.pieces-grid .h-md { margin-bottom: 14px; }
.desk-only { display: none; }
.stepn { display: inline-grid; place-items: center; width: 1.75em; height: 1.75em; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: var(--t-xs); font-weight: 600; margin-right: 8px; }
.typesearch { max-width: 24em; margin-bottom: 14px; }
.tile-cat { font-size: var(--t-xs); color: var(--mute); }
.optional { margin-top: 22px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.optional summary { cursor: pointer; font-weight: 600; font-size: var(--t-sm); min-height: 48px; display: flex; align-items: center; }
.optional[open] summary { margin-bottom: 6px; }
.optional .pform-row { margin-top: 6px; padding-bottom: 18px; }
.conditions .fs + .fs { margin-top: 22px; }
.sheet-body { padding-bottom: 8px; }

/* look detail */
.detail-head { max-width: 46em; }
.detail-title { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; display: flex; gap: 16px; align-items: baseline; margin-bottom: 8px; }
.detail-title .numeral-sm { font-size: inherit; min-width: 0; }
.detail-status { margin-block: 14px 4px; }
.status-meaning { font-size: var(--t-sm); color: var(--mute); margin-top: 8px; max-width: 40em; }
.status-updating { background: #ECE8E0; color: #4b4f48; }
.detail-actions { margin-top: 16px; }
.detail-grid { display: grid; gap: 28px; margin-top: 18px; }
.detail-plate { max-width: 560px; padding-top: 30px; order: 2; }
.detail-main { order: 1; min-width: 0; }
.roles { display: grid; border-top: 1px solid var(--ink); max-width: 44em; }
.role { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.role-label { font-family: var(--serif); font-size: 1.2rem; line-height: 1.2; }
.role-cmp { display: grid; gap: 4px; margin: 8px 0 2px; }
.role-cmp > div { display: grid; grid-template-columns: minmax(104px, 150px) 1fr; gap: 4px 12px; font-size: var(--t-sm); }
.role-cmp dt { color: var(--mute); }
.role-missing { font-weight: 600; }
.role-actions { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: end; margin-top: 10px; }
.role-pick { display: block; font-size: var(--t-xs); color: var(--mute); }
.role-pick select { max-width: 340px; font-size: var(--t-sm); color: var(--ink); min-height: 44px; }
.flag-line { color: #6a3f1d; font-size: var(--t-sm); margin-top: 6px; }
.need-line { color: var(--mute); font-size: var(--t-sm); margin-top: 6px; }
.swap-line { color: var(--olive); font-size: var(--t-sm); font-weight: 500; margin-top: 6px; }
.why-open { border-bottom: 1px solid var(--rule); max-width: 44em; }
.why-open summary, .note-opt summary { cursor: pointer; font-weight: 600; font-size: var(--t-sm); min-height: 48px; display: flex; align-items: center; }
.why-open[open] { padding-bottom: 14px; }
.why-open p { margin-top: 8px; font-size: var(--t-sm); }
.why { list-style: disc; font-size: var(--t-sm); padding-left: 20px; }
.why li { margin-top: 6px; }
.note-opt { margin-top: 18px; max-width: 44em; }
.notefield { display: block; margin-top: 6px; max-width: 34em; }
.savewrap { display: inline-flex; flex-direction: column; gap: 4px; }

/* drawer and sheets */
.drawer { border: 0; padding: 0; margin: 0; max-width: none; max-height: none; background: var(--paper); color: var(--ink); width: 100%; height: auto; position: fixed; inset: auto 0 0 0; max-height: 90dvh; overflow: auto; box-shadow: 0 -1px 0 var(--ink); }
.drawer::backdrop { background: rgba(35,38,32,.5); }
.drawer-inner { padding: 22px var(--gutter) calc(28px + env(safe-area-inset-bottom)); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--ink); margin-bottom: 18px; }
.drawer-head h2 { font-size: 1.6rem; }
.swap-now { display: grid; gap: 4px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); margin-bottom: 12px; }
.swap-now > div { display: grid; grid-template-columns: 7.5em 1fr; gap: 4px 12px; font-size: var(--t-sm); }
.swap-now dt { color: var(--mute); }
.swap-list { display: grid; gap: 0; }
.swap { padding: 20px 0; border-top: 1px solid var(--rule); }
.swap h3 { font-size: 1.3rem; line-height: 1.2; margin-bottom: 6px; }
.swap p { font-size: var(--t-sm); margin-top: 6px; }
.swap .field, .swap .row-actions { margin-top: 14px; }
.swap-for { color: var(--clay); font-weight: 500; }
.swap-after b { font-weight: 600; }
.swap-off { opacity: .85; }
.swap-none { color: var(--mute); }
dialog.drawer[open] { animation: sheet-up .28s var(--ease); }
@keyframes sheet-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.export-list { border-top: 1px solid var(--ink); margin: 8px 0 14px; counter-reset: pg 2; }
.export-list li { padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: var(--t-sm); display: flex; gap: 12px; align-items: baseline; }
.export-list .numeral-sm { font-size: 1.3rem; min-width: 2.4em; }
.progress { font-size: var(--t-sm); margin-top: 8px; }

/* saved looks */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 14px; }
.filter { min-height: 44px; padding: 0 16px; border: 1px solid var(--rule-strong); border-radius: 999px; background: var(--white); font-weight: 500; font-size: var(--t-sm); }
.filter:hover { border-color: var(--ink); }
.filter.on { background: var(--olive); border-color: var(--olive); color: #fff; }
.filter.on .count { color: #DDE5D5; }
.seltool { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; padding: 8px 0 10px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); background: var(--paper); }
.seltool .check { padding: 0; }
.seltool-n { font-size: var(--t-sm); font-weight: 600; font-variant-numeric: tabular-nums; }
.seltool .hint { flex-basis: 100%; margin: 0; }
.saved-list { display: grid; }
.saved-item { display: grid; gap: 12px; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.saved-head { display: grid; grid-template-columns: 44px 88px minmax(0, 1fr); gap: 4px 12px; align-items: start; }
.saved-pick { display: grid; place-items: center; min-width: 44px; min-height: 44px; cursor: pointer; }
.saved-pick input { width: 24px; height: 24px; accent-color: var(--olive); margin: 0; }
.saved-plate { width: 88px; padding-top: 4px; }
.saved-titleblock .row-title { font-size: 1.35rem; line-height: 1.15; display: flex; gap: 14px; align-items: baseline; }
.saved-titleblock .numeral-sm { font-size: 1.6rem; min-width: 0; flex: none; }
.saved-pieces { display: grid; gap: 2px; font-size: var(--t-sm); margin: 10px 0; }
.flags { list-style: disc; padding-left: 20px; color: #6a3f1d; font-size: var(--t-sm); margin: 8px 0; }
.saved-actions { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: flex-start; padding-left: 0; }
.btn[aria-pressed="true"].btn-secondary { --bg: var(--olive); --fg: #fff; --bd: var(--olive); }
.btn[aria-pressed="true"]::before { content: "\2713"; font-weight: 700; }
.notes summary { list-style: none; min-height: 44px; padding: 0 12px; display: inline-flex; align-items: center; cursor: pointer; font-weight: 500; font-size: var(--t-sm); text-decoration: underline; text-underline-offset: 4px; }
.notes summary::-webkit-details-marker { display: none; }
.note-flag { color: var(--clay); font-weight: 600; text-decoration: none; margin-left: 6px; }
.notes[open], .menu[open] { flex-basis: 100%; }
.note-body { max-width: 40em; padding-bottom: 8px; }
.note-body textarea { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; background: var(--white); border: 1px solid var(--rule-strong); border-radius: 2px; font-size: 1rem; line-height: 1.5; }
.note-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 8px; }
.note-status { font-size: var(--t-sm); color: var(--mute); }
.inline-select { display: inline-block; min-width: 170px; font-size: var(--t-xs); }
.btn-del { color: var(--error); }

/* guide */
.dl-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: var(--t-sm); }
.dl-list { border-top: 1px solid var(--ink); margin-top: 14px; }
.downloads { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--ink); }
.reader { margin-top: 18px; }
.reader-grid { display: grid; gap: 24px; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 8px 12px; flex-wrap: wrap; margin-bottom: 14px; }
.pager-end { margin-top: 28px; margin-bottom: 0; padding-top: 14px; border-top: 1px solid var(--rule); }
.pager-n { font-size: var(--t-sm); color: var(--mute); font-variant-numeric: tabular-nums; margin: 0; }
.pager-btns { display: flex; gap: 8px; }
.toc-details { border-top: 1px solid var(--ink); }
.toc-details > summary { cursor: pointer; font-weight: 600; font-size: var(--t-sm); min-height: 52px; display: flex; align-items: center; gap: 8px; }
.toc { border-top: 1px solid var(--rule); max-height: 420px; overflow: auto; }
.toc-item { display: grid; grid-template-columns: 2.2em 1fr auto; gap: 6px; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--rule); padding: 9px 4px; min-height: 44px; align-items: center; font-size: var(--t-sm); }
.toc-item:hover { background: var(--sage); }
.toc-item.on { background: var(--ink); color: var(--paper); }
.toc-n { font-family: var(--serif); color: var(--olive); }
.toc-item.on .toc-n { color: var(--rule); }
.toc-lock { font-size: var(--t-xs); color: var(--mute); }
.reader .page-body { max-width: 40em; font-size: 1.0625rem; line-height: 1.7; }
.page-title { font-size: 2rem; line-height: 1.1; margin-bottom: 16px; }
.reader .page-body p { margin-top: 12px; }
.reader .page-body ul, .reader .page-body ol { list-style: disc; padding-left: 22px; margin-top: 10px; }
.reader .page-body li { margin-top: 5px; }
.reader .page-body h4 { font-family: var(--sans); font-weight: 600; font-size: 1.0625rem; margin-top: 22px; }
.tablewrap { overflow-x: auto; margin-top: 16px; -webkit-overflow-scrolling: touch; }
.plain th, .plain td, .studio-table th, .studio-table td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); font-size: var(--t-sm); }
.plain thead th, .studio-table thead th { border-bottom: 1px solid var(--ink); font-weight: 600; }
.locked { border: 1px dashed var(--rule-strong); padding: 24px; }

/* approved garment photographs inside plate slots */
.slot-photo-img { position: relative; padding: 0; background: var(--paper-2); }
.slot-photo-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.test-asset { position: absolute; right: 4px; top: 4px; font-size: .6875rem; font-weight: 600; background: var(--ink); color: var(--paper); padding: 1px 6px; border-radius: 2px; }
.plate-mini .slot-photo-img, .plate-row .slot-photo-img { display: block; font-size: var(--t-xs); }

/* account, studio */
.auth { max-width: 560px; }
.auth h1, .acct h1, .studio h1 { font-size: var(--t-xl); line-height: 1.05; letter-spacing: -.022em; }
.auth .lede { margin: 16px 0 28px; }
.acct { max-width: 780px; }
.acct-head { margin-bottom: 24px; }
.acct-sec { padding-block: 32px; border-top: 1px solid var(--ink); }
.acct-sec .price { margin-top: 16px; }
.acct-sec .price-n { font-size: 4.5rem; color: var(--olive); }
.acct-sec .terms { margin-top: 20px; }
.studio { max-width: 1040px; }
.studio .lede { margin: 16px 0 28px; }
.blockers { list-style: disc; padding-left: 22px; display: grid; gap: 4px; font-size: var(--t-sm); }

/* ---------- loading */
.skeletons { display: grid; gap: 14px; }
.skeleton { height: 150px; background: linear-gradient(90deg, #EFEBE3 0%, #F8F6F1 50%, #EFEBE3 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: 2px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- breakpoints */
@media (min-width: 600px) {
  :root { --gutter: 28px; }
  .pform-row { grid-template-columns: 1fr 1fr; }
  .foot-in { grid-template-columns: 1.2fr 1fr; }
  .foot-note { grid-column: 1 / -1; }
  .row { grid-template-columns: minmax(160px, 260px) 1fr; gap: 32px; }
  .row.row-compact { grid-template-columns: 180px 1fr; }
}
@media (min-width: 900px) {
  :root { --gutter: 40px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 72px; }
  .inc-grid { grid-template-columns: 1fr; gap: 48px; }
  .offer { grid-template-columns: 1.1fr .9fr; gap: 80px; }
  .faq { grid-template-columns: 1fr 1.5fr; gap: 72px; }
  .wtabs-in { display: flex; }
  .wtab { padding-inline: 24px; }
  .seltool { position: sticky; top: 116px; z-index: 10; }
  .workspace .sticky-cta { display: none; }
  .desk-only { display: inline-flex; margin-top: 24px; }
  .detail-grid { grid-template-columns: minmax(0, 1fr) minmax(280px, 440px); gap: 64px; align-items: start; }
  .detail-plate { position: sticky; top: 140px; order: 0; }
  .detail-main { order: 0; }
  .saved-head { grid-template-columns: 44px 112px minmax(0, 1fr); }
  .saved-plate { width: 112px; }
  .pieces-grid { grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: start; }
  .reader-grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; align-items: start; }
  .toc-details { position: sticky; top: 130px; order: 2; }
  .toc { max-height: 480px; }
  .row { grid-template-columns: 300px 1fr; gap: 40px; }
  .row.row-compact { grid-template-columns: 200px 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 0 48px; border-top: 0; }
  .steps li { grid-template-columns: 1fr; gap: 14px; padding: 22px 0 0; border-bottom: 0; border-top: 1px solid var(--ink); align-content: start; }
  .step-n { font-size: 3.4rem; }
  .drawer { inset: 0 0 0 auto; width: min(480px, 100vw); max-height: none; height: 100dvh; box-shadow: -1px 0 0 var(--ink); }
  dialog.drawer[open] { animation: sheet-in .28s var(--ease); }
  .foot-in { grid-template-columns: 1.4fr 1fr; }
}
@keyframes sheet-in { from { transform: translateX(28px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 1000px) {
  .index-cols { grid-template-columns: repeat(3, 1fr); gap: 36px; }
}
@media (max-width: 899px) {
  .topnav a:not(.nav-acct) { padding-inline: 8px; }
  .masthead-in { min-height: 60px; }
  .wtabs { top: 60px; }
  .hero-plate { padding-top: 28px; }
  .plate-hero .plate-table { padding: 26px 22px 24px; }
  .plate-hero .plate-tab { left: 22px; }
}
@media (max-width: 480px) {
  .hero-copy h1 { font-size: clamp(2.25rem, 9.4vw, 2.8rem); }
  .topnav a[href="#/"], .topnav a[href="#/studio"] { display: none; }
  .wtab { flex-direction: column; gap: 0; font-size: .875rem; }
  .wtab .count { line-height: 1; }
  .wordmark { font-size: 1.3rem; }
  .topnav a { padding-inline: 6px; font-size: .875rem; }
  .topnav .nav-acct { padding-inline: 10px; margin-left: 2px; }
  .masthead-in { gap: 8px; }
  .btn-lg { width: 100%; }
  .hero-actions .btn { flex: 1 1 100%; }
  .price-t { max-width: 100%; }
  .ix-o { display: none; }
  .terms th { width: 6.5em; }
}
@media (max-width: 380px) {
  :root { --gutter: 16px; }
  .hero-copy h1 { font-size: 2rem; }
}

/* Keep the public header and its lead illustration inside narrow viewports. */
@media (max-width: 720px) {
  .masthead-in { gap: 8px; min-width: 0; }
  .topnav { flex: 0 1 auto; min-width: 0; flex-wrap: nowrap; gap: 0; }
  .topnav a { padding-inline: 6px; white-space: nowrap; }
  .topnav a[href="#/install"] { display: none; }
}
@media (max-width: 760px) {
  .overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topnav a[href="#/closet"] { display: none; }
}
@media (max-width: 420px) {
  .overview-grid { grid-template-columns: 1fr; }
  .overview-card { min-height: 0; }
}
@media (max-width: 350px) {
  .topnav .nav-acct { margin-left: 0; padding-inline: 8px; }
  .wordmark { gap: .22em; font-size: 1.15rem; }
  .brand-mark { width: 34px; height: 34px; }
}

.plate-illustrated .outfit-illustration {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: contain;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .btn-primary, .status, .pill.on, .seg-item.on { border: 1px solid CanvasText; }
}
@media print {
  .banner, .masthead, .foot, .sticky-cta, .skip { display: none !important; }
}


.pform .seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 6px; margin-bottom: 14px; }
.pform .seg-item { margin-left: 0; border-radius: 2px; min-height: 48px; }

/* ---------- account (redesign) */
.step-count { font-size: var(--t-sm); color: var(--mute); margin: 0 0 6px; }
.import-box { border: 1px solid var(--rule-strong); border-radius: 2px; padding: 14px 16px; margin: 0; }
.import-box legend { font-weight: 600; padding: 0 6px; }
.import-list { margin: 6px 0 10px; padding-left: 18px; font-size: var(--t-sm); }
.badge-sandbox { display: inline-block; font-size: var(--t-sm); font-weight: 600; padding: 1px 8px; border: 1px solid var(--clay); color: var(--clay); border-radius: 2px; }
.acct-jump { display: flex; gap: 20px; margin-top: 12px; }
.acct-jump a { min-height: 44px; display: inline-flex; align-items: center; }
.offer-lists { display: grid; gap: 16px 32px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 16px 0; font-size: var(--t-sm); }
.offer-lists ul { margin: 6px 0 0; padding-left: 18px; }
.support-access { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--rule); }
.support-access ul { list-style: none; padding: 0; margin: 8px 0 0; }
.support-access li { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.danger-zone summary { color: var(--clay); }
.acct .callout, .acct .row-actions { margin-top: 14px; }

/* ---------- studio workbench */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.btn-chip { border: 1px solid var(--rule-strong); background: transparent; border-radius: 999px; min-height: 44px; padding: 0 16px; }
.btn-chip.on, .btn-chip[aria-pressed=true] { background: var(--olive); color: #fff; border-color: var(--olive); }
.studio-confirm { margin-top: 20px; }

/* sheet actions stay visible while long sheets scroll */
.sheet-foot { position: sticky; bottom: 0; background: var(--paper); padding: 14px 0 calc(14px + env(safe-area-inset-bottom)); margin-top: 8px; border-top: 1px solid var(--rule); }

/* A short, linked route to the customer's result. Counts describe records, not completed outfits. */
.outfit-path { margin: 0 0 32px; }
.outfit-path ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--rule-strong); border-radius: 12px; overflow: hidden; background: var(--paper-2); }
.outfit-path li + li { border-left: 1px solid var(--rule); }
.outfit-path a { display: flex; align-items: center; gap: 12px; padding: 18px; min-height: 88px; text-decoration: none; height: 100%; }
.outfit-path a[aria-current="step"] { background: var(--sage); box-shadow: inset 0 -3px var(--olive); }
.outfit-path a:hover { background: var(--sage); }
.outfit-path b { display: block; font-size: 1rem; line-height: 1.35; }
.outfit-path small { display: block; margin-top: 4px; font-size: .8125rem; line-height: 1.4; color: var(--mute); }
.path-number { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--olive); color: white; font-weight: 600; }
.outfit-path a:focus-visible { outline-offset: -5px; box-shadow: none; }
.first-use { border: 1px solid var(--rule-strong); border-radius: 12px; padding: 24px; background: var(--paper-2); }
.discover > .h-lg { max-width: 22ch; }
@media (max-width: 600px) {
  .outfit-path { margin-bottom: 26px; }
  .outfit-path a { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 10px; min-height: 116px; }
  .outfit-path b { font-size: .875rem; }
  .outfit-path small { font-size: .75rem; }
  .path-number { width: 28px; height: 28px; }
  .first-use { padding: 18px; }
}

/* Without licensed photography, show a readable color guide instead of tall empty photo slots. */
.plate-no-photos.plate-row .plate-art { aspect-ratio: auto; display: grid; gap: 8px; }
.plate-no-photos.plate-row .slot { position: static; width: auto; height: auto; container-type: normal; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 62px; }
.plate-no-photos.plate-row .slot-text { padding: 9px; justify-content: center; }
.plate-no-photos.plate-row .slot-name { font-size: .8125rem; display: block; overflow: visible; line-height: 1.35; }
.plate-no-photos.plate-row .slot-photo { display: none; }
.plate-no-photos.plate-row .slot-sw { min-width: 0; }
.plate-no-photos.plate-row .slot-sw span { padding: 6px; border-top: 0; align-content: center; overflow-wrap: anywhere; }

/* Generated reference collection: image-led, with explicit provenance captions. */
.plate-illustrated .plate-table {width:100%; max-width:100%; min-width:0; padding:0; border-color:var(--rule); overflow:visible; background:var(--paper);}
.outfit-illustration {display:block; width:100%; max-width:100%; height:auto; aspect-ratio:4/5; object-fit:contain; background:var(--paper); border-radius:2px;}
.illustration-caption {font-size:.75rem; line-height:1.5; color:var(--muted); margin-top:10px;}
.illustration-caption span {display:block; margin-top:4px;}
.plate-mini .illustration-caption {font-size:.75rem;}
.wordmark {align-items:center; gap:.55rem; font-weight:600;}
.brand-mark {flex:0 0 auto; color:var(--olive); width:38px; height:38px; filter:drop-shadow(0 2px 2px #23262012);}
.brand-type {display:flex; flex-direction:column; gap:1px; line-height:.95; font-size:1.2rem; letter-spacing:-.035em;}
.wm-r {font-style:italic;}
@media(min-width:768px){.brand-type{flex-direction:row;gap:.25em;font-size:1.45rem;}.brand-mark{width:42px;height:42px;}}

/* Garment diagrams keep the selector visual without claiming a wardrobe photo. */
.piece-illustration { width:64px; height:64px; flex-shrink:0; display:block; }
.tile .piece-illustration { margin:0 auto 8px; width:76px; height:76px; }
.tile { text-align:center; align-items:center; }
.piece { grid-template-columns:64px minmax(0,1fr); }
.piece > .piece-illustration { background:var(--paper, #f7f4ee); border-radius:4px; }
.piece-edit { display:block; }

/* The full catalog stays available without extending the phone home page. */
.index-col > summary { cursor:pointer; min-height:44px; padding-bottom:12px; }
.index-col > summary:focus-visible { outline:3px solid var(--olive, #44543D); outline-offset:4px; }
.index-col:not([open]) > summary { margin-bottom:0; }

@media (max-width:600px) {
 .outfit-path small { display:none; }
 .outfit-path a { min-height:88px; padding:10px 8px; gap:6px; }
 .outfit-path { margin-bottom:18px; }
}

/* Final responsive pass for the public and installed Closet Remix shell. */
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 4.5vw, 64px); }
  .hero-copy, .hero-plate { min-width: 0; }
}
@media (max-width: 899px) {
  /* The look tab sits just above the plate. Keep enough room so it never
     collides with the promise at the end of the hero copy. */
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 5vw, 52px); }
  .hero-plate { padding-top: 20px; }
}
@media (max-width: 760px) {
  .masthead-in { min-height: 58px; flex-wrap: nowrap; gap: 8px; row-gap: 0; padding-block: 8px; }
  .wordmark { flex: 0 1 auto; gap: .42rem; font-size: 1.1rem; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-type { display: flex; flex-direction: row; gap: .2em; line-height: 1; font-size: clamp(1rem, 4.6vw, 1.2rem); white-space: nowrap; }
  .topnav { width: auto; flex: 0 0 auto; justify-content: flex-end; flex-wrap: nowrap; gap: 0; }
  .topnav a { padding-inline: 6px; font-size: .8125rem; }
  .topnav .nav-acct { margin-left: 2px; padding-inline: 8px; }
  .hero { padding-block: 26px 56px; }
  .hero-copy h1 { font-size: clamp(2.25rem, 8.2vw, 2.9rem); line-height: 1.06; }
  .hero-copy .lede { margin-top: 18px; }
  .hero-actions { margin-top: 22px; }
  .hero-terms { margin-top: 20px; padding-top: 12px; }
  .hero-price-lockup { width: 100%; gap: 14px; padding: 13px 16px; }
  .hero-price-lockup > strong { font-size: 3.25rem; }
  .hero-promise { margin-top: 8px; }
  .hero-plate { padding-top: 18px; }
  .hero-cap { margin-top: 12px; }
  .hero-ctl { margin-top: 12px; }
}
@media (max-width: 380px) {
  .wordmark { font-size: 1rem; }
  .topnav a { padding-inline: 5px; font-size: .75rem; }
  .hero-copy h1 { font-size: 2.125rem; }
}

/* Focused account entry */
.auth-card { margin: 32px auto; padding: clamp(24px,5vw,48px); border: 1px solid var(--rule); background: var(--paper); border-radius: 12px; }
.auth-card .btn-primary, .auth-google { width: 100%; justify-content: center; }
.auth-google { display:flex; align-items:center; gap:12px; }
.google-letter { font-family:Arial,sans-serif; font-weight:700; font-size:22px; }
.auth-divider { display:flex; align-items:center; gap:12px; margin:24px 0; color:var(--mute); font-size:14px; }
.auth-divider::before,.auth-divider::after { content:""; height:1px; flex:1; background:var(--rule); }
.auth-card .row-actions { margin-bottom:24px; }

/* Account layout follows the supplied login reference. */
.auth-reference { max-width: 560px; margin: 48px auto 64px; padding: 36px; background: #fff; color:#1b1b1b; border-radius:16px; font-family:var(--sans); }
.auth-reference h1 { font-family:var(--sans); font-size:clamp(36px,5vw,48px); font-weight:500; text-align:center; margin:0 0 16px; letter-spacing:-.03em; }
.auth-switch { text-align:center; margin-bottom:36px; }
.auth-switch button { border:0; background:transparent; color:#643bed; padding:8px; font-weight:700; min-height:44px; }
.auth-social { display:flex; gap:16px; }
.auth-social button { display:flex; justify-content:center; align-items:center; gap:12px; width:100%; min-height:54px; border:1px solid #dedede; border-radius:10px; background:white; font-weight:600; }
.auth-reference .auth-divider { margin:32px 0; color:#1b1b1b; font-size:18px; }
.auth-reference .field { gap:10px; }
.auth-reference .field label { color:#1b1b1b; font-size:16px; font-weight:500; }
.auth-reference input:not([type=checkbox]) { width:100%; min-height:52px; background:white; border:1px solid #d6d6d6; border-radius:10px; padding:12px 16px; color:#1b1b1b; }
.auth-reference .stack { gap:24px; }
.auth-password { position:relative; }
.auth-password input { padding-right:54px!important; }
.auth-password button { position:absolute; top:4px; right:4px; width:44px; height:44px; display:grid; place-items:center; background:transparent; border:0; color:#747484; }
.auth-forgot { padding:0; min-height:44px; margin-top:-12px; background:transparent; border:0; text-align:left; font-weight:700; }
.auth-submit { width:100%; min-height:56px; border:0; border-radius:10px; background:#643bed; color:#fff; font-size:18px; font-weight:700; }
.auth-submit:hover:not(:disabled){background:#512bcf;}
.auth-submit:disabled{background:#ded7f7;color:#51476f;cursor:not-allowed;}
.auth-recovery { display:block; margin:20px auto 0; padding:8px; min-height:44px; background:transparent; border:0; font-weight:700; text-align:center; }
.auth-footnote { color:#62665e; font-size:14px; text-align:center; margin-top:20px; }
.auth-secondary { display:block; background:transparent; border:0; text-decoration:underline; margin:12px auto 0; min-height:44px; padding:8px; }
@media(max-width:600px){.auth-reference{margin:24px auto;padding:24px 18px;}.auth-reference h1{font-size:36px;}.auth-switch{margin-bottom:24px;}}

.checkout-page{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(24px,5vw,72px);max-width:1200px;margin:48px auto;padding:0 24px;align-items:start}.checkout-page li{margin:12px 0}.checkout-payment{background:#fff;padding:24px;border:1px solid var(--line,#d6d2c6);border-radius:16px;min-width:0}.checkout-payment iframe{width:100%;border:0;min-height:650px}.checkout-page .callout{margin:24px 0}@media(max-width:760px){.checkout-page{grid-template-columns:1fr;margin:24px auto;padding:0 16px}.checkout-page h1{font-size:38px}.checkout-payment{padding:16px}}

.custom-color-controls { margin-top: 16px; display: grid; gap: 12px; }
.custom-color-controls input[type="color"] { width: 100%; min-height: 52px; padding: 4px; cursor: pointer; }

/* Generated garment cutouts share the selected-color and subtype system. */
.saved-garment-composition { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; padding:8px; }
.saved-garment-composition > div { display:flex; flex-direction:column; align-items:center; font-size:12px; }
.saved-garment-composition .piece-illustration { width:100%; height:auto; min-height:64px; }
.saved-garment-composition small { grid-column:1/-1; font-size:12px; color:var(--muted); }
.photo-entry-steps { font-weight:600; color:var(--olive,#44543d); }
.photo-drop { margin:10px 0 12px; padding:14px 16px; border:1px dashed var(--rule-strong); border-radius:10px; text-align:center; color:var(--mute); background:var(--paper-2); }
.photo-drop.is-dragging { border:2px solid var(--olive); background:var(--sage); color:var(--ink); }
.photo-review-reminder { margin:12px 0; padding:10px 12px; border-left:3px solid var(--olive,#44543d); background:#eef0e8; }
.quick-photo-add { display:grid; gap:10px; margin:12px 0 20px; padding:14px; border-left:3px solid var(--olive,#44543d); background:var(--sage,#eef0e8); }
.quick-photo-add p { margin:0; line-height:1.5; }
.quick-photo-add .btn { justify-self:start; min-height:48px; }
.scan-color-confirm { display:grid; gap:8px; margin:12px 0; padding:12px; border-left:3px solid var(--olive,#44543d); background:var(--sage,#eef0e8); }
.scan-color-confirm p { margin:0; line-height:1.5; }
.scan-color-confirm .btn { justify-self:start; min-height:44px; }
.photo-scan-top-suggestion { width:min(100%, 24rem); min-height:62px; padding:10px 14px; flex-direction:column; align-items:flex-start; gap:4px; }
.photo-suggestion-rank { font-size:.72rem; letter-spacing:.07em; line-height:1; text-transform:uppercase; }
.photo-scan-alternatives > p { margin:12px 0 6px; font-weight:600; }
.photo-scan-note, .photo-scan-privacy { margin:8px 0; }
.photo-scan-help { margin-top:10px; }
.photo-scan-help summary { cursor:pointer; font-weight:600; min-height:44px; display:flex; align-items:center; }
.photo-scan-help p { margin:8px 0; }

/* Batch photo intake keeps the quick path explicit and reviewable. */
.photo-batch { display:grid; gap:14px; padding:20px; border:1px solid var(--rule); border-radius:12px; background:var(--paper-2); }
.photo-batch > p { max-width:68ch; }
.photo-space { display:grid; gap:6px; margin:2px 0; padding:12px 14px; border:1px solid var(--rule); border-radius:8px; background:var(--paper); }
.photo-space label { font-weight:600; }
.photo-space progress { display:block; width:100%; height:10px; accent-color:var(--olive); }
.photo-space span { color:var(--mute); font-size:.875rem; }
.photo-batch-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.photo-batch-heading h3 { margin:4px 0; }
.photo-batch-heading .eyebrow { color:var(--olive); font-weight:700; letter-spacing:.06em; text-transform:uppercase; }
.photo-batch-drop { display:grid; justify-items:center; gap:12px; min-height:132px; cursor:pointer; }
.photo-batch-drop input { max-width:100%; }
.photo-batch-ready { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; padding:14px; background:var(--sage); border-radius:8px; }
.photo-batch-ready p { margin:0; }
.photo-batch .callout-error { overflow-wrap:anywhere; }
.photo-batch .row-actions { flex-wrap:wrap; }
.photo-batch-skip-confirm { display:flex; align-items:center; justify-content:flex-end; gap:8px; flex-wrap:wrap; }
.photo-batch-skip-confirm span { max-width:24ch; color:var(--mute); }
@media(max-width:600px) {
  .photo-batch { padding:16px; }
  .photo-batch-heading > .btn { width:100%; }
  .photo-batch-ready > .btn { width:100%; }
  .photo-batch-skip-confirm { justify-content:flex-start; }
  .photo-batch-skip-confirm .btn { flex:1 1 auto; }
}

.own-garment-photo{object-fit:contain;background:#fff;border-radius:8px;width:100%;height:auto;aspect-ratio:1}.photo-entry{padding:20px;border:1px solid #b9b5a8;margin-bottom:24px}.photo-pick-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr));gap:12px}.photo-pick-actions .field{min-width:0}.photo-entry-preview{display:block;max-width:240px;max-height:240px;object-fit:contain}.saved-garment-composition{min-width:0}.saved-garment-composition > div{min-width:0}.saved-garment-composition small{grid-column:1/-1;line-height:1.5}

/* Keep saved-look photos and copy in separate rows on phones. The photo
   composition must never overflow its thumbnail column into the title. */
@media (max-width: 599px) {
  .saved-item,
  .saved-head,
  .saved-titleblock,
  .saved-plate { min-width: 0; }
  .saved-head { grid-template-columns: 44px minmax(0, 1fr); gap: 8px 12px; }
  .saved-pick { grid-column: 1; grid-row: 1; }
  .saved-titleblock { grid-column: 2; grid-row: 1; }
  .saved-titleblock .row-title { align-items: flex-start; gap: 8px; font-size: 1.15rem; }
  .saved-titleblock .row-title > span:last-child { min-width: 0; overflow-wrap: anywhere; }
  .saved-plate { grid-column: 2; grid-row: 2; width: min(100%, 320px); padding-top: 4px; }
  .saved-garment-composition { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 8px 0; }
  .saved-garment-composition > div { overflow-wrap: anywhere; text-align: center; }
  .saved-garment-composition .piece-illustration { width: 100%; max-height: 160px; min-height: 0; aspect-ratio: 1; object-fit: contain; }
  .saved-actions { min-width: 0; }
}

/* On desktop, keep the first-use workspace in a centered reading column. The
   shell can remain wide while the empty state, step path, and live results
   stay aligned instead of leaving a large unused column on the right. */
@media (min-width: 900px) {
  .workspace .outfit-path,
  .workspace .discover {
    max-width: 760px;
    margin-inline: auto;
  }

  .workspace .first-use { max-width: none; }
}

/* Temporary collection-availability page */
.availability-wrap{min-height:calc(100dvh - 190px);display:flex;align-items:center;padding-block:clamp(44px,10vh,120px)}
.availability-page{max-width:760px;padding:clamp(24px,5vw,64px) 0}
.availability-page .eyebrow{font-size:var(--t-xs);font-weight:600;letter-spacing:.12em;color:var(--olive);margin-bottom:18px}
.availability-page h1{max-width:12ch;margin-bottom:20px}
.availability-page .lede{margin-bottom:18px}
.availability-page .row-actions{margin-top:28px;display:flex;flex-wrap:wrap;gap:12px}
.policy-links{display:flex;flex-wrap:wrap;gap:8px 24px;align-items:center}
.policy-links a{display:inline-flex;align-items:center;min-height:44px;font-size:var(--t-sm)}
.policy-wrap{min-height:calc(100dvh - 190px)}
.policy-page{max-width:820px;margin-inline:auto;padding-block:12px 32px}
.policy-back{display:inline-flex;align-items:center;min-height:44px;margin-bottom:36px;color:var(--olive);font-weight:500}
.policy-page .eyebrow{font-size:var(--t-xs);font-weight:600;letter-spacing:.12em;color:var(--olive);margin-bottom:16px}
.policy-page h1{max-width:18ch;font-size:clamp(2.3rem,5vw,3.5rem);line-height:1.08}
.policy-updated{font-size:var(--t-sm);margin-top:14px}
.policy-section{border-top:1px solid var(--rule);margin-top:34px;padding-top:24px}
.policy-section h2{font-family:var(--sans);font-size:1.2rem;font-weight:600;letter-spacing:-.01em;line-height:1.3;margin-bottom:12px}
.policy-section p,.policy-section li{max-width:72ch;line-height:1.72}
.policy-section p+p{margin-top:14px}
.policy-section ul{list-style:disc;padding-left:1.35rem;display:grid;gap:8px}
.policy-contact{border-top:1px solid var(--rule);margin-top:38px;padding-top:22px}
@media(max-width:600px){.policy-back{margin-bottom:24px}.policy-section{margin-top:26px;padding-top:20px}.policy-section h2{font-size:1.1rem}}

/* On desktop, center the first-use workspace in a readable column. */
@media (min-width: 900px) {
  .workspace .outfit-path,
  .workspace .discover {
    max-width: 760px;
    margin-inline: auto;
  }

  .workspace .first-use { max-width: none; }
}

/* Keep each app reading view centered when the shell is wider than its content. */
.discover, .pieces-tab, .saved, .guide, .detail { margin-inline: auto; }

/* Keep the paid edition easy to reach on narrow screens. */
.nav-short { display: none; }
@media (max-width: 420px) {
  .topnav a[href="/sales"] { display: inline-flex; }
  .topnav a[href="/sales"] .nav-full { display: none; }
  .topnav a[href="/sales"] .nav-short { display: inline; }
  .topnav a[href="#/"] { display: none; }
  .topnav a[href="#/install"] { display: none; }
}
@media (max-width: 350px) {
  .masthead-in { gap: 6px; }
  .wordmark { gap: .25rem; font-size: .82rem; }
  .brand-mark { width: 30px; height: 30px; }
  .topnav a { padding-inline: 4px; font-size: .75rem; }
  .topnav .nav-acct { padding-inline: 6px; }
}

/* Homepage hero: keep tablet and installed-app layouts composed instead of
   turning a medium-width screen into a long desktop-sized single column. */
.hero-terms {
  max-width: 42em;
  margin-top: 16px;
  padding: 0 0 0 12px;
  border-left: 2px solid var(--olive);
  background: transparent;
  font-size: var(--t-sm);
  line-height: 1.45;
}
.hero-terms b { display: inline; margin: 0 4px 0 0; color: var(--olive-deep); }

@media (min-width: 760px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(250px, .92fr);
    gap: clamp(24px, 3.5vw, 52px);
    align-items: center;
  }
  .hero-copy, .hero-plate { min-width: 0; }
  .hero-copy h1 { max-width: 13ch; font-size: clamp(2.25rem, 4.8vw, 3.75rem); line-height: 1.04; }
  .hero-copy .lede { margin-top: 18px; }
  .hero-plate { max-width: 520px; padding-top: 0; }
  .hero-plate img { max-height: 620px; object-fit: contain; }
  .hero-caption { font-size: var(--t-xs); line-height: 1.4; }
}

@media (max-width: 759px) {
  .hero { padding-block: 24px 48px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .hero-copy h1 { max-width: 14ch; font-size: clamp(2rem, 8.5vw, 2.7rem); line-height: 1.06; }
  .hero-copy .lede { margin-top: 14px; font-size: 1.05rem; }
  .hero-price-lockup { margin-top: 18px; padding: 12px 14px; gap: 12px; }
  .hero-price-lockup > strong { font-size: clamp(2.75rem, 12vw, 3.25rem); }
  .hero-actions { margin-top: 18px; gap: 8px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-terms { margin-top: 14px; font-size: .875rem; }
  .hero-promise { margin-top: 8px; font-size: .8125rem; line-height: 1.45; }
  .hero-plate {
    max-width: 460px;
    padding: 10px 12px 8px;
    border: 1px solid var(--rule);
    border-radius: 8px;
    background: var(--paper-2);
  }
  .hero-plate img {
    width: 100%;
    height: clamp(280px, 84vw, 360px);
    max-height: none;
    object-fit: contain;
  }
  .hero-caption { margin-top: 8px; font-size: .75rem; line-height: 1.4; }
}

/* Shared hero art frame keeps the desktop composition tidy and prevents the
   portrait artwork from taking over medium-width and installed-app screens. */
.hero-plate {
  padding: 14px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--paper-2);
  box-shadow: 0 16px 36px rgb(35 38 32 / 7%);
}
.hero-image-frame {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
  background: var(--paper);
}
.hero-plate img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}
.hero-caption {
  margin: 12px 4px 2px;
  color: var(--mute);
  font-size: var(--t-xs);
  line-height: 1.4;
}
@media (max-width: 759px) {
  .hero-plate { padding: 12px; }
  .hero-image-frame { aspect-ratio: 1 / 1; }
  .hero-caption { margin-top: 9px; }
}

.tile .garment-type-example { width:100%; height:112px; object-fit:contain; border-radius:6px; background:#f7f4ee; }

/* Selected clothing references and legible export state. */
.garment-type-example { object-fit:contain; background:#f7f4ee; border-radius:8px; }
.saved-plate { width:clamp(160px,20vw,250px); }
.saved-garment-composition .piece-illustration { aspect-ratio:1; object-fit:contain; min-height:90px; }
.btn-primary:disabled { background:#e1e3db; color:#353b30; border-color:#828b79; opacity:1; }
.btn-primary:not(:disabled) { color:#fff; background:#44543d; }
@media (min-width:641px) {
  .saved-head { grid-template-columns:44px clamp(160px,20vw,250px) minmax(0,1fr); gap:16px; }
}
@media (max-width:640px) {
  .saved-plate { width:min(100%,320px); }
}

.chosen-piece-preview { display:flex; align-items:center; gap:20px; margin:20px 0; padding:16px; background:#fff; border:1px solid var(--rule-strong); border-radius:8px; }
.chosen-piece-preview .piece-illustration { width:112px; height:112px; flex:none; object-fit:contain; }
.chosen-piece-preview small { color:var(--mute); }

.photo-entry > summary { cursor:pointer; font-weight:600; min-height:44px; align-content:center; font-size:1.1rem; }
.photo-entry > summary:focus-visible { outline:3px solid var(--olive,#44543d); outline-offset:4px; }
.photo-entry-content { padding-top:16px; }

/* Garment cutouts share the surrounding page surface. */
.own-garment-photo,.garment-type-example,.saved-garment-composition .piece-illustration{background:transparent;border-radius:0;}

/* Fabric examples remain readable at phone widths and enlarged text sizes. */
.fabric-weight-help{padding:18px 0;border-block:1px solid var(--rule);margin:18px 0;overflow-wrap:anywhere}
.fabric-weight-help ul{list-style:none;padding:0;display:grid;gap:16px;margin:18px 0}
.fabric-weight-help li{display:flex;align-items:flex-start;gap:14px;min-width:0}
.fabric-weight-help li>div{min-width:0}
.fabric-weight-help p{line-height:1.6;margin-top:4px}
.fabric-sample{display:block;flex:0 0 44px;width:44px;height:44px;border:1px solid var(--olive);border-radius:4px;background-color:var(--paper);background-image:repeating-linear-gradient(0deg,transparent 0 9px,var(--olive) 9px 10px);margin-top:4px}
.fabric-medium{background-image:repeating-linear-gradient(0deg,transparent 0 6px,var(--olive) 6px 8px)}
.fabric-heavy{background-image:repeating-linear-gradient(0deg,transparent 0 3px,var(--olive) 3px 7px)}
@media(max-width:480px){.fabric-weight-help{font-size:1rem}.fabric-weight-help li{gap:10px}.fabric-sample{flex-basis:36px;width:36px;height:40px}}

/* Suggestions stay readable alongside the release history. */
.updates-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:clamp(24px,5vw,72px);margin-top:32px}.updates-page textarea{display:block;width:100%;margin:10px 0;padding:16px;font:inherit;line-height:1.5;resize:vertical;border:1px solid var(--rule,#aaa);background:transparent}.updates-page label{font-weight:600}.suggestion-inbox{margin-top:40px}.suggestion-list,.release-list{list-style:none;padding:0}.suggestion-list li,.release-list li{border-top:1px solid #cfc9bd;padding:22px 0;overflow-wrap:anywhere}.suggestion-list p{white-space:pre-wrap}.suggestion-list time{font-size:.85rem;color:#62665e}.topnav .count{margin-left:6px}.updates-page .btn{margin:8px 8px 8px 0}@media(max-width:800px){.updates-layout{grid-template-columns:1fr}.topnav{flex-wrap:wrap}.updates-page .h-xl{font-size:clamp(2rem,8vw,3.5rem)}}

.updates-jumps{display:flex;flex-wrap:wrap;gap:12px 24px;margin:24px 0 32px}.updates-jumps a{display:inline-flex;align-items:center;min-height:44px;text-decoration:underline}.suggestion-inbox p{overflow-wrap:anywhere}

.suggestion-label-short{display:none}@media(max-width:800px){.suggestion-label-full{display:none}.suggestion-label-short{display:inline}.masthead-in{flex-wrap:wrap}.topnav{min-width:0;max-width:100%}}
@media(max-width:360px){.masthead .masthead-in{flex-wrap:wrap;row-gap:4px}.masthead .topnav{width:100%;flex:1 1 100%;justify-content:flex-start}}

/* A loading image keeps the tile geometry without flashing a different garment. */
.garment-loading{display:inline-flex;align-items:center;justify-content:center;background:transparent;aspect-ratio:1;min-width:0;color:var(--mute)}
.garment-loading-dot{width:18px;height:18px;border:2px solid var(--rule);border-top-color:var(--olive);border-radius:50%;animation:garment-spin .8s linear infinite}
@keyframes garment-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.garment-loading-dot{animation:none}}
.scan-progress progress{width:100%;accent-color:var(--olive)}

/* Keep pending content still: no spinning or shimmering loading indicators. */
.skeleton { animation:none; background:#EFEBE3; }
.garment-loading-dot { display:none; animation:none; }
.pieces > .piece { content-visibility:auto; contain-intrinsic-size:auto 150px; }

/* Pale clothing needs a visible edge on paper without an opaque image box. */
.piece > .garment-type-example, .saved-garment-composition .garment-type-example { background:transparent; }
.garment-type-example[data-color="#FFFFFF" i], .garment-type-example[data-color="#EEE4CF" i] { background:transparent; filter:drop-shadow(0 0 1px rgba(65,63,53,.7)) drop-shadow(0 2px 2px rgba(65,63,53,.18)); }

.style-selected{margin:20px 0;padding:18px;border:1px solid var(--rule)}.style-selected summary{font-weight:600;cursor:pointer;min-height:44px}.style-selected fieldset{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px;max-height:360px;overflow:auto}.selected-piece-choice{display:flex;align-items:center;gap:12px;min-height:44px}.selected-piece-choice input{flex:none;width:20px;height:20px}

.piece-picker-filters{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:16px 0}.piece-picker-filters label{display:grid;gap:8px}.piece-picker-filters select,.piece-picker-filters input{width:100%;min-width:0}.style-selected fieldset{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));max-height:440px;padding:12px}.selected-piece-choice{padding:12px;border:1px solid var(--rule);border-radius:8px;cursor:pointer}.selected-piece-choice:has(input:checked){background:var(--sage);border-color:var(--olive)}.selected-piece-choice .piece-illustration{width:64px;height:72px;object-fit:contain;background:transparent}.selected-piece-choice span{overflow-wrap:anywhere}.selected-piece-choice:focus-within{outline:2px solid var(--olive);outline-offset:2px}@media(max-width:600px){.piece-picker-filters{grid-template-columns:1fr}.style-selected fieldset{grid-template-columns:1fr}}

.piece-picker-filters select,.piece-picker-filters input{min-height:44px;font:inherit;padding:10px 12px}

/* Let desktop clothing names determine row height; fieldset grid sizing clipped them. */
.style-selected fieldset{display:block;max-height:none;overflow:visible;padding:0}.piece-picker-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px;max-height:480px;overflow:auto;align-items:start;padding:6px}.piece-picker-grid .selected-piece-choice{display:grid;grid-template-columns:20px 64px minmax(0,1fr);min-height:112px;height:auto;align-items:center;gap:12px;margin:0}.selected-piece-choice span{min-width:0;white-space:normal;line-height:1.45;font-size:1rem;word-break:normal}.conditions{display:grid;gap:28px}.conditions .fs{margin:0;padding:0}.conditions legend{margin:0 0 14px}.conditions .hint{margin:14px 0;line-height:1.55}.conditions .seg{margin:14px 0}.style-selected{margin:24px 0;padding:20px;border-radius:12px}.result-controls{display:flex;flex-wrap:wrap;align-items:end;gap:24px;justify-content:space-between;margin:24px 0}.sort-menu{position:relative;min-width:240px;border:1px solid var(--rule);border-radius:10px;background:var(--paper);box-shadow:0 4px 16px #2326200b}.sort-menu summary{padding:14px 18px;cursor:pointer;min-height:48px;font-weight:600}.sort-menu [role=radiogroup]{display:grid;padding:8px;border-top:1px solid var(--rule);gap:4px}.sort-menu label{display:flex;gap:12px;align-items:center;padding:12px;border-radius:6px;cursor:pointer}.sort-menu label:has(input:checked){background:var(--sage)}.piece-picker-filters select{border-radius:8px;border:1px solid var(--rule);background:var(--paper);padding:12px 36px 12px 14px}.piece-picker-filters input{border-radius:8px}.rows>article{content-visibility:auto;contain-intrinsic-size:auto 550px}@media(max-width:600px){.piece-picker-grid{grid-template-columns:1fr}.result-controls{align-items:stretch}.sort-menu{width:100%}}

/* A thin edge only: remove the broad white-clothing halo. */
.garment-type-example[data-color="#FFFFFF" i],.garment-type-example[data-color="#EEE4CF" i]{filter:drop-shadow(0 0 .35px rgba(65,63,53,.45))}

.filter-panel-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:20px 0 28px}.sheet-body .style-selected{margin:0}.sheet-body .piece-picker-filters{grid-template-columns:1fr}.sheet-body .style-selected summary{min-height:32px}

.conditions .fs + .fs{margin-top:0}.conditions .fs > :last-child{margin-bottom:0}


/* Outfit clarity: decoded artwork, readable names, no catalog-code columns. */
.garment-frame{display:inline-flex;position:relative;align-items:center;justify-content:center;overflow:hidden;vertical-align:middle;background:transparent;min-width:0}
.garment-frame>img{display:block;width:100%;height:100%;object-fit:contain}
.garment-load-label{position:absolute;inset:0;display:grid;place-items:center;background:#eeece5;border-radius:8px;color:#62665e;font-size:13px;line-height:1.4;text-align:center;padding:8px}
.row-plate,.row-compact .row-plate{max-width:none;padding-top:0}
.row .selected-composition{padding:16px;margin-bottom:0;border-radius:12px}
.selected-pieces{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 16px}
.selected-pieces li{font-size:15px;line-height:1.45;min-width:0;gap:8px}
.selected-pieces .piece-illustration{max-width:160px;height:140px}
.row-head{display:block}.row-title{line-height:1.3;overflow-wrap:break-word}.pm{grid-template-columns:minmax(90px,130px) minmax(0,1fr);gap:8px 18px}.pm dd{min-width:0}
.saved-titleblock .row-title{display:block;line-height:1.35;overflow-wrap:break-word}
.saved-head{grid-template-columns:44px minmax(0,1fr);gap:14px}.saved-titleblock{grid-column:2;grid-row:1}.saved-plate{grid-column:2;grid-row:2;width:100%;padding:0}
.saved-garment-composition{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;padding:16px;background:#fffdf8;border:1px solid var(--rule);border-radius:12px}
.saved-garment-composition>div{min-width:0;display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;font-size:15px}
.saved-garment-composition .piece-illustration{width:100%;max-width:160px;height:140px}.saved-pieces{gap:8px;line-height:1.5}.saved-actions{gap:12px 16px}
@media(min-width:900px){.row{grid-template-columns:minmax(300px,380px) minmax(0,1fr);gap:36px}.saved-head{grid-template-columns:44px minmax(0,1fr) minmax(300px,380px)}.saved-titleblock{grid-column:2}.saved-plate{grid-column:3;grid-row:1}.saved-garment-composition{padding:20px}}
@media(max-width:899px){.row{grid-template-columns:minmax(0,1fr);gap:24px}.row-title{font-size:1.4rem}.saved-head{grid-template-columns:36px minmax(0,1fr);gap:10px}.saved-pick{min-width:36px}.saved-garment-composition{padding:12px;gap:18px 12px}.pm{grid-template-columns:minmax(85px,110px) minmax(0,1fr)}}
/* On phones, let the tall brand header scroll away; only workspace tabs stay. */
@media(max-width:899px){.masthead{position:relative;top:auto}.wtabs{top:0}.seltool,.detail-plate{position:static}html{scroll-padding-top:64px}.wmain [tabindex="-1"]{scroll-margin-top:64px}}

/* =====================================================================
   THREE-STEP REDESIGN · 2026-10-17
   Add clothes → Find an outfit → Saved outfits.
   Every rule below is scoped to .cr-ws (the paid workspace root), so the
   homepage, /sales, account and policy pages are untouched.
   Contrast (measured, WCAG 2.x):
     --cr-ink #1F241C on #FFFFFF 15.82:1 · on --cr-bg 14.41:1
     --cr-soft #4A5046 on #FFFFFF 8.31:1 · on --cr-bg 7.57:1 · on --cr-sage 6.97:1
     #FFFFFF on --cr-forest #3B5034 8.81:1 (primary buttons)
     --cr-ready-ink #1F4D2E on #E3EFE2 8.20:1 · --cr-check-ink #7A3E12 on #FBEBDD 7.14:1
     --cr-error #8A2D22 on #F8E6E2 7.02:1 · disabled #5C6058 on #EFECE6 5.45:1
     --cr-control #8C8578 on #FFFFFF 3.66:1 (unselected control borders, ≥3:1)
     --cr-line-strong #7F786B on #FFFFFF 4.37:1 · --cr-focus #1B4FD6 on #FFFFFF 6.70:1
   ===================================================================== */
.cr-ws {
  --cr-bg: #F7F4EE;
  --cr-card: #FFFFFF;
  --cr-tile: #F4F1E8;
  --cr-ink: #1F241C;
  --cr-soft: #4A5046;
  --cr-forest: #3B5034;
  --cr-forest-deep: #2C3C27;
  --cr-sage: #E8EDDF;
  --cr-sage-soft: #F2F5EC;
  --cr-line: #DDD6CA;
  --cr-line-strong: #7F786B;
  --cr-control: #8C8578;
  --cr-ready-bg: #E3EFE2; --cr-ready-ink: #1F4D2E;
  --cr-check-bg: #FBEBDD; --cr-check-ink: #7A3E12; --cr-check-edge: #B8692C;
  --cr-error: #8A2D22; --cr-error-bg: #F8E6E2;
  --cr-gold: #F3BA60;
  --cr-focus: #1B4FD6;
  --cr-radius: 20px;
  --cr-radius-sm: 14px;
  --cr-shadow: 0 1px 2px rgba(31,36,28,.05), 0 10px 30px rgba(31,36,28,.07);
  background: var(--cr-bg);
  color: var(--cr-ink);
  font-size: 1.125rem;
  line-height: 1.55;
}
.cr-ws :focus-visible { outline: 3px solid var(--cr-focus); outline-offset: 3px; border-radius: 6px; box-shadow: none; }
.cr-ws .sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.cr-ws p + p { margin-top: 8px; }
.cr-muted { color: var(--cr-soft); }
.cr-small { font-size: 1rem; }
.cr-help { color: var(--cr-soft); font-size: 1.0625rem; line-height: 1.5; margin: 4px 0 14px; max-width: 46em; }
.cr-count { display: inline-grid; place-items: center; min-width: 1.9em; height: 1.9em; padding: 0 .5em; border-radius: 999px; background: var(--cr-sage); color: var(--cr-forest-deep); font: 600 .9rem/1 var(--sans); font-variant-numeric: tabular-nums; vertical-align: middle; }

/* ---------- buttons (inside the workspace only) */
.cr-ws .btn { min-height: 52px; padding: 0 22px; border-radius: 12px; font-size: 1.0625rem; font-weight: 600; border-width: 2px; }
.cr-ws .btn-lg { min-height: 60px; padding: 0 28px; font-size: 1.1875rem; }
.cr-ws .btn-sm { min-height: 44px; padding: 0 16px; font-size: 1rem; }
.cr-ws .btn-primary { --bg: var(--cr-forest); --bd: var(--cr-forest); --fg: #fff; box-shadow: 0 2px 0 var(--cr-forest-deep); }
.cr-ws .btn-primary:hover:not(:disabled) { --bg: var(--cr-forest-deep); --bd: var(--cr-forest-deep); }
.cr-ws .btn-secondary { --bg: var(--cr-card); --fg: var(--cr-ink); --bd: var(--cr-line-strong); }
.cr-ws .btn-secondary:hover:not(:disabled) { --bg: var(--cr-sage); --fg: var(--cr-ink); --bd: var(--cr-forest); }
.cr-ws .btn-secondary.on, .cr-ws .btn[aria-pressed="true"].btn-secondary { --bg: var(--cr-forest); --fg: #fff; --bd: var(--cr-forest); }
.cr-ws .btn-quiet { min-height: 48px; padding: 0 12px; border-color: transparent; color: var(--cr-forest-deep); text-decoration: underline; text-underline-offset: 4px; }
.cr-ws .btn-quiet:hover:not(:disabled) { --bg: var(--cr-sage); }
.cr-ws .btn-danger { --bd: var(--cr-error); --fg: var(--cr-error); --bg: #fff; }
.cr-ws .btn:disabled { --bg: #EFECE6; --fg: #5C6058; --bd: #CFC8BC; box-shadow: none; }
.cr-ws .btn svg { flex: none; }
.cr-ws .linklike { color: var(--cr-forest-deep); font-size: inherit; min-height: 44px; }
.cr-ws .row-actions { gap: 12px; }

/* ---------- form fields */
.cr-ws .field { font-size: 1.0625rem; }
.cr-ws .field input, .cr-ws .field select, .cr-ws .field textarea, .cr-ws label.field input, .cr-ws label.field select, .cr-ws label.field textarea,
.cr-ws .piece-avail select, .cr-ws .role-pick select, .cr-ws .inline-select select, .cr-ws .piece-picker-filters select, .cr-ws .piece-picker-filters input {
  min-height: 52px; border: 2px solid var(--cr-line-strong); border-radius: 12px; font-size: 1.0625rem; background-color: #fff; padding: 10px 14px;
}
.cr-ws .field-help { font-size: 1rem; color: var(--cr-soft); }
.cr-ws legend { font-size: 1.125rem; }
.cr-ws .inline-error, .cr-error { color: var(--cr-error); font-size: 1.0625rem; font-weight: 600; }
.cr-ws .ok-line { color: var(--cr-ready-ink); font-size: 1.0625rem; font-weight: 600; }
.cr-ws .callout, .cr-callout { border-radius: var(--cr-radius-sm); border-left-width: 6px; font-size: 1.0625rem; padding: 16px 18px; }
.cr-ws .check { font-size: 1.0625rem; min-height: 44px; align-items: center; }
.cr-ws .check input { width: 24px; height: 24px; }
.cr-ws details > summary { cursor: pointer; }
.cr-ws .optional, .cr-ws .why-open { border-color: var(--cr-line); }
.cr-ws .optional summary, .cr-ws .why-open summary, .cr-ws .note-opt summary { font-size: 1.0625rem; min-height: 52px; gap: 6px; flex-wrap: wrap; }

/* ---------- one navigation: three numbered steps + the guide */
.cr-stepnav { background: var(--cr-card); border-bottom: 1px solid var(--cr-line); }
.cr-stepnav-in { max-width: var(--wrap); margin-inline: auto; padding: 10px var(--gutter); display: flex; align-items: center; gap: 8px 20px; }
.cr-stepnav-steps { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; counter-reset: none; }
.cr-stepnav-link { position: relative; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 14px; border-radius: 14px; text-decoration: none; color: var(--cr-ink); border: 2px solid transparent; }
.cr-stepnav-link:hover { background: var(--cr-sage-soft); }
.cr-stepnav-link.on { background: var(--cr-sage); border-color: var(--cr-forest); }
.cr-stepnav-n { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--cr-forest); color: var(--cr-forest); font-weight: 700; font-size: 1.0625rem; background: #fff; }
.cr-stepnav-link.on .cr-stepnav-n { background: var(--cr-forest); color: #fff; }
.cr-stepnav-text { display: grid; min-width: 0; }
.cr-stepnav-label { font-weight: 700; font-size: 1.0625rem; line-height: 1.2; }
.cr-stepnav-hint { font-size: .9375rem; color: var(--cr-soft); line-height: 1.25; }
.cr-stepnav-steps li + li .cr-stepnav-link::before { content: ""; position: absolute; left: -9px; top: 50%; width: 10px; height: 2px; background: var(--cr-line-strong); }
.cr-stepnav-guide { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px; border-radius: 12px; color: var(--cr-forest-deep); font-weight: 600; font-size: 1rem; text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.cr-stepnav-guide.on { background: var(--cr-sage); text-decoration: none; }

.cr-main { max-width: var(--wrap); padding: clamp(20px, 3vw, 36px) var(--gutter) 88px; }
.cr-ws .discover, .cr-ws .pieces-tab, .cr-ws .saved, .cr-ws .detail { max-width: 1180px; }
.cr-loading p { font-size: 1.125rem; color: var(--cr-soft); margin-bottom: 12px; }
.cr-ws .skeleton { border-radius: var(--cr-radius); }

/* ---------- step title */
.cr-stephead { display: flex; gap: clamp(14px, 2vw, 22px); align-items: flex-start; margin-bottom: clamp(18px, 3vw, 28px); }
.cr-stephead-n { flex: none; display: grid; place-items: center; width: clamp(48px, 6vw, 64px); height: clamp(48px, 6vw, 64px); border-radius: 50%; background: var(--cr-forest); color: #fff; font: 700 clamp(1.4rem, 2.6vw, 1.9rem)/1 var(--sans); box-shadow: 0 0 0 6px var(--cr-sage); margin-top: 4px; }
.cr-stephead-kicker { font-size: .9375rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cr-forest); }
.cr-stephead-title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); line-height: 1.08; letter-spacing: -.015em; margin: 2px 0 6px; }
.cr-stephead-benefit { font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); color: var(--cr-soft); max-width: 36em; }

/* ---------- shared cards */
.cr-card { background: var(--cr-card); border: 1px solid var(--cr-line); border-radius: var(--cr-radius); box-shadow: var(--cr-shadow); padding: clamp(18px, 3vw, 30px); min-width: 0; }
.cr-card-title { font-family: var(--sans); font-weight: 700; font-size: 1.3125rem; line-height: 1.25; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; letter-spacing: 0; }
.cr-empty { background: var(--cr-card); border: 1px solid var(--cr-line); border-radius: var(--cr-radius); padding: clamp(20px, 4vw, 36px); max-width: none; margin-top: 18px; }
.cr-empty h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: 8px; }
.cr-empty p { max-width: 40em; }
.cr-empty-hero { text-align: center; display: grid; justify-items: center; gap: 6px; padding-block: clamp(32px, 6vw, 56px); }
.cr-empty-hero .row-actions { justify-content: center; }
.cr-empty-art { width: 120px; height: 80px; color: var(--cr-line-strong); margin-bottom: 8px; }

/* ---------- status pill: icon shape + words, never colour alone */
.cr-status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; font-weight: 700; font-size: 1rem; line-height: 1.2; }
.cr-status svg { flex: none; }
.cr-status-ready { background: var(--cr-ready-bg); color: var(--cr-ready-ink); }
.cr-status-check { background: var(--cr-check-bg); color: var(--cr-check-ink); }
.cr-status-needs { background: #fff; color: var(--cr-ink); box-shadow: inset 0 0 0 2px var(--cr-line-strong); }
.cr-status-none { background: #ECE8E0; color: #3F433C; }
.cr-status-dot { width: 12px; height: 12px; border-radius: 50%; background: currentColor; opacity: .5; }

/* ---------- outfit pictures (actual chosen garments) */
.cr-outfit { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; padding: 0; margin: 0; list-style: none; }
.cr-piece { display: grid; align-content: start; justify-items: center; gap: 2px; text-align: center; min-width: 0; }
.cr-piece-frame { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1 / 1; background: var(--cr-tile); border-radius: var(--cr-radius-sm); border: 2px solid transparent; overflow: hidden; }
.cr-piece-frame .piece-illustration { width: 86%; height: 86%; }
.cr-piece-frame .piece-illustration img { width: 100%; height: 100%; object-fit: contain; background: transparent; }
.cr-piece-empty { font: 700 2.2rem/1 var(--sans); color: var(--cr-soft); }
.cr-piece-missing .cr-piece-frame { background: #fff; border: 2px dashed var(--cr-line-strong); }
.cr-piece-optional .cr-piece-frame { background: #fff; border: 2px dashed var(--cr-line); }
.cr-piece-check .cr-piece-frame { border-color: var(--cr-check-edge); }
.cr-piece-badge { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px; font: 700 .8125rem/1 var(--sans); }
.cr-piece-badge-check { background: var(--cr-check-ink); color: #fff; }
.cr-piece-badge-swap { left: 6px; right: auto; background: var(--cr-forest); color: #fff; }
.cr-piece-role { margin-top: 6px; font-size: .875rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--cr-soft); overflow-wrap: anywhere; }
.cr-piece-name { font-size: 1rem; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.cr-piece-missing .cr-piece-name { color: var(--cr-soft); font-style: italic; }
.cr-piece-flag { font-size: .9375rem; line-height: 1.35; color: var(--cr-check-ink); font-weight: 600; overflow-wrap: anywhere; }
.cr-piece-missing .cr-piece-flag { color: var(--cr-soft); font-weight: 500; }
.cr-outfit-sm { gap: 6px; }
.cr-outfit-sm .cr-piece-role { font-size: .8125rem; }
.cr-outfit-sm .cr-piece-name { font-size: .9375rem; }
.cr-outfit-lg { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cr-outfit-lg .cr-piece-name { font-size: 1.125rem; }
.cr-outfit-lg .cr-piece-role { font-size: .9375rem; }
@media (min-width: 640px) { .cr-outfit-lg { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
@media (max-width: 520px) {
  .cr-outfit-md { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cr-outfit-sm { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* =====================================================================
   STEP 1 · ADD CLOTHES
   ===================================================================== */
.cr-nextcard { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; background: var(--cr-sage); border: 2px solid #CBD6BE; border-radius: var(--cr-radius); padding: clamp(18px, 3vw, 26px); margin-bottom: 24px; }
.cr-nextcard-big { font-family: var(--serif); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 500; line-height: 1.15; }
.cr-nextcard-sub { color: var(--cr-soft); margin-top: 4px; }
.cr-nextcard-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cr-add-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.cr-add-grid > *, .cr-ws .cr-piece-row .piece-actions, .cr-ws .piece-avail { min-width: 0; }
@media (min-width: 1040px) {
  .cr-add-grid.has-form { grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr); }
  .cr-add-grid.has-form .cr-closet { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow: auto; }
}
.cr-starter { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 18px; padding: 0; list-style: none; }
.cr-starter li { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 14px 4px 6px; border-radius: 999px; background: var(--cr-tile); font-weight: 600; font-size: 1rem; }
.cr-starter li span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px dashed var(--cr-line-strong); color: #fff; font-size: .9rem; }
.cr-starter li.done span { background: var(--cr-forest); border: 2px solid var(--cr-forest); }
.cr-starter .cr-starter-or { background: none; color: var(--cr-soft); font-weight: 500; padding-left: 4px; }

/* the three small steps inside the form */
.cr-substeps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.cr-substep { position: relative; display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 8px 10px; border-radius: 14px; background: var(--cr-tile); border: 2px solid transparent; min-width: 0; flex-wrap: wrap; }
.cr-substep-now { background: #fff; border-color: var(--cr-forest); box-shadow: 0 0 0 4px var(--cr-sage); }
.cr-substep-n { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--cr-line-strong); font-weight: 700; color: var(--cr-soft); background: #fff; }
.cr-substep-now .cr-substep-n { background: var(--cr-forest); border-color: var(--cr-forest); color: #fff; }
.cr-substep-done .cr-substep-n { background: var(--cr-ready-bg); border-color: var(--cr-forest); color: var(--cr-forest-deep); }
.cr-substep-text { display: grid; min-width: 0; flex: 1 1 60px; }
.cr-substep-name { font-weight: 700; font-size: 1rem; }
.cr-substep-value { font-size: .9375rem; color: var(--cr-soft); overflow-wrap: anywhere; line-height: 1.3; }
.cr-substep-change { min-height: 44px; padding: 0 8px; border: 0; background: none; color: var(--cr-forest-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; font-size: 1rem; }
.cr-stage { outline: none; }
.cr-stage:focus-visible { outline: 3px solid var(--cr-focus); outline-offset: 6px; }

.cr-ws .cr-stage-title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 1.25rem + 1vw, 1.9rem); line-height: 1.15; margin-bottom: 8px; }
.cr-search { max-width: 30em; margin-bottom: 16px; }

/* category choices */
.cr-ws .cr-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 14px; }
.cr-ws .cr-cat { display: grid; place-items: start; align-content: center; text-align: left; gap: 2px; min-height: 64px; padding: 10px 14px; margin: 0; border: 2px solid var(--cr-control); border-radius: 14px !important; background: #fff; color: var(--cr-ink); font-weight: 700; font-size: 1.0625rem; }
.cr-ws .cr-cat:hover { border-color: var(--cr-line-strong); }
.cr-ws .cr-cat.on { background: var(--cr-sage); border-color: var(--cr-forest); color: var(--cr-ink); }
.cr-cat-hint { font-weight: 500; font-size: .875rem; color: var(--cr-soft); line-height: 1.3; }

/* clothing type tiles */
.cr-ws .cr-tiles { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.cr-ws .cr-tile { display: grid; justify-items: center; align-content: start; gap: 6px; min-height: 170px; padding: 10px; border: 2px solid var(--cr-control); border-radius: 16px; background: #fff; font-size: 1.0625rem; font-weight: 600; text-align: center; }
.cr-ws .cr-tile:hover { border-color: var(--cr-line-strong); }
.cr-ws .cr-tile.on { border-color: var(--cr-forest); background: var(--cr-sage); box-shadow: 0 0 0 3px var(--cr-sage); }
.cr-ws .cr-tile .piece-illustration { width: 100%; height: 110px; background: var(--cr-tile); border-radius: 10px; }
.cr-ws .cr-tile .piece-illustration img { width: 100%; height: 100%; object-fit: contain; background: transparent; }
.cr-ws .cr-tile .garment-load-label { font-size: .875rem; color: var(--cr-soft); padding: 8px; }
.cr-ws .cr-tile .tile-state { position: absolute; top: 8px; right: 8px; background: var(--cr-forest); color: #fff; border-radius: 999px; padding: 3px 10px; font-size: .8125rem; margin: 0; }
.cr-ws .cr-tile .tile-cat { font-size: .875rem; }
.cr-ws .tile-unsure { border-style: dashed; justify-content: center; }
.cr-tile-q { display: grid; place-items: center; width: 100%; height: 110px; border-radius: 10px; background: var(--cr-tile); font: 700 2.4rem/1 var(--sans); color: var(--cr-soft); }

/* colour */
.cr-preview { display: flex; align-items: center; gap: 16px; padding: 12px; margin: 4px 0 16px; background: var(--cr-tile); border-radius: 16px; }
.cr-preview .piece-illustration { width: 96px; height: 96px; flex: none; }
.cr-preview b { font-size: 1.125rem; }
.cr-preview small { display: block; font-size: .9375rem; color: var(--cr-soft); }
.cr-ws .cr-swatches { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.cr-ws .cr-swatches .swatch { min-height: 52px; padding: 6px 10px 6px 8px; border: 2px solid var(--cr-control); border-radius: 12px; background: #fff; font-size: 1rem; font-weight: 500; line-height: 1.25; }
.cr-ws .cr-swatches .swatch:hover { border-color: var(--cr-line-strong); }
.cr-ws .cr-swatches .swatch.on { border-color: var(--cr-forest); background: var(--cr-sage); font-weight: 700; }
.cr-ws .cr-swatches .swatch.on::after { content: "✓"; margin-left: auto; color: var(--cr-forest-deep); font-weight: 700; }
.cr-ws .cr-swatches .chip { width: 32px; height: 32px; border: 1.5px solid rgba(31,36,28,.4); }
.cr-custom-color { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-top: 14px; }
.cr-custom-color input[type="color"] { padding: 4px; }
.cr-custom-color .cr-help { grid-column: 1 / -1; }

/* details */
.cr-ws .cr-attr { margin-top: 18px; }
.cr-ws .cr-attr .attr-q { font-size: 1.125rem; font-weight: 700; margin-bottom: 8px; }
.cr-ws .cr-pform .pill { min-height: 52px; padding: 0 20px; font-size: 1.0625rem; border: 2px solid var(--cr-control); }
.cr-ws .cr-pform .pill.on { background: var(--cr-forest); border-color: var(--cr-forest); color: #fff; }
.cr-ws .cr-pform .pill.on span::before { content: "✓ "; }
.cr-implied { font-size: 1.0625rem; margin-top: 12px; }
.cr-mini-help { margin-top: 10px; border: 0; }
.cr-mini-help summary { color: var(--cr-forest-deep); text-decoration: underline; text-underline-offset: 3px; min-height: 44px; font-weight: 600; }
.cr-optional { margin-top: 26px; }

/* form actions stay reachable at the bottom of long choice lists */
.cr-form-actions { position: sticky; bottom: 0; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 22px calc(-1 * clamp(18px, 3vw, 30px)) calc(-1 * clamp(18px, 3vw, 30px)); padding: 14px clamp(18px, 3vw, 30px) calc(14px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--cr-line); border-radius: 0 0 var(--cr-radius) var(--cr-radius); }
.cr-piece-edit .cr-form-actions { position: static; margin: 22px 0 0; padding: 14px 0 0; background: none; }
@media (max-height: 520px) { .cr-form-actions { position: static; } }
@media (max-width: 640px) { .cr-form-actions { flex-wrap: nowrap; } .cr-form-actions .cr-next-btn { flex: 1 1 auto; padding-inline: 14px; } .cr-form-actions .cr-back-btn { flex: none; padding-inline: 16px; } }
/* Keyboard focus is never hidden behind the sticky action bar. */
html:has(.cr-ws .cr-form-actions) { scroll-padding-bottom: 120px; }

.cr-added { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; margin-bottom: 20px; background: var(--cr-ready-bg); border: 2px solid #9DBE97; border-radius: 16px; color: var(--cr-ink); outline: none; }
.cr-added:focus-visible { outline: 3px solid var(--cr-focus); }
.cr-added-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--cr-forest); color: #fff; font-weight: 700; font-size: 1.25rem; }
.cr-added-title { font-weight: 700; font-size: 1.1875rem; }
.cr-added-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

/* clothes you added */
.cr-closet-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 10px; }
.cr-closet-head .cr-card-title { margin-bottom: 0; }
.cr-kinds { font-size: 1rem; color: var(--cr-soft); }
.cr-note-line { font-size: 1rem; background: var(--cr-check-bg); color: var(--cr-check-ink); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; }
.cr-ws .cr-pieces { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; gap: 10px; border: 0; }
.cr-add-grid:not(.has-form) .cr-pieces { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.cr-ws .cr-piece-row { min-width: 0; grid-template-columns: 76px minmax(0, 1fr); gap: 10px 14px; padding: 12px; background: #fff; border: 1px solid var(--cr-line); border-radius: 16px; align-items: start; }
.cr-piece-row-pic { display: grid; place-items: center; width: 76px; height: 76px; background: var(--cr-tile); border-radius: 12px; }
.cr-piece-row-pic .piece-illustration { width: 66px; height: 66px; }
.cr-ws .cr-piece-row .piece-name { font-size: 1.0625rem; }
.cr-ws .cr-piece-row .piece-detail { font-size: 1rem; color: var(--cr-soft); }
.cr-ws .cr-piece-row .piece-unk { font-size: .9375rem; color: var(--cr-check-ink); }
.cr-off-tag { justify-self: start; margin-top: 4px; font-size: .875rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: #ECE8E0; color: #3F433C; }
.cr-ws .piece-off .piece-name { text-decoration: none; color: var(--cr-soft); }
.cr-ws .piece-anchor { background: var(--cr-sage); box-shadow: 0 0 0 2px var(--cr-forest); }
.cr-ws .cr-piece-row .piece-actions { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.cr-ws .piece-avail { display: grid; gap: 4px; }
.cr-avail-label { font-size: .9375rem; font-weight: 600; color: var(--cr-soft); }
.cr-ws .piece-avail select { width: 100%; min-width: 0; }
.cr-saving-line { font-size: .9375rem; color: var(--cr-soft); }
.cr-piece-buttons { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
.cr-piece-buttons > .btn { flex: 1 1 160px; }
.cr-menu summary { min-height: 52px; padding: 0 16px; border-radius: 12px; border: 2px solid var(--cr-control); background: #fff; text-decoration: none; font-weight: 600; font-size: 1.0625rem; }
.cr-menu summary::after { content: "▾"; margin-left: 8px; font-size: .8em; }
.cr-menu[open] summary { background: var(--cr-sage); border-color: var(--cr-forest); }
.cr-menu .menu-items { flex-basis: 100%; }
.cr-ws .cr-piece-edit { background: #fff; border: 2px solid var(--cr-forest); border-radius: 16px; padding: 16px; }
.cr-edit-title { font-weight: 700; font-size: 1.1875rem; margin-bottom: 10px; }
.cr-confirm { grid-column: 1 / -1; background: var(--cr-error-bg); border-radius: 12px; padding: 12px 14px; }
@media (max-width: 520px) {
  .cr-substeps { gap: 6px; }
  .cr-substep { flex-direction: column; justify-content: center; text-align: center; gap: 2px; min-height: 64px; padding: 6px 4px; }
  .cr-substep-text { flex: none; justify-items: center; }
  .cr-substep-value { display: none; }
  .cr-substep-change { min-height: 44px; padding: 0 6px; font-size: .9375rem; }
}

/* =====================================================================
   STEP 2 · FIND AN OUTFIT
   ===================================================================== */
.cr-ws .cr-today { display: block; background: var(--cr-card); border: 1px solid var(--cr-line); border-radius: var(--cr-radius); padding: 16px clamp(16px, 3vw, 24px); margin: 0 0 18px; box-shadow: var(--cr-shadow); }
.cr-today-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.cr-today-title { font: 700 1.25rem/1.2 var(--sans); letter-spacing: 0; }
.cr-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 6px; padding: 0; list-style: none; }
.cr-chips li { display: inline-flex; align-items: baseline; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--cr-tile); font-weight: 600; font-size: 1.0625rem; }
.cr-chip-k { font-size: .8125rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--cr-soft); }
.cr-chips .cr-chip-strong { background: var(--cr-sage); box-shadow: inset 0 0 0 2px var(--cr-forest); }
@media (min-width: 900px) {
  .cr-ws .cr-today { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 18px; align-items: center; }
  .cr-today-top { display: contents; }
  .cr-today-title { grid-column: 1; grid-row: 1; }
  .cr-today-top .btn { grid-column: 3; grid-row: 1; }
  .cr-ws .cr-today .cr-chips { grid-column: 2; grid-row: 1; margin: 0; }
  .cr-ws .cr-today > details, .cr-ws .cr-today > p:not(.sr-only) { grid-column: 1 / -1; }
  .cr-ws .cr-today > p.cr-muted { margin-top: 6px; }
}
.cr-avoid summary { min-height: 44px; display: inline-flex; align-items: center; color: var(--cr-forest-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; font-size: 1rem; }
.cr-avoid p { font-size: 1rem; color: var(--cr-soft); margin-bottom: 6px; }
.cr-ws .cr-anchor { border-radius: var(--cr-radius-sm); border-left-width: 6px; font-size: 1.0625rem; padding: 14px 16px; }
.cr-results-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin: 22px 0 6px; }
.cr-ws .cr-count-line { margin: 0; font-size: 1.1875rem; }
.cr-ws .cr-count-line b { font-family: var(--sans); font-weight: 700; font-size: 1.1875rem; color: var(--cr-ink); }
.cr-sortbox { position: relative; }
.cr-sortbox > summary { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 18px; border-radius: 12px; border: 2px solid var(--cr-line-strong); background: #fff; font-weight: 600; font-size: 1.0625rem; list-style: none; }
.cr-sortbox > summary::-webkit-details-marker { display: none; }
.cr-sortbox > summary::after { content: "▾"; font-size: .8em; }
.cr-sortbox[open] > summary { background: var(--cr-sage); border-color: var(--cr-forest); }
.cr-result-controls { display: grid; gap: 14px; margin-top: 10px; padding: 16px; background: #fff; border: 1px solid var(--cr-line); border-radius: 16px; max-width: 640px; }
.cr-result-controls .pills { display: flex; flex-wrap: wrap; gap: 8px; }
.cr-sorts { display: grid; gap: 2px; }
.cr-group { margin-top: 26px; }
.cr-ws .cr-group-h { font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); margin: 0 0 2px; align-items: center; }
.cr-group-sub { color: var(--cr-soft); margin-bottom: 14px; }
.cr-ws .cr-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 18px; }
.cr-ws .cr-result { display: grid; align-content: start; gap: 14px; padding: clamp(16px, 2.4vw, 22px); background: var(--cr-card); border: 1px solid var(--cr-line); border-radius: var(--cr-radius); box-shadow: var(--cr-shadow); min-width: 0; }
.cr-ws .cr-result:last-child { border-bottom: 1px solid var(--cr-line); }
.cr-ws .cr-tone-check { border-left: 6px solid var(--cr-check-edge); }
.cr-ws .cr-tone-needs { background: #FCFBF8; border: 2px dashed var(--cr-line-strong); box-shadow: none; }
.cr-ws .row.cr-result, .cr-ws .saved-item.cr-saved-card { grid-template-columns: minmax(0, 1fr); }
.cr-ws .row.cr-result { border-top: 1px solid var(--cr-line); }
.cr-ws .cr-result .cr-status { justify-self: start; }
.cr-result-head { display: grid; justify-items: start; gap: 6px; }
.cr-ws .cr-result-title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.375rem, 1.2rem + .6vw, 1.625rem); line-height: 1.15; }
.cr-meta { font-size: 1rem; color: var(--cr-soft); }
.cr-ws .cr-result-pic { max-width: none; padding: 0; }
.cr-ws .cr-result-note { margin: 0; font-size: 1.0625rem; color: var(--cr-soft); }
.cr-ws .cr-result-actions { margin-top: 2px; }
.cr-ws .cr-result-actions .cr-savewrap { display: contents; }
.cr-save-status { flex-basis: 100%; font-size: 1.0625rem; }
.cr-save-status:empty { display: none; }
.cr-save-ok { display: block; color: var(--cr-ready-ink); background: var(--cr-ready-bg); border-radius: 12px; padding: 10px 14px; }
.cr-save-status .inline-error { display: block; background: var(--cr-error-bg); border-radius: 12px; padding: 10px 14px; margin: 0; }
.cr-save-saved .cr-save-btn:disabled { --bg: var(--cr-ready-bg); --fg: var(--cr-ready-ink); --bd: #9DBE97; }
.cr-coverage { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; padding: 0; list-style: none; }
.cr-coverage li { display: inline-flex; gap: 6px; align-items: baseline; padding: 6px 14px; border-radius: 999px; background: var(--cr-tile); font-size: 1rem; }
.cr-coverage li.has { background: var(--cr-ready-bg); color: var(--cr-ready-ink); }
.cr-almost { display: grid; gap: 10px; margin: 14px 0; padding: 0; list-style: none; }
.cr-almost li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px 14px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--cr-tile); }
@media (max-width: 520px) { .cr-almost li { grid-template-columns: auto 1fr; } .cr-almost li .btn { grid-column: 1 / -1; } }

/* settings sheet */
.cr-ws .drawer { background: var(--cr-bg); }
@media (min-width: 900px) { .cr-ws .drawer { inset: 0 0 0 auto; width: min(620px, 100vw); max-height: 100dvh; height: 100dvh; } }
.cr-ws .drawer-head { border-bottom-color: var(--cr-line); }
.cr-ws .drawer-head h2 { font-family: var(--serif); font-weight: 500; font-size: 1.75rem; }
.cr-ws .filter-panel-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.cr-conditions .fs { background: #fff; border: 1px solid var(--cr-line); border-radius: 16px; padding: 16px; }
.cr-conditions .fs + .fs { margin-top: 12px; }
.cr-conditions legend { float: left; width: 100%; font-size: 1.1875rem; font-weight: 700; margin-bottom: 8px; }
.cr-conditions legend + * { clear: both; }
.cr-ws .cr-conditions .seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.cr-ws .cr-conditions .seg-item { margin: 0; border: 2px solid var(--cr-control); border-radius: 12px !important; min-height: 52px; font-size: 1.0625rem; background: #fff; color: var(--cr-ink); }
.cr-ws .cr-conditions .seg-item.on { background: var(--cr-forest); border-color: var(--cr-forest); color: #fff; }
.cr-ws .cr-conditions .seg-item.on .count { color: #DDE5D5; }
.cr-ws .cr-conditions .pill { min-height: 52px; font-size: 1.0625rem; border: 2px solid var(--cr-control); }
.cr-ws .cr-conditions .pill.on { background: var(--cr-forest); border-color: var(--cr-forest); color: #fff; }
.cr-ws .cr-conditions .hint, .cr-ws .cr-conditions .cr-help { font-size: 1rem; margin: 8px 0 0; color: var(--cr-soft); }
.cr-ws .cr-conditions .seg + .hint { margin-top: 10px; }
.cr-ws .cr-sheet .sheet-foot { position: sticky; bottom: calc(-28px - env(safe-area-inset-bottom)); background: var(--cr-bg); padding: 14px 0 calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--cr-line); margin-top: 18px; }
.cr-picker .piece-picker-filters { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 10px; }
.cr-picker .piece-picker-filters label { display: grid; gap: 4px; font-weight: 600; font-size: 1.0625rem; }
.cr-picker .piece-picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.cr-picker .selected-piece-choice { position: relative; display: grid; justify-items: center; gap: 6px; padding: 10px; border: 2px solid var(--cr-control); border-radius: 14px; background: #fff; text-align: center; font-weight: 600; font-size: 1rem; cursor: pointer; }
.cr-picker .selected-piece-choice.on { border-color: var(--cr-forest); background: var(--cr-sage); }
.cr-picker .selected-piece-choice input { position: absolute; z-index: 1; top: 10px; left: 10px; width: 24px; height: 24px; accent-color: var(--cr-forest); }
.cr-picker .selected-piece-choice .piece-illustration { width: 80px; height: 80px; }

/* look detail */
.cr-back { margin-bottom: 10px; padding-left: 4px; }
.cr-detail-head { display: grid; justify-items: start; gap: 8px; max-width: 52em; }
.cr-ws .cr-detail-title { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); line-height: 1.05; margin: 0; }
.cr-ws .cr-status-meaning { font-size: 1.1875rem; color: var(--cr-ink); margin: 0; max-width: 40em; }
.cr-ws .cr-detail-grid { display: grid; gap: 24px; margin-top: 22px; align-items: start; }
@media (min-width: 1000px) { .cr-ws .cr-detail-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } .cr-detail-hero { position: sticky; top: 92px; } }
.cr-ws .cr-outfit-card { margin: 0; background: var(--cr-card); border: 1px solid var(--cr-line); border-radius: var(--cr-radius); box-shadow: var(--cr-shadow); padding: clamp(16px, 3vw, 26px); }
.cr-outfit-card > .cr-muted { margin-top: 14px; }
.cr-save-box { margin-top: 14px; background: var(--cr-sage); border-radius: var(--cr-radius); padding: 4px clamp(16px, 3vw, 22px) 14px; }
.cr-save-box .detail-actions { margin-top: 14px; }
.cr-save-box .cr-savewrap { display: contents; }
.cr-note-opt { max-width: none; border-color: #CBD6BE; }
.cr-detail-side { min-width: 0; }
.cr-ws .cr-roles { display: grid; gap: 10px; border: 0; max-width: none; }
.cr-ws .cr-role { background: #fff; border: 1px solid var(--cr-line); border-radius: 16px; padding: 14px 16px; }
.cr-ws .cr-role.role-missing { border: 2px dashed var(--cr-line-strong); }
.cr-ws .cr-role.role-confirm { border-left: 6px solid var(--cr-check-edge); }
.cr-role-label { font-size: .875rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--cr-soft); }
.cr-role-name { font-size: 1.1875rem; font-weight: 700; margin-top: 2px; }
.cr-flag { color: var(--cr-check-ink); font-weight: 600; font-size: 1.0625rem; margin-top: 6px; }
.cr-need { color: var(--cr-soft); font-size: 1.0625rem; margin-top: 4px; }
.cr-swapline { color: var(--cr-forest-deep); font-weight: 600; font-size: 1rem; margin-top: 4px; }
.cr-asks { margin-top: 6px; }
.cr-asks summary { min-height: 44px; display: inline-flex; align-items: center; color: var(--cr-forest-deep); font-weight: 600; font-size: 1rem; text-decoration: underline; text-underline-offset: 3px; }
.cr-asks p { font-size: 1.0625rem; color: var(--cr-soft); }
.cr-ws .cr-role .role-pick { font-size: 1rem; color: var(--cr-soft); font-weight: 600; flex: 1 1 220px; }
.cr-ws .cr-role .role-pick select { max-width: none; color: var(--cr-ink); }
.cr-more-info { margin-top: 18px; border-top: 1px solid var(--cr-line); }
.cr-ws .cr-more-info .why-open { max-width: none; }
.cr-ws .cr-more-info .why-open p, .cr-ws .cr-more-info .why li { font-size: 1.0625rem; }
.cr-ws .why { list-style: disc; padding-left: 1.2em; display: grid; gap: 6px; }
.cr-reference .plate { margin-top: 8px; }
.cr-ws .swap-list { display: grid; gap: 12px; }
.cr-ws .swap { background: #fff; border: 1px solid var(--cr-line); border-radius: 16px; padding: 14px 16px; }
.cr-ws .swap h3 { font-family: var(--sans); font-weight: 700; font-size: 1.1875rem; }

/* =====================================================================
   STEP 3 · SAVED OUTFITS
   ===================================================================== */
.cr-saved-bar { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.cr-ws .cr-tabs { margin: 0; gap: 6px; padding: 4px; background: #fff; border: 1px solid var(--cr-line); border-radius: 16px; }
.cr-ws .cr-tab { min-height: 52px; padding: 0 16px; border: 0; border-radius: 12px; background: transparent; font-weight: 600; font-size: 1.0625rem; display: inline-flex; align-items: center; gap: 8px; color: var(--cr-ink); }
.cr-ws .cr-tab:hover { background: var(--cr-sage-soft); }
.cr-ws .cr-tab.on { background: var(--cr-forest); color: #fff; }
.cr-ws .cr-tab.on .cr-count { background: rgba(255,255,255,.2); color: #fff; }
.cr-saved-tools { flex: 0 1 auto; }
.cr-saved-tools[open] { flex-basis: 100%; }
.cr-saved-tools .saved-view-options { margin-top: 10px; padding: 14px; background: #fff; border: 1px solid var(--cr-line); border-radius: 16px; align-items: end; }
.cr-saved-tools .field { flex: 1 1 220px; }
.cr-ws .filter-notes { min-height: 52px; }
.cr-pdf-btn { margin-left: auto; }
.cr-on-tag { color: var(--cr-forest); font-weight: 700; }
.cr-ws .cr-seltool { position: sticky; bottom: 0; z-index: 5; display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); margin: 8px 0 14px; background: #fff; border: 2px solid var(--cr-forest); border-radius: 16px; box-shadow: 0 -6px 24px rgba(31,36,28,.08); }
.cr-seltool-title { grid-column: 1 / -1; font-size: 1.0625rem; }
.cr-ws .cr-seltool .seltool-n { font-size: 1.0625rem; }
.cr-seltool-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; }
.cr-ws .cr-seltool .hint { grid-column: 1 / -1; margin: 0; }
.cr-ws .cr-saved-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 18px; margin-top: 10px; }
.cr-ws .cr-saved-card { display: grid; align-content: start; gap: 12px; padding: 16px; background: var(--cr-card); border: 1px solid var(--cr-line); border-radius: var(--cr-radius); box-shadow: var(--cr-shadow); min-width: 0; }
.cr-ws .cr-saved-card.is-picked { border: 2px solid var(--cr-forest); box-shadow: 0 0 0 4px var(--cr-sage); }
.cr-ws .cr-saved-card > * { grid-column: 1 / -1 !important; grid-row: auto !important; width: 100%; }
.cr-ws .cr-saved-card .saved-plate { padding: 0; }
.cr-pick { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 12px; border-radius: 12px; background: var(--cr-sage); font-weight: 700; cursor: pointer; }
.cr-pick input { width: 24px; height: 24px; accent-color: var(--cr-forest); }
.cr-saved-pic .plate-table { border-radius: 14px; }
.cr-ws .cr-saved-title { font-family: var(--serif); font-weight: 500; font-size: 1.4375rem; line-height: 1.15; }
.cr-saved-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 1rem; color: var(--cr-soft); margin-top: 4px; }
.cr-tag { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: .875rem; font-weight: 700; background: var(--cr-ready-bg); color: var(--cr-ready-ink); }
.cr-tag-not_for_me { background: #ECE8E0; color: #3F433C; }
.cr-flagbox { margin-top: 8px; padding: 10px 14px; border-radius: 12px; background: var(--cr-check-bg); color: var(--cr-check-ink); font-size: 1rem; }
.cr-flagbox .flags { list-style: disc; padding-left: 1.2em; margin-top: 4px; }
.cr-saved-note { margin-top: 8px; padding: 10px 14px; border-left: 4px solid var(--cr-forest); background: var(--cr-sage-soft); border-radius: 0 12px 12px 0; font-size: 1.0625rem; }
.cr-saved-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; border-top: 1px solid var(--cr-line); padding-top: 12px; }
.cr-notes { flex: 1 1 100%; order: 3; }
.cr-notes > summary { display: inline-flex; align-items: center; min-height: 52px; padding: 0 16px; border-radius: 12px; border: 2px solid var(--cr-control); background: #fff; font-weight: 600; font-size: 1.0625rem; list-style: none; }
.cr-notes > summary::-webkit-details-marker { display: none; }
.cr-notes[open] > summary { background: var(--cr-sage); border-color: var(--cr-forest); }
.cr-notes .note-body { display: grid; gap: 8px; margin-top: 10px; }
.cr-notes textarea { min-height: 96px; border: 2px solid var(--cr-line-strong); border-radius: 12px; padding: 10px 14px; font-size: 1.0625rem; }
.cr-notes .note-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.cr-notes .note-status { font-size: 1rem; }
.cr-ws .note-flag { color: var(--cr-check-ink); margin-left: 4px; }
.cr-saved-actions > .btn, .cr-saved-actions > .cr-menu { order: 1; }
.cr-export .export-list { list-style: decimal; padding-left: 1.4em; display: grid; gap: 4px; font-size: 1.0625rem; }

/* ---------- narrow screens */
@media (max-width: 760px) {
  .cr-stepnav-in { flex-wrap: wrap; padding: 8px 12px; gap: 4px; }
  .cr-stepnav-steps { flex-basis: 100%; gap: 6px; }
  .cr-stepnav-link { flex-direction: column; justify-content: center; text-align: center; gap: 4px; min-height: 76px; padding: 8px 4px; }
  .cr-stepnav-n { width: 34px; height: 34px; }
  .cr-stepnav-label { font-size: 1rem; }
  .cr-stepnav-hint { display: none; }
  .cr-stepnav-steps li + li .cr-stepnav-link::before { display: none; }
  .cr-stepnav-guide { margin-left: auto; min-height: 44px; }
  .cr-main { padding-top: 18px; }
  .cr-nextcard-actions, .cr-nextcard-actions .btn { width: 100%; }
  .cr-pdf-btn { margin-left: 0; }
}
@media (max-width: 480px) {
  .cr-ws { font-size: 1.0625rem; }
  .cr-ws .cr-tiles, .cr-ws .cr-cats, .cr-ws .cr-swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cr-ws .cr-tile { min-height: 150px; }
  .cr-ws .cr-tile .piece-illustration, .cr-tile-q { height: 92px; }
  .cr-result-actions .btn, .cr-save-box .btn { flex: 1 1 100%; }
  .cr-stephead-n { box-shadow: 0 0 0 4px var(--cr-sage); }
  .cr-ws .cr-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .cr-ws .cr-tab { flex-direction: column; justify-content: center; gap: 2px; padding: 6px 4px; font-size: 1rem; line-height: 1.2; text-align: center; min-height: 64px; }
  .cr-chips { gap: 6px; }
  .cr-chips li { font-size: 1rem; padding: 6px 12px; gap: 6px; }
  .cr-chip-k { font-size: .75rem; }
  .cr-ws .cr-today .cr-muted { font-size: .9375rem; }
  .cr-stephead-benefit { font-size: 1.0625rem; }
}
@media (max-width: 340px) {
  .cr-ws .cr-tiles, .cr-ws .cr-cats, .cr-ws .cr-swatches { grid-template-columns: 1fr; }
  .cr-stepnav-label { font-size: .9375rem; }
  .cr-stephead { flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { .cr-ws *, .cr-ws *::before, .cr-ws *::after { transition: none !important; animation: none !important; } }
@media (forced-colors: active) { .cr-status, .cr-tile.on, .cr-cat.on, .swatch.on, .cr-tab.on, .cr-stepnav-link.on, .cr-substep-now { outline: 2px solid CanvasText; } }

:root{--paper:#f7f4ee;--paper-2:#fbf9f5;--white:#fff;--ink:#232620;--olive:#44543d;--olive-deep:#36432f;--mute:#62665e;--sage:#e8eddf;--rule:#d6cfc4;--rule-strong:#b9b0a2;--error:#8a2d22;--error-tint:#f6e3df;--serif:Lora,Charter,Georgia,serif;--sans:Inter,"Segoe UI",system-ui,-apple-system,Roboto,sans-serif;--t-xs:.8125rem;--t-sm:.9375rem;--t-base:1.0625rem;--t-md:1.375rem;--t-xl:clamp(2.1rem,4.6vw,3.4rem);--gutter:20px;--wrap:1240px}
#lovable-badge,#lovable-badge *,lovable-badge,[data-lovable-badge]{display:none!important;visibility:hidden!important;pointer-events:none!important}
@media (display-mode: standalone){.masthead-in{padding-top:env(safe-area-inset-top,0px)}.foot{padding-bottom:calc(44px + env(safe-area-inset-bottom,0px))}}
*,*::before,*::after{box-sizing:border-box}html{-webkit-text-size-adjust:100%;scroll-padding-top:76px}body{margin:0;background:var(--paper);color:var(--ink);font:400 var(--t-base)/1.6 var(--sans);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}h1,h2,h3,p,ul{margin:0}button,input,textarea{font:inherit;color:inherit}button{cursor:pointer}a{color:inherit;text-decoration-thickness:1px;text-underline-offset:3px}a:hover{color:var(--olive)}:focus-visible{outline:2px solid var(--ink);outline-offset:3px;border-radius:2px;box-shadow:0 0 0 5px var(--paper)}#main:focus,h1:focus,h2:focus{outline:none}.wrap{width:100%;max-width:var(--wrap);margin-inline:auto;padding-inline:var(--gutter)}.muted{color:var(--mute)}.small{font-size:var(--t-sm)}h1,h2,.wordmark{font-family:var(--serif);font-weight:400;letter-spacing:-.02em}.h-xl{font-size:var(--t-xl);line-height:1.05}.h-md{font-size:var(--t-md);line-height:1.2}.lede{font-size:clamp(1.1rem,1.6vw,1.3rem);line-height:1.5;max-width:38em}.lede-sm{font-size:1.0625rem;line-height:1.55;max-width:38em;margin:14px 0 6px}.skip{position:absolute;left:12px;top:-60px;z-index:100;background:var(--ink);color:var(--paper);padding:12px 18px}.skip:focus{top:12px}
.masthead{position:sticky;top:0;z-index:30;background:color-mix(in srgb,var(--paper) 94%,transparent);backdrop-filter:blur(8px);border-bottom:1px solid var(--rule)}.masthead-in{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:68px}.wordmark{font-size:1.5rem;text-decoration:none;display:inline-flex;gap:.3em;line-height:1;white-space:nowrap;min-height:44px;align-items:center}.brand-mark{flex:none}.brand-type{display:inline-flex;gap:.3em}.wm-r{color:var(--olive)}.topnav{display:flex;align-items:center;gap:4px}.topnav a{font-size:var(--t-sm);font-weight:500;padding:10px 12px;min-height:44px;display:inline-flex;align-items:center}.topnav .nav-acct{margin-left:8px;border:1px solid var(--ink);text-decoration:none}.page-wrap{padding-block:56px 96px}.availability-wrap{min-height:calc(100dvh - 230px);display:flex;align-items:center;padding-block:clamp(44px,10vh,120px)}.availability-page{max-width:760px;padding:clamp(24px,5vw,64px) 0}.availability-page .eyebrow,.policy-page .eyebrow{font-size:var(--t-xs);font-weight:600;letter-spacing:.12em;color:var(--olive);margin-bottom:18px}.availability-page h1{max-width:12ch;margin-bottom:20px}.availability-page .lede{margin-bottom:18px}.availability-page .row-actions{margin-top:28px}.row-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px 12px;margin-top:22px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 22px;background:transparent;color:var(--ink);border:1px solid var(--ink);border-radius:3px;text-decoration:none;font-weight:500}.btn-primary{background:var(--olive);color:#fff;border-color:var(--olive)}.btn-primary:hover{background:var(--olive-deep);color:#fff}.btn-secondary:hover{background:var(--ink);color:var(--paper)}.btn-quiet{border-color:transparent;text-decoration:underline}.btn-danger{color:var(--error);border-color:var(--error)}.btn:disabled{color:var(--mute);border-color:var(--rule-strong);cursor:not-allowed}.linklike{background:none;border:0;padding:0;text-decoration:underline;color:var(--olive);font-weight:600;min-height:32px}
.foot{border-top:1px solid var(--rule);background:var(--paper-2);padding-block:36px 44px}.foot-in{display:grid;gap:18px}.policy-links{display:flex;flex-wrap:wrap;gap:8px 24px;align-items:center}.policy-links a{display:inline-flex;align-items:center;min-height:44px;font-size:var(--t-sm)}
.policy-wrap{min-height:calc(100dvh - 230px)}.policy-page{max-width:820px;margin-inline:auto;padding-block:12px 32px}.policy-back{display:inline-flex;align-items:center;min-height:44px;margin-bottom:36px;color:var(--olive);font-weight:500}.policy-page .eyebrow{margin-bottom:16px}.policy-page h1{max-width:18ch;font-size:clamp(2.3rem,5vw,3.5rem);line-height:1.08}.policy-updated{font-size:var(--t-sm);margin-top:14px}.policy-section{border-top:1px solid var(--rule);margin-top:34px;padding-top:24px}.policy-section h2{font-family:var(--sans);font-size:1.2rem;font-weight:600;line-height:1.3;margin-bottom:12px}.policy-section p,.policy-section li{max-width:72ch;line-height:1.72}.policy-section p+p{margin-top:14px}.policy-section ul{list-style:disc;padding-left:1.35rem;display:grid;gap:8px}.policy-contact{border-top:1px solid var(--rule);margin-top:38px;padding-top:22px}
.acct{max-width:780px;margin-inline:auto}.acct-head{margin-bottom:24px}.acct h1,.auth h1{font-size:var(--t-xl);line-height:1.05}.acct-sec{padding-block:32px;border-top:1px solid var(--ink)}.acct-jump{display:flex;flex-wrap:wrap;gap:8px 20px;margin-top:12px}.acct-jump a{min-height:44px;display:inline-flex;align-items:center}.acct .callout,.acct .row-actions{margin-top:14px}.callout{background:var(--sage);border-left:3px solid var(--olive);padding:14px 16px;font-size:var(--t-sm);line-height:1.5;margin:16px 0;max-width:46em}.callout-error{background:var(--error-tint);border-left-color:var(--error);color:#5d1c14}.why{margin-top:24px;font-size:var(--t-sm);max-width:44em}.why summary{cursor:pointer;font-weight:600;min-height:44px;display:flex;align-items:center}.danger-zone summary{color:#855027}.support-access{margin-top:18px;padding-top:12px;border-top:1px solid var(--rule)}.support-access ul{list-style:none;padding:0;margin:8px 0 0}.support-access li{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center}.field{display:block;font-weight:500;font-size:var(--t-sm)}.field>label{display:block;margin-bottom:7px}.field input,.field select,.field textarea,.auth-reference input:not([type=checkbox]){width:100%;min-height:50px;background:#fff;border:1px solid var(--rule-strong);border-radius:3px;padding:11px 14px;color:var(--ink)}.field textarea{resize:vertical;line-height:1.5}.field input:hover,.field textarea:hover{border-color:var(--ink)}.stack>*+*{margin-top:18px}.check{display:flex;gap:12px;align-items:flex-start;font-weight:400;font-size:var(--t-sm);line-height:1.45;min-height:32px;padding:6px 0;cursor:pointer}.check input{flex:none;width:22px;height:22px;margin:0;accent-color:var(--olive)}.skeletons{display:grid;gap:14px}.skeleton{height:150px;background:#efebe3;border-radius:3px}.inline-error{color:var(--error);font-weight:500;font-size:var(--t-sm);margin-top:8px}
.auth{max-width:560px;margin-inline:auto}.auth-reference{margin:20px auto 40px;padding:clamp(22px,5vw,36px);background:var(--white);border:1px solid var(--rule);border-radius:8px}.auth-reference h1{font-family:var(--sans);font-size:clamp(36px,5vw,48px);font-weight:500;text-align:center;margin:0 0 16px;letter-spacing:-.03em}.auth-switch{text-align:center;margin-bottom:28px}.auth-switch button{border:0;background:transparent;color:var(--olive);padding:8px;font-weight:700;min-height:44px}.auth-social{display:flex;gap:12px}.auth-social button{display:flex;justify-content:center;align-items:center;gap:12px;width:100%;min-height:54px;border:1px solid var(--rule);border-radius:4px;background:#fff;font-weight:600}.auth-divider{display:flex;align-items:center;gap:12px;margin:26px 0;color:var(--mute);font-size:var(--t-sm)}.auth-divider::before,.auth-divider::after{content:"";height:1px;flex:1;background:var(--rule)}.auth-reference .field label{color:var(--ink);font-size:16px;font-weight:500}.auth-password{position:relative}.auth-password input{padding-right:54px!important}.auth-password button{position:absolute;top:3px;right:3px;width:44px;height:44px;display:grid;place-items:center;background:transparent;border:0;color:var(--mute)}.auth-forgot{padding:0;min-height:44px;margin-top:-12px;background:transparent;border:0;text-align:left;font-weight:700}.auth-submit{width:100%;min-height:56px;border:0;border-radius:4px;background:var(--olive);color:#fff;font-size:18px;font-weight:700}.auth-submit:hover:not(:disabled){background:var(--olive-deep)}.auth-submit:disabled{background:var(--rule);color:var(--mute);cursor:not-allowed}.auth-recovery{display:block;margin:20px auto 0;padding:8px;min-height:44px;background:transparent;border:0;text-decoration:underline;font-weight:700;text-align:center}.auth-footnote{color:var(--mute);font-size:14px;text-align:center;margin-top:20px}.auth-secondary{display:block;background:transparent;border:0;text-decoration:underline;margin:12px auto 0;min-height:44px;padding:8px}
@media(max-width:600px){html{scroll-padding-top:128px}:root{--gutter:16px}.masthead-in{min-height:60px;flex-wrap:wrap;row-gap:4px;padding-block:8px}.wordmark{font-size:1.25rem}.topnav{width:100%;flex:0 0 100%;justify-content:flex-start;flex-wrap:wrap;min-width:0}.topnav a{padding-inline:8px;white-space:nowrap}.page-wrap{padding-block:36px 64px}.policy-back{margin-bottom:24px}.policy-section{margin-top:26px;padding-top:20px}.policy-section h2{font-size:1.1rem}.acct-sec{padding-block:24px}.auth-reference{margin-top:8px}.foot{padding-block:28px 32px}}
/* Keep primary navigation reachable without forcing the outfit art wider than the phone. */
.masthead-in{min-width:0}
.wordmark{flex:none}
.topnav{min-width:0}
.topnav a{white-space:nowrap}
@media(max-width:760px){.topnav a[href="#/install"],.topnav a[href="#/closet"]{display:none}}
@media(max-width:480px){.topnav .nav-acct{margin-left:0}}

/* The mobile masthead is one compact row; secondary navigation drops away first. */
@media(max-width:760px){.masthead-in{min-height:58px;flex-wrap:nowrap;row-gap:0;padding-block:8px;gap:8px}.wordmark{flex:0 1 auto;gap:.42rem}.brand-type{flex-direction:row;white-space:nowrap}.topnav{width:auto;flex:0 0 auto;justify-content:flex-end;flex-wrap:nowrap;gap:0}.topnav a{padding-inline:6px;white-space:nowrap}.topnav .nav-acct{margin-left:2px;padding-inline:8px}}
@media(max-width:420px){.topnav a[href="/sales"]{display:none}}
@media(max-width:350px){.topnav .nav-acct{margin-left:0;padding-inline:8px}}

/* Narrow-screen public navigation: offer and account stay visible. */
.nav-short{display:none}
@media(max-width:420px){.topnav a[href="/sales"]{display:inline-flex}.topnav a[href="/sales"] .nav-full{display:none}.topnav a[href="/sales"] .nav-short{display:inline}.topnav a[href="#/"]{display:none}.topnav a[href="#/install"]{display:none}}
@media(max-width:350px){.masthead-in{gap:6px}.wordmark{gap:.25rem;font-size:.82rem}.brand-mark{width:30px;height:30px}.topnav a{padding-inline:4px;font-size:.75rem}.topnav .nav-acct{padding-inline:6px}}

/* Give the installed phone app room for all account actions. */
@media(max-width:600px){.masthead-in{flex-wrap:wrap;gap:4px 12px}.wordmark{max-width:100%}.topnav{width:100%;flex:1 0 100%;justify-content:flex-start;flex-wrap:wrap}.topnav a{min-height:44px}.topnav a[href="/sales"]{display:inline-flex}.topnav a[href="/sales"] .nav-full{display:none}.topnav a[href="/sales"] .nav-short{display:inline}}

.photo-batch,.photo-batch > *,.pieces-tab,.photo-batch .field{min-width:0;max-width:100%}.photo-batch{grid-template-columns:minmax(0,1fr);overflow-wrap:anywhere}.photo-batch input{max-width:100%;min-width:0}
/* Keep the public shell from restoring an overlapping sticky phone header. */
@media(max-width:899px){.masthead{position:relative;top:auto}html{scroll-padding-top:64px}}
