/* KitLab — landing styles.
   All colors, fonts, radii, spacing and the single shadow come from DESIGN.md tokens.
   --white is the DESIGN.md button spec color (primary = navy bg + white text,
   secondary = white bg + navy border); it is not a new brand color. */

:root {
  /* DESIGN.md tokens */
  --navy: #0B1F3A;
  --ice-red: #D7263D;
  --ice-blue: #7FB2E5;
  --paper: #F7F8FA;
  --ink: #101418;
  --line: #D9DEE6;
  --white: #FFFFFF; /* DESIGN.md button spec: white text / white background */

  /* Token-derived tints (navy alpha only — no new hues) */
  --navy-06: rgba(11, 31, 58, 0.06);
  --navy-08: rgba(11, 31, 58, 0.08);

  /* DESIGN.md: spacing base 8px */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s6: 48px;
  --s8: 64px;
  --s12: 96px;

  /* DESIGN.md: card 16px, button 999px */
  --radius-card: 16px;
  --radius-pill: 999px;

  /* DESIGN.md: single allowed shadow */
  --shadow-1: 0 8px 24px rgba(11, 31, 58, .12);

  /* DESIGN.md fonts: display Archivo (fallback Arial Narrow), body Inter/system */
  --font-display: Archivo, 'Arial Narrow', sans-serif;
  --font-body: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

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

/* FIX STICK ROUND 2: no overflow-x masking on html (clip/hidden only hides the
   symptom from scrollWidth while the layout stays too wide — that masked round
   1). The layout itself must fit the viewport; verify-mobile.cjs measures
   every element box with zero masking. */
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

img, svg { max-width: 100%; height: auto; }

.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--navy);
  overflow-wrap: break-word;
}

h1.display { font-size: clamp(38px, 10vw, 64px); font-weight: 900; margin: 0 0 var(--s3); }
h2.display { font-size: clamp(28px, 6vw, 40px); margin: 0 0 var(--s2); }
h3.display { font-size: 20px; margin: 0 0 var(--s1); }

.shell {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--s2);
}
.shell.narrow { max-width: 640px; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--s2);
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  text-decoration: none;
  margin-right: auto;
  min-width: 0;
  /* FIX STICK ROUND 2: a flex item only establishes a shrink container for its
     descendants when it is itself a scroll/clip container. Without this the
     .brand-name ellipsis could never engage, so the brand chain contributed an
     unshrinkable min-content width to .header-inner (Chrome measured
     min-content 635.8px while the >=720px nav is displayed). */
  overflow: hidden;
  /* STICK RENAME: the lockup is now a fixed-geometry image (84.3px wide, i.e. narrower
     than the old letter-spaced wordmark), so it must never shrink: with the default
     flex-shrink and min-width:0 the frame was clipped to 65.9px at 390px and cut the
     wordmark. The brand chain's min-content is now just the image, well under the
     390px measure. */
  flex: 0 0 auto;
}
/* STICK RENAME: brand lockup. assets/brand/kitlab-logo-final.png is a 1024x1024 file
   whose artwork (module-grid mark + wordmark) occupies only x 213..810 / y 439..584, so
   the art is 14% of the file height and object-fit alone cannot tight-crop it. A clip
   frame plus one scale knob renders the file as-is (no crop tooling, no re-render) and
   keeps the header's 64px line box stable. Every length below is the asset's own pixel
   geometry times that scale, not a new design token. */
.brand-logo-frame {
  --brand-logo-scale: 0.14;
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
  width: calc(602px * var(--brand-logo-scale));   /* 598px mark + 2px bleed each side */
  height: calc(150px * var(--brand-logo-scale));  /* 146px mark + 2px bleed top/bottom */
}
.brand-logo {
  position: absolute;
  left: calc(-211px * var(--brand-logo-scale));
  top: calc(-437px * var(--brand-logo-scale));
  width: calc(1024px * var(--brand-logo-scale));
  height: calc(1024px * var(--brand-logo-scale));
  max-width: none;
}
/* The logo art already draws the "KitLab" wordmark, so the text stays in the DOM as the
   accessible name of the brand link and is visually collapsed (same technique as
   .kit-file-input below) instead of repeating the wordmark next to the image. */
.brand-name {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.site-nav {
  display: none;
  gap: var(--s3);
}
.site-nav a {
  color: var(--navy);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.site-nav a:hover { color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  padding: 12px var(--s3);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-secondary { background: var(--white); color: var(--navy); border-color: var(--navy); }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
  padding: 8px var(--s2);
  white-space: nowrap;
}

/* ---------- sections ---------- */
.section { padding: var(--s8) 0; }
.section-alt { background: var(--white); }
.section-title { margin-bottom: var(--s2); }
.section-sub { color: var(--ink); margin: 0 0 var(--s4); max-width: 560px; }
.eyebrow {
  color: var(--ice-red);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 var(--s2);
}
.lead { font-size: 17px; margin: 0 0 var(--s3); max-width: 520px; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-1);
  padding: var(--s3);
}
.section-alt .card { background: var(--paper); }

/* ---------- 1. hero ---------- */
.hero { padding-top: var(--s6); }
.hero-grid { display: grid; gap: var(--s6); }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--s2); }
/* FIX STICK ROUND 2: below 720px the two hero CTAs stack as full-width rows
   instead of relying on flex-wrap, so no button can ever reach past the right
   edge. From 720px up they stay side by side exactly as before. */
@media (max-width: 719.98px) {
  .cta-row { flex-direction: column; align-items: stretch; }
}

.hero-preview {
  display: grid;
  gap: var(--s2);
  align-content: start;
}
/* FIX STICK: below 720px the three preview frames stack in one column;
   the 1fr 1fr grid now only applies from 720px up (see media query).
   FIX STICK: grid/flex items default to min-width:auto and cannot shrink
   below their intrinsic min-content width, which let the hero row push the
   document wider than a 390px viewport. Pin every shrinkable child to 0. */
.hero-grid > *,
.hero-preview > *,
.cta-row > *,
.steps > *,
.products-grid > *,
.demo-controls > *,
.demo-controls label,
.demo-slots > *,
.pilot-form > *,
.header-inner > * {
  min-width: 0;
}
.btn { max-width: 100%; }
.sticker-cluster,
.slot-chip { max-width: 100%; }
.preview-num,
.preview-name { max-width: 100%; }
.eyebrow,
.preview-tag,
.slot-label { overflow-wrap: anywhere; }
.lead,
.section-sub { overflow-wrap: break-word; }
.preview-frame {
  position: relative;
  border-radius: var(--radius-card);
  border: 2px solid var(--navy);
  background: var(--white);
  color: var(--navy);
  padding: var(--s3) var(--s2) var(--s4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  min-height: 140px;
  box-shadow: var(--shadow-1);
}
.frame-case {
  grid-column: 1 / -1;
  background: var(--navy);
  color: var(--white);
  border-radius: 28px;
}
.frame-case .preview-num, .frame-case .preview-name { color: var(--white); }
.frame-case::before {
  content: "";
  position: absolute;
  top: var(--s2);
  right: var(--s2);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--ice-blue);
}
.frame-sticker {
  background: var(--paper);
  border-style: dashed;
}
.sticker-cluster {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border: 2px solid var(--white);
  outline: 2px dashed var(--ice-blue);
  outline-offset: 4px;
  border-radius: var(--radius-card);
  background: var(--navy);
  color: var(--white);
  padding: var(--s1) var(--s2);
}
.sticker-cluster b { font-size: 28px; }
.sticker-cluster i { font-style: normal; font-size: 12px; letter-spacing: 0.06em; }
.frame-hoodie { background: var(--navy); color: var(--white); }
.frame-hoodie .preview-num, .frame-hoodie .preview-name { color: var(--ice-blue); }
.preview-num { font-size: 40px; font-weight: 900; }
.preview-name { font-size: 14px; letter-spacing: 0.12em; }
.preview-tag {
  position: absolute;
  bottom: var(--s1);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ice-blue);
}
.frame-sticker .preview-tag { color: var(--navy); }
.preview-team {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 18px;
  letter-spacing: 0.12em;
  margin: 0;
}

