/* written by components/tau/t2-assets.mjs from components/reference/tau/the-lab/01-bench.html (its stylesheet). Edit the generator, not this file. */

/* Six proposals for the Lab page, each running the twenty-five real parts, on Tau's own tokens. */
:root, :root[data-theme] {
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --page: #fcfcfb; --ground: #f1f0ed; --raised: #ffffff; --ink: #0b0b0b; --ink2: #52514e; --ink3: #6c6b69; --faded: #97958d;
  --line: rgb(11 11 11 / 10%); --line-strong: rgb(11 11 11 / 20%);
  --glass: rgb(255 255 255 / 78%); --accent: #6250d6;
  --e1: 0 3px 6px -2px rgb(0 0 0 / .02), 0 1px 1px rgb(0 0 0 / .04);
  --e2: 0 0 0 .5px rgb(0 0 0 / .06), 0 6px 18px rgb(0 0 0 / .05), 0 3px 9px rgb(0 0 0 / .06), 0 1px 1px rgb(0 0 0 / .04);
  --e3: 0 0 0 .5px rgb(0 0 0 / .06), 0 24px 64px rgb(0 0 0 / .16), 0 8px 24px rgb(0 0 0 / .10), 0 1px 1px rgb(0 0 0 / .04);
  --m: clamp(16px, 2.8vw, 40px);
  --statement: clamp(38px, 6.4vw, 96px);
  --tau-ease: linear(0, 0.0234 0.39%, 0.0740 1.28%, 0.1420 2.54%, 0.2210 4.15%, 0.3058 6.06%, 0.3921 8.27%, 0.4764 10.75%, 0.5561 13.48%, 0.6294 16.47%, 0.6951 19.70%, 0.7528 23.17%, 0.8025 26.86%, 0.8443 30.78%, 0.8791 34.91%, 0.9074 39.26%, 0.9301 43.81%, 0.9481 48.56%, 0.9621 53.52%, 0.9728 58.67%, 0.9810 64.02%, 0.9870 69.55%, 0.9915 75.28%, 0.9948 81.19%, 0.9972 87.28%, 0.9988 93.55%, 1);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  color-scheme: dark; --page: #0d0d0d; --ground: #161615; --raised: #1f1f1e; --ink: #f0efec; --ink2: #c3c2b7; --ink3: #8f8e89; --faded: #5f5e5a;
  --line: rgb(255 255 255 / 10%); --line-strong: rgb(255 255 255 / 20%); --glass: rgb(40 40 40 / 75%);
  --e2: 0 0 0 .5px rgb(255 255 255 / 8%), 0 6px 18px rgb(0 0 0 / .4), 0 1px 1px rgb(0 0 0 / .3);
  --e3: 0 0 0 .5px rgb(255 255 255 / 9%), 0 24px 64px rgb(0 0 0 / .6), 0 8px 24px rgb(0 0 0 / .4); } }
:root[data-theme="dark"] {
  color-scheme: dark; --page: #0d0d0d; --ground: #161615; --raised: #1f1f1e; --ink: #f0efec; --ink2: #c3c2b7; --ink3: #8f8e89; --faded: #5f5e5a;
  --line: rgb(255 255 255 / 10%); --line-strong: rgb(255 255 255 / 20%); --glass: rgb(40 40 40 / 75%);
  --e2: 0 0 0 .5px rgb(255 255 255 / 8%), 0 6px 18px rgb(0 0 0 / .4), 0 1px 1px rgb(0 0 0 / .3);
  --e3: 0 0 0 .5px rgb(255 255 255 / 9%), 0 24px 64px rgb(0 0 0 / .6), 0 8px 24px rgb(0 0 0 / .4); }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--page); color: var(--ink); }
body { font: 400 15px/24px var(--font); letter-spacing: -0.011em; -webkit-font-smoothing: antialiased; font-feature-settings: "ss01", "cv01", "cv11"; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* the Lab's own stylesheet, as the site serves it */
:root{box-sizing:border-box;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
html{scroll-padding-top:env(safe-area-inset-top,0px)}
/* Mechanics tokens.
   Two families (RAMTT, Neutral) and two modes (light, dark). Everything the
   components draw comes from these custom properties, so a site swaps the look
   by redefining them. The RAMTT values are taken from the Engineering token file. */

:root {
  /* type */
  --mx-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mx-font-display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mx-font-code: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --mx-features: "ss01", "ss04", "ss07", "ss08", "cv01", "cv02", "cv03", "cv04", "cv05", "cv06";
  --mx-w-body: 400; --mx-w-ui: 450; --mx-w-label: 500; --mx-w-head: 550; --mx-w-display: 500;
  --mx-track-display: -0.035em;

  /* surfaces, light to deep */
  --mx-raised: #ffffff;
  --mx-page: #fcfcfb;
  --mx-ground: #f4f3f0;
  --mx-well: #f1f0ed;
  --mx-pill: #eeede9;
  --mx-rule: #e9e8e4;
  --mx-hover: #f4f3ef;
  --mx-selected: #eceae4;

  /* inks */
  --mx-ink: #0b0b0b;
  --mx-ink2: #52514e;
  --mx-ink3: #6c6b69;
  --mx-faded: #97958d;         /* only at 24 px and up: 3 : 1 on the page */
  --mx-on-ink: #fcfcfb;
  --mx-line: rgb(11 11 11 / 10%);
  --mx-line-strong: rgb(11 11 11 / 20%);
  --mx-alpha-1: rgb(11 11 11 / 5%);
  --mx-alpha-2: rgb(11 11 11 / 8%);

  /* accent: violet 500 as a fill, 600 as text */
  --mx-accent: #6250d6;
  --mx-accent-hover: #5645be;
  --mx-accent-text: #4a3aa7;
  --mx-accent-bg: #dfdbfd;
  --mx-on-accent: #ffffff;
  --mx-focus: #6f62d9;

  /* glass: a surface that floats with the page blurred behind it */
  --mx-glass: rgb(255 255 255 / 78%);
  --mx-glass-strong: rgb(255 255 255 / 90%);
  --mx-glass-blur: 20px;

  /* shape law: the corner says what a thing is */
  --mx-r-press: 9999px;   /* anything you press */
  --mx-r-contain: 12px;   /* holds other things */
  --mx-r-value: 8px;      /* fields and rows */
  --mx-r-mark: 6px;       /* badges, labels */
  --mx-r-key: 4px;        /* keys and boxes */
  --mx-hair: .5px;

  /* elevation, three levels */
  --mx-e1: 0 3px 6px -2px rgb(0 0 0 / .02), 0 1px 1px rgb(0 0 0 / .04);
  --mx-e2: 0 0 0 .5px rgb(0 0 0 / .06), 0 6px 18px rgb(0 0 0 / .03), 0 3px 9px rgb(0 0 0 / .05), 0 1px 1px rgb(0 0 0 / .04);
  --mx-e3: 0 0 0 .5px rgb(0 0 0 / .06), 0 9px 48px rgb(0 0 0 / .08), 0 6px 24px rgb(0 0 0 / .10), 0 1px 1px rgb(0 0 0 / .04);
  --mx-backdrop: rgb(0 0 0 / .25);

  /* motion: one time constant */
  --mx-tau: 50ms;
  --mx-color: 150ms;     /* text colour on hover */
  --mx-op-in: 40ms;      /* opacity in, almost a snap */
  --mx-op-out: 120ms;
  --mx-backdrop-in: 1000ms;
  --mx-ease-backdrop: cubic-bezier(.4, 0, .6, 1);
  --mx-ease-tau: linear(0, 0.0234 0.39%, 0.0740 1.28%, 0.1420 2.54%, 0.2210 4.15%, 0.3058 6.06%, 0.3921 8.27%, 0.4764 10.75%, 0.5561 13.48%, 0.6294 16.47%, 0.6951 19.70%, 0.7528 23.17%, 0.8025 26.86%, 0.8443 30.78%, 0.8791 34.91%, 0.9074 39.26%, 0.9301 43.81%, 0.9481 48.56%, 0.9621 53.52%, 0.9728 58.67%, 0.9810 64.02%, 0.9870 69.55%, 0.9915 75.28%, 0.9948 81.19%, 0.9972 87.28%, 0.9988 93.55%, 1);
  --mx-d-tau: 300ms;     /* the ease written as a CSS easing, for the few places a transition is needed */
}

/* dark: the viewer's system setting, unless the page says light */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --mx-w-body: 370; --mx-w-ui: 420; --mx-w-label: 470; --mx-w-head: 520; --mx-w-display: 470;
    --mx-raised: #1a1a19; --mx-page: #0d0d0d; --mx-ground: #131313; --mx-well: #151515; --mx-pill: #1d1d1c; --mx-rule: rgb(255 255 255 / 10%);
    --mx-hover: #151514; --mx-selected: #1c1b19;
    --mx-ink: #f0efec; --mx-ink2: #c3c2b7; --mx-ink3: #8f8e89; --mx-faded: #6d6b67; --mx-on-ink: #0d0d0d;
    --mx-line: rgb(255 255 255 / 10%); --mx-line-strong: rgb(255 255 255 / 20%); --mx-alpha-1: rgb(255 255 255 / 5%); --mx-alpha-2: rgb(255 255 255 / 8%);
    --mx-accent-text: #a096eb; --mx-accent-bg: #1d1649; --mx-focus: #8173e3;
    --mx-glass: rgb(40 40 40 / 75%); --mx-glass-strong: rgb(51 51 51 / 82%);
    --mx-e1: 0 3px 6px -2px rgb(0 0 0 / .3), 0 1px 1px rgb(0 0 0 / .4);
    --mx-e2: 0 0 0 .5px rgb(255 255 255 / 8%), 0 6px 18px rgb(0 0 0 / .3), 0 3px 9px rgb(0 0 0 / .3), 0 1px 1px rgb(0 0 0 / .3);
    --mx-e3: 0 0 0 .5px rgb(255 255 255 / 9%), 0 9px 48px rgb(0 0 0 / .5), 0 6px 24px rgb(0 0 0 / .4), 0 1px 1px rgb(0 0 0 / .3);
    --mx-backdrop: rgb(0 0 0 / .5);
  }
}

