/* style.css, part 13 of 13: shine and glow, the Model Cut finishing rules, the feedback card.
   A contiguous range of the pre-M7 style.css, linked from index.html in
   source order so the cascade is unchanged; see src/tokens.css. */

/* =========================================================================
   SHINE + GLOW — owner, 2026-09-05: "there was never a shine glowing button
   animation please include".

   A sheen sweeps diagonally across the face on hover and the button picks up
   a brand-coloured glow. Applied to the SAME button set that shares the lift
   above, because the owner's standing note on this is consistency: "i think
   it is same for all".

   Mechanics worth knowing:
   - the sheen is a ::after overlay, so it never touches the button's own
     background (several of these carry gradients already);
   - `overflow: hidden` clips the sweep to the button, and the focus ring is
     an `outline`, which is drawn outside the box and is NOT clipped by it -
     so keyboard focus stays visible;
   - `pointer-events: none` keeps the overlay out of hit testing;
   - the sweep runs once per hover rather than looping. A looping shine on
     every control is a slot machine, not a product.
   ========================================================================= */
.revamp-dock button,
.revamp-topdock button,
.revamp-fork-btn,
.revamp-confirm-btn,
.revamp-more-toggle,
.revamp-quick-find,
.print-sheet-close,
#end-print-btn,
#shp-end-print-btn,
#mc-end-print-btn,
#proxy-export3mfBtn {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.revamp-dock button::after,
.revamp-topdock button::after,
.revamp-fork-btn::after,
.revamp-confirm-btn::after,
.revamp-more-toggle::after,
.revamp-quick-find::after,
.print-sheet-close::after,
#end-print-btn::after,
#shp-end-print-btn::after,
#mc-end-print-btn::after,
#proxy-export3mfBtn::after {
    content: '';
    position: absolute;
    top: -50%;
    bottom: -50%;
    left: -60%;
    width: 40%;
    pointer-events: none;
    z-index: 1;
    transform: translateX(-60%) rotate(18deg);
    background: linear-gradient(
        100deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.55) 50%,
        rgba(255, 255, 255, 0) 100%);
    opacity: 0;
}

.revamp-dock button:hover::after,
.revamp-topdock button:hover::after,
.revamp-fork-btn:hover::after,
.revamp-confirm-btn:hover::after,
.revamp-more-toggle:hover::after,
.revamp-quick-find:hover::after,
.print-sheet-close:hover::after,
#end-print-btn:hover::after,
#shp-end-print-btn:hover::after,
#mc-end-print-btn:hover::after,
#proxy-export3mfBtn:hover::after {
    opacity: 1;
    transform: translateX(420%) rotate(18deg);
    transition: transform var(--dur-620) var(--ease-standard), opacity var(--dur-180) ease;
}

/* The glow. Brand pink rather than the neutral purple the lift already casts,
   so hovering reads as the product's own colour warming up. */
.revamp-dock button:hover,
.revamp-topdock button:hover,
.revamp-fork-btn:hover,
.revamp-confirm-btn:hover,
.revamp-quick-find:hover,
.print-sheet-close:hover,
#end-print-btn:hover,
#shp-end-print-btn:hover,
#mc-end-print-btn:hover,
#proxy-export3mfBtn:hover {
    box-shadow:
        0 6px 20px rgba(150, 120, 200, 0.28),
        0 0 18px var(--shadow-pink, rgba(255, 122, 168, 0.28));
}

@media (prefers-reduced-motion: reduce) {
    .revamp-dock button::after,
    .revamp-topdock button::after,
    .revamp-fork-btn::after,
    .revamp-confirm-btn::after,
    .revamp-more-toggle::after,
    .revamp-quick-find::after,
    .print-sheet-close::after,
    #end-print-btn::after,
    #shp-end-print-btn::after,
    #mc-end-print-btn::after,
    #proxy-export3mfBtn::after {
        display: none;
    }
}

/* OWNER, 2026-09-05: "please centered no 1" — the switch-position card in the
   Choose cut group. Its controls sit on one centre axis now, and the duplicate
   trio inside the legacy row below it (Place / Auto-fit / Centre, which the
   card's own buttons already proxy) is not drawn twice: "move no2 into no1"
   means ONE surface, not two stacked. The legacy row keeps what the card does
   not have — the X/Y numbers, the depth and the nudge pad. */
#tree-model-cut .revamp-card #mc-proxy-place-switch,
#tree-model-cut .revamp-card #mc-anchor-quick-row {
    margin-left: auto;
    margin-right: auto;
}
/* The main "Place switch on model" action keeps the incumbent single-line row
   but must be a >=40px kid-tap target on desktop, where .mini-action's own
   36px floor leaves it short (owner review, 2026-09-08). */
#tree-model-cut .revamp-card #mc-proxy-place-switch {
    min-height: 40px;
}
#tree-model-cut .revamp-card #mc-anchor-quick-row {
    display: flex;
    justify-content: center;
}
#organicAnchorRow .anchor-controls,
#organicAnchorRow .anchor-nudge {
    justify-content: center;
}

/* The merged switch-position card carries its own "Switch position" label, so
   the legacy row's heading is a second one directly beneath it. Hidden from
   sight but kept in the DOM: .anchor-controls is aria-labelledby it, and
   deleting the element would strip that group's accessible name. */
#tree-model-cut #organicAnchorRow > #organicAnchorTitle {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* The depth number already has an ⓘ note (info-note "switch-drop") carrying the
   same explanation, so the inline paragraph under it is the same sentence
   printed twice — and it costs the Choose cut group its zero-scroll law once
   the switch-position card moved in. Kept in the DOM because the input is
   aria-describedby it; only its ink is removed. */
#tree-model-cut .mc-switch-depth #organicSwitchZHelp {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* Switch position moved into Choose cut and cost the panel 165 px where it had
   about 53 px of slack, breaking the group's zero-scroll law with the
   Intersection draw tools open. Two reclaims, neither of which hides a control
   or shrinks a 44 px tap target:
     1. the heading, Place, Auto-fit and Centre share ONE line;
     2. the depth label and its number sit on one line too;
     3. the draw-tool palette gets a bounded height and scrolls INSIDE itself,
        the same trick the More door host already uses (max-height 42vh), so a
        tall tool list can never push the panel itself into scrolling. */