/* ---------- 2. how it works ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s2);
}
.step-num {
  display: inline-block;
  font-size: 32px;
  font-weight: 900;
  color: var(--ice-blue);
  margin-bottom: var(--s1);
}

/* ---------- 3. products ---------- */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s2);
}
.product-index {
  display: block;
  font-size: 14px;
  color: var(--ice-blue);
  margin-bottom: var(--s1);
}
.product-card p { margin: 0; font-size: 15px; }
.pack-card {
  background: var(--navy);
  border-color: var(--navy);
}
.pack-card h3.display { color: var(--white); }
.pack-card p { color: var(--line); }
.price {
  color: var(--white);
  font-size: 32px;
  margin: var(--s2) 0 var(--s1);
}
.pack-tee { font-size: 14px; }
.pack-tee b { color: var(--white); font-size: 20px; }

/* ---------- 4. fundraiser ---------- */
.fund-card { max-width: 560px; }
.fund-mock { font-weight: 700; color: var(--navy); margin: 0 0 var(--s2); }
.progress {
  height: 16px;
  border-radius: var(--radius-pill);
  background: var(--line);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--ice-blue);
  border-radius: var(--radius-pill);
}
.fund-raised { margin: var(--s2) 0 var(--s1); font-size: 24px; }
.fund-note { font-size: 13px; margin: 0; }

/* ---------- 5. roster demo skeleton ---------- */
.demo-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s2);
  margin-bottom: var(--s3);
}
.demo-controls label { display: grid; gap: var(--s1); font-size: 14px; font-weight: 600; color: var(--navy); }
input[type="text"] {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 10px var(--s2);
  width: 100%;
  min-width: 0;
}
input[type="text"]:focus { outline: 2px solid var(--ice-blue); border-color: var(--navy); }

.demo-slots {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s2);
  margin-bottom: var(--s3);
}
.demo-slot {
  position: relative;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  padding: var(--s4) var(--s2) var(--s6);
  overflow: hidden;
}
.slot-label {
  position: absolute;
  bottom: var(--s2);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
}
.slot-sticker { background: var(--paper); }
.slot-case { background: var(--navy); }
.slot-case .slot-label { color: var(--ice-blue); }
.slot-hoodie { background: var(--navy); }
.slot-hoodie .slot-label { color: var(--ice-blue); }

.slot-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-card);
  padding: var(--s2) var(--s3);
  border: 2px solid var(--white);
  outline: 2px dashed var(--ice-blue);
  outline-offset: 4px;
}
.slot-chip b { font-size: 32px; }
.slot-chip i { font-style: normal; font-size: 13px; letter-spacing: 0.08em; }

.slot-shell-hole {
  position: absolute;
  top: var(--s2);
  right: var(--s2);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--ice-blue);
}
.slot-num {
  font-size: 56px;
  font-weight: 900;
  color: var(--white);
}
.slot-hoodie .slot-num { color: var(--ice-blue); }
.slot-namebar, .slot-name {
  font-size: 15px;
  letter-spacing: 0.14em;
  color: var(--white);
  padding: 4px var(--s2);
  max-width: 100%;
}
.slot-hoodie .slot-name { color: var(--ice-blue); }
.slot-namebar { border-top: 2px solid var(--ice-red); border-bottom: 2px solid var(--ice-red); }

/* DESIGN.md layout lock: long names (>=10 chars) and 3-digit numbers drop one size step */
.tight .slot-num, .tight.slot-num { font-size: 40px; }
.tight .slot-namebar, .tight .slot-name, .tight.slot-namebar, .tight.slot-name { font-size: 12px; }
.tight .slot-chip b { font-size: 26px; }
.tight .slot-chip i { font-size: 11px; }

.demo-note { font-size: 13px; margin: 0; }

/* ---------- 5b. roster grid (Stick 2: per-player previews) ---------- */
.roster-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s2);
  margin-top: var(--s3);
  min-width: 0;
}
.roster-card {
  padding: var(--s2);
  display: grid;
  gap: var(--s2);
  cursor: pointer;
  border: 2px solid transparent;
  min-width: 0;
}
.roster-card.is-active { border-color: var(--navy); }
.roster-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s1);
  min-width: 0;
}
.roster-head label {
  display: grid;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
  min-width: 0;
}
.roster-head input {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  width: 100%;
  min-width: 0;
}
.roster-head input:focus { outline: 2px solid var(--ice-blue); border-color: var(--navy); }
.roster-meta {
  margin: 0;
  font-size: 12px;
  color: var(--navy);
  overflow-wrap: anywhere;
}
.roster-tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s1);
  min-width: 0;
}
.roster-tile {
  display: grid;
  gap: 4px;
  padding: var(--s1);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--white);
  min-width: 0;
}
.roster-tile svg { display: block; width: 100%; height: auto; }
.roster-tile-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
  overflow-wrap: anywhere;
}

/* SVG paint classes — every fill/stroke resolves to a DESIGN.md token var. */
.tk-navy-fill { fill: var(--navy); }
.tk-red-fill { fill: var(--ice-red); }
.tk-blue-fill { fill: var(--ice-blue); }
.tk-paper-fill { fill: var(--paper); }
.tk-ink-fill { fill: var(--ink); }
.tk-white-fill { fill: var(--white); }
.tk-line-fill { fill: var(--line); }
.tk-none-fill { fill: none; }
.tk-white-stroke { stroke: var(--white); }
.tk-line-stroke { stroke: var(--line); }
.tk-navy-stroke { stroke: var(--navy); }
.tk-red-stroke { stroke: var(--ice-red); }
.tk-display-text {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.tk-body-text { font-family: var(--font-body); font-weight: 600; }

/* ---------- 6. pilot form ---------- */
.pilot-form { display: grid; gap: var(--s2); }
.pilot-form label { display: grid; gap: var(--s1); font-size: 14px; font-weight: 600; color: var(--navy); }
.pilot-msg { margin: 0; font-size: 14px; color: var(--navy); min-height: 20px; }

/* ---------- 6b. single-order shop (Stick 3) ---------- */
.shop-grid { display: grid; gap: var(--s2); }
.shop-config, .shop-right { display: grid; gap: var(--s2); min-width: 0; align-content: start; }
.shop-card { display: grid; gap: var(--s2); }
.shop-step { font-size: 16px; margin: 0 0 var(--s1); color: var(--navy); }
.shop-products { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s1); }
.shop-prod {
  display: grid;
  gap: 2px;
  text-align: left;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius-card);
  padding: 10px 12px;
  cursor: pointer;
  font-family: var(--font-body);
  min-width: 0;
}
.shop-prod span { font-size: 14px; font-weight: 700; color: var(--navy); }
.shop-prod b { font-size: 14px; color: var(--ink); font-family: var(--font-display); }
.shop-prod.is-selected { border-color: var(--navy); background: var(--navy-06); }
.shop-field { display: grid; gap: var(--s1); font-size: 14px; font-weight: 600; color: var(--navy); min-width: 0; }
.shop-field label { min-width: 0; }
.shop-field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 10px var(--s2);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  min-width: 0;
  max-width: 100%;
}
.shop-field select:focus { outline: 2px solid var(--ice-blue); outline-offset: 1px; }
.shop-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s1); min-width: 0; }
/* Stick CURATION item 10 (DESIGN-DOOR polish note - 390 Name placeholder
   clip).  Measured on the route that actually renders the field, #/design/tee
   (route "studio"; #shop is data-route="studio", so on #/design?src=* the
   field is hidden and there is no #design-main element in the tree at all):
   at 390px the Name input is 150px wide with a 116px content box, while its
   placeholder "Surname on the print" paints 150.86px in the field's own 14px
   font - 34.86px too wide, so the hint is cut after "Surname on the ..." with
   no ellipsis (a placeholder is not an ellipsis container; scrollWidth 148 ==
   clientWidth 148, so nothing reports it).  Desktop is clean at 231px/199px.
   The row is the only field pair in the app still split at phone width;
   .proof-wall, .hero-preview and .collect-row all collapse to one column on
   the same 559.98px boundary, and skin-b.css already lets the other studio
   fields run to 100% below 720px.  One column here gives the field a 308px
   box and a 274px content box, so the whole hint paints with 123px to spare,
   the ZH hint is safe too, and no wording (EN or ZH) has to be shortened to
   make room for layout. */
