/** Shopify CDN: Minification failed

Line 413:6 Unexpected "{"
Line 413:7 Expected identifier but found "%"
Line 414:8 Unexpected "`"
Line 420:7 Expected identifier but found "%"

**/
/* VQ1: the real section sits inside Dawn's .shopify-section and m26 can load
   again after it. Own element defaults here; component rules below still own
   their layout. Never apply this reset to the v1 builder or the theme shell. */
.mc-kb-page:where(.mc-kb-v2) { line-height: 1.6; letter-spacing: normal; text-align: left; }
.mc-kb-page:where(.mc-kb-v2) *,
.mc-kb-page:where(.mc-kb-v2) *::before,
.mc-kb-page:where(.mc-kb-v2) *::after { box-sizing: border-box; }
.mc-kb-page:where(.mc-kb-v2) :where(h1, h2, h3, h4, h5, h6, p, ul, ol, fieldset, legend, details, summary) { margin: 0; }
.mc-kb-page:where(.mc-kb-v2) :where(h1, h2, h3, h4, h5, h6) { color: inherit; font-family: var(--mc-serif); font-weight: 500; text-transform: none; }
.mc-kb-page:where(.mc-kb-v2) :where(button, input, select, textarea, label, legend, summary) { font: inherit; letter-spacing: normal; text-transform: none; color: inherit; }
.mc-kb-page:where(.mc-kb-v2) :where(button) { appearance: none; background: transparent; border: 0; border-radius: 2px; box-shadow: none; padding: 0; cursor: pointer; }
.mc-kb-page:where(.mc-kb-v2) :where(input, select, textarea) { max-width: 100%; min-width: 0; margin: 0; }
.mc-kb-page:where(.mc-kb-v2) :where(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]), select, textarea) { width: auto; min-height: 48px; padding: 12px 14px; border: 1px solid var(--mc-rule); border-radius: 2px; background: var(--mc-paper); }
.mc-kb-page:where(.mc-kb-v2) :where(textarea) { resize: vertical; }
.mc-kb-page:where(.mc-kb-v2) :where(input[type=checkbox], input[type=radio]) { accent-color: var(--mc-ink); }
.mc-kb-page:where(.mc-kb-v2) :where(a) { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.mc-kb-page:where(.mc-kb-v2) :where(fieldset, legend) { border: 0; padding: 0; min-width: 0; }
.mc-kb-page:where(.mc-kb-v2) :where(details, summary) { padding: 0; border: 0; background: transparent; }
.mc-kb-page:where(.mc-kb-v2) :where(summary) { cursor: pointer; }
.mc-kb-page:where(.mc-kb-v2) :where(table) { border-collapse: collapse; border-spacing: 0; box-shadow: none; font-size: inherit; }
.mc-kb-page:where(.mc-kb-v2) :where(th, td) { padding: 0; border: 0; text-align: left; }
.mc-kb-page:where(.mc-kb-v2) :where(ul, ol) { padding-left: 24px; }
.mc-kb-page:where(.mc-kb-v2) :where(img, svg) { max-width: 100%; vertical-align: middle; }
.mc-kb-page:where(.mc-kb-v2) :where(img) { height: auto; }

      /* ============================================================
         THE HIDDEN GUARD — read this before adding any rule below.

         `hidden` hides an element through the UA stylesheet's
         `[hidden] { display: none }`. Author styles outrank the UA
         sheet at EVERY specificity, so a single `display:` declaration
         anywhere below — `display:flex` on .mc-kb-field, `display:block`
         on .mc-kb-hint, `display:inline-flex` on .m26-btn — silently
         un-hides an element that ships `hidden` or that JS hides with
         `el.hidden = true`. The builder was patched for this one class
         at a time, eighteen times, and every new hidden element was a
         fresh coin flip.

         This rule settles it for the whole section. `!important` is
         justified precisely because the competition is other AUTHOR
         rules, not the UA rule — normal weight cannot beat them, and
         raising specificity per-element is the eighteen-patch trap
         again. Nothing in this section is meant to be visible while
         carrying `hidden`, so there is nothing for this to break.

         Scope note: it covers descendants of .mc-kb-page only. Anything
         the JS appends to <body> (the provenance popover, the photo
         lightbox) is outside it — those are created and removed rather
         than toggled with `hidden`, so they need no cover. Keep it that
         way, or hide them with a class instead of the attribute.
         ============================================================ */
      .mc-kb-page [hidden] { display: none !important; }

      /* M26 token-bridge — re-point legacy --mc-* tokens at the canonical
       * --m26-* values inside the kit-builder scope. The bespoke .mc-kb-*
       * form classes keep their names but now draw from the 2026 palette.
       * --mc-error / --mc-error-soft / --mc-warn stay local until a second
       * form needs validation (then promote to mc-2026.css). */
      .mc-kb-page {
        --mc-paper:        var(--m26-cream);
        --mc-paper-2:      var(--m26-paper);
        --mc-paper-3:      var(--m26-beige);
        --mc-ink:          var(--m26-ink);
        --mc-ink-soft:     var(--m26-dark);
        --mc-ink-mute:     var(--m26-ink-2);
        --mc-ink-fade:     var(--m26-ink-3);
        --mc-rule:         var(--m26-ink-4);
        --mc-line:         var(--m26-ink-4);
        --mc-rule-soft:    var(--m26-ink-5);
        --mc-accent:       var(--m26-clay);
        --mc-accent-deep:  var(--m26-brown);
        --mc-serif:        var(--m26-serif);
        --mc-sans:         var(--m26-sans);

        /* Amber "something is waiting here". Worn by the two folds the
         * analysis fills and by the step tab above them, so all three have to
         * draw the same colour from one place. Local like --mc-error: there is
         * no m26 amber, and three hard-coded hexes in three rules is how the
         * fourth surface ends up a shade off. Measured against --mc-paper
         * (#fdfcfb): --mc-flag-ink reads 7.0:1 on paper and 6.1:1 on the tint;
         * the --mc-flag-mark disc is a 16px non-text shape, and clears the 3:1
         * graphics floor on paper (3.3:1) and on the dark active tab (4.5:1). */
        --mc-flag-tint:    rgba(191, 126, 40, 0.14);
        --mc-flag-ink:     #7A4E12;
        --mc-flag-mark:    #BF7E28;
      }

      /* D2 — Hide the announcement-bar ticker on /pages/kit-builder.
       * Kit-builder is a partner-tool, not shopping — shipping/farm-info
       * is irrelevant noise. Targets body class set in layout/theme.liquid. */

      /* 2026-05-22 — Hero centering (scoped to kit-builder only).
       * .m26-page-head primitive is shared by other utility pages
       * (colours, care, about-our-mohair) which stay left-aligned; the
       * kit-builder is a tool/wizard so a centered hero reads more like
       * an editorial title block than a marketing headline. Max-width 880
       * keeps the lede paragraph within ~70 chars per line. */

      /* D1 — Hero collapse after Step 01.
       * Once the user has started building (Step 02+), shrink the hero to a
       * compact strip so the live preview gets more vertical real-estate.
       * The H1 hides; only the eyebrow + lede compress into a slim header.
       * Selectors target .m26-page-head (canonical 2026 page-head primitive). */

      /* Smooth transition between full and compact so the toggle doesn't snap. */

      /* Section bottom padding using the canonical m26 rhythm. */
      .mc-kb-page { padding-bottom: var(--m26-section-py); }

      /* S1 — Craft segmented control: strip default <fieldset> chrome */
      .mc-kb-seg { border: 0; padding: 0; margin: 0; min-width: 0; }
      .mc-kb-seg > span { /* matches .mc-kb-field > span typography */
        font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
        color: var(--mc-ink-mute, #777); margin-bottom: 6px; display: block;
      }
      .mc-kb-seg-row { display: inline-flex; gap: 6px; }
      .mc-kb-seg-row label {
        display: inline-flex; align-items: center; gap: 6px;
        padding: 7px 14px; border: 1px solid var(--mc-line, #e5e1d8); border-radius: 999px;
        cursor: pointer; user-select: none; transition: background 120ms ease, border-color 120ms ease;
      }
      .mc-kb-seg-row label:has(input:checked) {
        background: var(--mc-ink, #1a1a1a); color: #fff; border-color: var(--mc-ink, #1a1a1a);
      }
      .mc-kb-seg-row input[type="radio"] {
        appearance: none; -webkit-appearance: none; width: 0; height: 0; margin: 0; padding: 0; opacity: 0; position: absolute;
      }
      /* Inline validation error — applies to .mc-kb-hint when invalid.
       * UX principles: high-contrast deep red (≥4.5:1 on cream), sans
       * font (drops the muted serif italic of help text), semibold for
       * scanability, leading SVG warning icon (no emoji, per
       * ui-ux-pro-max anti-pattern). aria-live wired in markup.
       *
       * The double-class selector beats the (0,2,0) descendant rules
       * .mc-kb-specs .mc-kb-hint and .mc-kb-fits .mc-kb-hint that would
       * otherwise reimpose serif italic gray. */
      .mc-kb-hint.mc-kb-hint--err,
      .mc-kb-specs .mc-kb-hint.mc-kb-hint--err,
      .mc-kb-fits .mc-kb-hint.mc-kb-hint--err {
        font-family: var(--mc-sans);
        font-style: normal;
        font-weight: 500;
        font-size: 14px;
        line-height: 1.45;
        letter-spacing: 0.01em;
        color: var(--mc-error, #9B2D14);
        display: flex;
        align-items: flex-start;
        gap: 6px;
        margin-top: 8px;
      }
      .mc-kb-hint--err::before {
        content: '';
        flex: 0 0 16px;
        width: 16px;
        height: 16px;
        margin-top: 1px;
        background-color: var(--mc-error, #9B2D14);
        -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='currentColor' d='M8 1L1 14h14L8 1zm0 4.5l5 8.5H3l5-8.5zM7.25 7.5h1.5v3h-1.5v-3zm0 3.75h1.5v1.5h-1.5v-1.5z'/></svg>");
        mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='currentColor' d='M8 1L1 14h14L8 1zm0 4.5l5 8.5H3l5-8.5zM7.25 7.5h1.5v3h-1.5v-3zm0 3.75h1.5v1.5h-1.5v-1.5z'/></svg>");
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
        -webkit-mask-position: center;
        mask-position: center;
      }
      .mc-kb-input--invalid {
        border-color: var(--mc-error, #9B2D14) !important;
        box-shadow: 0 0 0 3px var(--mc-error-soft, rgba(155, 45, 20, 0.18));
      }
      /* S4b — Kit photos upload + reorderable thumbnail strip. */
      .mc-kb-img-add {
        appearance: none; cursor: pointer;
        margin-top: 6px; padding: 9px 16px;
        border: 1px solid var(--mc-line, #e5e1d8); border-radius: 999px;
        background: var(--mc-paper, #f4eee2);
        font: inherit; font-size: 14px; color: var(--mc-ink, #2b2b2b);
        transition: border-color 150ms ease, opacity 150ms ease;
      }
      .mc-kb-img-add:hover:not(:disabled) { border-color: var(--mc-ink, #2b2b2b); }
      .mc-kb-img-add:disabled { opacity: 0.5; cursor: not-allowed; }
      .mc-kb-image-list {
        list-style: none; margin: 10px 0 0; padding: 0;
        display: flex; flex-wrap: wrap; gap: 10px;
      }
      .mc-kb-image-list:empty { display: none; }
      .mc-kb-img {
        position: relative; width: 96px; height: 96px;
        border: 1px solid var(--mc-line, #e5e1d8); border-radius: 8px;
        overflow: hidden; background: var(--mc-paper, #f4eee2);
      }
      .mc-kb-img > img { width: 100%; height: 100%; object-fit: cover; display: block; }
      .mc-kb-img-badge {
        position: absolute; top: 4px; left: 4px;
        padding: 1px 6px; border-radius: 999px;
        background: rgba(43,43,43,0.82); color: #fff;
        font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
      }
      .mc-kb-img-actions {
        position: absolute; left: 0; right: 0; bottom: 0;
        display: flex; justify-content: center; gap: 2px;
        padding: 3px; background: rgba(43,43,43,0.55);
      }

      /* ============================================================
         THE TURNSTILE MOUNT MUST NEVER BE `display: none`.

         The mount ships empty (`<div class="mc-kb-turnstile"
         data-mc-kb-turnstile></div>`) and stays empty until Cloudflare's
         api.js drops its iframe into it. Cloudflare cannot run a challenge
         inside a `display: none` container, and mc-kit-builder.js will not
         call `turnstile.render()` at all unless the mount is on screen
         (`turnstileWrapVisible()`). So hiding the empty mount is a
         DEADLOCK, not a cosmetic choice: it can only stop being empty once
         it renders, and it can only render once it is visible. The photo
         button then reads "Verify below to add photos" forever and the
         per-language PDF upload fails on the same never-minted ticket —
         for every visitor, walk-ins included.

         TWO rules want to hide it, and both have to be answered:
           1. this section's own `:empty { display: none }` (now gone), and
           2. Dawn base.css `div:empty { display: none }`, specificity
              (0,1,1), which still hides the mount with rule 1 deleted.
              The `display: block` below is what beats it, at (0,2,0).
              Deleting our rule alone is NOT a fix.

         The empty gap the old rule was avoiding is handled with margin
         instead: none while the mount is empty, 10px once the widget is in.

         Guarded by workers/kit-submit/test-turnstile-mount.mjs, which
         re-reads this block and fails on `display: none` here.
         ============================================================ */
      .mc-kb-turnstile { margin-top: 10px; }
      .mc-kb-turnstile:empty { display: block; margin-top: 0; }
      .mc-kb-hint.is-error { color: var(--mc-error, #9B2D14); font-size: 14px; } /* MDS: semantic error, 7:1 — warn-orange var under AA */
      /* Drag-to-reorder + click-to-enlarge affordances. */
      .mc-kb-img { cursor: grab; }
      .mc-kb-img:active { cursor: grabbing; }
      .mc-kb-img-thumb { cursor: zoom-in; }
      .mc-kb-img.is-dragging { outline: 2px dashed var(--mc-ink); outline-offset: 2px; }
      .mc-kb-img.is-drop-target { outline: 2px solid var(--mc-ink, #2b2b2b); outline-offset: 1px; }
      .mc-kb-lightbox {
        position: fixed; inset: 0; z-index: 9999;
        display: flex; align-items: center; justify-content: center;
        padding: 24px; background: rgba(20, 18, 15, 0.86);
        cursor: zoom-out;
      }
      .mc-kb-lightbox img {
        max-width: 92vw; max-height: 92vh;
        object-fit: contain; border-radius: 4px;
        box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
      }
      .mc-kb-lightbox-x {
        position: absolute; top: 14px; right: 20px;
        appearance: none; border: 0; background: transparent;
        color: #fff; font-size: 32px; line-height: 1; cursor: pointer;
      }
      /* S5 — Pattern specs section + needle chips. The outer 'Add pattern
         specs' label is a static headline (no longer collapsible — only
         the four nested sub-accordions are collapsible). */
      .mc-kb-specs-section {
        margin-top: 18px;
        padding-top: 12px;
        border-top: 1px solid var(--mc-rule-soft, #ece8de);
      }

      .mc-kb-fits-fold__caret { transition: transform 150ms ease; display: inline-block; }
      .mc-kb-chips {
        display: flex; flex-wrap: wrap; gap: 6px;
        min-height: 0;
      }
      .mc-kb-chips:empty { display: none; }
      .mc-kb-chip {
        display: inline-flex; align-items: center; gap: 6px;
        padding: 6px 4px 6px 12px;
        border: 1px solid var(--mc-line, #e5e1d8);
        border-radius: 999px;
        background: var(--mc-paper, #f4eee2);
        font-size: 14px;
      }
      .mc-kb-chip-rm {
        appearance: none; border: 0; background: transparent;
        cursor: pointer; padding: 0 6px; line-height: 1;
        font-size: 16px; color: var(--mc-ink-mute, #777);
      }
      .mc-kb-chip-rm:hover { color: var(--mc-error); }
      /* Field add-controls — measurement / size / notion / needle-custom. Unified
       * inline-attached look (feedback round 2): the input sits flush against a
       * prominent ink-filled submit button so the "add" action reads clearly,
       * with a warm accent-deep hover. Specificity bump (0,2,1) on the button so
       * it beats the .mc-kb-page button reset (0,1,1). */
      .mc-kb-chip-add,
      .mc-kb-meas-add,
      .mc-kb-size-add {
        margin-top: 8px;
        display: flex; gap: 0;
      }
      /* The left half of the pill. Everything but `flex` and the two edge
         rules used to arrive from `.mc-kb-field input` — which reached the
         notions and needles rows because those sit inside a `.mc-kb-field`,
         and reached "Add size…" and "Add measurement…" not at all, because
         those do not. All three read the same today only because the global
         form override in mohair-design-system.css was painting every one of
         them transparent. Opting them out of that rule without stating what
         they look like would have split the three apart, so the shared look
         is stated once, here, on the rule they already share. */
      .mc-kb-chip-add input,
      .mc-kb-meas-add input,
      .mc-kb-size-add input {
        flex: 1 1 auto;
        padding: 12px 14px;
        border: 1px solid var(--mc-rule);
        background: var(--mc-paper-2);
        font: inherit;
        color: var(--mc-ink);
        transition: border 0.2s;
        border-radius: 6px 0 0 6px;
        border-right: 0;
      }
      .mc-kb-chip-add input:focus,
      .mc-kb-meas-add input:focus,
      .mc-kb-size-add input:focus { border-color: var(--mc-ink); }
      .mc-kb-page .mc-kb-chip-add button,
      .mc-kb-page .mc-kb-meas-add button,
      .mc-kb-page .mc-kb-size-add button {
        padding: 8px 16px;
        min-height: var(--mc-tap, 44px);
        border: 1px solid var(--mc-ink, #1A1814);
        border-radius: 0 6px 6px 0;
        background: var(--mc-ink, #1A1814);
        color: var(--mc-paper, #FCFAF4);
        cursor: pointer;
        font-size: 14px;
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        transition: background 0.15s ease, border-color 0.15s ease;
      }
      .mc-kb-page .mc-kb-chip-add button:hover,
      .mc-kb-page .mc-kb-meas-add button:hover,
      .mc-kb-page .mc-kb-size-add button:hover {
        background: var(--mc-ink-soft);
        color: var(--mc-paper);
        border-color: var(--mc-ink-soft);
      }
      /* Round 6 — Add-size control: drop the legacy solid container (global
         .mc-kb-size-add) and give the input a solid border, so it reads as a
         field flush against the ink Add button (no solid lines). */
      .mc-kb-page .mc-kb-size-add { border: 0; }
      .mc-kb-page .mc-kb-size-add input { border: 1px solid var(--mc-rule, #CEC2A8); border-right: 0; }
      /* S5 — Live preview needles line. MC_KIT_FMT.needleGroups() emits one
         \n per needle type and this element is written via .textContent, so
         pre-line is what renders the groups as rows — the same contract the
         kit-landing row (.mc-klp-spec--needles) holds. Change one, change both. */
      .mc-kbp-needles {
        font-size: 12px;
        letter-spacing: 0.06em;
        color: var(--mc-ink-mute, #777);
        margin-top: 4px;
        white-space: pre-line;
      }
      /* S6 — Gauge inline grouped inputs */
      .mc-kb-gauge { margin-top: 14px; }
      .mc-kb-gauge-row {
        display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
        margin-bottom: 6px;
      }
      .mc-kb-gauge-row em {
        font-style: normal;
        font-size: 12px;
        color: var(--mc-ink-mute, #777);
      }
      .mc-kb-gauge-row input[type="number"] { width: 72px; min-width: 0; min-height: 44px; }
      /* Stitch-pattern input — flex-basis 140 is a target, not a floor; on
         mobile the input shrinks below to keep the row from overflowing. */
      .mc-kb-gauge-row input[type="text"] { flex: 1 1 140px; min-width: 0; }
      /* B1 — free-text gauge mode. The checkbox swaps the numeric rows for a
         single text field (patterns where gauge can't be counted). */
      .mc-kb-gauge-mode-toggle {
        display: flex; align-items: center; gap: 8px; cursor: pointer;
        margin-bottom: 10px; font-size: 14px; color: var(--mc-ink-mute, #777);
      }
      .mc-kb-gauge-mode-toggle input { margin: 0; width: auto; min-height: 0; }
      .mc-kb-gauge-text { display: none; width: 100%; min-height: 44px; }
      .mc-kb-gauge.is-freetext .mc-kb-gauge-row { display: none; }
      .mc-kb-gauge.is-freetext .mc-kb-gauge-text { display: block; }
      /* Defensive: prevent any rogue child from forcing the page wider than
         the viewport on mobile (root cause of horizontal scroll reports). */
      .mc-kb-page, .mc-kb-step-panel { overflow-x: clip; }
      /* S6 — Live preview gauge line */
      .mc-kbp-gauge {
        font-size: 12px;
        letter-spacing: 0.06em;
        color: var(--mc-ink-mute, #777);
        margin-top: 4px;
      }
      .mc-kbp-gauge em { font-style: normal; color: var(--mc-ink, #1a1a1a); }
      /* v3 preview: construction, ease, notions */
      .mc-kbp-construction, .mc-kbp-ease, .mc-kbp-notions {
        font-size: 12px;
        letter-spacing: 0.06em;
        color: var(--mc-ink-mute, #777);
        margin-top: 4px;
      }
      {%- comment -%}
        `[data-mc-kb-publish]:disabled` used to live here, opacity 0.4 and a
        not-allowed cursor, and it was the only disabled treatment anywhere on
        an .m26-btn — so the analyse gate and the walk-in submit, held shut by
        the same JS pattern, looked pressable. The rule now lives on .m26-btn
        itself in mc-2026.css, with the same two declarations, and every gated
        button in the theme wears it.
      {%- endcomment -%}
      /* S7 — Yardage per size collapsible (Step 02). Reuses .mc-kb-fits
         outer wrapper (solid border, padding, paper background) for visual
         parity with the "Add sizing notes" section. Help text sits BELOW
         the grid in both sections. */

      /* Both panels: italic help text BELOW the grid (matches existing
         .mc-kb-fits-hint vibe). The hint is now appended after the grid. */
      .mc-kb-fits .mc-kb-hint {
        display: block;
        margin-top: 10px;
        font-family: var(--mc-serif);
        font-style: normal;
        font-size: 12px;
        color: var(--mc-ink-fade, #999);
        letter-spacing: 0;
        text-transform: none;
      }
      /* ── Size measurements (rebuilt 2026-08-19) ────────────────────
         A measurement is a ROW, a size is a COLUMN. That is the way a pattern
         prints its size chart, so a partner checking our reading against the
         PDF is comparing like with like. It is also the only orientation with
         room for the data: a printed label runs to 30-40 characters and needs
         the wide sticky column, while "76 cm" needs a small fixed cell. The
         old layout had those the wrong way round, which truncated every label
         and squeezed the values to ~50px.

         Above 700px the table scrolls sideways INSIDE its own box, never the
         page. Below 700px each row becomes a card, so a phone never scrolls
         sideways at all. One DOM, two layouts. */
      /* mohair-design-system.css still gives .mc-kb-fits-grid an auto-fill
         column track from the old layout, which would lay the new rows out
         side by side. The table owns its own grid now. */
      .mc-kb-page .mc-kb-fits-grid { display: block; grid-template-columns: none; }
      .mc-kb-meas-head { margin-bottom: 12px; }
      .mc-kb-meas-head:empty { display: none; }

      .mc-kb-meas-wrap { position: relative; }
      .mc-kb-meas-scroll {
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2px;
      }
      /* A column clipped at the edge is not a signal anyone reads, so the box
         says out loud that there is more of it. JS toggles the two classes on
         scroll; both are absent when everything already fits. */
      .mc-kb-meas-wrap::before,
      .mc-kb-meas-wrap::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        width: 28px;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.15s ease;
        z-index: 3;
      }
      .mc-kb-meas-wrap::before {
        left: 0;
        background: linear-gradient(to right, var(--mc-paper, #f4eee2), rgba(244, 238, 226, 0));
      }
      .mc-kb-meas-wrap::after {
        right: 0;
        background: linear-gradient(to left, var(--mc-paper, #f4eee2), rgba(244, 238, 226, 0));
      }
      .mc-kb-meas-wrap.can-left::before { opacity: 1; }
      .mc-kb-meas-wrap.can-right::after { opacity: 1; }

      @media (max-width: 700px) {
        .mc-kb-meas-wrap::before,
        .mc-kb-meas-wrap::after { content: none; }

      }
      .mc-kb-meas-scroll:focus-visible {
        outline: 2px solid var(--mc-ink, #2c2420);
        outline-offset: 2px;
      }
      .mc-kb-meas-table {
        --mc-meas-label: 208px;
        --mc-meas-cell: 82px;
        gap: 0;
        /* No max-content here. The grid box is the container's width, and the
           84px track minimum is what pushes it past that when there are enough
           sizes — so 3x5 fits with room to spare and 8x7 scrolls, which is
           exactly the behaviour we want at each end. */
        display: flex;
        flex-direction: column;
        gap: 6px;
      }
      .mc-kb-meas-thead,
      .mc-kb-meas-tr {
        display: grid;
        grid-template-columns: var(--mc-meas-label) repeat(var(--mc-meas-cols, 1), minmax(var(--mc-meas-cell), 1fr));
        gap: 6px;
        align-items: start;
      }
      /* A rule per row, so eight measurements read as eight bands rather than
         as a field of boxes. */
      .mc-kb-meas-tr {
        padding: 8px 0;
        border-top: 1px solid var(--mc-rule-soft, #ece7da);
      }
      .mc-kb-meas-corner,
      .mc-kb-meas-szh {
        font-size: 12px;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--mc-ink-mute, #5e524a);
        padding: 0 2px 2px;
        align-self: end;
      }
      .mc-kb-meas-szh { text-align: center; }
      /* The label column stays put while the sizes scroll past it — without it
         a partner three columns in has no idea which measurement they are
         reading. */
      .mc-kb-meas-corner,
      .mc-kb-meas-th {
        position: sticky;
        left: 0;
        z-index: 1;
        background: var(--mc-paper, #f4eee2);
      }
      .mc-kb-meas-th {
        position: relative;
        padding: 3px 36px 4px 0;
        border-right: 1px solid var(--mc-rule-soft, #ece7da);
      }

      /* The printed label is a textarea, not an input, for one reason: it has to
         wrap. An input truncates "Chest circumference of sweater" and the
         partner cannot see what we read. */
      .mc-kb-page textarea.mc-kb-meas-label {
        flex: 1 1 auto;
        min-width: 0;
        appearance: none;
        border: 0;
        background: transparent;
        resize: none;
        overflow: hidden;
        font: inherit;
        font-size: 14px;
        line-height: 1.35;
        color: var(--mc-ink, #1a1a1a);
        padding: 2px 2px;
        margin: 0;
        min-height: 0;
        border-radius: 3px;
      }
      .mc-kb-page textarea.mc-kb-meas-label:hover { background: var(--mc-paper-2, #fbf7ee); }
      .mc-kb-page textarea.mc-kb-meas-label:focus {
        background: var(--mc-paper-2, #fbf7ee);
        box-shadow: inset 0 -1px 0 0 var(--mc-ink, #1a1a1a);
      }
      .mc-kb-page .mc-kb-meas-rm {
        position: absolute;
        top: 0;
        right: 4px;
        appearance: none;
        border: 0;
        background: transparent;
        cursor: pointer;
        color: var(--mc-ink-mute, #5e524a);
        font-size: 16px;
        line-height: 1;
        width: 32px;
        min-height: 32px;
        border-radius: 3px;
      }
      .mc-kb-page .mc-kb-meas-rm:hover { color: var(--mc-error); }
      .mc-kb-meas-td { display: block; min-width: 0; }
      .mc-kb-meas-td__sz { display: none; }
      .mc-kb-meas-td__in { position: relative; display: block; }
      .mc-kb-page .mc-kb-meas-td input[type="text"] {
        width: 100%;
        min-width: 0;
        min-height: 44px;
        background: var(--mc-paper-2, #fbf7ee);
        border: 1px solid var(--mc-rule, #d8d2c4);
        border-radius: 3px;
        padding: 8px 10px;
        font: inherit;
        font-size: 14px;
        text-align: center;
        color: var(--mc-ink, #1a1a1a);
      }
      .mc-kb-page .mc-kb-meas-td input[type="text"]:focus {
        border-color: var(--mc-ink, #1a1a1a);
      }
      /* The mark leads the value, the same way it leads a label or a chip.
         One position everywhere is what lets 37 of them read as a notation
         rather than as 37 separate alerts. */
      .mc-kb-page .mc-kb-meas-td__in .mc-kb-prov {
        position: absolute;
        top: 50%;
        left: 5px;
        transform: translateY(-50%);
        margin: 0;
      }
      .mc-kb-page .mc-kb-meas-td__in:has(.mc-kb-prov) input[type="text"] { padding-left: 24px; }
      @media (max-width: 700px) {
        /* Card per measurement. No sideways scroll on a phone, at any column
           count — the table simply stops being a table. */
        .mc-kb-meas-scroll { overflow-x: visible; }
        .mc-kb-meas-table { min-width: 0; gap: 14px; }
        .mc-kb-meas-thead { display: none; }
        /* Nested padding stacks up fast on a 375px screen — block, then fold,
           then card — and every pixel it takes comes out of the value field.
           So the card is tight and the fold gives back its side padding. */
        .mc-kb-page .mc-kb-fits { padding-left: 10px; padding-right: 10px; }
        .mc-kb-meas-tr {
          display: block;
          border: 1px solid var(--mc-rule, #d8d2c4);
          border-radius: 4px;
          padding: 10px 10px 12px;
          background: var(--mc-paper-2, #fbf7ee);
        }
        .mc-kb-meas-th {
          position: static;
          background: transparent;
          border-right: 0;
          border-bottom: 1px solid var(--mc-rule-soft, #ece7da);
          padding: 0 0 10px;
          margin-bottom: 10px;
        }
        .mc-kb-meas-td {
          display: grid;
          grid-template-columns: 56px minmax(0, 1fr);
          align-items: center;
          gap: 8px;
          margin-top: 8px;
        }
        .mc-kb-meas-td__sz {
          display: block;
          font-size: 12px;
          letter-spacing: 0.12em;
          text-transform: uppercase;
          color: var(--mc-ink-mute, #5e524a);
        }
        .mc-kb-page .mc-kb-meas-td input[type="text"] { text-align: left; }
      }

      /* .mc-kb-meas-add styling is unified with .mc-kb-chip-add / .mc-kb-size-add
       * above (field add-controls block) — feedback round 2. */
      /* Pattern Specs (01) — same solid-bordered wrapper as Sizing notes /
         Yardage. Each child section is its own nested <details> accordion
         (Craft, Needle sizes, Gauge, etc.), default closed. */
      .mc-kb-specs {
        margin-top: 12px;
        padding: 4px 16px;
        background: var(--mc-paper, #f4eee2);
        border: 1px solid var(--mc-rule, #d8d2c4);
        display: flex; flex-direction: column;
      }
      .mc-kb-spec-sub {
        border-top: 1px solid var(--mc-rule-soft, #ece7da);
      }
      .mc-kb-spec-sub:first-child { border-top: none; }
      .mc-kb-spec-sub > summary {
        cursor: pointer;
        list-style: none;
        display: flex; align-items: center; justify-content: space-between;
        padding: 12px 16px;
        margin: 0 -16px;
        font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
        color: var(--mc-ink-mute, #777);
        transition: background-color .15s ease, color .15s ease;
      }
      .mc-kb-spec-sub > summary::-webkit-details-marker { display: none; }
      .mc-kb-spec-sub > summary:hover,
      .mc-kb-spec-sub > summary:focus-visible {
        background-color: var(--mc-paper-2, #EDE4D2);
        color: var(--mc-ink, #1a1a1a);
      }
      .mc-kb-spec-sub[open] > summary .mc-kb-fits-fold__caret { transform: rotate(180deg); }
      /* Sub-section content padding when expanded */
      .mc-kb-spec-sub > .mc-kb-field { padding-bottom: 14px; }
      .mc-kb-specs .mc-kb-hint {
        display: block;
        margin-top: 8px;
        font-family: var(--mc-serif);
        font-style: normal;
        font-size: 12px;
        color: var(--mc-ink-fade, #999);
        letter-spacing: 0;
        text-transform: none;
      }
      /* Yarn slots (03) — match the solid-bordered form-panel treatment so
         Steps 01 / 02 / 03 share one visual language. Help / metadata text
         keeps its existing position (slot cards have no global help line —
         the Step 03 lead paragraph above the slot list is the introduction). */

      /* Phase 2A · #13 — Swatch nudge below the gauge hint. Subtle but
         visually distinct from the regular hint via accent-coloured left
         border + denser line spacing. Pure copy nudge — no spec change. */
      .mc-kb-hint--swatch {
        margin-top: 10px !important;
        padding-left: 10px;
        border-left: 2px solid var(--mc-accent, #b54a3b);
        line-height: 1.45;
        font-style: normal !important;
        font-family: inherit !important;
      }
      .mc-kb-hint--swatch strong {
        font-weight: 600;
        color: var(--mc-ink, #1a1a1a);
      }
      /* Phase 2A · #10 — Auto-skein "Calculate from yardage" inline link
         (matches the "Add yarn slot +" pattern in the section head). Lives
         below the slot list as a secondary action. */

      /* Shared "add another" action row — sits BELOW its list (slots,
         colourways) so the add affordance follows the content the user
         just filled in, instead of hiding up in the section head. */
      .mc-kb-add-below {
        margin-top: 12px;
        display: flex;
        justify-content: flex-end;
      }
      /* Subtle info footer at the bottom of Step 03 — shows metres-per-skein
         for the yarn collections in use. Italic serif, mute, no chrome. */

      /* Phase 2A.4 — Slot-card qty grid cleanup. The legacy
         mohair-design-system.css applies a full 1px solid border to
         .mc-kb-qty-grid; inside our newly-solid slot card that reads as a
         redundant sub-card. Drop the full border, keep just a soft top rule
         so the qty grid reads as a sub-section, not a separate frame. */

      /* New: "SKEINS PER SIZE" headline above the per-size cells. Matches the
         field-label tokens used elsewhere (Pattern type, Needle sizes, …). */

      /* C — Step 03 quantity-unit selector + raw (grams/metres) cells. The
         segmented control picks how the partner specifies the amount; the
         builder converts to skeins (slot.qty) for the cart. */

      /* Touch floor. The steppers, the unit segment and the remove-colourway ×
         were 28/39/29px tall — under the 44px target on a phone, and this
         audience is not made of precise thumbs. Raised inside the builder
         only, so nothing else on the site moves. */
      .mc-kb-page .mc-kb-qty-col { min-width: 0; }
      /* A later rule turns this cell into a grid with tracks cut for 22px
         steppers, so the display mode has to be restated, not just the sizes. */

      /* Only the stepper's own number box is narrow. The grams/metres cell has
         no steppers and takes free-typed values like "1250" or "412,5", so it
         keeps the full width of its column. */

      /* 44 + 40 + 44 plus gaps and the column's own padding. Without this the
         bigger steppers overflow a track sized for 22px ones. Note the slot's
         grid is `grid-template-columns`, not `grid-auto-columns`, so the track
         floor has to be raised on the template or it is simply ignored.
         The base rule also sets `grid-auto-flow: column`, which sends anything
         auto-fit did not place into implicit 72px tracks — so the floor has to
         be set on BOTH, and the flow switched to rows, or the columns wrap
         into a narrower size than the one they were given. With rows they
         wrap: three sizes stack on a phone and sit side by side above it. */

      /* The segment is `overflow: hidden` to keep its pill corners, so on a
         phone it was clipping "Metres" to "Met". Full width, three equal
         parts, and the word survives. */
      @media (max-width: 640px) {

      }
      .mc-kb-page .mc-kb-cw .mc-kbi-rm { min-width: 44px; min-height: 44px; }

      /* ── Step 2 · sticky slot nav ────────────────────────────────
         One chip per yarn slot, held at the top of the yarns block while the
         cards scroll past. It shortens the DISTANCE between two slots, not the
         page: the cards stay open, because a collapsed card is a card whose
         numbers you cannot compare either.

         `top: 0` is safe: the active header `.m26-site-nav` is
         `position: relative`, so nothing is pinned above this. */
      .mc-kb-page .mc-kb-slotnav {
        position: sticky;
        top: 0;
        z-index: 4;
        margin: 0 0 14px;
        padding: 8px 0;
        background: var(--mc-paper, #fdfcfb);
        border-bottom: 1px solid var(--mc-rule-soft, rgba(44, 36, 32, 0.10));
      }
      /* The step blocks alternate their surface for rhythm
         (mohair-design-system.css). A sticky band has to sit on the same one,
         or the cards scroll behind it through a visible seam. */
      .mc-kb-form .mc-kb-block:nth-of-type(even) .mc-kb-slotnav {
        background: var(--mc-paper-2, #faf7f2);
      }
      .mc-kb-page .mc-kb-slotnav__row {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
      }
      .mc-kb-page .mc-kb-slotnav__row::-webkit-scrollbar { display: none; }
      /* The section's button reset (padding: 0) outranks single-class rules,
         so every chip rule carries the .mc-kb-page prefix — same idiom as the
         yarn chips below. */
      .mc-kb-page button.mc-kb-slotnav__chip {
        flex: 0 0 auto;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 2px;
        min-height: var(--mc-tap, 44px);
        padding: 6px 14px;
        border: 1px solid var(--mc-rule-soft, rgba(44, 36, 32, 0.10));
        border-radius: 3px;
        /* paper-3 rather than the band's own surface, so a chip reads as a
           chip on either of the two block backgrounds above. */
        background: var(--mc-paper-3, #f5f0eb);
        color: var(--mc-ink-soft, #3b322c);
        cursor: pointer;
        text-align: left;
        transition: border-color 0.15s ease, background 0.15s ease;
      }
      .mc-kb-page button.mc-kb-slotnav__chip:hover {
        border-color: var(--mc-rule, rgba(44, 36, 32, 0.22));
      }
      .mc-kb-page button.mc-kb-slotnav__chip:focus-visible {
        outline: 2px solid var(--mc-ink, #2c2420);
        outline-offset: 2px;
      }
      /* Ink fill for "you are here" — the same mark the yarn chips use for the
         chosen base, and the only one that survives a glance at a row that
         moves while you scroll. */
      .mc-kb-page button.mc-kb-slotnav__chip.is-current {
        background: var(--mc-ink, #2c2420);
        border-color: var(--mc-ink, #2c2420);
        color: var(--mc-paper, #fdfcfb);
      }
      .mc-kb-page button.mc-kb-slotnav__chip.is-current .mc-kb-slotnav__meta {
        color: rgba(253, 252, 251, 0.78);
      }
      .mc-kb-slotnav__top {
        display: flex;
        align-items: center;
        gap: 6px;
        max-width: 24ch;
      }
      .mc-kb-slotnav__name {
        font-size: 14px;
        line-height: 1.2;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
      .mc-kb-slotnav__meta {
        font-size: 12px;
        letter-spacing: 0.02em;
        line-height: 1.3;
        white-space: nowrap;
        color: var(--mc-ink-mute, rgba(44, 36, 32, 0.70));
      }
      /* A blocker further down the page, visible without scrolling to it. The
         mark is a shape and a letter, not colour alone. */
      .mc-kb-page button.mc-kb-slotnav__chip.is-blocked {
        border-color: var(--mc-error, #9B2D14);
      }
      .mc-kb-slotnav__mark {
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: var(--mc-error, #9B2D14);
        color: #fff;
        font-size: 12px;
        line-height: 1;
      }
      /* On the ink-filled current chip the mark inverts, so the one chip that
         is both here and in trouble still says so. */
      .mc-kb-page button.mc-kb-slotnav__chip.is-current .mc-kb-slotnav__mark {
        background: var(--mc-paper, #fdfcfb);
        color: var(--mc-error, #9B2D14);
      }
      /* Screen-reader text. base.css is not loaded on this page, so the
         section carries its own. */
      .mc-kb-sr {
        position: absolute;
        width: 1px; height: 1px;
        margin: -1px; padding: 0;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
      }
      /* Clicking a chip must not park the card under the sticky row. The value
         is the row's own height plus its rule and margin. */

      /* Phone — the row scrolls sideways edge to edge, with the same fade mask
         the step nav uses (mohair-design-system.css). */
      @media (max-width: 700px) {
        .mc-kb-page .mc-kb-slotnav {
          margin-left: -16px;
          margin-right: -16px;
          padding-left: 16px;
          padding-right: 16px;
        }
        .mc-kb-page .mc-kb-slotnav__row {
          mask-image: linear-gradient(to right, transparent, #000 16px, #000 calc(100% - 16px), transparent);
        }
        .mc-kb-slotnav__top { max-width: 18ch; }
      }
      /* Step 3 — multi-yarn chip selector */
      .mc-kb-yarn-chips-label {
        display: block;
        font-size: 14px;
        font-weight: 500;
        margin-bottom: 6px;
      }

      /* The section's button reset (padding:0) outranks single-class rules,
       * so we prefix with .mc-kb-page (the section root) to take priority.
       * Same below for the construction toggle chips.
       * NB: previously prefixed with .mc-root — broke during the m26 page
       * migration when the wrapper class changed; chips fell back to browser
       * default styling and the active state stopped showing. */

      /* Hover/focus/active need .mc-kb-page prefix to match the base rule's
       * specificity (0,2,1), otherwise the base rule wins and the active
       * state never shows. */

      /* .mc-kb-yarn-chip.primary removed — simple on/off only */
      /* Step 4 — construction toggle chips */
      .mc-kb-construction-chips {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
      }
      /* The toggle and its provenance dot, side by side. The wrapper exists so
         the two can be siblings instead of the dot sitting inside the toggle —
         see the comment on the chips themselves. It adds no box of its own: the
         pill is still the button, and the dot sits in the row's gap beside it,
         which is where every other mark on this page sits relative to the value
         it cites. */
      .mc-kb-constr-chip {
        display: inline-flex;
        align-items: center;
        gap: 4px;
      }
      .mc-kb-page button.mc-kb-toggle-chip {
        padding: 10px 16px;
        font-size: 14px;
        line-height: 1.2;
        border: 1px solid var(--mc-ink-mute, #6E6556);
        border-radius: 20px;
        background: var(--mc-paper, #F4EEE2);
        color: var(--mc-ink-soft, #3A342A);
        cursor: pointer;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        transition: all 0.15s ease;
      }
      .mc-kb-page button.mc-kb-toggle-chip:hover { border-color: var(--mc-ink, #1A1814); color: var(--mc-ink, #1A1814); background: var(--mc-paper-2, #EDE4D2); }
      .mc-kb-page button.mc-kb-toggle-chip:focus-visible {
        outline: 2px solid var(--mc-accent-deep, #823722);
        outline-offset: 2px;
      }
      .mc-kb-page button.mc-kb-toggle-chip.active {
        background: var(--mc-ink, #1A1814);
        color: #fff;
        border-color: var(--mc-ink, #1A1814);
      }
      /* Preview pane — pattern-deliverable row. Had no rule of its own until the
       * language flags landed here; it mirrors the kit-landing pattern row. */
      .mc-kbp-deliver { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
      .mc-kbp-deliver-langs { display: inline-flex; flex-wrap: wrap; gap: 4px 6px; }
      .mc-kbp-deliver-lang {
        display: inline-flex; align-items: center; gap: 5px;
        padding: 2px 7px 2px 5px; border-radius: 12px;
        border: 1px solid var(--mc-rule, #CEC2A8);
        font-size: 12px; line-height: 1.5; color: var(--mc-ink-soft, #3A342A);
      }
      .mc-kbp-deliver-lang .mc-lang-flag { display: block; flex: none; width: 14px; height: 10px; border-radius: 1px; }

      /* Step 01 — Pattern language chips + one PDF row per selected language.
       * Chips reuse .mc-kb-toggle-chip and add a flag; the flag is decorative
       * (aria-hidden in JS) and always sits beside the language name. */
      .mc-kb-lang-lede { margin: 0 0 10px; }
      .mc-kb-lang-foot { margin: 10px 0 0; font-size: 12px; }
      .mc-kb-lang-chips { display: flex; flex-wrap: wrap; gap: 6px; }
      .mc-kb-page button.mc-kb-toggle-chip.mc-kb-lang-chip { gap: 7px; padding-left: 12px; }
      .mc-kb-lang-chip .mc-lang-flag { display: block; flex: none; border-radius: 1px; }
      /* English is locked on for approved partners — it still reads as selected,
       * but the cursor and the dimmed caption say "this one isn't yours to turn
       * off" rather than looking like a dead control. */
      .mc-kb-page button.mc-kb-lang-chip[aria-disabled="true"] { cursor: default; }
      .mc-kb-page button.mc-kb-lang-chip[aria-disabled="true"]:hover {
        background: var(--mc-ink, #1A1814); color: #fff; border-color: var(--mc-ink, #1A1814);
      }
      .mc-kb-lang-chip__req { font-size: 12px; opacity: 0.6; letter-spacing: 0.02em; }

      /* Step 01 — the pattern types BESIDE the main one. One PDF can hold a
       * hat, mittens, a shawl and a neck warmer; `pattern_type` is a single
       * Shopify-validated choice and holds the first of those, so the rest
       * live here. Hidden until asked for: most patterns make one thing.
       *
       * The disclosure sits left rather than stretching, because .mc-kb-field
       * is a flex column and a stretched .mc-kb-textlink would run its
       * underline the whole width of the form. */
      .mc-kb-alsotypes { align-items: flex-start; }
      .mc-kb-alsotypes__body { align-self: stretch; margin-top: 6px; }
      .mc-kb-alsotypes__chips { display: flex; flex-wrap: wrap; gap: 6px; }
      .mc-kb-alsotypes__foot { margin: 8px 0 0; font-size: 13px; color: var(--mc-ink-soft, #3A342A); }
      /* The chip standing for the select's own value. It reads as chosen
       * because it is, and the caption says which control owns it. */
      .mc-kb-page button.mc-kb-toggle-chip[aria-disabled="true"].mc-kb-alsotype { cursor: default; }
      .mc-kb-page button.mc-kb-toggle-chip[aria-disabled="true"].mc-kb-alsotype:hover {
        background: var(--mc-ink, #1A1814); color: #fff; border-color: var(--mc-ink, #1A1814);
      }
      .mc-kb-alsotype__main { font-size: 12px; opacity: 0.7; letter-spacing: 0.02em; margin-left: 7px; }

      .mc-kb-lang-files { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
      .mc-kb-lang-file {
        border: 1px solid var(--mc-rule, #CEC2A8); border-radius: 8px;
        padding: 10px 12px; background: var(--mc-paper-2, #EDE4D2);
        display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
      }
      .mc-kb-lang-file__name {
        display: inline-flex; align-items: center; gap: 7px;
        font-size: 14px; font-weight: 600; color: var(--mc-ink, #1A1814);
        min-width: 132px;
      }
      .mc-kb-lang-file__name .mc-lang-flag { display: block; flex: none; border-radius: 1px; }
      /* The real <input type="file"> is visually hidden inside this label so the
       * caption stays ours (a native input prints its own locale-dependent
       * button text plus a redundant "no file selected"). Clicking the label
       * still opens the picker, and :focus-within keeps the keyboard ring. */
      .mc-kb-lang-file__pick {
        position: relative; flex: none; cursor: pointer;
        display: inline-flex; align-items: center; justify-content: center;
        min-height: 40px; padding: 8px 16px; font-size: 12.5px;
        border: 1px solid var(--mc-ink-mute, #6E6556); border-radius: 20px;
        background: var(--mc-paper, #F4EEE2); color: var(--mc-ink-soft, #3A342A);
        transition: all 0.15s ease;
      }
      .mc-kb-lang-file__pick:hover {
        border-color: var(--mc-ink, #1A1814); color: var(--mc-ink, #1A1814);
      }
      .mc-kb-lang-file__pick:focus-within {
        outline: 2px solid var(--mc-accent-deep, #823722); outline-offset: 2px;
      }
      .mc-kb-lang-file__input {
        position: absolute; inset: 0; width: 100%; height: 100%;
        opacity: 0; cursor: pointer;
      }
      /* A finished row swaps its status line for the display name, which is
         the partner's to change. The field reads as text until it is touched
         so the row still scans as a status at a glance. */

      .mc-kb-lang-file__rename {
        flex: 1 1 140px; min-width: 0; font: inherit; font-size: 13px;
        color: var(--mc-ink, #1A1814); background: transparent;
        border: 1px solid transparent; border-radius: 4px;
        padding: 5px 7px; min-height: 32px;
        transition: border-color 0.15s ease, background 0.15s ease;
      }
      .mc-kb-lang-file__rename:hover { border-color: var(--mc-rule, #CEC2A8); }
      .mc-kb-lang-file__rename:focus {
        background: var(--mc-paper, #FDFCFB);
        border-color: var(--mc-ink-mute, #6E6556);
        outline: 2px solid var(--mc-accent-deep, #823722); outline-offset: 1px;
      }
      .mc-kb-lang-file__status { flex: 1 1 140px; min-width: 0; font-size: 12px; color: var(--mc-ink-mute, #7A6F5E); overflow-wrap: anywhere; }
      /* `.is-done` is gone with the status line it styled: a finished row now
         renders the rename field above instead, and a selector nobody emits is
         a trap for whoever reads this next. */
      .mc-kb-lang-file__status.is-err { color: var(--mc-accent-deep, #823722); }
      /* Awaiting a file is a normal in-progress state, not an error — solid and
       * neutral. The accent colour is kept for a failed upload, and the missing
       * English PDF is surfaced by the hint + the Step 04 notice instead. */
      .mc-kb-lang-file--pending { border-style: solid; }
      .mc-kb-lang-file--error { border-color: var(--mc-accent-deep, #823722); }
      .mc-kb-lang-file__rm {
        margin-left: auto; background: none; border: 0; cursor: pointer;
        font-size: 12px; text-decoration: underline; color: var(--mc-ink-mute, #7A6F5E);
        min-height: 32px; padding: 0 4px;
      }

      /* Step 04 — non-blocking "no English PDF yet" notice above the publish CTA. */
      .mc-kb-pdf-warn {
        display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
        margin-bottom: 12px; padding: 10px 12px; border-radius: 8px;
        border: 1px solid var(--mc-accent-deep, #823722);
        background: var(--mc-paper-2, #EDE4D2);
        font-size: 12.5px; line-height: 1.45; color: var(--mc-ink-soft, #3A342A);
      }
      .mc-kb-pdf-warn svg { flex: none; color: var(--mc-accent-deep, #823722); }
      .mc-kb-pdf-warn__jump {
        margin-left: auto; background: none; border: 0; cursor: pointer;
        font: inherit; text-decoration: underline; color: var(--mc-accent-deep, #823722);
        min-height: 32px; padding: 0 2px;
      }

      /* Step 4 — needle sizes: toggle buttons + per-size length rows */
      .mc-kb-needle-sizes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
      .mc-kb-needle-list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
      /* Needle size row: head (mm + qty + remove) over a wrap of per-needle length
       * selects — one length slot per needle in the quantity (round 4). */
      .mc-kb-needle-row { display: flex; flex-direction: column; gap: 8px; }
      .mc-kb-needle-row__head { display: flex; align-items: center; gap: 10px; }
      .mc-kb-needle-row__mm { font-size: 14px; color: var(--mc-ink-soft, #3A342A); min-width: 92px; }
      .mc-kb-needle-row__head .mc-kb-chip-rm { margin-left: auto; }
      .mc-kb-needle-lens { display: flex; flex-wrap: wrap; gap: 6px 10px; padding-left: 4px; }
      .mc-kb-needle-len-item { display: inline-flex; align-items: center; gap: 4px; }
      .mc-kb-needle-len-item__n { font-size: 12px; color: var(--mc-ink-mute, #777); }
      .mc-kb-needle-row__len { flex: 0 1 auto; min-height: 40px; }
      .mc-kb-needle-types { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
      /* Needles redesign — one card per needle type, each holding its own size
       * quick-chips + per-size cable-length rows (feedback round 2). */
      .mc-kb-needle-groups { display: flex; flex-direction: column; gap: 12px; margin-bottom: 8px; }
      .mc-kb-needle-group {
        border: 1px solid var(--mc-rule, #CEC2A8); border-radius: 8px;
        padding: 12px; background: var(--mc-paper-2, #EDE4D2);
      }
      .mc-kb-needle-group__head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
      .mc-kb-needle-group__type {
        font-size: 14px; font-weight: 600; letter-spacing: 0.02em;
        color: var(--mc-ink, #1A1814);
      }
      .mc-kb-needle-group__head .mc-kb-chip-rm { margin-left: auto; }
      .mc-kb-needle-empty {
        font-size: 14px; color: var(--mc-ink-mute, #777);
        margin: 4px 0 8px; font-style: normal;
      }
      /* Per-size needle quantity stepper (1–6) — feedback round 3. */
      .mc-kb-needle-qty { display: inline-flex; align-items: center; gap: 4px; }
      .mc-kb-needle-qty__n { font-size: 14px; min-width: 24px; text-align: center; color: var(--mc-ink-soft, #3A342A); }
      .mc-kb-page .mc-kb-needle-qty button {
        min-width: 26px; min-height: 28px; padding: 0 6px;
        border: 1px solid var(--mc-rule, #CEC2A8); border-radius: 5px;
        background: var(--mc-paper, #F4EEE2); color: var(--mc-ink, #1A1814);
        cursor: pointer; font-size: 14px; line-height: 1;
      }
      .mc-kb-page .mc-kb-needle-qty button:hover { background: var(--mc-paper-2, #EDE4D2); border-color: var(--mc-ink-mute, #6E6556); }
      /* Merged step 02 (Yarns & sizes) — sizes come first; a divider sets off the
       * Yarns subsection below (feedback round 3). */
      .mc-kb-yarns-section { margin-top: 36px; }
      /* Section headers ("Sizes" / "Yarns") — lifted into the brand serif scale so
         they read as section dividers, not labels: serif, larger, ink, with a
         full-width hairline rule beneath. Sits below the italic step title and
         above the uppercase field labels (round 7 — UI hierarchy). */

      @media (max-width: 640px) {  }
      .mc-kb-quick[data-mc-kb-quick-sizes] { margin-bottom: 14px; }
      /* Step intro as a readable lede (sentence case), distinct from the small
         uppercase .mc-kb-note captions. */

      /* Single-column yarn slot (2026-08-19). The 50/50 split existed to stand
       * a square colour photo beside the fields; colour moved to step 03, so
       * the card now reads straight down: who this slot is, which base it uses
       * and what that base holds, then how much of it each size needs. */

      /* One card ended and the next began with nothing between them once the
         colour block stopped bracketing them. A rule and real air do that job.
         `.mc-kb-slot` carries `border: 0 !important` (it exists to beat the
         design system's slot outline), so the separator has to shout back. */

      /* The base's own figures. These are the numbers the skein maths divides
       * by, so they sit directly under the chips that choose them. */

      @media (max-width: 640px) {

      }

      /* Round 8 — destructive "Remove yarn" text link at the bottom of column 2
         (replaces the top-right × on the slot card). */

      /* Step 4 — ease field */
      .mc-kb-ease-field { margin-top: 16px; }

      /* Phase 1 (two-segment work) — segment-aware visibility.
       * Default state in markup is data-mc-kb-segment="walk-in". Step 1.1 made
       * a verified #p= token the only thing that flips the root to "approved":
       * the approved segment hides the walk-in email field, which the Worker
       * requires on every submission that carries no token, so a visitor
       * without one has to stay in the walk-in flow to be able to finish. CSS
       * keys off the data-attribute so we don't have to pepper conditionals
       * through the JS render functions. */
      [data-mc-kb-segment="approved"] [data-mc-kb-walkin-only] { display: none; }
      [data-mc-kb-segment="approved"] [data-mc-kb-walkin-banner] { display: none; }
      [data-mc-kb-segment="walk-in"] [data-mc-kb-approved-only] { display: none; }

      /* Walk-in returning-designer banner. Subtle — sits above Step 01,
       * dismissible via the × button. Renders only in walk-in mode. */
      .mc-kb-returning {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 14px;
        margin-bottom: 18px;
        border: 1px solid var(--mc-rule, #CEC2A8);
        border-radius: 8px;
        background: var(--mc-paper-2, #EDE4D2);
        font-size: 14px;
        color: var(--mc-ink-soft, #3A342A);
      }
      .mc-kb-returning a {
        color: var(--mc-accent-deep, #823722);
        text-decoration: underline;
        text-underline-offset: 2px;
      }
      .mc-kb-returning__dismiss {
        margin-left: auto;
        background: none;
        border: 0;
        color: var(--mc-ink-mute, #6E6556);
        font-size: 18px;
        line-height: 1;
        cursor: pointer;
        padding: 4px 8px;
      }
      .mc-kb-returning__dismiss:hover { color: var(--mc-ink, #1A1814); }
      [data-mc-kb-returning-dismissed="1"] .mc-kb-returning { display: none; }

      /* Phase 2 — Ravelry import row. Sits above Step 01 fields when a
       * Make.com webhook URL is configured in section settings. */
      .mc-kb-ravelry-import { margin-bottom: 18px; }
      .mc-kb-field--ravelry .mc-kb-ravelry-row {
        display: flex;
        gap: 8px;
        align-items: stretch;
      }
      .mc-kb-field--ravelry .mc-kb-ravelry-row input[type="url"] { flex: 1 1 auto; }
      .mc-kb-field--ravelry .mc-kb-ravelry-row button { flex: 0 0 auto; }
      [data-mc-kb-ravelry-status][data-state="success"] { color: var(--mc-accent-deep, #823722); }
      [data-mc-kb-ravelry-status][data-state="error"] { color: var(--mc-error, #9B2D14); }

      /* The line that stands in for the import row once a pattern reading
       * holds. Quiet by design: it reports a state, it does not warn. */
      .mc-kb-ravelry-locked {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 4px 10px;
        margin: 0;
        padding: 10px 12px;
        border-left: 2px solid var(--mc-rule, rgba(44, 36, 32, 0.22));
        background: var(--mc-paper-2, #faf7f2);
        font-family: var(--mc-sans);
        font-size: 13px;
        line-height: 1.5;
        color: var(--mc-ink-mute, rgba(44, 36, 32, 0.7));
      }
      .mc-kb-ravelry-locked[hidden] { display: none; }
      .mc-kb-ravelry-locked .mc-kb-reset-link { padding: 0; font-size: 13px; }

      /* Phase 2 — walk-in submit form (Step 05). Sits inside the walk-in
       * publish panel; switches to a success state on successful submit. */
      .mc-kb-walkin-fields {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 12px;
      }
      .mc-kb-walkin-confirm {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        font-size: 14px;
        color: var(--mc-ink-soft, #3A342A);
        line-height: 1.4;
        cursor: pointer;
      }
      .mc-kb-walkin-confirm input[type="checkbox"] {
        margin-top: 3px;
        flex: 0 0 auto;
      }
      [data-mc-kb-walkin-status][data-state="success"] { color: var(--mc-accent-deep, #823722); }
      [data-mc-kb-walkin-status][data-state="error"] { color: var(--mc-error, #9B2D14); }
      /* G — Field-provenance badge inside .mc-kb-label.
       * Tiny chip that says "✓ From Ravelry" or "≈ Estimated" so the designer
       * knows the value was auto-filled and can decide whether to keep or
       * edit it. Removed automatically on first user edit (see JS). */
      .mc-kb-provenance-badge {
        display: inline-flex;
        align-items: center;
        margin-left: 8px;
        padding: 1px 7px;
        border-radius: 3px;
        font-size: 12px;
        font-weight: 500;
        letter-spacing: 0.02em;
        text-transform: none;
        line-height: 1.4;
        vertical-align: 2px;
        white-space: nowrap;
      }

      /* ============================================================
         STEP 03 — colourways now own every colour decision (2026-08-19).
         "As designed" is the kit's own colourway. It reads off slot.color and
         writes back to it, so it needs to look and behave like the others
         while still saying it is the one the kit ships in.
         ============================================================ */
      .mc-kb-cw--designed {
        border-left: 3px solid var(--mc-accent, #d4b5a0);
        padding-left: 15px;
      }
      .mc-kb-page .mc-kb-cw-name-static {
        display: flex; flex-direction: column; gap: 2px;
        flex: 1 1 auto; min-width: 0;
      }
      .mc-kb-page .mc-kb-cw-name-static strong {
        font-family: var(--mc-serif); font-weight: 400;
        font-size: 18px; line-height: 1.2; color: var(--mc-ink, #1A1814);
      }
      .mc-kb-page .mc-kb-cw-name-static small {
        font-family: var(--mc-sans); font-size: 12px; line-height: 1.45;
        color: var(--mc-ink-mute, #777);
      }
      /* An unmade choice must not look like a chosen shade. No fill, a dashed
         edge, and the row's action word changes from "Edit" to "Pick". */
      .mc-kb-page .mc-kb-cw-swatch.is-unset {
        background: transparent;
        border: 1px dashed var(--mc-ink-mute, #777);
      }
      .mc-kb-page .mc-kb-cw-swatch-name--unset { color: var(--mc-ink-mute, #777); }
      .mc-kb-page .mc-kb-cw-chip.is-unset {
        background: transparent;
        border: 1px dashed var(--mc-ink-mute, #777);
      }
      .mc-kb-page .mc-kb-cw-pick.is-unset { border-style: dashed; }
      /* Every pick target clears the 44px touch floor. */
      .mc-kb-page .mc-kb-cw-pick { min-height: 44px; }
      /* A slot with no yarn base yet has no palette to open. */
      .mc-kb-cw-slot--nobase { display: flex; flex-direction: column; gap: 4px; }
      .mc-kb-cw-nobase {
        margin: 0; font-family: var(--mc-sans); font-size: 13px; line-height: 1.55;
        color: var(--mc-ink-mute, #777);
      }
      .mc-kb-cw-nobase button { min-height: 44px; }
      /* At 375 the card's top row ran past its own edge: a text input carries
         an intrinsic min-width that `flex: 1` cannot shrink, so the name, the
         chips and the remove button could not share one line. Let it wrap, and
         let the input give ground. */
      .mc-kb-page .mc-kb-cw-top { flex-wrap: wrap; }
      .mc-kb-page .mc-kb-cw-name { min-width: 0; flex: 1 1 160px; }
      /* E — "default colour" callout. It used to sit under the slot card's
       * colour photo; the decision lives in step 03 now, so the cue moved with
       * it. Soft cue, never an alert: it clears the moment they pick. */
      .mc-kb-slot-color-callout {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        margin: 6px 0 2px;
        padding: 8px 12px;
        border: 1px solid var(--mc-accent-deep, #823722);
        border-radius: 6px;
        background: var(--mc-paper-2, #EDE4D2);
        font-size: 12.5px;
        line-height: 1.4;
        letter-spacing: 0;
        text-transform: none;
        color: var(--mc-ink-soft, #3A342A);
      }
      .mc-kb-slot-color-callout__icon {
        flex: 0 0 auto;
        font-size: 14px;
        color: var(--mc-accent-deep, #823722);
        line-height: 1.2;
      }

      /* C4 — Required-to-share checklist banner above the step nav.
       * Subtle paper-2 background, no border (let the step nav own visual
       * weight). Items use a small ○/✓ marker that flips when fulfilled. */
      .mc-kb-required-checklist {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px 14px;
        padding: 8px 14px;
        margin-bottom: 14px;
        background: var(--mc-paper-2, #EDE4D2);
        border-radius: 6px;
        font-size: 12px;
        letter-spacing: 0.02em;
        color: var(--mc-ink-soft, #3A342A);
      }
      .mc-kb-required-checklist__label {
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        font-size: 12px;
        color: var(--mc-ink-mute, #6E6556);
      }
      .mc-kb-required-checklist__item {
        display: inline-flex;
        align-items: center;
        gap: 5px;
      }
      .mc-kb-required-checklist__item[data-state="done"] {
        color: var(--mc-accent-deep, #823722);
      }
      .mc-kb-required-checklist__item[data-state="done"] .mc-kb-required-checklist__mark {
        color: var(--mc-accent-deep, #823722);
        font-weight: 700;
      }
      .mc-kb-required-checklist__mark {
        display: inline-block;
        width: 14px;
        text-align: center;
        font-size: 14px;
        line-height: 1;
      }

      /* C3 — "About you" section divider inside the Step 01 grid.
       * Spans both columns of .mc-kb-grid-2 and adds a faint rule above
       * the eyebrow so the visual break is obvious without being heavy. */
      .mc-kb-section-divider {
        grid-column: 1 / -1;
        padding-top: 16px;
        margin-top: 4px;
        border-top: 1px solid var(--mc-rule, #E5E1D8);
      }
      .mc-kb-section-divider .m26-eyebrow {
        display: block;
      }

      /* B4 — IP-confirm checkbox error state. When submit fails because the
       * box is unchecked, frame the entire label in a soft error chrome so
       * the requirement is unmistakable next to the highlighted email field. */
      .mc-kb-walkin-confirm--invalid {
        padding: 8px 10px;
        margin: 4px -10px 0;
        border: 1px solid var(--mc-error, #9B2D14);
        border-radius: 6px;
        background: var(--mc-error-soft, rgba(155, 45, 20, 0.08));
      }
      .mc-kb-walkin-confirm--invalid input[type="checkbox"] {
        outline: 2px solid var(--mc-error, #9B2D14);
        outline-offset: 2px;
      }
      /* B1 — status hint in error state: render as block (not inline <small>)
       * so the warning icon + multi-line summary lays out cleanly. */
      [data-mc-kb-walkin-status].mc-kb-hint--err,
      [data-mc-kb-ravelry-status].mc-kb-hint--err {
        display: flex;
      }

      /* Phase 2 · Tier 3 — Ravelry yarn-substitution suggestion cards.
       * Sits above the regular slot list in Step 03. Dashed border + slight
       * desaturation signals "suggestion, not committed". Accept → becomes
       * a regular slot; dismiss → disappears. */
      .mc-kb-rav-suggestions {
        margin-bottom: 18px;
      }
      .mc-kb-rav-sugg-head {
        display: flex;
        flex-direction: column;
        gap: 2px;
        margin-bottom: 10px;
      }
      .mc-kb-rav-sugg-head strong {
        font-size: 14px;
        letter-spacing: 0.02em;
        text-transform: uppercase;
      }
      .mc-kb-rav-sugg-sub {
        font-size: 12px;
        color: var(--mc-ink-mute, #6E6556);
      }
      .mc-kb-rav-sugg-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 10px;
      }
      .mc-kb-rav-sugg {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 12px;
        border: 1.5px solid var(--mc-rule, #CEC2A8);
        border-radius: 8px;
        background: var(--mc-paper-2, #EDE4D2);
        /* Keep alternative suggestions legible; the primary has its own border. */
      }
      .mc-kb-rav-sugg .mc-kb-rav-sugg-body strong {
        font-weight: 400;
      }
      .mc-kb-rav-sugg header {
        display: flex;
        align-items: center;
        justify-content: space-between;
      }
      .mc-kb-rav-sugg-pill {
        display: inline-block;
        font-size: 12px;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: var(--mc-accent-deep, #823722);
      }
      /* A6: visual hierarchy for primary vs alternative Ravelry suggestions.
       * Primary card gets a solid (not solid) accent border + bold "Recommended" badge.
       * Alternatives keep the muted solid style — they're suggestions, not pushes. */
      .mc-kb-rav-sugg--primary {
        border-style: solid;
        border-color: var(--mc-accent-deep, #823722);
        border-width: 1.5px;
        opacity: 1;
        background: var(--mc-paper, #F4EEE2);
        padding: 14px;
        box-shadow: 0 1px 0 rgba(130, 55, 34, 0.08);
      }
      .mc-kb-rav-sugg--primary .mc-kb-rav-sugg-body strong {
        font-weight: 600;
      }
      .mc-kb-rav-sugg--primary .mc-kb-rav-sugg-pill {
        font-weight: 600;
      }
      .mc-kb-rav-sugg-badge {
        display: inline-block;
        margin-left: 8px;
        padding: 2px 8px;
        font-size: 12px;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        font-weight: 600;
        color: var(--mc-paper, #F4EEE2);
        background: var(--mc-accent-deep, #823722);
        border-radius: 3px;
      }
      .mc-kb-rav-sugg-dismiss {
        background: none;
        border: 0;
        cursor: pointer;
        font-size: 18px;
        line-height: 1;
        color: var(--mc-ink-mute, #6E6556);
        padding: 2px 6px;
      }
      .mc-kb-rav-sugg-dismiss:hover { color: var(--mc-ink, #1A1814); }
      .mc-kb-rav-sugg-body {
        display: flex;
        flex-direction: column;
        gap: 2px;
      }
      .mc-kb-rav-sugg-body strong { font-size: 14px; }
      .mc-kb-rav-sugg-body small { font-size: 12px; color: var(--mc-ink-mute, #6E6556); }
      .mc-kb-rav-sugg-warn {
        color: var(--mc-error, #9B2D14) !important;
        font-style: normal;
      }

      /* Phase 2.1 — restored-from-localStorage banner. Sits above the step
       * nav. Subtle paper-2 background; reset action is a quiet inline link.
       * `display: flex` would otherwise override the hidden attribute, so we
       * force the hidden state explicitly. */
      .mc-kb-restored {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 14px;
        margin-bottom: 18px;
        border: 1px solid var(--mc-rule, #CEC2A8);
        border-radius: 8px;
        background: var(--mc-paper-2, #EDE4D2);
        font-size: 14px;
        color: var(--mc-ink-soft, #3A342A);
      }
      .mc-kb-restored__reset {
        margin-left: auto;
        background: none;
        border: 0;
        color: var(--mc-accent-deep, #823722);
        text-decoration: underline;
        text-underline-offset: 2px;
        font-size: 14px;
        cursor: pointer;
        padding: 4px 8px;
      }
      .mc-kb-restored__reset:hover { color: var(--mc-ink, #1A1814); }

      /* Phase 2.1 — permanent reset link in Step 05. Quiet, ink-mute color. */
      .mc-kb-reset-row {
        margin-top: 12px;
        text-align: right;
      }
      .mc-kb-reset-link {
        background: none;
        border: 0;
        cursor: pointer;
        font-size: 12px;
        color: var(--mc-ink-mute, #6E6556);
        text-decoration: underline dotted;
        text-underline-offset: 3px;
        padding: 4px 8px;
      }
      .mc-kb-reset-link:hover { color: var(--mc-ink, #1A1814); }

      /* Step navigation footer — bottom of each .mc-kb-step-panel.
         Mirrors the top tab-nav but tactile: dual buttons (prev/next),
         comfortable touch targets, full-width on mobile. */
      .mc-kb-step-foot {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-top: 48px;
        padding-top: 24px;
        border-top: 1px solid var(--mc-rule, rgba(26,24,20,0.08));
      }

      @media (max-width: 749px) {
        .mc-kb-step-foot { flex-direction: column-reverse; gap: 8px; align-items: stretch; }

      }
      /* ── Round 7 — MDS unification layer (2026-07-30) ─────────────
       * One chip family, one CTA shape, visible focus everywhere.
       * Type/colour authority: design/tokens.mjs. ui-ux-pro-max rules
       * applied: 44px touch targets, cursor feedback, 160ms transitions,
       * focus-visible rings, no sub-14px functional text.
       * ──────────────────────────────────────────────────────────── */

      /* 7.1 · Chips — every selectable pill shares one pattern.
         Baseline is .mc-kb-toggle-chip (already 44px/14px); the size
         quick-adds, drawer filters and craft labels join it. */
      .mc-kb-page .mc-kbp-chip,
.mc-kb-page .mc-kb-seg label {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 44px;
        padding: 10px 18px;
        font-size: 14px;
        line-height: 1.2;
        border: 1px solid var(--mc-ink-mute, #5e524a);
        border-radius: 999px;
        background: var(--mc-paper, #fdfcfb);
        color: var(--mc-ink-soft, #3b322c);
        cursor: pointer;
        transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
      }
      .mc-kb-page button.mc-kb-toggle-chip { border-radius: 999px; }
      .mc-kb-page .mc-kbp-chip:hover,
.mc-kb-page .mc-kb-seg label:hover {
        border-color: var(--mc-ink, #2c2420);
        color: var(--mc-ink, #2c2420);
      }
      /* Selected = ink fill, cream text — the state IS the checkbox. */
      .mc-kb-page .mc-kbp-chip.is-on,
.mc-kb-page .mc-kbp-chip.is-active,
.mc-kb-page .mc-kbp-chip[aria-pressed="true"],
.mc-kb-page .mc-kb-seg label:has(input:checked) {
        background: var(--mc-ink, #2c2420);
        border-color: var(--mc-ink, #2c2420);
        color: var(--mc-paper, #fdfcfb);
      }
      /* Craft checkboxes: native input stays for a11y and older browsers
         (MDS ink accent); where :has() is supported the pill carries the
         state and the box steps aside. */
      .mc-kb-page .mc-kb-seg input[type="checkbox"] {
        accent-color: var(--mc-ink, #2c2420);
        width: 16px;
        height: 16px;
      }
      @supports selector(:has(*)) {
        .mc-kb-page .mc-kb-seg label input[type="checkbox"] {
          position: absolute;
          opacity: 0;
          width: 1px;
          height: 1px;
          pointer-events: none;
        }
      }

      /* 7.2 · CTA shape — MDS actions are square. Wizard nav and add-
         buttons drop their mixed radii and adopt the site button voice. */
      .mc-kb-page .m26-btn { border-radius: 0; font-size: 14px; }

      .mc-kb-page [data-mc-kb-notion-add],
      .mc-kb-page [data-mc-kb-size-add],
      .mc-kb-page [data-mc-kb-meas-add],
      .mc-kb-page [data-mc-kb-needle-add] {
        border-radius: 0;
        font-size: 14px;
      }

      /* 7.3 · Focus is always visible (keyboard parity with hover). */
      .mc-kb-page :is(a, button, [role="button"], input, select, textarea, summary):focus-visible {
        outline: 2px solid var(--mc-ink, #2c2420);
        outline-offset: 2px;
      }
      .mc-kb-page .mc-kb-seg label:focus-within {
        outline: 2px solid var(--mc-ink, #2c2420);
        outline-offset: 2px;
      }

      /* 7.4 · Section rhythm — three honest tiers instead of one shouting
         register: serif chapter title (24px) → accordion heading (16px sans,
         medium) → quiet field label (12px caps). Before this, all three
         rendered as near-identical small caps, which made the form read as
         noise.

         FAMILY RULE (round 8): hierarchy comes from size, weight and spacing
         inside ONE family — never from switching family. A serif control
         beside a sans label reads as inconsistency, not as structure. So:
         serif is the editorial frame (page title, chapter headings); anything
         clickable, typeable, or reporting state is sans. */
      .mc-kb-page .mc-kb-spec-sub > summary,
      .mc-kb-page .mc-kb-fits-fold > summary {
        font-family: var(--mc-sans);
        font-size: 16px;
        font-weight: 500;
        letter-spacing: 0.01em;
        text-transform: none;
        color: var(--mc-ink, #2c2420);
        padding-top: 14px;
        padding-bottom: 14px;
      }
      .mc-kb-page :is(.mc-kb-spec-sub, .mc-kb-fits-fold) > summary :is(span, .mc-help, mc-help-popover) {
        font-family: inherit;
        font-size: inherit;
      }
      .mc-kb-page :is(.mc-kb-spec-sub, .mc-kb-fits-fold) > summary .mc-kb-fits-fold__caret {
        font-family: var(--mc-sans);
        font-size: 14px;
        color: var(--mc-ink-mute, #5e524a);
      }

      /* 7.7 · Controls and state text speak sans. The legacy layer set hints,
         empty states, error text and the step numerals in serif, which is the
         mixed-family effect visible across the whole builder. */
      .mc-kb-page :is(
        .mc-kb-stepnav__num,
        .mc-kb-hint,
        .mc-kb-empty-hint,
        .mc-kb-meas-empty,
        .mc-kb-qr-placeholder,
        .mc-kb-submit-errors__title,
        .mc-kb-note
      ) {
        font-family: var(--mc-sans);
      }
      .mc-kb-page :is(button, input, select, textarea, summary, label, .mc-kb-toggle-chip, .mc-kbp-chip, .mc-fb-chip) {
        font-family: var(--mc-sans);
      }
      /* The editorial frame keeps the serif: page title, chapter and
         sub-chapter headings. Nothing here is a control. */
      .mc-kb-page :is(.m26-h-1, .mc-kb-block > h3, .mc-kb-subhead, .mc-kb-share-catalogue-h) {
        font-family: var(--mc-serif);
      }

      /* The link block is a different subject from the submit block above it,
         and after the 2026-08-19 reorder they sat flush against each other —
         the QR read as part of the submit form. */

      /* 7.5 · Share step — the primary action reads first; the QR is the
         secondary artifact, not the hero. Stacks action-first on mobile. */
      .mc-kb-page .mc-kb-share-primary {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 220px;
        gap: 28px;
        align-items: start;
      }
      .mc-kb-page .mc-kb-share-qr { order: 2; max-width: 220px; }
      .mc-kb-page .mc-kb-share-ctas { order: 1; display: flex; flex-direction: column; gap: 18px; }
      .mc-kb-page .mc-kb-qr-svg, .mc-kb-page .mc-kb-qr-svg svg { max-width: 100%; height: auto; }
      /* Where-to-next links after a kit has gone in. They follow the kit-link
         rather than preceding it, so the share is the thing in front of the
         partner when the submission lands. */
      .mc-kb-page .mc-kb-share-onward {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: 24px;
        padding-top: 20px;
        border-top: 1px solid var(--mc-rule, #CEC2A8);
      }
      @media (max-width: 700px) {
        .mc-kb-page .mc-kb-share-primary { grid-template-columns: 1fr; }
        .mc-kb-page .mc-kb-share-qr { max-width: 200px; }
      }

      /* ============================================================
         AI-first intake (2026-08-13) — frontend-spec §1 + the approved
         mockup `mockups/kit-builder-ai-first.html`.

         The phases live on the section root as `data-mc-kb-phase`. The
         attribute is ABSENT for every visitor who gets no AI path (walk-ins,
         tokenless visitors, ANALYZE_ENABLED off), and absence renders exactly
         today's builder — which is why every rule below is written against a
         present value rather than against its negation.
         ============================================================ */
      .mc-kb-page[data-mc-kb-phase]:not([data-mc-kb-phase="form"]) .mc-kb-stepnav,
      .mc-kb-page[data-mc-kb-phase]:not([data-mc-kb-phase="form"]) .mc-kb-step-panel,
      .mc-kb-page[data-mc-kb-phase]:not([data-mc-kb-phase="form"]) .mc-kb-reset-row,
      .mc-kb-page[data-mc-kb-phase]:not([data-mc-kb-phase="form"]) .mc-kb-report,
      .mc-kb-page[data-mc-kb-phase]:not([data-mc-kb-phase="form"]) .mc-kb-required-checklist {
        display: none !important;
      }

      /* Container query, not a media query: the routes sit in a column whose
         width is set by the layout, so the swap has to follow the COLUMN.
         Desktop → PDF leads. Under 700px → Ravelry leads (spec §1: a phone
         rarely holds the file, and an import is one paste). */
      .mc-kb-intake { container-type: inline-size; }
      .mc-kb-intake-routes { display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: 24px; }
      @container (min-width: 700px) {
        .mc-kb-intake-routes { grid-template-columns: 1.35fr 1fr; align-items: start; }
      }
      @container (max-width: 699px) {
        .mc-kb-intake-routes { display: flex; flex-direction: column; }
        .mc-kb-intake-card--ravelry { order: 1; }
        .mc-kb-intake-card--pdf { order: 2; }
      }
      /* No container-query support (older Safari/Firefox ESR): fall back to the
         viewport. The breakpoint is the same number for the same reason. */
      @supports not (container-type: inline-size) {
        @media (min-width: 768px) {
          .mc-kb-intake-routes { grid-template-columns: 1.35fr 1fr; align-items: start; }
        }
        @media (max-width: 767px) {
          .mc-kb-intake-routes { display: flex; flex-direction: column; }
          .mc-kb-intake-card--ravelry { order: 1; }
          .mc-kb-intake-card--pdf { order: 2; }
        }
      }

      .mc-kb-intake-card {
        background: var(--mc-paper-2, #EDE4D2);
        border: 1px solid var(--mc-rule, #CEC2A8);
        padding: 28px;
      }
      .mc-kb-intake-card--secondary { background: transparent; border-color: var(--mc-rule-soft, #ece8de); }
      .mc-kb-intake-card__kicker {
        font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
        color: var(--mc-ink-fade, #999); margin: 0 0 14px;
      }
      .mc-kb-intake-card h3 { margin: 0 0 10px; }
      .mc-kb-intake-card__sub {
        margin: 0 0 22px; color: var(--mc-ink-mute, #777);
        font-size: 15px; line-height: 1.65; max-width: 48ch;
      }
      /* The whole dashed box is the target — for a drop and for a click. The
         cursor is the promise; `is-dragover` is the answer while a file hovers.
         The flicker from crossing child elements is handled by a counter in JS
         rather than by `pointer-events: none` here: a class left behind by a
         missed dragleave would then leave the box unclickable, which is the
         exact bug this whole change exists to fix. */
      .mc-kb-drop {
        border: 1px dashed var(--mc-rule, #CEC2A8); background: var(--mc-paper, #FDFCFB);
        padding: 26px 22px; text-align: center; margin-bottom: 20px;
        cursor: pointer; transition: border-color 0.18s ease, background 0.18s ease;
      }
      .mc-kb-drop.is-dragover {
        border-color: var(--mc-ink, #1A1814);
        background: var(--mc-paper-2, #EDE4D2);
      }
      .mc-v2-photo-drop-hint { display: none; }
      @media (hover: hover) and (pointer: fine) {
        .mc-v2-photo-drop-hint { display: block; }
        [data-mc-kb-image-field].is-dragover {
          outline: 2px dashed var(--mc-ink, #1A1814);
          outline-offset: 6px;
          background: var(--mc-paper-2, #EDE4D2);
        }
      }
      .mc-kb-drop__name { font-family: var(--mc-serif); font-size: 20px; line-height: 1.3; }
      .mc-kb-drop__meta { font-size: 13px; color: var(--mc-ink-fade, #999); margin-top: 4px; }
      .mc-kb-drop__cta { margin-top: 14px; }
      .mc-kb-drop__pick { position: relative; display: inline-block; cursor: pointer; }
      .mc-kb-drop__pick input[type="file"] {
        position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer;
      }
      .mc-kb-intake-card--disabled .mc-kb-drop { opacity: 0.6; }

      /* Rights checkbox — policy §7.1. Gate for the upload button on BOTH
         layouts; the disabled button is the only thing that says so, so it
         must never look merely decorative. */
      .mc-kb-rights {
        display: grid; grid-template-columns: auto 1fr; gap: 12px;
        align-items: start; margin: 0 0 18px; cursor: pointer;
      }
      .mc-kb-rights input {
        appearance: none; -webkit-appearance: none;
        width: 18px; height: 18px; margin: 4px 0 0; flex: 0 0 auto;
        border: 1px solid var(--mc-ink, #1A1814); background: var(--mc-paper, #FDFCFB);
        border-radius: 0; cursor: pointer; position: relative; transition: background 0.18s ease;
      }
      .mc-kb-rights input:checked { background: var(--mc-ink, #1A1814); }
      .mc-kb-rights input:checked::after {
        content: ""; position: absolute; left: 5px; top: 1px;
        width: 5px; height: 10px; border: solid var(--mc-paper, #FDFCFB);
        border-width: 0 1.5px 1.5px 0; transform: rotate(42deg);
      }
      .mc-kb-rights__label { font-size: 15px; line-height: 1.6; }

      /* AI disclosure — collapsed two-liner + expander, at the upload control
         and never in a modal (policy §7.2, rev. 2026-08-13). */
      .mc-kb-disclose {
        margin: 18px 0 0; padding: 16px 0 0;
        border-top: 1px solid var(--mc-rule-soft, #ece8de);
        font-size: 13px; line-height: 1.7; color: var(--mc-ink-mute, #777); max-width: 60ch;
      }
      .mc-kb-disclose__more { margin-top: 8px; }
      .mc-kb-disclose__more summary {
        display: inline-block; cursor: pointer; list-style: none;
        font-size: 12px; letter-spacing: 0.06em; color: var(--mc-ink, #1A1814);
        text-decoration: underline; text-underline-offset: 3px;
        text-decoration-color: var(--mc-rule-soft, #ece8de);
      }
      .mc-kb-disclose__more summary::-webkit-details-marker { display: none; }
      .mc-kb-disclose__more summary:hover { text-decoration-color: var(--mc-ink, #1A1814); }
      .mc-kb-disclose__more[open] summary { margin-bottom: 6px; }
      .mc-kb-disclose__more p { margin: 0; }

      .mc-kb-intake-manual {
        margin-top: 26px; padding-top: 22px;
        border-top: 1px solid var(--mc-rule-soft, #ece8de);
        display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
        font-size: 14px; color: var(--mc-ink-fade, #999);
      }
      .mc-kb-page button.mc-kb-textlink {
        display: inline-flex; align-items: center; gap: 10px;
        font-size: 13px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
        padding: 0 0 4px; border: 0; border-bottom: 1px solid var(--mc-ink-fade, #999);
        background: transparent; color: var(--mc-ink-mute, #777); cursor: pointer;
        transition: padding-bottom 0.25s ease, color 0.25s ease, border-color 0.25s ease;
      }
      .mc-kb-page button.mc-kb-textlink:hover {
        padding-bottom: 8px; color: var(--mc-ink, #1A1814); border-bottom-color: var(--mc-ink, #1A1814);
      }
      .mc-kb-page button.mc-kb-textlink--tiny { font-size: 12px; letter-spacing: 0.16em; }

      /* UPLOADING — a real bar on real bytes (spec §1: files are 1.6–12.6 MB). */
      .mc-kb-panel {
        background: var(--mc-paper-2, #EDE4D2); border: 1px solid var(--mc-rule, #CEC2A8);
        padding: 32px; margin-top: 24px;
      }
      .mc-kb-panel--quiet { background: transparent; border-color: var(--mc-rule-soft, #ece8de); }
      .mc-kb-prog { margin-top: 26px; }
      .mc-kb-prog__track { height: 2px; background: var(--mc-rule-soft, #ece8de); position: relative; overflow: hidden; }
      .mc-kb-prog__bar {
        position: absolute; inset: 0 auto 0 0; width: 0;
        background: var(--mc-ink, #1A1814); transition: width 0.3s linear;
      }
      .mc-kb-prog__row {
        display: flex; justify-content: space-between; gap: 16px;
        margin-top: 12px; font-size: 13px; color: var(--mc-ink-mute, #777);
      }
      .mc-kb-prog__row b { font-weight: 500; color: var(--mc-ink, #1A1814); }
      .mc-kb-prog__file { font-family: var(--mc-serif); font-size: 22px; line-height: 1.3; margin: 0 0 4px; }

      /* The handover window: every byte is sent, and the Worker is staging the
         file. A percentage would be a fiction here, so the bar stops counting
         and simply says it is working. `aria-valuenow` is removed with the same
         gesture in JS — an ARIA progressbar without it IS the indeterminate
         one, which is exactly what this is. */
      .mc-kb-prog__track.is-indeterminate .mc-kb-prog__bar {
        width: 38%; animation: mc-kb-prog-shuttle 1.5s ease-in-out infinite;
      }
      @keyframes mc-kb-prog-shuttle {
        0%   { transform: translateX(-100%); }
        100% { transform: translateX(263%); }
      }
      /* Reduced motion: the section-wide rule below collapses the duration,
         which would leave the bar parked at its 38% start. A full bar says the
         same thing without moving. */
      @media (prefers-reduced-motion: reduce) {
        .mc-kb-prog__track.is-indeterminate .mc-kb-prog__bar {
          width: 100%; animation: none !important; transform: none;
        }
      }

      /* ANALYZING — three staged lines. The first two are timed; the last one
         waits for the answer, which is why it is the only honest one to leave
         breathing (spec §1). */
      .mc-kb-stages { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 0; }
      .mc-kb-stage-item {
        display: grid; grid-template-columns: 26px 1fr; align-items: center; gap: 14px;
        padding: 18px 0; border-bottom: 1px solid var(--mc-rule-soft, #ece8de);
        font-size: 17px; color: var(--mc-ink-fade, #999); transition: color 0.5s ease;
      }
      .mc-kb-stage-item:last-child { border-bottom: 0; }
      .mc-kb-stage-mark {
        width: 9px; height: 9px; border: 1px solid var(--mc-rule, #CEC2A8); border-radius: 50%;
        justify-self: center; position: relative;
        transition: background 0.5s ease, border-color 0.5s ease;
      }
      .mc-kb-stage-item[data-s="done"] { color: var(--mc-ink-mute, #777); }
      .mc-kb-stage-item[data-s="done"] .mc-kb-stage-mark { background: var(--mc-accent, #d4b5a0); border-color: var(--mc-accent, #d4b5a0); }
      .mc-kb-stage-item[data-s="live"] { color: var(--mc-ink, #1A1814); }
      .mc-kb-stage-item[data-s="live"] .mc-kb-stage-mark { background: var(--mc-ink, #1A1814); border-color: var(--mc-ink, #1A1814); }
      .mc-kb-stage-item[data-s="live"] .mc-kb-stage-mark::after {
        content: ""; position: absolute; inset: -6px; border: 1px solid var(--mc-rule, #CEC2A8);
        border-radius: 50%; animation: mcKbBreathe 2.4s ease-in-out infinite;
      }
      @keyframes mcKbBreathe { 0%, 100% { opacity: 0.25; transform: scale(0.86); } 50% { opacity: 1; transform: scale(1); } }

      /* NOTICES — failed reading / spent quota. */
      .mc-kb-notice {
        border: 1px solid var(--mc-rule, #CEC2A8); border-left: 2px solid var(--mc-error, #9B2D14);
        background: var(--mc-paper-2, #EDE4D2); padding: 26px 28px; margin-top: 24px;
      }
      .mc-kb-notice--soft { border-left-color: var(--mc-accent, #d4b5a0); }
      .mc-kb-notice h3 { margin: 0 0 10px; }
      .mc-kb-notice p { margin: 0 0 8px; color: var(--mc-ink-mute, #777); font-size: 15px; line-height: 1.7; max-width: 60ch; }
      .mc-kb-notice p:last-of-type { margin-bottom: 0; }
      .mc-kb-filechip {
        display: inline-flex; align-items: center; gap: 12px; margin-top: 18px;
        border: 1px solid var(--mc-rule-soft, #ece8de); background: var(--mc-paper, #FDFCFB);
        padding: 10px 14px; font-size: 13px; color: var(--mc-ink-mute, #777);
      }
      .mc-kb-filechip b { font-weight: 500; color: var(--mc-ink, #1A1814); }
      .mc-kb-intake-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-top: 26px; }

      /* ============================================================
         REVIEW — analysis provenance, observations, AI draft note.
         One micro-label per GROUP plus a thin clay edge; never a badge per
         field and never a robot icon (spec §3, Quiet Luxury).
         ============================================================ */
      .mc-kb-reading-receipt {
        margin: 24px 0; padding: 20px;
        border: 1px solid var(--mc-rule-soft); color: var(--mc-ink);
        font-size: 16px; line-height: 1.6; font-style: normal;
      }
      .mc-kb-reading-receipt p { margin: 0 0 12px; }
      .mc-kb-reading-receipt p:last-child { margin-bottom: 0; }
      .mc-kb-reading-receipt ul { margin: 0; padding-left: 24px; }
      .mc-kb-reading-receipt a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
      .mc-kb-fromdoc { position: relative; }
      .mc-kb-fromdoc-label {
        display: inline-flex; align-items: center; gap: 10px;
        font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
        color: var(--mc-ink-mute, #777); margin-left: 12px;
      }
      .mc-kb-fromdoc-label::before {
        content: ""; width: 14px; height: 3px; background: var(--mc-accent, #d4b5a0); flex: 0 0 auto;
      }
      /* The edge marks the GROUP: either the marked element itself (the gauge
         block, the measurements panel, a yarn slot) or the fields directly
         inside it. Never one badge per input — that is chrome, and chrome is
         what makes a filled form feel machine-made. */
      .mc-kb-field.mc-kb-fromdoc,
.mc-kb-fits.mc-kb-fromdoc,
.mc-kb-fromdoc>.mc-kb-field,
.mc-kb-fromdoc>.mc-kb-grid-2>.mc-kb-field {
        border-left: 3px solid var(--mc-accent, #d4b5a0);
        padding-left: 15px;
      }
      /* A nested field inside an already-marked group must not double the rule. */
      .mc-kb-field.mc-kb-fromdoc .mc-kb-field,
.mc-kb-fits.mc-kb-fromdoc .mc-kb-field {
        border-left: 0;
        padding-left: 0;
      }
      /* ============================================================
         THE READING'S REPORT (2026-08-19 redraw).

         It used to be `.mc-kb-obs`: a panel on --mc-paper, which resolves to
         --m26-cream, which is the page's own background. Its only edge was one
         hairline at 22% ink, and it sat between two form fields. It read as
         another field, because visually it was one.

         So it gets a ground of its own. --mc-paper-3 (--m26-beige) is two
         steps warmer than the page, and the clay top edge is the same mark the
         builder already uses for "this came from your pattern", at panel
         scale. Between the two, the boundary is visible from across the room.
         Calm, though: no alert colour, no icon, no shadow.
         ============================================================ */
      .mc-kb-report {
        background: var(--mc-paper-3, #f5f0eb);
        border: 1px solid var(--mc-rule, #CEC2A8);
        border-top: 3px solid var(--mc-accent, #d4b5a0);
        padding: 26px 28px;
        margin: 0 0 26px;
      }
      /* The ground runs the full width of the page body so the boundary is
         unmissable; the reading itself is prose, so it is set in a column.
         Without the cap the row actions end up 700px from the sentence they
         act on. */
      .mc-kb-report > * { max-width: 860px; }
      .mc-kb-report__head { max-width: 62ch; }
      .mc-kb-report__eyebrow {
        margin: 0; font-family: var(--mc-sans);
        font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
        color: var(--mc-ink-mute, #777);
      }
      /* The count is the headline: a partner can finish "3 things we noticed",
         but an untitled list of rows has no end in it. */
      .mc-kb-report__h {
        margin: 6px 0 0; font-family: var(--mc-serif); font-style: normal;
        font-weight: 400; font-size: 26px; line-height: 1.2;
        letter-spacing: 0; text-transform: none;
        color: var(--mc-ink, #1A1814);
      }
      .mc-kb-report__sub {
        margin: 8px 0 0; font-family: var(--mc-sans);
        font-size: 14px; line-height: 1.6; letter-spacing: 0; text-transform: none;
        color: var(--mc-ink-mute, #777);
      }
      .mc-kb-report__status {
        margin: 16px 0 0; padding: 10px 14px;
        background: var(--mc-paper, #FDFCFB);
        border-left: 2px solid var(--mc-accent, #d4b5a0);
        font-family: var(--mc-sans); font-size: 13px; line-height: 1.5;
        letter-spacing: 0; text-transform: none;
        color: var(--mc-ink-soft, #3A342A);
        display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
      }
      .mc-kb-report__list { list-style: none; margin: 18px 0 0; padding: 0; }
      /* Fully expanded the list scrolls inside itself, so a pattern with
         sixteen observations cannot push the form off the screen. */
      .mc-kb-report__list.is-expanded {
        max-height: 58vh; overflow-y: auto; padding-right: 12px;
        border-bottom: 1px solid var(--mc-rule, #CEC2A8);
      }
      .mc-kb-report__item {
        display: grid; grid-template-columns: 1fr auto; gap: 8px 22px;
        align-items: start;
        padding: 18px 0; border-top: 1px solid var(--mc-rule, #CEC2A8);
      }
      .mc-kb-report__item:first-child { border-top: 0; padding-top: 4px; }
      .mc-kb-report__text {
        margin: 0; font-family: var(--mc-sans);
        font-size: 15px; line-height: 1.65; letter-spacing: 0; text-transform: none;
        color: var(--mc-ink-soft, #3A342A); max-width: 62ch;
      }
      .mc-kb-report__quote {
        display: block; margin: 8px 0 0; font-family: var(--mc-serif);
        font-style: normal; font-size: 15px; line-height: 1.6;
        color: var(--mc-ink, #1A1814);
        padding-left: 14px; border-left: 1px solid var(--mc-rule, #CEC2A8);
        max-width: 62ch;
      }
      .mc-kb-report__meta {
        grid-column: 1 / -1;
        margin: 0; font-family: var(--mc-sans);
        font-size: 13px; line-height: 1.6; letter-spacing: 0; text-transform: none;
        color: var(--mc-ink-mute, #777);
      }
      .mc-kb-report__acts {
        display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
      }
      .mc-kb-report__acts button { min-height: 44px; white-space: nowrap; }
      .mc-kb-report__foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--mc-rule, #CEC2A8); }
      .mc-kb-report__done { margin-top: 4px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
      .mc-kb-report__done p {
        margin: 0; font-family: var(--mc-sans); font-size: 14px; line-height: 1.6;
        letter-spacing: 0; text-transform: none; color: var(--mc-ink-mute, #777);
      }
      .mc-kb-report__foot button, .mc-kb-report__done button { min-height: 44px; }
      @media (max-width: 640px) {
        .mc-kb-report { padding: 20px 18px; margin-bottom: 20px; }
        .mc-kb-report__h { font-size: 22px; }
        /* Stack the actions under the text — 375px has no room for a column
           of buttons beside a 62ch paragraph without shredding both. */
        .mc-kb-report__item { grid-template-columns: 1fr; gap: 10px; }
        .mc-kb-report__acts { flex-direction: row; align-items: center; justify-content: flex-start; gap: 20px; }
      }
      /* CONFIRM (frontend-spec §1) — the last screen before a kit is sent in.
         Rendered ONLY for a kit the analysis built; a hand-built kit never
         sees this block, and its submit path is unchanged. */
      .mc-kb-confirm {
        background: var(--mc-paper, #FDFCFB); border: 1px solid var(--mc-rule, #CEC2A8);
        padding: 24px; margin: 0 0 22px;
      }
      .mc-kb-confirm__h { margin: 0 0 6px; }
      .mc-kb-confirm__rows { margin-top: 18px; }
      .mc-kb-confirm-row {
        padding: 18px 0; border-top: 1px solid var(--mc-rule-soft, #ece8de);
      }
      .mc-kb-confirm-row:first-child { border-top: 0; padding-top: 0; }
      .mc-kb-confirm-row__top {
        display: flex; justify-content: space-between; align-items: baseline;
        gap: 16px; flex-wrap: wrap;
      }
      .mc-kb-confirm-row__name { font-size: 15px; }
      .mc-kb-confirm-row__name em { font-style: normal; color: var(--mc-ink-mute, #777); }
      .mc-kb-confirm-row__swatch {
        display: inline-block; width: 22px; height: 22px; vertical-align: -5px;
        margin-right: 10px; border: 1px solid var(--mc-rule, #CEC2A8);
      }
      .mc-kb-confirm-row__yarn {
        display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px;
      }
      .mc-kb-confirm-row__yarn b { font-weight: 500; }
      .mc-kb-confirm__src {
        margin: 8px 0 0; font-size: 13px; line-height: 1.6;
        color: var(--mc-ink-mute, #777); max-width: 62ch;
      }
      .mc-kb-confirm__src q { font-style: normal; quotes: none; color: var(--mc-ink, #1A1814); }
      /* A base filled from a bare construction word, said again on the last
         screen before the kit is sent. Same dashed edge as the slot card's
         `.mc-kb-suggest--guess`, so the two read as one statement rather than
         as two separate warnings. */
      .mc-kb-confirm__guess {
        margin: 8px 0 0; padding: 8px 0 8px 12px;
        border-left: 3px dashed var(--mc-ink-fade, #7a6f66);
        font-size: 13px; line-height: 1.6;
        color: var(--mc-ink-mute, #777); max-width: 62ch;
      }
      .mc-kb-confirm__guess b { font-weight: 500; color: var(--mc-ink, #1A1814); }
      .mc-kb-confirm__guess q { quotes: none; color: var(--mc-ink, #1A1814); }
      .mc-kb-confirm__guess q::before,
      .mc-kb-confirm__guess q::after { content: '"'; }
      .mc-kb-confirm__counts { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 14px; }
      .mc-kb-confirm-count { min-width: 92px; }
      .mc-kb-confirm-count__n { font-size: 28px; line-height: 1.1; }
      .mc-kb-confirm-count__n small {
        font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
        color: var(--mc-ink-mute, #777); margin-left: 7px;
      }
      .mc-kb-confirm-count__sz {
        font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
        color: var(--mc-ink-fade, #999); margin-top: 5px;
      }
      .mc-kb-confirm__range,
      .mc-kb-confirm__accept {
        display: flex; gap: 10px; align-items: flex-start;
        margin-top: 12px; font-size: 14px; line-height: 1.55;
      }
      .mc-kb-confirm__accept {
        margin-top: 20px; padding-top: 18px;
        border-top: 1px solid var(--mc-rule-soft, #ece8de);
      }
      .mc-kb-confirm__accept input,
      .mc-kb-confirm__range input { margin-top: 3px; flex: 0 0 auto; }
      /* The gate's marks. A pending decision is not a fault, so the mark is the
         error colour on the ONE control being asked for and nothing else —
         no panel, no ring around the whole section. */
      .mc-kb-confirm__accept--invalid,
      .mc-kb-confirm__range--invalid { color: var(--mc-error, #9B2D14); }
      .mc-kb-confirm__accept--invalid input,
      .mc-kb-confirm__range--invalid input { outline: 2px solid var(--mc-error, #9B2D14); outline-offset: 2px; }
      .mc-kb-confirm__gate {
        margin: 10px 0 0; padding-left: 10px;
        border-left: 2px solid var(--mc-error, #9B2D14);
        font-size: 14px; line-height: 1.55; color: var(--mc-ink-soft, #3A342A);
      }
      .mc-kb-confirm__blockers { margin-top: 16px; }
      .mc-kb-confirm__blocker {
        margin: 8px 0 0; padding-left: 10px;
        border-left: 2px solid var(--mc-error, #9B2D14);
        font-size: 13px; line-height: 1.55; color: var(--mc-ink-soft, #3A342A);
      }
      /* The draft box asks for a decision, so it is given the ground the rest
         of the builder gives a note that speaks ABOUT the form rather than
         inside it — two CSS lines and a gap read as an empty region. */
      .mc-kb-draftnote {
        margin-top: 16px; padding: 16px 18px;
        background: var(--mc-paper-3, #f5f0eb);
        border-left: 2px solid var(--mc-accent, #d4b5a0);
      }
      /* The two prose boxes of the Designer's-notes fold: the draft the
         reading copied out of the pattern, and the notes the partner writes.
         Until 2026-08-28 neither had a rule anywhere, and the global form
         override in mohair-design-system.css was the only thing giving them a
         border and a ground — which is why they were the last two controls in
         the builder still opted IN to it.

         Leaving them there was not only a mismatch with the kit introduction
         three folds up (paper against transparent, in the one place the
         builder asks for prose twice). The override's `font-size: 15px` also
         beat `--mc-fs-input`, which is 16px on mobile precisely because
         anything under it makes iOS zoom the page on focus. So this fold alone
         kept a focus-zoom the rest of the builder had been fixed out of.

         Written here rather than by adding `textarea` to `.mc-kb-field
         input, select`: that rule would also reach the introduction's two
         boxes and the size-chart's label, all three of which are dressed by
         more specific rules of their own and would then depend on winning a
         cascade they do not need to enter. The folds' textareas are styled
         where they live — the same convention the introduction's own rule
         names.

         `font-size` is restated after `font: inherit` and has to be. The
         shorthand sets font-size too, and this selector (0,2,0) outranks the
         `.mc-kb-page textarea` rule (0,1,1) that owns `--mc-fs-input` — so a
         bare `font: inherit` here would take the mobile floor back out and
         reintroduce the very zoom the paragraph above is about. The
         introduction's rule spells it out for the same reason. */
      .mc-kb-page [data-mc-kb-draftnote-text],
      .mc-kb-page [data-mc-kb-notes] {
        padding: 12px 14px;
        border: 1px solid var(--mc-rule);
        background: var(--mc-paper-2);
        font: inherit;
        font-size: var(--mc-fs-input);
        line-height: 1.6;
        color: var(--mc-ink);
        resize: vertical;
        transition: border 0.2s;
      }
      .mc-kb-page [data-mc-kb-draftnote-text]:focus,
      .mc-kb-page [data-mc-kb-notes]:focus { border-color: var(--mc-ink); }
      .mc-kb-draftnote__acts {
        display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 16px;
      }
      /* Accept and destroy were the same underlined 12px grey text link, 14px
         apart, and neither read as a button. Filled ink vs. quiet outline: the
         weight says which one is the action and which one throws the text
         away, before the labels are read at all. */
      .mc-kb-page button.mc-kb-draftnote__act {
        display: inline-flex; align-items: center; justify-content: center;
        min-height: 44px; padding: 12px 24px;
        font-family: var(--mc-sans); font-size: 13px; font-weight: 500;
        letter-spacing: 0.16em; text-transform: uppercase;
        border: 1px solid var(--mc-ink, #1A1814); border-radius: 0;
        background: var(--mc-ink, #1A1814); color: var(--mc-paper, #FAF7F0);
        cursor: pointer;
        transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
      }
      /* Inversion rather than a darker fill: --mc-accent-deep resolves to the
         same #2c2420 as --mc-ink here, so a "darker" hover would be no hover
         at all. */
      .mc-kb-page button.mc-kb-draftnote__act--use:hover {
        background: transparent; color: var(--mc-ink, #1A1814);
      }
      /* --mc-rule is ink at 22% — 1.54:1 on this ground, under the 3:1 floor
         for a non-text shape, so the outline that makes it read as a button
         would not have been visible. The label's own colour is 5.37:1. */
      .mc-kb-page button.mc-kb-draftnote__act--drop {
        background: transparent; color: var(--mc-ink-mute, #777);
        border-color: var(--mc-ink-mute, #777);
      }
      .mc-kb-page button.mc-kb-draftnote__act--drop:hover {
        color: var(--mc-ink, #1A1814); border-color: var(--mc-ink, #1A1814);
      }
      /* Kit introduction. Spans both grid columns: 300 characters in a
         half-width cell wraps to three words a line, which is not a shape
         anybody proof-reads a standfirst in. The textarea rules are spelled
         out because .mc-kb-field's own input styling names input + select and
         stops there — the folds' textareas are styled where they live too. */
      .mc-kb-field--intro { grid-column: 1 / -1; }
      /* The two textareas of the introduction field: the partner's own, and
         the draft box's. Both are dressed here, which is what earns them the
         `.mc-kb-input` opt-out from the global form override in
         mohair-design-system.css.
         `--mc-fs-input`, not the hard 14px this used to say: that token is
         what the url input and the two selects beside this field resolve to,
         and 14px was never what rendered anyway — the global rule's
         `font-size: 15px !important` was. On desktop the token is also 15px,
         so the two matched by luck; on mobile the token is 16px, which is what
         stops iOS zooming the page on focus, and this field alone stayed at 15
         and got the zoom. */
      .mc-kb-page .mc-kb-field--intro textarea {
        padding: 12px 14px;
        border: 1px solid var(--mc-rule);
        background: var(--mc-paper-2);
        font: inherit;
        font-size: var(--mc-fs-input);
        line-height: 1.6;
        color: var(--mc-ink);
        resize: vertical;
        transition: border 0.2s;
      }
      .mc-kb-page .mc-kb-field--intro textarea:focus { border-color: var(--mc-ink); }
      /* A left-aligned block, like every other hint in this grid. It was a
         flex row with space-between, which threw "0 / 300" to the far edge of
         a full-width field and put a hand's width of nothing between the
         guidance and its own count. */
      .mc-kb-hint--count { display: block; }
      .mc-kb-hint--count [data-mc-kb-description-count] { white-space: nowrap; }
      /* The undo offer after an accepted draft. Quiet by default and never a
         red alert: nothing has gone wrong, there is simply a way back. */
      .mc-kb-page .mc-kb-draftundo {
        margin: 6px 0 0;
        font-size: 13px;
        line-height: 1.5;
        color: var(--mc-ink-soft, #3A342A);
      }
      .mc-kb-page .mc-kb-draftundo--cut { color: var(--mc-flag-ink, #7A4E12); }
      /* A slot whose yarn is still unmapped, and a grams slot whose yarn has no
         ball weight on file: both silently produce 0 skeins, so both say so. */

      .mc-kb-size--offered {
        opacity: 0.72; border-style: dashed;
      }

      /* ── Per-field provenance ──────────────────────────────────────
         One mark, one meaning, everywhere: a small clay dot that says "this
         value came off your pattern". The group edge above says which BLOCK
         the reading touched; this says which values inside it. A worded chip
         per field would be a badge storm — a repeated dot reads as a margin
         mark, and the legend at the top of Step 01 is what makes it legible. */
      .mc-kb-page .mc-kb-prov {
        appearance: none;
        border: 0;
        background: transparent;
        padding: 0;
        margin: 0 4px 0 0;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 18px;
        min-width: 18px;
        height: 18px;
        min-height: 18px;
        flex: 0 0 18px;
        vertical-align: middle;
        border-radius: 50%;
        line-height: 0;
        position: relative;
        z-index: 2;
        align-self: center;
      }
      /* Keep stacked labels and their controls in place. The mark uses the
         control row's reserved end column without adding a wrapper. */
      .mc-kb-page .mc-kb-field--provenance {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 44px;
        align-items: center;
        column-gap: 4px;
      }
      .mc-kb-page .mc-kb-field--provenance > * { grid-column: 1 / -1; }
      .mc-kb-page .mc-kb-field--provenance > :is(input, select, textarea) { grid-column: 1; }
      .mc-kb-page .mc-kb-field--provenance > .mc-kb-prov { grid-column: 2; justify-self: center; }
      .mc-kb-page .mc-kb-prov--check .mc-kb-prov__dot {
        background: #b77916;
        box-shadow: 0 0 0 1px #875700 inset;
      }
      .mc-kb-prov__dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: var(--mc-accent, #d4b5a0);
        box-shadow: 0 0 0 1px var(--mc-accent-deep, #823722) inset;
      }
      /* A converted number is not the number in the quote, so its mark is
         hollow: same notation, one degree less certain. */
      .mc-kb-prov--converted .mc-kb-prov__dot {
        background: transparent;
        box-shadow: 0 0 0 2px var(--mc-accent-deep, #823722) inset;
      }
      .mc-kb-prov:hover .mc-kb-prov__dot,
      .mc-kb-prov[aria-expanded="true"] .mc-kb-prov__dot {
        background: var(--mc-accent-deep, #823722);
        box-shadow: 0 0 0 1px var(--mc-accent-deep, #823722) inset;
      }
      .mc-kb-page .mc-kb-prov--stale-analysis .mc-kb-prov__dot {
        background: transparent;
        box-shadow: none;
        border: 1px dotted var(--mc-accent-deep, #823722);
      }
      .mc-kb-page .mc-kb-prov--static { cursor: default; vertical-align: -4px; }
      /* The gauge reads as a sentence, so its marks sit tight against the
         numbers they belong to. */
      .mc-kb-page .mc-kb-gauge-row .mc-kb-prov { margin: 0 2px 0 1px; }
      /* Touch needs a real target and 18px is not one — but a 44px dot beside
         every value would be the badge storm this design exists to avoid. So
         the hit area grows and the dot does not: an invisible 44x44 pad,
         centred on the mark, that costs no layout at any width. */
      .mc-kb-page .mc-kb-prov::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: var(--mc-tap, 44px);
        height: var(--mc-tap, 44px);
        transform: translate(-50%, -50%);
      }
      .mc-kb-page .mc-kb-prov--static::before { content: none; }
      /* Two places where a centred 44px pad would reach across into a control
         that is not this mark, and steal the tap meant for it. The mark keeps
         a real target; it just stops growing towards its neighbour.
           · amount grid — the mark sits in the size header directly above a
             number input, so the pad stays inside the header's own band;
           · measurement label — the pad leans left into the cell's margin
             instead of across the rename field it labels. */

      /* Third of the same kind, and it holds the same 24px floor the other two
         do. A construction chip's mark sits between two 44px-tall pills, so a
         centred 44px pad would reach into the toggle on its right and the
         previous chip on its left and take taps meant for both. Height is kept
         in full: the pad is 44px tall inside a 44px row, so it fills the row
         exactly and never crosses the 6px gap to the chips above or below.

         Width is what has to give, and the room is countable from the boxes
         above. The mark is 18px wide with `margin: 0 4px 0 0`, so from its
         centre there is 9 + 4 + 4 = 17px to the toggle on the right (its own
         margin plus this wrapper's gap) and 9 + 0 + 6 = 15px to the previous
         chip on the left (no left margin, then the chips row's gap). A centred
         pad may therefore be 2 x 15 = 30px at the widest. 24px spends 12px a
         side and leaves 3px on the tighter one. */
      /* The pattern-type row wears the same wrapper for the same reason, so it
         inherits the narrowed pad rather than restating the arithmetic. */
      .mc-kb-page .mc-kb-constr-chip .mc-kb-prov::before { width: 24px; }
      /* The legend explains the page; it is not a field on it. Without its own
         ground it sat flush against the Ravelry label below and read as that
         field's hint. So it takes the panel idiom this builder already uses for
         a note that speaks about the form rather than inside it
         (.mc-kb-report__status, .mc-kb-draftnote): tinted ground, one clay
         edge, and real air before the first input. */
      .mc-kb-prov-legend {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        align-items: baseline;
        margin: 14px 0 26px;
        padding: 12px 16px;
        background: var(--mc-paper-3, #f5f0eb);
        border-left: 2px solid var(--mc-accent, #d4b5a0);
        font-size: 13px;
        line-height: 1.6;
        color: var(--mc-ink-soft, #3A342A);
      }
      .mc-kb-prov-legend > .mc-kb-prov,
      .mc-kb-prov-legend__stale > .mc-kb-prov { align-self: baseline; }
      .mc-kb-prov-legend__text {
        flex: 1 1 0;
        min-width: 0;
      }
      .mc-kb-prov-legend__stale {
        display: flex;
        flex-basis: 100%;
        gap: 8px;
        align-items: baseline;
      }
      .mc-kb-prov-pop {
        position: fixed;
        z-index: 60;
        /* The popover is appended to <body>, outside the section's own box, so
           it does not inherit the theme's border-box. Without this the 48px of
           padding lands OUTSIDE the max-width and a 340px clamp renders 388px
           wide, which is wider than a 375px phone. */
        box-sizing: border-box;
        max-width: min(340px, calc(100vw - 16px));
        padding: 14px 32px 14px 16px;
        background: var(--mc-paper, #FDFCFB);
        border: 1px solid var(--mc-rule, #CEC2A8);
        box-shadow: 0 6px 24px rgba(26, 24, 20, 0.12);
      }
      .mc-kb-prov-pop__head {
        margin: 0;
        font-size: 12px;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--mc-ink-mute, #5e524a);
      }
      .mc-kb-prov-pop__quote {
        margin: 8px 0 0;
        font-size: 14px;
        line-height: 1.55;
        color: var(--mc-ink, #1A1814);
      }
      .mc-kb-prov-pop__note {
        margin: 8px 0 0;
        font-size: 13px;
        line-height: 1.5;
        color: var(--mc-ink-mute, #5e524a);
      }
      .mc-kb-prov-pop__parts {
        list-style: none;
        margin: 8px 0 0;
        padding: 0;
      }
      .mc-kb-prov-pop__parts li {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        gap: 12px;
        padding: 6px 0;
        border-top: 1px solid var(--mc-rule-soft, #ece7da);
        font-size: 14px;
        line-height: 1.45;
        color: var(--mc-ink, #1A1814);
      }
      .mc-kb-prov-pop__pg {
        flex: 0 0 auto;
        font-size: 12px;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--mc-ink-fade, #7a6f66);
      }
      .mc-kb-page .mc-kb-prov-pop__close {
        position: absolute;
        top: 4px;
        right: 4px;
        appearance: none;
        border: 0;
        background: transparent;
        cursor: pointer;
        font-size: 18px;
        line-height: 1;
        width: 28px;
        min-height: 28px;
        color: var(--mc-ink-mute, #5e524a);
      }

      /* A construction term the pattern printed that no preset covers. It sits
         beside the preset chips as the pattern's own words, already on. */
      .mc-kb-page .mc-kb-chip--constr-extra {
        display: inline-flex;
        align-items: center;
        gap: 2px;
        border: 1px solid var(--mc-accent, #d4b5a0);
        border-radius: 999px;
        padding: 5px 4px 5px 10px;
        background: var(--mc-paper-2, #fbf7ee);
        font-size: 14px;
        color: var(--mc-ink, #1a1a1a);
      }

      /* ── A fold that has something waiting in it ───────────────────
         An accordion that is shut and unmarked is indistinguishable from an
         empty one. When the analysis leaves a draft note behind, the fold opens
         itself and wears this. */
      .mc-kb-fold-flag {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin-left: 10px;
        padding: 2px 10px 2px 4px;
        border-radius: 999px;
        background: var(--mc-flag-tint, rgba(191, 126, 40, 0.14));
        color: var(--mc-flag-ink, #7A4E12);
        font-size: 12px;
        letter-spacing: 0.02em;
        text-transform: none;
        white-space: nowrap;
      }
      .mc-kb-fold-flag__mark {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: var(--mc-flag-mark, #BF7E28);
        color: var(--mc-paper, #FCFAF4);
        font-size: 12px;
        line-height: 1;
        font-weight: 600;
      }
      .mc-kb-page .mc-kb-fold--flagged > summary { color: var(--mc-ink, #2c2420); }

      /* ── The same mark, spent ──────────────────────────────────────
         It used to be removed the moment the partner opened the fold, and a
         partner scrolling back to check which fields we had filled found a
         form that looked entirely their own. So it stays and stops asking:
         grey rather than amber, a tick rather than an exclamation mark, and no
         darkened summary pulling the eye back to a fold already dealt with.
         12px is the MDS decorative floor and this sits on it, so the quieting
         is done with colour and never with size. */
      .mc-kb-fold-flag--set {
        background: var(--mc-flag-set-tint, rgba(44, 36, 32, 0.07));
        color: var(--mc-flag-set-ink, #5F574F);
      }
      .mc-kb-fold-flag--set .mc-kb-fold-flag__mark {
        background: var(--mc-flag-set-mark, #6E665E);
        font-weight: 500;
      }

      /* The locked-chip explainer. Always readable; a click on the locked chip
         tints it briefly so a control that cannot move still answers. */
      .mc-kb-lang-locked {
        border-radius: 6px;
        padding: 4px 8px;
        margin-left: -8px;
        background: transparent;
        transition: background-color 200ms ease-out, color 200ms ease-out;
      }
      .mc-kb-lang-locked.is-lit {
        background: var(--mc-flag-tint, rgba(191, 126, 40, 0.14));
        color: var(--mc-flag-ink, #7A4E12);
      }
      @media (prefers-reduced-motion: reduce) {
        .mc-kb-lang-locked { transition: none; }
      }

      /* ── The same flag, on the step tab ────────────────────────────
         A partner who lands on step 01 has no way to know the analysis also
         filled step 02, so the tab carries the mark for the fields underneath
         it. Same component as the two folds, reduced to its mark: four tabs
         plus the preview CTA already fill an 864px row, and two pills reading
         "Filled from your pattern" would push the nav into a scroller on
         desktop. The sentence itself is one tap away, on the fold the mark is
         pointing at, and reaches assistive tech through the description
         element beside the nav. */
      .mc-kb-fold-flag--tab {
        margin-left: 0;
        padding: 0;
        background: transparent;
        /* 44px is the tab's own min-height, so the mark needs no tap target of
           its own; it is a passenger inside a control that already has one. */
        flex: 0 0 auto;
      }
      .mc-kb-page .mc-kb-stepnav__tab--flagged {
        border-color: var(--mc-flag-mark, #BF7E28) !important;
      }
      /* The active tab is dark-filled, and an amber border on it would read as
         an error rather than a note. The mark inside carries it there. */
      .mc-kb-page .mc-kb-stepnav__tab--flagged.is-active {
        border-color: var(--mc-ink) !important;
      }

      /* ── Yarn-base suggestion ──────────────────────────────────────
         The base decides how many metres a skein holds, so accepting one
         rewrites every skein count under it. A pattern that NAMES our yarn and
         a pattern that merely has a ply we recognise are therefore not the same
         claim, and this is where that difference has to be visible: a guess
         rendered like a finding produces an exact-looking number built on an
         inference the partner never made. Solid edge for a name, dashed for a
         guess, and neither one fills the field. */

      /* Recognised, but through our name plus a construction rather than a
         catalogue title: a filled mark in the lighter clay, ringed. */

      /* The proposed chip carries the same notation as its panel, so the two
         read as one statement. It is an outline, never a fill: a filled chip
         would say the choice is made. */
      .mc-kb-page .mc-kb-yarn-chip--suggested {
        border-color: var(--mc-accent-deep, #823722);
        box-shadow: 0 0 0 1px var(--mc-accent-deep, #823722) inset;
      }
      .mc-kb-page .mc-kb-yarn-chip--brandply {
        border-color: var(--mc-accent, #d4b5a0);
        box-shadow: 0 0 0 1px var(--mc-accent, #d4b5a0) inset;
      }
      .mc-kb-page .mc-kb-yarn-chip--guess {
        border-style: dashed;
        border-color: var(--mc-ink-fade, #7a6f66);
        box-shadow: none;
      }

      /* 7.6 · Motion respect — the section's own transitions sit out when
         the reader has asked for reduced motion. */
      @media (prefers-reduced-motion: reduce) {
        .mc-kb-page *, .mc-kb-page *::before, .mc-kb-page *::after {
          transition-duration: 0.01ms !important;
          animation-duration: 0.01ms !important;
        }
      }

/* V2: demo proportions, shared MDS palette and type. Legacy renderer classes
   above remain functional until the corresponding K3–K5 view is replaced. */
.mc-kb-v2 { max-width: 1360px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 56px) 80px; color: var(--mc-ink); background: var(--mc-paper); font-family: var(--mc-sans); font-size: 16px; }
.mc-kb-v2 *, .mc-kb-v2 em { font-style: normal; box-sizing: border-box; }
.mc-kb-v2 .mc-v2-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; padding: 16px 0; border-bottom: 1px solid var(--mc-rule-soft); }
.mc-kb-v2 .mc-v2-header > span { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--mc-ink-mute); }
.mc-kb-v2 .mc-v2-header > div { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; font-size: 14px; }
.mc-kb-page.mc-kb-v2 .mc-kb-layout { display: block; width: 100%; max-width: none; margin: 0; padding: 0; }
.mc-kb-v2 .mc-kb-form { width: 100%; max-width: none; gap: 0; }
.mc-kb-v2 .mc-kb-intake { width: 100%; max-width: 720px; margin: 56px auto 0; border: 0; padding: 0; background: none; }
.mc-kb-v2 .mc-kb-intake [data-mc-kb-intake-phase] > * + * { margin-top: 24px; }
.mc-kb-v2 h1, .mc-kb-v2 h2, .mc-kb-v2 h3 { font-family: var(--mc-serif); font-weight: 400; line-height: 1.12; letter-spacing: -.02em; }
.mc-kb-v2 #mc-kb-intake-h, .mc-kb-v2 #mc-kb-walkin-intake-h { font-size: clamp(36px, 5vw, 52px); margin: 0; }
.mc-kb-v2 .mc-kb-intake h2, .mc-kb-v2 .mc-kb-intake h3 { font-size: clamp(32px, 4vw, 42px); }
.mc-kb-v2 [data-mc-kb-intake-lede] { font-size: 18px; line-height: 1.65; color: var(--mc-ink-mute); }
.mc-kb-v2 .mc-kb-intake-routes { display: block; }
.mc-kb-v2 .mc-kb-intake-card { border: 0; padding: 0; background: none; }
/* F7 — walk-in's own entry menu. Spacing matches the designer intake's
   [data-mc-kb-intake-phase] rhythm; the Ravelry card reuses the PDF card's
   exact bordered treatment ([data-mc-kb-pdf-card] above) so Ravelry reads
   as the same weight of "primary route" the PDF card gives a designer. */
.mc-kb-v2 [data-mc-kb-walkin-intake] > * + * { margin-top: 24px; }
.mc-kb-v2 [data-mc-kb-walkin-rav-card] {
  border: 1px dashed var(--mc-rule); padding: clamp(20px, 5vw, 40px); background: var(--mc-paper-2);
  display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
}
.mc-kb-v2 [data-mc-kb-walkin-rav-card] > * { margin: 0; }
.mc-kb-v2 [data-mc-kb-walkin-rav-card] .mc-kb-field { width: 100%; }
.mc-kb-v2 [data-mc-kb-pdf-card] { border: 1px dashed var(--mc-rule); padding: clamp(20px, 5vw, 40px); background: var(--mc-paper-2); display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.mc-kb-v2 [data-mc-kb-pdf-kicker] { font-size: 18px; text-transform: none; letter-spacing: 0; }
.mc-kb-v2 .mc-kb-drop { width: 100%; border: 1px solid var(--mc-rule); background: var(--mc-paper); padding: 14px 16px; }
.mc-kb-v2 .mc-kb-rights { display: flex; gap: 12px; align-items: flex-start; }
.mc-kb-v2 .mc-kb-rights input { width: 22px; height: 22px; flex: none; }
.mc-kb-v2 .mc-kb-intake-manual { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; }
.mc-kb-v2 button, .mc-kb-v2 .mc-kb-drop__pick, .mc-kb-v2 summary, .mc-kb-v2 input:not([type=checkbox]):not([type=hidden]), .mc-kb-v2 select { min-height: var(--mc-tap); }
.mc-kb-v2 .mc-v2-primary { padding: 12px 22px; border: 1px solid var(--mc-ink); color: var(--mc-paper); background: var(--mc-ink); font: inherit; cursor: pointer; }
.mc-kb-v2 .mc-v2-primary:hover { background: var(--mc-ink-soft); color: var(--mc-paper); }
.mc-kb-v2 .mc-v2-link { background: transparent; color: var(--mc-ink); border: 0; padding: 8px 0; text-decoration: underline; text-underline-offset: 4px; font: inherit; cursor: pointer; }
.mc-kb-v2 :focus-visible { outline: 2px solid var(--mc-ink); outline-offset: 4px; }
.mc-kb-v2 .mc-v2-hint { font-size: 14px; line-height: 1.55; color: var(--mc-ink-mute); }
.mc-kb-page.mc-kb-v2 .mc-v2-error { color: var(--mc-error); font-size: 14px; text-transform: none; letter-spacing: normal; }
.mc-kb-v2 .mc-kb-stepnav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 28px 0 8px; border: 0; }
.mc-kb-v2 .mc-kb-stepnav__tab { border: 0; border-top: 4px solid var(--mc-rule); border-radius: 0; justify-content: flex-start; text-align: left; padding: 8px 0; background: transparent; color: var(--mc-ink-mute); font-size: 14px; white-space: normal; }
.mc-kb-v2 .mc-kb-stepnav__tab.is-active, .mc-kb-v2 .mc-kb-stepnav__tab.is-complete { border-top-color: var(--mc-ink); color: var(--mc-ink); }
.mc-kb-v2 .mc-kb-step-panel { max-width: 960px; margin-top: 36px; }
.mc-kb-v2 .mc-kb-step-foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; padding: 24px 0; }
.mc-kb-v2 .mc-kb-step-foot > [data-mc-v2-blocked] { flex-basis: 100%; }
.mc-kb-v2 .mc-v2-opening { display: flex; gap: 12px; margin-bottom: 10px; }
.mc-kb-v2 [data-mc-v2-verification] { margin-top: 24px; }
.mc-kb-v2:not([data-mc-kb-phase="form"]) [data-mc-v2-verification] > :not([data-mc-kb-turnstile]):not([data-mc-kb-turnstile-status]):not([data-mc-kb-turnstile-retry]) { display: none; }
.mc-kb-v2 [data-mc-kb-turnstile]:empty { display: block; }
@media (max-width: 600px) { .mc-kb-v2 .mc-kb-stepnav__tab { font-size: 12px; } .mc-kb-v2 .mc-v2-header > div { width: 100%; justify-content: space-between; } }
.mc-kb-v2 .mc-kb-stepnav__sep { display: none; }

.mc-kb-v2 .mc-v2-basics { display: flex; flex-direction: column; gap: 24px; }
.mc-kb-v2 .mc-v2-basics h1 { font-size: clamp(34px, 4vw, 44px); margin: 0; }
.mc-kb-v2 .mc-v2-basics h2 { font-size: 28px; margin: 0; }
.mc-kb-v2 .mc-v2-sub { color: var(--mc-ink-mute); font-size: 17px; line-height: 1.6; margin: 0 0 8px; }
.mc-kb-v2 .mc-v2-list-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; align-items: baseline; }
.mc-kb-v2 .mc-v2-rows { border-top: 1px solid var(--mc-rule-soft); }
.mc-kb-v2 .mc-v2-row { padding: 12px 0; border-bottom: 1px solid var(--mc-rule-soft); }
.mc-kb-v2 .mc-v2-row-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 24px; }
.mc-kb-v2 .mc-v2-row-label { flex: 0 0 170px; font-size: 14px; color: var(--mc-ink-mute); }
.mc-kb-v2 .mc-v2-row-value { flex: 1 1 320px; font-weight: 500; overflow-wrap: anywhere; }
.mc-kb-v2 .mc-v2-row [data-mc-v2-source], .mc-kb-v2 .mc-v2-row [data-mc-v2-check] { margin: 4px 0 0 194px; }
.mc-kb-v2 .mc-v2-check { color: var(--mc-error); font-size: 14px; }
.mc-kb-v2 .mc-v2-editor { padding-top: 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; }
.mc-kb-v2 .mc-v2-editor > .mc-kb-field, .mc-kb-v2 .mc-v2-editor > details { min-width: 0; margin: 0; }
.mc-kb-v2 .mc-v2-editor > details { border: 0; padding: 0; }
.mc-kb-v2 .mc-v2-editor > details > summary { display: none; }
/* Keep Done in the control's column even on a phone. Nested disclosures
   must not add their old bottom padding below the control. */
.mc-kb-v2 .mc-v2-editor > details > .mc-kb-field { margin: 0; padding: 0; min-width: 0; }
.mc-kb-page.mc-kb-v2 .mc-v2-editor > .m26-btn { margin: 0; min-height: 52px; }
.mc-kb-page.mc-kb-v2 .mc-v2-editor :is(.mc-kb-seg-row, .mc-kb-construction-chips) { flex-wrap: wrap; gap: 12px; }
.mc-kb-page.mc-kb-v2 .mc-v2-editor :is(.mc-kb-seg-row > label, .mc-kb-toggle-chip) { min-height: 52px; font-size: 16px; }
.mc-kb-page.mc-kb-v2 .mc-v2-editor .mc-kb-chip-add { min-width: 0; gap: 12px; margin-top: 12px; }
.mc-kb-page.mc-kb-v2 .mc-v2-editor .mc-kb-chip-add input { min-width: 0; border-right: 1px solid var(--mc-rule); }
.mc-kb-page.mc-kb-v2 .mc-v2-editor .mc-kb-chip-add button { min-height: 52px; }
/* Put explanatory text before the group so Done ends beside its last
   control, in both numeric and free-text gauge modes. */
.mc-kb-page.mc-kb-v2 .mc-v2-editor > details > .mc-kb-field > .mc-kb-hint { order: -1; margin: 0 0 12px; }
.mc-kb-page.mc-kb-v2 .mc-v2-editor .mc-kb-gauge-row { margin-bottom: 0; }
.mc-kb-page.mc-kb-v2 .mc-v2-editor :is(.mc-kb-hint, .mc-kb-gauge-row em, .mc-kb-field > span) { font-size: 16px; color: var(--mc-ink-mute); }
.mc-kb-page.mc-kb-v2 .mc-v2-editor :is(p, small, span, label, em) { font-size: 16px; }
/* S11: compound fields occupy one control column; Done always occupies the
   action column. Reuse the editor's 12px rhythm and existing 280px input cap. */
.mc-kb-v2 .mc-v2-type-fields { min-width: 0; display: grid; gap: 12px; }
.mc-kb-v2 .mc-v2-type-fields > .mc-kb-field { margin: 0; }
.mc-kb-v2 .mc-v2-type-fields select { width: 100%; max-width: 280px; }
.mc-kb-page.mc-kb-v2 .mc-v2-editor > [data-mc-v2-done] { grid-column: 2; justify-self: end; width: auto; }
/* The hidden native checkbox is positioned relative to its own pill. Its
   focus treatment stays inside that pill, including after a pointer click. */
.mc-kb-page.mc-kb-v2 .mc-kb-seg-row > label { position: relative; overflow: hidden; }
.mc-kb-page.mc-kb-v2 .mc-kb-seg-row > label:focus-within { outline-offset: -3px; }
.mc-kb-page.mc-kb-v2 .mc-kb-seg-row > label:has(input:checked):focus-within { outline-color: var(--mc-paper); }
/* The provenance stripe belongs to legacy fields, not the v2 needle editor. */
.mc-kb-page.mc-kb-v2 [data-mc-kb-needles-wrap] { border-left: 0; padding: 0; gap: 12px; }
.mc-kb-v2 :is(.mc-kb-needle-types, .mc-kb-needle-sizes, .mc-kb-lang-chips, .mc-kb-alsotypes__chips) { gap: 12px; }
.mc-kb-v2 :is(.mc-kb-needle-types, .mc-kb-needle-groups, .mc-kb-needle-list) { margin: 0; }
.mc-kb-v2 .mc-kb-needle-group { padding: 16px; }
.mc-kb-v2 .mc-kb-needle-list { gap: 12px; }
.mc-kb-v2 .mc-kb-needle-row { flex-direction: row; align-items: center; gap: 12px; }
.mc-kb-v2 .mc-kb-needle-row__head { flex: 1 1 280px; flex-wrap: wrap; gap: 12px; }
.mc-kb-v2 .mc-kb-needle-row__mm { flex: 1 1 92px; min-width: 0; }
.mc-kb-v2 .mc-kb-needle-lens { padding: 0; gap: 12px; }
.mc-kb-page.mc-kb-v2 .mc-kb-chip-add > button { flex: 0 0 auto; white-space: nowrap; }
.mc-kb-v2 .mc-kb-constr-chip { flex-wrap: wrap; max-width: 100%; gap: 12px; }
.mc-kb-v2 .mc-kb-constr-chip > [data-mc-kb-prov] { flex-basis: 100%; }
@media (max-width: 600px) {
  .mc-kb-v2 .mc-kb-needle-row__mm { flex-basis: 100%; }
}
.mc-kb-page.mc-kb-v2 button.mc-kb-toggle-chip.mc-kb-lang-chip { gap: 12px; padding: 10px 18px; }
/* Link-arrow's site-wide expanding gap moves this control outside its box. */
.mc-kb-page.mc-kb-v2 .mc-link-arrow,
.mc-kb-page.mc-kb-v2 .mc-link-arrow:hover { gap: 8px; }
.mc-kb-v2 .mc-v2-basics > [data-mc-kb-fold] { margin-top: 8px; border: 0; padding: 0; }
.mc-kb-v2 .mc-v2-basics > details > summary { font-family: var(--mc-sans); font-size: 16px; font-weight: 500; }
.mc-kb-v2 .mc-v2-basics textarea { min-height: 110px; font-size: 16px; padding: 12px 14px; border: 1px solid var(--mc-rule); }
.mc-kb-v2 .mc-v2-basics [data-mc-kb-notes] { min-height: 150px; }
.mc-kb-v2 [aria-invalid="true"] { border-color: var(--mc-error); }
.mc-kb-v2 .mc-v2-basics .mc-kb-field { text-transform: none; letter-spacing: 0; }
.mc-kb-v2 .mc-kb-lang-file { padding: 8px 16px; border: 1px solid var(--mc-rule); background: var(--mc-paper); gap: 4px 16px; }
@media (max-width: 600px) {
  .mc-kb-v2 .mc-v2-row-label { flex-basis: calc(100% - 80px); }
  .mc-kb-v2 .mc-v2-row-value { flex-basis: calc(100% - 80px); }
  .mc-kb-v2 .mc-v2-row [data-mc-v2-source], .mc-kb-v2 .mc-v2-row [data-mc-v2-check] { margin-left: 0; }
}

/* Shared M26 tab pills use !important; scope these overrides to the v2 bars. */
.mc-kb-v2 .mc-kb-stepnav__tab {
  border: 0 !important; border-top: 4px solid var(--mc-rule) !important;
  border-radius: 0 !important; padding: 10px 0 !important; gap: 6px !important;
  background: transparent !important; color: var(--mc-ink-mute) !important;
  letter-spacing: 0 !important; min-width: 0; align-self: stretch;
}
.mc-kb-v2 .mc-kb-stepnav__tab.is-active,
.mc-kb-v2 .mc-kb-stepnav__tab.is-complete:not(.is-active) {
  border-color: var(--mc-ink) !important; color: var(--mc-ink) !important;
}
.mc-kb-v2 .mc-kb-stepnav { align-items: stretch; overflow: visible; padding-bottom: 0; }
.mc-kb-v2 .mc-kb-stepnav__tab > span:first-child { overflow-wrap: normal; }
.mc-kb-v2 .mc-kb-step-panel { width: 100%; }
.mc-kb-v2 [data-mc-kb-pdf-kicker], .mc-kb-v2 [data-mc-kb-pdf-sub] { display: none; }
.mc-kb-v2:not(.mc-v2-has-file) .mc-kb-drop { border: 0; background: none; padding: 0; text-align: left; }
.mc-kb-v2 .mc-kb-drop__name { overflow-wrap: anywhere; font-family: var(--mc-sans); font-size: 18px; }
.mc-kb-v2 .mc-kb-drop__meta { font-size: 14px; color: var(--mc-ink-mute); }
.mc-kb-v2 .mc-kb-drop__pick { display: inline-flex; align-items: center; border: 1px solid var(--mc-rule); padding: 10px 18px; }
.mc-kb-v2:not(.mc-v2-has-file) [data-mc-kb-rights-wrap],
.mc-kb-v2:not(.mc-v2-has-file) [data-mc-kb-analyze-go] { display: none; }
.mc-kb-v2 [data-mc-kb-pdf-card] > * { margin: 0; }
.mc-kb-v2 .mc-kb-intake-manual { border: 0; padding: 0; }
.mc-kb-v2 .mc-kb-intake-manual button { font-size: 15px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.mc-kb-v2 .mc-kb-disclose { width: 100%; font-size: 13px; }
.mc-kb-v2 .mc-kb-step-foot { justify-content: space-between; }
.mc-kb-v2 .mc-kb-step-foot > [data-mc-v2-blocked]:empty { display: none; }
.mc-kb-v2 .mc-kb-restored, .mc-kb-v2 .mc-kb-reading-receipt { margin-top: 20px; }
.mc-kb-v2 .mc-kb-block { padding: 20px 24px; }
.mc-kb-v2 .mc-kb-specs-section:has(.mc-kb-specs:empty) { display: none; }
.mc-kb-v2 [data-mc-v2-ravelry-screen] > * + * { margin-top: 20px; }
@media (max-width: 600px) {
  /* Two readable columns leave room for complete translated step words. */
  .mc-kb-v2 .mc-kb-stepnav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mc-kb-v2 .mc-kb-stepnav__tab { font-size: 12px !important; gap: 3px !important; }
  .mc-kb-v2 .mc-kb-block { padding: 16px; }
  .mc-kb-v2 .mc-kb-step-foot > * { order: initial; }
}
.mc-kb-v2 .mc-kb-step-foot { flex-direction: row; }
.mc-kb-v2 .mc-kb-specs-section { display: none; }

/* K3: engine-owned cards, editable size chips and a shared measurement grid. */
.mc-kb-v2 .mc-v2-yarn-step { max-width: none; }
.mc-kb-v2 .mc-v2-yarn-step > * + * { margin-top: 36px; }
.mc-kb-v2 .mc-v2-step-heading h1 { font-size: 42px; margin: 0 0 8px; }
.mc-kb-v2 .mc-v2-step-heading p { margin: 0; max-width: 68ch; }
.mc-kb-v2 .mc-v2-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; }
.mc-kb-v2 .mc-v2-section-head h2, .mc-kb-v2 .mc-v2-warning h2 { font-size: 28px; margin: 0; }
.mc-kb-v2 .mc-v2-size-row, .mc-kb-v2 .mc-v2-add-yarns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.mc-kb-v2 .mc-v2-size-row { margin-top: 10px; }
.mc-kb-v2 .mc-kb-sizes { gap: 10px; margin: 0; }
.mc-kb-v2 .mc-kb-size { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0 0 16px; border: 1px solid var(--mc-rule); border-radius: 999px; background: var(--mc-paper); font-size: 16px; }
.mc-kb-v2 .mc-kb-size button { min-width: 44px; padding: 0; border: 0; background: transparent; color: var(--mc-ink-mute); font-size: 18px; }
.mc-kb-v2 .mc-kb-size-add { margin: 0; gap: 8px; }
.mc-kb-v2 .mc-kb-size-add input { flex: none; width: 120px; border: 1px solid var(--mc-rule); border-radius: 2px; background: var(--mc-paper); }
.mc-kb-page.mc-kb-v2 .mc-v2-ghost { padding: 10px 18px; min-height: 44px; border: 1px solid var(--mc-rule); border-radius: 2px; background: transparent; color: var(--mc-ink); font: inherit; cursor: pointer; }
.mc-kb-v2 .mc-v2-pill { padding: 10px 20px; min-height: 44px; border: 1px solid var(--mc-rule); border-radius: 999px; background: var(--mc-paper); color: var(--mc-ink); font: inherit; cursor: pointer; }
.mc-kb-v2 .mc-v2-yarn-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; }
.mc-kb-v2 .mc-kb-yarns-section { border: 0; padding: 0; }
.mc-kb-v2 .mc-kb-items { display: flex; flex-direction: column; gap: 24px; }
.mc-kb-v2 .mc-v2-yarn-card { min-width: 0; padding: clamp(16px, 3vw, 24px); border: 1px solid var(--mc-rule); background: var(--mc-paper); display: flex; flex-direction: column; gap: 16px; }
.mc-kb-v2 .mc-v2-amount-scroll { overflow-x: scroll; padding: 6px 6px 20px; scrollbar-gutter: stable; }
.mc-kb-v2 .mc-v2-amounts { display: grid; grid-template-columns: repeat(var(--mc-v2-sizes), minmax(96px, 1fr)); gap: 12px; }
.mc-kb-v2 .mc-kb-qty-col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mc-kb-v2 .mc-v2-qty-size { font-size: 14px; font-weight: 600; }
.mc-kb-v2 .mc-v2-grams-input { display: flex; align-items: center; gap: 6px; }
.mc-kb-v2 .mc-v2-grams-input input { min-width: 0; width: 100%; padding: 12px 14px; font: inherit; background: var(--mc-paper); border: 1px solid var(--mc-rule); border-radius: 2px; }
.mc-kb-v2 .mc-v2-grams-input input[aria-invalid="true"] { border-color: var(--mc-error); }
.mc-kb-v2 .mc-v2-grams-input input:focus-visible { outline: 2px solid var(--mc-ink); outline-offset: 2px; }
.mc-kb-v2 .mc-v2-warning { padding: 16px 20px; border: 1px solid var(--mc-flag-mark); background: var(--mc-flag-tint); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.mc-kb-v2 .mc-v2-warning p { margin: 0; }
.mc-kb-v2 .mc-v2-warning > span { flex: 1 1 360px; }
.mc-kb-v2 [data-mc-v2-add-yarns] { margin-top: 24px; }
.mc-kb-v2 .mc-v2-extra-yarn { margin-top: 16px; }
.mc-kb-v2 .mc-v2-yarn-details summary, .mc-kb-v2 .mc-v2-extra-yarn summary { font-size: 14px; color: var(--mc-ink-mute); cursor: pointer; min-height: 32px; }
.mc-kb-v2 .mc-v2-yarn-details label { display: block; max-width: 420px; }
.mc-kb-v2 .mc-v2-yarn-details input { display: block; width: 100%; margin-bottom: 12px; }
.mc-kb-v2 .mc-v2-measurements { border: 0; border-radius: 0; padding: 0; background: transparent; }
.mc-kb-v2 .mc-v2-measurements > summary { font: 400 28px/1.2 var(--mc-serif); color: var(--mc-ink); padding: 0; }
.mc-kb-v2 .mc-v2-measurements .mc-kb-fits { padding: 0; }
.mc-kb-v2 .mc-v2-measurements .mc-kb-meas-head { margin-bottom: 12px; }
.mc-kb-v2 .mc-v2-measurements .mc-kb-meas-table { display: block; min-width: calc(212px + var(--mc-meas-cols) * 100px); border: 0; background: transparent; }
.mc-kb-v2 .mc-v2-measurements .mc-kb-meas-thead,
.mc-kb-v2 .mc-v2-measurements .mc-kb-meas-tr { display: grid; grid-template-columns: 200px repeat(var(--mc-meas-cols), minmax(88px, 1fr)); gap: 12px; padding: 0; margin: 0 0 10px; border: 0; background: transparent; align-items: center; }
.mc-kb-v2 .mc-v2-measurements .mc-kb-meas-th { position: relative; left: auto; display: block; padding: 0 30px 0 0; min-width: 0; background: var(--mc-paper); border: 0; }
.mc-kb-v2 .mc-v2-measurements .mc-kb-meas-label { background: transparent; padding: 4px 0; min-height: 44px; height: auto; width: 100%; font-size: 16px; line-height: 1.4; border: 0; resize: none; }
.mc-kb-v2 .mc-v2-measurements .mc-kb-meas-td { padding: 0; display: block; border: 0; min-width: 0; }
.mc-kb-v2 .mc-v2-measurements .mc-kb-meas-td__sz { display: none; }
.mc-kb-v2 .mc-v2-measurements .mc-kb-meas-td__in input { min-width: 0; width: 100%; padding: 12px; font-size: 16px; background: var(--mc-paper); }
.mc-kb-v2 .mc-v2-measurements .mc-kb-meas-szh { padding: 0; text-align: left; }
.mc-kb-v2 .mc-v2-measurements .mc-kb-meas-rm { position: absolute; right: 0; top: 0; width: 28px; }
.mc-kb-v2 .mc-v2-measurements .mc-kb-meas-wrap { border: 0; }
.mc-kb-v2 .mc-v2-measurements .mc-v2-warning { margin-top: 12px; }
.mc-kb-v2 .mc-v2-forward { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; max-width: 100%; }
.mc-kb-v2 .mc-v2-forward p { margin: 0; }
.mc-kb-v2 .mc-v2-forward button { white-space: normal; }
.mc-kb-v2 [data-mc-kb-slotnav] { display: none; }
.mc-kb-v2 .mc-v2-measurements .mc-kb-meas-scroll { overflow-x: auto; overflow-y: hidden; }
.mc-kb-v2 .mc-v2-measurements .mc-kb-fits { border: 0; background: transparent; }
.mc-kb-page.mc-kb-v2 .mc-v2-measurements .mc-kb-fold-flag { font: 400 13px/1.4 var(--mc-sans); vertical-align: middle; }
.mc-kb-v2 .mc-v2-amounts .mc-kb-qty-col { border: 0; padding: 0; text-align: left; }
.mc-kb-v2 .mc-v2-yarn-step .mc-kb-size { font-family: var(--mc-sans); }
.mc-kb-v2 .mc-v2-measurements .mc-kb-meas-add { max-width: 500px; }
/* The dot legend already explains provenance; its legacy heading label is redundant. */
.mc-kb-v2 .mc-kb-prov-legend > .mc-kb-fromdoc-label { display: none; }

/* R1: sources live beside their values; successful reads need no receipt. */
.mc-kb-v2 [data-mc-kb-reading-receipt],
.mc-kb-v2 [data-mc-kb-obs-wrap],
.mc-kb-v2 [data-mc-kb-prov-legend],
.mc-kb-v2 [data-mc-kb-partner-wrap],
.mc-kb-v2 [data-mc-kb-fold-flag],
.mc-kb-v2 [data-mc-kb-desc-approval],
.mc-kb-v2 [data-mc-kb-descdraft],
.mc-kb-v2 .mc-kb-lang-lede,
.mc-kb-v2 .mc-kb-lang-foot,
.mc-kb-v2 .mc-kb-lang-locked { display: none !important; }
.mc-kb-v2 .mc-kb-label { text-transform: none; letter-spacing: 0; font-size: 16px; font-weight: 500; }
.mc-kb-v2 .mc-kb-size { gap: 2px; }
.mc-kb-v2 .mc-kb-size button { margin-left: 0; }
.mc-kb-v2 .mc-v2-check { display: block; color: var(--mc-warning, #81571e); font-size: 13px; font-weight: 400; line-height: 1.5; }
.mc-kb-v2 .mc-v2-check-text { margin: 0; }
.mc-kb-v2 [data-mc-v2-observation], .mc-kb-v2 .mc-kb-qty-review { margin-block: 12px; }
.mc-kb-v2 .mc-v2-check-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.mc-kb-page.mc-kb-v2 .mc-v2-check-actions > button { min-width: 0; height: 100%; padding: 10px 8px; overflow-wrap: anywhere; }
.mc-kb-v2 .mc-v2-choice { display: flex; flex-direction: column; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.mc-kb-v2 .mc-v2-choice p { margin: 0; }
.mc-kb-v2 .mc-v2-choice strong { display: block; font-weight: 500; }
.mc-kb-v2 .mc-v2-choice > button { margin-top: auto; width: 100%; }
.mc-kb-v2 .mc-v2-choice-source { font-size: 12px; }
.mc-kb-v2 .mc-v2-measurements .mc-v2-check-actions { grid-template-columns: minmax(0, 1fr); }
.mc-kb-page.mc-kb-v2 .mc-v2-check > button { display: flex; margin-top: 12px; padding: 10px 18px; min-height: 44px; border: 1px solid var(--mc-rule); border-radius: 2px; background: transparent; color: var(--mc-ink); text-decoration: none; }
.mc-kb-v2 [data-mc-v2-measurement-warning] { display: flex; flex-direction: column; gap: 12px; }
.mc-kb-v2 .mc-kb-reset-confirm:not([hidden]) { display: block; flex-basis: 100%; margin-top: 12px; }
.mc-kb-v2 .mc-kb-restored:has(> .mc-kb-reset-confirm:not([hidden])) { flex-wrap: wrap; }
.mc-kb-v2 .mc-kb-reset-question { display: block; color: var(--mc-ink); }
.mc-kb-v2 [data-mc-v2-quick-check] { margin-top: 8px; color: var(--mc-warning, #81571e); }
.mc-kb-v2 [data-mc-kb-tab].is-visited { text-decoration: underline; text-underline-offset: 4px; }
.mc-kb-v2 [data-mc-kb-tab][aria-selected="true"] { font-weight: 600 !important; text-decoration: none; }
.mc-kb-v2 [data-mc-kb-fold="notes"] summary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }
.mc-kb-v2 [data-mc-kb-fold="notes"] summary .mc-v2-hint { font-weight: 400; }
.mc-kb-v2 [data-mc-v2-read-again-home] { margin: 8px 0; }
.mc-kb-v2 [data-mc-kb-lang-file] { background: transparent; border: 0; border-bottom: 1px solid var(--mc-rule-soft); padding: 12px 0; }
.mc-kb-v2 [data-mc-kb-obs] { display: none !important; }
.mc-kb-v2 [data-mc-v2-quick-check] { align-self: flex-start; text-align: left; margin-top: -16px; -webkit-user-select: text; user-select: text; }
.mc-kb-v2 .mc-kb-block:has(> [data-mc-kb-prov-legend]) { background: transparent; border: 0; padding: 0; }
.mc-kb-v2 .mc-kb-block:has(> [data-mc-kb-prov-legend]) > .mc-kb-grid-2 { gap: 16px; }
.mc-kb-v2[data-mc-kb-segment="approved"] .mc-kb-block:has(> [data-mc-kb-prov-legend]) { display: none; }
.mc-kb-v2 [data-mc-v2-observation] button { font: inherit; text-transform: none; letter-spacing: 0; }
@media (max-width: 600px) {
  .mc-kb-v2 .mc-v2-row-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .mc-kb-v2 .mc-v2-row-label { grid-column: 1; }
  .mc-kb-v2 .mc-v2-row-value { grid-column: 1; }
  .mc-kb-v2 .mc-v2-row-line > button { grid-column: 2; grid-row: 1 / 3; }
}

/* K4: real product shades and the stable shared upload mount. */
.mc-kb-v2 .mc-v2-palette { margin: 28px 0; }
.mc-kb-v2 .mc-v2-palette h2, .mc-kb-v2 .mc-v2-photo-heading { font: 500 18px/1.4 var(--mc-sans); letter-spacing: 0; margin: 0; }
.mc-kb-v2 .mc-v2-swatches { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; align-items: center; }
.mc-kb-v2 .mc-v2-swatch { display: inline-flex; align-items: center; gap: 10px; background: var(--mc-paper); border: 1px solid var(--mc-rule); border-radius: 2px; padding: 9px 14px; font: inherit; cursor: pointer; }
.mc-kb-v2 .mc-v2-swatch[aria-pressed="true"] { border: 2px solid var(--mc-ink); padding: 8px 13px; background: var(--mc-paper-2); }
/* Dim only the colour image; keep the disabled label above the text contrast floor. */
.mc-kb-page.mc-kb-v2 .mc-v2-swatch[disabled] { opacity: 1; color: var(--mc-ink-mute); background: var(--mc-paper-3); cursor: not-allowed; }
.mc-kb-page.mc-kb-v2 .mc-v2-swatch[disabled] .mc-v2-swatch-image { opacity: .45; }
.mc-kb-v2 .mc-v2-swatch-image { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; overflow: hidden; border: 1px solid var(--mc-rule); flex: none; }
.mc-kb-v2 .mc-v2-swatch-image img { width: 100%; height: 100%; object-fit: cover; }
.mc-kb-v2 :is(.mc-v2-checkbox, .mc-kb-confirm__accept) { display: flex; align-items: flex-start; gap: 12px; margin: 28px 0; font-size: 16px; }
.mc-kb-v2 :is(.mc-v2-checkbox, .mc-kb-confirm__accept) input { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--mc-ink); }
.mc-kb-v2 .mc-v2-checkbox .mc-v2-hint { display: block; margin-top: 4px; }
.mc-kb-v2 .mc-v2-sample { padding: 16px 20px; background: var(--mc-paper-2); border: 1px solid var(--mc-rule); }
.mc-kb-v2 [data-mc-v2-verification] { max-width: 960px; margin: 28px 0 0; }
.mc-kb-v2:not([data-mc-kb-active-step="03"]) [data-mc-v2-verification] > :not([data-mc-kb-turnstile]):not([data-mc-kb-image-hint]):not([data-mc-kb-image-error-detail]):not([data-mc-kb-image-retry]) { display: none; }
.mc-kb-v2:not([data-mc-kb-active-step="03"]) .mc-v2-colours-foot,
.mc-kb-v2:not([data-mc-kb-phase="form"]) .mc-v2-colours-foot { display: none; }
.mc-kb-v2:is([data-mc-kb-active-step="02"],[data-mc-kb-active-step="04"]) [data-mc-v2-verification] { display: none; }
.mc-kb-v2 .mc-v2-colours-foot { max-width: 960px; }
.mc-kb-v2 [data-mc-kb-image-list] { display: flex; flex-wrap: wrap; gap: 16px; list-style: none; padding: 0; margin: 12px 0; }
.mc-kb-v2 .mc-kb-img { position: relative; display: flex; flex-direction: column; width: 148px; padding: 0; border: 0; background: none; }
.mc-kb-v2 .mc-kb-img-thumb { width: 148px; height: 184px; object-fit: cover; border-radius: 0; }
.mc-kb-v2 .mc-kb-img-badge { position: absolute; top: 8px; left: 8px; background: var(--mc-ink); color: var(--mc-paper); padding: 3px 8px; font: 12px var(--mc-sans); }
.mc-kb-v2 .mc-kb-img-actions { display: flex; flex-direction: row; justify-content: flex-start; gap: 14px; }
.mc-kb-v2 .mc-kb-img-actions button { font-size: 14px; }
.mc-kb-v2 [data-mc-kb-image-add] { width: 148px; min-height: 56px; padding: 12px; border: 1px dashed var(--mc-ink-mute); background: var(--mc-paper); text-transform: none; letter-spacing: 0; font: inherit; }
.mc-kb-v2 [data-mc-kb-image-hint].is-error { color: var(--mc-error); display: block; margin: 12px 0; }
.mc-kb-v2 .mc-kb-img { height: auto; overflow: visible; border-radius: 0; }
.mc-kb-v2 .mc-kb-img-actions { position: static; padding: 0; background: transparent; }
.mc-kb-v2 .mc-kb-img-badge { border-radius: 0; letter-spacing: 0; text-transform: none; }

/* K5: one review surface and the existing segment-correct submission controls. */
.mc-kb-v2 .mc-v2-share-heading { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 28px; }
.mc-kb-v2 .mc-v2-share-heading .mc-v2-step-heading { flex: 1 1 440px; }
.mc-kb-v2 .mc-v2-share-heading h1 { font-size: clamp(34px, 4vw, 44px); }
.mc-kb-v2 .mc-v2-preview { display: flex; flex-wrap: wrap; gap: 24px; background: var(--mc-paper); border: 1px solid var(--mc-rule); padding: 24px; margin-bottom: 32px; }
.mc-kb-v2 .mc-v2-cover { flex: 0 0 200px; min-height: 240px; background: var(--mc-paper-2); display: grid; place-items: center; }
.mc-kb-v2 .mc-v2-cover img { width: 200px; height: 260px; object-fit: cover; }
.mc-kb-v2 .mc-v2-preview-copy { flex: 1 1 300px; min-width: 0; }
.mc-kb-v2 .mc-v2-preview-copy > * { margin: 0 0 10px; }
.mc-kb-v2 .mc-v2-preview-copy h2 { font-size: 34px; overflow-wrap: anywhere; }
.mc-kb-v2 .mc-v2-preview-price { font-size: 20px; font-weight: 500; }
.mc-kb-v2 [data-mc-v2-summary] { margin: 0 0 32px; border-top: 1px solid var(--mc-rule-soft); }
.mc-kb-v2 .mc-v2-summary-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 24px; padding: 12px 0; border-bottom: 1px solid var(--mc-rule-soft); }
.mc-kb-v2 .mc-v2-summary-row > :first-child { flex: 0 0 160px; }
.mc-kb-v2 .mc-v2-summary-row > :nth-child(2) { flex: 1 1 300px; overflow-wrap: anywhere; }
.mc-kb-v2 .mc-v2-price-scroll { overflow-x: auto; margin: 12px 0 28px; }
.mc-kb-v2 .mc-v2-price-table { width: 100%; border-collapse: collapse; font-size: 15px; box-shadow: none; }
.mc-kb-v2 .mc-v2-price-table th, .mc-kb-v2 .mc-v2-price-table td { padding: 12px 16px; min-width: 88px; text-align: left; border: 0; border-bottom: 1px solid var(--mc-rule-soft); white-space: nowrap; }
.mc-kb-v2 .mc-v2-price-table th:first-child { min-width: 190px; padding-left: 0; }
.mc-kb-v2 .mc-v2-price-table tbody th { font-weight: 400; }
.mc-kb-v2 .mc-v2-price-total { font-weight: 600; }
.mc-kb-v2 .mc-kb-share-catalogue { border: 0; background: none; padding: 0; }
.mc-kb-v2 .mc-kb-confirm { background: none; border: 0; padding: 0; }
.mc-kb-v2 .mc-kb-confirm > h4, .mc-kb-v2 .mc-kb-confirm > p.mc-kb-note { display: none; }
.mc-kb-v2 .mc-v2-confirm-details { margin: 12px 0; }
.mc-kb-v2 .mc-v2-confirm-details summary { font-size: 14px; color: var(--mc-ink-mute); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.mc-kb-v2 .mc-kb-confirm:has([data-mc-kb-confirm-range]) .mc-v2-confirm-details { border: 1px solid var(--mc-rule); padding: 12px; }
.mc-kb-v2 [data-mc-kb-publish], .mc-kb-v2 [data-mc-kb-walkin-submit],
.mc-kb-v2 [data-mc-kb-publish-form] > .mc-kb-note,
.mc-kb-v2 [data-mc-kb-publish-success], .mc-kb-v2 [data-mc-kb-walkin-success],
.mc-kb-v2 [data-mc-kb-walkin-status], .mc-kb-v2 .mc-v2-legacy-output { display: none !important; }
.mc-kb-v2.mc-v2-no-catalogue [data-mc-kb-walkin-form] { display: none; }
.mc-kb-v2 .mc-kb-share-publish { padding: 0; border: 0; background: transparent; }
.mc-kb-v2 .mc-kb-pdf-warn { margin: 12px 0; }
.mc-kb-v2 .mc-v2-done { max-width: 760px; }
.mc-kb-v2 .mc-v2-done h1 { font-size: 44px; }
.mc-kb-v2 .mc-v2-shared { background: var(--mc-paper-2); padding: 16px; border: 1px solid var(--mc-rule); }
.mc-kb-v2 .mc-v2-done li { margin: 10px 0; }
.mc-kb-v2 .mc-v2-done-link { display: block; max-width: 100%; overflow-wrap: anywhere; max-height: 5em; overflow-y: auto; font: 14px/1.6 var(--mc-sans); }
.mc-kb-v2 .mc-v2-done .mc-kb-share-primary { margin: 24px 0; padding: 20px; border: 1px solid var(--mc-rule); background: var(--mc-paper-2); }
.mc-kb-v2.mc-v2-is-done .mc-kb-stepnav, .mc-kb-v2.mc-v2-is-done [data-mc-v2-step-hint], .mc-kb-v2.mc-v2-is-done .mc-kb-reset-row { display: none; }
@media (max-width: 600px) {
  .mc-kb-v2 .mc-v2-preview { padding: 16px; }
  .mc-kb-v2 .mc-v2-cover { flex-basis: 100%; }
  .mc-kb-v2 .mc-v2-cover img { width: 100%; }
  .mc-kb-v2 .mc-v2-summary-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .mc-kb-v2 .mc-v2-summary-row > :first-child, .mc-kb-v2 .mc-v2-summary-row > :nth-child(2) { grid-column: 1; }
  .mc-kb-v2 .mc-v2-summary-row button { grid-column: 2; grid-row: 1 / 3; }
}

/* Final visual pass: checks stay on their cells and completion uses quiet links. */
.mc-kb-v2 [data-mc-kb-required-checklist], .mc-kb-v2 [data-mc-kb-draftnote] { display: none !important; }
.mc-kb-v2 [data-mc-v2-measurement-warning] { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.mc-kb-v2 [data-mc-v2-measurement-warning] button { font-size: 12px; white-space: normal; text-align: left; }
.mc-kb-v2 [data-mc-kb-qr-svg].mc-v2-qr-unavailable { width: auto; height: auto; aspect-ratio: auto; min-height: 0; border: 0; background: transparent; padding: 0; }
.mc-kb-v2.mc-v2-is-done [data-mc-kb-restored] { display: none; }
@media (max-width: 600px) {
  .mc-kb-v2 .mc-v2-done h1 { font-size: 34px; overflow-wrap: anywhere; }
}
/* K6: the tour uses view-only screen overrides, never the engine's phase or
   navigation commands. Removing this attribute reveals the exact prior UI. */
body.mc-v2-tour-running { overflow: hidden !important; }
body.mc-v2-tour-running [data-mc-v2-tour] { visibility: hidden; }
.mc-kb-page.mc-kb-v2[data-mc-tour-screen] :is(.mc-kb-step-panel, .mc-kb-intake, .mc-kb-stepnav, .mc-kb-report, .mc-kb-reset-row, [data-mc-v2-step-hint], [data-mc-v2-verification], [data-mc-v2-done-screen]) { display: none !important; }
.mc-kb-page.mc-kb-v2[data-mc-tour-screen="upload"] [data-mc-kb-intake],
.mc-kb-page.mc-kb-v2[data-mc-tour-screen="upload"] [data-mc-kb-intake-phase="intake"],
.mc-kb-page.mc-kb-v2[data-mc-tour-screen="01"] [data-mc-kb-step="01"],
.mc-kb-page.mc-kb-v2[data-mc-tour-screen="02"] [data-mc-kb-step="02"],
.mc-kb-page.mc-kb-v2[data-mc-tour-screen="03"] [data-mc-kb-step="03"],
.mc-kb-page.mc-kb-v2[data-mc-tour-screen="04"] [data-mc-kb-step="04"] { display: block !important; }
.mc-kb-page.mc-kb-v2[data-mc-tour-screen="upload"] [data-mc-kb-pdf-card] { display: flex !important; }
.mc-kb-v2[data-mc-tour-screen="upload"] :is([data-mc-kb-intake-phase]:not([data-mc-kb-intake-phase="intake"]), [data-mc-v2-ravelry-screen]) { display: none !important; }
.mc-kb-v2 [data-mc-tour-original] { display: none !important; }
.mc-tour-hole { position: fixed; z-index: 200; border-radius: 8px; pointer-events: none; box-shadow: 0 0 0 9999px color-mix(in srgb, var(--mc-ink) 72%, transparent); transition: top .35s ease, left .35s ease, width .35s ease, height .35s ease; }
.mc-tour-hole.mc-tour-off { width: 0 !important; height: 0 !important; transition: none; }
.mc-kb-v2 .mc-tour-hole, .mc-kb-v2 .mc-tour-block { display: block; }
.mc-tour-block { position: fixed; z-index: 199; background: transparent; }
.mc-kb-v2 .mc-tour-box { --mc-tour-safe-bottom: env(safe-area-inset-bottom, 0px); position: fixed; z-index: 201; width: min(330px, calc(100vw - 24px)); padding: 22px; border: 1px solid var(--mc-rule); border-top: 3px solid var(--mc-ink); background: var(--mc-paper); color: var(--mc-ink); box-shadow: 0 8px 32px color-mix(in srgb, var(--mc-ink) 18%, transparent); font: 16px/1.55 var(--mc-sans); overflow-y: auto; overscroll-behavior: contain; transition: top .35s ease, left .35s ease; }
.mc-kb-v2 .mc-tour-box h3 { font: 28px/1.15 var(--mc-serif); margin: 10px 0; }
.mc-kb-v2 .mc-tour-box p { margin: 0 0 16px; }
.mc-tour-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.mc-kb-v2 .mc-tour-buttons button { font-size: 14px; padding: 8px 12px; }
.mc-tour-buttons .mc-tour-skip { margin-left: auto; }
.mc-tour-pointer { position: fixed; z-index: 202; pointer-events: none; filter: drop-shadow(0 2px 5px color-mix(in srgb, var(--mc-ink) 45%, transparent)); transition: top 1s cubic-bezier(.4,0,.2,1), left 1s cubic-bezier(.4,0,.2,1); }
.mc-tour-pointer path { fill: var(--mc-paper-3); stroke: var(--mc-ink); }
.mc-tour-pointer.mc-tour-circling { animation: mc-tour-circle 1.8s cubic-bezier(.45,0,.55,1) 1; }
.mc-tour-pointer.mc-tour-pressing { transform: scale(.8); }
.mc-tour-click { position: fixed; z-index: 203; pointer-events: none; width: 40px; height: 40px; margin: -20px; color: var(--mc-ink); }
.mc-tour-click i { position: absolute; inset: 0; border: 2px solid currentColor; border-radius: 50%; animation: mc-tour-ring .62s ease-out forwards; }
.mc-tour-click i + i { animation-delay: .14s; }
.mc-tour-click svg { width: 40px; height: 40px; animation: mc-tour-lines .5s ease-out forwards; }
.mc-tour-click path { stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
.mc-tour-calling { animation: mc-tour-call 2.1s ease-in-out infinite; }
.mc-tour-confetti { position: fixed; inset: 0; z-index: 300; pointer-events: none; }
@keyframes mc-tour-circle { from { transform: rotate(0) translateX(var(--mc-tour-radius)) rotate(0); } to { transform: rotate(360deg) translateX(var(--mc-tour-radius)) rotate(-360deg); } }
@keyframes mc-tour-ring { from { transform: scale(.35); opacity: .95; } to { transform: scale(2.6); opacity: 0; } }
@keyframes mc-tour-lines { from { transform: scale(.45); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
@keyframes mc-tour-call { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--mc-ink) 30%, transparent); } }
@media (prefers-reduced-motion: reduce) {
  .mc-kb-v2 :is(.mc-tour-hole, .mc-tour-box, .mc-tour-pointer) { transition: none !important; }
  .mc-kb-v2 :is(.mc-tour-circling, .mc-tour-click i, .mc-tour-click svg, .mc-tour-calling) { animation: none !important; }
  .mc-kb-v2 .mc-tour-calling { box-shadow: 0 0 0 3px var(--mc-rule); }
}

/* K7: keyboard, touch and muted/disabled text retain the same legibility. */
.mc-kb-page.mc-kb-v2 { --mc-ink-fade: var(--mc-ink-mute); }
.mc-kb-page.mc-kb-v2 button,
.mc-kb-page.mc-kb-v2 summary,
.mc-kb-page.mc-kb-v2 a,
.mc-kb-page.mc-kb-v2 .mc-kb-drop__pick,
.mc-kb-page.mc-kb-v2 .mc-kb-lang-file__pick { min-width: 44px; min-height: 44px; }
.mc-kb-page.mc-kb-v2 button:disabled { opacity: 1; color: var(--mc-ink-mute); background: var(--mc-paper-2); border-color: var(--mc-rule); cursor: not-allowed; }
.mc-kb-page.mc-kb-v2 label:has(> input[type=checkbox]) { min-height: 44px; cursor: pointer; }
.mc-kb-page.mc-kb-v2 :is(input, select, textarea, button, summary, a):focus-visible,
.mc-kb-page.mc-kb-v2 label:has(> input[type=file]:focus-visible) { outline: 2px solid var(--mc-ink); outline-offset: 3px; }
.mc-kb-v2 .mc-kb-needle-row { flex-wrap: wrap; }
.mc-kb-v2 .mc-kb-needle-row__qty { height: auto; }
.mc-kb-v2 .mc-v2-measurements .mc-kb-meas-th { padding-right: 48px; }
.mc-kb-page.mc-kb-v2 .mc-kb-meas-rm { width: 44px; height: 44px; }
.mc-kb-v2 :is(.mc-kb-intake, .mc-kb-step-panel, .mc-v2-preview-copy, .mc-v2-summary-row) { min-width: 0; overflow-wrap: anywhere; }
.mc-kb-v2 input::placeholder, .mc-kb-v2 textarea::placeholder { color: var(--mc-ink-mute); opacity: 1; }
.mc-kb-v2 .mc-kb-intake h1 { font-size: clamp(36px, 5vw, 52px); }
.mc-kb-v2 [data-mc-v2-prices] { max-width: 100%; }
.mc-kb-v2 .mc-v2-photo-zoom { border: 0; padding: 0; background: transparent; cursor: zoom-in; }
.mc-kb-v2 .mc-v2-photo-zoom img { display: block; }
[data-mc-v2-lightbox] .mc-kb-lightbox-x { min-width: 44px; min-height: 44px; color: var(--mc-paper); background: var(--mc-ink); }
[data-mc-v2-lightbox] button:focus-visible { outline: 2px solid var(--mc-paper); outline-offset: 4px; }
/* Match the demo's sentence-case controls, including inherited engine buttons. */
.mc-kb-page.mc-kb-v2 button,
.mc-kb-page.mc-kb-v2 .m26-btn,
.mc-kb-page.mc-kb-v2 .mc-kb-textlink,
.mc-kb-page.mc-kb-v2 .mc-kb-share-ctas__preview { font-family: var(--mc-sans); font-size: 16px; font-weight: 400; letter-spacing: 0; text-transform: none; white-space: normal; }
.mc-kb-v2 .mc-v2-opening > span:first-child { flex: none; }
.mc-kb-v2 .mc-v2-done h2 { font-size: 28px; }
.mc-kb-page.mc-kb-v2 :is([data-mc-kb-intake-ravelry-go], [data-mc-kb-analyze-go], [data-mc-kb-err-retry]):not(:disabled),
.mc-kb-page.mc-kb-v2 a.mc-kb-share-ctas__preview { background: var(--mc-ink); color: var(--mc-paper) !important; padding: 12px 22px; border: 1px solid var(--mc-ink); text-decoration: none; }
.mc-kb-page.mc-kb-v2 [data-mc-kb-copy] { background: var(--mc-paper); color: var(--mc-ink); border: 1px solid var(--mc-rule); }

.mc-kb-v2 .mc-kb-filechip { flex-wrap: wrap; max-width: 100%; }
.mc-kb-v2 .mc-kb-filechip b { min-width: 0; overflow-wrap: anywhere; }

/* R2: visited bars record navigation; amber marks record unresolved checks. */
.mc-kb-page.mc-kb-v2 .mc-kb-stepnav__tab.is-visited { border-top-color: var(--mc-ink) !important; color: var(--mc-ink); }
.mc-kb-v2 .mc-v2-done-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
body.mc-v2-tour-running :is(#shopify-pc__banner, .shopify-pc__banner__dialog, #shopify-pc__prefs, [data-shopify-consent], #mc-cookie-banner) { z-index: 10000 !important; pointer-events: auto !important; }

/* Specificity must beat m26 even when the footer loads it a second time. Its
   form and tab declarations use !important, so these scoped counterparts do. */
.mc-kb-page.mc-kb-v2 :is(input[type=text], input[type=email], input[type=url], input[type=number], input[type=tel], select, textarea):not([type=hidden]) {
  border-radius: 2px !important; background: var(--mc-paper) !important;
  font: 16px/1.6 var(--mc-sans) !important; color: var(--mc-ink) !important;
}
.mc-kb-page.mc-kb-v2 :is(input, select, textarea):not([type=hidden]):focus,
.mc-kb-page.mc-kb-v2 :is(button, a, summary):focus-visible {
  outline: 2px solid var(--mc-ink) !important; outline-offset: 3px;
  box-shadow: none !important;
}
.mc-kb-page.mc-kb-v2 :is(input, select, textarea)[aria-invalid=true] { border-color: var(--mc-error) !important; }
.mc-kb-page.mc-kb-v2 :is(input, select, textarea):not([type=hidden]):focus { outline-offset: 0; }
.mc-kb-page.mc-kb-v2 .mc-kb-stepnav__tab,
.mc-kb-page.mc-kb-v2 .mc-kb-stepnav__tab:is(.is-active, .is-complete, .is-visited) {
  background: transparent !important; text-decoration: none; box-shadow: none;
}
.mc-kb-page.mc-kb-v2 .mc-kb-intake-manual button,
.mc-kb-page.mc-kb-v2 .mc-kb-intake-manual button:hover {
  display: inline-flex; align-items: center; padding: 8px 0; border: 0;
  background: transparent; color: var(--mc-ink); font: 15px/1.6 var(--mc-sans);
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
}
.mc-kb-page.mc-kb-v2 .mc-kb-disclose__more summary {
  display: inline-flex; align-items: center; padding: 8px 0; font-size: 14px;
  letter-spacing: normal; text-decoration: underline; text-decoration-color: currentColor;
  text-decoration-thickness: 1px; text-underline-offset: 4px;
}
.mc-kb-page.mc-kb-v2 .mc-tour-box:focus { outline: none; }
.mc-kb-page.mc-kb-v2.mc-v2-analysis-unavailable .mc-kb-drop__cta,
.mc-kb-page.mc-kb-v2.mc-v2-analysis-unavailable .mc-kb-drop__meta { display: none; }
.mc-kb-page.mc-kb-v2.mc-v2-analysis-unavailable .mc-kb-drop { cursor: default; }
.mc-kb-page.mc-kb-v2.mc-v2-analysis-unavailable [data-mc-kb-pdf-card] { border-style: solid; }
.mc-kb-page.mc-kb-v2 [data-mc-v2-analysis-unavailable] { font-size: 16px; color: var(--mc-ink-soft); order: 1; }
.mc-kb-page.mc-kb-v2.mc-v2-analysis-unavailable .mc-kb-disclose { order: 2; }
/* Keep the two Ravelry actions together, matching the guided entry demo. */
.mc-kb-page.mc-kb-v2 [data-mc-v2-ravelry-screen] { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 24px 12px; }
.mc-kb-page.mc-kb-v2 [data-mc-v2-ravelry-screen] > * { margin: 0; }
.mc-kb-page.mc-kb-v2 [data-mc-v2-ravelry-screen] > :not(button) { grid-column: 1 / -1; }
.mc-kb-page.mc-kb-v2 [data-mc-v2-ravelry-screen] > button { width: auto; justify-self: start; min-height: 52px; }
.mc-kb-page.mc-kb-v2 [data-mc-v2-ravelry-screen] [data-mc-v2-upload] { border: 0; padding: 12px 0; text-decoration: underline; }
.mc-kb-page.mc-kb-v2 #mc-kb-intake-rav-h { font-size: clamp(36px, 5vw, 42px); }
.mc-kb-page.mc-kb-v2 .mc-v2-done { display: flex; flex-direction: column; gap: 20px; }
.mc-kb-page.mc-kb-v2 .mc-v2-done .mc-kb-share-primary { margin: 4px 0; }
.mc-kb-page.mc-kb-v2 .mc-v2-done .mc-kb-step-foot { padding: 0; }

/* VQ2: every screen shares one centred column, including its navigation,
   restoration notice, upload controls and footer actions. Demo widths. */
.mc-kb-page.mc-kb-v2 .mc-kb-form { max-width: 960px; margin-inline: auto; }
.mc-kb-page.mc-kb-v2:not([data-mc-kb-phase="form"]) .mc-kb-form { max-width: 720px; }
.mc-kb-page.mc-kb-v2.mc-v2-is-done .mc-kb-form { max-width: 760px; }
.mc-kb-page.mc-kb-v2 :is(.mc-kb-step-panel, .mc-v2-colours-foot, [data-mc-v2-verification]) { max-width: 100%; }
.mc-kb-page.mc-kb-v2 .mc-kb-step-foot { border-top: 1px solid var(--mc-rule-soft); display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 24px; row-gap: 6px; align-items: start; }
.mc-kb-page.mc-kb-v2 .mc-kb-step-foot > [data-mc-v2-back] { grid-column: 1; grid-row: 1 / 3; justify-self: start; }
.mc-kb-page.mc-kb-v2 .mc-kb-step-foot > :is([data-mc-v2-continue], .mc-v2-forward, [data-mc-v2-blocked]) { grid-column: 2; justify-self: end; text-align: right; }
.mc-kb-page.mc-kb-v2 .mc-kb-step-foot > [data-mc-v2-blocked] { grid-row: 2; margin: 0; }
/* m26 is loaded late by the theme shell. Specificity keeps primary actions
   dark, including disabled actions, without repainting secondary controls. */
.mc-kb-page.mc-kb-v2 :is(.mc-v2-primary, [data-mc-kb-analyze-go], [data-mc-kb-intake-ravelry-go], [data-mc-kb-err-retry]) {
  background: var(--mc-ink); color: var(--mc-paper) !important; border: 1px solid var(--mc-ink); padding: 14px 24px; min-height: 52px; text-decoration: none;
}
.mc-kb-page.mc-kb-v2 :is(.mc-v2-primary, [data-mc-kb-analyze-go], [data-mc-kb-intake-ravelry-go], [data-mc-kb-err-retry]):is(:disabled, [aria-disabled="true"]) { opacity: .55; background: var(--mc-ink); color: var(--mc-paper) !important; border-color: var(--mc-ink); }
.mc-kb-page.mc-kb-v2 :is(.mc-v2-ghost, [data-mc-kb-size-add], [data-mc-kb-meas-add], [data-mc-v2-done], [data-mc-v2-edit-kit], [data-mc-v2-send-catalogue], [data-mc-v2-choose-another]) {
  display: inline-flex; align-items: center; justify-content: center; background: transparent; color: var(--mc-ink); border: 1px solid var(--mc-rule); padding: 10px 18px; min-height: 44px; text-decoration: none;
}
.mc-kb-page.mc-kb-v2 :is([data-mc-v2-back], [data-mc-v2-upload]) { display: inline-flex; align-items: center; background: transparent; border: 0; padding: 8px 0; color: var(--mc-ink); text-decoration: underline; text-underline-offset: 4px; min-height: 52px; }
.mc-kb-page.mc-kb-v2 .mc-v2-measurements .mc-kb-meas-table { min-width: calc(336px + var(--mc-meas-cols) * 100px); }
.mc-kb-page.mc-kb-v2 .mc-v2-measurements :is(.mc-kb-meas-thead, .mc-kb-meas-tr) { grid-template-columns: 280px repeat(var(--mc-meas-cols), minmax(88px, 1fr)) 44px; }
/* S11: keep Change beside the label instead of below a blank textarea line.
   Both controls retain their touch targets; long labels can still grow. */
.mc-kb-page.mc-kb-v2 .mc-v2-measurements .mc-kb-meas-th { padding: 0; background: transparent; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; }
/* Preserve the calm, borderless table. Change focuses the existing label;
   only its open editing container gains a paper tone and breathing room. */
.mc-kb-page.mc-kb-v2 .mc-v2-measurements textarea.mc-kb-meas-label { background: transparent !important; border: 0 !important; padding: 0; min-height: 52px; resize: none; }
.mc-kb-page.mc-kb-v2 .mc-v2-measurements textarea.mc-kb-meas-label:focus { outline: 2px solid var(--mc-ink) !important; outline-offset: 3px; }
.mc-kb-page.mc-kb-v2 .mc-v2-measurements .mc-kb-meas-th:focus-within { background: var(--mc-paper-2); padding: 12px; }
.mc-kb-page.mc-kb-v2 .mc-v2-measurements button { min-width: 44px; min-height: 44px; font-size: 16px; }
.mc-kb-page.mc-kb-v2 .mc-v2-measurements :is(.mc-v2-hint, .mc-kb-hint) { font-size: 16px; color: var(--mc-ink-mute); }
/* Leave room inside the scrollport for the label's outer focus ring:
   2px outline + 3px offset = 5px, which is the whole budget here, so a
   larger offset would clip against the scroller's hidden vertical axis. */
.mc-kb-page.mc-kb-v2 .mc-v2-measurements .mc-kb-meas-scroll { padding: 5px; }

/* The shared footer imprint otherwise makes this page 46px wider at 390px.
   Keep the correction local to builder v2 and let its text wrap naturally. */
body:has(.mc-kb-v2) .m26-site-foot .m26-imprint { max-width: 100%; }
body:has(.mc-kb-v2) .m26-site-foot .m26-imprint__text { white-space: normal; min-width: 0; }
.mc-kb-page.mc-kb-v2 [data-mc-v2-measurement-edit] { font-size: 16px; padding: 8px 12px; }
.mc-kb-page.mc-kb-v2 .mc-v2-measurements [data-mc-v2-measurement-edit] { grid-column: 2; grid-row: 1; }
.mc-kb-page.mc-kb-v2 .mc-v2-measurements .mc-kb-meas-th > :is(.mc-v2-hint, .mc-v2-error) { grid-column: 1 / -1; }
.mc-kb-page.mc-kb-v2 .mc-v2-measurements .mc-kb-meas-rm { position: static; justify-self: end; align-self: center; }
.mc-kb-page.mc-kb-v2 .mc-v2-measurements .mc-kb-meas-th > .mc-v2-hint { display: inline; margin-right: 12px; }
.mc-kb-page.mc-kb-v2 .mc-v2-measurements .mc-kb-meas-tr { padding-block: 12px; margin: 0; border-bottom: 1px solid var(--mc-rule-soft); }
.mc-kb-page.mc-kb-v2 .mc-v2-measurements .mc-kb-meas-head { display: none; }
.mc-kb-page.mc-kb-v2 .mc-v2-measurements .mc-kb-meas-corner { white-space: normal; padding: 0; }
.mc-kb-page.mc-kb-v2:not([data-mc-kb-active-step="03"]) .mc-v2-colours-foot,
.mc-kb-page.mc-kb-v2:not([data-mc-kb-phase="form"]) .mc-v2-colours-foot { display: none; }
.mc-kb-page.mc-kb-v2 .mc-v2-share-heading > .mc-v2-forward { flex: 1 1 260px; text-align: right; }
.mc-kb-page.mc-kb-v2 [data-mc-kb-image-add] { border-radius: 2px; border: 1px solid var(--mc-rule); background: transparent; min-height: 52px; }
.mc-kb-page.mc-kb-v2 .mc-kb-meas-add { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.mc-kb-page.mc-kb-v2 .mc-kb-meas-add input { flex: 1 1 180px; max-width: 280px; }
.mc-kb-page.mc-kb-v2 .mc-kb-meas-add button { flex: 0 0 auto; }

/* The desktop header clips Cart at laptop widths. Reuse its existing menu
   on this page until the full navigation fits, without hiding overflow. */
@media (min-width: 881px) and (max-width: 1100px) {
  body:has(.mc-kb-v2) .m26-site-nav .m26-nav-row { grid-template-columns: auto 1fr auto; gap: 16px; }
  body:has(.mc-kb-v2) .m26-site-nav .m26-nav-burger { display: inline-flex; }
  body:has(.mc-kb-v2) .m26-site-nav .m26-mobile-menu { display: flex !important; }
  body:has(.mc-kb-v2) .m26-site-nav .m26-nav-links,
  body:has(.mc-kb-v2) .m26-site-nav .m26-nav-utility a:not(.m26-nav-bag) { display: none; }
  body:has(.mc-kb-v2) .m26-site-nav .m26-nav-utility { gap: 8px; }
  body:has(.mc-kb-v2) .m26-site-nav .m26-nav-wordmark { align-items: flex-start; text-align: left; }
}

/* Only v2 opts into drawer availability. Keep status text fully readable. */
[data-mc-drawer] [data-colour-status]:not([data-colour-status="active"]) { cursor: not-allowed; }
[data-mc-drawer] [data-colour-status]:not([data-colour-status="active"]) .mc-pg-tile-swatch { opacity: .4; }
[data-mc-drawer-colour-status] { display: block; color: var(--mc-ink-mute); font-size: 16px; }
[data-mc-drawer-notice] { color: var(--mc-ink); font-size: 16px; margin: 16px 0; }
[data-mc-drawer] [data-colour-status] { opacity: 1; }
body:has(.mc-kb-v2) .mc-cdrawer[data-mc-drawer-mode="slot-swap"] .mc-pg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body:has(.mc-kb-v2) .mc-cdrawer[data-mc-drawer-mode="slot-swap"] :is(.mc-pg-name, .mc-pg-num) { display: block; font-size: 16px; white-space: normal; }
body:has(.mc-kb-v2) .mc-cdrawer[data-mc-drawer-mode="slot-swap"] .mc-pg-tile.is-current .mc-pg-tile-swatch { box-shadow: inset 0 0 0 2px var(--mc-ink); }
body:has(.mc-kb-v2) .mc-cdrawer[data-mc-drawer-mode="slot-swap"] .mc-pg-current-marker {
  position: absolute; top: 6px; right: 6px; padding: 3px 7px;
  background: var(--mc-ink); color: var(--mc-paper); font-size: 12px;
}
@media (max-width: 599px) {
  body:has(.mc-kb-v2) .mc-cdrawer[data-mc-drawer-mode="slot-swap"] .mc-pg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
}

/* Opt-in drawer choices; filter repaints must not revive retired identities. */
[data-mc-drawer] [data-mc-drawer-hidden] { display: none !important; }

/* Feedback 33/35/40: selected primary shades and one secondary editor/list.
   #e1dcd7 is MDS's 10% ink tint over beige; no design-token changes. */
.mc-kb-page.mc-kb-v2 .mc-v2-cw-surface { display: grid; grid-template-columns: 200px minmax(0,1fr); gap: 28px; padding: 28px; margin-top: 24px; border: 0; border-radius: 0; }
.mc-kb-page.mc-kb-v2 .mc-v2-cw-primary { background: #e1dcd7; }
.mc-kb-page.mc-kb-v2 .mc-v2-cw-secondary-surface { background: #e6d3c1; }
.mc-kb-v2 .mc-v2-cw-list { margin: 24px 0; }
/* D3 (2026-10-29 USER-QA): the added-colourways list is its own zone under
   Primary, not boxed like the two `.mc-v2-cw-surface` tones above it — it
   reads as a continuation of the page, not a third coloured panel. */
.mc-kb-v2 .mc-v2-cw-added { margin-top: 28px; }
.mc-kb-v2 [data-mc-v2-cw-status]:empty { display: none; }
/* Add's confirmation already shows once in the composer (.mc-v2-cw-confirm).
   The status line carries the same text for the screen-reader announcement
   (role=status/aria-live, D4) but must not double it visually, so on success
   it is clipped with the same offscreen technique as .mc-kb-sr rather than
   shown as a second checkmark block. Change/save (cw_saved) and errors never
   set data-success, so they keep the plain .mc-v2-hint text as before. */
.mc-kb-v2 [data-mc-v2-cw-status][data-success="true"] {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.mc-kb-page.mc-kb-v2 .mc-v2-cw-confirm {
  display: flex; align-items: center; gap: 14px; padding: 16px 20px; margin: 8px 0 0;
  background: var(--mc-paper-2); color: var(--mc-ink); font: 500 16px/1.5 var(--mc-sans);
}
.mc-kb-v2 .mc-v2-cw-confirm-mark {
  content: ''; display: block; width: 15px; height: 8px; flex: 0 0 15px;
  border-left: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(-45deg); margin-bottom: 5px;
}
.mc-kb-v2 .mc-v2-cw-confirm p { margin: 0; }
/* D4: the row the confirmation hands off to gets a brief, motion-free
   highlight under `prefers-reduced-motion: reduce` instead of the FLIP. */
.mc-kb-v2 .mc-v2-cw-row.mc-v2-cw-row--new { background: var(--mc-paper-2); transition: background-color 900ms ease-out; }
.mc-kb-v2 .mc-v2-cw-surface header h2, .mc-kb-v2 .mc-v2-cw-added header h2 { font: 400 26px/1.2 var(--mc-serif); margin: 8px 0; }
.mc-kb-v2 .mc-v2-cw-surface header p, .mc-kb-v2 .mc-v2-cw-added header p, .mc-kb-v2 .mc-v2-cw-empty-copy { font: 16px/1.6 var(--mc-sans); color: var(--mc-ink-soft); margin: 8px 0 0; }
.mc-kb-v2 .mc-v2-cw-eyebrow { font: 12px/1.5 var(--mc-sans); text-transform: uppercase; letter-spacing: .12em; }
.mc-kb-v2 .mc-v2-cw-primary .mc-v2-palette { border: 0; padding: 0; background: transparent; margin: 0 0 24px; box-shadow: none; }
.mc-kb-v2 .mc-v2-cw-primary .mc-v2-palette:last-child { margin-bottom: 0; }
.mc-kb-v2 .mc-v2-cw-slot-label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.mc-kb-v2 .mc-v2-cw-primary .mc-v2-section-head h2 { font: 400 16px/1.5 var(--mc-sans); }
.mc-kb-v2 .mc-v2-cw-primary .mc-v2-sample { display: none; }
.mc-kb-v2 .mc-v2-cw-slots { display: grid; grid-template-columns: minmax(0,1fr); gap: 24px; }
.mc-kb-v2 .mc-v2-cw-name { display: block; max-width: 440px; margin-bottom: 22px; font: 14px/1.5 var(--mc-sans); }
.mc-kb-v2 .mc-v2-cw-name > span { display: block; margin-bottom: 7px; }
.mc-kb-v2 .mc-v2-cw-name input { width: 100%; }
.mc-kb-v2 .mc-v2-cw-slot p { margin: 0 0 8px; font-size: 14px; }
.mc-kb-v2 .mc-v2-cw-slot p span { display: block; color: var(--mc-ink-mute); }
.mc-kb-page.mc-kb-v2 .mc-v2-cw-pick { display: flex; gap: 12px; align-items: center; text-align: left; width: 100%; padding: 8px 0; background: transparent; border: 0; border-bottom: 1px solid var(--mc-rule); border-radius: 0; font-size: 14px; }
.mc-kb-v2 .mc-v2-cw-pick .mc-v2-swatch-image, .mc-kb-v2 .mc-v2-cw-empty { display: block; width: 44px; height: 44px; flex: 0 0 44px; }
.mc-kb-v2 .mc-v2-cw-empty { border: 1px dashed var(--mc-ink-mute); text-align: center; line-height: 42px; font-size: 22px; }
.mc-kb-v2 .mc-v2-cw-change { margin-left: auto; text-decoration: underline; text-underline-offset: 4px; }
.mc-kb-v2 .mc-v2-cw-actions { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; margin: 16px 0 24px; padding-left: 256px; }
.mc-kb-page.mc-kb-v2 .mc-v2-cw-actions button { border-radius: 0; font-size: 14px; }
.mc-kb-v2 .mc-v2-cw-secondary-surface .mc-v2-cw-actions { padding-left: 0; margin: 24px 0 0; }
.mc-kb-v2 .mc-v2-cw-row { padding: 20px 0; border-bottom: 1px solid var(--mc-rule); }
.mc-kb-v2 .mc-v2-cw-row:last-child { border-bottom: 0; }
.mc-kb-v2 .mc-v2-cw-summary { display: flex; justify-content: space-between; gap: 20px; align-items: center; font-size: 16px; }
.mc-kb-v2 .mc-v2-cw-summary-shades { display: grid; gap: 7px; margin-top: 12px; }
.mc-kb-v2 .mc-v2-cw-summary-shades > span { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.mc-kb-v2 .mc-v2-cw-summary-shades .mc-v2-swatch-image { width: 26px; height: 26px; flex: 0 0 26px; }
.mc-kb-v2 .mc-v2-cw-controls { display: flex; gap: 16px; }
.mc-kb-v2 .mc-v2-cw-editor { padding-top: 24px; }
.mc-kb-v2 .mc-v2-cw-row .mc-v2-cw-actions { padding-left: 0; margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) {
  .mc-kb-v2 .mc-v2-cw-row.mc-v2-cw-row--new { transition: none; }
}
@media(max-width:700px) {
 .mc-kb-page.mc-kb-v2 .mc-v2-cw-surface { display: block; padding: 22px 18px; }
 .mc-kb-v2 .mc-v2-cw-surface header { margin-bottom: 24px; }
 .mc-kb-v2 .mc-v2-cw-added header { margin-bottom: 24px; }
 .mc-kb-v2 .mc-v2-cw-slots { grid-template-columns: 1fr; }
 .mc-kb-v2 .mc-v2-cw-actions { padding-left: 0; }
 .mc-kb-v2 .mc-v2-cw-summary { display: block; }
 .mc-kb-v2 .mc-v2-cw-controls { margin-top: 12px; }
 .mc-kb-v2 .mc-v2-cw-primary .mc-v2-section-head { display: block; }
}

/* Designer-only drawer opt-in: other browse and purchase callers retain their layout/policy. */
[data-mc-drawer][data-mc-drawer-designer] { display: flex; flex-direction: column; height: 100dvh; max-height: 100dvh; overflow: hidden; }
[data-mc-drawer][data-mc-drawer-designer] .mc-cdrawer-head { flex: 0 0 auto; padding: 22px 24px; }
[data-mc-drawer][data-mc-drawer-designer] .mc-cdrawer-head h3 { text-transform: none; }
[data-mc-drawer][data-mc-drawer-designer] .mc-drawer-close { min-width: 44px; min-height: 44px; }
[data-mc-drawer][data-mc-drawer-designer] .mc-cdrawer-body { flex: 1; min-height: 0; overflow-y: auto; }
[data-mc-drawer][data-mc-drawer-designer] [data-mc-fb] { padding: 18px 24px; }
[data-mc-drawer][data-mc-drawer-designer] .mc-fb-row--family { display: flex; flex-wrap: wrap; gap: 12px; }
[data-mc-drawer][data-mc-drawer-designer] .mc-fb-search-wrap { position: static; order: -1; flex: 0 0 100%; width: 100%; margin: 0 0 12px; }
[data-mc-drawer][data-mc-drawer-designer] .mc-fb-search-toggle { display: none; }
[data-mc-drawer][data-mc-drawer-designer] .mc-fb-search--expandable { display: flex; position: static; width: 100%; max-width: 100%; opacity: 1; pointer-events: auto; transform: none; transition: none; }
[data-mc-drawer][data-mc-drawer-designer] .mc-fb-search input { min-height: 48px; font-size: 16px; width: 100%; }
[data-mc-drawer][data-mc-drawer-designer] .mc-fb-dot { min-width: 44px; min-height: 44px; }
[data-mc-drawer][data-mc-drawer-designer] .mc-pg-tile--oos { opacity: 1; }
[data-mc-drawer][data-mc-drawer-designer] .mc-pg-tile--oos::after { display: none; }
[data-mc-drawer][data-mc-drawer-designer] .mc-pg-tile { cursor: pointer; }
[data-mc-drawer][data-mc-drawer-designer] .mc-pg-tile:focus-visible { outline: 2px solid var(--mc-ink); outline-offset: 3px; }
@media(max-height:600px) {
 [data-mc-drawer][data-mc-drawer-designer] .mc-cdrawer-head { padding: 12px 20px; }
 [data-mc-drawer][data-mc-drawer-designer] .mc-cdrawer-head h3 { font-size: 22px; }
 [data-mc-drawer][data-mc-drawer-designer] [data-mc-fb] { padding: 12px 20px; }
}
[data-mc-drawer][data-mc-drawer-designer] :is([data-mc-fb],.mc-fb-row--family,.mc-fb-search-wrap,.mc-fb-search--expandable,.mc-fb-search input) { box-sizing: border-box; min-width: 0; max-width: 100%; }
.mc-kb-v2 .mc-v2-cw-pick .mc-v2-swatch-image,
.mc-kb-v2 .mc-v2-cw-summary-shades .mc-v2-swatch-image { border-radius: 0; }
/* Authenticated editing never offers a public snapshot URL or PDF analysis. */
.mc-kb-page[data-mc-edit-mode="true"] [data-mc-v2-share],
.mc-kb-page[data-mc-edit-mode="true"] [data-mc-v2-send-catalogue],
.mc-kb-page[data-mc-edit-mode="true"] .mc-v2-checkbox:has([data-mc-v2-catalogue]),
.mc-kb-page[data-mc-edit-mode="true"] .mc-kb-share-ctas,
.mc-kb-page[data-mc-edit-mode="true"] [data-mc-kb-analyze-go],
.mc-kb-page[data-mc-edit-mode="true"] [data-mc-kb-attach-only],
.mc-kb-page[data-mc-edit-mode="true"] [data-mc-kb-reset],
.mc-kb-page[data-mc-edit-mode="true"] .mc-kb-preview-wrap { display: none !important; }
/* D2: the form is visible from the start of edit load; mc-kit-builder.js
   locks it with `inert` (unfocusable, unclickable) rather than hiding it, so
   this is a quiet visual echo of that state, not the lock itself. */
.mc-kb-page[data-mc-edit-mode="true"][data-mc-edit-ready="false"] .mc-kb-form > :not([data-mc-edit-form-status]):not([data-mc-kb-restored]):not([data-mc-kb-partner-session-note]) { opacity: .5; }
.mc-v2-edit-form-status { margin: 0 0 20px; font-size: 14px; line-height: 1.55; color: var(--mc-ink-mute); }
/* F4 (USER-QA 2026-10-29): the edit panel moved from a full-width banner
   above the form to a quiet block at the bottom of step 04, above its
   Back/Save nav. Kit name and Gauge unit now edit inline in step 01's own
   rows (see [data-mc-edit-kitname-field] / [data-mc-edit-gaugeunit-field]
   below), not here. */
.mc-v2-edit-save { padding: 16px 0 0; border-top: 1px solid var(--mc-rule); }
.mc-v2-edit-save [data-mc-edit-preview-content] { padding-top: 16px; overflow-wrap: anywhere; }
.mc-v2-edit-save [data-mc-edit-preview-content] pre { white-space: pre-wrap; font: 400 16px/1.6 var(--mc-sans); }
.mc-kb-field[data-mc-edit-kitname-field], .mc-kb-field[data-mc-edit-gaugeunit-field] { max-width: 620px; }
.mc-kb-field[data-mc-edit-kitname-field] [data-mc-edit-name], .mc-kb-field[data-mc-edit-gaugeunit-field] [data-mc-edit-gauge-unit] { max-width: 620px; }

/* F5 — "Back to dashboard" nav, top of the builder and beside Save changes. */
.mc-kb-v2 .mc-v2-header [data-mc-edit-dashboard-top] { font-weight: 600; }
.mc-kb-v2 [data-mc-edit-actions] [data-mc-edit-dashboard] { align-self: center; margin-right: auto; }
.mc-kb-v2 .mc-v2-leave-confirm:not([hidden]) { display: block; flex-basis: 100%; margin-top: 8px; }