#tree-model-cut .mc-switch-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 2px 0 4px;
}
#tree-model-cut .mc-switch-line > label { margin: 0; flex: 0 0 auto; }
#tree-model-cut .mc-switch-line #mc-proxy-place-switch { flex: 1 1 auto; margin: 0; }
#tree-model-cut .mc-switch-line #mc-anchor-quick-row { display: flex; gap: 6px; margin: 0; }
#tree-model-cut .mc-switch-depth { margin: 2px 0 0; }
#tree-model-cut .mc-switch-depth > label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
#tree-model-cut .mc-switch-depth input { max-width: 92px; }
/* Optimize new count/active rows and single-switch layout */
.revamp-active-switch-row {
    flex-wrap: wrap;
}
.revamp-active-switch-row label {
    flex: 0 0 auto;
}

#art-g2 .revamp-card #proxy-switch-pos-field.single-switch,
#shp-g2 .revamp-card #shp-proxy-switch-pos-field.single-switch {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 0.1rem 0.5rem;
}
#proxy-switch-pos-field.single-switch .revamp-switch-header-row,
#shp-proxy-switch-pos-field.single-switch .revamp-switch-header-row {
    display: contents;
}
#proxy-switch-pos-field.single-switch .revamp-switch-header-row > label,
#shp-proxy-switch-pos-field.single-switch .revamp-switch-header-row > label {
    display: none;
}
#proxy-switch-pos-field.single-switch > label,
#shp-proxy-switch-pos-field.single-switch > label {
    grid-column: 1;
    grid-row: 1;
    max-width: 100%;
}
#proxy-switch-pos-field.single-switch .revamp-switch-count-btns,
#shp-proxy-switch-pos-field.single-switch .revamp-switch-count-btns {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
}
#proxy-switch-pos-field.single-switch .revamp-offset-row,
#shp-proxy-switch-pos-field.single-switch .revamp-offset-row {
    grid-column: 1 / 3;
    grid-row: 2;
}

/* Keep the legacy one-switch row compact on the wide control panel. */
@media (min-width: 1000px) {
    #shp-g2 .revamp-card {
        gap: var(--space-hug);
    }
    .single-switch .revamp-offset-row {
        grid-template-columns: auto minmax(0, 1fr) 38px auto minmax(0, 1fr) 38px auto;
    }
    .revamp-card .single-switch .revamp-offset-row input[type='number'] {
        width: 38px;
        min-height: 30px;
        padding: 0.1rem;
    }
    .revamp-card .single-switch .revamp-colours-row button.revamp-offset-centre {
        grid-column: auto;
        min-height: 30px;
    }
}
.revamp-card .revamp-count-chip {
    min-height: 44px;
    padding: 0;
}

/* ALI-172 R5: one column at every width. Under ?mc=3 the plug's depth rows sit on this card, and
   a second column left "Cut depth" 92 px wide at 1440 (labels and chips clipped). */
#mc-controls-plug:not([hidden]) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-field);
}
#mc-controls-plug > #organicShapeSizeSection {
    grid-column: 1 / -1;
}
#mc-controls-plug .organic-sketch-section,
#mc-controls-quick .slider-container,
#mc-controls-plug .slider-container {
    min-width: 0;
    gap: var(--space-hug);
}
#mc-controls-plug .number-control,
#mc-controls-quick .number-control {
    margin-top: 0;
}
#mc-controls-plug #organicFloorMode {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
#mc-controls-plug input[type="range"],
#mc-controls-quick input[type="range"] {
    min-width: 0;
    width: 100%;
}
#tree-model-cut .mini-action,
#tree-model-cut .sketch-btn,
#tree-model-cut input[type="range"],
#tree-model-cut input[type="number"],
#tree-model-cut .revamp-select {
    min-height: 44px;
}
#organicShapeSizeSection {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
}
#organicShapeSizeTitle,
#mc-plug-size-hint {
    grid-column: 1 / -1;
}
#organicShapeSizeSection .number-control {
    align-self: end;
}
#organicCutRow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}
#organicCutHeightLabel {
    grid-column: 1 / -1;
}

#tree-model-cut .revamp-card #mc-proxy-place-switch,
#tree-model-cut .check-row > label {
    min-height: 44px;
}
#tree-model-cut .check-row > label {
    display: flex;
    align-items: center;
}
/* Model Cut Plug card (option B, owner-approved): tighter spacing, depth and fit behind "More cut options". */
#tree-model-cut .revamp-card { gap: var(--space-hug); padding: var(--space-card); }
#mc-proxy-active-switch-row:not([hidden]) { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); column-gap: var(--space-field); row-gap: var(--space-hug); align-items: end; }
#mc-proxy-active-switch-row > label { grid-column: 1 / -1; }
#tree-model-cut .mc-switch-depth { display: flex; align-items: center; gap: var(--space-field); }
#tree-model-cut .mc-switch-depth > label { flex: 1 1 auto; min-width: 0; }
#tree-model-cut .mc-switch-depth > .in-row { flex: 0 0 auto; }
.mc-plug-more { grid-column: 1 / -1; }
.mc-plug-more-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: var(--space-field); }
/* Q3-9: the legacy sidebar rides into a Fine-tuning host (src/revamp.js rehomeSections), and with it the
   phone sheet's grip (src/mobile.js buildSheetGrip), which drew as an empty pill inside the card. The
   studio sheet has its own handle, so inside the studio the grip steps aside. */
body[data-phone-layout='sheet'] #revamp-studio-content .phone-sheet-grip { display: none; }
/* Q3-9: Model Cut's Fine-tuning is a card, not a More door, so the door's quieter section title
   (studio.css .revamp-more-host .section-title) never reached it: "Advanced" drew in the heading
   serif, and at phone widths reflow.css put it at the right. The door's look, in the UI font, left. */
#mc-g6 > .revamp-card .stack-section .section-title {
    font-family: var(--font-ui);
    font-size: var(--fs-sm);
    font-weight: var(--fw-strong);
    color: var(--text-secondary);
    flex-wrap: nowrap;
}
#mc-g6 > .revamp-card .stack-section .section-title::after { order: 0; margin-left: 0; }
#tree-model-cut .revamp-card > .mc-cut-subcontrols, #tree-model-cut .revamp-card > .mc-switch-line { margin-top: 0; margin-bottom: 0; }

/* Model Cut's groups use Flat's .revamp-group rules (studio.css); only the part-role legend and the
   Loop note are Model Cut's own. */
