/* ═══════════════════════════════════════════════════════════════════
   THRIVE OVATION DESIGN SYSTEM: COMPONENTS
   The shared component kit, mirroring the Leads storybook structure
   and the Figma DS page (Buttons · Inputs · Dropdown · Toggle ·
   Checkbox/Radio · Chips & Tabs · Labels · Cards · Tooltips · Modal).

   Buttons use WordPress colors (--button-*). Brand orange carries
   card hovers, outlines, focus accents, and identity moments.
   Requires: tokens.css loaded first.
   ═══════════════════════════════════════════════════════════════════ */

/* ── BASE ──────────────────────────────────────────────────────────── */
.ds body, body.ds { font-family: var(--font); color: var(--type-primary); line-height: 1.4; }
b, strong { font-weight: 500; } /* Rubik max 500: no bold leaks through the UA default (700) */

/* ── BUTTONS = library Button (Button.module.scss). Variants: solid .btn-wp, outline .btn-wpo, text .btn-text,
       surface .btn-surface, surface-secondary .btn-surface-2. Colours: primary (WP blue, default), .btn-neutral,
       .btn-success, .btn-danger. Sizes: .xs .sm (default = md) .lg .xl. Extras: .rounded, .icon-only, .full.
       All variants: 1px border, no lift, no transition, 2px WordPress-blue focus ring. ── */
.btn-wp, .btn-wpo, .btn-text, .btn-surface, .btn-surface-2, .lnk-wp, .btn-ghost, .btn-danger {
  --bc-0: var(--neutral-white); --bc-100: var(--button-tint-8-solid); --bc-200: var(--button-focus);
  --bc-300: var(--button-primary-hover); --bc-400: var(--button-primary); --bc-active: var(--button-primary-pressed);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--bg, 4px); box-sizing: border-box;
  padding: 8px 12px; font: var(--btn-sm); border: 1px solid transparent; border-radius: var(--radius-sm);
  cursor: pointer; white-space: nowrap; text-decoration: none;
}
.btn-neutral { --bc-100: var(--neutral-75); --bc-200: var(--neutral-100); --bc-300: var(--neutral-300); --bc-400: var(--neutral-600); --bc-active: var(--neutral-300); }
.btn-success { --bc-100: var(--green-10); --bc-200: var(--green-50); --bc-300: var(--green-75); --bc-400: var(--green-100); --bc-active: var(--green-75); }
.btn-danger  { --bc-100: var(--red-10);   --bc-200: var(--red-50);   --bc-300: var(--red-75);   --bc-400: var(--red-100);   --bc-active: var(--red-75); }
/* sizes */
:is(.btn-wp, .btn-wpo, .btn-text, .btn-surface, .btn-surface-2, .btn-danger).xs { font: var(--btn-sm); padding: 2px 8px; }
:is(.btn-wp, .btn-wpo, .btn-text, .btn-surface, .btn-surface-2, .btn-danger).sm { font: var(--btn-sm); padding: 4px 8px; }
:is(.btn-wp, .btn-wpo, .btn-text, .btn-surface, .btn-surface-2, .btn-danger).lg { font: var(--btn-md); padding: 8px 12px; }
:is(.btn-wp, .btn-wpo, .btn-text, .btn-surface, .btn-surface-2, .btn-danger).xl { font: var(--btn-lg); padding: 12px 16px; }
/* solid */
.btn-wp { background: var(--bc-400); color: var(--bc-0); border-color: var(--bc-400); }
.btn-wp:hover { background: var(--bc-300); border-color: var(--bc-300); }
/* STANDALONE .btn-danger = solid danger (same look as .btn-wp.btn-danger). :where() keeps specificity at 0 so .btn-wpo/.btn-text/.btn-surface combos and :disabled still win. */
:where(.btn-danger:not(.btn-wpo):not(.btn-text):not(.btn-surface):not(.btn-surface-2)) { background: var(--bc-400); color: var(--bc-0); border-color: var(--bc-400); }
:where(.btn-danger:not(.btn-wpo):not(.btn-text):not(.btn-surface):not(.btn-surface-2)):hover { background: var(--bc-300); border-color: var(--bc-300); }
/* the base's 1px transparent border (0,1,0) beats the :where rules, so the solid border colour is set here at higher specificity; disabled excluded so it keeps its transparent border */
.btn-danger:not(.btn-wpo):not(.btn-text):not(.btn-surface):not(.btn-surface-2):not(:disabled):not([disabled]):not(.is-disabled) { border-color: var(--bc-400); }
.btn-danger:not(.btn-wpo):not(.btn-text):not(.btn-surface):not(.btn-surface-2):not(:disabled):not([disabled]):not(.is-disabled):hover { border-color: var(--bc-300); }
/* pressed: solid PRIMARY only, as the library (.solid.primary:not([disabled]):active) */
.btn-wp:not(.btn-neutral):not(.btn-success):not(.btn-danger):not(:disabled):not([disabled]):active { background: var(--bc-active); border-color: var(--bc-active); }
/* outline (Drop 0 in every state) */
.btn-wpo { background: var(--bc-0); color: var(--bc-400); border-color: var(--bc-400); box-shadow: var(--shadow-card); }
.btn-wpo:hover { background: var(--bc-400); color: var(--bc-0); }
/* text (lnk-wp = text xs, the Leads Trigger Link Text; btn-ghost = text neutral) */
.btn-text, .lnk-wp, .btn-ghost { background: transparent; color: var(--bc-400); }
.btn-text:hover, .lnk-wp:hover, .btn-ghost:hover { background: var(--bc-100); }
.lnk-wp { padding: 2px 4px; gap: 4px; }
/* inline underlined link in running text (plan DSLN-2026-11-02, library Button text underline): <a class="lnk-wp underline"> */
.lnk-wp.underline { display: inline; padding: 0; border: 0; min-height: 0; font: inherit; font-weight: 500; text-decoration: underline; text-underline-offset: 2px; vertical-align: baseline; }
.lnk-wp.underline:hover { background: transparent; color: var(--bc-300); }
.btn-ghost { --bc-100: var(--neutral-75); --bc-200: var(--neutral-100); --bc-300: var(--neutral-300); --bc-400: var(--neutral-600); }
.btn-text.xs, .lnk-wp { padding: 2px 4px; gap: 4px; }
/* surface, surface-secondary */
.btn-surface { background: var(--bc-0); color: var(--bc-400); border-color: var(--bc-0); }
.btn-surface:hover { background: var(--bc-100); border-color: var(--bc-100); }
.btn-surface-2 { background: transparent; color: var(--bc-0); border-color: var(--bc-0); }
.btn-surface-2:hover { background: var(--bc-0); color: var(--bc-400); }
/* shape + extras */
.btn-wp.rounded, .btn-wpo.rounded, .btn-text.rounded, .btn-surface.rounded { border-radius: var(--radius-full); padding-inline: 22px; }
:is(.btn-wp, .btn-wpo, .btn-text, .btn-surface, .btn-surface-2).icon-only { padding: 8px; border-radius: var(--radius-full); color: var(--neutral-200); }
:is(.btn-wp, .btn-wpo, .btn-text, .btn-surface, .btn-surface-2).icon-only:focus-visible { outline-color: var(--focus-ring-color); } /* brand ring for icon-only buttons (library Button.module.scss:236); other buttons stay WP blue */
.btn-wpo.icon-only:hover { color: var(--bc-0); }
.btn-surface-2.icon-only:hover { color: var(--bc-400); } /* library: variant hover colour beats the icon-only grey (specificity 0,3,0 vs 0,1,0); text/surface/solid hover leave it grey */ /* library: outline hover white glyph wins over the icon-only grey */
.full { width: 100%; }
/* Leading icon = label size, gap per size, for every variant (LEADS-FIGMA-SPEC §19, DSBI-2026-11-02): XL 16 / gap 8, L 14 / 8, M 12 / 4, S 12 / 4, XS 12 / 4.
   .fa is sized by font-size (1em high, width follows the glyph); icon-only buttons keep their 16px icon. */
