
/* ── Style guide chrome: the template is the layout only. Every colour, font, text size, radius, space and shadow
   is a role variable the engine fills with the design system's own tokens (CHROME below); what the system has no
   token for falls back to the template's defaults: the browser's own colours (Canvas, CanvasText; near black and near
   white in a dark mode, never pure) and font, and a small
   type scale of its own (12, 13, 14 and 15px); the style guide check lists it. ──────────────────────────────────── */
:root {
  color-scheme: light dark;
  --sg-stick-gap: var(--sg-card-gap);   /* every page: the room between its stuck bars and a card's or table's stuck head, painted with the page so what scrolls under it is hidden (one value, set here) */
  /* The page's own colours for a system with no token for a role: neutral greys that pass WCAG 2.2 AA in both modes
     (body text over 12:1, the muted text over 4.5:1 even on a tinted tag, the accent over 4.5:1 as text). Never the
     browser's system colours: inside a link Chrome resolves them in the light scheme, black text on a dark menu. In a
     dark mode, never pure black behind it nor pure white on it: a near black and a near white instead. */
  --sg-bg: #ffffff; --sg-bg-2: #f7f7f8; --sg-surface: #ffffff; --sg-stage: var(--sg-bg);
  --sg-text: #1c1c1e; --sg-text-2: #3a3a3c; --sg-muted: #5f5f64; --sg-border: #8e8e93; --sg-accent: #0a5fb4;
  --sg-danger: #c62828; --sg-on-danger: #ffffff;   /* the page's own red for what cannot be undone (a delete): never the system's nor a theme's */
  /* The status colours: green done, yellow to check, red to fix, the page's own when the system has no token for one
     (its success, warning and error tokens win where it has them). Never the accent or the text colour: a bar or a dot
     must read as its status in any brand. Each passes 3:1 as a mark on the page, the green and red 4.5:1 as words. */
  --sg-positive: #1a7f37; --sg-warning: #b07800; --sg-negative: var(--sg-danger);
  --sg-line: var(--sg-line-width, 1px) solid var(--sg-line-colour);
  /* The page's lines: the system's border in light; in dark the text's colour, faint and see-through, so a line keeps
     its edge and blends with whatever background a brand gives the page. */
  --sg-line-colour: color-mix(in srgb, var(--sg-border), var(--sg-text) 10%);
  --sg-line-solid: var(--sg-line-colour);   /* in light, the system's border a tenth of the way to the text, so lines read; in dark, see-through */
  --sg-chevron-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='m4 6 4 4 4-4'/%3E%3C/svg%3E");   /* a select's chevron */
  --sg-info-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='8' r='6.25'/%3E%3Cpath d='M8 7.5V11M8 4.75h.01'/%3E%3C/svg%3E");   /* the info box's mark */
  /* The page's see-through fills: the text's colour at five strengths, and nothing between them. 1: a resting field or
     button, a picture's ground. 2: under the pointer. 3: chosen. 4: a line under the pointer, a pressed button. 5: a
     scrim, a bar that must read. (A panel's ground is --sg-tint, fainter still; the lines are --sg-line-colour.) */
  --sg-a1: color-mix(in srgb, var(--sg-text) 4%, transparent);
  --sg-a2: color-mix(in srgb, var(--sg-text) 7%, transparent);
  --sg-a3: color-mix(in srgb, var(--sg-text) 10%, transparent);
  --sg-a4: color-mix(in srgb, var(--sg-text) 22%, transparent);
  --sg-a5: color-mix(in srgb, var(--sg-text) 40%, transparent);
  --sg-nav-on: var(--sg-a3);   /* the menu's chosen item: see-through, over any background */
  --sg-nav-hover: var(--sg-a2);   /* a menu item under the pointer: lighter than the chosen one's */
  --sg-line-soft: color-mix(in srgb, var(--sg-line-colour) 60%, transparent);   /* a quieter line: under the menu's stuck head or group name */
  /* The warning colour where it is read (a label, an icon, a sign): in light, the system's yellow darkened with the text's
     colour so it keeps its contrast on a light page (styleguide-data.mjs writes it when the system has one); the page's
     own yellow is dark enough already. In dark, the yellow itself. */
  --sg-warning-ink: var(--sg-warning-ink-system, var(--sg-warning));
  --sg-seg-on: var(--sg-a3);
  /* One hover for every control (a button, a field, a select, a switch's option, a card): its line a step brighter and
     one step of fill, the text's colour a little, see-through. */
  --sg-hover-fill: var(--sg-a2);
  --sg-seg-hover: var(--sg-hover-fill);   /* a switch's option under the pointer, a step under the chosen one */   /* a switch's choice: the text's colour a little, over whatever background the brand gives */
  --sg-border-hover: var(--sg-a4);   /* a line under the pointer: a step brighter, never a heavy one, over any background */
  /* The default type: its text a step above the browser's (500), its headings 800, its lines 1.4 apart. The page has
     two weights only: the text weight (--sg-m-weight) for every word, the heading weight for titles, tabs and names. */
  --sg-xs: 0.75rem; --sg-s: 0.8125rem; --sg-s-weight: 500; --sg-m: 0.875rem; --sg-m-weight: 500; --sg-l: 0.9375rem; --sg-l-weight: 800; --sg-xl: calc(var(--sg-l) * 1.2);
  --sg-h1: var(--sg-l); --sg-h2: var(--sg-l); --sg-heading-weight: 800; --sg-lh: 1.4; --sg-lh-read: 1.6;
  /* The page's two weights: every word a step above the system's text weight (readable on a screen), titles, tabs and
     names in its heading weight. */
  --sg-text-weight: calc(var(--sg-m-weight) + 100);
  /* A page's title: the system's largest text style, scaled up, so the guide has its own hierarchy above any system's
     text styles while every size still comes from the system ("title-scale" in styleguide.chrome, ds-config.json, changes it). */
  --sg-title-scale: 3.125; --sg-title: calc(var(--sg-h1) * var(--sg-title-scale));
  --sg-space-xxs: 0.125rem; --sg-space-xs: 0.25rem; --sg-space-s: 0.5rem; --sg-space-m: 0.75rem; --sg-space-l: 1rem; --sg-space-xl: 1.5rem; --sg-space-xxl: 2rem;
  --sg-row-h: calc(var(--sg-space-xxl) + var(--sg-space-m));
  /* A panel's fill inside the page (a card's name, a table's head, a bar, a note): the text's colour a little, see-through,
     so it sits on whatever is under it (the page, a card, a brand's background) with the menu's lightness. */
  --sg-tint: color-mix(in srgb, var(--sg-text) 2%, transparent);
  /* The page's two timings: a colour or a line that changes (fast), and something that moves (a card, a panel, a mark). */
  --sg-fast: 0.15s ease;
  --sg-move: 0.3s cubic-bezier(0.2, 0, 0, 1);
  --sg-cell-x: var(--sg-space-l);   /* the side padding a card holds its contents by: its head, a table's first and last columns, a list's rows, a bar. One value at every width, the same a card pads itself with, so a table's words start where a card's do. */
  --sg-mark: 1rem;   /* every mark the page draws itself (the menu's, a button's, the search's, the way back): one size, so their 1.5 lines read one weight */
  --sg-dot: calc(var(--sg-space-xs) * 1.5);   /* every status dot (a parity sign, a chip's, a legend's): one size, 6px on an 8px system */
  --sg-underline-offset: 3px;   /* every underline the page draws (a link, a hovered action): one distance under its words */
  --sg-focus-offset: 1px;   /* every focus ring's distance from what it rings */
  --sg-panel-w: min(80vw, 72rem);
  --sg-panel-page-w: 80vw;   /* a component's whole page opened in a panel (from the Status page): a page, as wide as before */   /* every side panel's width (a component, a token, a task): one width, the whole window on a narrow one */
  --sg-card-gap: calc(var(--sg-space-xl) + var(--sg-space-s));   /* the room between any two cards or tables, side by side or one under another (32px on an 8px system) */
  --sg-control-h: calc(var(--sg-space-xxl) + var(--sg-space-s));   /* every capsule control's height: a switch, a select, a search, a button (40px on an 8px system) */   /* every table row at least this tall, from the system's spacing */
  --sg-icon-btn: calc(var(--sg-control-h) - 2 * var(--sg-space-xxs) - 2 * var(--sg-line-width, 1px));   /* the page's icon button: square, as tall as a control leaves inside its 4px inset */
  --sg-radius-s: 12px; --sg-radius: 16px; --sg-radius-l: 20px; --sg-radius-pill: 999px;   /* the template's own corners, whatever the system's */
  /* A control's corners (a button, a chip, a field), and a count's inside one: the control's less the room around it,
     so the two curves run side by side. Every count is drawn so, in a chip or not. */
  --sg-control-radius: calc(var(--sg-radius) - var(--sg-space-xs));
  --sg-count-radius: calc(var(--sg-control-radius) - var(--sg-space-xs) * 2);
  --sg-shadow: none; --sg-shadow-lift: none; --sg-icon: 1em;
  --sg-ease: 0s;
}
/* The dark scheme, by the page's own attribute (data-sg-scheme, set from the device and on every switch): a change of
   attribute makes the browser work every colour out again, where light-dark() left some (a link, a line) in the old
   scheme. As light as the light roles above, so the system's own (CHROME, next) still win. */
:where(:root)[data-sg-scheme="dark"] {
  --sg-bg: #161618; --sg-bg-2: #1e1e21; --sg-surface: #161618;
  --sg-text: #e6e6e8; --sg-text-2: #d4d4d8; --sg-muted: #a1a1aa; --sg-border: #52525b; --sg-accent: #6cb4ff;
  --sg-danger: #f47174; --sg-on-danger: #1b0a0a;
  --sg-positive: #3fb950; --sg-warning: #d29922;   /* the page's own status colours in dark (red is its danger's) */
  --sg-line-colour: color-mix(in srgb, var(--sg-text) 18%, transparent);
  --sg-line-solid: color-mix(in srgb, var(--sg-text) 18%, var(--sg-bg));   /* the same line, solid: where pieces of it meet, nothing doubles or shows through */
  --sg-warning-ink: var(--sg-warning);
  --sg-tint: color-mix(in srgb, var(--sg-text) 2.5%, transparent);
}
:root, [data-color], [data-size] { --sg-bg: var(--semantic-surface-elevationMedium); --sg-text: var(--semantic-content-primary); --sg-surface: var(--semantic-surface-elevationHigh); --sg-bg-2: var(--semantic-surface-elevationLow); --sg-text-2: var(--semantic-content-secondary); --sg-warning: var(--semantic-warning); --sg-positive: var(--semantic-positive); --sg-negative: var(--semantic-negative); --sg-muted: var(--semantic-content-secondary); --sg-accent: var(--semantic-content-primary); --sg-stage: var(--semantic-surface-elevationMedium); --sg-warning-ink-system: color-mix(in srgb, var(--sg-warning) 45%, var(--sg-text)); --sg-xs-weight: var(--typography-m-font-weight); --sg-s-weight: var(--typography-l-font-weight); --sg-m-weight: var(--typography-l-font-weight); --sg-l-weight: var(--typography-l-font-weight); --sg-heading-weight: var(--typography-l-font-weight); --sg-lh: calc(var(--typography-l-line-height) + 2px); --sg-icon: 16px; --sg-border: var(--card-border); --sg-line-width: var(--general-thickness); --sg-radius-l: calc(var(--radii-card) + 4px); --sg-radius: calc(var(--radii-card) + 4px); --sg-shadow: none; }
/* The page's panels (the menu, a table's head, a card's name, a list over the page) are its background with a faint
   layer of its text's colour, as every fill on the page is: one family of greys in any brand, never a surface colour
   of the brand's beside a see-through fill. A colour the team names for them by hand (ds-config.json →
   styleguide.chrome, written as --sg-bg-2-own and --sg-surface-own) wins, each brand's own value in each brand. */
:root, :root[data-sg-scheme] { --sg-bg-2: var(--sg-bg-2-own, color-mix(in srgb, var(--sg-text) 3%, var(--sg-bg))); --sg-surface: var(--sg-surface-own, color-mix(in srgb, var(--sg-text) 3%, var(--sg-bg))); }

/* ── Reset ───────────────────────────────────────────────────────────────── */
/* The page's own boxes only: inside a preview or a Showroom screen the system's own reset decides (it leaves icons,
   buttons and table cells content-box, and a component's padding counts on that). */
.sg-page, .sg-page :where(*:not(:is(.pg-preview, .pg-frame, .pg-frame-stage, .pg-variants, .pg-offstage, .pg-anat-wrap, .sg-thumb, .sg-showroom) *)), .sg-page :where(*:not(:is(.pg-preview, .pg-frame, .pg-frame-stage, .pg-variants, .pg-offstage, .pg-anat-wrap, .sg-thumb, .sg-showroom) *))::before, .sg-page :where(*:not(:is(.pg-preview, .pg-frame, .pg-frame-stage, .pg-variants, .pg-offstage, .pg-anat-wrap, .sg-thumb, .sg-showroom) *))::after { box-sizing: border-box; }
.sg-page { margin: 0; }
/* The page's own buttons (a list's rows, a menu's options, its tabs) as tall as their words and padding make them, the
   same in every system: a system's own button height (button { height: 24px }) is for its components, never the page's.
   It weighs one class, so a rule of the page's that gives a button its height still wins. */
:where(button)[class*="sg-"], :where(button)[class*="pg-"] { height: auto; }
/* Only the page's own headings and paragraphs: a rule that reached into a preview would restyle the component. */
:where(.sg-sidebar-header, .sg-hero, .sg-section, .sg-subsection, .sg-card, .pg-header, .pg-head, .sg-screens) > :where(h1, h2, h3, p, figure) { margin: 0; }
/* The page's text (font, size, weight, line height, colour) is the system's own: its body rule, which the components
   inherit in the product too. The template sets only the background. */
html, body.sg-page { background: var(--sg-bg); }
/* A scrolling document, not an app window: undo a theme's full-height body so the page scrolls. */
html { overflow: visible; height: auto; }
/* The page's text in the page's own colour: a system's body rule that sets one still wins (this one weighs nothing). */
:where(html) { color: var(--sg-text); }
/* The page's own words with room between their lines; a component drawn on it keeps the line height its system gives. */
.sg-main, .sg-sidebar, .sg-comp-panel-box { line-height: var(--sg-lh); font-weight: var(--sg-text-weight); }   /* its words in the system's text weight, never the browser's thinner one */
/* While the page is being drawn (a reload of a large guide), nothing shows but its background: never the empty shell
   with its placeholder words. Shown once drawn, on a script error, or after a few seconds whatever happens. */
html:not(.sg-ready) body.sg-page > * { visibility: hidden; animation: sg-reveal 0s 6s forwards; }
@keyframes sg-reveal { to { visibility: visible; } }
.sg-skip { position: absolute; left: var(--sg-space-s); top: var(--sg-space-s); z-index: 100; transform: translateY(-200%); }
.sg-skip:focus-visible { transform: none; }
.pg-preview, .sg-thumb, .pg-variant-stage, .pg-example-stage { line-height: normal; }
.pg-preview--usable > * { cursor: pointer; }   /* a component a click changes, as it does in a product */
.pg-preview > * { max-width: 100%; }   /* the stage is the room a component has: one that takes 100% at most (a toast) fits it at its own size */
body.sg-page { height: auto; min-height: 100vh; overflow: visible; display: block; padding: 0; }

/* ── Page layout ─────────────────────────────────────────────────────────── */
.sg-layout { display: flex; min-height: 100vh; --sg-bg-page: var(--sg-bg); }
.sg-main { --sg-bg: color-mix(in srgb, var(--sg-bg-page), var(--sg-surface) 60%); background: var(--sg-bg); }
[data-sg-scheme="dark"] .sg-main { --sg-bg: var(--sg-bg-page); }   /* in light, the page a step lighter than its menu (towards the cards' colour), so the two read apart */
.sg-sidebar { width: 280px; flex-shrink: 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; border-right: var(--sg-line); background: var(--sg-bg-2); display: flex; flex-direction: column; scrollbar-gutter: stable; }
.sg-sidebar-header { padding: calc(var(--sg-space-l) + var(--sg-space-s)) calc(var(--sg-space-l) + var(--sg-space-s)) var(--sg-space-m); }
.sg-sidebar-header.sg-sticky-edge, .sg-nav-label.sg-sticky-edge { box-shadow: 0 1px 0 0 var(--sg-line-soft); }
.sg-nav-label.sg-sticky-edge { padding-bottom: calc(var(--sg-space-xs) + var(--sg-space-xs)); }   /* stuck, 4px more between its name and its line */
.sg-nav { padding-bottom: var(--sg-space-s); }   /* room under the menu's last item */   /* once the menu scrolls, the line under what stays at its top, as on the page */
.sg-sidebar-header .sg-title { font-size: var(--sg-h2); font-weight: var(--sg-heading-weight); color: var(--sg-text); line-height: var(--sg-lh); }   /* the system's name in the h2 style */
.sg-sidebar-header > p { font-size: var(--sg-s); font-weight: var(--sg-text-weight); color: var(--sg-muted); margin-top: var(--sg-space-xxs); }
.sg-logo { display: inline-flex; color: var(--sg-text); text-decoration: none; }   /* the system's logo, in the page's text colour */
.sg-logo > svg { display: block; width: 145px; max-width: 100%; height: auto; }
.sg-logo:focus-visible { outline: 2px solid var(--sg-accent); outline-offset: var(--sg-focus-offset); }
/* The default in place of a logo: the system's name in short, in the style of the Status page's own numbers
   (.sg-health-num) and 24px under their size (the owner's, 11 November 2026), on one line — the page measures it and
   drops the size to the width the menu gives it. */
.sg-sidebar-header .sg-title.sg-wordmark { font-size: calc((var(--sg-h1) * 4 - var(--sg-space-l) - var(--sg-space-s)) * var(--sg-wordmark-fit, 1)); line-height: normal; white-space: nowrap; overflow: hidden; }   /* its own line height, as the big numbers have (.sg-health-num): a system whose line height is a length would cut it */
.sg-sidebar-header:has(> .sg-wordmark) > p:last-child { margin-top: calc(var(--sg-space-xxs) - var(--sg-space-xs)); font-size: var(--sg-xs); }   /* what the guide is, a step smaller and 4px closer under the wordmark than under a name (the owner's, 11 November 2026) */
.sg-nav { padding: var(--sg-space-s) 0; flex: 1; }
.sg-nav a { display: flex; align-items: center; gap: var(--sg-space-s); padding: var(--sg-space-s) calc(var(--sg-space-l) + var(--sg-space-s)); font-size: var(--sg-m); font-weight: var(--sg-heading-weight);   /* the system's m text size, a step under l, in its strong weight as the tabs are */ color: var(--sg-text-2); text-decoration: none; transition: background var(--sg-fast), color var(--sg-fast); line-height: var(--sg-lh); }
.sg-nav a:hover { color: var(--sg-text); background: var(--sg-nav-hover); }   /* the item under the pointer, a step under the chosen one */
/* Each item inset from the menu's sides with rounded corners, as a dropdown's options are; its words where they were. */
.sg-nav a { margin: 0 var(--sg-space-s); padding-left: var(--sg-space-l); padding-right: var(--sg-space-l); border-radius: calc(var(--sg-radius) - var(--sg-space-xxs)); }
.sg-nav a + a { margin-top: 0; }   /* the items' own height makes the room between them: the chosen one 8px taller, the list as long */
.sg-nav a.active { color: var(--sg-text); background: var(--sg-nav-on); }   /* the page shown by its fill alone, never a stripe at its side */
.sg-nav-mark { width: var(--sg-mark); height: var(--sg-mark); flex: none; color: var(--sg-muted); opacity: 0.4; }   /* well behind the words beside it: there to scan by, never to read first */
.sg-nav-label { font-size: var(--sg-xs); color: var(--sg-muted); padding: var(--sg-space-m) calc(var(--sg-space-l) + var(--sg-space-s)) var(--sg-space-xs); margin-top: var(--sg-space-xl); position: sticky; top: var(--sg-sidebar-head-h, 0px); z-index: 2; background: var(--sg-bg-2); }   /* each group's name stays at the top while its list scrolls under it */   /* each group of the menu 24px apart from the one before */
.sg-nav-label:first-child { margin-top: 0; }   /* the first group starts at the menu's top */
.sg-main { flex: 1; min-width: 0; --sg-main-pad: calc(var(--sg-space-xxl) + var(--sg-space-s)); padding: var(--sg-space-xxl) var(--sg-main-pad); }   /* the page's side margins: 8px more than its top on a mid window */
@media (min-width: 1280px) { .sg-main { --sg-main-pad: calc(var(--sg-space-xxl) + var(--sg-space-l)); } }   /* 16px more on a large one */   /* the whole width a screen gives */

/* ── Every switch on the page is the system's segmented control. With none (or none read yet), the page's default one:
   its options in a track, the chosen one raised, all in the system's roles (or the template's defaults). ───────────── */
.sg-seg { display: inline-flex; flex-wrap: nowrap; width: auto; max-width: 100%; gap: var(--sg-space-xxs); }   /* every switch on the page as wide as its choices, on one line */
.sg-seg > * { flex: none; }
.pg-ctl .sg-seg { display: flex; flex-wrap: wrap; width: 100%; }   /* a component's properties: the panel's width, its choices wrapping */
.pg-ctl .sg-seg > * { flex: 1 1 auto; }
@media (min-width: 1280px) { .sg-seg.sg-seg-default > button { padding-left: calc(var(--sg-space-m) + var(--sg-space-s)); padding-right: calc(var(--sg-space-m) + var(--sg-space-s)); } .sg-showroom-filter .sg-seg.sg-seg-default > button { padding-left: var(--sg-space-m); padding-right: var(--sg-space-m); } }   /* a large window: 8px more room each side of a switch's words */
@media (max-width: 720px) { .sg-seg { flex-wrap: wrap; } }   /* a narrow window: the choices wrap rather than spill */
.sg-seg button { font: inherit; font-weight: var(--sg-text-weight); }
.sg-count { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: calc(var(--sg-space-l) + var(--sg-space-xs)); height: calc(var(--sg-space-l) + var(--sg-space-xs)); margin-left: var(--sg-space-s); padding: 0 var(--sg-space-xs); border-radius: var(--sg-count-radius); background: var(--sg-a2); color: var(--sg-text); font-size: var(--sg-xs); font-weight: var(--sg-text-weight); line-height: normal; }   /* a count in its own small round badge, apart from the name before it */
[aria-pressed="true"] > .sg-count, .selected > .sg-count { background: color-mix(in srgb, var(--sg-surface) 50%, transparent); color: var(--sg-text); }   /* the chosen option's number on half the surface, never a bright white disc */
[data-sg-scheme="dark"] .sg-count { background: var(--sg-a3); color: var(--sg-muted); }   /* quieter than the words beside it, still 4.5:1 on its disc */
[data-sg-scheme="dark"] [aria-pressed="true"] > .sg-count, [data-sg-scheme="dark"] .selected > .sg-count { background: var(--sg-a3); color: var(--sg-text-2); }   /* grey at rest, light on the chosen option in light mode; a step brighter in dark */   /* a switch's words in the page's text weight, chosen or not */
/* The page's default button, where the system has no text button of its own: a soft fill of the page's text colour
   (lighter on a dark page, darker on a light one), the tables' line and corners, its words in the page's text colour. */
.sg-btn { display: inline-flex; align-items: center; gap: var(--sg-space-xs); padding: var(--sg-space-xs) calc(var(--sg-space-m) + var(--sg-space-xxs) + var(--sg-space-s)); border: var(--sg-line); border-radius: var(--sg-control-radius); --sg-btn-step: 4%; --sg-btn-fill: color-mix(in srgb, var(--sg-text) var(--sg-btn-step), var(--sg-bg)); background: var(--sg-btn-fill); color: var(--sg-text); font: inherit; font-size: var(--sg-s); text-decoration: none; cursor: pointer; white-space: nowrap; box-sizing: border-box; min-height: var(--sg-control-h); justify-content: center; }
.sg-link-mark { width: var(--sg-mark); height: var(--sg-mark); flex: none; }
.pg-code-import { display: flex; flex-direction: column; gap: var(--sg-space-s); }   /* its import and file, first in its Code area */
.sg-overlay-host { position: fixed; inset: 0; z-index: 1000; }   /* a dialog opened over the whole window, as its app's own layer holds it */
/* The shared hover: a button, a typed field and a select alike (a switch's options take the fill alone, a card the line). */
.sg-btn, .sg-input { transition: background-color var(--sg-fast), border-color var(--sg-fast); }
.sg-btn { font-weight: var(--sg-text-weight); }   /* every button the page draws at the controls' weight, wherever it sits (a modal outside the page's main area too) */
.sg-input:hover, #sg-search .sg-input:hover { background-color: var(--sg-hover-fill); border-color: var(--sg-border-hover); }
/* A button is solid: the same steps as the see-through fills, mixed into the background it sits on, so no line or
   picture behind it shows through. */
.sg-btn:hover { --sg-btn-step: 7%; border-color: var(--sg-border-hover); }
.sg-btn:focus-visible { outline: 2px solid var(--sg-accent); outline-offset: var(--sg-focus-offset); }
.sg-btn[aria-pressed="true"] { --sg-btn-step: 10%; }   /* a switch's words keep the browser's weight, whatever the text around it takes */
.sg-seg-default { box-sizing: border-box; min-height: var(--sg-control-h); padding: var(--sg-space-xxs); border: var(--sg-line); border-radius: var(--sg-radius); background: transparent; }   /* see-through: on the page, a card or a bar alike */   /* the track on the page's own background */
.sg-seg-default > button { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: var(--sg-space-xs); min-height: 1.5rem; margin: 0; padding: var(--sg-space-xs) var(--sg-space-m); border: 0; border-radius: calc(var(--sg-radius) - var(--sg-space-xxs)); background: transparent; color: var(--sg-text-2); font-size: var(--sg-s); line-height: var(--sg-lh); cursor: pointer; white-space: nowrap; }   /* each option at least 24px tall (WCAG 2.5.8) */
.sg-seg-default > button { height: auto; align-self: stretch; }
.sg-tabs > .sg-tab { height: auto; min-height: calc(var(--sg-space-xxl) * 1.5); }   /* a tab as tall as its words and padding make it, whatever height a system gives its own buttons */   /* each option fills the control's height, whatever height a system gives its own buttons */
.sg-seg-default > button:hover { color: var(--sg-text); }
.sg-seg-default > button[aria-pressed="true"], .sg-seg-default > button.selected { background: var(--sg-seg-on); color: var(--sg-text); }   /* the choice by its fill alone, no ring */
.sg-seg-default > button:not([aria-pressed="true"]):not(.selected):not(:disabled):hover { background: var(--sg-seg-hover); }   /* an option under the pointer, a step under the chosen one */   /* the choice a clear step lighter than its track */
.sg-seg-default > button:focus-visible { outline: 2px solid var(--sg-accent); outline-offset: var(--sg-focus-offset); }
.sg-seg-default > button:disabled { cursor: not-allowed; opacity: 0.5; }
/* The page's own icon button, for a control the system lacks a button for (a stepper's − and +, a reset, a link): square,
   no box of its own until the pointer is on it, then the segmented control's hover. Sized by --sg-icon-btn, which a field
   sets to what its inset leaves, so it sits in its field as an option sits in its switch. */
.sg-icon-btn { flex: none; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: var(--sg-icon-btn); height: var(--sg-icon-btn); min-width: 0; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: calc(var(--sg-control-radius) - var(--sg-space-xxs) - var(--sg-line-width, 1px)); background: transparent; color: var(--sg-text-2); cursor: pointer; }   /* its corners follow its field's outline, inset by the field's padding and line */
.sg-icon-btn:not(:disabled):hover { background: var(--sg-seg-hover); color: var(--sg-text); }
.sg-icon-btn:focus-visible { outline: 2px solid var(--sg-accent); outline-offset: var(--sg-focus-offset); }
.sg-icon-btn:disabled { cursor: not-allowed; opacity: 0.4; }
.sg-icon-btn[hidden] { display: none; }
.sg-icon-btn svg { width: var(--sg-mark); height: var(--sg-mark); }
/* The page's own tabs, when the system has none: words in a row, the chosen one in the text colour with a line under it. */
.sg-tabs { display: flex; gap: var(--sg-space-xs); }   /* tabs 4px apart: each its own button, with its own line under it, so the line breaks between them */
.sg-tabs::after { content: ''; flex: 1 1 auto; box-shadow: inset 0 calc(-1 * var(--sg-line-width, 1px)) 0 var(--sg-a5); }   /* the tabs' line, clearer than a table's */   /* the line goes on after the last tab, to the row's end */
.sg-tab { display: inline-flex; align-items: center; background: none; border: 0; margin: 0; padding: calc(var(--sg-space-s) * 2) var(--sg-cell-x); border-radius: var(--sg-radius-s) var(--sg-radius-s) 0 0; font: inherit; font-size: var(--sg-l); font-weight: var(--sg-heading-weight); color: var(--sg-muted); white-space: nowrap; cursor: pointer; }
.sg-tab:hover, .sg-tab.is-on { color: var(--sg-text); }
.sg-tab { box-shadow: inset 0 calc(-1 * var(--sg-line-width, 1px)) 0 var(--sg-a5); }   /* the tabs' line, clearer than a table's */
.sg-tab:hover { background: var(--sg-hover-fill); }   /* under the pointer, the shared hover: a button of its own */
.sg-tab { position: relative; }
.sg-tab-state { display: inline-flex; margin-left: var(--sg-space-s); }
.sg-area-na { margin-bottom: var(--sg-space-m); }
.sg-tab.is-on::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: var(--sg-radius-pill); background: var(--sg-text); pointer-events: none; }   /* the chosen tab's line, its ends rounded */
/* The chosen one is shown by its fill and line, never a heavier weight: the words of a switch never change weight. */

/* ── Modes ───────────────────────────────────────────────────────────────── */
.sg-modes { display: flex; flex-direction: column; gap: var(--sg-space-l); }
.sg-mode-ctl { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sg-space-xs); }
.sg-sidebar .sg-mode-ctl { align-items: stretch; }   /* the page's own switch fills the sidebar; a section's is as wide as its options */
.sg-mode-label { font-size: var(--sg-s); font-weight: var(--sg-text-weight); color: var(--sg-muted); }
/* A page's own switch (a foundation's sizes, its colour modes) as wide as its words, the same padding around each as
   anywhere on the page, never stretched across it. */
.sg-size-switch { margin-bottom: calc(var(--sg-card-gap) - var(--sg-space-s) * 2); position: sticky; top: 0; z-index: 15; background: var(--sg-bg); padding: var(--sg-space-s) 0; }   /* a foundation's size switch, well apart from what it changes, kept in view as the page scrolls */
.sg-size-switch .sg-mode-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }   /* named for a screen reader only */
.pg-footer { display: flex; flex-direction: column; gap: var(--sg-space-m); margin-top: var(--sg-space-xl); }
/* No title under the areas' tabs: the chosen tab names the area. Its content one card gap under them, the stuck bar's
   own 16px counted. */
.pg-area { padding-top: var(--sg-space-s); }   /* the tabs bar 24px over it, 8px more: one card gap */
.pg-area > :first-child, .pg-area > [hidden] + * { margin-top: 0; }
.pg-updated { display: grid; gap: var(--sg-space-l); margin: 0; font-size: var(--sg-s); color: var(--sg-muted); }   /* each section of the documentation clearly apart */
.pg-updated > div { display: grid; grid-template-columns: 140px 1fr; gap: var(--sg-space-s); }
.pg-updated dt { font-weight: var(--sg-heading-weight); color: var(--sg-text-2); }
.pg-updated dd { margin: 0; }
.pg-updated dd > p { margin: 0 0 var(--sg-space-xxs); }
.pg-doc > h3 { margin: 0 0 var(--sg-space-xs); color: var(--sg-text); font-size: var(--sg-l); font-weight: var(--sg-heading-weight); }   /* the size of every other card heading, never the browser's */
/* One font on the page, the system's: names of props, variables and classes are set in it too, never the browser's monospace. */
/* Bold words in the heading weight, never a third one (the browser's bolder would give 900). */
:where(.sg-main, .sg-sidebar, .sg-token-pop) :where(b, strong):not(.pg-preview *, .pg-frame *, .sg-thumb *) { font-weight: var(--sg-heading-weight); }
:where(.sg-main, .sg-sidebar, .sg-token-pop) :where(code, pre, kbd, samp):not(.pg-preview *, .pg-frame *, .pg-variants .pg-preview *) { font-family: inherit; font-size: inherit; }
.sg-mode-diff { font-size: var(--sg-s); color: var(--sg-text-2); line-height: var(--sg-lh); margin: 0; }
/* The page's top bar: what applies to every preview (the brand, the mode) and the search, sticky above the pinned
   titles and areas, which sit under it (--sg-sticky-top). */