/* an explicit choice, on the page or on any element inside it */
:root[data-theme="dark"], [data-theme="dark"] {
  color-scheme: dark;
  --mx-w-body: 370; --mx-w-ui: 420; --mx-w-label: 470; --mx-w-head: 520; --mx-w-display: 470;
  --mx-raised: #1a1a19; --mx-page: #0d0d0d; --mx-ground: #131313; --mx-well: #151515; --mx-pill: #1d1d1c; --mx-rule: rgb(255 255 255 / 10%);
  --mx-hover: #151514; --mx-selected: #1c1b19;
  --mx-ink: #f0efec; --mx-ink2: #c3c2b7; --mx-ink3: #8f8e89; --mx-faded: #6d6b67; --mx-on-ink: #0d0d0d;
  --mx-line: rgb(255 255 255 / 10%); --mx-line-strong: rgb(255 255 255 / 20%); --mx-alpha-1: rgb(255 255 255 / 5%); --mx-alpha-2: rgb(255 255 255 / 8%);
  --mx-accent-text: #a096eb; --mx-accent-bg: #1d1649; --mx-focus: #8173e3;
  --mx-glass: rgb(40 40 40 / 75%); --mx-glass-strong: rgb(51 51 51 / 82%);
  --mx-e1: 0 3px 6px -2px rgb(0 0 0 / .3), 0 1px 1px rgb(0 0 0 / .4);
  --mx-e2: 0 0 0 .5px rgb(255 255 255 / 8%), 0 6px 18px rgb(0 0 0 / .3), 0 3px 9px rgb(0 0 0 / .3), 0 1px 1px rgb(0 0 0 / .3);
  --mx-e3: 0 0 0 .5px rgb(255 255 255 / 9%), 0 9px 48px rgb(0 0 0 / .5), 0 6px 24px rgb(0 0 0 / .4), 0 1px 1px rgb(0 0 0 / .3);
  --mx-backdrop: rgb(0 0 0 / .5);
}
[data-theme="light"] {
  color-scheme: light;
  --mx-w-body: 400; --mx-w-ui: 450; --mx-w-label: 500; --mx-w-head: 550; --mx-w-display: 500;
  --mx-raised: #ffffff; --mx-page: #fcfcfb; --mx-ground: #f4f3f0; --mx-well: #f1f0ed; --mx-pill: #eeede9; --mx-rule: #e9e8e4;
  --mx-hover: #f4f3ef; --mx-selected: #eceae4;
  --mx-ink: #0b0b0b; --mx-ink2: #52514e; --mx-ink3: #6c6b69; --mx-faded: #97958d; --mx-on-ink: #fcfcfb;
  --mx-line: rgb(11 11 11 / 10%); --mx-line-strong: rgb(11 11 11 / 20%); --mx-alpha-1: rgb(11 11 11 / 5%); --mx-alpha-2: rgb(11 11 11 / 8%);
  --mx-accent-text: #4a3aa7; --mx-accent-bg: #dfdbfd; --mx-focus: #6f62d9;
  --mx-glass: rgb(255 255 255 / 78%); --mx-glass-strong: rgb(255 255 255 / 90%);
  --mx-e1: 0 3px 6px -2px rgb(0 0 0 / .02), 0 1px 1px rgb(0 0 0 / .04);
  --mx-e2: 0 0 0 .5px rgb(0 0 0 / .06), 0 6px 18px rgb(0 0 0 / .03), 0 3px 9px rgb(0 0 0 / .05), 0 1px 1px rgb(0 0 0 / .04);
  --mx-e3: 0 0 0 .5px rgb(0 0 0 / .06), 0 9px 48px rgb(0 0 0 / .08), 0 6px 24px rgb(0 0 0 / .10), 0 1px 1px rgb(0 0 0 / .04);
  --mx-backdrop: rgb(0 0 0 / .25);
}

/* Neutral: one grotesk, black and white, the work is the only colour */
[data-family="neutral"] {
  --mx-font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mx-font-display: "Geist", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mx-font-code: "Geist Mono", ui-monospace, Menlo, Consolas, monospace;
  --mx-features: normal;
  --mx-track-display: -0.045em;
  --mx-raised: #ffffff; --mx-page: #ffffff; --mx-ground: #f3f3f3; --mx-well: #efefef; --mx-pill: #ececec; --mx-rule: #e6e6e6;
  --mx-hover: #f5f5f5; --mx-selected: #ebebeb;
  --mx-ink: #000000; --mx-ink2: #4a4a4a; --mx-ink3: #6b6b6b; --mx-faded: #949494; --mx-on-ink: #ffffff;
  --mx-line: rgb(0 0 0 / 10%); --mx-line-strong: rgb(0 0 0 / 22%);
  --mx-accent: #000000; --mx-accent-hover: #262626; --mx-accent-text: #000000; --mx-accent-bg: #ececec; --mx-on-accent: #ffffff; --mx-focus: #000000;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"])[data-family="neutral"], :root:not([data-theme="light"]) [data-family="neutral"]:not([data-theme="light"]) {
    --mx-raised: #121212; --mx-page: #000000; --mx-ground: #0d0d0d; --mx-well: #111111; --mx-pill: #1a1a1a; --mx-rule: rgb(255 255 255 / 12%);
    --mx-hover: #0f0f0f; --mx-selected: #1a1a1a;
    --mx-ink: #ffffff; --mx-ink2: #bdbdbd; --mx-ink3: #8f8f8f; --mx-faded: #666666; --mx-on-ink: #000000;
    --mx-line: rgb(255 255 255 / 12%); --mx-line-strong: rgb(255 255 255 / 24%);
    --mx-accent: #ffffff; --mx-accent-hover: #e6e6e6; --mx-accent-text: #ffffff; --mx-accent-bg: #1f1f1f; --mx-on-accent: #000000; --mx-focus: #ffffff;
  }
}
[data-family="neutral"][data-theme="dark"], [data-theme="dark"] [data-family="neutral"], [data-family="neutral"] [data-theme="dark"] {
  --mx-raised: #121212; --mx-page: #000000; --mx-ground: #0d0d0d; --mx-well: #111111; --mx-pill: #1a1a1a; --mx-rule: rgb(255 255 255 / 12%);
  --mx-hover: #0f0f0f; --mx-selected: #1a1a1a;
  --mx-ink: #ffffff; --mx-ink2: #bdbdbd; --mx-ink3: #8f8f8f; --mx-faded: #666666; --mx-on-ink: #000000;
  --mx-line: rgb(255 255 255 / 12%); --mx-line-strong: rgb(255 255 255 / 24%);
  --mx-accent: #ffffff; --mx-accent-hover: #e6e6e6; --mx-accent-text: #ffffff; --mx-accent-bg: #1f1f1f; --mx-on-accent: #000000; --mx-focus: #ffffff;
}
[data-family="neutral"] [data-theme="light"] {
  --mx-raised: #ffffff; --mx-page: #ffffff; --mx-ground: #f3f3f3; --mx-well: #efefef; --mx-pill: #ececec; --mx-rule: #e6e6e6;
  --mx-hover: #f5f5f5; --mx-selected: #ebebeb;
  --mx-ink: #000000; --mx-ink2: #4a4a4a; --mx-ink3: #6b6b6b; --mx-faded: #949494; --mx-on-ink: #ffffff;
  --mx-line: rgb(0 0 0 / 10%); --mx-line-strong: rgb(0 0 0 / 22%);
  --mx-accent: #000000; --mx-accent-hover: #262626; --mx-accent-text: #000000; --mx-accent-bg: #ececec; --mx-on-accent: #ffffff; --mx-focus: #000000;
}

/* the shared base every component relies on */
.mx-root, .mx-root * { box-sizing: border-box; }
.mx-root { font-family: var(--mx-font); font-feature-settings: var(--mx-features); color: var(--mx-ink); -webkit-font-smoothing: antialiased; }
:where(.mx-root) :where(button, input) { font: inherit; font-feature-settings: inherit; color: inherit; letter-spacing: inherit; }
.mx-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:where(.mx-root) :focus-visible { outline: 1.5px solid var(--mx-focus); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .mx-root *, .mx-root *::before, .mx-root *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
/* the hidden attribute always wins over a component's own display */
[class^="mx-"][hidden], [class*=" mx-"][hidden] { display: none !important; }

.mx-fit { display: block; white-space: nowrap; overflow: hidden; }

.mx-actions { position: relative; display: flex; justify-content: center; align-items: center; gap: 12px; }
.mx-round { width: 44px; height: 44px; padding: 0; border: 0; border-radius: 9999px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--mx-ink) 9%, transparent); color: var(--mx-ink); text-decoration: none; }
.mx-round:is(:hover, [data-hover]) { background: color-mix(in srgb, var(--mx-ink) 14%, transparent); }
.mx-sw-pill { position: relative; height: 44px; overflow: hidden; border-radius: 9999px; flex-shrink: 0; background: color-mix(in srgb, var(--mx-ink) 9%, transparent); }
.mx-sw-pill > .mx-round { position: absolute; left: 0; top: 0; background: none; }
.mx-sw-inner { position: absolute; left: 4px; top: 0; height: 44px; display: flex; align-items: center; visibility: hidden; }
.mx-sw-pill.is-open .mx-sw-inner { visibility: visible; }
.mx-sw-pill.is-open > .mx-round { visibility: hidden; }
.mx-sw { width: 36px; height: 44px; padding: 0; border: 0; background: none; display: flex; align-items: center; justify-content: center; }
.mx-sw span { width: 26px; height: 26px; border-radius: 9999px; box-shadow: inset 0 0 0 1px var(--mx-line-strong); }
.mx-sw:is(:hover, [data-hover]) span { box-shadow: inset 0 0 0 1px var(--mx-line-strong), 0 0 0 2px var(--mx-page), 0 0 0 3px var(--mx-ink3); }
.mx-sw-close { width: 36px; height: 44px; padding: 0; border: 0; background: none; display: flex; align-items: center; justify-content: center; color: var(--mx-ink); }
.mx-actions-status { position: absolute; left: 0; right: 0; top: calc(100% + 8px); margin: 0; text-align: center; font-size: 13px; line-height: 18px; color: var(--mx-ink3); }

.mx-cf { display: flex; flex-direction: column; gap: 12px; }
.mx-cf-band { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 300px; padding: 56px 20px 88px; overflow: hidden; }
.mx-cf-no, .mx-cf-list { position: absolute; top: 16px; font-size: 13px; line-height: 20px; }
.mx-cf-no { left: 20px; font-weight: var(--mx-w-label); font-variant-numeric: tabular-nums; }
.mx-cf-list { right: 20px; max-width: 60%; text-align: right; }
.mx-cf-name { margin: 0; font-family: var(--mx-font-display); font-weight: 600; letter-spacing: -0.06em; line-height: .86; text-align: center; padding: 0 .02em; }
.mx-cf-slot { position: absolute; left: 0; right: 0; bottom: 28px; display: flex; justify-content: center; }
@media (max-width: 520px) { .mx-cf-band { min-height: 220px; padding-bottom: 76px; } .mx-cf-list { display: none; } }

.mx-cs { position: relative; }
.mx-cs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--mx-cs-cell), 1fr)); column-gap: 16px; row-gap: 20px; }
.mx-cs-cell { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0; border: 0; background: none; outline: none; transition: opacity var(--mx-color) linear; }
.mx-cs-cell.is-dim { opacity: .18; }
.mx-cs-frame { width: var(--mx-cs-cell); height: var(--mx-cs-cell); display: flex; align-items: center; justify-content: center; }
.mx-cs-no { font-size: 11px; line-height: 16px; color: var(--mx-ink3); font-variant-numeric: tabular-nums; }
.mx-cs-ring { position: absolute; left: 0; top: 0; border: 1.5px solid var(--mx-focus); border-radius: 2px; pointer-events: none; opacity: 0; }
.mx-cs-ring.is-on { opacity: 1; }