:is(.btn-wp, .btn-wpo, .btn-text, .btn-surface, .btn-surface-2, .btn-danger).lg { --bg: 8px; --bi: 14px; }
:is(.btn-wp, .btn-wpo, .btn-text, .btn-surface, .btn-surface-2, .btn-danger).xl { --bg: 8px; --bi: 16px; }
:is(.btn-wp, .btn-wpo, .btn-text, .btn-surface, .btn-surface-2, .lnk-wp, .btn-ghost, .btn-danger) > svg { width: var(--bi, 12px); height: var(--bi, 12px); flex: none; }
:is(.btn-wp, .btn-wpo, .btn-text, .btn-surface, .btn-surface-2, .lnk-wp, .btn-ghost, .btn-danger) > .fa { font-size: var(--bi, 12px); }
:is(.btn-wp, .btn-wpo, .btn-text, .btn-surface, .btn-surface-2, .btn-danger).icon-only > svg { width: 16px; height: 16px; }
:is(.btn-wp, .btn-wpo, .btn-text, .btn-surface, .btn-surface-2, .btn-danger).icon-only > .fa { font-size: 16px; }
/* focus: blue ring on every button variant, keyboard only */
.btn-wp:focus-visible, .btn-wpo:focus-visible, .btn-text:focus-visible, .btn-surface:focus-visible, .btn-surface-2:focus-visible, .lnk-wp:focus-visible, .btn-ghost:focus-visible, .btn-danger:focus-visible { outline: 2px solid var(--button-focus); outline-offset: 2px; }
/* disabled */
:is(.btn-wp, .btn-wpo, .btn-surface, .btn-surface-2, .btn-danger):is(:disabled, [disabled], .is-disabled) { background: var(--neutral-100); color: var(--neutral-200); border-color: transparent; cursor: not-allowed; }
.btn-wpo:is(:disabled, [disabled], .is-disabled) { color: var(--type-tertiary); box-shadow: var(--shadow-card); }
:is(.btn-text, .lnk-wp, .btn-ghost):is(:disabled, [disabled], .is-disabled) { background: transparent; color: var(--neutral-100); cursor: not-allowed; }

/* ── CARD (brand hover/focus outline; the brand stays here) ───────── */
.card { background: var(--surface-screen); border: 1px solid var(--stroke-tertiary); border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
.card.hoverable { transition: all .18s; cursor: pointer; }
.card.hoverable:hover { outline: 1px solid transparent; box-shadow: inset 0 0 0 1.5px var(--brand-100), 0 4px 16px rgba(0, 0, 0, .05); } /* true 1.5px inset ring, box size unchanged; transparent outline keeps a ring in forced-colors */
.card.focused { outline: 1px solid transparent; box-shadow: var(--shadow-card), inset 0 0 0 1.5px var(--brand-100); }
.card.hoverable:hover:focus-visible, .card.focused:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: var(--focus-ring-offset); } /* ring + hover shadow combine */
.card:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: var(--focus-ring-offset); } /* keyboard focus, library DataCard */

/* ── LABEL (status chip) = library Label (Label.module.scss): 20px, 12/1.6 M sentence case, pad 0 7 + 1px border,
       full radius. Colours .green .yellow .orange .red .grey .blue .purple; types solid (default) .outline .ghost;
       .with-icon (gap 4, 12px icon). Old names kept as aliases: .ok=green .warn=yellow .err=red .brand=TagChip brand look. ── */
/* Rubik's line box sits about 1.2px high in a 20px chip, and Chrome snaps glyphs to whole pixels; 1.2px top padding (the library Chip's 0.6px text shift; border-box, height still 20px, sides unchanged) puts the cap-height ink -0.50 / -0.25 / -0.12 from the pill centre at DPR 1 / 2 / 4, as the library Chip, without a transform */
.chip { --lc: var(--type-secondary); --lbg: var(--surface-overlay-1); display: inline-flex; align-items: center; box-sizing: border-box; height: 20px; padding: 1.2px 7px 0; font: var(--btn-sm); white-space: nowrap; border-radius: var(--radius-full); border: 1px solid var(--lbg); background: var(--lbg); color: var(--lc); }
.chip.green, .chip.ok { --lc: var(--type-success); --lbg: var(--green-10); }
.chip.yellow, .chip.warn { --lc: var(--type-warning); --lbg: var(--yellow-10); }
.chip.orange { --lc: var(--brand-300); --lbg: var(--orange-10); } /* AA: orange-100 on orange-10 was 2.63:1; no darker orange step exists, so text and outline use brand-300 on the orange-10 fill = 5.70:1 (Rijul 2026-11-02) */
.chip.red, .chip.err { --lc: var(--action-error); --lbg: var(--red-10); }
.chip.grey { --lc: var(--type-secondary); --lbg: var(--surface-overlay-1); }
.chip.blue { --lc: var(--button-primary); --lbg: var(--button-tint-8); }
.chip.purple { --lc: var(--purple-100); --lbg: var(--purple-10); }
.chip.brand { --lc: var(--brand-300); --lbg: var(--brand-10); }
.chip.outline { background: transparent; border-color: var(--lc); }
.chip.ghost { background: transparent; border-color: transparent; }
.chip.with-icon { gap: 4px; }
.chip.with-icon svg, .chip.with-icon .fa { width: 12px; height: 12px; margin-top: -1.2px; } /* cancels the 0.6px the 1.2px top padding adds, so the icon stays centred */

/* ── TAG CHIP = library TagChip (TagChip.module.scss): 20px, pad 2/8, gap 4, 12/1.6 M, full radius.
       Colours (default brand) .success .neutral .brand .action (WP blue, button-like). Add .interactive (hover tint, focus ring),
       .selected. Parts: <button class="main">, <span class="count">, <button class="remove" aria-label="Remove tag">.
       <span class="tagchip"><button class="main">blog</button><span class="count">3</span><button class="remove">…10px svg…</button></span> ── */
.tagchip { --tag-bg: var(--brand-10); --tag-fg: var(--brand-300); display: inline-flex; align-items: center; gap: 4px; box-sizing: border-box; height: 20px; padding: 2.6px 8px 1.4px; border: none; border-radius: var(--radius-full); background: var(--tag-bg); color: var(--tag-fg); font: var(--btn-sm); white-space: nowrap; }
.tagchip svg { width: 12px; height: 12px; }
/* same Rubik line-box fix as .chip (0.6px shift); count and remove get -1.2px margin-top so they stay centred */
.tagchip > .count, .tagchip > .remove, .tagchip > svg { margin-top: -1.2px; }
.tagchip:has(.remove) { padding-inline-end: 4px; }
.tagchip.success { --tag-bg: var(--green-10); --tag-fg: var(--type-success); }
.tagchip.neutral { --tag-bg: var(--surface-overlay-1); --tag-fg: var(--type-secondary); }
.tagchip.brand { --tag-bg: var(--brand-10); --tag-fg: var(--brand-300); }
.tagchip.action { --tag-bg: var(--button-primary); --tag-fg: var(--type-on-surface); cursor: pointer; }
.tagchip.action:hover { --tag-bg: var(--button-primary-hover); }
.tagchip.action:active { --tag-bg: var(--button-primary-pressed); }
.tagchip.action:focus-visible { outline: 2px solid var(--button-focus); outline-offset: 2px; }
.tagchip .main { display: inline-flex; align-items: center; gap: inherit; padding: 0; border: none; background: transparent; color: inherit; font: inherit; cursor: inherit; }
.tagchip.interactive:not(.action) { cursor: pointer; }
.tagchip.interactive:not(.action):hover { --tag-bg: var(--brand-15); }
.tagchip.interactive:not(.action):focus-within { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: var(--focus-ring-offset); }
.tagchip.interactive .main:focus { outline: none; }
.tagchip.selected { --tag-bg: var(--brand-25); }
.tagchip .count { display: inline-flex; align-items: center; height: 16px; padding-inline: 6px; border-radius: var(--radius-full); background: var(--surface-screen); color: var(--tag-fg); font: 500 10px/1.3 var(--font); }
.tagchip .remove { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-inline-start: -4px; padding: 0; border: none; border-radius: var(--radius-full); background: transparent; color: var(--tag-fg); cursor: pointer; }
.tagchip .remove svg { width: 10px; height: 10px; }
.tagchip .remove:hover { background: var(--brand-25); color: var(--brand-500); }
.tagchip .remove:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); }

/* ── INPUTS = library Input (Input.module.scss): pad 8/16, 14px, Drop 0, hover border stroke-primary,
       brand focus-visible ring. Sizes .md 36 / .lg 40 / .xl 50 (xl is 16px). Statuses .error .success. readonly + disabled grey.
       textarea.inp = 16px, pad 12/16. Native select.inp is kept for plain selects; use .ds-select for the library Select. ── */
.inp {
  display: block; width: 100%; height: 40px; box-sizing: border-box; padding: 8px 16px; font: var(--body-md); color: var(--type-primary);
  background: var(--surface-screen); border: 1px solid var(--stroke-secondary); border-radius: var(--radius-sm); box-shadow: var(--shadow-card);
}
textarea.inp { font: var(--body-lg); padding: 12px 16px; height: auto; }
/* bare .inp = library default (lg, 40px) */
.inp.md { height: 36px; } .inp.lg { height: 40px; } .inp.xl { height: 50px; font: var(--body-lg); }
.inp::placeholder { color: var(--type-tertiary); }
.inp:hover { border-color: var(--stroke-primary); }
.inp:focus { outline: none; }
.inp:focus-visible { outline: 4px solid var(--stroke-tertiary); outline-offset: 0; }
.inp.error, .inp.error:hover { border-color: var(--stroke-error); }
.inp.success, .inp.success:hover { border-color: var(--stroke-success); }
.inp[readonly] { background: var(--surface-overlay-1); color: var(--type-tertiary); }
.inp:disabled { background: var(--surface-overlay-1); color: var(--type-tertiary); cursor: not-allowed; }
.inp:disabled:hover { border-color: var(--stroke-secondary); }
select.inp { appearance: auto; }