@media (max-width: 559.98px) {
  .shop-row2 { grid-template-columns: 1fr; }
}
.shop-seg { display: flex; flex-wrap: wrap; gap: var(--s1); min-width: 0; }
.shop-seg-btn {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  cursor: pointer;
  min-width: 0;
}
.shop-seg-btn.is-selected { border-color: var(--navy); background: var(--navy-06); }
.shop-size-cap { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--navy); align-self: center; }
.shop-swatches { display: flex; gap: var(--s2); }
.shop-swatch {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--line);
  cursor: pointer;
  padding: 0;
}
.shop-swatch[data-color="black"] { background: var(--ink); }
.shop-swatch[data-color="white"] { background: var(--white); }
.shop-swatch.is-selected { border-color: var(--navy); outline: 2px solid var(--ice-blue); outline-offset: 2px; }
.shop-note { font-size: 12px; margin: 0; color: var(--navy); }
.shop-preview {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: var(--s2);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  min-width: 0;
}
.shop-preview svg { max-width: 100%; max-height: 280px; height: auto; }
.shop-preview-meta { font-size: 13px; min-height: 20px; margin: 0; color: var(--navy); overflow-wrap: anywhere; }
.shop-add { width: 100%; }
.order-items { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s1); min-width: 0; }
.order-item {
  display: flex;
  align-items: center;
  gap: var(--s1);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 8px 12px;
  min-width: 0;
}
.order-item-main { font-size: 13px; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.order-item-price { margin-left: auto; font-weight: 700; color: var(--navy); white-space: nowrap; font-size: 13px; }
.order-item-del {
  border: none;
  background: transparent;
  color: var(--navy);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.order-empty { font-size: 13px; margin: 0; color: var(--navy); }
.order-total { display: flex; justify-content: space-between; gap: var(--s1); color: var(--navy); margin: var(--s1) 0 0; }
.order-note { font-size: 12px; margin: 0; color: var(--navy); }
.order-actions { display: flex; flex-wrap: wrap; gap: var(--s1); margin-top: var(--s1); }

/* ---------- 6b. Stick 8 · AI Design panel ----------
   Same tokens as the rest of the sheet: no new colours, radii, shadows or fonts.
   The template-art path is relative to landing/, so it never leaves the repo. */
.design-card { position: relative; }
.design-prompt {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 10px var(--s2);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  min-width: 0;
  max-width: 100%;
}
.design-prompt:focus { outline: 2px solid var(--ice-blue); outline-offset: 1px; }
.design-actions { display: flex; flex-wrap: wrap; gap: var(--s1); }
.design-generate[disabled] { opacity: 0.6; cursor: default; }
.design-status {
  font-size: 13px;
  margin: 0;
  color: var(--navy);
  min-height: 20px;
  overflow-wrap: anywhere;
}
.design-notice {
  font-size: 13px;
  margin: 0;
  color: var(--navy);
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--ice-red);
  border-radius: var(--radius-card);
  padding: var(--s1) var(--s2);
  overflow-wrap: anywhere;
}
.design-candidates {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: var(--s1);
  min-width: 0;
}
.design-cand {
  display: grid;
  gap: 4px;
  justify-items: stretch;
  text-align: left;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius-card);
  padding: var(--s1);
  cursor: pointer;
  font-family: var(--font-body);
  min-width: 0;
  max-width: 100%;
}
.design-cand.is-selected { border-color: var(--navy); background: var(--navy-06); }
.design-cand-img { display: block; width: 100%; height: auto; border-radius: var(--radius-card); }
.design-cand-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-card);
  font-family: var(--font-display);
  overflow-wrap: anywhere;
}
.design-cand-label { font-size: 12px; font-weight: 700; color: var(--navy); overflow-wrap: anywhere; }
.design-cand-meta { font-size: 10px; color: var(--navy); overflow-wrap: anywhere; }
.design-card > *,
.design-candidates > *,
.design-actions > *,
.team-order-actions > * { min-width: 0; }

/* "custom design attached" badge on every preview that received the design */
.shop-preview { position: relative; }
.roster-tile { position: relative; }
.design-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-pill);
  padding: 2px 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  max-width: calc(100% - 16px);
  overflow-wrap: anywhere;
  z-index: 1;
}

.team-order-actions { display: flex; flex-wrap: wrap; gap: var(--s1); margin-top: var(--s1); }