.mc-part-role { margin: 0; color: var(--text-primary); }
.mc-role-swatch {
    display: inline-block;
    width: 0.75em;
    height: 0.75em;
    margin-right: var(--space-chip);
    border-radius: var(--radius-chip);
}
/* The same two colours src/part-role-tint.js puts on the model. */
.mc-role-swatch-button { background: #e5484d; }
.mc-role-swatch-housing { background: #3b7dd8; }
.mc-cut-loop { margin: 0; color: var(--text-secondary); }

/* "Send feedback" dialog (src/feedback.js). Reuses the print sheet's overlay,
   scrim and card; this only lays the form out left-aligned inside that card. */
.feedback-card { text-align: left; display: flex; flex-direction: column; gap: 0.5rem; }
.feedback-card h2 { justify-content: flex-start; }
.feedback-card label { font-weight: var(--fw-strong); font-size: var(--fs-sm); }
.feedback-card textarea,
.feedback-card input[type="email"] {
    width: 100%;
    box-sizing: border-box;
    padding: 0.6rem 0.75rem;
    font: inherit;
    border: 1px solid var(--border-control);
    border-radius: var(--radius-control);
}
.feedback-card input[type="email"] { min-height: 44px; }
.feedback-card textarea { resize: vertical; }
.feedback-note { margin: 0; font-size: var(--fs-sm); color: var(--text-secondary); }
.feedback-status { margin: 0; font-size: var(--fs-sm); font-weight: var(--fw-strong); }
.feedback-status[hidden] { display: none; }
.feedback-actions { display: flex; justify-content: flex-end; gap: 0.75rem; }
.feedback-actions button { min-height: 44px; min-width: 44px; padding: 0.6rem 1.2rem; border-radius: var(--radius-control); cursor: pointer; }

/* M8 support slice 3 (#127): the "Include a picture of my design" row in the
   feedback dialog — a 44 px touch target with a visible native checkbox. */
.feedback-card label.feedback-picture { display: flex; align-items: center; gap: 0.5rem; min-height: 44px; font-weight: var(--fw-normal); cursor: pointer; }
.feedback-picture input { width: 20px; height: 20px; margin: 0; flex: none; }

/* ALI-121b (owner, 2026-10-18: "make the UI nicer just like the flat mode please, the icons of button
   etc."): under ?mc=2 (body[data-mc-flow], set by src/revamp.js) 3D Model Cut's choice rows are Flat's
   .revamp-pick-grid of .revamp-pick, sized as Flat's step cards size them (#shp-g2 .revamp-pick,
   studio.css), at the 44 px Model Cut holds every control to. A slider (on a card or behind a door) is
   laid out as Flat's .revamp-colours-row: its words above, the slider and its number side by side.
   Nothing here matches without the flag, nor outside the 3D Model Cut tree, except the slider rows
   src/revamp.js marks .revamp-card-slider: the ring's size and wire under its switch on Flat's card
   (ALI-227, owner 2026-10-24: "Match "How big?""). */
body[data-mc-flow] #tree-model-cut .revamp-pick { padding: var(--space-hug) .3rem; gap: .12rem; min-height: 44px; }
body[data-mc-flow] #tree-model-cut .revamp-pick-grid { gap: var(--space-chip); }
body[data-mc-flow] #tree-model-cut .slider-container, .slider-container.revamp-card-slider { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: .6rem; row-gap: var(--space-hug); align-items: center; }
body[data-mc-flow] #tree-model-cut .slider-container > label, .slider-container.revamp-card-slider > label { grid-column: 1 / -1; grid-row: 1; }
body[data-mc-flow] #tree-model-cut .slider-container > input[type='range'], .slider-container.revamp-card-slider > input[type='range'] { grid-column: 1; grid-row: 2; }
body[data-mc-flow] #tree-model-cut .slider-container > .number-control, .slider-container.revamp-card-slider > .number-control { grid-column: 2; grid-row: 2; margin-top: 0; }
body[data-mc-flow] #tree-model-cut .slider-container > small, .slider-container.revamp-card-slider > small { grid-column: 1 / -1; }
body[data-mc-flow] #tree-model-cut .slider-container .exact-number, .slider-container.revamp-card-slider .exact-number { width: 5.4rem; text-align: center; }
body[data-mc-flow] #tree-model-cut .mc-switch-depth input[type='number'] { width: 5.4rem; max-width: 5.4rem; text-align: center; }
/* Pressed: Flat's ring (.revamp-pick[aria-pressed], studio.css) in this mode's readable accent, over a
   tint of its decoration accent (--accent-3, #74dcb4, at 22% over white, as studio.css's organic dock
   hover tints it; not color-mix(), which is above the Blink floor in docs/SUPPORT-MATRIX.md): on a Model
   Cut card every pick already has the green card border, so the ring alone would not tell a pressed pick
   from the others. */
body[data-mc-flow] #tree-model-cut .revamp-card .revamp-pick[aria-pressed='true'] { background: linear-gradient(rgba(116, 220, 180, 0.22), rgba(116, 220, 180, 0.22)), var(--c-white); box-shadow: inset 0 0 0 1px var(--accent-text); }
/* An older Model Cut rule (#tree-model-cut .revamp-card #mc-proxy-place-switch, above) centred and
   shortened Tap to place; in Flat's grid it is one pick of three. */
body[data-mc-flow] #tree-model-cut .revamp-card #mc-proxy-place-switch { margin: 0; min-height: 44px; }
/* B5 L1 F7 (owner, 2026-10-23, "Wrap to two lines"): at 390 px "Let us choose" filled its pick on one
   line and met the border where the pill's ends curve in. The switch placement row's picks keep .5rem
   each side, so it wraps to "Let us / choose" as "Straight across" does on the cut step, and the row is
   as tall as that step's (about 60 px). */
body[data-mc-flow] #tree-model-cut #mc-switch-where .revamp-pick { padding-left: .5rem; padding-right: .5rem; }
/* Flat's card slider is a 13 px band (.revamp-card input[type="range"], studio.css); here the input is
   44 px tall to be tapped, so the band is painted at Flat's height in the middle of it. */
body[data-mc-flow] #tree-model-cut .revamp-card input[type='range'] { background: linear-gradient(var(--accent-3), var(--accent-3)) center / 100% 13px no-repeat !important; }
/* Flat keeps the 1-4 count chips on one row beside their words (#shp-proxy-switch-pos-field); a Model
   Cut rule let them wrap (#mc-proxy-switch-pos-field .revamp-switch-count-btns, studio.css). Arrange
   symmetrically wraps its words rather than running out of its pill at 390 px. */
body[data-mc-flow] #mc-proxy-switch-pos-field .revamp-switch-count-btns { flex-wrap: nowrap; }
body[data-mc-flow] #mc-proxy-arrange-sym { white-space: normal; }
/* Flat's toggle grid (.revamp-toggle-grid, studio.css) ellipsises a long label; with two toggles, a phone
   stacks them so "Ring channel" is read whole. */
@media (max-width: 767px) {
    body[data-mc-flow] #mc-keychain-row.revamp-toggle-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ============================================================
   3D MODEL CUT, FLAT TWIN (?mc=3). Owner, 2026-10-20 (ALI-134): Model Cut
   matches or beats Flat. The green stays, as deep green → green →
   yellow-green, mirroring Flat's rose → violet → blue. Lane H's kit
   (docs/ux/M7/mc3-twin/mc3-twin.css on lane-h/m7-l3-evidence).

   Last in the last linked sheet, because two rules here tie on specificity
   with the ?mc=2 rules above. HOOK: body[data-mc-cards='true'], which
   src/revamp.js sets only under ?mc=3, so the default page and ?mc=2 are
   untouched. The picture icons and their #mc-icon-grad gradient come from
   src/model-cut-twin.js.

   The gradient is main's --mc-grad (studio.css, body[data-mode='organic']),
   the one the owner approved on screen; the twin does not redefine it.
   ============================================================ */

body[data-mode='organic'][data-mc-cards='true'] {
    /* Resting edges as Flat's. Organic mode re-points --border-card to
       #1c6b4a on body (studio.css:719), which outlines every Model Cut chip
       and card in dark green. In the twin, the green is only for selected
       states, as Flat's pink is. (0,2,1) beats that re-point's (0,1,1), with
       no !important on either (ALI-65). */
    --border-card: #d5d2d8;
}

/* 1. SELECTED = Flat's edge + tint, in the green gradient.
      Flat (studio.css:1702): a 1 px edge plus a 1 px inset ring in the
      accent, with a tinted fill. Here the edge is the gradient (drawn as
      border-box under a white padding-box), the ring is the mid green, and
      the fill is white, as the owner chose. The border stays 1 px, so
      nothing moves when a choice is pressed.
      This covers the pick grid and the cut pills: under ?mc=2/3 both are
      .revamp-pick (revamp.js:1145-1159). (1,4,1) ties shine.css:409 and wins
      by coming later in the sheet. */
body[data-mc-cards='true'] #tree-model-cut .revamp-card .revamp-pick[aria-pressed='true'] {
    position: relative;
    border: 1px solid transparent;
    background: var(--c-white);
    box-shadow: inset 0 0 0 1px #2a8556;
    color: var(--text-primary);
}
/* The green edge as a masked ring, not a gradient border-box: contrast-gate reads a
   control's text against its background image, and the white fill is what is seen
   (the same fix as Flat's palette card, below). */
body[data-mc-cards='true'] #tree-model-cut .revamp-card .revamp-pick[aria-pressed='true']::before {
    content: '';
    position: absolute;
    inset: -1px;
    padding: 1px;
    border-radius: inherit;
    background: var(--mc-grad);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
/* The count chips. #mc-proxy-switch-pos-field .revamp-count-chip[aria-pressed]
   (studio.css:1608, (1,2,0)) fills them with Flat's purple 3-stop; this
   (2,3,1) puts them on the same edge + tint as every other choice. */
body[data-mc-cards='true'] #tree-model-cut #mc-proxy-switch-pos-field .revamp-count-chip[aria-pressed='true'] {
    position: relative;
    border: 1px solid transparent;
    background: var(--c-white);
    box-shadow: inset 0 0 0 1px #2a8556;
    color: var(--text-primary);
}
/* The green edge as a masked ring, not a gradient border-box: contrast-gate reads a
   control's text against its background image, and the white fill is what is seen
   (the same fix as Flat's palette card, below). */
body[data-mc-cards='true'] #tree-model-cut #mc-proxy-switch-pos-field .revamp-count-chip[aria-pressed='true']::before {
    content: '';
    position: absolute;
    inset: -1px;
    padding: 1px;
    border-radius: inherit;
    background: var(--mc-grad);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* 2. PICTURE OPTIONS: Flat's icon box (studio.css:1983-1994: 34 x 16, from a
      40 x 20 viewBox). The ?mc=2 rule (shine.css:395) keeps Model Cut's
      icons at their old preset-btn size. */