.field-label { display: block; font: var(--body-md); color: var(--type-secondary); margin-bottom: 4px; }
.field-help  { font: var(--body-sm); color: var(--type-secondary); margin-top: 4px; }
.field-error { font: var(--body-sm); color: var(--action-error); margin-top: 4px; }

/* INPUT WITH ACTION = library Input `action` (Input.module.scss .withAction/.action): wrapper carries border, Drop 0, brand ring on focus-within; trailing .act segment after a 1px stroke-tertiary divider.
   <div class="inp-act"><input class="inp" aria-label="Link"><span class="act">Copy</span></div> (size via .md/.lg/.xl on the input; default 40) */
.inp-act { display: flex; align-items: stretch; border: 1px solid var(--stroke-secondary); border-radius: var(--radius-sm); box-shadow: var(--shadow-card); overflow: hidden; background: var(--surface-screen); }
.inp-act:focus-within { outline: 4px solid var(--stroke-tertiary); outline-offset: 0; }
.inp-act .inp { flex: 1 1 auto; min-width: 0; border: none; border-radius: 0; box-shadow: none; height: 38px; }
.inp-act .inp.md { height: 34px; } .inp-act .inp.xl { height: 48px; }
.inp-act .inp:focus-visible { outline: none; }
.inp-act button.act { cursor: pointer; }
.inp-act .act:focus-visible { outline: none; }
.inp-act .act svg { width: 16px; height: 16px; flex: none; }
.inp-act .act { appearance: none; background: none; border-block: 0; border-inline-end: 0; margin: 0; cursor: default; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; font: var(--body-md); color: var(--type-secondary); border-inline-start: 1px solid var(--stroke-tertiary); white-space: nowrap; }

/* ── TOGGLE (Figma Toggle base) ────────────────────────────────────── */
/* TOGGLE = library Toggle (Toggle.module.scss): sizes .xs 24x14 / .sm 28x16 / .md 34x20 (default) / .lg 40x24 (handle 10/11/16/18), track action-disabled,
   .on = action-success (.orange.on = orange-100), white handle with 0 2px 4px .12 shadow, .4s, brand focus ring 2px offset 2, disabled .4.
   Markup unchanged: <button class="tog on" role="switch" aria-checked="true">. */
.tog { --tw: 34px; --th: 20px; --th-h: 16px; --tsp: calc((var(--th) - var(--th-h)) / 2); width: var(--tw); height: var(--th); border-radius: var(--radius-full); background: var(--action-disabled); position: relative; cursor: pointer; border: none; padding: 0; transition: background-color .4s; flex-shrink: 0; }
/* check weight doubled (TGW-2026-11-12): same-colour stroke 1.375 in the 14-unit check viewBox = Comments' 44 in 448, as the library Toggle */
/* check in the knob when on = library Toggle (Toggle.tsx:47; icon check.svg): size by toggle size xs 5 / sm 7 / md 7 / lg 10px, colour = the track colour (transparent when off), travels with the knob */
.tog { --ti: 7px; } .tog.xs { --ti: 5px; } .tog.lg { --ti: 10px; }
.tog:before { content: ''; position: absolute; z-index: 1; pointer-events: none; width: var(--ti); height: var(--ti); top: calc((var(--th) - var(--ti)) / 2); left: calc(var(--tsp) + (var(--th-h) - var(--ti)) / 2); background-color: transparent; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 11'%3E%3Cpath d='M11.8945 1.04688C12.0312.910156 12.25.910156 12.3594 1.04688L13.1523 1.8125C13.2617 1.94922 13.2617 2.16797 13.1523 2.27734L4.94922 10.4805C4.8125 10.6172 4.62109 10.6172 4.48438 10.4805L.820312 6.84375C.710938 6.70703.710938 6.48828.820312 6.37891L1.61328 5.58594C1.72266 5.47656 1.94141 5.47656 2.07812 5.58594L4.70312 8.23828L11.8945 1.04688Z' stroke='black' stroke-width='1.375' stroke-linejoin='round'/%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 14 11'%3E%3Cpath d='M11.8945 1.04688C12.0312.910156 12.25.910156 12.3594 1.04688L13.1523 1.8125C13.2617 1.94922 13.2617 2.16797 13.1523 2.27734L4.94922 10.4805C4.8125 10.6172 4.62109 10.6172 4.48438 10.4805L.820312 6.84375C.710938 6.70703.710938 6.48828.820312 6.37891L1.61328 5.58594C1.72266 5.47656 1.94141 5.47656 2.07812 5.58594L4.70312 8.23828L11.8945 1.04688Z' stroke='black' stroke-width='1.375' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .4s, background-color .4s; }
.tog.on:before { transform: translateX(calc(var(--tw) - var(--th-h) - 2 * var(--tsp))); background-color: var(--action-success); }
.tog.on.orange:before { background-color: var(--orange-100); }
.tog.on:not(.orange):not(:disabled):hover:before { background-color: var(--green-200); }
.tog.xs { --tw: 24px; --th: 14px; --th-h: 10px; } .tog.sm { --tw: 28px; --th: 16px; --th-h: 11px; } .tog.lg { --tw: 40px; --th: 24px; --th-h: 18px; }
.tog:after { content: ''; position: absolute; top: var(--tsp); left: var(--tsp); width: var(--th-h); height: var(--th-h); border-radius: 50%; background: var(--surface-screen); box-shadow: 0 2px 4px 0 rgba(0, 0, 0, .12); transition: transform .4s; }
.tog.on { background: var(--action-success); }
.tog.on.orange { background: var(--orange-100); }
.tog.on:after { transform: translateX(calc(var(--tw) - var(--th-h) - 2 * var(--tsp))); }
/* subtle hover (Rijul 2026-10-30, divergence from Leads; library Toggle.module.scss:82-91): track one ramp step darker; none when disabled, or when on and orange (an off orange toggle takes the same grey off-hover as any off toggle) */
.tog:not(.on):not(:disabled):hover { background: var(--neutral-200); }
.tog.on:not(.orange):not(:disabled):hover { background: var(--green-200); }
.tog:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: var(--focus-ring-offset); }
.tog:disabled { opacity: .4; cursor: not-allowed; }

/* ── CHECKBOX = library Checkbox (Checkbox.module.scss): sizes .sm 16 / .md 20 (default) / .lg 24, 1px stroke-secondary, radius 4,
       no hover, checked = brand primary-200 with a white check, brand focus ring, disabled overlay-2 (checked: .5).
       RADIO = library Radio (Radio.module.scss): sizes .sm .md (default) .lg, checked = ring of size/4 in brand-100. ── */
.ds-check, .ds-radio { --ck: 20px; --ck-icon: 14px; appearance: none; box-sizing: border-box; width: var(--ck); height: var(--ck); margin: 0; border: 1px solid var(--stroke-secondary); background: transparent; cursor: pointer; display: inline-grid; place-items: center; flex-shrink: 0; }
.ds-check.sm, .ds-radio.sm { --ck: 16px; --ck-icon: 12px; }
.ds-check.lg, .ds-radio.lg { --ck: 24px; --ck-icon: 14px; }
.ds-check { border-radius: var(--radius-sm); background: var(--surface-screen); }
.ds-radio { border-radius: var(--radius-full); }
.ds-check:checked { border-color: var(--brand-200); background: var(--brand-200); }
.ds-check:checked:after { content: ''; width: var(--ck-icon); height: var(--ck-icon); background: #fff; clip-path: polygon(14% 44%, 0 59%, 38% 96%, 100% 22%, 85% 8%, 38% 68%); }
.ds-radio:checked { border: calc(var(--ck) / 4) solid var(--action-primary); }
.ds-check:focus-visible, .ds-radio:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: var(--focus-ring-offset); }
.ds-check:disabled:not(:checked), .ds-radio:disabled:not(:checked) { background: var(--surface-overlay-2); }
.ds-check:disabled:checked, .ds-radio:disabled:checked { opacity: .5; }

/* ── RECIPIENT / TAG CHIP FIELD ────────────────────────────────────── */
/* RECIPIENT CHIP FIELD = library RecipientChipField (RecipientChipField.module.scss): min-height 40, pad 8/16, gap 6, Drop 0, hover border stroke-primary,
   brand focus-within ring; chips = library Chip sm look (brand-10 / brand-300, pill, 12/14, pad 4/8, hover opacity .8); .bad = red-10 / red-100; .disabled = overlay-1. */