/* ---------- 7. footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--line);
  padding: var(--s6) 0;
}
.footer-privacy {
  color: var(--white);
  font-size: 16px;
  margin: 0 0 var(--s2);
  line-height: 1.4;
}
.footer-note { font-size: 13px; margin: 0; }

/* ---------- from 720px: side-by-side layouts ---------- */
@media (min-width: 720px) {
  .site-nav { display: flex; }
  .header-inner { gap: var(--s3); }
  .section { padding: var(--s12) 0; }
  .hero { padding-top: var(--s8); }
  /* Stick HERO-H3: copy left, poster right, as two separate cells.  The split
     is 38/62 of the space the grid actually has to give (the column gap is
     taken out of the measure first, not out of either column), and both tracks
     are minmax(0,..) so a wide render can never push the band past the edge. */
  .hero-grid { grid-template-columns: minmax(0, 38fr) minmax(0, 62fr); align-items: center; gap: var(--s8); }
  .hero-preview { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .demo-controls { grid-template-columns: repeat(3, 1fr) auto; align-items: end; }
  .demo-slots { grid-template-columns: repeat(3, 1fr); }
  .roster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roster-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .roster-card.stacked .roster-tiles { grid-template-columns: 1fr; }
  .shop-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}

/* ============================================================
   8. Stick 10 — consumer-first retail restructure
   Retail chrome stays clean and sharp (DESIGN.md 「零售逻辑优先」);
   the comic language lives only in the artwork layer
   (DESIGN.md 「类漫画竞技风」). Tokens only — no new colours.
   ============================================================ */

/* Halftone pattern host: 0x0, participates in the layout but never paints. */
.tk-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---- sports-brand display treatment for section headers ---- */
.section-title {
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-weight: 900;
}
/* diagonal energy accent above every section header (skewed block, token colour) */
.section-title::before {
  content: "";
  display: block;
  width: 48px;
  height: 6px;
  margin-bottom: var(--s1);
  background: var(--ice-red);
  transform: skewX(-20deg);
  transform-origin: left center;
}

/* ---- hero: price-from line + comic product composition ---- */
.hero-price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
  margin: 0 0 var(--s3);
  max-width: 520px;
}
.hero-art { min-width: 0; }
.hero-art svg { display: block; width: 100%; height: auto; }
.hero-art img { display: block; width: 100%; height: auto; }
/* ---- Stick HERO-H3: hero structure (copy block + poster block) ------------
   Structure only, mobile first: the copy is a block of text and the poster is
   a block image, in that DOM order, so the two stack in reading order below
   the breakpoint.  The poster skin and every colour live in skin-b.css.
   min-width:0 on every level is the same guard the retail grid uses, so a wide
   render can never push the band past the edge. */
.hero-copy { min-width: 0; }
.hero-art > * { min-width: 0; }

/* ---- product rail (PDP-style retail cards) ---- */
.retail-section { background: var(--white); }
.retail-section .card { background: var(--white); }
.retail-grid { display: grid; gap: var(--s2); grid-template-columns: 1fr; }
.retail-card {
  display: grid;
  gap: var(--s1);
  align-content: start;
  min-width: 0;
}
.retail-card-art svg { display: block; width: 100%; height: auto; }
/* Stick DISPLAY-WIRE: a product with a curated display set shows that file on
   the card instead of the drawn composite.  Same box rule as the svg it
   replaces, so a card keeps the shape it has always had: art fills the width,
   its own aspect ratio sets the height, and the min-width guard above keeps a
   wide picture from pushing the grid past the edge. */
.retail-card-art img { display: block; width: 100%; height: auto; }
.retail-card-name {
  margin: 0;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-weight: 900;
}
.retail-card-price { display: flex; align-items: baseline; gap: var(--s1); margin: 0; }
.retail-card-from {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
}
.retail-card-value { font-size: 22px; color: var(--ink); font-weight: 900; }
.retail-card-dots { display: flex; gap: 6px; }
.dot {
  width: 18px;
  height: 18px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--line);
}
.dot-black { background: var(--ink); }
.dot-white { background: var(--white); }
.retail-personalise { justify-self: start; }
.pack-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  margin: var(--s3) 0 0;
  padding: var(--s2);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--paper);
  font-size: 15px;
  overflow-wrap: anywhere;
}

/* grid: 1 → 2 → 3 columns (560 / 720) */
@media (min-width: 560px) {
  .retail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 720px) {
  .retail-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
}

/* shrink containers so card art and long ZH names can never push past the edge */
.hero-art > *,
.retail-grid > *,
.retail-card > *,
.retail-card-art > *,
.retail-section > * { min-width: 0; }

/* Stick STARTERGRID: the .how-footnote / .how-footnote-link rules that lived
   here are gone with the line they styled — the team entry is the outlined
   card at #team-entry now, and no copy promises a band. */

/* ---- For Teams supplement band (quieter than the retail sections) ---- */
.teams-band {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.teams-band .card { box-shadow: none; }
.teams-block { margin-bottom: var(--s6); min-width: 0; }
.team-band-title { font-size: clamp(24px, 5vw, 32px); }
.team-band-sub { max-width: 640px; }
.team-block-title { font-size: 20px; }
.team-band-note { font-size: 13px; margin: var(--s3) 0 0; color: var(--navy); }

/* ---- Stick 15: team vault + one-click reorder ---- */
.vault-block { border-top: 1px solid var(--line); padding-top: var(--s6); }
.vault-head {
  display: flex; flex-wrap: wrap; align-items: flex-start;
  justify-content: space-between; gap: var(--s2); min-width: 0;
}
.vault-head .section-sub { max-width: 640px; min-width: 0; }
.vault-head > .btn { flex: 0 0 auto; }
.vault-source {
  font-size: 12px; font-weight: 700; margin: var(--s1) 0 0;
  padding: var(--s1) var(--s2); border-radius: var(--radius-pill);
  background: var(--navy-06); color: var(--navy); min-width: 0;
}
.vault-source[data-source="local"] { background: var(--navy); color: var(--white); }
.vault-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s2); margin-top: var(--s2); min-width: 0; }
.vault-empty { font-size: 13px; color: var(--navy); margin: 0; }
.vault-card {
  min-width: 0; padding: var(--s2); border: 1px solid var(--line);
  border-radius: var(--radius-card); background: var(--white);
}
.vault-card-top { display: flex; align-items: center; gap: var(--s2); min-width: 0; }
.vault-thumb {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 8px;
  border: 1px solid var(--line); object-fit: cover; background: var(--paper);
}
.vault-card-meta { min-width: 0; }
.vault-card-name {
  font-family: var(--font-display); font-weight: 800; font-size: 16px;
  color: var(--navy); letter-spacing: -0.01em; word-break: break-word;
}
.vault-card-sub { font-size: 12px; color: var(--ink); }
.vault-card-actions { display: flex; flex-wrap: wrap; gap: var(--s1); margin-top: var(--s2); }
.vault-card-actions > * { min-width: 0; }
.vault-reorder { margin-top: var(--s4); padding: var(--s3); min-width: 0; }
.vault-reorder-title { font-size: 18px; margin: 0 0 var(--s1); color: var(--navy); }
.vault-reorder-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--s2); margin: var(--s2) 0; min-width: 0;
}
.vault-reorder-grid label { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.vault-reorder-grid span, .vault-products + .shop-cap { font-size: 12px; font-weight: 700; color: var(--navy); }
.vault-reorder-grid input, .vault-reorder-grid select {
  min-width: 0; width: 100%; padding: 8px; border: 1px solid var(--line);
  border-radius: 8px; font-family: var(--font-body); font-size: 14px; color: var(--ink);
  background: var(--white);
}
.shop-cap + .vault-products { margin-top: var(--s1); }
.vault-products { display: flex; flex-wrap: wrap; gap: var(--s1); margin-bottom: var(--s2); }
.vault-product {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  font-size: 13px; color: var(--navy); background: var(--white); cursor: pointer;
}
.vault-product.is-selected { border-color: var(--navy); background: var(--navy); color: var(--white); }
.vault-reorder-actions { display: flex; flex-wrap: wrap; gap: var(--s1); }
.vault-order-wrap { margin-top: var(--s2); min-width: 0; }
.vault-order {
  margin: var(--s1) 0 0; padding: var(--s2); max-height: 320px; overflow: auto;
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
  font-size: 11px; line-height: 1.4; white-space: pre; word-break: break-all;
}

/* ---- Stick 17: per-player proofing wall ------------------------------- */
.proof-block { border-top: 1px solid var(--line); padding-top: var(--s6); }
.proof-summary { display: flex; flex-wrap: wrap; gap: var(--s1); margin: var(--s2) 0; min-width: 0; }
.proof-chip {
  font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); color: var(--navy); min-width: 0; overflow-wrap: anywhere;
}
.proof-chip.is-hard { background: var(--ice-red); border-color: var(--ice-red); color: var(--white); }
.proof-chip.is-soft { background: var(--ice-blue); border-color: var(--ice-blue); color: var(--navy); }
.proof-chip.is-ok { background: var(--navy); border-color: var(--navy); color: var(--white); }
.proof-toolbar { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: flex-end; margin-bottom: var(--s2); }
.proof-layout { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: var(--navy); min-width: 0; }
.proof-layout select {
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 6px 12px; font-family: var(--font-body); color: var(--ink); min-width: 0;
}
.proof-toolbar .btn:disabled { opacity: .45; cursor: not-allowed; }
.proof-wall { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s2); min-width: 0; }
.proof-card { padding: var(--s2); display: grid; gap: var(--s1); min-width: 0; border: 2px solid var(--line); }
.proof-card.has-hard { border-color: var(--ice-red); }
.proof-card.has-soft { border-color: var(--ice-blue); }
.proof-card.is-confirmed { border-color: var(--navy); }
.proof-card-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; }
.proof-who { font-weight: 700; color: var(--navy); font-size: 13px; overflow-wrap: anywhere; min-width: 0; }
.proof-state { margin-left: auto; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--navy); }
.proof-fields { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 6px; min-width: 0; }
.proof-fields label { display: grid; gap: 4px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--navy); min-width: 0; }
.proof-fields input, .proof-fields select {
  font-family: var(--font-body); font-size: 13px; border: 1px solid var(--line);
  border-radius: 8px; padding: 6px 8px; width: 100%; min-width: 0;
}
.proof-flags { display: grid; gap: 6px; min-width: 0; }
.proof-flag {
  font-size: 11px; line-height: 1.45; padding: 6px 8px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink); overflow-wrap: anywhere;
}
.proof-flag .proof-sev { font-weight: 800; margin-right: 6px; }
.proof-flag.is-hard { border-left: 4px solid var(--ice-red); }
.proof-flag.is-hard .proof-sev { color: var(--ice-red); }
.proof-flag.is-soft { border-left: 4px solid var(--ice-blue); }
.proof-flag.is-soft .proof-sev { color: var(--navy); }
.proof-overflow { font-size: 11px; font-weight: 700; color: var(--ice-red); overflow-wrap: anywhere; }
.proof-overflow-bar { height: 8px; border-radius: var(--radius-pill); background: var(--line); margin-top: 4px; position: relative; overflow: hidden; }
.proof-overflow-bar > i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ice-red); }
.proof-overflow-bar > b { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--navy); }
.proof-items { font-size: 11px; color: var(--navy); margin: 0; overflow-wrap: anywhere; }
.proof-tiles { display: grid; gap: var(--s1); min-width: 0; }
.proof-tile { display: grid; gap: 4px; padding: var(--s1); border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--white); min-width: 0; }
.proof-tile svg { display: block; width: 100%; height: auto; }
.proof-tile-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--navy); }
.proof-confirm { width: 100%; }
@media (max-width: 559.98px) {
  .proof-wall { grid-template-columns: 1fr; }
}