body[data-mc-cards='true'] #tree-model-cut .revamp-pick svg {
    width: 34px;
    height: 16px;
}

/* 3. STEM LENGTH as Flat's slider + value box: the slider (#mc-stem-range,
      src/revamp.js addStemSlider) sits beside the stem's own number box,
      #organicSwitchZ, which the ?mc=2 rules already size as the card's other
      .exact-number boxes (86.4 px, centred), so it needs no rule of its own. */

/* 4. The drop box needs NO CSS. .revamp-dropzone and .revamp-upload-btn are
      already one rule (studio.css:1433-1455). The markup adds the class and
      keeps .revamp-upload-btn: src/revamp.js:1181, :3209 and :3222 and three
      gates select it. */

/* 5. THE START ROW is Flat's #art-fork-row markup (index.html:507). It needs
      no CSS: .revamp-group-header.revamp-mode-header is already styled for
      both trees. */

/* 6. SLIDER TRACKS in the green. Flat's track is its pink→lilac pair
      (src/mobile.css:130-134, and the base sheet's runnable-track). On
      ?mc=2 today Model Cut paints a mint input background under that pink
      track, so the pink still shows. The twin paints the track itself, in
      the light ends of the same green ramp (the icons' #d3eedd → a pale
      yellow-green). */
body[data-mc-cards='true'] #tree-model-cut input[type='range']::-webkit-slider-runnable-track {
    background: linear-gradient(90deg, #d3eedd, #e4f0c4);
}
body[data-mc-cards='true'] #tree-model-cut input[type='range']::-moz-range-track {
    background: linear-gradient(90deg, #d3eedd, #e4f0c4);
}

/* 7. THE SIDEBAR'S RESIDUE on the Fine-tuning card. Flat hosts it in a block
      door host; a Model Cut card is a flex column, where the sidebar's own
      flex grows it to fill the panel under its chips. */
body[data-mc-cards='true'] #tree-model-cut .revamp-card > .sidebar {
    flex: none;
}

/* 8. NO FOLDS ON A CARD (orchestrator, 2026-10-20). A legacy section on a
      Model Cut card stands open (src/revamp.js rehomeSections) without its
      fold header, as a Flat card's rows do. Advanced keeps Flat's fold. */
body[data-mc-cards='true'] #tree-model-cut .revamp-card details.stack-section:not(#section-advanced) > summary {
    display: none;
}

/* 9. CARDS SPACED AS FLAT'S (Lane H's review, 2026-10-20). */
body[data-mc-cards='true'] #tree-model-cut .revamp-card {
    padding: var(--space-card) 18px;
    gap: var(--space-field);
}

/* 10. WHERE IT CLICKS in one row, as Flat's .revamp-offset-row: X and Y each
       a slider beside its box (src/revamp.js addAnchorSliders). */