.rcpfield { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; box-sizing: border-box; border: 1px solid var(--stroke-secondary); border-radius: var(--radius-sm); background: var(--surface-screen); box-shadow: var(--shadow-card); padding: 8px 16px; cursor: text; min-height: 40px; }
.rcpfield:hover { border-color: var(--stroke-primary); }
.rcpfield:focus-within { outline: 4px solid var(--stroke-tertiary); outline-offset: 0; }
.rcpfield.disabled { background: var(--surface-overlay-1); cursor: not-allowed; }
.rcpfield input { border: none; outline: none; flex: 1; min-width: 48px; font: var(--body-md); color: var(--type-primary); background: transparent; padding: 0 2px; }
.rcpfield input::placeholder { color: var(--type-tertiary); }
.rcpchip { display: inline-flex; align-items: center; gap: 2px; box-sizing: border-box; background: var(--brand-10); color: var(--brand-300); border: none; border-radius: var(--radius-full); padding: 4px 8px; font: 500 12px/14px var(--font); cursor: pointer; }
.rcpchip:hover { opacity: .8; } .rcpchip:active { opacity: 1; }
.rcpchip .x { width: 14px; height: 14px; margin-inline-start: 2px; border-radius: var(--radius-full); display: grid; place-items: center; cursor: pointer; }
.rcpfield.disabled .rcpchip { opacity: .5; cursor: not-allowed; }
.rcpchip.bad { background: var(--red-10); color: var(--action-error); }

/* ── ICON TILE + COLLAPSE BUTTON (settings cards) ──────────────────── */
/* ICON TILE = library IconTile (IconTile.module.scss). Any size: set --icotile-size on the element (default 46px). Glyph size = --icotile-icon
   (default max(8px, round(size x .45))); radius = one of .r4 (size<=32) .r8 (<=64) .r12 (<=96) .r16 (<=160) .r24 (library snaps in JS; CSS needs the modifier).
   Named steps: .xs 24/12, .sm 32/16, (md) 46/20, .lg 60/28. Put the svg inside; it takes the glyph size. */
.icotile { --icotile-icon: max(8px, round(calc(var(--icotile-size, 46px) * .45), 1px)); width: var(--icotile-size, 46px); height: var(--icotile-size, 46px); border-radius: var(--icotile-radius, var(--radius-md)); background: var(--brand-10); color: var(--brand-100); display: inline-grid; place-items: center; flex-shrink: 0; }
.icotile > svg { width: var(--icotile-icon); height: var(--icotile-icon); }
.icotile.xs { --icotile-size: 24px; --icotile-icon: 12px; --icotile-radius: var(--radius-sm); }
.icotile.sm { --icotile-size: 32px; --icotile-icon: 16px; --icotile-radius: var(--radius-sm); }
.icotile.md { --icotile-size: 46px; --icotile-icon: 20px; --icotile-radius: var(--radius-md); }
.icotile.lg { --icotile-size: 60px; --icotile-icon: 28px; --icotile-radius: var(--radius-md); }
.icotile.r4 { --icotile-radius: var(--radius-4); } .icotile.r8 { --icotile-radius: var(--radius-8); } .icotile.r12 { --icotile-radius: var(--radius-12); } .icotile.r16 { --icotile-radius: var(--radius-16); } .icotile.r24 { --icotile-radius: var(--radius-24); }
.collbtn { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--stroke-tertiary); background: var(--surface-screen); color: var(--type-tertiary); display: grid; place-items: center; cursor: pointer; flex-shrink: 0; transition: all .15s; }
.collbtn:hover { color: var(--type-primary); border-color: var(--stroke-secondary); }

/* ── INTEGRATION ROW ───────────────────────────────────────────────── */
/* INTEGRATION ROW = library IntegrationRow (IntegrationRow.module.scss): gap 16, pad 12/16, r8, Drop 0. Parts: .intlogo 46px r8 overlay-1 (label-sm uppercase, secondary),
   .intinfo (flex 1) > .intname (heading-xs) + .intdesc (body-sm secondary, mt 2), .intactions (gap 8). */
.introw { display: flex; align-items: center; gap: 16px; border: 1px solid var(--stroke-tertiary); border-radius: var(--radius-md); padding: 12px 16px; box-shadow: var(--shadow-card); background: var(--surface-screen); }
.intlogo { display: grid; place-items: center; flex-shrink: 0; width: 46px; height: 46px; border-radius: var(--radius-md); background: var(--surface-overlay-1); color: var(--type-secondary); font: var(--label-sm); text-transform: uppercase; overflow: hidden; }
.intlogo img, .intlogo svg { max-width: 70%; max-height: 70%; }
.intinfo { flex: 1; min-width: 0; } .intname { font: var(--heading-xs); color: var(--type-primary); } .intdesc { font: var(--body-sm); color: var(--type-secondary); margin-top: 2px; }
.intactions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* ── STEP NUMBER ───────────────────────────────────────────────────── */
/* StepNumber = library StepNumber (StepNumber.module.scss): ring style, sizes .sm 20 / .md 24 (default) / .lg 30; states default (upcoming), .current (brand ring), .done (green fill + white glyph), .skipped (dashed). .cur kept as alias of .current. */
.stepnum { display: inline-grid; place-items: center; flex-shrink: 0; box-sizing: border-box; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--stroke-secondary); background: transparent; color: var(--type-tertiary); font: 500 12px/1.4 var(--font); }
.stepnum.sm { width: 20px; height: 20px; } .stepnum.lg { width: 30px; height: 30px; font-size: 14px; }
.stepnum.current, .stepnum.cur { border-color: var(--action-primary); color: var(--action-primary); background: transparent; box-shadow: none; }
.stepnum.done { border-color: var(--green-100); background: var(--green-100); color: var(--neutral-white); }
.stepnum.skipped { background: var(--surface-overlay-1); color: var(--neutral-200); border: 1px dashed var(--stroke-secondary); }

/* ── TOOLTIP = library Tooltip (Tooltip.module.scss): neutral-600, r4, pad 12, 12px, width 16rem (default; data-size sm auto/nowrap, lg 320), Shadow/lg, 8px tail.
       Opens on hover AND keyboard focus (give the host tabindex="0" if it is not a control). data-pos = top (default) | bottom | left | right.
       Width: data-size="sm" 106px, "lg" 320px. Esc-to-close needs script (library Tooltip.tsx). ── */
.ds-tip { position: relative; }
.ds-tip:hover:after, .ds-tip:focus-visible:after, .ds-tip:hover:before, .ds-tip:focus-visible:before { opacity: 1; }
.ds-tip:after, .ds-tip:before { opacity: 0; pointer-events: none; position: absolute; z-index: 50; }
.ds-tip:after { content: attr(data-tip); width: 16rem; max-width: 20rem; box-sizing: border-box; background: var(--neutral-600); color: var(--neutral-white); font: var(--body-sm); font-weight: 400; text-align: left; white-space: normal; padding: 12px; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); }
.ds-tip:before { content: ""; width: 0; height: 0; left: 50%; bottom: calc(100% + 2px); transform: translateX(-50%); border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 6px solid var(--neutral-600); }
.ds-tip[data-size="sm"]:after { width: auto; white-space: nowrap; } .ds-tip[data-size="lg"]:after { width: 320px; } .ds-tip[data-size="md"]:after { width: 16rem; }
.ds-tip[data-pos="bottom"]:after { bottom: auto; top: calc(100% + 8px); }
.ds-tip[data-pos="bottom"]:before { bottom: auto; top: calc(100% + 2px); border-top: 0; border-bottom: 6px solid var(--neutral-600); }
.ds-tip[data-pos="left"]:after { bottom: auto; left: auto; right: calc(100% + 8px); top: 50%; transform: translateY(-50%); }
.ds-tip[data-pos="left"]:before { bottom: auto; left: auto; right: calc(100% + 2px); top: 50%; transform: translateY(-50%); border: 0; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 6px solid var(--neutral-600); }
.ds-tip[data-pos="right"]:after { bottom: auto; left: calc(100% + 8px); top: 50%; transform: translateY(-50%); }
.ds-tip[data-pos="right"]:before { bottom: auto; left: calc(100% + 2px); top: 50%; transform: translateY(-50%); border: 0; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-right: 6px solid var(--neutral-600); }

/* ── MODAL = library Modal (Modal.module.scss): overlay rgba(0,0,0,.32); dialog r12, no shadow, sizes .sm 346 / .md 480 (default) / .lg 640 / .xl 700.
       Parts: .tpl-head (16/1.4 M title + .mx close, 20/32/16, bottom rule) · .tpl-body (pad 32, gap 16; .centered) · .tpl-foot (right-aligned, 20/32, top rule, gap 8)
       · .tpl-content (raw content, 20/32/24) · confirm parts .tpl-iconcircle (64px orange), .tpl-confirm (18px M), .tpl-btns (centred, gap 16).
       <div class="tplmodal"><div class="tpldialog md" role="dialog" aria-modal="true"><div class="tpl-head"><span>Title</span><button class="mx" aria-label="Close">×</button></div>
       <div class="tpl-body">…</div><div class="tpl-foot">…buttons…</div></div></div> ── */