.mx-cfilter { display: flex; flex-wrap: wrap; column-gap: 20px; row-gap: 4px; font-size: 14px; line-height: 20px; }
.mx-cfilter-opt { display: flex; align-items: flex-start; padding: 0; border: 0; background: none; color: var(--mx-ink3); transition: color var(--mx-color) linear; }
.mx-cfilter-opt:is(:hover, [data-hover]), .mx-cfilter-opt[aria-pressed="true"] { color: var(--mx-ink); }
.mx-cfilter-n { margin-left: 2px; font-size: 10px; line-height: 13px; font-variant-numeric: tabular-nums; vertical-align: baseline; top: 0; }

.mx-crop { position: absolute; inset: 0; pointer-events: none; }
.mx-crop-h, .mx-crop-v { position: absolute; background: var(--mx-ink); }
.mx-crop-h { width: var(--mx-crop-l); height: 1px; }
.mx-crop-v { width: 1px; height: var(--mx-crop-l); }
.mx-crop-h.is-tl, .mx-crop-h.is-bl { left: calc(-1 * (var(--mx-crop-l) + var(--mx-crop-g))); }
.mx-crop-h.is-tr, .mx-crop-h.is-br { right: calc(-1 * (var(--mx-crop-l) + var(--mx-crop-g))); }
.mx-crop-h.is-tl, .mx-crop-h.is-tr { top: 0; }
.mx-crop-h.is-bl, .mx-crop-h.is-br { bottom: 0; }
.mx-crop-v.is-tl, .mx-crop-v.is-tr { top: calc(-1 * (var(--mx-crop-l) + var(--mx-crop-g))); }
.mx-crop-v.is-bl, .mx-crop-v.is-br { bottom: calc(-1 * (var(--mx-crop-l) + var(--mx-crop-g))); }
.mx-crop-v.is-tl, .mx-crop-v.is-bl { left: 0; }
.mx-crop-v.is-tr, .mx-crop-v.is-br { right: 0; }
.mx-crop-reg { position: absolute; top: 50%; width: 18px; height: 18px; margin-top: -9px; border: 1px solid var(--mx-ink); border-radius: 9999px; }
.mx-crop-reg::before, .mx-crop-reg::after { content: ""; position: absolute; background: var(--mx-ink); }
.mx-crop-reg::before { left: -5px; right: -5px; top: 50%; height: 1px; margin-top: -.5px; }
.mx-crop-reg::after { top: -5px; bottom: -5px; left: 50%; width: 1px; margin-left: -.5px; }
.mx-crop-reg.is-l { left: calc(-1 * (var(--mx-crop-g) + 22px)); }
.mx-crop-reg.is-r { right: calc(-1 * (var(--mx-crop-g) + 22px)); }

.mx-clabel {
  font-family: var(--mx-font); font-weight: var(--mx-w-body); letter-spacing: normal; text-align: left; text-transform: none;
  position: absolute; left: 0; top: 0; z-index: 15; pointer-events: none;
  display: flex; gap: 6px; align-items: baseline;
  padding: 3px 8px; border-radius: var(--mx-r-mark);
  background: var(--mx-glass-strong); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: var(--mx-e1);
  font-size: 13px; line-height: 18px; white-space: nowrap;
  opacity: 0; transition: opacity var(--mx-op-out) linear;
}
.mx-clabel.is-on { opacity: 1; transition-duration: var(--mx-op-in); }
.mx-clabel-main { color: var(--mx-ink); font-weight: var(--mx-w-label); }
.mx-clabel-sub { color: var(--mx-ink3); }

.mx-ff { position: relative; width: 100%; font-size: 14px; line-height: 18px; }
.mx-ff-input { width: 100%; height: 40px; padding: 0 44px 0 12px; border: 0; border-radius: var(--mx-r-value); outline: none;
  background: var(--mx-alpha-1); -webkit-backdrop-filter: blur(50px); backdrop-filter: blur(50px); color: var(--mx-ink); }
.mx-ff-input::placeholder { color: var(--mx-ink3); opacity: 1; }
.mx-ff-input:focus-visible { box-shadow: inset 0 0 0 1.5px var(--mx-focus); }
.mx-ff-go { position: absolute; right: 0; top: 0; width: 40px; height: 40px; padding: 0; border: 0; background: none; display: flex; align-items: center; justify-content: center; color: var(--mx-ink); }
.mx-ff-panel { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 10; padding: 6px; border-radius: var(--mx-r-contain);
  background: var(--mx-glass-strong); -webkit-backdrop-filter: blur(50px); backdrop-filter: blur(50px); box-shadow: var(--mx-e2); }
.mx-ff-list { margin: 0; padding: 0; list-style: none; }
.mx-ff-opt { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: var(--mx-r-value); color: var(--mx-ink3); }
.mx-ff-opt[aria-selected="true"] { background: var(--mx-alpha-2); color: var(--mx-ink); }
.mx-ff-n { font-size: 12px; font-variant-numeric: tabular-nums; }
.mx-ff-empty { margin: 0; padding: 8px 10px; color: var(--mx-ink3); }

.mx-dock { position: relative; display: inline-flex; gap: 2px; padding: 4px; border-radius: 9999px; max-width: 100%; overflow-x: auto; scrollbar-width: none;
  background: var(--mx-glass); -webkit-backdrop-filter: blur(var(--mx-glass-blur)); backdrop-filter: blur(var(--mx-glass-blur)); box-shadow: 0 0 0 var(--mx-hair) var(--mx-line), var(--mx-e2); }
.mx-dock-thumb { position: absolute; left: 0; top: 4px; bottom: 4px; border-radius: 9999px; background: color-mix(in srgb, var(--mx-ink) 12%, transparent); }
.mx-dock-opt { position: relative; height: 36px; padding: 0 14px; border: 0; border-radius: 9999px; background: none; white-space: nowrap;
  font-size: 13px; line-height: 20px; font-weight: var(--mx-w-label); color: var(--mx-ink3); transition: color var(--mx-color) linear; outline: none; }
.mx-dock-opt:is(:hover, [data-hover]), .mx-dock-opt[aria-checked="true"] { color: var(--mx-ink); }
.mx-dock-opt:focus-visible { box-shadow: inset 0 0 0 1.5px var(--mx-focus); }

.mx-gp-layer { position: absolute; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.mx-gp-scrim { position: absolute; inset: 0; background: var(--mx-backdrop); opacity: 0; transition: opacity 190ms linear; }
.mx-gp-layer.is-open .mx-gp-scrim { opacity: 1; transition: opacity var(--mx-backdrop-in) var(--mx-ease-backdrop); }
.mx-gp { position: relative; width: min(422px, 100%); max-height: 100%; overflow-y: auto; padding: 40px; border-radius: var(--mx-r-contain);
  background: var(--mx-glass); -webkit-backdrop-filter: blur(var(--mx-glass-blur)); backdrop-filter: blur(var(--mx-glass-blur));
  box-shadow: 0 0 0 var(--mx-hair) var(--mx-line), var(--mx-e3); color: var(--mx-ink);
  opacity: 0; transition: opacity var(--mx-op-out) linear; }
.mx-gp-layer.is-open .mx-gp { opacity: 1; transition-duration: var(--mx-op-in); }
.mx-gp-title { margin: 0 0 16px; font-size: 16px; line-height: 22px; font-weight: var(--mx-w-head); }
.mx-gp-body { font-size: 16px; line-height: 22px; }
.mx-gp-body p { margin: 0 0 12px; }
.mx-gp-foot { margin-top: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; color: var(--mx-ink3); font-size: 14px; }
.mx-gp-action { padding: 12px 24px; border: 0; border-radius: 9999px; background: color-mix(in srgb, var(--mx-ink) 10%, transparent); color: var(--mx-ink); }
.mx-gp-action:is(:hover, [data-hover]) { background: color-mix(in srgb, var(--mx-ink) 16%, transparent); }
@media (max-width: 520px) { .mx-gp { padding: 28px; } }

.mx-peek {
  font-family: var(--mx-font); font-weight: var(--mx-w-body); letter-spacing: normal; text-align: left; text-transform: none;
  position: absolute; left: 0; top: 0; z-index: 16; pointer-events: none;
  padding: 8px; border-radius: var(--mx-r-contain);
  background: var(--mx-raised); box-shadow: var(--mx-e2); font-size: 14px; line-height: 20px; color: var(--mx-ink);
  opacity: 0; transition: opacity var(--mx-op-out) linear;
}
.mx-peek.is-on { opacity: 1; transition-duration: var(--mx-op-in); }

.mx-ix { position: absolute; inset: 0; z-index: 25; overflow-y: auto; padding: 24px; background: var(--mx-page); animation: mx-in var(--mx-op-in) linear; }
.mx-ix-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 28px 24px; align-items: start; }
.mx-ix-group { display: flex; flex-direction: column; align-items: flex-start; }
.mx-ix-head { margin: 0 0 6px; font-size: 13px; line-height: 20px; font-weight: var(--mx-w-ui); color: var(--mx-ink3); }
.mx-ix-item { padding: 1px 0; border: 0; background: none; text-align: left; font-size: 16px; line-height: 24px; color: var(--mx-ink); transition: color var(--mx-color) linear; }
.mx-ix-item:is(:hover, [data-hover]) { color: var(--mx-ink3); }
.mx-ix-item.is-current { color: var(--mx-accent-text); }

.mx-ixp { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); column-gap: 32px; align-items: start; }
.mx-ixp-list { display: flex; flex-direction: column; }
.mx-ixp-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 160px); align-items: baseline; gap: 12px; width: 100%;
  padding: 10px 12px; border: 0; border-bottom: var(--mx-hair) solid var(--mx-line-strong); background: none; text-align: left; color: var(--mx-ink); outline: none; }
.mx-ixp-head { padding-block: 8px; font-size: 12px; line-height: 16px; color: var(--mx-ink3); border-bottom-color: var(--mx-ink); }
.mx-ixp-no, .mx-ixp-group { font-size: 13px; line-height: 20px; color: var(--mx-ink3); font-variant-numeric: tabular-nums; }
.mx-ixp-name { font-family: var(--mx-font-display); font-size: 26px; line-height: 32px; letter-spacing: -0.02em; font-weight: var(--mx-w-display); }
.mx-ixp-row.is-on { background: var(--mx-ink); color: var(--mx-on-ink); border-bottom-color: var(--mx-ink); }
.mx-ixp-row.is-on .mx-ixp-no, .mx-ixp-row.is-on .mx-ixp-group { color: color-mix(in srgb, var(--mx-on-ink) 64%, transparent); }
.mx-ixp-row:focus-visible { box-shadow: inset 0 0 0 1.5px var(--mx-focus); }
.mx-ixp-aside { position: sticky; top: 24px; }
@media (max-width: 760px) {
  .mx-ixp { grid-template-columns: 1fr; row-gap: 24px; }
  .mx-ixp-aside { position: static; order: -1; }
  .mx-ixp-row { grid-template-columns: 44px minmax(0, 1fr); }
  .mx-ixp-group { display: none; }
  .mx-ixp-name { font-size: 20px; line-height: 26px; }
}

