/* Stick R1 — routed pages: navigation shell, source step, category filter,
   studio head, order proof and the team steps. Layout and hairlines only: no
   new colour, font, radius or shadow. Every value is a token from styles.css
   or a skin variable from skin-b.css, and every reused component
   (.card, .btn, .retail-grid, .door-switch) keeps its own stylesheet rules. */

/* ---------------------------------------------------------------------------
   1. Routing: a detached view is not on the page; a hidden view must stay off
     even where a class rule would otherwise win over the UA [hidden] rule (the
     same guard pattern the existing cards use).
   --------------------------------------------------------------------------- */
#product-wall[hidden],
.retail-card[hidden],
[data-route][hidden],
.source-panel[hidden],
#source-hint[hidden],
#studio-head[hidden],
#order-proof[hidden],
.order-check-row[hidden],
.shop-filter [hidden],
/* Stick W-SUSPEND: the parts of a product page that are only shown for a
   product on the shelf.  .pdp-price and .btn state their own display, so the
   UA [hidden] rule would lose to them without this guard. */
.pdp-price[hidden],
.pdp-copy[hidden],
.pdp-specs[hidden],
.pdp-hero[hidden],
.pdp-unavailable[hidden],
#pdp-personalise[hidden] { display: none !important; }

/* The top bar is the same seven items on every route, so the current
   destination is marked with the same hairline the door switch uses. */
.site-nav a.is-current { color: var(--l-ink); border-bottom: 1px solid var(--l-ink); }

/* ---------------------------------------------------------------------------
   2. Design centre: one source step, never three stacked panels. The door
     switch asks the question; app.js opens exactly the matching panel.
   --------------------------------------------------------------------------- */
.source-step { gap: var(--s2); }
.source-hint {
  margin: 0;
  min-width: 0;
  font-size: 13px;
  color: var(--l-grey);
}
/* The upload band lost its full-bleed section when it moved into the source
   step: it keeps its id, its classes and its copy, and gains the padding the
   .section class used to provide. */
#upload.upload-band.source-panel {
  padding: var(--s3) var(--s2);
  border: 1px solid var(--l-line);
  min-width: 0;
}
#design-centre .source-panel { min-width: 0; }

/* The product wall is the same 21-button grid the studio uses. It only opens
   on #/design once a design exists; the recommended products come first. */
#product-wall .shop-products { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.wall-note { margin-top: var(--s1); }

/* ---------------------------------------------------------------------------
   3. Shop page (#/shop): the lineup plus one category filter, nothing else.
   --------------------------------------------------------------------------- */
.shop-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
  min-width: 0;
  padding: 0 0 var(--s2);
}
.shop-filter button {
  min-width: 0;
  font-family: inherit;
  font-size: 12.5px;
  letter-spacing: .14em;
  color: var(--l-grey);
  background: transparent;
  border: 1px solid transparent;
  padding: 4px 10px;
  cursor: pointer;
}
.shop-filter button:hover { color: var(--l-ink); }
.shop-filter button:focus-visible { outline: 2px solid var(--l-red); outline-offset: 2px; }
.shop-filter button.is-current { color: var(--l-ink); border-color: var(--l-hair); }

/* The staggered lineup (skin-b.css) lifts the middle exhibit of every row by
   one gap so no hairline doubles up. Row one has nothing above it, and the lift
   pulled its middle card up into the filter band and clipped the last pill, so
   the first row keeps its own band and only the later rows stagger.
   (Same media query and specificity as the skin rule; this sheet loads last.) */
@media (min-width: 720px) {
  #retail-cards > :nth-child(2) { margin-top: 0; }
}

/* Home shortcut strip: four cards drawn with the shop card art. */
.curated-grid { padding-top: var(--s1); }
.curated-more { margin: var(--s3) 0 0; }

/* ---------------------------------------------------------------------------
   4. Studio (#/design/<id>): the product in hand is named once, at the top.
   --------------------------------------------------------------------------- */
.studio-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s2);
  min-width: 0;
  border-bottom: 1px solid var(--l-line);
  padding-bottom: var(--s1);
}
.studio-product { display: flex; align-items: baseline; gap: var(--s2); min-width: 0; margin: 0; }
.studio-product-label { font-size: 12px; letter-spacing: .16em; color: var(--l-micro); }
#studio-product-name { font-size: 22px; color: var(--l-ink); }
#studio-product-price { font-size: 15px; color: var(--l-grey); }
.studio-switch { margin: 0; min-width: 0; }
.proof-entry { min-width: 0; }
.proof-entry-copy { margin: 0 0 var(--s2); font-size: 13px; color: var(--l-grey); }

/* ---------------------------------------------------------------------------
   5. Order page (#/order): the summary card beside the proof checklist.
   --------------------------------------------------------------------------- */
.order-grid { display: grid; gap: var(--s2); grid-template-columns: minmax(0, 1fr); align-items: start; }
.order-proof { min-width: 0; }
.order-check-list { list-style: none; margin: 0; padding: 0; min-width: 0; }
.order-check-row {
  display: flex;
  align-items: baseline;
  gap: var(--s2);
  min-width: 0;
  padding: var(--s1) 0;
  border-bottom: 1px solid var(--l-line);
}
.order-check-row .order-check-name { flex: 1 1 auto; min-width: 0; }
.order-check-row .order-check-state { font-size: 12px; color: var(--l-micro); }
.order-check-row input { flex: 0 0 auto; accent-color: var(--l-ink); }
#order-receipt { margin-top: var(--s2); }
@media (min-width: 800px) {
  .order-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); }
}

/* ---------------------------------------------------------------------------
   6. Team steps: the manager flow is stepped, one step on screen at a time.
   --------------------------------------------------------------------------- */
.team-steps {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  min-width: 0;
  border-top: 1px solid var(--l-line);
  border-bottom: 1px solid var(--l-line);
  padding: var(--s1) 0;
  margin-bottom: var(--s3);
}
.team-step-link {
  min-width: 0;
  font-size: 13px;
  letter-spacing: .14em;
  color: var(--l-micro);
  text-decoration: none;
  padding: 2px 0;
}
.team-step-link:hover { color: var(--l-ink); }
.team-step-link:focus-visible { outline: 2px solid var(--l-red); outline-offset: 2px; }
.team-step-link.is-current { color: var(--l-ink); border-bottom: 1px solid var(--l-ink); }

/* ---------------------------------------------------------------------------
   7. Mobile tab bar (Stick R1.1): at <=480px the four destinations sit in a bar
     fixed to the bottom edge. It is flush left and right and carries the
     page's own ground and hairline, so it adds no horizontal overflow
     (verify-mobile.cjs measures every visible box) and no new visual token.
     The page gains --l-tabbar as bottom padding so the last line of content
     stays reachable above the bar. Above 480px nothing changes: the bar is not
     displayed and the top bar stays the only navigation.
   --------------------------------------------------------------------------- */
.bottom-tabs { display: none; }

@media (max-width: 480px) {
  /* Stick POLISH-SWEEP item 12: the bar was 55px tall and its items 38px,
     below the thumb-comfort band, because each item carried only --s1 of
     vertical padding.  A whole step of --s2 makes the item 54px; the bar
     becomes 71px of ink, and --l-tabbar is raised to 72px in lockstep so the
     page's bottom padding still clears it.  Nothing else moves: same icons,
     same 12.5px captions, same tracking, same colours, same order. */
  :root { --l-tabbar: 72px; }
  body { padding-bottom: var(--l-tabbar); }
  .bottom-tabs {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 21;
    gap: var(--s1);
    margin: 0;
    padding: var(--s1) var(--s2);
    background: var(--l-ground);
    border-top: 1px solid var(--l-line);
  }
  .bottom-tabs a {
    flex: 1 1 0;
    min-width: 0;
    padding: var(--s2) 0;
    border: 1px solid transparent;
    font-size: 12.5px;
    letter-spacing: .14em;
    text-align: center;
    text-decoration: none;
    color: var(--l-grey);
  }
  .bottom-tabs a:hover { color: var(--l-ink); }
  .bottom-tabs a:focus-visible { outline: 2px solid var(--l-red); outline-offset: 2px; }
  /* Stick AESTHETIC-1 fix 6 - the active tab was a hairline box on all four
     edges (84x54 item, border-color --l-hair), which reads as a filled /
     outlined button sitting inside the page and competes with the real CTA
     above it.  The tab keeps only the two things an active state has to
     communicate: the label goes to --l-ink and one border edge becomes a 1px
     ink indicator, so nothing about the item changes shape, fill or size.
     (Reworded by Stick CURATION part 3 item 10a: this comment used to call the
     treatment "the same idiom as .door-switch-link.is-current" and describe
     that rule as "a single ink underline".  It has not been an underline since
     Stick DESIGN-DOOR - skin-b.css:987 gives the door option card a 2px ink
     border and a filled ink square.  The bottom tab is its own, quieter
     idiom and does not borrow from the door switch; is-current + aria-current
     are still the only state, and no new token or radius is used.) */
  .bottom-tabs a.is-current {
    color: var(--l-ink);
    border-color: transparent;
    border-bottom-color: var(--l-ink);
  }
}

/* ---------------------------------------------------------------------------
   7b. Stick UX-FIX (Muse, 2026-11-26) - the top bar at 480px and below carries
   no truncated control.  What Muse measured at 390px: the order-summary entry
   ellipsised to "Or ..." and the account chip to "S.", because brand (84px),
   language toggle (75px) and the three 16px gaps take 247px of the 358px the
   mobile shell leaves, and the words "Order summary" plus "Sign in" do not fit
   in the 111px that is left.

   The fix gives the room back to the control that has no compact form.  The
   order-summary entry collapses to the count badge it already owns: the words
   stay in the DOM and stay the link's accessible name, visually collapsed with
   the same idiom .brand-name uses for the wordmark, so nothing an assistant
   reads is lost.  The badge itself is NOT hidden - verify-stick10 F2 asserts
   the entry is visible AND that the badge still counts the item.  The account
   chip keeps its words: "Sign in" / "登录" is the shorter of the two labels and
   it is the one a first-time customer has to find.  The order summary itself is
   already one tap away in the bottom bar (section 7, tab_orders), which is why
   the words can leave the top bar without the destination leaving the page.

   Collapsing the words left one artefact, found by photographing the bar at
   390px (work/stick-uxfix/out/crops/before-header-390.png vs
   after-header-390.png): the order-summary entry kept its own 2px outline and
   its 24px of side padding around an emptiness -- with an empty basket its only
   two children are the collapsed words and a badge that app.js hides at zero,
   so the bar drew a small empty navy pill and nothing else.  A pill with no
   content is the same category of defect as the clipped "Or ..." it replaced,
   so the entry gives up its own ink at these widths and the badge becomes the
   whole control: nothing is drawn when the basket is empty, and the number is
   exactly what is drawn when it is not.  The link, its href, its accessible
   name and its 12px tap padding all stay, and Orders is still in the bottom
   bar; verify-stick10 F2 (cart entry visible, badge counting) still passes,
   because with one item the badge gives the entry real width.

   Geometry only: no colour, radius, shadow, font or size is introduced, and no
   route moves - the entry still points at #/order.
   --------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .nav-cart {
    gap: 0;
    padding: 6px 12px;
    border-width: 0;
  }
  .nav-cart-label {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* ---------------------------------------------------------------------------
   8. Stick W-SUSPEND - the unavailable state of a product page whose product is
     temporarily off the shelf. The notice is a flat hairline panel in the detail
     column: the page's own ground and hairline, no new colour, font, radius or
     shadow. app.js owns the one [hidden] attribute that reveals it.
   --------------------------------------------------------------------------- */