.sg-controlbar { position: sticky; top: 0; z-index: 25; display: flex; align-items: center; gap: var(--sg-space-s); margin: calc(-1 * var(--sg-space-xxl)) calc(-1 * var(--sg-main-pad, var(--sg-space-xxl))) var(--sg-space-xxl); padding: var(--sg-space-s) var(--sg-main-pad, var(--sg-space-xxl)); background: var(--sg-bg); border-bottom: var(--sg-line); }
@media (min-width: 1280px) { .sg-controlbar { padding-top: calc(var(--sg-space-s) * 2); padding-bottom: calc(var(--sg-space-s) * 2); } }   /* a large window: 8px more above and below its switches */
.sg-controlbar-label { flex: none; font-size: var(--sg-s); color: var(--sg-muted); margin-right: var(--sg-space-xs); }   /* 12px to its switch, as the Brand label to its select */
#mode-controls { display: flex; align-items: center; gap: var(--sg-space-xl); }   /* 24px between the mode switch and the brand dropdown */
.sg-controlbar .sg-mode-ctl { flex-direction: row; align-items: center; }
.sg-controlbar .sg-mode-diff { display: none; }
/* The page's own select: as tall as its fields, its chevron drawn by the page with room on its right. */
.sg-select { position: relative; display: block; }
.sg-select > select { -webkit-appearance: none; appearance: none; cursor: pointer; box-sizing: border-box; min-height: var(--sg-control-h); padding-inline-start: calc(var(--sg-space-m) + var(--sg-space-xs)); padding-inline-end: calc(var(--sg-space-m) * 2 + var(--sg-mark) + var(--sg-space-xs)); }   /* every select alike: its words 4px further in than a field's, room for the chevron */
.sg-select::after { content: ""; position: absolute; right: calc(var(--sg-space-m) + var(--sg-space-xs)); top: 50%; width: var(--sg-mark); height: var(--sg-mark); transform: translateY(-50%); background: var(--sg-muted); -webkit-mask: var(--sg-chevron-mark) center / contain no-repeat; mask: var(--sg-chevron-mark) center / contain no-repeat; pointer-events: none; }
.sg-brand-ctl { display: flex; align-items: center; gap: calc(var(--sg-space-s) + var(--sg-space-xs)); }   /* the brand the previews are in, beside the page's mode */
.sg-brand-ctl .sg-select, .sg-brand-ctl .sg-dd { width: 220px; }
/* The page's own dropdown: a field-like button with the choice and a list mark, the list under it on the page's surface. */
.sg-dd { position: relative; display: block; }
.sg-select-native { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sg-select-trigger { display: flex; align-items: center; justify-content: space-between; gap: var(--sg-space-s); width: 100%; min-height: var(--sg-control-h); box-sizing: border-box; margin: 0; padding: 0 calc(var(--sg-space-m) + var(--sg-space-xs)); border: var(--sg-line); border-radius: var(--sg-control-radius); background: transparent; color: var(--sg-text); font: inherit; font-size: var(--sg-s); font-weight: var(--sg-text-weight); text-align: left; cursor: pointer; transition: background-color var(--sg-fast), border-color var(--sg-fast); }
.sg-select-trigger:hover { background-color: var(--sg-hover-fill); border-color: var(--sg-border-hover); }
/* Chosen, open or typed in: the page's own background, outlined in the text's colour, as a chosen filter chip is. */
.sg-select-trigger[aria-expanded="true"], .sg-select-trigger[aria-expanded="true"]:hover { background-color: var(--sg-bg); border-color: var(--sg-text); }
.sg-select-trigger:focus-visible { outline: 2px solid var(--sg-accent); outline-offset: var(--sg-focus-offset); }
.sg-dd-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-dd-label { flex: none; color: var(--sg-muted); }   /* the dropdown's name inside it, quieter than its choice */
.sg-dd-label + .sg-dd-value { margin-right: auto; }
.sg-select-trigger[aria-expanded="true"] > .sg-dd-label { display: none; }   /* named at rest; open, only the choice */
.sg-mode-label.sg-dd-named { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }   /* said for a screen reader; seen inside the dropdown */
.sg-dd-mark { flex: none; width: var(--sg-mark); height: var(--sg-mark); color: var(--sg-muted); }
.sg-select-list { position: absolute; top: calc(100% + var(--sg-space-xs)); left: 0; right: 0; z-index: 30; box-sizing: border-box; max-height: 60vh; overflow: auto; padding: var(--sg-space-xs); background: var(--sg-surface); border: var(--sg-line); border-radius: var(--sg-radius); box-shadow: var(--sg-shadow-lift); outline: none; }
.sg-select-list[hidden] { display: none; }
/* A button's tone, on the system's own button (its shape, size and padding kept): primary inverts it, danger is the
   page's own red, whatever the system or a theme makes of its colours. */
[data-tone="primary"] { background: var(--sg-text) !important; border-color: var(--sg-text) !important; color: var(--sg-bg) !important; }
/* A small square button (an icon alone in a list's row): the system's button, as tall as a line of the list. */
[data-size="s"] { width: calc(var(--sg-control-h) * 0.7) !important; height: calc(var(--sg-control-h) * 0.7) !important; min-width: 0 !important; min-height: 0 !important; padding: 0 !important; display: inline-flex !important; align-items: center; justify-content: center; gap: 0 !important; }
[data-size="s"] svg { width: calc(var(--sg-control-h) * 0.35); height: calc(var(--sg-control-h) * 0.35); }
[data-tone="danger"] { background: var(--sg-danger) !important; border-color: var(--sg-danger) !important; color: var(--sg-on-danger) !important; }
/* A modal (a confirmation): the page's card, its title and words at the page's sizes, entering with a short ease. */
.sg-dialog { font-weight: var(--sg-text-weight); line-height: var(--sg-lh); width: min(30rem, calc(100vw - 2 * var(--sg-space-l))); margin: auto; padding: var(--sg-space-xl); border: var(--sg-line); border-radius: var(--sg-radius); background: var(--sg-bg); color: var(--sg-text); box-shadow: var(--sg-shadow-lift); }
.sg-dialog::backdrop { background: color-mix(in srgb, var(--sg-bg) 55%, transparent); backdrop-filter: blur(2px); }
.sg-dialog[open] { animation: sg-dialog-in 0.24s cubic-bezier(0.2, 0.8, 0.2, 1); }
.sg-dialog[open]::backdrop { animation: sg-fade-in 0.24s ease-out; }
.sg-dialog.is-closing { animation: sg-dialog-out 0.16s ease-in forwards; }
.sg-dialog.is-closing::backdrop { animation: sg-fade-out 0.16s ease-in forwards; }
@keyframes sg-dialog-in { from { opacity: 0; transform: translateY(var(--sg-space-s)) scale(0.97); } }
@keyframes sg-dialog-out { to { opacity: 0; transform: translateY(var(--sg-space-xs)) scale(0.98); } }
@keyframes sg-fade-in { from { opacity: 0; } }
@keyframes sg-fade-out { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sg-dialog[open], .sg-dialog[open]::backdrop, .sg-dialog.is-closing, .sg-dialog.is-closing::backdrop { animation: none; } }
.sg-dialog-title { margin: 0 0 var(--sg-space-s); font-size: var(--sg-title); font-weight: var(--sg-heading-weight); line-height: normal; color: var(--sg-text); }
.sg-dialog-title.is-danger { color: var(--sg-danger); }
.sg-dialog-text { margin: 0 0 var(--sg-space-xl); font-size: var(--sg-m); line-height: var(--sg-lh); color: var(--sg-text-2); }
.sg-dialog-acts { display: flex; justify-content: flex-end; gap: var(--sg-space-s); }
.sg-dd-option { padding: var(--sg-space-s) var(--sg-space-m); border-radius: calc(var(--sg-radius) - var(--sg-space-xxs)); font-size: var(--sg-s); color: var(--sg-text); cursor: pointer; }
.sg-dd-option.is-active { background: var(--sg-hover-fill); }
.sg-dd-option + .sg-dd-option { margin-top: var(--sg-space-xxs); }   /* each option a little apart, so two marked ones never touch */
.sg-dd-option[aria-selected="true"] { background: var(--sg-seg-on); color: var(--sg-text); font-weight: var(--sg-heading-weight); }
.sg-brand-ctl > .sg-mode-diff { position: absolute; top: 100%; margin-top: var(--sg-space-xxs); }

/* ── Section headings ────────────────────────────────────────────────────── */
.sg-section { margin-bottom: var(--sg-space-xxl); scroll-margin-top: var(--sg-page-top, var(--sg-space-xxl)); }   /* as far from the top as the page shown starts (--sg-page-top): the browser's jump to the page the address names (#status) never scrolls it */
.sg-section-badge { display: inline-flex; align-items: center; padding: 0; font-size: var(--sg-s); font-weight: var(--sg-text-weight); color: var(--sg-muted); margin-bottom: 0;   /* right over the title on every page: the title's own line height is the gap */ }
/* Above the title that sticks: the title's room reaches up under the tag, so the tag is drawn over it, never cut;
   scrolled away, it passes under the bar at the window's top. */
.sg-section-badge, .sg-crumb { position: relative; z-index: 17; }   /* the crumb beside the tag too: never clipped by the title's room under it */
.sg-section > h2, .pg-head > h2 { font-size: calc(var(--sg-title) + var(--sg-space-xxs) * 3.5); font-weight: var(--sg-heading-weight); color: var(--sg-text); line-height: normal; margin-bottom: var(--sg-space-xs); }
.sg-section { position: relative; }
.sg-section-actions { position: absolute; right: 0; z-index: 16; }
.sg-hero > h1 > .sg-section-actions, .sg-section > h2 > .sg-section-actions { top: 50%; transform: translateY(-50%); font-size: var(--sg-s); font-weight: var(--sg-text-weight); line-height: var(--sg-lh); }   /* inside the title, so it stays with it as the page scrolls */   /* a section's own action at its right, level with its title (placed when shown) */
.sg-section > p { font-size: var(--sg-m); color: var(--sg-text-2); line-height: var(--sg-lh); margin-bottom: var(--sg-space-xl); max-width: 560px; }
.sg-subsection { margin-bottom: var(--sg-space-xxl); }
.sg-subsection > h3 { font-size: var(--sg-s); font-weight: var(--sg-heading-weight); color: var(--sg-muted); margin-bottom: var(--sg-space-s); }   /* a title with no line under it */
.sg-hr { border: none; border-top: var(--sg-line); margin: var(--sg-space-xxl) 0; }

/* ── Health: the dashboard ───────────────────────────────────────────────── */
/* Tiles for each area's number, then cards for where what is left gathers. Every box is the system's card (its line,
   corners and shadow), every bar a track and a fill in the system's own colours. */
:where(.sg-health-tile, .sg-health-top, .sg-health-card, .sg-health-list > li, .sg-health) > :where(p, h3, ol) { margin: 0; }
/* Each card's label, and at its top right the system's own tip trigger saying how its number is counted. Its fill is the
   index cards' (the text's colour, faintly). */
.sg-health-top { display: flex; align-items: center; justify-content: space-between; gap: var(--sg-space-s); }
.sg-health-top > :last-child:not(:first-child) { flex-shrink: 0; }
/* The page's default tooltip, where the system has none (or none read yet): a round trigger and its words in a bubble,
   shown on hover and focus, kept while the pointer is on it and closed with Escape (WCAG 1.4.13). */
.sg-tip { position: relative; display: inline-flex; }
.sg-tip-btn { display: inline-flex; align-items: center; justify-content: center; width: 1.5rem; height: 1.5rem; margin: 0; padding: 0; border: var(--sg-line); border-radius: var(--sg-control-radius); background: transparent; transition: background-color var(--sg-fast), border-color var(--sg-fast); color: var(--sg-text-2); font: inherit; font-size: var(--sg-xs); font-weight: var(--sg-heading-weight); line-height: normal; cursor: help; }
.sg-tip-btn:hover, .sg-tip-btn:focus-visible { color: var(--sg-text); }
.sg-tip-btn:hover { background-color: var(--sg-hover-fill); border-color: var(--sg-border-hover); }   /* the shared hover */
.sg-tip-btn:focus-visible { outline: 2px solid var(--sg-accent); outline-offset: var(--sg-focus-offset); }
.sg-tip-bubble { position: absolute; top: calc(100% + var(--sg-space-xs)); right: 0; z-index: 20; width: max-content; max-width: min(18rem, 70vw); padding: var(--sg-space-s) var(--sg-space-m); border-radius: calc(var(--sg-radius-s) - var(--sg-space-xs)); background: var(--sg-text); color: var(--sg-bg); font-size: var(--sg-s); font-weight: var(--sg-text-weight); line-height: var(--sg-lh); text-align: left; box-shadow: var(--sg-shadow-lift); visibility: hidden; }
.sg-mx-why { display: inline-flex; align-items: center; gap: var(--sg-space-s); }   /* a word and the ? that says why */
.sg-mx-why .sg-tip-btn { width: calc(var(--sg-space-l) + var(--sg-space-xxs)); height: calc(var(--sg-space-l) + var(--sg-space-xxs)); font-size: var(--sg-xs); }
:is(.sg-mx-why, td) .sg-tip-bubble { position: fixed; right: auto; white-space: normal; }   /* placed by script over the table, never cut by its scroll */
.sg-tip-bubble > .sg-tip-title, .sg-tip-bubble > .sg-tip-part { display: block; }
.sg-tip-bubble > .sg-tip-part { margin-top: var(--sg-space-s); }
.sg-tip--wide > .sg-tip-bubble { max-width: min(24rem, 80vw); }   /* room for what a criterion means and how it is checked */
.sg-tip-part > b { display: block; }
.sg-tip-bubble::before { content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: var(--sg-space-xs); }   /* the gap to the trigger: the pointer crosses it without closing the bubble */
.sg-tip:hover > .sg-tip-bubble, .sg-tip:focus-within > .sg-tip-bubble { visibility: visible; }
.sg-tip.is-dismissed > .sg-tip-bubble { visibility: hidden; }
.sg-health-count { display: flex; flex-direction: column; gap: 0; }
.sg-health-count > .sg-health-desc { margin-top: calc(-1 * var(--sg-space-xs)); }   /* the label close under the count, into its line's own space */
.sg-health-num { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: var(--sg-space-s); }
.sg-health-top + .sg-health-count { margin-top: calc(-1 * var(--sg-space-s)); }   /* the big number 8px closer to its card's title */
.sg-health-count > .sg-health-num:has(.sg-health-dot) { flex-wrap: nowrap; column-gap: 0; }   /* the dot, the number, and its word on the number's baseline, all on one line */
.sg-health-num > .sg-health-dot { align-self: center; margin-right: calc(var(--sg-space-xs) + var(--sg-space-xxs)); }
.sg-health-num > .sg-health-dot ~ .sg-health-out { margin-left: var(--sg-space-s); }
.sg-health-dot { flex: none; width: calc(var(--sg-dot) * 1.5); height: calc(var(--sg-dot) * 1.5); border-radius: var(--sg-radius-pill); background: var(--sg-positive); }   /* green, as the done part of the bar: the big number is that part */
.sg-health-out { font-size: calc(var(--sg-s) + var(--sg-space-s)); font-weight: var(--sg-heading-weight); color: var(--sg-muted); }   /* of 133, 8px over the text size */
.sg-health-desc { font-size: calc(var(--sg-s) + var(--sg-space-xxs) / 2); color: var(--sg-text-2); }   /* what the count counts, under it, 1px over the text size */
.sg-health-num, .sg-health-num.sg-health-num { line-height: normal; }
.sg-health-count + .sg-health-bar { margin-top: calc(-1 * var(--sg-space-l)); }   /* the bar half as far under the big number: its line keeps room below the digits (and a wrapped word) that they never use */   /* the big count's own line, so a wrapped "of" line never runs into it */   /* the count, then what it is out of on its baseline; wrapped, under it */
.sg-health-num > .sg-health-out { margin-bottom: var(--sg-space-l); }   /* a word wrapped under the number takes back the room the bar is pulled up by (on the number's own line it changes nothing: the digits are taller) */
.sg-health-tiles { display: grid; grid-template-columns: repeat(var(--sg-tiles, 4), minmax(0, 1fr)); gap: calc(var(--sg-space-l) + var(--sg-space-s)); margin-bottom: calc(var(--sg-space-l) + var(--sg-space-s)); }
/* How many a row is measured by the page (fitTiles): the cards' size is the system's own, so no window width can say it. */
@media (max-width: 600px) { .sg-health-tiles { grid-template-columns: minmax(0, 1fr); } }
.sg-health-tile, .sg-health-card { border: var(--sg-line); border-radius: var(--sg-radius); box-shadow: var(--sg-shadow); background: var(--sg-a1); padding: var(--sg-cell-x); display: flex; flex-direction: column; gap: var(--sg-space-l); min-width: 0; }
:root[data-sg-scheme="light"] :is(.sg-health-tile, .sg-health-card) { background: var(--sg-bg); }   /* in light mode a raised card is lighter than the page, never a shade darker */
.sg-health-card > h3 { font-size: var(--sg-s); font-weight: var(--sg-heading-weight); color: var(--sg-muted); }
.sg-health-card + .sg-health-card { margin-top: var(--sg-space-l); }
.sg-health-label { font-size: calc(var(--sg-s) + var(--sg-space-xxs)); color: var(--sg-muted); }
.sg-health-num { font-size: calc(var(--sg-h1) * 4); font-weight: var(--sg-heading-weight); color: var(--sg-text); line-height: var(--sg-lh); font-variant-numeric: tabular-nums; }
.sg-health-num small { font-size: var(--sg-s); font-weight: var(--sg-text-weight); color: var(--sg-muted); }
.sg-health-sub { font-size: var(--sg-s); color: var(--sg-text-2); }
.sg-health-bar { display: flex; height: calc(var(--sg-space-xs) * 2); border-radius: var(--sg-radius-pill); background: var(--sg-a4);   /* the empty track, clear enough to read as one */ overflow: hidden; }
.sg-health-bar > span { display: block; height: 100%; background: var(--sg-text); }
.sg-health-bar { gap: var(--sg-space-xxs); }
.sg-health-bar > .is-none { background: none; }   /* N/A: no colour, the bar's empty track; its legend word has no dot */
/* Untested is for now only (the browser is still trying it): diagonal stripes, in the bar, its legend, the table and a tab alike. */
.sg-health-bar > .is-untested, .is-untested > .pg-par-sign { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--sg-muted) 55%, transparent) 0 1px, transparent 1px 2.5px), color-mix(in srgb, var(--sg-muted) 22%, transparent); }   /* dim fill, tight lines */
.sg-health-bar > .is-done { background: var(--sg-positive); } .sg-health-bar > .is-check { background: var(--sg-warning-ink); } .sg-health-bar > .is-fix { background: var(--sg-negative); }   /* done, to check, to fix: the status dots' colours */
/* A table a filter left with no row: the head is hidden with the rows, so this stands alone in the card. Shared, as the
   sort and filter marks are: every page that filters a table uses it. */
.sg-none { margin: 0; padding: calc(var(--sg-space-xxl) + var(--sg-space-l)) var(--sg-cell-x); text-align: center; color: var(--sg-muted); font-size: var(--sg-s); line-height: var(--sg-lh); }
.sg-none > strong { display: block; margin-bottom: var(--sg-space-xs); font-size: var(--sg-l); font-weight: var(--sg-heading-weight); color: var(--sg-text); }
th:is([data-sort], [data-sort-col]) .sg-mx-sort { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }   /* a column head sorts by it, on every table (data-sort-col: the page's one sorter) */
th:is([data-sort], [data-sort-col]) .sg-mx-sort { display: inline-flex; align-items: center; gap: var(--sg-space-xs); }
.sg-mx-tri { flex: none; width: calc(0.6em + var(--sg-space-xs)); height: calc(0.6em + var(--sg-space-xs)); opacity: 0; transition: opacity var(--sg-fast), transform var(--sg-fast); }   /* the sorted column: a triangle, down or up */
th:is([data-sort], [data-sort-col]) .sg-mx-sort:hover .sg-mx-tri { opacity: 0.5; }
th:is([aria-sort="descending"], [aria-sort="ascending"]) .sg-mx-sort { color: var(--sg-text); }
th:is([aria-sort="descending"], [aria-sort="ascending"]) .sg-mx-tri { opacity: 1; }
th[aria-sort="ascending"] .sg-mx-tri { transform: rotate(180deg); }
.sg-mx-cell, .sg-todo td > a.sg-mx-cell[href] { color: inherit; text-decoration: none; display: inline-flex; border-radius: var(--sg-radius-s); }   /* a status that opens its area, not underlined until pointed at */
.sg-mx-cell:hover .pg-par-status { text-decoration: underline; text-underline-offset: var(--sg-underline-offset); }
.sg-matrix tr[hidden] { display: none; }
.sg-mx-close { flex: none; display: inline-flex; align-items: center; justify-content: center; width: var(--sg-icon-btn); height: var(--sg-icon-btn); margin: 0; padding: 0; border: 0; border-radius: var(--sg-control-radius); background: transparent; color: var(--sg-text-2); cursor: pointer; transition: background-color var(--sg-fast), color var(--sg-fast); }   /* close: an X alone, rounded as the page's buttons are */
.sg-mx-close:hover { background-color: var(--sg-hover-fill); color: var(--sg-text); }
.sg-mx-close:focus-visible { outline: 2px solid var(--sg-accent); outline-offset: var(--sg-focus-offset); }
.sg-mx-close > svg { width: var(--sg-mark); height: var(--sg-mark); }
.sg-mx-at { white-space: nowrap; color: var(--sg-text-2); }
.sg-matrix { table-layout: fixed; width: 100%; }   /* the columns keep their width whatever is sorted or shown */
/* A column no row has anything for, hidden with its cells (MX_HIDE): Figma, Parity and Documentation, in MX_COLS' order. */
.sg-matrix.sg-mx--no-figma :is(th, td):nth-child(2), .sg-matrix.sg-mx--no-parity :is(th, td):nth-child(4), .sg-matrix.sg-mx--no-documentation :is(th, td):nth-child(6) { display: none; }
.sg-matrix th:first-child { width: 22%; }
.sg-matrix td:first-child { overflow: hidden; }
.sg-mx-sys-head { font-size: var(--sg-l); font-weight: var(--sg-heading-weight); color: var(--sg-text); margin: var(--sg-card-gap) 0 var(--sg-space-l); }
.sg-mx-sys { display: flex; flex-direction: column; gap: var(--sg-card-gap); }
.sg-todo > .pg-par-card { margin-bottom: 0; }
.sg-health-go { display: flex; align-items: center; justify-content: space-between; gap: var(--sg-space-s); }   /* how many are complete at the left, the link at the right, one line */
.sg-health-done { display: inline-flex; align-items: center; gap: var(--sg-space-xs); margin: 0; font-size: var(--sg-m); color: var(--sg-text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sg-health-done > svg { flex: none; width: var(--sg-mark); height: var(--sg-mark); }
.sg-health-done > b { font-weight: var(--sg-heading-weight); color: var(--sg-text); }
.sg-health-go { margin-top: auto; padding-top: var(--sg-cell-x); border-top: var(--sg-line); }   /* the same space above its words as the card leaves below them */   /* the card's next step at its foot, under a line */
.sg-health-anchor { display: inline-flex; align-items: center; gap: var(--sg-space-xs); margin: 0; padding: 0; border: 0; background: none; color: var(--sg-text); font: inherit; font-size: var(--sg-m); cursor: pointer; }   /* a link down to the table: its words and an arrow pointing down */
.sg-health-anchor > svg { width: var(--sg-mark); height: var(--sg-mark); transition: transform var(--sg-fast); }
.sg-health-anchor:hover { text-decoration: underline; text-underline-offset: var(--sg-underline-offset); }
.sg-health-anchor:hover > svg { transform: translateY(var(--sg-space-xxs)); }
.sg-health-anchor:focus-visible { outline: 2px solid var(--sg-accent); outline-offset: var(--sg-focus-offset); }
.sg-health-legend { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sg-space-xs) var(--sg-space-m); font-size: var(--sg-s); color: var(--sg-text-2); }   /* what is left, side by side on one line */
.sg-health-legend .pg-par-status { gap: calc(var(--sg-space-xxs) * 2.5); white-space: nowrap; }   /* the dot, its words and the count of components 5px apart */
.sg-health-bar + .sg-health-legend { margin-top: calc(-1 * var(--sg-space-s)); }   /* the legend 8px closer to its bar */
.sg-health-legend .pg-par-status { font-weight: var(--sg-text-weight); color: var(--sg-text-2); }
.sg-health-bar > span + span { background: var(--sg-a5); }
.sg-health-bar > span + span + span { background: repeating-linear-gradient(135deg, var(--sg-a5) 0 2px, transparent 2px 4px); }
.sg-health-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--sg-space-m); }
.sg-health-list > li { display: flex; flex-direction: column; gap: var(--sg-space-xs); }
.sg-health-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sg-space-s); font-size: var(--sg-m); color: var(--sg-text); }
.sg-health-row > span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--sg-text-2); }
.sg-health-note { margin-top: var(--sg-space-l); font-size: var(--sg-s); line-height: var(--sg-lh); color: var(--sg-text-2); }   /* the page's note size, never the body's 16px */
.sg-health .sg-health-head { font-size: var(--sg-l); font-weight: var(--sg-heading-weight); color: var(--sg-text); margin: var(--sg-space-xl) 0 var(--sg-space-s); }
.sg-health-cell { display: flex; flex-direction: column; gap: var(--sg-space-xxs); min-width: calc(var(--sg-space-xxl) * 2); font-variant-numeric: tabular-nums; }
.sg-health-comps td { font-variant-numeric: tabular-nums; }
/* Where nobody is named to decide: a quiet note under the numbers, the same type as a card's lines. */
/* ── Overview ────────────────────────────────────────────────────────────── */
.sg-hero { display: contents; }   /* its title sticks for the whole page, as every page's does */
.sg-hero > :last-child { margin-bottom: var(--sg-space-s); }   /* what follows the overview's title sits as close as under every page's title */
#index > .pg-links { margin: 0 0 var(--sg-space-xl); }   /* its links as a page's lead: as far from the groups as a lead from its content */
.sg-hero > h1 { font-size: calc(var(--sg-title) + var(--sg-space-xxs) * 3.5); font-weight: var(--sg-heading-weight); color: var(--sg-text); line-height: normal; position: sticky; top: var(--sg-sticky-top, 0px); z-index: 15; background: var(--sg-bg); margin: calc(-2 * var(--sg-space-s)) 0 0; padding: calc(var(--sg-space-s) * 2) 0; }   /* the overview's title as every page's: it sticks */
.sg-hero > p { font-size: var(--sg-m); color: var(--sg-text-2); line-height: var(--sg-lh); max-width: 500px; }
/* The page's own info box, for every note it gives (an audit not run yet, a family that differs, what is left off): small
   words beside an info mark, on a quiet surface. A note that asks for something (sg-pending) carries the warning colour
   on its mark and its edge only. */
.sg-info, .sg-pending { position: relative; display: block; font-size: var(--sg-s); line-height: var(--sg-lh); color: var(--sg-text-2); background: var(--sg-tint); border: var(--sg-line); border-radius: var(--sg-radius); padding: var(--sg-cell-x); padding-inline-start: calc(var(--sg-cell-x) + 1.15em + var(--sg-space-s)); margin: 0 0 var(--sg-space-l); max-width: none; }   /* a table row's room: the same padding as its cells; one line while the page has the room */
.sg-info::before, .sg-pending::before { content: ""; position: absolute; left: var(--sg-cell-x); top: calc(var(--sg-cell-x) + 0.15em); width: 1.15em; height: 1.15em; background: currentColor; -webkit-mask: var(--sg-info-mark) center / contain no-repeat; mask: var(--sg-info-mark) center / contain no-repeat; opacity: 0.8; }
.sg-pending { border-color: color-mix(in srgb, var(--sg-warning) 45%, var(--sg-bg)); background: color-mix(in srgb, var(--sg-warning) 6%, var(--sg-bg-2)); }   /* a warning: the whole box a touch warm, never a side bar */
.sg-pending::before { background: var(--sg-warning-ink); opacity: 1; }
.sg-info b, .sg-pending b { color: var(--sg-text); font-weight: var(--sg-heading-weight); }
.sg-save-note { position: fixed; right: var(--sg-space-l); bottom: var(--sg-space-l); z-index: 60; margin: 0; max-width: min(28rem, calc(100vw - 2 * var(--sg-space-l))); background: var(--sg-bg); }   /* a file this viewer may not have handed over: how else to get it, over the page */
.sg-save-line { margin: 0 0 var(--sg-space-s); }
.sg-save-acts { display: flex; flex-wrap: wrap; gap: var(--sg-space-s); }
.sg-info[hidden], .sg-pending[hidden] { display: none; }
.sg-usage-count { font-size: var(--sg-m); color: var(--sg-text-2); margin: 0 0 var(--sg-space-l); max-width: 720px; }
.sg-gap ul { margin: var(--sg-space-xs) 0 0; padding-left: var(--sg-space-l); }
/* Four to a row, with room around each; fewer on a narrower window. */
.sg-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sg-card-gap); margin-bottom: var(--sg-space-xxl); }
@media (max-width: 1100px) { .sg-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .sg-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(var(--sg-space-l) + var(--sg-space-s)); } }
/* On a phone two cards side by side, each shorter, so more of the system fits the screen; what a picture holds is scaled
   to fit it (fitThumb), and the foundations' samples shrink with it. */
@media (max-width: 480px) {
  .sg-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(var(--sg-space-m) + var(--sg-space-s)); margin-bottom: var(--sg-space-xl); }
  .sg-card-grid .sg-thumb { height: 104px; gap: var(--sg-space-xs); }
  .sg-card-grid .sg-card > h3 { font-size: var(--sg-m); padding: var(--sg-space-s) var(--sg-space-m); }
  .sg-card-grid .sg-card > h3 + p { padding: 0 var(--sg-space-m) var(--sg-space-s); }   /* the line under the name starts where the name does */
  .sg-card-grid .sg-thumb-dot { width: 20px; height: 20px; }
  .sg-card-grid .sg-thumb-box { width: 24px; height: 24px; }
  /* The other grids of cards two side by side too: the icons, the products a component is used in, its pictures in use. */
  .sg-card-grid.pg-usedin, .sg-main .sg-icon-grid, .sg-main .sg-screens { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Each overview link is the system's own card (DATA.ui.card); with none (or none read yet), the page's default card: the
   tables' border, corners and shadow, on the page's own cards only (sg-card--own), so neither the system's card nor its
   reset (div { border: 0 }) takes them away. */
.sg-card { display: flex; flex-direction: column; gap: var(--sg-space-m); text-decoration: none; color: inherit; min-width: 0; }
.sg-card.sg-card--own { border: var(--sg-line); border-radius: var(--sg-radius); box-shadow: var(--sg-shadow); background: var(--sg-bg); overflow: hidden; }
/* A card that opens a page answers the pointer: it rises on hover and settles back, a step smaller, while pressed;
   still for a person who asks for less motion, the border alone answering. */
a.sg-card { transition: transform var(--sg-move), border-color var(--sg-move); }
a.sg-card:hover { transform: translateY(-2px); }
a.sg-card.sg-card--own:hover { border-color: var(--sg-border-hover); }   /* a step brighter than its line, never a heavy one */
a.sg-card:active { transform: translateY(0) scale(0.985); transition-duration: 0.15s; }
a.sg-card:focus-visible { outline: 2px solid var(--sg-accent); outline-offset: var(--sg-focus-offset); }
@media (prefers-reduced-motion: reduce) { a.sg-card, a.sg-card:hover, a.sg-card:active { transform: none; transition: border-color var(--sg-fast); } }
/* A card that opens a page says so: an arrow at its bottom right that moves on toward it under the pointer. */
a.sg-card { position: relative; }
a.sg-card::after { content: ''; position: absolute; right: var(--sg-space-l); bottom: calc(var(--sg-space-m) + var(--sg-space-s)); width: var(--sg-mark); height: var(--sg-mark); background: var(--sg-muted); opacity: 0.4; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform var(--sg-move), background-color var(--sg-fast), opacity var(--sg-fast); pointer-events: none; }
a.sg-card:hover::after, a.sg-card:focus-visible::after { transform: translateX(4px); background: var(--sg-text); opacity: 1; }   /* quiet at rest, full under the pointer */
a.sg-card > h3, a.sg-card > h3 + p { padding-right: calc(var(--sg-space-l) * 2 + var(--sg-space-s)); }   /* its words never under the arrow */
@media (prefers-reduced-motion: reduce) { a.sg-card:hover::after { transform: none; } }
.sg-card[hidden], .sg-section[hidden], .sg-hr[hidden], .sg-nav a[hidden] { display: none; }
.sg-hero > h1[tabindex="-1"]:focus, .pg-head > h2[tabindex="-1"]:focus, .sg-section > h2[tabindex="-1"]:focus { outline: none; }   /* the heading a new view moves focus to, for a screen reader */
/* The Showroom: a grid of its screens, each in small; a screen's own page shows it at Figma's size, scaled to fit,
   beside what it still lacks (stacked on a narrower window). */
.pg-usedin-title { font-size: var(--sg-l); font-weight: var(--sg-heading-weight); color: var(--sg-text); margin: 0 0 var(--sg-space-m); }
.pg-usedin + .pg-usedin-title { margin-top: var(--sg-card-gap); }   /* the Showroom's screens a card's gap under the products */
.sg-card-grid.sg-showroom-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .sg-card-grid.sg-showroom-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .sg-card-grid.sg-showroom-grid { grid-template-columns: minmax(0, 1fr); } }
.sg-showroom-thumb { display: block; padding: 0; }   /* the screen from its top left corner, its whole width in the card */
.sg-showroom-thumb > .sg-showroom-screen { pointer-events: none; }
.sg-card > h3 + .sg-showroom-meta { margin: 0; }
.sg-crumb { margin-left: var(--sg-space-s); font-size: var(--sg-s); color: var(--sg-muted); text-decoration: none; }   /* the tag's page beside it, back to the grid */
.sg-crumb::before { content: '›'; margin-right: var(--sg-space-s); }
.sg-crumb:hover { color: var(--sg-text); text-decoration: underline; }
.sg-crumb[hidden], .sg-section-actions[hidden], .sg-size-switch[hidden] { display: none; }
.sg-screen-title { display: flex; align-items: center; gap: var(--sg-space-m); }   /* the back button, then the screen's name */
.sg-screen-title > a { flex: none; box-sizing: border-box; width: var(--sg-control-h); height: var(--sg-control-h); padding: 0; justify-content: center; }   /* a square back beside the title */
.sg-screen-title > a .sg-showroom-back-mark { width: var(--sg-mark); height: var(--sg-mark); }
#showroom > .sg-showroom-detail > .sg-showroom-meta { margin: 0 0 var(--sg-space-l); }
.sg-showroom-back-mark { width: var(--sg-mark); height: var(--sg-mark); flex: none; }
.sg-showroom-grid[hidden], .sg-showroom-detail[hidden], .sg-section > p[hidden] { display: none; }
.sg-showroom-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sg-space-m); margin: 0 0 var(--sg-space-m); }
.sg-showroom-head > div > h3 { font-size: var(--sg-l); font-weight: var(--sg-heading-weight); color: var(--sg-text); margin: 0; }
.sg-showroom-meta { font-size: var(--sg-s); color: var(--sg-muted); margin: var(--sg-space-xxs) 0 0; }
.sg-showroom-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: calc(var(--sg-space-l) + var(--sg-space-s)); align-items: start; }   /* the screen alone, as wide as the page */
.sg-showroom-body.is-open { grid-template-columns: minmax(0, 1fr) minmax(340px, auto); }   /* its differences beside it, asked for: at least 340px, wider when its filter needs it to stay on one line */
.sg-showroom-gaps > .sg-notes, .sg-showroom-gaps > p { contain: inline-size; }   /* the notes wrap to the panel; only the filter and its legend set its width */
.sg-showroom-actions { display: flex; align-items: center; gap: var(--sg-space-s); flex: none; }
#showroom .sg-section-actions:not([hidden]) { display: flex; align-items: center; gap: calc(var(--sg-space-s) * 2); }
.sg-showroom-frames:not([hidden]) { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sg-space-s) var(--sg-space-l); }   /* the breakpoint, and beside it the screen's own buttons */
.sg-showroom-tools { display: inline-flex; align-items: center; gap: var(--sg-space-s); }   /* a screen's page only: never on the grid */
/* A screen full browser: the product alone over the whole window, the way out at its bottom left corner. */
.sg-showroom-full { position: fixed; inset: 0; z-index: 1000; background: var(--sg-bg); overflow: hidden; }
.sg-showroom-full > .sg-showroom-screen { position: absolute; top: 0; left: 0; z-index: 0; isolation: isolate; }   /* its own layer: nothing in the product (its menu, a panel) ever covers the way out */
.sg-showroom-full-exit { position: absolute; left: var(--sg-space-l); bottom: var(--sg-space-l); z-index: 2; line-height: var(--sg-lh); font-weight: var(--sg-text-weight); }   /* the page's buttons' own weight and height, not the screen's */
.sg-showroom-full-exit > .sg-btn { box-shadow: var(--sg-shadow-lift); }   /* the button is solid already: lifted over the product */
html:has(.sg-showroom-full) { overflow: hidden; }   /* the page under it never scrolls, nor shows its scroll bar */
.sg-showroom-notes[hidden], .sg-pins[hidden] { display: none; }
/* Beside the screen it stays in view, under the title and switch that stick, and fills the window's height down to its
   foot (fitNotes sets the height as the page scrolls): its filter stays, only its notes scroll. Under the screen, on a
   narrow page, it runs its own length with the page. */