.mx-field { position: relative; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; outline: none; }
.mx-field:focus-visible { box-shadow: inset 0 0 0 1.5px var(--mx-focus); }
.mx-field-plane { position: absolute; inset: 0; transform-origin: 50% 50%; }
.mx-field-tile { position: absolute; left: 0; top: 0; display: flex; align-items: center; justify-content: center; }

.mx-loupe {
  position: absolute; left: 0; top: 0; z-index: 20;
  overflow: hidden; border-radius: 9999px; pointer-events: none;
  background: var(--mx-page);
  box-shadow: 0 0 0 1px var(--mx-line-strong), var(--mx-e3);
  opacity: 0; transition: opacity var(--mx-op-out) linear;
}
.mx-loupe.is-on { opacity: 1; transition-duration: var(--mx-op-in); }
.mx-loupe-copy { position: absolute !important; left: 0 !important; top: 0 !important; margin: 0 !important; transform-origin: 0 0; }

.mx-masonry { position: relative; }
.mx-masonry-item { position: absolute; left: 0; top: 0; }
.mx-masonry-item.is-in { animation: mx-in var(--mx-op-in) linear; }
@keyframes mx-in { from { opacity: 0; } to { opacity: 1; } }

.mx-morph { position: absolute; inset: 0; z-index: 30; }
.mx-morph-scrim { position: absolute; inset: 0; padding: 0; border: 0; background: color-mix(in srgb, var(--mx-page) 94%, transparent); }
.mx-morph-frame { position: absolute; display: flex; align-items: center; justify-content: center; transform-origin: 50% 50%; pointer-events: none; }
.mx-morph-side { position: absolute; display: flex; flex-direction: column; outline: none; }
.mx-morph-close { align-self: flex-end; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 9999px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; background: var(--mx-pill); color: var(--mx-ink); }
.mx-morph-close:is(:hover, [data-hover]) { background: var(--mx-selected); }
.mx-morph-side.is-below .mx-morph-close { position: absolute; right: 0; top: -8px; transform: translateY(-100%); }
.mx-morph-caption { flex-grow: 1; display: flex; flex-direction: column; min-height: 0; }

.mx-wall { display: flex; flex-wrap: wrap; column-gap: .3em; margin: 0; padding: 0;
  font-family: var(--mx-font-display); font-size: var(--mx-wall-size, 52px); line-height: 1.08;
  font-weight: var(--mx-w-display); letter-spacing: var(--mx-track-display); }
.mx-wall-item { display: flex; }
.mx-wall-name { display: flex; align-items: flex-start; padding: 0; border: 0; background: none; text-align: left;
  font: inherit; letter-spacing: inherit; color: var(--mx-ink); outline: none; transition: color var(--mx-color) linear; }
.mx-wall-name.is-out { color: var(--mx-faded); }
.mx-wall-name:focus-visible { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .12em; text-decoration-color: var(--mx-focus); }
.mx-wall-no { margin: .16em 0 0 .08em; font-family: var(--mx-font); font-size: max(11px, .25em); line-height: 1; font-weight: var(--mx-w-ui);
  letter-spacing: 0; font-variant-numeric: tabular-nums; vertical-align: baseline; top: 0; }

.mx-odo { display: inline-flex; font-variant-numeric: tabular-nums; }
.mx-odo-digits { display: inline-flex; }
.mx-odo-col { display: inline-block; height: 1em; line-height: 1; overflow: hidden; }
.mx-odo-strip { display: flex; flex-direction: column; }
.mx-odo-strip > span { display: block; height: 1em; line-height: 1; text-align: center; }

.mx-ps { position: relative; width: 100%; max-width: 500px; font-size: 16px; line-height: 20px; }
.mx-ps-wrap { overflow: hidden; border-radius: 32px; background: var(--mx-glass); -webkit-backdrop-filter: blur(var(--mx-glass-blur)); backdrop-filter: blur(var(--mx-glass-blur)); box-shadow: 0 0 0 var(--mx-hair) var(--mx-line); }
.mx-ps-wrap.is-open { border-radius: var(--mx-r-contain); background: var(--mx-glass-strong); }
.mx-ps-row { position: relative; height: 64px; margin: 0; display: flex; align-items: center; }
.mx-ps-prefix { margin: 0 5px 0 24px; flex-shrink: 0; color: var(--mx-ink3); user-select: none; }
.mx-ps-field { position: relative; flex-grow: 1; align-self: stretch; display: flex; align-items: center; min-width: 0; }
.mx-ps-ghost { position: absolute; left: 0; top: 0; bottom: 0; max-width: calc(100% - 96px); display: flex; align-items: center; pointer-events: none; color: var(--mx-ink); white-space: nowrap; }
.mx-ps-typed { overflow: hidden; text-overflow: ellipsis; }
.mx-ps-caret { width: 1px; height: 22px; margin-left: 2px; flex-shrink: 0; background: var(--mx-ink); }
.mx-ps-ghost.is-resting .mx-ps-caret { animation: mx-caret 1s steps(1) infinite; }
@keyframes mx-caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.mx-ps-input { position: relative; width: 100%; height: 64px; padding: 0 104px 0 0; border: 0; outline: none; background: transparent; color: var(--mx-ink); }
.mx-ps-clear, .mx-ps-submit { position: absolute; top: 10px; width: 44px; height: 44px; padding: 0; border: 0; background: none; display: flex; align-items: center; justify-content: center; }
.mx-ps-clear { right: 56px; color: var(--mx-ink3); }
.mx-ps-clear > span { width: 20px; height: 20px; border: 1px solid currentColor; border-radius: 9999px; display: flex; align-items: center; justify-content: center; }
.mx-ps-submit { right: 10px; }
.mx-ps-submit > span { width: 28px; height: 28px; border-radius: 9999px; display: flex; align-items: center; justify-content: center; background: var(--mx-ink3); color: var(--mx-page); transition: box-shadow var(--mx-color) linear; }
.mx-ps-submit.is-full > span { box-shadow: 0 0 0 3px color-mix(in srgb, var(--mx-ink3) 24%, transparent); }
.mx-ps-submit:focus-visible, .mx-ps-clear:focus-visible { outline: none; }
.mx-ps-submit:focus-visible > span, .mx-ps-clear:focus-visible > span { box-shadow: 0 0 0 1.5px var(--mx-focus); }
.mx-ps-shell { position: relative; height: 279px; border-top: var(--mx-hair) solid var(--mx-line); }
.mx-ps-list { height: 100%; margin: 0; padding: 20px 24px 46px; list-style: none; overflow-y: auto; scrollbar-width: none; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.mx-ps-sug { padding: 3px 0; border: 0; background: none; text-align: left; color: var(--mx-ink3); transition: color var(--mx-color) linear; }
.mx-ps-sug:is(:hover, [data-hover]), .mx-ps-sug:focus-visible { color: var(--mx-ink); outline: none; }
.mx-ps-shell::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 64px; pointer-events: none; background: linear-gradient(to top, var(--mx-glass-strong), transparent); }
.mx-ps-toggle { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); width: 72px; height: 44px; padding: 8px 0 16px; border: 0; background: none; display: flex; justify-content: center; }
.mx-ps-toggle > span { width: 72px; height: 20px; border-radius: 9999px; display: flex; align-items: center; justify-content: center; color: var(--mx-ink3);
  background: var(--mx-glass); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); box-shadow: 0 0 0 var(--mx-hair) var(--mx-line); }
.mx-ps-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.mx-ps-toggle:focus-visible { outline: none; }
.mx-ps-toggle:focus-visible > span { box-shadow: 0 0 0 1.5px var(--mx-focus); }
@media (max-width: 520px) { .mx-ps { font-size: 15px; } .mx-ps-prefix { margin-left: 18px; } }

.mx-scrub { position: relative; height: 56px; touch-action: none; user-select: none; -webkit-user-select: none; outline: none; }
.mx-scrub:focus-visible { box-shadow: 0 0 0 1.5px var(--mx-focus); border-radius: 2px; }
.mx-scrub-labels { position: absolute; left: 0; right: 0; top: 0; height: 16px; }
.mx-scrub-label { position: absolute; top: 0; font-size: 11px; line-height: 14px; color: var(--mx-ink3); white-space: nowrap; }
.mx-scrub-label.is-on { color: var(--mx-ink); }
.mx-scrub-ticks { position: absolute; left: 0; right: 0; top: 20px; bottom: 2px; }
.mx-scrub-tick { position: absolute; bottom: 0; width: 1px; height: 8px; background: var(--mx-ink3); }
.mx-scrub-tick.is-start { height: 14px; }
.mx-scrub-tick.is-on { width: 2px; margin-left: -.5px; height: 100%; background: var(--mx-ink); }
.mx-scrub-tip { position: absolute; bottom: calc(100% + 4px); transform: translateX(-50%); padding: 2px 7px; border-radius: var(--mx-r-mark);
  background: var(--mx-ink); color: var(--mx-on-ink); font-size: 12px; line-height: 18px; white-space: nowrap; pointer-events: none; opacity: 0; }
.mx-scrub-tip.is-on { opacity: 1; }

.mx-sheet-layer { position: absolute; inset: 0; z-index: 30; overflow: hidden; }
.mx-sheet-layer.is-fixed { position: fixed; }
.mx-sheet-scrim { position: absolute; inset: 0; background: var(--mx-backdrop); opacity: 0; transition: opacity 190ms linear; }
.mx-sheet-layer.is-open .mx-sheet-scrim { opacity: 1; transition: opacity var(--mx-backdrop-in) var(--mx-ease-backdrop); }
.mx-sheet { position: absolute; left: 12px; right: 12px; bottom: 0; max-height: calc(100% - 48px); display: flex; flex-direction: column;
  border-radius: var(--mx-r-contain) var(--mx-r-contain) 0 0; background: var(--mx-raised); box-shadow: var(--mx-e3); outline: none; }
.mx-sheet-grip { flex-shrink: 0; height: 22px; display: flex; align-items: center; justify-content: center; touch-action: none; }
.mx-sheet-grip span { width: 36px; height: 4px; border-radius: 9999px; background: var(--mx-line-strong); }
.mx-sheet-close { position: absolute; right: 16px; top: 16px; z-index: 1; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 9999px;
  display: flex; align-items: center; justify-content: center; background: var(--mx-pill); color: var(--mx-ink); }
.mx-sheet-close:is(:hover, [data-hover]) { background: var(--mx-selected); }
.mx-sheet-body { overflow-y: auto; padding: 8px 24px 28px; }

.mx-slides { position: relative; overflow: hidden; outline: none; touch-action: pan-y; }
.mx-slides:focus-visible { box-shadow: inset 0 0 0 1.5px var(--mx-focus); }
.mx-slides-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.mx-slides-nav { position: absolute; top: 0; bottom: 0; width: 50%; display: flex; align-items: center; padding: 0 20px;
  border: 0; background: none; font-size: 14px; line-height: 20px; color: var(--mx-ink3); transition: color var(--mx-color) linear; }