.pdp-unavailable {
  display: grid;
  gap: var(--s1);
  align-content: start;
  padding: var(--s1);
  background: var(--l-ground);
  border: 1px solid var(--l-line);
}
.pdp-off-copy {
  margin: 0;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--l-grey);
}
.pdp-off-action { margin: 0; }

/* ---------------------------------------------------------------------------
   9. Stick LOGIN-POLISH — the sign-in panel is a centred modal.
     Visual and layout only: no id, class, copy, aria label, endpoint, step
     order, quota or error semantics move.  Everything here is scoped under
     #account-panel so no other surface on the site can pick any of it up.

     The White Box language this panel now shares with the rest of the page:
     a flat white card (skin-b.css removes every shadow, so the card is lifted
     by the scrim, not by depth), square corners (--radius-card / --radius-pill
     are 0 site-wide), a one-pixel --l-line hairline, the serif only on titles,
     300-weight grey body copy, micro-labels in --l-micro, and --l-red as the
     single focus accent.  Every number below is an existing token.
   --------------------------------------------------------------------------- */

/* The [hidden] guard is load-bearing, not decoration: app.js reveals a step by
   writing style.display through designShow(), so the attribute alone is not
   enough once this element is a flex container.  verify-nav.py reads the
   attribute through closest('[hidden]'), and #account-panel[hidden] (id plus
   attribute) outranks #account-panel, so the panel is verifiably shut on every
   address that does not open it. */
#account-panel[hidden] { display: none; }

#account-panel {
  position: fixed;
  inset: 0;
  z-index: 40;                    /* header is 20, .bottom-tabs is 21 */
  display: flex;
  /* The vertical reserve is the sticky header (measured 65px at 1280) plus a
     little air, both from the 8px scale, so a card centred inside this box
     cannot slide up under the bar it was opened from; .site-header is painted
     at z-index 20 and would be covered rather than moved.  Horizontal padding
     keeps the card off the screen edge. */
  padding: calc(var(--s8) + var(--s1)) var(--s2);
  overflow-y: auto;               /* a tall card stays reachable, never clipped */
  background: var(--l-scrim);     /* --l-ink at 28% alpha, no new hue */
  /* The one thing that keeps this stick behaviour-free.  The panel used to sit
     inline in the document flow, so the page behind it was fully clickable
     while the customer signed in, and the standing suites rely on that (they
     open the panel and then click rail cards, chips and the language toggle).
     pointer-events:none keeps that exactly true: hit-testing skips this box,
     elementFromPoint skips it too, and only the real controls take clicks. */
  pointer-events: none;
  /* One control line for this surface, and one code cell, both from the
     existing 8px spacing scale (48px).  See the geometry note at the cells. */
  --ctl: var(--s6);
  --code-cell: var(--s6);
}
#account-panel input,
#account-panel button,
#account-panel a,
#account-panel label { pointer-events: auto; }

/* .shell.narrow (0,2,0) is beaten by #account-panel .shell.narrow (1,2,0), so
   .account-card's own max-width:640px can never bind.  margin:auto rather than
   justify-content:center: when the card is taller than the viewport, auto
   margins stay scrollable to the top edge instead of clipping the title. */
#account-panel .shell.narrow { max-width: 420px; margin: auto; padding: 0; }
#account-panel .account-card { display: grid; gap: var(--s2); }

/* designShow() writes inline display:"none" when it hides a step, so the
   [hidden] guards below only pin the SHOWING state to the layout this stick
   wants: a grid, so title, copy, field, actions and status share one axis. */
#account-panel [data-account-step] { display: grid; gap: var(--s2); }
#account-panel [data-account-step][hidden] { display: none; }
#account-panel #account-taste-card[hidden] { display: none; }

/* An emptied status line (accountStatus('')) must take no slot of its own,
   otherwise the card grid shows a phantom 20px gap under the buttons. */
#account-panel .design-status:empty { display: none; }

/* Title: the .pdp-title treatment (the site's own serif idiom — 22px, 400,
   .01em) rather than .section-title's clamp, because this is a card, not a
   band.  The family itself arrives through skin-b.css title list. */
#account-panel .shop-step {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: .01em;
  line-height: 1.25;
  margin: 0;
  color: var(--l-ink);
}
/* The taste card sits inside the signed-in step, so its heading is one tier
   below the step title; both are serif, only the size separates them. */
#account-panel #account-taste-card .shop-step { font-size: 16px; }

/* Body copy: .pdp-copy (14px / 300 / 1.7 / --l-grey), up from the 12px /
   600-weight navy this panel inherited from the shop column. */
#account-panel .shop-note {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  margin: 0;
  color: var(--l-grey);
}

/* Field label: the micro-label idiom (.pdp-eyebrow — 12px / 400 / .14em /
   --l-micro).  letter-spacing is neutralised on the input itself below, so it
   never reaches what the customer types. */
#account-panel .shop-field {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .14em;
  color: var(--l-micro);
}
#account-panel .shop-field label { display: grid; gap: var(--s1); min-width: 0; }
#account-panel input { letter-spacing: normal; }

/* One line, not two.  styles.css:403 gives every text input
   outline:2px solid var(--ice-blue) plus border-color:var(--navy) on focus and
   skin-b.css repaints that outline --l-red — that pair is the red-and-navy
   double ring Leyton saw.  Here the field is drawn by one 1px --l-line hairline
   at rest (skin-b.css:274) and focus moves that same hairline to --l-red: the
   site's own accent, still a thin ring, but the line the eye follows never
   doubles.  The outline is dropped outright rather than pulled to offset:0,
   because an outline at offset:0 paints a second hairline directly over the
   border, and no box-shadow is added, so focus costs nothing new at RULES 3.
   This selector is id-plus-element, so it outranks styles.css:403 and the
   skin-b repaint alike.  Buttons keep the offset ring a few rules below: a
   filled ink button has no hairline to move, so for them the ring is the only
   line there is. */
#account-panel input[type="text"] {
  height: var(--ctl);
  min-height: var(--ctl);
  padding: 0 var(--s1);
  font-size: 16px;
  font-weight: 400;
  color: var(--l-ink);
}
#account-panel input[type="text"]:focus {
  outline: none;
  border-color: var(--l-red);
  box-shadow: none;
}

/* Buttons: the primary keeps .btn-primary exactly as the rest of the site
   styles it (ink fill, square, 13px / 500 / .16em) and only gains the shared
   control height, so input and button sit on one line.  Inline flex centres
   the label in that height without touching padding, font or colour. */
#account-panel .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--ctl);
  min-height: var(--ctl);
}
#account-panel .btn:focus-visible { outline: 2px solid var(--l-red); outline-offset: 2px; }
#account-panel .design-actions { gap: var(--s2); margin-top: var(--s1); }

/* The quiet tier.  Addressed by id because the HTML may not gain or lose a
   class in this stick.  A hairline button reads as a second primary next to
   the filled one, so these four drop their border and keep only the label —
   the same ink-on-hairline idiom .btn-lang uses, at the same height as the
   primary so the row stays one line.  Id plus element (2,0,0) outranks
   .btn-ghost:hover (0,2,0), which is why the hover half has to be restated. */
#account-panel #account-cancel,
#account-panel #account-resend,
#account-panel #account-signout,
#account-panel #account-taste-clear {
  border-color: transparent;
  padding-inline: var(--s1);
  color: var(--l-grey);
}
#account-panel #account-cancel:hover,
#account-panel #account-resend:hover,
#account-panel #account-signout:hover,
#account-panel #account-taste-clear:hover { color: var(--l-ink); }

/* Error copy is red text and nothing else.  app.js adds .is-error when it
   writes a refusal; the message content, wording and aria-live behaviour are
   untouched, and there is no border, plate or icon. */
#account-panel .design-status.is-error { color: var(--l-red); }

/* The chip's allowance number: .account-chip-quota still gets the last word in
   styles.css, but that last word was a legacy --navy that no longer matches
   this header, where the e-mail label is --l-grey.  Ink on the number, grey on
   the label, so the actionable half is the darker half.
   letter-spacing: the chip inherits the .btn caption tracking (.16em, 2.08px per
   character at 13px), which suits a two-word button label and is expensive on a
   whole sentence.  The number measured 151px inside a chip capped at
   min(46vw,240px), and because the allowance is flex:0 0 auto that left the
   address 35px: two characters and an ellipsis.  Measured over ten widths in
   work/stick-loginpolish/probe-chip.log, relaxing the number to normal type
   takes it to 111px and gives the address 75px, twice as much of it, with the
   chip box unchanged at 240px and the header never overflowing.  Relaxing the
   address instead was measured and rejected: a shrinking flex item hands back
   exactly what it saves, so the visible address got shorter, and below 480px the
   number is hidden by the media query anyway.  The cap was not lifted either:
   work/stick-loginpolish/probe-header.log shows that a 320px chip at 1280px is
   paid for by the navigation (site-nav 389px to 362px) and that at 1024px it
   clips site-nav outright, so the cap holds and the width is spent inside it.
   An address is data, so it keeps the ellipsis MEMBERSHIP-1 designed for; it
   just gets more of it before the ellipsis. */
#account-chip-quota { color: var(--l-ink); letter-spacing: normal; }