@media (min-width: 901px) {
  .sg-showroom-notes { position: sticky; top: calc(var(--sg-sticky-top, 0px) + var(--sr-head-h, 0px) + var(--sg-space-m)); max-height: calc(100vh - var(--sg-sticky-top, 0px) - var(--sr-head-h, 0px) - var(--sg-space-m) - var(--sg-space-xl)); overflow: hidden; }
  .sg-showroom-notes > .sg-showroom-gaps { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
  .sg-showroom-gaps > .sg-notes { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
}
@media (max-width: 900px) { .sg-showroom-body.is-open { grid-template-columns: minmax(0, 1fr); } }   /* a narrow window: the notes under the screen, never over it */
.sg-showroom-room { min-width: 0; }   /* the column a screen is drawn in */
.sg-showroom-stage { position: relative; overflow: hidden; border: var(--sg-line); border-radius: var(--sg-radius); box-sizing: content-box; max-width: 100%; }
.sg-showroom-screen { position: absolute; top: 0; left: 0; transform-origin: 0 0; }
.sg-showroom-gaps { font-size: var(--sg-s); line-height: var(--sg-lh); color: var(--sg-text-2); border: var(--sg-line); border-radius: var(--sg-radius); background: var(--sg-tint); padding: var(--sg-space-m); }
.sg-showroom-notes { display: flex; flex-direction: column; gap: var(--sg-space-l); }
.sg-showroom-gaps > h4 { font-size: var(--sg-l); font-weight: var(--sg-heading-weight); color: var(--sg-text); margin: 0 0 var(--sg-space-xs); }   /* two steps over its notes */
.sg-acc-title { display: flex; flex-direction: column; gap: var(--sg-space-xxs); min-width: 0; }   /* the name, its kind under it */
.sg-showroom-gaps ul { list-style: none; margin: 0 0 var(--sg-space-m); padding: 0; display: flex; flex-direction: column; gap: var(--sg-space-s); }
.sg-showroom-gaps li b { color: var(--sg-text); font-weight: var(--sg-heading-weight); }
.sg-showroom-gaps .sg-acc > p { margin: var(--sg-space-xs) 0 0; }
.sg-showroom-gaps ul { gap: 0; }
.sg-showroom-gaps li + li { border-top: var(--sg-line); }
/* The page's own accordion: a row that opens on a click (or Enter), a plus that turns into a minus. */
.sg-acc > summary { display: flex; align-items: center; justify-content: space-between; gap: var(--sg-space-s); padding: var(--sg-space-s) 0; cursor: pointer; list-style: none; }
.sg-acc > summary::-webkit-details-marker { display: none; }
.sg-acc > summary:focus-visible { outline: 2px solid var(--sg-accent); outline-offset: var(--sg-focus-offset); border-radius: var(--sg-radius-s); }
.sg-acc > p { padding: 0 0 var(--sg-space-s); }
.sg-acc-mark { position: relative; flex: none; width: 0.75em; height: 0.75em; }
.sg-acc-mark::before, .sg-acc-mark::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -0.75px; background: var(--sg-muted); }
.sg-acc-mark::after { transform: rotate(90deg); transition: transform var(--sg-move); }
.sg-acc[open] .sg-acc-mark::after { transform: rotate(0deg); }
.sg-showroom-kind { color: var(--sg-muted); }
/* A screen's differences: numbered pins over its parts, the same numbers in the list beside it, one colour a kind. */
.sg-showroom-filter { margin: 0 0 var(--sg-space-s); }
/* A screen's page review, under the screen: what its code shows, then what a model judged on its screenshot, said so. */
.sg-showroom-room > .sg-showroom-review { margin-top: var(--sg-space-l); }
.sg-showroom-review > h3 { font-size: var(--sg-l); font-weight: var(--sg-heading-weight); color: var(--sg-text); margin: 0 0 var(--sg-space-xs); }   /* under the page's title, as its notes are */
.sg-showroom-review > h3 ~ h3 { margin-top: var(--sg-space-l); }
.sg-showroom-review li.sg-showroom-review-row { padding: var(--sg-space-s) 0; }
.sg-showroom-review > p { margin: 0 0 var(--sg-space-s); }
.sg-showroom-review .sg-acc > p + p { margin-top: var(--sg-space-xs); }
.sg-notes-top { position: sticky; top: 0; z-index: 2; border-radius: calc(var(--sg-radius) - var(--sg-line-width, 1px)) calc(var(--sg-radius) - var(--sg-line-width, 1px)) 0 0; margin: calc(-1 * var(--sg-space-m)) calc(-1 * var(--sg-space-m)) 0; padding: var(--sg-space-m) var(--sg-space-m) var(--sg-space-xs); background: var(--sg-bg-2); border-bottom: var(--sg-line); }   /* the filter and its key stay at the panel's top as its notes scroll */
.sg-chip-dot { flex: none; width: var(--sg-dot); height: var(--sg-dot); border-radius: var(--sg-radius-pill); }   /* a chip's dot in its pins' colour, 8px from its words as every dot is */
.sg-pins { position: absolute; inset: 0; pointer-events: none; }
.sg-pin { position: absolute; transform: translate(-50%, -50%); pointer-events: auto; cursor: pointer; display: flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 var(--sg-space-xxs); border-radius: var(--sg-radius-pill); border: 2px solid var(--sg-bg); box-shadow: var(--sg-shadow); font-size: var(--sg-xs); font-weight: var(--sg-heading-weight); color: var(--sg-bg); transition: transform 0.15s var(--sg-ease, ease); }
.sg-pin.is-on { transform: translate(-50%, -50%) scale(1.2); z-index: 2; }
.sg-pin--missing { background: var(--sg-accent); }
.sg-pin--fixed { background: var(--sg-warning-ink); }
.sg-pin--code { background: var(--sg-negative); }
.sg-pin-box { position: absolute; pointer-events: none; border: 2px solid var(--sg-text); border-radius: var(--sg-radius-s); }
.sg-pin-box--missing { border-color: var(--sg-accent); }
.sg-pin-box--fixed { border-color: var(--sg-warning-ink); }
.sg-pin-box--code { border-color: var(--sg-negative); }
/* A pin's note on the screen: dark on the light page (the page's own colours turned round), so it reads over any screen. */
.sg-pin-card { position: absolute; z-index: 3; width: 260px; pointer-events: auto; display: flex; flex-direction: column; gap: var(--sg-space-xxs); padding: var(--sg-space-m); background: var(--sg-text); color: var(--sg-bg); border-radius: var(--sg-radius); box-shadow: var(--sg-shadow-lift); font-size: var(--sg-s); line-height: var(--sg-lh); }
.sg-pin-card > b { font-weight: var(--sg-heading-weight); }
.sg-pin-card-kind { font-size: var(--sg-xs); color: color-mix(in srgb, var(--sg-bg) 72%, transparent); }
.sg-pin-card > p { margin: var(--sg-space-xxs) 0 0; }
.sg-notes { list-style: none; margin: 0; padding: 0; }
.sg-notes > li + li { border-top: var(--sg-line); }
.sg-note > .sg-acc > summary { justify-content: flex-start; }
.sg-note .sg-acc-title { flex: 1; }
.sg-note-no { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; border-radius: var(--sg-radius-pill); font-size: var(--sg-xs); font-weight: var(--sg-heading-weight); color: var(--sg-bg); }
.sg-note.is-on > .sg-acc > summary .sg-acc-title > b { text-decoration: underline; text-underline-offset: var(--sg-underline-offset); }
.sg-note--away .sg-note-no { background: transparent; color: var(--sg-muted); box-shadow: inset 0 0 0 1px var(--sg-line-colour); }   /* not on the screen: no pin for it */
.sg-note[hidden] { display: none; }
.sg-overview-group { margin-bottom: var(--sg-space-xl); }
.sg-status { display: inline-flex; align-items: center; padding: var(--sg-space-xxs) var(--sg-space-s); border-radius: var(--sg-radius-pill); font-size: var(--sg-xs); font-weight: var(--sg-text-weight); color: var(--sg-text); background: color-mix(in srgb, var(--sg-muted) 14%, transparent); vertical-align: middle; }
.sg-status--beta { background: color-mix(in srgb, var(--sg-accent) 16%, transparent); }
.sg-status--deprecated { background: color-mix(in srgb, var(--sg-warning) 24%, transparent); }
.sg-status--stable { background: color-mix(in srgb, var(--sg-positive) 20%, transparent); }
.sg-status--code-only { background: color-mix(in srgb, var(--sg-text-2) 16%, transparent); }
.sg-status--connected { background: color-mix(in srgb, var(--sg-accent) 16%, transparent); gap: var(--sg-space-xxs); }
.sg-status-mark { width: var(--sg-mark); height: var(--sg-mark); flex: none; }   /* the project's Code Connect pairs it with Figma */
.pg-status { display: flex; align-items: center; gap: var(--sg-space-s); flex-wrap: wrap; margin: var(--sg-space-xs) 0 0; font-size: var(--sg-s); color: var(--sg-text-2); }
/* What a component's page says first, and its overview card under its name: its version, when it last changed, how it
   stands with Figma and with accessibility, and where it is used. A fact that needs work is marked, never coloured alone. */
.pg-facts { display: flex; flex-wrap: wrap; gap: var(--sg-space-xs) var(--sg-space-l); margin: var(--sg-space-s) 0 0; font-size: var(--sg-s); color: var(--sg-text-2); }
.pg-facts > div { display: flex; gap: var(--sg-space-xs); align-items: baseline; }
.pg-facts dt { color: var(--sg-muted); }
.pg-facts dd { margin: 0; color: var(--sg-text); }
.sg-fact-todo { font-weight: var(--sg-heading-weight); }
.sg-fact-todo::before { content: "! "; }
.sg-overview-group > h3 { position: sticky; top: calc(var(--sg-sticky-top, 0px) + var(--pg-areas-h, 0px)); z-index: 14; background: var(--sg-bg); padding: 0 0 var(--sg-space-s); }   /* each group's name stays in view under the title while its cards scroll */
.sg-overview-group > h3 { font-size: var(--sg-l); font-weight: var(--sg-heading-weight); color: var(--sg-text); margin: 0 0 calc(var(--sg-space-l) - var(--sg-space-s)); }   /* 16px to its cards, its own 8px padding counted */
/* Each card's thumbnail: a few of the real tokens, or the component itself, drawn small on the system's own surface. */
.sg-thumb { position: relative; height: 180px; overflow: hidden; contain: layout paint; display: flex; align-items: center; justify-content: center; gap: var(--sg-space-s); background: var(--sg-a1); border-radius: var(--sg-radius); pointer-events: none; }
.sg-thumb-dot { width: 32px; height: 32px; border: var(--sg-line); flex-shrink: 0; }   /* square, as each colour is on its page */
.sg-thumb-bar { height: var(--sg-space-s); background: var(--sg-text-2); border-radius: var(--sg-radius-s); }
.sg-thumb-col { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sg-space-xs); }
.sg-thumb-box { width: 36px; height: 36px; border: var(--sg-line); background: var(--sg-bg); flex-shrink: 0; }
.sg-thumb-live { transform-origin: center; flex-shrink: 0; align-self: center; margin: 0; }   /* centred in its card, whatever its own rule says of where it sits in a row */
#sg-search { margin-left: auto; width: 280px; flex: none; }   /* at the bar's right end */
#sg-search > input { font: inherit; width: 100%; }
#sg-search { position: relative; }   /* the search mark inside the field, before its words */
.sg-search-mark { position: absolute; left: var(--sg-space-m); top: 50%; transform: translateY(-50%); width: var(--sg-mark); height: var(--sg-mark); color: var(--sg-muted); pointer-events: none; }
#sg-search input.sg-input, #sg-search input { padding-inline-start: calc(var(--sg-space-m) * 2 + var(--sg-mark)); padding-inline-end: var(--sg-control-h); }
#sg-search input::-webkit-search-cancel-button, #sg-search input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }   /* the page's own clear button instead */
.sg-search-clear { position: absolute; right: var(--sg-space-xs); top: 50%; transform: translateY(-50%); box-sizing: border-box; width: calc(var(--sg-control-h) - var(--sg-space-s)); height: calc(var(--sg-control-h) - var(--sg-space-s)); min-height: 0; padding: 0; }   /* a button of the page's, 32px square in the 40px field */
.sg-search-clear[hidden] { display: none; }
.sg-search-none { font-size: var(--sg-s); color: var(--sg-muted); padding: var(--sg-space-xs) var(--sg-space-l); }
.sg-results { padding-bottom: 0; }
/* The search's flyout: under the field, over the page, what to look in, then what matches. */
#sg-search { position: relative; }
.sg-search-flyout { position: absolute; top: calc(100% + var(--sg-space-xs)); right: 0; z-index: 30; width: min(480px, calc(100vw - 2 * var(--sg-space-l))); max-height: 60vh; overflow-y: auto; display: flex; flex-direction: column; gap: var(--sg-space-s); padding: var(--sg-space-s); background: var(--sg-bg); border: var(--sg-line); border-radius: var(--sg-radius); }
.sg-search-flyout[hidden] { display: none; }
.sg-searching .sg-main *:not(#sg-search *) { animation-play-state: paused !important; }
.sg-searching .sg-main > *:not(.sg-controlbar) { pointer-events: none; }   /* the page under the search holds still and does not react */
.sg-search-flyout > .sg-chips { position: sticky; top: calc(-1 * var(--sg-space-s)); z-index: 1; margin: calc(-1 * var(--sg-space-s)) calc(-1 * var(--sg-space-s)) 0; padding: var(--sg-space-s); background: var(--sg-bg); }   /* what to search in stays in view as the results scroll */
.sg-search-flyout > .sg-chips.sg-sticky-edge::after { left: 0; right: 0; }
.sg-search-flyout > .sg-chips { flex: none; display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .sg-search-flyout > .sg-chips > * { flex: none; } .sg-search-flyout > .sg-chips::-webkit-scrollbar { display: none; }   /* one row always; on a narrow screen it scrolls sideways */   /* its line the flyout's whole width */
.sg-search-flyout .sg-results { margin: 0 calc(-1 * var(--sg-space-s)); }
.sg-results > a { position: relative; }
.sg-results > a + a { margin-top: var(--sg-space-l); }
.sg-results > a + a::before { content: ''; position: absolute; left: var(--sg-space-l); right: var(--sg-space-l); top: calc(var(--sg-space-l) / -2 - var(--sg-line-width, 1px) / 2); border-top: var(--sg-line); pointer-events: none; }   /* a result, a line, a result: the line apart from each, so each keeps its rounded highlight as the other lists do */
.sg-result { display: flex; flex-direction: column; min-width: 0; }
.sg-result > span:first-child { overflow-wrap: anywhere; }
.sg-result-kind { font-size: var(--sg-xs); color: var(--sg-muted); }
.sg-found { outline: var(--sg-line); outline-color: var(--sg-accent); outline-offset: var(--sg-space-xxs); }
/* A card: its picture on the stage above, its name below on the table heads' background, a line between them. */
.sg-card.sg-card { padding: 0; gap: 0; overflow: hidden; }
.sg-card > .sg-thumb, .sg-card > .pg-shot { border-radius: 0; border: 0; }   /* the card rounds the picture's top; its bottom stays square */
.sg-card > h3:not(:last-child) { padding-bottom: var(--sg-space-xxs); }
.sg-card > h3 + p { margin: 0; padding: 0 var(--sg-space-l) calc(var(--sg-space-m) + var(--sg-space-s)); background: var(--sg-tint); }   /* the line under the name, aligned with it, on its background */
.sg-card > :last-child:not(.sg-thumb):not(.pg-shot) { flex-grow: 1; }   /* that background down to the card's edge */
.sg-card > h3 { font-size: var(--sg-l); font-weight: var(--sg-heading-weight); color: var(--sg-text); margin: 0; padding: calc(var(--sg-space-m) + var(--sg-space-s)) var(--sg-space-l); background: var(--sg-tint); border-top: var(--sg-line); overflow-wrap: anywhere; }   /* a long name wraps, never spills, with wider text spacing too (WCAG 1.4.12) */
.sg-screens { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: calc(var(--sg-space-l) + var(--sg-space-s)); }
.sg-screen { border: var(--sg-line); border-radius: var(--sg-radius); overflow: hidden; background: var(--sg-surface); box-shadow: var(--sg-shadow); }
.sg-screen img { display: block; width: 100%; height: auto; }
.sg-screen figcaption { padding: var(--sg-space-s) var(--sg-space-m); font-size: var(--sg-s); font-weight: var(--sg-text-weight); color: var(--sg-muted); border-top: var(--sg-line); }
/* Templates: each page frame, its Figma picture beside the components it is made of, in Figma's order. */
.sg-templates { display: grid; gap: calc(var(--sg-space-xl) + var(--sg-space-s)); }
.sg-template > h3 { margin: 0; font-size: var(--sg-l); font-weight: var(--sg-heading-weight); color: var(--sg-text); }
.sg-template-meta { font-size: var(--sg-s); color: var(--sg-muted); margin: var(--sg-space-xxs) 0 0; }
.sg-template-body { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: calc(var(--sg-space-l) + var(--sg-space-s)); align-items: start; margin-top: var(--sg-space-m); }
.sg-template-body.sg-template-body--parts { grid-template-columns: minmax(0, 1fr); }   /* no picture: the list alone */
.sg-template-body > figure { margin: 0; }   /* the frame fills its column */
@media (max-width: 900px) { .sg-template-body { grid-template-columns: minmax(0, 1fr); } }
.sg-template-parts { list-style: none; margin: 0; padding: 0; border: var(--sg-line); border-radius: var(--sg-radius); background: var(--sg-surface); }
.sg-template-parts > li { display: flex; align-items: center; justify-content: space-between; gap: var(--sg-space-s); padding: var(--sg-space-s) var(--sg-space-m); font-size: var(--sg-s); color: var(--sg-text); }
.sg-template-parts > li + li { border-top: var(--sg-line); }
.sg-template-note { font-size: var(--sg-s); color: var(--sg-muted); margin: var(--sg-space-s) 0 0; }

/* ── Foundations ─────────────────────────────────────────────────────────── */
/* Every box on the page is drawn alike: the system card's border and corners, no fill of its own. */
.sg-demo { background: transparent; border: var(--sg-line); border-radius: var(--sg-radius); padding: var(--sg-space-xl) var(--sg-space-l); display: flex; flex-wrap: wrap; gap: var(--sg-space-m); align-items: flex-start; }
.sg-demo.sg-demo--col { flex-direction: column; align-items: stretch; gap: var(--sg-space-s); }
/* Six colours a row, each as wide as the room allows, so its Figma name and variable have room to read. */
.color-chip-value { font-size: var(--sg-xs); color: var(--sg-muted); word-break: normal; overflow-wrap: anywhere; }   /* a long variable breaks after a hyphen, never inside a word when it fits */
/* Every link in the page's words and tables looks the same as a token's in the Playground: the colour around it,
   underlined, whatever the system's reset does to links (a { text-decoration: none }). A card, a tab or the menu is not one. */
.sg-uses-link, :is(.sg-todo, .sg-health, .pg-doc, .pg-par, .sg-uses, .sg-pending) :is(td, th, li, dd, dt) > a[href]:not(.sg-card) { color: inherit; text-decoration: underline; cursor: pointer; }
/* A token's name opens a panel in place: underlined like a link, in the text around it, no box of its own. */
.sg-token-link { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; text-align: inherit; }
.sg-token-pop { position: absolute; z-index: 60; background: var(--sg-bg); border: var(--sg-line); border-radius: var(--sg-radius); box-shadow: var(--sg-shadow); padding: var(--sg-space-m); font-size: var(--sg-m); color: var(--sg-text); }
.sg-token-pop[hidden] { display: none; }
.sg-token-pop:focus { outline: none; }   /* the panel takes the focus to be read from its start; its controls show theirs */
.sg-token-pop .pg-updated { margin: var(--sg-space-s) 0; }
.sg-token-pop .pg-updated > div { grid-template-columns: minmax(max-content, 30%) 1fr; }   /* the names as wide as their words, the values the rest */
.sg-token-pop-actions { display: flex; gap: var(--sg-space-s); }
.type-list { display: grid; grid-template-columns: 1fr; gap: var(--sg-card-gap); }   /* tables one under another: twice a card's own spacing */
.type-specimen-preview { color: var(--sg-text); padding: var(--sg-space-m); border-bottom: var(--sg-line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* the sample on one row, under the style's name */
.type-specimen-preview > span { display: block; overflow: hidden; text-overflow: ellipsis; }   /* a sentence in small letters, capitals, figures and signs, then the capitals and figures alone, a row each */
.type-specimen-preview.sg-type-glyph-preview { font-size: var(--sg-title); line-height: normal; white-space: normal; }   /* the family's characters at the guide's title size, wrapping on a narrow page */
.sg-type-glyph-preview > span { overflow-wrap: anywhere; }
.type-specimen.pg-inspect td:last-child { word-break: normal; overflow-wrap: break-word; }   /* a name and its value wrap between words, never inside one */
.spacing-row { display: flex; align-items: center; gap: var(--sg-space-m); padding: var(--sg-space-xs) 0; border-bottom: var(--sg-line); }
.spacing-row:last-child { border-bottom: none; }
.spacing-bar-wrap { width: 120px; }
.spacing-bar { height: 8px; background: var(--sg-accent); border-radius: var(--sg-radius-s); min-width: 1px; }
.spacing-meta { font-size: var(--sg-xs); font-weight: var(--sg-heading-weight); color: var(--sg-muted); flex: 1; }
.spacing-name { color: var(--sg-text-2); font-size: var(--sg-xs); }
/* Colours, spacing and radii as lists: one card per group, its name as the head, the columns lined up from card to card. */
.sg-token-cards { display: grid; grid-template-columns: 1fr; gap: var(--sg-card-gap); }
.sg-token-cards + .sg-token-cards { margin-top: var(--sg-card-gap); }   /* one group of cards under another keeps the same gap as the cards in it */
.pg-inspect.sg-token-card table { table-layout: fixed; }   /* one rule for every table: the name a fixed share, the modes' columns sharing the rest equally, so the columns line up from one table to the next */
.pg-inspect.sg-token-card .sg-token-name-col { width: 34%; }
.pg-inspect.sg-token-card.sg-tk-table .sg-token-name-col { width: clamp(9rem, 20%, 16rem); }   /* a token's own name is the last part of its path, short: the modes' values get the room */
/* A table's head that sticks draws its own bottom line, solid and inside the cell, so the line moves with it: a
   collapsed table border stays in place when the cell sticks, and a see-through one shows the rows scrolling under it.
   The cell has no bottom border at all, so the line is its last pixel: a border left under it, even a transparent one,
   is a pixel the rows show through as they scroll. */
:is(.pg-inspect.sg-token-card thead th, .pg-inspect.sg-token-card :is(.sg-tk-group, .sg-tk-collhead) > th, .pg-par-table th) { --sg-th-line: inset 0 calc(-1 * var(--sg-line-width, 1px)) 0 var(--sg-line-solid); border-bottom-width: 0; box-shadow: var(--sg-th-line); }
/* Every table's head that stays in view (a page's table, a component's areas, History, a token card) sits over its rows:
   above anything a cell holds (a pill, a name, a date that sticks), on a solid fill, so no row's content paints over it as
   it scrolls under. One rule for all; only its top differs, by what sticks above the table. */
:is(.pg-par-table th, .pg-inspect.sg-token-card thead th) { position: sticky; z-index: 5; background: var(--sg-bg-2); }
.pg-inspect.sg-token-card thead th { top: calc(var(--sg-sticky-top, 0px) + var(--pg-areas-h, 0px) + var(--sg-stick-gap) + var(--pg-card-head-h, 0px)); }   /* Name and the modes stay in view under the card's head */
.pg-inspect.sg-token-card td, .pg-inspect.sg-token-card td:first-child, .pg-inspect.sg-token-card td:last-child { color: var(--sg-text); width: auto; word-break: normal; overflow-wrap: anywhere; }
.pg-inspect.sg-token-card .sg-token-sample { width: calc(var(--sg-space-xxl) * 3); }
/* Every token table alike: its columns named, as every table with columns is, and its rows one height whatever the
   preview (a swatch, a radius, a bar), the preview's 32px and the cell's room. */
:is(.pg-par-table, .pg-inspect.sg-token-card) th { text-align: left; font-size: var(--sg-s); font-weight: var(--sg-text-weight); color: var(--sg-muted); padding: var(--sg-space-s) var(--sg-space-m); border-bottom: var(--sg-line); white-space: nowrap; }   /* every table's head alike: its words, colour and room */
.pg-inspect.sg-token-card :is(th, td):first-child { padding-left: var(--sg-cell-x); } .pg-inspect.sg-token-card :is(th, td):last-child { padding-right: var(--sg-cell-x); }   /* as the tables above: in line with the card's head */
.pg-inspect.sg-token-card td { height: calc(var(--sg-space-xxl) + var(--sg-space-l)); }
.pg-inspect.sg-token-card td.sg-token-value { overflow-wrap: normal; }
/* Where the cards are narrow (a phone, or a tablet beside the menu), columns as wide as what they hold: the names wrap,
   the value keeps the room it needs and is never cut. Wider, the columns line up from one card to the next. */
.sg-token-cards { container-type: inline-size; }
@container (max-width: 560px) {
  .pg-inspect.sg-token-card :is(td, th) { padding-left: var(--sg-space-s); padding-right: var(--sg-space-s); }
  .sg-token-value > .sg-token-swatch { display: block; margin: 0 0 var(--sg-space-xxs); }   /* a colour above its value */
}
.sg-token-sample > span { display: block; }
.sg-token-swatch { box-sizing: border-box; width: var(--sg-space-xxl); height: var(--sg-space-xxl); border: var(--sg-line); border-radius: var(--sg-radius-s); }
.sg-token-value > .sg-token-swatch { display: inline-block; vertical-align: middle; width: calc(var(--sg-space-l) + var(--sg-space-xs)); height: calc(var(--sg-space-l) + var(--sg-space-xs)); margin-right: var(--sg-space-s); border-radius: var(--sg-radius-s); }   /* a mode's colour beside its value */
.sg-type-family-sample { font-size: var(--sg-title); line-height: normal; }
.sg-token-cards.sg-type-family { margin-bottom: var(--sg-card-gap); }   /* the family's table as far from the styles' as they are from each other */
.sg-token-sample > .spacing-bar { height: var(--sg-space-xxl); border-radius: 0; }   /* every sample as tall as the others, so a space reads as its width */
.sg-token-radius { width: var(--sg-space-xxl); height: var(--sg-space-xxl); background: var(--sg-tint); border: var(--sg-line); }
/* Motion: a track a dot crosses when played, an easing's curve drawn before it in the text colour. */
.pg-inspect.sg-token-card table:has(.sg-motion-sample) .sg-token-sample { width: 30%; }
.pg-inspect.sg-token-card table:has(.sg-motion-sample) :is(td, th):nth-child(2), .pg-inspect.sg-token-card table:has(.sg-motion-sample) :is(td, th):nth-child(3) { width: 25%; }
.sg-token-sample > .sg-motion-sample { display: flex; align-items: center; gap: var(--sg-space-s); }
.sg-motion-sample > .sg-motion-track { display: flex; align-items: center; flex: 1; min-width: 96px; height: var(--sg-space-xxl); background: var(--sg-tint); border-radius: var(--sg-radius-s); }
.sg-motion-track > .sg-motion-dot { display: block; flex: none; width: var(--sg-space-m); height: var(--sg-space-m); border-radius: var(--sg-radius-pill); background: var(--sg-accent); }
.sg-motion-curve { flex: none; width: var(--sg-space-xxl); height: var(--sg-space-xxl); fill: none; stroke: var(--sg-text); stroke-width: 2; }
.sg-motion-curve .sg-motion-axis { stroke: var(--sg-muted); stroke-width: 1; }
.sg-thumb .sg-motion-curve { width: 36px; height: 36px; }
/* The motion card: the curve the components move with most, drawn large, a dot travelling along it and resting at
   each end; still when the person asks for less motion. */
.sg-thumb-spline { position: relative; width: 200px; height: 120px; }
.sg-thumb-spline > svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; }
.sg-thumb-spline-axis { stroke: var(--sg-line-colour); stroke-width: 1; }
.sg-thumb-spline-curve { stroke: var(--sg-text-2); stroke-width: 2; stroke-linecap: round; }
.sg-thumb-spline-dot { position: absolute; top: 0; left: 0; width: var(--sg-space-m); height: var(--sg-space-m); border-radius: var(--sg-radius-pill); background: var(--sg-text); offset-anchor: center; offset-rotate: 0deg; animation: sg-thumb-spline 3.2s linear infinite; }
@keyframes sg-thumb-spline { 0%, 12% { offset-distance: 0%; } 50%, 62% { offset-distance: 100%; } 100% { offset-distance: 0%; } }
@media (prefers-reduced-motion: reduce) { .sg-thumb-spline-dot { animation: none; offset-distance: 100%; } }
.sg-motion-proto { margin-top: var(--sg-space-m); }
.sg-motion-system .sg-motion-sample { display: block; margin-bottom: var(--sg-space-xs); }
/* Narrow cards (a phone, a tablet beside the menu): a shorter track under its curve, the names given the room. */
@container (max-width: 560px) {
  .pg-inspect.sg-token-card table:has(.sg-motion-sample) .sg-token-sample { width: calc(var(--sg-space-xxl) * 2); }
  .sg-token-sample > .sg-motion-sample { flex-direction: column; align-items: stretch; }   /* the curve above its track */
  .sg-motion-sample > .sg-motion-track { flex: none; min-width: 48px; }
  .pg-inspect.sg-token-card table:has(.sg-motion-sample) :is(td, th):nth-child(2), .pg-inspect.sg-token-card table:has(.sg-motion-sample) :is(td, th):nth-child(3) { width: auto; }
}
.icon-chip { display: flex; flex-direction: column; align-items: center; gap: var(--sg-space-xs); padding: var(--sg-space-l) var(--sg-space-m); min-width: 0; text-align: center; }
.sg-icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(calc(var(--sg-space-xxl) * 6), 1fr)); }   /* equal cells: every icon lines up across and down */
.sg-icon-strokes { margin-bottom: var(--sg-space-m); }
.icon-chip svg { width: var(--sg-icon); height: var(--sg-icon); color: var(--sg-text); }

/* ── Component playground ────────────────────────────────────────────────── */
.pg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sg-space-m); flex-wrap: wrap; }
.pg-head > h2 { margin: 0; }
.pg-head-links { display: flex; flex-wrap: wrap; gap: calc(var(--sg-space-xs) + var(--sg-space-s)); margin-left: auto; }
.sg-link-icon { width: var(--sg-icon, 1em); height: var(--sg-icon, 1em); flex-shrink: 0; vertical-align: middle; margin-left: var(--sg-space-xs); }   /* after the words, the system's own icon size */
.pg-usage { display: flex; flex-wrap: wrap; gap: var(--sg-space-xs); align-items: center; }
.pg-usage-label { font-size: var(--sg-s); font-weight: var(--sg-text-weight); color: var(--sg-muted); }
.pg-usage-name { font-size: var(--sg-s); color: var(--sg-text-2); }
a.pg-usage-name { color: var(--sg-text); }
.pg-selector { font-size: var(--sg-s); color: var(--sg-muted); margin: var(--sg-space-xxs) 0 var(--sg-space-s); }
.pg-meta > .pg-selector { margin: 0; }   /* the class first on the line with its version */
/* A component's page in areas (playground, documentation, accessibility, parity), switched by the system's own
   segmented control; how a product imports it and what it is built with, above them. */
/* The areas stay at the top while the component's page scrolls, under the top bar when one shows. */
.pg-areas { margin: var(--sg-space-xs) 0 calc(var(--sg-space-l) - var(--sg-space-s)); position: sticky; top: calc(var(--sg-sticky-top, 0px) + var(--pg-head-h, 0px)); z-index: 15; background: var(--sg-bg); padding: var(--sg-space-s) 0; display: flex; align-items: center; gap: var(--sg-space-m); flex-wrap: wrap; }
/* Its name stays in view once its heading has scrolled away: on its own line at the top of the sticky bar, the areas
   below it, as the page lays them out. */
/* On a narrow screen the areas scroll sideways inside the bar, never wrap or squeeze: the system's segmented control
   keeps its own size, and the area chosen scrolls into view. */
.pg-areas-scroll { position: relative; flex: 1 1 auto; min-width: 0; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scrollbar-width: thin; }
.pg-areas-scroll > * { width: max-content; max-width: none; flex-wrap: nowrap; }
.pg-areas-scroll > .sg-tabs { min-width: 100%; }   /* the row of tabs across the whole width, longer when they scroll */
/* Every bar that stays at the top as a page scrolls (a component's areas, a page's title, a foundation's size switch)
   is one kind: the page's background, 8px above and below, and a line under the lowest one once it is stuck, faded in. */
.pg-areas, .sg-section:not(.pg-card-section) > h2, .sg-size-switch, .sg-todo-head { position: sticky; z-index: 15; background: var(--sg-bg); padding-top: var(--sg-space-s); padding-bottom: var(--sg-space-s); box-shadow: 0 1px 0 0 transparent; transition: box-shadow var(--sg-fast); }
.sg-sticky-edge.sg-sticky-band { box-shadow: 0 calc(var(--sg-stick-gap) - 2 * var(--sg-line-width, 1px)) 0 0 var(--sg-bg); }   /* over tables, the lowest stuck bar paints the page's gap under its line, where a table's head will stick, so nothing shows sliced right under it; over anything else (screens, a grid), the content scrolls right under the line, never cut short above it. It stops a line short of the gap: a stuck bar counts its height less its line (stuckH), so a head sticks a line higher than the bar's bottom plus the gap, and its top line, drawn just above it, would be under the band (the bar is above the table) */
/* A bar that sticks spans the content's whole width (into the page's side padding), so nothing shows beside it; once
   stuck, the lowest one has the page's line under it, as wide. */
:is(.sg-hero > h1, .pg-head, .pg-areas, .sg-section:not(.pg-card-section) > h2, .sg-size-switch, .sg-todo-head)::before { content: ''; position: absolute; top: 0; bottom: 0; left: calc(-1 * var(--sg-main-pad, 0px)); right: calc(-1 * var(--sg-main-pad, 0px)); background: var(--sg-bg); z-index: -1; pointer-events: none; }
/* stuck, the tabs carry the full-width line under them, as every other stuck bar does */
.sg-sticky-edge::after { content: ''; position: absolute; left: calc(-1 * var(--sg-main-pad, 0px)); right: calc(-1 * var(--sg-main-pad, 0px)); bottom: -1px; height: var(--sg-line-width, 1px); background: var(--sg-line-colour); pointer-events: none; }
/* A bar that sticks under a page's title (a foundation's or the Showroom's size switch, the Status page's chips) sits
   right under it, the title's own space between them, on every page alike. */
.sg-section > h2 ~ :is(.sg-size-switch, .sg-todo, * > .sg-size-switch) :is(.sg-size-switch, .sg-todo-head), .sg-section > h2 ~ .sg-size-switch { padding-top: 0; }
/* The lowest bar that sticks as much room under it as the title has over it (16px); its margin gives the 8px back, so
   nothing on the page moves. */
.pg-areas, .sg-size-switch, .sg-todo-head { padding-bottom: calc(var(--sg-space-s) * 2); }   /* right under a title, as a page's lead is: the title's own space is enough */
/* A foundation's title stays at the top as its page scrolls. */
.sg-section:not(.pg-card-section) > h2 { position: sticky; top: var(--sg-sticky-top, 0px); z-index: 15; background: var(--sg-bg); margin: calc(-2 * var(--sg-space-s)) 0 0; padding: calc(var(--sg-space-s) * 2) 0; }
/* On the Status page its counts and filter stay under the title, so the filter is always at hand; each card's head row
   stays under them. */
.sg-todo-head { top: calc(var(--sg-sticky-top, 0px) + var(--sg-title-h, 0px)); margin-bottom: 0; }
.pg-area .sg-todo-head { top: calc(var(--sg-sticky-top, 0px) + var(--pg-head-h, 0px) + var(--pg-tabs-h, 0px)); }   /* in a component's area, under its title row and its areas, as the page's sits under its title */
.sg-todo-head .pg-par-filter { margin-bottom: 0; }   /* its words 8px under the tag, as on every page; the bar's own padding above it */
.sg-todo-head .sg-todo-sum { margin-top: 0; }
.sg-todo-head .pg-par-sum.sg-todo-sum:not(:empty) { position: static; }   /* its counts move with the bar, never stuck again on their own */
/* The bar keeps one height, stuck or not (the tables' heads stick right under it): close under the title (half the
   gap it had), and a card gap under its chips, which is the gap to the first table too. */
.sg-todo-head { padding-top: 0; padding-bottom: var(--sg-card-gap); }
.sg-todo-head .sg-tab { padding-top: var(--sg-space-xs); }
.sg-health-box { margin-bottom: var(--sg-card-gap); }   /* the cards one card gap over the chips */
.sg-health-box .sg-health-tiles { margin-bottom: 0; }
.pg-import { display: flex; flex-wrap: wrap; align-items: center; gap: calc(var(--sg-space-s) * 2); margin: var(--sg-space-xs) 0; font-size: var(--sg-s); color: var(--sg-text-2); }
.pg-import code { font-family: inherit; color: var(--sg-text); }
.pg-parity-sum { font-size: var(--sg-m); color: var(--sg-text-2); margin: 0 0 var(--sg-space-m); }
.pg-parity td:last-child { word-break: normal; overflow-wrap: anywhere; }
/* Parity, one table: every prop, variable and value, Figma beside code, a status marked by a sign and its colour. */
.pg-par-filter { margin: 0 0 var(--sg-card-gap); }
.pg-par-sum:empty { display: none; }   /* no chips (nothing to count): no gap kept for them */   /* one gap for all: after a filter or the chips, as between cards and tables */
/* Parity's and Accessibility's tables in the Playground's card: the system card's border, corners and shadow, the head
   row as the card's head. overflow: clip keeps the corners and the head row sticky. */
.pg-par-card { border: var(--sg-line); border-radius: var(--sg-radius); box-shadow: var(--sg-shadow); overflow: clip; background: var(--sg-bg); }
.pg-par-card + .pg-par-card { margin-top: var(--sg-card-gap); }
.pg-par-card[hidden], .pg-par-table tr[hidden] { display: none; }
.pg-par-card .pg-par-table tr:last-child td, .pg-par-card .pg-par-table tbody tr:not([hidden]):not(:has(~ tr:not([hidden]))) td { border-bottom: none; }   /* the last row shown, when a chip hides the rows after it */
.pg-par-card .pg-par-table tr:first-child > th:first-child,
.pg-par-card .pg-par-table.sg-no-tasks tr:first-child > th.sg-todo-no-head + th { border-top-left-radius: calc(var(--sg-radius) - var(--sg-line-width, 1px)); }   /* stuck, the head keeps its card's top corners; with no task in the table its number column is hidden, and the corner is the next cell's */
.pg-par-card .pg-par-table tr:first-child > th:last-child { border-top-right-radius: calc(var(--sg-radius) - var(--sg-line-width, 1px)); }
.pg-par-table { width: 100%; border-collapse: separate; border-spacing: 0; }
:is(.pg-par-table, .pg-inspect table) { font-size: var(--sg-m); }   /* every table's text size, set here only (its head a step smaller) */
/* Its head stays in view under the component's areas as the rows scroll by (the line under it moves with it). */
.sg-no-tasks .sg-todo-no, .sg-no-tasks .sg-todo-no-head { display: none; }
/* Every column wide enough that a short value keeps to one or two lines; the long ones take the rest. */
@media (min-width: 721px) { .pg-par-table th, .pg-par-table td { min-width: calc(var(--sg-space-xxl) * 3.5); } .pg-par-table .sg-todo-no, .pg-par-table .sg-todo-no-head { min-width: 0; } }
.pg-par-table td { padding: var(--sg-space-s) var(--sg-space-m); border-bottom: var(--sg-line); vertical-align: middle; color: var(--sg-text); overflow-wrap: anywhere; line-height: var(--sg-lh-read); }   /* body text with room to read */
/* Every table on the page: rows of one height at least, taller only for what they hold, their content centred in it. */
.pg-par-table td, .pg-inspect td { height: var(--sg-row-h); vertical-align: middle; }
.pg-par-table th { vertical-align: middle; }   /* a table's own head as tall as the card's head above it, the shorter of the two */
.pg-par-table :is(th, td):first-child { padding-left: var(--sg-cell-x); } .pg-par-table :is(th, td):last-child { padding-right: var(--sg-cell-x); }   /* its content starts and ends with the card's head and the chips above it */
.pg-par-table td > code { display: block; }
.pg-par-table .pg-par-val { display: block; color: var(--sg-muted); font-size: var(--sg-s); }
.pg-par-table .sg-cx-share { display: inline; font-variant-numeric: tabular-nums; }   /* how many follow a construction rule and the share of them, on one line */
.pg-par-table .pg-par-none { color: var(--sg-muted); }
.pg-par-table .pg-par-type, .pg-par-table .pg-par-at { white-space: nowrap; color: var(--sg-text-2); }
/* Accessibility: under a criterion, each finding or duty on its own line, its source below it in small. */
.pg-a11y-item + .pg-a11y-item { margin-top: var(--sg-space-xs); }
.pg-a11y-from { display: block; color: var(--sg-muted); font-size: var(--sg-s); }
.pg-a11y-quiet { color: var(--sg-text-2); }
.pg-a11y .pg-par-type { white-space: normal; min-width: 12em; }
.pg-par-status { display: inline-flex; align-items: center; gap: calc(var(--sg-space-s) - var(--sg-space-xxs)); white-space: nowrap; font-weight: var(--sg-heading-weight); color: var(--sg-text); }   /* the dot 6px from its words */
/* A status is a small dot and its words: colour only on the dot, and only where something is left (red to fix, amber
   to check, green done); what is done or not needed steps back in the quieter text colour. */