.mx-slides-nav:is(:hover, [data-hover]) { color: var(--mx-ink); }
.mx-slides-nav.is-prev { left: 0; justify-content: flex-start; }
.mx-slides-nav.is-next { right: 0; justify-content: flex-end; }

.mx-pager { display: flex; justify-content: space-between; gap: 24px; }
.mx-pager-link { display: flex; flex-direction: column; gap: 2px; padding: 0; border: 0; background: none; text-align: left; font-size: 15px; line-height: 22px; color: var(--mx-ink); transition: color var(--mx-color) linear; }
.mx-pager-link.is-next { margin-left: auto; text-align: right; align-items: flex-end; }
.mx-pager-link:is(:hover, [data-hover]) { color: var(--mx-ink3); }
.mx-pager-dir { font-size: 12px; line-height: 16px; color: var(--mx-ink3); }

.mx-theme { width: 62px; height: 38px; padding: 3px; border: 0; border-radius: 9999px; background: color-mix(in srgb, var(--mx-ink) 8%, transparent);
  -webkit-backdrop-filter: blur(50px); backdrop-filter: blur(50px); display: flex; outline: none; }
.mx-theme:is(:hover, [data-hover]) { background: color-mix(in srgb, var(--mx-ink) 12%, transparent); }
.mx-theme:focus-visible { box-shadow: 0 0 0 1.5px var(--mx-focus); }
.mx-theme-knob { width: 32px; height: 32px; border-radius: 9999px; background: var(--mx-raised); box-shadow: var(--mx-e1), 0 0 0 var(--mx-hair) var(--mx-line); }
.mx-theme[aria-checked="true"] .mx-theme-knob { background: color-mix(in srgb, var(--mx-ink) 16%, transparent); box-shadow: none; }

/* The library page. Everything it draws comes from the same tokens as the parts. */
html { background: var(--mx-page); scroll-padding-top: calc(72px + env(safe-area-inset-top, 0px)); }
body { margin: 0; background: var(--mx-page); color: var(--mx-ink); }
.page { font-size: 15px; line-height: 24px; font-weight: var(--mx-w-body); letter-spacing: -0.011em; padding-inline: 24px; }
.page a { color: inherit; }

/* bar */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; height: 64px; margin-inline: -24px; padding: 0 24px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  background: color-mix(in srgb, var(--mx-page) 88%, transparent); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 var(--mx-hair) 0 var(--mx-line); }
.bar-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: var(--mx-w-label); }
.bar-count { font-size: 13px; color: var(--mx-ink3); }
.bar-tools { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.bar-tools .mx-dock { box-shadow: 0 0 0 var(--mx-hair) var(--mx-line); padding: 3px; }
.bar-tools .mx-dock-thumb { top: 3px; bottom: 3px; }
.bar-tools .mx-dock-opt { height: 32px; padding: 0 12px; }

/* hero: the index is a name wall */
.hero { padding: 72px 0 96px; display: flex; flex-direction: column; gap: 28px; }
.hero-lede { margin: 0; max-width: 58ch; font-size: 17px; line-height: 26px; color: var(--mx-ink2); text-wrap: pretty; }
.hero-wall { --mx-wall-size: clamp(34px, 6.2vw, 92px); position: relative; }
.hero-peek { display: flex; flex-direction: column; gap: 6px; padding: 6px; }
.hero-peek p { margin: 0; font-size: 14px; line-height: 20px; color: var(--mx-ink2); }
.hero-peek-g { font-size: 12px; line-height: 16px; color: var(--mx-ink3); font-variant-numeric: tabular-nums; }

/* a part */
.parts { display: flex; flex-direction: column; gap: 120px; padding-bottom: 120px; }
.part { scroll-margin-top: 80px; display: flex; flex-direction: column; }
.part-head { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: baseline; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--mx-ink); }
.part-no { font-size: 13px; color: var(--mx-ink3); font-variant-numeric: tabular-nums; }
.part-name { margin: 0; font-family: var(--mx-font-display); font-size: 44px; line-height: 48px; font-weight: var(--mx-w-display); letter-spacing: var(--mx-track-display); }
.part-group { font-size: 13px; color: var(--mx-ink3); }
.part-intro { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 360px); gap: 16px 16px; padding: 20px 0 28px; }
.part-lede { grid-column: 2; margin: 0; max-width: 60ch; font-size: 17px; line-height: 26px; color: var(--mx-ink2); text-wrap: pretty; }
.facts { grid-column: 3; margin: 0; display: flex; flex-direction: column; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-bottom: var(--mx-hair) solid var(--mx-line-strong); font-size: 13px; line-height: 20px; }
.facts div:first-child { border-top: var(--mx-hair) solid var(--mx-line-strong); }
.facts dt { color: var(--mx-ink3); }
.facts dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.hint { margin: 10px 0 0; font-size: 13px; line-height: 20px; color: var(--mx-ink3); min-height: 20px; }
.part-code { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.tabs.mx-dock { background: var(--mx-pill); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; padding: 3px; }
.tabs .mx-dock-thumb { top: 3px; bottom: 3px; background: var(--mx-raised); box-shadow: var(--mx-e1), 0 0 0 var(--mx-hair) var(--mx-line); }
.tabs .mx-dock-opt { height: 30px; padding: 0 12px; }
.code-wrap { position: relative; }
.code { margin: 0; max-height: 440px; overflow: auto; padding: 16px 18px; border-radius: var(--mx-r-contain); background: var(--mx-well);
  font-family: var(--mx-font-code); font-size: 12.5px; line-height: 19px; color: var(--mx-ink); tab-size: 2; }
.code code { font: inherit; white-space: pre; }
.code-copy { position: absolute; right: 10px; top: 10px; height: 28px; padding: 0 12px; border: 0; border-radius: 9999px;
  background: var(--mx-raised); box-shadow: var(--mx-e1), 0 0 0 var(--mx-hair) var(--mx-line); font-size: 12px; color: var(--mx-ink); }

/* the stage every demo runs in */
.stage { position: relative; overflow: hidden; border-radius: var(--mx-r-contain); background: var(--mx-ground); color: var(--mx-ink); isolation: isolate; }
.stage[data-theme="dark"] { background: #000; }
[data-family="neutral"] .stage[data-theme="dark"] { background: #000; }
.stage.is-flush { background: none; }
.fill { position: absolute; inset: 0; }

/* plates and the small shared pieces */
.mx-plate { position: relative; overflow: hidden; flex-shrink: 0; }
.mx-plate-in { position: absolute; left: 0; top: 0; transform-origin: 0 0; display: flex; align-items: center; justify-content: center; }
.mx-round.small { width: 40px; height: 40px; }
.peek-card { display: flex; flex-direction: column; gap: 8px; }
.peek-plate { display: flex; justify-content: center; align-items: center; min-height: 80px; }
.peek-name { margin: 0; display: flex; justify-content: space-between; font-size: 14px; line-height: 20px; font-weight: var(--mx-w-label); }
.peek-no { color: var(--mx-ink3); font-weight: var(--mx-w-ui); font-variant-numeric: tabular-nums; }
.peek-note { margin: 0; font-size: 13px; line-height: 18px; color: var(--mx-ink2); }
.detail { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px; align-items: start; }
.detail-plate { display: flex; }
.detail-text { display: flex; flex-direction: column; gap: 8px; padding-top: 8px; max-width: 520px; }
.detail-no { font-size: 13px; color: var(--mx-ink3); font-variant-numeric: tabular-nums; }
.detail-name { margin: 0; font-family: var(--mx-font-display); font-size: 40px; line-height: 44px; font-weight: var(--mx-w-display); letter-spacing: var(--mx-track-display); }
.detail-note { margin: 8px 0 0; font-size: 15px; line-height: 23px; color: var(--mx-ink2); }
.detail-pager { margin-top: 28px; padding-top: 16px; border-top: var(--mx-hair) solid var(--mx-line-strong); }

/* demos */
.stage-loupe { padding: 32px; }
.fine { max-height: 520px; overflow: hidden; columns: 240px; column-gap: 28px; font-size: 6.5px; line-height: 9px; color: var(--mx-ink2); background: var(--mx-ground); }
.fine p { margin: 0 0 4px; break-inside: avoid; }
.fine b { color: var(--mx-ink); font-weight: 600; }

.stage-cursor-label { padding: 32px; }
.results { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 24px 16px; justify-items: center; align-items: center; }
.results-cell { width: 150px; height: 150px; padding: 0; border: 0; background: none; display: flex; align-items: center; justify-content: center; }

.stage-hover-peek { padding: 48px 40px; }
.prose { max-width: 60ch; font-size: 22px; line-height: 34px; letter-spacing: -0.015em; }
.prose p { margin: 0 0 20px; }
.peek-link { color: var(--mx-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--mx-line-strong); }
.peek-link:is(:hover, [data-hover]) { text-decoration-color: var(--mx-ink); }

.stage-infinite-field { height: 560px; }
.stage-masonry { padding: 8px; background: var(--mx-raised); }
.gal-bar { display: grid; grid-template-columns: minmax(0, 360px) 1fr auto; align-items: center; gap: 12px; margin-bottom: 20px; position: relative; z-index: 5; }
.gal-count { margin: 0; font-size: 13px; color: var(--mx-ink3); font-variant-numeric: tabular-nums; }
.gal-card h3 { margin: 6px 0 0; font-size: 14px; line-height: 18px; font-weight: var(--mx-w-ui); }
.gal-card p { margin: 0; font-size: 14px; line-height: 18px; color: var(--mx-ink3); transition: color var(--mx-color) linear; }
.gal-card:is(:hover, [data-hover]) p { color: var(--mx-ink); }
.gal-media { border-radius: var(--mx-r-value); overflow: hidden; display: flex; }

.stage-contact-sheet { padding: 32px 32px 104px; }
.cs-dock { position: absolute; left: 0; right: 0; bottom: 24px; display: flex; justify-content: center; padding: 0 16px; z-index: 22; }

.stage-name-wall { padding: 28px 28px 48px; min-height: 720px; }
.nw-filter { margin-bottom: 28px; }
.nw-host { --mx-wall-size: clamp(26px, 3.6vw, 48px); position: relative; }

.stage-index-preview { padding: 32px; background: var(--mx-raised); }
.ixp-prev { display: flex; flex-direction: column; gap: 6px; }
.ixp-figwrap { display: flex; justify-content: center; padding: 36px 0 32px; }
.ixp-fig { display: flex; }
.ixp-name { margin: 0; font-size: 14px; line-height: 20px; font-weight: var(--mx-w-label); }
.ixp-note { margin: 0; font-size: 14px; line-height: 20px; color: var(--mx-ink2); }

.stage-slideshow { height: 660px; background: var(--mx-raised); }
.sl-counter { position: absolute; left: 24px; bottom: 96px; display: flex; align-items: flex-start; gap: 10px; pointer-events: none; }
.sl-count { font-family: var(--mx-font-display); font-size: 120px; line-height: 1; font-weight: var(--mx-w-display); letter-spacing: -0.045em; }
.sl-total { margin-top: 12px; font-size: 14px; color: var(--mx-ink3); font-variant-numeric: tabular-nums; }
.sl-cap { position: absolute; right: 24px; bottom: 96px; width: min(400px, 40%); pointer-events: none; }
.sl-name { margin: 0; font-family: var(--mx-font-display); font-size: 32px; line-height: 36px; font-weight: var(--mx-w-display); letter-spacing: -0.03em; }
.sl-meta { margin: 6px 0 0; font-size: 14px; color: var(--mx-ink3); }
.sl-note { margin: 6px 0 0; font-size: 14px; line-height: 20px; color: var(--mx-ink2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sl-scrub { position: absolute; left: 24px; right: 24px; bottom: 16px; }
.sl-index { position: absolute; right: 16px; top: 12px; z-index: 26; height: 36px; padding: 0 14px; border: 0; border-radius: 9999px; background: var(--mx-pill); font-size: 14px; font-weight: var(--mx-w-label); color: var(--mx-ink); }
.sl-index:is(:hover, [data-hover]) { background: var(--mx-selected); }

.stage-prompt-search { height: 560px; }
.ps-center { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); display: flex; justify-content: center; padding: 0 16px; z-index: 3; pointer-events: none; }
.ps-center .mx-ps { pointer-events: auto; transform: translateY(-40px); }
.ps-status { position: absolute; left: 24px; right: 24px; bottom: 20px; z-index: 3; margin: 0; text-align: center; font-size: 13px; line-height: 20px; color: var(--mx-ink2); text-shadow: 0 1px 12px #000; }

.stage-filter-field { padding: 32px; }
.ff-host { max-width: 380px; position: relative; z-index: 5; }
.ff-count { margin: 16px 0 8px; font-size: 13px; color: var(--mx-ink3); font-variant-numeric: tabular-nums; }
.ff-list { margin: 0; padding: 0; list-style: none; max-height: 340px; overflow-y: auto; columns: 280px; column-gap: 32px; }
.ff-list li { display: flex; gap: 12px; padding: 4px 0; font-size: 14px; line-height: 20px; break-inside: avoid; }
.ff-no { color: var(--mx-ink3); font-variant-numeric: tabular-nums; }
.ff-g { margin-left: auto; color: var(--mx-ink3); font-size: 13px; }

.stage-count-filter { padding: 32px; }
.cf-list { margin: 24px 0 0; max-width: 90ch; font-size: 17px; line-height: 28px; color: var(--mx-ink); }
.cf-list span { transition: color var(--mx-color) linear; }
.cf-list span.is-out { color: var(--mx-faded); }

.stage-glass-dock { height: 380px; background: var(--mx-raised); }
.dock-grid { position: absolute; inset: -20px; display: grid; grid-template-columns: repeat(auto-fill, 120px); gap: 8px; justify-content: center; align-content: start; }
.dock-cell { width: 120px; height: 120px; display: flex; align-items: center; justify-content: center; transition: opacity var(--mx-color) linear; }
.dock-cell.is-dim { opacity: .15; }
.dock-host { position: absolute; left: 0; right: 0; bottom: 28px; display: flex; justify-content: center; padding: 0 16px; }

.stage-sheet { height: 600px; padding: 24px; }
.sh-list { display: flex; flex-direction: column; max-width: 760px; }
.sh-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto 24px; align-items: baseline; gap: 12px; padding: 12px 8px; border: 0; border-bottom: var(--mx-hair) solid var(--mx-line-strong);
  background: none; text-align: left; border-radius: 0; }
.sh-row:is(:hover, [data-hover]) { background: var(--mx-hover); }
.sh-no, .sh-g { font-size: 13px; color: var(--mx-ink3); font-variant-numeric: tabular-nums; }
.sh-name { font-family: var(--mx-font-display); font-size: 24px; line-height: 30px; letter-spacing: -0.02em; font-weight: var(--mx-w-display); }
.sh-go { color: var(--mx-ink3); }

.stage-morph { padding: 32px; min-height: 620px; background: var(--mx-raised); }
.mo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; justify-items: center; align-items: center; }
.mo-cell { width: 150px; height: 150px; padding: 0; border: 0; background: none; display: flex; align-items: center; justify-content: center; cursor: zoom-in; }
.cap { display: flex; flex-direction: column; gap: 8px; height: 100%; }
.cap-no { font-size: 13px; color: var(--mx-ink3); font-variant-numeric: tabular-nums; }
.cap-name { margin: 0; font-family: var(--mx-font-display); font-size: 40px; line-height: 44px; font-weight: var(--mx-w-display); letter-spacing: var(--mx-track-display); }
.cap-note { margin: 8px 0 0; font-size: 15px; line-height: 23px; color: var(--mx-ink2); }

.stage-glass-panel { height: 540px; }
.gp-open { position: absolute; right: 16px; top: 16px; z-index: 2; height: 36px; padding: 0 16px; border: 0; border-radius: 9999px;
  background: var(--mx-glass); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); color: var(--mx-ink); font-size: 14px; font-weight: var(--mx-w-label); box-shadow: 0 0 0 var(--mx-hair) var(--mx-line); }

.stage-index-overlay { height: 520px; background: var(--mx-raised); }
.io-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 0 24px; text-align: center; }
.io-name { margin: 0; font-family: var(--mx-font-display); font-size: clamp(40px, 7vw, 96px); line-height: 1; font-weight: var(--mx-w-display); letter-spacing: var(--mx-track-display); }
.io-meta { margin: 0; color: var(--mx-ink3); }

.stage-odometer { height: 400px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 36px; background: var(--mx-raised); }
.od-num { font-family: var(--mx-font-display); font-size: clamp(96px, 16vw, 200px); font-weight: var(--mx-w-display); letter-spacing: -0.045em; }
.od-row { display: flex; gap: 8px; }
.od-btn { height: 36px; min-width: 56px; padding: 0 14px; border: 0; border-radius: 9999px; background: var(--mx-pill); font-weight: var(--mx-w-label); font-variant-numeric: tabular-nums; }
.od-btn:is(:hover, [data-hover]) { background: var(--mx-selected); }

.stage-scrub-timeline { padding: 40px 32px 32px; background: var(--mx-raised); }
.sc-top { margin-bottom: 48px; }
.sc-name { margin: 0; font-family: var(--mx-font-display); font-size: 48px; line-height: 52px; font-weight: var(--mx-w-display); letter-spacing: var(--mx-track-display); }
.sc-meta { margin: 6px 0 0; color: var(--mx-ink3); }

.stage-fit-text { padding: 24px 32px 40px; background: var(--mx-raised); }
.fit-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.fit-label { font-size: 13px; color: var(--mx-ink3); }
.fit-input { width: min(320px, 100%); height: 36px; padding: 0 12px; border: 0; border-radius: var(--mx-r-value); background: var(--mx-alpha-1); outline: none; box-shadow: inset 0 0 0 var(--mx-hair) var(--mx-line-strong); }
.fit-input:focus-visible { box-shadow: inset 0 0 0 1.5px var(--mx-focus); }
.fit-size { margin-left: auto; font-size: 13px; color: var(--mx-ink3); font-variant-numeric: tabular-nums; }
.fit-line { font-family: var(--mx-font-display); font-weight: 600; letter-spacing: -0.055em; line-height: .9; }

.stage-colour-field .mx-cf { gap: 8px; }
.cf-track { position: relative; width: 240px; height: 20px; padding: 0; border: 0; border-radius: 9999px; background: rgb(11 11 11 / 14%); }
.cf-dot { position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 9999px; background: #0b0b0b; }
.cf-ramp { display: flex; }
.cf-ramp span { width: 36px; height: 36px; }

.stage-crop-marks { height: 540px; background: var(--mx-raised); }
.crop-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; }
.crop-fig { display: flex; }
.crop-cap { margin: 0; font-size: 13px; color: var(--mx-ink3); }
.crop-toggle { position: absolute; left: 20px; bottom: 16px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mx-ink2); }
.crop-toggle input { accent-color: var(--mx-accent); width: 16px; height: 16px; margin: 0; }