/* Stick POLISH-SWEEP item 13 - the address itself was still cut to a stub
   ("loginpo... 20 generations left").  Two changes, no new box and no moved
   control.
   1. The address drops the .btn caption tracking (.16em, 2.08px per character
      at 13px).  It is data, not a button caption, and that tracking is what
      made thirty-five characters cost a whole sentence of width.
   2. The chip cap goes from min(46vw,240px) to 340px, but ONLY from 1080px up.
      Measured width by width in work/stick-polishsweep/out/authshots-before.log
      (authshots.py budget): at 1280px the label goes from 75px - nine of
      thirty-five characters - to 175px, twenty-six characters, the chip box
      sitting at 340px with the header at 1160/1160 and site-nav at 349/349.
      The gate is where the navigation stops paying for it: at 1080px site-nav
      is still exactly free, and at 1024px a 340px chip clips it, which is the
      same wall LOGIN-POLISH recorded above.  Below 1080px nothing changes from
      what that stick shipped.
   3. No cap on this box makes the whole address fit, and that was measured
      rather than assumed -- work/stick-polishsweep/chip-budget.py, table in
      out/chip-budget.json.  Caps of 360, 380, 388, 400, 420 and 460 were each
      read from 1024px up to 1440px.  Above 1080px the chip stops at 348px
      whatever the cap claims, because what is left over in the header row, not
      max-width, is the limit.  That ceiling is worth one more character
      (twenty-seven of thirty-five at 1200px and wider) and still leaves the
      address forty pixels short of the two hundred twenty-three it needs, so
      the cap stays at the largest value the header pays for without clipping
      anything.
   No character is cut in half: the ellipsis MEMBERSHIP-1 designed for this
   field breaks at whole characters, and the complete address stays in the
   chip's title and in #account-summary. */
@media (min-width: 1080px) {
  .btn-account { max-width: 340px; }
}
#account-chip-label { letter-spacing: normal; }

/* Stick POLISH-SWEEP item 14 - once the done step is open, the address is
   printed twice in the same card: #account-summary ("Signed in as X. 20 of 20
   generations left") and, underneath it, the live region #account-status
   ("Signed in as X.").  The summary is the copy the customer reads, so the
   status line leaves the card's VISUAL hierarchy and not the document: it
   still owns role="status" aria-live="polite", and app.js still writes refusals
   and sign-in results into it, so a screen reader loses nothing.  The same
   visually-hidden idiom as .nav-cart-label above.  While any other step is open
   the status line is visible again, which is where it is the only feedback the
   panel has. */
#account-panel [data-account-step="done"]:not([hidden]) ~ #account-status {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Stick POLISH-SWEEP item 15 - the six empty cells read as a prefilled code,
   because the input's placeholder painted "000000" underneath them.  Only the
   placeholder PAINT goes: the attribute, its i18n key, the six-cell strip, the
   one-time-code autocomplete, maxlength and every keystroke behaviour are
   untouched, and the field is still named by the visible label above it.  An
   empty field now shows six empty hairline cells, which is what it means. */
#account-panel #account-code::placeholder { color: transparent; }

/* --- the six-digit step ---------------------------------------------------
   Exactly one <input> still owns the code (autocomplete="one-time-code",
   maxlength="6", paste and autofill all still land in it); the strip of six
   cells is a painted overlay, aria-hidden, pointer-events:none.  A real input
   per digit would change what the customer's keyboard, password manager and
   screen reader see, which this stick is not allowed to do.

   Geometry, measured in work/stick-loginpolish/probe-modal.log.  A cell is
   --code-cell wide (48px), so cell i occupies [48i, 48i+48) and pitch places
   digit i at i*48 plus the indent: letter-spacing is one full cell minus one
   character, and the indent is half of that remainder plus the strip's 1px
   border.  Helvetica Neue gives 1ch = 8.891px at 16px (a digit advances
   8.896px), so the first digit
   centre and the first cell centre land on the same pixel and the other five
   are half a pixel off, because each of those cells loses 1px to its own
   hairline.  That arithmetic was checked in pixels rather than assumed:
   work/stick-loginpolish/probe-cells-ink.log types six zeros, screenshots a
   band across the middles of the cells, and finds the ink centres; the worst
   offset between a digit centre and its cell centre is 0.19 CSS px, at 1280,
   390 and 320 alike.  A filled field then measures 6*48 + (48 - 8.891) =
   329px: the trailing letter-space after the SIXTH digit is the cost of
   pitch-based spacing, and reserving it is what keeps the field from scrolling
   the moment the sixth digit lands (measured scrollWidth - clientWidth = 0). */
#account-panel .code-field { position: relative; }
#account-panel #account-code {
  width: calc(6 * var(--code-cell) + 2px + (var(--code-cell) - 1ch));
  max-width: 100%;
  height: var(--ctl);
  min-height: var(--ctl);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--l-ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  text-align: left;
  text-indent: calc((var(--code-cell) - 1ch) / 2 + 1px);
  letter-spacing: calc(var(--code-cell) - 1ch);
}
#account-panel #account-code:focus { outline: none; }
#account-panel .code-cells {
  position: absolute;
  left: 0;
  bottom: 1px;                    /* (var(--ctl) - 46px) / 2: vertically centred */
  width: calc(6 * var(--code-cell) + 2px);
  height: calc(var(--ctl) - 2px);
  display: grid;
  grid-template-columns: repeat(6, var(--code-cell));
  border: 1px solid var(--l-line);
  pointer-events: none;
}
#account-panel .code-cell + .code-cell { border-left: 1px solid var(--l-line); }
/* Focus belongs to the cells the customer is filling, not to the invisible
   input painted over them.  The strip's own outer hairline moves to --l-red, so
   the six boxes get the same single-line focus the e-mail field gets.  The
   separators between cells are drawn by .code-cell + .code-cell on the cells
   themselves, so they stay --l-line and the strip never becomes a red grid; the
   box holding the input stays silent (outline:none above). */
#account-panel .code-field:focus-within .code-cells { border-color: var(--l-red); }

/* --- phones ---------------------------------------------------------------
   Below the tablet line the centred card becomes a bottom sheet: flush to the
   screen edges, sitting on the bottom edge instead of floating, with the same
   card padding and the same hairline along its top.  The tab bar is beneath
   the scrim at this point because the panel is the front-most layer, which is
   what it was when it was a section too. */
@media (max-width: 480px) {
  #account-panel { padding: 0; }
  #account-panel .shell.narrow { max-width: none; margin: auto 0 0; }
  #account-panel .account-card {
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    /* Same reserve as the desktop box, so a sheet that grows to its cap still
       stops below the header rather than covering the chip it was opened from.
       Past the cap the card scrolls its own content — a bottom sheet stays
       anchored, which is the one thing a sheet must keep.  overflow-y:auto is
       also what verify-membership1-ui accepts as a spill container, unlike
       overflow:hidden. */
    max-height: calc(100vh - var(--s8) - var(--s1));
    overflow-y: auto;
  }
  /* One column for both steps.  With a flexible basis of auto, the row wrapped
     on the width of the words: at 390 "Send code" and "Not now" fitted on one
     line, while "Verify and sign in" is wide enough to break, so the code step
     stacked and the e-mail step did not -- one flow, two button geometries.
     A full basis settles it: primary over quiet, same two rows, same height and
     gap, in both steps.  Basis only; no size, colour or order is invented here. */
  #account-panel .design-actions .btn { flex: 1 1 100%; }
}

/* 32px cells below the 390px line: six 48px cells plus the trailing
   letter-space need 329px of card content, and 375 is the width where that
   stops being comfortable.  32px is --s4, and six of them plus slack fit a
   320px screen inside a card that has not lost its padding. */
@media (max-width: 389.98px) {
  #account-panel { --code-cell: var(--s4); }
}

/* ===========================================================================
   FIX-6 — ONE CONTROL SYSTEM (2026-12-02)

   The audit counted ten button heights, two border weights in one header row,
   a 24x12 mobile cart target and a card CTA dressed as an underlined link.
   This block is the single place those converge.  Three tiers, named once:

     primary   47px  — the one filled action in a decision row
     standard  42px  — every other button / the header controls / inputs
     chip     32px  — filter, size, layer and layout chips

   The rule is by ROW, not by class alone: a row that contains a primary gives
   every control in that row the primary height, so "Send code" + "Not now"
   are one line.  Colours, radius and type still come from the White Box
   tokens (--l-ink / --l-hair / --l-grey / --l-red / --radius-pill); nothing
   new is introduced here.  These rules live after skin-b.css, so they are the
   last word without raising specificity beyond the components they touch.
   =========================================================================== */
:root {
  --ctl-primary: 47px;
  --ctl-standard: 42px;
  --ctl-chip: 32px;
}

/* Base: every .btn is a real box of the standard tier.  Inline-flex centres
   the label in the explicit height, so the <a> and <button> forms of the same
   class can no longer disagree by a line-height. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: var(--ctl-standard);
  min-height: var(--ctl-standard);
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  line-height: 1;
  text-decoration: none;
}
.btn-primary {
  height: var(--ctl-primary);
  min-height: var(--ctl-primary);
}

/* A row with one filled action is a primary row: every control on it takes
   the primary height (and the same 1px box / square radius from .btn). */
.cta-row .btn,
.design-actions .btn,
.pdp-actions .btn,
.pdp-actions .pdp-close,
#order-confirm {
  height: var(--ctl-primary);
  min-height: var(--ctl-primary);
}
#account-panel .design-actions .btn {
  height: var(--ctl-primary);
  min-height: var(--ctl-primary);
}
/* The quiet second action in the sign-in row keeps a visible hairline: same
   border treatment as the primary beside it, only the fill differs. */
#account-panel #account-cancel {
  border-color: var(--l-hair);
  color: var(--l-grey);
}
#account-panel #account-cancel:hover {
  border-color: var(--l-ink);
  color: var(--l-ink);
}

/* The product page's quiet second action is a box, not an underlined link:
   same row, same height, same border treatment and radius as its primary. */
.pdp-actions .pdp-close {
  border: 1px solid var(--l-hair);
  border-radius: var(--radius-pill);
  padding: 0 22px;
  text-decoration: none;
  color: var(--l-grey);
  background: transparent;
}
.pdp-actions .pdp-close:hover {
  color: var(--l-ink);
  border-color: var(--l-ink);
  text-decoration: none;
}

/* Header: the order entry, Sign in and the language toggle are one row of
   identical boxes.  The language toggle was the only bottom-underline. */