.pg-par-sign { flex: none; width: var(--sg-dot); height: var(--sg-dot); border-radius: var(--sg-radius-pill); font-size: 0; color: transparent; overflow: hidden; background: var(--sg-muted); }
.pg-par--differs .pg-par-sign { background: var(--sg-negative); }
.pg-par--figma .pg-par-sign, .pg-par--code .pg-par-sign { background: var(--sg-warning-ink); }
.pg-par--match .pg-par-sign { background: var(--sg-positive); }   /* done: a green dot */
.pg-par--match, .pg-par--none, .pg-par--paired { color: var(--sg-text-2); }
/* Above a table, its statuses as chips that show only those rows: a dot, the words and the count badge. */
.sg-mx-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--sg-text); }   /* a long name cut short, whole on hover */
.sg-matrix th.sg-mx-open-cell, .sg-matrix td.sg-mx-open-cell { width: calc(var(--sg-space-xxl) + var(--sg-space-s)); text-align: right; }
.sg-matrix :is(td, th).sg-mx-open-cell { width: calc(var(--sg-icon-btn) + var(--sg-cell-x)); padding-left: 0; padding-right: var(--sg-cell-x); } .sg-matrix td.sg-mx-open-cell .sg-mx-go { justify-content: flex-end; }   /* its arrow as far from the right edge as the first column's words are from the left */
.sg-mx-go { display: inline-flex; align-items: center; justify-content: center; flex: none; width: var(--sg-icon-btn); height: var(--sg-icon-btn); margin: 0; padding: 0; border: 0; border-radius: var(--sg-control-radius); background: transparent; color: var(--sg-text-2); cursor: pointer; vertical-align: middle; }   /* an arrow that opens the component: the page's icon button */
.sg-mx-go:hover { background: var(--sg-hover-fill); color: var(--sg-text); }
.sg-matrix .sg-mx-row.is-link { cursor: pointer; }   /* a row opens the component's page: its own hover and press */
.sg-matrix .sg-mx-row.is-link:hover > td { background: var(--sg-a2); }
.sg-matrix .sg-mx-row.is-link:active > td { background: var(--sg-a3); }
.sg-matrix .sg-mx-row.is-link:hover:not(:has(.sg-link-pill:hover, .sg-tip:hover)) .sg-mx-go { background: var(--sg-hover-fill); color: var(--sg-text); }   /* the row and its arrow open the same page: hovering one lights both, never while an area's pill (another place) is the one hovered */
.sg-matrix .sg-mx-row .sg-link-pill { cursor: pointer; }   /* only an area's pill opens that area: the rest of its cell is the row's */
.sg-mx-go:focus-visible { outline: 2px solid var(--sg-accent); outline-offset: var(--sg-focus-offset); }
.sg-mx-go > svg { width: var(--sg-mark); height: var(--sg-mark); }
/* The component's page in a panel over the Status page. */
.sg-comp-panel { position: fixed; inset: 0; z-index: 60; --sg-bg: color-mix(in srgb, var(--sg-bg-page), var(--sg-surface) 60%); }   /* the app's own background, as behind a component's page */
[data-sg-scheme="dark"] .sg-comp-panel { --sg-bg: var(--sg-bg-page); }
.sg-comp-panel[hidden] { display: none; }
.sg-comp-panel.is-parked { visibility: hidden; pointer-events: none; }   /* closed, its page kept loaded (and laid out at its size) for the next component */
.sg-comp-panel-scrim { position: absolute; inset: 0; background: var(--sg-a5); opacity: 0; transition: opacity var(--sg-fast); }   /* an overlay that dims the page behind, as the menu's does */
[data-sg-scheme="dark"] .sg-comp-panel-scrim { background: color-mix(in srgb, var(--sg-bg-page) 75%, transparent); }   /* dark: darker still, never a grey veil */
.sg-comp-panel.is-open .sg-comp-panel-scrim { opacity: 1; }
.sg-comp-panel-box { position: absolute; top: 0; right: 0; bottom: 0; display: flex; width: var(--sg-panel-w); background: var(--sg-bg); border-left: var(--sg-line); box-shadow: var(--sg-shadow-lift); transform: translateX(100%); transition: transform var(--sg-fast); }   /* full height, from the right */
.sg-comp-panel.is-open .sg-comp-panel-box { transform: none; }
@media (min-width: 721px) { #sg-comp-panel .sg-comp-panel-box { width: var(--sg-panel-page-w); } }   /* a phone keeps the whole window */
.sg-comp-panel-box::before { content: ''; position: absolute; top: 0; bottom: 0; left: calc(-1 * var(--sg-line-width, 1px)); z-index: 19; border-left: var(--sg-line); pointer-events: none; }   /* the panel's edge drawn again over what it holds: a panel's own content (its stuck head) painted over the top of its border and faded it in, which read as a rounded corner, where a component's page, in a frame, never does (the owner's, 15 November 2026) */
.sg-comp-panel-box:focus { outline: none; }
.sg-comp-panel-box .sg-row-detail::-webkit-scrollbar, .sg-embed::-webkit-scrollbar { width: 12px; } .sg-comp-panel-box .sg-row-detail::-webkit-scrollbar-track, .sg-embed::-webkit-scrollbar-track { background: transparent; } .sg-comp-panel-box .sg-row-detail::-webkit-scrollbar-thumb, .sg-embed::-webkit-scrollbar-thumb { background: var(--sg-line-solid, var(--sg-muted)); border: 3px solid var(--sg-bg); border-radius: 0; } .sg-comp-panel-box .sg-row-detail::-webkit-scrollbar-corner { background: transparent; }   /* a side panel's scroll bar square, never the browser's rounded thumb, which drew a rounded corner at the panel's top right (the owner's, 15 November 2026) */
.sg-comp-panel-frame { flex: 1; width: 100%; height: 100%; border: 0; background: var(--sg-bg); visibility: hidden; }
.sg-comp-panel-frame.is-ready { visibility: visible; }
.sg-btn.sg-comp-panel-close { position: absolute; top: var(--sg-space-xxl); left: 0; z-index: 20; transform: translateX(-50%); justify-content: center; width: var(--sg-control-h); height: var(--sg-control-h); padding: 0; }   /* the page's own button, square, solid, centred on the panel's edge */
.sg-comp-panel-close > svg { width: var(--sg-mark); height: var(--sg-mark); }
@media (max-width: 720px) { .sg-comp-panel-box { width: 100vw; } .sg-comp-panel-close { left: auto; right: var(--sg-space-s); } }
html { scrollbar-gutter: stable; }   /* the scroll bar's room kept, so nothing moves as pages grow and shrink */
/* While a panel is open the page stops scrolling and gives its scroll bar's room back, so the panel runs to the window's
   edge with no empty track beside it (the owner's, 14 November 2026). The page keeps its place: the room the bar took
   (--sg-gutter, measured as the page loads) is added to its right instead. */
.sg-panel-open { overflow: hidden; scrollbar-gutter: auto; }
.sg-panel-open body { padding-right: var(--sg-gutter, 0); }
.sg-embed .sg-sidebar, .sg-embed .sg-topbar, .sg-embed .sg-controlbar, .sg-embed .sg-scrim, .sg-embed .sg-nav-close { display: none; }   /* opened in the panel: the page alone */
.sg-chips { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sg-space-s); }
.sg-chip-menu > .sg-chip-label { color: var(--sg-muted); }
.sg-chip-n:empty { display: none; }
.sg-chip-menu > .sg-chip-n { margin-left: calc(-1 * var(--sg-space-xxs)); }   /* the chosen state's count 6px from its word */   /* its column's name, quieter than what is chosen (All, or a state), as the Brand selector's */
.sg-dd-option[hidden] { display: none; }
.sg-mx-clear { font: inherit; font-size: var(--sg-s); color: var(--sg-text-2); background: none; border: 0; padding: 0 var(--sg-space-s); cursor: pointer; text-decoration: underline; text-underline-offset: var(--sg-underline-offset); }
.sg-mx-clear[hidden] { display: none; }
.sg-mx-clear:focus-visible { outline: 2px solid var(--sg-accent); outline-offset: var(--sg-focus-offset); }
.sg-chip-dd { position: relative; display: inline-flex; }
.sg-chip-menu > .sg-dd-mark { margin-left: calc(-1 * var(--sg-space-xxs)); }
.sg-chip-dd > .sg-select-list { right: auto; min-width: 100%; width: max-content; }
.sg-chip-dd .sg-dd-option { display: flex; align-items: center; justify-content: space-between; gap: var(--sg-space-m); }
.sg-chip { font: inherit; font-size: var(--sg-m); font-weight: var(--sg-text-weight); display: inline-flex; align-items: center; gap: var(--sg-space-s); min-height: calc(var(--sg-control-h) - var(--sg-space-xs)); margin: 0; padding: 0 calc(var(--sg-space-m) + var(--sg-space-xs) + var(--sg-space-xxs)); border: 0; border-radius: var(--sg-control-radius); background: var(--sg-a1); color: var(--sg-text-2); cursor: pointer; transition: background-color var(--sg-fast), color var(--sg-fast); }   /* a chip: a soft fill, no border */
[data-sg-scheme="dark"] .sg-chip:not([aria-pressed="true"]) { background: var(--sg-a2); }   /* unselected, in dark mode: a step lighter so it reads on the page */
.sg-chip > .sg-count, .sg-chip > .sg-chip-n > .sg-count, [data-sg-scheme="dark"] .sg-chip > .sg-count { margin-left: 0; background: var(--sg-bg); }   /* a chip's count on the page's own background */
/* A chip has the same room on both sides; its count sits 8px inside its top and bottom (20px in a 36px chip), its
   corners the chip's less that space, so the two curves run side by side. */
.sg-chip > .sg-count, .sg-chip > .sg-chip-n > .sg-count { height: calc(var(--sg-space-l) + var(--sg-space-xs)); min-width: calc(var(--sg-space-l) + var(--sg-space-xs)); border-radius: var(--sg-count-radius); }
.sg-chip[aria-pressed="true"] > .sg-count, .sg-chip[aria-pressed="true"] > .sg-chip-n > .sg-count, [data-sg-scheme="dark"] .sg-chip[aria-pressed="true"] > .sg-count, [data-sg-scheme="dark"] .sg-chip[aria-pressed="true"] > .sg-chip-n > .sg-count { background: var(--sg-text); color: var(--sg-bg); }   /* the chosen chip's count turned round: the text's colour behind the page's */
.sg-chip:not([aria-pressed="true"]):hover, [data-sg-scheme="dark"] .sg-chip:not([aria-pressed="true"]):hover { background: var(--sg-a4); color: var(--sg-text); }   /* under the pointer: a clear step fuller, in light and dark alike */
.sg-chip[aria-pressed="true"], .sg-chip[aria-pressed="true"]:hover { background: var(--sg-bg); color: var(--sg-text); box-shadow: inset 0 0 0 var(--sg-line-width, 1px) var(--sg-text); }   /* a chosen chip, a filter or not: the page's own background, outlined */
.sg-chip:focus-visible { outline: 2px solid var(--sg-accent); outline-offset: var(--sg-focus-offset); }
.sg-chip.sg-chip--only, .sg-chip.sg-chip--only:hover { cursor: default; background: var(--sg-bg); color: var(--sg-text); box-shadow: inset 0 0 0 var(--sg-line-width, 1px) var(--sg-text); }   /* the one status there is: shown chosen, as it is all there is, and never unchosen */
.sg-chip.sg-chip--only > .sg-count { background: var(--sg-text); color: var(--sg-bg); }
.sg-issues tr.sg-st-off, .sg-issues tr.sg-who-off, .sg-issues tr.sg-lf-off, .pg-par-card.sg-st-empty { display: none; }
.pg-par-sum { display: flex; flex-wrap: wrap; gap: var(--sg-space-l); margin: 0 0 var(--sg-card-gap); font-size: var(--sg-m); color: var(--sg-text-2); }
/* Wide enough, the table never scrolls on its own (a box that scrolls would hold its head back); on a phone it does. */
@media (max-width: 720px) {
  .pg-par-filter { max-width: 100%; overflow-x: auto; padding: 2px; }   /* the filter scrolls sideways, as the areas do */
  /* On a phone each row of a table of several columns is a block of its own: its first cell as its title, every other
     value under the name of its column (data-label, from the head row, kept for screen readers), nothing squeezed or
     cut, a word broken only where it has to be. */
  .pg-par-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .pg-par-table, .pg-par-table tbody, .pg-par-table tr, .pg-par-table td { display: block; width: auto; }
  .pg-par-table tr { padding: var(--sg-space-m); border-bottom: var(--sg-line); min-height: var(--sg-row-h); }
  .pg-par-table td { height: auto; }
  .pg-par-card .pg-par-table tr:last-child, .pg-par-card .pg-par-table tbody tr:not([hidden]):not(:has(~ tr:not([hidden]))) { border-bottom: none; }
  .pg-par-table td, .pg-par-table .pg-par-type, .pg-par-table .pg-par-at { border-bottom: none; padding: var(--sg-space-xs) 0; white-space: normal; overflow-wrap: break-word; min-width: 0; }
  .pg-par-table td:first-child { font-weight: var(--sg-heading-weight); color: var(--sg-text); padding-bottom: var(--sg-space-xs); }
  .pg-par-table td:not(:first-child)[data-label]::before { content: attr(data-label); display: block; font-size: var(--sg-s); font-weight: var(--sg-text-weight); color: var(--sg-muted); }
  /* The column that only holds the arrow opening a row keeps, from the table above, a width measured for a column
     of its own. Stacked, that width leaves its content nothing and the card's side padding fills it, so the name
     over it wraps a letter a line. It gives the width up and is a block like every other cell here, its arrow
     under its name where every other value sits. */
  .sg-matrix :is(td, th).sg-mx-open-cell, .sg-issues :is(td, th).sg-row-go { width: auto; text-align: left; }
  .sg-matrix td.sg-mx-open-cell .sg-mx-go { justify-content: flex-start; }
  .pg-par-table td:empty { display: none; }
  .pg-a11y .pg-par-type { min-width: 0; }
}
/* Where it is used: each product's own page pictured, the component marked on it. */
.pg-usedin { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.pg-shot { position: relative; overflow: hidden; border-radius: var(--sg-radius); border: var(--sg-line); background: var(--sg-tint); }
.pg-shot img { display: block; width: 100%; height: auto; }
.pg-mark { position: absolute; border: 2px solid var(--sg-accent); border-radius: var(--sg-radius-s); pointer-events: none; }
/* The code a product writes for what the playground shows, with the system's button to copy it. */
.pg-code-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: var(--sg-card-gap); align-items: start; }
.pg-code { border: var(--sg-line); border-radius: var(--sg-radius); overflow: clip; min-width: 0; display: flex; flex-direction: column; box-shadow: var(--sg-shadow); }
.pg-code-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sg-space-s); padding: var(--sg-space-xs) var(--sg-space-m); border-bottom: var(--sg-line); background: var(--sg-bg-2); min-height: var(--sg-control-h); box-sizing: border-box; }
.pg-code-title { font-size: var(--sg-s); font-weight: var(--sg-text-weight); color: var(--sg-muted); }
.pg-code pre { flex: 1; min-height: 0; margin: 0; padding: var(--sg-space-m); overflow: auto; font-size: var(--sg-s); line-height: var(--sg-lh); color: var(--sg-text); background: var(--sg-bg); }
.sg-main .pg-code pre, .sg-main .pg-code code { font-size: var(--sg-m); font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre; font-variant-ligatures: none; }
/* Its words coloured as code is read: the tag, each attribute, each value and each binding in a role of the page's
   own, so they follow its modes. */
.pg-code .tk-tag { color: var(--sg-accent); }
.pg-code .tk-attr { color: color-mix(in srgb, var(--sg-accent) 55%, var(--sg-text)); }
.pg-code .tk-str { color: color-mix(in srgb, var(--sg-positive) 70%, var(--sg-text)); }
.pg-code .tk-bind { color: color-mix(in srgb, var(--sg-warning) 75%, var(--sg-text)); }
.pg-code .tk-punct { color: var(--sg-muted); }
/* Words for a screen reader only (a mark's meaning, a copy confirmed). */
/* A title that is one long word (segmentedControl) breaks where it must on a narrow screen, never widens the page. */
.sg-hero > h1, .sg-section > h2, .pg-head > h2, .sg-section > h3, .sg-overview-group > h3 { overflow-wrap: anywhere; min-width: 0; }
/* Read out, never seen; at the corner of the box that holds it, so text hidden in a bar that scrolls sideways never
   widens the page (WCAG 1.4.10). */
.sg-hidden-text { position: absolute; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pg-req { color: var(--sg-text); font-weight: var(--sg-heading-weight); }
.pg-legend { font-size: var(--sg-s); color: var(--sg-muted); padding: var(--sg-space-xs) var(--sg-space-m); border-top: var(--sg-line); }
.pg-wcag { display: block; font-size: var(--sg-s); color: var(--sg-muted); }
.pg-note { display: flex; gap: var(--sg-space-s); font-size: var(--sg-m); line-height: var(--sg-lh); color: var(--sg-text-2); background: var(--sg-tint); border: var(--sg-line); border-radius: var(--sg-radius); padding: var(--sg-space-s) var(--sg-space-m); margin: 0 0 var(--sg-space-s); }
.pg-note b { color: var(--sg-text); font-weight: var(--sg-heading-weight); white-space: nowrap; }
.pg-diff-list { margin: 0; padding-left: var(--sg-space-l); display: flex; flex-direction: column; gap: var(--sg-space-xs); }
.pg-diff-list b { white-space: normal; }
.pg-todo { display: block; margin-top: var(--sg-space-xxs); color: var(--sg-text-2); }
.sg-todo { display: flex; flex-direction: column; gap: 0; }   /* the chips to the first card one card gap, the stuck bar's own 16px under them counted */
.sg-todo-head .pg-par-sum { margin-bottom: 0; }
.sg-todo-kind { display: flex; flex-direction: column; gap: var(--sg-card-gap); }   /* one kind at a time, its cards one card gap apart */
.sg-todo-kind > .pg-par-card + .pg-par-card { margin-top: 0; }
.sg-todo-kind[hidden] { display: none; }
/* One table for every issue, on the Status page and in a component's Parity and Accessibility areas: the same columns at
   the same widths everywhere, so they line up down the page and read the same in each place. */
.sg-issues { table-layout: fixed; }
/* Each column its share of the table by what it holds, never by where it stands, so a column a table leaves out (no
   task open, nothing to do in any row) takes its share with it and the others keep theirs. The column a table is read
   for (.sg-col-rest: what to do, what is written, where; else Figma and the code; else the criterion) has none and takes
   what the others leave. With nothing left over, every share grows by the same factor, so the table stays balanced. */
.sg-issues .sg-col-no { width: 7%; }
.sg-issues .sg-col-kind { width: 18%; }
.sg-issues--motion .sg-col-kind { width: 26%; }   /* what happens: when it plays, what moves and on which part */
.sg-issues :is(.sg-col-figma, .sg-col-code) { width: 20%; }
.sg-issues .sg-col-whoCell { width: 20%; }
.sg-issues .sg-col-source { width: 16%; }
.sg-issues .sg-col-status { width: 17%; }
.sg-issues .sg-col-updated { width: 12%; }
.sg-issues .sg-col-rest { width: auto; }
.sg-issues [data-empty-col] { display: none; }   /* a column with nothing in any row */
.sg-issues .sg-one-line { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* a status's word and one line under it, never more */
.sg-issues :is(th, td).sg-row-go { width: calc(var(--sg-icon-btn) + var(--sg-cell-x)); padding-left: 0; padding-right: var(--sg-cell-x); text-align: right; color: var(--sg-muted); }
.sg-issues td.sg-row-go svg { width: var(--sg-mark); height: var(--sg-mark); vertical-align: middle; }
.sg-issues tr.sg-row-open:hover td.sg-row-go { color: var(--sg-text); }
/* The Construction table: the rule widest, the rest even, its status last. */
.sg-cx-table { table-layout: fixed; width: 100%; min-width: 64rem; }   /* narrower, it scrolls: no word broken in two */
.sg-cx-table td { overflow-wrap: normal; word-break: normal; hyphens: none; }
.sg-cx-table col.sg-cx-rule { width: 32%; } .sg-cx-table col.sg-cx-col { width: 12%; } .sg-cx-table col.sg-cx-follow-col { width: 16%; } .sg-cx-table col.sg-cx-owner-col { width: 16%; }   /* Follow it holds a count, its share and the bar under them */
.sg-issues .sg-todo-who { display: block; font-weight: var(--sg-heading-weight); color: var(--sg-text); margin-bottom: var(--sg-space-xs); }   /* who acts, above what to do */
/* Who acts, in a column of its own where the table has one (Accessibility): its words stay on one line. */
.sg-issues td.sg-todo-whocell { white-space: nowrap; }
/* The Accessibility page's table: the criterion takes the room, who acts and the status keep theirs, so neither runs into the next. */
.sg-a11y-table { table-layout: fixed; } .sg-a11y-table col.sg-a11y-no { width: 7%; } .sg-a11y-table col.sg-a11y-comp { width: 19%; } .sg-a11y-table col.sg-a11y-sc { width: 21%; } .sg-a11y-table col.sg-a11y-level { width: 7%; } .sg-a11y-table col.sg-a11y-who { width: 16%; } .sg-a11y-table col.sg-a11y-st { width: 14%; } .sg-a11y-table col.sg-a11y-at { width: 11%; }
.sg-a11y-table td.sg-todo-whocell { white-space: normal; }
/* The few short things a person does to check a criterion, numbered, and the command that records it. */
.pg-a11y-steps { margin: var(--sg-space-xs) 0 0; padding-left: var(--sg-space-l); }
.pg-a11y-steps li { margin: 0 0 var(--sg-space-xxs); }
.pg-a11y-say { margin: var(--sg-space-s) 0 0; color: var(--sg-muted); }
/* The wordings a model listed for a person to look at first: a reading of the words, under what to do. */
.pg-a11y-listed, .pg-a11y-heard { margin: var(--sg-space-s) 0 0; color: var(--sg-muted); }
.pg-a11y-listed-list { margin: var(--sg-space-xxs) 0 0; padding-left: var(--sg-space-l); }
.pg-a11y-listed-list li { margin: 0 0 var(--sg-space-xxs); }
.pg-a11y-say code { word-break: break-word; }
.sg-issues td.sg-todo-whocell .sg-todo-who { margin-bottom: 0; }
/* A task that follows another person's: which step it is, so a row read on its own still says so. */
.sg-issues .sg-todo-step { display: inline-flex; align-items: center; padding: var(--sg-space-xs) var(--sg-space-s); border: var(--sg-line); border-radius: var(--sg-radius-s); font-size: var(--sg-s); font-weight: var(--sg-text-weight); color: var(--sg-muted); margin-right: var(--sg-space-xs); vertical-align: middle; white-space: nowrap; }   /* the box of a name (.sg-name) */
.sg-issues .pg-par-status + .pg-par-val { margin-top: var(--sg-space-xxs); }
.sg-issues td { overflow-wrap: break-word; }
.sg-issues .sg-todo-area { white-space: normal; }
.sg-issues .pg-at-date { display: block; color: var(--sg-muted); font-size: var(--sg-s); font-variant-numeric: tabular-nums; }   /* its own column: when it was last updated */   /* when it was last updated, under its status */
.sg-todo-head > :last-child { margin-bottom: 0; }   /* the filter, then the counts under it */
.pg-diff { border-color: color-mix(in srgb, var(--sg-warning) 40%, transparent); }
.pg-note:last-child { margin-bottom: var(--sg-space-m); }
.pg-header { display: contents; }   /* its lines are the page's own, so its title row can stick for the whole page */
.pg-header > * { margin-top: 0; margin-bottom: 0; }
.pg-header > * + * { margin-top: var(--sg-space-s); }   /* each line 8px from the next */
.pg-header > :last-child { margin-bottom: var(--sg-space-s); }
.pg-header > .pg-head { position: sticky; top: var(--sg-sticky-top, 0px); z-index: 16; background: var(--sg-bg); margin-top: calc(-1 * var(--sg-space-s)); padding: calc(var(--sg-space-s) * 2) 0; }   /* its name and links stay in view, a plain bar */
.pg-header > .pg-head + * { margin-top: 0; }
.pg-header > .sg-section-badge { align-self: flex-start; }   /* the tag as wide as its word, as on a foundation */
.pg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sg-space-s) var(--sg-space-xl); }
.pg-meta > * { margin: 0; }
.pg-meta > .pg-status { flex-wrap: nowrap; }   /* its tags first on the line of its class, version and last change */
.pg-stage { display: flex; flex-direction: column; gap: var(--sg-card-gap); container-type: inline-size; }
/* The stage never narrower than a phone screen and its margins: with less room the controls go below it, never beside a squeezed stage. */
.pg-preview-card { --sg-stage-min: 400px; display: grid; grid-template-columns: minmax(min(100%, var(--sg-stage-min)), 1fr) minmax(min(240px, 100%), 340px); gap: 0; align-items: stretch; border: var(--sg-line); border-radius: var(--sg-radius-l); padding: 0; overflow: clip; background: var(--sg-bg); box-shadow: var(--sg-shadow); }   /* one card: the stage fills its left side to the edges, the controls on its right */
.pg-preview-card > .pg-preview-col { border-right: var(--sg-line); }
/* The controls' width, dragged from the line between them and the stage (or the arrow keys on it): the same for every
   component, kept for the next visit, never narrower than the page's own width nor so wide the stage drops under its
   least. A double click puts it back. */
:root.sg-panel-sized .pg-preview-card { grid-template-columns: minmax(min(100%, var(--sg-stage-min)), 1fr) max(min(340px, 100%), min(var(--pg-panel-w), 100% - var(--sg-stage-min))); }
.pg-panel-grip { position: absolute; top: 0; bottom: 0; right: calc(var(--sg-space-s) * -1); width: var(--sg-space-l); z-index: 3; display: flex; align-items: center; justify-content: center; cursor: col-resize; touch-action: none; }
.pg-panel-grip::before { content: ''; width: var(--sg-space-xs); height: var(--sg-space-xxl); border-radius: var(--sg-radius-pill); background: var(--sg-a3); transition: background-color var(--sg-fast), height var(--sg-fast); }
.pg-panel-grip:hover::before, .pg-panel-grip.is-dragging::before { background: var(--sg-a5); height: calc(var(--sg-space-xxl) * 2); }
.pg-panel-grip:focus-visible { outline: none; }
.pg-panel-grip:focus-visible::before { background: var(--sg-accent); height: calc(var(--sg-space-xxl) * 2); }
:root.sg-panel-dragging, :root.sg-panel-dragging * { cursor: col-resize !important; user-select: none; }
.pg-preview { min-width: 0; min-height: 140px; overflow: auto; padding: var(--sg-space-xl); display: flex; align-items: safe center; align-content: safe center; justify-content: safe center; gap: var(--sg-space-m); flex-wrap: wrap; position: relative; isolation: isolate; }   /* a component wider than the stage scrolls inside it, never over the controls */
/* A transparency checkerboard over the system's own page surface: a transparent component shows it, an opaque one covers it. */
.pg-preview, .pg-frame, .pg-compare-stage {
  background-color: var(--sg-stage, var(--sg-bg));
  --sg-checker: var(--sg-a2);
  background-image: linear-gradient(45deg, var(--sg-checker) 25%, transparent 25%, transparent 75%, var(--sg-checker) 75%), linear-gradient(45deg, var(--sg-checker) 25%, transparent 25%, transparent 75%, var(--sg-checker) 75%);
  background-size: 16px 16px; background-position: 0 0, 8px 8px; }   /* square: the stage's bars round its corners */
.pg-actions { display: flex; flex-wrap: wrap; gap: var(--sg-space-xs); }
.pg-actions:empty { display: none; }
.pg-panel { display: flex; flex-direction: column; gap: var(--sg-space-l); padding: var(--sg-space-l); }
.pg-controls { display: flex; flex-direction: column; gap: 0; }   /* a property sheet: one row each, a line between */
.pg-controls:empty { display: none; }
.pg-ctl { display: flex; flex-direction: column; gap: var(--sg-space-xs); }
/* A property's row: its name on the left, its control on the right, one line (a switch, a small segmented control, a
   dropdown or a field); Width keeps its full segmented control under its name. */
/* A property's row control: 32px, the knob of its switch as tall as a segmented control's option inside it. */
.pg-controls { --pg-row-ctl: calc(var(--sg-control-h) - var(--sg-space-s)); --pg-knob: calc(var(--pg-row-ctl) - var(--sg-line-width, 1px) * 2 - var(--sg-space-xs) * 2); }   /* the knob 4px inside its track all round */
.pg-controls > .pg-ctl { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--sg-space-m); min-height: calc(var(--sg-control-h) + var(--sg-space-xs) + var(--sg-space-s)); padding-block: var(--sg-space-s); border-bottom: var(--sg-line); }   /* 4px more room above and below each row */
.pg-controls > .pg-ctl:last-child { border-bottom: 0; }
.pg-controls > .pg-ctl > .pg-ctl-label, .pg-ctl.pg-width > .pg-ctl-label { font-size: var(--sg-m); color: var(--sg-text-2); }   /* a property's name in the page's running text size
   (13px), as a list's words are */
.pg-controls > .pg-ctl > .pg-ctl-label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-controls > .pg-ctl > .sg-seg { display: inline-flex; flex: none; width: auto; flex-wrap: nowrap; min-height: var(--pg-row-ctl); }
.pg-controls > .pg-ctl > .sg-seg.sg-seg-default > button { min-height: 0; padding-top: 0; padding-bottom: 0; }   /* the side padding of every switch's options (8px more on a large window), only shorter */
.pg-controls > .pg-ctl > .sg-select { flex: 0 1 55%; min-width: 0; }
.pg-controls > .pg-ctl > .sg-select > select, .pg-controls > .pg-ctl > .sg-input, .pg-controls > .pg-ctl > input { min-height: var(--pg-row-ctl); padding-block: 0; }   /* every control in a property's row one height (32px), the switch too */
.pg-controls > .pg-ctl > .sg-input, .pg-controls > .pg-ctl > input { flex: 0 1 55%; min-width: 0; width: auto; }
.pg-ctl-none { font-size: var(--sg-xs); color: var(--sg-muted); }
.pg-ctl.pg-width { flex-direction: column; align-items: stretch; gap: var(--sg-space-xs); padding-bottom: var(--sg-space-m); border-bottom: var(--sg-line); }
/* A boolean's switch: a track the text's colour faintly, its knob moving across and the track filling when on. */
.pg-switch { position: relative; flex: none; box-sizing: border-box; width: calc(var(--pg-row-ctl) * 1.75); height: var(--pg-row-ctl); margin: 0; padding: 0; border: var(--sg-line); border-radius: var(--sg-radius); background: var(--sg-a3); cursor: pointer; transition: background-color var(--sg-fast), border-color var(--sg-fast); }   /* the segmented control's corners */
.pg-switch::after { content: ''; position: absolute; top: 50%; left: var(--sg-space-xs); width: var(--pg-knob); height: var(--pg-knob); border-radius: calc(var(--sg-radius) - var(--sg-space-xxs)); background: var(--sg-text-2); transform: translateY(-50%); transition: left var(--sg-fast), background-color var(--sg-fast); }   /* as big and as round as a segmented control's option */
.pg-switch[aria-checked="true"] { background: var(--sg-text); border-color: var(--sg-text); }
.pg-switch[aria-checked="true"]::after { left: calc(100% - var(--pg-knob) - var(--sg-space-xs)); background: var(--sg-bg); }
.pg-switch:hover:not(:disabled) { border-color: var(--sg-border-hover); }
.pg-switch:focus-visible { outline: 2px solid var(--sg-accent); outline-offset: var(--sg-focus-offset); }
.pg-switch:disabled { opacity: 0.4; cursor: not-allowed; }
.pg-ctl-label { font-size: var(--sg-s); font-weight: var(--sg-text-weight); color: var(--sg-muted); }
.pg-ctl-label code { font-weight: var(--sg-text-weight); margin-left: var(--sg-space-xs); }
/* With no text field in the system, the browser's own (never styled here, so it cannot sit inside the system's field). */
.pg-ctl > input[type="text"]:not(.sg-input) { font: inherit; }
/* The page's default text field, where the system has none of its own (the Playground's text props, the search): it
   reads as a field in every mode, in the system's colours, line, corners and spacing. */
.sg-input, .pg-ctl > .sg-input, #sg-search .sg-input { display: block; width: 100%; box-sizing: border-box; min-height: var(--sg-control-h); margin: 0; padding: var(--sg-space-s) var(--sg-space-m); font: inherit; font-size: var(--sg-s); line-height: var(--sg-lh); color: var(--sg-text); background: var(--sg-bg); border: var(--sg-line); border-radius: var(--sg-control-radius); }
input.sg-input, textarea.sg-input, #sg-search input.sg-input { background: var(--sg-a1); }   /* a field you type in is tinted, a choice from a list (a select) is not: the two read apart */
.sg-input::placeholder { color: var(--sg-muted); }
.sg-input:focus-visible { outline: 2px solid var(--sg-accent); outline-offset: var(--sg-focus-offset); }
.sg-input:focus, .sg-input:focus:hover, #sg-search .sg-input:focus { background-color: var(--sg-bg); border-color: var(--sg-text); }
.sg-input:disabled { cursor: not-allowed; opacity: 0.5; }
.pg-empty { font-size: var(--sg-s); color: var(--sg-muted); }
/* Anatomy: the component as set in the Playground, drawn larger, each part, padding and gap outlined and numbered. */
.pg-anat-stage { position: relative; flex: none; }
/* Variants: one option per row, its name, the component as drawn with it, and Try it to set it in the Playground. */
.pg-variants { display: flex; flex-direction: column; gap: calc(var(--sg-space-l) + var(--sg-space-s)); }
.pg-variant-row { display: grid; grid-template-columns: minmax(min(120px, 100%), 1fr) 3fr auto; gap: var(--sg-space-m); align-items: center; padding: var(--sg-space-m); border-bottom: var(--sg-line); }
.pg-variant-row:last-child { border-bottom: none; }
.pg-variant-stage { display: flex; align-items: center; min-width: 0; overflow: auto; padding-block: calc(var(--sg-space-xxl) + var(--sg-space-s) - var(--sg-space-m)); }   /* with its row's own room, 40px above and below the component: never cramped in its list */
@container (max-width: 720px) { .pg-preview-card, :root.sg-panel-sized .pg-preview-card { grid-template-columns: minmax(0, 1fr); } .pg-panel-grip { display: none; } .pg-preview-card > .pg-preview-col { border-right: 0; border-bottom: var(--sg-line); } .pg-panel { min-width: 0; } }
@media (max-width: 720px) { .pg-variant-row { grid-template-columns: 1fr auto; } .pg-variant-stage { grid-column: 1 / -1; grid-row: 2; } }
.pg-anat-wrap { position: absolute; left: 0; top: 0; width: max-content; transform-origin: 0 0; }
.pg-anat-wrap, .pg-anat-wrap * { animation: none !important; transition: none !important; }   /* drawn at rest, never mid-entry */
.pg-anatomy { min-width: 0; overflow: auto; }
.pg-anat-marks { position: absolute; inset: 0; pointer-events: none; }
.pg-anat-marks [data-hit] { pointer-events: auto; cursor: pointer; }
.pg-anat-marks .pg-anat-root { position: absolute; z-index: 0; }
.pg-anat-marks .pg-anat-part { z-index: 1; }
.pg-anat-marks .pg-anat-space { z-index: 2; }
.pg-anat-marks .pg-anat-num, .pg-anat-marks .pg-anat-lead { z-index: 3; pointer-events: none; }
.pg-anat-marks [data-hit]:hover, .pg-anat-marks [data-hit].is-picked { outline: 2px solid var(--sg-accent); outline-offset: -1px; }
/* Something picked: it stands out, the rest of the component dimmed around it and the other boxes faded. */
.pg-anat-marks.has-pick [data-hit]:not(.is-picked):not(.is-inside) { opacity: 0.3; }
.pg-anat-marks [data-hit].is-picked { z-index: 4; outline-width: 2px; box-shadow: 0 0 0 100vmax color-mix(in srgb, var(--sg-bg) 60%, transparent); }
/* What sits inside the part picked, one level down: drawn over it, so a click picks it (as a double click does in Figma). */
.pg-anat-marks .pg-anat-part.is-nested { z-index: 5; }
.pg-anat-space { position: absolute; outline: 1px dotted var(--sg-muted); outline-offset: -1px; }   /* a padding or a gap: outlined, never coloured, so no colour is mistaken for a token's */
.pg-anat-part { position: absolute; outline: 1px dashed var(--sg-text); }
.pg-compare-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sg-space-l); padding: var(--sg-space-m); }
.pg-compare-bar[hidden], .pg-compare-amount[hidden], .pg-compare[hidden] { display: none; }
.pg-compare-amount { display: flex; align-items: center; gap: var(--sg-space-s); }
.pg-compare-body { padding: 0 var(--sg-space-m) var(--sg-space-m); }
.pg-compare-row { display: flex; flex-wrap: wrap; gap: var(--sg-space-l); justify-content: center; }
.pg-compare-fig { display: flex; flex-direction: column; gap: var(--sg-space-xs); min-width: 0; max-width: 100%; }
.pg-compare-stage { display: flex; align-items: center; justify-content: center; padding: var(--sg-space-l); overflow: auto; max-width: 100%; }
.pg-compare-layer { position: relative; }
.pg-compare-over > .pg-compare-img { position: absolute; left: 0; top: 0; }
.pg-compare-cut { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--sg-accent); pointer-events: none; }
.pg-compare-img { display: block; }
.pg-offstage { position: absolute !important; left: -100000px; top: 0; width: 100%; }   /* laid out, never seen: the live accessibility check reads it */
.pg-anat-lead { position: absolute; height: 0; border-top: 1px solid var(--sg-text); transform-origin: 0 0; }
.pg-anat-part.is-slot { outline: 2px dashed var(--sg-accent); }
.pg-anat-num { position: absolute; transform: translate(-50%, -50%); min-width: 18px; height: 18px; padding: 0 var(--sg-space-xxs); box-sizing: border-box; display: flex; align-items: center; justify-content: center; border-radius: var(--sg-radius-pill); background: var(--sg-text); color: var(--sg-bg); font-size: var(--sg-xs); font-weight: var(--sg-heading-weight); }
/* Width: the component in a frame of that width, scaled to fit when wider than the room. */
.pg-preview[hidden], .pg-frame[hidden] { display: none; }
.pg-preview-col { min-width: 0; display: flex; flex-direction: column; position: relative; }
/* The playground at most 70% of the window's height, its bars included: a taller component scrolls inside the stage,
   longer controls inside their panel. Stacked on a narrow page, the controls run their own length under it. */
.pg-preview-card { --pg-stage-max: 70vh; }
.pg-preview-card .pg-preview { max-height: var(--pg-stage-max); }
.pg-preview-card > .pg-preview-col { max-height: var(--pg-stage-max); }
.pg-preview-col > :is(.pg-preview, .pg-frame, .pg-anatomy) { flex-shrink: 1; min-height: 0; }
.pg-preview-card > .pg-panel { max-height: var(--pg-stage-max); overflow-y: auto; }
.pg-preview-card--tall .pg-preview-col > :is(.pg-preview, .pg-frame) { min-height: var(--pg-stage-max); }
.pg-preview-card--fit .pg-preview, .pg-preview-card--fit > .pg-preview-col { max-height: none; }   /* a component taller than the stage may be: the stage grows to it */   /* a dialog, a drawer, a full view: the stage as tall as it may be */
@container (max-width: 720px) { .pg-preview-card > .pg-panel { max-height: none; } }
/* A slot in the component: the area it takes, dashed and named Slot inside, in place of the placeholder its markup
   holds (kept, unseen, so the component keeps its size). Only the Playground marks it; the code shown never has it. */
.pg-slot-area { position: relative; min-height: 40px; min-width: 96px; box-sizing: border-box; outline: 1px dashed var(--sg-text-2); outline-offset: -1px; background: color-mix(in srgb, var(--sg-text-2) 6%, transparent); }
.pg-slot-area > * { visibility: hidden; }
.pg-slot-area::after { content: attr(data-slot); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: var(--sg-s); color: var(--sg-text-2); }
/* A slot whose content sits straight inside the component: that content gives way to the slot area, which the
   component grows around. */
.pg-slot-gone { display: none !important; }   /* what a slot area stands in for, gone whatever display the system gives it */
/* Content the component's own markup puts in the slot: it shows as it is, and the slot is marked over it in Inspect,
   or while the slot's button beside Inspect is pressed: the content is not the component's, so the preview and its
   thumbnail show it unmarked otherwise. The mark sits outside the flow, with no tint and no pointer, its name above its corner. */
.pg-slot-host { position: relative; }
.pg-slot-area.pg-slot-over { display: none; position: absolute; min-width: 0; min-height: 0; background: none; pointer-events: none; outline-offset: 2px; }
.pg-anat-wrap .pg-slot-area.pg-slot-over, .pg-slots-shown .pg-slot-area.pg-slot-over { display: block; }   /* in Inspect, and while its button beside Inspect is pressed */
.pg-slot-area.pg-slot-over::after { inset: auto auto 100% 0; margin-bottom: var(--sg-space-xs); font-size: var(--sg-xs); }
.pg-still, .pg-still * { transition: none !important; }   /* while its colours are measured */
/* The system's modes inside the playground: the colour mode top left, a sizing collection top right, over the stage. */
.pg-stage-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--sg-space-s); padding: var(--sg-space-s) var(--sg-space-m); background: var(--sg-tint); }   /* the card's own edge and corners are the stage's */
.pg-stage-bar--bottom > .pg-stage-mode { margin-left: auto; }   /* the colour mode at the bottom right */
.pg-stage-bar[hidden], .pg-anat-line[hidden], .pg-anatomy[hidden] { display: none; }
.pg-stage-tools { display: flex; gap: var(--sg-space-xs); margin-left: auto; }
.pg-anat-line { margin: 0; font-size: var(--sg-s); color: var(--sg-text); min-width: 0; }
.pg-preview-col > .pg-anatomy { display: flex; align-items: center; justify-content: safe center; flex: 1; overflow: auto; min-height: 140px; padding: var(--sg-space-xl); background-color: var(--sg-stage, var(--sg-bg)); }
.pg-preview-col > .pg-anatomy[hidden] { display: none; }   /* Done inspecting: the anatomy is gone, the Playground fills the stage */
.pg-preview-col > .pg-anatomy .pg-anat-num, .pg-preview-col > .pg-anatomy .pg-anat-lead { display: none; }   /* the inspector names what is clicked, not a numbered list */
.pg-stage-mode .sg-mode-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pg-preview-col > .pg-preview { flex: 1; }
/* Room above and below the component on the Playground's stage, whatever it draws (the component, Inspect, a width):
   100px on a wide screen, 64px on a tablet or a narrow laptop, 40px on a phone. The page's own layout, as the stage's
   least width is, not one of the system's spaces. */
