@dashspec/renderer 0.1.33 → 0.1.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7572,7 +7572,7 @@ declare class TransformError extends Error {
7572
7572
  declare function applyTransform(data: unknown, steps: readonly Step[], root: Scope, opts?: TransformOptions): unknown;
7573
7573
 
7574
7574
  /** This package's version. A test keeps it equal to package.json's; bump both together. */
7575
- declare const RENDERER_VERSION = "0.1.33";
7575
+ declare const RENDERER_VERSION = "0.1.35";
7576
7576
  /**
7577
7577
  * Whether `version` satisfies `range`. Supports what documents need: "1.2.3" (that or newer within the major, like
7578
7578
  * "^"), ">=1.2", ">1.2.3", "<2", "<=2.1", "^1.2", "~1.2.3", and several of them separated by spaces (all must hold).
package/dist/core.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export { f as ACTION_KINDS, g as ACTION_SCHEMAS, h as API_VERSION, i as Action, j as ActionRef, k as Auth, B as BREAKPOINTS, l as BUILT_IN_DATASOURCE_TYPES, C as Callback, m as Connection, n as ConnectionSpec, o as DATE_PRESETS, D as Dashboard, p as DashboardInput, q as DataBinding, r as DataError, s as DataErrorCode, t as Datasource, u as DateRange, v as Display, w as Drill, x as Duration, y as EventHandler, z as EventMap, F as Expression, G as ExpressionError, I as FnProp, a$ as Grid, K as Handler, L as HelperSettings, M as Helpers, H as HttpClient, O as HttpClientInternals, P as Id, J as JsonValue, Q as Layout, U as LayoutItem, V as LoadOptions, X as LoadResult, Y as Metadata, Z as MigrateResult, _ as MigrationError, $ as Modal, a0 as NamedAction, N as NetworkOptions, a1 as Node, a2 as Panel, a3 as PanelControl, a4 as PanelMigration, a6 as Problem, a7 as RENDERER_VERSION, a8 as RESERVED_STATE_KEYS, a9 as RefRoot, aa as Reference, ab as Requires, R as ResolvedRequest, ac as SCHEMA_URL, S as Scope, ad as Severity, ae as Spec, b0 as StatusTone, af as Template, a as TimeSettings, ag as TokenSource, ah as TransformError, ai as TransformOptions, aj as TransformStep, ak as Translations, al as VARIABLE_KINDS, am as ValidateOptions, an as ValidationResult, ao as Variable, ap as WidgetCheck, aq as WidgetMigrations, as as applyTransform, at as buildRequestUrl, au as buildUrl, av as builtInWidgetChecks, aw as collectReferences, ax as compile, ay as createHelpers, az as createHttpClient, aA as dashboardJsonSchema, aB as evaluate, aC as evaluateSafe, aD as expressionReferences, aE as graphqlData, aF as interpolate, aG as interpolateUrl, aH as isCallbackSource, aI as isSafeUrl, aJ as loadDocument, aK as mergeConnections, aL as migrateDocument, aM as parse, aN as parseDuration, aO as placeholders, aP as plantDate, aQ as plantDayStart, aR as resolve, aS as resolveBaseUrl, aT as resolveRequest, aU as safeLink, aV as satisfies, aW as scope, aX as stripStrings, aY as templateReferences, aZ as translator, a_ as validateDocument } from './core-CQZEoeeW.js';
1
+ export { f as ACTION_KINDS, g as ACTION_SCHEMAS, h as API_VERSION, i as Action, j as ActionRef, k as Auth, B as BREAKPOINTS, l as BUILT_IN_DATASOURCE_TYPES, C as Callback, m as Connection, n as ConnectionSpec, o as DATE_PRESETS, D as Dashboard, p as DashboardInput, q as DataBinding, r as DataError, s as DataErrorCode, t as Datasource, u as DateRange, v as Display, w as Drill, x as Duration, y as EventHandler, z as EventMap, F as Expression, G as ExpressionError, I as FnProp, a$ as Grid, K as Handler, L as HelperSettings, M as Helpers, H as HttpClient, O as HttpClientInternals, P as Id, J as JsonValue, Q as Layout, U as LayoutItem, V as LoadOptions, X as LoadResult, Y as Metadata, Z as MigrateResult, _ as MigrationError, $ as Modal, a0 as NamedAction, N as NetworkOptions, a1 as Node, a2 as Panel, a3 as PanelControl, a4 as PanelMigration, a6 as Problem, a7 as RENDERER_VERSION, a8 as RESERVED_STATE_KEYS, a9 as RefRoot, aa as Reference, ab as Requires, R as ResolvedRequest, ac as SCHEMA_URL, S as Scope, ad as Severity, ae as Spec, b0 as StatusTone, af as Template, a as TimeSettings, ag as TokenSource, ah as TransformError, ai as TransformOptions, aj as TransformStep, ak as Translations, al as VARIABLE_KINDS, am as ValidateOptions, an as ValidationResult, ao as Variable, ap as WidgetCheck, aq as WidgetMigrations, as as applyTransform, at as buildRequestUrl, au as buildUrl, av as builtInWidgetChecks, aw as collectReferences, ax as compile, ay as createHelpers, az as createHttpClient, aA as dashboardJsonSchema, aB as evaluate, aC as evaluateSafe, aD as expressionReferences, aE as graphqlData, aF as interpolate, aG as interpolateUrl, aH as isCallbackSource, aI as isSafeUrl, aJ as loadDocument, aK as mergeConnections, aL as migrateDocument, aM as parse, aN as parseDuration, aO as placeholders, aP as plantDate, aQ as plantDayStart, aR as resolve, aS as resolveBaseUrl, aT as resolveRequest, aU as safeLink, aV as satisfies, aW as scope, aX as stripStrings, aY as templateReferences, aZ as translator, a_ as validateDocument } from './core-Dw1UQ3Me.js';
2
2
  import 'zod';
3
3
  import 'react';
package/dist/core.js CHANGED
@@ -81,7 +81,7 @@ import {
81
81
  templateReferences,
82
82
  translator,
83
83
  validateDocument
84
- } from "./chunk-A6ITB5K3.js";
84
+ } from "./chunk-42NZL3WV.js";
85
85
  export {
86
86
  ACTION_KINDS,
87
87
  ACTION_SCHEMAS,
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { A as AnyWidgetDefinition, T as TreeState, H as HttpClient, R as ResolvedRequest, a as TimeSettings, D as Dashboard, N as NetworkOptions, J as JsonValue, S as Scope, W as WidgetDefinition, b as SlotDefinition, c as SlotRenderOptions, d as WidgetMeta, e as WidgetProps } from './core-CQZEoeeW.js';
2
- export { f as ACTION_KINDS, g as ACTION_SCHEMAS, h as API_VERSION, i as Action, j as ActionRef, k as Auth, B as BREAKPOINTS, l as BUILT_IN_DATASOURCE_TYPES, C as Callback, m as Connection, n as ConnectionSpec, o as DATE_PRESETS, p as DashboardInput, q as DataBinding, r as DataError, s as DataErrorCode, t as Datasource, u as DateRange, v as Display, w as Drill, x as Duration, E as Emit, y as EventHandler, z as EventMap, F as Expression, G as ExpressionError, I as FnProp, K as Handler, L as HelperSettings, M as Helpers, O as HttpClientInternals, P as Id, Q as Layout, U as LayoutItem, V as LoadOptions, X as LoadResult, Y as Metadata, Z as MigrateResult, _ as MigrationError, $ as Modal, a0 as NamedAction, a1 as Node, a2 as Panel, a3 as PanelControl, a4 as PanelMigration, a5 as PanelState, a6 as Problem, a7 as RENDERER_VERSION, a8 as RESERVED_STATE_KEYS, a9 as RefRoot, aa as Reference, ab as Requires, ac as SCHEMA_URL, ad as Severity, ae as Spec, af as Template, ag as TokenSource, ah as TransformError, ai as TransformOptions, aj as TransformStep, ak as Translations, al as VARIABLE_KINDS, am as ValidateOptions, an as ValidationResult, ao as Variable, ap as WidgetCheck, aq as WidgetMigrations, ar as WidgetStore, as as applyTransform, at as buildRequestUrl, au as buildUrl, av as builtInWidgetChecks, aw as collectReferences, ax as compile, ay as createHelpers, az as createHttpClient, aA as dashboardJsonSchema, aB as evaluate, aC as evaluateSafe, aD as expressionReferences, aE as graphqlData, aF as interpolate, aG as interpolateUrl, aH as isCallbackSource, aI as isSafeUrl, aJ as loadDocument, aK as mergeConnections, aL as migrateDocument, aM as parse, aN as parseDuration, aO as placeholders, aP as plantDate, aQ as plantDayStart, aR as resolve, aS as resolveBaseUrl, aT as resolveRequest, aU as safeLink, aV as satisfies, aW as scope, aX as stripStrings, aY as templateReferences, aZ as translator, a_ as validateDocument } from './core-CQZEoeeW.js';
1
+ import { A as AnyWidgetDefinition, T as TreeState, H as HttpClient, R as ResolvedRequest, a as TimeSettings, D as Dashboard, N as NetworkOptions, J as JsonValue, S as Scope, W as WidgetDefinition, b as SlotDefinition, c as SlotRenderOptions, d as WidgetMeta, e as WidgetProps } from './core-Dw1UQ3Me.js';
2
+ export { f as ACTION_KINDS, g as ACTION_SCHEMAS, h as API_VERSION, i as Action, j as ActionRef, k as Auth, B as BREAKPOINTS, l as BUILT_IN_DATASOURCE_TYPES, C as Callback, m as Connection, n as ConnectionSpec, o as DATE_PRESETS, p as DashboardInput, q as DataBinding, r as DataError, s as DataErrorCode, t as Datasource, u as DateRange, v as Display, w as Drill, x as Duration, E as Emit, y as EventHandler, z as EventMap, F as Expression, G as ExpressionError, I as FnProp, K as Handler, L as HelperSettings, M as Helpers, O as HttpClientInternals, P as Id, Q as Layout, U as LayoutItem, V as LoadOptions, X as LoadResult, Y as Metadata, Z as MigrateResult, _ as MigrationError, $ as Modal, a0 as NamedAction, a1 as Node, a2 as Panel, a3 as PanelControl, a4 as PanelMigration, a5 as PanelState, a6 as Problem, a7 as RENDERER_VERSION, a8 as RESERVED_STATE_KEYS, a9 as RefRoot, aa as Reference, ab as Requires, ac as SCHEMA_URL, ad as Severity, ae as Spec, af as Template, ag as TokenSource, ah as TransformError, ai as TransformOptions, aj as TransformStep, ak as Translations, al as VARIABLE_KINDS, am as ValidateOptions, an as ValidationResult, ao as Variable, ap as WidgetCheck, aq as WidgetMigrations, ar as WidgetStore, as as applyTransform, at as buildRequestUrl, au as buildUrl, av as builtInWidgetChecks, aw as collectReferences, ax as compile, ay as createHelpers, az as createHttpClient, aA as dashboardJsonSchema, aB as evaluate, aC as evaluateSafe, aD as expressionReferences, aE as graphqlData, aF as interpolate, aG as interpolateUrl, aH as isCallbackSource, aI as isSafeUrl, aJ as loadDocument, aK as mergeConnections, aL as migrateDocument, aM as parse, aN as parseDuration, aO as placeholders, aP as plantDate, aQ as plantDayStart, aR as resolve, aS as resolveBaseUrl, aT as resolveRequest, aU as safeLink, aV as satisfies, aW as scope, aX as stripStrings, aY as templateReferences, aZ as translator, a_ as validateDocument } from './core-Dw1UQ3Me.js';
3
3
  import * as react from 'react';
4
4
  import { CSSProperties, ReactNode, ComponentType } from 'react';
5
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
@@ -244,6 +244,8 @@ interface ScaleTokens {
244
244
  iconSize?: number;
245
245
  /** A select without a label shows its value in this colour (default the primary colour) and weight. */
246
246
  valueColor?: string;
247
+ /** "trigger": an option menu is exactly as wide as the control that opened it (default: at least 200px). */
248
+ menuWidth?: "trigger";
247
249
  /** The filter bar icon's colour (default the subtle text colour). */
248
250
  iconColor?: string;
249
251
  valueWeight?: number;
@@ -1504,7 +1506,7 @@ declare function useDashboardActions(id: string): {
1504
1506
  };
1505
1507
 
1506
1508
  /** One stylesheet for the renderer's own chrome. Everything reads `--ds-*` tokens. */
1507
- declare const RENDERER_CSS = "\n.ds-root { box-sizing: border-box; font-size: var(--ds-type-body-size); line-height: var(--ds-type-body-line-height); }\n.ds-root *, .ds-root *::before, .ds-root *::after { box-sizing: inherit; }\n.ds-header { display: flex; align-items: baseline; gap: var(--ds-space-md); flex-wrap: wrap; margin-bottom: var(--ds-space-md); }\n.ds-title { margin: 0; font-family: var(--ds-type-title-family); font-size: var(--ds-type-title-size); font-weight: var(--ds-type-title-weight); line-height: var(--ds-type-title-line-height); }\n.ds-desc { color: var(--ds-color-text-subtle); margin: 0; }\n.ds-synced { margin-left: auto; color: var(--ds-color-text-subtle); font-size: var(--ds-type-caption-size); }\n\n.ds-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--ds-space-sm) var(--ds-space-md); margin-bottom: var(--ds-space-lg); }\n.ds-field { display: grid; gap: var(--ds-space-xxs); min-width: 140px; }\n.ds-field > span { font-size: var(--ds-type-label-size); font-weight: var(--ds-type-label-weight); letter-spacing: var(--ds-type-label-letter-spacing); color: var(--ds-color-text-subtle); }\n.ds-input, .ds-select, .ds-btn {\n font: inherit; color: var(--ds-color-text-primary); background: var(--ds-color-surface-card);\n border: 1px solid var(--ds-color-border-control); border-radius: var(--ds-radius-control);\n padding: var(--ds-space-xs) var(--ds-space-sm); min-height: calc(var(--ds-control-height, 36px) - 2px);\n}\n.ds-input:focus-visible, .ds-select:focus-visible, .ds-btn:focus-visible, .ds-chip:focus-visible, .ds-panel:focus-visible { outline: 2px solid var(--ds-color-border-focus); outline-offset: 1px; }\n.ds-btn { cursor: pointer; }\n.ds-btn-primary { background: var(--ds-color-action-primary); color: var(--ds-color-action-on-primary); border-color: transparent; }\n.ds-btn-primary:hover { background: var(--ds-color-action-primary-hover); }\n.ds-inline { display: flex; gap: var(--ds-space-xs); align-items: center; }\n.ds-chips { display: flex; gap: var(--ds-space-xs); flex-wrap: wrap; }\n.ds-chip {\n font: inherit; font-size: var(--ds-type-label-size); cursor: pointer; border-radius: var(--ds-radius-full);\n padding: var(--ds-space-xxs) var(--ds-space-sm); border: 1px solid var(--ds-color-border-default);\n background: var(--ds-color-surface-card); color: var(--ds-color-text-secondary);\n}\n.ds-chip[aria-pressed=\"true\"] { background: var(--ds-color-surface-selection); border-color: var(--ds-color-border-focus); color: var(--ds-color-text-primary); }\n.ds-chip-count { margin-left: var(--ds-space-xxs); color: var(--ds-color-text-subtle); }\n\n.ds-panel {\n height: 100%; display: flex; flex-direction: column; overflow: hidden;\n background: var(--ds-color-surface-card); border-radius: var(--ds-radius-card); box-shadow: var(--ds-shadow-raised);\n padding: var(--ds-space-md) var(--ds-space-lg);\n}\n.ds-panel[data-tone=\"plain\"] { background: transparent; box-shadow: none; padding: 0; overflow: visible; }\n/* A plain panel has no card of its own, so it doesn't clip: borders, rounded ends and dots at its edge stay whole. */\n.ds-panel[data-tone=\"plain\"] > .ds-panel-body { overflow: visible; }\n.ds-panel[data-tone=\"subtle\"] { background: var(--ds-color-surface-sunken); box-shadow: none; }\n.ds-panel[data-selected=\"true\"] { outline: 2px solid var(--ds-color-border-focus); }\n.ds-panel-head { display: flex; align-items: center; gap: var(--ds-space-sm); min-height: 24px; margin-bottom: var(--ds-space-sm); }\n.ds-panel-title { margin: 0; font-family: var(--ds-type-heading-family); font-size: var(--ds-type-heading-size); font-weight: var(--ds-type-heading-weight); line-height: var(--ds-type-heading-line-height); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ds-panel-sub { color: var(--ds-color-text-subtle); font-size: var(--ds-type-caption-size); }\n.ds-panel-tools { margin-left: auto; display: flex; gap: var(--ds-space-xs); align-items: center; }\n.ds-panel-body { flex: 1; min-height: 0; position: relative; }\n.ds-badge { font-size: var(--ds-type-caption-size); border-radius: var(--ds-radius-full); padding: 0 var(--ds-space-xs); }\n.ds-badge-stale { background: var(--ds-color-status-warn-bg); color: var(--ds-color-status-warn-fg); }\n.ds-crumbs { display: flex; gap: var(--ds-space-xxs); font-size: var(--ds-type-caption-size); color: var(--ds-color-text-subtle); }\n.ds-crumbs button { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; color: var(--ds-color-action-primary); }\n.ds-state { height: 100%; display: grid; place-items: center; text-align: center; color: var(--ds-color-text-subtle); padding: var(--ds-space-sm); }\n.ds-state-error { color: var(--ds-color-status-bad-fg); }\n.ds-skeleton { height: 100%; border-radius: var(--ds-radius-control); background: linear-gradient(90deg, var(--ds-color-surface-sunken) 25%, var(--ds-color-surface-page) 50%, var(--ds-color-surface-sunken) 75%); background-size: 200% 100%; animation: ds-shimmer 1.4s infinite linear; opacity: .6; }\n.ds-loading { display: block; position: relative; height: 100%; }\n.ds-loading-text { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: var(--ds-space-sm); color: var(--ds-color-text-secondary); font-size: var(--ds-type-label-size); }\n@keyframes ds-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }\n@media (prefers-reduced-motion: reduce) { .ds-skeleton { animation: none; } .ds-root .react-grid-item { transition: none !important; } }\n\n.ds-scrim { position: fixed; inset: 0; background: var(--ds-color-surface-scrim); z-index: var(--ds-z-overlay); display: flex; align-items: center; justify-content: center; padding: var(--ds-space-xl); }\n.ds-scrim[data-presentation=\"drawer\"] { justify-content: flex-end; padding: 0; }\n.ds-dialog { position: static; margin: 0; border: 0; inset: auto; background: var(--ds-color-surface-page); color: var(--ds-color-text-primary); border-radius: var(--ds-radius-sheet); box-shadow: var(--ds-shadow-overlay); width: min(100%, var(--ds-dialog-w)); max-height: 100%; overflow: auto; padding: var(--ds-space-lg); }\n.ds-scrim[data-presentation=\"drawer\"] .ds-dialog { height: 100%; border-radius: 0; }\n.ds-dialog-head { display: flex; align-items: center; gap: var(--ds-space-md); margin-bottom: var(--ds-space-md); }\n.ds-dialog-head h2 { margin: 0; font-family: var(--ds-type-title-family); font-size: var(--ds-type-title-size); font-weight: var(--ds-type-title-weight); }\n.ds-close { margin-left: auto; font-size: 20px; line-height: 1; background: none; border: 0; cursor: pointer; color: var(--ds-color-text-secondary); }\n\n.ds-invalid { border: 1px solid var(--ds-color-status-bad-border); background: var(--ds-color-status-bad-bg); color: var(--ds-color-status-bad-fg); border-radius: var(--ds-radius-card); padding: var(--ds-space-lg); }\n.ds-invalid ul { margin: var(--ds-space-sm) 0 0; padding-left: var(--ds-space-lg); }\n.ds-invalid code { font-size: 12px; }\n\n.ds-root .react-grid-layout { position: relative; }\n.ds-root .react-grid-item { transition: transform 200ms ease; }\n.ds-root .react-grid-item.react-grid-placeholder { background: var(--ds-color-surface-selection); border-radius: var(--ds-radius-card); opacity: .6; }\n.ds-root .react-grid-item > .react-resizable-handle { display: none; }\n.ds-grid-edit .react-grid-item > .react-resizable-handle { display: block; position: absolute; width: 14px; height: 14px; right: 2px; bottom: 2px; cursor: se-resize; }\n.ds-grid-edit .react-grid-item > .react-resizable-handle::after { content: \"\"; position: absolute; right: 3px; bottom: 3px; width: 6px; height: 6px; border-right: 2px solid var(--ds-color-border-control); border-bottom: 2px solid var(--ds-color-border-control); }\n\n/* widgets */\n.ds-plain, .ds-kpi, .ds-tile, .ds-status, .ds-card, .ds-meters button, .ds-legend button, .ds-stages button, .ds-marker, .ds-table th button { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-align: inherit; cursor: pointer; }\n.ds-kpi { display: flex; flex-direction: column; gap: var(--ds-space-xxs); width: 100%; height: 100%; justify-content: center; }\n.ds-kpi-value { font-family: var(--ds-type-kpi-family); font-size: var(--ds-type-kpi-size); font-weight: var(--ds-type-kpi-weight); line-height: var(--ds-type-kpi-line-height); font-variant-numeric: tabular-nums; }\n.ds-kpi-unit { font-size: .5em; margin-left: .25em; color: var(--ds-color-text-subtle); font-weight: 500; }\n.ds-kpi-delta { font-size: var(--ds-type-label-size); font-weight: 600; }\n.ds-kpi-sub { color: var(--ds-color-text-subtle); font-size: var(--ds-type-caption-size); font-weight: 400; }\n.ds-progress { display: block; height: 6px; border-radius: var(--ds-radius-full); background: var(--ds-color-surface-sunken); overflow: hidden; }\n.ds-progress > span { display: block; height: 100%; border-radius: inherit; }\n.ds-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: var(--ds-space-xs); flex: none; }\n.ds-pill { display: inline-flex; align-items: center; border: 1px solid; border-radius: var(--ds-radius-full); padding: 0 var(--ds-space-sm); font-size: var(--ds-type-label-size); font-weight: 600; line-height: 22px; white-space: nowrap; }\n.ds-tiles { display: grid; gap: var(--ds-space-sm); height: 100%; align-content: start; }\n.ds-tile { display: grid; gap: var(--ds-space-xxs); border: 1px solid var(--ds-color-border-default); border-radius: var(--ds-radius-control); padding: var(--ds-space-sm) var(--ds-space-md); background: var(--ds-color-surface-card); }\n.ds-tile[data-active] { box-shadow: inset 0 0 0 1px currentColor; }\n.ds-tile-label { display: flex; align-items: center; font-size: var(--ds-type-label-size); color: var(--ds-color-text-secondary); text-transform: capitalize; }\n.ds-tile-value { font-family: var(--ds-type-kpi-family); font-size: calc(var(--ds-type-kpi-size) * .8); font-weight: var(--ds-type-kpi-weight); font-variant-numeric: tabular-nums; }\n.ds-status { display: flex; flex-direction: column; align-items: flex-start; gap: var(--ds-space-xs); }\n.ds-status-label { color: var(--ds-color-text-secondary); }\n.ds-content { overflow: auto; height: 100%; }\n.ds-md-p { margin: 0 0 var(--ds-space-sm); }\n.ds-md-h { margin: 0 0 var(--ds-space-xs); font-family: var(--ds-type-heading-family); }\n.ds-md-list { margin: 0 0 var(--ds-space-sm); padding-left: var(--ds-space-lg); }\n.ds-link { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; color: var(--ds-color-action-primary); text-decoration: underline; text-underline-offset: 2px; }\n.ds-meters { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--ds-space-sm); overflow: auto; max-height: 100%; }\n.ds-meters button { display: grid; gap: var(--ds-space-xxs); width: 100%; }\n.ds-meter-head { display: flex; justify-content: space-between; gap: var(--ds-space-sm); }\n.ds-meter-value { font-variant-numeric: tabular-nums; font-weight: 600; }\n.ds-legend { list-style: none; margin: var(--ds-space-sm) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--ds-space-xs) var(--ds-space-md); font-size: var(--ds-type-label-size); }\n.ds-legend li, .ds-legend button { display: inline-flex; align-items: center; gap: var(--ds-space-xxs); }\n.ds-legend .ds-dot { flex-shrink: 0; width: 8px; height: 8px; }\n.ds-segbar { display: flex; width: 100%; height: 14px; border-radius: var(--ds-radius-full); overflow: hidden; gap: 2px; }\n.ds-segbar button { border: 0; padding: 0; cursor: pointer; min-width: 2px; }\n.ds-donut { display: flex; gap: var(--ds-space-md); align-items: center; height: 100%; }\n.ds-donut svg { height: 100%; max-height: 220px; aspect-ratio: 1; }\n.ds-donut .ds-legend { flex-direction: column; margin: 0; }\n.ds-cards { display: grid; gap: var(--ds-space-sm); overflow: auto; max-height: 100%; }\n.ds-card { display: grid; gap: var(--ds-space-sm); border: 1px solid var(--ds-color-border-default); border-top-width: 3px; border-radius: var(--ds-radius-control); padding: var(--ds-space-sm) var(--ds-space-md); background: var(--ds-color-surface-card); }\n.ds-card[data-active] { box-shadow: 0 0 0 2px var(--ds-color-border-focus); }\n.ds-card-head { display: flex; align-items: center; gap: var(--ds-space-xs); justify-content: space-between; }\n.ds-card-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ds-space-xxs) var(--ds-space-sm); margin: 0; }\n.ds-card-fields dt { font-size: var(--ds-type-caption-size); color: var(--ds-color-text-subtle); }\n.ds-card-fields dd { margin: 0; font-variant-numeric: tabular-nums; }\n.ds-timeline { display: grid; gap: var(--ds-space-xs); }\n.ds-timeline-lane { display: flex; align-items: center; gap: var(--ds-space-sm); }\n.ds-timeline-name { width: 80px; font-size: var(--ds-type-label-size); color: var(--ds-color-text-secondary); flex: none; }\n.ds-timeline-bar { position: relative; flex: 1; height: 24px; background: var(--ds-color-surface-sunken); border-radius: var(--ds-radius-control); overflow: hidden; }\n.ds-timeline-bar span { position: absolute; top: 0; bottom: 0; cursor: pointer; }\n.ds-timeline-axis { display: flex; justify-content: space-between; font-size: var(--ds-type-caption-size); color: var(--ds-color-text-subtle); }\n.ds-imagemap { position: relative; height: 100%; }\n.ds-imagemap img { width: 100%; height: 100%; object-fit: contain; }\n.ds-marker { position: absolute; transform: translate(-50%, -50%); border: 1px solid; border-radius: var(--ds-radius-control); padding: 1px var(--ds-space-xs); font-size: var(--ds-type-caption-size); white-space: nowrap; }\n.ds-stages { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--ds-space-xs); align-items: center; height: 100%; }\n.ds-stages li { flex: 1; }\n.ds-stages button { display: flex; align-items: center; gap: var(--ds-space-xs); width: 100%; padding: var(--ds-space-xs); border-radius: var(--ds-radius-control); color: var(--ds-color-text-subtle); }\n.ds-stages li[data-state=\"current\"] button { background: var(--ds-color-surface-selection); color: var(--ds-color-text-primary); font-weight: 600; }\n.ds-stages li[data-state=\"done\"] button { color: var(--ds-color-text-secondary); }\n.ds-stage-dot { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--ds-color-border-control); font-size: 11px; flex: none; }\n.ds-stages li[data-state=\"done\"] .ds-stage-dot { background: var(--ds-color-status-good-solid); border-color: transparent; color: var(--ds-color-text-on-fill); }\n.ds-stages li[data-state=\"current\"] .ds-stage-dot { background: var(--ds-color-action-primary); border-color: transparent; color: var(--ds-color-action-on-primary); }\n.ds-table-wrap { height: 100%; display: flex; flex-direction: column; }\n.ds-table-scroll { overflow: auto; flex: 1; scrollbar-width: thin; }\n.ds-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }\n.ds-table th, .ds-table td { padding: var(--ds-space-xs) var(--ds-space-sm); border-bottom: 1px solid var(--ds-color-border-default); vertical-align: top; }\n.ds-table-wrap[data-density=\"compact\"] th, .ds-table-wrap[data-density=\"compact\"] td { padding: 2px var(--ds-space-xs); }\n.ds-table th { font-size: var(--ds-type-label-size); font-weight: var(--ds-type-label-weight); color: var(--ds-color-text-subtle); white-space: nowrap; background: var(--ds-color-surface-card); }\n.ds-table thead[data-sticky] th { position: sticky; top: 0; z-index: 1; }\n.ds-table tbody tr { cursor: pointer; }\n.ds-table tbody tr:hover, .ds-table tbody tr:focus-visible { background: var(--ds-color-surface-selection); outline: none; }\n.ds-table tfoot td { font-weight: 600; border-top: 2px solid var(--ds-color-border-default); }\n/* Rich cells (sub line, chips), expandable rows and their detail. */\n.ds-cell { display: inline-flex; flex-direction: column; align-items: flex-start; gap: var(--ds-space-xxs); }\n.ds-table td[style*=\"right\"] .ds-cell { align-items: flex-end; }\n.ds-cell-sub { color: var(--ds-color-text-secondary); font-size: var(--ds-type-caption-size); font-weight: 600; }\n.ds-chips { display: inline-flex; flex-wrap: wrap; gap: var(--ds-space-xxs); }\n.ds-table tr[aria-expanded] { cursor: pointer; }\n.ds-table tr[data-expanded] > td, .ds-row-detail > td { background: var(--ds-color-surface-sunken); }\n.ds-row-detail > td { padding: var(--ds-space-md); }\n/* Tiles: muted (dashed, greyed) and highlighted (accent border). */\n.ds-tile[data-muted] { border-style: dashed; color: var(--ds-color-text-disabled); background: transparent; }\n.ds-tile[data-muted] .ds-tile-label, .ds-tile[data-muted] .ds-tile-value, .ds-tile[data-muted] .ds-tile-caption { color: var(--ds-color-text-disabled); }\n.ds-tile[data-highlight] { border-width: 2px; }\n.ds-tile[data-highlight=\"warn\"] { border-color: var(--ds-color-status-warn-border); }\n.ds-tile[data-highlight=\"bad\"] { border-color: var(--ds-color-status-bad-border); }\n.ds-tile[data-highlight=\"good\"] { border-color: var(--ds-color-status-good-border); }\n.ds-tile[data-highlight=\"info\"] { border-color: var(--ds-color-status-info-border); }\n.ds-tile[data-highlight=\"neutral\"] { border-color: var(--ds-color-status-neutral-border); }\n.ds-cell-list { display: grid; gap: 2px; }\n.ds-pager { display: flex; justify-content: flex-end; align-items: center; gap: var(--ds-space-sm); padding-top: var(--ds-space-xs); font-size: var(--ds-type-label-size); color: var(--ds-color-text-subtle); }\n\n/* ---- Card anatomy ---- */\n.ds-panel { padding: var(--ds-space-lg); border: 0; }\n.ds-panel-head { margin-bottom: var(--ds-space-md); min-height: 20px; flex-wrap: wrap; row-gap: 2px; }\n.ds-panel-subtitle { margin: 2px 0 0; font-family: var(--ds-type-caption-family); font-size: var(--ds-type-caption-size); line-height: var(--ds-type-caption-line-height); color: var(--ds-color-text-subtle); }\n.ds-panel-title { display: inline-flex; align-items: center; gap: var(--ds-space-xs); min-width: 0; max-width: 100%; }\n.ds-panel-meta { font-size: var(--ds-type-label-size); color: var(--ds-color-text-subtle); white-space: nowrap; }\n.ds-live { display: inline-flex; align-items: center; gap: 6px; font-size: var(--ds-type-label-size); color: var(--ds-color-text-subtle); white-space: nowrap; }\n.ds-live > span { width: 7px; height: 7px; border-radius: 50%; background: var(--ds-color-status-good-fg); }\n.ds-live[data-stale] > span { background: var(--ds-color-status-warn-fg); }\n.ds-info { position: relative; display: inline-flex; color: var(--ds-color-text-disabled); cursor: help; outline: none; background: none; border: 0; padding: 0; font: inherit; }\n.ds-info:hover, .ds-info:focus-visible { color: var(--ds-color-text-subtle); }\n.ds-tip { position: fixed; z-index: var(--ds-z-tooltip); width: max-content; max-width: 320px; padding: var(--ds-space-sm) var(--ds-space-md); border-radius: var(--ds-radius-control); background: var(--ds-color-chart-tooltip-bg); color: var(--ds-color-chart-tooltip-text); font: 500 var(--ds-type-caption-size)/1.5 var(--ds-font-body); text-align: left; white-space: normal; pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity 140ms ease, transform 140ms ease; }\n.ds-tip[data-below] { transform: translateY(-4px); }\n.ds-tip[data-open] { opacity: 1; transform: none; }\n@media (prefers-reduced-motion: reduce) { .ds-tip { transition: none; } }\n.ds-tip::after { content: \"\"; position: absolute; left: var(--ds-tip-arrow); top: 100%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: var(--ds-color-chart-tooltip-bg); }\n.ds-tip[data-below]::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: var(--ds-color-chart-tooltip-bg); }\n\n.ds-chip { display: inline-flex; align-items: center; height: var(--ds-chip-height, 22px); padding: 0 var(--ds-chip-padding-x, 8px); border-radius: var(--ds-chip-radius, 6px); border-width: var(--ds-chip-border, 1px); font: var(--ds-chip-weight, 600) var(--ds-chip-font-size, 11px)/1 var(--ds-font-body); white-space: nowrap; background: var(--ds-color-status-neutral-bg); color: var(--ds-color-status-neutral-fg); }\n.ds-chip[data-tone=\"good\"] { background: var(--ds-color-status-good-bg); color: var(--ds-color-status-good-fg); }\n.ds-chip[data-tone=\"bad\"] { background: var(--ds-color-status-bad-bg); color: var(--ds-color-status-bad-fg); }\n.ds-chip[data-tone=\"warn\"] { background: var(--ds-color-status-warn-bg); color: var(--ds-color-status-warn-fg); }\n.ds-chip[data-tone=\"info\"] { background: var(--ds-color-status-info-bg); color: var(--ds-color-status-info-fg); }\n\n.ds-kpi { display: flex; flex-direction: column; gap: var(--ds-space-xs); height: 100%; justify-content: flex-start; }\n.ds-kpi-label { display: flex; align-items: center; gap: var(--ds-space-xs); font-size: var(--ds-type-label-size); color: var(--ds-color-text-subtle); }\n.ds-kpi-main { display: flex; align-items: baseline; gap: 8px; font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; margin-top: 2px; }\n.ds-kpi-value { font-family: var(--ds-type-kpi-family); font-size: var(--ds-type-kpi-size); font-weight: var(--ds-type-kpi-weight); line-height: var(--ds-type-kpi-line-height); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }\n.ds-kpi[data-size=\"hero\"] .ds-kpi-value { font-size: calc(var(--ds-type-kpi-size) * 1.45); }\n.ds-kpi-unit { font-size: var(--ds-type-caption-size); margin-left: 0; color: var(--ds-color-text-subtle); font-weight: 400; }\n.ds-kpi-empty { font-size: var(--ds-type-body-size); color: var(--ds-color-text-subtle); padding: 6px 0; }\n.ds-kpi-delta { font-size: var(--ds-type-label-size); font-weight: 600; }\n.ds-kpi-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-sm); font-size: var(--ds-type-label-size); color: var(--ds-color-text-subtle); min-height: 22px; }\n\n.ds-tiles { --ds-tiles-gap: var(--ds-space-md); gap: var(--ds-tiles-gap); grid-template-columns: repeat(auto-fit, minmax(max(var(--ds-tile-min, 128px), calc((100% - (var(--ds-tile-cols, 12) - 1) * var(--ds-tiles-gap)) / var(--ds-tile-cols, 12))), 1fr)); }\n.ds-tiles[data-stretch=\"off\"] { grid-template-columns: repeat(auto-fill, minmax(max(var(--ds-tile-min, 128px), calc((100% - (var(--ds-tile-cols, 12) - 1) * var(--ds-tiles-gap)) / var(--ds-tile-cols, 12))), 1fr)); }\n.ds-tiles { overflow-y: auto; scrollbar-width: thin; grid-auto-rows: max-content; padding: 5px; margin: -5px; }\n.ds-tiles > .ds-tile { min-height: max-content; }\n.ds-flow .ds-tiles { height: auto; overflow-y: visible; }\n/* Grid items with fit: the panel takes its natural height (at least the cell's), so the grid can measure it. */\n[data-fit] > .ds-fit { height: 100%; }\n.ds-grid-exact > .react-grid-item { padding-bottom: var(--ds-grid-gap); }\n.ds-fit > .ds-panel { height: auto !important; min-height: 100% !important; }\n/* While measuring, the panel takes only its content's height (no stretching), then goes back. */\n.ds-fit[data-measuring] > .ds-panel { min-height: 0 !important; }\n.ds-fit[data-measuring] .ds-panel-body, .ds-fit[data-measuring] .ds-panel-body > * { flex: none !important; height: auto !important; }\n/* The body still fills a taller card, so footers (a KPI's target chip) stay at the bottom. */\n[data-fit] .ds-panel-body { flex: 1 0 auto; display: flex; flex-direction: column; }\n[data-fit] .ds-panel-body > * { flex: 1 0 auto; }\n[data-fit] .ds-tiles, [data-fit] .ds-table-wrap { height: auto; max-height: none; overflow-y: visible; }\n/* In a fit card the rows set the height, unless the table has its own maxHeight. */\n[data-fit] .ds-table-scroll { flex: none; }\n[data-fit] .ds-table-scroll:not([data-max]) { max-height: none !important; overflow-y: visible; }\n.ds-tiles[data-wrap=\"off\"] { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(var(--ds-tile-min, 128px), 1fr); overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 4px; }\n.ds-tiles[data-wrap=\"off\"] > * { scroll-snap-align: start; }\n.ds-tile { min-width: 0; overflow-wrap: anywhere; }\n.ds-tile { display: flex; flex-direction: column; gap: 6px; padding: var(--ds-space-md) var(--ds-space-md) var(--ds-space-md); border: 1px solid var(--ds-color-border-default); border-radius: var(--ds-radius-control); background: var(--ds-color-surface-card); text-align: left; min-height: 0; transition: border-color 120ms, background 120ms; }\n.ds-tile[data-clickable]:hover { border-color: var(--ds-color-action-primary); }\n.ds-tile[data-active] { border-color: var(--ds-color-action-primary); background: var(--ds-color-surface-selection); box-shadow: none; }\n.ds-tile-main { display: flex; align-items: baseline; gap: var(--ds-space-xs); flex-wrap: wrap; }\n.ds-tile[data-active] .ds-tile-label { color: var(--ds-color-text-primary); font-weight: 600; }\n.ds-tile-label { font-size: var(--ds-type-label-size); color: var(--ds-color-text-subtle); text-transform: none; gap: 2px; }\n.ds-tile-value { font-family: var(--ds-type-kpi-family); font-size: 24px; line-height: 30px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ds-color-text-primary); }\n.ds-tile-caption { font-size: var(--ds-type-label-size); color: var(--ds-color-text-subtle); margin-top: auto; }\n\n.ds-chart { display: flex; flex-direction: column; height: 100%; }\n.ds-chart-legend { list-style: none; margin: -38px 0 14px auto; padding: 0; display: flex; gap: var(--ds-space-lg); font-size: var(--ds-type-label-size); color: var(--ds-color-text-subtle); position: relative; z-index: 1; max-width: 70%; flex-wrap: wrap; justify-content: flex-end; }\n.ds-panel-tools .ds-chart-legend { margin: 0; max-width: none; }\n.ds-chart-legend li { display: inline-flex; align-items: center; gap: 6px; }\n.ds-swatch { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }\n.ds-swatch-line { width: 16px; border-top: 2px dashed var(--ds-color-text-subtle); display: inline-block; }\n\n.ds-table th, .ds-table td { padding: 12px var(--ds-space-lg); border-bottom: 1px solid color-mix(in srgb, var(--ds-color-border-default) 60%, transparent); }\n.ds-table th { background: var(--ds-color-surface-table-header); color: var(--ds-color-text-secondary); font-size: var(--ds-type-label-size); font-weight: 600; letter-spacing: 0; text-transform: none; border-bottom: 0; }\n.ds-table td { font-size: var(--ds-type-label-size); color: var(--ds-color-text-secondary); vertical-align: middle; }\n.ds-table tbody tr:hover, .ds-table tbody tr:focus-visible { background: var(--ds-color-surface-selection); }\n.ds-table tbody tr[data-muted] td { color: var(--ds-color-text-disabled); }\n.ds-cell-empty { color: var(--ds-color-text-disabled); }\n.ds-table th button { font-weight: 600; }\n\n.ds-header { margin-bottom: var(--ds-space-md); }\n.ds-filters { background: var(--ds-color-surface-card); border-radius: var(--ds-radius-card); padding: var(--ds-space-md) var(--ds-space-lg); align-items: center; gap: var(--ds-space-md); }\n.ds-filters .ds-field { min-width: 0; grid-auto-flow: column; align-items: center; gap: var(--ds-space-xs); }\n.ds-filters .ds-field > span { font-size: var(--ds-type-label-size); }\n.ds-filters .ds-select, .ds-filters .ds-input { color: var(--ds-color-action-primary); border-color: var(--ds-color-border-default); background: var(--ds-color-surface-card); min-height: calc(var(--ds-control-height, 36px) - 2px); }\n.ds-filters .ds-btn { border-color: transparent; background: var(--ds-color-surface-selection); color: var(--ds-color-action-primary); }\n.ds-filters-icon { display: inline-grid; place-items: center; width: calc(var(--ds-control-height, 36px) - 2px); height: calc(var(--ds-control-height, 36px) - 2px); border-radius: var(--ds-radius-control); border: 1px solid var(--ds-color-border-default); color: var(--ds-filter-icon-color, var(--ds-color-text-subtle)); }\n.ds-meters .ds-progress, .ds-card .ds-progress { height: 8px; }\n.ds-badge-stale { border-radius: 6px; padding: 2px 8px; }\n\n/* ---- Motion (all off with prefers-reduced-motion) ---- */\n@keyframes ds-rise { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }\n@keyframes ds-fade { from { opacity: 0; } to { opacity: 1; } }\n@keyframes ds-grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }\n@keyframes ds-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ds-color-status-good-fg) 55%, transparent); } 70% { box-shadow: 0 0 0 6px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }\n@keyframes ds-pop { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }\n@keyframes ds-slide-in { from { transform: translateX(100%); } to { transform: none; } }\n@keyframes ds-row-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }\n\n.ds-panel { animation: ds-rise 520ms cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--ds-i, 0) * 45ms); transition: box-shadow 200ms ease, transform 200ms ease, outline-color 200ms ease; }\n.ds-panel-body > :not(.ds-skeleton):not(.ds-loading) { animation: ds-fade 360ms ease both; }\n.ds-filters, .ds-header { animation: ds-fade 400ms ease both; }\n.ds-tile { transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease; }\n.ds-tile[data-clickable]:hover { transform: translateY(-2px); box-shadow: 0 6px 16px color-mix(in srgb, var(--ds-color-action-primary) 10%, transparent); }\n.ds-tile:not([data-clickable]) { cursor: default; }\n.ds-tile:active { transform: translateY(0); }\n.ds-kpi-main { transition: opacity 160ms ease; }\n.ds-kpi-main[data-clickable]:hover .ds-kpi-value { color: var(--ds-color-action-primary); transition: color 160ms ease; }\n.ds-chip { animation: ds-fade 300ms ease both; transition: background 200ms ease, color 200ms ease; }\n.ds-progress > span { transform-origin: left; animation: ds-grow-x 800ms cubic-bezier(.2,.7,.2,1) both; transition: width 500ms cubic-bezier(.2,.7,.2,1); }\n.ds-segbar button { transform-origin: left; animation: ds-grow-x 700ms cubic-bezier(.2,.7,.2,1) both; }\n.ds-timeline-bar span { transform-origin: left; animation: ds-grow-x 700ms cubic-bezier(.2,.7,.2,1) both; }\n.ds-live > span { animation: ds-pulse 2s ease-out infinite; }\n.ds-table tbody tr { animation: ds-row-in 320ms ease both; transition: background 140ms ease; }\n.ds-table tbody tr:nth-child(1) { animation-delay: 20ms; } .ds-table tbody tr:nth-child(2) { animation-delay: 40ms; }\n.ds-table tbody tr:nth-child(3) { animation-delay: 60ms; } .ds-table tbody tr:nth-child(4) { animation-delay: 80ms; }\n.ds-table tbody tr:nth-child(5) { animation-delay: 100ms; } .ds-table tbody tr:nth-child(6) { animation-delay: 120ms; }\n.ds-table tbody tr:nth-child(7) { animation-delay: 140ms; } .ds-table tbody tr:nth-child(8) { animation-delay: 160ms; }\n.ds-table tbody tr:nth-child(9) { animation-delay: 180ms; } .ds-table tbody tr:nth-child(n+10) { animation-delay: 200ms; }\n.ds-stages li[data-state=\"current\"] .ds-stage-dot { animation: ds-pulse 2s ease-out infinite; }\n.ds-scrim { animation: ds-fade 200ms ease both; }\n.ds-dialog { animation: ds-pop 260ms cubic-bezier(.2,.7,.2,1) both; }\n.ds-scrim[data-presentation=\"drawer\"] .ds-dialog { animation: ds-slide-in 300ms cubic-bezier(.2,.7,.2,1) both; }\n.ds-select, .ds-input, .ds-btn, .ds-chip, .ds-link { transition: border-color 140ms ease, background 140ms ease, color 140ms ease, box-shadow 140ms ease; }\n.ds-select:hover, .ds-input:hover { border-color: var(--ds-color-action-primary); }\n.ds-grid-edit .react-grid-item > .ds-panel { animation: none; }\n@media (prefers-reduced-motion: reduce) {\n .ds-root *, .ds-root *::before, .ds-root *::after { animation: none !important; transition: none !important; }\n}\n\n/* ---- Filter controls (pills with the value in blue, popovers) ---- */\n.ds-filters { gap: var(--ds-space-sm); padding: 12px var(--ds-space-lg); }\n.ds-dd { position: relative; display: inline-flex; }\n.ds-pill-btn { display: inline-flex; align-items: center; gap: 8px; height: var(--ds-control-height, 36px); padding: 0 12px; border: 1px solid var(--ds-color-border-default); border-radius: var(--ds-radius-control); background: var(--ds-color-surface-card); color: var(--ds-color-text-primary); font: 400 var(--ds-control-font-size, 13px)/1 var(--ds-font-body); cursor: pointer; white-space: nowrap; transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease; }\n.ds-pill-btn:hover { border-color: var(--ds-color-action-primary); }\n.ds-pill-btn[aria-expanded=\"true\"] { border-color: var(--ds-color-action-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ds-color-action-primary) 14%, transparent); }\n.ds-pill-btn > svg:first-child { color: var(--ds-color-text-subtle); }\n.ds-pill-value { color: var(--ds-color-action-primary); font-weight: 500; }\n.ds-pill-value-only { color: var(--ds-control-value-color, var(--ds-color-action-primary)); font-weight: var(--ds-control-value-weight, 500); }\n.ds-pill-chev { color: var(--ds-color-text-subtle); margin-left: 2px; transition: transform 180ms ease; }\n.ds-pill-btn[aria-expanded=\"true\"] .ds-pill-chev { transform: rotate(180deg); color: var(--ds-color-action-primary); }\n\n.ds-pop { z-index: calc(var(--ds-z-overlay) + 10); max-width: min(92vw, 640px); background: var(--ds-color-surface-overlay); border: 1px solid color-mix(in srgb, var(--ds-color-border-default) 70%, transparent); border-radius: 12px; box-shadow: 0 14px 36px rgba(13,13,13,.16), 0 2px 6px rgba(13,13,13,.06); padding: 6px; animation: ds-pop-in 180ms cubic-bezier(.2,.7,.2,1) both; transform-origin: top left; }\n@keyframes ds-pop-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }\n.ds-menu { display: grid; gap: 2px; max-height: 300px; overflow: auto; outline: none; min-width: 200px; }\n.ds-menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ds-color-text-primary); font: 400 var(--ds-control-font-size, 13px)/18px var(--ds-font-body); text-align: left; cursor: pointer; transition: background 120ms ease, color 120ms ease; }\n.ds-menu-item:hover, .ds-menu-item:focus-visible { background: color-mix(in srgb, var(--ds-color-action-primary) 8%, transparent); outline: none; }\n.ds-menu-item[aria-selected=\"true\"], .ds-menu-item[aria-pressed=\"true\"] { color: var(--ds-color-action-primary); font-weight: 600; background: var(--ds-color-surface-selection); }\n.ds-menu-label { flex: 1; }\n.ds-menu-count { color: var(--ds-color-text-subtle); font-size: 12px; font-weight: 400; font-variant-numeric: tabular-nums; }\n.ds-menu-tick { color: var(--ds-color-action-primary); }\n.ds-menu-empty { padding: 10px; color: var(--ds-color-text-subtle); font-size: 12px; }\n.ds-check { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--ds-color-border-control); flex: none; display: grid; place-items: center; transition: background 120ms ease, border-color 120ms ease; }\n.ds-check[data-on] { background: var(--ds-color-action-primary); border-color: var(--ds-color-action-primary); }\n.ds-check[data-on]::after { content: \"\"; width: 8px; height: 4px; border: 2px solid var(--ds-color-action-on-primary); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }\n.ds-pop-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 6px 2px; margin-top: 4px; border-top: 1px solid color-mix(in srgb, var(--ds-color-border-default) 60%, transparent); font-size: 12px; color: var(--ds-color-text-subtle); }\n\n.ds-pop-wide { min-width: 0; }\n.ds-range { display: flex; gap: 6px; }\n.ds-range-presets { display: grid; gap: 2px; align-content: start; min-width: 210px; padding-right: 6px; border-right: 1px solid color-mix(in srgb, var(--ds-color-border-default) 60%, transparent); }\n.ds-cal { padding: 4px 6px; width: 280px; }\n.ds-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }\n.ds-cal-head strong { font: 600 13px/1 var(--ds-font-heading); }\n.ds-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px 0; }\n.ds-cal-wd { text-align: center; font-size: 11px; color: var(--ds-color-text-subtle); padding: 4px 0; }\n.ds-cal-day { height: 34px; border: 0; background: transparent; color: var(--ds-color-text-primary); font: 400 var(--ds-control-font-size, 13px)/1 var(--ds-font-body); cursor: pointer; border-radius: 8px; transition: background 120ms ease, color 120ms ease; font-variant-numeric: tabular-nums; }\n.ds-cal-day:hover:not(:disabled) { background: color-mix(in srgb, var(--ds-color-action-primary) 10%, transparent); }\n.ds-cal-day:disabled { color: var(--ds-color-text-disabled); cursor: default; }\n.ds-cal-day[data-in] { background: var(--ds-color-surface-selection); border-radius: 0; }\n.ds-cal-day[data-start], .ds-cal-day[data-end] { background: var(--ds-color-action-primary); color: var(--ds-color-action-on-primary); font-weight: 600; }\n.ds-cal-error { color: var(--ds-color-status-bad-fg); }\n.ds-apply { height: 30px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--ds-color-action-primary); color: var(--ds-color-action-on-primary); font: 600 12px/1 var(--ds-font-body); cursor: pointer; transition: background 140ms ease, opacity 140ms ease; }\n.ds-apply:hover:not(:disabled) { background: var(--ds-color-action-primary-hover); }\n.ds-apply:disabled { opacity: .4; cursor: default; }\n\n.ds-stepper { display: inline-flex; align-items: stretch; gap: 0; }\n.ds-stepper .ds-pill-btn { border-radius: 0; border-left: 0; border-right: 0; }\n/* Between the arrows the select is one piece of the group: no border or ring of its own (square corners would\n draw a box inside the rounded group); keyboard focus gets an inset ring instead. */\n.ds-stepper .ds-pill-btn, .ds-stepper .ds-pill-btn:hover, .ds-stepper .ds-pill-btn[aria-expanded=\"true\"] { border-color: transparent; box-shadow: none; }\n.ds-stepper .ds-pill-btn:focus { outline: none; }\n.ds-stepper .ds-pill-btn:focus-visible, .ds-stepper .ds-step:focus-visible { outline: 2px solid var(--ds-color-border-focus); outline-offset: -2px; }\n.ds-step { display: inline-grid; place-items: center; width: var(--ds-control-height, 36px); height: var(--ds-control-height, 36px); border: 1px solid transparent; background: var(--ds-color-surface-selection); color: var(--ds-color-action-primary); font-size: 16px; cursor: pointer; transition: background 140ms ease, opacity 140ms ease; }\n.ds-stepper > .ds-step:first-child { border-radius: var(--ds-radius-control) 0 0 var(--ds-radius-control); }\n.ds-stepper > .ds-step:last-child { border-radius: 0 var(--ds-radius-control) var(--ds-radius-control) 0; }\n.ds-step:hover:not(:disabled) { background: color-mix(in srgb, var(--ds-color-action-primary) 18%, var(--ds-color-surface-card)); }\n.ds-step:disabled { opacity: .4; cursor: default; }\n.ds-cal-head .ds-step { width: 30px; height: 30px; border-radius: 8px; background: transparent; }\n.ds-cal-head .ds-step:hover:not(:disabled) { background: var(--ds-color-surface-selection); }\n\n.ds-search { display: inline-flex; align-items: center; gap: 8px; height: var(--ds-control-height, 36px); padding: 0 12px; border: 1px solid var(--ds-color-border-default); border-radius: var(--ds-radius-control); background: var(--ds-color-surface-card); color: var(--ds-color-text-subtle); transition: border-color 140ms ease, box-shadow 140ms ease; min-width: 200px; }\n.ds-search:focus-within { border-color: var(--ds-color-action-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ds-color-action-primary) 14%, transparent); }\n.ds-search input { border: 0; outline: none; background: transparent; font: 400 var(--ds-control-font-size, 13px)/1 var(--ds-font-body); color: var(--ds-color-text-primary); width: 100%; }\n.ds-switch { display: inline-flex; align-items: center; gap: 8px; font-size: var(--ds-control-font-size, 13px); cursor: pointer; }\n.ds-switch input { position: absolute; opacity: 0; width: 0; height: 0; }\n.ds-switch span { width: 34px; height: 20px; border-radius: 999px; background: var(--ds-color-border-control); position: relative; transition: background 160ms ease; }\n.ds-switch span::after { content: \"\"; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform 180ms cubic-bezier(.2,.7,.2,1); }\n.ds-switch input:checked + span { background: var(--ds-color-action-primary); }\n.ds-switch input:checked + span::after { transform: translateX(14px); }\n.ds-switch input:focus-visible + span { box-shadow: 0 0 0 3px color-mix(in srgb, var(--ds-color-action-primary) 25%, transparent); }\n.ds-chip-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--ds-color-border-default); border-radius: 999px; background: var(--ds-color-surface-card); color: var(--ds-color-text-secondary); font: 400 var(--ds-control-font-size, 13px)/1 var(--ds-font-body); cursor: pointer; transition: all 140ms ease; }\n.ds-chip-btn:hover { border-color: var(--ds-color-action-primary); }\n.ds-chip-btn[aria-pressed=\"true\"] { background: var(--ds-color-surface-selection); border-color: var(--ds-color-action-primary); color: var(--ds-color-action-primary); font-weight: 600; }\n.ds-panel-tools .ds-pill-btn { height: 30px; font-size: 12px; }\n\n/* ---- Builder editing: resize from every corner and edge; widgets are inert so a click selects ---- */\n.ds-grid-edit .react-grid-item > .react-resizable-handle { display: block; position: absolute; z-index: 3; opacity: 0; transition: opacity 140ms ease; }\n.ds-grid-edit .react-grid-item:hover > .react-resizable-handle, .ds-grid-edit .react-grid-item:has(.ds-panel[data-selected=\"true\"]) > .react-resizable-handle { opacity: 1; }\n.ds-grid-edit .react-grid-item > .react-resizable-handle::after { content: \"\"; position: absolute; inset: 0; margin: auto; width: 10px; height: 10px; border: 2px solid var(--ds-color-action-primary); background: var(--ds-color-surface-card); border-radius: 3px; box-shadow: 0 1px 3px rgba(13,13,13,.2); transform: none; right: auto; bottom: auto; }\n.ds-grid-edit .react-resizable-handle-se, .ds-grid-edit .react-resizable-handle-sw, .ds-grid-edit .react-resizable-handle-ne, .ds-grid-edit .react-resizable-handle-nw { width: 18px; height: 18px; }\n.ds-grid-edit .react-resizable-handle-se { right: -7px; bottom: -7px; cursor: nwse-resize; }\n.ds-grid-edit .react-resizable-handle-nw { left: -7px; top: -7px; cursor: nwse-resize; }\n.ds-grid-edit .react-resizable-handle-ne { right: -7px; top: -7px; cursor: nesw-resize; }\n.ds-grid-edit .react-resizable-handle-sw { left: -7px; bottom: -7px; cursor: nesw-resize; }\n.ds-grid-edit .react-resizable-handle-e, .ds-grid-edit .react-resizable-handle-w { top: 50%; width: 14px; height: 28px; margin-top: -14px; cursor: ew-resize; }\n.ds-grid-edit .react-resizable-handle-e { right: -6px; } .ds-grid-edit .react-resizable-handle-w { left: -6px; }\n.ds-grid-edit .react-resizable-handle-n, .ds-grid-edit .react-resizable-handle-s { left: 50%; width: 28px; height: 14px; margin-left: -14px; cursor: ns-resize; }\n.ds-grid-edit .react-resizable-handle-n { top: -6px; } .ds-grid-edit .react-resizable-handle-s { bottom: -6px; }\n.ds-grid-edit .react-resizable-handle-e::after, .ds-grid-edit .react-resizable-handle-w::after { width: 6px; height: 20px; }\n.ds-grid-edit .react-resizable-handle-n::after, .ds-grid-edit .react-resizable-handle-s::after { width: 20px; height: 6px; }\n.ds-grid-edit .react-grid-item.resizing { z-index: 4; }\n.ds-grid-edit .ds-panel-body { user-select: none; }\n.ds-grid-edit .ds-panel [data-ds-part], .ds-grid-edit .ds-panel :is(.ds-panel-title, .ds-kpi-label, .ds-panel-meta, .ds-kpi-main, .ds-kpi-foot, .ds-kpi-sub, .ds-tile, .ds-meters > *, .ds-status, .ds-table-tools, .ds-pager) { cursor: pointer; border-radius: 6px; outline: 1.5px dashed transparent; outline-offset: 2px; transition: outline-color 120ms; }\n.ds-grid-edit .ds-panel[data-selected] :is([data-ds-part], .ds-panel-title, .ds-kpi-label, .ds-panel-meta, .ds-kpi-main, .ds-kpi-foot, .ds-kpi-sub, .ds-tile, .ds-meters > *, .ds-status, .ds-table-tools, .ds-pager):hover { outline-color: color-mix(in srgb, var(--ds-color-action-primary) 55%, transparent); }\n.ds-grid-edit .ds-part-selected, .ds-grid-edit .ds-panel .ds-part-selected { outline: 2px solid var(--ds-color-action-primary) !important; outline-offset: 2px; }\n.ds-grid-edit .ds-panel { user-select: none; }\n\n/* Narrow cards scale their type down instead of overflowing. */\n.ds-panel-body { container-type: inline-size; }\n@container (max-width: 190px) {\n .ds-kpi-value { font-size: calc(var(--ds-type-kpi-size) * .78); line-height: 1.15; }\n .ds-kpi-foot { flex-wrap: wrap; gap: 4px; }\n .ds-tile-value { font-size: 20px; line-height: 24px; }\n}\n@container (max-width: 140px) {\n .ds-kpi-value { font-size: calc(var(--ds-type-kpi-size) * .64); }\n .ds-kpi-unit { display: none; }\n}\n\n/* Dropdown variants */\n.ds-dd[data-block] { display: flex; width: 100%; }\n.ds-dd[data-block] .ds-pill-btn { width: 100%; justify-content: space-between; }\n.ds-dd[data-block] .ds-pill-btn > span { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; }\n.ds-dd[data-plain] .ds-pill-value { color: var(--ds-color-text-primary); font-weight: 400; }\n.ds-dd[data-size=\"sm\"] .ds-pill-btn { height: 30px; padding: 0 8px; font-size: 12px; gap: 4px; }\n\n/* Table tools, filters, pager */\n.ds-table-tools { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }\n.ds-table-tools .ds-search { flex: 1; max-width: 320px; }\n.ds-table-count { margin-left: auto; font-size: 12px; color: var(--ds-color-text-subtle); }\n.ds-table-scroll { position: relative; }\n.ds-table-busy { position: sticky; top: 0; left: 0; height: 2px; margin-bottom: -2px; z-index: 3; overflow: hidden; background: color-mix(in srgb, var(--ds-color-action-primary) 15%, transparent); }\n.ds-table-busy::after { content: \"\"; position: absolute; inset: 0; width: 40%; background: var(--ds-color-action-primary); animation: ds-busy 1s ease-in-out infinite; }\n@keyframes ds-busy { from { transform: translateX(-100%); } to { transform: translateX(260%); } }\n.ds-table[aria-busy=\"true\"] tbody { opacity: .55; transition: opacity 160ms ease; }\n.ds-filter-row th { background: var(--ds-color-surface-card); padding: 6px 8px; border-bottom: 1px solid color-mix(in srgb, var(--ds-color-border-default) 60%, transparent); }\n.ds-cell-filter { width: 100%; height: 30px; padding: 0 8px; border: 1px solid var(--ds-color-border-default); border-radius: 6px; background: var(--ds-color-surface-card); font: 400 12px/1 var(--ds-font-body); color: var(--ds-color-text-primary); outline: none; transition: border-color 140ms ease, box-shadow 140ms ease; }\n.ds-cell-filter:focus { border-color: var(--ds-color-action-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ds-color-action-primary) 14%, transparent); }\n.ds-sort { display: inline-flex; flex-direction: column; gap: 1px; margin-left: 6px; vertical-align: middle; }\n.ds-sort::before, .ds-sort::after { content: \"\"; width: 0; height: 0; border-left: 3.5px solid transparent; border-right: 3.5px solid transparent; opacity: .3; transition: opacity 140ms ease; }\n.ds-sort::before { border-bottom: 4px solid currentColor; }\n.ds-sort::after { border-top: 4px solid currentColor; }\n.ds-sort[data-dir=\"asc\"]::before, .ds-sort[data-dir=\"desc\"]::after { opacity: 1; border-bottom-color: var(--ds-color-action-primary); border-top-color: var(--ds-color-action-primary); }\n.ds-table th button:hover .ds-sort::before, .ds-table th button:hover .ds-sort::after { opacity: .7; }\n.ds-pager { display: flex; justify-content: flex-end; align-items: center; gap: 16px; padding-top: 10px; font-size: 12px; color: var(--ds-color-text-subtle); flex-wrap: wrap; }\n.ds-pager-size { display: inline-flex; align-items: center; gap: 8px; margin-right: auto; }\n.ds-pages { display: inline-flex; align-items: center; gap: 2px; }\n.ds-pages button { min-width: 30px; height: 30px; padding: 0 6px; border: 0; border-radius: 6px; background: transparent; color: var(--ds-color-text-secondary); font: 500 12px/1 var(--ds-font-body); cursor: pointer; transition: background 140ms ease, color 140ms ease; }\n.ds-pages button:hover:not(:disabled) { background: var(--ds-color-surface-selection); }\n.ds-pages button[aria-current=\"page\"] { background: var(--ds-color-action-primary); color: var(--ds-color-action-on-primary); }\n.ds-pages button:disabled { opacity: .35; cursor: default; }\n.ds-page-gap { padding: 0 4px; }\n\n/* Container: a flex layout of panels */\n.ds-container { height: 100%; min-height: 0; }\n.ds-container > .ds-panel { flex: var(--ds-child-flex, 1 1 160px); min-width: var(--ds-child-min, 0); height: auto; }\n.ds-container[data-direction=\"column\"] > .ds-panel { min-height: 0; }\n.ds-container-empty { display: grid; place-items: center; height: 100%; min-height: 80px; border: 1.5px dashed var(--ds-color-border-default); border-radius: var(--ds-radius-card); color: var(--ds-color-text-subtle); font-size: 12px; }\n.ds-panel:has(> .ds-panel-body > .ds-container) { overflow: visible; }\n.ds-grid-edit .ds-panel-body:has(> .ds-container) { pointer-events: auto; }\n.ds-grid-edit .ds-container > .ds-panel { cursor: pointer; }\n\n.ds-filters-spacer { flex: 1; }\n.ds-tour-btn { margin-left: auto; align-self: center; height: calc(var(--ds-control-height, 36px) - 6px); padding: 0 var(--ds-space-md); border: 1px solid var(--ds-color-border-default); border-radius: var(--ds-radius-full); background: var(--ds-color-surface-card); color: var(--ds-color-action-primary); font: 600 var(--ds-type-label-size)/1 var(--ds-font-body); cursor: pointer; }\n.ds-synced + .ds-tour-btn { margin-left: 0; }\n.ds-tour-btn:focus-visible, .ds-tour button:focus-visible, .ds-tour:focus-visible, .ds-filters-toggle:focus-visible, .ds-filter-panel button:focus-visible { outline: 2px solid var(--ds-color-border-focus); outline-offset: 1px; }\n.ds-root [data-tour-active] { outline: 3px solid var(--ds-color-border-focus); outline-offset: 3px; position: relative; z-index: var(--ds-z-raised); }\n.ds-tour { position: fixed; right: auto; bottom: auto; margin: 0; z-index: calc(var(--ds-z-overlay) + 5); width: min(92vw, 340px); background: var(--ds-color-surface-overlay); color: var(--ds-color-text-primary); border: 1px solid var(--ds-color-border-default); border-radius: var(--ds-radius-card); box-shadow: var(--ds-shadow-overlay); padding: var(--ds-space-md); animation: ds-pop-in 180ms cubic-bezier(.2,.7,.2,1) both; }\n.ds-tour-head { display: flex; align-items: baseline; gap: var(--ds-space-sm); }\n.ds-tour-title { margin: 0; font-family: var(--ds-type-heading-family); font-size: var(--ds-type-heading-size); font-weight: var(--ds-type-heading-weight); }\n.ds-tour-count { margin-left: auto; font-size: var(--ds-type-caption-size); color: var(--ds-color-text-subtle); font-variant-numeric: tabular-nums; }\n.ds-tour-text { margin: var(--ds-space-sm) 0 var(--ds-space-md); color: var(--ds-color-text-secondary); }\n.ds-tour-foot { display: flex; align-items: center; gap: var(--ds-space-xs); }\n.ds-tour-skip { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; color: var(--ds-color-text-subtle); text-decoration: underline; text-underline-offset: 2px; }\n.ds-filter-drawer { position: relative; display: flex; margin-bottom: var(--ds-space-lg); }\n.ds-filters-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 var(--ds-space-xs); border-radius: var(--ds-radius-full); background: var(--ds-color-action-primary); color: var(--ds-color-action-on-primary); font-size: var(--ds-type-caption-size); font-weight: 600; }\n.ds-filter-panel { position: absolute; top: calc(100% + var(--ds-space-xs)); left: 0; right: auto; margin: 0; color: var(--ds-color-text-primary); z-index: var(--ds-z-overlay); width: min(92vw, 420px); max-height: 70vh; overflow: auto; background: var(--ds-color-surface-overlay); border: 1px solid var(--ds-color-border-default); border-radius: var(--ds-radius-card); box-shadow: var(--ds-shadow-overlay); padding: var(--ds-space-md); animation: ds-pop-in 180ms cubic-bezier(.2,.7,.2,1) both; }\n.ds-filter-panel:focus-visible { outline: 2px solid var(--ds-color-border-focus); }\n.ds-filter-panel-head { display: flex; align-items: center; margin-bottom: var(--ds-space-sm); font-weight: var(--ds-type-heading-weight); }\n.ds-filter-panel .ds-filters { flex-direction: column; align-items: stretch; margin: 0; padding: 0; background: transparent; box-shadow: none; animation: none; }\n.ds-filter-panel .ds-filters-spacer { display: none; }\n.ds-filter-apply, .ds-filter-reset { height: var(--ds-control-height, 36px); padding: 0 16px; border-radius: var(--ds-radius-control); font: 600 var(--ds-control-font-size, 13px)/1 var(--ds-font-body); cursor: pointer; transition: background 140ms ease, color 140ms ease, opacity 140ms ease, border-color 140ms ease; }\n.ds-filter-apply { border: 0; background: var(--ds-color-action-primary); color: var(--ds-color-action-on-primary); }\n.ds-filter-apply:hover:not(:disabled) { background: var(--ds-color-action-primary-hover); }\n.ds-filter-reset { border: 1px solid var(--ds-color-border-default); background: var(--ds-color-surface-card); color: var(--ds-color-text-secondary); }\n.ds-filter-reset:hover:not(:disabled) { border-color: var(--ds-color-action-primary); color: var(--ds-color-action-primary); }\n.ds-filter-apply:disabled, .ds-filter-reset:disabled { opacity: .4; cursor: default; }\n/* Flow layout (phones by default): panels wrap like a flex container and grow to fit their content */\n.ds-flow { display: flex; flex-wrap: wrap; align-items: stretch; }\n.ds-flow-item { display: flex; flex-direction: column; min-width: 0; animation: ds-rise 420ms cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--ds-i, 0) * 35ms); }\n.ds-flow-item > * { flex: 1 1 auto !important; min-height: 0; min-width: 0 !important; max-width: none !important; align-self: stretch !important; }\n/* Filter widget: one filter on the canvas */\n.ds-filter-widget { display: flex; align-items: center; min-height: 100%; }\n.ds-filter-widget[data-fill] > * { flex: 1; }\n.ds-filter-widget[data-fill] .ds-dd, .ds-filter-widget[data-fill] .ds-dd > button { width: 100%; }\n.ds-filter-missing { display: grid; place-items: center; height: 100%; min-height: 36px; border: 1.5px dashed var(--ds-color-border-control); border-radius: var(--ds-radius-control); color: var(--ds-color-text-subtle); font-size: var(--ds-type-label-size); }\n.ds-container .ds-filter-widget { min-height: 0; }\n.ds-filter-pick { border-radius: var(--ds-radius-control); cursor: pointer; outline: 2px solid transparent; outline-offset: 2px; transition: outline-color 120ms; }\n.ds-filter-pick:hover { outline-color: color-mix(in srgb, var(--ds-color-action-primary) 45%, transparent); }\n.ds-filter-pick[data-selected] { outline-color: var(--ds-color-action-primary); }\n.ds-filter-pick * { pointer-events: none; }\n.ds-filters[data-look=\"plain\"] { background: transparent; padding-left: 0; padding-right: 0; box-shadow: none; }\n/* look \"segmented\": the icon and the filters share one sunken track; each filter is a borderless chip on the card\n colour, with no leading icon; the page stepper's arrows use the selection colour. */\n.ds-filters-track { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 2px; border-radius: var(--ds-radius-control); background: var(--ds-color-surface-sunken); }\n.ds-filters[data-look=\"segmented\"] .ds-filters-icon { border: 0; width: auto; padding: 0 var(--ds-space-sm); }\n.ds-filters-icon svg { width: var(--ds-filter-icon-size, 18px); height: var(--ds-filter-icon-size, 18px); }\n.ds-filters[data-look=\"segmented\"] .ds-pill-btn { border: 0; border-radius: calc(var(--ds-radius-control) / 2); background: var(--ds-color-surface-card); box-shadow: none; padding: 0 var(--ds-space-sm); font-family: var(--ds-font-heading); gap: var(--ds-space-xs); }\n.ds-filters[data-look=\"segmented\"] .ds-pill-btn > svg:first-child:not(:last-child) { display: none; }\n.ds-filters[data-look=\"segmented\"] .ds-stepper { gap: 2px; }\n.ds-filters[data-look=\"segmented\"] .ds-step { border: 0; border-radius: calc(var(--ds-radius-control) / 2); background: var(--ds-control-step-bg, var(--ds-color-surface-selection)); width: 32px; }\n.ds-filters[data-editable] { cursor: pointer; outline: 1.5px dashed transparent; outline-offset: 2px; transition: outline-color 120ms; }\n.ds-filters[data-editable]:hover { outline-color: color-mix(in srgb, var(--ds-color-action-primary) 45%, transparent); }\n.ds-filters[data-picked] { outline: 2px solid var(--ds-color-action-primary) !important; }\n/* Small elements in a widget's header, and drag and drop in the Builder */\n.ds-panel-addons { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }\n.ds-panel-addons > .ds-panel { padding: 0; background: none; box-shadow: none; border: 0; min-height: 0; height: auto; }\n.ds-panel-addons > .ds-panel > .ds-panel-head { display: none; }\n.ds-panel-addons .ds-panel-body { container-type: normal; flex: none; }\n.ds-panel-addons .ds-status { padding: 0; }\n.ds-panel[data-nested][draggable=\"true\"] { cursor: grab; }\n.ds-panel[data-drop-over] { outline: 2px dashed var(--ds-color-action-primary) !important; outline-offset: 3px; background-color: color-mix(in srgb, var(--ds-color-action-primary) 6%, var(--ds-color-surface-card)); }\n.ds-panel[data-tone=\"plain\"] { min-height: 0; }\n/* Atoms: the pieces of a hand-built card */\n.ds-atom-text { display: block; line-height: 1.35; font-size: var(--ds-type-body-size); }\n.ds-atom-text[data-size=\"xs\"] { font-size: 11px; } .ds-atom-text[data-size=\"sm\"] { font-size: var(--ds-type-label-size); }\n.ds-atom-text[data-size=\"lg\"] { font-size: 18px; font-family: var(--ds-font-heading); } .ds-atom-text[data-size=\"xl\"] { font-size: 24px; font-family: var(--ds-font-heading); }\n.ds-atom-text[data-weight=\"medium\"] { font-weight: 500; } .ds-atom-text[data-weight=\"bold\"] { font-weight: 700; }\n.ds-atom-value { display: inline-flex; align-items: baseline; gap: 6px; font-family: var(--ds-font-heading); font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--ds-color-text-primary); }\n.ds-atom-value small { font-family: var(--ds-font-body); font-size: var(--ds-type-label-size); font-weight: 400; color: var(--ds-color-text-subtle); }\n.ds-atom-value[data-size=\"xs\"] { font-size: 14px; } .ds-atom-value[data-size=\"sm\"] { font-size: 18px; } .ds-atom-value[data-size=\"md\"] { font-size: 24px; } .ds-atom-value[data-size=\"lg\"] { font-size: 30px; } .ds-atom-value[data-size=\"xl\"] { font-size: 40px; }\n.ds-atom-progress { display: flex; align-items: center; gap: 8px; }\n.ds-atom-progress > span { flex: 1; border-radius: 999px; background: var(--ds-color-surface-sunken); overflow: hidden; }\n.ds-atom-progress > span > span { display: block; height: 100%; border-radius: inherit; transition: width 600ms cubic-bezier(.2,.7,.2,1); }\n.ds-atom-progress small { font-size: var(--ds-type-label-size); color: var(--ds-color-text-subtle); font-variant-numeric: tabular-nums; }\n.ds-atom-icon { display: inline-grid; place-items: center; border-radius: 999px; }\n.ds-atom-divider { border: 0; border-top: 1px solid var(--ds-color-border-default); margin: 4px 0; width: 100%; }\n.ds-atom-divider[data-dashed] { border-top-style: dashed; }\n.ds-atom-divider[data-dir=\"vertical\"] { border-top: 0; border-left: 1px solid var(--ds-color-border-default); width: 0; height: 100%; margin: 0 4px; }\n.ds-container > .ds-panel[data-tone=\"plain\"] { padding: 0; }\n/* Card-less pieces (atoms, badges, filters) size to their content */\n.ds-panel[data-tone=\"plain\"] > .ds-panel-body { container-type: normal; }\n/* Slots: nodes inside nodes */\n.ds-slot { min-width: 0; }\n.ds-pager[data-layout=\"simple\"] { display: flex; align-items: center; justify-content: flex-end; gap: var(--ds-space-sm); flex-wrap: wrap; color: var(--ds-color-text-subtle); font-size: var(--ds-type-label-size); }\n.ds-pager[data-layout=\"simple\"] .ds-pager-range { margin-right: var(--ds-space-xs); }\n.ds-slot[data-slot=\"toolbar\"] { display: flex; flex-wrap: wrap; gap: var(--ds-space-sm); align-items: center; margin-bottom: var(--ds-space-sm); }\n.ds-button { display: inline-flex; align-items: center; justify-content: center; gap: var(--ds-space-xs); height: var(--ds-control-height, 36px); padding: 0 var(--ds-space-md); border: 1px solid var(--ds-color-border-default); border-radius: var(--ds-radius-control); background: var(--ds-color-surface-card); color: var(--ds-color-text-primary); font: 500 var(--ds-type-label-size)/1 var(--ds-font-body); cursor: pointer; white-space: nowrap; transition: background 140ms ease, border-color 140ms ease, opacity 140ms ease; }\n.ds-button[data-size=\"sm\"] { height: calc(var(--ds-control-height, 36px) - 8px); padding: 0 var(--ds-space-sm); }\n.ds-button[data-icon-only] { padding: 0; width: var(--ds-control-height, 36px); }\n.ds-button[data-icon-only][data-size=\"sm\"] { width: calc(var(--ds-control-height, 36px) - 8px); }\n.ds-button[data-variant=\"primary\"] { background: var(--ds-color-action-primary); border-color: var(--ds-color-action-primary); color: var(--ds-color-action-on-primary); }\n.ds-button[data-variant=\"subtle\"] { background: var(--ds-color-surface-selection); border-color: transparent; color: var(--ds-color-action-primary); }\n.ds-button[data-variant=\"link\"] { background: none; border-color: transparent; color: var(--ds-color-action-primary); padding: 0; height: auto; }\n.ds-button:hover:not(:disabled) { border-color: var(--ds-color-action-primary); }\n.ds-button[data-variant=\"link\"]:hover:not(:disabled) { text-decoration: underline; }\n.ds-button:disabled { opacity: .4; cursor: default; }\n.ds-button:focus-visible { outline: 2px solid var(--ds-color-border-focus); outline-offset: 1px; }\n.ds-slot[data-slot=\"footer\"] { margin-top: var(--ds-space-sm); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }\n.ds-slot[data-empty] { display: grid; place-items: center; min-height: 44px; border: 1.5px dashed var(--ds-color-border-control); border-radius: var(--ds-radius-control); color: var(--ds-color-text-subtle); font-size: var(--ds-type-label-size); padding: 8px; }\n.ds-slot-hint { pointer-events: none; }\n.ds-panel[data-drop-over] [data-slot][data-empty] { border-color: var(--ds-color-action-primary); color: var(--ds-color-action-primary); background: color-mix(in srgb, var(--ds-color-action-primary) 6%, transparent); }\n.ds-card-body { min-height: 0; }\n.ds-card-body > .ds-panel { flex: none; }\n.ds-tabs { display: flex; flex-direction: column; gap: var(--ds-space-sm); height: 100%; }\n.ds-tabs-bar { display: flex; gap: 2px; border-bottom: 1px solid var(--ds-color-border-default); }\n.ds-tabs-bar button { border: 0; background: none; padding: 8px 12px; font: inherit; font-size: var(--ds-type-label-size); color: var(--ds-color-text-subtle); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }\n.ds-tabs-bar button[aria-selected=\"true\"] { color: var(--ds-color-action-primary); border-bottom-color: var(--ds-color-action-primary); font-weight: 600; }\n.ds-tabs-panel { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: var(--ds-space-sm); overflow: auto; }\n.ds-repeater { height: 100%; overflow: auto; }\n.ds-repeater-item { display: flex; flex-direction: column; gap: 8px; }\n.ds-repeater-item > .ds-panel { height: auto; }\n";
1509
+ declare const RENDERER_CSS = "\n.ds-root { box-sizing: border-box; font-size: var(--ds-type-body-size); line-height: var(--ds-type-body-line-height); }\n.ds-root *, .ds-root *::before, .ds-root *::after { box-sizing: inherit; }\n.ds-header { display: flex; align-items: baseline; gap: var(--ds-space-md); flex-wrap: wrap; margin-bottom: var(--ds-space-md); }\n.ds-title { margin: 0; font-family: var(--ds-type-title-family); font-size: var(--ds-type-title-size); font-weight: var(--ds-type-title-weight); line-height: var(--ds-type-title-line-height); }\n.ds-desc { color: var(--ds-color-text-subtle); margin: 0; }\n.ds-synced { margin-left: auto; color: var(--ds-color-text-subtle); font-size: var(--ds-type-caption-size); }\n\n.ds-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--ds-space-sm) var(--ds-space-md); margin-bottom: var(--ds-space-lg); }\n.ds-field { display: grid; gap: var(--ds-space-xxs); min-width: 140px; }\n.ds-field > span { font-size: var(--ds-type-label-size); font-weight: var(--ds-type-label-weight); letter-spacing: var(--ds-type-label-letter-spacing); color: var(--ds-color-text-subtle); }\n.ds-input, .ds-select, .ds-btn {\n font: inherit; color: var(--ds-color-text-primary); background: var(--ds-color-surface-card);\n border: 1px solid var(--ds-color-border-control); border-radius: var(--ds-radius-control);\n padding: var(--ds-space-xs) var(--ds-space-sm); min-height: calc(var(--ds-control-height, 36px) - 2px);\n}\n.ds-input:focus-visible, .ds-select:focus-visible, .ds-btn:focus-visible, .ds-chip:focus-visible, .ds-panel:focus-visible { outline: 2px solid var(--ds-color-border-focus); outline-offset: 1px; }\n.ds-btn { cursor: pointer; }\n.ds-btn-primary { background: var(--ds-color-action-primary); color: var(--ds-color-action-on-primary); border-color: transparent; }\n.ds-btn-primary:hover { background: var(--ds-color-action-primary-hover); }\n.ds-inline { display: flex; gap: var(--ds-space-xs); align-items: center; }\n.ds-chips { display: flex; gap: var(--ds-space-xs); flex-wrap: wrap; }\n.ds-chip {\n font: inherit; font-size: var(--ds-type-label-size); cursor: pointer; border-radius: var(--ds-radius-full);\n padding: var(--ds-space-xxs) var(--ds-space-sm); border: 1px solid var(--ds-color-border-default);\n background: var(--ds-color-surface-card); color: var(--ds-color-text-secondary);\n}\n.ds-chip[aria-pressed=\"true\"] { background: var(--ds-color-surface-selection); border-color: var(--ds-color-border-focus); color: var(--ds-color-text-primary); }\n.ds-chip-count { margin-left: var(--ds-space-xxs); color: var(--ds-color-text-subtle); }\n\n.ds-panel {\n height: 100%; display: flex; flex-direction: column; overflow: hidden;\n background: var(--ds-color-surface-card); border-radius: var(--ds-radius-card); box-shadow: var(--ds-shadow-raised);\n padding: var(--ds-space-md) var(--ds-space-lg);\n}\n.ds-panel[data-tone=\"plain\"] { background: transparent; box-shadow: none; padding: 0; overflow: visible; }\n/* A plain panel has no card of its own, so it doesn't clip: borders, rounded ends and dots at its edge stay whole. */\n.ds-panel[data-tone=\"plain\"] > .ds-panel-body { overflow: visible; }\n.ds-panel[data-tone=\"subtle\"] { background: var(--ds-color-surface-sunken); box-shadow: none; }\n.ds-panel[data-selected=\"true\"] { outline: 2px solid var(--ds-color-border-focus); }\n.ds-panel-head { display: flex; align-items: center; gap: var(--ds-space-sm); min-height: 24px; margin-bottom: var(--ds-space-sm); }\n.ds-panel-title { margin: 0; font-family: var(--ds-type-heading-family); font-size: var(--ds-type-heading-size); font-weight: var(--ds-type-heading-weight); line-height: var(--ds-type-heading-line-height); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ds-panel-sub { color: var(--ds-color-text-subtle); font-size: var(--ds-type-caption-size); }\n.ds-panel-tools { margin-left: auto; display: flex; gap: var(--ds-space-xs); align-items: center; }\n.ds-panel-body { flex: 1; min-height: 0; position: relative; }\n.ds-badge { font-size: var(--ds-type-caption-size); border-radius: var(--ds-radius-full); padding: 0 var(--ds-space-xs); }\n.ds-badge-stale { background: var(--ds-color-status-warn-bg); color: var(--ds-color-status-warn-fg); }\n.ds-crumbs { display: flex; gap: var(--ds-space-xxs); font-size: var(--ds-type-caption-size); color: var(--ds-color-text-subtle); }\n.ds-crumbs button { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; color: var(--ds-color-action-primary); }\n.ds-state { height: 100%; display: grid; place-items: center; text-align: center; color: var(--ds-color-text-subtle); padding: var(--ds-space-sm); }\n.ds-state-error { color: var(--ds-color-status-bad-fg); }\n.ds-skeleton { height: 100%; border-radius: var(--ds-radius-control); background: linear-gradient(90deg, var(--ds-color-surface-sunken) 25%, var(--ds-color-surface-page) 50%, var(--ds-color-surface-sunken) 75%); background-size: 200% 100%; animation: ds-shimmer 1.4s infinite linear; opacity: .6; }\n.ds-loading { display: block; position: relative; height: 100%; }\n.ds-loading-text { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: var(--ds-space-sm); color: var(--ds-color-text-secondary); font-size: var(--ds-type-label-size); }\n@keyframes ds-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }\n@media (prefers-reduced-motion: reduce) { .ds-skeleton { animation: none; } .ds-root .react-grid-item { transition: none !important; } }\n\n.ds-scrim { position: fixed; inset: 0; background: var(--ds-color-surface-scrim); z-index: var(--ds-z-overlay); display: flex; align-items: center; justify-content: center; padding: var(--ds-space-xl); }\n.ds-scrim[data-presentation=\"drawer\"] { justify-content: flex-end; padding: 0; }\n.ds-dialog { position: static; margin: 0; border: 0; inset: auto; background: var(--ds-color-surface-page); color: var(--ds-color-text-primary); border-radius: var(--ds-radius-sheet); box-shadow: var(--ds-shadow-overlay); width: min(100%, var(--ds-dialog-w)); max-height: 100%; overflow: auto; padding: var(--ds-space-lg); }\n.ds-scrim[data-presentation=\"drawer\"] .ds-dialog { height: 100%; border-radius: 0; }\n.ds-dialog-head { display: flex; align-items: center; gap: var(--ds-space-md); margin-bottom: var(--ds-space-md); }\n.ds-dialog-head h2 { margin: 0; font-family: var(--ds-type-title-family); font-size: var(--ds-type-title-size); font-weight: var(--ds-type-title-weight); }\n.ds-close { margin-left: auto; font-size: 20px; line-height: 1; background: none; border: 0; cursor: pointer; color: var(--ds-color-text-secondary); }\n\n.ds-invalid { border: 1px solid var(--ds-color-status-bad-border); background: var(--ds-color-status-bad-bg); color: var(--ds-color-status-bad-fg); border-radius: var(--ds-radius-card); padding: var(--ds-space-lg); }\n.ds-invalid ul { margin: var(--ds-space-sm) 0 0; padding-left: var(--ds-space-lg); }\n.ds-invalid code { font-size: 12px; }\n\n.ds-root .react-grid-layout { position: relative; }\n.ds-root .react-grid-item { transition: transform 200ms ease; }\n.ds-root .react-grid-item.react-grid-placeholder { background: var(--ds-color-surface-selection); border-radius: var(--ds-radius-card); opacity: .6; }\n.ds-root .react-grid-item > .react-resizable-handle { display: none; }\n.ds-grid-edit .react-grid-item > .react-resizable-handle { display: block; position: absolute; width: 14px; height: 14px; right: 2px; bottom: 2px; cursor: se-resize; }\n.ds-grid-edit .react-grid-item > .react-resizable-handle::after { content: \"\"; position: absolute; right: 3px; bottom: 3px; width: 6px; height: 6px; border-right: 2px solid var(--ds-color-border-control); border-bottom: 2px solid var(--ds-color-border-control); }\n\n/* widgets */\n.ds-plain, .ds-kpi, .ds-tile, .ds-status, .ds-card, .ds-meters button, .ds-legend button, .ds-stages button, .ds-marker, .ds-table th button { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-align: inherit; cursor: pointer; }\n.ds-kpi { display: flex; flex-direction: column; gap: var(--ds-space-xxs); width: 100%; height: 100%; justify-content: center; }\n.ds-kpi-value { font-family: var(--ds-type-kpi-family); font-size: var(--ds-type-kpi-size); font-weight: var(--ds-type-kpi-weight); line-height: var(--ds-type-kpi-line-height); font-variant-numeric: tabular-nums; }\n.ds-kpi-unit { font-size: .5em; margin-left: .25em; color: var(--ds-color-text-subtle); font-weight: 500; }\n.ds-kpi-delta { font-size: var(--ds-type-label-size); font-weight: 600; }\n.ds-kpi-sub { color: var(--ds-color-text-subtle); font-size: var(--ds-type-caption-size); font-weight: 400; }\n.ds-progress { display: block; height: 6px; border-radius: var(--ds-radius-full); background: var(--ds-color-surface-sunken); overflow: hidden; }\n.ds-progress > span { display: block; height: 100%; border-radius: inherit; }\n.ds-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: var(--ds-space-xs); flex: none; }\n.ds-pill { display: inline-flex; align-items: center; border: 1px solid; border-radius: var(--ds-radius-full); padding: 0 var(--ds-space-sm); font-size: var(--ds-type-label-size); font-weight: 600; line-height: 22px; white-space: nowrap; }\n.ds-tiles { display: grid; gap: var(--ds-space-sm); height: 100%; align-content: start; }\n.ds-tile { display: grid; gap: var(--ds-space-xxs); border: 1px solid var(--ds-color-border-default); border-radius: var(--ds-radius-control); padding: var(--ds-space-sm) var(--ds-space-md); background: var(--ds-color-surface-card); }\n.ds-tile[data-active] { box-shadow: inset 0 0 0 1px currentColor; }\n.ds-tile-label { display: flex; align-items: center; font-size: var(--ds-type-label-size); color: var(--ds-color-text-secondary); text-transform: capitalize; }\n.ds-tile-value { font-family: var(--ds-type-kpi-family); font-size: calc(var(--ds-type-kpi-size) * .8); font-weight: var(--ds-type-kpi-weight); font-variant-numeric: tabular-nums; }\n.ds-status { display: flex; flex-direction: column; align-items: flex-start; gap: var(--ds-space-xs); }\n.ds-status-label { color: var(--ds-color-text-secondary); }\n.ds-content { overflow: auto; height: 100%; }\n.ds-md-p { margin: 0 0 var(--ds-space-sm); }\n.ds-md-h { margin: 0 0 var(--ds-space-xs); font-family: var(--ds-type-heading-family); }\n.ds-md-list { margin: 0 0 var(--ds-space-sm); padding-left: var(--ds-space-lg); }\n.ds-link { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; color: var(--ds-color-action-primary); text-decoration: underline; text-underline-offset: 2px; }\n.ds-meters { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--ds-space-sm); overflow: auto; max-height: 100%; }\n.ds-meters button { display: grid; gap: var(--ds-space-xxs); width: 100%; }\n.ds-meter-head { display: flex; justify-content: space-between; gap: var(--ds-space-sm); }\n.ds-meter-value { font-variant-numeric: tabular-nums; font-weight: 600; }\n.ds-legend { list-style: none; margin: var(--ds-space-sm) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--ds-space-xs) var(--ds-space-md); font-size: var(--ds-type-label-size); }\n.ds-legend li, .ds-legend button { display: inline-flex; align-items: center; gap: var(--ds-space-xxs); }\n.ds-legend .ds-dot { flex-shrink: 0; width: 8px; height: 8px; }\n.ds-segbar { display: flex; width: 100%; height: 14px; border-radius: var(--ds-radius-full); overflow: hidden; gap: 2px; }\n.ds-segbar button { border: 0; padding: 0; cursor: pointer; min-width: 2px; }\n.ds-donut { display: flex; gap: var(--ds-space-md); align-items: center; height: 100%; }\n.ds-donut svg { height: 100%; max-height: 220px; aspect-ratio: 1; }\n.ds-donut .ds-legend { flex-direction: column; margin: 0; }\n.ds-cards { display: grid; gap: var(--ds-space-sm); overflow: auto; max-height: 100%; }\n.ds-card { display: grid; gap: var(--ds-space-sm); border: 1px solid var(--ds-color-border-default); border-top-width: 3px; border-radius: var(--ds-radius-control); padding: var(--ds-space-sm) var(--ds-space-md); background: var(--ds-color-surface-card); }\n.ds-card[data-active] { box-shadow: 0 0 0 2px var(--ds-color-border-focus); }\n.ds-card-head { display: flex; align-items: center; gap: var(--ds-space-xs); justify-content: space-between; }\n.ds-card-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ds-space-xxs) var(--ds-space-sm); margin: 0; }\n.ds-card-fields dt { font-size: var(--ds-type-caption-size); color: var(--ds-color-text-subtle); }\n.ds-card-fields dd { margin: 0; font-variant-numeric: tabular-nums; }\n.ds-timeline { display: grid; gap: var(--ds-space-xs); }\n.ds-timeline-lane { display: flex; align-items: center; gap: var(--ds-space-sm); }\n.ds-timeline-name { width: 80px; font-size: var(--ds-type-label-size); color: var(--ds-color-text-secondary); flex: none; }\n.ds-timeline-bar { position: relative; flex: 1; height: 24px; background: var(--ds-color-surface-sunken); border-radius: var(--ds-radius-control); overflow: hidden; }\n.ds-timeline-bar span { position: absolute; top: 0; bottom: 0; cursor: pointer; }\n.ds-timeline-axis { display: flex; justify-content: space-between; font-size: var(--ds-type-caption-size); color: var(--ds-color-text-subtle); }\n.ds-imagemap { position: relative; height: 100%; }\n.ds-imagemap img { width: 100%; height: 100%; object-fit: contain; }\n.ds-marker { position: absolute; transform: translate(-50%, -50%); border: 1px solid; border-radius: var(--ds-radius-control); padding: 1px var(--ds-space-xs); font-size: var(--ds-type-caption-size); white-space: nowrap; }\n.ds-stages { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--ds-space-xs); align-items: center; height: 100%; }\n.ds-stages li { flex: 1; }\n.ds-stages button { display: flex; align-items: center; gap: var(--ds-space-xs); width: 100%; padding: var(--ds-space-xs); border-radius: var(--ds-radius-control); color: var(--ds-color-text-subtle); }\n.ds-stages li[data-state=\"current\"] button { background: var(--ds-color-surface-selection); color: var(--ds-color-text-primary); font-weight: 600; }\n.ds-stages li[data-state=\"done\"] button { color: var(--ds-color-text-secondary); }\n.ds-stage-dot { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--ds-color-border-control); font-size: 11px; flex: none; }\n.ds-stages li[data-state=\"done\"] .ds-stage-dot { background: var(--ds-color-status-good-solid); border-color: transparent; color: var(--ds-color-text-on-fill); }\n.ds-stages li[data-state=\"current\"] .ds-stage-dot { background: var(--ds-color-action-primary); border-color: transparent; color: var(--ds-color-action-on-primary); }\n.ds-table-wrap { height: 100%; display: flex; flex-direction: column; }\n.ds-table-scroll { overflow: auto; flex: 1; scrollbar-width: thin; }\n.ds-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }\n.ds-table th, .ds-table td { padding: var(--ds-space-xs) var(--ds-space-sm); border-bottom: 1px solid var(--ds-color-border-default); vertical-align: top; }\n.ds-table-wrap[data-density=\"compact\"] th, .ds-table-wrap[data-density=\"compact\"] td { padding: 2px var(--ds-space-xs); }\n.ds-table th { font-size: var(--ds-type-label-size); font-weight: var(--ds-type-label-weight); color: var(--ds-color-text-subtle); white-space: nowrap; background: var(--ds-color-surface-card); }\n.ds-table thead[data-sticky] th { position: sticky; top: 0; z-index: 1; }\n.ds-table tbody tr { cursor: pointer; }\n.ds-table tbody tr:hover, .ds-table tbody tr:focus-visible { background: var(--ds-color-surface-selection); outline: none; }\n.ds-table tfoot td { font-weight: 600; border-top: 2px solid var(--ds-color-border-default); }\n/* Rich cells (sub line, chips), expandable rows and their detail. */\n.ds-cell { display: inline-flex; flex-direction: column; align-items: flex-start; gap: var(--ds-space-xxs); }\n.ds-table td[style*=\"right\"] .ds-cell { align-items: flex-end; }\n.ds-cell-sub { color: var(--ds-color-text-secondary); font-size: var(--ds-type-caption-size); font-weight: 600; }\n.ds-chips { display: inline-flex; flex-wrap: wrap; gap: var(--ds-space-xxs); }\n.ds-table tr[aria-expanded] { cursor: pointer; }\n.ds-table tr[data-expanded] > td, .ds-row-detail > td { background: var(--ds-color-surface-sunken); }\n.ds-row-detail > td { padding: var(--ds-space-md); }\n/* Tiles: muted (dashed, greyed) and highlighted (accent border). */\n.ds-tile[data-muted] { border-style: dashed; color: var(--ds-color-text-disabled); background: transparent; }\n.ds-tile[data-muted] .ds-tile-label, .ds-tile[data-muted] .ds-tile-value, .ds-tile[data-muted] .ds-tile-caption { color: var(--ds-color-text-disabled); }\n.ds-tile[data-highlight] { border-width: 2px; }\n.ds-tile[data-highlight=\"warn\"] { border-color: var(--ds-color-status-warn-border); }\n.ds-tile[data-highlight=\"bad\"] { border-color: var(--ds-color-status-bad-border); }\n.ds-tile[data-highlight=\"good\"] { border-color: var(--ds-color-status-good-border); }\n.ds-tile[data-highlight=\"info\"] { border-color: var(--ds-color-status-info-border); }\n.ds-tile[data-highlight=\"neutral\"] { border-color: var(--ds-color-status-neutral-border); }\n.ds-cell-list { display: grid; gap: 2px; }\n.ds-pager { display: flex; justify-content: flex-end; align-items: center; gap: var(--ds-space-sm); padding-top: var(--ds-space-xs); font-size: var(--ds-type-label-size); color: var(--ds-color-text-subtle); }\n\n/* ---- Card anatomy ---- */\n.ds-panel { padding: var(--ds-space-lg); border: 0; }\n.ds-panel-head { margin-bottom: var(--ds-space-md); min-height: 20px; flex-wrap: wrap; row-gap: 2px; }\n.ds-panel-subtitle { margin: 2px 0 0; font-family: var(--ds-type-caption-family); font-size: var(--ds-type-caption-size); line-height: var(--ds-type-caption-line-height); color: var(--ds-color-text-subtle); }\n.ds-panel-title { display: inline-flex; align-items: center; gap: var(--ds-space-xs); min-width: 0; max-width: 100%; }\n.ds-panel-meta { font-size: var(--ds-type-label-size); color: var(--ds-color-text-subtle); white-space: nowrap; }\n.ds-live { display: inline-flex; align-items: center; gap: 6px; font-size: var(--ds-type-label-size); color: var(--ds-color-text-subtle); white-space: nowrap; }\n.ds-live > span { width: 7px; height: 7px; border-radius: 50%; background: var(--ds-color-status-good-fg); }\n.ds-live[data-stale] > span { background: var(--ds-color-status-warn-fg); }\n.ds-info { position: relative; display: inline-flex; color: var(--ds-color-text-disabled); cursor: help; outline: none; background: none; border: 0; padding: 0; font: inherit; }\n.ds-info:hover, .ds-info:focus-visible { color: var(--ds-color-text-subtle); }\n.ds-tip { position: fixed; z-index: var(--ds-z-tooltip); width: max-content; max-width: 320px; padding: var(--ds-space-sm) var(--ds-space-md); border-radius: var(--ds-radius-control); background: var(--ds-color-chart-tooltip-bg); color: var(--ds-color-chart-tooltip-text); font: 500 var(--ds-type-caption-size)/1.5 var(--ds-font-body); text-align: left; white-space: normal; pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity 140ms ease, transform 140ms ease; }\n.ds-tip[data-below] { transform: translateY(-4px); }\n.ds-tip[data-open] { opacity: 1; transform: none; }\n@media (prefers-reduced-motion: reduce) { .ds-tip { transition: none; } }\n.ds-tip::after { content: \"\"; position: absolute; left: var(--ds-tip-arrow); top: 100%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: var(--ds-color-chart-tooltip-bg); }\n.ds-tip[data-below]::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: var(--ds-color-chart-tooltip-bg); }\n\n.ds-chip { display: inline-flex; align-items: center; height: var(--ds-chip-height, 22px); padding: 0 var(--ds-chip-padding-x, 8px); border-radius: var(--ds-chip-radius, 6px); border-width: var(--ds-chip-border, 1px); font: var(--ds-chip-weight, 600) var(--ds-chip-font-size, 11px)/1 var(--ds-font-body); white-space: nowrap; background: var(--ds-color-status-neutral-bg); color: var(--ds-color-status-neutral-fg); }\n.ds-chip[data-tone=\"good\"] { background: var(--ds-color-status-good-bg); color: var(--ds-color-status-good-fg); }\n.ds-chip[data-tone=\"bad\"] { background: var(--ds-color-status-bad-bg); color: var(--ds-color-status-bad-fg); }\n.ds-chip[data-tone=\"warn\"] { background: var(--ds-color-status-warn-bg); color: var(--ds-color-status-warn-fg); }\n.ds-chip[data-tone=\"info\"] { background: var(--ds-color-status-info-bg); color: var(--ds-color-status-info-fg); }\n\n.ds-kpi { display: flex; flex-direction: column; gap: var(--ds-space-xs); height: 100%; justify-content: flex-start; }\n.ds-kpi-label { display: flex; align-items: center; gap: var(--ds-space-xs); font-size: var(--ds-type-label-size); color: var(--ds-color-text-subtle); }\n.ds-kpi-main { display: flex; align-items: baseline; gap: 8px; font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; margin-top: 2px; }\n.ds-kpi-value { font-family: var(--ds-type-kpi-family); font-size: var(--ds-type-kpi-size); font-weight: var(--ds-type-kpi-weight); line-height: var(--ds-type-kpi-line-height); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }\n.ds-kpi[data-size=\"hero\"] .ds-kpi-value { font-size: calc(var(--ds-type-kpi-size) * 1.45); }\n.ds-kpi-unit { font-size: var(--ds-type-caption-size); margin-left: 0; color: var(--ds-color-text-subtle); font-weight: 400; }\n.ds-kpi-empty { font-size: var(--ds-type-body-size); color: var(--ds-color-text-subtle); padding: 6px 0; }\n.ds-kpi-delta { font-size: var(--ds-type-label-size); font-weight: 600; }\n.ds-kpi-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-sm); font-size: var(--ds-type-label-size); color: var(--ds-color-text-subtle); min-height: 22px; }\n\n.ds-tiles { --ds-tiles-gap: var(--ds-space-md); gap: var(--ds-tiles-gap); grid-template-columns: repeat(auto-fit, minmax(max(var(--ds-tile-min, 128px), calc((100% - (var(--ds-tile-cols, 12) - 1) * var(--ds-tiles-gap)) / var(--ds-tile-cols, 12))), 1fr)); }\n.ds-tiles[data-stretch=\"off\"] { grid-template-columns: repeat(auto-fill, minmax(max(var(--ds-tile-min, 128px), calc((100% - (var(--ds-tile-cols, 12) - 1) * var(--ds-tiles-gap)) / var(--ds-tile-cols, 12))), 1fr)); }\n.ds-tiles { overflow-y: auto; scrollbar-width: thin; grid-auto-rows: max-content; padding: 5px; margin: -5px; }\n.ds-tiles > .ds-tile { min-height: max-content; }\n.ds-flow .ds-tiles { height: auto; overflow-y: visible; }\n/* Grid items with fit: the panel takes its natural height (at least the cell's), so the grid can measure it. */\n[data-fit] > .ds-fit { height: 100%; }\n.ds-grid-exact > .react-grid-item { padding-bottom: var(--ds-grid-gap); }\n.ds-fit > .ds-panel { height: auto !important; min-height: 100% !important; }\n/* While measuring, the panel takes only its content's height (no stretching), then goes back. */\n.ds-fit[data-measuring] > .ds-panel { min-height: 0 !important; }\n.ds-fit[data-measuring] .ds-panel-body, .ds-fit[data-measuring] .ds-panel-body > * { flex: none !important; height: auto !important; }\n/* The body still fills a taller card, so footers (a KPI's target chip) stay at the bottom. */\n[data-fit] .ds-panel-body { flex: 1 0 auto; display: flex; flex-direction: column; }\n[data-fit] .ds-panel-body > * { flex: 1 0 auto; }\n[data-fit] .ds-tiles, [data-fit] .ds-table-wrap { height: auto; max-height: none; overflow-y: visible; }\n/* In a fit card the rows set the height, unless the table has its own maxHeight. */\n[data-fit] .ds-table-scroll { flex: none; }\n[data-fit] .ds-table-scroll:not([data-max]) { max-height: none !important; overflow-y: visible; }\n.ds-tiles[data-wrap=\"off\"] { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(var(--ds-tile-min, 128px), 1fr); overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 4px; }\n.ds-tiles[data-wrap=\"off\"] > * { scroll-snap-align: start; }\n.ds-tile { min-width: 0; overflow-wrap: anywhere; }\n.ds-tile { display: flex; flex-direction: column; gap: 6px; padding: var(--ds-space-md) var(--ds-space-md) var(--ds-space-md); border: 1px solid var(--ds-color-border-default); border-radius: var(--ds-radius-control); background: var(--ds-color-surface-card); text-align: left; min-height: 0; transition: border-color 120ms, background 120ms; }\n.ds-tile[data-clickable]:hover { border-color: var(--ds-color-action-primary); }\n.ds-tile[data-active] { border-color: var(--ds-color-action-primary); background: var(--ds-color-surface-selection); box-shadow: none; }\n.ds-tile-main { display: flex; align-items: baseline; gap: var(--ds-space-xs); flex-wrap: wrap; }\n.ds-tile[data-active] .ds-tile-label { color: var(--ds-color-text-primary); font-weight: 600; }\n.ds-tile-label { font-size: var(--ds-type-label-size); color: var(--ds-color-text-subtle); text-transform: none; gap: 2px; }\n.ds-tile-value { font-family: var(--ds-type-kpi-family); font-size: 24px; line-height: 30px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ds-color-text-primary); }\n.ds-tile-caption { font-size: var(--ds-type-label-size); color: var(--ds-color-text-subtle); margin-top: auto; }\n\n.ds-chart { display: flex; flex-direction: column; height: 100%; }\n.ds-chart-legend { list-style: none; margin: -38px 0 14px auto; padding: 0; display: flex; gap: var(--ds-space-lg); font-size: var(--ds-type-label-size); color: var(--ds-color-text-subtle); position: relative; z-index: 1; max-width: 70%; flex-wrap: wrap; justify-content: flex-end; }\n.ds-panel-tools .ds-chart-legend { margin: 0; max-width: none; }\n.ds-chart-legend li { display: inline-flex; align-items: center; gap: 6px; }\n.ds-swatch { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }\n.ds-swatch-line { width: 16px; border-top: 2px dashed var(--ds-color-text-subtle); display: inline-block; }\n\n.ds-table th, .ds-table td { padding: 12px var(--ds-space-lg); border-bottom: 1px solid color-mix(in srgb, var(--ds-color-border-default) 60%, transparent); }\n.ds-table th { background: var(--ds-color-surface-table-header); color: var(--ds-color-text-secondary); font-size: var(--ds-type-label-size); font-weight: 600; letter-spacing: 0; text-transform: none; border-bottom: 0; }\n.ds-table td { font-size: var(--ds-type-label-size); color: var(--ds-color-text-secondary); vertical-align: middle; }\n.ds-table tbody tr:hover, .ds-table tbody tr:focus-visible { background: var(--ds-color-surface-selection); }\n.ds-table tbody tr[data-muted] td { color: var(--ds-color-text-disabled); }\n.ds-cell-empty { color: var(--ds-color-text-disabled); }\n.ds-table th button { font-weight: 600; }\n\n.ds-header { margin-bottom: var(--ds-space-md); }\n.ds-filters { background: var(--ds-color-surface-card); border-radius: var(--ds-radius-card); padding: var(--ds-space-md) var(--ds-space-lg); align-items: center; gap: var(--ds-space-md); }\n.ds-filters .ds-field { min-width: 0; grid-auto-flow: column; align-items: center; gap: var(--ds-space-xs); }\n.ds-filters .ds-field > span { font-size: var(--ds-type-label-size); }\n.ds-filters .ds-select, .ds-filters .ds-input { color: var(--ds-color-action-primary); border-color: var(--ds-color-border-default); background: var(--ds-color-surface-card); min-height: calc(var(--ds-control-height, 36px) - 2px); }\n.ds-filters .ds-btn { border-color: transparent; background: var(--ds-color-surface-selection); color: var(--ds-color-action-primary); }\n.ds-filters-icon { display: inline-grid; place-items: center; width: calc(var(--ds-control-height, 36px) - 2px); height: calc(var(--ds-control-height, 36px) - 2px); border-radius: var(--ds-radius-control); border: 1px solid var(--ds-color-border-default); color: var(--ds-filter-icon-color, var(--ds-color-text-subtle)); }\n.ds-meters .ds-progress, .ds-card .ds-progress { height: 8px; }\n.ds-badge-stale { border-radius: 6px; padding: 2px 8px; }\n\n/* ---- Motion (all off with prefers-reduced-motion) ---- */\n@keyframes ds-rise { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }\n@keyframes ds-fade { from { opacity: 0; } to { opacity: 1; } }\n@keyframes ds-grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }\n@keyframes ds-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ds-color-status-good-fg) 55%, transparent); } 70% { box-shadow: 0 0 0 6px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }\n@keyframes ds-pop { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }\n@keyframes ds-slide-in { from { transform: translateX(100%); } to { transform: none; } }\n@keyframes ds-row-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }\n\n.ds-panel { animation: ds-rise 520ms cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--ds-i, 0) * 45ms); transition: box-shadow 200ms ease, transform 200ms ease, outline-color 200ms ease; }\n.ds-panel-body > :not(.ds-skeleton):not(.ds-loading) { animation: ds-fade 360ms ease both; }\n.ds-filters, .ds-header { animation: ds-fade 400ms ease both; }\n.ds-tile { transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease; }\n.ds-tile[data-clickable]:hover { transform: translateY(-2px); box-shadow: 0 6px 16px color-mix(in srgb, var(--ds-color-action-primary) 10%, transparent); }\n.ds-tile:not([data-clickable]) { cursor: default; }\n.ds-tile:active { transform: translateY(0); }\n.ds-kpi-main { transition: opacity 160ms ease; }\n.ds-kpi-main[data-clickable]:hover .ds-kpi-value { color: var(--ds-color-action-primary); transition: color 160ms ease; }\n.ds-chip { animation: ds-fade 300ms ease both; transition: background 200ms ease, color 200ms ease; }\n.ds-progress > span { transform-origin: left; animation: ds-grow-x 800ms cubic-bezier(.2,.7,.2,1) both; transition: width 500ms cubic-bezier(.2,.7,.2,1); }\n.ds-segbar button { transform-origin: left; animation: ds-grow-x 700ms cubic-bezier(.2,.7,.2,1) both; }\n.ds-timeline-bar span { transform-origin: left; animation: ds-grow-x 700ms cubic-bezier(.2,.7,.2,1) both; }\n.ds-live > span { animation: ds-pulse 2s ease-out infinite; }\n.ds-table tbody tr { animation: ds-row-in 320ms ease both; transition: background 140ms ease; }\n.ds-table tbody tr:nth-child(1) { animation-delay: 20ms; } .ds-table tbody tr:nth-child(2) { animation-delay: 40ms; }\n.ds-table tbody tr:nth-child(3) { animation-delay: 60ms; } .ds-table tbody tr:nth-child(4) { animation-delay: 80ms; }\n.ds-table tbody tr:nth-child(5) { animation-delay: 100ms; } .ds-table tbody tr:nth-child(6) { animation-delay: 120ms; }\n.ds-table tbody tr:nth-child(7) { animation-delay: 140ms; } .ds-table tbody tr:nth-child(8) { animation-delay: 160ms; }\n.ds-table tbody tr:nth-child(9) { animation-delay: 180ms; } .ds-table tbody tr:nth-child(n+10) { animation-delay: 200ms; }\n.ds-stages li[data-state=\"current\"] .ds-stage-dot { animation: ds-pulse 2s ease-out infinite; }\n.ds-scrim { animation: ds-fade 200ms ease both; }\n.ds-dialog { animation: ds-pop 260ms cubic-bezier(.2,.7,.2,1) both; }\n.ds-scrim[data-presentation=\"drawer\"] .ds-dialog { animation: ds-slide-in 300ms cubic-bezier(.2,.7,.2,1) both; }\n.ds-select, .ds-input, .ds-btn, .ds-chip, .ds-link { transition: border-color 140ms ease, background 140ms ease, color 140ms ease, box-shadow 140ms ease; }\n.ds-select:hover, .ds-input:hover { border-color: var(--ds-color-action-primary); }\n.ds-grid-edit .react-grid-item > .ds-panel { animation: none; }\n@media (prefers-reduced-motion: reduce) {\n .ds-root *, .ds-root *::before, .ds-root *::after { animation: none !important; transition: none !important; }\n}\n\n/* ---- Filter controls (pills with the value in blue, popovers) ---- */\n.ds-filters { gap: var(--ds-space-sm); padding: 12px var(--ds-space-lg); }\n.ds-dd { position: relative; display: inline-flex; }\n.ds-pill-btn { display: inline-flex; align-items: center; gap: 8px; height: var(--ds-control-height, 36px); padding: 0 12px; border: 1px solid var(--ds-color-border-default); border-radius: var(--ds-radius-control); background: var(--ds-color-surface-card); color: var(--ds-color-text-primary); font: 400 var(--ds-control-font-size, 13px)/1 var(--ds-font-body); cursor: pointer; white-space: nowrap; transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease; }\n.ds-pill-btn:hover { border-color: var(--ds-color-action-primary); }\n.ds-pill-btn[aria-expanded=\"true\"] { border-color: var(--ds-color-action-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ds-color-action-primary) 14%, transparent); }\n.ds-pill-btn > svg:first-child { color: var(--ds-color-text-subtle); }\n.ds-pill-value { color: var(--ds-color-action-primary); font-weight: 500; }\n.ds-pill-value-only { color: var(--ds-control-value-color, var(--ds-color-action-primary)); font-weight: var(--ds-control-value-weight, 500); }\n.ds-pill-chev { color: var(--ds-color-text-subtle); margin-left: 2px; transition: transform 180ms ease; }\n.ds-pill-btn[aria-expanded=\"true\"] .ds-pill-chev { transform: rotate(180deg); color: var(--ds-color-action-primary); }\n\n.ds-pop { z-index: calc(var(--ds-z-overlay) + 10); max-width: min(92vw, 640px); background: var(--ds-color-surface-overlay); border: 1px solid color-mix(in srgb, var(--ds-color-border-default) 70%, transparent); border-radius: 12px; box-shadow: 0 14px 36px rgba(13,13,13,.16), 0 2px 6px rgba(13,13,13,.06); padding: 6px; animation: ds-pop-in 180ms cubic-bezier(.2,.7,.2,1) both; transform-origin: top left; }\n@keyframes ds-pop-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }\n.ds-menu { display: grid; gap: 2px; max-height: 300px; overflow: auto; outline: none; min-width: var(--ds-menu-min-width, 200px); }\n.ds-pop:has(> .ds-menu) { width: var(--ds-menu-width, auto); }\n.ds-menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ds-color-text-primary); font: 400 var(--ds-control-font-size, 13px)/18px var(--ds-font-body); text-align: left; cursor: pointer; transition: background 120ms ease, color 120ms ease; }\n.ds-menu-item:hover, .ds-menu-item:focus-visible { background: color-mix(in srgb, var(--ds-color-action-primary) 8%, transparent); outline: none; }\n.ds-menu-item[aria-selected=\"true\"], .ds-menu-item[aria-pressed=\"true\"] { color: var(--ds-color-action-primary); font-weight: 600; background: var(--ds-color-surface-selection); }\n.ds-menu-label { flex: 1; }\n.ds-menu-count { color: var(--ds-color-text-subtle); font-size: 12px; font-weight: 400; font-variant-numeric: tabular-nums; }\n.ds-menu-tick { color: var(--ds-color-action-primary); }\n.ds-menu-empty { padding: 10px; color: var(--ds-color-text-subtle); font-size: 12px; }\n.ds-check { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--ds-color-border-control); flex: none; display: grid; place-items: center; transition: background 120ms ease, border-color 120ms ease; }\n.ds-check[data-on] { background: var(--ds-color-action-primary); border-color: var(--ds-color-action-primary); }\n.ds-check[data-on]::after { content: \"\"; width: 8px; height: 4px; border: 2px solid var(--ds-color-action-on-primary); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }\n.ds-pop-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 6px 2px; margin-top: 4px; border-top: 1px solid color-mix(in srgb, var(--ds-color-border-default) 60%, transparent); font-size: 12px; color: var(--ds-color-text-subtle); }\n\n.ds-pop-wide { min-width: 0; }\n.ds-range { display: flex; gap: 6px; }\n.ds-range-presets { display: grid; gap: 2px; align-content: start; min-width: 210px; padding-right: 6px; border-right: 1px solid color-mix(in srgb, var(--ds-color-border-default) 60%, transparent); }\n.ds-cal { padding: 4px 6px; width: 280px; }\n.ds-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }\n.ds-cal-head strong { font: 600 13px/1 var(--ds-font-heading); }\n.ds-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px 0; }\n.ds-cal-wd { text-align: center; font-size: 11px; color: var(--ds-color-text-subtle); padding: 4px 0; }\n.ds-cal-day { height: 34px; border: 0; background: transparent; color: var(--ds-color-text-primary); font: 400 var(--ds-control-font-size, 13px)/1 var(--ds-font-body); cursor: pointer; border-radius: 8px; transition: background 120ms ease, color 120ms ease; font-variant-numeric: tabular-nums; }\n.ds-cal-day:hover:not(:disabled) { background: color-mix(in srgb, var(--ds-color-action-primary) 10%, transparent); }\n.ds-cal-day:disabled { color: var(--ds-color-text-disabled); cursor: default; }\n.ds-cal-day[data-in] { background: var(--ds-color-surface-selection); border-radius: 0; }\n.ds-cal-day[data-start], .ds-cal-day[data-end] { background: var(--ds-color-action-primary); color: var(--ds-color-action-on-primary); font-weight: 600; }\n.ds-cal-error { color: var(--ds-color-status-bad-fg); }\n.ds-apply { height: 30px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--ds-color-action-primary); color: var(--ds-color-action-on-primary); font: 600 12px/1 var(--ds-font-body); cursor: pointer; transition: background 140ms ease, opacity 140ms ease; }\n.ds-apply:hover:not(:disabled) { background: var(--ds-color-action-primary-hover); }\n.ds-apply:disabled { opacity: .4; cursor: default; }\n\n.ds-stepper { display: inline-flex; align-items: stretch; gap: 0; }\n.ds-stepper .ds-pill-btn { border-radius: 0; border-left: 0; border-right: 0; }\n/* Between the arrows the select is one piece of the group: no border or ring of its own (square corners would\n draw a box inside the rounded group); keyboard focus gets an inset ring instead. */\n.ds-stepper .ds-pill-btn, .ds-stepper .ds-pill-btn:hover, .ds-stepper .ds-pill-btn[aria-expanded=\"true\"] { border-color: transparent; box-shadow: none; }\n.ds-stepper .ds-pill-btn:focus { outline: none; }\n.ds-stepper .ds-pill-btn:focus-visible, .ds-stepper .ds-step:focus-visible { outline: 2px solid var(--ds-color-border-focus); outline-offset: -2px; }\n.ds-step { display: inline-grid; place-items: center; width: var(--ds-control-height, 36px); height: var(--ds-control-height, 36px); border: 1px solid transparent; background: var(--ds-color-surface-selection); color: var(--ds-color-action-primary); font-size: 16px; cursor: pointer; transition: background 140ms ease, opacity 140ms ease; }\n.ds-stepper > .ds-step:first-child { border-radius: var(--ds-radius-control) 0 0 var(--ds-radius-control); }\n.ds-stepper > .ds-step:last-child { border-radius: 0 var(--ds-radius-control) var(--ds-radius-control) 0; }\n.ds-step:hover:not(:disabled) { background: color-mix(in srgb, var(--ds-color-action-primary) 18%, var(--ds-color-surface-card)); }\n.ds-step:disabled { opacity: .4; cursor: default; }\n.ds-cal-head .ds-step { width: 30px; height: 30px; border-radius: 8px; background: transparent; }\n.ds-cal-head .ds-step:hover:not(:disabled) { background: var(--ds-color-surface-selection); }\n\n.ds-search { display: inline-flex; align-items: center; gap: 8px; height: var(--ds-control-height, 36px); padding: 0 12px; border: 1px solid var(--ds-color-border-default); border-radius: var(--ds-radius-control); background: var(--ds-color-surface-card); color: var(--ds-color-text-subtle); transition: border-color 140ms ease, box-shadow 140ms ease; min-width: 200px; }\n.ds-search:focus-within { border-color: var(--ds-color-action-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ds-color-action-primary) 14%, transparent); }\n.ds-search input { border: 0; outline: none; background: transparent; font: 400 var(--ds-control-font-size, 13px)/1 var(--ds-font-body); color: var(--ds-color-text-primary); width: 100%; }\n.ds-switch { display: inline-flex; align-items: center; gap: 8px; font-size: var(--ds-control-font-size, 13px); cursor: pointer; }\n.ds-switch input { position: absolute; opacity: 0; width: 0; height: 0; }\n.ds-switch span { width: 34px; height: 20px; border-radius: 999px; background: var(--ds-color-border-control); position: relative; transition: background 160ms ease; }\n.ds-switch span::after { content: \"\"; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform 180ms cubic-bezier(.2,.7,.2,1); }\n.ds-switch input:checked + span { background: var(--ds-color-action-primary); }\n.ds-switch input:checked + span::after { transform: translateX(14px); }\n.ds-switch input:focus-visible + span { box-shadow: 0 0 0 3px color-mix(in srgb, var(--ds-color-action-primary) 25%, transparent); }\n.ds-chip-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--ds-color-border-default); border-radius: 999px; background: var(--ds-color-surface-card); color: var(--ds-color-text-secondary); font: 400 var(--ds-control-font-size, 13px)/1 var(--ds-font-body); cursor: pointer; transition: all 140ms ease; }\n.ds-chip-btn:hover { border-color: var(--ds-color-action-primary); }\n.ds-chip-btn[aria-pressed=\"true\"] { background: var(--ds-color-surface-selection); border-color: var(--ds-color-action-primary); color: var(--ds-color-action-primary); font-weight: 600; }\n.ds-panel-tools .ds-pill-btn { height: 30px; font-size: 12px; }\n\n/* ---- Builder editing: resize from every corner and edge; widgets are inert so a click selects ---- */\n.ds-grid-edit .react-grid-item > .react-resizable-handle { display: block; position: absolute; z-index: 3; opacity: 0; transition: opacity 140ms ease; }\n.ds-grid-edit .react-grid-item:hover > .react-resizable-handle, .ds-grid-edit .react-grid-item:has(.ds-panel[data-selected=\"true\"]) > .react-resizable-handle { opacity: 1; }\n.ds-grid-edit .react-grid-item > .react-resizable-handle::after { content: \"\"; position: absolute; inset: 0; margin: auto; width: 10px; height: 10px; border: 2px solid var(--ds-color-action-primary); background: var(--ds-color-surface-card); border-radius: 3px; box-shadow: 0 1px 3px rgba(13,13,13,.2); transform: none; right: auto; bottom: auto; }\n.ds-grid-edit .react-resizable-handle-se, .ds-grid-edit .react-resizable-handle-sw, .ds-grid-edit .react-resizable-handle-ne, .ds-grid-edit .react-resizable-handle-nw { width: 18px; height: 18px; }\n.ds-grid-edit .react-resizable-handle-se { right: -7px; bottom: -7px; cursor: nwse-resize; }\n.ds-grid-edit .react-resizable-handle-nw { left: -7px; top: -7px; cursor: nwse-resize; }\n.ds-grid-edit .react-resizable-handle-ne { right: -7px; top: -7px; cursor: nesw-resize; }\n.ds-grid-edit .react-resizable-handle-sw { left: -7px; bottom: -7px; cursor: nesw-resize; }\n.ds-grid-edit .react-resizable-handle-e, .ds-grid-edit .react-resizable-handle-w { top: 50%; width: 14px; height: 28px; margin-top: -14px; cursor: ew-resize; }\n.ds-grid-edit .react-resizable-handle-e { right: -6px; } .ds-grid-edit .react-resizable-handle-w { left: -6px; }\n.ds-grid-edit .react-resizable-handle-n, .ds-grid-edit .react-resizable-handle-s { left: 50%; width: 28px; height: 14px; margin-left: -14px; cursor: ns-resize; }\n.ds-grid-edit .react-resizable-handle-n { top: -6px; } .ds-grid-edit .react-resizable-handle-s { bottom: -6px; }\n.ds-grid-edit .react-resizable-handle-e::after, .ds-grid-edit .react-resizable-handle-w::after { width: 6px; height: 20px; }\n.ds-grid-edit .react-resizable-handle-n::after, .ds-grid-edit .react-resizable-handle-s::after { width: 20px; height: 6px; }\n.ds-grid-edit .react-grid-item.resizing { z-index: 4; }\n.ds-grid-edit .ds-panel-body { user-select: none; }\n.ds-grid-edit .ds-panel [data-ds-part], .ds-grid-edit .ds-panel :is(.ds-panel-title, .ds-kpi-label, .ds-panel-meta, .ds-kpi-main, .ds-kpi-foot, .ds-kpi-sub, .ds-tile, .ds-meters > *, .ds-status, .ds-table-tools, .ds-pager) { cursor: pointer; border-radius: 6px; outline: 1.5px dashed transparent; outline-offset: 2px; transition: outline-color 120ms; }\n.ds-grid-edit .ds-panel[data-selected] :is([data-ds-part], .ds-panel-title, .ds-kpi-label, .ds-panel-meta, .ds-kpi-main, .ds-kpi-foot, .ds-kpi-sub, .ds-tile, .ds-meters > *, .ds-status, .ds-table-tools, .ds-pager):hover { outline-color: color-mix(in srgb, var(--ds-color-action-primary) 55%, transparent); }\n.ds-grid-edit .ds-part-selected, .ds-grid-edit .ds-panel .ds-part-selected { outline: 2px solid var(--ds-color-action-primary) !important; outline-offset: 2px; }\n.ds-grid-edit .ds-panel { user-select: none; }\n\n/* Narrow cards scale their type down instead of overflowing. */\n.ds-panel-body { container-type: inline-size; }\n@container (max-width: 190px) {\n .ds-kpi-value { font-size: calc(var(--ds-type-kpi-size) * .78); line-height: 1.15; }\n .ds-kpi-foot { flex-wrap: wrap; gap: 4px; }\n .ds-tile-value { font-size: 20px; line-height: 24px; }\n}\n@container (max-width: 140px) {\n .ds-kpi-value { font-size: calc(var(--ds-type-kpi-size) * .64); }\n .ds-kpi-unit { display: none; }\n}\n\n/* Dropdown variants */\n.ds-dd[data-block] { display: flex; width: 100%; }\n.ds-dd[data-block] .ds-pill-btn { width: 100%; justify-content: space-between; }\n.ds-dd[data-block] .ds-pill-btn > span { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; }\n.ds-dd[data-plain] .ds-pill-value { color: var(--ds-color-text-primary); font-weight: 400; }\n.ds-dd[data-size=\"sm\"] .ds-pill-btn { height: 30px; padding: 0 8px; font-size: 12px; gap: 4px; }\n\n/* Table tools, filters, pager */\n.ds-table-tools { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }\n.ds-table-tools .ds-search { flex: 1; max-width: 320px; }\n.ds-table-count { margin-left: auto; font-size: 12px; color: var(--ds-color-text-subtle); }\n.ds-table-scroll { position: relative; }\n.ds-table-busy { position: sticky; top: 0; left: 0; height: 2px; margin-bottom: -2px; z-index: 3; overflow: hidden; background: color-mix(in srgb, var(--ds-color-action-primary) 15%, transparent); }\n.ds-table-busy::after { content: \"\"; position: absolute; inset: 0; width: 40%; background: var(--ds-color-action-primary); animation: ds-busy 1s ease-in-out infinite; }\n@keyframes ds-busy { from { transform: translateX(-100%); } to { transform: translateX(260%); } }\n.ds-table[aria-busy=\"true\"] tbody { opacity: .55; transition: opacity 160ms ease; }\n.ds-filter-row th { background: var(--ds-color-surface-card); padding: 6px 8px; border-bottom: 1px solid color-mix(in srgb, var(--ds-color-border-default) 60%, transparent); }\n.ds-cell-filter { width: 100%; height: 30px; padding: 0 8px; border: 1px solid var(--ds-color-border-default); border-radius: 6px; background: var(--ds-color-surface-card); font: 400 12px/1 var(--ds-font-body); color: var(--ds-color-text-primary); outline: none; transition: border-color 140ms ease, box-shadow 140ms ease; }\n.ds-cell-filter:focus { border-color: var(--ds-color-action-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ds-color-action-primary) 14%, transparent); }\n.ds-sort { display: inline-flex; flex-direction: column; gap: 1px; margin-left: 6px; vertical-align: middle; }\n.ds-sort::before, .ds-sort::after { content: \"\"; width: 0; height: 0; border-left: 3.5px solid transparent; border-right: 3.5px solid transparent; opacity: .3; transition: opacity 140ms ease; }\n.ds-sort::before { border-bottom: 4px solid currentColor; }\n.ds-sort::after { border-top: 4px solid currentColor; }\n.ds-sort[data-dir=\"asc\"]::before, .ds-sort[data-dir=\"desc\"]::after { opacity: 1; border-bottom-color: var(--ds-color-action-primary); border-top-color: var(--ds-color-action-primary); }\n.ds-table th button:hover .ds-sort::before, .ds-table th button:hover .ds-sort::after { opacity: .7; }\n.ds-pager { display: flex; justify-content: flex-end; align-items: center; gap: 16px; padding-top: 10px; font-size: 12px; color: var(--ds-color-text-subtle); flex-wrap: wrap; }\n.ds-pager-size { display: inline-flex; align-items: center; gap: 8px; margin-right: auto; }\n.ds-pages { display: inline-flex; align-items: center; gap: 2px; }\n.ds-pages button { min-width: 30px; height: 30px; padding: 0 6px; border: 0; border-radius: 6px; background: transparent; color: var(--ds-color-text-secondary); font: 500 12px/1 var(--ds-font-body); cursor: pointer; transition: background 140ms ease, color 140ms ease; }\n.ds-pages button:hover:not(:disabled) { background: var(--ds-color-surface-selection); }\n.ds-pages button[aria-current=\"page\"] { background: var(--ds-color-action-primary); color: var(--ds-color-action-on-primary); }\n.ds-pages button:disabled { opacity: .35; cursor: default; }\n.ds-page-gap { padding: 0 4px; }\n\n/* Container: a flex layout of panels */\n.ds-container { height: 100%; min-height: 0; }\n.ds-container > .ds-panel { flex: var(--ds-child-flex, 1 1 160px); min-width: var(--ds-child-min, 0); height: auto; }\n.ds-container[data-direction=\"column\"] > .ds-panel { min-height: 0; }\n.ds-container-empty { display: grid; place-items: center; height: 100%; min-height: 80px; border: 1.5px dashed var(--ds-color-border-default); border-radius: var(--ds-radius-card); color: var(--ds-color-text-subtle); font-size: 12px; }\n.ds-panel:has(> .ds-panel-body > .ds-container) { overflow: visible; }\n.ds-grid-edit .ds-panel-body:has(> .ds-container) { pointer-events: auto; }\n.ds-grid-edit .ds-container > .ds-panel { cursor: pointer; }\n\n.ds-filters-spacer { flex: 1; }\n.ds-tour-btn { margin-left: auto; align-self: center; height: calc(var(--ds-control-height, 36px) - 6px); padding: 0 var(--ds-space-md); border: 1px solid var(--ds-color-border-default); border-radius: var(--ds-radius-full); background: var(--ds-color-surface-card); color: var(--ds-color-action-primary); font: 600 var(--ds-type-label-size)/1 var(--ds-font-body); cursor: pointer; }\n.ds-synced + .ds-tour-btn { margin-left: 0; }\n.ds-tour-btn:focus-visible, .ds-tour button:focus-visible, .ds-tour:focus-visible, .ds-filters-toggle:focus-visible, .ds-filter-panel button:focus-visible { outline: 2px solid var(--ds-color-border-focus); outline-offset: 1px; }\n.ds-root [data-tour-active] { outline: 3px solid var(--ds-color-border-focus); outline-offset: 3px; position: relative; z-index: var(--ds-z-raised); }\n.ds-tour { position: fixed; right: auto; bottom: auto; margin: 0; z-index: calc(var(--ds-z-overlay) + 5); width: min(92vw, 340px); background: var(--ds-color-surface-overlay); color: var(--ds-color-text-primary); border: 1px solid var(--ds-color-border-default); border-radius: var(--ds-radius-card); box-shadow: var(--ds-shadow-overlay); padding: var(--ds-space-md); animation: ds-pop-in 180ms cubic-bezier(.2,.7,.2,1) both; }\n.ds-tour-head { display: flex; align-items: baseline; gap: var(--ds-space-sm); }\n.ds-tour-title { margin: 0; font-family: var(--ds-type-heading-family); font-size: var(--ds-type-heading-size); font-weight: var(--ds-type-heading-weight); }\n.ds-tour-count { margin-left: auto; font-size: var(--ds-type-caption-size); color: var(--ds-color-text-subtle); font-variant-numeric: tabular-nums; }\n.ds-tour-text { margin: var(--ds-space-sm) 0 var(--ds-space-md); color: var(--ds-color-text-secondary); }\n.ds-tour-foot { display: flex; align-items: center; gap: var(--ds-space-xs); }\n.ds-tour-skip { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; color: var(--ds-color-text-subtle); text-decoration: underline; text-underline-offset: 2px; }\n.ds-filter-drawer { position: relative; display: flex; margin-bottom: var(--ds-space-lg); }\n.ds-filters-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 var(--ds-space-xs); border-radius: var(--ds-radius-full); background: var(--ds-color-action-primary); color: var(--ds-color-action-on-primary); font-size: var(--ds-type-caption-size); font-weight: 600; }\n.ds-filter-panel { position: absolute; top: calc(100% + var(--ds-space-xs)); left: 0; right: auto; margin: 0; color: var(--ds-color-text-primary); z-index: var(--ds-z-overlay); width: min(92vw, 420px); max-height: 70vh; overflow: auto; background: var(--ds-color-surface-overlay); border: 1px solid var(--ds-color-border-default); border-radius: var(--ds-radius-card); box-shadow: var(--ds-shadow-overlay); padding: var(--ds-space-md); animation: ds-pop-in 180ms cubic-bezier(.2,.7,.2,1) both; }\n.ds-filter-panel:focus-visible { outline: 2px solid var(--ds-color-border-focus); }\n.ds-filter-panel-head { display: flex; align-items: center; margin-bottom: var(--ds-space-sm); font-weight: var(--ds-type-heading-weight); }\n.ds-filter-panel .ds-filters { flex-direction: column; align-items: stretch; margin: 0; padding: 0; background: transparent; box-shadow: none; animation: none; }\n.ds-filter-panel .ds-filters-spacer { display: none; }\n.ds-filter-apply, .ds-filter-reset { height: var(--ds-control-height, 36px); padding: 0 16px; border-radius: var(--ds-radius-control); font: 600 var(--ds-control-font-size, 13px)/1 var(--ds-font-body); cursor: pointer; transition: background 140ms ease, color 140ms ease, opacity 140ms ease, border-color 140ms ease; }\n.ds-filter-apply { border: 0; background: var(--ds-color-action-primary); color: var(--ds-color-action-on-primary); }\n.ds-filter-apply:hover:not(:disabled) { background: var(--ds-color-action-primary-hover); }\n.ds-filter-reset { border: 1px solid var(--ds-color-border-default); background: var(--ds-color-surface-card); color: var(--ds-color-text-secondary); }\n.ds-filter-reset:hover:not(:disabled) { border-color: var(--ds-color-action-primary); color: var(--ds-color-action-primary); }\n.ds-filter-apply:disabled, .ds-filter-reset:disabled { opacity: .4; cursor: default; }\n/* Flow layout (phones by default): panels wrap like a flex container and grow to fit their content */\n.ds-flow { display: flex; flex-wrap: wrap; align-items: stretch; }\n.ds-flow-item { display: flex; flex-direction: column; min-width: 0; animation: ds-rise 420ms cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--ds-i, 0) * 35ms); }\n.ds-flow-item > * { flex: 1 1 auto !important; min-height: 0; min-width: 0 !important; max-width: none !important; align-self: stretch !important; }\n/* Filter widget: one filter on the canvas */\n.ds-filter-widget { display: flex; align-items: center; min-height: 100%; }\n.ds-filter-widget[data-fill] > * { flex: 1; }\n.ds-filter-widget[data-fill] .ds-dd, .ds-filter-widget[data-fill] .ds-dd > button { width: 100%; }\n.ds-filter-missing { display: grid; place-items: center; height: 100%; min-height: 36px; border: 1.5px dashed var(--ds-color-border-control); border-radius: var(--ds-radius-control); color: var(--ds-color-text-subtle); font-size: var(--ds-type-label-size); }\n.ds-container .ds-filter-widget { min-height: 0; }\n.ds-filter-pick { border-radius: var(--ds-radius-control); cursor: pointer; outline: 2px solid transparent; outline-offset: 2px; transition: outline-color 120ms; }\n.ds-filter-pick:hover { outline-color: color-mix(in srgb, var(--ds-color-action-primary) 45%, transparent); }\n.ds-filter-pick[data-selected] { outline-color: var(--ds-color-action-primary); }\n.ds-filter-pick * { pointer-events: none; }\n.ds-filters[data-look=\"plain\"] { background: transparent; padding-left: 0; padding-right: 0; box-shadow: none; }\n/* look \"segmented\": the icon and the filters share one sunken track; each filter is a borderless chip on the card\n colour, with no leading icon; the page stepper's arrows use the selection colour. */\n.ds-filters-track { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 2px; border-radius: var(--ds-radius-control); background: var(--ds-color-surface-sunken); }\n.ds-filters[data-look=\"segmented\"] .ds-filters-icon { border: 0; width: auto; padding: 0 var(--ds-space-sm); }\n.ds-filters-icon svg { width: var(--ds-filter-icon-size, 18px); height: var(--ds-filter-icon-size, 18px); }\n.ds-filters[data-look=\"segmented\"] .ds-pill-btn { border: 0; border-radius: calc(var(--ds-radius-control) / 2); background: var(--ds-color-surface-card); box-shadow: none; padding: 0 var(--ds-space-sm); font-family: var(--ds-font-heading); gap: var(--ds-space-xs); }\n.ds-filters[data-look=\"segmented\"] .ds-pill-btn > svg:first-child:not(:last-child) { display: none; }\n.ds-filters[data-look=\"segmented\"] .ds-stepper { gap: 2px; }\n.ds-filters[data-look=\"segmented\"] .ds-step { border: 0; border-radius: calc(var(--ds-radius-control) / 2); background: var(--ds-control-step-bg, var(--ds-color-surface-selection)); width: 32px; }\n.ds-filters[data-editable] { cursor: pointer; outline: 1.5px dashed transparent; outline-offset: 2px; transition: outline-color 120ms; }\n.ds-filters[data-editable]:hover { outline-color: color-mix(in srgb, var(--ds-color-action-primary) 45%, transparent); }\n.ds-filters[data-picked] { outline: 2px solid var(--ds-color-action-primary) !important; }\n/* Small elements in a widget's header, and drag and drop in the Builder */\n.ds-panel-addons { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }\n.ds-panel-addons > .ds-panel { padding: 0; background: none; box-shadow: none; border: 0; min-height: 0; height: auto; }\n.ds-panel-addons > .ds-panel > .ds-panel-head { display: none; }\n.ds-panel-addons .ds-panel-body { container-type: normal; flex: none; }\n.ds-panel-addons .ds-status { padding: 0; }\n.ds-panel[data-nested][draggable=\"true\"] { cursor: grab; }\n.ds-panel[data-drop-over] { outline: 2px dashed var(--ds-color-action-primary) !important; outline-offset: 3px; background-color: color-mix(in srgb, var(--ds-color-action-primary) 6%, var(--ds-color-surface-card)); }\n.ds-panel[data-tone=\"plain\"] { min-height: 0; }\n/* Atoms: the pieces of a hand-built card */\n.ds-atom-text { display: block; line-height: 1.35; font-size: var(--ds-type-body-size); }\n.ds-atom-text[data-size=\"xs\"] { font-size: 11px; } .ds-atom-text[data-size=\"sm\"] { font-size: var(--ds-type-label-size); }\n.ds-atom-text[data-size=\"lg\"] { font-size: 18px; font-family: var(--ds-font-heading); } .ds-atom-text[data-size=\"xl\"] { font-size: 24px; font-family: var(--ds-font-heading); }\n.ds-atom-text[data-weight=\"medium\"] { font-weight: 500; } .ds-atom-text[data-weight=\"bold\"] { font-weight: 700; }\n.ds-atom-value { display: inline-flex; align-items: baseline; gap: 6px; font-family: var(--ds-font-heading); font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--ds-color-text-primary); }\n.ds-atom-value small { font-family: var(--ds-font-body); font-size: var(--ds-type-label-size); font-weight: 400; color: var(--ds-color-text-subtle); }\n.ds-atom-value[data-size=\"xs\"] { font-size: 14px; } .ds-atom-value[data-size=\"sm\"] { font-size: 18px; } .ds-atom-value[data-size=\"md\"] { font-size: 24px; } .ds-atom-value[data-size=\"lg\"] { font-size: 30px; } .ds-atom-value[data-size=\"xl\"] { font-size: 40px; }\n.ds-atom-progress { display: flex; align-items: center; gap: 8px; }\n.ds-atom-progress > span { flex: 1; border-radius: 999px; background: var(--ds-color-surface-sunken); overflow: hidden; }\n.ds-atom-progress > span > span { display: block; height: 100%; border-radius: inherit; transition: width 600ms cubic-bezier(.2,.7,.2,1); }\n.ds-atom-progress small { font-size: var(--ds-type-label-size); color: var(--ds-color-text-subtle); font-variant-numeric: tabular-nums; }\n.ds-atom-icon { display: inline-grid; place-items: center; border-radius: 999px; }\n.ds-atom-divider { border: 0; border-top: 1px solid var(--ds-color-border-default); margin: 4px 0; width: 100%; }\n.ds-atom-divider[data-dashed] { border-top-style: dashed; }\n.ds-atom-divider[data-dir=\"vertical\"] { border-top: 0; border-left: 1px solid var(--ds-color-border-default); width: 0; height: 100%; margin: 0 4px; }\n.ds-container > .ds-panel[data-tone=\"plain\"] { padding: 0; }\n/* Card-less pieces (atoms, badges, filters) size to their content */\n.ds-panel[data-tone=\"plain\"] > .ds-panel-body { container-type: normal; }\n/* Slots: nodes inside nodes */\n.ds-slot { min-width: 0; }\n.ds-pager[data-layout=\"simple\"] { display: flex; align-items: center; justify-content: flex-end; gap: var(--ds-space-sm); flex-wrap: wrap; color: var(--ds-color-text-subtle); font-size: var(--ds-type-label-size); }\n.ds-pager[data-layout=\"simple\"] .ds-pager-range { margin-right: var(--ds-space-xs); }\n.ds-slot[data-slot=\"toolbar\"] { display: flex; flex-wrap: wrap; gap: var(--ds-space-sm); align-items: center; margin-bottom: var(--ds-space-sm); }\n.ds-button { display: inline-flex; align-items: center; justify-content: center; gap: var(--ds-space-xs); height: var(--ds-control-height, 36px); padding: 0 var(--ds-space-md); border: 1px solid var(--ds-color-border-default); border-radius: var(--ds-radius-control); background: var(--ds-color-surface-card); color: var(--ds-color-text-primary); font: 500 var(--ds-type-label-size)/1 var(--ds-font-body); cursor: pointer; white-space: nowrap; transition: background 140ms ease, border-color 140ms ease, opacity 140ms ease; }\n.ds-button[data-size=\"sm\"] { height: calc(var(--ds-control-height, 36px) - 8px); padding: 0 var(--ds-space-sm); }\n.ds-button[data-icon-only] { padding: 0; width: var(--ds-control-height, 36px); }\n.ds-button[data-icon-only][data-size=\"sm\"] { width: calc(var(--ds-control-height, 36px) - 8px); }\n.ds-button[data-variant=\"primary\"] { background: var(--ds-color-action-primary); border-color: var(--ds-color-action-primary); color: var(--ds-color-action-on-primary); }\n.ds-button[data-variant=\"subtle\"] { background: var(--ds-color-surface-selection); border-color: transparent; color: var(--ds-color-action-primary); }\n.ds-button[data-variant=\"link\"] { background: none; border-color: transparent; color: var(--ds-color-action-primary); padding: 0; height: auto; }\n.ds-button:hover:not(:disabled) { border-color: var(--ds-color-action-primary); }\n.ds-button[data-variant=\"link\"]:hover:not(:disabled) { text-decoration: underline; }\n.ds-button:disabled { opacity: .4; cursor: default; }\n.ds-button:focus-visible { outline: 2px solid var(--ds-color-border-focus); outline-offset: 1px; }\n.ds-slot[data-slot=\"footer\"] { margin-top: var(--ds-space-sm); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }\n.ds-slot[data-empty] { display: grid; place-items: center; min-height: 44px; border: 1.5px dashed var(--ds-color-border-control); border-radius: var(--ds-radius-control); color: var(--ds-color-text-subtle); font-size: var(--ds-type-label-size); padding: 8px; }\n.ds-slot-hint { pointer-events: none; }\n.ds-panel[data-drop-over] [data-slot][data-empty] { border-color: var(--ds-color-action-primary); color: var(--ds-color-action-primary); background: color-mix(in srgb, var(--ds-color-action-primary) 6%, transparent); }\n.ds-card-body { min-height: 0; }\n.ds-card-body > .ds-panel { flex: none; }\n.ds-tabs { display: flex; flex-direction: column; gap: var(--ds-space-sm); height: 100%; }\n.ds-tabs-bar { display: flex; gap: 2px; border-bottom: 1px solid var(--ds-color-border-default); }\n.ds-tabs-bar button { border: 0; background: none; padding: 8px 12px; font: inherit; font-size: var(--ds-type-label-size); color: var(--ds-color-text-subtle); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }\n.ds-tabs-bar button[aria-selected=\"true\"] { color: var(--ds-color-action-primary); border-bottom-color: var(--ds-color-action-primary); font-weight: 600; }\n.ds-tabs-panel { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: var(--ds-space-sm); overflow: auto; }\n.ds-repeater { height: 100%; overflow: auto; }\n.ds-repeater-item { display: flex; flex-direction: column; gap: 8px; }\n.ds-repeater-item > .ds-panel { height: auto; }\n";
1508
1510
 
1509
1511
  /** Every built-in widget: data widgets, layout nodes, the canvas Filter and the atoms. */
1510
1512
  declare const builtInWidgets: WidgetDefinition[];
package/dist/index.js CHANGED
@@ -116,7 +116,7 @@ import {
116
116
  translator,
117
117
  validateDocument,
118
118
  widgetChecks
119
- } from "./chunk-A6ITB5K3.js";
119
+ } from "./chunk-42NZL3WV.js";
120
120
  import {
121
121
  createStateProxy,
122
122
  getPath,
@@ -1808,6 +1808,10 @@ function themeCssVars(theme, mode) {
1808
1808
  if (s.control?.iconSize) out["--ds-filter-icon-size"] = `${s.control.iconSize}px`;
1809
1809
  if (s.control?.stepBackground && !UNSAFE_CSS.test(s.control.stepBackground))
1810
1810
  out["--ds-control-step-bg"] = s.control.stepBackground;
1811
+ if (s.control?.menuWidth === "trigger") {
1812
+ out["--ds-menu-width"] = "var(--ds-trigger-width)";
1813
+ out["--ds-menu-min-width"] = "0px";
1814
+ }
1811
1815
  if (s.control?.iconColor && !UNSAFE_CSS.test(s.control.iconColor))
1812
1816
  out["--ds-filter-icon-color"] = s.control.iconColor;
1813
1817
  if (s.control?.valueColor && !UNSAFE_CSS.test(s.control.valueColor))
@@ -2444,7 +2448,9 @@ function Floating({
2444
2448
  position: "fixed",
2445
2449
  top: pos?.top ?? -9999,
2446
2450
  left: pos?.left ?? -9999,
2447
- minWidth: anchor.current?.offsetWidth
2451
+ minWidth: anchor.current?.offsetWidth,
2452
+ // The trigger's width, for themes that size option menus to it (`scale.control.menuWidth: "trigger"`).
2453
+ ["--ds-trigger-width"]: `${anchor.current?.offsetWidth ?? 0}px`
2448
2454
  },
2449
2455
  children
2450
2456
  }
@@ -4494,7 +4500,7 @@ function useCountUp(target, ms = 700) {
4494
4500
  const step = (now) => {
4495
4501
  const t = Math.min(1, (now - start) / ms);
4496
4502
  const v = a + (target - a) * easeOut(t);
4497
- setShown(Number.isInteger(target) && t === 1 ? target : v);
4503
+ setShown(t === 1 ? target : Number.isInteger(target) ? Math.round(v) : v);
4498
4504
  if (t < 1) raf = requestAnimationFrame(step);
4499
4505
  else from.current = target;
4500
4506
  };
@@ -6619,6 +6625,7 @@ function Grid({
6619
6625
  if (!el || editable || !base.fit.has(panel) || typeof ResizeObserver === "undefined") return;
6620
6626
  const measure = () => {
6621
6627
  const target2 = el.firstElementChild;
6628
+ if (target2?.querySelector('[aria-busy="true"]')) return;
6622
6629
  el.setAttribute("data-measuring", "");
6623
6630
  const px = target2?.offsetHeight ?? 0;
6624
6631
  el.removeAttribute("data-measuring");
@@ -7352,7 +7359,7 @@ var RENDERER_CSS = `
7352
7359
  .ds-tile-main { display: flex; align-items: baseline; gap: var(--ds-space-xs); flex-wrap: wrap; }
7353
7360
  .ds-tile[data-active] .ds-tile-label { color: var(--ds-color-text-primary); font-weight: 600; }
7354
7361
  .ds-tile-label { font-size: var(--ds-type-label-size); color: var(--ds-color-text-subtle); text-transform: none; gap: 2px; }
7355
- .ds-tile-value { font-family: var(--ds-type-kpi-family); font-size: 24px; line-height: 30px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ds-color-text-primary); }
7362
+ .ds-tile-value { font-family: var(--ds-type-kpi-family); font-size: 24px; line-height: 30px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ds-color-text-primary); }
7356
7363
  .ds-tile-caption { font-size: var(--ds-type-label-size); color: var(--ds-color-text-subtle); margin-top: auto; }
7357
7364
 
7358
7365
  .ds-chart { display: flex; flex-direction: column; height: 100%; }
@@ -7434,7 +7441,8 @@ var RENDERER_CSS = `
7434
7441
 
7435
7442
  .ds-pop { z-index: calc(var(--ds-z-overlay) + 10); max-width: min(92vw, 640px); background: var(--ds-color-surface-overlay); border: 1px solid color-mix(in srgb, var(--ds-color-border-default) 70%, transparent); border-radius: 12px; box-shadow: 0 14px 36px rgba(13,13,13,.16), 0 2px 6px rgba(13,13,13,.06); padding: 6px; animation: ds-pop-in 180ms cubic-bezier(.2,.7,.2,1) both; transform-origin: top left; }
7436
7443
  @keyframes ds-pop-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
7437
- .ds-menu { display: grid; gap: 2px; max-height: 300px; overflow: auto; outline: none; min-width: 200px; }
7444
+ .ds-menu { display: grid; gap: 2px; max-height: 300px; overflow: auto; outline: none; min-width: var(--ds-menu-min-width, 200px); }
7445
+ .ds-pop:has(> .ds-menu) { width: var(--ds-menu-width, auto); }
7438
7446
  .ds-menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ds-color-text-primary); font: 400 var(--ds-control-font-size, 13px)/18px var(--ds-font-body); text-align: left; cursor: pointer; transition: background 120ms ease, color 120ms ease; }
7439
7447
  .ds-menu-item:hover, .ds-menu-item:focus-visible { background: color-mix(in srgb, var(--ds-color-action-primary) 8%, transparent); outline: none; }
7440
7448
  .ds-menu-item[aria-selected="true"], .ds-menu-item[aria-pressed="true"] { color: var(--ds-color-action-primary); font-weight: 600; background: var(--ds-color-surface-selection); }