.header-inner .nav-cart,
.header-inner .btn-account,
.header-inner .btn-lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: var(--ctl-standard);
  min-height: var(--ctl-standard);
  padding: 0 22px;
  border: 1px solid var(--l-hair);
  border-radius: var(--radius-pill);
  color: var(--l-grey);
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .16em;
  line-height: 1;
  text-decoration: none;
}
.header-inner .nav-cart {
  gap: 6px;
  color: var(--l-ink);
  overflow: visible;
}
.header-inner .btn-account { color: var(--l-ink); max-width: none; }
.header-inner .btn-lang { color: var(--l-grey); flex: 0 0 auto; }
.header-inner .nav-cart:hover,
.header-inner .btn-account:hover,
.header-inner .btn-lang:hover { color: var(--l-ink); border-color: var(--l-ink); }

/* The mobile cart is a target, not a sliver.  At <=480 it keeps the same 42px
   box and shows the short label; the long "Order summary" label is replaced,
   not clipped.  The label spans exist on both sides of the breakpoint. */
.nav-cart-short { display: none; }
@media (max-width: 480px) {
  .header-inner { gap: var(--s1); }
  .header-inner .nav-cart { padding: 0 14px; }
  .header-inner .nav-cart-label {
    /* Keep the full accessible name; only the paint is replaced by the short
       visible word below. */
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .header-inner .nav-cart-short { display: inline; }
  .header-inner .btn-account,
  .header-inner .btn-lang { padding: 0 14px; }
}

/* Shop card action: a standard-tier outlined button, never an underlined
   text link.  Same height, 1px hairline and square radius as the row it
   shares with every other card action.  Home's curated strip reuses the same
   card component, so the base selector is the card action itself; the shop
   grid's own rule below keeps its id-scoped precedence. */
.btn.retail-personalise {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: var(--ctl-standard);
  min-height: var(--ctl-standard);
  padding: 0 22px;
  margin-top: var(--s1);
  border: 1px solid var(--l-hair);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--l-ink);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .16em;
  text-decoration: none;
}
.btn.retail-personalise:hover {
  color: var(--l-ink);
  border-color: var(--l-ink);
  background: transparent;
  text-decoration: none;
}
#retail-cards .retail-personalise {
  height: var(--ctl-standard);
  min-height: var(--ctl-standard);
  padding: 0 22px;
  border: 1px solid var(--l-hair);
  background: transparent;
  text-decoration: none;
  font-weight: 500;
}

/* Chips: one ceiling, 32px.  The layout / layer rows previously lifted to
   44px for touch; the brief's chip tier is 32, so they take the same height
   as every other chip in the system (padding keeps the label off the edge). */
.shop-filter button,
.shop-seg-btn,
#shop-field-layout .shop-seg-btn,
#shop-field-layers .shop-seg-btn,
.vault-product,
.collect-check {
  box-sizing: border-box;
  height: var(--ctl-chip);
  min-height: var(--ctl-chip);
  max-height: var(--ctl-chip);
  border-width: 1px;
  padding-top: 0;
  padding-bottom: 0;
}
.shop-swatch {
  box-sizing: border-box;
  width: var(--ctl-chip);
  height: var(--ctl-chip);
  border-width: 1px;
}
.fv-mode,
.style-all-toggle { max-height: var(--ctl-chip); }

/* Inputs sit on the standard tier too: the studio fields and the sign-in
   email are the same control height as the buttons beside them. */
input[type="text"],
select {
  box-sizing: border-box;
  height: var(--ctl-standard);
  min-height: var(--ctl-standard);
  padding-top: 0;
  padding-bottom: 0;
}
#account-panel {
  --ctl: var(--ctl-standard);
}

/* Typography: one panel label at a time.  When a finished view has only one
   mode, the lone tab is not a choice, so it leaves the row (app.js sets the
   hidden attribute); the title remains the one label. */
.fv-modes[hidden] { display: none; }
.fv-head { align-items: center; }
/* FIX-6 item 5: every idea-door card in a row is the same height.  The grid
   already stretches its tracks; the explicit 100% stops a two-line title from
   collapsing the card's own box on a shorter caption. */
.style-cards { align-items: stretch; grid-auto-rows: 1fr; }
.style-card { height: 100%; }
.style-card-caption { align-content: start; }
.fv-detail-btn {
  flex: 0 0 auto;
  height: var(--ctl-chip);
  min-height: var(--ctl-chip);
  padding: 0 14px;
  border: 1px solid var(--l-hair);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--l-ink);
  font: inherit;
  font-size: 12px;
  letter-spacing: .12em;
  cursor: pointer;
}
.fv-detail-btn:hover { border-color: var(--l-ink); }
.fv-detail-btn[hidden] { display: none; }

/* Garment print-detail overlay (FIX-6 item 8).  Presentation only: it draws a
   fresh copy of the finished garment at a crop around the print plate, so name
   and number are read at reading size.  No print file or geometry is touched. */
.garment-detail {  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: var(--s2);
  background: var(--l-scrim);
}
.garment-detail[hidden] { display: none; }
.garment-detail-card {
  width: min(92vw, 760px);
  max-height: calc(100vh - var(--s4));
  overflow: auto;
  background: var(--l-card);
  border: 1px solid var(--l-line);
  padding: var(--s2);
  display: grid;
  gap: var(--s1);
}
.garment-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
}
.garment-detail-title {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .14em;
  color: var(--l-micro);
}
.garment-detail-stage svg {
  display: block;
  width: 100%;
  height: auto;
  background: var(--l-stage);
}
.garment-detail-note {
  margin: 0;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--l-grey);
}

/* Keyboard focus, visible everywhere.  The accent ring is the site's own
   --l-red; text fields keep their neutral hairline (the error border is a
   separate, validation-only state) but get the same ring. */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
[tabindex]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--l-red);
  outline-offset: 2px;
}
/* Components that used to set outline:none or never drew a ring. */
.kit-tile:focus-visible,
.kit-art:focus-visible,
.kit-handle:focus-visible,
.shop-swatch:focus-visible,
.shop-seg-btn:focus-visible,
.fv-mode:focus-visible {
  outline: 2px solid var(--l-red);
  outline-offset: 2px;
}
#account-panel #account-email:focus,
#account-panel #account-email:focus-visible {
  border-color: var(--l-line);
  outline: 2px solid var(--l-ink);
  outline-offset: 2px;
}
#account-panel #account-email[aria-invalid="true"] {
  border-color: var(--l-red);
}
#account-panel #account-email[aria-invalid="true"]:focus,
#account-panel #account-email[aria-invalid="true"]:focus-visible {
  outline-color: var(--l-red);
}

/* Initial-route reserve.  index.html marks the chosen shell before the
   deferred app.js runs; this keeps the first paint the final layout instead
   of painting an empty page and pushing the route into place (CLS 0.91875). */
html.tks-pre-route [data-route] { display: none; }
/* The footer is outside the routed shells; leaving it in the first paint lets
   it sit at the bottom of a half-built route and then jump as the route grows.
   It takes no part in the initial layout and appears once the router has
   settled the route.  Bottom tabs are fixed and have no height to reserve. */
html.tks-pre-route .site-footer,
html.tks-pre-route #bottom-tabs { display: none; }
html.tks-pre-route.tks-route-home [data-route~="home"],
html.tks-pre-route.tks-route-shop [data-route~="shop"],
html.tks-pre-route.tks-route-product [data-route~="product"],
html.tks-pre-route.tks-route-design [data-route~="design"],
html.tks-pre-route.tks-route-studio [data-route~="studio"],
html.tks-pre-route.tks-route-order [data-route~="order"],
html.tks-pre-route.tks-route-teams [data-route~="teams"] { display: block; }

/* FIX-6 item 4 — the operator print queue is a page of the site.  The shared
   header/typography arrive from styles.css + skin-b.css; these rules only give
   the table the same hairline language as the storefront and stack its rows
   into labelled cards below 700px, so 390px has no horizontal overflow. */
.queue-sub { margin-bottom: var(--s3); }
.queue-panel {
  border: 1px solid var(--l-line);
  background: var(--l-card);
}
.queue-scroll { width: 100%; overflow-x: auto; }
.queue-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.queue-table th,
.queue-table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--l-line);
  font-size: 13px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.queue-table th {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--l-micro);
  background: var(--l-stage);
}
.queue-table th:nth-child(1), .queue-table td:nth-child(1) { width: 16%; }
.queue-table th:nth-child(2), .queue-table td:nth-child(2) { width: 12%; }
.queue-table th:nth-child(3), .queue-table td:nth-child(3) { width: 6%; }
.queue-table th:nth-child(4), .queue-table td:nth-child(4) { width: 13%; }
.queue-table th:nth-child(5), .queue-table td:nth-child(5) { width: 24%; }
.queue-table th:nth-child(6), .queue-table td:nth-child(6) { width: 13%; }
.queue-table th:nth-child(7), .queue-table td:nth-child(7) { width: 16%; }
.queue-table tbody tr:last-child td { border-bottom: 0; }
.queue-table a { color: var(--l-ink); text-underline-offset: 3px; }
.queue-value { display: block; }
.queue-status { font-weight: 500; }
.queue-empty-row td { color: var(--l-grey); }
.queue-note {
  margin: var(--s2) 0 0;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--l-grey);
}
@media (max-width: 700px) {
  .queue-table,
  .queue-table tbody,
  .queue-table tr,
  .queue-table td { display: block; width: 100%; }
  .queue-table thead { display: none; }
  .queue-table tr {
    border-bottom: 1px solid var(--l-line);
    padding: var(--s1) var(--s2);
  }
  .queue-table tbody tr:last-child { border-bottom: 0; }
  .queue-table td {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: var(--s1);
    border: 0;
    padding: 5px 0;
    width: 100%;
  }
  /* The desktop column widths are set on :nth-child and would beat the plain
     `td` width above; the row is a card here, so every cell takes the row. */
  .queue-table tbody td:nth-child(n) { width: 100%; }
  .queue-table td::before {
    content: attr(data-label);
    font-size: 11px;
    letter-spacing: .12em;
    color: var(--l-micro);
    text-transform: uppercase;
  }
  .queue-table .queue-empty-row td { display: block; }
  .queue-table .queue-empty-row td::before { content: none; }
}

/* ===========================================================================
   FIX-6b — AESTHETIC GATE PASS (2026-12-03)

   The FIX-6 control tiers passed; this block answers the formal aesthetic
   gate's 22 required fixes: one display scale, one chip voice, one header
   across routes, one page-top rhythm, even mats, aligned baselines and the
   print queue's real columns.  Every value below is an existing token or a
   measurement from the gate report; no colour, font or radius is invented.
   =========================================================================== */
:root{
  /* One display scale. A page title (H1) and a section title (H2), both in
     the one serif face; the mobile pair steps down together. */
  --title-h1:40px;
  --title-h2:32px;
  /* One header-to-first-element rhythm, desktop and phone. */
  --page-top:48px;
  /* One gap between buttons that share a row. */
  --btn-gap:16px;
}
@media (max-width:719.98px){
  :root{ --title-h1:30px; --title-h2:24px; --page-top:24px; }
}