.tplmodal { position: fixed; inset: 0; z-index: var(--layer-modal); background: rgba(0, 0, 0, .32); display: flex; align-items: center; justify-content: center; }
.tplmodal.hidden { display: none; }
.tpldialog { position: relative; display: flex; flex-direction: column; box-sizing: border-box; background: var(--surface-screen); border-radius: var(--radius-card); width: 480px; min-width: 320px; max-width: 90vw; min-height: 120px; max-height: 90vh; }
.tpldialog:focus { outline: none; }
.tpldialog.sm { width: 346px; min-width: auto; } .tpldialog.md { width: 480px; } .tpldialog.lg { width: 640px; } .tpldialog.xl { width: var(--modal-width-xl); }
.mx { background: none; border: none; font-family: inherit; font-size: 1.5rem; line-height: normal; padding: 0; color: var(--type-tertiary); cursor: pointer; flex-shrink: 0; }
/* subtle hover (Rijul 2026-10-30; library Modal.module.scss:70-73): tertiary to primary text */
.mx:hover { color: var(--type-primary); }
.mx:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: var(--focus-ring-offset); border-radius: var(--radius-4); }
.tpl-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 32px 16px; border-bottom: 1px solid var(--stroke-tertiary); font: var(--heading-sm); }
.tpl-body { display: flex; flex-direction: column; gap: 16px; padding: 32px; overflow-y: auto; flex: 1 1 auto; min-height: 0; }
.tpl-body.centered { align-items: center; text-align: center; }
.tpl-content { padding: 20px 32px 24px; }
.tpl-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 20px 32px; border-top: 1px solid var(--stroke-tertiary); }
.tpl-iconcircle { width: 64px; height: 64px; border-radius: var(--radius-full); background: var(--orange-10); color: var(--orange-100); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tpl-confirm { font: var(--heading-md); color: var(--type-primary); margin: 0; }
.tpl-btns { display: flex; align-items: center; justify-content: center; gap: 16px; align-self: stretch; }
.tpl-btns > * { flex: 1; }

/* ── INFO NOTE = library InfoNote (InfoNote.module.scss; Leads "Notification", SPEC §2): white, 1px stroke-secondary, radius 4, pad 8/12,
       align flex-start, 16px icon tile (::before) carries the colour. The bare .ds-note is WARNING, as the library default (InfoNote.tsx:61).
       Variants: .warn (default) · .info (= .brand, brand tile) · .success · .error. Dismiss: put
       <button class="btn-text btn-neutral xs icon-only dismiss" aria-label="Dismiss">…</button> as the last child. ── */
.ds-note { --note-tile: var(--yellow-100); display: flex; align-items: flex-start; gap: 6px; border-radius: var(--radius-sm); padding: 8px 12px; overflow: clip; font: var(--body-md); line-height: 1.4; background: var(--surface-screen); border: 1px solid var(--stroke-secondary); color: var(--type-primary); }
.ds-note::before { content: "!"; flex: none; margin-top: 2px; width: 16px; height: 16px; border-radius: var(--radius-sm); background: var(--note-tile); color: var(--type-on-surface); font: 500 11px/16px Rubik, sans-serif; text-align: center; }
.ds-note > span, .ds-note > .content { flex: 1; min-width: 0; }
.ds-note.info, .ds-note.brand { --note-tile: var(--brand-100); } .ds-note.info::before, .ds-note.brand::before { content: "i"; }
.ds-note.success { --note-tile: var(--green-100); } .ds-note.success::before { content: "✓"; }
.ds-note.neutral { --note-tile: var(--neutral-300); align-items: center; gap: 8px; padding: 12px; border: 0; box-shadow: inset 0 0 0 1px var(--stroke-tertiary); background: var(--surface-overlay-0); color: var(--type-secondary); font: var(--body-sm); } /* library InfoNote.module.scss:38 */
/* neutral tile (Figma 17894:7472): 20x20, r4, neutral-300, white solid circle-info; the 10px glyph size is an estimate (half the tile), not a Figma value */
/* the data URI below holds FA Pro circle-info artwork (icons/fa/solid/circle-info.svg), under the FA licence gate */
.ds-note.neutral::before { content: ""; width: 20px; height: 20px; margin-top: 0; background: var(--note-tile) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' fill='%23fff'%3E%3Cpath d='M256 512C347.46 512 431.97 463.21 477.7 384C523.43 304.79 523.43 207.21 477.7 128C431.97 48.79 347.46 0 256 0C164.54 0 80.03 48.79 34.3 128C-11.43 207.21 -11.43 304.79 34.3 384C80.03 463.21 164.54 512 256 512ZM216 336H240V272H216C202.7 272 192 261.3 192 248C192 234.7 202.7 224 216 224H264C277.3 224 288 234.7 288 248V336H296C309.3 336 320 346.7 320 360C320 373.3 309.3 384 296 384H216C202.7 384 192 373.3 192 360C192 346.7 202.7 336 216 336ZM256 128C273.67 128 288 142.33 288 160C288 177.67 273.67 192 256 192C238.33 192 224 177.67 224 160C224 142.33 238.33 128 256 128Z'/%3E%3C/svg%3E") center / 10px 10px no-repeat; }
.ds-note.neutral.md { font: var(--body-md); color: var(--type-primary); } /* md: 14px, type-primary; default stays 12px secondary */
.ds-note.error { --note-tile: var(--red-100); } .ds-note.error::before { content: "×"; font-size: 13px; }
.ds-note .dismiss { margin-block: -4px; margin-inline-end: -8px; margin-left: auto; }

/* ── TOP NAV = the Ovation Figma Top Nav (Workspace xrZ1ldIID2HkwrO1u2QRJv node 18003:5126; library TopNav):
       60px white bar, 1px stroke-tertiary bottom, wordmark 20px from the left, tabs centred 26px apart,
       32px white icon circles 12px apart on the right.
       <nav class="ds-topnav"><a class="ds-topnav-logo"><img src="assets/thrive-ovation-wordmark.svg" alt="Thrive Ovation"></a>
         <ul class="ds-topnav-tabs"><li><a class="ds-tab on" aria-current="page">Testimonials</a></li>
         <li><button class="ds-tab menu">Capture</button></li>…</ul>
         <div class="ds-topnav-actions"><button class="ds-navicon" aria-label="Settings">…16px svg…</button></div></nav> ── */
.ds-topnav { position: relative; box-sizing: border-box; display: flex; align-items: center; height: 60px; padding: 0 20px; background: var(--surface-screen); border-bottom: 1px solid var(--stroke-tertiary); }
.ds-topnav-logo { display: flex; align-items: center; flex: 1 1 0; min-width: 0; }
.ds-topnav-logo img { display: block; width: 175px; height: 34px; }
.ds-topnav-tabs { display: flex; gap: 26px; margin: 0; padding: 0; list-style: none; }
.ds-topnav-tabs > li { position: relative; }
.ds-topnav-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex: 1 1 0; min-width: 0; }
/* tab = library NavItem: 60px, pad 19/12, gap 0 (8 with a leading icon), 14/1.4, tertiary; hover secondary; active primary-300 on brand-10 + 3px brand-100 bar */
.ds-tab { position: relative; display: inline-flex; align-items: center; gap: 0; height: 60px; box-sizing: border-box; padding: 19px 12px; border: 0; background: none; font: var(--body-md); color: var(--type-tertiary); text-decoration: none; cursor: pointer; white-space: nowrap; }
.ds-tab.has-icon { gap: 8px; }
.ds-tab:hover { color: var(--type-secondary); }
.ds-tab:focus-visible { outline: 2px solid transparent; outline-offset: -2px; box-shadow: inset 0 0 0 2px var(--focus-ring-color); }
.ds-tab.on, .ds-tab.on:hover { font-weight: 500; color: var(--brand-300); background: var(--brand-10); }
.ds-tab.on::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--brand-100); }
/* menu tab: 10px chevron in a 5/6 padded wrapper, flipped when open */
.ds-tab.menu::before { content: ""; order: 1; box-sizing: content-box; width: 10px; height: 10px; padding: 5px 6px; background: var(--type-tertiary); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 3.5 5 6.5 8 3.5' stroke='black' stroke-width='1.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px 10px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 3.5 5 6.5 8 3.5' stroke='black' stroke-width='1.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px 10px no-repeat; transition: transform .2s ease; }
.ds-tab.has-icon.menu::before { margin-left: -8px; }
.ds-topnav-tabs > li:hover:not(.dismissed) > .ds-tab.menu::before, .ds-topnav-tabs > li.open > .ds-tab.menu::before, .ds-tab.menu[aria-expanded="true"]::before { transform: rotate(180deg); }
/* active dropdown tab (Capture, Display): the chevron takes the label colour (brand-300), Rijul 2026-11-02; inactive, hover and open keep their colour */
.ds-tab.menu.on::before { background: currentColor; }
.ds-tab.menu:hover::before { background: currentColor; } /* hover: the chevron follows the label colour (type-secondary), Rijul 2026-11-02 */
/* dropdown (NavItem menu): opens on hover (150ms fade-out delay) or when script sets li.open / button[aria-expanded=true]. NO focus-within open:
   script contract: click or Enter/Space/ArrowDown on the tab toggles li.open + aria-expanded; Esc removes both, returns focus to the tab and adds li.dismissed until mouseleave;
   see the snippet in storybook.html (#topnav).
   <li><button class="ds-tab menu" aria-haspopup="true">Capture</button><div class="ds-menu"><a href="#">Forms</a>…</div></li> */