/* ---- persistent cart / order-summary entry (visible at every width) ---- */
.nav-cart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  padding: 6px 12px;
  border: 2px solid var(--navy);
  border-radius: var(--radius-pill);
  color: var(--navy);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.nav-cart-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* ---- account chip + sign-in surface (stick MEMBERSHIP-1) ----
   The chip lives in the header beside the cart entry at every width, so it may
   shrink and ellipsis but never widen the header. The remaining-generations
   figure is a desktop luxury: below 720px there is no room for it, and the same
   number is printed inside the sign-in card and the refusal lines. */
.btn-account {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: min(46vw, 240px);
  overflow: hidden;
}
.account-chip-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* STICK MEMBERSHIP-1: .header-inner > * carries min-width: 0, so the language toggle
   was free to shrink below its own one-word label. It is not a clip container, so the
   label spilled instead of ellipsising: at 390px, signed in with a long e-mail in the
   chip and the ZH dictionary loaded, .header-inner measured scrollWidth 398 against a
   390px viewport. The toggle is fixed-geometry ("中文" / "English"), so it is pinned
   and the chip and cart entry -- both of which ellipsis deliberately -- give way
   instead. Same trade as the .brand lockup above; no ink is hidden that was not
   already being ellipsised. */
.btn-lang { flex: 0 0 auto; }
/* The allowance number rides in the chip on any header with room for it: the e-mail
   label ellipsises first, because the number is the actionable half. Below 720px the
   header has no room, so the number is hidden there and is spoken instead by the
   sign-in card and the refusal lines. This is the only rule for this element, and it
   is the last word in the cascade, so the narrow-screen hide cannot be beaten. */
.account-chip-quota {
  color: var(--navy);
  flex: 0 0 auto;
  white-space: nowrap;
}
@media (max-width: 719.98px) {
  .account-chip-quota { display: none; }
}
.account-card { max-width: 640px; }
.cart-count {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-pill);
  padding: 1px 7px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 900;
}
/* anchor targets that live deep inside the shop section */
#order-summary,
#design-shop { scroll-margin-top: 80px; }

/* the header is position:sticky, so every anchored section reserves the same
   80px or a hash jump hides its .section-title behind the header */
#hero,
#upload,
#products,
#shop,
#how,
#teams,
#pilot { scroll-margin-top: 80px; }

