/* Polaris v2 kit — components.
   Framework-free CSS for the Polaris 2.0 (admin-next) look, built on tokens.css (the --bx-* tokens
   of bundlex-ui). Load order: tokens.css → components.css → components.js (optional, for behaviour).
   Every class is prefixed px-. Put class="px" on <body> (or any wrapper) for the base text style.
   Legacy admin look: add class="bx-admin-legacy" to <html>. Compact page spacing: "bx-spacing-compact". */

:where(:root) {
  --bx-color-bg-page: 241 241 241;
  --px-font: var(--bx-font-family-sans, 'ShopifyInter', 'Inter', ui-sans-serif, system-ui, sans-serif);
  --px-ease: cubic-bezier(.2, 0, 0, 1);
  --px-chart-1: #13acf0; --px-chart-2: #6a42e9; --px-chart-3: #597eed; --px-chart-4: #d147ac;
  --px-chart-compare: #0a97d5; --px-trend-up: #078d4e; --px-trend-down: #616161;
  /* the spacing scale used by s-* props */
  --px-space-none: 0; --px-space-small-500: 0.125rem; --px-space-small-400: 0.25rem; --px-space-small-300: 0.375rem;
  --px-space-small-200: 0.5rem; --px-space-small-100: 0.625rem; --px-space-small: 0.75rem; --px-space-base: 1rem;
  --px-space-large: 1.25rem; --px-space-large-100: 1.5rem; --px-space-large-200: 2rem; --px-space-large-300: 2.5rem;
  --px-space-large-400: 3rem; --px-space-large-500: 4rem;
}

/* ---------- base ---------- */
.px, .px *, .px *::before, .px *::after { box-sizing: border-box; }
.px {
  font-family: var(--px-font);
  font-feature-settings: var(--bx-font-feature-settings);
  font-size: var(--bx-font-size-body); line-height: var(--bx-line-height-body);
  letter-spacing: var(--bx-letter-spacing-body);
  color: rgb(var(--bx-color-text));
  -webkit-font-smoothing: antialiased;
}
.px-app { background: rgb(var(--bx-color-bg-page)); min-height: 100vh; margin: 0; }
.px :focus-visible { outline: var(--bx-focus-ring-width) solid rgb(var(--bx-color-border-focus)); outline-offset: var(--bx-focus-ring-offset); }
.px-sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .px *, .px *::before, .px *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ---------- typography: s-heading, s-text, s-paragraph, s-number ---------- */
.px-heading { margin: 0; font-size: var(--bx-font-size-heading); line-height: var(--bx-line-height-heading); font-weight: var(--bx-font-weight-bold); letter-spacing: var(--bx-letter-spacing-heading); }
.px-heading--small { font-size: var(--bx-font-size-small); line-height: var(--bx-line-height-small); }
.px-heading--large, .px-heading--large-100 { font-size: 1.0625rem; line-height: 1.5rem; }  /* large-100 = large */
.px-heading--large-200 { font-size: 1.25rem; line-height: 1.75rem; }
.px-heading--large-300 { font-size: 1.5rem; line-height: 2rem; }
.px-heading--large-400, .px-display { font-size: var(--bx-font-size-display); line-height: var(--bx-line-height-display); letter-spacing: var(--bx-letter-spacing-display); }
.px-paragraph { margin: 0; }
.px-paragraph + .px-paragraph { margin-top: var(--px-space-small-200); }
.px-text--strong, .px-text--semibold { font-weight: var(--bx-font-weight-semibold); }  /* fontWeight semibold (= s-text type strong) */
.px-text--bold { font-weight: var(--bx-font-weight-bold); }
.px-text--small { font-size: var(--bx-font-size-small); line-height: var(--bx-line-height-small); }
.px-text--subdued { color: rgb(var(--bx-color-text-secondary)); }
/* s-text fontSize small-200 · small-100 · small · base · large · large-100 (kit approximations of the Polaris scale) */
.px-text--small-200 { font-size: .625rem; line-height: .875rem; }
.px-text--small-100 { font-size: .6875rem; line-height: 1rem; }
.px-text--base { font-size: var(--bx-font-size-body, .8125rem); line-height: var(--bx-line-height-body, 1.25rem); }
.px-text--large { font-size: .875rem; line-height: 1.25rem; }
.px-text--large-100 { font-size: 1rem; line-height: 1.5rem; }
.px-text--medium { font-weight: var(--bx-font-weight-medium); }
address.px-text { font-style: normal; }  /* s-text type="address" */
/* s-text accessibilityVisibility="exclusive" (screen readers only) */
.px-visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.px-text--disabled { color: rgb(var(--bx-color-text-disabled)); }
.px-tone--info { color: rgb(var(--bx-color-text-info)); }
.px-tone--success { color: rgb(var(--bx-color-text-success)); }
.px-tone--caution { color: rgb(var(--bx-color-text-caution)); }
.px-tone--warning { color: rgb(var(--bx-color-text-warning)); }
.px-tone--critical { color: rgb(var(--bx-color-text-critical)); }
.px-tone--neutral { color: rgb(var(--bx-color-text-secondary)); }
.px-number { font-variant-numeric: tabular-nums; }
.px-clamp-1, .px-clamp-2, .px-clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.px-clamp-1 { -webkit-line-clamp: 1; } .px-clamp-2 { -webkit-line-clamp: 2; } .px-clamp-3 { -webkit-line-clamp: 3; }
/* s-heading / s-paragraph / s-text lineClamp N: class="px-clamp" style="--clamp:N" (default Infinity = no class) */
.px-clamp { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; -webkit-line-clamp: var(--clamp, 1); }
.px-trend { font-size: var(--bx-font-size-small); font-weight: var(--bx-font-weight-medium); color: var(--px-trend-down); white-space: nowrap; }
.px-trend--up { color: var(--px-trend-up); }

/* lists */
.px-list { margin: 0; padding-inline-start: 1.25rem; display: flex; flex-direction: column; gap: var(--px-space-small-400); }
.px-list li::marker { color: rgb(var(--bx-color-text-secondary)); }

/* ---------- links ---------- */
.px-link { color: rgb(var(--bx-color-text-link)); text-decoration: none; border-radius: var(--bx-radius-focus); cursor: pointer; background: none; border: 0; padding: 0; font: inherit; }
.px-link:hover { color: rgb(var(--bx-color-text-link-hover)); text-decoration: underline; }
.px-link:active { color: rgb(var(--bx-color-text-link-active)); }
.px-link--inline, .px-paragraph .px-link { color: currentColor; text-decoration: underline; }
.px-link--critical { color: rgb(var(--bx-color-text-link-critical)); }
.px-link--neutral { color: rgb(var(--bx-color-text)); }