.pg-preview-card { --pg-stage-room: 100px; }
@media (max-width: 1100px) { .pg-preview-card { --pg-stage-room: 64px; } }
@media (max-width: 720px) { .pg-preview-card { --pg-stage-room: 40px; } }
.pg-preview-col > .pg-preview, .pg-preview-col > .pg-anatomy, .pg-preview-col > .pg-frame { padding-top: var(--pg-stage-room); padding-bottom: var(--pg-stage-room); }
.pg-preview-col > .pg-frame { flex: 1; }
.pg-frame { display: flex; align-items: safe center; justify-content: safe center; min-width: 0; min-height: 140px; padding: var(--sg-space-l); }
.pg-frame-device { display: flex; flex-direction: column; gap: var(--sg-space-xs); max-width: 100%; }
.pg-frame-label { font-size: var(--sg-s); color: var(--sg-muted); }
.pg-frame-box { overflow: hidden; border: var(--sg-line); border-radius: var(--sg-radius); background: var(--sg-stage, var(--sg-bg)); }
.pg-frame-box > iframe { display: block; border: 0; transform-origin: 0 0; background: transparent; }
.pg-frame-stage { padding: var(--sg-space-xl); display: flex; flex-wrap: wrap; gap: var(--sg-space-m); justify-content: center; align-items: flex-start; }
.pg-from, .pg-missing { color: var(--sg-muted); }
.pg-log-date { color: var(--sg-muted); font-weight: var(--sg-text-weight); }
/* Where a commit changed things besides a component: the same link, quieter, so a component still reads first. */
.sg-log-where { color: var(--sg-muted); }
.pg-inspect .pg-par-val { display: block; margin-top: var(--sg-space-xxs); color: var(--sg-muted); font-size: var(--sg-s); }   /* what a change did, under it */
.pg-missing { font-style: italic; }
.pg-doc > .pg-from { margin-top: var(--sg-space-s); }
.pg-inspect-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(max(min(240px, 100%), calc((100% - var(--sg-card-gap)) / 2)), 1fr)); gap: var(--sg-card-gap); align-items: start; }   /* two columns at most (a third card goes under), one when narrow */
.pg-inspect-grid.pg-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }   /* Parity: two columns */
.sg-seg-icon { width: calc(0.75em + 4px); height: calc(0.75em + 4px); flex: none; color: var(--sg-warning-ink); vertical-align: middle; margin-right: var(--sg-space-xxs); }
/* The brand kit: the system at a glance, in big blocks of its own colour, type, shapes, icons and motion. Each value
   arrives through its token's variable: a colour as --bk (the words on it as --bk-on), the kit's corners as --bk-rad
   (-s, -l), its hues as --bk-1 and --bk-2. */
.sg-bk { display: flex; flex-direction: column; gap: var(--sg-card-gap); }
.sg-bk { --bk-card: color-mix(in srgb, var(--sg-text) 4%, var(--sg-bg)); }   /* one ground for every card that is not a colour sample: the page's own, a step up */
[data-sg-scheme="dark"] .sg-bk { --sg-line-colour: color-mix(in srgb, var(--sg-text) 18%, var(--sg-bg)); }   /* every edge on the page one solid colour: see-through, it took the colour of what it sat on */
.sg-bk-hero { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--sg-card-gap); min-height: calc(var(--sg-space-xxl) * 10 + var(--sg-space-s)); }
.sg-bk-tile { display: flex; flex-direction: column; justify-content: space-between; gap: var(--sg-space-xl); min-height: calc(var(--sg-space-xxl) * 9); padding: var(--sg-space-l); border-radius: var(--bk-rad, var(--sg-radius)); background: var(--bk); color: var(--bk-on); box-shadow: inset 0 0 0 var(--bk-line-w, 1px) var(--sg-line-colour), var(--bk-shadow, 0 0 #0000); }
.sg-bk-tile--hero { position: relative; overflow: clip; container-type: inline-size; }
.sg-bk-tile--hero > :not(.sg-bk-hero-ghost) { position: relative; }
.sg-bk-hero-ghost { position: absolute; right: -4cqw; bottom: -16cqw; font-size: 58cqw; line-height: normal; font-weight: var(--sg-heading-weight); opacity: .1; pointer-events: none; white-space: nowrap; }   /* the family once more, huge and faint, filling the card */
.sg-bk-tile--small { min-height: 0; justify-content: flex-end; gap: var(--sg-space-xs); }
.sg-bk-tile--small > span { font-size: var(--sg-s); }
.sg-bk-tile--small > b { font-size: var(--sg-h2); font-weight: var(--sg-heading-weight); }
.sg-bk-side { display: grid; grid-auto-rows: 1fr; gap: var(--sg-card-gap); }
.sg-bk-tile-head, .sg-bk-tile-foot { display: flex; justify-content: space-between; align-items: center; gap: var(--sg-space-m); font-size: var(--sg-s); }
.sg-bk-tile-foot > b { font-size: var(--sg-m); }
.sg-bk-brand { font-size: var(--sg-l); font-weight: var(--sg-heading-weight); }
.sg-bk-big { font-size: calc(var(--sg-h1) * 4); line-height: normal; font-weight: var(--sg-heading-weight); }
.sg-bk-tile-sub { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sg-space-m); font-size: var(--sg-l); }
.sg-bk-weight { padding: var(--sg-space-xxs) var(--sg-space-s); border: var(--bk-line-w, 1px) solid currentColor; border-radius: var(--bk-rad-l, var(--sg-radius-pill)); font-size: var(--sg-m); }
.sg-bk-wall { display: flex; height: calc(var(--sg-space-xxl) * 5); border-radius: var(--bk-rad, var(--sg-radius)); overflow: clip; outline: var(--bk-line-w, 1px) solid var(--sg-line-colour); outline-offset: calc(var(--bk-line-w, 1px) * -1); box-shadow: var(--bk-shadow, 0 0 #0000); }   /* the line drawn inside: a thicker one never moves the layout */
.sg-bk-wall > span { flex: 1 1 0; min-width: 0; display: flex; align-items: flex-end; overflow: clip; background: var(--bk); color: var(--bk-on); transition: flex-grow var(--sg-move); }
.sg-bk-wall > span:is(:first-child, :last-child) { flex: 1 0 auto; }   /* the two ends as wide as their names, so both always read */
.sg-bk-wall > span:hover { flex-grow: 2.5; }
.sg-bk-wall i { padding: var(--sg-space-l); white-space: nowrap; font-style: normal; font-size: var(--sg-s); opacity: 0; transition: opacity var(--sg-move); }
.sg-bk-wall > span:hover i, .sg-bk-wall > span:is(:first-child, :last-child) i { opacity: 1; }   /* the two ends named in their own colour; the others on hover */
.sg-bk-wall b { display: block; font-weight: var(--sg-heading-weight); }
.sg-bk-ramp-row { display: grid; grid-template-columns: minmax(5rem, 9rem) minmax(0, 1fr); align-items: center; gap: var(--sg-space-m); }
.sg-bk-ramp-name { font-size: var(--sg-m); color: var(--sg-text); }
.sg-bk-ramp { display: flex; height: calc(var(--sg-space-xxl) * 2); border-radius: var(--bk-rad, var(--sg-radius)); overflow: clip; outline: var(--bk-line-w, 1px) solid var(--sg-line-colour); outline-offset: calc(var(--bk-line-w, 1px) * -1); box-shadow: var(--bk-shadow, 0 0 #0000); }
.sg-bk-ramp > span { flex: 1; background: var(--bk); transition: flex-grow var(--sg-move); }
.sg-bk-ramp > span:hover { flex-grow: 2.5; }
.sg-bk-swatches { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--sg-card-gap); }   /* all on one line */
@media (max-width: 720px) { .sg-bk-swatches { grid-auto-flow: row; grid-template-columns: 1fr; } }
.sg-bk-swatch { outline: var(--bk-line-w, 1px) solid var(--sg-line-colour); outline-offset: calc(var(--bk-line-w, 1px) * -1); box-shadow: var(--bk-shadow, 0 0 #0000); border-radius: var(--bk-rad, var(--sg-radius)); overflow: clip; display: grid; grid-template-columns: calc(var(--sg-space-xxl) * 2) minmax(0, 1fr); }   /* the colour on the left, its name on the right */
.sg-bk-swatch > i { display: block; background: var(--bk); }
.sg-bk-swatch > span { display: flex; flex-direction: column; gap: var(--sg-space-xs); padding: var(--sg-space-l); min-width: 0; font-size: var(--sg-s); color: var(--sg-muted); }   /* one padding for every card in the kit */
.sg-bk-swatch b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--sg-text); font-weight: var(--sg-heading-weight); }
.sg-bk-icon { display: block; fill: currentColor; }
/* Motion: each sample moving as the system moves, forever, still when the person asks for less motion. */
.sg-bk-mv-dot:is(.is-grow, .is-fade, .is-turn) { left: 50%; margin-left: calc(var(--sg-space-xl) / -2); }
@keyframes sg-bk-slide { from { transform: translateX(0); } to { transform: translateX(calc(100cqw - var(--sg-space-xl) - var(--sg-space-m) * 2)); } }
@keyframes sg-bk-grow { from { transform: scale(0.4); } to { transform: scale(1.8); } }
@keyframes sg-bk-fade { from { opacity: 0.1; } to { opacity: 1; } }
@keyframes sg-bk-turn { from { transform: rotate(0); } to { transform: rotate(360deg); } }
/* The bento under the colours: tiles of six columns and set rows, packed close, each its own background and words
   (--t-bg, --t-fg), the type set large for effect, several moving. Still when the person asks for less motion. */
.sg-bk-bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: calc(var(--sg-space-xxl) * 3); grid-auto-flow: dense; gap: var(--sg-card-gap); }   /* one gap everywhere in the kit: between its blocks (.sg-bk) and its tiles */
.sg-bk-t { container-type: inline-size; position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: var(--sg-space-s); min-width: 0; padding: var(--sg-space-l); border-radius: var(--bk-rad, var(--sg-radius)); background: var(--t-bg); color: var(--t-fg); font-size: var(--sg-s); overflow: clip; box-shadow: inset 0 0 0 var(--bk-line-w, 1px) var(--sg-line-colour), var(--bk-shadow, 0 0 #0000); text-decoration: none; }
.sg-bk-t.w1 { grid-column: span 1; } .sg-bk-t.w2 { grid-column: span 2; } .sg-bk-t.w3 { grid-column: span 3; } .sg-bk-t.w4 { grid-column: span 4; } .sg-bk-t.w6 { grid-column: 1 / -1; }
.sg-bk-bento--geo { grid-auto-rows: calc(var(--sg-space-xxl) * 4 + var(--sg-space-s)); }   /* the shapes' rows: 7.5rem taller in all (three rows) */
/* The personality: as tall as its words and its chart, never a fixed number of rows. Held to five rows, the claim was
   centred in a card shorter than itself and drawn over its own heading, and the chart's labels ran into each other. */
.sg-bk-bento--fit { grid-auto-rows: auto; }
.sg-bk-bento--fit .sg-bk-pers-body { grid-template-rows: auto; }
.sg-bk-bento--fit .sg-bk-pers-chart { height: auto; width: min(100%, 28rem); }
/* An Identity block: each section of the kit one size, the type block's (the full width, five rows of the bento), so
   the blocks line up as the kit grows. Every new section block takes this class. */
.sg-bk-t.sg-bk-block { grid-column: 1 / -1; grid-row: span 5; }
.sg-bk-tm, .sg-bk-charts, .sg-bk-dp, .sg-bk-rl-draw { overflow-anchor: none; }   /* what animates is never the browser's scroll anchor: a size easing inside it never moves the page */
.sg-bk-t.h2 { grid-row: span 2; } .sg-bk-t.h3 { grid-row: span 3; } .sg-bk-t.h4 { grid-row: span 4; } .sg-bk-t.h5 { grid-row: span 5; } .sg-bk-t.h6 { grid-row: span 6; }
@keyframes sg-bk-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.sg-bk-track > .sg-bk-mv-dot:is(.is-grow, .is-fade, .is-turn) { left: 50%; }
@keyframes sg-bk-morph { 0%, 100% { border-radius: var(--bk-rad-s, 0); } 50% { border-radius: var(--bk-rad-l, var(--sg-radius)); } }
@keyframes sg-bk-roll { 0%, 20% { transform: translateY(0); } 33%, 53% { transform: translateY(-25%); } 66%, 86% { transform: translateY(-50%); } 100% { transform: translateY(-75%); } }
@keyframes sg-bk-grow-y { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }
@keyframes sg-bk-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(calc(-1 * var(--sg-space-xs))); } }
.sg-bk-t.sg-bk-bare { padding: 0; background: none; box-shadow: none; }   /* type straight on the page */
/* Geometry and motion: drawings with their construction lines, in the brand's hues. */
.sg-bk-t.sg-bk-bare-pad { padding: var(--sg-space-l); }
.sg-bk-t.sg-bk-pers { padding: var(--sg-space-xl); display: flex; flex-direction: column; gap: var(--sg-space-s); color: var(--t-fg); }   /* the brand's personality, at the foot of the page */
.sg-bk-pers-top { display: flex; justify-content: space-between; gap: var(--sg-space-m); }
.sg-bk-pers-h { font-size: var(--sg-s); opacity: .75; }
.sg-bk-pers-key { display: flex; align-items: center; gap: var(--sg-space-xs); }   /* at the foot, on the left: light drawn whole, dark dashed, as thick as the shapes */
.sg-bk-pers-kl { width: calc(var(--sg-space-xxl) * 2); height: var(--sg-space-s); overflow: visible; } .sg-bk-pers-kl.is-dark { margin-left: var(--sg-space-m); }
.sg-bk-pers { --pers-w: var(--bk-line-w, 1px); }   /* the brand's own line, however thick: the points, dashes and grid adapt so it still reads */
.sg-bk .sg-bk-pers-svg.sg-bk-pers-svg :is(line, circle, polygon) { stroke-width: max(1px, calc(var(--pers-w) / 2)); }   /* the grid half as thick as the shapes */
.sg-bk .sg-bk-pers-svg.sg-bk-pers-svg .sg-bk-pers-shape, .sg-bk .sg-bk-pers-kl.sg-bk-pers-kl line { stroke-width: var(--pers-w); }
.sg-bk-pers-svg .sg-bk-pers-dot { r: calc(1.5px + var(--pers-w) * 0.9); }   /* the points grow with the line, so they still show on it */
.sg-bk-pers-svg .sg-bk-pers-ring { stroke-linecap: round; stroke-dasharray: 0 calc(max(1px, var(--pers-w) / 2) * 3); }   /* the balance ring dotted, its gaps as small as the line allows */
.sg-bk-pers-kl.is-dark line, .sg-bk-pers-svg .sg-bk-pers-shape.is-dark { stroke-dasharray: max(var(--sg-space-xs), calc(var(--pers-w) * 4)) calc(var(--pers-w) * 2); }   /* the dash grows with the line, so it reads however thick */
.sg-bk-pers-t { margin: 0; font-size: calc(var(--sg-title) * 0.62 + var(--sg-space-l) + var(--sg-space-xxs)); line-height: normal; text-wrap: balance; color: var(--sg-text); }   /* the claim */
.sg-bk-pers-words { display: flex; flex-direction: column; gap: var(--sg-space-l); min-width: 0; }
.sg-bk-pers-w { margin: 0; font-size: calc(var(--sg-title) * 0.42); line-height: normal; color: var(--sg-text); text-wrap: balance; }   /* what it does, each part as heavy as it leans */
.sg-bk-pers-ev { margin-top: var(--sg-space-s); }   /* 24px under the line above, with the column's gap */
.sg-bk-pers-chips { display: flex; flex-wrap: wrap; gap: var(--sg-space-xs); }
.sg-bk-pers-chips .sg-bk-tick-pill { padding: 0 var(--sg-space-s); font-size: var(--sg-xs); }

.sg-bk-pers-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: var(--sg-space-xl); align-items: center; }
.sg-bk-pers-chart { position: relative; height: 105%; width: auto; max-width: 105%; max-height: 105%; aspect-ratio: 1; margin: auto; color: var(--sg-text); }   /* as tall as its row, square: never cut by the tile */
.sg-bk-pers-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sg-bk-pers-labs { position: absolute; inset: 0; font-size: var(--sg-s); line-height: var(--sg-lh); }   /* each pole's name as page text, at the page's own size whatever the chart's */
.sg-bk-pers-l { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; opacity: .65; }
.sg-bk-pers-l.is-lead { opacity: 1; font-weight: var(--sg-heading-weight); } .sg-bk-pers-l.is-faint { opacity: .4; }
.sg-bk-pers-ev { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: var(--sg-space-s) var(--sg-space-m); align-items: baseline; font-size: var(--sg-s); }
.sg-bk-pers-ev b { color: var(--sg-text); } .sg-bk-pers-ev span { font-variant-numeric: tabular-nums; } .sg-bk-pers-ev i { font-style: normal; opacity: .7; }
@media (max-width: 900px) { .sg-bk-pers-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; } .sg-bk-pers-chart { height: auto; width: min(100%, 28rem); } }   /* stacked: the chart as wide as it may be */
/* Radius and border, three cards in one language: a solid line where the component has a border (the theme's width), a
   dashed one where it has none; only the component in focus in the hue, the rest neutral. */
.sg-bk-rl-stage { flex: 1; min-height: 0; display: grid; place-items: center; container-type: size; }
.sg-bk-rl-stage > .sg-bk-rl-draw { width: 88cqw; height: 88cqh; overflow: visible; }   /* sized to its box (a percentage height does not resolve in the grid, so a wide card drew it as tall as it is wide, over its caption), a little inside it, centered */
.sg-bk-corners, .sg-bk-rl-tex { width: min(100cqw, 100cqh, calc(var(--sg-space-xxl) * 12)); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sg-space-l); }   /* one size for a corner and a tile, four across in both cards */
.sg-bk-corners { row-gap: calc(var(--sg-space-xxl) * 1.5); font-size: var(--sg-s); }
.sg-bk-rl, .sg-bk-rl-draw { --rl-c: var(--sg-muted); }
.sg-bk-rl.is-lit, .sg-bk-rl-lit, .sg-bk-tl-hl { --rl-c: var(--bk-cr); }
.sg-bk-rl-line { fill: none; stroke: var(--rl-c); stroke-width: var(--rl-w, 1px); vector-effect: non-scaling-stroke; transition: stroke var(--sg-move); }
.sg-bk-rl-line.is-off { stroke-width: 1px; stroke-dasharray: 3 4; }
.sg-bk-rl:not(.is-lit) .sg-bk-rl-line, .sg-bk-rl:not(.is-lit) .sg-bk-cr-cap { opacity: .3; }   /* the corners and tiles not in focus, dimmer */
.sg-bk-rl .sg-bk-rl-line, .sg-bk-rl .sg-bk-cr-cap { transition: stroke var(--sg-move), opacity var(--sg-move); }
.sg-bk-rl-hit { fill: none; stroke: transparent; stroke-width: var(--sg-space-l); pointer-events: all; cursor: pointer; }   /* each shape picked anywhere in it (the smaller drawn on top), and on a wide band round its outline */
.sg-bk-rl-gh:hover .sg-bk-rl-line, .sg-bk-cr:hover .sg-bk-rl-line, .sg-bk-tl:hover .sg-bk-rl-line { opacity: .7; }   /* what a click would pick, brighter */
.sg-bk-rl-lit, .sg-bk-guide, .sg-rl, .sg-rd, .sg-rt { pointer-events: none; }
.sg-bk-rl-lit { fill: var(--bk-cr); fill-opacity: .06; }
.sg-bk-cr { margin: 0; min-width: 0; display: flex; flex-direction: column; gap: var(--sg-space-s); cursor: pointer; }
.sg-bk-cr-svg { display: block; width: 100%; aspect-ratio: 1; overflow: visible; }
.sg-bk-cr-cap { display: flex; flex-direction: column; min-width: 0; color: var(--sg-muted); }
.sg-bk-cr-cap > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-bk-cr-cap > b { color: var(--sg-text); white-space: normal; }
.sg-bk-cr.is-lit .sg-bk-cr-cap > b { color: var(--bk-cr); }   /* the selected corner's name in the hue */   /* a long name breaks between its words, never cut */
.sg-bk-cr-g { fill: none; stroke: currentColor; stroke-opacity: .35; stroke-dasharray: 2 4; vector-effect: non-scaling-stroke; }
.sg-bk-cr-con line { stroke-opacity: .6; vector-effect: non-scaling-stroke; }
.sg-bk-tl { display: block; width: 85%; place-self: center; aspect-ratio: 1; overflow: visible; cursor: pointer; }
.sg-bk-tl-mask { mask-type: alpha; }
.sg-bk-tl-m { fill: none; stroke: currentColor; stroke-width: 14; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .9s ease-in-out var(--d, 0s); }
.sg-bk-tl.is-lit .sg-bk-tl-m { stroke-dashoffset: 0; }
.sg-bk-rl-now .sg-bk-tl-m, .sg-bk-rl-now .sg-bk-tl-base, .sg-bk-rl-now .sg-bk-rl-line, .sg-bk-rl-now .sg-bk-cr-cap { transition: none; }   /* a theme or mode switch shows its shapes at once */   /* the hue runs round the tile's edge; going, it runs back */
.sg-bk-tl-base { fill: var(--bk-cr); fill-opacity: 0; transition: fill-opacity .25s ease-in-out; }
.sg-bk-tl.is-lit .sg-bk-tl-base { fill-opacity: .1; transition-delay: var(--d, 0s); }   /* a faint fill, as the trace starts */
.sg-bk-rl-cap { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--sg-space-xxs) var(--sg-space-m); padding-top: var(--sg-space-l); }
.sg-bk-rl-cap > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-bk-rl-t { color: var(--bk-cr); font-size: var(--sg-m); }   /* the selected component named in the hue, as its number */
.sg-bk-rl-k { color: var(--sg-muted); font-size: var(--sg-s); }
.sg-bk-rl-cap > b { grid-column: 2; grid-row: 1 / span 2; font-size: calc(var(--sg-h1) * 2); color: var(--bk-cr); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .sg-bk-tl-m, .sg-bk-tl-base { transition: none; } }
.sg-bk small { font-size: var(--sg-s); }   /* every label in the kit one size, the size the hero names its colour in */
.sg-bk-geo { display: block; width: 100%; height: 100%; font-size: var(--sg-s); font-variant-numeric: tabular-nums; }
.sg-bk-geo.sg-bk-geo--real { max-width: 100%; margin: auto; overflow: visible; }
.sg-bk-guide circle, .sg-bk-guide line, .sg-bk-guide-l { fill: none; stroke: var(--sg-muted); stroke-opacity: .55; stroke-dasharray: 3 4; }
.sg-bk-curves { display: flex; gap: var(--sg-card-gap); height: 100%; }
.sg-bk-curve { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--sg-space-s); }
.sg-bk-curve-plot { position: relative; flex: 1; }
.sg-bk-curve-plot > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sg-bk-curve-plot > svg * { vector-effect: non-scaling-stroke; }
.sg-bk-curve-plot .sg-bk-handle-l { stroke: var(--sg-muted); stroke-opacity: .35; stroke-dasharray: 3 3; }
.sg-bk-runner { position: absolute; width: var(--sg-space-s); height: var(--sg-space-s); margin: calc(var(--sg-space-s) / -2) 0 0 calc(var(--sg-space-s) / -2); border-radius: var(--sg-radius-pill); }
.sg-bk-runner { --rn: calc(var(--sg-space-m) + var(--bk-line-w, 1px) * 2); width: var(--rn); height: var(--rn); margin: calc(var(--rn) / -2) 0 0 calc(var(--rn) / -2); background: var(--sg-text); box-shadow: 0 0 0 calc(var(--bk-line-w, 1px) + 2px) var(--t-bg, var(--sg-bg));   /* wider than the line it runs on, ringed in the card's ground: it reads on any line */ left: 0; top: 100%; animation-name: sg-bk-run-x, sg-bk-run-y; animation-iteration-count: infinite; animation-direction: alternate; animation-fill-mode: both; }
@keyframes sg-bk-run-x { from { left: 0; } to { left: 100%; } }
@keyframes sg-bk-run-y { from { top: 100%; } to { top: 0; } }
.sg-bk-curve-name { position: absolute; top: var(--sg-space-s); left: var(--sg-space-s); display: flex; flex-direction: column; font-size: var(--sg-s); color: var(--sg-muted); font-variant-numeric: tabular-nums; }
.sg-bk-curve-name > b { color: var(--sg-text); font-weight: var(--sg-text-weight); font-size: var(--sg-s); }
.sg-bk-curve-axis { display: flex; justify-content: space-between; font-size: var(--sg-s); color: var(--sg-muted); font-variant-numeric: tabular-nums; }
.sg-bk-geo-axis { stroke: var(--sg-line-colour); }
.sg-bk-geo-ink { stroke: var(--sg-text); }
.sg-bk-geo-dot { fill: var(--sg-text); }
.sg-bk-geo text { fill: var(--sg-muted); }
.sg-bk-geo .sg-bk-geo-title { fill: var(--sg-text); }
/* The kit's one highlight, wherever a list names what is shown now (the radii, the weights): no border, the others dim,
   the one shown in full and its name in the hue, one size. */
.sg-bk-tm-ws i { opacity: .55; transition: opacity var(--sg-move), color var(--sg-move); }   /* the colour eases with the opacity: no jump when one is picked */
.sg-bk-tm-ws i.is-on { opacity: 1; }
.sg-bk-tm-ws i.is-on { color: var(--bk-1); }
.sg-bk-depth-name { font-size: var(--sg-l); }
.sg-bk-depth-stage { position: relative; flex: 1; margin: var(--sg-space-m) 28% var(--sg-space-m) 20%; }
.sg-bk-depth-card, .sg-bk-depth-ghost { position: absolute; inset: 0; border-radius: var(--bk-rad, var(--sg-radius)); }
.sg-bk-depth-card { border: var(--bk-line-w, 1px) solid; }   /* still: the shadow speaks for itself */
.sg-bk-depth-ghost { border: var(--bk-line-w, 1px) dashed currentColor; opacity: .45; }
@keyframes sg-bk-lift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(calc(-1 * var(--sg-space-xs)), calc(-1 * var(--sg-space-s))); } }
.sg-bk-depth-note { align-self: flex-end; text-align: right; font-variant-numeric: tabular-nums; }
.sg-bk-radcard { flex-direction: row; align-items: center; gap: var(--sg-space-l); }
.sg-bk-radcard > b { font-size: calc(var(--sg-h1) * 2.6); }
.sg-bk-radcard > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sg-bk-radcard > svg { flex: none; width: calc(var(--sg-space-xxl) * 1.7); height: calc(var(--sg-space-xxl) * 1.7); margin-left: auto; }
.sg-bk-dur-title { font-size: var(--sg-l); }
.sg-bk-durs { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--sg-space-s) var(--sg-space-m); font-variant-numeric: tabular-nums; }
.sg-bk-durs > i { display: block; height: var(--sg-space-s); border-radius: var(--sg-radius-pill); animation: sg-bk-fill 1s ease infinite alternate; }
@keyframes sg-bk-fill { from { width: 0; } to { width: 100%; } }
/* Icons and charts. */
.sg-bk-lens .sg-bk-lens-grid { stroke: color-mix(in srgb, var(--sg-line-colour) 30%, transparent); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.sg-bk-lens-frame { position: absolute; }
.sg-bk-lens-frame > svg { display: block; width: 100%; height: 100%; overflow: visible; }
.sg-bk-lens-frame rect { rx: var(--bk-rad, var(--sg-radius)); }   /* the frame and its grid in the brand's corner radius */
.sg-bk-lens-fgrid { stroke: color-mix(in srgb, var(--sg-line-colour) 30%, transparent); stroke-width: 1px; }
.sg-bk-lens-fline { fill: none; stroke: var(--sg-muted); stroke-width: var(--bk-line-w, 1px); stroke-dasharray: 3 7; }
.sg-bk-lens .sg-bk-lens-ring { fill: none; stroke: var(--bk-mark, var(--sg-accent)); stroke-width: calc(max(2px, var(--bk-line-w, 1px)) * 0.8); vector-effect: non-scaling-stroke; }
.sg-bk-lens .sg-bk-lens-ground { fill: var(--bk-card); }
.sg-bk-lens .sg-bk-lens-mark { fill: none; stroke: var(--bk-mark, var(--sg-accent)); stroke-width: 1.6px; stroke-dasharray: 6 5; vector-effect: non-scaling-stroke; }
.sg-bk-lens .sg-bk-lens-dot { fill: var(--bk-mark, var(--sg-accent)); }
/* The construction line and its turns lie inside the icon's strokes: drawn in the card's colour, cut into the stroke, so
   they read on any icon colour, in light and dark (in the mark's colour they vanish where it is the icon's). */
.sg-bk-lens .sg-bk-lens-turn { fill: var(--bk-card); }
.sg-bk-lens .sg-bk-lens-build { fill: none; stroke: var(--bk-card); stroke-width: 1.6px; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.sg-bk-lens .sg-bk-lens-end { fill: var(--bk-card); stroke: var(--bk-mark, var(--sg-accent)); stroke-width: 1.6px; vector-effect: non-scaling-stroke; }
.sg-bk-lens .sg-bk-lens-measure { stroke: var(--bk-mark, var(--sg-accent)); stroke-width: 1.6px; vector-effect: non-scaling-stroke; }
.sg-bk-lens text { font-size: var(--sg-space-l); }
.sg-bk-lens .sg-bk-lens-icon { color: var(--sg-text); }
/* The mask that thins the lens icon: each outline stroked in the mask's black (set on the group), eating into the fill,
   its width in the icon's own units (not the page's non-scaling hairline, which would barely touch it). */
.sg-bk .sg-bk-lens .sg-bk-lens-erode * { fill: none; stroke: currentColor; stroke-width: var(--bk-line-w); stroke-linejoin: miter; stroke-miterlimit: 8; vector-effect: none; }
.sg-bk-lens .sg-bk-lens-num { fill: var(--bk-mark, var(--sg-accent)); font-size: calc(var(--sg-space-l) * 1.85); }
/* The drawing as large as the tile holds it (five rows, as tall as the type card, less the padding) at its own proportions, so the words laid over it
   stay under their lenses; the words in the page's sizes. */
.sg-bk-lens-wrap { position: relative; width: min(100%, calc((var(--sg-space-xxl) * 15 + var(--sg-card-gap) * 4 - var(--sg-space-l) * 2) * 1440 / 680)); aspect-ratio: 1440 / 680; margin: auto; }
.sg-bk-lens-sw { position: absolute; display: grid; place-items: center; border-radius: var(--bk-rad, var(--sg-radius)); box-shadow: inset 0 0 0 var(--bk-line-w, 1px) var(--sg-line-colour); }
.sg-bk-lens-sw > svg { width: 55%; height: 55%; }
.sg-bk-t.sg-bk-lens-t { justify-content: center; }   /* the drawing in the middle of its card */
.sg-bk-lens-wrap > .sg-bk-lens { position: absolute; inset: 0; }
.sg-bk-lens-cap { position: absolute; width: 18%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: var(--sg-space-xxs); text-align: center; }
.sg-bk-lens-cap b { font-size: var(--sg-l); font-weight: var(--sg-heading-weight); color: var(--bk-mark, var(--sg-accent)); }
.sg-bk-lens-cap span { font-size: var(--sg-s); color: var(--sg-muted); }
.sg-bk-lens-name { position: absolute; left: var(--sg-space-m); bottom: var(--sg-space-s); font-size: var(--sg-s); color: var(--sg-muted); }
.sg-bk-keyline-t { --bk-grid: color-mix(in srgb, var(--sg-line-colour) 18%, transparent); background-image: repeating-linear-gradient(to right, var(--bk-grid) 0 var(--bk-line-w, 1px), transparent var(--bk-line-w, 1px) calc(var(--sg-space-xl) + var(--sg-space-xs))), repeating-linear-gradient(to bottom, var(--bk-grid) 0 var(--bk-line-w, 1px), transparent var(--bk-line-w, 1px) calc(var(--sg-space-xl) + var(--sg-space-xs))); background-position: center; }   /* the grid fills the whole card, in the brand's line thickness */
.sg-bk-pie { width: 100%; transform: rotate(-90deg); }
.sg-bk-pie circle { fill: none; stroke-width: 34; animation: sg-bk-pie-in 1.2s ease-out both; }
@keyframes sg-bk-pie-in { from { opacity: 0; } to { opacity: 1; } }
.sg-bk-col-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sg-space-m); }
.sg-bk-col-head > b { font-size: var(--sg-l); }
/* The charts, moving in the brand's motion: each part eases to its new value over --ch-ms in --ch-ease, one after
   the other --ch-step apart (--i its place). */