.stage-theme-switch { padding: 24px; }
.th-panel { position: relative; padding: 32px; border-radius: var(--mx-r-contain); background: var(--mx-page); color: var(--mx-ink); transition: background-color var(--mx-color) linear, color var(--mx-color) linear; }
.th-switch { position: absolute; right: 20px; top: 20px; }
.th-card .detail-name { font-size: 32px; line-height: 36px; }

.stage-action-row { height: 620px; }
.ac-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 0 16px; }
.ac-name { margin: 20px 0 0; font-size: 16px; line-height: 22px; }
.ac-meta { margin: 0 0 20px; color: var(--mx-ink3); }
.ac-row { position: relative; }
.ac-picked { min-height: 20px; margin: 44px 0 0; font-size: 13px; color: var(--mx-ink2); }

.stage-text-pager { padding: 40px 32px 32px; background: var(--mx-raised); }
.pg-top { min-height: 150px; }
.pg-name { margin: 0; font-family: var(--mx-font-display); font-size: 56px; line-height: 60px; font-weight: var(--mx-w-display); letter-spacing: var(--mx-track-display); }
.pg-note { margin: 10px 0 0; max-width: 60ch; color: var(--mx-ink2); }
.pg-host { margin-top: 24px; padding-top: 16px; border-top: var(--mx-hair) solid var(--mx-line-strong); }

.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 0 32px; border-top: 1px solid var(--mx-ink); font-size: 13px; color: var(--mx-ink3); }

