:root {
  --glass-mat-top: 0.99 0.004 250;
  --glass-mat-mid: 0.91 0.014 250; /* r37: .86 -> .91, .75 -> .85: held at 1.5x and 4x read slate grey beside rest's frost */
  --glass-mat-bot: 0.85 0.018 250;
  --glass-mat-mid-at: 40%;
  --glass-fall-l: 0.2;
  --glass-fall-clear: 0;
  --glass-fall-liq: 0.21;
}
.dark {
  --glass-mat-top: 0.42 0.006 260;
  --glass-mat-mid: 0.345 0.006 260; /* r37: .32 -> .345, .27 -> .305: held read a darker smoke than rest's frost */
  --glass-mat-bot: 0.305 0.006 260;
  --glass-mat-mid-at: 60%;
  --glass-fall-clear: 0.14;
  --glass-fall-liq: 0.24;
}

/* Round 16 · Filled and clear (from r15): Leverage fills its glass at the top and its held glass is clear with a strong rim;
   Borrow is r15's but for its Max (A, left of the tick; C, teal over the tick). */
/* Round 15 · Dock glass (from r14): only the held state changes (the end of the sheet), plus the held copy's bar running to the
   glass's right rim near the top.
    Round 14 · Concentric (from r13 mode A). The colour keeps its mid-track fade at the top: --fx no longer ramps to the glass's
   right end above 90% (capsule.js fxOf is the same rule). Held adds the Window's rim (.gl-win) and the Rim's bar-coloured ring
   (.gl-rim). The focus ring is ink, not the select blue (emil-ui-polish 6: focus rings grey, black or white).
   Round 11 · One set (from round 10b). zee on r10: "the borrow one is so disconnected from the leverage". Borrow is now
   Leverage's controller and bar to the pixel (40 x 24 glass over a 16 px bar in a 32 px track, held 44 x 28, the same
   frost and colour field), and its controls take Leverage's treatment: a 32 px foot row, values muted at 400 (the
   figure stays the only full-ink number), the Max tick and the liquidation band drawn at the bar's own height and radii.
   Round 10 · Frosted capsule (from round 9): Leverage's frost spreads further, dark never glows, the rim holds at 10x,
   held 50 x 30. Borrow is unchanged. The stage is recomposed for each width (end of the sheet).
   Round 9 · Frosted capsule (from round 8; r7 and r6 history below). The r3-a anatomy (a head row with the figure as
   the hero, one thick capsule track, a foot row of presets or the legend), with the controller always glass.
   r9: one sheet, a setting per slider. Leverage keeps r8's frosted capsule (44 x 28 over a 20 px bar, the whole glass
   frosted and milky, zee's r7 notes); Borrow is back to r7's look (40 x 26 over a 10 px bar, a painted frosted left
   half and a clear right half), since zee's notes were for Leverage only. Everything here overrides shared/lever.css;
   the controller's input, keys, presets and events are unchanged.

   Scale: type 14 / 20 (label and figure). Gaps 4 / 8 / 12. Radii: track rail-h / 2, controller and presets 999. */


:root {
  --track-h: 32px;
  /* the active preset's lift (emil-surfaces 2 and 3: a contact shadow and a soft drop in light, a ring in dark) */
  --cap-lift: 0 0.5px 1px oklch(var(--dock-lens-shade) / 0.2), 0 2px 6px -1px oklch(var(--dock-lens-shade) / 0.18);
}
.dark {
  --cap-lift: 0 0 0 0.5px oklch(var(--light) / 0.1), 0 2px 8px -1px oklch(var(--dock-lens-shade) / 0.6);
}

/* the glass and the bar, per slider (capsule.js KINDS holds the same numbers) */
.levl {
  /* r10b (zee: "its too big lets make its size around 85% to 90% snapped ofc to 4 basegrid"): 0.88 of r9, on the grid */
  --cap-w: 40px;            /* r9 44 */
  --cap-h: 24px;            /* r9 28 */
  --rail-h: 16px;           /* r9 20: 4 px of glass above and below the bar, as r9 */
}
.ltv {
  /* r11: Leverage's sizes (r10: 40 x 26 over a 10 px bar, r7's wash) */
  --cap-w: 40px;
  --cap-h: 24px;
  --rail-h: 16px;
}
.levl, .ltv {
  --cap-r: calc(var(--cap-w) / 2); /* half its width: its centre never leaves the track */
  --rail-r: calc(var(--rail-h) / 2);
}

/* ---------- Leverage: head / track / foot ---------- */
.levl { gap: 8px; }
.levl-glow, .levl-shine { display: none; }             /* the bar stays calm: no glow, no running shine */

/* head: the label and the figure, the figure leads */
.levl > .levl-chip {
  order: -1;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  height: 28px;
  padding: 0;
  background: none;
  border-radius: 0;
  gap: 12px;
}
.levl-chip .muted { font-size: 14px; }
.levl-figure { font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; min-width: 0; }

.levl-track, .ltv-track {
  --x: calc(var(--cap-r) + var(--pct) * (100cqw - var(--cap-w)) / 100);
  /* r9, the ends (r8 critic MUST-FIX 1): where the colour ends. The glass's centre from 10% to 90%; below 10% it eases to
     the glass's left end (the floor shows no colour in the glass), above 90% to its right end (the top shows the glass
     full of colour, never the empty rail). capsule.js fxOf is the same rule */
  --fx: calc(var(--x) - var(--cap-r) * max(0, 1 - var(--pct) / 10));
}
.levl-track { height: var(--track-h); margin: 0; }
.levl-rail, .levl-fill { top: calc((var(--track-h) - var(--rail-h)) / 2); height: var(--rail-h); }
/* r6: the rail is one flat tone, no ring: one edge on the slider, and it is the glass's */
.levl-rail, .dark .levl-rail { box-shadow: none; }
.dark .levl-rail { background: oklch(var(--ink) / 0.09); }
.levl-fill {
  clip-path: inset(0 calc(100% - var(--fx)) 0 0 round var(--rail-r));
  box-shadow: none;
  transition: clip-path 200ms var(--ease-system), background-color 200ms ease-out, opacity 200ms ease-out;
}
.levl[data-drag] .levl-fill, .levl[data-move] .levl-fill { transition-property: background-color, opacity; }

/* the native range sits exactly on the track, its own thumb as wide as the controller: the value follows the
   controller's centre 1:1 (a press on the controller keeps its offset, a press on the track lands under it) */
.levl-range, .ltv-range { top: calc((var(--track-h) - 44px) / 2); left: 0; width: 100%; height: 44px; touch-action: pan-y; } /* r11 critic: a horizontal drag never fights the page scroll */
.levl-range::-webkit-slider-thumb, .ltv-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: var(--cap-w); height: 44px; }
.levl-range::-moz-range-thumb, .ltv-range::-moz-range-thumb { width: var(--cap-w); height: 44px; border: 0; }

/* the native thumb no longer draws: the glass is the controller. It stays as the carrier of the hover and focus
   rings, sized and placed by the glass on every frame it moves */
.levl-thumb, .ltv-thumb {
  top: 50%;
  width: var(--cap-w);
  height: var(--cap-h);
  border-radius: 999px;
  rotate: none;
  translate: calc(var(--x) - 50%) -50%;
  background: none;
  box-shadow: none;
  transition: box-shadow 150ms ease-out;
}
.levl[data-drag] .levl-thumb { scale: 1; }
/* hover: no ring (critic r5: it read as a halo); the glass's drop deepens instead (capsule.js) */
/* focus: the select ring outside the glass, kept while hovered (critic r2 MUST-FIX) */
.levl-range:focus-visible ~ .levl-thumb, .ltv-range:focus-visible ~ .ltv-thumb {
  box-shadow: 0 0 0 2px oklch(var(--surface-card)), 0 0 0 4px oklch(var(--ink) / 0.72);
}

/* foot: presets as one segmented capsule, the cap on the right */
/* r10b (zee on the "Leverage 3.50x" chip: "we need another UI iteration on the controls of the slider bc all ui elements
   have issues"). The set, measured on r10: the well 131.11 x 36 (off the grid, taller than the bar's whole track and
   heavier than the glass), its segments 38.2 / 38.2 / 50.7 wide (the labels unevenly spaced), the active label turning
   600 (a weight change on selection shifts the text), the cap's value in full ink (a second hero beside the figure).
   Now: one type scale (14 / 20), heights 28 / 32 / 28, gaps 4 / 8. The figure is the only full-ink number; the
   presets are an even 44 px each in a 32 px well with a concentric 28 px chip; the cap is quiet, on the well's centre */
.levl-row { gap: 8px; padding-left: 0; min-height: 32px; }
.levl-row > .levl-chip { display: none; }
.levl-presets {
  position: relative;
  gap: 0;
  padding: 2px;
  height: 32px;
  border-radius: 999px;
  background: oklch(var(--surface-fill));
}
.levl-preset {
  z-index: 1; height: 28px; width: 40px; padding: 0; justify-content: center; border-radius: 999px;
  font-size: 14px; line-height: 20px; font-weight: 500; /* one weight in every state: the label never shifts */
  transition: color 150ms ease-out, background-color 150ms ease-out, scale 150ms ease-out;
}
.levl-preset[data-on] { background: transparent; color: oklch(var(--ink)); }
/* hover: the label to ink and a faint chip of its own, so it shows without moving anything. r34 (R33 critic should-fix 4):
   r33's (pointer: fine) asked only the primary pointer, so a pen on a mouse-primary laptop still left the chip. The chip
   now follows the pointer in hand: capsule.js keeps the last pointerType on <html data-pointer>, and only a mouse shows it */
@media (any-hover: hover) {
  :root[data-pointer="mouse"] .levl-preset:not([data-on]):hover { background: oklch(var(--ink) / 0.045); color: oklch(var(--ink)); }
  :root.dark[data-pointer="mouse"] .levl-preset:not([data-on]):hover { background: oklch(var(--ink) / 0.06); }
}
/* shared/lever.css keeps its own (hover: hover) chip for other rounds: a pen's or a finger's hover is put back to rest */
:root:not([data-pointer="mouse"]) .levl-preset:not([data-on]):hover { background: transparent; color: oklch(var(--ink-muted)); }
/* r11 (r10 critic should-fix 1): 44 / 44 / 44 left 29.2 px between 2x and 3x and 23 between 3x and Max, insets 16.7 / 10.5.
   40 / 40 / 52 (the well still 2 + 132 + 2 = 136) evens the gaps and the end insets */
.levl-preset[data-p="max"] { width: 52px; }
.levl-preset:not(:disabled):active { scale: 0.97; } /* emil-ui-polish 6: 0.97, never below */
/* the active segment: a raised neutral capsule that glides between presets. r6: no tone, so the controller is the
   only coloured object on the slider besides its own bar */
/* r10b: the well is a hairline, not a fill: filled in the rail's beige it read as a second piece of rail under the bar */
.levl-presets { background: none; box-shadow: inset 0 0 0 1px oklch(var(--line)); }
.dark .levl-presets { background: none; box-shadow: inset 0 0 0 1px oklch(var(--ink) / 0.1); }
.dark .seg { background: oklch(var(--surface-thumb)); }
.seg {
  position: absolute;
  z-index: 0;
  left: 0;
  top: 2px;
  height: 28px;
  border-radius: 999px;
  background: oklch(var(--surface-chip));
  box-shadow: var(--cap-lift);
  opacity: 0;
  scale: 0.96;
  pointer-events: none;
  transition: translate 300ms cubic-bezier(0.2, 0, 0, 1), width 300ms cubic-bezier(0.2, 0, 0, 1), opacity 150ms ease-out, scale 150ms ease-out, background-color 200ms ease-out;
}
.seg[data-on] { opacity: 1; scale: 1; }
.seg[data-instant] { transition: none; }
.levl-cap { padding-right: 0; font-size: 14px; line-height: 20px; }
.levl-cap b { color: oklch(var(--ink-muted)); font-weight: 500; } /* the limit informs; the figure above is the hero */
.levl-figure { font-variant-numeric: tabular-nums; }
.levl[data-off] .levl-cap { opacity: 0.4; }

/* ---------- Borrow: the same anatomy ---------- */
.ltv { gap: 8px; }
.ltv-head { height: 28px; padding: 0; align-items: baseline; }
.ltv-reading { font-size: 20px; line-height: 28px; letter-spacing: -0.01em; }
/* r11: the foot row is Leverage's: 32 px tall, the values muted at 400 like Leverage's cap (the figure above is the only
   full-ink number), the keys drawn as the bar draws them */
.ltv-legend { padding: 0; height: 32px; }
.ltv-legend b { color: oklch(var(--ink-muted)); font-weight: 500; }
.ltv-track { height: var(--track-h); }
.ltv-layers { top: calc((var(--track-h) - var(--rail-h)) / 2); height: var(--rail-h); }
/* the rail splits at the max: the usable segment, a 6 px notch carrying the max mark, the liquidation segment */
.ltv-layers > .ltv-rail { right: auto; width: calc(var(--mx) - 3px); border-radius: var(--rail-r) 2px 2px var(--rail-r); }
/* r6: the liquidation segment is a flat quiet red, no hatch: it informs, the glass leads */
/* r11: at the bar's 16 px height (r10: 10) the band is 1.6x the area, so it steps back: 0.3 -> 0.24 light, 0.45 -> 0.32
   dark. It informs; the colour and the glass lead */
.ltv-layers > .ltv-band, .ltv-key-band { background: oklch(var(--info-red) / 0.24); }
.dark .ltv-layers > .ltv-band, .dark .ltv-key-band { background: oklch(var(--info-red) / 0.32); } /* r8 critic: 0.3 read brown on the dark card at 10 px */
.ltv-layers > .ltv-band { left: calc(var(--mx) + 3px) !important; right: 0; border-radius: 2px var(--rail-r) var(--rail-r) 2px; }
.ltv-layers > .ltv-rail, .dark .ltv-layers > .ltv-rail { box-shadow: none; }
.dark .ltv-layers > .ltv-rail { background: oklch(var(--ink) / 0.09); }
/* the max mark stands 3 px proud of the track: at Max it sits on the glass's sharp centre line, never hidden */
.ltv-layers > .ltv-max { left: var(--mx) !important; top: -2px; bottom: -2px; width: 1.5px; } /* r6: finer, it reads as a tick, not a second knob in the glass */
.ltv-layers > .ltv-fill { width: min(var(--fx), calc(var(--mx) - 3px)); border-radius: var(--rail-r); box-shadow: none; }
.ltv:not([data-drag]):not([data-move]) .ltv-fill { transition: width 160ms var(--ease-system); }
.ltv { --mx: calc(var(--cap-r) + var(--maxp) * (100cqw - var(--cap-w)) / 100); }
.ltv-key-max { height: 12px; width: 1.5px; }
.ltv-key-band { width: 12px; height: 8px; border-radius: 4px; } /* r11: a piece of the bar, its own height to radius ratio */

/* ---------- the glass controller: always on ---------- */
.gl { position: absolute; left: 0; top: 0; display: block; pointer-events: none; transform-origin: 50% 50%; }
.gl-shadow { position: absolute; inset: 0; border-radius: 999px; }
.levl:not([data-move]) .gl-shadow, .ltv:not([data-move]) .gl-shadow { transition: box-shadow 150ms ease-out; }
.gl-body { position: absolute; inset: 0; overflow: hidden; border-radius: 999px; isolation: isolate; }
.gl-refr { position: absolute; overflow: hidden; }
/* the clear copy carries the card and the rail under the glass, never the fill: the painted frost (a canvas) carries
   the fill's colour in the left half and covers the rail there */
.gl-lv { position: absolute; inset: 0; display: block; background: oklch(var(--surface-card)); }
.gl-copy, .gl-stretch { position: absolute; left: 0; top: 0; height: var(--track-h); }
/* Leverage, the frost (r9). Two layers over the blurred, saturated copy, as the dock's material: a haze, the card's colour
   (it lowers the contrast of what lies under it: milky), and a lift, white added (plus-lighter: light scattered in the
   glass). The lift raises the rail and the colour by the same amount, so the glass sits visibly above the bare rail
   while the colour keeps its depth and never pales into a glow, which a normal white milk does. Opacities: capsule.js */
/* r22: the rest frost's sheet (the painted colour, the haze, the lift): at the top it fades as one (capsule.js frostAt) */
.gl-rest { position: absolute; inset: 0; }
.gl-milk, .gl-lift { position: absolute; inset: 0; }
.gl-milk { background: oklch(var(--surface-card)); }
.dark .gl-milk { background: oklch(var(--light)); }
.gl-lift { background: oklch(var(--light)); mix-blend-mode: plus-lighter; }
/* under the glass the fill's end is square: a rounded end holds less colour, so the blur pulled the colour's 50% point
   about 1.5 px short of the value. Square, the blur centres it on the value and carries the colour past it */
/* r10: under the glass the rail and the fill run 32 px past the track's ends (four of the wider blur's sigmas), so the
   blur never pulls the card in at the ends: at 1.01x the glass holds the even rail to its left rim, and from 90% the
   colour runs on past the track's end, so at 10x the glass is full of colour to its right rim (r9: a pale right cap) */
.gl-clear .levl-rail, .gl-clear .levl-fill { left: -32px; right: -32px; border-radius: 0; }
/* r11, Borrow the same: its rail runs 32 px past the left end and the band 32 px past the right end, under the frost only */
.gl-clear .ltv-layers > .ltv-rail { left: -32px; width: calc(var(--mx) - 3px + 32px); border-radius: 0 2px 2px 0; }
.gl-clear .ltv-layers > .ltv-band { right: -32px; border-radius: 2px 0 0 2px; }
.gl-clear .levl-fill { clip-path: inset(0 calc(100% - 32px - var(--fx)) 0 32px); } /* never left of the track: at the floor no colour reaches the glass */
/* r9: under the glass only the colour is deepened first (the rail is not), so after the haze and the lift it lands back
   on the bar's own colour and lightness while the rail around it is lifted: vivid under the milk, never a pale glow */
/* the painted colour takes the deepening and the frost's 1.1 saturation (r10's blur filter carried it) */
.levl .gl-col, .ltv .gl-col { filter: brightness(var(--deep, 0.78)) saturate(calc(var(--deep-sat, 1.2) * 1.1)); }
.gl-tone { position: absolute; width: 0; height: 0; overflow: hidden; background: var(--tone); pointer-events: none; }
/* r10b: the frosted copy carries the rail only; the colour is painted (.gl-col), a composed field, not a blurred fill */
.levl .gl-clear .levl-fill { visibility: hidden; }
/* r36 (coordinator): at rest over a full bar the frosted copy shows the bar's band again, softly, under the thinned colour
   (capsule.js --max-see, 0 below the top span, so every other fill keeps the rail-only copy) */