/* ---------------------------------------------------------------------------
   1. Header: one row of identical controls on every route.
   --------------------------------------------------------------------------- */
.header-inner{ gap:var(--btn-gap); }
.site-nav a{ letter-spacing:normal; }
/* The tracker is a tracked English caption; 中文 is CJK and takes no tracking,
   and the order entry is the same word on desktop and mobile (item 22). */
.header-inner .btn-lang{ color:var(--l-ink); }
.btn-lang:lang(zh),
html[lang^="zh"] .header-inner .btn-account,
html[lang^="zh"] .header-inner .nav-cart{ letter-spacing:normal; }
/* Sign in is a header button like its neighbours: same .16em caption tracking.
   Only the signed-in address (data-signed-in="1") drops it, because an e-mail
   is data, not a button caption. */
#account-chip .account-chip-label{ letter-spacing:.16em; }
#account-chip[data-signed-in="1"] .account-chip-label{ letter-spacing:normal; }

/* ---------------------------------------------------------------------------
   2. Display type scale — one H1, one H2, no tracking on serif titles.
   --------------------------------------------------------------------------- */
.section-title{
  font-size:var(--title-h2);
  font-weight:400;
  letter-spacing:normal;
  line-height:1.18;
  margin:0 0 16px;
}
h1.display,
.page-title,
#hero .display,
#pdp-title{
  font-size:var(--title-h1);
  font-weight:400;
  letter-spacing:normal;
  line-height:1.12;
}
/* The serif is a 400 face; every title that uses it is set at that weight,
   and no serif title carries open tracking. */
.section-title,
.door-title,
.steps h3,.step h3,
.shop-step,
.team-block-title,
.team-banner-band>.display,
.kit-suite-title,
.door-switch-title,
.retail-card-name,
#hero .display,
.pdp-title,
#studio-product-name{ font-weight:400; letter-spacing:normal; }

/* ---------------------------------------------------------------------------
   3. One page-top rhythm on every route (desktop 48, phone 24).
   --------------------------------------------------------------------------- */
.section{ padding-top:var(--page-top); }
#hero.hero{ padding-top:var(--page-top); }
#start.section{ padding-top:var(--page-top); }
.retail-section .shell > .section-title{ padding-top:0; }
.pdp{ margin-top:0; }

/* ---------------------------------------------------------------------------
   4. Running text: no tracking; one body measure for the hero.
   --------------------------------------------------------------------------- */
#hero .lead,
.hero-price{
  font-size:14.5px;
  font-weight:300;
  line-height:1.6;
  letter-spacing:normal;
}
#hero .lead{ margin-top:16px; }
.hero-price{ color:var(--l-grey); margin-top:12px; }
.eyebrow,.pdp-eyebrow{ letter-spacing:normal; }
.site-footer,.footer-privacy,.footer-note{ letter-spacing:normal; }
.footer-privacy{ font-family:var(--font-body); font-weight:400; }
.section-sub{ font-weight:300; line-height:1.55; margin-bottom:24px; }

/* ---------------------------------------------------------------------------
   5. Same-row button gaps and the home hero row.
   --------------------------------------------------------------------------- */
.cta-row,.design-actions,.pdp-actions,.order-actions{ gap:var(--btn-gap); }
/* The 38/62 hero split could not fit the two CTAs on one line (421.9px of
   buttons in a 383px column).  The copy column takes four points of the poster
   so the pair sits side by side at 1280; below 1100 they stack full width. */
@media (min-width:720px){
  .hero-grid{ grid-template-columns:minmax(0,44fr) minmax(0,56fr); }
}
@media (max-width:1149.98px){
  .cta-row{ flex-direction:column; align-items:stretch; }
}
@media (max-width:719.98px){
  .cta-row .btn,
  #order-confirm,
  #studio-change,
  .pdp-actions .btn,
  .pdp-actions .pdp-close,
  .design-actions > .btn,
  .retail-personalise{ width:100%; }
}

/* ---------------------------------------------------------------------------
   6. One chip voice; one scrolling filter row; no orphan chip.
   --------------------------------------------------------------------------- */
.shop-filter{
  flex-wrap:nowrap;
  overflow-x:auto;
  gap:var(--s1);
  padding:0 0 var(--s2);
  scrollbar-width:thin;
}
.shop-filter button{
  flex:0 0 auto;
  white-space:nowrap;
  font-weight:500;
  letter-spacing:.14em;
}
.shop-seg-btn{ font-weight:500; letter-spacing:.14em; }
/* A/B/C: the three layout chips fit one row at the studio column width. */
#shop-field-layout .shop-seg{ flex-wrap:nowrap; gap:6px; }
#shop-field-layout .shop-seg-btn{
  flex:0 1 auto;
  justify-content:center;
  padding-left:6px;
  padding-right:6px;
  font-size:11px;
  white-space:nowrap;
}

/* ---------------------------------------------------------------------------
   7. Shop cards: 16px image-to-title gap; no stagger; equal row gaps.
   --------------------------------------------------------------------------- */
@media (min-width:560px){
  #retail-cards .retail-card-name{ margin-top:16px; }
}
@media (max-width:559.98px){
  #retail-cards .retail-card-name{ margin-top:0; }
}
#retail-cards > :nth-child(3n+2){ margin-top:0; }

/* ---------------------------------------------------------------------------
   8. Product page: H1 title, matched button labels, baseline price,
      one spec table, even display-style mats, balanced gallery.
   --------------------------------------------------------------------------- */
.pdp-price{ align-items:baseline; }
.pdp-actions .pdp-close,
.pdp-close{
  font-size:13px;
  font-weight:500;
  letter-spacing:.16em;
  line-height:1;
}
/* One spec row sitewide: the shop card's label/value pair. */
.b-spec .b-spec-row span,
.pdp-spec-row span{
  color:var(--l-micro);
  font-weight:400;
  letter-spacing:.14em;
}
.b-spec .b-spec-row b,
.pdp-spec-row b{ color:var(--l-ink); font-weight:500; }
.pdp-spec-row{ font-size:12px; padding:7px 0; color:var(--l-micro); }
/* Product-page display styles: the hero's even mat instead of side bars. */
.pdp-gallery-title{ text-transform:none; letter-spacing:normal; }
.pdp-gallery-img{
  width:100%;
  height:auto;
  aspect-ratio:4 / 5;
  object-fit:contain;
  object-position:center;
  padding:16px;
  background:var(--l-stage);
  border:1px solid var(--l-line);
}
@media (min-width:560px){
  .pdp-gallery[data-items="3"] .pdp-gallery-items{ grid-template-columns:repeat(3,minmax(0,1fr)); }
  .pdp-gallery[data-items="1"] .pdp-gallery-items{ grid-template-columns:minmax(0,1fr); }
}

/* ---------------------------------------------------------------------------
   9. Studio: one label style plus one price style for the Designing line.
   --------------------------------------------------------------------------- */
.studio-product-label{
  font-family:var(--font-body);
  font-size:12px;
  font-weight:500;
  letter-spacing:.14em;
  color:var(--l-micro);
}
#studio-product-name{
  font-family:var(--l-font-title);
  font-size:24px;
  line-height:1.1;
  color:var(--l-ink);
}
#studio-product-price{
  font-family:var(--font-body);
  font-size:15px;
  font-weight:400;
  letter-spacing:normal;
  color:var(--l-grey);
}
/* One colour for every studio field label. */
.shop-field,
.shop-field label,
.shop-field label > span,
.shop-field .shop-cap{ color:var(--l-micro); }
.source-step-title{ margin:0 0 8px; }

/* ---------------------------------------------------------------------------
   10. Design preview: one border level; the garment frame fills the panel.
   --------------------------------------------------------------------------- */
.fv{
  border:0;
  padding:0;
  background:transparent;
}
#fv-stage{ display:flex; align-items:center; justify-content:center; }
#fv-stage > svg{
  display:block;
  width:auto;
  height:clamp(280px, 36vw, 420px);
  max-width:100%;
}

/* ---------------------------------------------------------------------------
   11. Order page: equal cards, confirm under the summary total, term gap.
   --------------------------------------------------------------------------- */
.order-grid{ align-items:stretch; }
#order-summary{ display:flex; flex-direction:column; }
#order-summary .order-actions{ margin-top:auto; padding-top:var(--s2); }
.order-total{ margin:0 0 12px; }
.order-total + .order-note{ margin-top:0; }

/* ---------------------------------------------------------------------------
   12. Print queue: real column widths, one casing, mobile tab bar.
   --------------------------------------------------------------------------- */
.queue-table{ font-size:12px; }
.queue-table th,
.queue-table td{
  padding:8px;
  white-space:nowrap;
  overflow-wrap:normal;
  word-break:normal;
}
.queue-table th{
  font-size:11px;
  font-weight:500;
  letter-spacing:normal;
  text-transform:none;
}
.queue-table th:nth-child(1), .queue-table td:nth-child(1){ width:15%; }
.queue-table th:nth-child(2), .queue-table td:nth-child(2){ width:8%; }
.queue-table th:nth-child(3), .queue-table td:nth-child(3){ width:4%; }
.queue-table th:nth-child(4), .queue-table td:nth-child(4){ width:9%; }
.queue-table th:nth-child(5), .queue-table td:nth-child(5){ width:34%; }
.queue-table th:nth-child(6), .queue-table td:nth-child(6){ width:11%; }
.queue-table th:nth-child(7), .queue-table td:nth-child(7){ width:19%; }
@media (max-width:700px){
  .queue-table td{ white-space:normal; }
  .queue-table td::before{ letter-spacing:normal; text-transform:none; }
}

/* FIX-6b follow-through: h2.display (0,1,1) outranks a bare .section-title /
   .page-title class, so the one H1/H2 pair is restated at the same weight. */
h2.section-title{ font-size:var(--title-h2); }
h2.page-title,
h2.section-title.page-title{ font-size:var(--title-h1); }

/* FIX-6b item 13: the hero copy starts at the shared page-top line, not
   vertically floated to the middle of the taller poster. */
@media (min-width:720px){
  .hero-grid{ align-items:start; }
}
/* FIX-6b item 1: the gate's measured header geometry.  With the order entry
   now labelled "Cart" on every route, the navigation keeps the original
   starting x (430 at 1280) instead of drifting right with the shorter label.
   The spacer only exists where the header has room for it. */