.ds-menu { position: absolute; top: calc(100% - 10px); left: 0; margin-left: 12px; min-width: 150px; width: max-content; background: var(--surface-screen); box-shadow: 0 4px 24px rgba(0, 0, 0, .12); border-radius: var(--radius-md); padding: 12px 0; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .15s ease, visibility 0s linear .15s; z-index: 100; }
.ds-topnav-tabs > li:hover:not(.dismissed) > .ds-menu, .ds-topnav-tabs > li.open > .ds-menu, .ds-topnav-tabs > li > .ds-tab[aria-expanded="true"] ~ .ds-menu { opacity: 1; visibility: visible; transition-delay: 0s; pointer-events: auto; }
.ds-menu a { display: flex; align-items: center; gap: 4px; height: 40px; padding: 0 16px 0 12px; font: var(--body-md); color: var(--neutral-400); text-decoration: none; background: var(--surface-screen); white-space: nowrap; }
.ds-menu a svg { width: 16px; height: 16px; padding: 2px; flex-shrink: 0; color: var(--neutral-400); box-sizing: border-box; }
.ds-menu a:hover, .ds-menu a:focus-visible, .ds-menu a.active { background: var(--neutral-50); color: var(--neutral-600); }
.ds-menu a:hover svg, .ds-menu a:focus-visible svg, .ds-menu a.active svg { color: var(--neutral-600); }
.ds-menu a:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: -2px; }
.ds-navicon { display: grid; place-items: center; box-sizing: border-box; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: var(--surface-screen); color: var(--type-tertiary); cursor: pointer; }
.ds-navicon svg { width: 16px; height: 16px; }
.ds-navicon:hover { background: var(--surface-overlay-1); color: var(--type-secondary); }
.ds-navicon:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: var(--focus-ring-offset); }

/* ── TOAST = the Thrive toast (https://thrive-toast.vercel.app, Rijul 2026-10-20) in Ovation font + colour:
       #444648, radius 4, padding 12, gap 8, 16px status icon (::before; green check by default,
       .warning / .error; .info removed), Rubik Medium 14px white, Drop 1 shadow, 24px from the bottom.
       One optional action after the text: <button class="act"> = 24px WP-blue button,
       <a|button class="lnk"> = white underlined 14px link, brand orange on hover (add <i class="arr"></i> for ↗).
       .undo = the lnk style without arrow. 4s (6s for merges), scope in the label. ── */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 6px); max-width: calc(100vw - 48px); background: var(--surface-overlay-3); color: var(--type-on-surface); font: var(--btn-sm); font-size: 14px; line-height: 1.4; display: flex; align-items: center; gap: 8px; padding: 12px; border-radius: 4px; box-shadow: var(--shadow-drop-1); opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease; z-index: var(--layer-toast); }
/* status icon = coloured status disc with a white glyph cut out (library Toast iconDisc + iconGlyph, Figma 18121:11745); alt text "" keeps the glyph out of the a11y tree */
.toast::before { content: "✓" / ""; flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--green-100); color: var(--neutral-white); font: 500 10px/16px Rubik, sans-serif; text-align: center; }
.toast.warning::before { content: "!" / ""; background: var(--yellow-100); font-size: 11px; }
.toast.error::before { content: "×" / ""; background: var(--red-100); font-size: 13px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; transition: opacity .22s cubic-bezier(.16,1,.3,1), transform .22s cubic-bezier(.16,1,.3,1); }
.toast.contained { position: absolute; max-width: calc(100% - 40px); }
.toast .act { flex: none; height: 24px; padding: 6px 8px; border: 0; border-radius: 4px; background: var(--button-primary); color: var(--type-on-surface); font: var(--btn-sm); display: inline-flex; align-items: center; cursor: pointer; white-space: nowrap; }
.toast .act:hover { background: var(--button-primary-hover); }
.toast .act:active { background: var(--button-primary-pressed); }
.toast .lnk, .toast .undo { flex: none; padding: 0; border: 0; border-radius: 0; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; color: var(--type-on-surface); font: var(--btn-sm); font-size: 14px; line-height: 1.4; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: color .12s; }
.toast .lnk:hover, .toast .undo:hover { color: var(--brand-100); }
.toast .act:focus-visible { outline: var(--focus-ring-width) solid var(--button-focus); outline-offset: var(--focus-ring-offset); }
.toast .lnk:focus-visible, .toast .undo:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: var(--focus-ring-offset); }
.toast .arr { width: 8px; height: 8px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath d='M1 7 7 1M2 1h5v5' stroke='black' stroke-width='1.2' fill='none' stroke-linecap='round'/%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 8 8'%3E%3Cpath d='M1 7 7 1M2 1h5v5' stroke='black' stroke-width='1.2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

/* ── GRACE BANNER (Ovation Figma 18169:12612 yellow, 18169:13282 red; plan DSLN-2026-11-02): full-width, min 54px, fill yellow-10 / red-10, padding 12 36 12 20.
       <div class="ds-banner warning|danger" role="status|alert"><div class="grp"><span class="tile"><i class="fa solid fa-clock"></i></span><p class="msg"><strong>Lead-in.</strong> Text <a class="lnk-wp underline" href="#">link</a></p></div>
       <button class="btn-wp sm act">Action</button><button class="btn-text btn-neutral icon-only close" aria-label="Dismiss">…</button></div>
       Tile: warning = #444648 glyph on yellow-100 (5.09:1); danger = white on red-100 (3.10:1, a non-text icon). Wraps under 782px. ── */
.ds-banner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; box-sizing: border-box; width: 100%; min-height: 54px; padding: 12px 36px 12px 20px; font: var(--body-md); color: var(--type-primary); }
.ds-banner.warning { background: var(--yellow-10); --bn-tile: var(--yellow-100); --bn-glyph: var(--type-primary); }
.ds-banner.danger { background: var(--red-10); --bn-tile: var(--red-100); --bn-glyph: var(--type-on-surface); }
.ds-banner .grp { min-width: 0; display: flex; align-items: center; gap: 8px; }
.ds-banner .tile { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: var(--radius-4); background: var(--bn-tile); color: var(--bn-glyph); font-size: 14px; }
.ds-banner .msg { min-width: 0; margin: 0; } .ds-banner .msg strong { font-weight: 500; }
.ds-banner .act { flex: none; }
.ds-banner .close { position: absolute; top: 0; right: 0; width: 24px; height: 24px; padding: 0; margin: 0; color: var(--type-secondary); } /* library: type-secondary, not the icon-only grey; 12px glyph */
.ds-banner .close > svg { width: 12px; height: 12px; } .ds-banner .close > .fa { font-size: 12px; }
@media (max-width: 781px) { .ds-banner { flex-wrap: wrap; align-items: flex-start; } .ds-banner .act { margin-left: 32px; } }

/* ── CHECK LIST box, "what still works" (Ovation Figma 18169:13401): overlay-0 fill, 1px stroke-tertiary, pad 16, r4, gap 16; heading 14 M secondary; rows gap 12, check 18px in success green (green-100).
       <div class="ds-checklist"><p class="hd">What still works</p><ul><li><i class="fa fa-check"></i>Text</li></ul></div> ── */
.ds-checklist { display: flex; flex-direction: column; gap: 16px; box-sizing: border-box; padding: 16px; background: var(--surface-overlay-0); border: 1px solid var(--stroke-tertiary); border-radius: var(--radius-4); }
.ds-checklist .hd { margin: 0; font: var(--heading-xs); color: var(--type-secondary); }
.ds-checklist ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ds-checklist li { display: flex; align-items: flex-start; gap: 8px; font: var(--body-md); color: var(--type-primary); }
.ds-checklist li .fa { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 19.6px; font-size: 18px; color: var(--action-success); } /* success green fill (green-100), Rijul 2026-11-02 */

/* ── COUNT BADGE = library Badge count / Tabs badge (SPEC §5): body-xs 10/1.3, pad 3/6, min-width 19, full radius.
       Default overlay-2 + tertiary (inside tabs); .on / .primary = --badge-strong fill (#C05605), white text (AA, Rijul 2026-11-01). ── */