.levl .gl-clear .levl-fill { visibility: visible; opacity: var(--max-see, 0); }
.gl-col { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
/* r10 (r9 critic MUST-FIX 2): dark 0.9 / 1.15 lifted the colour in the glass above the bar's own (blue clipped at 255,
   a glow); at 0.85 / 1 it lands on the bar's lightness, within 0.01 L, with no channel at 255 */
.dark .levl .gl-col, .dark .ltv .gl-col { --deep: 0.85; --deep-sat: 1; }
/* Borrow, the wash (r7): the clear copy never draws the fill, the painted frost carries its colour */
.gl-clear .ltv-fill { visibility: hidden; }
.gl-wash { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
.gl-tint { position: absolute; inset: 0; background: oklch(var(--light) / var(--gl-tint)); --gl-tint: 0.02; } /* clear glass: the rail reads through at its own colour */
.dark .gl-tint { --gl-tint: 0.015; }
.gl-shade { position: absolute; inset: 0; background: oklch(var(--dock-lens-shade) / 0.4); mask-size: 100% 100%; -webkit-mask-size: 100% 100%; }
.dark .gl-shade { display: none; } /* dark: the black ring outside the glass is its shade side */
/* r11: Borrow's rim is Leverage's (the dock's hairline, normal blending); r7's plus-lighter lit rim went with the wash */
.gl-spec, .gl-sheen { position: absolute; inset: 0; background-size: 100% 100%; }
/* r10 (r9 critic MUST-FIX 3): the side rim brightens only where the colour lies under it, masked to the colour's end, so
   at 10x the controller keeps its edge on the bar while over the rail the outline stays the dock's faint side line */
.gl-edge { position: absolute; inset: 0; background-size: 100% 100%; }

.levl-glow, .levl-rail, .levl-fill, .ltv-layers, .gl-stretch { transform-origin: 0 50%; }
.levl[data-move] .levl-thumb, .ltv[data-move] .ltv-thumb { transition: none; }

@media (prefers-reduced-motion: reduce) {
  .seg, .levl-thumb, .ltv-thumb, .levl-fill, .ltv-fill { transition: none !important; }
}
@media (max-width: 400px) { .levl-cap { display: inline; } }

/* ---------- the stage (r7) ----------
   Desktop (1200 and up): one line, two sliders. The panels keep their real width (360, the slider 342: judged at the
   size it ships, never zoomed) and centre in the window, 96 px apart; the Borrow panel drops 56 px so both sliders sit
   on one line, and that line sits on the window's optical centre (about 55% down) rather than wherever the panels'
   height leaves it. The skeleton steps back to 28% of its tone (r6 45%) and the panel's frame to a hairline, so the
   two sliders are the only things on the page with contrast. Below 768 the panels stack, the page scrolls as one, and
   it ends 120 px below the last panel so the review toolbar floating in the corner never sits on a control. */
@media (min-width: 1200px) {
  /* r9: the two panels as one block, centred in the room (r7 put the slider line at 55% down: the 642 px Leverage panel
     then sat 24 px from the top at 1474 x 900, 150 px from the bottom) */
  .stage { gap: 96px; padding: max(24px, calc((100dvh - 700px) / 2)) 24px 48px; align-items: start; align-content: start; place-content: start center; }
}
/* r7: from 768 up, wherever the panels stand side by side, both sliders sit on one line (r6 only did it from 1200) */
@media (min-width: 768px) {
  .stage { align-items: start; }
  .stage > section[aria-label="Borrow panel"] { margin-top: 56px; }
}
.stage .sk { background: color-mix(in oklch, oklch(var(--skeleton)) 28%, oklch(var(--surface-card))); } /* a colour, not opacity: no layer seams */
.stage .panel { box-shadow: inset 0 0 0 1px oklch(var(--line) / 0.6); }
@media (max-width: 767px) {
  /* r38 walk: before the sliders mount, the short stage sat centred (panels at y 181) and jumped to 48 on mount
     (layout shift .131); from the top, as it ends up anyway */
  .stage { padding: 16px 16px 120px; gap: 24px; align-content: start; }
}
/* the panel's caption sits clear of the card (shared base pulls it 4 px into the card's edge) */
.panel-cap { margin: 0 0 8px 12px; } /* on the slider's own left edge (card 8 + slot 4) */
/* touch: the presets' hit area reaches 44 px tall on a phone; the bar stays 32 */
/* r34: any-pointer, so a touch screen on a mouse-primary laptop also gets the 44 px target (primary-only before) */
@media (any-pointer: coarse) { .levl-preset::after { content: ""; position: absolute; inset: -8px 0; } } /* 28 + 16 = 44 */
/* the max tick seen through the clear glass is muted a little, as glass mutes what lies under it (r6: read as a
   second knob at full strength when the glass leans past the max) */
/* r7 critic MUST-FIX 1: the copy's tick hides and the glass draws its own above the frost (.gl-tick), so pushed past Max
   the tick reads through the frosted half instead of vanishing under the colour */
.gl-lv .ltv-max { visibility: hidden; } /* r11: the sharp (held) copy too: the glass's own tick is the one */
.gl-tick { position: absolute; left: -0.75px; top: 0; width: 1.5px; height: calc(var(--rail-h) + 4px); border-radius: 999px; background: oklch(var(--ink-muted)); opacity: 0.6; }

/* r8, the phone as its own composition: above the slider each panel keeps only the field next to it, so both sliders
   sit on the first screen (r7 at 390: Borrow began at y 1078 of an 844 screen); the panels below the slider stay */
@media (max-width: 767px) {
  .panel > [data-focus-skeleton]:has(~ [data-focus-skeleton] ~ .slot) { display: none; }
}

/* ---------- r10, the stage at each width ----------
   r9 critic: at 1474 the two 360 px panels sat small in an empty window, at 768 the pair sat off-centre (the frame's
   vertical centring left 130 px above and 230 below, the Borrow drop made it lean), at 390 the floating review button
   covered the block under Borrow. The panels stay at their real size everywhere (the slider is judged as it ships). */
.shell-chart { display: none; }
@media (min-width: 1200px) {
  /* the shell: chart | Leverage | Borrow, 24 px apart as the app's columns, 1600 px at most, centred both ways */
  .stage {
    grid-auto-flow: row;
    grid-template-columns: minmax(0, 1fr) 360px 360px;
    gap: 24px;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    /* centred in a laptop window (91 px above at 1474 x 900), never lower than 96 px from the top in a tall one: the
       page's room then falls below the columns, not in a band above them */
    padding: clamp(24px, calc((100dvh - 670px) / 2), 96px) 24px 48px;
    place-content: start stretch;
  }
  .shell-chart { display: flex; flex-direction: column; align-self: stretch; }
  .shell-chart .panel { width: 100%; max-width: none; flex: 1; }
  .shell-plot { flex: 1; border-radius: 16px; }
}
/* tablet: the two panels side by side, the gap as wide as the margins (16 at 768), the pair centred in the window */
@media (min-width: 768px) and (max-width: 1199px) {
  .stage {
    grid-auto-flow: column;
    grid-template-columns: repeat(2, min(360px, calc((100vw - 48px) / 2)));
    gap: clamp(16px, calc(100vw - 752px), 48px); /* 16 at 768: 360 + 16 + 360 and 16 each side */
    padding: 48px 16px 48px; /* from the top, as a page: centred in a portrait window it left a band above the pair */
    place-content: start center;
  }
  .stage .panel { width: 100%; }
}
/* r10, from 768: the columns share one top and one bottom. Borrow carries one more 44 px row above its fields (the
   app's mode row), so its slider sits on Leverage's line with no drop (r9 dropped the whole panel 56 px, read as a
   misaligned column), and both panels stretch to the row, Borrow's call to action pinned to its foot (its two summary rows, as Leverage's, fill
   the room above it: 16 px left over, not 76) */
@media (min-width: 768px) {
  .stage > section[aria-label="Borrow panel"] { margin-top: 0; }
  .stage > section[aria-label$="panel"] { display: flex; flex-direction: column; align-self: stretch; }
  .stage .panel { flex: 1; }
  .stage > section[aria-label="Borrow panel"] .sk-cta { margin-top: auto; }
}
/* phone: under Borrow its summary rows and call-to-action block step out, so the last thing on the first screen (844) ends about 120 px
   above its bottom, clear of the review button floating in the corner; the page still ends 120 px below the last panel */
@media (max-width: 767px) {
  .stage > section[aria-label="Borrow panel"] .slot ~ [data-focus-skeleton] { display: none; }
}

/* r13: held is the plain clear glass again: the sharp copy draws the bar's own fill (r12's held shapes are dropped) */

/* r15, held: the dock's material (capsule.js frostAt and render). The body is a tint (milk light, smoke dark) over the held copy,
   which carries blur() and saturate(); the specular rim is a painted image (specDockURL); both fade in as the rest frost fades
   out. Under the glass the held copy's bar runs 32 px past the track's right end, so near the top it can fill the glass to its
   right rim (its fill ends on --fx, which render sets on the copy) */
.gl-mat, .gl-dspec { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
/* r23: the held body, its stops' colours the --glass-mat tokens (top of this sheet), their alphas (--ma0..2) set by frostAt */
.gl-mat {
  background: linear-gradient(180deg, oklch(var(--glass-mat-top) / var(--ma0, 0)) 0%, oklch(var(--glass-mat-mid) / var(--ma1, 0)) var(--glass-mat-mid-at), oklch(var(--glass-mat-bot) / var(--ma2, 0)) 100%);
}
.gl-dspec { background-size: 100% 100%; }
/* r22, held full: the glass is lit from above over its top third, a tone of the colour itself (--glass-fall-l lighter, at
   --glass-fall-a, r24 per variant), eased to nothing a third of the way down (emil-surfaces 5: eased stops, no banding). r23: capsule.js draws
   the eased stops (GLASS.FALL, relative colour); this color-mix gradient is the fallback where relative colour is missing.
   capsule.js sets its opacity (the press times the fill) */
.gl-fall {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  --glass-fall-a: var(--glass-fall-clear); /* r24: per variant, capsule.js sets Liquid's (--glass-fall-liq) */
  background: linear-gradient(180deg, color-mix(in oklch, color-mix(in oklch, var(--tone), white 30%) calc(var(--glass-fall-a) * 100%), transparent) 0%, transparent 34%);
}
/* r16: the filled glass (the tone's base held, its optics at rest and held) and the Clear glass's lens rim */
.gl-drim { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.gl-drim { background-size: 100% 100%; }
/* r16 Borrow at Max. A: the glass ends on the tick, so the held copy's teal runs to the tick (not 3 px short). C: the glass
   stays on the tick and the teal fills it whole, over the tick and into the band, inside the glass only */
.ltv[data-ltvmax="a"] .gl-sharp .ltv-fill { width: min(var(--fx), var(--mx)); }
.ltv[data-ltvmax="c"] .gl-sharp .ltv-fill { width: var(--fx); }
.gl-sharp .levl-rail, .gl-sharp .levl-fill { right: -32px; }
/* r16: Max on an unknown cap asks for the maximum (Dusk's findMaximum): the button reads busy, the slider locked */
.levl[data-finding] .levl-preset[aria-busy="true"] { opacity: 0.5; cursor: progress; }
.levl[data-finding] .levl-track { cursor: progress; }

/* r20, the gap (R19 critic MUST-FIX 1; Material 3's handle gap): the bar stops 2 px short of the glass's left rim at every
   value. The glass's end is round, so the bar's end is the arc concentric with it, 2 px out (radius --gr + 2 about the cap's
   centre): the gap is 2 px all along the cap, never 2 px at the centre line and 5 px at the bar's corners. The rail is cut by
   the same arc, so the gap shows the card. --gx (the glass's left edge) and --gr (its cap's radius) are set by capsule.js on
   every frame the glass moves or grows; the glass now carries no frost band, so its colour reaches its inner wall at Max */
.levl-track > .levl-fill, .levl-track > .levl-rail, .ltv-track > .ltv-layers {
  --gap-mask: radial-gradient(circle at calc(var(--gx) + var(--gr)) 50%, transparent calc(var(--gr) + 2px), black calc(var(--gr) + 2.5px));
  -webkit-mask-image: var(--gap-mask);
  mask-image: var(--gap-mask);
}
.levl-track > .levl-fill {
  clip-path: inset(0 calc(100% - var(--gx, var(--fx)) - var(--gr, 0px)) 0 0 round var(--rail-r) 0 0 var(--rail-r));
  /* r40: this list dropped r39's opacity, so on a New market the fill popped in one frame while its glass faded 200 ms;
     paired elements share timing (emil-animations) */
  transition: background-color 200ms ease-out, opacity 200ms ease-out;
}

/* r21, held at the top (capsule.js heldFill): the lens gathers the colour to its walls. The held copy carries a field of the
   tone its full height and 12 px past it (so the rim's vertical bend never samples the card), ending on the bar's own front,
   opaque by --hf (0 mid-track, 1 at the top). It sits in the copy, so the refraction, blur, saturation and brightness are the
   bar's own. Near the top the bar's end and the field's feather over --ff (capsule.js FEATHER; 0 mid-track, where the mask's
   two stops meet on the clip's own end and change nothing), so the end crosses the rim's bend without a serrated edge */
.gl-sharp .levl-fill, .gl-sharp .ltv-fill, .gl-sharp .gl-stretch::after {
  -webkit-mask-image: linear-gradient(90deg, black calc(var(--fx) - var(--ff, 0px)), transparent var(--fx));
  mask-image: linear-gradient(90deg, black calc(var(--fx) - var(--ff, 0px)), transparent var(--fx));
}
/* the field's own front is softer while it is still coming up (--ffa, 16 px at its first trace to FEATHER at the top), so
   in the drag's middle frames it never reads as a translucent block with a square end */
.gl-sharp .gl-stretch::after {
  -webkit-mask-image: linear-gradient(90deg, black calc(var(--fxa, var(--fx)) - var(--ffa, var(--ff, 0px))), transparent var(--fxa, var(--fx)));
  mask-image: linear-gradient(90deg, black calc(var(--fxa, var(--fx)) - var(--ffa, var(--ff, 0px))), transparent var(--fxa, var(--fx)));
}
.gl-sharp .gl-stretch::after {
  content: "";
  position: absolute;
  left: 0;
  width: calc(var(--fxa, var(--fx)) + 1px);
  top: -12px;
  bottom: -12px;
  background: var(--tone);
  opacity: var(--hf, 0);
  pointer-events: none;
}

/* ---------- r35, the warmth (no rays, no marks) ---------- */
/* zee on R34: "the steps or ticks look werid and wrays? lol soo bad like i idnt meant it this way". Her R27 ask ("more colors
   rays when the leverage get bigger") meant the fill itself gains colour as the leverage grows; "steps" meant the snap. So the
   stops are felt, never drawn (no marks, at rest or in a drag: the glass's detent glide and the figure already say a stop was
   reached), and R28's three ray bands are one continuous colour in the fill.
   --h, the warmth: lever.js heatOf, 0 to 3x, smoothstep to 1 at 10x, of the value as the glass draws it (capsule.js --heat per
   frame, so it follows the glide; --lev-heat, the target, before the glass mounts). A pure function of the value: a 2.5x
   market at Max has --h 0 and stays R26's blue.
   --tone-end, the far end's colour: the bar's tone turned, in oklch, to violet over --h 0 to .5 and on to magenta over .5 to 1
   (zee's pick, R30). Both at the bar's own L at Max (.551), so the end never reads lighter than the bar; the change is hue
   and chroma (emil-color: hue moves, L holds). Violet h 300 C .23 reads violet, not lilac; magenta h 330 C .22 (Calm, ?mag=soft,
   C .18) stops short of rose. Mixed in oklch, blue to magenta runs through violet at full chroma, never through grey */
.levl {
  --vio: oklch(0.551 0.230 300);
  --mag: oklch(0.551 0.220 330);
  --h: var(--heat, var(--lev-heat, 0));
  --tone-end: color-mix(in oklch, var(--mag) calc(clamp(0, var(--h) * 2 - 1, 1) * 100%), color-mix(in oklch, var(--vio) calc(clamp(0, var(--h) * 2, 1) * 100%), var(--tone)));
}
.levl[data-mag="soft"] { --mag: oklch(0.551 0.180 330); }
.levl[data-off] { --tone-end: var(--tone); }
/* the fill: the tone on its first 30%, then eased (smoothstep, sampled at 7 stops: emil-surfaces 5, no linear banding, no
   hard stop) to --tone-end at the glass's left edge (--gx), and --tone-end on from there under the cap, so the colour reaches
   the glass wall, cut by the same 2 px gap. In px of the track, so the bar and the glass's held copy (left 0 on the same
   origin) draw one gradient */
.levl .levl-fill {
  --g: var(--gx, var(--fx));
  background-image: linear-gradient(in oklch 90deg,
    var(--tone) 0px,
    var(--tone) calc(var(--g) * 0.3),
    color-mix(in oklch, var(--tone-end) 6.1%, var(--tone)) calc(var(--g) * 0.405),
    color-mix(in oklch, var(--tone-end) 21.6%, var(--tone)) calc(var(--g) * 0.51),
    color-mix(in oklch, var(--tone-end) 42.5%, var(--tone)) calc(var(--g) * 0.615),
    color-mix(in oklch, var(--tone-end) 64.8%, var(--tone)) calc(var(--g) * 0.72),
    color-mix(in oklch, var(--tone-end) 84.4%, var(--tone)) calc(var(--g) * 0.825),
    color-mix(in oklch, var(--tone-end) 97.2%, var(--tone)) calc(var(--g) * 0.93),
    var(--tone-end) var(--g));
}
/* the glass holds the colour that reaches it: inside the glass --tone is the far end's colour, so the painted field
   (capsule.js colAt reads .gl-tone), the held copy, the held field and its top light (glass-frame.js fallCSS, unchanged) are
   one colour with the bar's end at every value. --tone-end is resolved on .levl, so this is no cycle */
.levl .gl { --tone: var(--tone-end); }
.levl .gl-tone { background: var(--tone-end); }
/* r36, the signature (signature.js): a WebGL canvas inside the bar's fill, so the fill's clip and its 2 px gap mask cut it.
   Made on the first upward drag; hidden whenever its light is 0. No blend mode: the shader writes premultiplied colour */
.levl-sig { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
/* r36, one blue (zee 13:33Z: "I dont like the asethtics of the controller with the harsh rim like this also the purple").
   The bar is the leverage tone at every value: --tone-end is the tone itself, so R35's gradient collapses to one colour and the
   glass (.gl --tone, .gl-tone) holds the same blue. The leverage reads from the figure and, while dragging up, the signature
   (signature.js), which turns its hue only inside its own light and fades back to this blue. */
/* shared/lever.css mixes the tone toward white by the value (86% of the token at the floor, 100% at Max), so 1.5x read
   periwinkle and Max azure: two blues. Here the tone is the Dusk action-leverage token at every value; Disabled keeps its grey */
.levl { --tone: oklch(var(--action-leverage-solid)); }
.levl[data-off] { --tone: oklch(var(--ink-subtle)); }
.levl, .levl[data-mag="soft"] { --tone-end: var(--tone); }
/* r36, no ring around the glass: R20's 2 px gap showed the card between the bar and the glass (L .98 in light, a white
   ring; .19 in dark, a black one, measured on r35 at DPR 3). --lev-gap moves the bar's arc 1.5 px under the glass's wall,
   so the bar runs into the glass and its own edge is the only edge. ?gap=2 restores R35's 2 px for comparison */
.levl, .ltv { --lev-gap: -1.5px; } /* Borrow too (coordinator, R36 critic): the two sliders are one glass */
.levl[data-gap="2"], .ltv[data-gap="2"] { --lev-gap: 2px; }
/* r36, the soft rim: the glass's painted edge light (rest .gl-spec and .gl-edge, held .gl-dspec and .gl-drim; capsule.js
   sets their opacity per frame, so filter: opacity scales it on top) at --lev-rim. On r35 the wall line rose L +.2 over the bar
   at Max (.55 -> .76, DPR 3), a light-grey outline all round. Now the light stays where glass catches it, along the top
   (--lev-rim-top, .8), and the sides and foot keep .36 (the mask's .45 of it): a lit top edge, no outline. .gl-edge carries
   capsule.js's own inline mask (the colour's end), so it takes the side value alone. A look on all-round .4 read Max rest as
   "a flat blue pill" */
.levl, .ltv { --lev-rim-top: 0.8; --lev-rim-side: 0.45; }
:is(.levl, .ltv) :is(.gl-spec, .gl-dspec, .gl-drim) {
  filter: opacity(var(--lev-rim-top));
  -webkit-mask-image: linear-gradient(180deg, black 0, black 18%, rgb(0 0 0 / var(--lev-rim-side)) 46%);
  mask-image: linear-gradient(180deg, black 0, black 18%, rgb(0 0 0 / var(--lev-rim-side)) 46%);
}
:is(.levl, .ltv) .gl-edge { filter: opacity(calc(var(--lev-rim-top) * var(--lev-rim-side))); }
/* r36 critic must-fix 1: no ramp toward Max. The earlier ramps (sides .45 -> .75, dark top .55 -> 1 over the last 15%) put
   zee's own state, dark Max at rest, back at R35's grey rim (131 px vs 133). Held flat at every value; dark at top .55. */
.dark :is(.levl, .ltv) { --lev-rim-top: 0.55; }
/* held: the drawn thickness band (.gl-drim, rimDockURL, a lens-shade grey all round) read as a grey double contour; a trace */
:is(.levl, .ltv) .gl-drim { filter: opacity(0.06); /* r36 (coordinator): .2 -> .12; r37: .06, the held 1.5x/4x light contour */ -webkit-mask-image: none; mask-image: none; }
/* r36 (coordinator): the held sides and foot quieter still (the look still read a faint contour on held 1.5x and 4x) */
:is(.levl, .ltv):not([data-gap="2"]) .gl-dspec { --lev-rim-side: 0.3; }
.dark :is(.levl, .ltv):not([data-gap="2"]) .gl-dspec { --lev-rim-top: 0.3; --lev-rim-side: 0.2; } /* r37: the look read a faint grey rim on held 1.5x and 4x in dark (top .55 -> .3, sides .3 -> .2) */
:is(.levl, .ltv)[data-gap="2"] { --lev-rim-top: 1; --lev-rim-side: 1; }
:is(.levl, .ltv)[data-gap="2"] .gl-drim { filter: none; }
.levl-track > .levl-fill, .levl-track > .levl-rail, .ltv-track > .ltv-layers {
  --gap-mask: radial-gradient(circle at calc(var(--gx) + var(--gr)) 50%, transparent calc(var(--gr) + var(--lev-gap)), black calc(var(--gr) + var(--lev-gap) + 0.5px));
}
/* r29 (R28 critic MUST-1): lever.js hides a preset above the cap (3x on a 2.5x market); the base display:flex beat [hidden] */
.levl-preset[hidden] { display: none; }
/* r29 (critic SHOULD): a grab affordance on a fine pointer; grabbing while held */
@media (hover: hover) and (pointer: fine) {
  .levl-range:not(:disabled) { cursor: grab; }
  .levl[data-drag] .levl-range:not(:disabled) { cursor: grabbing; }
}
/* r28, disabled (lever.js setOff): the bar ink-subtle (lever.css), the figure muted, presets and cap at .4, no pointer */
.levl[data-off] .levl-track { cursor: not-allowed; }
.levl[data-off] .levl-preset { cursor: not-allowed; }

/* r37, held glass (zee 19:29Z on R36: "the only issue I have rn is the active or the held state"). Held over a full bar the
   copy's colour field thins by --held-see (capsule.js, MAX_GLASS.see x full x press), so the bar's band reads softly through
   the held body as it does at rest, under the same lit top third and sheen: translucent glass, one object with rest */
.levl .gl-sharp .gl-stretch::after, .ltv .gl-sharp .gl-stretch::after { opacity: calc(var(--hf, 0) * (1 - var(--held-see, 0))); } /* r43 re-check: Borrow too; r44: light as well (heldFull.light .3) */
/* r43 re-check (critic should-fix a; zee 19:29Z "so the 100% is clear from the bar"): held at 100%, Borrow's copy also
   carries the bar's own fill under that field, opaque, so the held body read as the bar (dark dE 2.2). It thins by the
   same --held-see, so the band behind reads softly through: translucent glass, as Leverage's held. r44: light too (the
   look on R43: light held read "opaque rather than translucent"). 0 when not held or below full */
.ltv .gl-sharp .ltv-fill { opacity: calc(1 - var(--held-see, 0)); }
/* r45 (the R44 critic: through the held Borrow lens the bar's top and foot edges showed razor sharp, steps 9.3 / 8.3 light and
   7.7 / 10.6 dark, a "striped, banded" read; zee 19:29Z "held state", "soft rim, sublime and subtle"): Leverage's own held
   softening ((3) below, blur 1.5 px on the held copy's rail and fill), on Borrow's held copy of the bar, with the full bar
   only (--held-soft, capsule.js: 0 mid-track, where an even blur pulled the fill's end into the glass, held to bar 30-34 ->
   24 light). The held copy only; rest, Max and the keyboard never show it */
.ltv .gl-sharp .ltv-layers { filter: blur(calc(1.5px * var(--held-soft, 0))); }
/* r46 (the R45 critic's should-fix: dark held Borrow at Max, the card through the lens below the bar read as a dark band, L .368
   under the lit top band's .415): Leverage's own dark held lift (r37 below, the card toward --light by 10%), on the copy's
   lower half only, where no lit third reaches, and with the full bar only (--held-soft), so mid-track the lens is R45's */
.dark .ltv .gl-sharp { background-image: linear-gradient(180deg, transparent 50%, oklch(var(--light) / calc(0.1 * var(--held-soft, 0))) 72%); }
/* r37, the top told from the bar (zee: "a bit tiny difference or something so the 100% is clear from the bar"): a hairline of
   the tone lit toward white along the glass's leading cap, where the bar runs into it. An inset light edge offset to the
   left, so it is a crescent at the cap's middle thinning to nothing at the top and foot: no ring, no grey (C stays > .1),
   no glow outward. --max-lead (capsule.js) is 0 below 94% and 1 at the top, rest and held. On .gl itself (its box is the
   body's), above every glass layer */
.levl .gl::after {
  content: ""; position: absolute; inset: 0; border-radius: 999px; pointer-events: none;
  box-shadow: inset 1.5px 0 1px -0.5px color-mix(in oklch, var(--tone), white 45%);
  opacity: calc(var(--max-lead, 0) * var(--lev-lead-a, 0.7));
}
.dark .levl .gl::after { --lev-lead-a: 0.6; }
/* r37, light: the glass at 1.5x and 4x read cream (h 53 to 93, C .015 to .019 measured on R36: the card, h 76, and the
   rail, oklch .91 .02 71, seen warm through the frost). What the glass shows of them, its copies and its milk, takes a
   trace of a light tint of the tone, so the frost leans to the bar's blue at every fill, rest and held, and reads as the
   glass Max is. The bar's own rail and the card outside the glass keep their colour. The tint is the tone lifted to L .8
   at half its chroma (so the glass darkens about .02 L, not .05) and turned 8 degrees toward cyan: the card and the rail
   lean red (a > 0), and the tone's own hue mixed into them came out lavender (h 266 to 283 measured; no purple). Mixed in
   oklab: in oklch the card's h 76 and the tone's h 258 are 182 degrees apart and the short way ran through red */
.levl { --lev-tint: oklch(from var(--tone) 0.8 calc(c * 0.5) calc(h - 8)); }
html:not(.dark) .levl .gl-lv { background: color-mix(in oklab, oklch(var(--surface-card)), var(--lev-tint) 12%); }
html:not(.dark) .levl .gl-lv .levl-rail { background: color-mix(in oklab, oklch(var(--surface-track)), var(--lev-tint) 22%); }
html:not(.dark) .levl .gl-milk { background: color-mix(in oklab, oklch(var(--surface-card)), var(--lev-tint) 12%); }
/* r37, held is the same glass as rest. Light: the rail seen sharp through the held glass takes half rest's tint (at 22% it
   read slate grey). Dark: the card seen through the held glass is lifted a trace toward the glass's own light, as rest's
   milk lifts it, so held is the rest glass cleared, not a darker smoke (held 1.5x body L .28 vs rest .37 on R36) */
html:not(.dark) .levl .gl-sharp .levl-rail { background: color-mix(in oklab, oklch(var(--surface-track)), var(--lev-tint) 11%); }
.dark .levl .gl-sharp { background: color-mix(in oklab, oklch(var(--surface-card)), oklch(var(--light)) 10%); }
/* r37b, dark held (the look, four rounds: held 1.5x and 4x read a smoky capsule beside rest's frost, the blue stopping on a
   hard round cap, a darker lower band at Max, a faint grey edge). Held is the rest glass cleared and lifted a trace:
   (1) the body is a frost, not a smoke: the held tint lifted from L .345 to about rest's own, top to foot nearly level (no
   lower band; the foot stop was .305, the darkest thing in the glass). Leverage only: Borrow keeps its tokens */
/* r37d (the critic's re-check: dark held Max "a flat, opaque pill", top .586 against rest .499): at the top (--max-lead,
   0 below 94%) the frost eases back to the base dark mats (.42 / .345 / .305), so over a full bar the held glass is the
   smoke rest is and the bar and its edge read through; 1.5x and 4x keep the frost */
.dark .levl .gl-mat {
  --glass-mat-top: calc(0.62 - 0.2 * var(--max-lead, 0)) 0.01 252;
  --glass-mat-mid: calc(0.69 - 0.345 * var(--max-lead, 0)) 0.01 252;
  --glass-mat-bot: calc(0.83 - 0.525 * var(--max-lead, 0)) 0.01 252;
}
/* (2) the blue runs under the glass: mid-track the held copy's fill ended on the value in one pixel (L .54 to .34); it now
   eases out over 12 px each side of the value, as rest's painted colour does over about 40% of the glass, shorter (held is
   clearer). Near the top FEATHER (--ff) still wins where it is wider */
.levl .gl-sharp .levl-fill {
  --lev-hfe: max(var(--ff, 0px), 12px);
  clip-path: none; /* the mask ends it; a clip would cut (3)'s blur at the bar's top and foot */
  /* the mask clips to the box, so the box is 8 px taller each way and the colour painted in its content box only: (3)'s blur
     then spreads past the bar's top and foot instead of stopping on them */
  box-sizing: border-box; top: calc((var(--track-h) - var(--rail-h)) / 2 - 8px); height: calc(var(--rail-h) + 16px);
  padding-block: 8px; background-clip: content-box;
  -webkit-mask-image: linear-gradient(90deg, black calc(var(--fx) - var(--lev-hfe)), rgb(0 0 0 / 0.72) calc(var(--fx) - var(--lev-hfe) * 0.4), rgb(0 0 0 / 0.34) calc(var(--fx) + var(--lev-hfe) * 0.2), rgb(0 0 0 / 0.1) calc(var(--fx) + var(--lev-hfe) * 0.7), transparent calc(var(--fx) + var(--lev-hfe)));
  mask-image: linear-gradient(90deg, black calc(var(--fx) - var(--lev-hfe)), rgb(0 0 0 / 0.72) calc(var(--fx) - var(--lev-hfe) * 0.4), rgb(0 0 0 / 0.34) calc(var(--fx) + var(--lev-hfe) * 0.2), rgb(0 0 0 / 0.1) calc(var(--fx) + var(--lev-hfe) * 0.7), transparent calc(var(--fx) + var(--lev-hfe)));
}
/* (3) seen through the held glass the rail's edges were sharp: under it the bare card (L .30) read as a darker lower band,
   at Max too (.57 over .51 in one row). Held keeps the rail and the colour but softens their edges a trace (rest's frost
   blurs them over about 10 px; held 1.5 px), so the glass reads clearer than rest, never striped */
/* at the top (--max-lead, 0 below 94%) the bar's band under the thinned colour field softens further, to 5 px */
.levl .gl-sharp .levl-rail, .levl .gl-sharp .levl-fill { filter: blur(calc(1.5px + var(--max-lead, 0) * 3.5px)); }
/* (4) the held copy's lift (brightness 1.09, saturate: frame) raised the blue under the glass above the bar's own (4x L .58
   against .54, the look: "close to a glow"); the colour alone is brought back to the bar's, the rail keeps the lift */
.dark .levl .gl-sharp .levl-fill { filter: blur(calc(1.5px + var(--max-lead, 0) * 3.5px)) brightness(0.96) saturate(0.85); }
/* (5) held at Max (the look: "a nearly solid blue pill", the body on the bar's L with its chroma): the colour field in the
   held glass is the tone with a trace of white, so the held top reads a few points lighter and softer than the bar */
.dark .levl .gl-sharp .gl-stretch::after { background: color-mix(in oklab, var(--tone), white 7%); }
/* r37c, light held (the critic, R37: "still a grey pill", held mid band L .854 C .004 h91 against its own top .969; rest
   reads a cool frost, mid .952 h234). The dark fix mirrored: (2) and (3) above now hold in both themes (r37d). The held copy's dim (brightness .93 before the fill,
   frame's) now sits on the colour alone (capsule.js r37c sets --copy-dim): on the whole copy it held the rail under L .94
   whatever its colour (a white rail read .939; a brightness lift on the rail clipped its blue). The rail seen through the
   held glass moves 85% of the way to the rest glass's milk, a little more tinted, so it keeps a cool hue: held is rest's
   frost cleared, the rail a faint band in it, never a grey one */
html:not(.dark) .levl .gl-sharp .levl-rail {
  background: color-mix(in oklab, color-mix(in oklab, oklch(var(--surface-track)), var(--lev-tint) 22%), color-mix(in oklab, oklch(var(--surface-card)), var(--lev-tint) 16%) 85%);
}
/* r37d (the critic's re-check: light held Max "a hard horizontal band", row step .089): light takes dark's whole (2) and (3),
   the taller box, the 12 px fade and the blur that widens at the top, so over a full bar the band dissolves into the glass */
html:not(.dark) .levl .gl-sharp .levl-fill { filter: blur(calc(1.5px + var(--max-lead, 0) * 3.5px)) brightness(var(--copy-dim, 1)); }
html:not(.dark) .levl .gl-sharp .gl-stretch::after { filter: brightness(var(--copy-dim, 1)); }
/* r37c (the critic: "a faint warm-grey halo under the light held thumb"): the glass's own lift and drop in light Leverage
   take a cool shade (h 255, the bar's side) in place of the dock's warm one (h 62); the alphas stay frame's (held drop .145,
   rest .07). The page's other lifts (the presets, the segments) keep the dock shade */
html:not(.dark) .levl .gl-shadow { --dock-lens-shade: 0.3 0.025 255; }

/* r37d, held at the top (the critic's re-check: dark held Max "a flat, opaque pill", column spread .001 against rest .084;
   light held Max a hard band, its middle .61 under its top .73). Rest at Max reads across: the bar's end and the card beyond
   it show at the right rim (dark .56 to .48, light .65 to .76). Held keeps that read: over the held body, at --max-lead only
   (0 below 94%), a horizontal wash eases from clear at a fifth of the way to the card's colour at the right rim, so the
   glass stays glass, the right reads like rest, and the 100% edge (.gl::after, above it) stays the clearest line. In light
   the bar under the held glass thins at the top, so its band stays inside the glass's own L range */
.levl .gl-mat::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(90deg, transparent 20%, oklch(var(--surface-card) / var(--lev-wash-a, 0.5)) 100%);
  opacity: var(--max-lead, 0);
}
.dark .levl .gl-mat::after { --lev-wash-a: 0.9; }
html:not(.dark) .levl .gl-sharp .levl-fill, html:not(.dark) .levl .gl-sharp .levl-rail { opacity: calc(1 - 0.45 * var(--max-lead, 0)); }
/* r37d (the critic, SHOULD a: dark 4x held lost rest's blue past the bar's end, C .009 in the glass's right half against .066
   at rest): rest's frost carries the colour about 10 px past its end; held, in dark, the fill's fade widens from 12 to 22 px */
.dark .levl .gl-sharp .levl-fill { --lev-hfe: max(var(--ff, 0px), 22px); }

/* ---------- r39 · the controls at the slider ----------
   zee 22:40Z: "I mainly meant the controls around the slider like yes the max and ltv max etc ... dont forget this is a
   snippet of the ui .. there are other elements around it"; on R38: "also its soo crowded". Three things stay at each
   slider, the same on Leverage and Borrow: the label (14/20, muted), the value (16/24, 600, ink, tabular) and Max (14/20,
   muted, ink when on), the one shortcut and the limit it names. No chips, no limit line, no facts: those are the panel's.
   One flat DOM in a grid, one line over the bar (r42: B, the pick; A is gone). Gaps: 4 between
   rows (the 32 px track carries 8 px of air above and below its 16 px rail, so text sits 12 px from the bar) */
.levl.mc, .ltv.mc { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 8px; align-items: baseline; font-size: 14px; line-height: 20px; }
.mc > .levl-track, .mc > .ltv-track { grid-column: 1 / -1; margin: 0; }
.mc-label { color: oklch(var(--ink-muted)); font-weight: 500; line-height: 24px; white-space: nowrap; }
/* r41: the value is the line's one hero at R36's figure size (zee: R36 "really nice": 20 px, 600, -0.2 px); a 20 px line on the
   shared baseline keeps the row at 24 px and the slot at 64 (no shift on mount); label and Max stay 14 */
.mc-value { font-size: 20px; line-height: 20px; font-weight: 600; letter-spacing: -0.2px; color: oklch(var(--ink)); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mc-chip {
  /* r46b (zee 12:55Z on R45's underlined "Max 10x": "i dont like this now it looks weird can we get similar to how it look for
     the controller?"; the controller, in zee's record, is the glass knob): Max is a small piece of the knob, not a link and not
     a chip. The knob's measures: 24 px tall (--cap-h), a full pill (999), 12 px a side (the page's 4 px scale). Its surface is
     the knob's at rest, off the bar: a trace of its frost (--max-frost) and its soft rim (--max-rim: a lit top hairline, the
     sides a trace), no drop shadow. The capsule's right edge, not its ink, is the bar's end: the same edge as the glass at Max,
     one right edge for the row (with the ink flush the capsule would stand 12 px past it, the R43 critic's third edge).
     Same 24 px line: no row shift. z-index 1 (R46 critic MUST-FIX): the range input reached 6 px into the row and took the
     capsule's foot, so a tap there set 8x; above it, Max owns its full 44 px and the bar keeps its own rows */
  position: relative; z-index: 1; height: 24px; padding: 0 12px; margin: 0; border: 0; border-radius: 999px;
  background: var(--max-frost); box-shadow: var(--max-rim);
  font: inherit; line-height: 24px; white-space: nowrap; cursor: pointer;
  font-variant-numeric: tabular-nums; justify-self: end;
  /* emil-touch-and-accessibility checklist: no tap flash box, no double-tap zoom wait on the one tap target */
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  /* emil-ui-polish 0.97 on press, from the right: the capsule's end stays on the bar's end while it gives */
  transform-origin: 100% 50%;
  transition: color 150ms ease-out, scale 150ms ease-out, opacity 150ms ease-out, background-color 150ms ease-out, box-shadow 150ms ease-out;
}
/* the knob's frost, a trace: light, the card toward the knob's own tint (Leverage's .gl-lv/.gl-milk mix --lev-tint 12% into the
   card; Max takes half, 6%, a trace, never milky), with each module's tint made the same way from its tone; dark, the card
   toward --light 6% (the knob's dark frost is a veil of --light). The rim: the glass's r36 soft rim, a lit top edge and the
   sides a trace; in light the lit edge needs a shade trace beside it to read on the card (the knob's .gl-shade, at a hairline) */
.levl, .ltv { --max-tint: oklch(from var(--tone) 0.8 calc(c * 0.5) calc(h - 8)); }
.levl[data-off] { --max-tint: oklch(var(--ink-subtle)); }
/* r47 (should-fix 1, Borrow parity): teal at half chroma could not outweigh the warm card (rest measured oklch .972 .0065 121,
   olive greige); at its full chroma and turned 24deg toward cyan, 10% lands on the knob's own teal (hue ~173, as Borrow's on) */
.ltv { --max-tint: oklch(from var(--tone) 0.8 c calc(h + 24)); }
.mc-chip {
  /* r47 (R46 critic should-fix 1): at 6% light Leverage's rest read plain grey on the card; 10% lets a trace of the knob's
     blue (Borrow's teal) through, still under the knob's own 12% */
  --max-frost: color-mix(in oklab, oklch(var(--surface-card)), var(--max-tint) 10%);
  --max-frost-hover: color-mix(in oklab, oklch(var(--surface-card)), var(--max-tint) 12%);
  --max-rim: inset 0 0.5px 0 oklch(var(--light) / 0.9), inset 0 0 0 0.5px oklch(var(--dock-lens-shade) / 0.14);
  --max-rim-hover: inset 0 0.5px 0 oklch(var(--light) / 1), inset 0 0 0 0.5px oklch(var(--ink) / 0.14);
  --max-on: 12%;
}
.dark .mc-chip {
  --max-frost: color-mix(in oklab, oklch(var(--surface-card)), oklch(var(--light)) 6%);
  --max-frost-hover: color-mix(in oklab, oklch(var(--surface-card)), oklch(var(--light)) 8%);
  --max-rim: inset 0 0.5px 0 oklch(var(--light) / 0.14), inset 0 0 0 0.5px oklch(var(--light) / 0.05);
  --max-rim-hover: inset 0 0.5px 0 oklch(var(--light) / 0.2), inset 0 0 0 0.5px oklch(var(--ink) / 0.14);
  --max-on: 22%;
}
/* R46 critic should-fix: Borrow's teal mixed at Leverage's share read near neutral (chroma .011 against .021); Borrow mixes more
   so both read on at about the same chroma */
.ltv .mc-chip { --max-on: 22%; }
.dark .ltv .mc-chip { --max-on: 40%; }
/* the hit area (emil-touch-and-accessibility 2, a pseudo-element): 44 px tall on every pointer, the capsule's width. 16 px up
   (the panel field above ends 16 px over the row and holds no control) and 4 px down (the bar's track starts 4 px below the
   row), so a press on the bar or the glass never lands on Max */
.mc-chip::after { content: ""; position: absolute; inset: -16px 0 -4px; }
/* states, the knob's: at rest "Max" muted at 500, its limit muted at 400, quieter than the value. Hover (quiet): the ink and the
   rim a touch brighter. Pressed: 0.97. Keyboard focus: the knob's own ring (2 px card, 2 px ink .72). On: the module's tone
   through the frost, as the glass over its bar, and the ink */
.mc-chip { color: oklch(var(--ink-muted)); font-weight: 500; }
.mc-word { transition: color 150ms ease-out; }
.mc-lim { color: oklch(var(--ink-muted)); font-weight: 500; transition: color 150ms ease-out; }
.mc-chip[data-on] { background: color-mix(in oklab, var(--tone) var(--max-on), var(--max-frost)); }
.mc-chip[data-on] .mc-word, .mc-chip[data-on] .mc-lim { color: oklch(var(--ink)); }
.mc-chip:not(:disabled):active { scale: 0.97; } /* emil-ui-polish: 0.97, never below */
@media (any-hover: hover) {
  /* r47 (R46 critic should-fix 2, "J (hover) is barely different from B"): one quiet, visible step: the frost +2% and the sides'
     trace at the focus ring's ink, .14; on keeps its own tint */
  :root[data-pointer="mouse"] .mc-chip:not(:disabled):hover, :root:not([data-pointer]) .mc-chip:not(:disabled):hover { background: var(--max-frost-hover); box-shadow: var(--max-rim-hover); }
  :root[data-pointer="mouse"] .mc-chip[data-on]:not(:disabled):hover, :root:not([data-pointer]) .mc-chip[data-on]:not(:disabled):hover { background: color-mix(in oklab, var(--tone) var(--max-on), var(--max-frost-hover)); }
  :root[data-pointer="mouse"] .mc-chip:not([data-on]):not(:disabled):hover :is(.mc-word, .mc-lim), :root:not([data-pointer]) .mc-chip:not([data-on]):not(:disabled):hover :is(.mc-word, .mc-lim) { color: oklch(var(--ink)); }
}
.mc-chip:focus-visible :is(.mc-word, .mc-lim) { color: oklch(var(--ink)); }
.mc-chip:focus-visible { outline: none; box-shadow: var(--max-rim), 0 0 0 2px oklch(var(--surface-card)), 0 0 0 4px oklch(var(--ink) / 0.72); }
.mc-chip[aria-busy="true"] { opacity: 0.5; cursor: progress; }
.mc-chip:disabled { cursor: default; }
.levl[data-off] .mc-label, .levl[data-off] .mc-value, .levl[data-off] .mc-chip { opacity: 0.4; }


/* the Borrow bar ends at Max like Leverage's (r42: the band past it, R38's, is gone with its lab row; ltv.js still draws
   its layers, hidden here) */
.ltv[data-band="off"] .ltv-layers > .ltv-band, .ltv[data-band="off"] .ltv-layers > .ltv-max, .ltv[data-band="off"] .gl-tick { display: none; }
/* band off: Max is the track's end (capsule.js maxPct 100), so the rail runs the whole track, round at both ends, as
   Leverage's; --mx moves to the end (+3 px, the rail's old gap before the tick) and every width that reads it follows */
.ltv[data-band="off"] { --mx: calc(100cqw + 3px); }
.ltv[data-band="off"] .ltv-layers > .ltv-rail { border-radius: var(--rail-r); }
.ltv[data-band="off"] .gl-clear .ltv-layers > .ltv-rail { width: calc(100cqw + 64px); border-radius: 0; }

/* the slot holds the controls' height until the slider mounts (4 px top padding included): no layout shift on load */
/* r49: the defaults (head C, Rail, Ends) on both sliders: 4 + 24 head + 4 + 32 track + 8 + 28 options + 8 + 24 readout */
.slot:empty { min-height: 132px; }

/* r39 (critic): a market whose cap is not known yet holds its fill and glass (the value reads "—") until Max finds the
   cap, so nothing is ever drawn on the 10x protocol scale and then jumps; they fade in at the found Max, 200 ms */
.levl > .levl-track > .gl { transition: opacity 200ms ease-out; } /* the fill's own transition list carries its opacity */
.levl[data-pending] > .levl-track > .levl-fill, .levl[data-pending] > .levl-track > .gl { opacity: 0; transition: none; }
.levl[data-pending] .mc-value { color: oklch(var(--ink-muted)); }
.levl[data-pending] .levl-rail { mask: none; -webkit-mask: none; }
/* r42 (subtraction, gap.md): Max on is its fill alone; r40's 1 px ring was a second depth cue on a 24 px pill (R36's ring
   was the preset group's, not the chosen segment's) */
/* r40 (motion check): the rail and fill carry a cut where the glass sits (--gap-mask). As the pending glass faded in, the
   cut came back at once, so a dark disc showed under the still-clear glass for its first ~120 ms. The cut now fades with
   the glass: its alpha is 1 - --gap-on, which runs 0 -> 1 over the glass's own 200 ms ease-out (paired timing) */
@property --gap-on { syntax: "<number>"; inherits: true; initial-value: 1; }
.levl > .levl-track { --gap-on: 1; transition: --gap-on 200ms ease-out; }
.levl[data-pending] > .levl-track { --gap-on: 0; transition: none; }
.levl > .levl-track > .levl-fill, .levl > .levl-track > .levl-rail {
  --gap-mask: radial-gradient(circle at calc(var(--gx) + var(--gr)) 50%, oklch(0 0 0 / calc(1 - var(--gap-on))) calc(var(--gr) + var(--lev-gap)), black calc(var(--gr) + var(--lev-gap) + 0.5px));
}
@media (prefers-reduced-motion: reduce) { .levl > .levl-track > .gl, .levl > .levl-track { transition: none; } }

/* r39 (critic): Borrow's glass body in light. Its teal is low in chroma (0.094, Leverage's blue 0.2), so its painted body
   takes more saturation in light (1.2 -> --b-sat) as well as the lifted alpha (capsule.js paintField body lift and floor);
   dark is unchanged (0.85 / 1, r10) */
:root:not(.dark) .ltv .gl-col { --deep-sat: var(--b-sat, 1.5); }

/* ---------- r48 (1, 2) · the quick options and one head line ----------
   zee 16:57Z on R47: "we removed quick options? also it should be done after calculating the max no?" and "the head like is
   sooo badly design and the max is in different scale". The options are the market's detents, made once its max is known
   (lever.js, ltv.js), as R46/R47's Max capsule: every option is that capsule and Max is the last. Three heads (the lab's
   Head row, [data-head]), one family on Leverage and Borrow. The type scale is two sizes (better-typography: a few sizes with
   roles): 14 for the options and the info, 16 for B and C's label and value; A sets the whole line at 14. Weights 400 muted
   (label, words), 500 (options), 600 ink (value), tabular figures. Gaps from the page's 4 px scale: 4 inside a group (the
   options, head to bar), 8 between the label and value, 12 between groups (bar to options; better-layout: between groups at
   least 2x within) */
.slot { container-type: inline-size; }
.levl.mc, .ltv.mc { column-gap: 8px; row-gap: 4px; }
.mc-chips { display: flex; gap: 4px; min-width: 0; }
/* z-index 2: the range input (z 1) comes after the chips in A's DOM and took a chip's bottom 3 rows (hit46: a tap at row 22
   set 9x); above it each chip owns its whole box and its hit area, which stops at the bar's top */
.mc-chip { min-width: 44px; text-align: center; font-size: 14px; transform-origin: 50% 50%; z-index: 2; }
.mc-max { transform-origin: 100% 50%; }
/* an option that arrives (a found cap, a market switch) fades in, 150 ms; Max is there from the start */
@starting-style { .mc-chip:not(.mc-max) { opacity: 0; } }
/* on: the glass's own colour through the frost; on Borrow that is the fill's end, which warms near the max */
.ltv { --chip-tone: var(--tone-end); }
/* R48 critic MUST-FIX 1 and should-fix: the On option repeated the value beside it at the same weight, and on Borrow at Max the
   tone mixed into the frost in oklab read brown, near disabled (L .90 C .03). On is now quieter than the value and tinted from
   the bar's own colour at its hue: light a pale wash of the tone at L .955 (C at most .04: teal .028, the max's caution .039,
   blue .040), its words in a deep tint of it (L .44, about 7:1) rather than the ink; dark the frost with 8% of the tone and the words in a light tint of it (L .86), so warm reads
   gold, never brown. The value (16 px, 600, ink) stays the one that leads and never moves while dragging */
.mc-chip[data-on] { background: oklch(from var(--chip-tone, var(--tone)) 0.955 min(calc(c * 0.3), 0.04) h); }
.dark .mc-chip[data-on] { background: color-mix(in oklch, var(--chip-tone, var(--tone)) 8%, var(--max-frost)); }
.mc-chip[data-on], .mc-chip[data-on] :is(.mc-word, .mc-lim) { color: oklch(from var(--chip-tone, var(--tone)) 0.44 min(c, 0.1) h); }
.dark .mc-chip[data-on], .dark .mc-chip[data-on] :is(.mc-word, .mc-lim) { color: oklch(from var(--chip-tone, var(--tone)) 0.86 min(c, 0.1) h); }
@media (any-hover: hover) {
  :root[data-pointer="mouse"] .mc-chip[data-on]:not(:disabled):hover, :root:not([data-pointer]) .mc-chip[data-on]:not(:disabled):hover { background: oklch(from var(--chip-tone, var(--tone)) 0.94 min(calc(c * 0.34), 0.045) h); }
  :root[data-pointer="mouse"].dark .mc-chip[data-on]:not(:disabled):hover, :root.dark:not([data-pointer]) .mc-chip[data-on]:not(:disabled):hover { background: color-mix(in oklch, var(--chip-tone, var(--tone)) 11%, var(--max-frost-hover)); }
}
.levl[data-off] .mc-chip { opacity: 0.4; }
.levl[data-finding] .mc-chip:not(.mc-max) { opacity: 0.4; }
/* the info line (Borrow): words muted, figures ink, the distance warming with the bar's end (--h, the same risk) */
.mc-info { margin: 0; font-size: 14px; line-height: 20px; color: oklch(var(--ink-muted)); font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 0; }
.mc-n { color: oklch(var(--ink)); }
/* R48 critic should-fix: no "·" (zee: no dots); the two facts part by a 12 px gap (the page's group gap), the comma kept for
   screen readers only */
.mc-sep { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* R48 critic MUST-FIX 2: the distance takes the bar's warmth on the same risk (--h): ink-muted at rest (light .468, 7:1 on the
   card), to the caution text ink at full contrast near the max: light .44 .12 62 (about 6.9:1 on the card), dark .84 .13 80
   (about 9:1). Mixed in oklch from a near-neutral of the same hue family, so no grey or olive midpoint */
/* r49 (R48 critic should-fix): dark lifted to L .86 so Borrow's On words at Max read as clearly as Leverage's (.86) */
.levl, .ltv { --away-hot: oklch(0.44 0.12 62); }
.dark .levl, .dark .ltv { --away-hot: oklch(0.86 0.12 82); }
/* r49 fix (R49 critic MUST-FIX 4): Borrow's On words come from its tone like Leverage's (the R48 rules above: L .44 light,
   .86 dark, C at most .1); its tone is the bar's end, so they warm with the risk on their own */

/* A · One line: label, value, options on one 24 px line at 14 px over the bar; Borrow's info under the bar */
.mc[data-head="a"] { grid-template-columns: auto minmax(0, 1fr) auto; font-size: 14px; line-height: 24px; }
.mc[data-head="a"] .mc-value { font-size: 14px; line-height: 24px; letter-spacing: 0; }
.mc[data-head="a"] .mc-chips { grid-column: 3; justify-content: flex-end; }
/* the one line must hold Borrow's widest value ("68.75%") beside its options in a 334 px track: the options take 10 px a side
   (B and C keep the knob's 12); the options stay put on the right and the value grows into the room left of them */
.mc[data-head="a"] .mc-chip { padding-inline: 10px; }
.mc[data-head="a"] .mc-chip::after { inset: -16px 0 -4px; }
.mc[data-head="a"] .mc-info { grid-column: 1 / -1; }

/* B · Chips under: label and value at 16 over the bar; under it the options at their own widths, Borrow's info under them;
   every part on the one left edge (better-layout: few shared edges). The info cannot sit beside the options in a 336 px
   track (195 + 8 + 189 px), so it never tries */
.mc[data-head="b"] { grid-template-columns: auto minmax(0, 1fr) auto; }
.mc[data-head="b"] :is(.mc-label, .mc-value), .mc[data-head="c"] :is(.mc-label, .mc-value) { font-size: 16px; line-height: 24px; letter-spacing: 0; }
/* R48 critic should-fix: the options at natural widths ended short of the bar's end (a ragged right edge); they now grow
   from their own widths to fill the row, so both ends sit on the bar's and B stays proportional where C is equal */
.mc[data-head="b"] .mc-chips { grid-column: 1 / -1; }
.mc[data-head="b"] .mc-chip { flex: 1 1 auto; }
.mc[data-head="b"] .mc-info { grid-column: 1 / -1; margin-top: 4px; }
.mc:is([data-head="b"], [data-head="c"]) .mc-chip::after { inset: -4px 0 -16px; }

/* C · Segmented: label and value at the two ends over the bar; under it the options as one row of equal capsules */
.mc[data-head="c"] { grid-template-columns: minmax(0, 1fr) auto; }
.mc[data-head="c"] .mc-value { justify-self: end; }
.mc[data-head="c"] .mc-chips { grid-column: 1 / -1; }
.mc[data-head="c"] .mc-chip { flex: 1 1 0; }
/* R48 critic MUST-FIX 1: with the cap unknown Max is the only option; it keeps its own width on the bar's end, not 334 px */
.mc[data-head="c"] .mc-chips:has(> .mc-chip:only-child) { justify-content: flex-end; }
.mc[data-head="c"] .mc-chip:only-child { flex: 0 0 auto; }
.mc[data-head="c"] .mc-info { grid-column: 1 / -1; margin-top: 4px; }
/* R48 critic should-fix (rows): side by side, Borrow's info line made its card 28 px taller than Leverage's under the
   slider, so the summary rows and the call to action sat 28 px apart across the pair. From 768 (the panels in a row)
   Leverage keeps the info line's room, empty: 20 px under its bar (24 in B and C with their 4 px), so every row below the
   slider shares one line across the cards. On the phone the panels stack and nothing is reserved */
/* r49: Leverage has its own readout now (the same line as Borrow's), so the empty room R48 reserved for it is gone and the
   rows under the slider still share one line across the cards */

/* ---------- r48 (3) · Borrow: nearing the max reads as risk ----------
   zee 16:57Z: "we removed the color based feel like getting closer to the max is risky"; R48 critic MUST-FIX 2: the ramp
   starts at the first quick option (SOL 35%; ltv.js riskOf, linear to 1 at the max) and runs teal to the page's caution on
   one warm path: a straight oklch mix from h184 to h75 passed the olive band (h110-130) at L .55 C .1 for a third of the
   range. The path here is piecewise in L, C and h (the --r* knots, risk 0 / .3 / .42 / 1): teal (.54 .094 184) eases to a
   fresh green (.60 .11 140), crosses the band fast and light, to a clear yellow (.68 .125 104, LTV 45.5-49.7% on SOL), then
   warms to caution-fill (.60 .13 75); chroma never under .094. So it reads warmer from the first option on, like a gauge,
   never olive. Dark ends at L .62 (near the bar's .54) so the end is never the brightest thing on the card. The fill's
   stops sample the same path at Leverage's 7-stop smoothstep weights (emil-surfaces: no banding, no hard stop). No bands,
   no ticks, no purple, no glow */
.ltv {
  /* r51 (critic R50 plan, brief 11-24 15:31Z): the fill runs through sand in oklab. R50's oklch path swung its hue from 184
     down to 75 at full chroma, so its middle passed through yellow-green (hue 100-150) at C .10-.15: the khaki/olive band the
     critic flagged. Now three anchors joined by straight lines in oklab: teal oklch(.54 .094 184) at 0, sand oklch(.74 .045
     90) at .55, the end at 1 (light .60 .13 75, dark .66 .125 78). A straight oklab line from teal to sand passes near grey,
     so where the hue crosses 100-150 the chroma is under .045 (ramp51 checks every stop: none over .07). The fill samples the
     path at u = risk x i/8 (9 stops, oklab between them), so it is one continuous move at every value; the glass and the
     readout take the end (u = risk). Below the first option (risk 0): all teal */
  --r-teal: oklch(0.54 0.094 184); --r-sand: oklch(0.74 0.045 90); --r-end: oklch(0.60 0.13 75);
  --h: var(--heat, var(--ltv-risk, 0));
  --tone-end: color-mix(in oklab, color-mix(in srgb-linear, var(--r-teal), var(--r-sand) calc(clamp(0, var(--h) / 0.55, 1) * 100%)), var(--r-end) calc(clamp(0, (var(--h) - 0.55) / 0.45, 1) * 100%));
}
.dark .ltv { --r-end: oklch(0.66 0.125 78); }
.ltv .ltv-fill {
  --g: var(--gx, var(--fx));
  --s0: color-mix(in oklab, color-mix(in srgb-linear, var(--r-teal), var(--r-sand) calc(clamp(0, 0 / 0.55, 1) * 100%)), var(--r-end) calc(clamp(0, (0 - 0.55) / 0.45, 1) * 100%));
  --s1: color-mix(in oklab, color-mix(in srgb-linear, var(--r-teal), var(--r-sand) calc(clamp(0, (var(--h) * 0.125) / 0.55, 1) * 100%)), var(--r-end) calc(clamp(0, ((var(--h) * 0.125) - 0.55) / 0.45, 1) * 100%));
  --s2: color-mix(in oklab, color-mix(in srgb-linear, var(--r-teal), var(--r-sand) calc(clamp(0, (var(--h) * 0.25) / 0.55, 1) * 100%)), var(--r-end) calc(clamp(0, ((var(--h) * 0.25) - 0.55) / 0.45, 1) * 100%));
  --s3: color-mix(in oklab, color-mix(in srgb-linear, var(--r-teal), var(--r-sand) calc(clamp(0, (var(--h) * 0.375) / 0.55, 1) * 100%)), var(--r-end) calc(clamp(0, ((var(--h) * 0.375) - 0.55) / 0.45, 1) * 100%));
  --s4: color-mix(in oklab, color-mix(in srgb-linear, var(--r-teal), var(--r-sand) calc(clamp(0, (var(--h) * 0.5) / 0.55, 1) * 100%)), var(--r-end) calc(clamp(0, ((var(--h) * 0.5) - 0.55) / 0.45, 1) * 100%));
  --s5: color-mix(in oklab, color-mix(in srgb-linear, var(--r-teal), var(--r-sand) calc(clamp(0, (var(--h) * 0.625) / 0.55, 1) * 100%)), var(--r-end) calc(clamp(0, ((var(--h) * 0.625) - 0.55) / 0.45, 1) * 100%));
  --s6: color-mix(in oklab, color-mix(in srgb-linear, var(--r-teal), var(--r-sand) calc(clamp(0, (var(--h) * 0.75) / 0.55, 1) * 100%)), var(--r-end) calc(clamp(0, ((var(--h) * 0.75) - 0.55) / 0.45, 1) * 100%));
  --s7: color-mix(in oklab, color-mix(in srgb-linear, var(--r-teal), var(--r-sand) calc(clamp(0, (var(--h) * 0.875) / 0.55, 1) * 100%)), var(--r-end) calc(clamp(0, ((var(--h) * 0.875) - 0.55) / 0.45, 1) * 100%));
  --s8: color-mix(in oklab, color-mix(in srgb-linear, var(--r-teal), var(--r-sand) calc(clamp(0, var(--h) / 0.55, 1) * 100%)), var(--r-end) calc(clamp(0, (var(--h) - 0.55) / 0.45, 1) * 100%));
  background-image: linear-gradient(in oklab 90deg,
    var(--s0) calc(var(--g) * 0),
    var(--s1) calc(var(--g) * 0.125),
    var(--s2) calc(var(--g) * 0.25),
    var(--s3) calc(var(--g) * 0.375),
    var(--s4) calc(var(--g) * 0.5),
    var(--s5) calc(var(--g) * 0.625),
    var(--s6) calc(var(--g) * 0.75),
    var(--s7) calc(var(--g) * 0.875),
    var(--s8) calc(var(--g) * 1));
}
.ltv .gl { --tone: var(--tone-end); }
.ltv .gl-tone { background: var(--tone-end); }

/* ---------- r48 (4) · Borrow's held glass is Leverage's ----------
   zee 16:57Z: "the held state here is so different than the leverage one and we should have the leverage one not this".
   capsule.js runs Borrow's glass with Leverage's options (fillGlass); here its held copy takes Leverage's r37 rules, the
   same values, on .ltv-rail and .ltv-fill (inside .ltv-layers, whose box is the bar, so the fill's taller box is -8 px and
   rail + 16 px in it). R45's feathered lens is gone: the fill's see-through, the layer blur, the dark foot lift, the light
   body saturation (the rest body lift, capsule.js body, stays). The tint is Borrow's own (r47's: full chroma, 24deg toward
   cyan; at half chroma the teal read olive on the warm card) */
.ltv .gl-sharp .ltv-fill { opacity: 1; }
.ltv .gl-sharp .ltv-layers { filter: none; }
.dark .ltv .gl-sharp { background-image: none; }
:root:not(.dark) .ltv .gl-col { --deep-sat: var(--b-sat, 1.2); }
.ltv { --lev-tint: oklch(from var(--tone) 0.8 c calc(h + 24)); }
.ltv .gl::after {
  content: ""; position: absolute; inset: 0; border-radius: 999px; pointer-events: none;
  box-shadow: inset 1.5px 0 1px -0.5px color-mix(in oklch, var(--tone), white 45%);
  opacity: calc(var(--max-lead, 0) * var(--lev-lead-a, 0.7));
}
.dark .ltv .gl::after { --lev-lead-a: 0.6; }
/* the held copy runs past the value and the mask ends it (Leverage's); .ltv[data-ltvmax] .gl-sharp .ltv-fill (r43) set its width
   to the value and cut it in one pixel, so this outranks it */
.ltv[data-ltvmax] .gl-sharp .ltv-layers > :is(.ltv-rail, .ltv-fill) { right: -32px; width: auto; }
.dark .ltv .gl-sharp { background: color-mix(in oklab, oklch(var(--surface-card)), oklch(var(--light)) 10%); }
.dark .ltv .gl-mat {
  --glass-mat-top: calc(0.62 - 0.2 * var(--max-lead, 0)) 0.01 252;
  --glass-mat-mid: calc(0.69 - 0.345 * var(--max-lead, 0)) 0.01 252;
  --glass-mat-bot: calc(0.83 - 0.525 * var(--max-lead, 0)) 0.01 252;
}
.ltv .gl-sharp .ltv-layers > .ltv-fill {
  --lev-hfe: max(var(--ff, 0px), 12px);
  clip-path: none;
  box-sizing: border-box; top: -8px; bottom: auto; height: calc(var(--rail-h) + 16px);
  padding-block: 8px; background-clip: content-box; border-radius: 0;
  -webkit-mask-image: linear-gradient(90deg, black calc(var(--fx) - var(--lev-hfe)), rgb(0 0 0 / 0.72) calc(var(--fx) - var(--lev-hfe) * 0.4), rgb(0 0 0 / 0.34) calc(var(--fx) + var(--lev-hfe) * 0.2), rgb(0 0 0 / 0.1) calc(var(--fx) + var(--lev-hfe) * 0.7), transparent calc(var(--fx) + var(--lev-hfe)));
  mask-image: linear-gradient(90deg, black calc(var(--fx) - var(--lev-hfe)), rgb(0 0 0 / 0.72) calc(var(--fx) - var(--lev-hfe) * 0.4), rgb(0 0 0 / 0.34) calc(var(--fx) + var(--lev-hfe) * 0.2), rgb(0 0 0 / 0.1) calc(var(--fx) + var(--lev-hfe) * 0.7), transparent calc(var(--fx) + var(--lev-hfe)));
}
.ltv .gl-sharp .ltv-layers > .ltv-rail, .ltv .gl-sharp .ltv-layers > .ltv-fill { filter: blur(calc(1.5px + var(--max-lead, 0) * 3.5px)); }
.dark .ltv .gl-sharp .ltv-layers > .ltv-fill { filter: blur(calc(1.5px + var(--max-lead, 0) * 3.5px)) brightness(0.96) saturate(0.85); --lev-hfe: max(var(--ff, 0px), 22px); }
.dark .ltv .gl-sharp .gl-stretch::after { background: color-mix(in oklab, var(--tone), white 7%); }
html:not(.dark) .ltv .gl-sharp .ltv-layers > .ltv-rail {
  background: color-mix(in oklab, color-mix(in oklab, oklch(var(--surface-track)), var(--lev-tint) 22%), color-mix(in oklab, oklch(var(--surface-card)), var(--lev-tint) 16%) 85%);
}
html:not(.dark) .ltv .gl-sharp .ltv-layers > .ltv-fill { filter: blur(calc(1.5px + var(--max-lead, 0) * 3.5px)) brightness(var(--copy-dim, 1)); }
html:not(.dark) .ltv .gl-sharp .gl-stretch::after { filter: brightness(var(--copy-dim, 1)); }
html:not(.dark) .ltv .gl-shadow { --dock-lens-shade: 0.3 0.025 195; }
.ltv .gl-mat::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(90deg, transparent 20%, oklch(var(--surface-card) / var(--lev-wash-a, 0.5)) 100%);
  opacity: var(--max-lead, 0);
}
.dark .ltv .gl-mat::after { --lev-wash-a: 0.9; }
/* R48 critic MUST-FIX 3: at Max, light, Leverage's thinning (.45) and wash (.5) lifted Borrow's held glass twice Leverage's
   (held48: top dE 10.3 against 5.7; L +.09 against +.04): the caution end is lighter than the blue and the warm card has its
   hue, so the wash only whitens it, milky. Borrow thins by .2 and washes at .25 in light: dE 5.6 / 3.2 / 5.5 against
   Leverage's 5.7 / 4.8 / 5.5. Dark unchanged */
html:not(.dark) .ltv .gl-sharp .ltv-layers > :is(.ltv-fill, .ltv-rail) { opacity: calc(1 - 0.2 * var(--max-lead, 0)); }
html:not(.dark) .ltv .gl-mat::after { --lev-wash-a: 0.25; }
/* rest over a full bar: the frosted copy shows the bar's band softly, as Leverage's (capsule.js --max-see) */
.ltv .gl-clear .ltv-layers > .ltv-fill { visibility: visible; opacity: var(--max-see, 0); width: var(--fx); border-radius: 0; }

/* ---------- r49 (1) · the readout under the bar ----------
   zee 22:49Z on R48's "Liquidation $62.17  56% away": "its nicer now but the stats here are bad". R49 fix (R49 critic
   MUST-FIX 3): the line led with nothing, every word the same 14 px muted. Now the price leads: "Liquidates at" 14 / 400
   muted, the price 16 / 600 ink (the head's value size, one step under nothing new: the slider keeps two sizes, 14 and 16,
   better-typography), tabular. The distance is said as the fall that reaches it, "SOL −56%": the base 400 muted, the fall
   500, muted above 15% and the caution ink at 15% and under (one step, no khaki midway). The same on both sliders. One 24 px
   line, 8 px under the options (row gap 4 + 4); the facts at the bar's two ends (means-and-methods: the head's two edges) */
.mc-info { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; line-height: 24px; }
.mc-fact { display: inline-flex; align-items: baseline; gap: 4px; min-width: 0; white-space: nowrap; }
.mc-k { color: oklch(var(--ink-muted)); font-weight: 500; }
.mc-n { color: oklch(var(--ink)); font-size: 16px; font-weight: 600; letter-spacing: 0; }
.mc-d { color: oklch(var(--ink-muted)); font-weight: 500; transition: color 150ms ease-out; }
.mc-d[data-hot] { color: var(--away-hot); }
/* empty: one quiet fact. Borrow at 0% "No loan"; Leverage with its cap unknown "Liquidation after Max" (MUST-FIX 5) */
.mc-wait { color: oklch(var(--ink-muted)); font-weight: 500; }
.levl[data-off] .mc-info { opacity: 0.4; }
.mc .mc-info { grid-column: 1 / -1; }
@media (prefers-reduced-motion: reduce) { .mc-d { transition: none; } }

/* A · Ends: the line above, nothing more */

/* B · Pairs: two columns, each its word over its figure (the word 14 / 20, the figure line 24); the fall's column on the right
   edge, "If SOL falls" over its figure (fix 2). 44 px, the same in both cards */
.mc[data-stats="b"] .mc-fact { flex-direction: column; align-items: flex-start; gap: 0; }
.mc[data-stats="b"] .mc-fact > .mc-k { line-height: 20px; }
.mc[data-stats="b"] .mc-fact.mc-end { align-items: flex-end; }
.mc[data-stats="b"] .mc-none { flex-direction: row; gap: 4px; }
.mc[data-stats="b"] .mc-info { min-height: 44px; } /* the empty states keep the two lines, so the cards stay level */

/* C · Well: A inside a sunken well, a full pill like every surface on the slider (one radius family), 32 px: 4 above and below
   the 24 px line, 12 a side (the knob's side padding); the well is the rail's faint ink, as A's chip rail */
.mc[data-stats="c"] .mc-info { padding: 4px 12px; border-radius: 999px; background: oklch(var(--ink) / 0.035); }

/* ---------- r49 (2) · the quick options in the knob's glass ----------
   zee 22:49Z: "i dont like the max one and the 5x.. both look so plain and baddd". R49 fix (R49 critic MUST-FIX 1, 2): every
   option now has a shape. The slider's two materials: a faint key (the rail's ink) for an option at rest, the knob (frost, a
   lit top hairline, a shadow stack: emil-surfaces) for the chosen one, and Max always the knob in small (the R46 capsule:
   --max-frost, --max-rim). Max's limit sits in the ink at 500 at rest (no colour spent on a control at rest); on Borrow it
   warms only as the bar nears the max. Dark collapses every shadow to a white ring .09 and the lit hairline. Hit areas 44 px */
.levl { --chip-shade: 0.3 0.025 255; --max-lim: oklch(var(--ink)); }
.ltv { --chip-shade: 0.3 0.025 195; --max-lim: color-mix(in oklch, var(--away-hot) calc(clamp(0, (var(--h, 0) - 0.6) / 0.4, 1) * 100%), oklch(var(--ink))); }
.mc-max .mc-lim { color: var(--max-lim); font-weight: 500; }
.levl[data-pending] .mc-max .mc-lim { color: oklch(var(--ink-muted)); }
.mc-chips { --knob-frost: color-mix(in oklab, oklch(var(--surface-card)), var(--max-tint) 5%);
  --knob-lift: inset 0 0.5px 0 oklch(var(--light) / 0.9), 0 0 0 0.5px oklch(var(--chip-shade) / 0.16), 0 1px 2px oklch(var(--chip-shade) / 0.12), 0 2px 6px -2px oklch(var(--chip-shade) / 0.14);
  --key: oklch(var(--ink) / 0.04); --key-line: inset 0 0 0 0.5px oklch(var(--ink) / 0.08);
  --key-hover: oklch(var(--ink) / 0.07); --key-line-hover: inset 0 0 0 0.5px oklch(var(--ink) / 0.14);
  --max-ring: inset 0 0 0 1px oklch(var(--ink) / 0.1); --max-ring-hover: inset 0 0 0 1px oklch(var(--ink) / 0.18); }
.dark .mc-chips { --knob-frost: color-mix(in oklab, oklch(var(--surface-card)), oklch(var(--light)) 13%);
  --knob-lift: inset 0 0.5px 0 oklch(var(--light) / 0.16), 0 0 0 1px oklch(var(--light) / 0.09);
  --key: oklch(var(--ink) / 0.045); --key-line: inset 0 0 0 0.5px oklch(var(--ink) / 0.08);
  --max-ring: inset 0 0 0 1px oklch(var(--light) / 0.12); --max-ring-hover: inset 0 0 0 1px oklch(var(--light) / 0.2); }

/* A · Rail. R49 fix 2 (R49 critic MUST-FIX, "Max 10x is the same grey pill as 2x/5x with only a heavier numeral"): three
   kinds of thing, not one pill repeated. The detents are words on a faint rail of the ink (.035, 28 px, a full pill: the
   rail is drawn by the keys' own backgrounds, so it ends where the last detent ends), each 14 / 500 muted with no fill of
   its own; the chosen one is the only filled thing on the rail, a piece of the knob raised in it (frost, lit hairline, the
   shadow stack: emil-surfaces), 24 px, radius 12 inside the rail's 14 (12 + 2, derived), its words in the bar's tone. Max
   leaves the rail: its own capsule 8 px to the right (the page's 8, one group step), 28 px on the rail's own top and bottom
   edges. R49 fix 3 (critic 6.0: an unchosen Max with a fill and a toned limit read as a second chosen piece): at rest it is
   a rim only (1 px, ink .1; dark light .12), no fill; "Max" muted, its limit ink 600 on both sliders, whatever the risk.
   Fill and tone belong to the chosen option alone: Max chosen takes the same knob piece (--knob-frost, --knob-lift) and
   its words the bar's tone, as a chosen word on the rail */
.mc[data-chips="a"] .mc-chips { margin-top: 4px; gap: 0; }
.mc[data-chips="a"][data-head="a"] .mc-chips { margin-top: 0; }
.mc[data-chips="a"] .mc-chip { height: 28px; line-height: 28px; isolation: isolate; }
.mc[data-chips="a"] .mc-chip:not(.mc-max) { background: oklch(var(--ink) / 0.035); box-shadow: none; border-radius: 0; }
.mc[data-chips="a"] .mc-chip:first-child { border-top-left-radius: 14px; border-bottom-left-radius: 14px; }
.mc[data-chips="a"] .mc-chip:nth-last-child(2) { border-top-right-radius: 14px; border-bottom-right-radius: 14px; }
.mc[data-chips="a"] .mc-chip:not(.mc-max)::before { content: ""; position: absolute; inset: 2px; z-index: -1; border-radius: 12px; transition: background-color 150ms ease-out, box-shadow 150ms ease-out; }
.mc[data-chips="a"] .mc-chip:not(.mc-max)[data-on] { background: oklch(var(--ink) / 0.035); }
.mc[data-chips="a"] .mc-chip:not(.mc-max)[data-on]::before { background: var(--knob-frost); box-shadow: var(--knob-lift); }
.mc[data-chips="a"] .mc-max { flex: 0 0 auto; margin-left: 8px; border-radius: 14px; background: transparent; box-shadow: var(--max-ring); }
.mc[data-chips="a"] .mc-max .mc-word { color: oklch(var(--ink-muted)); }
.mc[data-chips="a"] .mc-max .mc-lim { color: oklch(var(--ink)); font-weight: 600; }
.levl[data-pending][data-chips="a"] .mc-max .mc-lim { color: oklch(var(--ink-muted)); }
.mc[data-chips="a"] .mc-max[data-on] { background: var(--knob-frost); box-shadow: var(--knob-lift); }
.mc[data-chips="a"] .mc-chip::after { inset: -6px 0 -12px; }
.mc[data-chips="a"] .mc-max::after { inset: -6px -4px -12px; }
.mc[data-chips="a"][data-head="a"] .mc-chip::after { inset: -12px 0 -4px; }
.mc[data-chips="a"][data-head="a"] .mc-max::after { inset: -12px -4px -4px; }
/* the cap unknown (should-fix 3): 2x 3x 5x dimmed on their rail beside Max, which alone presses */
.levl[data-pending] .mc-chip:not(.mc-max) { opacity: 0.4; }
/* pressed, a word: the piece gives (0.97), the rail stays whole */
.mc[data-chips="a"] .mc-chip:not(.mc-max):not(:disabled):active { scale: none; }
.mc[data-chips="a"] .mc-chip:not(.mc-max):not(:disabled):active::before { scale: 0.97; }
@media (prefers-reduced-motion: reduce) { .mc[data-chips="a"] .mc-chip::before { transition: none; } }

/* B · Keys: each option its own raised glass key, 28 px, 8 px apart (the knob's frost and lift); the chosen one pressed into
   the card, but lit, not dark (should-fix 4): a pale wash of the bar's tone with a soft inner shade and a hairline of the tone,
   so it reads as chosen, never as off. Max the knob in small: its frost carries the knob's own tint (12%) */
.mc[data-chips="b"] .mc-chips { margin-top: 4px; gap: 8px; }
.mc[data-chips="b"][data-head="a"] .mc-chips { margin-top: 0; }
.mc[data-chips="b"] .mc-chip { height: 28px; line-height: 28px; background: var(--knob-frost); box-shadow: var(--knob-lift); }
.mc[data-chips="b"] .mc-max { background: color-mix(in oklab, oklch(var(--surface-card)), var(--max-tint) 12%); }
.dark .mc[data-chips="b"] .mc-max { background: color-mix(in oklab, color-mix(in oklab, oklch(var(--surface-card)), oklch(var(--light)) 11%), var(--tone) 10%); }
.mc[data-chips="b"] .mc-chip[data-on] { background: oklch(from var(--chip-tone, var(--tone)) 0.93 min(calc(c * 0.45), 0.06) h); box-shadow: inset 0 1px 2px oklch(var(--chip-shade) / 0.12), inset 0 0 0 0.5px oklch(from var(--chip-tone, var(--tone)) 0.6 min(c, 0.12) h / 0.4); }
.dark .mc[data-chips="b"] .mc-chip[data-on] { background: var(--on-dark); box-shadow: inset 0 1px 2px oklch(0 0 0 / 0.3), inset 0 0 0 1px oklch(from var(--chip-tone, var(--tone)) 0.72 min(c, 0.12) h / 0.35); }
.mc[data-chips="b"] .mc-chip::after { inset: -8px -4px -12px; }
.mc[data-chips="b"][data-head="a"] .mc-chip::after { inset: -12px -4px -4px; }
/* R49 fix 4 (critic 5.0 on zee's "i dont like the max one and the 5x.. both look so plain"): Keys is the default. Every option
   a raised key; in dark the keys sit quieter (the card toward --light 7%, L about .25) so the chosen one's fill, the bar's
   tone at L .33 (C at most .06), marks it by more than its tint; light keeps the knob's frost and the tone at L .93 */
.dark .mc:is([data-chips="a"], [data-chips="b"]) { --on-dark: oklch(from var(--chip-tone, var(--tone)) 0.33 min(calc(c * 0.4), 0.06) h); }
.dark .mc[data-chips="b"] .mc-chip:not(.mc-max):not([data-on]) { background: color-mix(in oklab, oklch(var(--surface-card)), oklch(var(--light)) 7%); }
/* Max, not chosen, in A and B: the knob's clear glass, never a fill and never the tone, so the chosen option is the row's one
   lit piece. A 0.5 px lit top edge (white .16 in dark; light, the knob's own .9: .16 white does not show on a .99 card), a
   sheen from ink .06 at the top to nothing, a 1 px rim (white .10 in dark, ink .10 in light); "Max" muted, the limit ink 600.
   Its own capsule 8 px right of the row. Chosen, it is the chosen key's own piece (B: the lit tone; A: the knob piece) */
/* R49 fix 5 (critic reversed: with no fill, Max read as recessed): the unchosen Max is the knob's frost, one step above
   the keys. Light: the keys' white body with the knob's shadow one step heavier. Dark: frost L .30 (keys .254), a 0.5 px
   top highlight white .22, a 1 px rim white .12. No tone: the chosen key stays the row's only coloured piece. */
.mc-chips { --max-lift: inset 0 0.5px 0 oklch(var(--light) / 0.9), 0 0 0 0.5px oklch(var(--chip-shade) / 0.2), 0 1px 3px oklch(var(--chip-shade) / 0.16), 0 3px 8px -2px oklch(var(--chip-shade) / 0.2); }
.dark .mc-chips { --max-lift: inset 0 0.5px 0 oklch(var(--light) / 0.22), inset 0 0 0 1px oklch(var(--light) / 0.12); }
.mc:is([data-chips="a"], [data-chips="b"]) .mc-max:not([data-on]) { background: var(--knob-frost); box-shadow: var(--max-lift); }
.mc:is([data-chips="a"], [data-chips="b"]) .mc-max { flex: 0 0 auto; }
.mc:is([data-chips="a"], [data-chips="b"]) .mc-max .mc-word { color: oklch(var(--ink-muted)); }
.mc:is([data-chips="a"], [data-chips="b"]) .mc-max .mc-lim { color: oklch(var(--ink)); font-weight: 600; }
.levl[data-pending] .mc-max .mc-lim { color: oklch(var(--ink-muted)); }
.dark .mc[data-chips="a"] .mc-chip:not(.mc-max)[data-on]::before, .dark .mc[data-chips="a"] .mc-max[data-on] { background: oklch(from var(--knob-frost) 0.33 c h); }
/* R49 fix 5: Leverage's chosen words in dark at L .90 (blue at .86 read dim on the .33 fill) */

/* C · Quiet (subtract first): the options are bare words (500, ink-muted); only two things carry glass: the chosen option
   (the knob's frost and lift) and Max (the R46 capsule) */
.mc[data-chips="c"] .mc-chips { margin-top: 4px; }
.mc[data-chips="c"][data-head="a"] .mc-chips { margin-top: 0; }
.mc[data-chips="c"] .mc-chip { background: transparent; box-shadow: none; }
.mc[data-chips="c"] .mc-max { background: var(--max-frost); box-shadow: var(--max-rim); }
.mc[data-chips="c"] .mc-chip[data-on] { background: var(--knob-frost); box-shadow: var(--knob-lift); }

/* hover (a mouse only), one quiet step that never repaints the chosen one: a word on A's rail a trace of a key under it
   (ink .04, inside the rail), a bare word a trace of the key (C), a raised key the focus ink's rim (B); A's Max its frost
   +2% and its rim at the focus ink .14; C's Max keeps R47's frost +2% and rim */
@media (any-hover: hover) {
  :root[data-pointer="mouse"] .mc[data-chips="a"] .mc-chip:not([data-on]):not(.mc-max):not(:disabled):hover,
  :root:not([data-pointer]) .mc[data-chips="a"] .mc-chip:not(.mc-max):not(:disabled):hover { background: oklch(var(--ink) / 0.035); box-shadow: none; }
  :root[data-pointer="mouse"] .mc[data-chips="a"] .mc-chip:not([data-on]):not(.mc-max):not(:disabled):hover::before,
  :root:not([data-pointer]) .mc[data-chips="a"] .mc-chip:not([data-on]):not(.mc-max):not(:disabled):hover::before { background: var(--key); }
  :root[data-pointer="mouse"] .mc[data-chips="a"] .mc-max:not([data-on]):not(:disabled):hover,
  :root:not([data-pointer]) .mc[data-chips="a"] .mc-max:not([data-on]):not(:disabled):hover { background: transparent; box-shadow: var(--max-ring-hover); }
  :root[data-pointer="mouse"] .mc[data-chips="a"] .mc-max[data-on]:not(:disabled):hover,
  :root:not([data-pointer]) .mc[data-chips="a"] .mc-max[data-on]:not(:disabled):hover { background: var(--knob-frost); box-shadow: var(--knob-lift); }
  :root[data-pointer="mouse"].dark .mc[data-chips="a"] .mc-max[data-on]:not(:disabled):hover,
  :root.dark:not([data-pointer]) .mc[data-chips="a"] .mc-max[data-on]:not(:disabled):hover { background: var(--knob-frost); }
  :root[data-pointer="mouse"] .mc[data-chips="c"] .mc-chip:not([data-on]):not(.mc-max):not(:disabled):hover,
  :root:not([data-pointer]) .mc[data-chips="c"] .mc-chip:not([data-on]):not(.mc-max):not(:disabled):hover { background: var(--key); box-shadow: none; }
  :root[data-pointer="mouse"] .mc[data-chips="c"] .mc-chip[data-on]:not(:disabled):hover,
  :root:not([data-pointer]) .mc[data-chips="c"] .mc-chip[data-on]:not(:disabled):hover { background: var(--knob-frost); box-shadow: var(--knob-lift); }
  :root[data-pointer="mouse"] .mc[data-chips="b"] .mc-chip:not([data-on]):not(:disabled):hover,
  :root:not([data-pointer]) .mc[data-chips="b"] .mc-chip:not([data-on]):not(:disabled):hover { box-shadow: var(--knob-lift), 0 0 0 0.5px oklch(var(--ink) / 0.14); }
  :root[data-pointer="mouse"] .mc[data-chips="b"] .mc-chip[data-on]:not(:disabled):hover,
  :root:not([data-pointer]) .mc[data-chips="b"] .mc-chip[data-on]:not(:disabled):hover { background: oklch(from var(--chip-tone, var(--tone)) 0.93 min(calc(c * 0.45), 0.06) h); box-shadow: inset 0 1px 2px oklch(var(--chip-shade) / 0.12), inset 0 0 0 0.5px oklch(from var(--chip-tone, var(--tone)) 0.6 min(c, 0.12) h / 0.4); }
  :root[data-pointer="mouse"].dark .mc[data-chips="b"] .mc-chip[data-on]:not(:disabled):hover,
  :root.dark:not([data-pointer]) .mc[data-chips="b"] .mc-chip[data-on]:not(:disabled):hover { background: var(--on-dark); box-shadow: inset 0 1px 2px oklch(0 0 0 / 0.3), inset 0 0 0 1px oklch(from var(--chip-tone, var(--tone)) 0.72 min(c, 0.12) h / 0.35); }
  :root[data-pointer="mouse"] .mc:is([data-chips="a"], [data-chips="b"]) .mc-max:not([data-on]):not(:disabled):hover,
  :root:not([data-pointer]) .mc:is([data-chips="a"], [data-chips="b"]) .mc-max:not([data-on]):not(:disabled):hover { background: color-mix(in oklab, var(--knob-frost), oklch(var(--light)) 60%); box-shadow: var(--max-lift); }
  :root[data-pointer="mouse"].dark .mc:is([data-chips="a"], [data-chips="b"]) .mc-max:not([data-on]):not(:disabled):hover,
  :root.dark:not([data-pointer]) .mc:is([data-chips="a"], [data-chips="b"]) .mc-max:not([data-on]):not(:disabled):hover { background: color-mix(in oklab, var(--knob-frost), oklch(var(--light)) 3%); box-shadow: inset 0 0.5px 0 oklch(var(--light) / 0.22), inset 0 0 0 1px oklch(var(--light) / 0.16); }
  :root[data-pointer="mouse"].dark .mc[data-chips="a"] .mc-max[data-on]:not(:disabled):hover,
  :root.dark:not([data-pointer]) .mc[data-chips="a"] .mc-max[data-on]:not(:disabled):hover { background: oklch(from var(--knob-frost) 0.33 c h); }
}
/* keyboard focus keeps the knob's ring (2 px card, 2 px ink .72) over whatever surface the option has */
.mc[data-chips] .mc-chip:focus-visible { box-shadow: 0 0 0 2px oklch(var(--surface-card)), 0 0 0 4px oklch(var(--ink) / 0.72); }
.mc[data-chips] .mc-chip[data-on]:focus-visible { box-shadow: var(--knob-lift), 0 0 0 2px oklch(var(--surface-card)), 0 0 0 4px oklch(var(--ink) / 0.72); }
/* A's words: the ring goes round the piece inside the rail (the ::before, radius 12), never the square middle of the rail */
.mc[data-chips="a"] .mc-chip:not(.mc-max):focus-visible { box-shadow: none; }
.mc[data-chips="a"] .mc-chip:not(.mc-max):focus-visible::before { box-shadow: 0 0 0 2px oklch(var(--ink) / 0.72); }
.mc[data-chips="a"] .mc-chip:not(.mc-max)[data-on]:focus-visible::before { box-shadow: var(--knob-lift), 0 0 0 2px oklch(var(--ink) / 0.72); }
.mc[data-chips="b"] .mc-chip[data-on]:focus-visible { box-shadow: inset 0 1px 2px oklch(var(--chip-shade) / 0.12), 0 0 0 2px oklch(var(--surface-card)), 0 0 0 4px oklch(var(--ink) / 0.72); }

/* ---------- r50 · Well + Rail, three versions in the controller's glass ----------
   zee 11-24 03:40Z on the R49 strip: "c is the closest but also its bad" / "sorry i meant statsc chips a"; the ask under it
   (22:49Z): "the stats here are bad and i dont like the max one and the 5x.. both look so plain and baddd"; and 11-23:
   "similiar to how it look for the controller". The pair stays (a sunken well under a rail, Max 8 px apart in the knob's
   frost) and takes the controller's three marks: a frost body, a lit top hairline, and the bar's colour entering from
   the left with a rounded front that is gone by three quarters (r10b). Shared by all three:
   - every detent's word is ink 500, never muted: 5x is a place you can go, not a disabled word;
   - the readout's two figures are both 16 / 600 (price ink, the fall ink, caution at 15% and under), the words 14 muted;
   - the well is the rail's height and radius family (28 px line + 2 a side = 32, radius 16), 12 px side padding.
   One coloured piece per row stays the rule: A's wash and the chosen piece are one shape (the bar's fill and its knob);
   C's colour is Max alone, the chosen option frost. Sizes 14 / 16; gaps 2 / 4 / 8 / 12; radii 12 / 14 / 16 */
.mc[data-v] .mc-info .mc-d { font-size: 16px; font-weight: 600; color: oklch(var(--ink)); }
.mc[data-v] .mc-info .mc-d[data-hot] { color: var(--away-hot); }
.mc[data-v][data-stats="c"] .mc-info { padding: 4px 12px; border-radius: 16px; }
.levl[data-v][data-off] .mc-info .mc-d { color: oklch(var(--ink-muted)); }

/* ---------- r51 · one rail, one colour, one way to write × ----------
   zee 11-24 15:31Z on R50 Echo at 5x, dark: "its buggy now also the colors of the chips being a bit influenced needs to be a
   bit dimmed bc its stealing from the bar also the way we do `x` idont like it we need a better way".
   The bug: R49 drew the rail as the options' own backgrounds (each chip its slice of ink .035, square inside, rounded at the
   two ends) and R50's Echo ended its wash with a hard 50 % stop inside the chosen chip's box. The 2 px of rail above and
   below the knob showed that stop as a vertical seam, the wash ended square at the left, and at fractional chip widths the
   slices met on half pixels. The cause is the rail being many boxes. Now it is one: .mc-chips::before draws it once (28 px,
   radius 14, as wide as the options: capsule.js railSync writes --rail-w) and the chips are clear. Echo's wash is a second
   single pill from the rail's start to the chosen piece's right edge (--on-r), radius 14, so its end is concentric with the
   knob inside it (12 = 14 - 2): the knob sits in the rounded end of its filled track, one object. At Max the whole rail is
   washed.
   The dim: the bar is the only strong colour. Every option's word is ink (500, the chosen 600), the chosen piece and Max
   chosen are the knob's plain frost, Echo's wash is a trace of the tone (its chroma x .4 at 9 %, dark 12 %; Borrow's is ink,
   never green), C's Max keeps a trace of its front at rest, and the readout's fall figure is ink, caution at 15 % and under.
   Sizes 14 / 16; gaps 2 / 4 / 8 / 12; radii 12 / 14 / 16 */
.mc[data-v] .mc-chips { --ct: var(--chip-tone, var(--tone)); --trace: oklch(from var(--ct) l calc(c * 0.4) h / 0.09); }
.dark .mc[data-v] .mc-chips { --trace: oklch(from var(--ct) l calc(c * 0.4) h / 0.12); }
.ltv.mc[data-v] .mc-chips { --ct: oklch(var(--ink)); --trace: oklch(var(--ink) / 0.045); }
/* r65 (step 5, beside the best): Borrow's chosen key reads peach beside a teal bar at 25 / 35 %. Taking the bar's own end
   (--tone-end) was tried and looked consistent with Leverage, but it turns the key green and breaks the R51 rule "Borrow's
   trace is ink, never green", so it is not shipped; it is a question for zee */
.dark .ltv.mc[data-v] .mc-chips { --trace: oklch(var(--ink) / 0.06); }

/* every word ink, the chosen 600, the figures tabular */
.mc[data-v][data-chips] .mc-chip { font-variant-numeric: tabular-nums; }
.mc[data-v][data-chips] .mc-chip:not(.mc-max) { color: oklch(var(--ink)); }
.mc[data-v][data-chips] .mc-chip:not(.mc-max)[data-on] { color: oklch(var(--ink)); font-weight: 600; }
.mc[data-v][data-chips] .mc-max[data-on] :is(.mc-word, .mc-lim) { color: oklch(var(--ink)); }

/* A · Echo and C · Controller: one rail, the chips clear on it; Echo's wash one pill to the knob's right edge */
.mc:is([data-v="a"], [data-v="c"])[data-chips="a"] .mc-chips { position: relative; }
.mc:is([data-v="a"], [data-v="c"])[data-chips="a"] .mc-chips::before,
.mc[data-v="a"][data-chips="a"] .mc-chips::after { content: ""; position: absolute; left: 0; top: 0; z-index: 0; height: 28px; border-radius: 14px; pointer-events: none; }
.mc:is([data-v="a"], [data-v="c"])[data-chips="a"] .mc-chips::before { width: var(--rail-w, 0px); background: oklch(var(--ink) / 0.035); }
.mc[data-v="a"][data-chips="a"] .mc-chips::after { width: var(--on-r, 0px); background: var(--trace); transition: width 150ms ease-out; }
.mc:is([data-v="a"], [data-v="c"])[data-chips="a"] .mc-chip:not(.mc-max),
.mc:is([data-v="a"], [data-v="c"])[data-chips="a"] .mc-chip:not(.mc-max)[data-on] { background: transparent; border-radius: 14px; }
@media (prefers-reduced-motion: reduce) { .mc[data-v="a"][data-chips="a"] .mc-chips::after { transition: none; } }

/* B · Tray (the default, critic R50 plan): one sunken tray holds the options and the readout; the chosen option and Max
   chosen are the knob's plain frost */
.mc[data-v="b"] { --tray: oklch(var(--ink) / 0.05); }
.dark .mc[data-v="b"] { --tray: oklch(var(--ink) / 0.07); }
.mc[data-v="b"][data-chips="a"] .mc-chips { padding: 2px 2px 0; gap: 0; border-radius: 16px 16px 0 0; background: var(--tray); }
.mc[data-v="b"][data-chips="a"] .mc-chip { height: 28px; line-height: 28px; }
.mc[data-v="b"][data-chips="a"] .mc-chip:not(.mc-max),
.mc[data-v="b"][data-chips="a"] .mc-chip:not(.mc-max)[data-on] { background: transparent; border-radius: 14px; }
.mc[data-v="b"][data-chips="a"] .mc-chip:not(.mc-max)::before { inset: 2px; border-radius: 12px; }
.mc[data-v="b"][data-chips="a"] .mc-max { margin: 2px 0 2px 8px; height: 24px; line-height: 24px; border-radius: 12px; }
.mc[data-v="b"][data-stats="c"] .mc-info { margin-top: -4px; padding: 4px 14px 6px; border-radius: 0 0 16px 16px; background: var(--tray); }
.mc[data-v="b"][data-chips="a"] .mc-chip::after { inset: -8px 0 -8px; }
.mc[data-v="b"][data-chips="a"] .mc-max::after { inset: -10px -4px -10px; }

/* C · Controller: Max at rest keeps a trace of the knob's front (chroma x .5 at 10 %, dark 14 %); chosen it is plain frost */
.mc[data-v="c"] .mc-chips { --front-rest: radial-gradient(90% 140% at 0% 50%, oklch(from var(--ct) l calc(c * 0.5) h / 0.10), oklch(from var(--ct) l calc(c * 0.5) h / 0) 60%); }
.dark .mc[data-v="c"] .mc-chips { --front-rest: radial-gradient(90% 140% at 0% 50%, oklch(from var(--ct) l calc(c * 0.5) h / 0.14), oklch(from var(--ct) l calc(c * 0.5) h / 0) 60%); }
.mc[data-v="c"][data-chips="a"] .mc-max:not([data-on]) { background: var(--front-rest), var(--knob-frost); }
.levl[data-pending][data-v="c"] .mc-max:not([data-on]) { background: var(--knob-frost); }

@media (any-hover: hover) {
  :root[data-pointer="mouse"] .mc[data-v][data-chips="a"] .mc-chip:not(.mc-max):not(:disabled):hover,
  :root:not([data-pointer]) .mc[data-v][data-chips="a"] .mc-chip:not(.mc-max):not(:disabled):hover { background: transparent; box-shadow: none; }
  :root[data-pointer="mouse"] .mc[data-v="c"][data-chips="a"] .mc-max:not([data-on]):not(:disabled):hover,
  :root:not([data-pointer]) .mc[data-v="c"][data-chips="a"] .mc-max:not([data-on]):not(:disabled):hover { background: var(--front-rest), color-mix(in oklab, var(--knob-frost), oklch(var(--light)) 60%); }
  :root[data-pointer="mouse"].dark .mc[data-v="c"][data-chips="a"] .mc-max:not([data-on]):not(:disabled):hover,
  :root.dark:not([data-pointer]) .mc[data-v="c"][data-chips="a"] .mc-max:not([data-on]):not(:disabled):hover { background: var(--front-rest), color-mix(in oklab, var(--knob-frost), oklch(var(--light)) 3%); }
}

/* ---------- r52 · x: part of the figure ----------
   zee on R51: "I dont like the way we use the small x beside leverage it looks visually bad not remove it all together".
   The x is on every figure (head 16, options 14, Max's limit 14) at the figure's own size, weight and colour, and one
   word that never breaks. lever.js writes 5 + .xu; the drawn sign is .xu::after (empty alt text) and a hidden "x" keeps
   the spoken "5x". Measured in M Saans at 16 / 600 (8x render): numerals 10.5 px tall, mid 5.2 px over the baseline,
   digit-to-digit gap 1.25 px; the x 7.4 tall, gap 0.6; the × 6.6 tall, mid 5.3, gap 1.9; the X 10.5 tall, gap 0.9.
   A · Letter: the font's x, pulled in .02em (gap 0.3 px: the x is open above its x-height, so it wants less than a digit).
   B · Sign: the ×, 1.12em (ink 7.4 px, the x's height), lowered .045em (a transform: vertical-align snaps to whole pixels) so its centre sits on the numerals' mid line,
     pulled in .06em (gap 0.9 px, just under the digits' rhythm).
   C · Capital: an X as tall as the numerals, pulled in .03em (gap 0.4 px). */
.mc .xt { white-space: nowrap; }
/* the hidden "x" stays inline text with no size (an absolute or inline-block box reads as a separate word: "5 x"), so
   the spoken text is "5x" */
.mc .xu .sr-only { position: static; font-size: 0; }
/* r57 (the project chat Claude: the readouts at 1280 sat at 589 vs 584): the hidden "x" is a 0-size inline box that still
   carried the 24 px line-height, half above and half below the baseline, so the Leverage value's line was 29 px tall and
   pushed its card 5 px down; line-height 0 takes it out of the line box (the value is 24 px, as Borrow's) */
.mc .xu .sr-only { line-height: 0; }
.mc .xu::after { content: "×"; content: "×" / ""; }
:root[data-x="a"] .mc .xu::after { content: "x" / ""; margin-left: -0.02em; }
:root[data-x="b"] .mc .xu::after { content: "×"; content: "×" / ""; display: inline-block; font-size: 1.12em; line-height: 0; margin-left: -0.06em; transform: translateY(0.045em); }
/* r58 × (zee on R57: "my issue that the x was small, now we are making it smaller lol?"): the × is drawn as tall as the
   figures and in their colour, so it reads as part of the number. M Saans per 1000 units: figures 734 high (flat, the 1 and
   7), the 1's stem 116 at 500 and 133 at 600, the 7's diagonal 110 / 127. The sign is two straight strokes with square-cut
   ends (a letter X has flat horizontal cuts and read as "3X" in a first try) in a 640 x 734 box, about 50 degrees; stroke 116
   at 500 / 133 at 600 (the 1's stem: at 108 / 126, the diagonal's, it read lighter than the digits). A mask filled with currentColor, bottom on the baseline, 0.04em after
   the figure's side bearing. Keys and Max at rest are 500; the head value and a chosen key are 600. */
/* r59 (zee picked "Bigger sign, centred (0.6em)": about 1.5 times R57's ×, solid, centred on the digits, so it reads as a
   times sign and not as a letter): the same strokes (116 at 500 / 133 at 600, square-cut ends, the number's colour) in a
   0.6em square at 45 degrees, its middle on the figures' middle: 0.367em up (734 / 2) less half the box, 0.067em. */
/* r61 (zee on R60: "wait why we removed the big x sign I Saw?"): R58's figure-height × is back as the default: 0.64 x 0.734em, the
   figures' own height (bottom on the baseline, so its middle is the figures' middle), the 1's stem (116 at 500, 133 at 600),
   0.04em before it and 0.02em after (R58's gaps); head value, keys and Max alike */
:root[data-x="b"] .mc .xu::after { content: ""; display: inline-block; width: 0.64em; height: 0.734em; margin: 0 0.02em 0 0.04em; font-size: 1em; line-height: 0; vertical-align: baseline; transform: none; color: inherit; background-color: currentColor; -webkit-mask: var(--x-mask) center / 100% 100% no-repeat; mask: var(--x-mask) center / 100% 100% no-repeat; }
.mc { --x-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 734'%3E%3Cpath d='M44.5 37.2L595.5 696.8M595.5 37.2L44.5 696.8' stroke='black' stroke-width='116' fill='none'/%3E%3C/svg%3E"); }
.mc .mc-value, .mc .mc-chip[data-on] { --x-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 734'%3E%3Cpath d='M51.2 42.4L588.8 691.6M588.8 42.4L51.2 691.6' stroke='black' stroke-width='133' fill='none'/%3E%3C/svg%3E"); }
:root[data-x="c"] .mc .xu::after { content: "X" / ""; margin-left: -0.03em; }

/* ---------- r50 (2) · the Well itself, three ways ----------
   zee 11-24 03:53Z: "well is the nice one but could be always way better". The well stays a sunken pill of the rail's ink
   under the options (32 px, radius 16, the price leading at 16 / 600 ink), and each version gives it one more idea from
   the controller, never a second colour per row:
   A · the well is a rail and the fall is its knob: the figure sits in a frost piece (24 px, radius 12 = 16 - 4, the knob's
     lift, its colour front from the left) 4 px inside the well's right end; its figure in the tone, caution when near.
   B · the tray: the well is the lower half of the options' tray, one surface, the fall figure in the tone.
   C · the well fills like the bar: a wash of the tone from the left, as long as the liquidation is near (--near, 0 with the
     price 60 % or more away to 1 at it), its front soft over 48 px; caution when near. Sizes 14 / 16; gaps 4 / 8 / 12 */
@property --near { syntax: "<number>"; inherits: true; initial-value: 0; }
.levl[data-v][data-off] .mc-info .mc-d:not([data-hot]) { color: oklch(var(--ink-muted)); }

/* A */
.mc[data-v="a"][data-stats="c"] .mc-info { padding: 4px 4px 4px 12px; background: oklch(var(--ink) / 0.045);
  --piece-frost: color-mix(in oklab, oklch(var(--surface-card)), var(--max-tint) 5%);
  --piece-lift: inset 0 0.5px 0 oklch(var(--light) / 0.9), 0 0 0 0.5px oklch(var(--chip-shade) / 0.16), 0 1px 2px oklch(var(--chip-shade) / 0.12), 0 2px 6px -2px oklch(var(--chip-shade) / 0.14);
  --pf-a: 0.22; --pf-b: 0.08; }
.dark .mc[data-v="a"][data-stats="c"] .mc-info { background: oklch(var(--ink) / 0.06);
  --piece-frost: color-mix(in oklab, oklch(var(--surface-card)), oklch(var(--light)) 13%);
  --piece-lift: inset 0 0.5px 0 oklch(var(--light) / 0.16), 0 0 0 1px oklch(var(--light) / 0.09);
  --pf-a: 0.34; --pf-b: 0.12; }
.mc[data-v="a"][data-stats="c"] .mc-info:has(.mc-none) { padding: 6px 12px; }
.mc[data-v="a"][data-stats="c"] .mc-end { gap: 8px; align-items: center; }
.mc[data-v="a"][data-stats="c"] .mc-end .mc-d { display: inline-block; min-width: 24px; height: 24px; line-height: 24px; padding: 0 8px;
  border-radius: 12px; text-align: center; box-shadow: var(--piece-lift);
  background: radial-gradient(130% 150% at 0% 50%, oklch(from var(--wt) l c h / var(--pf-a)), oklch(from var(--wt) l c h / var(--pf-b)) 48%, oklch(from var(--wt) l c h / 0) 76%), var(--piece-frost); }
.mc[data-v="a"][data-stats="c"] .mc-end .mc-d[data-hot] { --wt: var(--away-hot); }
.levl[data-v="a"][data-off] .mc-end .mc-d { background: var(--piece-frost); }

/* B: the tray's lower half at the options' 32 px rhythm */
.mc[data-v="b"][data-stats="c"] .mc-info { padding: 6px 14px; }

/* C */
.mc[data-v="c"][data-stats="c"] .mc-info { --wa: 0.16; --wc: var(--wt);
  background: linear-gradient(to right, oklch(from var(--wc) l c h / calc(var(--wa) * min(1, var(--near) * 8))) calc(var(--near) * 100% - 24px), oklch(from var(--wc) l c h / 0) calc(var(--near) * 100% + 24px)), oklch(var(--ink) / 0.035);
  transition: --near 150ms ease-out; }
.dark .mc[data-v="c"][data-stats="c"] .mc-info { --wa: 0.26; }
.mc[data-v="c"][data-stats="c"] .mc-info:has(.mc-d[data-hot]) { --wc: var(--away-hot); }
.levl[data-v="c"][data-off] .mc-info { --wa: 0; }
@media (prefers-reduced-motion: reduce) { .mc[data-v="c"][data-stats="c"] .mc-info { transition: none; } }

/* ---------- r51 (2) · the Well, dimmed ----------
   The fall figure is ink (the rule that wrote it in the tone is gone); caution at 15 % and under stays (market.js toneOf).
   A's fall piece is the knob's plain frost; C's well darkens toward liquidation in ink, never brown (the critic R50 plan:
   the caution wash read as a brown stain) */
.mc[data-v="a"][data-stats="c"] .mc-end .mc-d { background: var(--piece-frost); }
.mc[data-v="c"][data-stats="c"] .mc-info { --wc: oklch(var(--ink)); --wa: 0.05; }
.dark .mc[data-v="c"][data-stats="c"] .mc-info { --wa: 0.07; }
.mc[data-v="c"][data-stats="c"] .mc-info:has(.mc-d[data-hot]) { --wc: oklch(var(--ink)); }

/* ---------- r52 · one surface for the chosen piece and Max ----------
   zee on R51 Max in dark: "the border is broken the roundness and spacing around it is bad and i think we need better
   looking also in adark it has lots of shadow and stuff that I dont approve". The causes, measured on R51 (Tray, dark):
   Max's rim was an inset 1 px ring (light .12) under an inset 0.5 px top highlight (light .22), two lines that do not
   line up; chosen, it had an outer 1 px ring (a halo); in light it stacked a highlight, a ring and two drops. Its room
   in the tray was 4 px above and 2 px to the right. Now (emil-surfaces: one ring for depth in dark, inner radius = outer
   minus the gap):
   - one edge, drawn inside the piece (an inset 0.5 px ring), nothing else in dark; light adds one tight drop (0 1 2, .08);
   - Max sits 4 px from the tray's top and right, radius 12 = 16 - 4, like the chosen piece at the tray's left;
   - the chosen piece (and Max chosen) carry a trace of the bar's colour (critic R51 must-fix, about half of R50):
     dark fill oklch(.34 .03 h), words oklch(.92 .04 h) 600; light fill oklch(.95 .025 h), ring oklch(.6 .08 h / .25).
     Borrow's h is its ink's (a warm sand, 62-75), never the teal: the R51 rule "Borrow's trace is ink, never green".
   - Max at rest is neutral: light the card itself with an ink .10 ring, dark the card + light 11 % with a light .07 ring.
   Every existing rule that reads --knob-lift / --max-lift / --piece-lift (focus rings, A's fall piece) gets the same edge */
.mc[data-v] .mc-chips, .mc[data-v] .mc-info {
  --on-fill: oklch(from var(--ct, var(--tone)) 0.95 0.025 h);
  --on-ink: oklch(var(--ink));
  --on-edge: inset 0 0 0 0.5px oklch(from var(--ct, var(--tone)) 0.6 0.08 h / 0.25), 0 1px 2px oklch(var(--chip-shade) / 0.08);
  --rest-fill: oklch(var(--surface-card));
  --rest-fill-hover: color-mix(in oklab, oklch(var(--surface-card)), oklch(var(--light)) 60%);
  --rest-edge: inset 0 0 0 0.5px oklch(var(--ink) / 0.10), 0 1px 2px oklch(var(--chip-shade) / 0.08);
  --knob-lift: var(--on-edge); --max-lift: var(--rest-edge); }
.dark .mc[data-v] .mc-chips, .dark .mc[data-v] .mc-info {
  --on-fill: oklch(from var(--ct, var(--tone)) 0.34 0.03 h);
  --on-ink: oklch(from var(--ct, var(--tone)) 0.92 0.04 h);
  --on-edge: inset 0 0 0 0.5px oklch(var(--light) / 0.07);
  --rest-fill: color-mix(in oklab, oklch(var(--surface-card)), oklch(var(--light)) 11%);
  --rest-fill-hover: color-mix(in oklab, oklch(var(--surface-card)), oklch(var(--light)) 14%);
  --rest-edge: inset 0 0 0 0.5px oklch(var(--light) / 0.07); }
.mc[data-v] .mc-info { --piece-lift: var(--rest-edge); }
.mc[data-v][data-stats="c"] .mc-info { --piece-frost: var(--rest-fill); }

/* the chosen piece and Max chosen */
:root .mc[data-v][data-chips="a"] .mc-chip:not(.mc-max)[data-on]::before,
:root .mc[data-v][data-chips="a"] .mc-chips .mc-max[data-on] { background: var(--on-fill); box-shadow: var(--on-edge); }
:root .mc[data-v][data-chips="a"] .mc-chip:not(.mc-max)[data-on],
:root .mc[data-v][data-chips="a"] .mc-chips .mc-max[data-on] :is(.mc-word, .mc-lim) { color: var(--on-ink); font-weight: 600; }
/* Max at rest: neutral, the same one edge */
:root .mc[data-v][data-chips="a"] .mc-chips .mc-max:not([data-on]) { background: var(--rest-fill); box-shadow: var(--rest-edge); }
.levl[data-pending][data-v] .mc-chips .mc-max:not([data-on]) { background: var(--rest-fill); }
/* Tray: Max's room even (4 px top and right; radius 12 = 16 - 4) */
.mc[data-v="b"][data-chips="a"] .mc-max { margin-right: 2px; }
@media (any-hover: hover) {
  :root[data-pointer="mouse"] .mc[data-v][data-chips="a"] .mc-chips .mc-max:not([data-on]):not(:disabled):hover,
  :root:not([data-pointer]) .mc[data-v][data-chips="a"] .mc-chips .mc-max:not([data-on]):not(:disabled):hover { background: var(--rest-fill-hover); box-shadow: var(--rest-edge); }
  :root[data-pointer="mouse"] .mc[data-v][data-chips="a"] .mc-chips .mc-max[data-on]:not(:disabled):hover,
  :root:not([data-pointer]) .mc[data-v][data-chips="a"] .mc-chips .mc-max[data-on]:not(:disabled):hover { background: var(--on-fill); box-shadow: var(--on-edge); }
}
/* keyboard focus: the same ring outside the one edge */
:root .mc[data-v][data-chips="a"] .mc-chips .mc-max:focus-visible { box-shadow: var(--rest-edge), 0 0 0 2px oklch(var(--surface-card)), 0 0 0 4px oklch(var(--ink) / 0.72); }
:root .mc[data-v][data-chips="a"] .mc-chips .mc-max[data-on]:focus-visible { box-shadow: var(--on-edge), 0 0 0 2px oklch(var(--surface-card)), 0 0 0 4px oklch(var(--ink) / 0.72); }
:root .mc[data-v][data-chips="a"] .mc-chip:not(.mc-max)[data-on]:focus-visible::before { box-shadow: var(--on-edge), 0 0 0 2px oklch(var(--ink) / 0.72); }

/* ---------- r52 · Borrow's sand in dark ----------
   The dark 50 % stop read faded at oklch(.74 .045 90) on the dark card; it moves to oklch(.66 .06 85). Mixed in oklab,
   teal (184) to that sand crosses hue 150 at chroma .052 (a green cast); the first leg (teal to sand) now mixes in linear
   sRGB, which keeps it at .048 dark and .042 light (was .046) with the same ends; the second leg stays oklab. Every hue
   100-150 on the ramp is at chroma .05 or less (ramp52.py: the path, the 9 stops, the rendered fill) */
.dark .ltv { --r-sand: oklch(0.66 0.06 85); }

/* ---------- r53 · one grid for the Tray (v=b) ----------
   zee 20:33Z on R52 (dark Leverage, Tray): "I have issue with the two rows being messed up and weightys of the scale in the
   second one is bad also space vetween them is wwrong and them ax isnt visible anymore". Measured on R52 at 1280: the first
   chip's "2×" started 35 px in (chips grew to equal shares, text centred) while "Liquidates" started 14 px in; Max's text
   ended 16 px in, "30%" 14 px; the info row's padding was 6 / 14 (off the 4 px scale); the figures 16 / 600 against 14 / 400
   labels. One grid now, every inset from the tray's edge:
   - 4 px: the pills (the chosen piece and Max) sit 4 px from the tray's top, left and right; 24 px tall, radius 12 = 16 - 4
     (emil-surfaces 1, concentric).
   - 16 px: every text edge. A pill's text sits 12 px inside the pill, so the first chip's "2×" starts at 4 + 12 = 16 and
     Max's "10×" ends at 16; the info row is padded 16 px a side, so "Liquidates" starts and "30%" ends on the same lines.
     The chips size to their content and the row spreads them (space-between): first on the left line, Max on the right.
   - 8 px: the row gap (pill bottom to the info line) and the info row's foot, so the facts sit 8 px under the pills and
     8 px over the tray's edge (the tray: 4 + 24 + 8 + 24 + 8 = 68 px, all on the 4 px scale).
   Type (emil-typography / better-typography: one size, hierarchy by weight and ink): the facts are 14 px like everything
   else in the tray; the label 14 / 400 muted, the figure 14 / 500 ink, tabular, the same as an unchosen chip's figure. */
.mc[data-v="b"][data-chips="a"] .mc-chips { padding: 4px 4px 0; justify-content: space-between; }
.mc[data-v="b"][data-chips="a"] .mc-chip { flex: 0 0 auto; min-width: 0; height: 24px; line-height: 24px; padding: 0 12px; margin: 0; }
.mc[data-v="b"][data-chips="a"] .mc-chip:not(.mc-max)::before { inset: 0; border-radius: 12px; }
.mc[data-v="b"][data-chips="a"] .mc-chip:not(.mc-max),
.mc[data-v="b"][data-chips="a"] .mc-chip:not(.mc-max)[data-on] { border-radius: 12px; }
.mc[data-v="b"][data-chips="a"] .mc-max { margin: 0; }
/* hit areas: 44 px tall (10 + 24 + 10), 16 px into the gaps either side (the narrowest gap, Leverage at 390, is 43 px,
   so two never overlap) */
.mc[data-v="b"][data-chips="a"] .mc-chip::after { inset: -10px -16px; }
.mc[data-v="b"][data-chips="a"] .mc-max::after { inset: -10px -4px -10px -16px; }
.mc[data-v="b"][data-stats="c"] .mc-info { padding: 8px 16px; }
.mc[data-v="b"] .mc-info .mc-n, .mc[data-v="b"] .mc-info .mc-d { font-size: 14px; font-weight: 500; }
/* Max at rest in dark: R52's fill (card + 11 % light, L .29) sat .04 over the tray and its 0.5 px edge at .07 did not show.
   Now card + 15 % light and one 1 px hairline at light .10: a pill you can see, still flat, no drop, halo or glow
   (emil-surfaces 3: dark collapses to one ring). The chosen chip takes the same edge, one surface language */
.dark .mc[data-v] .mc-chips, .dark .mc[data-v] .mc-info {
  --on-edge: inset 0 0 0 1px oklch(var(--light) / 0.10);
  --rest-fill: color-mix(in oklab, oklch(var(--surface-card)), oklch(var(--light)) 15%);
  --rest-fill-hover: color-mix(in oklab, oklch(var(--surface-card)), oklch(var(--light)) 19%);
  --rest-edge: inset 0 0 0 1px oklch(var(--light) / 0.10); }

/* ---------- r54 · more options, comfortable cells, the liquidation on its own line ----------
   zee on R53 (dark Borrow, a 390 px card): "now still the two rows look terrible like how u can see now also why only these
   options and small like this?". Measured on R53 at 390: the chips were 24 px pills (Max 24, the chosen one 24) in a 68 px
   tray shared with the readout, three options and Max, 36 px of the row a dead gap between hit areas on Borrow.
   Three new layouts (the lab's Version row, ?v=d|e|f; Track the default), both cards, one set of rules:
   - the options: five where the market allows (market.js leverPresets / ltvPresets: 2 3 5 7 Max 10x; 25 35 50 60 Max 70%),
     equal cells over the bar's full width, so the middle one's centre is the bar's centre; each cell 36 or 40 px visible,
     its hit area 44 px tall and as wide as its share of the row, edge to edge (no dead gap);
   - type: one size, 14 px; the figure 500 ink, Max's word 500 muted, the chosen 600 in the chosen ink (--on-ink); the
     readout's label 14 / 400 muted, its figures 14 / 500 ink, the fall caution at 15 % and under;
   - colour: the chosen cell is R52's calm tinted piece (--on-fill: Leverage a trace of its blue, Borrow its sand, never the
     teal), one hairline, no drop, no glow; everything else neutral;
   - the readout never shares a container with the options: D a plain line under them, E a ledger under a hairline, F the
     bar's own caption above them.
   Sizes 14 / 16 (the head, unchanged); gaps 4 / 8 / 12 / 16; radii 8 / 10 / 12.
   :not(#\#) lifts these rules over the R46-R53 chip rules (their hover rules reach 0,9,0) without touching them */
.mc[data-v] .mc-chips {
  --cell-line: oklch(var(--ink) / 0.10);
  --cell-on-edge: inset 0 0 0 0.5px oklch(from var(--ct, var(--tone)) 0.6 0.08 h / 0.25);
  --cell-hover: oklch(var(--ink) / 0.04);
  --well: oklch(var(--ink) / 0.05); }
.dark .mc[data-v] .mc-chips {
  --cell-line: oklch(var(--light) / 0.10);
  --cell-on-edge: inset 0 0 0 1px oklch(var(--light) / 0.10);
  --cell-hover: oklch(var(--light) / 0.05);
  --well: oklch(var(--ink) / 0.07); }
/* the light Max at rest loses its drop (the brief: no dark shadows), in every version */
.mc[data-v] .mc-chips, .mc[data-v] .mc-info { --rest-edge: inset 0 0 0 0.5px oklch(var(--ink) / 0.10); }
.dark .mc[data-v] .mc-chips, .dark .mc[data-v] .mc-info { --rest-edge: inset 0 0 0 1px oklch(var(--light) / 0.10); }

/* Echo, Tray and Controller keep R53's options: the extra presets (data-more, lever.js / ltv.js) are theirs to hide */
.mc:is([data-v="a"], [data-v="b"], [data-v="c"]) .mc-chip[data-more] { display: none; }

/* the cells, shared */
.mc:is([data-v="d"], [data-v="e"], [data-v="f"]):not(#\#) .mc-chips { position: relative; margin: 8px 0 0; padding: 0; gap: 0; border-radius: 0; background: none; }
.mc:is([data-v="d"], [data-v="e"], [data-v="f"]):not(#\#) .mc-chips::before,
.mc:is([data-v="d"], [data-v="e"], [data-v="f"]):not(#\#) .mc-chips::after { content: none; }
.mc:is([data-v="d"], [data-v="e"], [data-v="f"]):not(#\#) .mc-chip {
  flex: 1 1 0; min-width: max-content; height: 36px; margin: 0; padding: 0 3px; border-radius: 8px;
  line-height: 36px; font-size: 14px; font-weight: 500; color: oklch(var(--ink));
  background: transparent; box-shadow: none; transform-origin: 50% 50%; }
.mc:is([data-v="d"], [data-v="e"], [data-v="f"]):not(#\#) .mc-chip::before { content: none; }
/* the two ends carry the longest label ("Max 70%"): an equal 1.25 share each, so the middle cell stays centred */
.mc:is([data-v="d"], [data-v="e"], [data-v="f"]):not(#\#) .mc-chip:is(:first-child, .mc-max) { flex-grow: 1.25; }
.mc:is([data-v="d"], [data-v="e"], [data-v="f"]):not(#\#) .mc-max .mc-word { color: oklch(var(--ink-muted)); font-weight: 500; }
.mc:is([data-v="d"], [data-v="e"], [data-v="f"]):not(#\#) .mc-max .mc-lim { color: var(--max-lim); font-weight: 500; }
.levl[data-pending]:is([data-v="d"], [data-v="e"], [data-v="f"]):not(#\#) .mc-max .mc-lim { color: oklch(var(--ink-muted)); }
.mc:is([data-v="d"], [data-v="e"], [data-v="f"]):not(#\#) .mc-chip[data-on] { background: var(--on-fill); box-shadow: var(--cell-on-edge); color: var(--on-ink); font-weight: 600; }
.mc:is([data-v="d"], [data-v="e"], [data-v="f"]):not(#\#) .mc-chip[data-on] :is(.mc-word, .mc-lim) { color: var(--on-ink); font-weight: 600; }
@media (any-hover: hover) {
  :root[data-pointer="mouse"] .mc:is([data-v="d"], [data-v="e"], [data-v="f"]):not(#\#) .mc-chip:not([data-on]):not(:disabled):hover,
  :root:not([data-pointer]) .mc:is([data-v="d"], [data-v="e"], [data-v="f"]):not(#\#) .mc-chip:not([data-on]):not(:disabled):hover { background: var(--cell-hover); }
  :root[data-pointer="mouse"] .mc:is([data-v="d"], [data-v="e"], [data-v="f"]):not(#\#) .mc-chip[data-on]:not(:disabled):hover,
  :root:not([data-pointer]) .mc:is([data-v="d"], [data-v="e"], [data-v="f"]):not(#\#) .mc-chip[data-on]:not(:disabled):hover { background: var(--on-fill); box-shadow: var(--cell-on-edge); }
}
/* keyboard focus: a 2 px ink ring inside the cell, so it never overlaps a neighbour */
.mc:is([data-v="d"], [data-v="e"], [data-v="f"]):not(#\#) .mc-chip:focus-visible { outline: none; box-shadow: inset 0 0 0 2px oklch(var(--ink) / 0.72); }
.mc:is([data-v="d"], [data-v="e"], [data-v="f"]):not(#\#) .mc-chip:focus-visible :is(.mc-word, .mc-lim) { color: oklch(var(--ink)); }

/* the readout, shared: a plain line at the card's own edges, no container */
.mc:is([data-v="d"], [data-v="e"], [data-v="f"]):not(#\#) .mc-info { margin: 0; padding: 0; border-radius: 0; background: none; line-height: 20px; min-height: 0; }
.mc:is([data-v="d"], [data-v="e"], [data-v="f"]):not(#\#) .mc-info :is(.mc-n, .mc-d) { font-size: 14px; font-weight: 500; color: oklch(var(--ink)); }
.mc:is([data-v="d"], [data-v="e"], [data-v="f"]):not(#\#) .mc-info .mc-d[data-hot] { color: var(--away-hot); }
.levl[data-off]:is([data-v="d"], [data-v="e"], [data-v="f"]):not(#\#) .mc-info .mc-d:not([data-hot]) { color: oklch(var(--ink-muted)); }

/* D · Track: one sunken track (the well, radius 12) holds five equal 36 px cells 4 px in; the chosen one a tinted piece,
   radius 8 = 12 - 4. Each hit area runs to the track's edge (4 px up, down and out at the ends) and meets its neighbour:
   44 px tall, no gap. The readout a plain line 12 px under the track */
.mc[data-v="d"]:not(#\#) .mc-chips { padding: 4px; border-radius: 12px; background: var(--well); }
.mc[data-v="d"]:not(#\#) .mc-chip::after { inset: -4px 0; }
.mc[data-v="d"]:not(#\#) .mc-chip:first-child::after { left: -4px; }
.mc[data-v="d"]:not(#\#) .mc-max::after { right: -4px; }
.mc[data-v="d"]:not(#\#) .mc-info { margin-top: 8px; }

/* E · Keys: five separate keys, 40 px, radius 10, 4 px apart, each a flat fill and no line (a 1 px line round "Max 70%"
   in a 64 px key at 390 left it 2 px of air a side: measured 57 px of text); light ink .05, dark the card lifted 15 %
   toward light (R53's Max). The hit areas take half of each gap (44 px tall). The readout a ledger 12 px under them: a
   hairline, then two rows, each its label on the left and its figure on the right */
.mc[data-v="e"]:not(#\#) .mc-chips { gap: 4px; --key-fill: oklch(var(--ink) / 0.05); --key-fill-hover: oklch(var(--ink) / 0.08); }
.dark .mc[data-v="e"]:not(#\#) .mc-chips { --key-fill: var(--rest-fill); --key-fill-hover: var(--rest-fill-hover); }
.mc[data-v="e"]:not(#\#) .mc-chip { height: 40px; line-height: 40px; border-radius: 10px; background: var(--key-fill); }
.mc[data-v="e"]:not(#\#) .mc-chip::after { inset: -2px -2px; }
@media (any-hover: hover) {
  :root[data-pointer="mouse"] .mc[data-v="e"]:not(#\#) .mc-chip:not([data-on]):not(:disabled):hover,
  :root:not([data-pointer]) .mc[data-v="e"]:not(#\#) .mc-chip:not([data-on]):not(:disabled):hover { background: var(--key-fill-hover); }
}
/* r55 (zee 21:29Z on R54 Keys: "this is nice but too squaarish and i dont like the text below the lin being on two lines
   and this slop"): the keys are capsules (radius = half the 40 px height, the slider's own track and glass shape), and
   the readout is one quiet sentence 12 px under them, no hairline, no label/figure table: "Liquidates at $99.72, if SOL
   falls 30%", labels muted, figures ink 500 */
.mc[data-v="e"]:not(#\#) .mc-chip { border-radius: 20px; }
/* r56 (critic should-fix on R55): the extra width is Max's alone; the first key is as wide as the middle ones. Max takes
   1.3 shares: at 390 the keys are 60 px and Max 78, so a chosen "Max 70%" at 600 keeps 10 px a side in the capsule and
   JUP's "Max 6.67×" 6 px */
.mc[data-v="e"]:not(#\#) .mc-chip:first-child { flex-grow: 1; }
.mc[data-v="e"]:not(#\#) .mc-chip.mc-max { flex-grow: 1.3; }
/* r56 (zee on R55's sentence: "??????"): the readout a row, one line, its two ends apart; figures ink 500 tabular, words
   muted 400 (.mc-k), no caution colour; the distance in A a quiet second figure 8 px after the price */
.mc[data-v="e"]:not(#\#) .mc-info .mc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; white-space: nowrap; }
.mc[data-v="e"]:not(#\#) .mc-info .mc-row :is(.mc-n, .mc-num) { font-variant-numeric: tabular-nums; }
/* r57 (zee 22:28Z: "a low small chip and it says when hovering with peek"): the distance a small chip 8 px after the price,
   "−30%": the keys' flat fill and capsule (24 px, radius 12), no ring, no glow; 14 px 500 muted, its figure tabular and
   min 3ch so the chip holds its width from 9% to 30%; the caution step at 15% and under on its words. 44 px to a finger
   (::after); a mouse brightens the fill a step, as the keys */
.mc[data-v="e"]:not(#\#) .mc-info { --away-fill: oklch(var(--ink) / 0.05); --away-fill-on: oklch(var(--ink) / 0.08); }
.dark .mc[data-v="e"]:not(#\#) .mc-info { --away-fill: var(--rest-fill); --away-fill-on: var(--rest-fill-hover); }
.mc[data-v="e"]:not(#\#) .mc-info .mc-row { align-items: center; }
.mc[data-v="e"]:not(#\#) .mc-away {
  position: relative; display: inline-flex; align-items: center; height: 24px; margin: 0 0 0 8px; padding: 0 8px; border: 0;
  border-radius: 12px; background: var(--away-fill); color: oklch(var(--ink-muted)); font: inherit; font-size: 14px;
  font-weight: 500; line-height: 24px; font-variant-numeric: tabular-nums; cursor: pointer; vertical-align: middle;
  -webkit-tap-highlight-color: transparent; transition: background-color 150ms ease-out, color 150ms ease-out;
}
.mc[data-v="e"]:not(#\#) .mc-away::after { content: ""; position: absolute; inset: -10px 0; }
.mc[data-v="e"]:not(#\#) .mc-away-n { display: inline-block; min-width: 3ch; text-align: left; }
.mc[data-v="e"]:not(#\#) .mc-away[data-hot] { color: var(--away-hot); }
.mc[data-v="e"]:not(#\#) .mc-away[aria-expanded="true"] { background: var(--away-fill-on); }
@media (hover: hover) and (pointer: fine) {
  .mc[data-v="e"]:not(#\#) .mc-away:hover { background: var(--away-fill-on); }
}
.mc[data-v="e"]:not(#\#) .mc-away:focus-visible { outline: none; box-shadow: inset 0 0 0 2px oklch(var(--ink) / 0.72); }
.levl[data-off][data-v="e"]:not(#\#) .mc-away:not([data-hot]) { color: oklch(var(--ink-muted)); }
/* r58 (zee on R57 "$99.72 −30%": "its not visually balanced and the percentage now has the hgigher visual cue"): the price
   is the fact, the distance a footnote to it. The price grows to 16 px at its own weight (500) and ink; the distance is
   plain muted text, 14 px regular, on the price's baseline, 8 px after it. No capsule: a faint dotted hairline under it says
   it opens the peek, and hover, focus or an open peek lay a very faint wash behind it. Caution (under 15 %) stays on its text. */
.mc[data-v="e"]:not(#\#) .mc-info .mc-row { align-items: baseline; }
.mc[data-v="e"]:not(#\#) .mc-info .mc-end .mc-n { font-size: 16px; font-weight: 500; }
.mc[data-v="e"]:not(#\#) .mc-info { --away-fill-on: oklch(var(--ink) / 0.045); }
.dark .mc[data-v="e"]:not(#\#) .mc-info { --away-fill-on: oklch(var(--ink) / 0.06); }
.mc[data-v="e"]:not(#\#) .mc-away { display: inline-block; height: auto; margin: 0 0 0 8px; padding: 0; border-radius: 2px; background: transparent; font-size: 14px; font-weight: 500; line-height: 24px; vertical-align: baseline;
  text-decoration: underline dotted 1px; text-decoration-color: color-mix(in oklch, currentColor 45%, transparent); text-underline-offset: 4px; }
/* the figure is an inline-block (3ch), which a parent's underline skips: it draws its own, so the hairline runs under "−30%" whole */
.mc[data-v="e"]:not(#\#) .mc-away-n { text-decoration: inherit; text-decoration-line: underline; text-decoration-style: dotted; text-decoration-thickness: 1px; text-decoration-color: color-mix(in oklch, currentColor 45%, transparent); text-underline-offset: 4px; }
/* the wash and the focus ring are spread shadows (4 px past the text), so the text keeps the row's right edge and nothing
   overflows the card */
.mc[data-v="e"]:not(#\#) .mc-away[aria-expanded="true"] { background: var(--away-fill-on); box-shadow: 0 0 0 4px var(--away-fill-on); }
@media (hover: hover) and (pointer: fine) { .mc[data-v="e"]:not(#\#) .mc-away:hover { background: var(--away-fill-on); box-shadow: 0 0 0 4px var(--away-fill-on); } }
.mc[data-v="e"]:not(#\#) .mc-away:focus-visible { box-shadow: 0 0 0 4px var(--away-fill-on), 0 0 0 6px oklch(var(--ink) / 0.72); }
/* r59: the distance is plain muted text on the price's text baseline (both in .mc-end's one flex line, align-items:
   baseline, no offset; measured 0 px apart at 390 and 1280). The dotted hairline is gone (it read as off the baseline and
   as dots); the only cue is the wash behind it on hover, focus and an open peek, 4 px past the text with a 6 px outer
   radius: ::before under the text (the chip isolates, so it stays above the card), a 2.3 px box plus a 4 px spread, which
   rounds to 6 px (the spread adds 3.7 at that ratio) and, being a shadow, never counts as overflow past the row's right
   edge. The hit area is ::after, 10 px above and below and 8 px more to the left (at least 44 wide), none past the right
   edge: 45 x 44 for "−30%", 44 x 44 for "−5%". */
.mc[data-v="e"]:not(#\#) .mc-away, .mc[data-v="e"]:not(#\#) .mc-away-n { text-decoration: none; }
.mc[data-v="e"]:not(#\#) .mc-away { isolation: isolate; }
.mc[data-v="e"]:not(#\#) .mc-away[aria-expanded="true"], .mc[data-v="e"]:not(#\#) .mc-away:focus-visible { background: transparent; box-shadow: none; }
@media (hover: hover) and (pointer: fine) { .mc[data-v="e"]:not(#\#) .mc-away:hover { background: transparent; box-shadow: none; } }
.mc[data-v="e"]:not(#\#) .mc-away::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 2.3px; background: transparent; transition: background-color 150ms ease-out, box-shadow 150ms ease-out; pointer-events: none; }
.mc[data-v="e"]:not(#\#) .mc-away[aria-expanded="true"]::before { background: var(--away-fill-on); box-shadow: 0 0 0 4px var(--away-fill-on); }
@media (hover: hover) and (pointer: fine) { .mc[data-v="e"]:not(#\#) .mc-away:hover::before { background: var(--away-fill-on); box-shadow: 0 0 0 4px var(--away-fill-on); } }
.mc[data-v="e"]:not(#\#) .mc-away:focus-visible::before { background: var(--away-fill-on); box-shadow: 0 0 0 4px var(--away-fill-on), 0 0 0 6px oklch(var(--ink) / 0.72); }
.mc[data-v="e"]:not(#\#) .mc-away::after { inset: -10px 0 -10px auto; width: max(calc(100% + 8px), 44px); }
@media (prefers-reduced-motion: reduce) { .mc[data-v="e"]:not(#\#) .mc-away::before { transition: none; } }
/* R60: the distance in words ("30% drop"); the open wash is gone, so nothing in the row reads heavier than the price. The peek itself is the open cue; keyboard focus keeps a thin outline. */
.mc[data-v="e"]:not(#\#) .mc-away-n { min-width: 0; }
.mc[data-v="e"]:not(#\#) .mc-away[aria-expanded="true"]::before { background: transparent; box-shadow: none; }
@media (hover: hover) and (pointer: fine) { .mc[data-v="e"]:not(#\#) .mc-away:hover::before { background: transparent; box-shadow: none; } }
.mc[data-v="e"]:not(#\#) .mc-away:focus-visible::before { background: transparent; box-shadow: none; }
.mc[data-v="e"]:not(#\#) .mc-away:focus-visible { outline: 1.5px solid oklch(var(--ink) / 0.72); outline-offset: 2px; } /* r61 (critic on R60): 2 px out, not 3 */
/* r61 (zee on R60: "now it look ssooo plain"): the distance rests in a very soft capsule of its card's knob hue (--tone at a
   trace, no border, 6 px radius, 2 / 6 px), 14 px regular, on the price's baseline; its 20 px line + 2 + 2 keeps the 24 px
   row. Caution at 15% and under tints it with the caution tone instead. Hover and open: one step more of the same tint,
   lighter than R59's wash (no spread). The price stays the heaviest thing in the row */
.mc[data-v="e"]:not(#\#) .mc-away { --cap-a: 9%; --cap-on: 14%; --cap-hue: var(--tone);
  padding: 2px 6px; line-height: 20px; border-radius: 6px; background: color-mix(in oklch, var(--cap-hue) var(--cap-a), transparent);
  transition: background-color 150ms ease-out; }
.dark .mc[data-v="e"]:not(#\#) .mc-away { --cap-a: 14%; --cap-on: 20%; }
.mc[data-v="e"]:not(#\#) .mc-away[data-hot] { --cap-hue: var(--away-hot); --cap-a: 8%; --cap-on: 12%; }
.dark .mc[data-v="e"]:not(#\#) .mc-away[data-hot] { --cap-a: 10%; --cap-on: 15%; }
.mc[data-v="e"]:not(#\#) .mc-away[aria-expanded="true"] { background: color-mix(in oklch, var(--cap-hue) var(--cap-on), transparent); box-shadow: none; }
@media (hover: hover) and (pointer: fine) { .mc[data-v="e"]:not(#\#) .mc-away:hover { background: color-mix(in oklch, var(--cap-hue) var(--cap-on), transparent); box-shadow: none; } }
.mc[data-v="e"]:not(#\#) .mc-away::before { border-radius: 6px; }
.levl[data-off][data-v="e"]:not(#\#) .mc-away:not([data-hot]) { --cap-hue: oklch(var(--ink-subtle)); }
@media (prefers-reduced-motion: reduce) { .mc[data-v="e"]:not(#\#) .mc-away { transition: none; } }
/* the peek: one calm card over the chip, right edges flush, 8 px above it; 14 px ink, no arrow; the raised surface and
   its hairline, a soft lift in light and none in dark (no dark shadows); 120 ms in from 0.97 at the chip's corner */
.mc-peek {
  position: fixed; z-index: 40; box-sizing: border-box; padding: 10px 12px; border-radius: 12px; pointer-events: none;
  background: oklch(var(--surface-raised)); box-shadow: inset 0 0 0 1px oklch(var(--line)), 0 8px 24px -12px oklch(0.3 0.03 62 / 0.18);
  color: oklch(var(--ink)); font-size: 14px; font-weight: 500; line-height: 20px; text-wrap: pretty;
  transform-origin: 100% 100%; animation: mc-peek-in 120ms ease-out;
}
.dark .mc-peek { box-shadow: inset 0 0 0 1px oklch(var(--line)); }
/* r58 (critic on R57: at 390 the pinned peek covers 3x..Max and let a tap through to 7x): open, it takes its own taps
   (capsule.js closes it on its click); it opens below the chip when there is no room above */
.mc-peek[data-open] { pointer-events: auto; cursor: default; }
.mc-peek[data-below] { transform-origin: 100% 0; }
@keyframes mc-peek-in { from { opacity: 0; transform: scale(0.97) translateY(2px); } }
@media (prefers-reduced-motion: reduce) { .mc-peek { animation: none; } .mc[data-v="e"]:not(#\#) .mc-away { transition: none; } }
.mc[data-v="e"]:not(#\#) .mc-info { display: block; margin-top: 12px; white-space: normal; }
.mc[data-v="e"]:not(#\#) .mc-info .mc-fact { display: inline; }
.mc[data-v="e"]:not(#\#) .mc-info .mc-sep { position: static; width: auto; height: auto; overflow: visible; clip-path: none; color: oklch(var(--ink-muted)); }

/* F · Info first: the readout is the bar's caption, one sentence 8 px under it ("Liquidates at $62.17, if SOL falls 56%",
   the comma shown); the options an outlined group 16 px under that: one 1 px line round the group and between the cells,
   40 px, radius 10; the chosen cell filled with the tinted piece */
.mc[data-v="f"]:not(#\#) .mc-info { display: block; margin-top: 4px; white-space: normal; }
.mc[data-v="f"]:not(#\#) .mc-info .mc-fact { display: inline; }
.mc[data-v="f"]:not(#\#) .mc-info .mc-sep { position: static; width: auto; height: auto; overflow: visible; clip-path: none; color: oklch(var(--ink-muted)); }
.mc[data-v="f"]:not(#\#) .mc-chips { margin-top: 12px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--cell-line); }
.mc[data-v="f"]:not(#\#) .mc-chip { height: 40px; line-height: 40px; border-radius: 0; }
.mc[data-v="f"]:not(#\#) .mc-chip:not(:first-child) { box-shadow: inset 1px 0 0 var(--cell-line); }
.mc[data-v="f"]:not(#\#) .mc-chip:first-child { border-radius: 10px 0 0 10px; }
.mc[data-v="f"]:not(#\#) .mc-max { border-radius: 0 10px 10px 0; }
.mc[data-v="f"]:not(#\#) .mc-chip[data-on] { box-shadow: inset 0 0 0 1px var(--cell-line); }
/* the cell after the chosen one drops its divider: the chosen cell's own line is that edge (no 2 px double line) */
.mc[data-v="f"]:not(#\#) .mc-chip[data-on] + .mc-chip { box-shadow: none; }
.mc[data-v="f"]:not(#\#) .mc-chip::after { inset: -2px 0; }
@media (any-hover: hover) {
  :root[data-pointer="mouse"] .mc[data-v="f"]:not(#\#) .mc-chip[data-on]:not(:disabled):hover,
  :root:not([data-pointer]) .mc[data-v="f"]:not(#\#) .mc-chip[data-on]:not(:disabled):hover { box-shadow: inset 0 0 0 1px var(--cell-line); }
}
.mc[data-v="f"]:not(#\#) .mc-chip:focus-visible { box-shadow: inset 0 0 0 2px oklch(var(--ink) / 0.72); }

/* ---------- r62 ----------
   (1) zee on R61: "this is not a peek ... the peek is for the percentage drop no?". The peek is the drop capsule's tooltip:
   one 14 px line in ink ("From SOL $142 now"), 6 / 10 px, radius 8, the raised surface; light: a hairline and a short soft
   lift, dark: the hairline alone (no dark shadow). Centred on the capsule 6 px under it, or above when the foot is taken;
   it grows from the capsule's middle (--ox) */
.mc-peek { padding: 6px 10px; border-radius: 8px; white-space: nowrap; text-wrap: nowrap; font-variant-numeric: tabular-nums;
  box-shadow: inset 0 0 0 0.5px oklch(var(--ink) / 0.12), 0 1px 2px oklch(0.3 0.03 62 / 0.06), 0 4px 12px -4px oklch(0.3 0.03 62 / 0.16);
  transform-origin: var(--ox, 50%) 100%; animation-duration: 100ms; }
.mc-peek[data-below] { transform-origin: var(--ox, 50%) 0; }
.dark .mc-peek { box-shadow: inset 0 0 0 1px oklch(var(--line)); }
/* (3) the critic on R61: the light Leverage capsule read as a second pressed 3x key. One colour rule on both cards: the card's
   hue belongs to the chosen key alone; the capsule is neutral, a trace of the ink, its words muted (caution at 15% and under
   keeps its own tone on words and wash). Hover, focus and an open peek take one step: a firmer wash and the words in ink,
   the cue that it opens. The focus ring is drawn inside the capsule (inset 1.5 px), so it stays in the row */
.mc[data-v="e"]:not(#\#) .mc-away { --cap-hue: oklch(var(--ink)); --cap-a: 5%; --cap-on: 9%; color: oklch(var(--ink-muted)); transition: background-color 150ms ease-out, color 150ms ease-out; }
.dark .mc[data-v="e"]:not(#\#) .mc-away { --cap-a: 7%; --cap-on: 12%; }
.mc[data-v="e"]:not(#\#) .mc-away[data-hot] { --cap-hue: var(--away-hot); --cap-a: 8%; --cap-on: 13%; color: var(--away-hot); }
.dark .mc[data-v="e"]:not(#\#) .mc-away[data-hot] { --cap-a: 10%; --cap-on: 16%; }
.mc[data-v="e"]:not(#\#) .mc-away:not([data-hot]):is([aria-expanded="true"], :focus-visible) { color: oklch(var(--ink)); }
@media (hover: hover) and (pointer: fine) { .mc[data-v="e"]:not(#\#) .mc-away:not([data-hot]):hover { color: oklch(var(--ink)); } }
.mc[data-v="e"]:not(#\#) .mc-away:focus-visible { outline: none; background: color-mix(in oklch, var(--cap-hue) var(--cap-on), transparent); box-shadow: inset 0 0 0 1.5px oklch(var(--ink) / 0.72); }
.levl[data-off][data-v="e"]:not(#\#) .mc-away:not([data-hot]) { --cap-hue: oklch(var(--ink)); color: oklch(var(--ink-subtle)); }
@media (prefers-reduced-motion: reduce) { .mc[data-v="e"]:not(#\#) .mc-away { transition: none; } }
/* (2) zee on R61, light: "the controller lost a bit of its shape". Where the knob leaves the fill, its lit white rim met the
   white card and the beige track and the pill went soft. Light only, at rest and held, every fill: one 0.5 px edge in the
   card's own cool (Borrow: teal) shade at .13 and a short contact shadow under it (1 px / 2 px at .10, 2 / 5 px at .12),
   the keys' own lift (--knob-lift), drawn behind the glass so only its outline and its foot show. Dark is unchanged */
html:not(.dark) :is(.levl, .ltv) .gl::before { content: ""; position: absolute; inset: 0; border-radius: 999px; pointer-events: none;
  box-shadow: 0 0 0 0.5px oklch(var(--chip-shade) / 0.13), 0 1px 2px oklch(var(--chip-shade) / 0.1), 0 2px 5px -2px oklch(var(--chip-shade) / 0.12); }

/* ---------- r63 ----------
   zee on R62: "the max leverage looks weird bc of the x on it". A (the default, ?r=a or b): the Max key says only "Max",
   no figure and no x; the head above it shows 10x (Borrow 70%) once it is picked, and the key's name keeps the figure
   ("Max, 10x", lever.js / ltv.js). With no figure to fit it takes one share like the others (R56 gave it 1.3), and its
   word is the keys' ink 500 (R56's muted word sat beside an ink figure; alone it read as off). C (?r=c): R62's
   "Max 10x", the key 1.3 shares again, its x drawn smaller than the other keys' figure-height x: 0.6em tall, R58's
   640:734 proportions, raised 0.067em so its middle stays on the figures' middle */
:root:not([data-round="c"]) .mc[data-v="e"]:not(#\#) .mc-max .mc-lim { display: none; }
:root:not([data-round="c"]) .mc[data-v="e"]:not(#\#) .mc-chip.mc-max { flex-grow: 1; }
:root:not([data-round="c"]) .mc[data-v="e"]:not(#\#) .mc-max:not([data-on]) .mc-word { color: oklch(var(--ink)); }
/* r64 (R63 critic should-fix 3): C's small Max x is drawn the same under every x option, not only ?x=b */
/* r65 (R64 critic fault 1): the drawn mask is for ?x=b only, so the key row stays one glyph family. Under Capital, C's Max
   X is cut by Sign's own ratio (0.6 / 0.734 = 0.82em); under Letter the lowercase x already sits below the figures, and a
   smaller one read as a subscript (tried at 0.75em, looked), so it keeps the keys' size */
:root[data-round="c"][data-x="c"] .mc[data-v="e"]:not(#\#) .mc-max .xu::after { font-size: 0.82em; }
:root[data-round="c"][data-x="b"] .mc[data-v="e"]:not(#\#) .mc-max .xu::after { content: ""; display: inline-block; width: calc(0.6em * 640 / 734); height: 0.6em; margin: 0 0.02em 0 0.04em; font-size: 1em; line-height: 0; vertical-align: 0.067em; transform: none; color: inherit; background-color: currentColor; -webkit-mask: var(--x-mask) center / 100% 100% no-repeat; mask: var(--x-mask) center / 100% 100% no-repeat; }

/* r64 (zee: "I feel like the text itself or typos are so thin are we following best practices when it comes to
   typography"). Two causes, both fixed here and nowhere else: the lab drew an older M Saans file (shared/MSaansVF.woff2,
   61 KB) and set the body at 400, where Dusk serves msaansvf.woff2 (43.5 KB, avar-mapped weights) plus its extended-Latin
   cut, with the body at 500 and grayscale smoothing on macOS Firefox. The faces are declared as Dusk's index.css declares
   them (lines 101-117, URLs made relative); declared after shared/base.css, they win for every character in their ranges.
   No text under 18 px is drawn below 500 any more (labels, the Max limit, the capsule's words, the peek): the figure
   still leads the label by colour (ink over ink-muted) and, on the heads, by size and 600, never by a thinner label */
@font-face {
  font-family: "M Saans";
  src: url("msaansvf.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-21FF, U+2212, U+2215, U+2248, U+2260, U+2264-2265, U+25A0-25FF, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "M Saans";
  src: url("msaansvf-ext.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-0130, U+0132-0148, U+014A-0151, U+0154-017F, U+018F, U+0192, U+019D, U+01E6-01E7, U+01EA-01EB, U+01FA-01FF, U+0218-021B, U+0232-0233, U+0237, U+0259, U+0272, U+02C7, U+02D8-02D9, U+02DB, U+02DD, U+0300-0303, U+0306-0307, U+030A-030C, U+0312, U+0323, U+0326-0328, U+03A9, U+03C0, U+0E3F, U+1E20-1E21, U+1E80-1E85, U+1E9E, U+1EA0-1EA1, U+1EB8-1EB9, U+1EBC-1EBD, U+1ECA-1ECD, U+1EE4-1EE5, U+1EF2-1EF3, U+1EF8-1EF9, U+2070, U+2074-2079, U+2080-2089, U+20A3, U+20A6, U+20A9-20AB, U+20B1, U+20B4, U+20B9-20BA, U+20BD, U+20BF, U+2113, U+2116-2117, U+2126, U+212E, U+215B-215E, U+2202, U+2206, U+220F, U+2211, U+221A, U+221E, U+222B, U+2460-2468, U+24EA, U+24FF, U+2776-277E, U+3010-3011, U+A78B-A78C, U+E132, U+FB01-FB02;
}
body { font-weight: 500; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