@media (min-width:1200px){
  .site-nav{ margin-right:164px; }
}

/* FIX-6b follow-through 2 — measurement-driven adjustments.
   The studio page's #shop band follows the source step directly; its own
   section-top padding would be a second band opening, so it starts flush. */
#shop.section{ padding-top:0; }

/* The product action row needs 459.5px for both 16px-apart labels; the detail
   column was 455px, so the pair wrapped. Two points of column width keeps the
   pair on one row without touching either label's typesetting. */
@media (min-width:720px){
  .pdp{ grid-template-columns:minmax(0,1.08fr) minmax(0,1fr); }
}

/* Queue: widths measured from the real strings at 12px (order id 144px,
   print file 351px, timestamp 195px), plus 16px of cell padding. */
.queue-table th:nth-child(1), .queue-table td:nth-child(1){ width:15.5%; }
.queue-table th:nth-child(2), .queue-table td:nth-child(2){ width:8%; }
.queue-table th:nth-child(3), .queue-table td:nth-child(3){ width:3%; }
.queue-table th:nth-child(4), .queue-table td:nth-child(4){ width:6%; }
.queue-table th:nth-child(5), .queue-table td:nth-child(5){ width:35.5%; }
.queue-table th:nth-child(6), .queue-table td:nth-child(6){ width:10%; }
.queue-table th:nth-child(7), .queue-table td:nth-child(7){ width:22%; }

/* FIX-6b follow-through 3 */
.queue-table td{ font-size:12px; }
@media (max-width:559.98px){
  /* At 390 the three layout names share one centred segmented row, the same
     geometry the Style control uses: three equal cells instead of three
     full-width left-aligned strips.  At 11px with 4px padding the longest
     name, "Crest + big number", filled the 104px cell edge to edge (~1px
     clearance).  10px with no tracking and 6px horizontal padding keeps it
     inside the cell with clear space on both sides; the row is measured at
     390 in the fix-round-2 evidence. */
  #shop-field-layout .shop-seg{ flex-direction:row; flex-wrap:nowrap; gap:6px; }
  #shop-field-layout .shop-seg-btn{
    flex:1 1 0; width:auto; justify-content:center;
    text-align:center; padding-left:6px; padding-right:6px;
    font-size:10px; letter-spacing:0;
  }
}

@media (max-width:719.98px){
  /* The page-level "Change product" CTA is full width like the hero and the
     order confirmation; its wrapping <p> must be full width for the rule on
     the anchor to have a row to fill. */
  .studio-switch{ width:100%; }
}

html.tks-pre-route #finished-view{ display:block; }
html.tks-pre-route #fv-stage{ min-height:clamp(280px,36vw,420px); }
.shop-seg-btn{ font-size:12.5px; }

/* ==========================================================================
   DESIGN-REBUILD — the unified studio shell.
   White Box tokens only: --l-ground/--l-card/--l-stage/--l-line/--l-hair/
   --l-ink/--l-grey/--l-red, 0px radius, zero shadows.
   ========================================================================== */
.design-studio{ padding-top:0; }
.studio-top{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:var(--s2); padding:28px 0 20px;
}
.studio-title{
  font-family:var(--l-font-title); font-weight:400; font-size:28px;
  line-height:1.1; letter-spacing:.01em; color:var(--l-ink); margin:0;
  position:relative; padding-top:10px;
}
.studio-title::before{
  content:""; position:absolute; left:0; top:0; width:48px; height:1px;
  background:var(--l-ink);
}
.door-tabs{ display:inline-flex; border:1px solid var(--l-hair); background:var(--l-card); }
.door-tab{
  display:inline-flex; align-items:center; justify-content:center;
  height:var(--ctl-standard); min-height:var(--ctl-standard); padding:0 18px;
  border-left:1px solid var(--l-hair); background:var(--l-card);
  color:var(--l-grey); font-size:12px; font-weight:500; letter-spacing:.04em;
  text-decoration:none; white-space:nowrap;
}
.door-tab::before{ content:none; display:none; }
.door-tab:first-child{ border-left:0; }
.door-tab.is-current{
  background:var(--l-ink); color:#ffffff; border:1px solid var(--l-ink);
  padding:0 18px;
}
.door-tab.is-current:not(:first-child){ border-left-color:var(--l-ink); }
.studio-grid{
  display:grid; grid-template-columns:minmax(0,58fr) minmax(0,42fr);
  gap:var(--l-gap); align-items:start; padding-bottom:56px; min-width:0;
}
.studio-left{ position:sticky; top:20px; min-width:0; max-width:100%; }
.studio-head{
  display:flex; align-items:center; justify-content:space-between; gap:var(--s1);
  min-height:42px; border-bottom:1px solid var(--l-line); padding-bottom:12px;
}
.studio-product{ margin:0; display:flex; align-items:baseline; gap:10px; min-width:0; }
.studio-product b{ font-family:var(--font-body); font-size:16px; font-weight:500; color:var(--l-ink); }
.studio-price{ font-size:14px; color:var(--l-grey); }
.studio-switch{ height:var(--ctl-chip); min-height:var(--ctl-chip); padding:0 14px;
  border:1px solid var(--l-hair); color:var(--l-ink); }