body[data-mc-cards='true'] #tree-model-cut #organicAnchorRow .anchor-controls {
    flex-wrap: nowrap;
}
body[data-mc-cards='true'] #tree-model-cut #organicAnchorRow .anchor-controls label {
    flex: 1 1 0;
    min-width: 0;
}
body[data-mc-cards='true'] #tree-model-cut #organicAnchorRow .anchor-controls input[type='range'] {
    flex: 1 1 auto;
    min-width: 0;
}
/* ALI-202 (owner, 2026-10-22): the axes are named in words now, "Left–right" and "Front–back" with
   "mm" after each box, and side by side the two sliders shrank to their thumbs (0 px of track at
   390). Each axis takes its own line. */
body[data-mc-cards='true'] #tree-model-cut #organicAnchorRow .anchor-controls {
    flex-direction: column;
    align-items: stretch;
}
body[data-mc-cards='true'] #tree-model-cut #organicAnchorRow .anchor-controls label {
    flex: none;
    white-space: nowrap;
}

/* ============================================================
   FLAT POLISH (M7; owner, 2026-10-20: "all, palette option a"). Flat mode
   only, CSS only, no words. From Lane H's kit (lane-h/m7-l3-evidence
   4dd12dbc, docs/ux/M7/flat-polish/), shipped where it fits revamp-smoke's
   zero-scroll guard (flat-polish.md's measured budget):
   1 (option a) the palette keeps its 82px window and inner scroll, now 3
     colour cards across with the gradient edge on the chosen one;
   2 the shape grid 5 per row with full names, at phone width only;
   3 Flat's number boxes drawn as its fields;
   4 the label column 32% at >=1400px only (22% stays at 769-1399px, where
     "Base hugs the top" needs its cell);
   5 the "How the halves fit" pictures at 84 x 52, on the picture tree's
     step 2 only;
   6 an even 12px beat on every Flat card but the two step-2 cards;
   and D-2 (Lane H's mc3-review): Flat's pressed count chip shows pressed.
   ============================================================ */

/* 1 (option a). Today: wide-panel.css:219 (a wrapped flex strip, 82px window). */
#tree-artwork .revamp-palette-strip,
#tree-shape .revamp-palette-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-content: start;
}
#tree-artwork .revamp-palette-strip .revamp-pick,
#tree-shape .revamp-palette-strip .revamp-pick {
    justify-content: center;
    min-width: 0;
    padding-left: var(--space-hug);
    padding-right: var(--space-hug);
}
/* A third of the card is too narrow for "Lavender Dream" on one line: the name
   wraps inside its card (the strip keeps its 82px window and scrolls). */
#tree-artwork .revamp-palette-strip .revamp-palette-name,
#tree-shape .revamp-palette-strip .revamp-palette-name {
    min-width: 0;
    white-space: normal;
    overflow-wrap: break-word;
    text-align: left;
}
/* The edge is a masked ring on its own layer, so the card behind the name stays
   plain white: a gradient background is what contrast-gate reads the text against. */
#tree-artwork .revamp-palette-strip .revamp-pick[aria-pressed='true'],
#tree-shape .revamp-palette-strip .revamp-pick[aria-pressed='true'] {
    position: relative;
    border-color: transparent;
    background: var(--c-white);
    box-shadow: none;
}
#tree-artwork .revamp-palette-strip .revamp-pick[aria-pressed='true']::before,
#tree-shape .revamp-palette-strip .revamp-pick[aria-pressed='true']::before {
    content: '';
    position: absolute;
    inset: -1px;
    padding: 2px;
    border-radius: inherit;
    background: linear-gradient(115deg, var(--c-rose-700) 0%, var(--c-violet-600) 55%, var(--c-blue-600) 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* 2, phone only. Today: controls.css:661 (4 columns) and studio.css:1787-1792
   (one line, ellipsis); the phone sheet scrolls, so a two-line name costs no guard. */
@media (max-width: 768px) {
    #shp-shape-host .shape-grid,
    #tree-artwork .shape-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: var(--space-chip);
    }
    #shp-shape-host .shape-chip,
    #tree-artwork .shape-chip {
        min-height: 52px;
    }
    #shp-shape-host .shape-chip span:last-child,
    #tree-artwork .shape-chip span:last-child {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        overflow-wrap: anywhere;
    }
}

/* 3. Today the proxy -num boxes draw the browser default (2px inset, square). */
#tree-artwork input[type='number'],
#tree-shape input[type='number'] {
    font-family: var(--font-ui);
    font-size: var(--fs-base);
    color: var(--text-primary);
    background: var(--c-white);
    border: 1.5px solid var(--border-control);
    border-radius: var(--radius-control);
}

/* 4. Today: wide-panel.css:91-97 (25%); 769-1399px keeps its 22% (wide-panel.css:171). */
@media (min-width: 1400px) {
    #art-g2 .revamp-card .revamp-field > label,
    #shp-g2 .revamp-card .revamp-field > label,
    #art-g3 .revamp-card .revamp-field > label,
    #shp-g3 .revamp-card .revamp-field > label {
        flex-basis: 32%;
        max-width: 32%;
    }
}

/* 5, art-g2 only (shp-g2 has 18px to spare and this costs 36). Today:
   studio.css:1963-1974 (34 x 16). */
#art-g2 .revamp-pick[data-pick-wrap] svg {
    width: 84px;
    height: 52px;
}

/* 6. Today: studio.css:254 (14px) and :1874 (--space-card on g2/g3 cards);
   the two step-2 cards keep theirs (no scroll to spare). */
#art-g1 .revamp-card,
#art-g3 .revamp-card,
#art-g4 .revamp-card,
#shp-g3 .revamp-card,
#shp-g4 .revamp-card {
    gap: 12px;
}

/* D-2. `.revamp-card button:not(.primary-btn):not(.preset-btn)` (studio.css:337,
   0,3,1) outranked `.revamp-count-chip[aria-pressed='true']` (studio.css:1578,
   0,2,0), so Flat's pressed count chip drew as its neighbours. Same weight,
   later in the sheet. */
.revamp-card button.revamp-count-chip[aria-pressed='true'] {
    border-color: var(--accent-color);
    background: #fff1f7;
    box-shadow: inset 0 0 0 1px var(--accent-color);
}

/* ---- M7 proposal v2, parts P2 / P3 / P7 (Lane H; owner yes 2026-10-20).
   Measured on main 1a3c0897 at 0 px of revamp-smoke's 786 budget, no
   words. docs/ux/M7/live-1a3c089 on lane-h/m7-l3-evidence. Appended to the last
   linked sheet; the sheets src/*.js adds later (mobile.css and others) do
   not set these properties except the dock pill's size, edited in place. ------------- */