.sg-bk-charts :is(.sg-bk-pie circle, .sg-bk-pie line, .sg-bk-ch-bar > i, .sg-bk-ch-track > i, .sg-bk-ch-cols > span, .sg-bk-ch-cols small) { transition-duration: var(--ch-ms); transition-timing-function: var(--ch-ease); transition-delay: calc(var(--ch-step) * var(--i, 0)); }
.sg-bk-charts .sg-bk-pie circle { transition-property: stroke-dasharray, stroke-dashoffset; }
.sg-bk-charts .sg-bk-pie line { transform-origin: 100px 100px; transform-box: view-box; transition-property: transform; }
.sg-bk-ch-motion { font-size: var(--sg-s); opacity: .75; font-variant-numeric: tabular-nums; }
.sg-bk-t.sg-bk-ch-pie-t { align-items: center; }
.sg-bk-ch-ring { position: relative; flex: 1; min-height: 0; width: 100%; display: grid; place-items: center; }
.sg-bk-ch-ring .sg-bk-pie { position: absolute; inset: 0; height: 100%; }
.sg-bk-ch-mid { position: relative; font-size: var(--sg-title); font-variant-numeric: tabular-nums; }
.sg-bk-ch-cols { flex: 1; display: flex; gap: var(--sg-space-s); min-height: 0; }
.sg-bk-ch-cols > span { flex: 1; display: flex; flex-direction: column; gap: var(--sg-space-xs); padding: var(--sg-space-xs); border-radius: var(--c-col-r); transition-property: background-color; }
.sg-bk-ch-cols > span.is-sel { background: var(--c-col); }   /* the selected column: its own background behind the bar */
.sg-bk-ch-bar { flex: 1; display: flex; align-items: flex-end; background: repeating-linear-gradient(to top, var(--c-line) 0 var(--c-line-w), transparent var(--c-line-w) 25%); }   /* the lines across, at their own thickness */
.sg-bk-ch-bar > i { width: 100%; background: var(--c-idle); border-radius: var(--c-bar-r) var(--c-bar-r) 0 0; transition-property: height, background-color; }
.sg-bk-ch-cols > span.is-sel .sg-bk-ch-bar > i { background: var(--c-sel); }
.sg-bk-ch-cols small { text-align: center; font-size: var(--sg-s); color: var(--c-lab); transition-property: color; }
.sg-bk-ch-cols > span.is-sel small { color: var(--c-lab-sel); }
.sg-bk-ch-bars { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: var(--sg-space-s); }
.sg-bk-ch-bars > span { display: grid; grid-template-columns: minmax(5rem, 8rem) minmax(0, 1fr) calc(var(--sg-space-xxl) * 1.5); align-items: center; gap: var(--sg-space-m); font-size: var(--sg-s); }
.sg-bk-ch-bars b { text-align: right; font-variant-numeric: tabular-nums; }
.sg-bk-ch-track { display: block; height: var(--sg-space-m); overflow: clip; }
.sg-bk-ch-track > i { display: block; height: 100%; transition-property: width; }
@media (prefers-reduced-motion: reduce) { .sg-bk-charts * { transition: none !important; } }
@media (prefers-reduced-motion: reduce) { .sg-bk-bento *, .sg-bk-ticker *, .sg-bk-stripe * { animation: none !important; } }
/* Numbers: the brand's values set huge, cropped by their tiles. */
.sg-bk-t.sg-bk-num { overflow: clip; }
.sg-bk-num-label { position: relative; z-index: 1; font-size: var(--sg-s); }
.sg-bk-num-label.is-right { align-self: flex-end; }
.sg-bk-num b, .sg-bk-num-roll { line-height: normal; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sg-bk-num-xl { position: absolute; left: -2cqw; bottom: -12cqw; font-size: 42cqw; }
.sg-bk-num-l { position: absolute; left: var(--sg-space-m); bottom: -14cqw; font-size: 62cqw; }
.sg-bk-num-l.is-right { left: auto; right: -2cqw; }
.sg-bk-num-m { position: absolute; left: var(--sg-space-l); bottom: var(--sg-space-s); font-size: 34cqw; }
.sg-bk-num-m small { font-size: 17cqw; }
.sg-bk-num-s { position: absolute; left: 50%; top: 30%; font-size: 14cqw; }
.sg-bk-t.sg-bk-num-run { justify-content: center; padding-inline: 0; }
.sg-bk-num-slide { font-size: 22cqw; padding-left: var(--sg-space-l); animation: sg-bk-nslide 6s ease-in-out infinite; }
.sg-bk-num-slide em, @keyframes sg-bk-nslide { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-18%); } }
.sg-bk-num-roll { position: absolute; left: var(--sg-space-l); bottom: var(--sg-space-s); height: 1.1em; overflow: clip; font-size: 34cqw; }
.sg-bk-num-roll > div { display: flex; flex-direction: column; animation: sg-bk-nroll calc(var(--n) * 1.6s) cubic-bezier(.7, 0, .3, 1) infinite; }
.sg-bk-num-roll span { height: 1.1em; }
@keyframes sg-bk-nroll { 0%, 20% { transform: translateY(0); } 33%, 53% { transform: translateY(-25%); } 66%, 86% { transform: translateY(-50%); } 100% { transform: translateY(-75%); } }
/* Regular to Display and the scale: the letters measured, the sizes set in their own tokens, the sizes as bars. */
.sg-bk-t.sg-bk-tm { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) calc(20.75% + var(--sg-space-xxl) * 2.5); gap: 0; padding: 0; }
.sg-bk-tm-left, .sg-bk-tm-mid, .sg-bk-tm-bars { position: relative; display: flex; flex-direction: column; gap: var(--sg-space-m); padding: var(--sg-space-l); min-width: 0; }
.sg-bk-tm-kicker { font-size: var(--sg-s); opacity: .7; }   /* in the system's own case: no capitals it does not use */
.sg-bk-tm-svg { flex: 1; width: 100%; min-height: 0; overflow: visible; }   /* as large as its panel allows; its labels kept at the kit's label size (--tm-k, its scale) */
.sg-bk-tm-svg line { stroke-width: var(--bk-line-w, 1px); vector-effect: non-scaling-stroke; }
.sg-bk-tm-svg .is-acc { stroke: var(--bk-1); fill: var(--bk-1); }
.sg-bk-tm-svg .is-mute { stroke: currentColor; fill: currentColor; opacity: .7; }   /* readable in both modes */
.sg-bk-tm-svg .is-dash { stroke-dasharray: 4 4; }
.sg-bk-tm-svg text:not(.sg-bk-tm-aa) { font-size: calc(var(--sg-s) / var(--tm-k, 1)); stroke: none; fill: currentColor; }   /* small words in the tile's ink: the hue is for the large letters and the lines */
.sg-bk-tm-aa { fill: var(--bk-1); }
.sg-bk-tm::after { content: ''; position: absolute; inset: 0; z-index: 2; border-radius: inherit; box-shadow: inset 0 0 0 var(--bk-line-w, 1px) var(--sg-line-colour), inset 0 0 0 var(--bk-line-w, 1px) var(--t-bg); pointer-events: none; }   /* its outline over what fills it to the edge (the bars' panel), on a ring of the card's own ground so it is one colour all round */
.sg-bk-tm-ws { display: flex; flex-wrap: wrap; column-gap: var(--sg-space-l); row-gap: var(--sg-space-xxs); font-size: var(--sg-s); }
.sg-bk-tm-ws i { font-style: normal; }
.sg-bk-tm-rows { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: var(--sg-space-s); }
.sg-bk-tm-row { display: grid; grid-template-columns: calc(5rem - var(--sg-space-xl)) minmax(0, 1fr); align-items: baseline; gap: var(--sg-space-m); }
.sg-bk-tm-size { font-size: var(--sg-s); font-variant-numeric: tabular-nums; opacity: .7; white-space: nowrap; }
.sg-bk-tm-row.is-reg .sg-bk-tm-size { opacity: 1; font-weight: var(--sg-heading-weight); }   /* the body size, by weight, not colour */
.sg-bk-tm-say { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-bk-tm-note { margin: 0; font-size: var(--sg-s); }
.sg-bk-tm-cols { flex: 1; display: flex; align-items: flex-end; gap: var(--sg-space-xs); }
.sg-bk-tm-cols > span { position: relative; flex: 1; align-self: stretch; }
.sg-bk-tm-cols > span > i { position: absolute; left: 12%; right: 12%; bottom: 0; border-radius: var(--bk-btn-r, 0px) var(--bk-btn-r, 0px) 0 0; transition: height .7s cubic-bezier(.42, 0, .58, 1); }   /* the buttons' corners on top */   /* each bar grows to the breakpoint shown */
.sg-bk-tm-cols > span > s { position: absolute; left: 0; right: 0; height: 0; border-top: var(--bk-line-w, 1px) dotted currentColor; opacity: .7; }   /* the same size in another breakpoint */
.sg-bk-tm-svg g { transition: transform .6s cubic-bezier(.42, 0, .58, 1); }   /* the guides eased to where they fall */
.sg-bk-tm-aa, .sg-bk-tm-say { transition: font-size .6s cubic-bezier(.42, 0, .58, 1), font-weight var(--sg-move); }
.sg-tm-px.is-diff { color: var(--bk-1); }   /* a size that differs from the page's own breakpoint */
.sg-bk-tm-ws i[role="button"] { cursor: pointer; }
/* Depth: a stacked preview filling its half, beside every surface one size each. */
.sg-bk-t.sg-bk-dp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sg-card-gap); justify-content: stretch; padding: 0; background: none; box-shadow: none; overflow: visible; }   /* two cards, the kit's gap between them: the exploded view on the left, the preview on the right */
.sg-bk-t.sg-bk-dp { border-radius: calc(var(--bk-rad, var(--sg-radius)) * var(--dp-kn, 1)); }   /* the frame at the drawing's scale too (dpLeads measures it) */
.sg-bk-dp-iso, .sg-bk-dp > .sg-bk-dp-scene { border-radius: inherit; }
.sg-bk-dp-iso::after, .sg-bk-dp > .sg-bk-dp-scene::after { display: block; content: ''; position: absolute; inset: 0; z-index: 3; border-radius: inherit; box-shadow: inset 0 0 0 var(--bk-line-w, 1px) var(--sg-line-colour); pointer-events: none; }   /* each half's outline, the kit's card border as every other card (one solid colour, whatever lies under it) */   /* the preview and the exploded view, half each */   /* no card behind: the surfaces on the page */
.sg-bk-dp-scene { position: relative; min-height: 0; container-type: size; overflow: clip; }
/* --dp-k, the drawing's scale (its header, 9% of its height, stands for Figma's 80px one), is measured by dpFrame on the preview and on each layer: a radius, a border and a shadow are drawn at that scale, so a 12px corner on a 40px button keeps its proportion */   /* the stacked preview, the block's whole height; its line drawn once, above (::after) */
.sg-bk-dp-scene > i, .sg-bk-dp-plane > i { position: absolute; box-sizing: border-box; display: block; }
.sg-bk-dp-scene, .sg-bk-dp-scene > i, .sg-bk-dp-plane > i { cursor: pointer; }
.sg-bk-dp-scene > i { transition: opacity var(--sg-move), filter var(--sg-move); }
.sg-bk-dp-scene[data-focus] > i:not(.is-on), .sg-bk-dp-iso[data-focus] .sg-bk-dp-plane:not(.is-on) { filter: grayscale(1); }   /* what is not in focus turns neutral: no colour pulls the eye from the layer picked */
.sg-bk-dp-scene[data-focus] > i:not(.is-on) { opacity: .35; }   /* the layer in focus in the exploded view, lit in the preview too */
[data-sg-scheme="dark"] .sg-bk-dp-scene[data-focus] > i:not(.is-on) { opacity: .15; }
.sg-bk-dp-scene[data-focus] > i.is-on { outline: var(--bk-line-w, 1px) solid var(--dp-hue); outline-offset: calc(var(--bk-line-w, 1px) * -1);   /* a highlight in the theme's own border width */ z-index: 1; }   /* the layer in focus outlined in the hue: a surface as dark as the page still reads as picked */   /* dark surfaces barely part from a dark page: dimmer there */
.sg-bk-dp-iso { position: relative; display: grid; place-items: center; min-height: 0; perspective: calc(var(--sg-space-xxl) * 60); }   /* the same stack, pulled apart: one plane per height */
.sg-bk-dp-stack { position: relative; width: min(calc(84cqw - var(--sg-space-xxl) * 3.6), 65cqh); aspect-ratio: 3 / 4; justify-self: center; transform-style: preserve-3d; transition: transform var(--sg-move); transform: translateY(calc(var(--dp-ex, 1.5) * var(--sg-space-xxl) * 1.5)) scale(calc(1 - var(--dp-ex, 1.5) * .11)) rotateX(56deg) rotateZ(-38deg); }   /* as wide as the view allows and no taller than it fits, at any spread */   /* lowered by half what the planes rise, and a little smaller, so it stays whole at any spread */
.sg-bk-dp-plane { position: absolute; inset: 0; container-type: size; overflow: clip; border-radius: calc(var(--bk-rad, var(--sg-radius)) * var(--dp-k, 1)); transform: translateZ(calc(var(--z) * var(--sg-space-xxl) * var(--dp-ex, 1.5) + var(--dp-pop, 0px))); transition: transform var(--sg-move), opacity var(--sg-move), outline-color var(--sg-move); }
.sg-bk-dp-iso { background-image: linear-gradient(color-mix(in srgb, var(--t-fg) 2.5%, transparent) var(--bk-line-w, 1px), transparent 0), linear-gradient(90deg, color-mix(in srgb, var(--t-fg) 2.5%, transparent) var(--bk-line-w, 1px), transparent 0); background-size: var(--sg-space-xl) var(--sg-space-xl); }   /* a blueprint's faint grid, neutral */
.sg-bk-dp-idx { opacity: .6; margin-right: var(--sg-space-s); font-variant-numeric: tabular-nums; }   /* each layer's index, as a drawing numbers its parts */
.sg-bk-dp-iso { container-type: size; grid-template-rows: minmax(0, 1fr); padding: var(--sg-space-l) var(--sg-space-l) calc(var(--sg-space-l) * 5); order: -1; overflow: clip; }   /* the left card, on the page's raised surface, its callouts in the primary hue */
.sg-bk-dp-title { justify-self: start; align-self: start; position: relative; z-index: 1; }   /* set as the first card's Aa */
.sg-bk-dp-calls { position: absolute; inset: 0; pointer-events: none; font-size: var(--sg-s); }   /* each name set beside its layer's corner (dpLeads) */
.sg-bk-dp-call { position: absolute; white-space: nowrap; transform: translateY(-50%); pointer-events: auto; cursor: pointer; opacity: .55; transition: opacity var(--sg-move), color var(--sg-move); }   /* as the chips: dimmed, the one in focus in the hue */
.sg-bk-dp-call.is-on { opacity: 1; color: var(--dp-hue); }
.sg-bk-dp-iso:not([data-focus]) .sg-bk-dp-call, .sg-bk-dp-iso:not([data-focus]) .sg-bk-dp-leads g { opacity: 1; }   /* all the layers at once: every name as one */
.sg-bk-dp-call b { display: block; } .sg-bk-dp-call span { opacity: .8; }
.sg-bk-dp-leads { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.sg-bk-dp-leads g { opacity: .35; } .sg-bk-dp-leads g.is-on { opacity: 1; }
.sg-bk-dp-leads g.is-on polyline, .sg-bk-dp-leads g.is-on path { stroke: var(--dp-hue); }
.sg-bk-dp-leads polyline, .sg-bk-dp-leads path { fill: none; stroke: var(--t-fg); stroke-width: var(--bk-line-w, 1px); }
.sg-bk-dp-plane > i.sg-bk-dp-anchor { right: 0; bottom: 0; width: 0; height: 0; }   /* where a layer's leader line starts: its bottom right corner */
.sg-bk-dp-ex { position: absolute; left: var(--sg-space-l); right: var(--sg-space-l); bottom: var(--sg-space-l); display: flex; align-items: center; gap: var(--sg-space-s); font-size: var(--sg-s); }   /* how far the planes pull apart */
.sg-bk-dp-iso[data-focus] .sg-bk-dp-plane { opacity: .3; } .sg-bk-dp-iso[data-focus] .sg-bk-dp-plane.is-on { opacity: 1; }   /* the layer in focus lit, the rest faint */
.sg-bk-dp-spec { position: absolute; left: var(--sg-space-l); right: var(--sg-space-l); bottom: var(--sg-space-l); border-collapse: collapse; font-size: var(--sg-s); }   /* the focused layer's shadow, as its tokens */
.sg-bk-dp-name { caption-side: top; text-align: left; padding-bottom: var(--sg-space-s); font-size: calc(var(--sg-h1) * 2); color: var(--dp-hue); }   /* the layer in focus named over its specs, as the radius values are set */
.sg-bk-dp-spec td { padding: 0 var(--sg-space-m) var(--sg-space-xxs) 0; vertical-align: baseline; }
.sg-bk-dp-spec td:first-child, .sg-bk-dp-spec td:last-child, .sg-bk-dp-spec .sg-bk-dp-v { color: color-mix(in srgb, var(--t-fg) 55%, transparent); }
.sg-bk-dp-spec .sg-bk-dp-v { white-space: nowrap; } .sg-bk-dp-spec b { color: var(--t-fg); } .sg-bk-dp-spec td span { opacity: .75; }
.sg-bk-dp-sw { display: inline-block; width: var(--sg-space-s); height: var(--sg-space-s); border-radius: var(--sg-space-xxs); margin-right: var(--sg-space-xs); vertical-align: -1px; box-shadow: inset 0 0 0 var(--bk-line-w, 1px) var(--sg-line-colour); }
.sg-bk-dp-iso[data-state="flat"] { --dp-ex: 0; }   /* four spreads, the layers a third further apart each: flat on the page to exploded */
.sg-bk-dp-iso[data-state="close"] { --dp-ex: .53; }
.sg-bk-dp-iso[data-state="open"] { --dp-ex: 1.07; }
.sg-bk-dp-iso[data-state="exploded"] { --dp-ex: 1.6; }
.sg-bk-t.sg-bk-dpm { padding: var(--sg-space-l); }   /* one view: the stack from the front, tilting into the exploded view as the slider moves; in a card of the theme's ground that clips it */
.sg-bk-dpm-stage { --t: 0; position: relative; height: 100%; min-height: 0; box-sizing: border-box; padding-bottom: calc(var(--sg-space-l) * 3); display: grid; place-items: center; perspective: calc(var(--sg-space-xxl) * 60); }
.sg-bk-dpm-stack { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform: translateY(calc(var(--t) * 18%)) rotateX(calc(var(--t) * 56deg)) rotateZ(calc(var(--t) * -30deg)) scale(calc(1 - var(--t) * .45)); }   /* the block's whole width */
.sg-bk-dpm .sg-bk-dp-plane { transition: none; transform: translateZ(calc(var(--z) * var(--t) * var(--sg-space-xxl) * 1.8)); }
.sg-bk-dpm .sg-bk-dp-plane + .sg-bk-dp-plane { outline-color: color-mix(in srgb, var(--dp-edge) calc(var(--t) * 100%), transparent); }   /* the planes' edges show as they part */
.sg-bk-dpm .sg-bk-dp-plane[data-z="1"] > i { opacity: calc(1 - var(--t) * .35); }   /* the lowest layers fade a little, so what casts onto them reads */
.sg-bk-dpm .sg-bk-dp-plane[data-z="2"] > i { opacity: calc(1 - var(--t) * .2); }
.sg-bk-dpm-ctl { position: absolute; right: 0; bottom: 0; width: min(40%, calc(var(--sg-space-xxl) * 12)); display: flex; align-items: center; gap: var(--sg-space-s); font-size: var(--sg-s); }
.sg-bk-dpm-ctl input { flex: 1; min-width: 0; margin: 0; accent-color: var(--bk-hue, currentColor); }
.sg-bk-dp-plane:first-child { outline: var(--dp-line-w, var(--bk-line-w, 1px)) solid color-mix(in srgb, var(--t-fg, currentColor) 40%, transparent); }   /* the page, its edge drawn whole */
.sg-bk-dp-plane + .sg-bk-dp-plane { --dp-edge: color-mix(in srgb, var(--t-fg, currentColor) 40%, transparent); outline: var(--dp-line-w, var(--bk-line-w, 1px)) dashed var(--dp-edge); }   /* each plane's edge, where nothing sits on it */
.sg-bk-dp-scene > i > i, .sg-bk-dp-plane > i > i { position: absolute; box-sizing: border-box; display: block; }   /* the modal's own buttons */
.sg-bk-dp-scene > i > b, .sg-bk-dp-plane > i > b { position: absolute; top: 50%; width: 14%; height: 56%; transform: translateY(-50%); box-sizing: border-box; }   /* a surface's own buttons (the toast's two), in proportion to it */
.sg-bk-dp-scene::after { display: none; content: ''; position: absolute; inset: 0; z-index: 2; border-radius: inherit; box-shadow: inset 0 0 0 var(--dp-line-w, var(--bk-line-w, 1px)) var(--dp-line, var(--sg-line-colour)); pointer-events: none; }   /* the card's line all round, in the cards' own border, above the header and the panel at its edges */
@media (max-width: 720px) { .sg-bk-t.sg-bk-dp { grid-template-columns: 1fr; } .sg-bk-dp-scene { min-height: calc(var(--sg-space-xxl) * 9); } .sg-bk-dp-iso { min-height: calc(var(--sg-space-xxl) * 16); } }   /* one above the other, the exploded view its own height (it is sized by it) */
.sg-bk-tm-ends { display: flex; justify-content: space-between; font-size: var(--sg-s); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .sg-bk-tm *, .sg-bk-tm-aa { animation: none !important; } }
@media (max-width: 720px) { .sg-bk-t.sg-bk-tm { grid-template-columns: 1fr; } }
/* The ticker: two rows running opposite ways, names large with their colour, values small in pills. */
.sg-bk-ticker { margin-inline: calc(-1 * var(--sg-main-pad, 0px)); overflow: clip; color: var(--sg-text); }   /* edge to edge of the page, no side margins */
.sg-bk-tick-row { display: flex; align-items: center; width: max-content; white-space: nowrap; }
.sg-bk-tick-small { gap: var(--sg-space-m); font-size: var(--sg-m); animation: sg-bk-marquee-back 64s linear infinite; }
@keyframes sg-bk-marquee-back { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.sg-bk-tick-dot { flex: none; display: inline-block; width: 0.5em; height: 0.5em; border-radius: var(--sg-radius-pill); box-shadow: 0 0 0 var(--bk-line-w, 1px) var(--sg-line-colour); }
.sg-bk-tick-small .sg-bk-tick-dot { width: var(--sg-space-m); height: var(--sg-space-m); }
@keyframes sg-bk-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(calc(-1 * var(--sg-space-xs))) rotate(-8deg); } }
.sg-bk-tick-pill { display: inline-flex; align-items: center; gap: var(--sg-space-s); padding: var(--sg-space-xs) var(--sg-space-m); border: var(--bk-line-w, 1px) solid var(--sg-line-colour); border-radius: var(--bk-rad-l, var(--sg-radius-pill)); color: var(--sg-muted); }
/* The pairs as a stripe across the width, running. */
.sg-bk-stripe { margin-inline: calc(-1 * var(--sg-main-pad, 0px)); overflow: clip; }   /* on the page, edge to edge */
.sg-bk-stripe-run { display: flex; gap: var(--sg-card-gap); width: max-content; animation: sg-bk-marquee 360s linear infinite; }   /* slow: read as it passes */
.sg-bk-stripe-run { align-items: center; }   /* the surfaces centred on one line, still */
.sg-bk-surface { position: relative; flex: none; display: flex; flex-direction: column; justify-content: space-between; width: 18rem; padding: var(--sg-space-l); background: var(--bk); color: var(--bk-on); box-shadow: inset 0 0 0 var(--bk-line-w, 1px) var(--sg-line-colour), var(--bk-shadow, 0 0 #0000); }   /* a surface, its text on it, the radius it takes drawn in its corner */
.sg-bk-corner { position: absolute; left: 0; top: 0; width: var(--sg-space-xl); height: var(--sg-space-xl); overflow: visible; fill: none; stroke: currentColor; stroke-dasharray: 2 2; opacity: .6; }
.sg-bk-surface-top { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--sg-s); }   /* on the card's own padding, as every element in the kit's cards */
.sg-bk-surface-top > b { font-size: calc(var(--sg-h1) * 1.4); }
.sg-bk-surface-meta { font-size: var(--sg-s); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-bk-surface-meta > b { font-size: var(--sg-s); }   /* the component's name, first */
.sg-bk-stripe:hover .sg-bk-stripe-run { animation-play-state: paused; }
@media (max-width: 720px) { .sg-bk-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sg-bk-t:is(.w3, .w4) { grid-column: 1 / -1; } }
@media (prefers-reduced-motion: reduce) { .sg-bk-mv-dot { animation: none; } .sg-bk-tile, .sg-bk-radius, .sg-bk-pair, .sg-bk-wall > span, .sg-bk-ramp > span, .sg-bk-icon-cloud > span { transition: none; } }
@media (max-width: 720px) { .sg-bk-hero, .sg-bk-icons { grid-template-columns: 1fr; } .sg-bk-icon-big { border-right: 0; border-bottom: var(--sg-line); } .sg-bk-shape--wide { grid-column: auto; } .sg-bk-ramp-row, .sg-bk-type-row { grid-template-columns: 1fr; } }
/* Every line in the kit is the brand's border thickness (twice it for an emphasis), at any scale of its drawing. */
.sg-bk svg:not(.sg-bk-pie) :is(line, path, rect, circle) { vector-effect: non-scaling-stroke; stroke-width: var(--bk-line-w, 1px); }
.sg-bk svg:not(.sg-bk-pie) .is-strong { stroke-width: var(--bk-line-w, 1px); }   /* a highlight in the theme's own border width, its colour sets it apart */
/* The Tokens page, as Figma's panel: collections and groups on the left, the table on the right; on a narrow window the
   panel above the table, its groups scrolling in their own box. */
.sg-tk { display: grid; grid-template-columns: minmax(12rem, 16rem) minmax(0, 1fr); gap: var(--sg-card-gap); align-items: start; }   /* the side list and the table, separate cards a card gap apart */
.sg-tk-side { position: sticky; top: calc(var(--sg-sticky-top, 0px) + var(--pg-areas-h, 0px) + var(--sg-stick-gap)); max-height: calc(100vh - var(--sg-sticky-top, 0px) - var(--pg-areas-h, 0px) - var(--sg-stick-gap) * 2); display: flex; flex-direction: column; border: var(--sg-line); border-radius: var(--sg-radius); overflow: clip; box-shadow: var(--sg-shadow); }   /* one card, its collections then its groups, stuck as the table's head is */
/* The table's card at least as tall as the side list beside it: the two end together, so as the page scrolls the side
   list stays stuck while the table's head is, never sliding away above a short table. */
.sg-tk-main { min-height: var(--tk-side-h, 0px); }
.sg-tk-main > .sg-tk-tables { flex: 1; display: flex; flex-direction: column; gap: var(--sg-card-gap); }
.sg-tk-main > .sg-tk-tables > :last-child { flex: 1; }
.sg-tk-label { flex: none; font-size: var(--sg-s); color: var(--sg-muted); padding: var(--sg-space-s) var(--sg-cell-x); border-bottom: var(--sg-line); background: var(--sg-bg-2); }   /* its head, as the table's */
.sg-tk-colls-side { flex: none; display: flex; flex-direction: column; padding: var(--sg-space-s); border-bottom: var(--sg-line); }   /* the collections, whole, above the groups */
.sg-tk-groups { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 0; padding: var(--sg-space-s); }   /* the list scrolls under its head; its rows as wide as the collections' while it needs no scroll bar */
.sg-tk-item { display: flex; align-items: center; justify-content: space-between; gap: var(--sg-space-s); width: 100%; margin: 0; padding: var(--sg-space-s) var(--sg-space-m); border: 0; border-radius: var(--sg-control-radius); background: none; color: var(--sg-text-2); font: inherit; font-size: var(--sg-s); text-align: left; cursor: pointer; }
.sg-tk-item:hover { background: var(--sg-hover-fill); color: var(--sg-text); }
.sg-tk-item[aria-pressed="true"] { background: var(--sg-a3); color: var(--sg-text); }
.sg-tk-item:focus-visible { outline: 2px solid var(--sg-accent); outline-offset: var(--sg-focus-offset); }
.sg-tk-open-cell { width: calc(var(--sg-control-h) + var(--sg-space-m)); text-align: right; }   /* the arrow that opens a token's details */
.sg-tk-detail { flex: 1; min-width: 0; overflow: auto; padding: 0 var(--sg-card-gap) var(--sg-space-xxl); }
/* A side panel's page (sidePanelPage): its head stays at the panel's top, painted with the panel, as a component page's
   head stays under the page's bars; its body's cards a card gap apart, the first a stick gap under the head. */
.sg-panel-head { position: sticky; top: 0; z-index: 7; display: flex; flex-direction: column; gap: var(--sg-space-s); padding: var(--sg-space-xxl) 0 var(--sg-space-l); background: var(--sg-bg); }
/* As the page's own bars: its ground across the panel's whole width (into its side padding), and once the panel's content
   scrolls under it, the page's line under it, as wide. */
.sg-panel-head::before { content: ''; position: absolute; top: 0; bottom: 0; left: calc(-1 * var(--sg-card-gap)); right: calc(-1 * var(--sg-card-gap)); background: var(--sg-bg); z-index: -1; pointer-events: none; }
.sg-panel-head::after, .sg-panel-head.sg-sticky-edge::after { content: ''; position: absolute; left: calc(-1 * var(--sg-card-gap)); right: calc(-1 * var(--sg-card-gap)); bottom: 0; height: var(--sg-line-width, 1px); background: var(--sg-line-colour); opacity: 0; transition: opacity var(--sg-fast); pointer-events: none; }
.sg-panel-head.sg-sticky-edge::after { opacity: 1; }
.sg-panel-head > h2 { margin: 0; font-size: calc(var(--sg-title) + var(--sg-space-xxs) * 3.5); font-weight: var(--sg-heading-weight); color: var(--sg-text); line-height: normal; }   /* every panel's title as a page's own title (the first panel's): one size, one line height */
.sg-panel-head > .sg-section-badge, .sg-panel-head > .sg-panel-sub { margin: 0; }
.sg-panel-head > h2 .sg-tip { font-size: var(--sg-m); font-weight: var(--sg-text-weight); line-height: var(--sg-lh); vertical-align: middle; }   /* the row's tip after its title, at the table's size */
.sg-panel-sub { color: var(--sg-muted); font-size: var(--sg-s); overflow-wrap: anywhere; }
/* Where a panel sits, each level from the outermost, as a breadcrumb: the page under it, the component, the tab, the task. */
.sg-nav a > .sg-nav-tag { margin-left: auto; padding: 0 var(--sg-space-xs); border: var(--sg-line); border-radius: var(--sg-radius-s); color: var(--sg-muted); font-size: var(--sg-xs, var(--sg-s)); line-height: var(--sg-lh); }   /* a component the code has only as a CSS class */
.sg-panel-crumbs { display: flex; flex-wrap: wrap; align-items: center; margin: 0; color: var(--sg-muted); font-size: var(--sg-s); }
.sg-panel-crumbs > span + span::before { content: '\203A'; margin: 0 var(--sg-space-xs); color: var(--sg-muted); }
.sg-panel-crumbs > span:last-child { color: var(--sg-text-2); }
/* A page shown in a panel says what it is under: the page the panel opened from, before its own group. */
.sg-section-badge[data-trail]::before { content: attr(data-trail) '\00a0\203A\00a0'; }
.sg-panel-body { display: flex; flex-direction: column; gap: var(--sg-card-gap); }
.sg-panel-body .pg-inspect-head { top: var(--sg-panel-head-h, 0px); }   /* a card's head right under the panel's head, whose own bottom padding is the gap: the first card starts there, so its head never rests lower than it sits, over its own first line */
.sg-panel-body .pg-inspect-head ~ .pg-par-scroll .pg-par-table th { top: calc(var(--sg-panel-head-h, 0px) + var(--pg-card-head-h, 0px)); }   /* its table's head under it */
.sg-tk-none { margin: 0; padding: var(--sg-space-m) var(--sg-cell-x); color: var(--sg-muted); font-size: var(--sg-s); }
.sg-tk-row { --d: 0; position: relative; display: flex; align-items: center; gap: var(--sg-space-xxs); padding-left: calc(var(--d) * var(--tk-ind)); border-radius: var(--sg-control-radius); }   /* indented by its depth, its fill the list's whole width */
.sg-tk-row > .sg-tk-item { flex: 1; min-width: 0; background: none; }
/* The whole row answers, its chevron with its name: hovered, and chosen. */
.sg-tk-row:hover { background: var(--sg-hover-fill); }
.sg-tk-row:hover > .sg-tk-item { color: var(--sg-text); }
.sg-tk-row:has(> .sg-tk-item[aria-pressed="true"]) { background: var(--sg-a3); }
.sg-tk-row > .sg-tk-item:hover, .sg-tk-row > .sg-tk-item[aria-pressed="true"] { background: none; }
.sg-tk-row > button.sg-tk-twist:hover { background: none; color: var(--sg-text); }
/* The tree's lines, as Figma draws them: under a group's chevron, down to each group inside it, an elbow to each, the
   last one's rounded. */
.sg-tk-groups { --tk-ind: calc(var(--sg-space-l) + var(--sg-space-xs)); --tk-tw: calc(var(--sg-space-l) + var(--sg-space-xs)); }
.sg-tk-row > .sg-tk-item { padding-left: var(--sg-space-xs); }   /* a group's name just after its chevron (or where one would be), not a whole padding away */
.sg-tk-guide { position: absolute; top: 0; bottom: 0; left: calc(var(--k) * var(--tk-ind) + var(--tk-tw) / 2); width: calc(var(--tk-ind) - var(--tk-tw) / 2 + var(--sg-space-xxs)); pointer-events: none; border-left: var(--sg-line-width, 1px) solid var(--sg-line-colour); }
.sg-tk-guide[data-t="tee"]::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: var(--sg-line-width, 1px) solid var(--sg-line-colour); }
.sg-tk-guide[data-t="end"] { bottom: 50%; border-bottom: var(--sg-line-width, 1px) solid var(--sg-line-colour); border-bottom-left-radius: var(--sg-radius-s); }
.sg-tk-guide[data-t="pass"] { width: 0; }
/* The chosen group, open: it and what is inside it one block, the chosen row a step stronger. */
.sg-tk-row.is-in-sel { background: var(--sg-a2); border-radius: 0; }
.sg-tk-row.is-in-sel:hover { background: linear-gradient(var(--sg-hover-fill), var(--sg-hover-fill)) var(--sg-a2); }
.sg-tk-row.is-in-sel-last { border-radius: 0 0 var(--sg-control-radius) var(--sg-control-radius); }
.sg-tk-row.is-sel-open { border-radius: var(--sg-control-radius) var(--sg-control-radius) 0 0; }
.sg-tk-twist { flex: none; display: inline-flex; align-items: center; justify-content: center; width: calc(var(--sg-space-l) + var(--sg-space-xs)); height: calc(var(--sg-space-l) + var(--sg-space-xs)); margin: 0; padding: 0; border: 0; border-radius: var(--sg-radius-s); background: none; color: var(--sg-muted); cursor: pointer; }
.sg-tk-twist > svg { width: var(--sg-mark); height: var(--sg-mark); transition: transform var(--sg-fast); }
button.sg-tk-twist:hover { background: var(--sg-hover-fill); color: var(--sg-text); }
.sg-tk-twist[aria-expanded="true"] > svg { transform: rotate(90deg); }   /* open: the chevron points down */
.sg-tk-twist:focus-visible { outline: 2px solid var(--sg-accent); outline-offset: var(--sg-focus-offset); }
.sg-tk-n { color: var(--sg-muted); font-variant-numeric: tabular-nums; }
.sg-tk-main { min-width: 0; display: flex; flex-direction: column; gap: var(--sg-card-gap); }
.sg-tk-tables { display: flex; flex-direction: column; gap: var(--sg-card-gap); }
.pg-inspect.sg-token-card .sg-tk-group > th { position: sticky; top: calc(var(--sg-sticky-top, 0px) + var(--pg-areas-h, 0px) + var(--sg-stick-gap) + var(--pg-card-head-h, 0px) + var(--tk-colhead-h, 0px)); z-index: 4; background: linear-gradient(var(--sg-tint), var(--sg-tint)) var(--sg-bg); }   /* the group in view stays named under the modes' row, the next one taking its place */
.pg-inspect.sg-token-card .sg-tk-collhead > th { position: sticky; top: calc(var(--sg-sticky-top, 0px) + var(--pg-areas-h, 0px) + var(--sg-stick-gap) + var(--pg-card-head-h, 0px)); z-index: 6; background: var(--sg-bg-2); border-top: var(--sg-line); }   /* the next collection's names take the head's place as it scrolls in */
.sg-token-card :is(thead, .sg-tk-collhead) th b { color: var(--sg-text); font-weight: var(--sg-heading-weight); }
.sg-tk-group > th b { color: var(--sg-text); font-weight: var(--sg-heading-weight); }
.sg-tk-crumb { margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }   /* a part of the group's path: opens that folder */
.sg-tk-crumb:hover { color: var(--sg-text); text-decoration: underline; text-underline-offset: var(--sg-underline-offset); }
.sg-tk-crumb:focus-visible { outline: 2px solid var(--sg-accent); outline-offset: var(--sg-focus-offset); }
.sg-link-pill { display: inline-flex; align-items: center; gap: var(--sg-space-s); max-width: 100%; margin: 0; padding: var(--sg-space-xs) var(--sg-space-s); border: var(--sg-line); border-radius: var(--sg-radius-s); background: none; color: var(--sg-text); font: inherit; font-size: var(--sg-s); font-weight: var(--sg-text-weight); text-align: left; overflow-wrap: break-word; word-break: normal; cursor: pointer; text-decoration: none; }   /* anything that opens something else, in a table: its words in a pill, an arrow after them (a token's alias, a component's area) */
.sg-link-pill:hover { background: var(--sg-hover-fill); border-color: var(--sg-border-hover); }
.sg-link-pill[hidden] { display: none; }   /* a pill past the first ten of a list stays out of view until its More asks for it */
.sg-link-pill--table { margin: var(--sg-space-xxs) var(--sg-space-xxs) var(--sg-space-xxs) 0; vertical-align: middle; }
.sg-il-codes > .sg-link-pill--table { margin: 0; }   /* in a list of names, the list's own gap sets it apart */
.sg-pills-more > svg { width: var(--sg-mark, 1rem); height: var(--sg-mark, 1rem); flex: none; }   /* the chevron before the count: it opens the rest */   /* a link in a table, as a pill: several in one cell sit apart */
table a[href].sg-link-pill.sg-link-pill--table { text-decoration: none; color: var(--sg-text); }   /* never underlined, as a pill is not */
table a[href].sg-link-pill.sg-where-pill { color: var(--sg-muted); }   /* where else a commit changed things: quieter than a component */
.sg-link-pill > .sg-link-words > code { font-size: inherit; }
/* A pill's words on one line, cut short with an ellipsis when they do not fit: its whole name shows on hover (its title). */
.sg-link-pill > .sg-link-words { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sg-link-pill:focus-visible { outline: 2px solid var(--sg-accent); outline-offset: var(--sg-focus-offset); }
.sg-link-pill > .sg-link-go { flex: none; width: var(--sg-mark); height: var(--sg-mark); color: var(--sg-muted); margin-left: calc(var(--sg-space-s) / -2); }   /* the arrow half the pill's gap from its words */
.sg-link-pill:hover > .sg-link-go { color: var(--sg-text); }
.sg-link-pill > .pg-par-status { margin: 0; }
.sg-tk-table .sg-token-swatch { display: inline-block; vertical-align: middle; flex: none; width: var(--sg-space-l); height: var(--sg-space-l); margin: 0 var(--sg-space-s) 0 0; border-radius: var(--sg-radius-s); }   /* one swatch size everywhere in the table, as in Figma */
.sg-tk-alias > .sg-token-swatch, .sg-tk-name > .sg-token-swatch { margin: 0; }
/* A colour inside a link pill, wherever the pill is (a table, a panel): the same small circle. */
.sg-link-pill > .sg-token-swatch { flex: none; width: var(--sg-space-l); height: var(--sg-space-l); margin: 0; border-radius: var(--sg-radius-pill); }
.sg-tk-code-line { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: var(--sg-space-s); }   /* its name and Copy on one line */
.sg-tk-alias > .sg-tk-mark { width: var(--sg-space-l); height: var(--sg-space-l); }
.sg-tk-table tr[data-token] { cursor: pointer; }   /* the whole row opens the token's details, as a Status row opens its component */
.sg-tk-table tr[data-token]:hover > td { background: var(--sg-a2); }
.sg-tk-table tr[data-token]:active > td { background: var(--sg-a3); }
.sg-tk-table tr.is-target > td { background: var(--sg-a3); transition: background-color var(--sg-move); }
.sg-tk-names { min-width: 0; }
.sg-tk-mark.sg-token-swatch { display: inline-block; margin: 0; }
.sg-tk-resolved { display: block; margin-top: var(--sg-space-xxs); font-size: var(--sg-s); color: var(--sg-muted); }
.sg-tk-name { display: flex; align-items: flex-start; gap: var(--sg-space-xs); }   /* the kind's icon close to its name */
.sg-tk-mark > svg { width: var(--sg-space-l); height: var(--sg-space-l); }   /* the kind's icon alone, as large as the box allows */
.sg-tokens-chips .sg-tk-colls { display: contents; }   /* the Collection filter first in the row of chips */
.sg-tk-mark { flex: none; display: inline-flex; align-items: center; justify-content: center; width: calc(var(--sg-space-l) + var(--sg-space-xs)); height: calc(var(--sg-space-l) + var(--sg-space-xs)); border: 0; border-radius: var(--sg-radius-s); font-size: var(--sg-xs); color: var(--sg-muted); }
@media (max-width: 720px) { .sg-tk { grid-template-columns: 1fr; } .sg-tk-side { position: static; max-height: none; } .sg-tk-main { min-height: 0; } .sg-tk-groups { max-height: 40vh; } .sg-tk > .sg-tk-side { border-radius: var(--sg-radius) var(--sg-radius) 0 0; } .sg-tk > .sg-tk-main .sg-tk-table { border-left: var(--sg-line); border-radius: 0 0 var(--sg-radius) var(--sg-radius); border-top: 0; } }
.sg-token-name, .sg-token-var { display: block; overflow-wrap: break-word; word-break: normal; }   /* a name breaks after a slash, never inside a word */
.sg-token-var { margin-top: var(--sg-space-xxs); font-size: var(--sg-s); color: var(--sg-muted); }   /* the code's variable under Figma's name, quieter */   /* a mode a column: a narrow window scrolls the table sideways */
.pg-inspect[hidden] { display: none; }
.pg-inspect { border: var(--sg-line); border-radius: var(--sg-radius); overflow: clip; box-shadow: var(--sg-shadow); }
.pg-inspect-head { font-size: var(--sg-s); font-weight: var(--sg-text-weight); color: var(--sg-muted); padding: var(--sg-space-s) var(--sg-cell-x); border-bottom: var(--sg-line); background: var(--sg-bg-2); }
/* The Intent layer and For agents pages: a card's line under its head, and its rows read from the top. */
.sg-il-lead { margin: 0; padding: var(--sg-space-s) var(--sg-cell-x); color: var(--sg-muted); font-size: var(--sg-s); border-bottom: var(--sg-line); }
.sg-il td { vertical-align: top; }
.sg-il-partof { margin-right: var(--sg-space-s); }   /* "Part of" and the component's chip, apart */
.sg-il-status { display: block; }   /* its one status, with what it means under it */
/* Balanced at every width: the file (its name and path) takes what the others leave. */
.sg-issues.sg-il th:nth-child(1) { width: 22%; }      /* For: a component's name or a layer */
.sg-issues.sg-il th:nth-child(3) { width: 16%; }      /* Sources: Intent layer, Figma, Code */
.sg-issues.sg-il th:nth-child(4) { width: 15%; }      /* Decision: Review and its topic, or Keep */
.sg-issues.sg-il:not(.sg-il-nofile) th:nth-child(5) { width: 9.5rem; }   /* Last updated: a date and a time on one line */
/* With no intent layer there is no File column: For and Sources a share each, Status (its word and what it means under
   it) what the others leave, Last updated a date and a time; the row's arrow keeps its narrow column. A narrow window
   scrolls the table sideways rather than squeeze a component's name. */
.sg-issues.sg-il.sg-il-nofile { min-width: 46rem; }
.sg-issues.sg-il.sg-il-nofile th:nth-child(1) { width: 26%; }
.sg-issues.sg-il.sg-il-nofile th:nth-child(2) { width: 20%; }
.sg-issues.sg-il.sg-il-nofile th:nth-child(3) { width: auto; }
.sg-issues.sg-il.sg-il-nofile th:nth-child(4) { width: 9.5rem; }
/* File takes the rest: a page's name and its path. */
/* A page title with what it links to at its right (pageBar): the title stays sticky; the links keep the page's text size. */
.sg-section > h2.sg-h2-links { display: flex; align-items: center; justify-content: space-between; gap: var(--sg-space-m); flex-wrap: wrap; }
.sg-h2-links > .pg-head-links { font-size: var(--sg-m); font-weight: var(--sg-text-weight); line-height: var(--sg-lh); }
/* Each task row opens in full in the side panel: a long cell shows its first lines, faded, in the table. */
tr.sg-row-open { cursor: pointer; }
tr.sg-row-open:hover > td { background: var(--sg-a3); }
tr.sg-row-open:focus-visible { outline: 2px solid var(--sg-accent); outline-offset: -2px; }
.sg-cell-clip { max-height: 7.5em; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, var(--sg-text) 70%, transparent); mask-image: linear-gradient(to bottom, var(--sg-text) 70%, transparent); }
.sg-doc-notes { margin: var(--sg-space-xs) 0 var(--sg-space-s); padding-inline-start: 1.2em; }   /* the points to cover, for this component */
.sg-doc-notes li + li { margin-top: var(--sg-space-xxs); }
/* A name or a value inside a task's words (a property, a layer, a variable, what each side says): a pill of its own, so
   it never reads as part of the sentence (the owner's, 12 November 2026). The template's own surface, line and radius. */
.sg-name { display: inline-flex; align-items: center; max-width: 100%; margin: 0; padding: var(--sg-space-xs) var(--sg-space-s); border: var(--sg-line); border-radius: var(--sg-radius-s); background: none; color: var(--sg-text); font: inherit; font-size: var(--sg-s); font-weight: var(--sg-text-weight); overflow-wrap: anywhere; }   /* a name or a value, set apart: the box of a link pill (its padding, line, corners and words' size), so names and a list's "N more" sit together at one height. One style for every list of names on the page */
.sg-name[hidden] { display: none; }
/* Inside a sentence, a name keeps the line's own size and height. */
:is(.sg-il-line, .sg-il-text, .pg-par-val, .sg-il-source, .sg-il-fix, .sg-il-fix-use) .sg-name:not(.sg-il-codes > .sg-name), .sg-row-detail-body > p .sg-name { display: inline; margin: 0 var(--sg-space-xxs); padding: 0 var(--sg-space-xs); font-size: inherit; line-height: inherit; }   /* inside a sentence, a name is a pill the size of its words: it never makes its line taller, with room inside it around its words and a little outside it from the words beside it (the owner's, 14 November 2026) */
/* A row's panel opens with what to do, in its card as every other: its words larger and bold in the text's own colour,
   whatever writes them (the owner's, 12 November 2026). Size and weight only, the template's own. */
.pg-inspect.sg-lead-card { --sg-line-colour: color-mix(in srgb, var(--sg-text) 45%, transparent); --sg-line-solid: color-mix(in srgb, var(--sg-text) 45%, var(--sg-bg)); border-color: var(--sg-line-solid); border-width: calc(2 * var(--sg-line-width, 1px)); }   /* its box in a stronger line than the others, its corners with it */
.pg-inspect.sg-lead-card > .pg-inspect-head { position: static; background: none; border-bottom: 0; box-shadow: none; padding: var(--sg-cell-x) var(--sg-cell-x) 0; }   /* no head: a small label over the sentence */
.pg-inspect.sg-lead-card > .pg-inspect-head::before, .pg-inspect.sg-lead-card > .pg-inspect-head::after { content: none; }
:is(#sg-row-panel, #sg-il-panel, #sg-cx-panel, #sg-fc-panel) .pg-inspect.sg-lead-card > .pg-inspect-head { box-shadow: none; }   /* its label never sticks, so it paints no strip over the card's top border (by the panel's id, as the theme editor does) */
.pg-inspect.sg-lead-card > .sg-row-detail-body { padding: var(--sg-space-xs) var(--sg-cell-x) var(--sg-cell-x); }
.pg-inspect.sg-lead-card > .sg-row-detail-body :last-child { margin-bottom: 0; }
.pg-inspect.sg-lead-card { background: var(--sg-bg-2); }   /* a slight grey under it, the template's own second ground (a card head's), so the task stands apart from the cards after it */   /* the last thing in it (its buttons) ends on the card's own padding, never on a margin of its own: the same space all round */   /* the same space all round: the sides' on top and at the bottom */
.pg-inspect.sg-lead-card > .sg-row-detail-body { font-size: var(--sg-m); line-height: var(--sg-lh-read); font-weight: var(--sg-text-weight); color: var(--sg-text); }   /* one structure in every What to do: its sentence, its bullets, a quieter note, names in pills */
.pg-inspect.sg-lead-card > .sg-row-detail-body > .sg-il-line:first-child, .pg-inspect.sg-lead-card > .sg-row-detail-body > p:first-child, .pg-inspect.sg-lead-card > .sg-row-detail-body > .sg-il-line:first-child :is(.sg-il-text, strong) { font-size: var(--sg-xl); line-height: var(--sg-lh-read); font-weight: var(--sg-heading-weight); color: var(--sg-text); }   /* its sentence, the task itself, one step up the template's scale */
.pg-inspect.sg-lead-card .sg-il-points :is(.pg-par-val, .sg-il-text, .sg-il-label) { display: block; font-size: inherit; line-height: inherit; font-weight: var(--sg-text-weight); color: var(--sg-text); margin: 0; }   /* a bullet: one size, one weight, one colour */
.pg-inspect.sg-lead-card .sg-il-points .sg-il-item > strong:first-child { display: block; font-size: inherit; line-height: inherit; font-weight: var(--sg-heading-weight); color: var(--sg-text); margin: 0; }   /* its head bold, the size of its words */
.pg-inspect.sg-lead-card :is(.sg-il-source, .sg-il-quiet-head) { font-size: var(--sg-s); font-weight: var(--sg-text-weight); color: var(--sg-muted); }   /* the one quieter style: a note on a bullet or over a list */
.pg-inspect.sg-lead-card .sg-il-group-head > strong { font-size: var(--sg-m); font-weight: var(--sg-heading-weight); color: var(--sg-text); }   /* a section's heading, where a card has several */
.sg-row-detail-body { padding: var(--sg-space-s) var(--sg-cell-x); overflow-wrap: anywhere; font-size: var(--sg-m); line-height: var(--sg-lh-read); font-weight: var(--sg-text-weight); color: var(--sg-muted); }
/* One style in every panel: running text muted; what names something (a title, a label, a table's heading, a link, a
   code name, a status) in the text colour. A line's leading title is a step larger (below). */
.sg-row-detail-body :is(strong, b, th, a, code, .sg-il-head, .sg-il-label, .pg-par-status, .sg-uses-link) { color: var(--sg-text); }
.sg-row-detail-body .sg-todo-who { display: inline; margin: 0; font-weight: inherit; color: inherit; }   /* who acts is running text in a panel, as what to do is: one colour, one weight */
/* A panel's card in the page's running text, the table's own: one size and one line height for all it holds, each
   finding a paragraph of its own (its sign, a table's mark, left to the table). */
.sg-row-detail-body :is(.pg-a11y-item, .pg-par-status, .sg-todo-who, .sg-il-line, .pg-missing) { font-size: inherit; line-height: inherit; }   /* a secondary line (pg-par-val) keeps the table's own size and colour */
.sg-row-detail-body .pg-a11y-item { display: block; }
.sg-row-detail-body .pg-a11y-item > [class^="pg-par--"]:first-child { display: none; }
.sg-affects .pg-par-val { display: block; }
.sg-row-detail-body > p, .sg-row-detail-body .sg-il-line { margin: 0 0 var(--sg-space-xs); }
/* In a panel, each point is a block of its own: its title a step larger, its words the body's own size, a clear space
   before the next one. */
.sg-row-detail-body .sg-il-line { margin: 0 0 var(--sg-space-l); }
.sg-row-detail-body .sg-il-line:last-child { margin-bottom: 0; }
.sg-row-detail-body .sg-il-line .pg-par-val { display: block; font-size: inherit; line-height: inherit; margin-top: var(--sg-space-xxs); }
.sg-row-detail-body .sg-il-label { display: block; margin-top: var(--sg-space-s); font-size: var(--sg-s); font-weight: var(--sg-heading-weight); color: var(--sg-text); }   /* Points to cover, How to write it, Where */
.sg-row-detail-body :is(.sg-il-line > strong:first-child + .sg-il-label, .sg-il-line > .sg-il-label:first-child) { margin-top: 0; }
.sg-row-detail-body .sg-il-text { display: block; margin-top: var(--sg-space-xxs); color: var(--sg-muted); font-weight: var(--sg-text-weight); }
.sg-row-detail-body .sg-il-points { margin: var(--sg-space-xxs) 0 0; padding-left: var(--sg-space-l); color: var(--sg-muted); font-weight: var(--sg-text-weight); }
.sg-row-detail-body .sg-il-points li + li { margin-top: var(--sg-space-xxs); }
.sg-row-detail-body .sg-il-points > li.sg-il-item { display: list-item; list-style: disc; margin: 0 0 var(--sg-space-xs); }   /* each draft a bullet, when the card's sentence already says what they are */
.sg-row-detail-body .sg-il-cmd { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; margin-top: var(--sg-space-xs); }   /* the answer's command, Copy beside it on the right, however long the command */
.sg-row-detail-body .sg-il-cmd > code { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.sg-row-detail-body .sg-il-cmd > button { flex: none; }
.sg-row-detail-body .sg-il-draft { margin-top: var(--sg-space-xl); }   /* each draft and its decisions, apart from the next */
.sg-row-detail-body :is(.sg-cx-changes, .sg-il-line) + .sg-decide-grid { margin-top: var(--sg-space-xl); }   /* the decision under the draft it is for */
.sg-row-detail-body .sg-cx-changes { margin-top: var(--sg-space-xl); }   /* what a suggestion changes, under it: a label, then each change beside what takes it, as labelled values (never a box drawn as a table) */
.sg-row-detail-body .sg-cx-changes > .sg-il-label { margin-top: 0; }
.sg-row-detail-body .sg-cx-kv { padding: 0; margin-top: var(--sg-space-s); gap: var(--sg-space-m); }
.sg-row-detail-body .sg-cx-kv dt { font-size: inherit; }
/* The changes a task lists: a list of items, one a row, in columns, with a line between rows, the labels once above
   them (the owner's, 16 November 2026). Two columns (what takes it, what to do), or three for a rename (now, rename to). */
.sg-row-detail-body .sg-cx-rows { list-style: none; margin: var(--sg-space-s) 0 0; padding: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: var(--sg-space-xl); }   /* one grid for every row, so each column is as wide as its longest name and the rows line up */
.sg-row-detail-body .sg-cx-row { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: baseline; padding: var(--sg-space-s) 0; min-width: 0; }
.sg-row-detail-body .sg-cx-rows--3 { grid-template-columns: max-content max-content minmax(0, 1fr); }   /* a rename: the place, the name now and the name it takes, each as wide as its longest */
.sg-row-detail-body .sg-cx-row + .sg-cx-row { border-top: var(--sg-line); }
.sg-row-detail-body .sg-cx-row > span { min-width: 0; }   /* a name breaks only after a "/" (<wbr>), never inside a word */
.sg-row-detail-body .sg-cx-row .sg-name { overflow-wrap: normal; display: inline-block; }
.sg-row-detail-body .sg-nw { white-space: nowrap; }   /* one part of a name, kept whole */   /* whole: a name breaks only after a "/" (<wbr>), never inside a word */
.sg-row-detail-body .sg-cx-row--head { padding-top: 0; font-size: var(--sg-s); color: var(--sg-muted); }
.sg-row-detail-body .sg-cx-row--head + .sg-cx-row { border-top: none; }
@media (max-width: 600px) { .sg-row-detail-body .sg-cx-rows, .sg-row-detail-body .sg-cx-rows--3 { grid-template-columns: minmax(0, 1fr); } .sg-row-detail-body .sg-cx-row { grid-template-columns: minmax(0, 1fr); row-gap: var(--sg-space-xs); } .sg-row-detail-body .sg-cx-row--head { display: none; } }
.sg-row-detail-body .sg-cx-say { display: block; }   /* each change on its own line, never run together */
.sg-row-detail-body .sg-cx-kv dt .sg-cx-pills { flex-direction: column; align-items: flex-start; }   /* the components an entry is for, one under another */
.sg-row-detail-body .sg-cx-pills { display: flex; flex-wrap: wrap; gap: var(--sg-space-xs); margin: 0; padding: 0; list-style: none; }
.sg-row-detail-body .sg-cx-figma { display: inline-flex; align-items: center; gap: var(--sg-space-xs); }   /* a component opened in Figma, with Figma's mark */
.sg-row-detail-body .sg-il-example { display: block; margin: var(--sg-space-s) 0 0; overflow-x: auto; }   /* a drafted example's code, under its line */
.sg-row-detail-body .sg-il-example code { font-size: var(--sg-s); font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre; font-variant-ligatures: none; }
.sg-row-detail-body .sg-il-draft-text { margin-bottom: var(--sg-cell-x); }   /* the drafts, then what can be done with them, as much room between as at the card's sides */
.sg-decide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: var(--sg-space-l); align-items: start; margin-bottom: calc(var(--sg-cell-x) - var(--sg-space-s)); }   /* under them, the card's own side padding (its body's bottom padding is less) */   /* the three side by side, each as tall as it holds; under one another where there is no room */
.sg-decide { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sg-space-s); padding: var(--sg-space-m) var(--sg-space-l); border: var(--sg-line); border-radius: var(--sg-radius-s); background: color-mix(in srgb, var(--sg-decide-hue) 12%, transparent); }
.sg-decide--approve { --sg-decide-hue: #2e7d32; } .sg-decide--change { --sg-decide-hue: #b26a00; } .sg-decide--drop { --sg-decide-hue: var(--sg-danger); }   /* the page's own hues, only as a tint: the words stay the page's */
:where(:root)[data-sg-scheme="dark"] .sg-decide--approve { --sg-decide-hue: #6fcf75; } :where(:root)[data-sg-scheme="dark"] .sg-decide--change { --sg-decide-hue: #f0b35a; }
.sg-decide-head { display: flex; align-items: center; gap: var(--sg-space-s); margin-right: auto; color: var(--sg-text); font-weight: var(--sg-heading-weight); }   /* its mark and name, the button at the other end */
.sg-decide .sg-decide-mark { color: var(--sg-decide-hue); }   /* the mark takes the card's hue; the words keep the page's */
.sg-decide-said { flex-basis: 100%; color: var(--sg-muted); font-size: var(--sg-s); }
.sg-decide-said:empty { display: none; }   /* where to paste it, on its own line once copied */
.sg-decide-mark { width: var(--sg-mark); height: var(--sg-mark); flex: none; color: var(--sg-muted); }   /* a decision's mark, there to tell the three apart at a glance */
.sg-row-detail-body .sg-il-group-decide + .sg-il-group-decide { margin-top: var(--sg-space-xl); }   /* New text for the page, Changes to rules, Other changes: each its own block */
.sg-row-detail-body .sg-il-group-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sg-space-s); }   /* its heading and count, Approve all at the other end */
.sg-row-detail-body .sg-il-group-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sg-space-s); margin-top: var(--sg-cell-x); }   /* the group's three actions, under its proposals */
.sg-row-detail-body .sg-il-group-actions [data-il-do] { padding: var(--sg-space-m) var(--sg-space-l); font-size: var(--sg-m); gap: var(--sg-space-s); }   /* large enough to find and hit */
.sg-row-detail-body [data-il-do="approve"] { --sg-decide-hue: #2e7d32; } .sg-row-detail-body [data-il-do="change"] { --sg-decide-hue: #b26a00; } .sg-row-detail-body [data-il-do="drop"] { --sg-decide-hue: var(--sg-danger); }
:where(:root)[data-sg-scheme="dark"] .sg-row-detail-body [data-il-do="approve"] { --sg-decide-hue: #6fcf75; } :where(:root)[data-sg-scheme="dark"] .sg-row-detail-body [data-il-do="change"] { --sg-decide-hue: #f0b35a; }
.sg-row-detail-body [data-il-do] .sg-decide-mark { color: var(--sg-decide-hue); }   /* each action's mark in its hue */
.sg-row-detail-body .sg-il-source { display: block; margin-top: var(--sg-space-xxs); color: var(--sg-muted); font-size: var(--sg-s); font-weight: var(--sg-text-weight); }   /* where a draft comes from */
.sg-row-detail-body .sg-il-source--warn { color: var(--sg-text); padding-left: var(--sg-space-s); border-left: 2px solid var(--sg-danger); }   /* a name only Figma has, written as a prop */
/* A draft that needs a fix: what is wrong with it, the wording offered instead and a button to take it, in a box of
   the template's own yellow (its Review dot's), so a problem reads as one at a glance (the owner's, 12 November 2026). */
.sg-row-detail-body .sg-il-fix { display: block; margin: var(--sg-space-xs) 0 var(--sg-space-xxs); padding: var(--sg-space-s) var(--sg-space-m); border: var(--sg-line-width, 1px) solid var(--sg-warning-ink); border-radius: var(--sg-radius-s); background: color-mix(in srgb, var(--sg-warning-ink) 12%, var(--sg-bg)); font-size: var(--sg-s); font-weight: var(--sg-text-weight); color: var(--sg-text); line-height: var(--sg-lh-read); }
.sg-row-detail-body .sg-il-fix > strong { font-weight: var(--sg-heading-weight); }
.sg-row-detail-body .sg-il-fix-use { display: block; margin-top: var(--sg-space-xxs); }
.sg-row-detail-body .sg-il-fix-act { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sg-space-s); margin-top: var(--sg-space-s); }
.pg-inspect.sg-lead-card .sg-il-points .sg-il-say { font-weight: var(--sg-heading-weight); }
.sg-row-detail-body .sg-il-where { display: block; margin: 0; color: var(--sg-muted); font-size: var(--sg-s); font-weight: var(--sg-text-weight); }   /* a draft's section, a quiet label over its line, so the line reads as a sentence */
.sg-row-detail-body .sg-il-shared { margin: 0 0 var(--sg-space-s); }   /* what every draft shares, said once over the groups */   /* a draft's section, its label on its own line */
.sg-row-detail-body .sg-il-quiet { margin-top: var(--sg-space-m); }
.sg-row-detail-body .sg-il-quiet-head { margin: 0 0 var(--sg-space-s); color: var(--sg-muted); font-size: var(--sg-s); }   /* what the engine has no ground for says so over the items themselves: nothing is folded away */
:is(.sg-row-detail-body, .sg-log-also + *) .sg-il-codes, .sg-log-also + .sg-il-codes { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sg-space-xs); margin-top: var(--sg-space-xs); }   /* a list of names on its own line under what it counts, the same everywhere: a panel's, History's */
/* What the agents read: each section a block, its lines close, a clear space between sections. */
.sg-row-detail-body .sg-il-group { margin: 0 0 var(--sg-space-l); }
.sg-row-detail-body .sg-il-group:last-child { margin-bottom: 0; }
.sg-row-detail-body .sg-il-head { margin: 0 0 var(--sg-space-xs); }
.sg-row-detail-body .sg-il-item { margin: 0 0 var(--sg-space-xs); }
/* One hierarchy in every panel: a title is the text colour, bold and a step larger; the lines under it are muted. */
.sg-row-detail-body :is(.sg-il-line > strong:first-child, .sg-il-head) { display: block; font-size: var(--sg-l); line-height: var(--sg-lh-tight, 1.3); font-weight: var(--sg-heading-weight); color: var(--sg-text); }
.sg-row-detail-body .sg-il-line > strong:first-child { margin-bottom: var(--sg-space-xs); }
.sg-row-detail-body :is(.sg-il-item, .sg-il-line .pg-par-val) { color: var(--sg-muted); font-weight: var(--sg-text-weight); }
.sg-row-detail-body .sg-il-item:last-child { margin-bottom: 0; }
.sg-il-not + .sg-il-not { margin-top: var(--sg-space-s); padding-top: var(--sg-space-s); border-top: var(--sg-line); }
.sg-il-line { margin: 0 0 var(--sg-space-xxs); }
.sg-il-label { color: var(--sg-muted); font-size: var(--sg-s); }
.pg-inspect table { width: 100%; border-collapse: collapse; }
.pg-inspect td { padding: var(--sg-space-s) var(--sg-space-m); border-bottom: var(--sg-line); }
/* One side padding for everything in a card that lines up (--sg-cell-x): a card's head, a table's first and last
   columns, a list's rows, a bar. So a head's words and every row's start on one line, in every table and list. */