.design-stage{
  position:relative; margin-top:12px; background:var(--l-stage);
  border:1px solid var(--l-line); aspect-ratio:1 / 1; max-height:560px;
  overflow:hidden; display:flex; align-items:center; justify-content:center;
}
.design-stage.is-dark{ background:var(--l-card); }
.design-stage.is-dark .design-stage-art{ padding:0; }
.design-stage.is-dark .design-stage-art > svg{ border:0; }
.design-stage-art{ width:100%; height:100%; display:flex; align-items:center; justify-content:center; }
.design-stage-art > svg{ width:100%; height:100%; display:block; }
.design-stage-art .studio-vector{ width:100%; height:100%; display:flex; align-items:center; justify-content:center; }
.design-stage-art .studio-vector svg{ max-width:92%; max-height:92%; }
.studio-vector-note{ color:var(--l-grey); font-size:13px; }
.design-stage-guide{
  position:absolute; left:0; right:0; bottom:10px; border:0;
  pointer-events:none; display:flex; align-items:flex-end; justify-content:center;
}
.studio-guide-label{
  color:var(--l-grey); font-size:11px; line-height:1.4;
  letter-spacing:.04em; white-space:nowrap;
  background:var(--l-stage); padding:2px 6px;
}
.design-stage.is-dark .studio-guide-label{ background:var(--l-card); }
.design-stage-busy{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  background:transparent; padding:16px;
}
.studio-busy-card{
  width:100%; max-width:340px; background:var(--l-card); border:1px solid var(--l-line);
  padding:20px; text-align:left;
}
.studio-busy-head{ display:flex; align-items:center; gap:10px; }
.studio-busy-thumb{ width:48px; height:48px; border:1px solid var(--l-line); overflow:hidden; display:block; flex:0 0 auto; }
.studio-busy-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.studio-busy-head b{ font-size:13px; font-weight:500; color:var(--l-ink); }
.studio-busy-steps{ list-style:none; margin:14px 0 0; padding:0; display:grid; gap:7px; }
.studio-busy-steps li{ font-size:12.5px; color:var(--l-grey); padding-left:18px; position:relative; }
.studio-busy-steps li::before{ content:"·"; position:absolute; left:2px; color:var(--l-hair); }
.studio-busy-steps li.is-done{ color:var(--l-ink); }
.studio-busy-steps li.is-done::before{ content:"✓"; color:var(--l-ink); }
.studio-busy-steps li.is-active{ color:var(--l-ink); }
.studio-busy-steps li.is-active::after{
  content:""; position:absolute; left:18px; right:0; bottom:-3px; height:2px;
  background:var(--l-line); overflow:hidden;
}
.studio-busy-meta{ font-size:12px; color:var(--l-grey); margin:12px 0 0; font-variant-numeric:tabular-nums; }
.studio-busy-note{ font-size:12px; color:var(--l-grey); margin:8px 0 0; }
.studio-busy-card .btn{ width:100%; margin-top:14px; }
.design-stage-error{
  position:absolute; left:16px; right:16px; bottom:16px; background:var(--l-card);
  border:1px solid var(--l-line); border-left:3px solid var(--l-red);
  color:var(--l-ink); padding:12px 14px; font-size:13px; display:grid; gap:10px;
}
.studio-stage-bar{
  display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:12px; min-height:32px;
}
.studio-chips{ display:flex; gap:6px; flex-wrap:wrap; }
.studio-telemetry{ font-size:12px; color:var(--l-grey); font-variant-numeric:tabular-nums; }
.studio-adjust{ height:var(--ctl-chip); min-height:var(--ctl-chip); padding:0 12px; }
.studio-adjust.is-selected{ background:var(--l-ink); color:#ffffff; border-color:var(--l-ink); }
.studio-rail{ margin-top:22px; min-width:0; max-width:100%; overflow:hidden; }
.studio-rail-head{ display:flex; align-items:baseline; justify-content:space-between; gap:var(--s1); margin-bottom:12px; }
.studio-rail-title{ font-family:var(--l-font-title); font-weight:400; font-size:18px; margin:0; color:var(--l-ink); }
.studio-browse{ height:var(--ctl-chip); min-height:var(--ctl-chip); padding:0 12px; white-space:nowrap; }
.studio-rail-tiles{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; min-width:0; max-width:100%; }
.studio-tile{
  background:var(--l-card); border:1px solid var(--l-line); padding:8px;
  display:grid; gap:4px; text-align:left; cursor:pointer; min-width:0;
}
.studio-tile:hover{ border-color:var(--l-hair); }
.studio-tile-thumb{
  display:flex; align-items:center; justify-content:center; aspect-ratio:1/1;
  background:var(--l-stage); overflow:hidden;
}
.studio-tile-thumb img{ width:100%; height:100%; object-fit:contain; }
.studio-tile-thumb > svg{ width:100%; height:100%; display:block; }
.studio-tile-thumb svg{ max-width:100%; max-height:100%; }
.studio-tile-fallback{ font-size:11px; color:var(--l-grey); }
.studio-tile-name{ font-size:12.5px; font-weight:500; color:var(--l-ink); overflow-wrap:anywhere; }
.studio-tile-price{ font-size:12px; color:var(--l-grey); }
.studio-tile-rank{ font-size:11px; font-weight:500; color:var(--l-ink); letter-spacing:.02em; }
/* DESIGN-REBUILD-4 defect 2 — one reserved tag/cue row per tile, so every
   tile's tag sits in the same slot and row-1 tags share a baseline. */
.studio-tile-tag{ display:block; min-height:1.35em; line-height:1.35; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.studio-tile-tag-sep{ font-size:11px; color:var(--l-grey); }
.studio-tile-cue{ font-size:11px; color:var(--l-grey); }
.studio-drawer{
  margin-top:16px; border:1px solid var(--l-line); background:var(--l-card); padding:14px;
}
.studio-drawer-note{ margin:0 0 10px; font-size:12px; color:var(--l-grey); }
.studio-products{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.studio-products .shop-prod{ min-height:var(--ctl-chip); font-size:12px; }
.studio-card{
  background:var(--l-card); border:1px solid var(--l-line); padding:20px; margin-bottom:16px;
}
.studio-step-title{ font-family:var(--l-font-title); font-weight:400; font-size:20px; line-height:1.2; margin:0 0 14px; color:var(--l-ink); }
.studio-question-title{ font-family:var(--l-font-title); font-weight:400; font-size:20px; line-height:1.2; margin:0 0 14px; color:var(--l-ink); }
#design-studio h2.studio-step-title{ font-size:20px; line-height:1.2; margin:0 0 14px; }
.studio-optional{ font-family:var(--font-body); font-size:12px; font-weight:400; color:var(--l-grey); }
.studio-note{ font-size:12.5px; color:var(--l-grey); margin:0 0 12px; line-height:1.5; }
.studio-drop{
  border:1px dashed var(--l-hair); background:var(--l-ground); padding:24px 16px;
  display:grid; gap:10px; justify-items:start;
}
.studio-drop.is-over{ border:2px solid var(--l-ink); }
.studio-choose{ display:inline-flex; align-items:center; justify-content:center; cursor:pointer; }
.studio-file{ position:absolute; width:1px; height:1px; opacity:0; overflow:hidden; }
.studio-drop-note{ margin:0; font-size:12px; color:var(--l-grey); }
.studio-status{ font-size:12.5px; color:var(--l-ink); min-height:18px; margin:10px 0 0; }
.studio-status:empty{ display:none; min-height:0; margin:0; }
.studio-ready{ display:grid; gap:12px; margin-top:0; }
.studio-ready[hidden]{ display:none; }
.studio-processing{ display:grid; gap:12px; margin-top:0; }
.studio-processing[hidden]{ display:none; }
.studio-ready-row{ display:flex; align-items:center; gap:10px; min-width:0; }
.studio-ready-thumb{
  width:56px; height:56px; border:1px solid var(--l-line); flex:0 0 auto; overflow:hidden;
  background:
    linear-gradient(45deg,var(--l-line) 25%,transparent 25%,transparent 75%,var(--l-line) 75%),
    linear-gradient(45deg,var(--l-line) 25%,#ffffff 25%,#ffffff 75%,var(--l-line) 75%);
  background-size:12px 12px; background-position:0 0,6px 6px;
}
.studio-ready-thumb img{ width:100%; height:100%; object-fit:contain; }
.studio-ready-meta{ font-size:12.5px; color:var(--l-grey); overflow-wrap:anywhere; }
.studio-art-actions{ display:flex; gap:8px; flex-wrap:wrap; }
.studio-art-actions .btn{ height:var(--ctl-standard); min-height:var(--ctl-standard); padding:0 14px; }
.studio-opt-row{
  display:flex; align-items:center; gap:10px; min-height:var(--ctl-standard);
  border-bottom:1px solid var(--l-line); font-size:14px; color:var(--l-ink);
}
.studio-opt-row input{ width:18px; height:18px; accent-color:var(--l-ink); }
.studio-text-slot{ padding:10px 0 0; }
.studio-text-slot input{ width:100%; }
.studio-opt-note{ font-size:12px; color:var(--l-grey); margin:12px 0 0; }
.studio-decision{ position:static; }
.studio-drawer[hidden],
.studio-ready[hidden],
.design-stage-busy[hidden],
.design-stage-error[hidden],
.shop-field[hidden],
.studio-text-slot[hidden],
.studio-drop[hidden],
.studio-specs-body[hidden]{ display:none !important; }
.studio-summary{ display:flex; align-items:baseline; justify-content:space-between; gap:var(--s1); margin:0; }
.studio-summary span{ font-size:13px; color:var(--l-grey); }
.studio-summary b{ font-family:var(--font-body); font-size:16px; font-weight:500; color:var(--l-ink); }
.studio-summary-note{ font-size:11.5px; color:var(--l-grey); margin:6px 0 14px; }
.studio-add{ width:100%; }
.studio-add[aria-disabled="true"]:disabled{ opacity:.42; cursor:not-allowed; }
.studio-add-hint{ font-size:12px; color:var(--l-grey); margin:8px 0 0; }
.studio-specs-body{ display:grid; gap:0; margin-top:10px; border-top:1px solid var(--l-hair); }
.studio-spec-row{
  display:flex; justify-content:space-between; gap:var(--s1); padding:7px 0;
  border-bottom:1px solid var(--l-hair); font-size:12px; color:var(--l-grey);
}
.studio-spec-row:last-child{ border-bottom:0; }
.studio-spec-row b{ font-weight:500; color:var(--l-ink); text-align:right; }
.studio-specs-note{ font-size:11.5px; color:var(--l-grey); margin:8px 0 0; }
.print-specs-disclosure{ margin-top:14px; border-top:1px solid var(--l-line); padding-top:10px; }
.print-specs-disclosure summary{ cursor:pointer; font-size:12.5px; color:var(--l-ink); }
.print-specs-disclosure .btn{ width:100%; margin-top:10px; }
.studio-file-host{ font-size:12px; color:var(--l-grey); }

@media (max-width:959.98px){
  .studio-grid{ display:flex; flex-direction:column; }
  .studio-left, .studio-right{ display:contents; }
  .studio-head{ order:1; }
  .design-stage{ order:2; }
  .studio-stage-bar{ order:3; }
  #studio-scale{ order:4; }
  #studio-step2-summary{ order:5; }
  #step-artwork{ order:5; }
  .studio-rail{ order:6; }
  #step-product{ order:7; }
  #step-name-question{ order:8; }
  #step-name{ order:9; }
  .studio-decision{ order:10; }
  .studio-drawer{ order:11; }
  .studio-rail-tiles{ display:flex; overflow-x:auto; scroll-snap-type:x mandatory; gap:12px; padding-bottom:4px; max-width:100%; }
  .studio-tile{ flex:0 0 136px; scroll-snap-align:start; }
  .studio-products{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .studio-decision{ position:static; }
}
@media (max-width:480px){
  .studio-top{ align-items:stretch; flex-direction:column; gap:12px; padding:14px 0 12px; }
  .studio-title{ font-size:22px; }
  .studio-step-title{ font-size:18px; }
  #design-studio h2.studio-step-title{ font-size:18px; }
  .door-tabs{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
  .door-tab{ padding:0 6px; font-size:11.5px; letter-spacing:.04em; }
  .design-stage{ aspect-ratio:4 / 3; max-height:280px; }
  /* The 390 stage reserves the same top/bottom breathing room in every
     state, so a ready card (no caption) is not left with an empty footer. */
  .design-stage-art{ padding:24px 0; box-sizing:border-box; }
  .design-stage-guide{
    top:auto; bottom:0; left:0; right:0;
    padding-bottom:3px; align-items:flex-end; justify-content:center;
  }
  .studio-card{ padding:16px; }
  .studio-rail-tiles{ margin-right:calc(-1 * var(--l-gutter)); }
}

/* DESIGN-REBUILD-2 defects 9-10 — secondary labels are ink and the size row
   stays on one line at both viewports. */
.btn-ghost,
.btn.btn-ghost{ color:var(--l-ink); }
.btn-ghost:hover,
.btn.btn-ghost:hover{ color:var(--l-ink); }
#shop-field-size .shop-sizes{
  display:flex; flex-wrap:nowrap; align-items:center; gap:10px;
  min-width:0; max-width:100%; overflow:hidden;
}
#shop-field-size .shop-size-group{
  display:inline-flex; align-items:center; gap:4px; min-width:0; flex:0 1 auto;
}
#shop-field-size .shop-size-cap{
  font-size:10.5px; letter-spacing:.06em; white-space:nowrap; flex:0 0 auto;
}
#shop-field-size .shop-seg-btn{
  height:var(--ctl-chip); min-height:var(--ctl-chip); padding:0 6px;
  font-size:11.5px; letter-spacing:.01em; flex:0 0 auto;
}

/* ==========================================================================
   FIX-6b leftovers (site-wide, measured by the rebuild harness).
   ========================================================================== */

/* 2. ONE chip component: shop filters and design chips share the border and
      label colour when unselected, and one ink treatment when selected.
      The layout / layer rows are .shop-seg-btn too, so they are covered by the
      class alone.  They used to carry their own ID selectors here, and an ID
      rule outranks the .is-selected rule below: every Layout row stayed white
      even when its button was selected.  The class selector is the one root
      treatment; selection then paints on every row, at every viewport. */
.shop-filter button,
.shop-seg-btn{
  background:var(--l-card);
  color:var(--l-grey);
  border:1px solid var(--l-hair);
  border-radius:0;
  letter-spacing:.04em;
  font-weight:500;
}
.shop-filter button.is-current,
.shop-seg-btn.is-selected,
.shop-seg-btn[aria-pressed="true"]{
  background:var(--l-ink);
  color:#ffffff;
  border-color:var(--l-ink);
}

/* 1. Product page's quiet action is the same near-black secondary button. */
.pdp-actions .pdp-close,
.pdp-close{
  color:var(--l-ink);
  border:1px solid var(--l-hair);
  border-radius:0;
  text-decoration:none;
}
.pdp-close:hover{ color:var(--l-ink); border-color:var(--l-ink); }

/* 3. Mobile bottom tab labels: no letter-spacing. */
@media (max-width:480px){
  .bottom-tabs a{ letter-spacing:normal; }
}

/* 4. Dark garment stage reads against its ground; the inner mat has no
      second border. */
.design-stage.is-dark{ background:var(--l-card); }
.design-stage.is-dark .design-stage-art{ padding:0; }
.design-stage.is-dark .design-stage-art > svg{ border:0; }
.design-stage-art .studio-vector,
.design-stage-art > svg{ border:0; }

/* 5. ONE spec table for shop cards and product page: same rule colour on
      top/inner/closing rules; no extra rule or empty band. */
.b-spec,
.pdp-specs{ border-top:1px solid var(--l-hair); margin-top:var(--s2); }
.b-spec .b-spec-row,
.pdp-spec-row{ border-bottom:1px solid var(--l-hair); }
.b-spec .b-spec-row:last-child,
.pdp-spec-row:last-child{ border-bottom:0; }
.pdp-specs{ padding-top:0; }
.pdp-specs .pdp-spec-row:first-child{ border-top:0; }
/* DESIGN-REBUILD-2 defect 12 — the display set no longer opens with its own
   rule after the spec table; the empty band before it is gone. */
.pdp-specs + .pdp-gallery{ margin-top:12px; border-top:0; }

/* 7. Selected swatch ring: neutral ink, never functional red. */
.shop-swatch.is-selected,
.shop-swatch[aria-pressed="true"]{
  outline:2px solid var(--l-ink);
  outline-offset:2px;
  border-color:var(--l-ink);
}

/* FLOW-2STEP — Step 1 size control, decision point, and Step 2 layout. */
.studio-scale{
  margin-top:12px;
  padding:14px 16px;
  border:1px solid var(--l-line);
  background:var(--l-card);
}
.studio-scale-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
  font-size:13px;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--l-grey);
}
.studio-scale-head output{ color:var(--l-ink); font-variant-numeric:tabular-nums; }
.studio-scale-range{
  width:100%;
  height:var(--ctl-chip);
  margin:0;
  accent-color:var(--l-ink);
  touch-action:pan-x;
}
.studio-scale-actions{ display:flex; justify-content:flex-end; margin-top:6px; }
.studio-scale-note{ margin:4px 0 0; }
.studio-name-question{ margin-top:16px; }