/* P2 ONE NUMBER BOX. The "-num" proxies have only size rules
   (studio.css:1492 .revamp-colours-row input[type='number'], :1505, :1657), so
   they draw the browser's own field (13.3 px, square, 2 px #767676 inset)
   beside .exact-number (direct-manipulation.css:98). One field, from tokens;
   the ids lift it over both, sizes untouched. */
#tree-artwork input[type='number'],
#tree-shape input[type='number'],
#tree-model-cut input[type='number'] {
    font: var(--fw-strong) var(--fs-sm) var(--font-ui);
    color: var(--text-primary);
    background: var(--c-white);
    border: 2px solid var(--border-control);
    border-radius: var(--radius-control);
}

/* P3 ONE SECONDARY BUTTON. Outside a card, .in-open (info-note.css:42-62) is a
   borderless pink circle; inside one, .revamp-card button (studio.css:337)
   makes it the bordered pill. Every (i) takes the pill. Feedback's Cancel has
   only .feedback-actions button (shine.css:382), so it draws the browser's
   grey button; it takes the same outline, beside Send's radius. */
.in-open {
    border: 1.5px solid var(--border-card);
    background: var(--c-white);
    border-radius: var(--radius-chip);
}
#feedback-cancel {
    border: 1.5px solid var(--border-card);
    background: var(--c-white);
    color: var(--text-primary);
    font-size: var(--fs-base);
    font-weight: var(--fw-strong);
}

/* P7 ONE PRIMARY TYPE SIZE. #end-print-btn / #shp- / #mc-end-print-btn
   (studio.css:1209, :1256) and the dock's pill (studio.css:574) set no size,
   so "Print my clicker" was 13.3 px at the end of a flow and 11.8 px in the
   dock against 16 px / 800 on Next. Box heights unchanged. At phone width
   src/mobile.css:1131 sizes the dock's pill with !important; that line takes
   the same token. One line in the dock at 390 (measured 145 x 44). */
#end-print-btn, #shp-end-print-btn, #mc-end-print-btn, .revamp-dock .primary-gradient-pill {
    font-size: var(--fs-base);
    font-weight: var(--fw-display);
    white-space: nowrap;
}

/* ---- M7 tap targets, option 3 (owner, 2026-10-20): 44 px on what is acted
   on, at desktop width. Next, the doors, primary and secondary buttons, the
   footer links, the value fields and Flat's card sliders (below); choice
   chips, step headers and the 1-4 count chips keep their size, so the
   zero-scroll budget holds and the palette keeps two whole rows. Lane H,
   docs/ux/M7/live-1a3c089/spacing on lane-h/m7-l3-evidence. ------------- */
@media (min-width: 769px) {
    .revamp-confirm-btn,
    .revamp-more-toggle,
    .primary-btn,
    .secondary-btn,
    .primary-gradient-pill,
    .revamp-panel-footer-link,
    .revamp-panel-footer a,
    #handbookLink,
    select,
    .text-input,
    input[type='text'],
    input[type='number'],
    input[type='search'] {
        min-height: 44px !important;
    }
}

/* The room those 44 px take is paid back here, at desktop width, from tokens,
   with no words and no control removed. */
@media (min-width: 769px) {
    /* The footer: its 44 px links are its height (studio.css:86 pads 0.3rem). */
    .revamp-panel-footer {
        padding-block: 0;
    }
    .revamp-panel-footer a,
    .revamp-panel-footer-link {
        display: inline-flex;
        align-items: center;
    }
    /* The step list closes up a hug (studio.css:2089). */
    .revamp-tree {
        gap: var(--space-hug);
    }
    /* One step rhythm, Flat and Model Cut alike: a step's header, card, door
       and Next sit a hug apart (studio.css:154 puts 0.5rem between them). */
    #tree-artwork > .revamp-group,
    #tree-shape > .revamp-group,
    #tree-model-cut > .revamp-group {
        gap: var(--space-hug);
    }
    /* One card rhythm (wide-panel.css:286-294, shine.css:559): the controls
       themselves are 44 px now and carry their own edges. */
    #tree-artwork .revamp-card,
    #tree-shape .revamp-card,
    #tree-model-cut .revamp-card {
        padding-block: var(--space-chip);
        gap: var(--space-hug);
    }
    body[data-mc-cards='true'] #tree-model-cut .revamp-card {
        padding: var(--space-chip) 18px;
        gap: var(--space-hug);
    }
    #organicFitSection {
        gap: var(--space-chip);
    }
    /* Legacy sections on a Fine-tuning card (studio.css:1058, and
       control-stack.css:106's 48 px summary with 0.7rem padding). */
    .revamp-more-card .stack-section {
        margin-bottom: var(--space-chip);
    }
    .revamp-more-card .stack-section > summary {
        min-height: 44px;
        padding-block: 0;
        display: flex;
        align-items: center;
    }
    .revamp-more-card .stack-nav {
        padding-block: var(--space-hug);
    }
    /* Flat's card slider is a 13 px band (studio.css:297); as on Model Cut
       (shine.css:413-415) the input is 44 px tall and the band is painted
       at its old height in the middle. Its row is already 44 px. */
    #tree-artwork .revamp-card input[type='range'],
    #tree-shape .revamp-card input[type='range'] {
        height: 44px;
        background: linear-gradient(to right, var(--icon-accent), var(--accent-2)) center / 100% 13px no-repeat;
    }
    #handbookLink {
        min-height: 44px;
    }
}

/* ---- Door hygiene on Model Cut's cards (every width). src/revamp.js:1053-1055
   gives mc-g3, mc-g4 and mc-g6 Flat's .revamp-more-card "which drops a
   section's own chrome as Flat's door does", but the door's rules are keyed
   on .revamp-more-host (studio.css:1008-1018, :1102-1110, :1186-1193), so on
   Model Cut the superseded tour button, the stack nav and the section
   numbers still show. The same list, on the card. --------------------- */
body[data-mc-cards='true'] #tree-model-cut .revamp-more-card .logo > img,
body[data-mc-cards='true'] #tree-model-cut .revamp-more-card .logo h1,
body[data-mc-cards='true'] #tree-model-cut .revamp-more-card #guideBtn,
body[data-mc-cards='true'] #tree-model-cut .revamp-more-card .section-index,
body[data-mc-cards='true'] #tree-model-cut .revamp-more-card .section-meta,
body[data-mc-cards='true'] #tree-model-cut .revamp-more-card .sg-launch,
body[data-mc-cards='true'] #tree-model-cut .revamp-more-card [class*="sg-launch"],
body[data-mc-cards='true'] #tree-model-cut .revamp-more-card .guide-open-btn,
body[data-mc-cards='true'] #tree-model-cut .revamp-more-card .stack-nav,
body[data-mc-cards='true'] #tree-model-cut .revamp-more-card .stack-nav-all,
body[data-mc-cards='true'] #tree-model-cut .revamp-more-card .stack-nav-chip,
body[data-mc-cards='true'] #tree-model-cut .revamp-more-card [class*="stack-nav"],
body[data-mc-cards='true'] #tree-model-cut .revamp-more-card [id^="sectionGuideBtn"] {
    display: none !important;
}