:is(.pg-par-table, .pg-inspect table) :is(td, th):first-child { padding-left: var(--sg-cell-x); }
:is(.pg-par-table, .pg-inspect table) :is(td, th):last-child { padding-right: var(--sg-cell-x); }
:is(.pg-inspect-head, .pg-code-head, .pg-stage-bar, .pg-variant-row) { padding-left: var(--sg-cell-x); padding-right: var(--sg-cell-x); }
.pg-inspect td:first-child { color: var(--sg-muted); width: 38%; }
.pg-inspect td:last-child { color: var(--sg-text); word-break: break-all; }
.pg-inspect tr:last-child td, .pg-inspect tbody tr:not([hidden]):not(:has(~ tr:not([hidden]))) td { border-bottom: none; }   /* the last row shown, when a chip hides the rows after it */
/* History's table: when, the type, what was done, what it affects, who did it. A card's table as every other (pg-par-card,
   pg-par-table): its head sticks with the card's corners, its top line and the gap above it, as the Status page's. */
.sg-log-release { display: inline-block; text-decoration: none; }   /* the release a change shipped in, under the day it was made: the page's own version tag, a link to the tag where the code's host gives one */
.sg-log-release:hover .sg-status { background: color-mix(in srgb, var(--sg-muted) 24%, transparent); }
.pg-par-table.sg-log td { vertical-align: top; }   /* every cell from its top: a row's date, its source, what it did and who line up */
.pg-par-table.sg-log tr.sg-log-more > td:first-child { padding-left: var(--sg-space-m); }   /* a row under a shared date starts with What and ends with Affects: their own columns' padding, not the table's first and last */
.pg-par-table.sg-log tr.sg-log-more > td:last-child { padding-right: var(--sg-space-m); }
.pg-par-table.sg-log td > .sg-log-stick { position: sticky; top: calc(var(--sg-sticky-top, 0px) + var(--pg-areas-h, 0px) + var(--sg-stick-gap) + var(--sg-log-head-h, 0px)); }   /* a date, type and person shared by rows of one moment stay in view under the head while those rows scroll */
.pg-par-table.sg-log :is(th, td):nth-child(1) { width: 9.5em; min-width: 0; white-space: nowrap; }   /* its day and time on one line, its release under them */
.pg-par-table.sg-log :is(th, td):nth-child(2) { width: 9em; min-width: 0; white-space: nowrap; }   /* its source on one line: Intent layer, Decisions */
.pg-par-table.sg-log :is(th, td):nth-child(4) { width: 22%; word-break: normal; }   /* Affects */
.pg-par-table.sg-log :is(th, td):nth-child(5) { width: 14%; }   /* Done by: the names alone, one a line */
.pg-par-table.sg-log tr.sg-log-more > td:nth-child(n) { width: auto; white-space: normal; }   /* a row under a shared date: its columns are What and Affects */
.sg-log-only { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }   /* a ticket's count: its commits alone */
/* A section of the documentation as one of these tables: its title the head, each row a name and its text. */
.pg-inspect-head > h3 { font: inherit; color: inherit; margin: 0; }
/* Every table's head stays in view as its rows scroll by, under whatever sticks at the top of its page (the page's
   title and size switch, a component's areas, the Status page's filter and counts: --pg-areas-h): the card's head first,
   the table's own head row under it (--pg-card-head-h). Its card clips, never hides, its overflow, so it can stick. */
.pg-code-head { font-size: var(--sg-s); color: var(--sg-muted); }   /* the same head as the tokens card beside it */
.pg-code-head > .sg-token-link { color: var(--sg-text); text-underline-offset: var(--sg-underline-offset); }   /* a plain action: the words, underlined */
:is(.pg-inspect-head, .pg-code-head) { position: sticky; top: calc(var(--sg-sticky-top, 0px) + var(--pg-areas-h, 0px)); z-index: 6; border-radius: calc(var(--sg-radius) - var(--sg-line-width, 1px)) calc(var(--sg-radius) - var(--sg-line-width, 1px)) 0 0; }   /* stuck, it keeps its card's top corners */
.pg-inspect-head ~ .pg-par-scroll .pg-par-table th { top: calc(var(--sg-sticky-top, 0px) + var(--pg-areas-h, 0px) + var(--pg-card-head-h, 0px)); }

/* Every card's stuck head (a table's head row, a card's own head) keeps a gap under the page's stuck bars: it stops
   that much lower and paints the page's background over the gap, so nothing scrolls between them; it keeps its card's
   top line and rounded top corners, so what scrolls under it is cut off at the curve. */
.pg-par-table th, :is(.pg-inspect-head, .pg-code-head) { top: calc(var(--sg-sticky-top, 0px) + var(--pg-areas-h, 0px) + var(--sg-stick-gap)); }
/* Under a page's title (and the bars stuck under it: a size switch, a component's areas) its content starts one stick
   gap down, the same on every page: where a card's head sticks as the page scrolls, so nothing jumps. */
.sg-section > h2, .sg-section > .sg-size-switch, .sg-section > .pg-areas { margin-bottom: 0; }
.sg-section > h2 + :not(.sg-size-switch, .pg-areas, .sg-section-badge), .sg-section > .sg-size-switch + :not(.pg-areas), .sg-section > .pg-areas + :not(.sg-size-switch) { margin-top: var(--sg-stick-gap); }
.sg-section > .pg-areas ~ .pg-area { padding-top: 0; margin-top: var(--sg-stick-gap); }
.pg-inspect-head ~ .pg-par-scroll .pg-par-table th { top: calc(var(--sg-sticky-top, 0px) + var(--pg-areas-h, 0px) + var(--sg-stick-gap) + var(--pg-card-head-h, 0px)); }
:is(.pg-par-card, .pg-inspect, .pg-code) { overflow-clip-margin: var(--sg-clip-m, var(--sg-radius)); }   /* room for the gap and the line it paints above itself (a plain length: the browser drops a calc() here) */
:is(.pg-par-card:not(:has(> .pg-inspect-head)) .pg-par-table tr:first-child > th, .pg-inspect-head, .pg-code-head) { box-shadow: 0 calc(-1 * var(--sg-line-width, 1px)) 0 var(--sg-line-solid), 0 calc(-1 * var(--sg-stick-gap)) 0 var(--sg-bg), var(--sg-strip-l, 0 0 transparent), var(--sg-strip-r, 0 0 transparent), var(--sg-th-line, 0 0 transparent); }   /* its top line, and the gap above it painted with the page */
/* The outer heads' strips reach over the card's own side borders too, so no edge of the card shows above a stuck head
   in a system whose cards carry a real border. */
.pg-par-card:not(:has(> .pg-inspect-head)) .pg-par-table tr:first-child > th:first-child, .pg-inspect-head, .pg-code-head { --sg-strip-l: calc(-1 * var(--sg-line-width, 1px)) calc(-1 * var(--sg-stick-gap)) 0 var(--sg-bg); }
.pg-par-card:not(:has(> .pg-inspect-head)) .pg-par-table tr:first-child > th:last-child, .pg-inspect-head, .pg-code-head { --sg-strip-r: var(--sg-line-width, 1px) calc(-1 * var(--sg-stick-gap)) 0 var(--sg-bg); }
:is(.pg-par-card:not(:has(> .pg-inspect-head)) .pg-par-table tr:first-child > th:first-child, .pg-par-card:not(:has(> .pg-inspect-head)) .pg-par-table.sg-no-tasks tr:first-child > th.sg-todo-no-head + th, .pg-inspect-head:not(.sg-lead-card > *), .pg-code-head)::before,
:is(.pg-par-card:not(:has(> .pg-inspect-head)) .pg-par-table tr:first-child > th:last-child, .pg-inspect-head:not(.sg-lead-card > *), .pg-code-head)::after { content: ''; position: absolute; top: calc(-1 * (var(--sg-stick-gap) + var(--sg-line-width, 1px))); width: var(--sg-radius); height: calc(var(--sg-stick-gap) + var(--sg-radius)); pointer-events: none; }   /* the gap above a corner (the card's side line hidden there), then the corner's curve, its edges a little soft so it reads as smooth as the card's own */
:is(.pg-par-card:not(:has(> .pg-inspect-head)) .pg-par-table tr:first-child > th:first-child, .pg-par-card:not(:has(> .pg-inspect-head)) .pg-par-table.sg-no-tasks tr:first-child > th.sg-todo-no-head + th, .pg-inspect-head:not(.sg-lead-card > *), .pg-code-head)::before { left: calc(-1 * var(--sg-line-width, 1px)); background: linear-gradient(var(--sg-bg), var(--sg-bg)) 0 0 / 100% var(--sg-stick-gap) no-repeat, radial-gradient(circle at 100% 100%, transparent calc(var(--sg-radius) - 1.6px), var(--sg-line-colour) calc(var(--sg-radius) - 1px), var(--sg-line-colour) calc(var(--sg-radius) - 0.4px), var(--sg-bg) calc(var(--sg-radius) + 0.2px)) 0 100% / 100% var(--sg-radius) no-repeat; }
:is(.pg-par-card:not(:has(> .pg-inspect-head)) .pg-par-table tr:first-child > th:last-child, .pg-inspect-head:not(.sg-lead-card > *), .pg-code-head)::after { right: calc(-1 * var(--sg-line-width, 1px)); background: linear-gradient(var(--sg-bg), var(--sg-bg)) 0 0 / 100% var(--sg-stick-gap) no-repeat, radial-gradient(circle at 0 100%, transparent calc(var(--sg-radius) - 1.6px), var(--sg-line-colour) calc(var(--sg-radius) - 1px), var(--sg-line-colour) calc(var(--sg-radius) - 0.4px), var(--sg-bg) calc(var(--sg-radius) + 0.2px)) 0 100% / 100% var(--sg-radius) no-repeat; }
/* A component's chips stay in view under its areas, the gap above them painted with the page, the cards' heads under them. */
#tokens > .sg-tokens-chips { margin-bottom: var(--sg-card-gap); }
#tokens > .sg-tokens-chips { position: sticky; top: calc(var(--sg-sticky-top, 0px) + var(--sg-title-h, 0px) + var(--sg-stick-gap)); z-index: 14; background: var(--sg-bg); padding: var(--sg-space-xs) 0; box-shadow: 0 calc(-1 * var(--sg-stick-gap)) 0 0 var(--sg-bg); }   /* the collections' chips stay in view under the title */
.pg-card-section .pg-par-sum:not(:empty) { position: sticky; top: calc(var(--sg-sticky-top, 0px) + var(--pg-bars-h, 0px)); z-index: 14; background: var(--sg-bg); padding: var(--sg-space-s) 0; box-shadow: 0 calc(-1 * var(--sg-stick-gap)) 0 0 var(--sg-bg); }   /* stuck right under the tabs */
.pg-card-section .pg-par-sum.sg-sticky-edge { box-shadow: 0 calc(-1 * var(--sg-stick-gap)) 0 0 var(--sg-bg), 0 calc(var(--sg-stick-gap) - var(--sg-line-width, 1px)) 0 0 var(--sg-bg); }   /* the lowest stuck bar: the page's gap under its line, as every other */
/* What the team wrote, in the Documentation table: its paragraphs as tight as a cell's one line. */
.pg-written > p { margin: 0; }
.pg-written > p + p { margin-top: var(--sg-space-xs); }
.pg-cards { display: flex; flex-direction: column; gap: var(--sg-card-gap); }
.pg-cards .pg-inspect td:last-child { word-break: normal; overflow-wrap: anywhere; }   /* a commit's words wrap between words */
.pg-doc-card > .pg-updated { gap: 0; margin: 0; font-size: var(--sg-m); color: var(--sg-text); }
.pg-doc-card > .pg-updated > div { grid-template-columns: 38% 1fr; align-items: center; min-height: var(--sg-row-h); box-sizing: border-box; padding: var(--sg-space-s) var(--sg-space-m); border-bottom: var(--sg-line); }   /* rows as every other table's: as tall, as padded, centred */
.pg-doc-card > .pg-updated > div:last-child { border-bottom: none; }
.pg-doc-card > .pg-updated dt { color: var(--sg-muted); font-weight: inherit; }
.pg-doc-card > :not(.pg-inspect-head):not(.pg-updated) { margin: var(--sg-space-m); }
.pg-doc-card > .pg-updated:empty { display: none; }
.pg-examples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(var(--sg-space-l) + var(--sg-space-s)); }
.pg-example { display: flex; flex-direction: column; gap: var(--sg-space-xs); min-width: 0; }
.pg-example-stage { display: flex; align-items: center; justify-content: center; padding: var(--sg-space-l); border: var(--sg-line); border-radius: var(--sg-radius); background: var(--sg-stage, var(--sg-bg)); overflow: auto; }
.pg-example-stage > img { max-width: 100%; height: auto; }
.pg-example > .pg-example-caption { margin: 0; font-size: var(--sg-s); color: var(--sg-muted); }
.sg-topbar, .sg-nav-close, .sg-scrim { display: none; }
.sg-sidebar-header { position: sticky; top: 0; z-index: 3; background: var(--sg-bg-2); }   /* the system's name stays at the menu's top as it scrolls */
@media (max-width: 720px) {
  .pg-inspect.sg-token-card .sg-token-sample { width: calc(var(--sg-space-xxl) * 2); }   /* a narrower sample column on a phone */
  /* A phone: a bar at the top with the menu button; the sidebar is a panel that slides in over the page. */
  .sg-layout { flex-direction: column; }
  .sg-topbar { display: flex; align-items: center; gap: var(--sg-space-s); position: sticky; top: 0; z-index: 20; padding: var(--sg-space-s) var(--sg-space-l); background: var(--sg-bg); border-bottom: var(--sg-line); }
  .sg-topbar .sg-title { font-size: var(--sg-l); font-weight: var(--sg-heading-weight); color: var(--sg-text); margin: 0; }
  .sg-sidebar { position: fixed; top: 0; left: 0; bottom: 0; z-index: 40; width: min(320px, 85vw); height: 100vh; transform: translateX(-100%); transition: transform var(--sg-move); visibility: hidden; }
  body.sg-nav-open .sg-sidebar { transform: none; visibility: visible; }
  .sg-nav-close { display: inline-flex; position: absolute; top: var(--sg-space-s); right: var(--sg-space-s); }
  .sg-sidebar-header { position: relative; }
  body.sg-nav-open .sg-scrim { display: block; position: fixed; inset: 0; z-index: 30; }
  .sg-scrim:not([class*=" "]) { background: var(--sg-a5); }
  .sg-main { padding: var(--sg-space-l); width: 100%; box-sizing: border-box; --sg-main-pad: var(--sg-space-l); }
  /* On a phone the page's top bar scrolls with the page under the menu bar, its controls wrapping, the search the
     whole width. */
  .sg-controlbar { position: static; flex-wrap: wrap; gap: var(--sg-space-s) var(--sg-space-m); margin: calc(-1 * var(--sg-space-l)) calc(-1 * var(--sg-space-l)) var(--sg-space-l); padding: var(--sg-space-s) var(--sg-space-l); }
  .sg-controlbar-label { width: 100%; }
  #mode-controls { flex-wrap: wrap; gap: var(--sg-space-s); }
  #sg-search { margin-left: 0; width: 100%; }
  .sg-brand-ctl .sg-select, .sg-brand-ctl .sg-dd { width: 100%; }
  .sg-section { scroll-margin-top: var(--sg-page-top, var(--sg-space-l)); }
  /* On a phone the stage gives the component room of its own below the mode switches, never squeezed under them. */
  .pg-preview, .pg-frame { min-height: 220px; }
  .pg-preview-card, :root.sg-panel-sized .pg-preview-card { grid-template-columns: minmax(0, 1fr); } .pg-preview-card > .pg-preview-col { border-right: 0; border-bottom: var(--sg-line); } .pg-panel { min-width: 0; } .pg-panel-grip { display: none; }
  .pg-ctl { min-width: 0; } .pg-ctl > :not(.pg-ctl-label) { max-width: 100%; overflow-x: auto; }   /* a control with many options scrolls sideways on a narrow screen */
  .pg-updated > div { grid-template-columns: 1fr; gap: 0; }   /* the documentation in one column: each name above its text */
  .pg-inspect-grid.pg-grid-2, .pg-examples { grid-template-columns: 1fr; }   /* Parity and Do and Don't in one column on a phone */
}

/* The checks that wait on a fresh read of Figma, above the Rules table (capture-waits.mjs). */
.sg-cx-wait { padding: var(--sg-space-m); margin-bottom: var(--sg-space-l); }
.sg-cx-wait > p { margin: 0 0 var(--sg-space-s); }

