@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); }
.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; }
.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-block; 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: center; }
.hero-copy h1 { max-width: 9em; }
.hero-copy .lede { margin-top: 28px; }
.hero-actions { margin-top: 34px; }
.hero-terms { margin-top: 28px; font-size: var(--t-sm); max-width: 36em; padding-top: 18px; border-top: 1px solid var(--ink); }
.hero-terms b { font-weight: 600; }
.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-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-draft { font-size: var(--t-xs); color: var(--clay); font-weight: 500; margin-top: 12px; }

/* ---------- 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; }
.is-preview .ix-t { font-weight: 600; }
.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; }
.inc-pages { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; align-items: start; }
.pg { grid-column: span 3; }
.pg img { width: 100%; height: auto; border: 1px solid var(--rule); background: var(--white); aspect-ratio: 520 / 673; object-fit: cover; }
.pg figcaption { font-size: var(--t-xs); color: var(--mute); margin-top: 8px; line-height: 1.4; }
.pg-0 { grid-column: 1 / span 4; }
.pg-1 { grid-column: 4 / span 3; margin-top: -16px; }
.pg-2 { grid-column: 1 / span 3; }

/* 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: 32px; 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; }
.sample-flag { font-size: var(--t-sm); background: var(--sage); border-left: 3px solid var(--olive); padding: 10px 12px; margin-bottom: 20px; max-width: 46em; }
.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; }
.preview-note { margin-top: 36px; }
.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; }
.sample-box { margin-top: 32px; padding: 18px; background: var(--sage); border-left: 3px solid var(--olive); font-size: var(--t-sm); }
.sample-box .row-actions { margin-top: 12px; }
.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 1fr; gap: 72px; }
  .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) {
  .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; }
  .topnav a:not(.nav-acct):not([aria-current]) { display: none; }
}

@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 {padding:0; border-color:var(--rule); overflow:visible; background:var(--paper);}
.outfit-illustration {display:block; 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; }
}

/* 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; }