/* narrow screens */
@media (max-width: 900px) {
  .part-intro { grid-template-columns: 1fr; }
  .part-lede, .facts { grid-column: 1; }
  .part-head { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .bar { grid-template-columns: 1fr auto; }
  .bar-count { display: none; }
  .sl-cap { width: auto; left: 24px; bottom: 90px; }
  .sl-counter { top: 16px; bottom: auto; }
  .sl-count { font-size: 56px; }
  .sl-total { margin-top: 6px; }
  .sl-note { display: none; }
}
@media (max-width: 640px) {
  .page { padding-inline: 16px; }
  .bar { margin-inline: -16px; padding: 0 16px; }
  .part-name { font-size: 32px; line-height: 36px; }
  .hero { padding: 40px 0 64px; }
  .parts { gap: 88px; }
  .stage-loupe, .stage-cursor-label, .stage-index-preview, .stage-filter-field, .stage-count-filter, .stage-morph, .stage-scrub-timeline, .stage-fit-text, .stage-text-pager { padding: 20px; }
  .stage-hover-peek { padding: 24px 20px; }
  .prose { font-size: 18px; line-height: 28px; }
  .stage-infinite-field, .stage-prompt-search { height: 440px; }
  .stage-slideshow { height: 600px; }
  .results { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
  .results-cell { width: 100px; height: 100px; }
  .mo-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  .mo-cell { width: 96px; height: 96px; }
  .gal-bar { grid-template-columns: 1fr auto; }
  .gal-count { display: none; }
  .detail { grid-template-columns: 1fr; }
  .detail-name { font-size: 32px; line-height: 36px; }
  .sc-name, .pg-name { font-size: 36px; line-height: 40px; }
  .stage-contact-sheet { padding: 20px 16px 96px; }
  .bar-tools .mx-dock-opt { padding: 0 10px; }
}


/* the bar, as on the site */
.bar { position: fixed; z-index: 50; top: calc(12px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; height: 48px; padding: 0 4px 0 14px;
  border-radius: 9999px; background: var(--glass); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 0 0 .5px var(--line), var(--e2); font-size: 13px; white-space: nowrap; }
.bar b { font-weight: 550; font-size: 14px; margin-right: 12px; }
.bar span { height: 32px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 9999px; color: var(--ink2); }
.bar span.on { color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, transparent); }
.bar i { font-style: normal; margin-left: 8px; height: 36px; padding: 0 16px; display: flex; align-items: center; border-radius: 9999px; background: var(--ink); color: var(--page); }
@media (max-width: 720px) { .bar span:not(.on) { display: none; } }

.small { margin: 0; font-size: 13px; line-height: 20px; color: var(--ink3); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0; }
.kick { font: 500 11px/16px ui-monospace, "SF Mono", Menlo, monospace; color: var(--ink3); text-transform: uppercase; letter-spacing: .04em; }
.glass { background: var(--glass); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 0 0 .5px var(--line), var(--e2); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 16px; border: 0; border-radius: 9999px; background: var(--ink); color: var(--page); font: 500 13px/1 var(--font); cursor: pointer; white-space: nowrap; }
.btn.is-quiet { background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink); }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible, input:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 2px; }

/* a part may draw wider than its column; the column holds it, and the page never scrolls sideways */
body { overflow-x: clip; }
.sr-out > *, .pt > *, .bn-main, .cb-in > *, .rl-text { min-width: 0; }
.sr-top .stage-box, .pt-stage, .cb-stage { max-width: 100%; overflow: hidden; border-radius: 12px; }

/* the page head, as on the site */
.lab { padding: 148px var(--m) 0; }
.lab-h { display: flex; align-items: flex-start; margin: 0; font: 450 clamp(60px, 10vw, 156px)/.9 var(--font); letter-spacing: -0.048em; }
.lab-h sup { position: relative; top: .3em; margin-left: .1em; font-size: .2em; font-weight: 450; letter-spacing: -0.01em; color: var(--ink3); }
.lab-lede { max-width: 33em; margin: 32px 0 0; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.48; letter-spacing: -0.014em; color: var(--ink2); }
.bud { padding: clamp(56px, 7vw, 96px) 0 200px; }
.facts2 { margin: 0; padding: 0; list-style: none; }
.facts2 li { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-top: .5px solid var(--line-strong); font-size: 13px; line-height: 19px; }
.facts2 li span:first-child { color: var(--ink3); }
.facts2 li span:last-child { text-align: right; }
.hint2 { margin: 10px 0 0; font-size: 13px; line-height: 20px; color: var(--ink3); }
.code { position: relative; margin: 0; max-height: 420px; overflow: auto; padding: 16px 18px; border-radius: 10px; background: var(--ground); font: 400 12px/19px ui-monospace, "SF Mono", Menlo, monospace; color: var(--ink2); white-space: pre; tab-size: 2; }
.code .c { color: var(--faded); }
.code .k { color: var(--ink); font-weight: 600; }
.code .s { color: var(--accent); }
.code-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.copy { height: 30px; padding: 0 12px; border: 0; border-radius: 9999px; background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink); font: 500 12px/1 var(--font); cursor: pointer; }

/* the switcher, a rail on the right edge */
.pick { position: fixed; z-index: 90; right: 10px; top: 50%; transform: translateY(-50%); -webkit-user-select: none; user-select: none; }
.pick-rail { display: flex; flex-direction: column; gap: 2px; padding: 4px; border-radius: 9999px; }
.pick-rail button { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: none; font: 500 12px/1 var(--font); color: var(--ink3); cursor: pointer; }
.pick-rail button[aria-pressed="true"] { background: var(--ink); color: var(--page); }
.pick-note { position: absolute; right: calc(100% + 10px); top: 50%; width: min(300px, calc(100vw - 72px)); margin: 0; padding: 12px 14px; border-radius: 12px; transform: translateY(-50%); font-size: 13px; line-height: 19px; color: var(--ink2);
  opacity: 0; pointer-events: none; transition: opacity .3s var(--tau-ease); background: color-mix(in srgb, var(--page) 94%, transparent); }
.pick-note b { display: block; margin-bottom: 2px; font-weight: 600; color: var(--ink); }
.pick.is-note .pick-note { opacity: 1; }
@media (max-width: 720px) {
  .pick { top: auto; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: none; right: 6px; }
  .pick-rail button { width: 26px; height: 26px; font-size: 11px; }
  .pick-note { top: auto; bottom: 0; transform: none; }
}

/* ---------------------------------------------------------------- 1 the bench */
.bn { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 0 40px; height: calc(100svh - 96px); min-height: 640px; margin-right: 34px; }
.bn-index { position: relative; overflow-y: auto; overscroll-behavior: contain; padding: 4px 8px 24px 0; scrollbar-width: thin; }
.bn-index h3 { margin: 22px 0 6px 10px; }
.bn-index h3:first-child { margin-top: 0; }
.bn-index button { position: relative; z-index: 1; display: flex; align-items: baseline; gap: 12px; width: 100%; height: 32px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--ink2); font: 450 15px/32px var(--font); letter-spacing: -0.012em; text-align: left; cursor: pointer; }
.bn-index button span { width: 18px; font: 500 10px/1 ui-monospace, "SF Mono", Menlo, monospace; color: var(--faded); }
.bn-index button:is(:hover, [data-hover]), .bn-index button[aria-current="true"] { color: var(--ink); }
.bn-knob { position: absolute; left: 0; right: 8px; top: 0; border-radius: 8px; background: color-mix(in srgb, var(--ink) 7%, transparent); pointer-events: none; }
.bn-main { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.bn-head { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 8px 40px; padding-bottom: 18px; }
.bn-name { display: flex; align-items: baseline; gap: 14px; margin: 0; font: 450 clamp(30px, 3vw, 44px)/1.05 var(--font); letter-spacing: -0.03em; }
.bn-name .mono { font-size: 12px; color: var(--ink3); }
.bn-lede { margin: 10px 0 0; max-width: 38em; font-size: 15px; line-height: 23px; color: var(--ink2); }
.bn-stagebox { position: relative; flex: 1; min-height: 0; border-radius: 12px; }
.bn-stagebox > .mx-root, .sp-big-stage > .mx-root { height: 100%; }
.bn-stagebox .stage { height: 100% !important; min-height: 0 !important; overflow: auto; }
.bn-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 12px; }
.bn-code { position: absolute; z-index: 5; left: 0; right: 0; bottom: 48px; max-height: 62%; display: flex; flex-direction: column; padding: 14px; border-radius: 14px; }
.bn-code .code { flex: 1; max-height: none; }
@media (max-width: 900px) {
  .bn { grid-template-columns: 1fr; height: auto; min-height: 0; margin-right: 0; }
  .bn-index { display: flex; gap: 4px; overflow-x: auto; overflow-y: hidden; padding: 0 0 12px; margin: 0 calc(-1 * var(--m)); padding-inline: var(--m); scrollbar-width: none; position: sticky; top: 68px; z-index: 6; background: var(--page); }
  .bn-index h3, .bn-knob { display: none; }
  .bn-index button { flex: none; width: auto; height: 36px; padding: 0 14px; border-radius: 9999px; background: color-mix(in srgb, var(--ink) 6%, transparent); font-size: 14px; line-height: 36px; }
  .bn-index button[aria-current="true"] { background: var(--ink); color: var(--page); }
  .bn-index button span { display: none; }
  .bn-head { grid-template-columns: 1fr; padding-top: 12px; }
  .bn-stagebox { flex: none; height: 72svh; }
}

/* ---------------------------------------------------------------- 2 the cabinet */
.cb-filter { margin-bottom: 28px; }
.cb { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 216px), 1fr)); gap: 12px; margin-right: 34px; }
.cb-d { position: relative; display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 5 / 3; padding: 14px 16px 16px; border: 0; border-radius: 12px; background: var(--ground); color: var(--ink); text-align: left; cursor: pointer;
  box-shadow: inset 0 0 0 .5px var(--line); transition: transform .45s var(--tau-ease), box-shadow .45s var(--tau-ease), background-color .3s var(--tau-ease); font: inherit; }
.cb-d:is(:hover, [data-hover]) { transform: translateY(-3px); box-shadow: inset 0 0 0 .5px var(--line), var(--e2); }
.cb-d .top { display: flex; justify-content: space-between; font: 500 11px/1 ui-monospace, "SF Mono", Menlo, monospace; color: var(--ink3); }
.cb-d b { font: 450 clamp(19px, 1.6vw, 24px)/1.12 var(--font); letter-spacing: -0.022em; }
.cb-d i { position: absolute; left: 50%; top: 50%; width: 34px; height: 4px; margin: -2px 0 0 -17px; border-radius: 9999px; background: var(--line-strong); transition: width .45s var(--tau-ease), margin .45s var(--tau-ease), background-color .3s var(--tau-ease); }
.cb-d:is(:hover, [data-hover]) i { width: 54px; margin-left: -27px; }
.cb-d[aria-expanded="true"] { background: var(--ink); color: var(--page); transform: none; }
.cb-d[aria-expanded="true"] .top { color: color-mix(in srgb, var(--page) 60%, transparent); }
.cb-d[aria-expanded="true"] i { width: 54px; margin-left: -27px; background: var(--accent); }
.cb-d.is-out { display: none; }
.cb-open { grid-column: 1 / -1; overflow: hidden; height: 0; }
.cb-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px 40px; padding: 20px 0 36px; }
.cb-in h3 { margin: 0 0 12px; font: 450 clamp(30px, 3vw, 44px)/1.05 var(--font); letter-spacing: -0.03em; }
.cb-in p { margin: 0 0 18px; font-size: 15px; line-height: 23px; color: var(--ink2); }
.cb-code { margin-top: 18px; }
@media (max-width: 720px) { .cb { grid-template-columns: 1fr 1fr; gap: 8px; margin-right: 0; } .cb-in { grid-template-columns: 1fr; } .cb-d { padding: 12px; } }