/* ---- M7 one design system, the 0 px slices (Lane H, 2026-10-21). Measured on
   main b1a9ba8b: no scroll height, no words, tokens only. Each slice is fenced
   (DS<n> ... END DS<n>) so it can be taken or held on its own. ---------- */

/* DS1 ONE CHOSEN LOOK (Flat). A chosen palette has a masked gradient ring
   (above); a chosen pick has only a 1 px pink inset line, and a chosen 1-4
   count chip a pink edge and tint (studio.css:1578). Model Cut's twin shows one
   ring on all three. Flat's picks and count chips take the palette's ring, on
   its own layer, so the card behind the words stays plain white. */
#tree-artwork .revamp-card .revamp-pick[aria-pressed='true'],
#tree-shape .revamp-card .revamp-pick[aria-pressed='true'],
#tree-artwork .revamp-card button.revamp-count-chip[aria-pressed='true'],
#tree-shape .revamp-card button.revamp-count-chip[aria-pressed='true'] {
    position: relative;
    border-color: transparent;
    background: var(--c-white);
    box-shadow: none;
}
#tree-artwork .revamp-card .revamp-pick[aria-pressed='true']::before,
#tree-shape .revamp-card .revamp-pick[aria-pressed='true']::before,
#tree-artwork .revamp-card button.revamp-count-chip[aria-pressed='true']::before,
#tree-shape .revamp-card button.revamp-count-chip[aria-pressed='true']::before {
    content: '';
    position: absolute;
    inset: -1px;
    padding: 2px;
    border-radius: inherit;
    background: linear-gradient(115deg, var(--c-rose-700) 0%, var(--c-violet-600) 55%, var(--c-blue-600) 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
/* END DS1 */

/* DS2 ONE PRIMARY. Thirteen primaries are 16 / 800 pills; Feedback's Send is
   17 / 700 with a 10 px corner (shine.css:382). Cancel takes the pill beside
   Send. "Save for 3D printing" (print-sheet.css:11) is left as it is: it opens
   the paywall, and nothing in the payment path changes here. */
#feedback-send {
    font-size: var(--fs-base);
    font-weight: var(--fw-display);
}
.feedback-actions #feedback-send,
.feedback-actions #feedback-cancel {
    border-radius: var(--radius-chip);
}
/* END DS2 */

/* DS3 ONE INFO BUTTON. Seven of the twenty (i) glyphs draw at 400, the rest at
   640 (they sit in different parents). One weight. */
.in-open {
    font-weight: var(--fw-strong);
}
/* END DS3 */

/* DS4 ONE FIELD. Number boxes are 2 px --border-control, 10 px corner; the
   text boxes and selects are a 14 px corner, and Feedback's two fields a 1 px
   edge. One edge and corner; the type keeps its 16 px (no zoom on a phone). */
#tree-artwork select,
#tree-artwork input[type='text'],
#tree-artwork input[type='search'],
#tree-shape select,
#tree-shape input[type='text'],
#tree-shape input[type='search'],
#tree-model-cut select,
#tree-model-cut input[type='text'],
#tree-model-cut input[type='search'],
.revamp-more-host select,
.revamp-more-host input[type='text'],
.revamp-more-host input[type='search'],
.revamp-more-card select,
.revamp-more-card input[type='text'],
.revamp-more-card input[type='search'],
.feedback-card input[type='email'],
.feedback-card input[type='text'],
.feedback-card textarea {
    border: 2px solid var(--border-control);
    border-radius: var(--radius-control);
}
#tree-artwork select,
#tree-shape select,
#tree-model-cut select,
.revamp-more-host select,
.revamp-more-card select {
    font-weight: var(--fw-strong);
}
/* END DS4 */

/* DS5 ONE SLIDER. The card sliders are a 13 px gradient band with a white
   thumb in an accent ring (studio.css:297-325); the eighteen behind the doors
   still draw the old pale 8 px track and filled thumb (controls.css:538-585).
   Same look, same 26 px element, so no height moves. */
.revamp-more-host input[type='range'] {
    background: linear-gradient(to right, var(--icon-accent), var(--accent-2)) center / 100% 13px no-repeat;
    border-radius: var(--radius-inset);
}
.revamp-more-host input[type='range']::-webkit-slider-runnable-track {
    background: transparent;
}
.revamp-more-host input[type='range']::-moz-range-track {
    background: transparent;
}
.revamp-more-host input[type='range']::-webkit-slider-thumb {
    width: 24px;
    height: 24px;
    margin-top: -8px;
    border-radius: var(--radius-chip);
    background: var(--c-white);
    border: 4px solid var(--accent-color);
}
.revamp-more-host input[type='range']::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-chip);
    background: var(--c-white);
    border: 4px solid var(--accent-color);
}
/* END DS5 */

/* DS5b DOOR SLIDERS AT 44 PX ON DESKTOP (owner, 2026-10-21). The eighteen door
   sliders were a 26 px element on desktop; the card's and the phone's are 44 px.
   The band and thumb stay centred (the 13 px band is a centred background), so
   only the row grows: 18 px per slider. */
@media (min-width: 769px) {
    .revamp-more-host input[type='range'] {
        height: 44px;
    }
}
/* END DS5b */

/* DS6 ONE CHIP. Every choice chip is 14 / 640 in a pill with --border-card;
   the 1-4 count chips set their digits at 16, and the Advanced edge presets
   are an 8 px corner with a faint lilac edge at 700 (controls.css). */
#tree-artwork .revamp-count-chip,
#tree-shape .revamp-count-chip,
#tree-model-cut .revamp-count-chip {
    font-size: var(--fs-sm);
}
.revamp-more-host .edge-preset {
    border-radius: var(--radius-chip);
    border-color: var(--border-card);
    font-weight: var(--fw-strong);
}
/* END DS6 */

/* DS7 FLOATING ACTIONS AT 44 PX (desktop). Option 3 made the panel's actions
   44 px; the actions outside the panel were left at 32-40 px: the dock, the
   print sheet's Close, the coach's close and the beacon's Fix it. They float
   over the viewer, so no panel height moves. The account chip is the
   paywall's (src/paywall.js) and is left as it is. */