/* Labelled values in a panel opened from a table's row (kvOne, kvList): never another table. */
.sg-kv { display: grid; gap: var(--sg-space-s); margin: 0; padding: var(--sg-space-m); }
.sg-kv > div { display: grid; grid-template-columns: minmax(7rem, 30%) 1fr; gap: var(--sg-space-m); align-items: baseline; }
.sg-kv dt { color: var(--sg-muted); font-size: var(--sg-s); }
.sg-kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.sg-kv-list { margin: 0; padding: 0; list-style: none; }
.sg-kv-list > li + li { border-top: var(--sg-line); }

/* The rules followed everywhere, above the Rules table: the Status page's tiles, cards and bars (06-health.css), so one
   change there changes both. Its own: a card a side, half the width each; the ring; each area on a line, name and bar. */
.sg-health-tiles.sg-cx-scores { grid-template-columns: repeat(var(--sg-cx-cards, 2), minmax(0, 1fr)); }   /* every card on one row */
@media (max-width: 720px) { .sg-health-tiles.sg-cx-scores { grid-template-columns: minmax(0, 1fr); } }
.sg-cx-score-body { display: flex; flex-wrap: wrap; gap: var(--sg-space-xl); align-items: center; }   /* the areas beside the ring, under it when the card is too narrow for both */
.sg-cx-score-body > .sg-cx-score-areas { flex: 1 1 calc(var(--sg-space-xxl) * 6); }
.sg-cx-ring { position: relative; display: block; flex: none; width: calc(var(--sg-space-xxl) * 4.5); aspect-ratio: 1; }   /* 144px at the default scale, always: the areas beside it take what is left, never the ring (the owner's, 16 November 2026) */
.sg-cx-ring svg { display: block; width: 100%; height: 100%; fill: none; stroke-width: 5.5; }   /* about 9px drawn at 184px */
.sg-cx-ring-track { stroke: var(--sg-a4); }
/* Each state's arc, from the top, in the Status bars' colours (06-health.css): done, to check, to fix. */
.sg-cx-ring svg > circle:not(.sg-cx-ring-track) { transform: rotate(-90deg); transform-origin: center; }
.sg-cx-ring-text .sg-health-sub { white-space: nowrap; }   /* "1343 of 1503" on one line, inside the ring */
.sg-cx-ring-done { stroke: var(--sg-positive); } .sg-cx-ring-check { stroke: var(--sg-warning-ink); } .sg-cx-ring-fix { stroke: var(--sg-negative); }
.sg-cx-ring-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.sg-cx-ring-text .sg-health-num { font-size: calc(var(--sg-space-xxl) * 1.25); line-height: normal; column-gap: var(--sg-space-xxs); }   /* sized by the ring it sits in (40px in its 144px), never by the system's own title size, so every guide draws it the same (the owner's, 11 November 2026); its % small beside it, as the Status page sets a unit */
.sg-cx-score-areas { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: calc(var(--sg-space-xs) - 1px) var(--sg-space-m); align-items: center; margin: 0; padding: 0; list-style: none; }
.sg-cx-score-areas li { display: contents; }   /* every area's name and bar in the list's two columns, so the bars start and end together */
.sg-cx-score-areas .sg-health-bar { height: calc(var(--sg-space-xs) * 1.5); }   /* as thin as the table's */
/* Follow it on two lines: how many, then the bar and its share. */
.sg-cx-follow { display: block; white-space: nowrap; font-variant-numeric: tabular-nums; }   /* the count and its share on one line */
.sg-cx-follow-bar { display: flex; align-items: center; gap: var(--sg-space-s); margin-top: var(--sg-space-xs); min-width: 7rem;   /* the bar 8px further under its count than it was */ }
.sg-cx-follow-bar .sg-health-bar { flex: 1; height: calc(var(--sg-space-xs) * 1.5); }   /* as thick as the status dot in the same table */

/* A component the team's Storybook draws: its story live in one frame on the stage, the copy of its markup kept under
   it, unseen, for what reads markup (its tokens, its code, its variants). The frame is as tall as its story. */
.pg-preview-col > .pg-preview.pg-preview--model { position: absolute; inset: 0 auto auto 0; width: 100%; visibility: hidden; pointer-events: none; z-index: -1; }
.pg-preview-col > .pg-story { min-width: 0; min-height: 140px; overflow: auto; flex-shrink: 1; display: flex; align-items: safe center; justify-content: safe center; padding: var(--sg-space-m);
  background-color: var(--sg-stage, var(--sg-bg)); --sg-checker: var(--sg-a2);
  background-image: linear-gradient(45deg, var(--sg-checker) 25%, transparent 25%, transparent 75%, var(--sg-checker) 75%), linear-gradient(45deg, var(--sg-checker) 25%, transparent 25%, transparent 75%, var(--sg-checker) 75%);
  background-size: 16px 16px; background-position: 0 0, 8px 8px; }
.pg-story-frame { display: block; flex: none; width: 100%; height: 120px; border: 0; padding: 0; margin: 0; background: transparent; color-scheme: normal; visibility: hidden; }
.pg-story-frame.is-drawn { visibility: visible; }
/* Inspecting a story: the marks laid over its frame, where it is drawn, catching the clicks its controls would take. */
.pg-preview-col > .pg-anatomy.pg-anatomy--live { position: absolute; display: block; min-height: 0; padding: 0; overflow: visible; background: transparent; z-index: 2; }
.pg-anatomy--live > .pg-anat-stage { position: relative; }
/* The theme editor (36-theme-editor.js): the page's own controls, laid out for its panel: the form on the left, the preview on the right. */
.sg-ts-split { display: grid; grid-template-columns: minmax(20rem, 30rem) minmax(0, 1fr); gap: var(--sg-space-xl); align-items: start; }
.sg-ts-preview { position: sticky; top: var(--sg-space-l); min-width: 0; }
.sg-ts-preview-head { display: flex; align-items: center; gap: var(--sg-space-m); flex-wrap: wrap; }
/* The editor's card heads one height, the preview's: a control's height and 4px above and below it, whatever they hold. */
#sg-theme-panel :is(.sg-ts-preview-head, .sg-ts-pick-head) { box-sizing: border-box; min-height: calc(var(--sg-control-h) + 2 * var(--sg-space-xs) + var(--sg-line-width, 1px)); padding-block: var(--sg-space-xs); display: flex; align-items: center; }
.sg-ts-preview-head > span:first-child { flex: 1 1 auto; }
.sg-ts-preview-head .sg-ts-dd { width: auto; min-width: 16rem; }
.sg-ts-preview-head .sg-ts-seg { width: auto; }
.sg-ts-stage { padding: var(--sg-space-m); }
.sg-ts-screen { position: relative; overflow: hidden; border-radius: var(--sg-radius-s); }
.sg-ts-range { display: flex; align-items: center; gap: var(--sg-space-m); }
.sg-ts-range input[type="range"] { flex: 1 1 auto; accent-color: var(--sg-text); }
.sg-ts [hidden] { display: none !important; }   /* a field shown only for Other… or Custom: hidden means hidden, whatever display the page gives its inputs */
.sg-ts-open svg { flex: none; width: 1em; height: 1em; }
.sg-ts { display: flex; flex-direction: column; gap: var(--sg-space-l); }
.sg-ts .pg-controls { padding: 0 var(--sg-cell-x); }
.sg-ts .pg-controls > .pg-ctl { align-items: flex-start; }
.sg-ts .pg-controls > .pg-ctl > .sg-mode-label { flex: 0 0 8rem; padding-top: var(--sg-space-s); }
.sg-ts-field { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: var(--sg-space-xs); max-width: 24rem; }
.sg-ts-seg { display: flex; width: 100%; max-width: 24rem; }
.sg-ts-seg > button { flex: 1 1 0; }
.sg-ts-hint { margin: 0; font-size: var(--sg-s); color: var(--sg-muted); }
.sg-ts-error { margin: 0; font-size: var(--sg-s); color: var(--sg-negative); }
.sg-ts [aria-invalid="true"] { border-color: var(--sg-negative); }
.sg-ts-actions { display: flex; gap: var(--sg-space-s); }
.sg-ts-done { margin: 0; }
@media (max-width: 1100px) { .sg-ts-split { grid-template-columns: minmax(0, 1fr); } .sg-ts-preview { position: static; order: -1; } }
@media (max-width: 720px) { .sg-ts .pg-controls > .pg-ctl { flex-direction: column; align-items: stretch; } .sg-ts .pg-controls > .pg-ctl > .sg-mode-label { flex: none; padding-top: 0; } .sg-ts-field, .sg-ts-seg { max-width: none; } }

/* Wider than a row's panel: the form and a whole screen side by side. */
#sg-theme-panel .sg-comp-panel-box { width: min(100vw, 96vw); }
.sg-ts-ramps { display: flex; flex-direction: column; gap: var(--sg-space-xxs); margin-top: var(--sg-space-xs); }
.sg-ts-ramp { display: flex; align-items: center; gap: 2px; }
.sg-ts-ramp-label { flex: 0 0 2.5rem; font-size: var(--sg-xs); color: var(--sg-muted); }
.sg-ts-step { flex: 1 1 0; height: 1.25rem; border-radius: calc(var(--sg-radius-s) / 4); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sg-text) 12%, transparent); }
.sg-ts-step.is-key { outline: 2px solid var(--sg-text); outline-offset: 1px; }
.sg-ts-link code { font-size: var(--sg-xs); overflow-wrap: anywhere; }
.sg-ts-frame { position: absolute; top: 0; left: 0; border: 0; display: block; transform-origin: 0 0; background: transparent; }
/* A colour: light and dark side by side, each a field with its swatch inside (a square with round corners). */
.sg-ts-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sg-space-s); }
.sg-ts-colour input[type="color"] { flex: none; width: 1.75rem; height: 1.75rem; padding: 0; border: 0; border-radius: calc(var(--sg-control-radius) / 2); background: transparent; cursor: pointer; overflow: hidden; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sg-text) 16%, transparent); }
.sg-ts-colour input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.sg-ts-colour input[type="color"]::-webkit-color-swatch { border: var(--sg-line-width, 1px) solid color-mix(in srgb, var(--sg-text) 22%, transparent); border-radius: calc(var(--sg-control-radius) / 2); }   /* a hairline round the colour: it shows on a background of the same colour */
.sg-ts-colour input[type="color"]::-moz-color-swatch { border: var(--sg-line-width, 1px) solid color-mix(in srgb, var(--sg-text) 22%, transparent); border-radius: calc(var(--sg-control-radius) / 2); }
.sg-ts-hex { flex: 1 1 auto; min-width: 0; border: 0; padding: 0; background: transparent; color: inherit; font: inherit; outline: none; }
.sg-ts-mode-tag { flex: none; font-size: var(--sg-xs); color: var(--sg-muted); }
.sg-ts-split > * { margin-top: 0; }
.sg-ts-preview { top: var(--ts-top, 0px) !important; }
.sg-ts .pg-ctl.is-off { opacity: 0.5; }
.sg-ts .pg-ctl.is-off input { cursor: not-allowed; }
/* New theme: an icon button, its menu the Theme choice's own dropdown, opening under it to the right. */
.sg-brand-ctl .sg-ts-new { position: relative; width: auto; }
.sg-ts-new .sg-ts-menu { left: 0; right: auto; min-width: 15rem; }
/* A slider's number: a field like the colours', its unit inside it. */
.sg-ts-num.sg-input { flex: none; display: flex; align-items: center; gap: var(--sg-space-xxs); width: auto; padding: var(--sg-space-xxs); cursor: text; }   /* its inset the same on all four sides: its − and + sit in it as an option in a switch */
.sg-ts-num .sg-ts-hex { text-align: right; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.sg-ts-num .sg-ts-hex::-webkit-outer-spin-button, .sg-ts-num .sg-ts-hex::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
/* The panel's actions at its top right; its own close button gone (Escape and Cancel close it). */
#sg-theme-panel .sg-comp-panel-close { display: none; }
#sg-theme-panel .sg-panel-head { position: sticky; }
#sg-theme-panel .sg-panel-head > .sg-ts-actions { position: absolute; right: var(--sg-space-xl); bottom: var(--sg-space-l); display: flex; gap: var(--sg-space-s); }
.sg-ts-start { display: flex; align-items: center; gap: var(--sg-space-s); }
.sg-ts-icon { flex: none; width: var(--sg-mark); height: var(--sg-mark); color: var(--sg-text-2); }
/* The plus: a square as tall as the controls beside it. */
.sg-ts-new .sg-ts-open { width: var(--sg-control-h); height: var(--sg-control-h); min-width: 0; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
/* A saved theme in the Theme list: its name, then a pencil and a trash. */
.sg-dd-option.sg-ts-saved { display: flex; align-items: center; gap: var(--sg-space-s); }
.sg-ts-saved-name { flex: 1 1 auto; min-width: 0; }
.sg-ts-saved-acts { flex: none; display: flex; gap: var(--sg-space-xxs); margin-block: calc(-1 * var(--sg-space-xs)); }   /* its buttons never make the row taller than the others */
.sg-ts-act svg { width: var(--sg-mark); height: var(--sg-mark); }
#sg-brand-select-list { min-width: 15rem; }
#sg-brand-select-list .sg-dd-option { white-space: nowrap; }
.sg-ts-saved-name { overflow: hidden; text-overflow: ellipsis; }
/* Create new theme…, last in the Theme list, a line above it. */
/* The four starts, each a card: its icon, its name, what it does. */
.sg-ts-starts { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: var(--sg-space-l); max-width: 64rem; }
.sg-ts-start-card { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sg-space-s); padding: var(--sg-space-xl); text-align: left; font: inherit; color: var(--sg-text); cursor: pointer; }
.sg-ts-start-card .sg-ts-icon { width: 1.5rem; height: 1.5rem; color: var(--sg-text); }
.sg-ts-start-name { font-weight: var(--sg-heading-weight); font-size: var(--sg-m); }
.sg-ts-start-says { font-size: var(--sg-s); color: var(--sg-text-2); line-height: var(--sg-lh); }
#sg-brand-select-list .sg-ts-new-row { display: flex; align-items: center; gap: var(--sg-space-s); }
/* The line above Create new theme…: between the list's items, outside them. */
#sg-brand-select-list .sg-ts-sep { height: 0; margin: var(--sg-space-xs) calc(-1 * var(--sg-space-xs)); border-top: var(--sg-line); }
.sg-ts-act svg { width: var(--sg-mark); height: var(--sg-mark); }
.sg-ts-actions [disabled] { opacity: 0.3; cursor: not-allowed; }
.sg-ts-field > .sg-ts-dd { display: block; width: 100%; }
/* Create new theme… unfolded: its four starts under it, a step in. */
#sg-brand-select-list .sg-ts-new-row .sg-ts-chev { margin-left: auto; transition: transform var(--sg-fast); }
#sg-brand-select-list .sg-ts-new-row.is-open .sg-ts-chev { transform: rotate(90deg); }
#sg-brand-select-list .sg-ts-start-sub { display: flex; align-items: center; gap: var(--sg-space-s); padding-left: calc(var(--sg-space-m) + var(--sg-space-l)); }
@media (prefers-reduced-motion: reduce) { #sg-brand-select-list .sg-ts-new-row .sg-ts-chev { transition: none; } }
/* A component picked in the preview: its tokens by what they are for, each with its control. */
#sg-theme-panel .sg-panel-body .pg-inspect-head.sg-ts-pick-head { position: sticky; top: var(--ts-head, 0px); z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: var(--sg-space-m); background: var(--sg-bg-2); border-bottom: var(--sg-line); border-radius: calc(var(--sg-radius) - var(--sg-line-width, 1px)) calc(var(--sg-radius) - var(--sg-line-width, 1px)) 0 0; }   /* as a table's header: stays under the panel's own while its tokens scroll */
.sg-ts-pick { overflow: visible; }
.sg-ts-pick-trail { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sg-space-xs); min-width: 0; }
.sg-ts-trail { padding: 0; border: 0; background: none; color: var(--sg-muted); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: var(--sg-underline-offset); }
.sg-ts-trail:hover { color: var(--sg-text); }
.sg-ts-trail-sep { color: var(--sg-muted); }
.sg-ts-tok-field > .sg-ts-pair { flex: 1 1 auto; }
.sg-ts-tok-group { margin: var(--sg-space-xl) 0 var(--sg-space-xs); padding-top: var(--sg-space-l); font-size: var(--sg-l); font-weight: var(--sg-heading-weight); color: var(--sg-text); text-transform: none; }   /* each part of the component a section of its own */
.sg-ts-tok-group:first-child { margin-top: var(--sg-space-s); padding-top: 0; border-top: 0; }
.sg-ts .pg-controls > .pg-ctl.sg-ts-tok > .sg-mode-label { flex: 0 0 8rem; font-size: var(--sg-s); overflow-wrap: anywhere; }
.sg-ts-tok-field { max-width: none; }   /* room for both colours and their hex in full */
.sg-ts-tok-field { flex-direction: row; align-items: center; }
.sg-ts-tok-field > .sg-ts-colour, .sg-ts-tok-field > .sg-ts-seg { flex: 1 1 auto; }
.sg-ts-pick-empty { padding: var(--sg-space-m) var(--sg-cell-x); }
.sg-ts.is-focus > :not(.sg-ts-pick) { display: none !important; }   /* focus: the picked component's tokens alone */
/* Side by side, one scroll only: the properties on the left; the panel's head and the preview stay where they are. */
@media (min-width: 1101px) {
  #sg-theme-panel .sg-tk-detail { display: flex; flex-direction: column; overflow: hidden; }
  #sg-theme-panel .sg-tk-detail > .sg-panel-head { flex: none; }
  #sg-theme-panel .sg-tk-detail > .sg-panel-body { flex: 1 1 auto; min-height: 0; }
  #sg-theme-panel .sg-ts-split { height: 100%; min-height: 0; align-items: stretch; }
  #sg-theme-panel .sg-ts { height: 100%; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-right: var(--sg-space-xs); }
  #sg-theme-panel .sg-ts-preview { position: static; align-self: start; }
  #sg-theme-panel .sg-panel-body .pg-inspect-head.sg-ts-pick-head { top: 0; }
}
/* The specimen (36-theme-editor.js): a screen made of the system's own components, as its code renders them. Its layout
   takes the system's tokens through the properties set on .sg-spec (its accent, its card corner), never the guide's. */
.sg-spec { --spec-accent: currentColor; --spec-accent-2: currentColor; --spec-r: var(--sg-radius); --spec-line: color-mix(in srgb, currentColor 12%, transparent); --spec-soft: color-mix(in srgb, currentColor 4%, transparent); box-sizing: border-box; min-height: 100%; padding: var(--sg-space-xxl) calc(var(--sg-space-xxl) * 2) calc(var(--sg-space-xxl) * 3); display: flex; flex-direction: column; gap: var(--sg-space-xxl); }
.sg-spec *, .sg-spec *::before, .sg-spec *::after { box-sizing: border-box; }
.sg-spec-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-areas: "text art" "sw sw"; gap: var(--sg-space-xxl) calc(var(--sg-space-xxl) * 1.5); align-items: center; padding-bottom: var(--sg-space-s); }
.sg-spec-hero-text { grid-area: text; display: flex; flex-direction: column; gap: var(--sg-space-l); }
.sg-spec-title { margin: 0; font-size: calc(var(--sg-title) * 1.6); line-height: var(--sg-lh); font-weight: var(--sg-heading-weight); letter-spacing: -0.02em; }
.sg-spec-hero-acts { display: flex; flex-wrap: wrap; gap: var(--sg-space-m); align-items: center; margin-top: var(--sg-space-s); }
.sg-spec-hero-art { grid-area: art; position: relative; height: 260px; }
.sg-spec-blob { position: absolute; border-radius: var(--sg-radius-pill); }
.sg-spec-blob.is-a { width: 220px; height: 220px; right: 90px; top: 0; }
.sg-spec-blob.is-b { width: 150px; height: 150px; right: 0; bottom: 0; }
.sg-spec-glyph { position: absolute; left: 0; bottom: -10px; font-size: calc(var(--sg-title) * 4); line-height: var(--sg-lh); font-weight: var(--sg-heading-weight); letter-spacing: -0.04em; }
.sg-spec-swatches { grid-area: sw; display: flex; flex-wrap: wrap; gap: var(--sg-space-xl); }
.sg-spec-sw { display: flex; align-items: center; gap: var(--sg-space-m); font-size: var(--sg-m); }
.sg-spec-dot { width: 44px; height: 44px; border-radius: var(--sg-radius-pill); box-shadow: inset 0 0 0 1px var(--spec-line); }
.sg-spec-shape { width: 44px; height: 44px; border: 2px solid var(--spec-accent); background: var(--spec-soft); }
.sg-spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); grid-auto-flow: row dense; gap: var(--sg-space-l); align-items: start; }
.sg-spec-tile { margin: 0; display: flex; flex-direction: column; gap: var(--sg-space-m); padding: var(--sg-space-xl); border-radius: var(--spec-r); background: var(--spec-soft); box-shadow: inset 0 0 0 1px var(--spec-line); min-width: 0; }
.sg-spec-tile.is-buttons { flex-direction: row; flex-wrap: wrap; align-items: center; gap: var(--sg-space-m); }
.sg-spec-tile.is-wide { grid-column: span 2; }
.sg-spec-stage { position: relative; min-width: 0; max-width: 100%; overflow: hidden; }
/* An overlay (a modal, a tooltip, a toast) stays in its tile: a transform makes the tile the box its fixed parts sit in. */
.sg-spec-tile.is-overlay > .sg-spec-stage { transform: translateZ(0); height: 240px; }
/* The preview at full screen: the whole screen for the system, its head kept (the screen, the mode, the way back). */
.sg-ts-full svg { width: var(--sg-mark); height: var(--sg-mark); }
.sg-ts-preview:fullscreen { position: static; width: 100vw; height: 100vh; display: flex; flex-direction: column; border-radius: 0; background: var(--sg-bg); overflow: hidden; }
.sg-ts-preview:fullscreen > .sg-ts-stage { flex: 1 1 auto; min-height: 0; padding: 0; }
.sg-ts-preview:fullscreen .sg-ts-screen { border-radius: 0; }
.sg-ts-preview:fullscreen::backdrop { background: var(--sg-bg); }
.sg-ts-preview:fullscreen > .sg-ts-preview-head { position: static; top: auto; }   /* the page's sticky heads stop under its own bar, which full screen has not */
/* A colour's hex in full, light and dark alike: each field as wide as seven characters and its tags, the pair one above
   the other where the row is too narrow for both side by side. */
.sg-ts-pair { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.sg-ts-colour .sg-ts-hex { min-width: 7.5ch; font-variant-numeric: tabular-nums; }
/* A colour field: its swatch, then its hex with Light or Dark small under it, then its reset; the hex has the field's
   whole width, so it is read and selected in full. */
.sg-ts-colour.sg-input { display: grid; grid-template-columns: auto minmax(7.5ch, 1fr) auto; grid-template-rows: auto auto; column-gap: var(--sg-space-s); row-gap: 0; align-items: center; height: auto; min-height: var(--sg-control-h); padding-block: var(--sg-space-xxs); padding-inline: var(--sg-space-xs) var(--sg-space-m); cursor: text; }
.sg-ts-colour input[type="color"] { grid-column: 1; grid-row: 1 / 3; }
.sg-ts-colour .sg-ts-hex { grid-column: 2; grid-row: 1; align-self: end; }
.sg-ts-colour .sg-ts-mode-tag { grid-column: 2; grid-row: 2; align-self: start; margin-top: calc(-1 * var(--sg-space-xs)); font-size: var(--sg-xs); line-height: var(--sg-lh); }   /* 4px closer to its hex */
.sg-ts-colour .sg-ts-auto { grid-column: 3; grid-row: 1 / 3; }
.sg-ts-pair { grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); }
/* A card's sticky head inside its round corners: the card clips what it holds (clip, not hidden, so the head still sticks). */
.sg-ts .sg-token-card, .sg-ts-preview { overflow: clip; }
/* Screens side by side (a page that asks for it, the demo): each at its own size, in a row. */
.sg-ts-row { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; background: transparent; }   /* around the screens, nothing of its own: the panel shows through, never the app */
.sg-ts-row-screen { position: relative; flex: none; overflow: hidden; border-radius: var(--sg-radius-l); box-shadow: 0 0 0 var(--sg-line-width, 1px) var(--sg-line-colour); }
/* A text style's size or line height, one field per breakpoint, its breakpoint's name inside it. */
.sg-ts-bps { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); gap: var(--sg-space-xs); }
.sg-ts-bps .sg-ts-bp.sg-input { width: auto; }
.sg-showroom-screen:has(> .sg-ts-row) { display: flex; background: transparent !important; }   /* the row as tall as the preview, its screens in the middle of it, the panel behind */
/* Reset changes: the plainest of the page's buttons, words alone, before Cancel. */
.sg-ts-reset { align-self: center; padding: 0 var(--sg-space-s); border: 0; background: none; color: var(--sg-text-2); font: inherit; font-size: var(--sg-s); font-weight: var(--sg-text-weight); text-decoration: underline; text-underline-offset: var(--sg-underline-offset); cursor: pointer; }
.sg-ts-reset:not(:disabled):hover { color: var(--sg-text); }
.sg-ts-reset:disabled { color: var(--sg-muted); cursor: not-allowed; opacity: 0.5; }   /* nothing to reset yet */
.sg-ts-reset:focus-visible { outline: 2px solid var(--sg-accent); outline-offset: var(--sg-focus-offset); }
/* A number's − and +, inside its field: before the number and after its unit. */
.sg-ts-num .sg-ts-hex { width: 3.5ch; min-width: 0; }
.sg-ts-num input:disabled ~ .sg-ts-step-btn, .sg-ts-num:has(input:disabled) .sg-ts-step-btn { opacity: 0.4; cursor: not-allowed; }
/* The page's sticky card heads paint a band of the page's colour above themselves, to hide what scrolls under them; in
   the editor's own columns nothing does, and the band cut the card's border under its rounded corners. */
#sg-theme-panel :is(.sg-ts, .sg-ts-preview) .pg-inspect-head { box-shadow: none; }
/* A pixel field fills the room its row gives it: its − at one end, its + at the other, the number between. */
.sg-ts-num:not(.sg-ts-bp), .sg-ts-bps > .sg-ts-num { flex: 1 1 auto; width: auto; }
.sg-ts-num:not(.sg-ts-bp) .sg-ts-hex, .sg-ts-bps > .sg-ts-num .sg-ts-hex { flex: 1 1 auto; width: auto; }
.sg-ts-bps { justify-items: stretch; }
/* A token linked to another: what it follows under its name, and the button that detaches it (or links it again). */
.sg-ts-alias { display: flex; align-items: center; gap: var(--sg-space-xxs); margin-top: var(--sg-space-xxs); font-size: var(--sg-xs); color: var(--sg-muted); }
.sg-ts-tok.is-linked .sg-ts-tok-field { opacity: 0.55; }
.sg-ts .pg-controls > .pg-ctl.sg-ts-tok > .sg-mode-label { display: flex; flex-direction: column; }
/* A breakpoint's number as a colour's hex is laid out: the value, its breakpoint small under it, − and + at either side. */
.sg-ts-bps > .sg-ts-bp.sg-ts-num { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: var(--sg-space-xs); row-gap: 0; align-items: center; height: auto; min-height: var(--sg-control-h); padding-block: var(--sg-space-xxs); }
.sg-ts-bp > .sg-ts-step-btn[data-step="-1"] { grid-column: 1; grid-row: 1 / 3; }
.sg-ts-bp > .sg-ts-step-btn[data-step="1"] { grid-column: 3; grid-row: 1 / 3; }
.sg-ts-bp > .sg-ts-hex { grid-column: 2; grid-row: 1; align-self: end; text-align: left; width: auto; }
.sg-ts-bp > .sg-ts-mode-tag { grid-column: 2; grid-row: 2; align-self: start; margin-top: calc(-1 * var(--sg-space-xs)); font-size: var(--sg-xs); line-height: var(--sg-lh); }
/* In a field that fills its row, the value (its number, unit and reset) sits in the middle, − and + at the ends. */
.sg-ts-num:not(.sg-ts-bp) .sg-ts-hex { flex: none; field-sizing: content; min-width: 1ch; width: auto; text-align: center; }
.sg-ts-num:not(.sg-ts-bp) > .sg-ts-step-btn[data-step="-1"] { margin-right: auto; }
.sg-ts-num:not(.sg-ts-bp) > .sg-ts-step-btn[data-step="1"] { margin-left: auto; }
/* A linked token's field, as Figma shows it: the name of what it follows in a chip (a colour's swatch in it), and the
   button that detaches it at the end. */
.sg-ts-alias-chip { display: inline-flex; align-items: center; min-width: 0; max-width: 100%; padding: 0; color: var(--sg-text); }
.sg-ts-chip { display: inline-flex; align-items: center; gap: var(--sg-space-xs); min-width: 0; max-width: 100%; padding: var(--sg-space-xs) var(--sg-space-s); border: var(--sg-line); border-radius: var(--sg-radius-s); font-size: var(--sg-s); font-weight: var(--sg-text-weight); }   /* the chip's frame on its label, never on the button: the box of a name (.sg-name) */
.sg-ts-chip > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-ts-chip-swatch { flex: none; width: 0.875rem; height: 0.875rem; border-radius: calc(var(--sg-radius-s) / 2); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sg-text) 22%, transparent); }
.sg-ts-chip-icon { flex: none; font-size: var(--sg-xs); color: var(--sg-muted); }
.sg-ts-tok.is-linked .sg-ts-tok-field { opacity: 1; }
/* Zoom, in the preview's bar: the page's own number field. */
/* One number field everywhere (a slider's, a token's, a radius, the zoom): − and + at the ends, the value and its unit (and
   its reset, when it has one) centred between them. A slider's and the zoom's are all one width. */
.sg-ts-zoom.sg-ts-num.sg-input, .sg-ts-range > .sg-ts-num.sg-input { flex: none; width: 9.5rem; }
.sg-ts-stage { overflow: auto; }
/* A breakpoint's number and its name, both centred between − and +. */
.sg-ts-bp > .sg-ts-hex, .sg-ts-bp > .sg-ts-mode-tag { justify-self: center; text-align: center; }
.sg-ts-bp > .sg-ts-hex { width: 100%; }
/* A breakpoint's field: − and + at the ends, the value with its breakpoint under it and its reset beside them centred
   together between two equal spaces, so the value is in the middle with no reset and the pair is with one. */
.sg-ts-bps > .sg-ts-bp.sg-ts-num { grid-template-columns: auto minmax(0, 1fr) auto auto minmax(0, 1fr) auto; column-gap: 0; }
.sg-ts-bp > .sg-ts-step-btn[data-step="-1"] { grid-column: 1; grid-row: 1 / 3; }
.sg-ts-bp > .sg-ts-hex, .sg-ts-bp > .sg-ts-mode-tag { grid-column: 3; }
.sg-ts-bp > .sg-ts-auto { grid-column: 4; grid-row: 1 / 3; margin-left: var(--sg-space-xs); }
.sg-ts-bp > .sg-ts-step-btn[data-step="1"] { grid-column: 6; grid-row: 1 / 3; }
/* A text style with one value (no breakpoints): its one field across the row, as every other number field is. */
.sg-ts-bps:has(> .sg-ts-bp:only-of-type) { grid-template-columns: minmax(0, 1fr); }
/* And in the fields that fill their row (a token's size, a radius, the zoom): the reset beside the value keeps its own
   place on both sides of it. */
.sg-ts-num:not(.sg-ts-bp) > .sg-ts-step-btn[data-step="-1"] { order: 1; }
.sg-ts-num:not(.sg-ts-bp) > .sg-ts-hex { order: 3; }
.sg-ts-num:not(.sg-ts-bp) > .sg-ts-mode-tag { order: 4; }
.sg-ts-num:not(.sg-ts-bp) > .sg-ts-auto { order: 5; }   /* a reset after the value, the two centred together between − and + (none kept in reserve when hidden) */
.sg-ts-num:not(.sg-ts-bp) > .sg-ts-step-btn[data-step="1"] { order: 6; }
/* The system's colours, opened from a colour field: a search over its base, semantic and primitive colours, each a swatch
   and its name; one chosen links the token to it. */
.sg-select-list.sg-ts-lib { position: fixed; inset: auto; margin: 0; display: none; flex-direction: column; gap: var(--sg-space-xs); overflow: hidden; color: var(--sg-text); }   /* the guide's dropdown list, on the top layer: placed by the script under (or over) its field */
.sg-select-list.sg-ts-lib:popover-open { display: flex; }
.sg-ts-lib-list { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; overflow: hidden auto; }
.sg-ts-lib-item > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }   /* a long name cut, never a sideways scroll */   /* only the list scrolls, the search stays */
.sg-ts-lib.is-up { flex-direction: column-reverse; }   /* opened upward: the search next to its field */
.sg-ts-lib-item { display: flex; align-items: center; gap: var(--sg-space-s); padding: var(--sg-space-xs) var(--sg-space-s); border: 0; background: none; color: var(--sg-text); font: inherit; font-size: var(--sg-s); text-align: left; cursor: pointer; }
.sg-ts-lib-item:hover, .sg-ts-lib-item:focus-visible { text-decoration: underline; text-underline-offset: var(--sg-underline-offset); }
.sg-ts-lib-item[hidden] { display: none; }
button.sg-ts-alias-chip { border: 0; background: none; font: inherit; cursor: pointer; }
button.sg-ts-alias-chip:hover .sg-ts-chip > span:last-child { text-decoration: underline; text-underline-offset: var(--sg-underline-offset); }
.sg-ts-tok-field > .sg-ts-relink, .sg-ts-tok-field > .sg-ts-lib-btn { flex: none; }
/* What the spacing percentage changes: each spacing token on the screens, its size now and at the percentage chosen. */
.sg-ts .pg-controls > .pg-ctl.sg-ts-has-under { flex-wrap: wrap; row-gap: 0; }
.sg-ts-has-under > .sg-ts-affects { flex: 1 0 100%; }   /* the row's whole width, under its label and its field */
.sg-ts-affects { margin-top: var(--sg-space-s); font-size: var(--sg-s); color: var(--sg-text-2); }
.sg-ts-affects > summary { cursor: pointer; }
.sg-ts-affects-list { margin: var(--sg-space-xs) 0 0; padding: 0; list-style: none; max-height: 14rem; overflow: auto; }
.sg-ts-affects-list > li { display: flex; justify-content: space-between; gap: var(--sg-space-m); padding: var(--sg-space-xxs) 0; border-bottom: var(--sg-line); }
.sg-ts-affects-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-ts-affects-val { flex: none; font-variant-numeric: tabular-nums; }
.sg-ts-affects-val b { color: var(--sg-text); font-weight: var(--sg-text-weight); }
.sg-ts-trail-now { color: var(--sg-text); }   /* where the path ends: the text colour, at the heading's own weight */
/* Side by side, the scroll is inside the card: the column holds still, the open card fills what is left of it and its
   rows scroll under its own head, as a table scrolls inside its card. */
@media (min-width: 1101px) {
  #sg-theme-panel .sg-ts { overflow: hidden; display: flex; flex-direction: column; padding-right: 0; }
  #sg-theme-panel .sg-ts > .pg-inspect:not([hidden]) { flex: 0 1 auto; min-height: 0; display: flex; flex-direction: column; }
  #sg-theme-panel .sg-ts > .pg-inspect:not([hidden]) > .pg-inspect-head { flex: none; position: static; }
  #sg-theme-panel .sg-ts > .pg-inspect:not([hidden]) > .pg-controls { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
  #sg-theme-panel .sg-ts > .sg-ts-pick-empty, #sg-theme-panel .sg-ts > .sg-ts-pick:has(> .sg-ts-pick-empty) { flex: none; }
}
/* A linked token's chip in the middle of its field, the detach button at the end, an empty place at the start to match. */
.sg-ts-chipfield.sg-input { flex: 1 1 auto; display: grid; grid-template-columns: var(--sg-icon-btn) minmax(0, 1fr) var(--sg-icon-btn); justify-items: center; align-items: center; gap: var(--sg-space-s); min-width: 0; padding: var(--sg-space-xxs); }   /* its inset the same on all four sides, as a number's */
.sg-ts-chipfield > .sg-ts-alias-chip { grid-column: 2; }
.sg-ts-chipfield > .sg-ts-link-btn { grid-column: 3; margin-left: 0; }
/* The name labels, in the panel over the preview (never zoomed, never over what they name), as the guide's tooltip. */
.sg-ts-stage { position: relative; }
.sg-ts-tag { position: absolute; z-index: 5; pointer-events: none; padding: var(--sg-space-xxs) var(--sg-space-s); border-radius: var(--sg-radius-s); background: var(--sg-text); color: var(--sg-bg); font-size: var(--sg-xs); font-weight: var(--sg-text-weight); line-height: var(--sg-lh); white-space: nowrap; box-shadow: var(--sg-shadow-lift); }
#sg-theme-panel .sg-ts .sg-ts-pick:empty { display: none; }   /* nothing picked: no card, the preview itself is the invitation */

.sg-ts .pg-controls > .pg-ctl { flex-shrink: 0; }   /* in a card that scrolls, a row as tall as its label and field, never squeezed under them */
/* The dashed box over the part under the pointer, and over what a token draws, above the preview so nothing in a part hides it. */
.sg-ts-hitbox { position: absolute; z-index: 4; box-sizing: border-box; pointer-events: none; outline: 2px dashed var(--sg-accent); outline-offset: -2px; }
.sg-ts-hitbox.is-tok { outline-width: 3px; outline-offset: -3px; }
.sg-ts-hitbox[hidden] { display: none; }
.sg-ts-tok-field > .sg-ts-pair { flex: 1 1 0; min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }   /* a token's light and dark always side by side, whatever buttons share its row */
.sg-ts-chipfield.sg-input.sg-ts-chip-mode { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; min-width: 0; height: auto; }   /* a linked colour's mode: the name it follows, the mode under it */
.sg-ts-chip-mode > .sg-ts-alias-chip { max-width: 100%; }
.sg-ts-tok-field > .sg-ts-link-btn { flex: none; align-self: center; }

/* Full screen is for trying the screens: no outline over what is hovered or picked. */
.sg-ts-preview:fullscreen .sg-ts-hitbox { display: none !important; }
#sg-theme-panel .pg-ctl.sg-ts-has-under { flex-wrap: wrap; row-gap: 0; }
#sg-theme-panel .sg-ts-has-under > .sg-ts-mixed { flex: 1 0 100%; padding-top: var(--sg-space-xs); }   /* under the label and the field, the row's whole width */