/* ---------------------------------------------------------------- 3 the reel */
.rl { position: relative; }
.rl-pin { position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: 40px minmax(0, 4fr) minmax(0, 7fr); gap: 0 40px; padding: 96px 34px 32px 0; }
.rl-ticks { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 6px 0; }
.rl-ticks button { position: relative; width: 40px; height: 12px; padding: 0; border: 0; background: none; cursor: pointer; }
.rl-ticks button::before { content: ""; position: absolute; left: 0; top: 50%; width: var(--w, 10px); height: 1.5px; margin-top: -.75px; border-radius: 1px; background: var(--line-strong); transition: width .4s var(--tau-ease), background-color .3s var(--tau-ease); }
.rl-ticks button:is(:hover, [data-hover])::before { width: 22px; background: var(--ink3); }
.rl-ticks button[aria-current="true"]::before { width: 34px; background: var(--ink); }
.rl-text { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.rl-no { font: 450 clamp(96px, 11vw, 168px)/.9 var(--font); letter-spacing: -0.05em; }
.rl-no small { margin-left: .1em; font-size: .18em; letter-spacing: 0; color: var(--ink3); vertical-align: top; }
.rl-name { margin: 22px 0 6px; font: 450 clamp(30px, 3.2vw, 48px)/1.04 var(--font); letter-spacing: -0.03em; }
.rl-group { margin: 0 0 18px; }
.rl-lede { margin: 0 0 22px; max-width: 30em; font-size: 15px; line-height: 23px; color: var(--ink2); }
.rl-stage { position: relative; min-height: 0; }
.rl-stage > .mx-root { position: absolute; inset: 0; }
.rl-stage .stage { height: 100% !important; min-height: 0 !important; overflow: auto; }
.rl-wait { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 12px; background: var(--ground); font: 450 clamp(28px, 3vw, 44px)/1 var(--font); letter-spacing: -0.03em; color: var(--faded); }
.rl-more { margin-top: 6px; display: flex; gap: 8px; }
@media (max-width: 720px) {
  .rl-pin { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); gap: 14px; padding: 76px 0 14px; }
  .rl-ticks { position: absolute; left: 0; right: 0; top: 66px; flex-direction: row; height: 4px; padding: 0; }
  .rl-ticks button { width: 10px; height: 8px; }
  .rl-ticks button::before { top: 0; left: 1px; width: 8px !important; height: 3px; }
  .rl-text { justify-content: flex-start; padding-top: 14px; }
  .rl-no { font-size: 64px; }
  .rl-name { margin: 6px 0 4px; font-size: 28px; }
  .rl-lede, .rl-text .facts2, .rl-more { display: none; }
  .rl-group { margin: 0; }
}

/* ---------------------------------------------------------------- 4 the specimen sheet */
.sp { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 40px 20px; margin-right: 34px; }
.sp-t { display: block; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: zoom-in; font: inherit; }
.sp-win { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: var(--ground); box-shadow: inset 0 0 0 .5px var(--line); transition: transform .45s var(--tau-ease), box-shadow .45s var(--tau-ease); }
.sp-t:is(:hover, [data-hover]) .sp-win { transform: translateY(-3px); box-shadow: inset 0 0 0 .5px var(--line), var(--e2); }
.sp-v { position: absolute; left: 0; top: 0; width: 960px; transform-origin: 0 0; pointer-events: none; }
.sp-v .stage { border-radius: 0; }
.sp-cap { display: flex; align-items: baseline; gap: 10px; margin-top: 12px; }
.sp-cap .mono { font-size: 11px; color: var(--ink3); }
.sp-cap b { font: 500 15px/20px var(--font); letter-spacing: -0.012em; }
.sp-cap span:last-child { margin-left: auto; font-size: 12px; color: var(--ink3); }
.sp-over { position: fixed; z-index: 70; inset: 0; display: grid; place-items: center; padding: 20px; background: color-mix(in srgb, var(--page) 70%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.sp-big { position: relative; width: min(1240px, 100%); height: min(860px, 100%); display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 0; overflow: hidden; border-radius: 16px; background: var(--page); box-shadow: 0 0 0 .5px var(--line), var(--e3); }
.sp-big-stage { position: relative; min-height: 0; padding: 12px; }
.sp-big-stage .stage { height: 100% !important; min-height: 0 !important; overflow: auto; }
.sp-big-side { display: flex; flex-direction: column; gap: 14px; min-height: 0; overflow-y: auto; padding: 22px 22px 18px; border-left: .5px solid var(--line); }
.sp-big-side h3 { margin: 0; font: 450 32px/1.05 var(--font); letter-spacing: -0.03em; }
.sp-big-side p { margin: 0; font-size: 14px; line-height: 22px; color: var(--ink2); }
.sp-big-nav { display: flex; gap: 6px; margin-top: auto; }
.sp-big-side .code { max-height: 260px; font-size: 11px; line-height: 17px; }
@media (max-width: 720px) {
  .sp { grid-template-columns: 1fr 1fr; gap: 24px 10px; margin-right: 0; }
  .sp-cap { flex-wrap: wrap; gap: 2px 8px; }
  .sp-cap span:last-child { display: none; }
  .sp-over { padding: 0; }
  .sp-big { height: 100%; border-radius: 0; grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .sp-big-side { border-left: 0; border-top: .5px solid var(--line); max-height: 38svh; }
  .sp-big-side .code { display: none; }
}

/* ---------------------------------------------------------------- 5 the search */
.sr-ask { position: relative; display: flex; align-items: center; gap: 10px; max-width: 900px; padding-bottom: 14px; border-bottom: 1px solid var(--line-strong); }
.sr-ask:focus-within { border-bottom-color: var(--ink); }
.sr-ask span { flex: none; font: 450 clamp(26px, 3.2vw, 46px)/1.1 var(--font); letter-spacing: -0.03em; color: var(--ink3); }
.sr-ask input { flex: 1; min-width: 0; padding: 0; border: 0; background: none; color: var(--ink); font: 450 clamp(26px, 3.2vw, 46px)/1.1 var(--font); letter-spacing: -0.03em; outline: 0; }
.sr-ask input::placeholder { color: var(--faded); }
.sr-try { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.sr-try button { height: 32px; padding: 0 14px; border: 0; border-radius: 9999px; background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink2); font: 450 13px/1 var(--font); cursor: pointer; }
.sr-try button:is(:hover, [data-hover]) { color: var(--ink); background: color-mix(in srgb, var(--ink) 10%, transparent); }
.sr-out { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 32px 48px; margin: 48px 34px 0 0; }
.sr-top h3 { display: flex; align-items: baseline; gap: 14px; margin: 0 0 8px; font: 450 clamp(30px, 3vw, 44px)/1.05 var(--font); letter-spacing: -0.03em; }
.sr-top h3 .mono { font-size: 12px; color: var(--ink3); }
.sr-top > p { margin: 0 0 20px; max-width: 40em; font-size: 15px; line-height: 23px; color: var(--ink2); }
.sr-top mark, .sr-list mark { background: color-mix(in srgb, var(--accent) 16%, transparent); color: inherit; border-radius: 3px; padding: 0 2px; }
.sr-top .stage-box .stage { max-height: 640px; overflow: auto; }
.sr-list { margin: 0; padding: 0; list-style: none; }
.sr-list li { border-top: .5px solid var(--line-strong); }
.sr-list button { display: grid; grid-template-columns: 26px minmax(0, 1fr) 56px; align-items: center; gap: 10px; width: 100%; padding: 12px 0; border: 0; background: none; color: var(--ink2); text-align: left; cursor: pointer; font: inherit; }
.sr-list button:is(:hover, [data-hover]), .sr-list button[aria-current="true"] { color: var(--ink); }
.sr-list b { display: block; font: 500 15px/20px var(--font); }
.sr-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; line-height: 17px; color: var(--ink3); }
.sr-bar { height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; }
.sr-bar i { display: block; height: 100%; background: var(--ink); border-radius: 2px; }
.sr-none { padding: 18px 0; font-size: 15px; color: var(--ink3); }
@media (max-width: 720px) { .sr-out { grid-template-columns: 1fr; margin-right: 0; } .sr-ask { flex-wrap: wrap; } }

/* ---------------------------------------------------------------- 6 the table of elements */
.pt { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 40px; margin-right: 34px; align-items: start; }
.pt-table { display: grid; grid-template-columns: repeat(6, 96px); gap: 6px; align-items: start; }
.pt-col { display: grid; gap: 6px; }
.pt-col h3 { height: 34px; margin: 0; display: flex; align-items: flex-end; padding-bottom: 6px; font: 500 10px/12px ui-monospace, "SF Mono", Menlo, monospace; color: var(--ink3); text-transform: uppercase; letter-spacing: .03em; }
.pt-el { position: relative; display: block; width: 96px; height: 96px; padding: 8px 9px; border: 0; border-radius: 6px; background: var(--ground); color: var(--ink); text-align: left; cursor: pointer; font: inherit; box-shadow: inset 0 0 0 .5px var(--line); transition: background-color .25s var(--tau-ease), color .25s var(--tau-ease); }
.pt-el:is(:hover, [data-hover]) { background: color-mix(in srgb, var(--ink) 10%, var(--ground)); }
.pt-el[aria-pressed="true"] { background: var(--ink); color: var(--page); }
.pt-el .n { position: absolute; left: 9px; top: 8px; font: 500 10px/1 ui-monospace, "SF Mono", Menlo, monospace; opacity: .6; }
.pt-el .f { position: absolute; right: 9px; top: 8px; font: 500 9px/1 ui-monospace, "SF Mono", Menlo, monospace; opacity: .6; }
.pt-el .s { position: absolute; left: 8px; top: 28px; font: 450 34px/1 var(--font); letter-spacing: -0.04em; }
.pt-el .nm { position: absolute; left: 9px; right: 6px; bottom: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10.5px; line-height: 13px; opacity: .75; }
.pt-card { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 4px 22px; align-items: start; margin-bottom: 18px; }
.pt-big { grid-row: span 3; position: relative; width: 132px; height: 132px; border-radius: 8px; background: var(--ink); color: var(--page); }
.pt-big .n { position: absolute; left: 12px; top: 11px; font: 500 12px/1 ui-monospace, "SF Mono", Menlo, monospace; opacity: .6; }
.pt-big .s { position: absolute; left: 11px; top: 38px; font: 450 54px/1 var(--font); letter-spacing: -0.045em; }
.pt-big .g { position: absolute; left: 12px; bottom: 11px; font-size: 11px; opacity: .65; }
.pt-card h3 { margin: 0; font: 450 clamp(28px, 2.6vw, 40px)/1.05 var(--font); letter-spacing: -0.03em; }
.pt-card p { margin: 0; font-size: 14px; line-height: 21px; color: var(--ink2); }
.pt-stage .stage { height: 520px !important; min-height: 0 !important; overflow: auto; }
@media (max-width: 1180px) { .pt { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .pt { margin-right: 0; gap: 28px; }
  .pt-table { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
  .pt-col { gap: 4px; }
  .pt-col h3 { height: 26px; font-size: 7.5px; line-height: 9px; overflow: hidden; }
  .pt-el { width: 100%; height: auto; aspect-ratio: 1; padding: 0; border-radius: 5px; }
  .pt-el .n, .pt-el .f, .pt-el .nm { display: none; }
  .pt-el .s { position: static; display: grid; place-items: center; height: 100%; font-size: 20px; }
  .pt-card { grid-template-columns: 88px minmax(0, 1fr); }
  .pt-big { width: 88px; height: 88px; }
  .pt-big .s { top: 26px; font-size: 36px; }
  .pt-big .g { display: none; }
  .pt-stage .stage { height: 70svh !important; }
}