/* FLOW-2STEP — Step 2 (?step=name) is its own view.  The image-step cards and
   the recommendation rail belong to Step 1, so they leave the page in this
   state; the stage keeps its place and one compact summary line carries the
   product, base colour and size.  Back removes the class, and every hidden
   attribute set by the step itself is untouched, so Step 1 returns exactly. */
#design-studio.is-name-step #step-artwork,
#design-studio.is-name-step #step-product,
#design-studio.is-name-step #step-name-question,
#design-studio.is-name-step .studio-rail{ display:none !important; }
.studio-step2-summary{
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:4px 8px;
  margin-top:12px;
  padding:10px 0;
  border-top:1px solid var(--l-line);
  border-bottom:1px solid var(--l-line);
  font-size:13px;
  color:var(--l-grey);
}
.studio-step2-summary[hidden]{ display:none !important; }
.studio-step2-kicker{
  font-size:10.5px;
  font-weight:500;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--l-ink);
}
#studio-step2-product,
#studio-step2-base,
#studio-step2-size{ color:var(--l-ink); }
.studio-step2-sep{ color:var(--l-hair); }
.studio-question-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}
.studio-question-actions .btn{ flex:1 1 180px; }
.studio-name-step-head{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-bottom:12px;
}
.studio-name-step-head .studio-step-title{ margin:0; }
.studio-back{ align-self:flex-start; }
/* Each colour row carries the 2px ink ring at 2px offset, so its box extends
   4px below the swatches.  A bottom margin on the field keeps that ring clear
   of the next label ("Number colour", then "Text size") at the same rhythm. */
.studio-layer-colour{ margin-bottom:12px; }
.studio-layer-colour .studio-colour-row{ flex-wrap:wrap; gap:8px; }
/* White on a white card needs its own edge.  The shared --l-hair hairline was
   invisible there, so the white chip read as a hole rather than a colourway.
   --l-grey is the existing 5.4:1-on-card token this skin already uses for a
   mark that must read on both card and stage.  The selected ring stays the one
   ink outline every other swatch uses; its border goes ink with the ring. */
.shop-swatch[data-colour-key="white"],
.shop-swatch[data-color="white"]{
  background:#FFFFFF;
  border-color:var(--l-grey);
}
.shop-swatch[data-colour-key="white"].is-selected,
.shop-swatch[data-colour-key="white"][aria-pressed="true"],
.shop-swatch[data-color="white"].is-selected,
.shop-swatch[data-color="white"][aria-pressed="true"]{
  border-color:var(--l-ink);
}
.shop-swatch[data-colour-key="black"]{ background:#101418; }
.shop-swatch[data-colour-key="navy"]{ background:#0B1F3A; }
.shop-swatch[data-colour-key="royal"]{ background:#2447C7; }
.shop-swatch[data-colour-key="red"]{ background:#D7263D; }
.shop-swatch[data-colour-key="gold"]{ background:#C9A227; }
.shop-swatch[data-colour-key="forest"]{ background:#1F5C3A; }
.shop-swatch[data-colour-key="grey"]{ background:#8B95A5; }
.studio-text-control label{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
}
.studio-text-control output{ color:var(--l-ink); font-variant-numeric:tabular-nums; }
@media (max-width:640px){
  .studio-question-actions .btn{ flex-basis:100%; }
}

/* 8. Base-colour helper note: regular body grey, not bold. */
#shop-field-color .shop-note,
#shop-field-color .shop-cap + .shop-note{
  font-weight:400;
  color:var(--l-grey);
}

/* 9. Order page: air between the empty-state line and the total row. */
#order-empty{ margin-bottom:12px; }
#order-empty + .order-total,
.order-empty + .order-total{ margin-top:12px; }

/* 10. Queue page title block: same title rule as the routed pages, no eyebrow
       above it.  The footer is the site footer, added in the page markup. */
.queue-page .page-title{ margin-top:0; }
.queue-page .page-title::before{
  content:""; display:block; width:48px; height:1px; background:var(--l-ink);
  margin-bottom:10px;
}
.queue-header{ display:grid; grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) 60px 100px minmax(0,1.8fr) 100px 150px; gap:12px; }
/* DESIGN-REBUILD-2 defect 13 — one fixed line per cell: Order and Enqueued
   keep their full strings, Print file is the only column allowed to ellipsis,
   and Qty/Status stay narrow while Print file takes the wide track. */
.queue-table{ table-layout:fixed; width:100%; border-collapse:collapse; }
.queue-table th,
.queue-table td{
  padding:10px 8px; overflow:hidden; white-space:nowrap;
  text-overflow:ellipsis; vertical-align:middle;
}
.queue-table td > .queue-value{
  display:block; width:100%; min-width:0; overflow:hidden;
  text-overflow:ellipsis; white-space:nowrap;
}
.queue-table th:nth-child(1), .queue-table td:nth-child(1){ width:30%; }
.queue-table th:nth-child(2), .queue-table td:nth-child(2){ width:7%; }
.queue-table th:nth-child(3), .queue-table td:nth-child(3){ width:5%; }
.queue-table th:nth-child(4), .queue-table td:nth-child(4){ width:9%; }
.queue-table th:nth-child(5), .queue-table td:nth-child(5){ width:24%; }
.queue-table th:nth-child(6), .queue-table td:nth-child(6){ width:7%; }
.queue-table th:nth-child(7), .queue-table td:nth-child(7){ width:18%; }
.queue-table td:nth-child(1){ font-size:10.5px; letter-spacing:0; }
.queue-table td:nth-child(7){ font-size:10.5px; letter-spacing:0; font-variant-numeric:tabular-nums; }

/* 5b. "From" is one label treatment in both shop card and product page. */
.retail-card-from,
.pdp-price > span:first-child{
  font-size:12px;
  font-weight:400;
  letter-spacing:.04em;
  color:var(--l-grey);
}
.retail-card-value,
.pdp-price b{
  font-size:15px;
  font-weight:500;
  color:var(--l-ink);
}
.retail-card-price,
.pdp-price{ display:flex; align-items:baseline; gap:6px; margin:0; }

/* 6b. Long operator ids and 61-char file names stay inside their own column on
       one line; the Print file value is the one that may ellipsis. */
.queue-table td:nth-child(1),
.queue-table td:nth-child(5){ white-space:nowrap; }
.queue-table th:nth-child(1),
.queue-table th:nth-child(5){ white-space:nowrap; }
.design-stage.is-adjusting{ cursor:grab; touch-action:none; }
.design-stage.is-adjusting:active{ cursor:grabbing; }
.design-stage.has-art{ touch-action:none; }

/* ==========================================================================
   DESIGN-REBUILD-3 — targeted gate-2 fixes.
   ========================================================================== */

/* Defect 2 — the rail heading is a section title, never the page H1.  The
   styles.css h2.display clamp (28–40px) is outranked here. */
#design-studio h2.studio-rail-title{
  font-family:var(--l-font-title);
  font-weight:400;
  font-size:24px;
  line-height:1.2;
  letter-spacing:normal;
  margin:0;
  color:var(--l-ink);
}

/* Defect 3 — the stage fills its column exactly instead of being capped by a
   560px height that also shrank its width. */
.design-stage{
  width:100%;
  max-height:none;
}
.studio-rail{ width:100%; }

/* Defects 3/4 — on the stacked layout the grid switches to a column; without
   stretch every child shrank to its own content (stage 317, Step 1 332/360/
   370, summary 266).  Stretch gives stage, rule, switch row, rail and every
   card the one column width in every state. */
@media (max-width:959.98px){
  .studio-grid{ align-items:stretch; }
  .studio-card{ width:100%; min-width:0; }
}

/* Defect 5 — at 390 the processing card needs room to sit inside the stage. */
@media (max-width:480px){
  .design-stage{
    aspect-ratio:4 / 3;
    max-height:none;
    min-height:340px;
  }
  #design-studio h2.studio-rail-title{ font-size:21px; }
  /* Defect 3 — no invisible bleed: the tile row shares the rail's right edge. */
  .studio-rail-tiles{ margin-right:0; }
}

/* Defect 6 — the print-area caption lives in the empty mat at the top-left,
   clear of the garment silhouette at both viewports. */
.design-stage-guide{
  top:10px;
  bottom:auto;
  left:12px;
  right:auto;
  align-items:flex-start;
  justify-content:flex-start;
}

/* Defect 10 — hard-good rail thumbs are finished blanks: no guide strokes,
   dashed boxes or production marks are painted on the customer surface.  The
   invisible data-tile-zone probe is left in the DOM for geometry checks. */
.studio-tile-thumb [data-guide],
.studio-tile-thumb .tk-red-stroke{ display:none; }


/* PHOTOBLANK-2 F — at 390 the "Print area" pill sits in a reserved bottom
   margin of the stage, clear of the product and the guide.  Placed last so it
   wins over the Defect 6 top-left caption rule above. */
@media (max-width:480px){
  .design-stage .design-stage-art{ padding:24px 0; box-sizing:border-box; }
  .design-stage .design-stage-guide{
    top:auto; bottom:0; left:0; right:0;
    padding-bottom:3px; align-items:flex-end; justify-content:center;
  }
}