/* ---------- button: s-button ---------- */
.px-button {
  --_bg: rgb(var(--bx-color-button-bg)); --_bg-h: rgb(var(--bx-color-button-bg-hover)); --_bg-a: rgb(var(--bx-color-button-bg-active));
  --_fg: rgb(var(--bx-color-text)); --_sh: var(--bx-shadow-button);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--px-space-small-400);
  height: var(--bx-height-button); padding: 0 var(--px-space-small); border: 0; border-radius: var(--bx-radius-button);
  font: inherit; font-size: var(--bx-font-size-button); line-height: var(--bx-line-height-button); font-weight: var(--bx-font-weight-medium);
  letter-spacing: var(--bx-letter-spacing-small); white-space: nowrap; text-decoration: none; cursor: pointer; user-select: none;
  color: var(--_fg); background: var(--_bg); box-shadow: var(--_sh);
  transition: background-color .12s var(--px-ease), color .12s, box-shadow .12s;
}
.px-button:hover { background: var(--_bg-h); }
.px-button:active { background: var(--_bg-a); box-shadow: var(--bx-shadow-button-inset); }
.px-button svg, .px-button .px-icon { width: 1rem; height: 1rem; flex: none; }
.px-button--primary {
  --_fg: #fff;
  background: var(--bx-gradient-button-primary), rgb(var(--bx-color-bg-fill-strong));
  box-shadow: var(--bx-shadow-button-primary);
}
.px-button--primary:hover { background: var(--bx-gradient-button-primary), rgb(var(--bx-color-bg-fill-strong-hover)); color: rgb(var(--bx-color-button-primary-text-hover)); box-shadow: var(--bx-shadow-button-primary-hover); }
.px-button--primary:active { background: var(--bx-gradient-button-primary), rgb(var(--bx-color-bg-fill-strong-hover)); color: rgb(var(--bx-color-button-primary-text-active)); box-shadow: var(--bx-shadow-button-primary-inset); }
.px-button--secondary { --_bg: rgb(var(--bx-color-button-secondary-bg)); --_bg-h: rgb(var(--bx-color-button-secondary-bg-hover)); --_bg-a: rgb(var(--bx-color-button-secondary-bg-active)); }
.px-button--tertiary { --_bg: transparent; --_bg-h: rgb(var(--bx-color-bg-fill-transparent-hover) / var(--bx-color-bg-fill-transparent-hover-alpha)); --_bg-a: rgb(var(--bx-color-bg-fill-transparent-selected) / var(--bx-color-bg-fill-transparent-selected-alpha)); --_sh: none; }
.px-button--critical { --_bg: rgb(var(--bx-color-button-critical-bg)); --_bg-h: rgb(var(--bx-color-button-critical-bg-hover)); --_bg-a: rgb(var(--bx-color-button-critical-bg-active)); --_fg: rgb(var(--bx-color-button-critical-text)); }
.px-button--critical:hover { color: rgb(var(--bx-color-button-critical-text-hover)); }
.px-button--primary.px-button--critical { --_fg: #fff; background: var(--bx-gradient-button-critical), rgb(var(--bx-color-bg-fill-critical)); box-shadow: var(--bx-shadow-button-critical); }
.px-button--primary.px-button--critical:hover { background: var(--bx-gradient-button-critical), rgb(var(--bx-color-bg-fill-critical-hover)); color: #fff; box-shadow: var(--bx-shadow-button-critical-hover); }
.px-button--primary.px-button--critical:active { background: rgb(var(--bx-color-bg-fill-critical-active)); box-shadow: var(--bx-shadow-button-critical-inset); }
.px-button--tertiary.px-button--critical { --_bg: transparent; --_fg: rgb(var(--bx-color-text-critical)); }
.px-button--micro { height: var(--bx-height-button-micro); padding: 0 var(--px-space-small-200); font-size: var(--bx-font-size-button-micro); line-height: var(--bx-line-height-button-micro); }
.px-button--icon { width: var(--bx-height-button); padding: 0; }
.px-button--micro.px-button--icon { width: var(--bx-height-button-micro); }
.px-button--fill { display: flex; width: 100%; }
.px-button:disabled, .px-button[aria-disabled="true"]:not([aria-busy="true"]) { cursor: not-allowed; color: rgb(var(--bx-color-text-disabled)); background: rgb(var(--bx-color-button-bg-disabled) / var(--bx-color-button-bg-disabled-alpha)); box-shadow: none; }
.px-button--primary:disabled, .px-button--primary[aria-disabled="true"]:not([aria-busy="true"]) { color: #fff; background: rgb(var(--bx-color-button-primary-bg-disabled) / var(--bx-color-button-primary-bg-disabled-alpha)); }
.px-button--tertiary:disabled { background: transparent; }
.px-button[aria-busy="true"] { color: transparent !important; pointer-events: none; cursor: progress; }  /* loading: aria-busy + aria-disabled; components.js also blocks click/keyboard */
.px-button[aria-busy="true"]::after { content: ""; position: absolute; inset: 0; margin: auto; width: 1rem; height: 1rem; border-radius: 50%; border: 2px solid rgb(var(--bx-color-spinner-track) / var(--bx-color-spinner-track-alpha)); border-top-color: rgb(var(--bx-color-button-spinner)); animation: px-spin .7s linear infinite; }
.px-button[aria-busy="true"] svg, .px-button[aria-busy="true"] .px-icon { visibility: hidden; }
.px-button--primary[aria-busy="true"]::after { border-color: rgb(255 255 255 / .3); border-top-color: #fff; }
.px-button[aria-pressed="true"] { background: var(--_bg-a); }

/* button group: s-button-group */
.px-button-group { display: inline-flex; flex-wrap: wrap; gap: var(--px-space-small-200); align-items: center; }
.px-button-group--connected { gap: 0; border-radius: var(--bx-radius-button); overflow: hidden; flex-wrap: nowrap; }
.px-button-group--connected > .px-button { border-radius: 0; }
.px-button-group--connected > .px-button + .px-button { box-shadow: inset 1px 0 0 rgb(var(--bx-color-button-group-divider) / var(--bx-color-button-group-divider-alpha)); }

/* segmented control (package SegmentedControl) */
.px-segmented { display: inline-flex; padding: 2px; gap: 2px; border-radius: var(--bx-radius-segmented); background: rgb(var(--bx-color-segmented-track, var(--bx-color-bg-surface-tertiary))); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.px-segmented::-webkit-scrollbar { display: none; }
.px-segmented > button { height: var(--bx-height-segmented-item); padding: 0 var(--px-space-small); border: 0; border-radius: var(--bx-radius-segmented-item); background: transparent; font: inherit; font-size: var(--bx-font-size-button); font-weight: var(--bx-font-weight-medium); color: rgb(var(--bx-color-text-secondary)); cursor: pointer; white-space: nowrap; transition: background-color .12s, color .12s; flex: none; max-width: calc(10rem + 2 * var(--px-space-small)); overflow: hidden; text-overflow: ellipsis; }
.px-segmented > button > svg { vertical-align: -3px; margin-inline-end: var(--px-space-small-400); }
.px-segmented > button:hover { background: rgb(0 0 0 / .05); }
.px-segmented > button[aria-checked="true"], .px-segmented > button[aria-selected="true"] { background: rgb(var(--bx-color-bg-surface)); color: rgb(var(--bx-color-text)); box-shadow: var(--bx-shadow-segmented-selected); }

/* tabs (filter views) */
.px-tabs { display: flex; gap: var(--px-space-small-400); overflow-x: auto; }
.px-tabs > [role="tab"] { flex: none; max-width: calc(10rem + 2 * var(--px-space-small)); overflow: hidden; text-overflow: ellipsis; }  /* merchant-named tabs are capped; full name in title */
.px-tabs__end { display: flex; flex: none; align-items: center; }
.px-tabs > [role="tab"] { height: var(--bx-height-button); padding: 0 var(--px-space-small); border: 0; border-radius: var(--bx-radius-button); background: transparent; font: inherit; font-size: var(--bx-font-size-button); font-weight: var(--bx-font-weight-medium); color: rgb(var(--bx-color-text)); cursor: pointer; white-space: nowrap; }
.px-tabs > [role="tab"]:hover { background: rgb(0 0 0 / .08); }
.px-tabs > [role="tab"][aria-selected="true"] { background: rgb(var(--bx-color-bg-fill-transparent-selected) / var(--bx-color-bg-fill-transparent-selected-alpha)); }

/* pagination */
.px-pagination { display: inline-flex; gap: 2px; align-items: center; }
.px-pagination > button { width: var(--bx-height-button); height: var(--bx-height-button); border: 0; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: rgb(var(--bx-color-icon)); background: rgb(var(--bx-color-pagination-bg) / var(--bx-color-pagination-bg-alpha)); }
.px-pagination > button:first-child { border-radius: var(--bx-radius-button) 0 0 var(--bx-radius-button); }
.px-pagination > button:last-of-type { border-radius: 0 var(--bx-radius-button) var(--bx-radius-button) 0; }
.px-pagination > button:hover { background: rgb(var(--bx-color-pagination-bg-hover) / var(--bx-color-pagination-bg-hover-alpha)); }
.px-pagination > button:active { background: rgb(var(--bx-color-pagination-bg-active) / var(--bx-color-pagination-bg-active-alpha)); }
.px-pagination > button:disabled { color: rgb(var(--bx-color-icon-disabled)); cursor: not-allowed; background: rgb(var(--bx-color-pagination-bg) / var(--bx-color-pagination-bg-alpha)); }
.px-pagination > span { margin-inline-start: var(--px-space-small-200); font-size: var(--bx-font-size-small); color: rgb(var(--bx-color-text-secondary)); }

/* clickable: s-clickable — an interactive box. s-clickable defaults: no fill, borderRadius none, inlineSize auto.
   The kit's hover/pressed fills, control radius and full width are kit extras: add .px-radius-none and
   style="width:auto" (or display:inline-block) to match the s-clickable defaults. */
.px-clickable { display: block; width: 100%; padding: 0; border: 0; background: transparent; font: inherit; color: inherit; text-align: inherit; text-decoration: none; cursor: pointer; border-radius: var(--bx-radius-control); transition: background-color .12s; }
.px-clickable:hover { background: rgb(var(--bx-color-bg-surface-hover)); }
.px-clickable:active { background: rgb(var(--bx-color-bg-surface-active)); }

/* ---------- chip, clickable chip, tag ---------- */
.px-chip { display: inline-flex; align-items: center; gap: var(--px-space-small-500); max-width: 100%; height: 1.5rem; padding: 0 var(--px-space-small-200); border-radius: var(--bx-radius-badge); font-size: var(--bx-font-size-small); font-weight: var(--bx-font-weight-medium); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: rgb(var(--bx-color-tag-bg) / var(--bx-color-tag-bg-alpha)); color: rgb(var(--bx-color-tag-text)); border: 0; font-family: inherit; }
.px-chip--subdued { background: transparent; box-shadow: inset 0 0 0 1px rgb(var(--bx-color-border)); }
.px-chip--strong { background: rgb(var(--bx-color-bg-fill-strong)); color: #fff; }
button.px-chip, a.px-chip[href] { cursor: pointer; transition: background-color .12s; text-decoration: none; border: 0; font-family: inherit; }
a.px-chip[href]:hover { background: rgb(0 0 0 / .1); }
button.px-chip:disabled, .px-chip[aria-disabled="true"] { cursor: not-allowed; color: rgb(var(--bx-color-text-disabled)); background: rgb(var(--bx-color-button-bg-disabled) / var(--bx-color-button-bg-disabled-alpha)); box-shadow: none; }
.px-chip__graphic { display: inline-flex; flex: none; width: 1rem; height: 1rem; margin-inline-start: -2px; color: currentColor; }  /* s-chip and s-clickable-chip graphic slot: an icon only */
.px-chip__graphic svg, svg.px-chip__graphic { width: 1rem; height: 1rem; }
button.px-chip:not(:disabled):hover { background: rgb(0 0 0 / .1); }
button.px-chip.px-chip--strong:hover, a.px-chip.px-chip--strong[href]:hover { background: rgb(var(--bx-color-bg-fill-strong-hover)); }
.px-chip__remove { display: inline-flex; width: 1rem; height: 1rem; border: 0; padding: 0; margin-inline-end: -4px; border-radius: 4px; background: transparent; color: inherit; cursor: pointer; }
.px-chip__remove:hover { background: rgb(0 0 0 / .08); }

/* ---------- badge: s-badge ---------- */
.px-badge { display: inline-flex; align-items: center; gap: 2px; max-width: 100%; padding: var(--bx-space-badge-block) var(--bx-space-badge-inline); border-radius: var(--bx-radius-badge); font-size: var(--bx-font-size-small); line-height: var(--bx-line-height-small); font-weight: var(--bx-font-weight-medium); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: rgb(var(--bx-color-bg-fill-transparent-secondary) / var(--bx-color-bg-fill-transparent-secondary-alpha)); color: rgb(var(--bx-color-text-secondary)); vertical-align: middle; }
.px-badge svg { width: .875rem; height: .875rem; flex: none; }
.px-badge--neutral { background: rgb(var(--bx-color-bg-fill-tertiary)); color: rgb(var(--bx-color-text)); }  /* tone neutral */
.px-badge--info { background: rgb(var(--bx-color-bg-fill-info-secondary)); color: rgb(var(--bx-color-badge-text-info)); }
.px-badge--success { background: rgb(var(--bx-color-bg-fill-success-secondary)); color: rgb(var(--bx-color-badge-text-success)); }
.px-badge--caution { background: rgb(var(--bx-color-bg-fill-caution-secondary)); color: rgb(var(--bx-color-badge-text-caution)); }
.px-badge--warning { background: rgb(var(--bx-color-bg-fill-warning-secondary)); color: rgb(var(--bx-color-badge-text-warning)); }
.px-badge--critical { background: rgb(var(--bx-color-bg-fill-critical-secondary)); color: rgb(var(--bx-color-badge-text-critical)); }
.px-badge--strong { background: rgb(var(--bx-color-bg-fill-strong)); color: #fff; }
.px-badge--strong.px-badge--neutral { background: rgb(var(--bx-color-bg-fill-strong)); color: #fff; }
.px-badge--strong.px-badge--info { background: rgb(var(--bx-color-bg-fill-info)); color: rgb(var(--bx-color-text-info-strong)); }
.px-badge--strong.px-badge--success { background: rgb(var(--bx-color-bg-fill-success)); color: rgb(var(--bx-color-text-success-strong)); }
.px-badge--strong.px-badge--caution { background: rgb(var(--bx-color-bg-fill-caution)); color: rgb(var(--bx-color-text-caution-strong)); }
.px-badge--strong.px-badge--warning { background: rgb(var(--bx-color-bg-fill-warning)); color: rgb(var(--bx-color-text-warning)); }
.px-badge--strong.px-badge--critical { background: rgb(var(--bx-color-bg-fill-critical)); color: #fff; }
.px-badge--large { padding: .1875rem .5rem; font-size: var(--bx-font-size-body); }
.px-badge--large-100 { padding: .3125rem .625rem; font-size: var(--bx-font-size-body); }
.px-badge--loading { min-width: 2.75rem; min-height: 1.25rem; }
/* status dot + word (lists of a fixed set) */
.px-status { display: inline-flex; align-items: center; gap: var(--px-space-small-300); white-space: nowrap; }
.px-status::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: rgb(var(--bx-color-icon-disabled)); }
.px-status--success::before { background: rgb(var(--bx-color-icon-success)); }
.px-status--info::before { background: rgb(var(--bx-color-icon-info)); }
.px-status--caution::before { background: rgb(var(--bx-color-icon-caution)); }
.px-status--critical::before { background: rgb(var(--bx-color-icon-critical)); }

/* ---------- banner: s-banner ---------- */
.px-banner { display: flex; gap: var(--px-space-small-200); align-items: flex-start; padding: var(--bx-space-infobox); border-radius: var(--bx-radius-control); background: rgb(var(--bx-color-bg-surface-secondary)); color: rgb(var(--bx-color-text-secondary)); }
.px-banner__icon { flex: none; width: 1.25rem; height: 1.25rem; color: rgb(var(--bx-color-icon-secondary)); }
.px-banner__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--px-space-small-400); }
.px-banner__title { margin: 0; font-weight: var(--bx-font-weight-bold); color: rgb(var(--bx-color-text)); font-size: var(--bx-font-size-body); }
.px-banner__actions { display: flex; flex-wrap: wrap; gap: var(--px-space-small-200); margin-top: var(--px-space-small-300); }
.px-banner__actions .px-button { background: rgb(var(--bx-color-bg-surface)); box-shadow: 0 0 0 1px rgb(0 0 0 / .08); }
.px-banner__actions .px-button:hover { background: rgb(var(--bx-color-bg-surface-hover)); }
.px-banner__dismiss { flex: none; width: 1.75rem; height: 1.75rem; margin: -.25rem -.25rem 0 0; border: 0; border-radius: var(--bx-radius-control-inner); background: transparent; color: inherit; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.px-banner__dismiss:hover { background: rgb(0 0 0 / .08); }
.px-banner--info { background: rgb(var(--bx-color-bg-surface-info)); color: rgb(var(--bx-color-badge-text-info)); } .px-banner--info .px-banner__icon { color: rgb(var(--bx-color-infobox-icon-info)); }
.px-banner--success { background: rgb(var(--bx-color-bg-surface-success)); color: rgb(var(--bx-color-badge-text-success)); } .px-banner--success .px-banner__icon { color: rgb(var(--bx-color-icon-success)); }
.px-banner--warning { background: rgb(var(--bx-color-bg-surface-caution)); color: rgb(var(--bx-color-badge-text-caution)); } .px-banner--warning .px-banner__icon { color: rgb(var(--bx-color-infobox-icon-warning)); }
.px-banner--critical { background: rgb(var(--bx-color-bg-surface-critical)); color: rgb(var(--bx-color-badge-text-critical)); } .px-banner--critical .px-banner__icon { color: rgb(var(--bx-color-icon-critical)); }

/* ---------- progress, spinner, skeleton ---------- */
.px-progress { position: relative; height: var(--bx-height-progress); border-radius: var(--bx-radius-progress); background: rgb(var(--bx-color-bg-track)); overflow: hidden; }
.px-progress > span { display: block; height: 100%; width: var(--value, 0%); border-radius: inherit; background: rgb(var(--bx-color-bg-fill-strong)); transition: width .3s var(--px-ease); }
.px-progress:not([aria-valuenow]) > span { position: absolute; width: 35%; animation: px-indeterminate 1.3s ease-in-out infinite; }
.px-progress--info > span { background: rgb(var(--bx-color-bg-fill-info)); }
.px-progress--success > span { background: rgb(var(--bx-color-bg-fill-success)); }
.px-progress--caution > span { background: rgb(var(--bx-color-bg-fill-caution)); }
.px-progress--warning > span { background: rgb(var(--bx-color-bg-fill-warning)); }
.px-progress--critical > span { background: rgb(var(--bx-color-bg-fill-critical)); }
.px-progress--neutral > span { background: rgb(var(--bx-color-border-strong)); }
@keyframes px-indeterminate { from { left: -35%; } to { left: 100%; } }
.px-spinner { display: inline-block; width: 1.25rem; height: 1.25rem; border-radius: 50%; border: .15rem solid rgb(var(--bx-color-spinner-track) / var(--bx-color-spinner-track-alpha)); border-top-color: rgb(var(--bx-color-spinner)); animation: px-spin .7s linear infinite; }
.px-spinner--large { width: 2rem; height: 2rem; border-width: .1875rem; }
.px-spinner--large-100 { width: 2.75rem; height: 2.75rem; border-width: .22rem; }
@keyframes px-spin { to { transform: rotate(360deg); } }
.px-skeleton { display: block; height: .75rem; border-radius: 6px; background: rgb(var(--bx-color-bg-surface-active)); animation: px-pulse 1.4s ease-in-out infinite; }
.px-skeleton-line { display: flex; align-items: center; height: var(--bx-line-height-body); }
@keyframes px-pulse { 50% { opacity: .55; } }

/* ---------- empty state ---------- */
.px-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--px-space-small-200); padding: var(--px-space-large-200) var(--px-space-base); }
.px-empty__graphic { max-width: 12rem; margin-bottom: var(--px-space-small-200); }
.px-empty__text { max-width: 26rem; color: rgb(var(--bx-color-text-secondary)); margin: 0; }
.px-empty__actions { display: flex; gap: var(--px-space-small-200); margin-top: var(--px-space-small-400); }

/* ---------- fields ---------- */
.px-field { display: flex; flex-direction: column; gap: var(--bx-space-field-gap); min-width: 0; }
.px-label { font-size: var(--bx-font-size-body); line-height: var(--bx-line-height-body); color: rgb(var(--bx-color-text)); }
.px-label--hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.px-required::after { content: " *"; color: rgb(var(--bx-color-details-text-critical)); }
.px-details { font-size: var(--bx-font-size-details); line-height: var(--bx-line-height-details); letter-spacing: var(--bx-letter-spacing-details); color: rgb(var(--bx-color-text-secondary)); }
.px-error { display: flex; gap: var(--px-space-small-400); align-items: flex-start; font-size: var(--bx-font-size-details); line-height: var(--bx-line-height-details); color: rgb(var(--bx-color-details-text-critical)); }
.px-error::before { content: ""; flex: none; width: 1rem; height: 1rem; margin-top: 1px; border-radius: 50%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6' fill='%23d40004'/%3E%3Cpath d='M8 5v3.5M8 10.8v.1' stroke='white' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center/1rem no-repeat; }
.px-input {
  width: 100%; height: var(--bx-height-field); padding: 0 var(--px-space-small); border: var(--bx-border-width-field) solid transparent; border-radius: var(--bx-radius-control);
  font: inherit; font-size: var(--bx-font-size-input); line-height: var(--bx-line-height-input); color: rgb(var(--bx-color-text));
  background: rgb(var(--bx-color-input-bg)); box-shadow: var(--bx-shadow-input); outline: none; appearance: none; -webkit-appearance: none;
  transition: box-shadow .12s var(--px-ease), background-color .12s;
}
.px-input::placeholder { color: rgb(var(--bx-color-icon-secondary) / .8); }
.px-input:hover { box-shadow: 0 .125rem .1875rem -.0625rem #0000000a, 0 0 0 .0625rem rgb(var(--bx-color-border-input-hover) / .5); }
.px-input:focus { box-shadow: var(--bx-shadow-input-focus); outline: var(--bx-outline-width-field-focus) solid rgb(var(--bx-color-border-focus)); }
.px-input[aria-invalid="true"] { background: rgb(var(--bx-color-input-bg-error)); box-shadow: var(--bx-shadow-input-error); }
.px-input[aria-invalid="true"]:focus { box-shadow: var(--bx-shadow-input-error-focus); }
.px-input:disabled { color: rgb(var(--bx-color-text-disabled)); box-shadow: var(--bx-shadow-input-disabled); cursor: not-allowed; }
.px-input[readonly] { background: rgb(var(--bx-color-bg-surface-secondary)); box-shadow: var(--bx-shadow-input-disabled); }
.px-input[type=number] { -moz-appearance: textfield; }
.px-input[type=number]::-webkit-inner-spin-button, .px-input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
textarea.px-input { height: auto; min-height: var(--bx-height-textarea-min); padding-block: .3125rem; resize: vertical; }
.px-input--slim { height: var(--bx-height-field-slim); }
select.px-input { padding-inline-end: 2rem; cursor: pointer; background-image: var(--bx-image-select-chevron); background-repeat: no-repeat; background-position: right .5rem center; background-size: 1rem; }
select.px-input.is-placeholder, select.px-input:has(> option[value=""]:checked) { color: rgb(var(--bx-color-icon-secondary)); }  /* s-select placeholder: first <option value="" disabled selected> */
select.px-input option { color: rgb(var(--bx-color-text)); }
.px-input-wrap { position: relative; display: flex; align-items: center; }
.px-input-wrap > .px-input { flex: 1; }
.px-input-wrap__icon, .px-input-wrap__prefix { position: absolute; left: var(--px-space-small-100); pointer-events: none; color: rgb(var(--bx-color-icon-secondary)); display: inline-flex; }
.px-input-wrap__suffix { position: absolute; right: var(--px-space-small); pointer-events: none; color: rgb(var(--bx-color-text-secondary)); }
.px-input-wrap--icon > .px-input, .px-input-wrap--prefix > .px-input { padding-inline-start: 2rem; }
.px-input-wrap--suffix > .px-input { padding-inline-end: 3.25rem; }
.px-input-wrap__accessory { position: absolute; right: .25rem; }
.px-input-wrap--accessory > .px-input { padding-inline-end: 5.5rem; }
.px-input-clear { position: absolute; right: .375rem; width: 1.125rem; height: 1.125rem; border: 0; padding: 0; border-radius: 50%; background: rgb(var(--bx-color-icon-secondary)); color: #fff; display: none; align-items: center; justify-content: center; cursor: pointer; }
.px-input-wrap--clearable > .px-input:not(:placeholder-shown) ~ .px-input-clear { display: inline-flex; }
/* number stepper */
.px-stepper { position: absolute; right: var(--bx-space-stepper-inset); display: flex; flex-direction: column; }
.px-stepper > button { width: var(--bx-size-stepper-pill-width); height: var(--bx-size-stepper-pill-height); border: 0; padding: 0; border-radius: var(--bx-radius-stepper); background: rgb(var(--bx-color-stepper-bg) / var(--bx-color-stepper-bg-alpha)); color: rgb(var(--bx-color-icon-secondary)); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.px-stepper > button:hover { background: rgb(var(--bx-color-stepper-bg-hover)); }
.px-input-wrap--stepper > .px-input { height: var(--bx-height-field-stepper); padding-inline-end: 2.25rem; }
/* choices: s-checkbox, s-choice-list, s-switch */
.px-choice { display: flex; gap: var(--px-space-small-200); align-items: flex-start; cursor: pointer; }
.px-choice__text { display: flex; flex-direction: column; }
.px-choice__secondary { margin-inline-start: 1.5rem; }
.px-choice-list { display: flex; flex-direction: column; gap: var(--px-space-small-200); border: 0; margin: 0; padding: 0; }
.px-choice-list > legend { padding: 0; margin-bottom: var(--bx-space-field-gap); }
.px-checkbox, .px-radio { appearance: none; -webkit-appearance: none; flex: none; width: var(--bx-size-choice); height: var(--bx-size-choice); margin: calc(var(--bx-space-choice-margin) + .1875rem) var(--bx-space-choice-margin) 0; background: rgb(var(--bx-color-bg-surface)); box-shadow: var(--bx-shadow-choice); cursor: pointer; transition: background-color .1s, box-shadow .1s; }
.px-checkbox { border-radius: var(--bx-radius-checkbox); }
.px-radio { border-radius: 50%; }
.px-checkbox:hover, .px-radio:hover { background-color: rgb(var(--bx-color-choice-bg-hover)); }
.px-checkbox:checked, .px-checkbox:indeterminate, .px-radio:checked { width: var(--bx-size-choice-checked); height: var(--bx-size-choice-checked); margin: .1875rem 0 0; background-color: rgb(var(--bx-color-bg-fill-strong)); box-shadow: var(--bx-shadow-choice-checked); }
.px-checkbox:checked { border-radius: var(--bx-radius-checkbox-checked); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 8.5 2.5 2.5 4.5-5.5'/%3E%3C/svg%3E"); }
.px-checkbox:indeterminate { border-radius: var(--bx-radius-checkbox-checked); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M4.5 8h7'/%3E%3C/svg%3E"); }
.px-radio:checked { background-image: radial-gradient(circle, #fff 0 3px, transparent 3.5px); }
.px-checkbox:disabled, .px-radio:disabled { background-color: rgb(var(--bx-color-choice-bg-disabled) / var(--bx-color-choice-bg-disabled-alpha)); box-shadow: none; cursor: not-allowed; }
.px-checkbox:disabled:checked, .px-checkbox:disabled:indeterminate, .px-radio:disabled:checked { background-color: rgb(var(--bx-color-text-disabled)); }  /* keeps the check / dash / dot (background-image) visible */
.px-checkbox[aria-invalid="true"], .px-radio[aria-invalid="true"] { box-shadow: 0 0 0 1px rgb(var(--bx-color-border-critical-strong)); }
.px-switch { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: var(--bx-size-toggle-width); height: var(--bx-size-toggle-height); margin: .125rem 0 0; border-radius: 9999px; background: rgb(var(--bx-color-bg-fill-tertiary)); cursor: pointer; transition: background-color .15s; }
.px-switch::after { content: ""; position: absolute; top: .125rem; left: .125rem; width: var(--bx-size-toggle-knob-width); height: var(--bx-size-toggle-knob-height); border-radius: var(--bx-radius-toggle-knob); background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .25); transition: transform .15s var(--px-ease); }
.px-switch:hover { background: rgb(var(--bx-color-border-strong)); }
.px-switch:checked { background: rgb(var(--bx-color-bg-fill-strong)); }
.px-switch:checked::after { transform: translateX(var(--bx-space-toggle-knob-travel)); }
.px-switch:disabled { background: rgb(var(--bx-color-toggle-bg-disabled) / var(--bx-color-toggle-bg-disabled-alpha)); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .1); cursor: not-allowed; }
/* color */
.px-swatch { width: 1.5rem; height: 1.5rem; border-radius: var(--bx-radius-swatch); border: 0; padding: 0; box-shadow: var(--bx-shadow-swatch-button); cursor: pointer; transition: transform .12s; }
.px-swatch:hover { transform: scale(1.1); }
.px-swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgb(var(--bx-color-bg-fill-strong)); }
.px-color-picker { display: flex; flex-direction: column; gap: var(--px-space-small-200); width: 15rem; }
.px-color-picker__area { position: relative; height: 9rem; border-radius: var(--bx-radius-control); background: linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, hsl(var(--hue, 199) 100% 50%)); cursor: crosshair; touch-action: none; }
.px-color-picker__hue { height: .75rem; border-radius: 9999px; background: linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00); position: relative; cursor: pointer; touch-action: none; }
.px-color-picker__thumb { position: absolute; width: .875rem; height: .875rem; margin: -.4375rem 0 0 -.4375rem; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / .3); pointer-events: none; }
.px-color-picker__hue .px-color-picker__thumb, .px-color-picker__alpha .px-color-picker__thumb { top: 50%; }
.px-color-picker__alpha { position: relative; height: .75rem; border-radius: 9999px; cursor: pointer; touch-action: none;
  background: linear-gradient(to right, transparent, var(--px-color, #000)), repeating-conic-gradient(#ddd 0 25%, #fff 0 50%) 0 0 / 8px 8px; }
/* range */
.px-range { width: 100%; accent-color: rgb(var(--bx-color-bg-fill-strong)); }
/* drop zone */
.px-dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--px-space-small-200); min-height: 7rem; padding: var(--px-space-large); border: 1px dashed rgb(var(--bx-color-border-strong)); border-radius: var(--bx-radius-control); background: rgb(var(--bx-color-bg-surface)); text-align: center; cursor: pointer; transition: border-color .12s, background-color .12s; }
.px-dropzone:hover, .px-dropzone.is-over { border-color: rgb(var(--bx-color-border-focus)); background: rgb(70 128 255 / .05); }
.px-dropzone:has(input[type="file"]:disabled), .px-dropzone[aria-disabled="true"] { cursor: not-allowed; opacity: .5; border-color: rgb(var(--bx-color-border-strong)); background: rgb(var(--bx-color-bg-surface)); }  /* s-drop-zone disabled */
.px-dropzone[aria-invalid="true"] { border-color: rgb(var(--bx-color-border-critical-strong)); }
.px-dropzone input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
/* date picker */
.px-datepicker { display: inline-flex; flex-direction: column; gap: var(--px-space-small-300); min-width: 15.5rem; }
.px-datepicker__months { display: flex; gap: var(--px-space-large); flex-wrap: wrap; }
.px-datepicker__head { display: flex; align-items: center; justify-content: space-between; font-weight: var(--bx-font-weight-bold); }
.px-datepicker__grid { display: grid; grid-template-columns: repeat(7, 2.125rem); gap: 2px; }
.px-datepicker__wd { font-size: var(--bx-font-size-calendar-weekday); line-height: var(--bx-line-height-calendar-weekday); color: rgb(var(--bx-color-text-secondary)); text-align: center; font-weight: var(--bx-font-weight-medium); padding-block: .25rem; }
.px-datepicker__day { height: 2rem; border: 0; padding: 0; border-radius: var(--bx-radius-calendar-day); background: transparent; font: inherit; font-size: var(--bx-font-size-small); color: rgb(var(--bx-color-text)); cursor: pointer; }
.px-datepicker__day:hover { box-shadow: inset 0 0 0 1px rgb(var(--bx-color-border-input)); }
.px-datepicker__day.is-range { background: rgb(var(--bx-color-bg-surface-selected)); border-radius: 0; }
.px-datepicker__day.is-selected { background: rgb(var(--bx-color-bg-fill-strong)); color: #fff; font-weight: var(--bx-font-weight-bold); }
.px-datepicker__day.is-today { text-decoration: underline; text-underline-offset: 3px; }
.px-datepicker__day:disabled { color: rgb(var(--bx-color-text-disabled)); text-decoration: line-through; cursor: not-allowed; box-shadow: none; }

/* ---------- layout ---------- */
.px-page { width: 100%; max-width: calc(var(--bx-width-page-base, 60.375rem) + 2 * var(--bx-space-page-inline)); margin-inline: auto; padding: var(--bx-space-page-block-start) var(--bx-space-page-inline) var(--bx-space-page-block-end); display: flex; flex-direction: column; gap: var(--px-space-base); }
.px-page--small { max-width: calc(var(--bx-width-page-small, 49rem) + 2 * var(--bx-space-page-inline)); }  /* 784px column */
.px-page--base { max-width: calc(var(--bx-width-page-base, 60.375rem) + 2 * var(--bx-space-page-inline)); }  /* default */
.px-page--large { max-width: none; }
.px-page__header { display: flex; flex-wrap: wrap; align-items: center; gap: var(--px-space-small-200); }
.px-page__title { margin: 0; flex: 1; min-width: 0; font-size: var(--bx-font-size-display); line-height: var(--bx-line-height-display); letter-spacing: var(--bx-letter-spacing-display); font-weight: var(--bx-font-weight-bold); }
.px-page__back { display: inline-flex; align-items: center; gap: 2px; color: rgb(var(--bx-color-text-secondary)); text-decoration: none; }
.px-page__layout { display: grid; gap: var(--px-space-base) 3rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 64rem) { .px-page__layout--aside { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
/* section title outside the card (PageSection) */
.px-page-section { display: flex; flex-direction: column; gap: var(--px-space-small-200); margin-top: var(--px-space-base); }
.px-page-section__header { display: flex; align-items: center; gap: var(--px-space-small-200); flex-wrap: wrap; }
.px-page-section__title { margin: 0; flex: 1; font-size: var(--bx-font-size-heading); line-height: var(--bx-line-height-heading); font-weight: var(--bx-font-weight-bold); }
.px-page-section__desc { margin: 0; color: rgb(var(--bx-color-text-secondary)); flex-basis: 100%; }
/* card / s-section */
.px-card { background: rgb(var(--bx-color-bg-surface)); border-radius: var(--bx-radius-card); box-shadow: var(--bx-shadow-card); overflow: hidden; }
.px-card--padded, .px-section { padding: var(--px-space-base); }
.px-section { display: flex; flex-direction: column; gap: var(--px-space-small); }
.px-section + .px-section { border-top: 1px solid rgb(var(--bx-color-border-section)); }
.px-section__header { display: flex; align-items: center; gap: var(--px-space-small-200); }
.px-section__heading { margin: 0; flex: 1; font-size: var(--bx-font-size-heading); line-height: var(--bx-line-height-heading); font-weight: var(--bx-font-weight-bold); }
.px-section__subheading { margin: 0; color: rgb(var(--bx-color-subtitle)); }
/* s-section slots: graphic (before the heading, aria-hidden), accessory (inline after the heading text),
   supplemental (status/metadata at the inline end, before the actions), primary-action / secondary-actions (max 2 inline) */
.px-section__header:has(> .px-section__accessory) > .px-section__heading { flex: 0 1 auto; }
.px-section__graphic { flex: none; display: inline-flex; color: rgb(var(--bx-color-icon-secondary)); }
.px-section__accessory { display: inline-flex; align-items: center; gap: var(--px-space-small-200); min-width: 0; }
.px-section__supplemental { display: inline-flex; align-items: center; gap: var(--px-space-small-200); margin-inline-start: auto; }
.px-section__actions { display: inline-flex; align-items: center; gap: var(--px-space-small-200); flex: none; }
.px-card__footer { padding: var(--px-space-small-100) var(--px-space-base); background: rgb(var(--bx-color-bg-surface-secondary)); font-size: var(--bx-font-size-small); line-height: var(--bx-line-height-small); color: rgb(var(--bx-color-text-secondary)); }
.px-surface, .bx-surface { background: rgb(var(--bx-color-bg-surface)); border-radius: var(--bx-radius-card); box-shadow: 0 0 0 1px rgb(var(--bx-color-border-section)); }
/* box, stack, grid */
.px-box { display: block; }
.px-box--subdued { background: rgb(var(--bx-color-bg-surface-secondary)); }
.px-box--base { background: rgb(var(--bx-color-bg-surface)); }
.px-box--strong { background: rgb(var(--bx-color-bg-surface-active)); }
.px-box--border { box-shadow: inset 0 0 0 1px rgb(var(--bx-color-border)); }  /* borderColor base, borderWidth base (1px): the only width in the kit */
.px-box--border-subdued { box-shadow: inset 0 0 0 1px rgb(var(--bx-color-border-section)); }
.px-box--border-strong { box-shadow: inset 0 0 0 1px rgb(var(--bx-color-border-strong)); }
.px-box--border-dashed { border: 1px dashed rgb(var(--bx-color-border-strong)); }
/* s-box padding / paddingBlock / paddingInline: the full SizeKeyword scale (small-500 … large-500) + none */
.px-p-none { padding: 0; } .px-p-small-500 { padding: var(--px-space-small-500); } .px-p-small-400 { padding: var(--px-space-small-400); } .px-p-small-300 { padding: var(--px-space-small-300); } .px-p-small-200 { padding: var(--px-space-small-200); } .px-p-small-100 { padding: var(--px-space-small-100); } .px-p-small { padding: var(--px-space-small); } .px-p-base { padding: var(--px-space-base); } .px-p-large { padding: var(--px-space-large); } .px-p-large-100 { padding: var(--px-space-large-100); } .px-p-large-200 { padding: var(--px-space-large-200); } .px-p-large-300 { padding: var(--px-space-large-300); } .px-p-large-400 { padding: var(--px-space-large-400); } .px-p-large-500 { padding: var(--px-space-large-500); }
.px-pb-none { padding-block: 0; } .px-pb-small-500 { padding-block: var(--px-space-small-500); } .px-pb-small-400 { padding-block: var(--px-space-small-400); } .px-pb-small-300 { padding-block: var(--px-space-small-300); } .px-pb-small-200 { padding-block: var(--px-space-small-200); } .px-pb-small-100 { padding-block: var(--px-space-small-100); } .px-pb-small { padding-block: var(--px-space-small); } .px-pb-base { padding-block: var(--px-space-base); } .px-pb-large { padding-block: var(--px-space-large); } .px-pb-large-100 { padding-block: var(--px-space-large-100); } .px-pb-large-200 { padding-block: var(--px-space-large-200); } .px-pb-large-300 { padding-block: var(--px-space-large-300); } .px-pb-large-400 { padding-block: var(--px-space-large-400); } .px-pb-large-500 { padding-block: var(--px-space-large-500); }
.px-pi-none { padding-inline: 0; } .px-pi-small-500 { padding-inline: var(--px-space-small-500); } .px-pi-small-400 { padding-inline: var(--px-space-small-400); } .px-pi-small-300 { padding-inline: var(--px-space-small-300); } .px-pi-small-200 { padding-inline: var(--px-space-small-200); } .px-pi-small-100 { padding-inline: var(--px-space-small-100); } .px-pi-small { padding-inline: var(--px-space-small); } .px-pi-base { padding-inline: var(--px-space-base); } .px-pi-large { padding-inline: var(--px-space-large); } .px-pi-large-100 { padding-inline: var(--px-space-large-100); } .px-pi-large-200 { padding-inline: var(--px-space-large-200); } .px-pi-large-300 { padding-inline: var(--px-space-large-300); } .px-pi-large-400 { padding-inline: var(--px-space-large-400); } .px-pi-large-500 { padding-inline: var(--px-space-large-500); }
.px-stack { display: flex; flex-direction: column; gap: var(--gap, var(--px-space-base)); }
.px-stack--inline { flex-direction: row; flex-wrap: wrap; align-items: center; }  /* centring is a kit difference (s-stack alignItems default normal): add .px-align-normal to match */
/* s-stack / s-grid alignItems / justifyContent */
.px-align-normal { align-items: normal; } .px-align-start { align-items: start; } .px-align-center { align-items: center; } .px-align-end { align-items: end; } .px-align-baseline { align-items: baseline; } .px-align-stretch { align-items: stretch; }
.px-justify-normal { justify-content: normal; } .px-justify-start { justify-content: start; } .px-justify-center { justify-content: center; } .px-justify-end { justify-content: end; } .px-justify-space-between { justify-content: space-between; }
/* s-stack / s-grid gap: the full SpacingKeyword scale */
.px-gap-none { --gap: 0; } .px-gap-small-500 { --gap: var(--px-space-small-500); } .px-gap-small-400 { --gap: var(--px-space-small-400); } .px-gap-small-300 { --gap: var(--px-space-small-300); } .px-gap-small-200 { --gap: var(--px-space-small-200); } .px-gap-small-100 { --gap: var(--px-space-small-100); } .px-gap-small { --gap: var(--px-space-small); } .px-gap-base { --gap: var(--px-space-base); } .px-gap-large { --gap: var(--px-space-large); } .px-gap-large-100 { --gap: var(--px-space-large-100); } .px-gap-large-200 { --gap: var(--px-space-large-200); } .px-gap-large-300 { --gap: var(--px-space-large-300); } .px-gap-large-400 { --gap: var(--px-space-large-400); } .px-gap-large-500 { --gap: var(--px-space-large-500); }
/* s-grid gridTemplateColumns → --cols. Without --cols the kit auto-fits 14rem columns (kit difference: s-grid default
   is none = one column; set style="--cols:none" to match) */
.px-grid { display: grid; gap: var(--gap, var(--px-space-base)); grid-template-columns: var(--cols, repeat(auto-fit, minmax(14rem, 1fr))); }
.px-cols { display: grid; gap: var(--px-space-base); grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.px-cols-3 { display: grid; gap: var(--px-space-base); grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.px-container { container-type: inline-size; container-name: s-default; }  /* s-query-container (containerName → style="container-name:…") */
.px-divider { border: 0; margin: 0; height: 1px; background: rgb(var(--bx-color-border-section)); }
.px-divider--strong { background: rgb(var(--bx-color-border)); }
.px-divider--block { width: 1px; height: auto; align-self: stretch; }
/* list row (settings rows, setup rows) */
.px-row { display: flex; align-items: center; gap: var(--px-space-small); padding: var(--px-space-small) var(--px-space-base); color: inherit; text-decoration: none; }
.px-row + .px-row { border-top: 1px solid rgb(var(--bx-color-border-section)); }
a.px-row, button.px-row { width: 100%; border-left: 0; border-right: 0; border-bottom: 0; background: transparent; font: inherit; text-align: left; cursor: pointer; transition: background-color .12s; }
a.px-row:first-child, button.px-row:first-child { border-top: 0; }
a.px-row:hover, button.px-row:hover { background: rgb(var(--bx-color-bg-surface-hover)); }
.px-row__icon { flex: none; width: 2rem; height: 2rem; border-radius: .625rem; background: rgb(var(--bx-color-bg-surface-selected)); display: flex; align-items: center; justify-content: center; color: rgb(var(--bx-color-icon-secondary)); }
.px-row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.px-row__title { display: flex; align-items: center; gap: var(--px-space-small-200); font-weight: var(--bx-font-weight-medium); flex-wrap: wrap; }
.px-row__sub { color: rgb(var(--bx-color-text-secondary)); }
@container (max-width: 30rem) { .px-row--wrap { flex-wrap: wrap; } .px-row--wrap .px-row__main { flex-basis: calc(100% - 3rem); } .px-row--wrap > .px-button { margin-inline-start: 2.75rem; } }
/* collapsible */
.px-collapsible { border-top: 1px solid rgb(var(--bx-color-border-section)); }
.px-collapsible > summary { display: flex; align-items: center; gap: var(--px-space-small-200); padding: var(--px-space-small-100) var(--bx-space-collapsible-inline); cursor: pointer; list-style: none; font-weight: var(--bx-font-weight-medium); }
.px-collapsible > summary::-webkit-details-marker { display: none; }
.px-collapsible > summary::before { content: ""; width: 1rem; height: 1rem; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 4 4 4-4 4'/%3E%3C/svg%3E") center/1rem no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 4 4 4-4 4'/%3E%3C/svg%3E") center/1rem no-repeat; color: rgb(var(--bx-color-icon-secondary)); transition: transform .15s; }
.px-collapsible[open] > summary::before { transform: rotate(90deg); }
.px-collapsible > summary:hover { background: rgb(var(--bx-color-bg-surface-hover)); }
.px-collapsible__body { padding: 0 var(--bx-space-collapsible-inline) var(--px-space-base) 2.5rem; }

/* ---------- table: s-table ---------- */
.px-table-wrap { overflow-x: auto; }
.px-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.px-table th { padding: var(--bx-space-table-header-block) var(--bx-space-table-cell-inline); font-size: var(--bx-font-size-small); line-height: var(--bx-line-height-table-header); font-weight: var(--bx-font-weight-medium); color: rgb(var(--bx-color-text-secondary)); text-align: left; background: rgb(var(--bx-color-bg-surface-secondary)); white-space: nowrap; }
.px-table td { padding: var(--bx-space-table-cell-block) var(--bx-space-table-cell-inline); border-top: 1px solid rgb(var(--bx-color-border-section)); vertical-align: middle; }
.px-table .is-numeric { text-align: right; }
.px-table tbody tr { transition: background-color .1s; }
.px-table tbody tr:hover { background: rgb(var(--bx-color-bg-surface-hover)); }
.px-table tbody tr[aria-selected="true"] { background: rgb(var(--bx-color-bg-surface-selected)); }
.px-table tbody tr[data-href], .px-table tbody tr[data-px-click-delegate] { cursor: pointer; }
.px-table__check { width: 1.75rem; }
.px-table[aria-busy="true"] tbody { opacity: var(--bx-opacity-table-loading); pointer-events: none; }  /* s-table loading: inert (components.js also sets tbody.inert) */
.px-table-toolbar { display: flex; align-items: center; gap: var(--px-space-small-400); padding: var(--px-space-small-200); flex-wrap: wrap; }
.px-table-toolbar__spacer { flex: 1; }
.px-table-bulk { display: none; align-items: center; gap: var(--px-space-small-200); padding: var(--px-space-small-200) var(--px-space-small); background: rgb(var(--bx-color-bg-surface-secondary)); }
.px-table-bulk.is-active { display: flex; }
.px-table-footer { display: flex; justify-content: center; padding: var(--px-space-small-200); background: rgb(var(--bx-color-bg-surface-secondary)); }
/* list slots (s-table-header listSlot, copied onto that column's cells as td[data-slot]; default labeled = td[data-label])
   and variant="list": always the list layout */
.px-table td[data-slot="kicker"] { font-size: var(--bx-font-size-small); color: rgb(var(--bx-color-text-secondary)); }
.px-table td[data-slot="secondary"] { color: rgb(var(--bx-color-text-secondary)); }
.px-table--list thead { display: none; }
.px-table--list, .px-table--list tbody, .px-table--list tr { display: block; width: 100%; }
.px-table--list tr { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--px-space-small-200); padding: var(--px-space-small) var(--px-space-base); border-top: 1px solid rgb(var(--bx-color-border-section)); }
.px-table--list td { display: block; border: 0; padding: 0; text-align: left !important; }
.px-table--list td[data-slot="kicker"], .px-table--list td[data-slot="primary"], .px-table--list td[data-slot="secondary"] { flex-basis: 100%; }
.px-table--list td[data-slot="primary"] { font-weight: var(--bx-font-weight-semibold); }
.px-table--list td[data-slot="inline"] { flex-basis: auto; }
.px-table--list td[data-label]::before { content: attr(data-label) " · "; color: rgb(var(--bx-color-text-secondary)); }
.px-table--list .px-table__check { display: none; }
/* list layout on narrow containers (s-table variant="auto"). s-table switches by screen width; switching by the
   card's (container's) width is a kit difference */
@container (max-width: 34rem) {
  .px-table--auto thead { display: none; }
  .px-table--auto, .px-table--auto tbody, .px-table--auto tr, .px-table--auto td { display: block; width: 100%; }
  .px-table--auto tr { padding: var(--px-space-small) var(--px-space-base); border-top: 1px solid rgb(var(--bx-color-border-section)); }
  .px-table--auto td { border: 0; padding: 0; text-align: left !important; }
  .px-table--auto td[data-slot="primary"] { font-weight: var(--bx-font-weight-semibold); }
  .px-table--auto td[data-slot="inline"] { display: inline-block; width: auto; margin-inline-end: var(--px-space-small-200); }
  .px-table--auto td[data-label]::before { content: attr(data-label) " · "; color: rgb(var(--bx-color-text-secondary)); }
  .px-table--auto .px-table__check { display: none; }
}

/* stats (StatGrid) */
.px-stats { display: grid; grid-template-columns: repeat(var(--columns, 4), minmax(0, 1fr)); }
.px-stat { display: flex; flex-direction: column; gap: 2px; padding: var(--px-space-small) var(--px-space-base); min-width: 0; }
.px-stats > .px-stat { box-shadow: -1px 0 0 rgb(var(--bx-color-border-section)), 0 -1px 0 rgb(var(--bx-color-border-section)); }
.px-stat__label { align-self: flex-start; font-weight: var(--bx-font-weight-semibold); text-decoration: underline dotted rgb(var(--bx-color-tooltip-underline)); text-underline-offset: 3px; }
.px-stat__value { display: flex; align-items: center; gap: var(--px-space-small-200); font-weight: var(--bx-font-weight-bold); }
.px-stat__spark { margin-inline-start: auto; width: 5rem; height: 1.5rem; flex: none; }
@media (max-width: 47.99rem) { .px-stats { --columns: 2 !important; } }

/* setup guide */
.px-setup { display: flex; flex-direction: column; gap: var(--px-space-small); padding: var(--px-space-base); }
.px-setup__task { display: flex; gap: var(--px-space-small-100); align-items: flex-start; padding: var(--px-space-small-300) var(--px-space-small-200); border-radius: var(--bx-radius-control); }
.px-setup__task[aria-expanded="true"] { background: rgb(var(--bx-color-bg-surface-secondary)); }
.px-setup__check { flex: none; width: 1.25rem; height: 1.25rem; border-radius: 50%; border: 1.5px dashed rgb(var(--bx-color-icon-secondary)); background: transparent; padding: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #fff; }
.px-setup__check[aria-checked="true"] { border: 0; background: rgb(var(--bx-color-task-check)); }

/* ---------- media ---------- */
.px-avatar { --s: 2rem; position: relative; flex: none; width: var(--s); height: var(--s); border-radius: calc(var(--s) * .28); display: inline-flex; align-items: center; justify-content: center; overflow: hidden; font-size: calc(var(--s) * .4); font-weight: var(--bx-font-weight-bold); background: rgb(var(--bx-color-bg-surface-selected)); color: rgb(var(--bx-color-icon-secondary)); }
.px-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }  /* covers the initials; removed on load error (components.js) */
.px-avatar--small-200 { --s: 1.25rem; } .px-avatar--small, .px-avatar--small-100 { --s: 1.75rem; } .px-avatar--large, .px-avatar--large-100 { --s: 2.5rem; } .px-avatar--large-200 { --s: 3.75rem; }
/* data-tone 1–5 (name-derived colour): kit extra, not part of s-avatar (no tone) */
.px-avatar[data-tone="1"] { background: rgb(var(--bx-color-bg-fill-success-secondary)); color: rgb(var(--bx-color-badge-text-success)); }
.px-avatar[data-tone="2"] { background: rgb(var(--bx-color-bg-fill-info-secondary)); color: rgb(var(--bx-color-badge-text-info)); }
.px-avatar[data-tone="3"] { background: rgb(var(--bx-color-bg-fill-caution-secondary)); color: rgb(var(--bx-color-badge-text-caution)); }
.px-avatar[data-tone="4"] { background: rgb(var(--bx-color-bg-fill-critical-secondary)); color: rgb(var(--bx-color-badge-text-critical)); }
.px-avatar[data-tone="5"] { background: rgb(var(--bx-color-ai-surface)); color: rgb(var(--bx-color-ai-text)); }
.px-thumbnail { --s: 2.5rem; position: relative; flex: none; width: var(--s); height: var(--s); border-radius: var(--bx-radius-thumbnail); overflow: hidden; background: rgb(var(--bx-color-bg-surface-selected)); display: inline-flex; align-items: center; justify-content: center; color: rgb(var(--bx-color-icon-secondary)); }
.px-thumbnail::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgb(var(--bx-color-thumbnail-ring) / var(--bx-color-thumbnail-ring-alpha)); pointer-events: none; }
.px-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.px-thumbnail--small-200 { --s: 1.5rem; } .px-thumbnail--small-100 { --s: 1.75rem; } .px-thumbnail--small { --s: 2rem; } .px-thumbnail--large { --s: 3.75rem; } .px-thumbnail--large-100 { --s: 5rem; }
/* s-image: inlineSize fill (default) = width 100%; auto → style="width:auto". The control radius is a kit default
   (s-image borderRadius default none): add .px-radius-none to match */
.px-image { display: block; width: 100%; aspect-ratio: var(--ratio, 1 / 1); object-fit: contain; border-radius: var(--bx-radius-control); background: rgb(var(--bx-color-bg-surface-selected)); }
.px-image--contain { object-fit: contain; }  /* default (s-image objectFit="contain") */
.px-image--cover { object-fit: cover; }
.px-icon { display: inline-block; width: 1.25rem; height: 1.25rem; flex: none; color: inherit; vertical-align: middle; }  /* inherits the parent's colour (currentColor); tone modifiers below override */
.px-icon--small { width: 1rem; height: 1rem; }
.px-icon--subdued { color: rgb(var(--bx-color-icon-secondary)); }
.px-icon--neutral { color: rgb(var(--bx-color-icon)); }  /* tone neutral (auto = inherit) */
.px-icon--info { color: rgb(var(--bx-color-icon-info)); } .px-icon--success { color: rgb(var(--bx-color-icon-success)); } .px-icon--caution { color: rgb(var(--bx-color-icon-caution)); } .px-icon--warning { color: rgb(var(--bx-color-icon-warning)); } .px-icon--critical { color: rgb(var(--bx-color-icon-critical)); }

/* ---------- overlays ---------- */
.px-modal { border: 0; padding: 0; width: min(var(--w, 38rem), calc(100vw - 2rem)); max-height: calc(100vh - 4rem); border-radius: var(--bx-radius-popover); background: rgb(var(--bx-color-bg-surface)); color: inherit; box-shadow: 0 26px 80px rgb(0 0 0 / .2), 0 0 0 1px rgb(0 0 0 / .08); overflow: hidden; }
.px-modal[open] { display: flex; flex-direction: column; animation: px-pop .16s var(--px-ease); }
.px-modal::backdrop { background: rgb(0 0 0 / .5); animation: px-fade .16s; }
.px-modal--small { --w: 23.75rem; } .px-modal--small-100 { --w: 27.5rem; } .px-modal--large { --w: 50rem; } .px-modal--large-100 { --w: 61.25rem; }
.px-modal__header { display: flex; align-items: center; gap: var(--px-space-small-200); padding: var(--px-space-small-100) var(--px-space-small-200) var(--px-space-small-100) var(--px-space-base); background: rgb(var(--bx-color-bg-surface-secondary)); border-bottom: 1px solid rgb(var(--bx-color-border-section)); }
.px-modal__title { margin: 0; flex: 1; font-size: var(--bx-font-size-body); font-weight: var(--bx-font-weight-bold); }
.px-modal__body { padding: var(--px-space-base); overflow: auto; }
.px-modal__body--flush { padding: 0; }
.px-modal__footer { display: flex; justify-content: flex-end; gap: var(--px-space-small-200); padding: var(--px-space-small) var(--px-space-base); border-top: 1px solid rgb(var(--bx-color-border-section)); }
@keyframes px-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes px-fade { from { opacity: 0; } }
/* s-popover: inlineSize / blockSize / min* / max* → inline style. The 12rem min and 24rem max width are kit defaults
   (s-popover: min 0, max none) */
.px-popover { position: absolute; z-index: 50; min-width: 12rem; max-width: min(24rem, calc(100vw - 2rem)); padding: var(--bx-space-menu); border-radius: var(--bx-radius-popover); background: rgb(var(--bx-color-bg-surface)); box-shadow: var(--bx-shadow-popover); animation: px-pop .14s var(--px-ease); }
.px-popover[hidden] { display: none; }
.px-popover.px-menu { width: max-content; }  /* as wide as its longest item, up to the popover cap; then items wrap */
.px-menu { display: flex; flex-direction: column; gap: var(--bx-space-menu-gap); border-radius: var(--bx-radius-menu); }
.px-menu__heading { padding: var(--bx-padding-menu-heading); font-size: var(--bx-font-size-small); line-height: var(--bx-line-height-small); font-weight: var(--bx-font-weight-medium); color: rgb(var(--bx-color-menu-heading)); }
.px-menu__divider { height: 1px; margin: var(--bx-space-menu-divider) 0; background: rgb(var(--bx-color-menu-divider)); }
.px-menu__item, .px-option { overflow-wrap: anywhere; display: flex; align-items: center; gap: var(--px-space-small-200); width: 100%; min-height: 2rem; padding: var(--bx-padding-menu-item-separated); border: 0; border-radius: var(--bx-radius-option); background: transparent; font: inherit; color: rgb(var(--bx-color-text)); text-align: left; text-decoration: none; cursor: pointer; }
.px-menu__item svg, .px-menu__item .px-icon { width: 1rem; height: 1rem; color: rgb(var(--bx-color-icon-menu)); flex: none; }
.px-menu__item:hover, .px-option:hover { background: rgb(var(--bx-color-menu-item-hover)); }
.px-menu__item:active, .px-option:active, .px-option[aria-selected="true"] { background: rgb(var(--bx-color-menu-item-active)); }
.px-menu__item:focus-visible, .px-option:focus-visible, .px-option.is-active { outline: none; box-shadow: var(--bx-shadow-menu-item-focus); }
.px-menu__item--critical { color: rgb(var(--bx-color-text-critical)); }
.px-menu__item--critical svg { color: rgb(var(--bx-color-icon-critical)); }
.px-menu__item:disabled { color: rgb(var(--bx-color-text-disabled)); cursor: not-allowed; background: transparent; }
.px-tooltip { position: absolute; z-index: 60; max-width: min(18rem, calc(100vw - 2rem)); padding: var(--bx-padding-tooltip); border-radius: var(--bx-radius-tooltip); background: rgb(var(--bx-color-bg-fill-strong)); color: #fff; font-size: var(--bx-font-size-small); line-height: 1rem; font-weight: var(--bx-font-weight-medium); box-shadow: var(--bx-shadow-floating); pointer-events: none; animation: px-fade .1s; }
.px-has-tooltip { text-decoration: underline dashed rgb(var(--bx-color-tooltip-underline)); text-underline-offset: 3px; cursor: help; }
.px-toasts { position: fixed; z-index: 100; left: 50%; bottom: 1.5rem; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: var(--px-space-small-200); pointer-events: none; }
.px-toast { pointer-events: auto; display: flex; align-items: center; gap: var(--px-space-small); padding: var(--px-space-small-100) var(--px-space-small-100) var(--px-space-small-100) var(--px-space-small); border-radius: var(--bx-radius-control); background: #1a1a1a; color: #fff; box-shadow: 0 12px 16px -4px rgb(0 0 0 / .16); animation: px-pop .2s var(--px-ease); }
.px-toast--error { background: #c70a24; }
.px-toast .px-button { --_bg: #303030; --_bg-h: #3d3d3d; --_fg: #fff; height: 1.5rem; }
.px-toast__close { width: 1.5rem; height: 1.5rem; border: 0; border-radius: 6px; background: transparent; color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.px-toast__close:hover { background: rgb(255 255 255 / .12); }
.px-savebar { position: sticky; top: 0; z-index: 90; display: none; align-items: center; gap: var(--px-space-small-200); height: 3.5rem; padding: 0 var(--px-space-small); background: #1a1a1a; color: #fff; }
.px-savebar.is-visible { display: flex; animation: px-fade .15s; }
.px-savebar__title { flex: 1; font-weight: var(--bx-font-weight-bold); }
.px-savebar .px-button { --_bg: #303030; --_bg-h: #3d3d3d; --_fg: #e3e3e3; }
.px-savebar .px-button--save { --_bg: #fff; --_bg-h: #ebebeb; --_fg: #101010; }

/* title bar stand-in (outside the admin) */
.px-titlebar { display: flex; align-items: center; gap: var(--px-space-small-200); height: 3rem; padding: 0 var(--px-space-base); background: rgb(var(--bx-color-bg-surface)); border-bottom: 1px solid rgb(var(--bx-color-border-section)); }
.px-titlebar__title { flex: 1; min-width: 0; font-weight: var(--bx-font-weight-bold); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* charts helpers */
.px-legend { display: flex; flex-wrap: wrap; gap: var(--px-space-small) var(--px-space-base); font-size: var(--bx-font-size-small); color: rgb(var(--bx-color-text-secondary)); }
.px-legend > span { display: inline-flex; align-items: center; gap: var(--px-space-small-300); }
.px-legend i { width: .75rem; height: .125rem; background: var(--c, var(--px-chart-1)); border-radius: 2px; }
.px-legend i.is-dashed { height: 0; background: none; border-top: 2px dashed var(--c, var(--px-chart-compare)); }
.px-chart text { font-size: 11px; fill: rgb(var(--bx-color-icon-secondary)); font-family: var(--px-font); }
.px-chart .grid { stroke: rgb(var(--bx-color-border-section)); }

/* ==========================================================================================================
   Kit 1.1.0 — from bundlex-ui 1.19.0
   ========================================================================================================== */

/* segmented control: an overflowing track scrolls; a fade marks the edge that hides more (components.js sets
   .is-overflow-start / .is-overflow-end). With an add segment the right edge has no fade: the options slide
   under the plus, which sticks to the track's end, parted from them by a line. */
.px-segmented.is-overflow-end { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 1.5rem), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 1.5rem), transparent); }
.px-segmented.is-overflow-start { -webkit-mask-image: linear-gradient(to right, transparent, #000 1.5rem); mask-image: linear-gradient(to right, transparent, #000 1.5rem); }
.px-segmented.is-overflow-start.is-overflow-end { -webkit-mask-image: linear-gradient(to right, transparent, #000 1.5rem, #000 calc(100% - 1.5rem), transparent); mask-image: linear-gradient(to right, transparent, #000 1.5rem, #000 calc(100% - 1.5rem), transparent); }
.px-segmented:has(> .px-segmented__add-wrap) { padding-right: 0; -webkit-mask-image: none; mask-image: none; }
.px-segmented:has(> .px-segmented__add-wrap).is-overflow-start { -webkit-mask-image: linear-gradient(to right, transparent, #000 1.5rem); mask-image: linear-gradient(to right, transparent, #000 1.5rem); }
.px-segmented__add-wrap { position: sticky; right: 0; z-index: 1; display: inline-flex; flex: none; padding: 0 2px 0 .75rem; background: rgb(var(--bx-color-segmented-track, var(--bx-color-bg-surface-tertiary))); }
.px-segmented__add-wrap::before { content: ""; position: absolute; top: .375rem; bottom: .375rem; left: .3125rem; width: 1px; background: rgb(var(--bx-color-border)); }
.px-segmented__add { display: inline-flex; align-items: center; height: var(--bx-height-segmented-item); padding: 0 .5rem; border: 0; border-radius: var(--bx-radius-segmented-item); background: rgb(var(--bx-color-bg-surface) / .55); box-shadow: var(--bx-shadow-segmented-selected); color: rgb(var(--bx-color-icon-secondary)); cursor: pointer; }
.px-segmented__add:hover:not(:disabled) { background: rgb(var(--bx-color-bg-surface)); color: rgb(var(--bx-color-icon)); }
.px-segmented__add:disabled { cursor: default; opacity: .5; }

/* s-section separate (bundlex Section `separate`): this section starts a different thing — an edge-to-edge
   line in the frame's grey, not the hairline that parts the groups of one thing. */
.px-section.px-section--separate:not(:first-child) { border-top: 1px solid rgb(var(--bx-color-border-secondary)); }

/* skeleton stand-ins for controls (bundlex Skeleton): sized by the control's own tokens, so on a phone they
   grow with it. The field one keeps 32px on a desktop and takes the field's height on a phone. */
.px-skeleton--field { height: 2rem; border-radius: var(--bx-radius-control); }
.px-skeleton--textbox { height: 2.25rem; border-radius: var(--bx-radius-control); }
.px-skeleton--button { height: var(--bx-height-button); border-radius: var(--bx-radius-button); }
.px-skeleton--checkbox { width: var(--bx-size-choice-checked); height: var(--bx-size-choice-checked); border-radius: var(--bx-radius-checkbox); }
@media (pointer: coarse) and (max-width: 47.9975em) { .px-skeleton--field, .px-skeleton--textbox { height: var(--bx-height-field); } }

/* three short fields on one line in a narrow editor column (bundlex Cols cols=3 tight) */
.px-cols-3--tight { display: grid; gap: var(--px-space-base); grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr)); }

/* label row with an action (bundlex InputText label-action, e.g. the variables button) */
.px-label-row { display: flex; align-items: center; justify-content: space-between; gap: var(--px-space-small-200); }
.px-label-action { display: inline-flex; flex: none; margin: -.25rem; padding: .25rem; border: 0; border-radius: var(--bx-radius-focus); background: transparent; color: rgb(var(--bx-color-icon-secondary)); cursor: pointer; }
.px-label-action:hover:not(:disabled) { color: rgb(var(--bx-color-icon)); }
.px-label-action:disabled { cursor: default; opacity: .5; }
.px-label-action .px-icon { width: 1rem; height: 1rem; }
@media (pointer: coarse) { .px-label-action { margin: -.875rem; padding: .875rem; } }  /* a 44px box for a finger */

/* ---------- tag field (bundlex InputTags; s-clickable-chip chips) ----------
   The text field box with the chips and a borderless input in one wrapping row; one line is exactly a field high. */
.px-tags { position: relative; }
.px-tags__box { --px-tags-chip: 1.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; min-height: var(--bx-height-field); padding: calc((var(--bx-height-field) - var(--px-tags-chip)) / 2) var(--px-space-small-100); border-radius: var(--bx-radius-control); background: rgb(var(--bx-color-input-bg)); box-shadow: var(--bx-shadow-input); cursor: text; transition: box-shadow .12s var(--px-ease); }
.px-tags__box:hover { box-shadow: 0 .125rem .1875rem -.0625rem #0000000a, 0 0 0 .0625rem rgb(var(--bx-color-border-input-hover) / .5); }
.px-tags__box:focus-within { box-shadow: var(--bx-shadow-input-focus); }
.px-tags[aria-invalid="true"] .px-tags__box, .px-tags__box:has(> .px-tags__input[aria-invalid="true"]) { background: rgb(var(--bx-color-input-bg-error)); box-shadow: var(--bx-shadow-input-error); }
.px-tags[aria-invalid="true"] .px-tags__box:focus-within, .px-tags__box:has(> .px-tags__input[aria-invalid="true"]):focus-within { box-shadow: var(--bx-shadow-input-error-focus); }
.px-tags--slim .px-tags__box { min-height: var(--bx-height-field-slim); padding-block: calc((var(--bx-height-field-slim) - var(--px-tags-chip)) / 2); }
.px-tags.is-disabled .px-tags__box { box-shadow: var(--bx-shadow-input-disabled); cursor: default; }
.px-tags__input { flex: 1 1 3rem; min-width: 3rem; height: var(--px-tags-chip); margin: 0; padding: 0; border: 0; outline: none; background: transparent; box-shadow: none; color: inherit; font: inherit; font-size: var(--bx-font-size-input); line-height: inherit; }
.px-tags__input::placeholder { color: rgb(var(--bx-color-text-secondary)); opacity: 1; }
.px-tags__chip { display: inline-flex; align-items: center; gap: .125rem; max-width: 100%; height: var(--px-tags-chip); padding: 0 .125rem 0 .5rem; border-radius: var(--bx-radius-badge); background: rgb(var(--bx-color-tag-bg) / var(--bx-color-tag-bg-alpha, 1)); color: rgb(var(--bx-color-tag-text)); font-size: .75rem; font-weight: var(--bx-font-weight-medium); line-height: var(--bx-line-height-details-tight); cursor: default; }
.px-tags__chip:not(:has(.px-tags__remove)) { padding-right: .5rem; }
.px-tags.is-disabled .px-tags__chip { color: rgb(var(--bx-color-text-disabled)); }
.px-tags__label { min-width: 0; max-width: 12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.px-tags__remove { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 1rem; height: 1rem; padding: 0; border: 0; border-radius: .375rem; background: transparent; color: rgb(var(--bx-color-icon-secondary)); cursor: pointer; }
.px-tags__remove:hover { background: rgb(0 0 0 / .06); color: rgb(var(--bx-color-icon)); }
.px-tags__remove svg { width: 1rem; height: 1rem; }
.px-tags__popup { position: absolute; z-index: 50; top: 100%; left: 0; right: 0; display: grid; gap: var(--bx-space-menu-gap); max-height: 18.75rem; margin: .25rem 0 0; padding: var(--bx-space-menu); overflow-y: auto; border-radius: var(--bx-radius-popover); background: rgb(var(--bx-color-bg-surface)); box-shadow: var(--bx-shadow-floating); list-style: none; }
.px-tags__popup[hidden] { display: none; }
.px-tags__option { padding: var(--bx-padding-menu-item-separated); border-radius: var(--bx-radius-option); overflow-wrap: anywhere; cursor: pointer; }
.px-tags__option:hover { background: rgb(var(--bx-color-menu-item-hover)); }
.px-tags__option[aria-selected="true"] { background: rgb(var(--bx-color-menu-item-active)); box-shadow: var(--bx-shadow-menu-item-focus); }
.px-tags__option--empty { color: rgb(var(--bx-color-text-secondary)); cursor: default; }
.px-tags__option--empty:hover { background: transparent; }
@media (pointer: coarse) and (max-width: 47.9975em) {
  .px-tags__box { --px-tags-chip: 1.5rem; }
  .px-tags__chip { font-size: var(--bx-font-size-small); line-height: var(--bx-line-height-small); }
}

/* ---------- accordion (bundlex AccordionList + AccordionRow) ----------
   .px-accordion is the one bordered frame a list of items gets; each row draws the line above itself. Header:
   icon (or drag grip), title · status · subtitle, actions, switch, chevron. The body folds open in 200ms. */
.px-accordion__label { margin: 0 0 .375rem; font-weight: var(--bx-font-weight-medium); }
.px-accordion { min-width: 0; border: 1px solid rgb(var(--bx-color-border-secondary)); border-radius: var(--bx-radius-control); }
.px-accordion-row { position: relative; min-width: 0; border-top: 1px solid rgb(var(--bx-color-border-section)); }
.px-accordion > .px-accordion-row:first-child, .px-card > .px-accordion-row:first-child { border-top: 0; }
.px-accordion-row__header { display: flex; align-items: center; justify-content: space-between; gap: var(--px-space-small-200); padding: .625rem .75rem; background: rgb(var(--bx-color-bg-surface-secondary)); cursor: pointer; }
.px-accordion > .px-accordion-row:first-child > .px-accordion-row__header { border-radius: calc(var(--bx-radius-control) - 1px) calc(var(--bx-radius-control) - 1px) 0 0; }
.px-accordion > .px-accordion-row:last-child > .px-accordion-row__header[aria-expanded="false"] { border-radius: 0 0 calc(var(--bx-radius-control) - 1px) calc(var(--bx-radius-control) - 1px); }
.px-accordion > .px-accordion-row:only-child > .px-accordion-row__header[aria-expanded="false"] { border-radius: calc(var(--bx-radius-control) - 1px); }
.px-accordion-row__header:not(.is-settling):hover { background: rgb(var(--bx-color-bg-surface-hover)); }
.px-accordion-row__header[aria-expanded="true"] { border-bottom: 1px solid rgb(var(--bx-color-border-section)); }
.px-accordion-row__header:focus-visible { outline: var(--bx-focus-ring-width) solid rgb(var(--bx-color-border-focus)); outline-offset: -2px; }
/* rows of a card (not nested in a bordered list): white header, 16px by 12px, 56px on a phone */
.px-card > .px-accordion-row > .px-accordion-row__header { padding: .75rem 1rem; background: transparent; }
.px-card > .px-accordion-row > .px-accordion-row__header:not(.is-settling):not([aria-expanded="true"]):hover { background: rgb(var(--bx-color-bg-surface-secondary)); }
@media (pointer: coarse) and (max-width: 47.9975em) { .px-card > .px-accordion-row > .px-accordion-row__header { min-height: 3.5rem; } }
.px-accordion-row__start { display: flex; flex: 1; align-items: center; gap: .375rem; min-width: 0; }
.px-accordion-row__icon { position: relative; display: flex; flex: none; align-items: center; justify-content: center; width: 1.25rem; height: 1.25rem; color: rgb(var(--bx-color-icon)); }
.px-accordion-row__text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.px-accordion-row__title { font-weight: var(--bx-font-weight-medium); }
.px-card > .px-accordion-row .px-accordion-row__title { font-weight: var(--bx-font-weight-bold); }
.px-accordion-row__status { color: rgb(var(--bx-color-text-caution)); }
.px-accordion-row__status--critical { color: rgb(var(--bx-color-text-critical)); }
.px-accordion-row__subtitle { color: rgb(var(--bx-color-text-secondary)); }
.px-accordion-row__end { display: flex; flex: none; align-items: center; gap: var(--px-space-small-200); }
.px-accordion-row__chevron { width: 1rem; height: 1rem; color: rgb(var(--bx-color-icon-secondary)); transition: transform .2s ease-in-out; }
.px-accordion-row__header[aria-expanded="true"] .px-accordion-row__chevron { transform: rotate(180deg); }
.px-accordion-row__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .2s ease-in-out; }
.px-accordion-row.is-open > .px-accordion-row__body { grid-template-rows: 1fr; }
.px-accordion-row__inner { min-width: 0; min-height: 0; overflow: hidden; }
.px-accordion-row.is-open:not(.is-settling) > .px-accordion-row__body > .px-accordion-row__inner { overflow: visible; }  /* a pop-up list inside may spill out */
/* inside a row's body stacked sections are groups of one item: an inset hairline parts them (a separate
   section keeps its edge-to-edge line), and a collapsible there takes the same inset line */
.px-accordion-row__inner .px-section + .px-section:not(.px-section--separate), .px-accordion-row__inner * + .px-collapsible { position: relative; border-top: 0; }
.px-accordion-row__inner .px-section + .px-section:not(.px-section--separate)::before, .px-accordion-row__inner * + .px-collapsible::before { content: ""; position: absolute; top: 0; left: 1rem; right: 1rem; height: 1px; background: rgb(var(--bx-color-border-section)); }
@media (prefers-reduced-motion: reduce) { .px-accordion-row__body, .px-accordion-row__chevron { transition: none; } }

/* ---------- drag to reorder (bundlex DragGrip + useDragReorder) ----------
   [data-px-reorder] holds rows with data-px-reorder-key; a .px-drag-grip inside a row starts the drag. With a
   mouse a grip in the row's 20px icon box (.px-drag-grip--row) takes the icon's place while the row is hovered or
   holds keyboard focus; on touch it sits in its own 40px column at the row's left. */
.px-drag-grip { display: flex; flex: none; align-items: center; justify-content: center; color: rgb(var(--bx-color-icon-secondary)); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.px-drag-grip svg { width: 1rem; height: 1rem; }
.px-drag-grip--row { position: absolute; inset: 0; opacity: 0; }
.px-accordion-row__header:hover .px-drag-grip--row, .px-accordion-row__header:has(:focus-visible) .px-drag-grip--row, .px-accordion-row__header:focus-visible .px-drag-grip--row,
.px-row:hover .px-drag-grip--row, .px-row:has(:focus-visible) .px-drag-grip--row { opacity: 1; }
.px-accordion-row__header:hover .px-accordion-row__icon > :not(.px-drag-grip), .px-accordion-row__header:focus-visible .px-accordion-row__icon > :not(.px-drag-grip) { opacity: 0; }
@media (pointer: coarse) {
  .px-drag-grip--row { inset: -.75rem auto -.75rem -2.5rem; width: 2.5rem; opacity: 1; }
  .px-accordion-row__header:has(.px-drag-grip--row) { padding-left: 2.5rem; }
  .px-accordion-row__header:hover .px-accordion-row__icon > :not(.px-drag-grip) { opacity: 1; }
  .px-drag-grip:not(.px-drag-grip--row) { height: 2.75rem; margin: -.5rem; padding: 0 .5rem; }
  .px-drag-grip:not(.px-drag-grip--row) svg { width: 1.25rem; height: 1.25rem; }
}
.px-drag-grip:not(.px-drag-grip--row) { height: 1.75rem; }
[data-px-reorder] > .is-dragging { position: relative; z-index: 10; transform: scale(1.02); border-radius: .75rem; border-top-color: transparent; background: rgb(var(--bx-color-bg-surface)); box-shadow: var(--bx-shadow-popover); cursor: grabbing; }
[data-px-reorder].is-reordering, [data-px-reorder].is-reordering * { cursor: grabbing; user-select: none; -webkit-user-select: none; }
.px-reorder-sliding { transition: transform 150ms ease; }
@media (prefers-reduced-motion: reduce) { .px-reorder-sliding { transition: none; } }

/* ---------- decorative banner (bundlex DecorativeBanner) ----------
   A card of its own on a theme gradient, with twinkling stars, a floating decoration and a hand illustration
   (or the app's own artwork); themes teal (default) · green · purple · orange · red. Under 480px of its own width
   the content centres and the hand gives way to a centred decoration. */
.px-deco-banner { --px-deco-bg: radial-gradient(circle at 71% 54%, rgb(6 123 172) 0px, rgb(1 40 57) 100%); --px-deco-overlay: radial-gradient(circle at 75% 50%, rgb(42 150 196) 0px, rgb(0 29 37) 100%); --px-deco-glow: rgb(6 123 172 / .9);
  position: relative; padding: 1.5rem; overflow: hidden; container-type: inline-size; background: var(--px-deco-bg); border-radius: var(--bx-radius-card-narrow, 0); box-shadow: var(--bx-shadow-card-narrow, none); color: #fff; }
@media (min-width: 490px) { .px-deco-banner { border-radius: var(--bx-radius-card); box-shadow: var(--bx-shadow-card); } }
.px-deco-banner--green { --px-deco-bg: radial-gradient(circle at 71% 54%, rgb(61 164 95) 0px, rgb(1 57 54) 100%); --px-deco-overlay: radial-gradient(circle at 75% 50%, rgb(82 185 117) 0px, rgb(0 37 30) 100%); --px-deco-glow: rgb(61 164 95 / .9); }
.px-deco-banner--purple { --px-deco-bg: radial-gradient(circle at 71% 54%, rgb(124 72 186) 0px, rgb(35 15 60) 100%); --px-deco-overlay: radial-gradient(circle at 75% 50%, rgb(150 100 210) 0px, rgb(25 10 45) 100%); --px-deco-glow: rgb(124 72 186 / .9); }
.px-deco-banner--orange { --px-deco-bg: radial-gradient(circle at 71% 54%, rgb(204 120 40) 0px, rgb(60 25 5) 100%); --px-deco-overlay: radial-gradient(circle at 75% 50%, rgb(224 145 70) 0px, rgb(45 18 0) 100%); --px-deco-glow: rgb(204 120 40 / .9); }
.px-deco-banner--red { --px-deco-bg: radial-gradient(circle at 71% 54%, rgb(180 50 60) 0px, rgb(50 10 15) 100%); --px-deco-overlay: radial-gradient(circle at 75% 50%, rgb(210 80 90) 0px, rgb(35 5 10) 100%); --px-deco-glow: rgb(180 50 60 / .9); }
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) { .px-deco-banner--lift { transition: transform 420ms cubic-bezier(.2, .8, 0, 1); } .px-deco-banner--lift:hover { transform: translateY(-.25rem); } }
.px-deco-banner__overlay { position: absolute; inset: 0; background: var(--px-deco-overlay); opacity: 0; animation: px-deco-fade 4s ease-in-out infinite alternate; pointer-events: none; }
.px-deco-banner::after { content: ""; position: absolute; inset: 0; background: rgb(0 0 0 / .05); pointer-events: none; }
.px-deco-banner__stars { position: absolute; inset: 0; z-index: 2; pointer-events: none; animation: px-deco-rise 1.5s ease-out; }
.px-deco-banner__stars > span { position: absolute; top: var(--top); left: var(--left); width: var(--size, 2px); height: var(--size, 2px); border-radius: 50%; background: #fff; box-shadow: 0 0 4px rgb(255 255 255 / .8); animation: px-deco-twinkle var(--dur, 3s) infinite var(--delay, 0s); }
/* the glass close button (bundlex CloseButton glass hover): a see-through disc with a white X, shown while the
   banner is hovered or holds focus; always on touch */
.px-deco-banner__close { position: absolute; top: .75rem; right: .75rem; z-index: 5; display: inline-flex; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem; padding: 0; border: 0; border-radius: 9999px; background: rgb(255 255 255 / .2); box-shadow: 0 0 0 1px rgb(255 255 255 / .25); color: #fff; cursor: pointer; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.px-deco-banner__close:hover { background: rgb(255 255 255 / .35); }
.px-deco-banner__close svg { width: 1.25rem; height: 1.25rem; }
.px-deco-banner__close { opacity: 0; }
.px-deco-banner:hover .px-deco-banner__close, .px-deco-banner:focus-within .px-deco-banner__close { opacity: 1; }
@media (hover: none), (pointer: coarse) { .px-deco-banner__close { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) { .px-deco-banner__close { transition: opacity .15s ease, background-color .15s; } }
.px-deco-banner__content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; }
.px-deco-banner__title { margin: 0 0 .5rem; font-size: 1.125rem; font-weight: 700; line-height: 1.4; color: #fff; }
.px-deco-banner__subtitle { margin: 0 0 .625rem; font-size: .8125rem; color: #fff; opacity: .85; }
.px-deco-banner__hand { position: absolute; right: -125px; bottom: -260px; z-index: 1; width: 500px; pointer-events: none; mix-blend-mode: luminosity; animation: px-deco-lift 1s ease-out; }
.px-deco-banner__hand svg { width: 100%; height: auto; }
.px-deco-banner__hand .finger-1 { animation: px-deco-finger-1 4.5s ease-in-out infinite; }
.px-deco-banner__hand .finger-2 { animation: px-deco-finger-2 4.5s ease-in-out .3s infinite; }
.px-deco-banner__hand .finger-3 { animation: px-deco-finger-3 4s ease-in-out .6s infinite; }
.px-deco-banner__decoration { position: absolute; right: 160px; bottom: 40px; z-index: 4; width: 60px; height: 60px; pointer-events: none; filter: drop-shadow(0 0 30px #fff) drop-shadow(0 0 60px var(--px-deco-glow)); animation: px-deco-enter 1.2s ease-out both, px-deco-float 3s ease-in-out 1.2s infinite; }
.px-deco-banner__decoration--mobile { position: relative; right: auto; bottom: auto; display: none; width: 48px; height: 48px; margin: 0 auto 1rem; }
.px-deco-banner__decoration svg { width: 100%; height: 100%; }
@container (max-width: 480px) {
  .px-deco-banner__content { align-items: center; text-align: center; }
  .px-deco-banner__hand, .px-deco-banner__decoration:not(.px-deco-banner__decoration--mobile) { display: none; }
  .px-deco-banner__decoration--mobile { display: block; }
}
@container (min-width: 481px) { .px-deco-banner__text { max-width: 300px; } }
@container (min-width: 600px) { .px-deco-banner__text { max-width: 400px; } }
@container (min-width: 800px) { .px-deco-banner__text { max-width: 500px; } }
@keyframes px-deco-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes px-deco-twinkle { 0%, 100% { opacity: .3; transform: scale(1); } 50% { opacity: 1; transform: scale(1.2); } }
@keyframes px-deco-rise { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes px-deco-enter { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes px-deco-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes px-deco-lift { from { transform: translateY(20px); } to { transform: translateY(0); } }
@keyframes px-deco-finger-1 { 0%, 100% { transform: translate(0, 0); opacity: 1; } 50% { transform: translate(-3px, 3px); opacity: .9; } }
@keyframes px-deco-finger-2 { 0%, 100% { transform: translate(0, 0); opacity: 1; } 50% { transform: translate(-2px, 2.5px); opacity: .92; } }
@keyframes px-deco-finger-3 { 0%, 100% { transform: translate(0, 0); opacity: 1; } 50% { transform: translate(2px, -2px); opacity: .94; } }
@media (prefers-reduced-motion: reduce) {
  .px-deco-banner__overlay, .px-deco-banner__stars, .px-deco-banner__stars > span, .px-deco-banner__decoration, .px-deco-banner__hand, .px-deco-banner__hand .finger-1, .px-deco-banner__hand .finger-2, .px-deco-banner__hand .finger-3 { animation: none !important; }
  .px-deco-banner__decoration { opacity: 1; }
}

/* ---------- star rating (bundlex StarRating) ----------
   Five buttons; under the pointer the stars up to the hovered one fill in the theme's accent. Drawn for a dark
   banner. Themes teal (default) · green · purple · orange · red. */
.px-star-rating { --px-star-accent: rgb(80 200 240); display: flex; gap: 2px; }
.px-star-rating--green { --px-star-accent: rgb(110 220 150); }
.px-star-rating--purple { --px-star-accent: rgb(180 140 240); }
.px-star-rating--orange { --px-star-accent: rgb(240 180 90); }
.px-star-rating--red { --px-star-accent: rgb(240 120 130); }
.px-star-rating__star { padding: 2px; border: 0; background: none; line-height: 0; cursor: pointer; transition: transform .15s ease; }
.px-star-rating__star path { fill: rgb(255 255 255 / .3); stroke: rgb(255 255 255 / .6); stroke-width: 1; stroke-linejoin: round; }
.px-star-rating__star:hover path, .px-star-rating__star:has(~ .px-star-rating__star:hover) path { fill: var(--px-star-accent); }
@media (hover: hover) { .px-star-rating__star:hover { transform: scale(1.2); } }  /* a tap leaves :hover stuck on touch */
@media (max-width: 489px) { .px-star-rating { justify-content: center; } }
@media (pointer: coarse) and (max-width: 47.9975em) {
  .px-star-rating { gap: 0; margin-block: -.375rem; }
  .px-star-rating__star { display: flex; align-items: center; justify-content: center; min-width: 2.75rem; min-height: 2.75rem; }
}

/* ---------- review banner (bundlex ReviewBanner): a green decorative banner with a star rating and the app's own
   looping clip on the right (plays under a real pointer; its poster shows until then) ---------- */
.px-review-banner__artwork { position: absolute; top: 0; right: 0; bottom: -20%; z-index: 1; width: min(40%, 380px); pointer-events: none; -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 28%, #000 100%); mask-image: linear-gradient(to right, transparent 0%, #000 28%, #000 100%); }
.px-review-banner__artwork video, .px-review-banner__artwork img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.px-review-banner .px-deco-banner__stars > .is-right { display: none; }
@container (max-width: 480px) { .px-review-banner__artwork { display: none; } .px-review-banner .px-deco-banner__stars > .is-right { display: block; } }

/* s-box / s-image / s-clickable borderRadius utilities: last in the file so they override component defaults
   (e.g. .px-image.px-radius-none, .px-clickable.px-radius-none) */
.px-radius-none { border-radius: 0; } .px-radius-small-200 { border-radius: .25rem; } .px-radius-small-100 { border-radius: .375rem; } .px-radius-large-100 { border-radius: 1.125rem; }
.px-radius-small { border-radius: var(--bx-radius-badge); } .px-radius-base { border-radius: var(--bx-radius-control); } .px-radius-large { border-radius: var(--bx-radius-popover); } .px-radius-large-200 { border-radius: var(--bx-radius-card); }