/* ---- comic sports art layer (artwork only, never UI chrome) ---- */
.tk-ink-outline { stroke: var(--ink); stroke-width: 5; stroke-linejoin: round; }
.tk-ink-outline-thin { stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
.tk-crest-keyline { stroke-width: 2.5; stroke-linejoin: round; }
.tk-speed { stroke: var(--white); stroke-width: 4; stroke-linecap: round; }
.tk-speed-thin { stroke: var(--navy); stroke-width: 2; stroke-linecap: round; }
.tk-speed-light { stroke: var(--white); stroke-width: 2; stroke-linecap: round; }
.tk-speed-thin-light { stroke: var(--white); stroke-width: 1.5; stroke-linecap: round; }
.tk-speed-navy { stroke: var(--navy); stroke-width: 4; stroke-linecap: round; }
.tk-halftone { fill: url(#tk-halftone-dots); }
.tk-halftone-blue { fill: url(#tk-halftone-blue); }

/* ============================================================
   STICK 11 — zero-prompt upload engine + bounded micro-adjust editor
   (upload.js + kit-art.js). Sports-brand benchmark per DESIGN.md
   「竞技体育品牌对标」: high-contrast band, uppercase compressed display
   type, diagonal cuts, product-as-hero tiles, UI chrome stays clean.
   Tokens only — no new colours, single shadow tier, 8px grid.
   Diagonal cuts use clip-path (clip-path does not change
   getBoundingClientRect, so it can never create page overflow).
   ============================================================ */

/* ---- signature band: deep navy, white product cards on top ---- */
.upload-band { background: var(--navy); }
.upload-band .eyebrow { color: var(--ice-red); }
#kit-title,
#upload .kit-suite-title { color: var(--white); }
#kit-sub,
#upload .kit-suite-sub { color: var(--line); }
.upload-band .btn-ghost { color: var(--white); border-color: var(--line); }

.upload-head { position: relative; padding-top: var(--s3); }
.upload-head-cut {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 6px;
  background: var(--ice-red);
  clip-path: polygon(0 0, 78% 0, 74% 100%, 0 100%);
}
.upload-head-copy { position: relative; }
#kit-title { margin-bottom: var(--s1); }
#kit-sub { margin-bottom: var(--s4); }

/* ---- drop zone ---- */
.kit-drop {
  background: var(--white);
  border: 2px dashed var(--line);
  border-radius: var(--radius-card);
  padding: var(--s6) var(--s2);
  text-align: center;
  transition: border-color 160ms ease-out, background-color 160ms ease-out;
}
.kit-drop.is-over { border-color: var(--ice-red); background: var(--navy-06); }
.kit-drop-inner { display: grid; gap: var(--s2); justify-items: center; min-width: 0; }
/* parallelogram mark = diagonal energy cut, clipped (not skewed) so the
   measured box stays exactly the element box */
.kit-drop-mark {
  position: relative;
  width: 56px;
  height: 40px;
  background: var(--navy);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.kit-drop-cut {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 28px;
  height: 4px;
  margin-top: -2px;
  background: var(--ice-red);
  transform: skewX(-20deg);
}
.kit-drop-title {
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-weight: 900;
  font-size: clamp(22px, 5.6vw, 32px);
  margin: 0;
  overflow-wrap: anywhere;
}
.kit-drop-hint { font-size: 13px; color: var(--ink); margin: 0; overflow-wrap: anywhere; }
.kit-drop-pick { position: relative; }
/* the real file input stays in the a11y/DOM tree (and reachable by
   label/click) but is visually collapsed to 1px */
.kit-file-input {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip-path: inset(50%);
}

/* ---- before / after compare + enhanced-crest toggle ---- */
.kit-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s2);
  margin-top: var(--s3);
}
.kit-compare-cell { margin: 0; min-width: 0; }
.kit-compare-img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--s1);
}
/* checkerboard = functional transparency proof, built from token tints */
.kit-compare-checker {
  background-color: var(--white);
  background-image:
    linear-gradient(45deg, var(--navy-06) 25%, transparent 25%, transparent 75%, var(--navy-06) 75%),
    linear-gradient(45deg, var(--navy-06) 25%, transparent 25%, transparent 75%, var(--navy-06) 75%);
  background-size: 16px 16px;
  background-position: 0 0, 8px 8px;
  border: 1px solid var(--line);
  border-radius: var(--s1);
}
.kit-compare-cap {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--line);
  margin-top: var(--s1);
  overflow-wrap: anywhere;
}
.kit-swap { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--s1); }
.kit-swap-btn { padding: 8px var(--s2); font-size: 13px; }
.kit-swap-btn.is-selected { background: var(--navy); color: var(--white); }

/* ---- Stick R2: local matting -- the running line and the two candidates ----
   A <p> keeps its UA margins in this sheet, so pin them here: the note sits
   under its own candidate caption and never widens or pushes the compare grid. */
.kit-compare > .kit-matting-note {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 13px;
  color: var(--line);
}
/* The running matte status is the compare strip's own quiet pill: it spans the
   two candidate columns and adds no vertical rhythm of its own. Only the grid
   placement lives here. The pill's size and colour are White Box values and
   stay in skin-b.css: a --line literal here is a dark-ground colour that reads
   as #D9DEE6 on the White Box ground, and a ".kit-compare >" compound here
   would out-specify that skin override. */
.kit-matting-pill {
  grid-column: 1 / -1;
  margin: 0;
}
.kit-compare-cell > .kit-matting-note {
  margin: var(--s1) 0 0;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--line);
}

/* ---- mockup suite header band ---- */
.kit-suite-head { margin-top: var(--s6); }
.kit-suite-title {
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-weight: 900;
  font-size: clamp(20px, 4.6vw, 28px);
  margin: 0 0 var(--s1);
  overflow-wrap: anywhere;
}
.kit-suite-sub { color: var(--line); max-width: 560px; margin: 0 0 var(--s3); overflow-wrap: anywhere; }

/* ---- product tiles: hero-sized, minimal copy, jersey numbers ---- */
.kit-suite {
  counter-reset: kit-tile;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s2);
}
@media (min-width: 760px) {
  .kit-suite { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .kit-suite { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); }
}
.kit-tile {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  min-width: 0;
  cursor: pointer;
  animation: kit-tile-in 340ms ease-out both;
}
.kit-tile:hover,
.kit-tile:focus-visible { border-color: var(--navy); outline: none; }
.kit-tile.is-greyed { opacity: 0.45; cursor: not-allowed; animation-name: kit-tile-in-dim; }
@keyframes kit-tile-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@keyframes kit-tile-in-dim {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 0.45; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .kit-tile { animation: none; }
}
.kit-tile-stage {
  position: relative;
  overflow: hidden;
  background: var(--paper);
}
/* Stick R2 - the stage owns its height from the product geometry: buildTile
   writes the geom viewBox as an inline aspect-ratio, exactly like the editor
   .kit-canvas. The mockup svg and the art canvas then share that ONE box, so a
   stretched grid row can no longer rescale the bitmap non-uniformly: the svg
   letterboxes itself with its own preserveAspectRatio and the canvas maps 1:1
   onto the geometry it was measured in. The 1px separator moved to the foot so
   the stage box is the geom aspect to the pixel. */
.kit-tile-stage { align-self: start; }
.kit-tile-stage .kit-mockup-svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.kit-tile-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Stick 14b — garment tile framing (presentation only). The garment svg is
   byte-identical to the editor/shop renderer; we simply letterbox it inside a
   stage that owns its own height, so the full front+back silhouette (hood,
   sleeves, hem) always clears the stage edges by >=4% of the stage width.
   The demo-art canvas shares the exact same box, so the crest scales/centres
   with the garment. Non-garment tiles keep their original framing. */
.kit-tile[data-product="hoodie"] .kit-tile-stage,
.kit-tile[data-product="tee"] .kit-tile-stage {
  aspect-ratio: 3 / 2;
}
.kit-tile[data-product="hoodie"] .kit-tile-stage > .kit-mockup-svg,
.kit-tile[data-product="hoodie"] .kit-tile-stage > .kit-tile-canvas,
.kit-tile[data-product="tee"] .kit-tile-stage > .kit-mockup-svg,
.kit-tile[data-product="tee"] .kit-tile-stage > .kit-tile-canvas {
  position: absolute;
  top: 50%; left: 50%;
  right: auto; bottom: auto;
  width: 92%; height: auto;
  transform: translate(-50%, -50%);
}
.kit-tile-foot {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s1);
  align-items: center;
  padding: var(--s2);
  border-top: 1px solid var(--line);
}
.kit-tile-thumb {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--s1);
  padding: 3px;
}
/* jersey-number ordinal (01 … 07) drawn by a CSS counter, no DOM noise */
.kit-tile-name {
  display: flex;
  align-items: baseline;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-weight: 900;
  font-size: clamp(14px, 3.4vw, 19px);
  color: var(--navy);
  margin: 0 0 2px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.kit-tile-name::before {
  counter-increment: kit-tile;
  content: counter(kit-tile, decimal-leading-zero);
  color: var(--navy);
  opacity: 0.45;
  font-size: 1.2em;
  margin-right: var(--s1);
}
.kit-tile-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
  overflow-wrap: anywhere;
}
.kit-tile-tag.is-warn { color: var(--ice-red); }
/* Stick 14b: keep the CTA a fixed horizontal pill. The tile stretches to its
   grid row; without align-self the button stretches into a tall vertical pill
   on the shorter tiles (stick-12 leftover). end aligns it with the tallest
   tile's button so all seven CTAs share one size and bottom placement. */