@media (min-width: 769px) {
    .revamp-dock button,
    #print-sheet-close,
    .coach-close,
    #beacon-pop-fix,
    #beacon-pop-close {
        min-height: 44px;
    }
    .coach-close,
    #beacon-pop-close {
        min-width: 44px;
    }
}
/* END DS7 */

/* DS8 ONE TOGGLE (desktop). A phone draws every checkbox by hand at 44 px
   (src/mobile.css, tap-target section); a desktop mouse still gets the 13 px
   native box. The same rules at desktop: one toggle at every width. The rows
   already reserve the height, so no scroll moves (measured). The two
   !important sizes are mobile.css's own: index.html sets each box's width
   and height inline. The 18 px corner is --radius-dialog's 18 px (the
   type ladder holds every radius to a token). The sign-in wall's age box is
   left native (an account surface); :where() adds no specificity. */
@media (min-width: 769px) {
    input[type='checkbox']:where(:not(#signInWallAge)) {
        appearance: none;
        -webkit-appearance: none;
        width: 44px !important;
        height: 44px !important;
        flex: 0 0 44px;
        margin: 0;
        padding: 0;
        border: 11px solid transparent;
        border-radius: var(--radius-dialog);       /* 18 px: 18 - 11 = 7 px inside */
        background-color: var(--c-white);
        background-clip: padding-box;
        box-shadow: inset 0 0 0 2px rgba(164, 102, 218, 0.55);
    }
    input[type='checkbox']:where(:not(#signInWallAge)):checked {
        background-color: var(--icon-accent, #a466da);
        box-shadow: inset 0 0 0 2px var(--icon-accent, #a466da);
    }
    input[type='checkbox']:where(:not(#signInWallAge)):focus-visible {
        outline: 3px solid var(--focus-ring, #b3275d);
        outline-offset: -9px;
        border-radius: var(--radius-dialog);
    }

    /* Centre a 44 px box on its label: the row attribute is set by
       markCheckboxRows() (src/mobile.js), as in src/mobile.css. */
    [data-checkbox-row] {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}
/* END DS8 */

/* ALI-171 p1: the step-2 card decongested (owner feedback, 2026-10-21). */
/* Palettes: two across, so the 28 make fourteen full rows (no chip alone on the
   last row) and every name stays on one line. They still scroll top to bottom
   (owner ruling, wide-panel.css) in a window of exactly two whole rows that snaps
   to a row, so no row is ever cut in half (chips are 40 px at 1440, 44 on a phone). */
#tree-artwork .revamp-palette-strip,
#tree-shape .revamp-palette-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: calc(2 * 44px + var(--space-chip) + 2px);
    padding-top: 1px;
    padding-bottom: 1px;
    scroll-snap-type: y mandatory;
    scroll-padding-block: 1px;
}
#tree-artwork .revamp-palette-strip .revamp-pick,
#tree-shape .revamp-palette-strip .revamp-pick {
    scroll-snap-align: start;
}
#tree-artwork .revamp-palette-strip .revamp-palette-name,
#tree-shape .revamp-palette-strip .revamp-palette-name {
    white-space: nowrap;
}
@media (min-width: 769px) {
    #tree-artwork .revamp-palette-strip,
    #tree-shape .revamp-palette-strip {
        max-height: calc(2 * 40px + var(--space-chip) + 2px);
    }
    /* The picture card's step-2 rows a chip gap apart (4.5 px) instead of a hug
       (3.2 px): what the zero-scroll budget at 1440 x 813 leaves after the whole-row
       window. The shape card (shp-g2) has no room left for it and keeps its hug. */
    #art-g2 > .revamp-card {
        gap: var(--space-chip);
    }
}
/* END ALI-171 */

/* ALI-171 P2: the halves pictures at their shared size, for full row gaps (owner yes, 2026-10-21). */
@media (min-width: 769px) {
    /* At desktop, the halves pictures at the size every other
       pick uses (34 x 16, studio.css) instead of art-g2's 84 x 52 (item 5 above);
       the 36 px it frees buys the picture card's rows a field gap (7.2 px, as before
       option 3), over P1's chip gap above. */
    #art-g2 .revamp-pick[data-pick-wrap] svg {
        width: 34px;
        height: 16px;
    }
    #art-g2 > .revamp-card {
        gap: var(--space-field);
    }
}
/* END ALI-171 P2 */

/* ALI-171 P3: zero scroll on a short desktop window too (owner: the 100% rule). A
   1280 x 800 screen gives the panel 755 px, 13 less than 1440 x 900, and step 2 is the
   tallest step: the shape card's step 2 overflowed by 13 px, the picture card's by 1.
   The rows keep their gaps (the shape card's are already a hug); only the chrome
   around them gives: the step-2 cards' inner padding, the hug between a step's header,
   card, door and Next, and the panel's top inset. Windows 813 px or taller, and phones,
   are untouched. */
@media (min-width: 769px) and (max-height: 812px) {
    #revamp-studio-content {
        padding-top: var(--space-hug);
    }
    #tree-artwork > #art-g2,
    #tree-shape > #shp-g2 {
        gap: calc(var(--space-hug) / 2);
    }
    #art-g2 > .revamp-card,
    #shp-g2 > .revamp-card {
        padding-block: 1px;
    }
}
/* END ALI-171 P3 */

/* ALI-191 (Lane Q3, owner's 100% rule): a step taller than the desktop panel
   put its "Looks right →" below the fold (art-g1 with a picture: 290 px over at
   1280 x 800), so the step's main action needed a scroll to find. The open
   step's Next now sticks to the panel's foot. A step that fits never reaches the
   foot, so nothing moves: no z-index and no new shadow, so the paint order and
   every pixel of a fitting step are what they were. scroll-padding keeps a
   control focused from the keyboard clear of the stuck button. */
@media (min-width: 769px) {
    #revamp-studio-content {
        scroll-padding-bottom: calc(44px + 2 * var(--space-field));
    }
    /* -0.4rem is the panel's bottom inset (studio.css:69): the stuck button
       sits on the panel's clip edge, so nothing shows through beneath it. */
    .revamp-tree > .revamp-group > .revamp-confirm-btn {
        position: sticky;
        bottom: -0.4rem;
    }
}

/* ALI-191 (Lane Q, owner's choice of 12 px): at 769-1280 px the panel footer's
   links need 453 px on a 403 px row, so All controls, Send feedback and
   Community on Domechy wrapped inside their 44 px boxes. At --fs-xs the row
   takes 395 px, so each link stays on one line; nowrap holds that. Same words,
   order and 44 px targets; the phone keeps its own footer (src/mobile.css). */
@media (min-width: 769px) {
    .revamp-panel-footer {
        font-size: var(--fs-xs);
    }
    .revamp-panel-footer-link {
        white-space: nowrap;
    }
}