.ds-count { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 19px; padding: 3.5px 6px 2.5px; border-radius: var(--radius-full); font: var(--body-xs); background: var(--surface-overlay-2); color: var(--type-tertiary); }
.ds-count.on, .ds-count.primary { background: var(--badge-strong); color: var(--neutral-white); }
/* Badge (non-count) = library Badge: btn-sm, --badge-strong fill, white text, r4; sizes .lg 36 pad 8, .md 30 pad 5, .sm 24 pad 5 at 10px */
.ds-badge { display: inline-flex; justify-content: center; align-items: center; font: var(--btn-sm); background: var(--badge-strong); color: var(--type-on-surface); border-radius: var(--radius-sm); min-height: 30px; padding: 5.6px 5px 4.4px; } /* Rubik line-box shift, as the library Badge md/lg/count (Rijul 2026-11-02) */
.ds-badge.lg { min-height: 36px; padding: 8.6px 8px 7.4px; } .ds-badge.sm { font: var(--label-sm); min-height: 24px; padding: 5px; }

/* ── TABS = library Tabs (Tabs.module.scss, SPEC §13): list gap 24, 1px stroke-tertiary rule, tabs have no side padding, 3px top/bottom transparent border.
       Active = brand-300 text, Medium, 3px brand-100 underline. Sizes on .ds-tabs: .lg 60 / default 52 / .sm 42 (12px). Per tab: .active .completed (green underline) .disabled.
       <div class="ds-tabs"><ul class="ds-tabs-list"><li class="active"><button>Overview <span class="ds-count on">4</span></button></li>…</ul></div> ── */
.ds-tabs-list { display: flex; list-style: none; padding: 0; margin: 0; gap: 24px; border-bottom: 1px solid var(--stroke-tertiary); position: relative; }
.ds-tabs-list > li { margin: 0 0 -1px; padding: 0; }
.ds-tabs-list > li > button { height: 52px; display: inline-flex; align-items: center; gap: 8px; padding: 1px 0; background: transparent; color: var(--type-tertiary); border: none; border-top: 3px solid transparent; border-bottom: 3px solid transparent; font: var(--body-md); cursor: pointer; transition: color .2s ease, border-color .2s ease, background-color .2s ease; }
.ds-tabs.lg .ds-tabs-list > li > button { height: 60px; } .ds-tabs.sm .ds-tabs-list > li > button { height: 42px; font: var(--body-sm); line-height: 1.6; }
.ds-tabs-list > li > button:focus { outline: none; }
.ds-tabs-list > li > button:focus-visible { outline: 2px solid var(--action-primary); outline-offset: 2px; border-radius: 4px; }
.ds-tabs-list > li:not(.active):not(.completed) > button:hover:not(:disabled) { color: var(--type-primary); }
.ds-tabs-list > li.active > button, .ds-tabs-list > li.active > button:hover { color: var(--brand-300); border-bottom-color: var(--action-primary); font-weight: 500; }
.ds-tabs-list > li.completed:not(.active) > button { border-bottom-color: var(--action-success); }
.ds-tabs-list > li.disabled > button { color: var(--type-tertiary); cursor: not-allowed; opacity: .7; }
.ds-tabs-list > li.active .ds-count { background: var(--badge-strong); color: var(--neutral-white); }

/* ── SEGMENTED CONTROL = library TabbedInput (TabbedInput.module.scss): radiogroup, 1px stroke-secondary outline, r4, overlay-0 track, 36px segments (.lg 40), pad 8/16.
       Active segment: white, heading-xs, brand-300, count badge --badge-strong. Radios are visually hidden; focus ring is drawn on the segment.
       <div class="ds-seg" role="radiogroup"><label class="active"><input type="radio" name="s" checked><span class="seg-in">All <span class="ds-count on">12</span></span></label>…</div> ── */
.ds-seg { position: relative; display: inline-flex; border-radius: var(--radius-sm); overflow: hidden; outline: 1px solid var(--stroke-secondary); background: var(--surface-overlay-0); }
.ds-seg input[type=radio] { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.ds-seg > label { cursor: pointer; display: inline-flex; flex-direction: column; align-items: flex-start; border-inline-start: 1px solid var(--stroke-secondary); }
.ds-seg > label:first-of-type { border-inline-start: none; }
.ds-seg .seg-in { height: 36px; padding: 8px 20px; box-sizing: border-box; border-radius: var(--radius-sm); display: inline-flex; justify-content: center; align-items: center; gap: 8px; font: var(--body-md); color: var(--type-tertiary); }
.ds-seg.lg .seg-in { height: 40px; }
.ds-seg > label:not(.active):hover .seg-in { color: var(--type-secondary); }
.ds-seg > label:has(input:focus-visible) .seg-in { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: calc(-1 * var(--focus-ring-width)); }
.ds-seg > label.active, .ds-seg > label:has(input:checked) { background: var(--surface-screen); }
.ds-seg > label.active .seg-in, .ds-seg > label:has(input:checked) .seg-in { font: var(--heading-xs); color: var(--brand-300); }
.ds-seg > label.active .ds-count, .ds-seg > label:has(input:checked) .ds-count { background: var(--badge-strong); color: var(--type-on-surface); }

/* ── SELECT = library Select (Select.module.scss). Variants: input (default) / .text. Sizes .md 36 / .lg 40 / .xl 50 (16px). Status .error .success.
       State via attributes, as the library: data-expanded="true" (listbox + flipped arrow), data-disabled="true". Option states .highlighted / aria-selected / hover.
       <div class="ds-select md" data-expanded="false"><label>Email service</label><div class="control"><div role="combobox" tabindex="0"><span class="placeholder">Choose</span><span class="arrow">svg 16px</span></div>
       <ul role="listbox"><li role="option" aria-selected="true">Mailchimp</li>…</ul></div><span class="help-text">…</span></div> ── */
.ds-select { display: inline-flex; flex-direction: column; gap: 4px; position: relative; min-width: 200px; max-width: 100%; width: fit-content; font-weight: 400; --item-h: 36px; }
.ds-select.md { --item-h: 36px; font: var(--body-md); } .ds-select.lg { --item-h: 40px; font: var(--body-md); } .ds-select.xl { --item-h: 50px; font: var(--body-lg); }
.ds-select .control { position: relative; display: flex; flex-direction: column; }
.ds-select > label { font: var(--body-md); color: var(--type-secondary); }
.ds-select [role=combobox], .ds-select [role=option] { min-height: var(--item-h); display: flex; align-items: center; color: var(--type-secondary); }
.ds-select [role=combobox] { cursor: pointer; gap: 4px; background: var(--surface-screen); border: 1px solid var(--stroke-secondary); border-radius: var(--radius-sm); box-sizing: border-box; box-shadow: var(--shadow-card); padding: 8px 16px; }
.ds-select.md [role=combobox] { padding-block: 7px; }
.ds-select [role=combobox]:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: var(--focus-ring-offset); }
.ds-select .placeholder { flex-grow: 1; white-space: nowrap; color: var(--type-tertiary); }
.ds-select:not([data-disabled=true]):hover .placeholder, .ds-select[data-expanded=true] .placeholder, .ds-select .selected-items { color: var(--type-primary); }
.ds-select .selected-items { flex-grow: 1; white-space: nowrap; }
.ds-select .arrow { font-size: 16px; display: flex; margin-inline-start: 16px; color: var(--neutral-400); }
.ds-select .arrow svg { width: 16px; height: 16px; }
.ds-select[data-expanded=true] .arrow svg { transform: rotate(180deg); }
.ds-select [role=listbox] { display: none; position: absolute; inset-block-start: 100%; inset-inline-start: 0; width: 100%; box-sizing: border-box; background: var(--surface-screen); z-index: 10; max-height: 300px; overflow-y: auto; margin-block: 0; padding-inline: 0; list-style: none; border: 1px solid var(--stroke-secondary); border-top: none; border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
.ds-select[data-expanded=true] [role=listbox] { display: block; }
.ds-select[data-expanded=true] [role=combobox] { border-end-start-radius: 0; border-end-end-radius: 0; }
.ds-select [role=option] { cursor: pointer; min-height: 40px; padding: 8px 16px 8px 14px; }
.ds-select [role=option][aria-selected=true], .ds-select [role=option]:hover, .ds-select [role=option].highlighted { background: var(--surface-overlay-1); color: var(--type-primary); }
.ds-select .help-text { font: var(--body-sm); color: var(--type-secondary); }
.ds-select.success:not([data-disabled=true]) [role=combobox] { border-color: var(--stroke-success); }
.ds-select.error:not([data-disabled=true]) [role=combobox] { border-color: var(--stroke-error); }
.ds-select[data-disabled=true] [role=combobox] { background: var(--surface-overlay-1); color: var(--type-tertiary); cursor: not-allowed; }
.ds-select[data-disabled=true] .placeholder { color: var(--type-tertiary); }
.ds-select[data-disabled=true] .arrow { color: var(--neutral-300); }
.ds-select.text [role=combobox] { font: var(--btn-md); background: transparent; border: 1px solid var(--stroke-secondary); box-shadow: none; padding: 8px 16px; color: var(--type-secondary); }
.ds-select.text [role=combobox] { border-color: transparent; }
.ds-select.text [role=listbox] { padding-block: 12px; border: none; border-radius: var(--radius-md); box-shadow: 0 4px 24px rgba(0, 0, 0, .12); }
.ds-select.text [role=option] { font: var(--body-md); }
.ds-select.text .text-prefix { font: var(--body-md); color: var(--type-tertiary); }
.ds-select.text .placeholder, .ds-select.text .selected-items { color: var(--type-primary); }
.ds-select.text[data-disabled=true] [role=combobox] { background: inherit; }

/* ── FILTER DROPDOWN = library FilterDropdown (FilterDropdown.module.scss): trigger 36px, borderless, r8, pad 0 10, gap 10, label tertiary, hover overlay-1;
       panel 280px, r8, shadow 0 4px 24px .12, pad 20/16/16; sections with a heading-xs header + chevron; options gap 12 (use .ds-check); footer gap 16 (Apply button 152px).
       <div class="ds-filter"><button class="ds-filter-btn"><svg/><span class="lbl">Filters</span><span class="ds-filter-badge">2</span><svg class="chev"/></button>
       <div class="ds-filter-panel" hidden><div class="ds-filter-sections"><div class="ds-filter-section"><button class="ds-filter-head"><span>Status</span><svg/></button><div class="ds-filter-opts"><label><input class="ds-check sm" type="checkbox"><span class="optlbl">…</span></label></div></div></div><hr class="ds-filter-div"><div class="ds-filter-foot">…</div></div></div> ── */
.ds-filter { position: relative; display: inline-block; }
.ds-filter-btn { display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; background: var(--surface-screen); border: none; border-radius: var(--radius-md); cursor: pointer; font: var(--body-md); color: var(--type-primary); }
.ds-filter-btn .lbl { font: var(--body-md); color: var(--type-tertiary); }
.ds-filter-btn svg { color: var(--type-tertiary); }
.ds-filter-btn:hover { background: var(--surface-overlay-1); } .ds-filter-btn:hover .lbl, .ds-filter-btn:hover svg { color: var(--type-primary); }
.ds-filter-btn:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: var(--focus-ring-offset); }
.ds-filter-btn .chev { transition: transform .2s ease; } .ds-filter.open .ds-filter-btn .chev { transform: rotate(180deg); }
.ds-filter-badge { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 19px; padding: 3px 6px; border-radius: var(--radius-full); font: var(--body-xs); background: var(--badge-strong); color: var(--neutral-white); }
.ds-filter-panel { position: absolute; top: calc(100% + 4px); left: 0; z-index: var(--layer-nav); width: 280px; box-sizing: border-box; background: var(--surface-screen); border-radius: var(--radius-md); box-shadow: 0 4px 24px rgba(0, 0, 0, .12); padding: 20px 16px 16px; }
.ds-filter-sections { display: flex; flex-direction: column; gap: 4px; } .ds-filter-section { display: flex; flex-direction: column; }
.ds-filter-head { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 6px 0; background: none; border: none; cursor: pointer; color: var(--type-tertiary); font: var(--heading-xs); }
.ds-filter-head > span { color: var(--type-primary); }
.ds-filter-head:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: var(--focus-ring-offset); }
.ds-filter-opts { display: flex; flex-direction: column; gap: 12px; padding: 8px 0 4px; }
.ds-filter-opts label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.ds-filter-opts .optlbl { font: var(--body-md); color: var(--type-tertiary); }
.ds-filter-opts input:checked + .optlbl { color: var(--type-primary); }
.ds-filter-div { margin: 12px 0; border: none; border-top: 1px solid var(--stroke-tertiary); }
.ds-filter-foot { display: flex; align-items: center; justify-content: flex-start; gap: 16px; } .ds-filter-foot .apply { width: 152px; }

