@dashspec/renderer 0.1.35 → 0.1.36
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.
- package/CHANGELOG.md +13 -0
- package/dist/{chunk-42NZL3WV.js → chunk-AB4M257L.js} +11 -3
- package/dist/chunk-AB4M257L.js.map +1 -0
- package/dist/{core-Dw1UQ3Me.d.ts → core-BLojKw18.d.ts} +17 -1
- package/dist/core.d.ts +1 -1
- package/dist/core.js +1 -1
- package/dist/index.d.ts +7 -4
- package/dist/index.js +38 -6
- package/dist/index.js.map +1 -1
- package/dist/schema.json +3 -0
- package/docs/json-format.md +1 -0
- package/docs/widgets.md +1 -1
- package/package.json +1 -1
- package/dist/chunk-42NZL3WV.js.map +0 -1
|
@@ -1025,16 +1025,19 @@ declare const Spec: z.ZodObject<{
|
|
|
1025
1025
|
rowHeight: z.ZodDefault<z.ZodNumber>;
|
|
1026
1026
|
gap: z.ZodDefault<z.ZodNumber>;
|
|
1027
1027
|
exactHeights: z.ZodOptional<z.ZodBoolean>;
|
|
1028
|
+
fillRows: z.ZodOptional<z.ZodBoolean>;
|
|
1028
1029
|
}, "strict", z.ZodTypeAny, {
|
|
1029
1030
|
columns: 60 | 12 | 24;
|
|
1030
1031
|
rowHeight: number;
|
|
1031
1032
|
gap: number;
|
|
1032
1033
|
exactHeights?: boolean | undefined;
|
|
1034
|
+
fillRows?: boolean | undefined;
|
|
1033
1035
|
}, {
|
|
1034
1036
|
columns?: 60 | 12 | 24 | undefined;
|
|
1035
1037
|
rowHeight?: number | undefined;
|
|
1036
1038
|
gap?: number | undefined;
|
|
1037
1039
|
exactHeights?: boolean | undefined;
|
|
1040
|
+
fillRows?: boolean | undefined;
|
|
1038
1041
|
}>>;
|
|
1039
1042
|
connections: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1040
1043
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -2753,6 +2756,7 @@ declare const Spec: z.ZodObject<{
|
|
|
2753
2756
|
rowHeight: number;
|
|
2754
2757
|
gap: number;
|
|
2755
2758
|
exactHeights?: boolean | undefined;
|
|
2759
|
+
fillRows?: boolean | undefined;
|
|
2756
2760
|
};
|
|
2757
2761
|
layouts: {
|
|
2758
2762
|
breakpoint: "desktop" | "tablet" | "mobile" | "tv";
|
|
@@ -3088,6 +3092,7 @@ declare const Spec: z.ZodObject<{
|
|
|
3088
3092
|
rowHeight?: number | undefined;
|
|
3089
3093
|
gap?: number | undefined;
|
|
3090
3094
|
exactHeights?: boolean | undefined;
|
|
3095
|
+
fillRows?: boolean | undefined;
|
|
3091
3096
|
} | undefined;
|
|
3092
3097
|
connections?: Record<string, {
|
|
3093
3098
|
headers?: Record<string, string> | undefined;
|
|
@@ -3429,16 +3434,19 @@ declare const Dashboard: z.ZodObject<{
|
|
|
3429
3434
|
rowHeight: z.ZodDefault<z.ZodNumber>;
|
|
3430
3435
|
gap: z.ZodDefault<z.ZodNumber>;
|
|
3431
3436
|
exactHeights: z.ZodOptional<z.ZodBoolean>;
|
|
3437
|
+
fillRows: z.ZodOptional<z.ZodBoolean>;
|
|
3432
3438
|
}, "strict", z.ZodTypeAny, {
|
|
3433
3439
|
columns: 60 | 12 | 24;
|
|
3434
3440
|
rowHeight: number;
|
|
3435
3441
|
gap: number;
|
|
3436
3442
|
exactHeights?: boolean | undefined;
|
|
3443
|
+
fillRows?: boolean | undefined;
|
|
3437
3444
|
}, {
|
|
3438
3445
|
columns?: 60 | 12 | 24 | undefined;
|
|
3439
3446
|
rowHeight?: number | undefined;
|
|
3440
3447
|
gap?: number | undefined;
|
|
3441
3448
|
exactHeights?: boolean | undefined;
|
|
3449
|
+
fillRows?: boolean | undefined;
|
|
3442
3450
|
}>>;
|
|
3443
3451
|
connections: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3444
3452
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -5157,6 +5165,7 @@ declare const Dashboard: z.ZodObject<{
|
|
|
5157
5165
|
rowHeight: number;
|
|
5158
5166
|
gap: number;
|
|
5159
5167
|
exactHeights?: boolean | undefined;
|
|
5168
|
+
fillRows?: boolean | undefined;
|
|
5160
5169
|
};
|
|
5161
5170
|
layouts: {
|
|
5162
5171
|
breakpoint: "desktop" | "tablet" | "mobile" | "tv";
|
|
@@ -5492,6 +5501,7 @@ declare const Dashboard: z.ZodObject<{
|
|
|
5492
5501
|
rowHeight?: number | undefined;
|
|
5493
5502
|
gap?: number | undefined;
|
|
5494
5503
|
exactHeights?: boolean | undefined;
|
|
5504
|
+
fillRows?: boolean | undefined;
|
|
5495
5505
|
} | undefined;
|
|
5496
5506
|
connections?: Record<string, {
|
|
5497
5507
|
headers?: Record<string, string> | undefined;
|
|
@@ -5778,6 +5788,7 @@ declare const Dashboard: z.ZodObject<{
|
|
|
5778
5788
|
rowHeight: number;
|
|
5779
5789
|
gap: number;
|
|
5780
5790
|
exactHeights?: boolean | undefined;
|
|
5791
|
+
fillRows?: boolean | undefined;
|
|
5781
5792
|
};
|
|
5782
5793
|
layouts: {
|
|
5783
5794
|
breakpoint: "desktop" | "tablet" | "mobile" | "tv";
|
|
@@ -6129,6 +6140,7 @@ declare const Dashboard: z.ZodObject<{
|
|
|
6129
6140
|
rowHeight?: number | undefined;
|
|
6130
6141
|
gap?: number | undefined;
|
|
6131
6142
|
exactHeights?: boolean | undefined;
|
|
6143
|
+
fillRows?: boolean | undefined;
|
|
6132
6144
|
} | undefined;
|
|
6133
6145
|
connections?: Record<string, {
|
|
6134
6146
|
headers?: Record<string, string> | undefined;
|
|
@@ -6636,16 +6648,20 @@ declare const Grid: z.ZodObject<{
|
|
|
6636
6648
|
* rows), and the gap below every panel stays `gap`. Authored sizes keep their meaning. Off by default.
|
|
6637
6649
|
*/
|
|
6638
6650
|
exactHeights: z.ZodOptional<z.ZodBoolean>;
|
|
6651
|
+
/** When a panel is hidden, the others that start on its row share the row's width (a row of cards stays full). */
|
|
6652
|
+
fillRows: z.ZodOptional<z.ZodBoolean>;
|
|
6639
6653
|
}, "strict", z.ZodTypeAny, {
|
|
6640
6654
|
columns: 60 | 12 | 24;
|
|
6641
6655
|
rowHeight: number;
|
|
6642
6656
|
gap: number;
|
|
6643
6657
|
exactHeights?: boolean | undefined;
|
|
6658
|
+
fillRows?: boolean | undefined;
|
|
6644
6659
|
}, {
|
|
6645
6660
|
columns?: 60 | 12 | 24 | undefined;
|
|
6646
6661
|
rowHeight?: number | undefined;
|
|
6647
6662
|
gap?: number | undefined;
|
|
6648
6663
|
exactHeights?: boolean | undefined;
|
|
6664
|
+
fillRows?: boolean | undefined;
|
|
6649
6665
|
}>;
|
|
6650
6666
|
|
|
6651
6667
|
/** A modal or drawer with its own panels. */
|
|
@@ -7572,7 +7588,7 @@ declare class TransformError extends Error {
|
|
|
7572
7588
|
declare function applyTransform(data: unknown, steps: readonly Step[], root: Scope, opts?: TransformOptions): unknown;
|
|
7573
7589
|
|
|
7574
7590
|
/** This package's version. A test keeps it equal to package.json's; bump both together. */
|
|
7575
|
-
declare const RENDERER_VERSION = "0.1.
|
|
7591
|
+
declare const RENDERER_VERSION = "0.1.36";
|
|
7576
7592
|
/**
|
|
7577
7593
|
* Whether `version` satisfies `range`. Supports what documents need: "1.2.3" (that or newer within the major, like
|
|
7578
7594
|
* "^"), ">=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-
|
|
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-BLojKw18.js';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import 'react';
|
package/dist/core.js
CHANGED
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-
|
|
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-
|
|
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-BLojKw18.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-BLojKw18.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';
|
|
@@ -862,6 +862,7 @@ declare function createDashboardRuntime(doc: Dashboard, options?: RuntimeOptions
|
|
|
862
862
|
rowHeight: number;
|
|
863
863
|
gap: number;
|
|
864
864
|
exactHeights?: boolean | undefined;
|
|
865
|
+
fillRows?: boolean | undefined;
|
|
865
866
|
};
|
|
866
867
|
layouts: {
|
|
867
868
|
breakpoint: "desktop" | "tablet" | "mobile" | "tv";
|
|
@@ -1290,6 +1291,8 @@ interface GridProps {
|
|
|
1290
1291
|
gap: number;
|
|
1291
1292
|
/** Pixel-exact heights (viewer only): rows of 1px, the gap kept below each panel. */
|
|
1292
1293
|
exactHeights?: boolean;
|
|
1294
|
+
/** Hidden panels: the rest of their row share its width. */
|
|
1295
|
+
fillRows?: boolean;
|
|
1293
1296
|
children: (panel: string) => ReactNode;
|
|
1294
1297
|
/** Builder only. */
|
|
1295
1298
|
editable?: boolean;
|
|
@@ -1311,7 +1314,7 @@ interface GridProps {
|
|
|
1311
1314
|
hidden?: ReadonlySet<string>;
|
|
1312
1315
|
}
|
|
1313
1316
|
/** Same grid for viewers (locked) and the Builder (editable). */
|
|
1314
|
-
declare function Grid({ layouts, view, columns, rowHeight, gap, exactHeights, children, editable, onLayoutChange, hidden, onDrop, dropSize, breakpoint, flowStyle, dragOnto, }: GridProps): react_jsx_runtime.JSX.Element;
|
|
1317
|
+
declare function Grid({ layouts, view, columns, rowHeight, gap, exactHeights, fillRows, children, editable, onLayoutChange, hidden, onDrop, dropSize, breakpoint, flowStyle, dragOnto, }: GridProps): react_jsx_runtime.JSX.Element;
|
|
1315
1318
|
|
|
1316
1319
|
type Obj$2 = Record<string, unknown>;
|
|
1317
1320
|
interface DashboardRendererProps extends NetworkOptions {
|
|
@@ -1506,7 +1509,7 @@ declare function useDashboardActions(id: string): {
|
|
|
1506
1509
|
};
|
|
1507
1510
|
|
|
1508
1511
|
/** One stylesheet for the renderer's own chrome. Everything reads `--ds-*` tokens. */
|
|
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";
|
|
1512
|
+
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-root :is(button, [role=\"button\"], a, [tabindex]):focus:not(:focus-visible) { outline: none; }\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";
|
|
1510
1513
|
|
|
1511
1514
|
/** Every built-in widget: data widgets, layout nodes, the canvas Filter and the atoms. */
|
|
1512
1515
|
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-
|
|
119
|
+
} from "./chunk-AB4M257L.js";
|
|
120
120
|
import {
|
|
121
121
|
createStateProxy,
|
|
122
122
|
getPath,
|
|
@@ -5907,8 +5907,17 @@ function cartesian(data, source, spec, type, h, colors) {
|
|
|
5907
5907
|
const single = series.length === 1 && !spec.range;
|
|
5908
5908
|
const isPartial = cats.map((c) => Boolean(spec.partial && field(firstRow.get(String(c)), spec.partial)));
|
|
5909
5909
|
const full = single ? (series[0]?.values ?? []).filter((v, i) => v !== null && !isPartial[i]) : [];
|
|
5910
|
-
const
|
|
5911
|
-
const
|
|
5910
|
+
const given = typeof spec.average === "number" ? spec.average : spec.average !== void 0 ? toNumber(field(source, spec.average)) ?? void 0 : void 0;
|
|
5911
|
+
const avg = given ?? (full.length ? full.reduce((a, b) => a + b, 0) / full.length : void 0);
|
|
5912
|
+
const toneOf2 = (i) => {
|
|
5913
|
+
if (!spec.toneField || !spec.toneMap) return void 0;
|
|
5914
|
+
const raw = field(firstRow.get(String(cats[i])), spec.toneField);
|
|
5915
|
+
const t = raw === null || raw === void 0 ? void 0 : spec.toneMap[String(raw)];
|
|
5916
|
+
if (!t || !Object.hasOwn(spec.toneMap, String(raw))) return void 0;
|
|
5917
|
+
return t === "good" ? colors?.good : t === "bad" ? colors?.bad : t === "partial" ? colors?.partial : t;
|
|
5918
|
+
};
|
|
5919
|
+
const toned = Boolean(spec.toneField && spec.toneMap && single && colors);
|
|
5920
|
+
const colourByAvg = spec.colorBy === "average" && single && avg !== void 0 && (toned || given !== void 0 || full.length >= 3) && colors;
|
|
5912
5921
|
const showValues = spec.valueLabels === true || spec.valueLabels !== false && spec.valueLabels === "auto" && cats.length <= 7;
|
|
5913
5922
|
const out = [];
|
|
5914
5923
|
const stackedTotals = type === "bar" && stack && !spec.normalized && !spec.range && series.length > 1;
|
|
@@ -5928,7 +5937,7 @@ function cartesian(data, source, spec, type, h, colors) {
|
|
|
5928
5937
|
for (const s of series) {
|
|
5929
5938
|
const styled = type === "bar" && single && colors ? s.values.map((v, i) => ({
|
|
5930
5939
|
value: v,
|
|
5931
|
-
itemStyle: isPartial[i] ? { color: colors.partial } : colourByAvg && v !== null ? { color: v >= avg ? colors.good : colors.bad } : void 0
|
|
5940
|
+
itemStyle: isPartial[i] ? { color: colors.partial } : toned ? toneOf2(i) ? { color: toneOf2(i) } : void 0 : colourByAvg && v !== null ? { color: v >= avg ? colors.good : colors.bad } : void 0
|
|
5932
5941
|
})) : void 0;
|
|
5933
5942
|
if (s.base)
|
|
5934
5943
|
out.push({
|
|
@@ -6557,6 +6566,7 @@ function Grid({
|
|
|
6557
6566
|
rowHeight,
|
|
6558
6567
|
gap,
|
|
6559
6568
|
exactHeights = false,
|
|
6569
|
+
fillRows = false,
|
|
6560
6570
|
children,
|
|
6561
6571
|
editable = false,
|
|
6562
6572
|
onLayoutChange,
|
|
@@ -6589,13 +6599,33 @@ function Grid({
|
|
|
6589
6599
|
const scale2 = (l) => exact ? (l ?? []).map((i) => ({ ...i, y: i.y * unit, h: i.h * unit, minH: void 0, maxH: void 0 })) : l ?? [];
|
|
6590
6600
|
const scaled = exact ? Object.fromEntries(Object.entries(base.layouts).map(([bp, l]) => [bp, scale2(l)])) : base.layouts;
|
|
6591
6601
|
if (!hidden?.size || editable) return { rgl: scaled, panels: base.panels, cols: base.cols };
|
|
6592
|
-
const keep = (l) =>
|
|
6602
|
+
const keep = (l) => {
|
|
6603
|
+
const all = l ?? [];
|
|
6604
|
+
const shown = all.filter((i) => !hidden.has(i.i));
|
|
6605
|
+
if (!fillRows) return shown;
|
|
6606
|
+
const rows = /* @__PURE__ */ new Map();
|
|
6607
|
+
for (const i of all) rows.set(i.y, [...rows.get(i.y) ?? [], i]);
|
|
6608
|
+
const out = /* @__PURE__ */ new Map();
|
|
6609
|
+
for (const row of rows.values()) {
|
|
6610
|
+
const left = row.filter((i) => !hidden.has(i.i)).sort((a, b) => a.x - b.x);
|
|
6611
|
+
if (left.length === row.length || left.length === 0) continue;
|
|
6612
|
+
const start = Math.min(...row.map((i) => i.x));
|
|
6613
|
+
const width = Math.max(...row.map((i) => i.x + i.w)) - start;
|
|
6614
|
+
let x = start;
|
|
6615
|
+
left.forEach((i, n) => {
|
|
6616
|
+
const w = Math.floor(width / left.length) + (n < width % left.length ? 1 : 0);
|
|
6617
|
+
out.set(i.i, { ...i, x, w });
|
|
6618
|
+
x += w;
|
|
6619
|
+
});
|
|
6620
|
+
}
|
|
6621
|
+
return shown.map((i) => out.get(i.i) ?? i);
|
|
6622
|
+
};
|
|
6593
6623
|
return {
|
|
6594
6624
|
rgl: Object.fromEntries(Object.entries(scaled).map(([bp, l]) => [bp, keep(l)])),
|
|
6595
6625
|
panels: base.panels.filter((p) => !hidden.has(p)),
|
|
6596
6626
|
cols: base.cols
|
|
6597
6627
|
};
|
|
6598
|
-
}, [base, hidden, editable, exact, unit]);
|
|
6628
|
+
}, [base, hidden, editable, exact, unit, fillRows]);
|
|
6599
6629
|
const [fitRows, setFitRows] = useState8({});
|
|
6600
6630
|
const fitted = useMemo7(() => {
|
|
6601
6631
|
if (editable || base.fit.size === 0) return rgl;
|
|
@@ -7675,6 +7705,7 @@ var RENDERER_CSS = `
|
|
|
7675
7705
|
.ds-button:hover:not(:disabled) { border-color: var(--ds-color-action-primary); }
|
|
7676
7706
|
.ds-button[data-variant="link"]:hover:not(:disabled) { text-decoration: underline; }
|
|
7677
7707
|
.ds-button:disabled { opacity: .4; cursor: default; }
|
|
7708
|
+
.ds-root :is(button, [role="button"], a, [tabindex]):focus:not(:focus-visible) { outline: none; }
|
|
7678
7709
|
.ds-button:focus-visible { outline: 2px solid var(--ds-color-border-focus); outline-offset: 1px; }
|
|
7679
7710
|
.ds-slot[data-slot="footer"] { margin-top: var(--ds-space-sm); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
|
|
7680
7711
|
.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; }
|
|
@@ -8274,6 +8305,7 @@ function DashboardBody({
|
|
|
8274
8305
|
rowHeight: grid.rowHeight,
|
|
8275
8306
|
gap: grid.gap,
|
|
8276
8307
|
exactHeights: grid.exactHeights,
|
|
8308
|
+
fillRows: grid.fillRows,
|
|
8277
8309
|
editable,
|
|
8278
8310
|
hidden,
|
|
8279
8311
|
...breakpoint ? { breakpoint } : {},
|