.kit-tile-cta { margin: 0 var(--s2) var(--s2); justify-self: start; align-self: end; padding: 8px var(--s2); font-size: 13px; }

/* ---- actions / status / auto print file ---- */
.kit-actions { display: flex; flex-wrap: wrap; gap: var(--s1); margin-top: var(--s3); }
.kit-status {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  color: var(--ice-blue);
  margin: var(--s2) 0 0;
  min-height: 18px;
  overflow-wrap: anywhere;
}
.kit-notice { font-size: 13px; color: var(--line); margin: var(--s1) 0 0; overflow-wrap: anywhere; }
.kit-file {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-1);
  padding: var(--s3);
  margin-top: var(--s3);
  min-width: 0;
}
.kit-file-title { margin: 0 0 var(--s1); font-size: 15px; text-transform: uppercase; }
.kit-file-note { font-size: 12px; color: var(--ink); margin: 0 0 var(--s2); overflow-wrap: anywhere; }
.kit-file-json {
  display: block;
  font-size: 11px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--s1);
  padding: var(--s1) var(--s2);
  overflow-wrap: anywhere;
  white-space: normal;
  word-break: break-all;
}
.kit-file-dl { margin-top: var(--s2); }

/* ---- bounded micro-adjust editor (one component, two hosts) ----
   The canvas must be ≥300px wide at a 390px viewport in BOTH hosts
   (upload band = 358px content, shop preview card = 308px), so the
   component carries no horizontal padding of its own. */
.kit-editor-host { min-width: 0; }
.kit-editor-host:empty { display: none; }
.kit-editor {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-1);
  min-width: 0;
}
.kit-editor-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s1);
  padding: var(--s2) var(--s2) 0;
}
.kit-editor-title { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }
.kit-readout {
  margin: 0 0 0 auto;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.kit-canvas {
  position: relative;
  touch-action: none; /* drag/pinch inside the editor never hijacks page scroll */
  margin-top: var(--s2);
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.kit-stage { position: absolute; inset: 0; }
.kit-stage > .kit-mockup-svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.kit-zone { position: absolute; border: 1px dashed var(--ice-blue); border-radius: 4px; }
.kit-guide { position: absolute; background: var(--ice-red); }
.kit-guide-v { top: 0; bottom: 0; width: 1px; margin-left: -0.5px; }
.kit-guide-h { left: 0; right: 0; height: 1px; margin-top: -0.5px; }
/* stick 24a — rotary wrap seam: the band's left and right edges meet on the
   vessel, so both edges are marked with the same dashed accent guide language
   used for centre guides and case keep-outs (a line, never text). */
.kit-seam {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  border-left: 1px dashed var(--ice-red);
}
.kit-seam-l { left: 0; }
.kit-seam-r { right: 0; }
.kit-art { position: absolute; cursor: grab; }
.kit-art-img { display: block; width: 100%; height: 100%; }
.kit-editor[data-dragging="1"] .kit-art { cursor: grabbing; }
.kit-handle {
  position: absolute;
  width: 16px;
  height: 16px;
  transform: translate(-50%, -50%);
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 2px solid var(--navy);
  cursor: nesw-resize;
}
.kit-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s1);
  padding: var(--s2);
}
.kit-scale-box { display: flex; align-items: center; gap: var(--s1); flex: 1 1 180px; min-width: 0; }
.kit-scale-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}
.kit-scale { flex: 1 1 60px; min-width: 60px; accent-color: var(--navy); }
.kit-centre { padding: 8px var(--s2); font-size: 13px; }
.kit-crisp-fit { padding: 8px var(--s2); font-size: 13px; }
.kit-crisp-rescue {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s1);
  padding: 0 var(--s2) var(--s2);
  font-size: 12px;
}
.kit-crisp-rescue-label { color: var(--navy); overflow-wrap: anywhere; }
.kit-crisp-rescue-btn { padding: 5px 10px; font-size: 12px; }
.kit-note {
  margin: 0;
  padding: 0 var(--s2) var(--s2);
  font-size: 12px;
  color: var(--navy);
  overflow-wrap: anywhere;
}
/* the badge never uses white-space:nowrap — the ZH strings are long */
.kit-dpi-badge {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  background: var(--navy);
  color: var(--white);
  overflow-wrap: anywhere;
}
.kit-dpi-badge[data-band="soft"] { background: var(--ice-blue); color: var(--navy); }
.kit-dpi-badge[data-band="floor"] { background: var(--ice-red); color: var(--white); }
.kit-dpi-badge[data-band="blocked"] { background: var(--ink); color: var(--white); border: 1px solid var(--ice-red); }

/* author rules beat the UA [hidden] rule at equal specificity, so every
   host-toggled block needs an explicit display guard */
.kit-compare[hidden],
.kit-suite-head[hidden],
.kit-actions[hidden],
.kit-file[hidden],
.kit-guide[hidden],
.kit-crisp-rescue[hidden],
.kit-bleed[hidden] { display: none; }

/* Stick 24c — photo-first crop guides. All colours are existing tokens;
   these are guides only, never printed into the customer's file. */