/* ── CONTEXT MENU = library ContextMenu (ContextMenu.module.scss). Trigger .ds-kebab = text neutral button, min 32px, tertiary, hover secondary, WP-blue ring
       (library recipe, NO icon-only: <button class="btn-text btn-neutral ds-kebab" aria-haspopup="true" aria-label="Open menu">⋮</button>: md padding 8/12, r4, 20px glyph). Menu .ds-ctxmenu: white, r4, shadow 0 2px 8px .15, max 200, fade + scale .15s (add .visible).
       Items .ds-ctxitem: 40px, pad 8/16/8/14, 14px secondary, hover overlay-1, brand inside focus ring; .danger = #dc3545 (Leads literal). ── */
.btn-text.ds-kebab { min-width: 32px; min-height: 32px; color: var(--type-tertiary); font-size: 20px; line-height: 1; }
.btn-text.ds-kebab:hover { color: var(--type-secondary); }
.btn-text.ds-kebab:focus-visible { outline-color: var(--focus-ring-color); } /* brand ring: icon (kebab) buttons, library ContextMenu.module.scss:18-21 */
.ds-ctxwrap { position: relative; display: inline-block; }
.ds-ctxmenu { background: var(--surface-screen); border-radius: var(--radius-sm); box-shadow: 0 2px 8px rgba(0, 0, 0, .15); width: max-content; max-width: 200px; overflow: hidden; opacity: 0; transform: scale(.95); transition: opacity 150ms ease-out, transform 150ms ease-out; transform-origin: top left; z-index: var(--layer-nav); pointer-events: none; }
.ds-ctxmenu.visible { opacity: 1; transform: scale(1); pointer-events: auto; }
.ds-ctxitem { display: flex; align-items: center; box-sizing: border-box; min-height: 40px; padding: 8px 16px 8px 14px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--type-secondary); font: var(--body-md); background: none; border: 0; width: 100%; text-align: left; }
.ds-ctxitem:hover { background: var(--surface-overlay-1); }
.ds-ctxitem:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: calc(-1 * var(--focus-ring-width)); background: var(--surface-overlay-1); }
.ds-ctxitem.danger { color: #dc3545; } .ds-ctxitem.danger:hover { background: rgba(220, 53, 69, .1); }

/* ── PAGINATION = library Pagination (Pagination.module.scss): 36px row, pages 39x36 gap 12, r4, Drop 0, tertiary text; hover = brand-100 border + primary text;
       current = brand-10 fill + brand-100 border + neutral-600 text; focus ring brand-100. Rows selector at the right: "Show" + .ds-select.md (119px).
       <nav class="ds-pager"><div class="pages"><button class="pg current">1</button><button class="pg">2</button><span class="pg ellipsis">…</span></div><div class="rows"><span class="rowslbl">Show</span>…</div></nav> ── */
.ds-pager { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 36px; }
.ds-pager .pages { display: flex; align-items: center; gap: 12px; }
.ds-pager .pg { font: var(--body-md); box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; width: 39px; height: 36px; padding: 8px 16px; color: var(--type-tertiary); background: var(--surface-screen); border: 1px solid var(--stroke-secondary); border-radius: var(--radius-sm); box-shadow: var(--shadow-card); cursor: pointer; }
.ds-pager .pg:hover:not(:disabled):not(.ellipsis) { border-color: var(--brand-100); color: var(--type-primary); }
.ds-pager .pg:focus-visible:not(.ellipsis) { outline: 2px solid var(--brand-100); outline-offset: 2px; }
.ds-pager .pg:disabled { cursor: not-allowed; opacity: .6; }
.ds-pager .pg.current { background: var(--brand-10); border-color: var(--brand-100); color: var(--neutral-600); cursor: default; }
.ds-pager .pg.ellipsis { cursor: default; outline: none; user-select: none; }
.ds-pager .rows { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.ds-pager .rowslbl { font: var(--body-md); color: var(--type-primary); text-align: end; }
.ds-pager .rows .ds-select { min-width: 119px; max-width: 119px; }

/* ── TREND PILL = library DataCard trend (DataCard.module.scss:170-186): 30px, full radius, pad 0 8. Positive text = type-success (green-300), negative = red-100. ── */
.ds-trend { display: inline-flex; align-items: center; gap: 2px; padding: 0 8px; height: 30px; border-radius: var(--radius-full); }
.ds-trend.up { background: var(--green-10); color: var(--type-success); } .ds-trend.down { background: var(--red-10); color: var(--red-100); }

/* ── SHARED MOTION ─────────────────────────────────────────────────── */
@keyframes ds-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes ds-spin { to { transform: rotate(360deg); } }
.spin { animation: ds-spin .8s linear infinite; }