.kit-bleed {
  position: absolute; inset: 0;
  border: 2px dashed var(--ice-red);
  border-radius: 4px; pointer-events: none; z-index: 3;
}
.kit-wrap-zone {
  position: absolute; inset: 0;
  border: 2px dashed var(--ice-red);
  border-radius: 4px; pointer-events: none; z-index: 2;
}
.kit-frame-edge {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 2px; pointer-events: none; z-index: 2;
}
.kit-puzzle-grid { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.kit-grid-line { position: absolute; background: var(--line); opacity: 0.7; }
.kit-grid-line.v { top: 0; bottom: 0; width: 1px; }
.kit-grid-line.h { left: 0; right: 0; height: 1px; }
.kit-set-tiles {
  position: absolute; left: 4%; right: 4%; bottom: 3%;
  display: flex; justify-content: space-between; gap: 4px;
  pointer-events: none; z-index: 3;
}
.kit-set-tile {
  flex: 1 1 0; text-align: center; font-size: 11px;
  color: var(--white); border: 1px dashed var(--line);
  border-radius: 2px; padding: 1px 0;
}
.kit-bleed-toggle { font-size: 12px; padding: 6px var(--s2); }

/* grid/flex children default to min-width:auto and can push the page wider
   than the viewport — pin every new shrinkable child to 0 */
.kit-suite > *,
.kit-compare > *,
.kit-compare-cell > *,
.kit-tile > *,
.kit-tile-foot > *,
.kit-tile-meta > *,
.kit-editor > *,
.kit-editor-bar > *,
.kit-controls > *,
.kit-actions > *,
.kit-drop-inner > *,
.upload-head > *,
.upload-head-copy > *,
.kit-file > * { min-width: 0; }

/* ---------- Stick 16: parent collection + manager progress board ----------
   Token-only palette, 8px spacing scale, one shadow. Layouts are built to fit
   390px without overflow masking (no hidden/clip on html/body). */
.collect-block { border-top: 1px solid var(--line); padding-top: var(--s6); }
.collect-offline {
  border: 1px solid var(--ice-red);
  border-radius: var(--radius-card);
  padding: var(--s2);
  margin-bottom: var(--s2);
  background: var(--white);
}
.collect-offline h4 { font-size: 18px; margin: 0 0 var(--s1); color: var(--ice-red); }
.collect-offline p { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.collect-create { padding: var(--s2); margin-bottom: var(--s2); min-width: 0; }
.collect-create-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s2); margin-bottom: var(--s2);
}
.collect-create-grid label { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.collect-create-grid span,
.collect-products .collect-check span {
  font-size: 12px; font-weight: 700; color: var(--navy); letter-spacing: 0.02em;
}
.collect-create-grid select,
.collect-create-grid input {
  width: 100%; min-width: 0; padding: 10px var(--s1);
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  background: var(--white); color: var(--ink); font: inherit;
}
.collect-products { display: flex; flex-wrap: wrap; gap: var(--s1); margin: var(--s1) 0; }
.collect-check {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border: 1px solid var(--line);
  border-radius: var(--radius-pill); background: var(--white); min-width: 0;
}
.collect-check input { accent-color: var(--navy); margin: 0; }
.collect-check span { overflow-wrap: anywhere; }
.collect-board { border-top: 1px solid var(--line); padding-top: var(--s2); min-width: 0; }
.collect-board-head {
  display: flex; flex-wrap: wrap; gap: var(--s1);
  align-items: center; justify-content: space-between; margin-bottom: var(--s2);
}
.collect-board-head h4 { font-size: 20px; margin: 0; }
.collect-board-actions { display: flex; flex-wrap: wrap; gap: var(--s1); }
.collect-board-actions .btn { font-size: 13px; padding: 10px 16px; }
.collect-summary { display: flex; flex-wrap: wrap; gap: var(--s1); margin-bottom: var(--s2); }
.collect-chip {
  display: inline-block; padding: 6px 12px; border-radius: var(--radius-pill);
  background: var(--navy-06); color: var(--navy);
  font-size: 12px; font-weight: 700; overflow-wrap: anywhere;
}
.collect-chip:nth-child(3) { background: var(--ice-blue); color: var(--navy); }
.collect-chip:nth-child(4) { background: var(--ice-red); color: var(--white); }
.collect-table-wrap { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-card); }
.collect-row {
  display: grid; grid-template-columns: 1.3fr 1.1fr 0.5fr 1.1fr;
  gap: var(--s1); align-items: center; padding: 12px var(--s2);
  border-bottom: 1px solid var(--line); min-width: 0;
}
.collect-row:last-child { border-bottom: 0; }
.collect-row-head { background: var(--navy-06); }
.collect-row-head .collect-cell {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em;
  font-weight: 800; color: var(--navy);
}
.collect-cell { min-width: 0; font-size: 14px; overflow-wrap: anywhere; }
.collect-who { font-family: var(--font-display); font-weight: 800; color: var(--navy); }
.collect-status { color: var(--navy); }
.collect-row[data-status="confirmed"] .collect-status { color: var(--ice-blue); }
.collect-row[data-status="parent_corrected"] .collect-status { color: var(--ice-red); font-weight: 700; }
.collect-size { color: var(--ink); }
.collect-action { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.collect-copy { font-size: 12px; padding: 8px 12px; }
.collect-flag { font-size: 11px; color: var(--ice-red); overflow-wrap: anywhere; }
#collect-offline[hidden],
#collect-board[hidden],
#collect-order-wrap[hidden],
#collect-team-wrap[hidden] { display: none !important; }
@media (max-width: 559.98px) {
  .collect-create-grid { grid-template-columns: 1fr; }
  .collect-row { grid-template-columns: 1fr 1fr; gap: 6px var(--s1); }
  .collect-row-head { display: none; }
  .collect-cell { font-size: 13px; }
  .collect-copy { width: 100%; }
  .collect-board-actions .btn { width: 100%; }
}

/* ---------- Stick 16: focused parent page (mobile-first, noindex) ---------- */
.collect-shell { max-width: 960px; padding-bottom: var(--s8); }
.collect-status { font-size: 14px; color: var(--navy); min-height: 1.6em; }
.collect-privacy {
  font-size: 12px; color: var(--navy); opacity: 0.82;
  line-height: 1.5; overflow-wrap: anywhere; margin-top: var(--s3);
}
.collect-unavailable { padding: var(--s4) var(--s2); min-width: 0; }
.collect-unavailable h1 { font-size: clamp(24px, 6vw, 36px); }
.collect-unavailable p { font-size: 15px; overflow-wrap: anywhere; }
.collect-hero { padding: var(--s4) 0 var(--s2); }
.collect-hero .eyebrow { margin: 0 0 var(--s1); }
.collect-hi { font-size: clamp(34px, 9vw, 56px); margin: 0; }
.collect-no { font-family: var(--font-display); font-weight: 900; font-size: 40px; color: var(--ice-red); margin: 0; }
.collect-hint { font-size: 14px; color: var(--navy); overflow-wrap: anywhere; margin: var(--s1) 0 0; }
.collect-mockups {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s2); margin-bottom: var(--s2);
}
.collect-tile {
  border: 1px solid var(--line); border-radius: var(--radius-card);
  background: var(--white); padding: var(--s1); min-width: 0;
}
.collect-art { width: 100%; min-width: 0; display: flex; align-items: center; justify-content: center; }
.collect-art svg { display: block; width: 100%; max-width: 100%; height: auto; }
.collect-tile-label {
  font-size: 12px; font-weight: 700; color: var(--navy);
  margin: var(--s1) 0 0; text-align: center; overflow-wrap: anywhere;
}
.collect-form { padding: var(--s2); min-width: 0; }
.collect-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin-bottom: var(--s2); }
.collect-field span {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--navy);
}
.collect-field select, .collect-field input {
  width: 100%; min-width: 0; padding: 12px var(--s2); font: inherit;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  background: var(--white); color: var(--ink);
}
.collect-readout { font-size: 12px; color: var(--navy); margin: calc(-1 * var(--s2)) 0 var(--s2); }
.collect-correct { border-top: 1px solid var(--line); padding-top: var(--s2); }
.collect-correct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.collect-flag {
  font-size: 12px; font-weight: 700; color: var(--ice-red);
  overflow-wrap: anywhere; margin: 0 0 var(--s2);
}
.collect-confirm { width: 100%; font-size: 16px; padding: 16px; }
.collect-confirm:disabled { opacity: 0.7; cursor: wait; }
.collect-done { margin-top: var(--s2); padding: var(--s2); border-color: var(--ice-blue); }
.collect-done h2 { font-size: 24px; }
.collect-done p { font-size: 14px; overflow-wrap: anywhere; }
#collect-card[hidden],
#collect-unavailable[hidden],
#collect-done[hidden],
#collect-flag[hidden] { display: none !important; }
@media (max-width: 719.98px) {
  .collect-mockups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 559.98px) {
  .collect-mockups { grid-template-columns: 1fr; gap: var(--s1); }
  .collect-tile { display: flex; align-items: center; gap: var(--s2); }
  .collect-art { flex: 1 1 60%; }
  .collect-tile-label { flex: 1 1 40%; text-align: right; margin: 0; }
  .collect-correct-grid { grid-template-columns: 1fr; gap: 0; }
}
