@altertable/data-app-react 0.74.0 → 0.76.0

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.
@@ -1,18 +1,18 @@
1
1
  import { DataAppError, appDiagnostics, createAnnotationClient, getDataAppNavigation, getDataAppTransport } from "@altertable/data-app/client";
2
2
  import { dataAppTitle } from "@altertable/data-app/config";
3
- import { KEY_SEPARATOR, availableDatePresets, choiceVariable, createDimensionFilter, dateRangeVariable, defineAppVariables, dimensionMemberKey, dimensionSource, displayedSnapshot, downloadBlob, facetSource, inclusiveDays, invariant, isDataAppPresentation, localFrameBridge, multiChoiceVariable, numberOperatorLabels, randomUuid, resolveDataView, searchVariable, validateChoiceOptions, withinBounds } from "@altertable/data-app/internal";
3
+ import { KEY_SEPARATOR, choiceVariable, createDimensionFilter, dateTimeRangePresets, dateTimeRangeVariable, defineAppVariables, dimensionMemberKey, dimensionSource, displayedSnapshot, downloadBlob, facetSource, fixedUnitMilliseconds, invariant, isDataAppPresentation, localFrameBridge, multiChoiceVariable, numberOperatorLabels, randomUuid, resolveDataView, searchVariable, validateChoiceOptions } from "@altertable/data-app/internal";
4
4
  import { QueryClient, QueryClientProvider, hashKey, useQueries, useQuery, useQueryClient } from "@tanstack/react-query";
5
5
  import { Children, Component, Fragment, cloneElement, createContext, createElement, isValidElement, useCallback, useContext, useEffect, useEffectEvent, useId, useImperativeHandle, useLayoutEffect, useMemo, useReducer, useRef, useState, useSyncExternalStore } from "react";
6
- import { Button, CalendarCell, CalendarGrid, CalendarGridBody, CalendarGridHeader, CalendarHeaderCell, CalendarMonthPicker, CalendarYearPicker, DateInput, DateRangePicker, DateSegment, Dialog, DialogTrigger, Group, I18nProvider, Input, Label, ListBox, ListBoxItem, Menu, MenuItem, MenuSection, MenuTrigger, NumberField, Popover, RangeCalendar, RootMenuTriggerStateContext, Select, SelectValue, Separator } from "react-aria-components";
6
+ import { Button, CalendarCell, CalendarGrid, CalendarGridBody, CalendarGridHeader, CalendarHeaderCell, Dialog, DialogTrigger, Group, I18nProvider, Input, Label, ListBox, ListBoxItem, Menu, MenuItem, MenuSection, MenuTrigger, NumberField, Popover, RangeCalendar, RangeCalendarStateContext, RootMenuTriggerStateContext, Select, SelectValue, Separator } from "react-aria-components";
7
7
  import { createRoot } from "react-dom/client";
8
- import { FloatingFocusManager, FloatingPortal, autoUpdate, flip, offset, safePolygon, shift, size, useClick, useDismiss, useFloating, useHover, useInteractions, useMergeRefs, useRole } from "@floating-ui/react";
8
+ import { FloatingDelayGroup, FloatingFocusManager, FloatingPortal, autoUpdate, flip, offset, safePolygon, shift, size, useClick, useDelayGroup, useDismiss, useFloating, useHover, useInteractions, useMergeRefs, useRole } from "@floating-ui/react";
9
9
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
10
10
  import { ArrowDownRight, ArrowLeft, ArrowRight, ArrowUp, ArrowUpRight, BookOpenText, CalendarDays, Check, ChevronDown, ChevronLeft, ChevronRight, CircleAlert, Clock3, Copy, Download, Ellipsis, FileCode2, FilterX, Info, ListFilter, LoaderCircle, Minus, Moon, Presentation, Radio as Radio$1, RotateCw, Search, SlidersHorizontal, Square, SquareDashedMousePointer, Sun, TextWrap, Workflow, X } from "lucide-react";
11
11
  import { Tab, TabList, TabPanel, TabPanels, Tabs } from "react-aria-components/Tabs";
12
- import { formatCount, formatDate, formatDateRange, formatDateTime, formatMetric, parseDateTime, pluralize } from "@altertable/data-app/format";
13
- import { parseDate, today } from "@internationalized/date";
14
- import { MessageRoutingError, defineQueryNames, parseFacetOptions } from "@altertable/data-app/contract";
12
+ import { MessageRoutingError, defineQueryNames, formatDateTimeBound, formatDateTimeRange, parseDateTimeBound, parseDateTimeRange, parseFacetOptions, resolveDateTimeRange, serializeDateTimeRange } from "@altertable/data-app/contract";
13
+ import { formatCount, formatDate, formatDateRange, formatDateTime, formatMetric, parseDateTime, parseDateTimeRangeInput, pluralize } from "@altertable/data-app/format";
15
14
  import fuzzysort from "fuzzysort";
15
+ import { parseDate, today } from "@internationalized/date";
16
16
  import { createPortal } from "react-dom";
17
17
  import { toCanvas } from "html-to-image";
18
18
  import { strToU8, zipSync } from "fflate";
@@ -37,7 +37,7 @@ function injectDataAppStyles(options = {}) {
37
37
  return injectStyles({
38
38
  name: "injectDataAppStyles",
39
39
  attribute: "data-altertable-styles",
40
- css: "/* packages/data-app-react/src/tokens.css */\n@layer atbl.tokens {\n :root {\n --atbl-background: var(--atbl-palette-background);\n --atbl-surface: var(--atbl-palette-surface);\n --atbl-subtle: var(--atbl-palette-subtle);\n --atbl-backdrop: #0f171e38;\n --atbl-text: var(--atbl-palette-text);\n --atbl-muted: var(--atbl-palette-muted);\n --atbl-border: var(--atbl-palette-border);\n --atbl-accent: var(--atbl-palette-accent);\n --atbl-on-accent: var(--atbl-palette-on-accent);\n --atbl-positive: var(--atbl-palette-positive);\n --atbl-danger: var(--atbl-palette-danger);\n --atbl-code-surface: #f4f6f9;\n --atbl-code-text: #273242;\n --atbl-mono-font: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;\n --atbl-focus-ring-offset: 2px;\n --atbl-focus-ring-inset: -1px;\n --atbl-font: var(--atbl-input-font, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, ui-sans-serif, sans-serif);\n --atbl-space-xs: 5px;\n --atbl-space-sm: 10px;\n --atbl-space-md: 16px;\n --atbl-space-lg: 24px;\n --atbl-space-xl: 32px;\n --atbl-content-width: 1920px;\n --atbl-control-height: 2.375rem;\n --atbl-control-compact-height: 1.875rem;\n --atbl-control-icon-size: 1rem;\n --atbl-control-padding-inline: .75rem;\n --atbl-control-padding-block: .375rem;\n --atbl-control-gap: .5rem;\n --atbl-control-disabled-opacity: .5;\n --atbl-dropdown-padding: calc(var(--atbl-control-padding-block) * 2 / 3);\n --atbl-dropdown-item-padding-block: var(--atbl-control-padding-block);\n --atbl-dropdown-item-padding-inline: calc(var(--atbl-control-padding-inline) * 3 / 4);\n --atbl-dropdown-item-gap: 2px;\n --atbl-radius-control: 7px;\n --atbl-radius-surface: 12px;\n --atbl-radius-overlay: 16px;\n --atbl-shadow-surface: 0 3px 16px #141c280d;\n --atbl-shadow-overlay: 0 18px 50px #00000029;\n --atbl-shadow-control: 0 1px 3px #0000001a;\n --atbl-cursor-action: pointer;\n --atbl-cursor-disabled: default;\n --atbl-cursor-help: help;\n --atbl-cursor-busy: progress;\n --atbl-duration-fast: .12s;\n --atbl-duration-normal: .18s;\n --atbl-duration-slow: .24s;\n --atbl-ease-standard: ease;\n --atbl-ease-enter: cubic-bezier(.2, .7, .2, 1);\n --atbl-chart-1: color-mix(in srgb, var(--atbl-input-chart-1, #285fc0) var(--atbl-chart-strength), white);\n --atbl-chart-2: color-mix(in srgb, var(--atbl-input-chart-2, #a95319) var(--atbl-chart-strength), white);\n --atbl-chart-3: color-mix(in srgb, var(--atbl-input-chart-3, #147862) var(--atbl-chart-strength), white);\n --atbl-chart-4: color-mix(in srgb, var(--atbl-input-chart-4, #7243aa) var(--atbl-chart-strength), white);\n --atbl-chart-5: color-mix(in srgb, var(--atbl-input-chart-5, #aa3958) var(--atbl-chart-strength), white);\n --atbl-chart-6: color-mix(in srgb, var(--atbl-input-chart-6, #475569) var(--atbl-chart-strength), white);\n --atbl-chart-7: color-mix(in srgb, var(--atbl-input-chart-7, #285fc0) var(--atbl-chart-strength), white);\n --atbl-chart-8: color-mix(in srgb, var(--atbl-input-chart-8, #a95319) var(--atbl-chart-strength), white);\n --atbl-type-emphasis-weight: 680;\n --atbl-type-meta-weight: 500;\n --atbl-type-page-size: clamp(1.375rem, 2.4vw, 1.75rem);\n --atbl-type-section-size: 1.25rem;\n --atbl-type-widget-size: var(--atbl-type-label-size);\n --atbl-type-body-size: .875rem;\n --atbl-type-label-size: .8125rem;\n --atbl-type-meta-size: .75rem;\n --atbl-type-metric-size: clamp(1.625rem, 3vw, 2.125rem);\n --atbl-type-heading-weight: 650;\n --atbl-type-label-weight: 600;\n --atbl-type-body-leading: 1.65;\n --atbl-type-label-leading: 1.4;\n --atbl-type-heading-leading: 1.3;\n --atbl-type-metric-leading: 1.08;\n --atbl-text-measure: 70ch;\n }\n}\n\n/* packages/data-app-react/src/appearance.css */\n@layer atbl.tokens {\n :root {\n --atbl-palette-background: #fff;\n --atbl-palette-surface: #fff;\n --atbl-palette-subtle: #f6f7f7;\n --atbl-palette-text: #202124;\n --atbl-palette-muted: #687078;\n --atbl-palette-border: #e3e6e8;\n --atbl-palette-accent: var(--atbl-input-accent, var(--atbl-text));\n --atbl-palette-on-accent: var(--atbl-input-on-accent, #fff);\n --atbl-palette-positive: #147862;\n --atbl-palette-danger: #b42318;\n --atbl-chart-strength: 100%;\n --atbl-accent-subtle-strength: 12%;\n }\n\n :root[data-atbl-theme=\"dark\"] {\n --atbl-palette-background: #151719;\n --atbl-palette-surface: #202326;\n --atbl-palette-subtle: #292d31;\n --atbl-palette-text: #f2f3f4;\n --atbl-palette-muted: #aeb5bc;\n --atbl-palette-border: #3b4248;\n }\n\n :root[data-atbl-base-color=\"slate\"] {\n --atbl-palette-background: #f8fafc;\n --atbl-palette-surface: #fff;\n --atbl-palette-subtle: #f1f5f9;\n --atbl-palette-text: #17212f;\n --atbl-palette-muted: #607083;\n --atbl-palette-border: #dce3ea;\n }\n\n :root[data-atbl-base-color=\"slate\"][data-atbl-theme=\"dark\"] {\n --atbl-palette-background: #111820;\n --atbl-palette-surface: #1b2530;\n --atbl-palette-subtle: #263340;\n --atbl-palette-text: #f0f4f8;\n --atbl-palette-muted: #a8b5c3;\n --atbl-palette-border: #3a4857;\n }\n\n :root[data-atbl-base-color=\"warm\"] {\n --atbl-palette-background: #fbfaf8;\n --atbl-palette-surface: #fff;\n --atbl-palette-subtle: #f5f2ed;\n --atbl-palette-text: #292723;\n --atbl-palette-muted: #736e66;\n --atbl-palette-border: #e8e2da;\n }\n\n :root[data-atbl-base-color=\"warm\"][data-atbl-theme=\"dark\"] {\n --atbl-palette-background: #1b1916;\n --atbl-palette-surface: #25221e;\n --atbl-palette-subtle: #302c27;\n --atbl-palette-text: #f5f1eb;\n --atbl-palette-muted: #bcb3a8;\n --atbl-palette-border: #494239;\n }\n\n :root[data-atbl-theme=\"dark\"] {\n --atbl-palette-accent: var(--atbl-input-dark-accent, var(--atbl-text));\n --atbl-accent-subtle-strength: 22%;\n --atbl-palette-on-accent: var(--atbl-input-on-accent, var(--atbl-background));\n --atbl-palette-positive: #6bc39a;\n --atbl-palette-danger: #f97066;\n --atbl-backdrop: #0000008c;\n --atbl-code-surface: #242a31;\n --atbl-code-text: #e5e9ef;\n --atbl-chart-strength: 60%;\n }\n\n :root[data-atbl-density=\"compact\"] {\n --atbl-control-height: 2.125rem;\n --atbl-control-compact-height: 1.625rem;\n --atbl-control-gap: .375rem;\n --atbl-control-padding-inline: .625rem;\n --atbl-control-padding-block: .25rem;\n --atbl-space-xs: 4px;\n --atbl-space-sm: 8px;\n --atbl-space-md: 12px;\n --atbl-space-lg: 18px;\n --atbl-space-xl: 24px;\n }\n\n :root[data-atbl-density=\"spacious\"] {\n --atbl-control-height: 2.625rem;\n --atbl-control-compact-height: 2.125rem;\n --atbl-control-gap: .625rem;\n --atbl-control-padding-inline: 1rem;\n --atbl-control-padding-block: .5rem;\n --atbl-space-xs: 6px;\n --atbl-space-sm: 12px;\n --atbl-space-md: 20px;\n --atbl-space-lg: 30px;\n --atbl-space-xl: 40px;\n }\n\n :root[data-atbl-radius=\"none\"] {\n --atbl-radius-control: 0px;\n --atbl-radius-surface: 0px;\n --atbl-radius-overlay: 0px;\n }\n\n :root[data-atbl-radius=\"small\"] {\n --atbl-radius-control: 4px;\n --atbl-radius-surface: 7px;\n --atbl-radius-overlay: 9px;\n }\n\n :root[data-atbl-radius=\"large\"] {\n --atbl-radius-control: 10px;\n --atbl-radius-surface: 18px;\n --atbl-radius-overlay: 24px;\n }\n\n :root[data-atbl-elevation=\"flat\"] {\n --atbl-shadow-surface: none;\n --atbl-shadow-overlay: none;\n --atbl-shadow-control: none;\n }\n\n :root[data-atbl-elevation=\"raised\"] {\n --atbl-shadow-surface: 0 8px 28px #141c281a;\n --atbl-shadow-overlay: 0 24px 72px #0000003d;\n --atbl-shadow-control: 0 2px 6px #00000029;\n }\n\n @media (forced-colors: active) {\n :root {\n --atbl-focus-color: Highlight !important;\n --atbl-on-accent: HighlightText !important;\n }\n }\n}\n\n/* packages/data-app-react/src/base.css */\n@layer atbl.base {\n :where([class^=\"altertable-\"], [class*=\" altertable-\"]) {\n box-sizing: border-box;\n }\n\n :where([class^=\"altertable-\"], [class*=\" altertable-\"]) * {\n box-sizing: border-box;\n }\n\n :where([class^=\"starter-\"], [class*=\" starter-\"]) * {\n box-sizing: border-box;\n }\n\n :where([class^=\"altertable-\"], [class*=\" altertable-\"]) button {\n font: inherit;\n }\n\n :root[data-atbl-appearance] {\n scrollbar-gutter: stable;\n font-family: var(--atbl-font);\n color: var(--atbl-text);\n background: var(--atbl-background);\n font-synthesis: none;\n -webkit-font-smoothing: antialiased;\n text-rendering: optimizeLegibility;\n }\n\n :root[data-atbl-frame-sizing=\"content\"] {\n overflow: hidden;\n scrollbar-gutter: auto;\n }\n\n :root {\n --atbl-frame-visible-height: calc(100dvh - var(--atbl-frame-inset-top, 0px) - var(--atbl-frame-inset-bottom, 0px));\n }\n\n :root[data-atbl-theme=\"light\"] {\n --buncss-light: initial;\n --buncss-dark: ;\n color-scheme: light;\n }\n\n :root[data-atbl-theme=\"dark\"] {\n --buncss-light: ;\n --buncss-dark: initial;\n color-scheme: dark;\n }\n\n :root[data-atbl-appearance] body, :root[data-atbl-appearance] #root {\n margin: 0;\n }\n\n .altertable-sr-only {\n position: fixed;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n clip-path: inset(50%);\n white-space: nowrap;\n border: 0;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n }\n}\n\n/* packages/data-app-react/src/ui/Skeleton.css */\n@layer atbl.components {\n .altertable-skeleton {\n display: block;\n border-radius: var(--atbl-radius-control);\n background: var(--atbl-subtle);\n opacity: 0;\n animation: altertable-skeleton-in .2s var(--atbl-ease-standard) .2s forwards, altertable-skeleton-pulse 1.4s ease-in-out .4s infinite alternate;\n }\n\n .altertable-skeleton[data-inline] {\n display: inline-block;\n vertical-align: middle;\n width: 8ch;\n height: 1em;\n }\n\n @keyframes altertable-skeleton-in {\n to {\n opacity: 1;\n }\n }\n\n @keyframes altertable-skeleton-pulse {\n to {\n opacity: .5;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-skeleton {\n animation: 1ms .2s forwards altertable-skeleton-in;\n }\n }\n}\n\n/* packages/data-app-react/src/ui/Grid.css */\n@layer atbl.components {\n .altertable-grid {\n display: grid;\n container: altertable-grid / inline-size;\n --atbl-grid-gap: var(--atbl-layout-gap, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg)));\n --atbl-grid-min-item-width: 280px;\n --atbl-grid-column-width: 100%;\n --atbl-grid-max-columns: 1;\n align-content: start;\n align-items: start;\n gap: var(--atbl-grid-gap);\n grid-template-columns: repeat(auto-fit, minmax(min(100%, max(var(--atbl-grid-min-item-width), var(--atbl-grid-column-width))), 1fr));\n min-width: 0;\n }\n\n .altertable-grid > * {\n min-width: 0;\n min-height: 0;\n margin: 0;\n }\n\n .altertable-grid[data-align=\"stretch\"] {\n align-items: stretch;\n }\n\n .altertable-grid[data-align=\"stretch\"] > .altertable-grid-item {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n }\n\n .altertable-grid[data-gap=\"sm\"] {\n --atbl-grid-gap: var(--atbl-space-sm);\n }\n\n .altertable-grid[data-gap=\"md\"] {\n --atbl-grid-gap: var(--atbl-space-md);\n }\n\n .altertable-grid[data-gap=\"lg\"] {\n --atbl-grid-gap: var(--atbl-layout-gap, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg)));\n }\n\n .altertable-grid[data-min-item-width=\"compact\"] {\n --atbl-grid-min-item-width: 224px;\n }\n\n .altertable-grid[data-min-item-width=\"wide\"] {\n --atbl-grid-min-item-width: 360px;\n }\n\n .altertable-grid[data-columns=\"2\"] {\n --atbl-grid-max-columns: 2;\n --atbl-grid-column-width: calc((100% - var(--atbl-grid-gap)) / 2);\n }\n\n .altertable-grid[data-columns=\"3\"] {\n --atbl-grid-max-columns: 3;\n --atbl-grid-column-width: calc((100% - var(--atbl-grid-gap) - var(--atbl-grid-gap)) / 3);\n }\n\n .altertable-grid[data-columns=\"4\"] {\n --atbl-grid-max-columns: 4;\n --atbl-grid-column-width: calc((100% - var(--atbl-grid-gap) - var(--atbl-grid-gap) - var(--atbl-grid-gap)) / 4);\n }\n\n .altertable-grid-item {\n min-width: 0;\n min-height: 0;\n }\n\n .altertable-grid > * {\n --atbl-grid-fitting-columns: clamp(1, round(down, tan(atan2(100cqw + var(--atbl-grid-gap) + .001px, var(--atbl-grid-min-item-width) + var(--atbl-grid-gap))), 1), var(--atbl-grid-max-columns));\n }\n\n .altertable-grid > .altertable-grid-item[data-span=\"2\"] {\n grid-column: span min(2, var(--atbl-grid-fitting-columns));\n }\n\n .altertable-grid[data-columns=\"3\"]:has( > .altertable-grid-item[data-span=\"2\"]) > :not(.altertable-grid-item[data-span=\"2\"]) {\n grid-column: span clamp(1, (3 - var(--atbl-grid-fitting-columns)) * 2, var(--atbl-grid-fitting-columns));\n }\n\n .altertable-grid[data-columns=\"3\"]:not(:has( > .altertable-grid-item[data-span=\"2\"])) > :last-child:nth-child(odd) {\n grid-column: span clamp(1, (3 - var(--atbl-grid-fitting-columns)) * 2, var(--atbl-grid-fitting-columns));\n }\n}\n\n/* packages/data-app-react/src/ui/DataWidget.css */\n@layer atbl.components {\n .altertable-data-widget {\n border: 1px solid var(--atbl-border);\n border-radius: calc(var(--atbl-radius-surface) * 1.5);\n corner-shape: squircle;\n background: var(--atbl-surface);\n box-shadow: var(--atbl-shadow-surface);\n min-width: 0;\n }\n\n .altertable-data-widget-header {\n padding: var(--atbl-surface-padding, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg))) var(--atbl-surface-padding, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg))) 0;\n }\n\n .altertable-data-widget-heading-row {\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: var(--atbl-space-md);\n min-height: 30px;\n }\n\n .altertable-data-widget-heading-row > .altertable-widget-heading {\n flex: 1;\n min-width: 0;\n }\n\n .altertable-data-widget-help {\n display: flex;\n flex: none;\n align-items: center;\n }\n\n .altertable-data-widget-help:empty {\n display: none;\n }\n\n .altertable-widget-heading {\n color: var(--atbl-muted);\n font-family: var(--atbl-font-heading, var(--atbl-input-font-heading, var(--atbl-font)));\n font-size: var(--atbl-type-widget-size);\n font-weight: var(--atbl-type-label-weight);\n line-height: var(--atbl-type-heading-leading);\n letter-spacing: 0;\n margin: 0;\n }\n\n .altertable-data-widget-count {\n display: inline-flex;\n vertical-align: baseline;\n font-variant-numeric: tabular-nums;\n color: var(--atbl-muted);\n font-size: .85em;\n line-height: 1;\n font-weight: var(--atbl-type-meta-weight);\n letter-spacing: 0;\n white-space: nowrap;\n align-self: center;\n align-items: center;\n margin-inline-start: var(--atbl-space-sm);\n }\n\n .altertable-data-widget-header p {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n margin: 4px 0 0;\n line-height: 1.45;\n }\n\n .altertable-data-widget-body {\n position: relative;\n padding: var(--atbl-space-md) var(--atbl-surface-padding, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg))) var(--atbl-surface-padding, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg)));\n min-width: 0;\n }\n\n .altertable-data-widget-body[data-padding=\"flush\"] {\n padding: 0;\n }\n\n .altertable-data-widget-footer {\n padding: var(--atbl-space-md) var(--atbl-surface-padding, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg)));\n }\n\n .altertable-data-widget-body > .altertable-status-panel {\n background: none;\n border: 0;\n border-radius: 0;\n margin: 0;\n padding: 0;\n }\n\n .altertable-widget-heading-trigger .altertable-data-widget-count {\n margin-inline-start: 0;\n }\n\n .altertable-widget-boundary {\n display: contents;\n }\n\n :where(.altertable-widget-boundary) > * {\n grid-column: inherit;\n }\n\n .altertable-widget-error {\n box-sizing: border-box;\n display: flex;\n text-align: center;\n color: var(--atbl-muted);\n font-family: var(--atbl-font);\n font-size: var(--atbl-type-meta-size);\n overflow: auto;\n overflow-wrap: anywhere;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n gap: 12px;\n width: 100%;\n max-width: 520px;\n min-height: 140px;\n margin-inline-start: auto;\n margin-inline-end: auto;\n padding: 16px;\n line-height: 1.5;\n }\n\n .altertable-widget-error-copy {\n min-width: 0;\n }\n\n .altertable-widget-error strong {\n color: var(--atbl-text);\n font-size: var(--atbl-type-label-size);\n font-weight: var(--atbl-type-label-weight);\n }\n\n .altertable-widget-error p {\n margin: 4px 0 0;\n }\n\n .altertable-widget-error-frame {\n display: flex;\n flex-direction: column;\n }\n\n .altertable-widget-error-frame > .altertable-data-widget-body {\n display: grid;\n flex: 1;\n min-height: 0;\n }\n}\n\n/* packages/data-app-react/src/ui/SectionHeading.css */\n@layer atbl.components {\n .altertable-section-heading {\n color: var(--atbl-text);\n font-family: var(--atbl-font-heading, var(--atbl-input-font-heading, var(--atbl-font)));\n font-size: var(--atbl-type-section-size);\n font-weight: var(--atbl-type-heading-weight);\n line-height: var(--atbl-type-heading-leading);\n letter-spacing: -.02em;\n overflow-wrap: anywhere;\n margin: 0;\n }\n}\n\n/* packages/data-app-react/src/ui/MetricWidget.css */\n@layer atbl.components {\n .altertable-metric-widget {\n display: flex;\n padding: var(--atbl-surface-padding, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg)));\n border: 1px solid var(--atbl-border);\n border-radius: calc(var(--atbl-radius-surface) * 1.5);\n corner-shape: squircle;\n background: var(--atbl-surface);\n box-shadow: var(--atbl-shadow-surface);\n flex-direction: column;\n min-width: 0;\n }\n\n .altertable-metric-widget.altertable-data-widget {\n padding: 0;\n }\n\n .altertable-metric-widget > .altertable-data-widget-header {\n min-height: 0;\n }\n\n .altertable-metric-widget > .altertable-data-widget-body {\n padding-top: 0;\n }\n\n .altertable-metric-widget > .altertable-data-widget-body:has( + footer) {\n padding-bottom: 0;\n }\n\n .altertable-metric-widget > .altertable-data-widget-footer {\n padding-top: 0;\n padding-bottom: var(--atbl-surface-padding, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg)));\n }\n\n .altertable-metric-value {\n margin: var(--atbl-space-sm) 0 2px;\n color: var(--atbl-text);\n font-family: var(--atbl-font-heading, var(--atbl-input-font-heading, var(--atbl-font)));\n font-size: var(--atbl-type-metric-size);\n font-weight: var(--atbl-type-emphasis-weight);\n line-height: var(--atbl-type-metric-leading);\n letter-spacing: -.04em;\n overflow-wrap: anywhere;\n font-variant-numeric: tabular-nums;\n max-inline-size: 100%;\n }\n\n .altertable-metric-reading {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: flex-start;\n gap: 4px;\n }\n\n .altertable-metric-trend {\n font-size: var(--atbl-type-meta-size);\n }\n\n .altertable-metric-change {\n display: inline-flex;\n color: var(--atbl-muted);\n font-variant-numeric: tabular-nums;\n align-items: center;\n gap: 3px;\n }\n\n .altertable-metric-change[data-tone=\"good\"] {\n color: var(--atbl-positive);\n }\n\n .altertable-metric-change[data-tone=\"bad\"] {\n color: var(--atbl-negative, var(--atbl-danger));\n }\n\n .altertable-metric-description {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n line-height: 1.45;\n }\n\n .altertable-metric-visual {\n margin-top: var(--atbl-space-sm);\n min-width: 0;\n }\n\n .altertable-metric-value[data-unavailable] {\n opacity: .6;\n }\n\n .altertable-metric-value > .altertable-skeleton {\n width: 6ch;\n height: 1lh;\n }\n}\n\n/* packages/data-app-react/src/ui/VisualizationWidget.css */\n@layer atbl.components {\n .altertable-visualization-widget-content {\n padding: var(--atbl-space-md) var(--atbl-surface-padding, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg))) var(--atbl-surface-padding, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg)));\n min-width: 0;\n }\n\n :where(.altertable-data-widget-body) > .altertable-visualization-widget-content {\n padding: 0;\n }\n\n :where(.altertable-data-widget-body > .altertable-widget-boundary) > .altertable-visualization-widget-content {\n padding: 0;\n }\n}\n\n/* packages/data-app-react/src/ui/ContentSkeleton.css */\n@layer atbl.components {\n .altertable-content-skeleton {\n display: grid;\n padding: var(--atbl-surface-padding, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg)));\n align-content: start;\n gap: 14px;\n min-width: 0;\n }\n\n .altertable-content-skeleton-label {\n width: 38%;\n height: 15px;\n }\n\n .altertable-content-skeleton-value {\n width: 56%;\n height: 38px;\n }\n\n .altertable-content-skeleton-chart {\n width: 100%;\n height: 180px;\n }\n\n .altertable-content-skeleton-foot {\n width: 70%;\n height: 12px;\n }\n\n .altertable-content-skeleton-subtitle {\n width: 52%;\n height: 12px;\n }\n\n .altertable-content-skeleton-rows {\n display: grid;\n gap: 18px;\n margin-top: 12px;\n }\n\n .altertable-content-skeleton-row {\n display: grid;\n gap: 8px;\n }\n\n .altertable-content-skeleton-row-label {\n width: 56%;\n height: 14px;\n }\n\n .altertable-content-skeleton-row-track {\n width: 100%;\n height: 8px;\n }\n\n .altertable-content-skeleton-row:nth-child(2) .altertable-content-skeleton-row-track {\n width: 72%;\n }\n\n .altertable-content-skeleton-row:nth-child(3) .altertable-content-skeleton-row-track {\n width: 48%;\n }\n\n .altertable-content-skeleton-row:nth-child(4) .altertable-content-skeleton-row-track {\n width: 30%;\n }\n\n .altertable-content-skeleton-body {\n display: grid;\n gap: 14px;\n min-width: 0;\n }\n}\n\n/* packages/data-app-react/src/shared.css */\n\n\n/* packages/data-app-react/src/ui/PopoverSurface.css */\n@layer atbl.components {\n .altertable-popover-surface {\n box-sizing: border-box;\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-surface);\n background: var(--atbl-surface);\n color: var(--atbl-text);\n box-shadow: var(--atbl-shadow-overlay);\n font: var(--atbl-type-label-size) / var(--atbl-type-label-leading) var(--atbl-font);\n }\n}\n\n/* packages/data-app-react/src/ui/PeriodSummary.css */\n@layer atbl.components {\n .altertable-period-summary {\n margin: 0;\n }\n\n .altertable-period-summary-visible {\n display: inline-flex;\n color: var(--atbl-text);\n font-size: var(--atbl-type-meta-size);\n font-weight: var(--atbl-type-meta-weight);\n font-variant-numeric: tabular-nums;\n white-space: nowrap;\n flex-wrap: wrap;\n align-items: center;\n gap: 4px 7px;\n }\n\n .altertable-period-summary-visible > svg {\n color: var(--atbl-muted);\n }\n}\n\n/* packages/data-app-react/src/ui/SearchInput.css */\n@layer atbl.components {\n .altertable-search-input-wrap {\n display: flex;\n min-height: var(--atbl-control-height);\n padding: 0 var(--atbl-control-padding-inline);\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-control);\n background: var(--atbl-surface);\n color: var(--atbl-muted);\n align-items: center;\n gap: 9px;\n width: min(100%, 380px);\n min-width: 0;\n }\n\n .altertable-search-input-wrap[data-size=\"compact\"] {\n min-height: var(--atbl-control-compact-height);\n padding: 0 calc(var(--atbl-control-padding-inline) * 5 / 6);\n width: min(100%, 300px);\n }\n\n .altertable-search-input-wrap[data-size=\"compact\"] .altertable-search-input {\n min-block-size: calc(var(--atbl-control-compact-height) - 2px);\n }\n\n .altertable-search-input {\n min-block-size: calc(var(--atbl-control-height) - 2px);\n outline: 0;\n color: var(--atbl-text);\n font: inherit;\n font-size: var(--atbl-control-text-size, var(--atbl-type-body-size));\n background: none;\n border: 0;\n flex: 1;\n width: 100%;\n min-width: 0;\n height: auto;\n padding: 0;\n }\n\n .altertable-search-input::-webkit-search-cancel-button {\n display: none;\n }\n\n .altertable-search-input-wrap > svg {\n flex: none;\n }\n\n .altertable-search-input-spinner {\n animation: .9s linear infinite altertable-search-input-spin;\n }\n\n @keyframes altertable-search-input-spin {\n to {\n transform: rotate(360deg);\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-search-input-spinner {\n animation: none;\n }\n }\n}\n\n/* packages/data-app-react/src/ui/Button.css */\n@layer atbl.components {\n .altertable-button {\n display: inline-flex;\n justify-content: center;\n align-items: center;\n gap: var(--atbl-control-gap);\n min-height: var(--atbl-control-height);\n padding: var(--atbl-control-padding-block) var(--atbl-control-padding-inline);\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-control);\n background: var(--atbl-surface);\n color: var(--atbl-text);\n font: inherit;\n font-size: var(--atbl-type-label-size);\n font-weight: var(--atbl-type-label-weight);\n line-height: var(--atbl-type-label-leading);\n overflow-wrap: anywhere;\n transition: background-color var(--atbl-duration-fast) var(--atbl-ease-standard), border-color var(--atbl-duration-fast) var(--atbl-ease-standard), color var(--atbl-duration-fast) var(--atbl-ease-standard);\n -webkit-tap-highlight-color: transparent;\n max-inline-size: 100%;\n }\n\n .altertable-button[data-size=\"icon\"] {\n width: var(--atbl-control-height);\n min-width: var(--atbl-control-height);\n height: var(--atbl-control-height);\n min-height: var(--atbl-control-height);\n flex: none;\n padding: 0;\n }\n\n .altertable-button[data-variant=\"primary\"] {\n border-color: var(--atbl-text);\n background: var(--atbl-text);\n color: var(--atbl-background);\n --atbl-control-hover-surface: color-mix(in srgb, var(--atbl-text) 92%, var(--atbl-background));\n --atbl-control-pressed-surface: color-mix(in srgb, var(--atbl-text) 84%, var(--atbl-background));\n }\n\n .altertable-button[data-variant=\"outline\"] {\n box-shadow: none;\n }\n\n .altertable-button[data-variant=\"elevated\"] {\n box-shadow: var(--atbl-shadow-surface);\n }\n\n .altertable-button[data-variant=\"ghost\"] {\n box-shadow: none;\n background: none;\n border-color: #0000;\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-button {\n transition: none;\n }\n }\n\n .altertable-button[data-size=\"compact\"] {\n min-height: var(--atbl-control-compact-height);\n padding: calc(var(--atbl-control-padding-block) * 2 / 3) calc(var(--atbl-control-padding-inline) * 2 / 3);\n font-size: var(--atbl-type-meta-size);\n }\n\n .altertable-button[data-size=\"icon-compact\"] {\n width: var(--atbl-control-compact-height);\n min-width: var(--atbl-control-compact-height);\n height: var(--atbl-control-compact-height);\n min-height: var(--atbl-control-compact-height);\n flex: none;\n padding: 0;\n }\n\n .altertable-button[data-size^=\"icon\"] > svg {\n inline-size: var(--atbl-control-icon-size);\n block-size: var(--atbl-control-icon-size);\n }\n\n .altertable-button[data-variant=\"inline\"] {\n --atbl-control-hover-surface: transparent;\n --atbl-control-pressed-surface: transparent;\n --atbl-control-open-surface: transparent;\n box-shadow: none;\n font: inherit;\n text-underline-offset: .2em;\n background: none;\n border: 0;\n border-radius: 0;\n min-height: 0;\n padding: 0;\n }\n\n .altertable-button[data-variant=\"inline\"]:-webkit-any(:hover, [data-hovered]):not(:-webkit-any(:disabled, [data-disabled])) {\n text-decoration: underline;\n }\n\n .altertable-button[data-variant=\"inline\"]:-moz-any(:hover, [data-hovered]):not(:-moz-any(:disabled, [data-disabled])) {\n text-decoration: underline;\n }\n\n .altertable-button[data-variant=\"inline\"]:is(:hover, [data-hovered]):not(:is(:disabled, [data-disabled])) {\n text-decoration: underline;\n }\n}\n\n/* packages/data-app-react/src/ui/SearchField.css */\n@layer atbl.components {\n .altertable-search-landmark {\n min-width: 0;\n }\n\n .altertable-search {\n display: grid;\n gap: 7px;\n min-width: 0;\n }\n\n .altertable-search-label {\n font-size: var(--atbl-type-label-size);\n font-weight: 650;\n }\n\n .altertable-search-row {\n display: flex;\n align-items: center;\n gap: 8px;\n min-width: 0;\n }\n\n .altertable-search-description, .altertable-search-status {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n margin: 0;\n line-height: 1.45;\n }\n\n @media (max-width: 560px) {\n .altertable-search .altertable-search-input-wrap {\n width: 100%;\n }\n }\n\n .altertable-search-suggestions {\n z-index: 150;\n padding: var(--atbl-space-xs);\n overflow: auto;\n }\n\n .altertable-search-suggestions ul {\n list-style: none;\n margin: 0;\n padding: 0;\n }\n\n .altertable-search-suggestions li {\n display: flex;\n align-items: baseline;\n gap: var(--atbl-space-sm);\n padding: var(--atbl-space-sm);\n border-radius: var(--atbl-radius-control);\n padding-inline-start: calc(var(--atbl-control-padding-inline) - var(--atbl-space-xs) - 1px);\n }\n\n .altertable-search-suggestions[data-size=\"compact\"] li {\n padding-inline-start: calc(var(--atbl-control-padding-inline) * 5 / 6 - var(--atbl-space-xs) - 1px);\n }\n\n .altertable-search-suggestions li > span, .altertable-search-suggestions small {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n min-width: 0;\n }\n\n .altertable-search-suggestions li > span {\n flex: 0 auto;\n }\n\n .altertable-search-suggestions li:has(small) > span {\n flex-shrink: 0;\n max-width: 65%;\n }\n\n .altertable-search-suggestions small {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n flex: 0 auto;\n }\n}\n\n/* packages/data-app-react/src/ui/Tooltip.css */\n@layer atbl.components {\n .altertable-tooltip-trigger {\n display: inline-flex;\n align-items: center;\n }\n\n .altertable-tooltip-trigger[data-variant=\"chart\"] {\n display: flex;\n align-items: flex-end;\n width: 100%;\n min-width: 0;\n height: 100%;\n }\n\n .altertable-tooltip-content {\n z-index: 1300;\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-control);\n background: var(--atbl-surface);\n color: var(--atbl-text);\n box-shadow: var(--atbl-shadow-overlay);\n font: var(--atbl-type-meta-weight) var(--atbl-type-meta-size) / var(--atbl-type-label-leading) var(--atbl-font);\n white-space: normal;\n pointer-events: none;\n animation: altertable-tooltip-in var(--atbl-duration-fast) ease-out;\n width: max-content;\n max-width: min(240px, 100vw - 24px);\n padding: 6px 9px;\n }\n\n .altertable-tooltip-content[data-variant=\"chart\"] {\n display: grid;\n font-variant-numeric: tabular-nums;\n gap: 2px;\n padding: 8px 10px;\n }\n\n .altertable-tooltip-content[data-variant=\"chart\"] strong {\n font-size: var(--atbl-type-body-size);\n font-weight: 650;\n line-height: 1.2;\n }\n\n @keyframes altertable-tooltip-in {\n from {\n opacity: 0;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-tooltip-content {\n animation: none;\n }\n }\n\n .altertable-chart-tooltip-row {\n display: flex;\n align-items: flex-start;\n gap: 6px;\n }\n\n .altertable-chart-tooltip-marker {\n flex-shrink: 0;\n width: 8px;\n height: 8px;\n margin-top: .3em;\n }\n\n .altertable-chart-tooltip-reading {\n overflow-wrap: anywhere;\n min-width: 0;\n }\n}\n\n/* packages/data-app-react/src/ui/RequestHint.css */\n@layer atbl.components {\n .altertable-request-hint {\n display: flex;\n color: var(--atbl-muted);\n font: var(--atbl-type-meta-size) / var(--atbl-type-label-leading) var(--atbl-font);\n align-items: center;\n gap: 6px;\n min-width: 0;\n height: 28px;\n }\n\n .altertable-request-hint > svg, .altertable-request-hint > button {\n flex: none;\n }\n\n .altertable-request-hint-message {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n min-width: 0;\n }\n\n .altertable-request-hint[data-state=\"error\"] .altertable-request-hint-copy > svg {\n color: var(--atbl-danger);\n }\n\n .altertable-request-hint-spinner {\n animation: .9s linear infinite altertable-request-hint-spin;\n }\n\n @keyframes altertable-request-hint-spin {\n to {\n transform: rotate(360deg);\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-request-hint-spinner {\n animation: none;\n }\n }\n\n .altertable-widget-status {\n display: flex;\n color: var(--atbl-muted);\n font: var(--atbl-type-meta-size) / var(--atbl-type-label-leading) var(--atbl-font);\n flex: none;\n justify-content: center;\n align-items: center;\n width: 78px;\n height: 30px;\n }\n\n .altertable-widget-status .altertable-button {\n gap: 5px;\n }\n\n .altertable-widget-status .altertable-button svg {\n color: var(--atbl-danger);\n }\n\n .altertable-widget-status-announcement {\n position: absolute;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n width: 1px;\n height: 1px;\n }\n\n .altertable-request-hint-copy {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n min-width: 0;\n }\n\n .altertable-request-hint-copy > svg {\n flex: none;\n }\n}\n\n/* packages/data-app-react/src/ui/GradientScroll.css */\n@layer atbl.components {\n .altertable-gradient-scroll {\n overflow: auto;\n --atbl-scroll-fade-size: 1.5rem;\n min-width: 0;\n min-height: 0;\n }\n\n .altertable-gradient-scroll[data-axis=\"vertical\"] {\n overflow-x: hidden;\n }\n\n .altertable-gradient-scroll[data-axis=\"horizontal\"] {\n overflow-y: hidden;\n }\n\n .altertable-gradient-scroll[data-axis=\"vertical\"][data-fade-start][data-fade-end] {\n mask-image: linear-gradient(to bottom, transparent, black var(--atbl-scroll-fade-size), black calc(100% - var(--atbl-scroll-fade-size)), transparent);\n }\n\n .altertable-gradient-scroll[data-axis=\"vertical\"][data-fade-start]:not([data-fade-end]) {\n mask-image: linear-gradient(to bottom, transparent, black var(--atbl-scroll-fade-size));\n }\n\n .altertable-gradient-scroll[data-axis=\"vertical\"][data-fade-end]:not([data-fade-start]) {\n mask-image: linear-gradient(to bottom, black, black calc(100% - var(--atbl-scroll-fade-size)), transparent);\n }\n\n .altertable-gradient-scroll[data-axis=\"horizontal\"][data-fade-start][data-fade-end] {\n mask-image: linear-gradient(to right, transparent, black var(--atbl-scroll-fade-size), black calc(100% - var(--atbl-scroll-fade-size)), transparent);\n }\n\n .altertable-gradient-scroll[data-axis=\"horizontal\"][data-fade-start]:not([data-fade-end]) {\n mask-image: linear-gradient(to right, transparent, black var(--atbl-scroll-fade-size));\n }\n\n .altertable-gradient-scroll[data-axis=\"horizontal\"][data-fade-end]:not([data-fade-start]) {\n mask-image: linear-gradient(to right, black, black calc(100% - var(--atbl-scroll-fade-size)), transparent);\n }\n}\n\n/* packages/data-app-react/src/ui/SelectionMark.css */\n@layer atbl.components {\n .altertable-selection-mark {\n display: grid;\n box-sizing: border-box;\n font-size: var(--atbl-control-icon-size);\n flex: none;\n place-items: center;\n width: 1em;\n height: 1em;\n }\n\n .altertable-selection-mark[data-multiple] {\n border: 1px solid var(--atbl-muted);\n border-radius: .25em;\n }\n\n .altertable-selection-mark[data-multiple][data-selected] {\n border-color: var(--atbl-accent);\n background: var(--atbl-accent);\n }\n\n .altertable-selection-mark[data-multiple][data-selected]:after {\n content: \"\";\n border: .125em solid;\n border-width: 0 .125em .125em 0;\n border-color: var(--atbl-on-accent);\n width: .25em;\n height: .4375em;\n margin-top: -.125em;\n transform: rotate(45deg);\n }\n}\n\n/* packages/data-app-react/src/ui/SearchMatch.css */\n@layer atbl.components {\n .altertable-search-match mark {\n background: color-mix(in srgb, currentColor 16%, transparent);\n color: inherit;\n box-decoration-break: clone;\n border-radius: 2px;\n padding: 0 1px;\n }\n}\n\n/* packages/data-app-react/src/ui/ChoicePicker.css */\n@layer atbl.components {\n .altertable-picker-trigger {\n box-sizing: border-box;\n text-align: left;\n max-width: min(100%, 340px, 75vw);\n }\n\n .altertable-picker-label {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: var(--atbl-muted);\n font-size: var(--atbl-type-label-size);\n font-weight: var(--atbl-type-meta-weight);\n flex: 0 auto;\n min-width: 0;\n }\n\n .altertable-picker-value {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-size: var(--atbl-type-label-size);\n font-weight: var(--atbl-type-label-weight);\n flex: none;\n min-width: 0;\n max-width: 55%;\n }\n\n .altertable-picker-trigger > svg:last-child {\n color: var(--atbl-muted);\n flex: none;\n margin-left: auto;\n }\n\n .altertable-choice-picker-popover {\n z-index: 150;\n overflow: hidden;\n width: min(300px, 100vw - 24px);\n padding: 0;\n }\n\n .altertable-choice-picker-dialog {\n outline: none;\n }\n\n .altertable-choice-picker-dialog .altertable-search-input-wrap {\n gap: calc(10px + var(--atbl-control-icon-size) - 17px);\n box-sizing: border-box;\n border: 0;\n border-bottom: 1px solid var(--atbl-border);\n border-radius: 0;\n width: 100%;\n margin: 0;\n padding: 6px 18px;\n }\n\n .altertable-choice-picker-dialog .altertable-search-input-wrap:focus-within {\n outline: none;\n }\n\n .altertable-choice-picker-dialog .altertable-search-input-wrap > svg {\n opacity: .65;\n }\n\n .altertable-choice-picker-dialog .altertable-search-input-wrap:focus-within > svg {\n opacity: 1;\n }\n\n .altertable-choice-picker-status {\n position: absolute;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n width: 1px;\n height: 1px;\n }\n\n .altertable-choice-picker-options {\n scroll-padding-block: 8px;\n max-height: min(320px, 60dvh);\n }\n\n .altertable-choice-picker-popover .react-aria-ListBox {\n display: flex;\n gap: var(--atbl-dropdown-item-gap);\n padding: var(--atbl-dropdown-padding);\n outline: none;\n flex-direction: column;\n }\n\n .altertable-choice-picker-popover .react-aria-ListBoxItem {\n display: flex;\n padding: var(--atbl-dropdown-item-padding-block) var(--atbl-dropdown-item-padding-inline);\n border-radius: var(--atbl-radius-control);\n outline: none;\n align-items: center;\n gap: 10px;\n }\n\n .altertable-choice-picker-popover .react-aria-ListBoxItem small {\n display: block;\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n font-weight: 400;\n }\n\n .altertable-choice-picker-popover .react-aria-ListBoxItem[data-missing]:not(:first-child) {\n position: relative;\n margin-top: 9px;\n }\n\n .altertable-choice-picker-popover .react-aria-ListBoxItem[data-missing]:not(:first-child):before {\n content: \"\";\n position: absolute;\n border-top: 1px solid var(--atbl-border);\n pointer-events: none;\n top: -5px;\n left: 0;\n right: 0;\n }\n\n .altertable-choice-picker-option-content {\n min-width: 0;\n }\n\n .altertable-choice-picker-empty {\n color: var(--atbl-muted);\n padding: 12px 10px;\n }\n\n .altertable-choice-picker-actions {\n border-top: 1px solid var(--atbl-border);\n display: flex;\n justify-content: flex-start;\n margin: 0 8px;\n padding: 4px 0;\n }\n\n .altertable-choice-picker-dialog > .altertable-request-hint {\n margin: 4px 10px 0;\n }\n\n .altertable-choice-picker-skeletons {\n display: grid;\n gap: 10px;\n padding: 10px;\n }\n\n .altertable-choice-picker-skeletons > span {\n height: 24px;\n }\n\n .altertable-choice-picker-dialog > .altertable-request-hint[data-state=\"error\"] {\n display: flex;\n text-align: center;\n flex-direction: column;\n align-items: center;\n gap: 6px;\n height: auto;\n margin: 12px 10px 4px;\n }\n}\n\n/* packages/data-app-react/src/ui/Menu.css */\n@layer atbl.components {\n .altertable-menu-popover {\n z-index: 150;\n min-width: max(var(--trigger-width), 180px);\n padding: var(--atbl-dropdown-padding);\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-surface);\n background: var(--atbl-surface);\n color: var(--atbl-text);\n box-shadow: var(--atbl-shadow-overlay);\n font: var(--atbl-type-label-size) / var(--atbl-type-label-leading) var(--atbl-font);\n max-width: min(340px, 100vw - 24px);\n }\n\n .altertable-menu {\n display: flex;\n gap: var(--atbl-dropdown-item-gap);\n overflow: auto;\n outline: none;\n flex-direction: column;\n max-height: min(320px, 60dvh);\n }\n\n .altertable-menu-item {\n display: flex;\n padding: var(--atbl-dropdown-item-padding-block) var(--atbl-dropdown-item-padding-inline);\n border-radius: var(--atbl-radius-control);\n outline: none;\n align-items: center;\n gap: 9px;\n }\n\n .altertable-menu-separator {\n background: var(--atbl-border);\n height: 1px;\n margin: 4px 0;\n }\n\n .altertable-exploration-action-trigger {\n --atbl-control-hover-surface: transparent;\n --atbl-control-pressed-surface: transparent;\n --atbl-control-open-surface: transparent;\n color: var(--atbl-text);\n }\n\n .altertable-exploration-action-trigger:-webkit-any(:hover, [data-hovered], [aria-expanded=\"true\"]) {\n color: var(--atbl-accent);\n background: none;\n }\n\n .altertable-exploration-action-trigger:-moz-any(:hover, [data-hovered], [aria-expanded=\"true\"]) {\n color: var(--atbl-accent);\n background: none;\n }\n\n .altertable-exploration-action-trigger:is(:hover, [data-hovered], [aria-expanded=\"true\"]) {\n color: var(--atbl-accent);\n background: none;\n }\n\n .altertable-exploration-action-trigger[data-context-only] {\n visibility: hidden;\n position: absolute;\n overflow: hidden;\n border: 0;\n block-size: 0;\n min-block-size: 0;\n inline-size: 0;\n min-inline-size: 0;\n padding: 0;\n }\n\n .altertable-exploration-actions[data-context-only] {\n position: absolute;\n }\n\n .altertable-selectable-bars, .altertable-pie-chart, .altertable-trend-chart {\n position: relative;\n }\n\n .altertable-chart-copy-status {\n position: absolute;\n border-radius: var(--atbl-radius-control);\n background: var(--atbl-surface);\n color: var(--atbl-text);\n box-shadow: var(--atbl-shadow-overlay);\n font-size: var(--atbl-type-meta-size);\n padding: 4px 8px;\n bottom: 4px;\n }\n\n .altertable-chart-copy-status:not(:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {\n right: 8px;\n }\n\n .altertable-chart-copy-status:not(:-moz-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {\n right: 8px;\n }\n\n .altertable-chart-copy-status:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {\n right: 8px;\n }\n\n .altertable-chart-copy-status:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {\n left: 8px;\n }\n\n .altertable-chart-copy-status:-moz-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {\n left: 8px;\n }\n\n .altertable-chart-copy-status:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {\n left: 8px;\n }\n\n .altertable-exploration-action-menu {\n --atbl-focus-outline: none;\n width: max-content;\n min-width: 180px;\n }\n}\n\n/* packages/data-app-react/src/ui/FilterControls.css */\n@layer atbl.components {\n .altertable-number-field, .altertable-radio-group, .altertable-checkbox-group {\n display: flex;\n gap: var(--atbl-space-xs);\n font: var(--atbl-type-label-size) / var(--atbl-type-label-leading) var(--atbl-font);\n flex-direction: column;\n min-width: 0;\n }\n\n .altertable-number-field > label, .altertable-radio-group > .altertable-control-label, .altertable-checkbox-group > label {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n }\n\n .altertable-number-field [data-atbl-internal-surface=\"field\"] {\n min-height: var(--atbl-control-height);\n padding: var(--atbl-control-padding-block) var(--atbl-control-padding-inline);\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-control);\n background: var(--atbl-surface);\n color: var(--atbl-text);\n box-sizing: border-box;\n }\n\n .altertable-number-field input {\n outline: 0;\n color: inherit;\n font: inherit;\n background: none;\n border: 0;\n width: 100%;\n min-width: 0;\n }\n\n .altertable-number-range-field {\n display: flex;\n gap: var(--atbl-space-sm);\n border: 0;\n flex-wrap: wrap;\n min-width: 0;\n margin: 0;\n padding: 0;\n }\n\n .altertable-number-range-field legend {\n margin-bottom: var(--atbl-space-xs);\n font-size: var(--atbl-type-label-size);\n padding: 0;\n }\n\n .altertable-number-range-field .altertable-number-field {\n flex: 110px;\n max-width: 160px;\n }\n\n .altertable-number-range-field p {\n color: var(--atbl-danger);\n flex-basis: 100%;\n margin: 0;\n }\n\n .altertable-radio {\n display: inline-flex;\n align-items: center;\n gap: var(--atbl-space-xs);\n border-radius: var(--atbl-radius-control);\n }\n\n .altertable-radio-mark {\n display: grid;\n border: 1px solid var(--atbl-muted);\n border-radius: 50%;\n flex: none;\n place-items: center;\n width: 1em;\n height: 1em;\n }\n\n .altertable-radio[data-selected] .altertable-radio-mark:after {\n content: \"\";\n background: var(--atbl-accent);\n border-radius: 50%;\n width: .5em;\n height: .5em;\n }\n\n .altertable-segmented-control {\n align-items: center;\n gap: var(--atbl-space-sm);\n flex-direction: row;\n }\n\n .altertable-segmented-options {\n display: inline-flex;\n min-width: 0;\n }\n\n .altertable-segmented-control .altertable-radio {\n padding: var(--atbl-control-padding-block) var(--atbl-control-padding-inline);\n min-height: var(--atbl-control-height);\n box-sizing: border-box;\n border: 1px solid var(--atbl-border);\n border-radius: 0;\n }\n\n .altertable-segmented-options .altertable-radio:first-child {\n border-radius: var(--atbl-radius-control) 0 0 var(--atbl-radius-control);\n }\n\n .altertable-segmented-control .altertable-radio:last-child {\n border-radius: 0 var(--atbl-radius-control) var(--atbl-radius-control) 0;\n }\n\n .altertable-segmented-control .altertable-radio + .altertable-radio {\n margin-inline-start: -1px;\n }\n\n .altertable-segmented-control .altertable-radio-mark {\n display: none;\n }\n\n .altertable-filter-bar, .altertable-filter-actions {\n display: flex;\n align-items: center;\n gap: var(--atbl-space-sm);\n flex-wrap: wrap;\n min-width: 0;\n }\n\n .altertable-filter-bar > * {\n min-width: 0;\n max-width: 100%;\n }\n\n .altertable-filter-actions, .altertable-checkbox-group {\n border: 0;\n margin: 0;\n padding: 0;\n }\n\n .altertable-checkbox-group legend {\n color: var(--atbl-muted);\n margin-bottom: var(--atbl-space-xs);\n }\n\n :-webkit-any(.altertable-filter-bar, .altertable-variable-bar) .altertable-number-field {\n flex-direction: row;\n align-items: center;\n }\n\n :-moz-any(.altertable-filter-bar, .altertable-variable-bar) .altertable-number-field {\n flex-direction: row;\n align-items: center;\n }\n\n :is(.altertable-filter-bar, .altertable-variable-bar) .altertable-number-field {\n flex-direction: row;\n align-items: center;\n }\n\n :-webkit-any(.altertable-filter-bar, .altertable-variable-bar) .altertable-number-field > label {\n white-space: nowrap;\n }\n\n :-moz-any(.altertable-filter-bar, .altertable-variable-bar) .altertable-number-field > label {\n white-space: nowrap;\n }\n\n :is(.altertable-filter-bar, .altertable-variable-bar) .altertable-number-field > label {\n white-space: nowrap;\n }\n\n :-webkit-any(.altertable-filter-bar, .altertable-variable-bar) .altertable-number-range-field {\n position: relative;\n }\n\n :-moz-any(.altertable-filter-bar, .altertable-variable-bar) .altertable-number-range-field {\n position: relative;\n }\n\n :is(.altertable-filter-bar, .altertable-variable-bar) .altertable-number-range-field {\n position: relative;\n }\n\n :-webkit-any(.altertable-filter-bar, .altertable-variable-bar) .altertable-number-range-field legend {\n position: absolute;\n overflow: hidden;\n clip-path: inset(50%);\n width: 1px;\n height: 1px;\n }\n\n :-moz-any(.altertable-filter-bar, .altertable-variable-bar) .altertable-number-range-field legend {\n position: absolute;\n overflow: hidden;\n clip-path: inset(50%);\n width: 1px;\n height: 1px;\n }\n\n :is(.altertable-filter-bar, .altertable-variable-bar) .altertable-number-range-field legend {\n position: absolute;\n overflow: hidden;\n clip-path: inset(50%);\n width: 1px;\n height: 1px;\n }\n\n .altertable-select-trigger {\n font-size: var(--atbl-control-text-size, var(--atbl-type-body-size));\n justify-content: space-between;\n min-width: 90px;\n }\n\n .altertable-select-trigger > svg:last-child {\n color: var(--atbl-muted);\n flex: none;\n margin-inline-start: var(--atbl-space-sm);\n }\n\n .altertable-select-popover {\n z-index: 160;\n width: min(260px, 100vw - 24px);\n }\n\n .altertable-select-options {\n display: flex;\n gap: var(--atbl-dropdown-item-gap);\n padding: var(--atbl-dropdown-padding);\n overflow: auto;\n outline: none;\n flex-direction: column;\n max-height: min(320px, 60dvh);\n }\n\n .altertable-select-option {\n display: flex;\n align-items: center;\n gap: var(--atbl-space-sm);\n padding: var(--atbl-dropdown-item-padding-block) var(--atbl-dropdown-item-padding-inline);\n border-radius: var(--atbl-radius-control);\n outline: none;\n }\n\n .altertable-select-option small {\n display: block;\n color: var(--atbl-muted);\n }\n\n .altertable-number-filter-popover {\n z-index: 150;\n padding: var(--atbl-space-md);\n width: min(340px, 100vw - 24px);\n }\n\n .altertable-number-filter-dialog {\n outline: none;\n }\n\n .altertable-number-filter-editor {\n display: flex;\n gap: var(--atbl-space-md);\n flex-direction: column;\n }\n\n .altertable-number-filter-editor h3 {\n font: inherit;\n font-weight: var(--atbl-type-label-weight);\n margin: 0;\n }\n\n .altertable-number-filter-editor .altertable-select-trigger {\n width: 100%;\n }\n\n .altertable-number-filter-editor .altertable-number-range-field .altertable-number-field {\n max-width: none;\n }\n\n .altertable-number-filter-actions {\n display: flex;\n justify-content: flex-end;\n gap: var(--atbl-space-xs);\n }\n\n .altertable-number-filter-actions > [data-variant=\"ghost\"] {\n margin-inline-end: auto;\n }\n\n .altertable-segmented-options .altertable-radio:only-child {\n border-radius: var(--atbl-radius-control);\n }\n\n @media (max-width: 560px), (any-pointer: coarse) {\n .altertable-select-trigger {\n font-size: max(16px, var(--atbl-control-text-size, var(--atbl-type-body-size)));\n }\n }\n\n .altertable-number-filter-feedback {\n color: var(--atbl-danger);\n min-height: 1.4em;\n margin: 0;\n }\n\n .altertable-display-options-label {\n display: inline-flex;\n align-items: baseline;\n gap: var(--atbl-space-sm);\n }\n\n .altertable-display-options-label small {\n color: var(--atbl-muted);\n font-variant-numeric: tabular-nums;\n font-size: .85em;\n }\n\n .altertable-select[data-label-placement=\"inline\"] {\n display: inline-flex;\n gap: 0;\n }\n\n .altertable-select-trigger.altertable-picker-trigger > svg:last-child {\n margin-inline-start: auto;\n }\n\n .altertable-select-trigger[data-size=\"compact\"] {\n --atbl-type-label-size: var(--atbl-type-meta-size);\n min-width: 0;\n }\n}\n\n/* packages/data-app-react/src/ui/Field.css */\n@layer atbl.components {\n .altertable-field {\n display: grid;\n gap: var(--atbl-space-xs);\n font: var(--atbl-type-label-size) / var(--atbl-type-label-leading) var(--atbl-font);\n min-width: 0;\n }\n\n .altertable-field > :-webkit-any(label, .react-aria-Label, .altertable-field-label) {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-label-size);\n }\n\n .altertable-field > :-moz-any(label, .react-aria-Label, .altertable-field-label) {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-label-size);\n }\n\n .altertable-field > :is(label, .react-aria-Label, .altertable-field-label) {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-label-size);\n }\n\n .altertable-field[data-label-placement=\"above\"] > :-webkit-any(label, .react-aria-Label, .altertable-field-label) {\n font-weight: var(--atbl-type-label-weight);\n }\n\n .altertable-field[data-label-placement=\"above\"] > :-moz-any(label, .react-aria-Label, .altertable-field-label) {\n font-weight: var(--atbl-type-label-weight);\n }\n\n .altertable-field[data-label-placement=\"above\"] > :is(label, .react-aria-Label, .altertable-field-label) {\n font-weight: var(--atbl-type-label-weight);\n }\n\n .altertable-field[data-label-placement=\"inline\"] {\n grid-template-columns: auto auto;\n align-items: center;\n }\n\n .altertable-field[data-label-placement=\"beside\"] {\n grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);\n align-items: center;\n gap: var(--atbl-space-sm);\n }\n\n .altertable-field[data-label-placement=\"beside\"] > :-webkit-any(label, .react-aria-Label, .altertable-field-label) {\n font-size: var(--atbl-type-label-size);\n }\n\n .altertable-field[data-label-placement=\"beside\"] > :-moz-any(label, .react-aria-Label, .altertable-field-label) {\n font-size: var(--atbl-type-label-size);\n }\n\n .altertable-field[data-label-placement=\"beside\"] > :is(label, .react-aria-Label, .altertable-field-label) {\n font-size: var(--atbl-type-label-size);\n }\n\n .altertable-field[data-label-placement=\"beside\"] > button {\n font-weight: 400;\n }\n\n .altertable-field[data-label-placement=\"above\"] > :-webkit-any(button, .altertable-date-range) {\n width: 100%;\n min-width: 0;\n max-width: 100%;\n }\n\n .altertable-field[data-label-placement=\"above\"] > :-moz-any(button, .altertable-date-range) {\n width: 100%;\n min-width: 0;\n max-width: 100%;\n }\n\n .altertable-field[data-label-placement=\"above\"] > :is(button, .altertable-date-range) {\n width: 100%;\n min-width: 0;\n max-width: 100%;\n }\n\n .altertable-field[data-label-placement=\"beside\"] > :-webkit-any(button, .altertable-date-range) {\n width: 100%;\n min-width: 0;\n max-width: 100%;\n }\n\n .altertable-field[data-label-placement=\"beside\"] > :-moz-any(button, .altertable-date-range) {\n width: 100%;\n min-width: 0;\n max-width: 100%;\n }\n\n .altertable-field[data-label-placement=\"beside\"] > :is(button, .altertable-date-range) {\n width: 100%;\n min-width: 0;\n max-width: 100%;\n }\n\n .altertable-field .altertable-picker-value {\n max-width: calc(100% - var(--atbl-control-icon-size) - var(--atbl-control-gap));\n }\n}\n\n/* packages/data-app-react/src/ui/Checkbox.css */\n@layer atbl.components {\n .altertable-checkbox {\n position: relative;\n display: inline-flex;\n border-radius: var(--atbl-radius-control);\n font: var(--atbl-type-label-size) / var(--atbl-type-label-leading) var(--atbl-font);\n color: var(--atbl-text);\n align-items: flex-start;\n gap: 9px;\n }\n\n .altertable-checkbox input {\n position: absolute;\n cursor: inherit;\n opacity: 0;\n width: 100%;\n height: 100%;\n margin: 0;\n inset: 0;\n }\n\n .altertable-checkbox .altertable-selection-mark {\n margin-top: 2px;\n }\n\n .altertable-checkbox small {\n display: block;\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n margin-top: 2px;\n }\n}\n\n/* packages/data-app-react/src/ui/DateRangePicker.css */\n@layer atbl.components {\n .altertable-date-range {\n position: relative;\n display: inline-grid;\n line-height: var(--atbl-type-label-leading);\n color: var(--atbl-text);\n font-size: var(--atbl-type-label-size);\n gap: 6px;\n min-inline-size: 0;\n max-inline-size: 100%;\n }\n\n .altertable-date-range .react-aria-Label {\n color: var(--atbl-muted);\n font-weight: 550;\n }\n\n .altertable-date-range .react-aria-Group {\n display: flex;\n align-items: center;\n gap: var(--atbl-control-gap);\n min-height: var(--atbl-control-height);\n padding: 0 var(--atbl-control-padding-inline) 0 .125rem;\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-control);\n background: var(--atbl-surface);\n transition: border-color var(--atbl-duration-fast) var(--atbl-ease-standard);\n flex-wrap: wrap;\n min-inline-size: 0;\n }\n\n .altertable-date-range[data-invalid] .react-aria-Group {\n border-color: var(--atbl-danger);\n }\n\n .altertable-date-range:has(.altertable-date-range-error) .react-aria-Group {\n border-color: var(--atbl-danger);\n }\n\n .altertable-date-range .react-aria-DateInput {\n display: flex;\n max-inline-size: 100%;\n white-space: nowrap;\n font-weight: var(--atbl-type-label-weight);\n flex: none;\n min-width: 0;\n }\n\n .altertable-date-range .react-aria-DateSegment {\n font-variant-numeric: tabular-nums;\n outline: none;\n border-radius: 3px;\n padding: 3px 1px;\n }\n\n .altertable-date-range .react-aria-DateSegment[data-type=\"literal\"], .altertable-date-range .react-aria-Group > span[aria-hidden] {\n color: var(--atbl-muted);\n }\n\n .altertable-date-range-comparison {\n background: var(--atbl-subtle);\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n font-weight: var(--atbl-type-label-weight);\n white-space: nowrap;\n border-radius: 4px;\n justify-self: start;\n padding: 2px 5px;\n }\n\n .altertable-date-range .react-aria-Group .react-aria-Button {\n display: grid;\n width: var(--atbl-control-compact-height);\n min-height: var(--atbl-control-compact-height);\n border-radius: max(0px, calc(var(--atbl-radius-control) - 3px));\n color: var(--atbl-muted);\n outline: none;\n transition: background-color var(--atbl-duration-fast) var(--atbl-ease-standard), color var(--atbl-duration-fast) var(--atbl-ease-standard);\n background: none;\n border: 0;\n flex: none;\n place-items: center;\n }\n\n .altertable-date-range .react-aria-Group .react-aria-Button[data-hovered], .altertable-date-range .react-aria-Group .react-aria-Button[data-pressed] {\n color: var(--atbl-text);\n }\n\n .altertable-date-range .altertable-date-range-reset {\n display: grid;\n width: var(--atbl-control-compact-height);\n min-height: var(--atbl-control-compact-height);\n border-radius: var(--atbl-radius-control);\n color: var(--atbl-muted);\n background: none;\n border: 0;\n flex: none;\n place-items: center;\n margin-left: auto;\n padding: 0;\n }\n\n .altertable-date-range .altertable-date-range-reset:hover {\n background: var(--atbl-subtle);\n color: var(--atbl-text);\n }\n\n .altertable-date-range-error {\n position: absolute;\n z-index: 1;\n color: var(--atbl-danger);\n font-size: var(--atbl-type-meta-size);\n width: max-content;\n max-width: 100%;\n top: calc(100% + 6px);\n right: 0;\n }\n\n .altertable-date-range-popover {\n z-index: 100;\n overflow-y: auto;\n overscroll-behavior: contain;\n width: min(480px, 100vw - 24px);\n max-height: calc(100dvh - 24px);\n padding: 12px;\n }\n\n .altertable-date-range-popover[data-entering] {\n animation: altertable-calendar-in var(--atbl-duration-fast) var(--atbl-ease-enter);\n }\n\n @keyframes altertable-calendar-in {\n from {\n opacity: 0;\n translate: 0 -4px;\n }\n }\n\n .altertable-date-range-popover .react-aria-Dialog {\n outline: none;\n }\n\n .altertable-date-range-content {\n display: grid;\n grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);\n gap: 14px;\n }\n\n .altertable-date-range-presets {\n display: flex;\n overflow-y: auto;\n overscroll-behavior: contain;\n border: 0;\n border-right: 1px solid var(--atbl-border);\n flex-direction: column;\n min-width: 0;\n max-height: min(380px, 62dvh);\n margin: 0;\n padding: 0 12px 0 0;\n }\n\n .altertable-date-range-preset-list {\n display: flex;\n flex-direction: column;\n gap: 2px;\n min-width: 0;\n }\n\n .altertable-date-range-custom {\n min-width: 0;\n }\n\n .altertable-date-range-heading {\n display: block;\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n letter-spacing: .04em;\n text-transform: uppercase;\n padding: 5px 8px 9px;\n font-weight: 650;\n }\n\n .altertable-date-range-popover .altertable-date-range-preset {\n display: flex;\n border-radius: var(--atbl-radius-control);\n color: var(--atbl-text);\n text-align: left;\n line-height: 1.25;\n font: inherit;\n background: none;\n border: 0;\n justify-content: flex-start;\n width: 100%;\n height: auto;\n min-height: 34px;\n padding: 7px 9px;\n }\n\n .altertable-date-range-popover .altertable-date-range-preset[aria-current=\"true\"] {\n font-weight: 650;\n }\n\n .altertable-date-range-footer {\n display: flex;\n border-radius: var(--atbl-radius-control);\n background: var(--atbl-subtle);\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n font-variant-numeric: tabular-nums;\n flex-wrap: wrap;\n justify-content: space-between;\n align-items: end;\n gap: 12px;\n margin-top: 12px;\n padding: 10px 12px;\n }\n\n .altertable-date-range-footer > div {\n display: grid;\n gap: 2px;\n }\n\n .altertable-date-range-footer-label {\n font-weight: var(--atbl-type-label-weight);\n }\n\n .altertable-date-range-footer strong {\n color: var(--atbl-text);\n font-size: var(--atbl-type-label-size);\n font-weight: 650;\n }\n\n .altertable-date-range-footer-meta {\n white-space: nowrap;\n }\n\n .altertable-date-range-compare {\n display: flex;\n align-items: flex-start;\n gap: 9px;\n margin-top: 10px;\n padding: 10px 4px 2px;\n }\n\n .altertable-date-range-popover .react-aria-RangeCalendar {\n width: max-content;\n max-width: calc(100vw - 32px);\n }\n\n .altertable-date-range-popover .react-aria-RangeCalendar header {\n display: flex;\n align-items: center;\n gap: 4px;\n margin-bottom: 8px;\n }\n\n .altertable-date-range-popover .react-aria-Button:not(.altertable-date-range-preset) {\n display: grid;\n width: var(--atbl-control-compact-height);\n min-height: var(--atbl-control-compact-height);\n border-radius: var(--atbl-radius-control);\n color: inherit;\n font: inherit;\n outline: none;\n background: none;\n border: 0;\n place-items: center;\n padding: 0;\n }\n\n .altertable-date-range-popover .altertable-calendar-select:first-of-type {\n flex: 1;\n }\n\n .altertable-date-range-popover .altertable-calendar-select .react-aria-Button {\n display: inline-flex;\n justify-content: space-between;\n align-items: center;\n gap: 6px;\n width: 100%;\n min-width: 0;\n padding: 0 8px;\n font-weight: 650;\n }\n\n .altertable-date-range-popover .altertable-calendar-select svg {\n color: var(--atbl-muted);\n }\n\n .altertable-date-range-popover .react-aria-CalendarGrid {\n border-collapse: separate;\n border-spacing: 0 2px;\n }\n\n .altertable-date-range-popover .react-aria-CalendarGrid th, .altertable-date-range-popover .react-aria-CalendarGrid td {\n text-align: center;\n width: 36px;\n padding: 0;\n }\n\n .altertable-date-range-popover .react-aria-CalendarHeaderCell {\n min-height: var(--atbl-control-compact-height);\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n font-weight: 550;\n }\n\n .altertable-date-range-popover .react-aria-CalendarCell {\n display: flex;\n border-radius: var(--atbl-radius-control);\n font-variant-numeric: tabular-nums;\n outline: none;\n justify-content: center;\n align-items: center;\n width: 36px;\n height: 34px;\n line-height: 1;\n }\n\n .altertable-date-range-popover .react-aria-CalendarCell[data-outside-month] {\n visibility: hidden;\n }\n\n .altertable-date-range-popover .react-aria-CalendarCell[data-hovered]:not([data-selected]) {\n background: var(--atbl-subtle);\n }\n\n .altertable-date-range-popover .react-aria-CalendarCell[data-selected] {\n background: var(--atbl-accent-subtle, color-mix(in srgb, var(--atbl-accent) var(--atbl-accent-subtle-strength), var(--atbl-surface)));\n border-radius: 0;\n }\n\n .altertable-date-range-popover .react-aria-CalendarCell[data-selection-start]:not(:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {\n border-top-left-radius: var(--atbl-radius-control);\n border-bottom-left-radius: var(--atbl-radius-control);\n }\n\n .altertable-date-range-popover .react-aria-CalendarCell[data-selection-start]:not(:-moz-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {\n border-top-left-radius: var(--atbl-radius-control);\n border-bottom-left-radius: var(--atbl-radius-control);\n }\n\n .altertable-date-range-popover .react-aria-CalendarCell[data-selection-start]:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {\n border-top-left-radius: var(--atbl-radius-control);\n border-bottom-left-radius: var(--atbl-radius-control);\n }\n\n .altertable-date-range-popover .react-aria-CalendarCell[data-selection-start]:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {\n border-top-right-radius: var(--atbl-radius-control);\n border-bottom-right-radius: var(--atbl-radius-control);\n }\n\n .altertable-date-range-popover .react-aria-CalendarCell[data-selection-start]:-moz-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {\n border-top-right-radius: var(--atbl-radius-control);\n border-bottom-right-radius: var(--atbl-radius-control);\n }\n\n .altertable-date-range-popover .react-aria-CalendarCell[data-selection-start]:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {\n border-top-right-radius: var(--atbl-radius-control);\n border-bottom-right-radius: var(--atbl-radius-control);\n }\n\n .altertable-date-range-popover .react-aria-CalendarCell[data-selection-end]:not(:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {\n border-top-right-radius: var(--atbl-radius-control);\n border-bottom-right-radius: var(--atbl-radius-control);\n }\n\n .altertable-date-range-popover .react-aria-CalendarCell[data-selection-end]:not(:-moz-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {\n border-top-right-radius: var(--atbl-radius-control);\n border-bottom-right-radius: var(--atbl-radius-control);\n }\n\n .altertable-date-range-popover .react-aria-CalendarCell[data-selection-end]:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {\n border-top-right-radius: var(--atbl-radius-control);\n border-bottom-right-radius: var(--atbl-radius-control);\n }\n\n .altertable-date-range-popover .react-aria-CalendarCell[data-selection-end]:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {\n border-top-left-radius: var(--atbl-radius-control);\n border-bottom-left-radius: var(--atbl-radius-control);\n }\n\n .altertable-date-range-popover .react-aria-CalendarCell[data-selection-end]:-moz-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {\n border-top-left-radius: var(--atbl-radius-control);\n border-bottom-left-radius: var(--atbl-radius-control);\n }\n\n .altertable-date-range-popover .react-aria-CalendarCell[data-selection-end]:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {\n border-top-left-radius: var(--atbl-radius-control);\n border-bottom-left-radius: var(--atbl-radius-control);\n }\n\n .altertable-date-range-popover .react-aria-CalendarCell[data-selection-start], .altertable-date-range-popover .react-aria-CalendarCell[data-selection-end] {\n background: var(--atbl-accent);\n color: var(--atbl-on-accent);\n font-weight: 650;\n }\n\n .altertable-date-range-popover td:first-child .react-aria-CalendarCell[data-selected]:not(:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {\n border-top-left-radius: var(--atbl-radius-control);\n border-bottom-left-radius: var(--atbl-radius-control);\n }\n\n .altertable-date-range-popover td:first-child .react-aria-CalendarCell[data-selected]:not(:-moz-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {\n border-top-left-radius: var(--atbl-radius-control);\n border-bottom-left-radius: var(--atbl-radius-control);\n }\n\n .altertable-date-range-popover td:first-child .react-aria-CalendarCell[data-selected]:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {\n border-top-left-radius: var(--atbl-radius-control);\n border-bottom-left-radius: var(--atbl-radius-control);\n }\n\n .altertable-date-range-popover td:first-child .react-aria-CalendarCell[data-selected]:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {\n border-top-right-radius: var(--atbl-radius-control);\n border-bottom-right-radius: var(--atbl-radius-control);\n }\n\n .altertable-date-range-popover td:first-child .react-aria-CalendarCell[data-selected]:-moz-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {\n border-top-right-radius: var(--atbl-radius-control);\n border-bottom-right-radius: var(--atbl-radius-control);\n }\n\n .altertable-date-range-popover td:first-child .react-aria-CalendarCell[data-selected]:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {\n border-top-right-radius: var(--atbl-radius-control);\n border-bottom-right-radius: var(--atbl-radius-control);\n }\n\n .altertable-date-range-popover td:last-child .react-aria-CalendarCell[data-selected]:not(:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {\n border-top-right-radius: var(--atbl-radius-control);\n border-bottom-right-radius: var(--atbl-radius-control);\n }\n\n .altertable-date-range-popover td:last-child .react-aria-CalendarCell[data-selected]:not(:-moz-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {\n border-top-right-radius: var(--atbl-radius-control);\n border-bottom-right-radius: var(--atbl-radius-control);\n }\n\n .altertable-date-range-popover td:last-child .react-aria-CalendarCell[data-selected]:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {\n border-top-right-radius: var(--atbl-radius-control);\n border-bottom-right-radius: var(--atbl-radius-control);\n }\n\n .altertable-date-range-popover td:last-child .react-aria-CalendarCell[data-selected]:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {\n border-top-left-radius: var(--atbl-radius-control);\n border-bottom-left-radius: var(--atbl-radius-control);\n }\n\n .altertable-date-range-popover td:last-child .react-aria-CalendarCell[data-selected]:-moz-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {\n border-top-left-radius: var(--atbl-radius-control);\n border-bottom-left-radius: var(--atbl-radius-control);\n }\n\n .altertable-date-range-popover td:last-child .react-aria-CalendarCell[data-selected]:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {\n border-top-left-radius: var(--atbl-radius-control);\n border-bottom-left-radius: var(--atbl-radius-control);\n }\n\n .altertable-date-range-popover .react-aria-CalendarCell[data-disabled], .altertable-date-range-popover .react-aria-CalendarCell[data-unavailable] {\n color: var(--atbl-muted);\n }\n\n .altertable-date-range-popover .react-aria-CalendarCell[data-unavailable] {\n text-decoration: line-through;\n }\n\n .altertable-calendar-select-popover {\n z-index: 150;\n min-width: var(--trigger-width);\n border-radius: var(--atbl-radius-control);\n padding: 4px;\n }\n\n .altertable-calendar-select-popover .react-aria-ListBox {\n overflow: auto;\n outline: none;\n max-height: min(260px, 45dvh);\n }\n\n .altertable-calendar-select-popover .react-aria-ListBoxItem {\n border-radius: var(--atbl-radius-control);\n outline: none;\n padding: 7px 10px;\n }\n\n .altertable-calendar-select-popover .react-aria-ListBoxItem[data-selected] {\n font-weight: 650;\n }\n\n @media (max-width: 620px) {\n .altertable-date-range-popover {\n box-sizing: border-box;\n overflow-y: auto;\n overscroll-behavior: contain;\n width: min(420px, 100vw - 24px);\n max-height: calc(100dvh - 24px);\n }\n\n .altertable-date-range-content {\n grid-template-columns: minmax(0, 1fr);\n gap: 10px;\n }\n\n .altertable-date-range-presets {\n overflow: visible;\n border-right: 0;\n border-bottom: 1px solid var(--atbl-border);\n max-height: none;\n padding: 0 0 10px;\n }\n\n .altertable-date-range-preset-list {\n overflow-x: auto;\n overscroll-behavior-inline: contain;\n scroll-snap-type: x proximity;\n flex-direction: row;\n gap: 6px;\n max-width: 100%;\n padding-bottom: 2px;\n }\n\n .altertable-date-range-popover .altertable-date-range-preset {\n border: 1px solid var(--atbl-border);\n scroll-snap-align: start;\n white-space: nowrap;\n flex: none;\n width: auto;\n min-height: 36px;\n }\n\n .altertable-date-range-heading {\n padding-bottom: 4px;\n }\n\n .altertable-date-range-popover .react-aria-RangeCalendar, .altertable-date-range-popover .react-aria-CalendarGrid {\n width: 100%;\n max-width: none;\n }\n\n .altertable-date-range-popover .react-aria-RangeCalendar header {\n display: grid;\n grid-template-columns: var(--atbl-control-compact-height) minmax(0, 1fr) minmax(0, 1fr) var(--atbl-control-compact-height);\n gap: 6px;\n }\n\n .altertable-date-range-popover .react-aria-CalendarGrid {\n table-layout: fixed;\n }\n\n .altertable-date-range-popover .react-aria-CalendarGrid th, .altertable-date-range-popover .react-aria-CalendarGrid td {\n width: 14.2857%;\n }\n\n .altertable-date-range-popover .react-aria-CalendarCell {\n aspect-ratio: 1;\n width: 100%;\n height: auto;\n min-height: 44px;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-date-range .react-aria-Group, .altertable-date-range .react-aria-Group .react-aria-Button {\n transition: none;\n }\n\n .altertable-date-range-popover[data-entering] {\n animation: none;\n }\n }\n\n .altertable-calendar-select .react-aria-SelectValue {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n min-inline-size: 0;\n }\n\n .altertable-date-range .react-aria-Button > svg, .altertable-date-range-popover .react-aria-Button > svg, .altertable-date-range-reset > svg {\n inline-size: var(--atbl-control-icon-size);\n block-size: var(--atbl-control-icon-size);\n }\n}\n\n/* packages/data-app-react/src/ui/EmptyState.css */\n@layer atbl.components {\n .altertable-empty-state {\n display: flex;\n color: var(--atbl-muted);\n text-align: center;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n gap: 5px;\n min-height: 176px;\n padding: 24px;\n }\n\n .altertable-empty-state strong {\n color: var(--atbl-text);\n font-size: var(--atbl-type-label-size);\n font-weight: var(--atbl-type-label-weight);\n }\n\n .altertable-empty-state p {\n font-size: var(--atbl-type-meta-size);\n white-space: normal;\n max-width: 40ch;\n margin: 0;\n line-height: 1.5;\n }\n\n .altertable-empty-state[data-variant=\"table\"] {\n min-height: 112px;\n padding: 18px;\n }\n\n .altertable-empty-state-action {\n display: flex;\n justify-content: center;\n gap: var(--atbl-space-sm);\n flex-wrap: wrap;\n margin-block-start: var(--atbl-space-sm);\n }\n}\n\n/* packages/data-app-react/src/ui/Kbd.css */\n@layer atbl.components {\n .altertable-kbd {\n display: inline-flex;\n border: 1px solid var(--atbl-border);\n background: var(--atbl-subtle);\n color: var(--atbl-muted);\n font: var(--atbl-type-label-weight) var(--atbl-type-meta-size) / var(--atbl-type-label-leading) var(--atbl-font);\n font-variant-numeric: tabular-nums;\n white-space: nowrap;\n border-radius: 5px;\n justify-content: center;\n align-items: center;\n min-width: 1.6em;\n padding: 2px 5px;\n }\n\n .altertable-button[data-variant=\"primary\"] .altertable-kbd {\n color: inherit;\n border-color: color-mix(in srgb, currentColor 30%, transparent);\n background: none;\n }\n}\n\n/* packages/data-app-react/src/ui/QueryList.css */\n@layer atbl.components {\n .altertable-query-list {\n display: grid;\n gap: 20px;\n min-width: 0;\n }\n\n .altertable-query-list summary {\n display: inline-flex;\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n font-weight: var(--atbl-type-label-weight);\n list-style: none;\n transition: color var(--atbl-duration-fast) var(--atbl-ease-standard);\n border-radius: 4px;\n align-items: center;\n gap: 6px;\n width: -moz-fit-content;\n width: fit-content;\n }\n\n .altertable-query-list summary::-webkit-details-marker {\n display: none;\n }\n\n .altertable-query-list summary:before {\n content: \"\";\n transition: rotate var(--atbl-duration-fast) var(--atbl-ease-standard);\n border-block-start: 4px solid #0000;\n border-block-end: 4px solid #0000;\n border-inline-start: 5px solid;\n width: 0;\n height: 0;\n }\n\n .altertable-query-list[open] summary:before {\n rotate: 90deg;\n }\n\n .altertable-query-list summary:hover {\n color: var(--atbl-text);\n }\n\n .altertable-query-list figure {\n display: grid;\n overflow: hidden;\n border: 1px solid var(--atbl-border);\n background: var(--atbl-surface);\n border-radius: 10px;\n gap: 0;\n min-width: 0;\n margin: 0;\n }\n\n .altertable-query-list figcaption {\n display: flex;\n border-bottom: 1px solid var(--atbl-border);\n color: var(--atbl-text);\n font: var(--atbl-type-label-weight) var(--atbl-type-meta-size) / var(--atbl-type-label-leading) var(--atbl-font);\n background: none;\n justify-content: space-between;\n align-items: center;\n gap: 12px;\n min-height: 36px;\n padding: 3px 6px 3px 14px;\n }\n\n .altertable-query-filename {\n display: inline-flex;\n overflow-wrap: anywhere;\n align-items: center;\n gap: 7px;\n min-width: 0;\n }\n\n .altertable-query-actions {\n display: inline-flex;\n flex: none;\n align-items: center;\n gap: 2px;\n }\n\n .altertable-query-action {\n color: var(--atbl-muted);\n background: none;\n border: 0;\n width: 28px;\n min-width: 28px;\n min-height: 28px;\n padding: 0;\n }\n\n .altertable-query-action:hover:not(:disabled) {\n color: var(--atbl-text);\n background: var(--atbl-subtle);\n }\n\n .altertable-query-list pre {\n background: var(--atbl-code-surface);\n color: var(--atbl-code-text);\n font: var(--atbl-type-meta-size) / var(--atbl-type-body-leading) var(--atbl-mono-font);\n white-space: pre-wrap;\n overflow-wrap: anywhere;\n tab-size: 2;\n border: 0;\n border-radius: 0;\n margin: 0;\n padding: 14px 16px 18px;\n }\n\n .altertable-query-parameters {\n display: flex;\n border-top: 1px solid var(--atbl-border);\n color: var(--atbl-muted);\n font: var(--atbl-type-meta-size) / var(--atbl-type-body-leading) var(--atbl-font);\n flex-wrap: wrap;\n align-items: baseline;\n gap: 8px 12px;\n min-width: 0;\n padding: 10px 14px;\n }\n\n .altertable-query-parameters dl {\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n min-width: 0;\n margin: 0;\n }\n\n .altertable-query-parameters dl > div {\n display: flex;\n border: 1px solid var(--atbl-border);\n background: var(--atbl-subtle);\n overflow-wrap: anywhere;\n border-radius: 6px;\n flex-wrap: wrap;\n align-items: baseline;\n gap: 8px;\n min-width: 0;\n max-width: 100%;\n padding: 3px 8px;\n }\n\n .altertable-query-parameters dt, .altertable-query-parameters dd {\n min-width: 0;\n margin: 0;\n }\n\n .altertable-query-parameters dt {\n flex-shrink: 0;\n max-width: 100%;\n }\n\n .altertable-query-parameters dd {\n color: var(--atbl-text);\n }\n\n .altertable-query-parameters code {\n font-family: var(--atbl-mono-font);\n }\n\n .altertable-sql-keyword {\n color: var(--atbl-code-keyword, var(--atbl-accent));\n font-weight: 650;\n }\n\n .altertable-query-unavailable {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-label-size);\n margin: 0;\n }\n\n .altertable-query-notebook {\n gap: 16px;\n }\n\n .altertable-query-notebook-header {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n align-items: center;\n gap: 8px;\n padding: 0 0 4px;\n }\n\n .altertable-query-notebook-header > span {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-label-size);\n font-weight: 450;\n }\n\n .altertable-query-notebook-header small {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n font-weight: var(--atbl-type-meta-weight);\n margin-inline-start: 8px;\n }\n\n .altertable-query-notebook-header .altertable-button {\n display: inline-flex;\n font-size: var(--atbl-type-meta-size);\n align-items: center;\n gap: 6px;\n min-height: 30px;\n }\n\n .altertable-query-notebook figure {\n border-radius: 10px;\n }\n\n .altertable-query-notebook-error {\n color: var(--atbl-danger);\n font-size: var(--atbl-type-meta-size);\n padding: 8px 12px;\n }\n\n @media (hover: hover) and (pointer: fine) {\n .altertable-query-actions .altertable-query-action {\n opacity: 0;\n pointer-events: none;\n transition: opacity var(--atbl-duration-fast) var(--atbl-ease-standard);\n }\n\n .altertable-query-list figure:hover .altertable-query-action, .altertable-query-list figure:focus-within .altertable-query-action {\n opacity: 1;\n pointer-events: auto;\n }\n\n .altertable-query-actions:has(output) .altertable-query-action {\n opacity: 1;\n pointer-events: auto;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-query-list summary, .altertable-query-list summary:before, .altertable-query-actions .altertable-query-action {\n transition: none;\n }\n }\n}\n\n/* packages/data-app-react/src/ui/Sheet.css */\n@layer atbl.components {\n :root:has(.altertable-sheet:modal) {\n overflow: hidden;\n }\n\n .altertable-sheet:not([open]) {\n display: none;\n }\n\n .altertable-sheet {\n position: fixed;\n inset: var(--atbl-frame-inset-top, 0px) 0 auto auto;\n height: var(--atbl-frame-visible-height);\n overflow: visible;\n border: 0;\n border-left: 1px solid var(--atbl-border);\n background: var(--atbl-surface);\n color: var(--atbl-text);\n box-shadow: var(--atbl-shadow-overlay);\n font: var(--atbl-type-body-size) / var(--atbl-type-label-leading) var(--atbl-font);\n opacity: 0;\n transition: translate var(--atbl-duration-slow) cubic-bezier(.22, 1, .36, 1), opacity var(--atbl-duration-slow) var(--atbl-ease-standard);\n border-radius: 0;\n width: min(640px, 100vw);\n max-width: none;\n max-height: none;\n margin: 0;\n padding: 0;\n translate: 100%;\n }\n\n .altertable-sheet[data-wide] {\n width: min(960px, 100vw);\n }\n\n .altertable-sheet[open] {\n opacity: 1;\n translate: 0;\n }\n\n @starting-style {\n .altertable-sheet[open] {\n opacity: 0;\n translate: 100%;\n }\n }\n\n .altertable-sheet[open][data-closing] {\n opacity: 0;\n transition-timing-function: ease-in;\n translate: 100%;\n }\n\n .altertable-sheet::backdrop {\n background: var(--atbl-backdrop);\n opacity: 0;\n transition: opacity var(--atbl-duration-slow) var(--atbl-ease-standard);\n }\n\n .altertable-sheet[open]::backdrop {\n opacity: 1;\n }\n\n .altertable-sheet[open][data-closing]::backdrop {\n opacity: 0;\n }\n\n @starting-style {\n .altertable-sheet[open]::backdrop {\n opacity: 0;\n }\n }\n\n .altertable-sheet-shell {\n display: grid;\n grid-template-rows: auto minmax(0, 1fr) auto;\n height: 100%;\n }\n\n .altertable-sheet-header {\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n gap: var(--atbl-space-md);\n padding: var(--atbl-space-lg) calc((var(--atbl-space-lg) + var(--atbl-space-xl)) / 2) calc((var(--atbl-space-md) + var(--atbl-space-lg)) / 2);\n border-bottom: 1px solid var(--atbl-border);\n }\n\n .altertable-sheet-header h2 {\n font-size: var(--atbl-type-section-size);\n font-weight: var(--atbl-type-heading-weight);\n line-height: var(--atbl-type-heading-leading);\n letter-spacing: -.02em;\n overflow-wrap: anywhere;\n margin: 0;\n }\n\n .altertable-sheet-header p {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-label-size);\n margin: 4px 0 0;\n line-height: 1.45;\n }\n\n .altertable-sheet-actions {\n display: flex;\n align-items: center;\n gap: 4px;\n margin: -4px -8px 0 0;\n }\n\n .altertable-sheet-close {\n color: var(--atbl-muted);\n }\n\n .altertable-sheet-body {\n overflow-y: auto;\n overscroll-behavior: contain;\n padding: var(--atbl-space-lg) calc((var(--atbl-space-lg) + var(--atbl-space-xl)) / 2) calc(var(--atbl-space-xl) + var(--atbl-space-md) / 2);\n min-height: 0;\n }\n\n .altertable-sheet-footer {\n padding: var(--atbl-space-md) calc((var(--atbl-space-lg) + var(--atbl-space-xl)) / 2);\n border-top: 1px solid var(--atbl-border);\n }\n\n @media (min-width: 601px) {\n .altertable-sheet:where([data-placement=\"side\"][data-side=\"left\"]) {\n inset: var(--atbl-frame-inset-top, 0px) auto auto 0;\n border-left: 0;\n border-right: 1px solid var(--atbl-border);\n translate: -100%;\n }\n\n .altertable-sheet:where([data-placement=\"side\"][data-side=\"left\"])[open] {\n translate: 0;\n }\n\n .altertable-sheet:where([data-placement=\"side\"][data-side=\"left\"])[open][data-closing] {\n translate: -100%;\n }\n\n @starting-style {\n .altertable-sheet:where([data-placement=\"side\"][data-side=\"left\"])[open] {\n translate: -100%;\n }\n }\n }\n\n @media (max-width: 960px) {\n .altertable-sheet[data-wide] {\n inset: auto 0 var(--atbl-frame-inset-bottom, 0px);\n box-shadow: none;\n border: 0;\n translate: 0 100%;\n }\n\n .altertable-sheet[data-wide][open] {\n translate: 0;\n }\n\n .altertable-sheet[data-wide][open][data-closing] {\n translate: 0 100%;\n }\n\n @starting-style {\n .altertable-sheet[data-wide][open] {\n translate: 0 100%;\n }\n }\n }\n\n @media (max-width: 600px) {\n .altertable-sheet {\n inset: auto 0 var(--atbl-frame-inset-bottom, 0px);\n box-shadow: none;\n border: 0;\n translate: 0 100%;\n }\n\n .altertable-sheet[open] {\n translate: 0;\n }\n\n .altertable-sheet[open][data-closing] {\n translate: 0 100%;\n }\n\n @starting-style {\n .altertable-sheet[open] {\n translate: 0 100%;\n }\n }\n\n .altertable-sheet-header {\n padding: 20px 20px 16px;\n }\n\n .altertable-sheet-body {\n padding: 20px 20px 32px;\n }\n\n .altertable-sheet-footer {\n padding: 14px 20px;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-sheet, .altertable-sheet[open][data-closing] {\n transition: none;\n translate: 0;\n }\n\n .altertable-sheet::backdrop {\n transition: none;\n }\n\n @starting-style {\n .altertable-sheet[open] {\n translate: 0;\n }\n }\n }\n\n .altertable-sheet[data-placement=\"center\"] {\n inset: var(--atbl-frame-inset-top, 0px) 0 var(--atbl-frame-inset-bottom, 0px);\n max-height: calc(var(--atbl-frame-visible-height) - 32px);\n border: 1px solid var(--atbl-border, #e3e6e8);\n border-radius: var(--atbl-radius-overlay);\n width: min(480px, 100vw - 32px);\n height: -moz-fit-content;\n height: fit-content;\n margin: auto;\n translate: 0;\n }\n\n .altertable-sheet[data-placement=\"center\"] .altertable-sheet-shell {\n height: auto;\n }\n\n .altertable-sheet[data-placement=\"center\"] .altertable-sheet-header {\n padding: 20px 24px 16px;\n }\n\n .altertable-sheet[data-placement=\"center\"] .altertable-sheet-body {\n padding: 0 24px 20px;\n }\n\n .altertable-sheet[data-placement=\"center\"] .altertable-sheet-footer {\n padding: 16px 24px;\n }\n}\n\n/* packages/data-app-react/src/ui/Tabs.css */\n@layer atbl.components {\n .altertable-tabs .react-aria-TabList {\n display: flex;\n gap: var(--atbl-space-lg);\n overflow-x: auto;\n overscroll-behavior-x: none;\n border-bottom: 1px solid var(--atbl-border);\n scrollbar-width: none;\n }\n\n .altertable-tabs .react-aria-Tab {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-label-size);\n outline: none;\n transition: color var(--atbl-duration-fast) var(--atbl-ease-standard), border-color var(--atbl-duration-normal) var(--atbl-ease-standard);\n border-bottom: 2px solid #0000;\n flex: none;\n margin-bottom: -1px;\n padding: 0 1px 12px;\n font-weight: 550;\n }\n\n .altertable-tabs .react-aria-Tab[data-hovered] {\n color: var(--atbl-text);\n }\n\n .altertable-tabs .react-aria-Tab[data-selected] {\n border-bottom-color: var(--atbl-accent);\n color: var(--atbl-text);\n }\n\n .altertable-tabs .react-aria-Tab[data-focus-visible] {\n border-radius: 2px;\n }\n\n .altertable-tabs .react-aria-TabPanels {\n min-width: 0;\n padding-block-start: var(--atbl-space-md);\n }\n\n .altertable-tabs .react-aria-TabPanel {\n outline: none;\n min-width: 0;\n }\n\n .altertable-tabs .react-aria-TabPanel[data-inert] {\n display: none;\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-tabs .react-aria-Tab {\n transition: none;\n }\n }\n}\n\n/* packages/data-app-react/src/ui/AboutData.css */\n@layer atbl.components {\n .altertable-about-visual {\n display: grid;\n overflow-x: auto;\n overscroll-behavior-x: none;\n overflow-y: hidden;\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-surface);\n background: var(--atbl-subtle);\n min-width: 0;\n margin: 0 0 24px;\n padding: 22px 20px 16px;\n }\n\n .altertable-about-visual > * {\n min-width: 0;\n }\n\n .altertable-about-visual[data-kind=\"metric\"] {\n padding: 16px 18px;\n }\n\n .altertable-about-visual[data-kind=\"widget\"] {\n background: var(--atbl-surface);\n padding: 0;\n }\n\n .altertable-about-body {\n display: grid;\n gap: 28px;\n min-width: 0;\n }\n\n .altertable-about-glossary-list {\n display: grid;\n gap: 16px;\n }\n\n .altertable-about-glossary-entry {\n display: grid;\n gap: 3px;\n }\n\n .altertable-about-glossary-entry > h3 {\n font-size: var(--atbl-type-body-size);\n letter-spacing: -.01em;\n margin: 0;\n font-weight: 650;\n }\n\n .altertable-about-glossary-entry > p {\n margin: 0;\n line-height: 1.55;\n }\n\n .altertable-about-tabs {\n display: grid;\n gap: 0;\n min-width: 0;\n }\n\n .altertable-about-tabbar {\n position: sticky;\n z-index: 2;\n background: var(--atbl-surface);\n margin-top: -24px;\n padding: 24px 0 14px;\n top: -24px;\n }\n\n @media (max-width: 600px) {\n .altertable-about-tabbar {\n margin-top: -20px;\n padding-top: 20px;\n top: -20px;\n }\n }\n\n .altertable-about-tabs .react-aria-TabList {\n display: flex;\n background: var(--atbl-subtle);\n border: 0;\n border-radius: 10px;\n flex-wrap: wrap;\n gap: 2px;\n width: 100%;\n max-width: 100%;\n padding: 3px;\n }\n\n .altertable-about-tabs .react-aria-TabPanels {\n padding-top: 14px;\n }\n\n .altertable-about-tabs .react-aria-Tab {\n font-size: var(--atbl-type-meta-size);\n font-weight: var(--atbl-type-label-weight);\n border: 0;\n border-radius: 8px;\n margin: 0;\n padding: 6px 10px;\n }\n\n .altertable-about-tabs .react-aria-Tab[data-selected] {\n background: var(--atbl-surface);\n color: var(--atbl-text);\n box-shadow: 0 0 0 1px var(--atbl-border);\n }\n\n .altertable-about-tabs .react-aria-TabPanel {\n min-width: 0;\n }\n}\n\n/* packages/data-app-react/src/ui/AppHeader.css */\n@layer atbl.components {\n .altertable-app-header {\n border-bottom: 1px solid var(--atbl-border);\n padding-bottom: 12px;\n }\n\n .altertable-app-header-heading {\n min-width: 0;\n }\n\n .altertable-app-header-primary {\n display: flex;\n flex-wrap: wrap;\n align-items: baseline;\n gap: 4px 14px;\n min-width: 0;\n }\n\n .altertable-app-header-context {\n display: inline-flex;\n align-items: baseline;\n gap: 5px;\n min-width: 0;\n }\n\n .altertable-app-header-connector {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n font-weight: var(--atbl-type-label-weight);\n line-height: 1.2;\n }\n\n .altertable-app-header-primary h1 {\n font-family: var(--atbl-font-heading, var(--atbl-input-font-heading, var(--atbl-font)));\n font-size: var(--atbl-type-page-size);\n font-weight: var(--atbl-type-emphasis-weight);\n letter-spacing: -.03em;\n overflow-wrap: anywhere;\n text-wrap: balance;\n margin: 0;\n line-height: 1.15;\n }\n\n .altertable-app-header-heading > p {\n max-width: var(--atbl-text-measure);\n color: var(--atbl-muted);\n font-size: var(--atbl-type-label-size);\n text-wrap: pretty;\n margin: 4px 0 0;\n line-height: 1.45;\n }\n\n .altertable-app-header-toolbar {\n flex: none;\n align-self: center;\n max-width: 100%;\n margin-inline-start: auto;\n }\n\n @media (max-width: 700px) {\n .altertable-app-header-primary {\n gap: 8px 12px;\n }\n\n .altertable-app-header-primary h1 {\n flex-basis: 100%;\n }\n\n .altertable-app-header-context {\n flex: 160px;\n min-width: min(100%, 160px);\n }\n\n .altertable-app-header-heading > p {\n margin-top: 8px;\n }\n }\n}\n\n/* packages/data-app-react/src/ui/AppFooter.css */\n@layer atbl.components {\n .altertable-app-footer {\n color: var(--atbl-muted);\n font: var(--atbl-type-meta-size) / var(--atbl-type-label-leading) var(--atbl-font);\n }\n\n .altertable-app-footer-inner {\n width: min(100% - 48px, var(--atbl-content-width));\n padding-block: var(--atbl-space-lg);\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: var(--atbl-space-md);\n flex-wrap: wrap;\n margin: 0 auto;\n }\n\n .altertable-app-footer-actions {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n min-width: 0;\n }\n\n .altertable-app-footer a {\n display: inline-flex;\n color: inherit;\n text-decoration: none;\n white-space: normal;\n overflow-wrap: anywhere;\n align-items: center;\n gap: 4px;\n }\n\n .altertable-app-footer-logo {\n color: var(--atbl-text);\n width: 92px;\n height: 16px;\n margin-left: 4px;\n }\n\n .altertable-app-footer a:hover {\n color: var(--atbl-text);\n }\n\n @media (max-width: 600px) {\n .altertable-app-footer-inner {\n width: min(100% - 32px, var(--atbl-content-width));\n }\n }\n\n .altertable-app-footer-inner > *, .altertable-app-footer-actions > * {\n min-inline-size: 0;\n max-inline-size: 100%;\n }\n}\n\n/* packages/data-app-react/src/ui/AppLayout.css */\n@layer atbl.components {\n .altertable-app-layout {\n display: flex;\n flex-direction: column;\n min-height: 100dvh;\n }\n\n :root[data-atbl-frame-sizing=\"content\"] .altertable-app-layout {\n min-height: 0;\n }\n\n .altertable-app-main {\n display: grid;\n align-content: start;\n gap: var(--atbl-layout-gap, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg)));\n width: min(100% - 48px, var(--atbl-content-width));\n padding: clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg)) 0 calc(2 * var(--atbl-space-xl));\n min-width: 0;\n margin-inline-start: auto;\n margin-inline-end: auto;\n }\n\n .altertable-app-body {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n gap: var(--atbl-layout-gap, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg)));\n min-width: 0;\n }\n\n .altertable-app-main > *, .altertable-app-body > * {\n margin: 0;\n }\n\n .altertable-app-footer {\n margin-top: auto;\n }\n\n @media (max-width: 600px) {\n .altertable-app-main {\n width: min(100% - 32px, var(--atbl-content-width));\n }\n }\n\n .altertable-app-content-footer {\n padding-top: var(--atbl-space-sm);\n padding-inline: var(--atbl-surface-padding, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg)));\n min-width: 0;\n }\n\n .altertable-app-content-footer .altertable-text-content {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-body-size);\n max-width: none;\n }\n\n :root:has(.altertable-active-filters) {\n --atbl-active-filters-clearance: calc(env(safe-area-inset-bottom, 0px) + 2 * var(--atbl-space-md) + max(44px, var(--atbl-control-height)) + 2 * var(--atbl-space-xs) + 2px);\n scroll-padding-block-end: var(--atbl-active-filters-clearance);\n }\n\n .altertable-app-layout:has(.altertable-active-filters) {\n padding-block-end: var(--atbl-active-filters-clearance);\n }\n}\n\n/* packages/data-app-react/src/ui/AppScope.css */\n@layer atbl.components {\n .altertable-app-scope {\n display: inline-flex;\n color: var(--atbl-muted);\n font: var(--atbl-type-label-weight) var(--atbl-type-meta-size) / var(--atbl-type-label-leading) var(--atbl-font);\n align-items: center;\n gap: 5px;\n max-width: 100%;\n }\n\n .altertable-app-scope-organization {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: var(--atbl-text);\n font-size: var(--atbl-type-meta-size);\n font-weight: var(--atbl-type-emphasis-weight);\n letter-spacing: .06em;\n text-transform: uppercase;\n line-height: 1.3;\n }\n\n .altertable-app-scope-environment {\n background: var(--atbl-subtle);\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n font-weight: var(--atbl-type-label-weight);\n letter-spacing: .01em;\n border-radius: 999px;\n padding: 4px 8px;\n }\n}\n\n/* packages/data-app-react/src/ui/LiveControl.css */\n@layer atbl.components {\n .altertable-live-control {\n display: inline-flex;\n min-block-size: var(--atbl-control-height);\n overflow: hidden;\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-control);\n background: var(--atbl-surface);\n box-shadow: var(--atbl-shadow-surface);\n flex: none;\n align-self: flex-start;\n align-items: stretch;\n width: -moz-fit-content;\n width: fit-content;\n max-width: 100%;\n }\n\n .altertable-live-control .altertable-button[data-size=\"icon\"] {\n position: relative;\n width: calc(var(--atbl-control-height) - 2px);\n min-width: calc(var(--atbl-control-height) - 2px);\n min-height: calc(var(--atbl-control-height) - 2px);\n min-block-size: calc(var(--atbl-control-height) - 2px);\n box-shadow: none;\n background: none;\n border: 0;\n border-radius: 0;\n padding: 0;\n }\n\n .altertable-live-control[data-active=\"true\"] {\n border-color: var(--atbl-positive);\n }\n\n .altertable-live-control[data-active=\"true\"] .altertable-button {\n --atbl-control-selected-text: var(--atbl-positive);\n color: var(--atbl-positive);\n }\n\n .altertable-live-control[data-active=\"true\"] .altertable-button:after {\n position: absolute;\n content: \"\";\n background: currentColor;\n border-radius: 50%;\n width: 5px;\n height: 5px;\n top: 5px;\n right: 5px;\n }\n\n .altertable-live-frequency {\n width: calc(var(--atbl-control-height) - .5rem);\n min-block-size: calc(var(--atbl-control-height) - 2px);\n border-left: 1px solid var(--atbl-border);\n }\n\n .altertable-live-frequency > button {\n display: grid;\n color: var(--atbl-muted);\n background: none;\n border: 0;\n border-radius: 0;\n place-items: center;\n width: 100%;\n height: 100%;\n padding: 0;\n }\n\n .altertable-live-frequency-popover {\n z-index: 1000;\n padding: var(--atbl-dropdown-padding);\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-control);\n background: var(--atbl-surface);\n color: var(--atbl-text);\n box-shadow: var(--atbl-shadow-overlay);\n min-width: 190px;\n }\n\n .altertable-live-frequency-popover [role=\"option\"] {\n display: flex;\n min-height: calc(var(--atbl-control-height) - 2px);\n padding: var(--atbl-dropdown-item-padding-block) var(--atbl-dropdown-item-padding-inline);\n font-size: var(--atbl-type-label-size);\n outline: none;\n border-radius: 4px;\n justify-content: space-between;\n align-items: center;\n gap: 16px;\n }\n\n .altertable-live-frequency-popover [role=\"listbox\"] {\n display: flex;\n gap: var(--atbl-dropdown-item-gap);\n flex-direction: column;\n }\n\n .altertable-live-frequency-popover [role=\"option\"][data-selected] {\n font-weight: var(--atbl-type-label-weight);\n }\n\n .altertable-live-frequency-popover [role=\"option\"]:not([data-selected]) svg {\n visibility: hidden;\n }\n\n .altertable-visually-hidden {\n position: absolute;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n width: 1px;\n height: 1px;\n }\n}\n\n/* packages/data-app-react/src/ui/PresentStory.css */\n@layer atbl.components {\n :root:has(.altertable-present-dialog:modal) {\n overflow: hidden;\n }\n\n .altertable-present-launch {\n position: relative;\n display: inline-flex;\n }\n\n .altertable-present-dialog:not([open]) {\n display: none;\n }\n\n .altertable-present-dialog {\n position: fixed;\n inset: var(--atbl-frame-inset-top, 0px) 0 auto;\n height: var(--atbl-frame-visible-height);\n background: var(--atbl-background);\n color: var(--atbl-text);\n overscroll-behavior: contain;\n opacity: 0;\n transition: opacity .2s var(--atbl-ease-standard), overlay .2s allow-discrete, display .2s allow-discrete;\n border: 0;\n width: 100vw;\n max-width: none;\n max-height: none;\n margin: 0;\n padding: 0;\n }\n\n .altertable-present-dialog[open] {\n opacity: 1;\n }\n\n @starting-style {\n .altertable-present-dialog[open] {\n opacity: 0;\n }\n }\n\n .altertable-present-dialog::backdrop {\n background: none;\n }\n\n .altertable-present-shell {\n display: flex;\n flex-direction: column;\n height: 100%;\n min-height: 0;\n }\n\n .altertable-present-header, .altertable-present-nav {\n display: flex;\n align-items: center;\n gap: var(--atbl-space-md);\n flex: none;\n width: min(100% - 48px, 1200px);\n margin: 0 auto;\n }\n\n .altertable-present-header {\n border-bottom: 1px solid var(--atbl-border);\n font-size: var(--atbl-type-label-size);\n min-height: 60px;\n }\n\n .altertable-present-title {\n display: flex;\n flex-wrap: wrap;\n flex: 1;\n align-items: center;\n gap: 3px 6px;\n min-width: 0;\n line-height: 24px;\n }\n\n .altertable-present-title strong {\n font-size: var(--atbl-type-body-size);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-weight: 650;\n line-height: 24px;\n }\n\n .altertable-present-connector {\n color: var(--atbl-muted);\n font-weight: 400;\n }\n\n .altertable-present-title .altertable-app-scope {\n min-width: 0;\n line-height: 24px;\n }\n\n .altertable-present-title .altertable-app-scope-environment {\n line-height: 16px;\n }\n\n .altertable-present-count {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n font-variant-numeric: tabular-nums;\n flex: none;\n }\n\n .altertable-present-actions {\n display: flex;\n flex: none;\n align-items: center;\n gap: 4px;\n }\n\n .altertable-present-theme {\n display: inline-flex;\n margin-inline-start: var(--atbl-space-sm);\n }\n\n .altertable-present-main {\n display: grid;\n grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);\n align-content: safe center;\n align-items: start;\n column-gap: clamp(28px, 5vw, 72px);\n row-gap: var(--atbl-space-lg);\n padding: var(--atbl-space-lg) 0;\n overflow-y: auto;\n overscroll-behavior-y: contain;\n animation: altertable-present-step var(--atbl-duration-slow) var(--atbl-ease-enter);\n flex: 1;\n width: min(100% - 64px, 1100px);\n min-height: 0;\n margin: 0 auto;\n }\n\n @keyframes altertable-present-step {\n from {\n opacity: 0;\n translate: 0 6px;\n }\n }\n\n .altertable-present-copy {\n min-width: 0;\n }\n\n .altertable-present-copy > h2 {\n font-family: var(--atbl-font-heading, var(--atbl-input-font-heading, var(--atbl-font)));\n letter-spacing: -.04em;\n overflow-wrap: anywhere;\n text-wrap: balance;\n margin: 0;\n font-size: clamp(30px, 3.8vw, 50px);\n font-weight: 650;\n line-height: 1.1;\n }\n\n .altertable-present-copy > h2:focus {\n outline: none;\n }\n\n .altertable-present-explore {\n margin-top: var(--atbl-space-lg);\n }\n\n .altertable-present-copy > p {\n margin: var(--atbl-space-md) 0 0;\n color: var(--atbl-muted);\n text-wrap: pretty;\n max-width: 58ch;\n font-size: clamp(15px, 1.5vw, 18px);\n line-height: 1.55;\n }\n\n .altertable-present-visual {\n grid-column: 2;\n grid-row: 1;\n display: flex;\n padding: var(--atbl-space-lg);\n overflow: auto;\n overscroll-behavior: contain;\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-surface);\n background: var(--atbl-surface);\n align-items: center;\n min-width: 0;\n min-height: clamp(280px, 48vh, 470px);\n max-height: 62vh;\n }\n\n .altertable-present-visual > * {\n width: 100%;\n }\n\n .altertable-present-visual[data-kind=\"metric\"] {\n background: none;\n border: 0;\n padding: 0;\n }\n\n .altertable-present-nav {\n justify-content: space-between;\n min-height: 72px;\n }\n\n .altertable-present-nav > .altertable-tooltip-trigger > button:disabled {\n color: var(--atbl-muted);\n }\n\n .altertable-present-dots {\n display: flex;\n align-items: center;\n }\n\n .altertable-present-dots button {\n display: grid;\n border-radius: var(--atbl-radius-control);\n background: none;\n border: 0;\n place-items: center;\n width: 28px;\n height: 44px;\n padding: 0;\n }\n\n .altertable-present-dots button:before {\n background: var(--atbl-border);\n content: \"\";\n transition: width .2s var(--atbl-ease-enter), background-color .2s var(--atbl-ease-standard);\n border-radius: 999px;\n width: 7px;\n height: 7px;\n }\n\n .altertable-present-dots button:hover:before {\n background: var(--atbl-muted);\n }\n\n .altertable-present-dots button[aria-current=\"step\"]:before {\n background: var(--atbl-accent);\n width: 20px;\n }\n\n @media (max-width: 800px) {\n .altertable-present-main {\n grid-template-columns: minmax(0, 1fr);\n align-content: start;\n gap: var(--atbl-space-lg);\n width: min(100% - 40px, 640px);\n }\n\n .altertable-present-visual {\n grid-column: 1;\n grid-row: 2;\n min-height: 220px;\n max-height: none;\n }\n }\n\n @media (max-width: 600px) {\n .altertable-present-header, .altertable-present-nav {\n width: calc(100% - 32px);\n }\n\n .altertable-present-header {\n min-height: 56px;\n }\n\n .altertable-present-main {\n padding: var(--atbl-space-md) 0;\n width: calc(100% - 32px);\n }\n\n .altertable-present-visual {\n padding: var(--atbl-space-md);\n }\n\n .altertable-present-nav {\n gap: 0;\n min-height: 64px;\n }\n\n .altertable-present-dots button {\n width: 24px;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-present-dialog, .altertable-present-dots button:before {\n transition: none;\n }\n\n .altertable-present-main {\n animation: none;\n }\n }\n}\n\n/* packages/data-app-react/src/ui/ShimmerText.css */\n@layer atbl.components {\n .altertable-shimmer-text {\n position: relative;\n display: inline-block;\n overflow: hidden;\n white-space: nowrap;\n min-inline-size: 0;\n max-inline-size: 100%;\n }\n\n .altertable-shimmer-text-base {\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n opacity: .65;\n }\n\n .altertable-shimmer-text-sweep {\n position: absolute;\n color: var(--atbl-text);\n mask-image: linear-gradient(90deg, #0000 10%, #000 45% 55%, #0000 90%);\n animation: 1.6s linear infinite altertable-shimmer-text-sweep;\n inset: 0;\n }\n\n .altertable-shimmer-text-sweep > span {\n display: block;\n animation: 1.6s linear infinite altertable-shimmer-text-counter-sweep;\n }\n\n .altertable-shimmer-text-sweep > span:before {\n content: attr(data-text);\n }\n\n @keyframes altertable-shimmer-text-sweep {\n from {\n transform: translateX(-100%);\n }\n\n to {\n transform: translateX(100%);\n }\n }\n\n @keyframes altertable-shimmer-text-counter-sweep {\n from {\n transform: translateX(100%);\n }\n\n to {\n transform: translateX(-100%);\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-shimmer-text-sweep, .altertable-shimmer-text-sweep > span {\n animation: none;\n }\n\n .altertable-shimmer-text-sweep {\n display: none;\n }\n\n .altertable-shimmer-text-base {\n opacity: 1;\n }\n }\n}\n\n/* packages/data-app-react/src/ui/LoadingStatus.css */\n@layer atbl.components {\n .altertable-loading-status {\n position: absolute;\n inset: var(--atbl-space-md) 0 var(--atbl-surface-padding, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg)));\n display: grid;\n padding-inline: var(--atbl-space-md);\n pointer-events: none;\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n place-items: center;\n }\n\n .altertable-loading-status:empty {\n visibility: hidden;\n }\n\n .altertable-data-widget-body:has(.altertable-loading-status[data-visible]) .altertable-skeleton {\n animation: none;\n opacity: .35;\n }\n\n .altertable-data-widget-body[data-padding=\"flush\"] > .altertable-loading-status, .altertable-metric-widget .altertable-loading-status {\n top: 0;\n }\n}\n\n/* packages/data-app-react/src/ui/RefreshControl.css */\n@layer atbl.components {\n .altertable-refresh-control {\n position: relative;\n display: inline-flex;\n align-items: center;\n gap: var(--atbl-space-sm);\n }\n\n .altertable-refresh-loading, .altertable-refresh-cancel, .altertable-refresh-control[data-refreshing] .altertable-refresh-idle {\n display: none;\n }\n\n .altertable-refresh-control[data-refreshing] .altertable-refresh-loading {\n display: block;\n animation: .9s linear infinite altertable-refresh-spin;\n }\n\n .altertable-refresh-control[data-refreshing] .altertable-button:has(.altertable-refresh-cancel):hover .altertable-refresh-loading {\n display: none;\n }\n\n .altertable-refresh-control[data-refreshing] .altertable-button:hover .altertable-refresh-cancel {\n display: block;\n }\n\n .altertable-refresh-status {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n white-space: nowrap;\n display: grid;\n text-align: end;\n }\n\n .altertable-refresh-status > span {\n grid-area: 1 / 1;\n }\n\n @keyframes altertable-refresh-spin {\n to {\n rotate: 360deg;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-refresh-control[data-refreshing] .altertable-refresh-loading {\n animation: 1.2s ease-in-out infinite alternate altertable-refresh-pulse;\n }\n }\n\n @keyframes altertable-refresh-pulse {\n to {\n opacity: .35;\n }\n }\n}\n\n/* packages/data-app-react/src/ui/AppToolbar.css */\n@layer atbl.components {\n .altertable-app-toolbar {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n gap: var(--atbl-space-sm);\n width: 100%;\n }\n\n .altertable-app-toolbar-updated {\n color: color-mix(in srgb, var(--atbl-muted) 78%, var(--atbl-background));\n font-size: var(--atbl-type-meta-size);\n white-space: nowrap;\n margin-right: 6px;\n }\n\n .altertable-app-toolbar-actions {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n gap: var(--atbl-space-xs);\n flex-wrap: wrap;\n margin-inline-start: auto;\n }\n\n .altertable-app-toolbar {\n flex-shrink: 0;\n }\n}\n\n/* packages/data-app-react/src/ui/VariableBar.css */\n@layer atbl.components {\n .altertable-variable-bar {\n display: flex;\n align-items: center;\n gap: var(--atbl-space-sm);\n flex-wrap: wrap;\n min-width: 0;\n }\n\n .altertable-variable-bar > * {\n min-width: 0;\n max-width: 100%;\n }\n\n .altertable-primary-controls {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n align-items: start;\n gap: var(--atbl-space-sm);\n }\n\n .altertable-primary-control-actions {\n display: flex;\n align-items: center;\n gap: var(--atbl-space-sm);\n }\n\n .altertable-filter-bar-inputs {\n display: flex;\n align-items: center;\n gap: calc((var(--atbl-space-xs) + var(--atbl-space-sm)) / 2);\n flex-wrap: wrap;\n min-width: 0;\n }\n\n .altertable-filter-bar-inputs > * {\n min-width: 0;\n max-width: 100%;\n }\n\n .altertable-filter-bar-inputs > :-webkit-any(.altertable-picker-trigger, .altertable-field) {\n max-width: min(100%, 16rem);\n }\n\n .altertable-filter-bar-inputs > :-moz-any(.altertable-picker-trigger, .altertable-field) {\n max-width: min(100%, 16rem);\n }\n\n .altertable-filter-bar-inputs > :is(.altertable-picker-trigger, .altertable-field) {\n max-width: min(100%, 16rem);\n }\n\n .altertable-filter-sheet-actions {\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: var(--atbl-space-sm);\n }\n\n .altertable-variable-searches > .altertable-search-landmark {\n flex: 280px;\n max-width: 25rem;\n }\n\n .altertable-variable-searches .altertable-search-input-wrap {\n flex: 1;\n width: auto;\n }\n\n .altertable-sheet-filters {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n align-items: start;\n gap: var(--atbl-space-md);\n }\n\n .altertable-control-count {\n display: inline-flex;\n box-sizing: border-box;\n border-radius: var(--atbl-radius-control);\n background: var(--atbl-subtle);\n font-size: var(--atbl-type-meta-size);\n font-variant-numeric: tabular-nums;\n justify-content: center;\n align-items: center;\n block-size: 1.25rem;\n min-inline-size: 1.25rem;\n padding-inline-start: .25rem;\n padding-inline-end: .25rem;\n }\n\n .altertable-display-options-trigger {\n margin-inline-start: auto;\n }\n\n .altertable-display-options-button {\n position: relative;\n }\n\n .altertable-control-indicator {\n position: absolute;\n background: var(--atbl-accent);\n border-radius: 50%;\n block-size: 5px;\n inline-size: 5px;\n top: 5px;\n }\n\n .altertable-control-indicator:not(:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {\n right: 5px;\n }\n\n .altertable-control-indicator:not(:-moz-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {\n right: 5px;\n }\n\n .altertable-control-indicator:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {\n right: 5px;\n }\n\n .altertable-control-indicator:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {\n left: 5px;\n }\n\n .altertable-control-indicator:-moz-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {\n left: 5px;\n }\n\n .altertable-control-indicator:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {\n left: 5px;\n }\n\n .altertable-display-options-popover {\n z-index: 90;\n overflow: auto;\n padding: var(--atbl-space-md);\n border-radius: var(--atbl-radius-overlay);\n width: min(360px, 100vw - 24px);\n max-height: min(560px, 80dvh);\n }\n\n .altertable-display-options-dialog {\n display: grid;\n gap: var(--atbl-space-sm);\n outline: none;\n }\n\n .altertable-display-option > * {\n box-sizing: border-box;\n width: 100%;\n min-width: 0;\n }\n\n .altertable-display-option .react-aria-SelectValue {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .altertable-filter-sheet {\n width: min(360px, 100vw);\n }\n\n .altertable-toolbar-filter-editors {\n display: flex;\n align-items: center;\n gap: var(--atbl-space-xs);\n border: 0;\n flex-wrap: wrap;\n min-width: 0;\n margin: 0;\n padding: 0;\n }\n\n .altertable-active-filters {\n display: flex;\n gap: var(--atbl-space-xs);\n position: fixed;\n z-index: 40;\n opacity: 1;\n transition: opacity var(--atbl-duration-normal) var(--atbl-ease-enter), transform var(--atbl-duration-normal) var(--atbl-ease-enter);\n max-inline-size: calc(100vw - 2 * (var(--atbl-space-md) + max(env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px))));\n padding: var(--atbl-space-xs);\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-surface);\n background: var(--atbl-surface);\n box-shadow: var(--atbl-shadow-overlay);\n flex-wrap: nowrap;\n align-items: center;\n min-width: 0;\n margin: 0;\n top: calc(100dvh - var(--atbl-frame-inset-bottom, 0px) - var(--atbl-space-md) - env(safe-area-inset-bottom, 0px));\n transform: translate(-50%, -100%);\n }\n\n .altertable-active-filters:not(:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {\n left: 50vw;\n }\n\n .altertable-active-filters:not(:-moz-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {\n left: 50vw;\n }\n\n .altertable-active-filters:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {\n left: 50vw;\n }\n\n .altertable-active-filters:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {\n right: 50vw;\n }\n\n .altertable-active-filters:-moz-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {\n right: 50vw;\n }\n\n .altertable-active-filters:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {\n right: 50vw;\n }\n\n @starting-style {\n .altertable-active-filters {\n opacity: 0;\n transform: translate(-50%, calc(-100% + var(--atbl-space-sm)));\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-active-filters {\n transition-property: opacity;\n }\n }\n\n .altertable-active-filters > button {\n white-space: nowrap;\n flex: none;\n }\n\n .altertable-filter-summaries {\n display: flex;\n gap: var(--atbl-space-xs);\n overflow-x: auto;\n white-space: nowrap;\n min-inline-size: 0;\n }\n\n .altertable-filter-summaries > * {\n flex: none;\n }\n\n .altertable-active-filter-label {\n gap: var(--atbl-space-xs);\n font-size: var(--atbl-type-label-size);\n font-weight: var(--atbl-type-meta-weight);\n padding-inline-end: var(--atbl-space-xs);\n }\n\n .altertable-active-filter .altertable-picker-value {\n font-weight: inherit;\n max-width: none;\n }\n\n .altertable-active-filter {\n display: inline-flex;\n border-radius: var(--atbl-radius-control);\n background: var(--atbl-subtle);\n align-items: center;\n }\n\n .altertable-active-filter-remove {\n --atbl-control-hover-surface: color-mix(in srgb, var(--atbl-text) 14%, var(--atbl-subtle));\n color: var(--atbl-muted);\n margin-inline-end: var(--atbl-space-xs);\n }\n\n @media (any-pointer: coarse) {\n .altertable-active-filters .altertable-button {\n min-block-size: 44px;\n min-inline-size: 44px;\n }\n }\n}\n\n/* packages/data-app-react/src/ui/DataViewToast.css */\n@layer atbl.components {\n .altertable-data-view-toast-region {\n position: fixed;\n z-index: 100;\n left: 16px;\n right: 16px;\n bottom: calc(var(--atbl-frame-inset-bottom, 0px) + max(20px, env(safe-area-inset-bottom)));\n display: flex;\n pointer-events: none;\n justify-content: center;\n }\n\n .altertable-data-view-toast-region[data-position=\"top\"] {\n top: calc(var(--atbl-frame-inset-top, 0px) + max(20px, env(safe-area-inset-top)));\n bottom: auto;\n }\n\n .altertable-data-view-toast {\n display: flex;\n overflow: auto;\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-surface);\n background: var(--atbl-surface);\n box-shadow: var(--atbl-shadow-overlay);\n color: var(--atbl-text);\n font-size: var(--atbl-type-meta-size);\n pointer-events: auto;\n align-items: center;\n gap: 10px;\n width: -moz-fit-content;\n width: fit-content;\n max-width: min(100%, 560px);\n max-height: 40dvh;\n padding: 10px 12px;\n line-height: 1.45;\n }\n\n .altertable-data-view-toast > svg {\n color: var(--atbl-muted);\n flex: none;\n }\n\n .altertable-data-view-toast[data-state=\"error\"] > svg {\n color: var(--atbl-danger);\n }\n\n .altertable-data-view-toast > span {\n min-width: 0;\n }\n\n .altertable-data-view-toast .altertable-button {\n flex: none;\n min-height: 32px;\n }\n\n .altertable-data-view-toast-spinner {\n animation: 1s linear infinite altertable-data-view-toast-spin;\n }\n\n @keyframes altertable-data-view-toast-spin {\n to {\n transform: rotate(360deg);\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-data-view-toast-spinner {\n animation: none;\n }\n }\n}\n\n/* packages/data-app-react/src/ui/DataBoundary.css */\n@layer atbl.components {\n .altertable-data-boundary {\n min-width: 0;\n }\n\n .altertable-data-boundary-notice {\n display: flex;\n border-radius: var(--atbl-radius-control);\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n background: none;\n border: 0;\n flex-wrap: wrap;\n align-items: center;\n gap: 8px;\n min-height: 44px;\n margin: 0 0 14px;\n padding: 8px 0;\n line-height: 1.45;\n }\n\n .altertable-data-boundary-notice[data-state=\"stale-error\"] {\n border-color: color-mix(in srgb, var(--atbl-danger) 30%, var(--atbl-border));\n }\n\n .altertable-data-boundary-notice[data-state=\"stale-error\"] > svg {\n color: var(--atbl-danger);\n flex: none;\n }\n\n .altertable-data-boundary-message {\n flex: 240px;\n }\n\n .altertable-data-boundary-action {\n margin-left: auto;\n }\n\n .altertable-data-boundary-action button {\n min-height: 32px;\n }\n}\n\n/* packages/data-app-react/src/ui/StatusPanel.css */\n@layer atbl.components {\n .altertable-status-panel {\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: var(--atbl-space-lg);\n padding: var(--atbl-space-lg);\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-surface);\n background: var(--atbl-surface);\n color: var(--atbl-muted);\n font-size: var(--atbl-type-label-size);\n line-height: 1.5;\n }\n\n .altertable-status-panel[data-status=\"error\"] {\n box-sizing: border-box;\n box-shadow: none;\n display: grid;\n grid-template-columns: 18px minmax(0, 1fr);\n background: none;\n border: 0;\n align-items: start;\n gap: 18px 14px;\n width: min(100%, 520px);\n margin: clamp(16px, 4vw, 48px) auto 0;\n }\n\n .altertable-status-panel[data-status=\"error\"] > svg {\n color: var(--atbl-danger);\n margin-top: 1px;\n }\n\n .altertable-status-panel[data-status=\"error\"] .altertable-status-action {\n grid-column: 2;\n }\n\n .altertable-status-panel[data-status=\"error\"] .altertable-status-copy {\n min-width: 0;\n }\n\n .altertable-status-panel strong {\n color: var(--atbl-text);\n font-weight: 650;\n }\n\n .altertable-status-panel p {\n margin: 4px 0 0;\n }\n\n .altertable-status-panel small {\n display: block;\n overflow-wrap: anywhere;\n margin-top: 6px;\n }\n\n .altertable-status-action {\n flex: none;\n }\n\n @media (max-width: 600px) {\n .altertable-status-panel:not([data-status=\"error\"]) {\n flex-direction: column;\n align-items: flex-start;\n }\n }\n}\n\n/* packages/data-app-react/src/ui/GettingStarted.css */\n@layer atbl.components {\n .starter-eyebrow {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n letter-spacing: .08em;\n text-transform: uppercase;\n font-weight: 700;\n }\n\n .starter-connection {\n display: flex;\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-surface);\n background: var(--atbl-surface);\n align-items: flex-start;\n gap: 20px;\n min-width: 0;\n padding: 30px;\n }\n\n .starter-connection-icon {\n display: grid;\n background: var(--atbl-subtle);\n color: var(--atbl-muted);\n border-radius: 14px;\n flex: none;\n place-items: center;\n width: 48px;\n height: 48px;\n }\n\n .starter-connection[data-state=\"connected\"] .starter-connection-icon {\n background: color-mix(in srgb, var(--atbl-positive) 12%, var(--atbl-surface));\n color: var(--atbl-positive);\n }\n\n .starter-connection[data-state=\"error\"] .starter-connection-icon {\n background: var(--atbl-danger-subtle, color-mix(in srgb, var(--atbl-danger) 9%, var(--atbl-surface)));\n color: var(--atbl-danger);\n }\n\n .starter-connection[data-state=\"checking\"] .starter-connection-icon svg {\n animation: 1.5s linear infinite starter-spin;\n }\n\n .starter-connection-copy {\n flex: 1;\n min-width: 0;\n }\n\n .starter-connection h2 {\n font-family: var(--atbl-font-heading, var(--atbl-input-font-heading, var(--atbl-font)));\n font-size: clamp(26px, 3.2vw, 36px);\n font-weight: var(--atbl-type-emphasis-weight);\n letter-spacing: -.035em;\n margin: 8px 0 6px;\n line-height: 1.15;\n }\n\n .starter-connection p {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-body-size);\n max-width: 62ch;\n margin: 0;\n line-height: 1.55;\n }\n\n .starter-connection small {\n display: block;\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n margin-top: 14px;\n }\n\n .starter-connection > .altertable-button {\n flex: none;\n align-self: center;\n }\n\n .starter-next {\n min-width: 0;\n padding: 8px 0;\n }\n\n .starter-next-heading h2 {\n font-family: var(--atbl-font-heading, var(--atbl-input-font-heading, var(--atbl-font)));\n font-size: clamp(20px, 2.4vw, 26px);\n font-weight: var(--atbl-type-emphasis-weight);\n letter-spacing: -.025em;\n margin: 8px 0 4px;\n }\n\n .starter-next-heading p {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-body-size);\n margin: 0;\n line-height: 1.5;\n }\n\n .starter-steps {\n display: grid;\n grid-template-columns: repeat(3, minmax(0, 1fr));\n list-style: none;\n counter-reset: starter-step;\n gap: 12px;\n margin: 22px 0 0;\n padding: 0;\n }\n\n .starter-steps li {\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-surface);\n background: var(--atbl-surface);\n counter-increment: starter-step;\n min-width: 0;\n padding: 20px;\n }\n\n .starter-steps li:before {\n display: block;\n color: var(--atbl-accent);\n font-size: var(--atbl-type-meta-size);\n content: \"0\" counter(starter-step);\n margin-bottom: 22px;\n font-weight: 700;\n }\n\n .starter-steps strong {\n font-size: var(--atbl-type-body-size);\n font-weight: 650;\n }\n\n .starter-steps p {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-label-size);\n margin: 8px 0 0;\n line-height: 1.5;\n }\n\n .starter-steps code {\n color: var(--atbl-text);\n overflow-wrap: anywhere;\n font-size: .92em;\n }\n\n @keyframes starter-spin {\n to {\n transform: rotate(360deg);\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .starter-connection[data-state=\"checking\"] .starter-connection-icon svg {\n animation: none;\n }\n }\n\n @media (max-width: 700px) {\n .starter-connection {\n flex-wrap: wrap;\n padding: 22px;\n }\n\n .starter-connection > .altertable-button {\n margin-left: 68px;\n }\n\n .starter-steps {\n grid-template-columns: 1fr;\n }\n\n .starter-steps li:before {\n margin-bottom: 10px;\n }\n }\n}\n\n/* packages/data-app-react/src/ui/Stack.css */\n@layer atbl.components {\n .altertable-stack {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n align-content: start;\n min-width: 0;\n }\n\n .altertable-stack[data-gap=\"sm\"] {\n gap: var(--atbl-space-sm);\n }\n\n .altertable-stack[data-gap=\"md\"] {\n gap: var(--atbl-space-md);\n }\n\n .altertable-stack[data-gap=\"lg\"] {\n gap: var(--atbl-layout-gap, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg)));\n }\n\n .altertable-stack > * {\n margin: 0;\n }\n}\n\n/* packages/data-app-react/src/ui/Inspect.css */\n@layer atbl.components {\n .altertable-inspect-trigger {\n display: inline-grid;\n border-radius: var(--atbl-radius-control);\n color: var(--atbl-muted);\n transition: background-color var(--atbl-duration-fast) var(--atbl-ease-standard), color var(--atbl-duration-fast) var(--atbl-ease-standard);\n background: none;\n border: 0;\n flex: none;\n place-items: center;\n }\n\n .altertable-inspect-trigger:hover, .altertable-inspect-trigger[data-open=\"true\"] {\n background: var(--atbl-subtle);\n color: var(--atbl-text);\n }\n\n @media (hover: hover) and (pointer: fine) {\n :is(.altertable-metric-widget .altertable-metric-help, .altertable-data-widget .altertable-data-widget-help) {\n opacity: 0;\n transition: opacity var(--atbl-duration-fast) var(--atbl-ease-standard);\n }\n\n :is(.altertable-data-widget-help[data-has-action=\"true\"], .altertable-metric-widget:hover .altertable-metric-help, .altertable-metric-widget:focus-within .altertable-metric-help, .altertable-data-widget:hover .altertable-data-widget-help, .altertable-data-widget:focus-within .altertable-data-widget-help, .altertable-metric-help:has( > .altertable-widget-status:not([data-state=\"idle\"])), .altertable-data-widget-help:has( > .altertable-widget-status:not([data-state=\"idle\"])), .altertable-metric-help:has([data-open=\"true\"]), .altertable-data-widget-help:has([data-open=\"true\"])) {\n opacity: 1;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-inspect-trigger, .altertable-metric-help, .altertable-data-widget-help {\n transition: none;\n }\n }\n\n .altertable-widget-heading-trigger {\n --atbl-control-hover-surface: transparent;\n --atbl-control-pressed-surface: transparent;\n display: inline-flex;\n justify-content: flex-start;\n align-items: center;\n gap: var(--atbl-space-sm);\n box-shadow: none;\n color: inherit;\n font: inherit;\n letter-spacing: inherit;\n text-align: left;\n background: none;\n border: 0;\n border-radius: 2px;\n min-height: 0;\n padding: 0;\n }\n\n .altertable-button.altertable-widget-heading-trigger:hover:not(:disabled), .altertable-button.altertable-widget-heading-trigger[data-open=\"true\"] {\n color: var(--atbl-text);\n background: none;\n }\n\n .altertable-button.altertable-widget-heading-trigger:focus-visible {\n color: var(--atbl-text);\n background: none;\n }\n\n .altertable-widget-heading-trigger > svg {\n display: inline-block;\n opacity: 0;\n transition: opacity var(--atbl-duration-fast) var(--atbl-ease-standard);\n flex: none;\n align-self: center;\n margin-inline-start: var(--atbl-space-xs);\n }\n\n .altertable-widget-heading-trigger:hover > svg, .altertable-widget-heading-trigger[data-open=\"true\"] > svg {\n opacity: 1;\n }\n\n .altertable-widget-heading-trigger:focus-visible > svg {\n opacity: 1;\n }\n\n @media (hover: none) {\n .altertable-widget-heading-trigger > svg {\n opacity: 1;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-widget-heading-trigger > svg {\n transition: none;\n }\n }\n}\n\n/* packages/data-app-react/src/ui/WidgetViewTabs.css */\n@layer atbl.components {\n .altertable-widget-view-tabs > .react-aria-Tabs > .react-aria-TabList {\n border-radius: var(--atbl-radius-control);\n background: var(--atbl-subtle);\n border: 0;\n gap: 4px;\n width: -moz-fit-content;\n width: fit-content;\n max-width: 100%;\n margin: 0;\n padding: 3px;\n }\n\n .altertable-widget-view-tabs .react-aria-Tab {\n border-radius: calc(var(--atbl-radius-control) - 2px);\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n border: 0;\n margin: 0;\n padding: 6px 11px;\n }\n\n .altertable-widget-view-tabs .react-aria-Tab[data-selected] {\n background: var(--atbl-surface);\n box-shadow: var(--atbl-shadow-control);\n color: var(--atbl-text);\n }\n\n .altertable-widget-view-tabs .react-aria-TabPanels {\n padding-block-start: var(--atbl-space-md);\n }\n}\n\n/* packages/data-app-react/src/ui/HelpPopover.css */\n@layer atbl.components {\n .altertable-help-popover {\n z-index: 1000;\n overflow: auto;\n overscroll-behavior: contain;\n padding: var(--atbl-space-md);\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-overlay);\n background: var(--atbl-surface);\n box-shadow: var(--atbl-shadow-overlay);\n color: var(--atbl-text);\n font: var(--atbl-type-label-size) / var(--atbl-type-label-leading) var(--atbl-font);\n animation: altertable-popover-in var(--atbl-duration-fast) var(--atbl-ease-enter);\n max-width: calc(100vw - 24px);\n max-height: min(65dvh, 560px);\n }\n\n @keyframes altertable-popover-in {\n from {\n opacity: 0;\n translate: 0 -2px;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-help-popover {\n animation: none;\n }\n }\n}\n\n/* packages/data-app-react/src/ui/DateTimeTooltip.css */\n@layer atbl.components {\n .altertable-date-time-tooltip {\n width: max-content;\n max-width: min(480px, 100vw - 24px);\n padding: 10px 12px;\n }\n\n .altertable-date-time-rows {\n display: grid;\n gap: 6px;\n }\n\n .altertable-date-time-row {\n display: grid;\n grid-template-columns: minmax(80px, 1fr) auto;\n font-variant-numeric: tabular-nums;\n gap: 16px;\n }\n\n .altertable-date-time-row time {\n text-align: right;\n overflow-wrap: anywhere;\n }\n\n .altertable-date-time-label {\n color: var(--atbl-muted);\n }\n}\n\n/* packages/data-app-react/src/ui/DateDisplay.css */\n@layer atbl.components {\n .altertable-date-display {\n font-variant-numeric: tabular-nums;\n white-space: nowrap;\n }\n\n .altertable-date-display-trigger {\n color: inherit;\n font: inherit;\n background: none;\n border: 0;\n padding: 0;\n }\n}\n\n/* packages/data-app-react/src/ui/DataTable.css */\n@layer atbl.components {\n .altertable-data-table-scroll {\n overflow-x: auto;\n overscroll-behavior-x: none;\n max-width: 100%;\n }\n\n .altertable-data-table-search {\n margin: 8px 0 12px;\n }\n\n .altertable-data-table {\n border-collapse: collapse;\n font-size: var(--atbl-type-meta-size);\n width: 100%;\n }\n\n .altertable-data-table caption {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n text-align: start;\n padding: 0 0 8px;\n }\n\n .altertable-data-table th, .altertable-data-table td {\n border-bottom: 1px solid var(--atbl-border);\n text-align: start;\n white-space: nowrap;\n cursor: default;\n padding: 9px 10px;\n }\n\n .altertable-data-table thead th {\n color: var(--atbl-muted);\n font-weight: 650;\n }\n\n .altertable-data-table tbody th {\n color: var(--atbl-text);\n font-weight: 550;\n }\n\n .altertable-data-table :-webkit-any(th, td)[data-type=\"number\"] {\n text-align: end;\n font-variant-numeric: tabular-nums;\n }\n\n .altertable-data-table :-moz-any(th, td)[data-type=\"number\"] {\n text-align: end;\n font-variant-numeric: tabular-nums;\n }\n\n .altertable-data-table :is(th, td)[data-type=\"number\"] {\n text-align: end;\n font-variant-numeric: tabular-nums;\n }\n\n .altertable-data-table :-webkit-any(th, td)[data-type=\"datetime\"] {\n font-variant-numeric: tabular-nums;\n }\n\n .altertable-data-table :-moz-any(th, td)[data-type=\"datetime\"] {\n font-variant-numeric: tabular-nums;\n }\n\n .altertable-data-table :is(th, td)[data-type=\"datetime\"] {\n font-variant-numeric: tabular-nums;\n }\n\n .altertable-data-table :-webkit-any(th, td)[data-type=\"datetime\"]:not(:first-child) {\n text-align: end;\n }\n\n .altertable-data-table :-moz-any(th, td)[data-type=\"datetime\"]:not(:first-child) {\n text-align: end;\n }\n\n .altertable-data-table :is(th, td)[data-type=\"datetime\"]:not(:first-child) {\n text-align: end;\n }\n\n .altertable-data-table-timestamp {\n color: inherit;\n font: inherit;\n font-variant-numeric: tabular-nums;\n background: none;\n border: 0;\n padding: 0;\n }\n\n .altertable-data-table-timestamp:hover {\n color: var(--atbl-accent);\n }\n\n .altertable-data-table-timestamp:focus-visible {\n border-radius: 2px;\n }\n\n .altertable-data-table tbody tr:last-child :-webkit-any(th, td) {\n border-bottom: 0;\n }\n\n .altertable-data-table tbody tr:last-child :-moz-any(th, td) {\n border-bottom: 0;\n }\n\n .altertable-data-table tbody tr:last-child :is(th, td) {\n border-bottom: 0;\n }\n\n .altertable-data-table .altertable-data-table-empty-row td {\n white-space: normal;\n padding: 0;\n }\n\n .altertable-data-table-share {\n font-variant-numeric: tabular-nums;\n }\n}\n\n/* packages/data-app-react/src/ui/TableWidget.css */\n@layer atbl.components {\n .altertable-table-widget-content {\n padding: var(--atbl-space-md) var(--atbl-space-lg) var(--atbl-space-lg);\n min-width: 0;\n }\n\n :where(.altertable-visualization-widget-content) > .altertable-table-widget-content {\n padding: 0;\n }\n\n .altertable-table-widget-content .altertable-data-table-search {\n margin-top: 0;\n }\n\n .altertable-table-pagination {\n display: flex;\n color: var(--atbl-muted);\n font-size: var(--atbl-type-label-size);\n font-variant-numeric: tabular-nums;\n flex-wrap: wrap;\n justify-content: space-between;\n align-items: center;\n gap: 8px 16px;\n padding: 12px 10px 4px;\n }\n\n .altertable-table-pagination-controls {\n display: inline-flex;\n align-items: center;\n gap: 8px;\n }\n\n .altertable-table-widget .altertable-data-widget-body {\n padding-block-start: var(--atbl-space-sm);\n }\n\n .altertable-table-widget .altertable-loading-status {\n top: calc(var(--atbl-space-sm) + 1lh + 19px);\n }\n}\n\n/* packages/data-app-react/src/ui/TextContent.css */\n@layer atbl.components {\n .altertable-text-content {\n max-width: var(--atbl-text-measure);\n color: var(--atbl-text);\n overflow-wrap: anywhere;\n font-size: var(--atbl-type-body-size);\n line-height: var(--atbl-type-body-leading);\n min-width: 0;\n }\n\n .altertable-text-content > :first-child {\n margin-top: 0;\n }\n\n .altertable-text-content > :last-child {\n margin-bottom: 0;\n }\n\n .altertable-text-content :where(p, ul, ol) {\n margin-block: 0 var(--atbl-space-sm);\n }\n\n .altertable-text-content :where(ul, ol) {\n padding-inline-start: 1.5em;\n }\n\n .altertable-text-content a {\n color: var(--atbl-accent);\n text-underline-offset: 3px;\n text-decoration-thickness: 1px;\n }\n\n .altertable-text-content a:hover {\n color: var(--atbl-text);\n text-decoration-thickness: 2px;\n }\n\n .altertable-text-content h2 {\n font-family: var(--atbl-font-heading, var(--atbl-input-font-heading, var(--atbl-font)));\n font-size: var(--atbl-type-section-size);\n font-weight: var(--atbl-type-heading-weight);\n line-height: var(--atbl-type-heading-leading);\n }\n\n .altertable-text-content :where(h3, h4, h5, h6) {\n font-family: var(--atbl-font-heading, var(--atbl-input-font-heading, var(--atbl-font)));\n font-size: var(--atbl-type-widget-size);\n color: var(--atbl-muted);\n font-weight: var(--atbl-type-label-weight);\n line-height: var(--atbl-type-heading-leading);\n }\n}\n\n/* packages/data-app-react/src/ui/TextWidget.css */\n@layer atbl.components {\n .altertable-text-widget .altertable-text-content {\n min-block-size: calc(3em + 2 * var(--atbl-space-sm));\n }\n\n .altertable-text-widget-skeleton {\n display: grid;\n gap: var(--atbl-space-sm);\n max-width: var(--atbl-text-measure);\n }\n\n .altertable-text-widget-skeleton > .altertable-skeleton {\n width: 100%;\n height: 1em;\n }\n\n .altertable-text-widget-skeleton > :last-child {\n width: 65%;\n }\n}\n\n/* packages/data-app-react/src/ui/Breakdown.css */\n@layer atbl.components {\n .altertable-breakdown {\n display: grid;\n gap: 12px;\n min-width: 0;\n }\n\n .altertable-breakdown-summary {\n display: flex;\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n justify-content: space-between;\n align-items: baseline;\n gap: 12px;\n }\n\n .altertable-breakdown-summary strong {\n color: var(--atbl-text);\n font-size: var(--atbl-type-label-size);\n font-variant-numeric: tabular-nums;\n flex: none;\n font-weight: 650;\n }\n\n .altertable-breakdown-bar {\n display: flex;\n overflow: hidden;\n background: var(--atbl-subtle);\n border-radius: 999px;\n height: 12px;\n }\n\n .altertable-breakdown-bar > span {\n display: block;\n flex: none;\n height: 100%;\n }\n\n .altertable-breakdown-list {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));\n gap: 6px 18px;\n min-width: 0;\n margin: 0;\n }\n\n .altertable-breakdown-row {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto auto;\n border-bottom: 1px solid var(--atbl-border);\n font-size: var(--atbl-type-label-size);\n align-items: baseline;\n column-gap: 8px;\n min-width: 0;\n padding: 8px 0;\n }\n\n .altertable-breakdown-row dt {\n display: flex;\n overflow-wrap: anywhere;\n color: var(--atbl-text);\n align-items: baseline;\n gap: 7px;\n min-width: 0;\n }\n\n .altertable-breakdown-row dd {\n font-variant-numeric: tabular-nums;\n text-align: end;\n white-space: nowrap;\n margin: 0;\n }\n\n .altertable-breakdown-swatch {\n display: inline-block;\n background: var(--altertable-breakdown-color);\n border-radius: 2px;\n flex: none;\n width: 8px;\n height: 8px;\n }\n\n .altertable-breakdown-row[data-empty=\"true\"] .altertable-breakdown-swatch {\n border: 1px solid var(--atbl-border);\n background: none;\n }\n\n .altertable-breakdown-value {\n color: var(--atbl-text);\n font-weight: 650;\n }\n\n .altertable-breakdown-share {\n color: var(--atbl-muted);\n min-width: 4ch;\n }\n}\n\n/* packages/data-app-react/src/ui/Ranking.css */\n@layer atbl.components {\n .altertable-ranking {\n display: grid;\n gap: var(--atbl-space-md);\n list-style: none;\n min-width: 0;\n margin: 0;\n padding: 0;\n }\n\n .altertable-ranking li {\n display: grid;\n gap: 7px;\n min-width: 0;\n }\n\n .altertable-ranking-reading {\n display: flex;\n justify-content: space-between;\n align-items: baseline;\n gap: 12px;\n min-width: 0;\n }\n\n .altertable-ranking-reading > span {\n overflow-wrap: anywhere;\n font-family: var(--atbl-font-heading, var(--atbl-input-font-heading, var(--atbl-font)));\n font-weight: var(--atbl-type-label-weight);\n letter-spacing: -.01em;\n min-width: 0;\n line-height: 1.3;\n }\n\n .altertable-ranking-reading strong {\n font-family: var(--atbl-font-heading, var(--atbl-input-font-heading, var(--atbl-font)));\n font-variant-numeric: tabular-nums;\n flex: none;\n font-weight: 650;\n }\n\n .altertable-ranking-track {\n overflow: hidden;\n background: var(--atbl-subtle);\n border-radius: 999px;\n height: 6px;\n }\n\n .altertable-ranking-track > span {\n display: block;\n border-radius: inherit;\n background: var(--atbl-chart-1);\n height: 100%;\n }\n\n .altertable-ranking-detail {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n line-height: 1.45;\n }\n}\n\n/* packages/data-app-react/src/ui/WidgetDisclosure.css */\n@layer atbl.components {\n .altertable-widget-disclosure {\n margin: 16px 20px 20px;\n }\n\n .altertable-widget-disclosure > summary {\n display: inline-flex;\n border-radius: var(--atbl-radius-control);\n color: var(--atbl-text);\n font-size: var(--atbl-type-label-size);\n font-weight: var(--atbl-type-label-weight);\n list-style: none;\n align-items: center;\n gap: 8px;\n min-height: 38px;\n padding: 0 10px;\n }\n\n .altertable-widget-disclosure > summary::-webkit-details-marker {\n display: none;\n }\n\n .altertable-widget-disclosure > summary:hover, .altertable-widget-disclosure[open] > summary {\n background: var(--atbl-subtle);\n }\n\n .altertable-widget-disclosure > summary svg {\n color: var(--atbl-muted);\n transition: transform var(--atbl-duration-normal) var(--atbl-ease-standard);\n }\n\n .altertable-widget-disclosure[open] > summary svg {\n transform: rotate(180deg);\n }\n\n .altertable-widget-disclosure-content {\n margin-top: 12px;\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-widget-disclosure > summary svg {\n transition: none;\n }\n }\n}\n\n/* packages/data-app-react/src/ui/Comparison.css */\n@layer atbl.components {\n .altertable-comparison-visual {\n display: grid;\n gap: var(--atbl-space-lg);\n width: 100%;\n margin: 0;\n }\n\n .altertable-comparison-visual figcaption {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-label-size);\n font-weight: var(--atbl-type-heading-weight);\n }\n\n .altertable-comparison-row {\n display: grid;\n gap: var(--atbl-space-sm);\n }\n\n .altertable-comparison-row > div {\n display: flex;\n justify-content: space-between;\n align-items: baseline;\n gap: var(--atbl-space-md);\n flex-wrap: wrap;\n }\n\n .altertable-comparison-row > div > span {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-label-size);\n }\n\n .altertable-comparison-row strong {\n color: var(--atbl-text);\n font-family: var(--atbl-font-heading, var(--atbl-input-font-heading, var(--atbl-font)));\n font-weight: var(--atbl-type-emphasis-weight);\n line-height: var(--atbl-type-metric-leading);\n font-size: var(--atbl-type-metric-size);\n font-variant-numeric: tabular-nums;\n overflow-wrap: anywhere;\n letter-spacing: -.04em;\n max-inline-size: 100%;\n }\n\n .altertable-comparison-track {\n display: block;\n overflow: hidden;\n background: var(--atbl-subtle);\n border-radius: 999px;\n width: 100%;\n height: 10px;\n }\n\n .altertable-comparison-track > span {\n display: block;\n border-radius: inherit;\n background: var(--atbl-chart-1);\n min-width: 2px;\n height: 100%;\n }\n\n .altertable-comparison-row[data-period=\"previous\"] .altertable-comparison-track > span {\n background: var(--atbl-muted);\n opacity: .45;\n }\n\n .altertable-comparison-change {\n display: inline-flex;\n align-items: center;\n gap: var(--atbl-space-xs);\n color: var(--atbl-muted);\n font-size: var(--atbl-type-label-size);\n font-weight: var(--atbl-type-label-weight);\n font-variant-numeric: tabular-nums;\n margin: 0;\n }\n\n .altertable-comparison-change[data-tone=\"good\"] {\n color: var(--atbl-positive);\n }\n\n .altertable-comparison-change[data-tone=\"bad\"] {\n color: var(--atbl-negative, var(--atbl-danger));\n }\n\n .altertable-about-visual .altertable-comparison-visual {\n gap: var(--atbl-space-md);\n }\n\n .altertable-about-visual .altertable-comparison-row {\n gap: var(--atbl-space-xs);\n }\n\n .altertable-comparison-visual[data-emphasis=\"story\"] {\n gap: clamp(var(--atbl-space-lg), 4vh, calc(var(--atbl-space-xl) + var(--atbl-space-xs)));\n }\n\n .altertable-comparison-visual[data-emphasis=\"story\"] figcaption {\n font-size: var(--atbl-type-body-size);\n }\n\n .altertable-comparison-visual[data-emphasis=\"story\"] .altertable-comparison-row[data-period=\"current\"] > div {\n align-items: flex-start;\n gap: var(--atbl-space-sm);\n flex-direction: column-reverse;\n }\n\n .altertable-comparison-visual[data-emphasis=\"story\"] .altertable-comparison-row[data-period=\"current\"] strong {\n font-size: clamp(calc(var(--atbl-type-metric-size) * 1.5), 7vw, calc(var(--atbl-type-metric-size) * 2.75));\n line-height: 1;\n }\n\n .altertable-comparison-visual[data-emphasis=\"story\"] .altertable-comparison-row[data-period=\"previous\"] strong {\n font-size: var(--atbl-type-metric-size);\n }\n\n .altertable-comparison-visual[data-emphasis=\"story\"] .altertable-comparison-track {\n height: 12px;\n }\n\n .altertable-comparison-visual[data-emphasis=\"story\"] .altertable-comparison-change {\n font-size: var(--atbl-type-body-size);\n }\n\n .altertable-about-visual .altertable-comparison-visual[data-emphasis=\"story\"] .altertable-comparison-row[data-period=\"current\"] strong {\n font-size: calc(var(--atbl-type-metric-size) * 1.125);\n }\n}\n\n/* packages/data-app-react/src/ui/BarChart.css */\n@layer atbl.components {\n .altertable-selectable-bars {\n min-width: 0;\n }\n\n .altertable-selectable-bars-scroll {\n overflow-x: auto;\n width: 100%;\n min-width: 0;\n height: 260px;\n margin: 12px 2px 14px;\n }\n\n .altertable-selectable-bars-item {\n display: flex;\n color: var(--atbl-muted);\n background: none;\n border: 0;\n flex-direction: column;\n flex: 1;\n align-items: center;\n min-width: 36px;\n padding: 0;\n }\n\n .altertable-selectable-bars-item:focus {\n outline: none;\n }\n\n .altertable-selectable-bars-area {\n display: flex;\n border-bottom: 1px solid var(--atbl-border);\n justify-content: center;\n align-items: end;\n width: 100%;\n height: 220px;\n }\n\n .altertable-selectable-bars-label {\n color: inherit;\n font: inherit;\n font-size: var(--atbl-type-meta-size);\n white-space: nowrap;\n background: none;\n border: 0;\n padding: 0;\n }\n\n .altertable-chart-item-actions {\n display: flex;\n flex-direction: column;\n flex: 1;\n min-width: 36px;\n }\n\n .altertable-chart-item-actions > .altertable-tooltip-trigger.altertable-chart-column[data-variant=\"chart\"] {\n flex: 1;\n align-items: flex-start;\n width: auto;\n min-width: 36px;\n height: auto;\n }\n\n .altertable-chart-item-actions .altertable-chart-column > button {\n width: 100%;\n }\n\n .altertable-chart-item-actions > span {\n align-self: center;\n }\n\n .altertable-chart-item-actions > span .altertable-button {\n font-size: var(--atbl-type-meta-size);\n min-width: 0;\n padding: 4px 6px;\n }\n\n .altertable-selectable-bars-plot {\n position: relative;\n }\n\n .altertable-selectable-bars-items {\n position: relative;\n display: flex;\n }\n\n .altertable-chart-item-label-row {\n display: flex;\n justify-content: center;\n align-items: center;\n gap: var(--atbl-space-xs);\n min-height: var(--atbl-control-compact-height);\n color: var(--atbl-muted);\n padding-top: 4px;\n }\n\n .altertable-chart-item-label-row > span {\n display: inline-flex;\n }\n\n .altertable-chart-item-label-row .altertable-selectable-bars-label {\n --atbl-control-hover-surface: transparent;\n --atbl-control-open-surface: transparent;\n --atbl-control-pressed-surface: transparent;\n display: inline-flex;\n color: inherit;\n align-items: center;\n gap: 4px;\n min-height: 0;\n padding: 0;\n }\n\n .altertable-chart-item-label-row button.altertable-selectable-bars-label {\n padding: var(--atbl-space-xs) 6px;\n border-radius: var(--atbl-radius-control);\n border: 1px solid #0000;\n }\n\n .altertable-chart-item-label-row button.altertable-selectable-bars-label:-webkit-any(:hover, [data-hovered], [aria-expanded=\"true\"]) {\n border-color: var(--atbl-border);\n }\n\n .altertable-chart-item-label-row button.altertable-selectable-bars-label:-moz-any(:hover, [data-hovered], [aria-expanded=\"true\"]) {\n border-color: var(--atbl-border);\n }\n\n .altertable-chart-item-label-row button.altertable-selectable-bars-label:is(:hover, [data-hovered], [aria-expanded=\"true\"]) {\n border-color: var(--atbl-border);\n }\n}\n\n/* packages/data-app-react/src/ui/UpdatedAt.css */\n@layer atbl.components {\n .altertable-updated-at {\n color: var(--atbl-muted);\n font: var(--atbl-type-meta-size) / var(--atbl-type-label-leading) var(--atbl-font);\n background: none;\n border: 0;\n align-self: flex-start;\n width: -moz-fit-content;\n width: fit-content;\n padding: 0;\n }\n\n .altertable-updated-at:hover {\n color: var(--atbl-text);\n }\n}\n\n/* packages/data-app-react/src/ui/data-identifiers.css */\n@layer atbl.components {\n .altertable-data-identifier {\n border: 1px solid color-mix(in srgb, var(--atbl-border) 65%, var(--atbl-surface));\n background: color-mix(in srgb, var(--atbl-subtle) 65%, var(--atbl-surface));\n color: var(--atbl-text);\n font-size: .85em;\n font-weight: 450;\n line-height: inherit;\n letter-spacing: -.01em;\n overflow-wrap: anywhere;\n box-decoration-break: clone;\n -webkit-box-decoration-break: clone;\n border-radius: .3em;\n padding: .06em .24em .08em;\n }\n\n .altertable-data-identifier-path {\n color: var(--atbl-muted);\n }\n\n .altertable-data-identifier-name {\n font-weight: 550;\n }\n}\n\n/* packages/data-app-react/src/ui/GlossaryDefinition.css */\n@layer atbl.components {\n .altertable-glossary-definition-trigger {\n display: inline;\n color: inherit;\n font: inherit;\n font-weight: inherit;\n text-align: inherit;\n text-decoration: underline dotted var(--atbl-muted);\n text-decoration-thickness: 1px;\n text-underline-offset: .2em;\n background: none;\n border: 0;\n padding: 0;\n }\n\n .altertable-glossary-definition-trigger:hover, .altertable-glossary-definition-trigger[data-open=\"true\"] {\n text-decoration-color: var(--atbl-text);\n }\n\n .altertable-glossary-definition-trigger:focus-visible {\n border-radius: 2px;\n }\n\n .altertable-glossary-definition-popover {\n width: min(320px, 100vw - 24px);\n }\n\n .altertable-glossary-definition-popover > strong {\n display: block;\n font-size: var(--atbl-type-label-size);\n margin-bottom: 4px;\n font-weight: 650;\n }\n}\n\n/* packages/data-app-react/src/ui/ExportControl.css */\n@layer atbl.components {\n .altertable-export-popover {\n z-index: 1000;\n max-height: min(320px, var(--available-height));\n overflow: auto;\n padding: var(--atbl-dropdown-padding);\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-control);\n background: var(--atbl-surface);\n box-shadow: var(--atbl-shadow-overlay);\n color: var(--atbl-text);\n max-width: min(320px, 100vw - 32px);\n }\n\n .altertable-export-popover [role=\"menu\"] {\n display: flex;\n gap: var(--atbl-dropdown-item-gap);\n outline: none;\n flex-direction: column;\n }\n\n .altertable-export-popover [role=\"menuitem\"] {\n display: flex;\n padding: var(--atbl-dropdown-item-padding-block) var(--atbl-dropdown-item-padding-inline);\n font-size: var(--atbl-type-label-size);\n outline: none;\n border-radius: 4px;\n justify-content: space-between;\n align-items: center;\n gap: 16px;\n min-height: 34px;\n }\n\n .altertable-export-format {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n flex: none;\n }\n\n .altertable-export-all {\n position: relative;\n margin-top: 9px;\n }\n\n .altertable-export-all:before {\n position: absolute;\n border-top: 1px solid var(--atbl-border);\n content: \"\";\n top: -5px;\n left: 0;\n right: 0;\n }\n}\n\n/* packages/data-app-react/src/ui/TrendChart.css */\n@layer atbl.components {\n .altertable-trend-chart {\n min-width: 0;\n }\n\n .altertable-trend-scroll {\n overflow-x: auto;\n margin: 12px 0 14px;\n padding: 3px;\n }\n\n .altertable-trend-plot {\n position: relative;\n }\n\n .altertable-trend-points {\n position: relative;\n display: flex;\n }\n\n .altertable-trend-point {\n --atbl-focus-outline: none;\n color: var(--atbl-muted);\n background: none;\n border: 0;\n flex: 1;\n min-width: 0;\n padding: 0;\n }\n\n .altertable-trend-point:focus {\n outline: none;\n }\n\n .altertable-trend-point:focus-visible .altertable-trend-label {\n color: var(--atbl-text);\n text-decoration: underline;\n text-underline-offset: .2em;\n }\n\n .altertable-trend-hit {\n display: block;\n position: relative;\n height: 220px;\n }\n\n .altertable-trend-label {\n display: block;\n font-size: var(--atbl-type-meta-size);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n padding: 8px 3px 0;\n }\n}\n\n/* packages/data-app-react/src/ui/ChartLegend.css */\n@layer atbl.components {\n .altertable-chart-legend-container {\n container: atbl-chart-legend / inline-size;\n width: 100%;\n min-width: 0;\n }\n\n .altertable-chart-legend {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n align-items: center;\n gap: var(--atbl-space-sm) var(--atbl-space-md);\n list-style: none;\n color: var(--atbl-text);\n font-size: var(--atbl-type-meta-size);\n line-height: var(--atbl-type-label-leading);\n font-variant-numeric: tabular-nums;\n min-width: 0;\n margin: 0;\n padding: 0;\n }\n\n .altertable-chart-legend[data-layout=\"vertical\"] {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n }\n\n .altertable-chart-legend[data-align=\"center\"] {\n justify-content: center;\n }\n\n .altertable-chart-legend[data-align=\"end\"] {\n justify-content: end;\n }\n\n .altertable-chart-legend-item {\n display: flex;\n align-items: center;\n gap: var(--atbl-space-xs);\n min-width: 0;\n max-width: 100%;\n }\n\n .altertable-chart-legend-item[data-inactive] {\n opacity: var(--atbl-control-disabled-opacity);\n }\n\n .altertable-chart-legend-marker {\n display: inline-block;\n vertical-align: middle;\n flex: none;\n width: 8px;\n height: 8px;\n }\n\n .altertable-chart-legend-marker:not([data-kind=\"square\"]) {\n width: 20px;\n height: 12px;\n }\n\n .altertable-chart-legend-label {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n min-width: 0;\n }\n\n .altertable-chart-legend-action {\n display: flex;\n align-items: center;\n gap: inherit;\n color: inherit;\n font: inherit;\n text-align: left;\n background: none;\n border: 0;\n min-width: 0;\n max-width: 100%;\n padding: 0;\n }\n\n .altertable-chart-legend[data-layout=\"vertical\"][data-align=\"center\"] {\n justify-items: center;\n }\n\n .altertable-chart-legend[data-layout=\"vertical\"][data-align=\"end\"] {\n justify-items: end;\n }\n\n .altertable-chart-legend-overflow {\n grid-column: -2 / -1;\n color: var(--atbl-muted);\n min-width: 0;\n }\n\n @container atbl-chart-legend (width >= 240px) {\n .altertable-chart-legend:-webkit-any([data-layout=\"horizontal\"], [data-layout=\"single-row\"]) {\n grid-template-columns: repeat(2, minmax(0, 1fr));\n }\n\n .altertable-chart-legend:-moz-any([data-layout=\"horizontal\"], [data-layout=\"single-row\"]) {\n grid-template-columns: repeat(2, minmax(0, 1fr));\n }\n\n .altertable-chart-legend:is([data-layout=\"horizontal\"], [data-layout=\"single-row\"]) {\n grid-template-columns: repeat(2, minmax(0, 1fr));\n }\n }\n\n @container atbl-chart-legend (width >= 480px) {\n .altertable-chart-legend:-webkit-any([data-layout=\"horizontal\"], [data-layout=\"single-row\"]) {\n grid-template-columns: repeat(3, minmax(0, 1fr));\n }\n\n .altertable-chart-legend:-moz-any([data-layout=\"horizontal\"], [data-layout=\"single-row\"]) {\n grid-template-columns: repeat(3, minmax(0, 1fr));\n }\n\n .altertable-chart-legend:is([data-layout=\"horizontal\"], [data-layout=\"single-row\"]) {\n grid-template-columns: repeat(3, minmax(0, 1fr));\n }\n }\n\n @container atbl-chart-legend (width >= 720px) {\n .altertable-chart-legend:-webkit-any([data-layout=\"horizontal\"], [data-layout=\"single-row\"]) {\n grid-template-columns: repeat(4, minmax(0, 1fr));\n }\n\n .altertable-chart-legend:-moz-any([data-layout=\"horizontal\"], [data-layout=\"single-row\"]) {\n grid-template-columns: repeat(4, minmax(0, 1fr));\n }\n\n .altertable-chart-legend:is([data-layout=\"horizontal\"], [data-layout=\"single-row\"]) {\n grid-template-columns: repeat(4, minmax(0, 1fr));\n }\n }\n\n .altertable-chart-legend[data-layout=\"single-row\"] {\n align-items: start;\n }\n\n @container atbl-chart-legend (width < 240px) {\n .altertable-chart-legend[data-layout=\"single-row\"] {\n grid-template-columns: repeat(2, minmax(0, 1fr));\n }\n }\n}\n\n/* packages/data-app-react/src/ui/PieChart.css */\n@layer atbl.components {\n .altertable-pie-chart {\n min-width: 0;\n }\n\n .altertable-pie-plot {\n position: relative;\n display: grid;\n place-items: center;\n margin: 12px 0 14px;\n }\n\n .altertable-pie-plot svg {\n display: block;\n width: min(100%, 220px);\n height: auto;\n }\n\n .altertable-pie-slice {\n stroke: var(--atbl-surface);\n stroke-width: 2;\n transition: opacity var(--atbl-duration-fast) var(--atbl-ease-standard);\n }\n\n .altertable-pie-plot svg:has(.altertable-pie-slice[data-active]) .altertable-pie-slice:not([data-active]) {\n opacity: .3;\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-pie-slice {\n transition: none;\n }\n }\n\n .altertable-pie-empty {\n fill: var(--atbl-subtle);\n stroke: var(--atbl-border);\n }\n\n .altertable-pie-empty-label {\n position: absolute;\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n }\n\n .altertable-pie-legend {\n gap: 0;\n margin-bottom: 14px;\n }\n\n .altertable-pie-legend .altertable-chart-legend-overflow {\n padding-block-start: var(--atbl-space-sm);\n }\n\n .altertable-pie-legend .altertable-tooltip-trigger button {\n display: flex;\n color: var(--atbl-text);\n text-align: left;\n font-size: var(--atbl-type-meta-size);\n font-variant-numeric: tabular-nums;\n background: none;\n border: 0;\n align-items: center;\n gap: 10px;\n width: 100%;\n min-width: 0;\n padding: 8px 4px;\n }\n\n .altertable-pie-legend [data-open] > button {\n background: var(--atbl-subtle);\n }\n\n .altertable-pie-legend .altertable-tooltip-trigger button:focus {\n outline: none;\n }\n\n .altertable-pie-label {\n overflow-wrap: anywhere;\n min-width: 0;\n }\n\n .altertable-pie-menu-indicator {\n color: var(--atbl-muted);\n opacity: .5;\n }\n\n .altertable-pie-legend button:-webkit-any(:hover, :focus-visible, [aria-expanded=\"true\"]) .altertable-pie-menu-indicator {\n color: var(--atbl-text);\n opacity: 1;\n }\n\n .altertable-pie-legend button:-moz-any(:hover, :focus-visible, [aria-expanded=\"true\"]) .altertable-pie-menu-indicator {\n color: var(--atbl-text);\n opacity: 1;\n }\n\n .altertable-pie-legend button:is(:hover, :focus-visible, [aria-expanded=\"true\"]) .altertable-pie-menu-indicator {\n color: var(--atbl-text);\n opacity: 1;\n }\n\n .altertable-tooltip-trigger.altertable-pie-tooltip[data-variant=\"chart\"] {\n width: min(100%, 220px);\n height: auto;\n }\n\n .altertable-pie-legend .altertable-chart-legend-item {\n border-bottom: 1px solid var(--atbl-border);\n }\n\n .altertable-pie-legend .altertable-tooltip-trigger {\n flex: 1;\n width: 100%;\n min-width: 0;\n }\n\n .altertable-pie-legend .altertable-tooltip-trigger button {\n font: inherit;\n }\n\n .altertable-pie-value {\n margin-inline-start: auto;\n }\n\n .altertable-pie-share {\n color: var(--atbl-muted);\n text-align: end;\n min-inline-size: 4ch;\n }\n\n .altertable-pie-slice:focus {\n outline: none;\n }\n\n .altertable-pie-plot svg:has(.altertable-pie-slice:focus-visible) .altertable-pie-slice:not(:focus-visible) {\n opacity: .3;\n }\n\n .altertable-pie-slice:focus-visible {\n filter: brightness(1.15);\n }\n\n @media (forced-colors: active) {\n .altertable-pie-slice:focus-visible {\n stroke: Highlight;\n stroke-width: 3px;\n }\n }\n}\n\n/* packages/data-app-react/src/ui/ScatterChart.css */\n@layer atbl.components {\n .altertable-scatter-chart {\n min-width: 0;\n }\n\n .altertable-scatter-axis-title {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n overflow-wrap: anywhere;\n margin: 14px 0 18px;\n }\n\n .altertable-scatter-axes {\n padding: 0 12px 24px 48px;\n }\n\n .altertable-scatter-plot {\n position: relative;\n border-left: 1px solid var(--atbl-border);\n height: 220px;\n }\n\n .altertable-scatter-gridline {\n position: absolute;\n border-top: 1px solid var(--atbl-border);\n pointer-events: none;\n left: 0;\n right: 0;\n }\n\n .altertable-scatter-gridline > span {\n position: absolute;\n text-align: right;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n font-variant-numeric: tabular-nums;\n width: 40px;\n top: 0;\n right: calc(100% + 8px);\n transform: translateY(-50%);\n }\n\n .altertable-scatter-x-tick {\n position: absolute;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n font-variant-numeric: tabular-nums;\n max-width: 32%;\n top: calc(100% + 8px);\n transform: translateX(-50%);\n }\n\n .altertable-scatter-x-tick[data-edge=\"0\"] {\n transform: none;\n }\n\n .altertable-scatter-x-tick[data-edge=\"2\"] {\n transform: translateX(-100%);\n }\n\n .altertable-scatter-x-title {\n text-align: center;\n margin: 8px 0 16px;\n }\n\n .altertable-scatter-point {\n display: grid;\n background: none;\n border: 0;\n border-radius: 50%;\n place-items: center;\n width: 24px;\n height: 24px;\n padding: 0;\n }\n\n .altertable-scatter-point > span {\n background: var(--atbl-chart-1);\n opacity: .65;\n border: 1px solid var(--atbl-surface);\n border-radius: 50%;\n width: 9px;\n height: 9px;\n }\n\n .altertable-scatter-tooltip[data-open] {\n z-index: 1;\n }\n\n .altertable-scatter-tooltip[data-open] .altertable-scatter-point > span {\n opacity: 1;\n width: 12px;\n height: 12px;\n }\n\n .altertable-scatter-plot:has([data-open]) .altertable-scatter-tooltip:not([data-open]) .altertable-scatter-point > span {\n opacity: .3;\n }\n\n .altertable-scatter-point:focus {\n outline: none;\n }\n\n .altertable-tooltip-trigger.altertable-scatter-tooltip[data-variant=\"chart\"] {\n position: absolute;\n width: 24px;\n height: 24px;\n transform: translate(-50%, 50%);\n }\n}\n\n/* packages/data-app-react/src/ui/ComposedChart.css */\n@layer atbl.components {\n .altertable-composed-chart {\n font: inherit;\n color: var(--atbl-text);\n width: 100%;\n min-width: 0;\n }\n\n .altertable-chart-canvas {\n position: absolute;\n pointer-events: none;\n width: 100%;\n height: 220px;\n inset: 0 0 auto;\n }\n\n .altertable-composed-chart-legend-below {\n padding-top: var(--atbl-space-md);\n }\n\n .altertable-composed-chart-legend-above {\n padding-bottom: var(--atbl-space-md);\n }\n\n .altertable-composed-chart[data-atbl-internal-pointer-focus] {\n --atbl-focus-outline: none;\n }\n\n .altertable-composed-chart [data-atbl-focus=\"inset\"]:focus:not(:focus-visible) {\n outline: none;\n }\n\n .altertable-composed-chart svg [tabindex=\"-1\"]:focus {\n outline: none;\n }\n}\n\n/* packages/data-app-react/src/ui/AnalyticsCharts.css */\n@layer atbl.components {\n .altertable-funnel-chart, .altertable-retention-chart, .altertable-journey-chart {\n font-size: var(--atbl-type-meta-size);\n font-variant-numeric: tabular-nums;\n min-width: 0;\n }\n\n .altertable-funnel-header {\n display: grid;\n gap: var(--atbl-space-md);\n padding-bottom: var(--atbl-space-lg);\n }\n\n .altertable-funnel-summary-item {\n display: grid;\n gap: var(--atbl-space-xs);\n }\n\n .altertable-funnel-series-label {\n display: flex;\n align-items: center;\n gap: var(--atbl-space-xs);\n color: var(--atbl-muted);\n min-width: 0;\n }\n\n .altertable-funnel-series-value {\n font-size: var(--atbl-type-section-size);\n font-weight: var(--atbl-type-emphasis-weight);\n }\n\n .altertable-funnel-path {\n color: var(--atbl-muted);\n overflow-wrap: anywhere;\n margin: 0;\n }\n\n .altertable-funnel-scroll, .altertable-journey-scroll {\n overflow: auto;\n width: 100%;\n }\n\n .altertable-journey-scroll {\n max-height: 900px;\n }\n\n .altertable-analytics-note {\n color: var(--atbl-muted);\n overflow-wrap: anywhere;\n margin: 8px 0;\n }\n\n .altertable-journey-plot {\n position: relative;\n }\n\n .altertable-journey-plot > svg {\n position: absolute;\n inset: 0;\n }\n\n .altertable-journey-stage {\n position: absolute;\n color: var(--atbl-muted);\n top: 0;\n }\n\n .altertable-journey-node {\n position: absolute;\n }\n\n .altertable-journey-bar {\n position: absolute;\n top: 0;\n bottom: 0;\n background: var(--atbl-muted);\n left: 0;\n }\n\n .altertable-journey-bar[data-event] {\n background: var(--atbl-chart-5);\n }\n\n .altertable-journey-label {\n position: absolute;\n display: flex;\n box-sizing: border-box;\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-surface);\n background: var(--atbl-surface);\n color: var(--atbl-muted);\n overflow-wrap: anywhere;\n flex-direction: column;\n justify-content: center;\n gap: 2px;\n width: 100%;\n min-height: 64px;\n margin-bottom: 8px;\n padding: 8px 36px 8px 8px;\n bottom: 100%;\n }\n\n .altertable-journey-name {\n display: -webkit-box;\n -webkit-line-clamp: 2;\n overflow: hidden;\n color: var(--atbl-text);\n font-weight: var(--atbl-type-label-weight);\n -webkit-box-orient: vertical;\n }\n\n .altertable-journey-expand {\n position: absolute;\n margin-bottom: 12px;\n bottom: 100%;\n right: 4px;\n }\n\n .altertable-journey-more {\n position: absolute;\n margin-top: 8px;\n top: 100%;\n left: 0;\n }\n\n .altertable-funnel-tooltip-detail {\n display: block;\n color: var(--atbl-muted);\n overflow-wrap: anywhere;\n }\n}\n\n/* packages/data-app-react/src/annotations/colors.css */\n@layer atbl.components {\n :root {\n --atbl-annotation-accent: #c026d3;\n --atbl-annotation-accent-hover: #a21caf;\n --atbl-annotation-on-accent: #fff;\n }\n\n .altertable-annotation-trigger, .altertable-annotation-composer {\n --atbl-control-selected-surface: var(--atbl-annotation-accent);\n --atbl-control-selected-text: var(--atbl-annotation-on-accent);\n --atbl-focus-outline: 2px solid var(--atbl-annotation-accent);\n }\n\n .altertable-annotation-trigger[aria-pressed=\"true\"], .altertable-annotation-trigger:not([aria-pressed]) {\n background: var(--atbl-annotation-accent);\n color: var(--atbl-annotation-on-accent);\n border-color: #0000;\n }\n\n .altertable-annotation-trigger[aria-pressed=\"true\"]:hover:not(:disabled) {\n --atbl-control-selected-surface: var(--atbl-annotation-accent-hover);\n }\n\n .altertable-annotation-trigger:not([aria-pressed]) {\n --atbl-control-hover-surface: var(--atbl-annotation-accent-hover);\n --atbl-control-pressed-surface: var(--atbl-annotation-accent-hover);\n }\n}\n\n/* packages/data-app-react/src/annotations/AnnotationBar.css */\n@layer atbl.components {\n .altertable-annotation-bar, .altertable-annotation-bar-panel {\n --bar-surface: #202326;\n --bar-text: #f2f3f4;\n --bar-muted: #aeb5bc;\n --bar-border: #3b4248;\n --bar-danger: #ffa6a0;\n --bar-danger-surface: #572723;\n --atbl-control-selected-surface: var(--atbl-subtle);\n --atbl-control-selected-text: var(--bar-text);\n --atbl-control-disabled-opacity: 1;\n --atbl-surface: var(--bar-surface);\n --atbl-text: var(--bar-text);\n --atbl-muted: var(--bar-muted);\n --atbl-border: var(--bar-border);\n --atbl-focus-outline: 2px solid var(--atbl-annotation-accent);\n --atbl-subtle: color-mix(in srgb, var(--bar-text) 8%, var(--bar-surface));\n color: var(--bar-text);\n background: var(--bar-surface);\n font: 14px / 1.5 var(--atbl-font);\n box-sizing: border-box;\n border: 1px solid var(--bar-border);\n box-shadow: 0 8px 28px #0003;\n }\n\n .altertable-tooltip-content:has( > .altertable-annotation-bar-tooltip) {\n --bar-surface: #202326;\n --bar-text: #f2f3f4;\n --bar-muted: #aeb5bc;\n --bar-border: #3b4248;\n --bar-danger: #ffa6a0;\n --bar-danger-surface: #572723;\n --atbl-control-selected-surface: var(--atbl-subtle);\n --atbl-control-selected-text: var(--bar-text);\n --atbl-control-disabled-opacity: 1;\n --atbl-surface: var(--bar-surface);\n --atbl-text: var(--bar-text);\n --atbl-muted: var(--bar-muted);\n --atbl-border: var(--bar-border);\n --atbl-focus-outline: 2px solid var(--atbl-annotation-accent);\n --atbl-subtle: color-mix(in srgb, var(--bar-text) 8%, var(--bar-surface));\n color: var(--bar-text);\n background: var(--bar-surface);\n font: 14px / 1.5 var(--atbl-font);\n box-sizing: border-box;\n border: 1px solid var(--bar-border);\n box-shadow: 0 8px 28px #0003;\n }\n\n .altertable-annotation-bar[data-theme=\"dark\"], .altertable-annotation-bar-panel[data-theme=\"dark\"] {\n --bar-surface: #f2f3f4;\n --bar-text: #151719;\n --bar-muted: #505963;\n --bar-border: #dfe3e6;\n --bar-danger: #b42318;\n --bar-danger-surface: #ffe3e3;\n }\n\n .altertable-tooltip-content:has( > .altertable-annotation-bar-tooltip[data-theme=\"dark\"]) {\n --bar-surface: #f2f3f4;\n --bar-text: #151719;\n --bar-muted: #505963;\n --bar-border: #dfe3e6;\n --bar-danger: #b42318;\n --bar-danger-surface: #ffe3e3;\n }\n\n .altertable-annotation-bar {\n position: fixed;\n z-index: 1200;\n display: flex;\n border-radius: 18px;\n align-items: center;\n gap: 4px;\n max-width: calc(100vw - 24px);\n padding: 8px;\n bottom: 16px;\n left: 50%;\n transform: translateX(-50%);\n }\n\n .altertable-annotation-bar .altertable-button, .altertable-annotation-bar-panel .altertable-button {\n color: var(--bar-muted);\n font: inherit;\n flex-shrink: 0;\n width: auto;\n transition: none;\n }\n\n .altertable-annotation-bar .altertable-annotation-bar-count {\n white-space: nowrap;\n color: var(--bar-text);\n padding-inline-start: 6px;\n padding-inline-end: 6px;\n }\n\n .altertable-annotation-bar .altertable-button[data-atbl-internal-drag-handle] {\n --atbl-cursor-action: grab;\n touch-action: none;\n }\n\n .altertable-annotation-bar .altertable-button[data-atbl-internal-drag-handle]:active {\n --atbl-cursor-action: grabbing;\n }\n\n .altertable-annotation-bar .altertable-annotation-bar-send {\n --atbl-control-hover-surface: var(--atbl-annotation-accent-hover);\n --atbl-control-pressed-surface: var(--atbl-annotation-accent-hover);\n background: var(--atbl-annotation-accent);\n color: var(--atbl-annotation-on-accent);\n border-color: #0000;\n border-radius: 12px;\n padding-inline-start: 14px;\n padding-inline-end: 14px;\n font-weight: 600;\n line-height: 1.25;\n }\n\n .altertable-annotation-bar-panel {\n position: fixed;\n z-index: 1201;\n overflow: auto;\n border-radius: 16px;\n width: min(420px, 100vw - 24px);\n max-height: min(440px, 45vh);\n margin: 0;\n padding: 6px;\n }\n\n .altertable-annotation-bar-panel header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 4px 8px;\n }\n\n .altertable-annotation-bar-row {\n display: flex;\n border-radius: 10px;\n align-items: center;\n gap: 8px;\n padding: 4px;\n }\n\n .altertable-annotation-bar-row:hover, .altertable-annotation-bar-row:focus-within {\n background: var(--atbl-subtle);\n }\n\n .altertable-annotation-bar-row + .altertable-annotation-bar-row {\n border-top: 1px solid var(--bar-border);\n }\n\n .altertable-annotation-bar-panel .altertable-annotation-bar-open {\n display: grid;\n text-align: left;\n flex: 1;\n justify-content: stretch;\n gap: 2px;\n min-width: 0;\n height: auto;\n padding: 4px 6px;\n }\n\n .altertable-annotation-bar-open strong {\n color: var(--bar-text);\n font-weight: 600;\n }\n\n .altertable-annotation-bar-open span {\n color: var(--bar-muted);\n overflow-wrap: anywhere;\n font-size: 13px;\n }\n\n .altertable-annotation-bar-panel .altertable-annotation-bar-open:hover:not(:disabled) {\n background: none;\n }\n\n .altertable-annotation-bar-error {\n position: absolute;\n background: var(--bar-surface);\n color: var(--bar-text);\n border: 1px solid var(--bar-border);\n border-radius: 10px;\n padding: 8px 12px;\n font-size: 12px;\n bottom: calc(100% + 8px);\n left: 0;\n right: 0;\n }\n\n @media (max-width: 420px) {\n .altertable-annotation-bar {\n gap: 0;\n padding: 6px;\n font-size: 12px;\n }\n\n .altertable-annotation-bar .altertable-annotation-bar-send {\n padding-inline-start: 10px;\n padding-inline-end: 10px;\n }\n }\n\n @media (max-width: 360px) {\n .altertable-annotation-bar .altertable-button[data-size=\"icon-compact\"] {\n width: 26px;\n min-width: 26px;\n }\n }\n\n .altertable-tooltip-content:has( > .altertable-annotation-bar-tooltip) {\n font-size: 12px;\n line-height: 1.3;\n }\n\n .altertable-annotation-bar .altertable-button:hover:not(:disabled), .altertable-annotation-bar-panel .altertable-button:hover:not(:disabled) {\n color: var(--bar-text);\n background: var(--atbl-subtle);\n }\n\n .altertable-annotation-bar .altertable-annotation-bar-send:hover:not(:disabled) {\n color: var(--atbl-annotation-on-accent);\n background: var(--atbl-annotation-accent-hover);\n }\n\n .altertable-annotation-bar .altertable-button:disabled, .altertable-annotation-bar-panel .altertable-button:disabled {\n color: var(--bar-muted);\n }\n\n .altertable-annotation-bar .altertable-annotation-bar-send:disabled {\n color: var(--bar-muted);\n background: var(--atbl-subtle);\n }\n\n .altertable-annotation-bar .altertable-annotation-bar-send {\n position: relative;\n }\n\n .altertable-annotation-bar-send[data-pending] .altertable-annotation-bar-send-label {\n visibility: hidden;\n }\n\n .altertable-annotation-bar-spinner {\n position: absolute;\n animation: 1s linear infinite annotation-bar-spin;\n margin: auto;\n inset: 0;\n }\n\n @keyframes annotation-bar-spin {\n to {\n rotate: 360deg;\n }\n }\n\n .altertable-annotation-discard-description {\n color: var(--atbl-muted);\n font: 14px / 1.55 var(--atbl-font);\n margin: 0;\n }\n\n .altertable-annotation-discard-confirm {\n color: var(--atbl-danger);\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-annotation-bar-spinner {\n animation: none;\n }\n }\n\n .altertable-annotation-bar .altertable-button[aria-pressed=\"true\"] {\n color: var(--bar-text);\n background: var(--atbl-subtle);\n }\n\n .altertable-annotation-undo {\n position: fixed;\n z-index: 1202;\n display: flex;\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-overlay);\n background: var(--atbl-surface);\n color: var(--atbl-text);\n box-shadow: var(--atbl-shadow-overlay);\n font: 13px / 1.5 var(--atbl-font);\n align-items: center;\n gap: 12px;\n padding: 8px 12px;\n bottom: 16px;\n left: 16px;\n }\n\n .altertable-annotation-thumbnail {\n border: 1px solid var(--bar-border);\n overflow: hidden;\n background: var(--bar-surface);\n --atbl-cursor-action: zoom-in;\n border-radius: 6px;\n flex-shrink: 0;\n width: 56px;\n height: 40px;\n padding: 0;\n }\n\n .altertable-annotation-thumbnail img {\n object-fit: contain;\n display: block;\n width: 100%;\n height: 100%;\n }\n\n .altertable-annotation-thumbnail:focus-visible {\n outline: 2px solid var(--atbl-annotation-accent);\n outline-offset: 2px;\n }\n\n .altertable-annotation-preview {\n display: block;\n object-fit: contain;\n width: 100%;\n max-height: 65vh;\n }\n\n .altertable-annotation-undo[data-bar-visible] {\n bottom: 88px;\n }\n\n .altertable-annotation-undo[data-inline] {\n position: static;\n box-shadow: none;\n border-radius: 8px;\n margin-top: 6px;\n }\n\n .altertable-sheet.altertable-annotation-image-dialog[data-placement=\"center\"] {\n width: min(960px, 100vw - 32px);\n }\n}\n\n/* packages/data-app-react/src/annotations/AnnotationControls.css */\n@layer atbl.components {\n .altertable-annotation-composer, .altertable-annotation-hint {\n --annotation-surface: var(--atbl-text);\n --annotation-text: var(--atbl-background);\n --annotation-muted: color-mix(in srgb, var(--annotation-text) 65%, var(--annotation-surface));\n --annotation-border: color-mix(in srgb, var(--annotation-text) 15%, var(--annotation-surface));\n }\n\n .altertable-tooltip-content:has( > .altertable-annotation-tooltip) {\n --annotation-surface: var(--atbl-text);\n --annotation-text: var(--atbl-background);\n --annotation-muted: color-mix(in srgb, var(--annotation-text) 65%, var(--annotation-surface));\n --annotation-border: color-mix(in srgb, var(--annotation-text) 15%, var(--annotation-surface));\n }\n\n .altertable-annotation-outline {\n position: fixed;\n z-index: 1100;\n pointer-events: none;\n border: 2px dashed var(--atbl-annotation-accent);\n background: var(--atbl-annotation-highlight, color-mix(in srgb, var(--atbl-annotation-accent) 8%, transparent));\n border-radius: 0;\n }\n\n .altertable-annotation-pin {\n --atbl-focus-outline: 2px solid var(--atbl-annotation-accent);\n position: fixed;\n z-index: 1101;\n cursor: pointer;\n display: grid;\n background: var(--atbl-annotation-accent);\n color: var(--atbl-annotation-on-accent);\n font: 600 12px var(--atbl-font);\n border: 0;\n border-radius: 50%;\n place-items: center;\n width: 24px;\n height: 24px;\n padding: 0;\n }\n\n .altertable-annotation-composer {\n z-index: 1102;\n display: flex;\n box-sizing: border-box;\n border: 1px solid var(--annotation-border);\n background: var(--annotation-surface);\n color: var(--annotation-text);\n font: 14px / 1.5 var(--atbl-font);\n border-radius: 24px;\n flex-wrap: wrap;\n align-items: center;\n gap: 4px;\n width: min(320px, 100vw - 24px);\n padding: 8px;\n box-shadow: 0 4px 16px #0002;\n }\n\n .altertable-annotation-composer textarea {\n field-sizing: content;\n box-sizing: border-box;\n resize: none;\n overscroll-behavior: contain;\n font: inherit;\n color: inherit;\n background: none;\n border: 0;\n border-radius: 12px;\n flex: 1;\n min-width: 0;\n max-height: min(160px, 30vh);\n padding: 6px 8px;\n }\n\n .altertable-annotation-composer textarea:focus-visible {\n outline: none;\n }\n\n .altertable-annotation-composer [role=\"alert\"] {\n color: var(--annotation-text);\n flex-basis: 100%;\n margin: 4px 0;\n padding: 0 8px;\n }\n\n .altertable-annotation-hint {\n position: fixed;\n z-index: 1102;\n left: 50%;\n bottom: calc(var(--atbl-frame-inset-bottom, 0px) + 16px);\n box-sizing: border-box;\n border: 1px solid var(--annotation-border);\n background: var(--annotation-surface);\n color: var(--annotation-text);\n font: 13px / 1.5 var(--atbl-font);\n pointer-events: none;\n border-radius: 24px;\n max-width: calc(100vw - 24px);\n padding: 8px 16px;\n transform: translateX(-50%);\n box-shadow: 0 4px 16px #0002;\n }\n\n .altertable-annotation-pin:focus-visible {\n outline: 2px solid var(--atbl-annotation-accent);\n outline-offset: 2px;\n }\n\n .altertable-annotation-count {\n background: var(--atbl-annotation-accent);\n color: var(--atbl-annotation-on-accent);\n border-radius: 20px;\n padding: 0 5px;\n font-size: 11px;\n }\n\n .altertable-annotation-composer[data-shaking] {\n animation: .22s ease-in-out annotation-shake;\n }\n\n @keyframes annotation-shake {\n 25%, 75% {\n translate: -4px;\n }\n\n 50% {\n translate: 4px;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-annotation-composer[data-shaking] {\n animation-duration: 1ms;\n }\n }\n\n .altertable-annotation-composer textarea::placeholder {\n color: var(--annotation-muted);\n }\n\n .altertable-annotation-composer .altertable-annotation-submit {\n --atbl-control-hover-surface: var(--atbl-annotation-accent-hover);\n --atbl-control-pressed-surface: var(--atbl-annotation-accent-hover);\n background: var(--atbl-annotation-accent);\n color: var(--atbl-annotation-on-accent);\n box-shadow: none;\n border: 0;\n border-radius: 50%;\n }\n\n .altertable-annotation-composer .altertable-annotation-submit:hover:not(:disabled) {\n background: var(--atbl-annotation-accent-hover);\n }\n\n .altertable-tooltip-content:has( > .altertable-annotation-tooltip) {\n background: var(--annotation-surface);\n color: var(--annotation-text);\n border-color: var(--annotation-border);\n }\n\n .altertable-annotation-hint .altertable-kbd, .altertable-annotation-tooltip .altertable-kbd {\n color: var(--annotation-muted);\n border-color: var(--annotation-border);\n background: none;\n }\n\n @media (pointer: coarse) {\n .altertable-annotation-composer textarea {\n font-size: 16px;\n }\n }\n\n .altertable-annotation-outline[data-widget] {\n border-radius: var(--atbl-radius-surface);\n }\n\n .altertable-annotation-selection-layer {\n position: fixed;\n z-index: 1099;\n --atbl-cursor-action: crosshair;\n --atbl-focus-outline: none;\n touch-action: pan-x pan-y pinch-zoom;\n background: none;\n border: 0;\n border-radius: 0;\n width: 100%;\n height: 100%;\n margin: 0;\n padding: 0;\n inset: 0;\n }\n\n .altertable-annotation-selection-layer:focus-visible {\n outline: none;\n }\n\n .altertable-annotation-hint {\n display: flex;\n white-space: nowrap;\n align-items: center;\n gap: 6px;\n }\n\n .altertable-annotation-selection-layer[data-editing] {\n --atbl-cursor-action: default;\n }\n}\n\n/* packages/data-app-react/src/ui/Focus.css */\n@layer atbl.interaction {\n [data-atbl-focus=\"inset\"][data-atbl-internal-focus-state=\"focused\"][data-focused] {\n outline: var(--atbl-focus-outline, 1px solid var(--atbl-focus-color, var(--atbl-muted)));\n outline-offset: var(--atbl-focus-ring-offset);\n }\n\n [data-atbl-focus=\"ring\"]:-webkit-any(:focus-visible, [data-focus-visible]) {\n outline: var(--atbl-focus-outline, 1px solid var(--atbl-focus-color, var(--atbl-muted)));\n outline-offset: var(--atbl-focus-ring-offset);\n }\n\n [data-atbl-focus=\"ring\"]:-moz-any(:focus-visible, [data-focus-visible]) {\n outline: var(--atbl-focus-outline, 1px solid var(--atbl-focus-color, var(--atbl-muted)));\n outline-offset: var(--atbl-focus-ring-offset);\n }\n\n [data-atbl-focus=\"ring\"]:is(:focus-visible, [data-focus-visible]) {\n outline: var(--atbl-focus-outline, 1px solid var(--atbl-focus-color, var(--atbl-muted)));\n outline-offset: var(--atbl-focus-ring-offset);\n }\n\n [data-atbl-focus=\"ring\"]:has( > input:focus-visible) {\n outline: var(--atbl-focus-outline, 1px solid var(--atbl-focus-color, var(--atbl-muted)));\n outline-offset: var(--atbl-focus-ring-offset);\n }\n\n [data-atbl-focus=\"inset\"]:-webkit-any(:focus-visible, [data-focus-visible]) {\n outline: var(--atbl-focus-outline, 1px solid var(--atbl-focus-color, var(--atbl-muted)));\n outline-offset: var(--atbl-focus-ring-offset);\n }\n\n [data-atbl-focus=\"inset\"]:-moz-any(:focus-visible, [data-focus-visible]) {\n outline: var(--atbl-focus-outline, 1px solid var(--atbl-focus-color, var(--atbl-muted)));\n outline-offset: var(--atbl-focus-ring-offset);\n }\n\n [data-atbl-focus=\"inset\"]:is(:focus-visible, [data-focus-visible]) {\n outline: var(--atbl-focus-outline, 1px solid var(--atbl-focus-color, var(--atbl-muted)));\n outline-offset: var(--atbl-focus-ring-offset);\n }\n\n [data-atbl-internal-prose] a:focus-visible {\n outline: var(--atbl-focus-outline, 1px solid var(--atbl-focus-color, var(--atbl-muted)));\n outline-offset: var(--atbl-focus-ring-offset);\n }\n\n [data-atbl-focus=\"inset\"][data-atbl-internal-focus-state=\"focused\"][data-focused] {\n outline-offset: var(--atbl-focus-ring-inset);\n }\n\n [data-atbl-focus=\"inset\"]:-webkit-any(:focus-visible, [data-focus-visible]) {\n outline-offset: var(--atbl-focus-ring-inset);\n }\n\n [data-atbl-focus=\"inset\"]:-moz-any(:focus-visible, [data-focus-visible]) {\n outline-offset: var(--atbl-focus-ring-inset);\n }\n\n [data-atbl-focus=\"inset\"]:is(:focus-visible, [data-focus-visible]) {\n outline-offset: var(--atbl-focus-ring-inset);\n }\n\n [data-atbl-focus=\"group\"]:-webkit-any(:focus-within, [data-focus-within], [data-focus-visible]) {\n outline: var(--atbl-focus-outline, 1px solid var(--atbl-focus-color, var(--atbl-muted)));\n outline-offset: var(--atbl-focus-ring-inset);\n }\n\n [data-atbl-focus=\"group\"]:-moz-any(:focus-within, [data-focus-within], [data-focus-visible]) {\n outline: var(--atbl-focus-outline, 1px solid var(--atbl-focus-color, var(--atbl-muted)));\n outline-offset: var(--atbl-focus-ring-inset);\n }\n\n [data-atbl-focus=\"group\"]:is(:focus-within, [data-focus-within], [data-focus-visible]) {\n outline: var(--atbl-focus-outline, 1px solid var(--atbl-focus-color, var(--atbl-muted)));\n outline-offset: var(--atbl-focus-ring-inset);\n }\n\n [data-atbl-focus=\"group\"] input:focus-visible {\n outline: none;\n }\n\n @media (forced-colors: active) {\n [data-atbl-focus]:-webkit-any(:focus-visible, :focus-within, [data-focus-visible]) {\n outline-color: highlight !important;\n }\n\n [data-atbl-focus]:-moz-any(:focus-visible, :focus-within, [data-focus-visible]) {\n outline-color: highlight !important;\n }\n\n [data-atbl-focus]:is(:focus-visible, :focus-within, [data-focus-visible]) {\n outline-color: highlight !important;\n }\n\n [data-atbl-internal-prose] a:focus-visible {\n outline-color: highlight !important;\n }\n }\n}\n\n/* packages/data-app-react/src/interaction.css */\n@layer atbl.interaction {\n [data-atbl-control=\"default\"] {\n cursor: default;\n }\n\n [data-atbl-control=\"action\"], [data-atbl-internal-prose] a {\n cursor: var(--atbl-cursor-action);\n }\n\n [data-atbl-control=\"help\"] {\n cursor: var(--atbl-cursor-help);\n }\n\n [data-atbl-control=\"text\"] {\n cursor: text;\n font-size: var(--atbl-control-text-size, var(--atbl-type-body-size));\n }\n\n @media (max-width: 560px), (any-pointer: coarse) {\n [data-atbl-control=\"text\"] {\n font-size: max(16px, var(--atbl-control-text-size, var(--atbl-type-body-size)));\n }\n }\n\n [data-atbl-control]:-webkit-any(:disabled, [data-disabled], [aria-disabled=\"true\"], [data-unavailable]) {\n cursor: var(--atbl-cursor-disabled);\n }\n\n [data-atbl-control]:-moz-any(:disabled, [data-disabled], [aria-disabled=\"true\"], [data-unavailable]) {\n cursor: var(--atbl-cursor-disabled);\n }\n\n [data-atbl-control]:is(:disabled, [data-disabled], [aria-disabled=\"true\"], [data-unavailable]) {\n cursor: var(--atbl-cursor-disabled);\n }\n\n [data-atbl-control]:has( > input:disabled) {\n cursor: var(--atbl-cursor-disabled);\n }\n\n [data-atbl-control=\"action\"]:-webkit-any(:disabled, [data-disabled], [aria-disabled=\"true\"]) {\n opacity: var(--atbl-control-disabled-opacity);\n }\n\n [data-atbl-control=\"action\"]:-moz-any(:disabled, [data-disabled], [aria-disabled=\"true\"]) {\n opacity: var(--atbl-control-disabled-opacity);\n }\n\n [data-atbl-control=\"action\"]:is(:disabled, [data-disabled], [aria-disabled=\"true\"]) {\n opacity: var(--atbl-control-disabled-opacity);\n }\n\n [data-atbl-control=\"help\"]:-webkit-any(:disabled, [data-disabled], [aria-disabled=\"true\"]) {\n opacity: var(--atbl-control-disabled-opacity);\n }\n\n [data-atbl-control=\"help\"]:-moz-any(:disabled, [data-disabled], [aria-disabled=\"true\"]) {\n opacity: var(--atbl-control-disabled-opacity);\n }\n\n [data-atbl-control=\"help\"]:is(:disabled, [data-disabled], [aria-disabled=\"true\"]) {\n opacity: var(--atbl-control-disabled-opacity);\n }\n\n [data-atbl-control]:has( > input:disabled) {\n opacity: var(--atbl-control-disabled-opacity);\n }\n\n [data-atbl-control][aria-busy=\"true\"]:not(:-webkit-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n cursor: var(--atbl-cursor-busy);\n }\n\n [data-atbl-control][aria-busy=\"true\"]:not(:-moz-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n cursor: var(--atbl-cursor-busy);\n }\n\n [data-atbl-control][aria-busy=\"true\"]:not(:is(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n cursor: var(--atbl-cursor-busy);\n }\n\n :where([data-atbl-internal-surface=\"control\"], [data-atbl-internal-surface=\"option\"]):-webkit-any(:hover, [data-hovered], [data-focused], [data-open=\"true\"]):not(:-webkit-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-hover-surface, var(--atbl-subtle));\n }\n\n :where([data-atbl-internal-surface=\"control\"], [data-atbl-internal-surface=\"option\"]):-moz-any(:hover, [data-hovered], [data-focused], [data-open=\"true\"]):not(:-moz-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-hover-surface, var(--atbl-subtle));\n }\n\n :where([data-atbl-internal-surface=\"control\"], [data-atbl-internal-surface=\"option\"]):is(:hover, [data-hovered], [data-focused], [data-open=\"true\"]):not(:is(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-hover-surface, var(--atbl-subtle));\n }\n\n :where([data-atbl-internal-surface=\"control\"], [data-atbl-internal-surface=\"option\"]):-webkit-any(:active, [data-pressed]):not(:-webkit-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-pressed-surface, color-mix(in srgb, var(--atbl-text) 8%, var(--atbl-surface)));\n }\n\n :where([data-atbl-internal-surface=\"control\"], [data-atbl-internal-surface=\"option\"]):-moz-any(:active, [data-pressed]):not(:-moz-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-pressed-surface, color-mix(in srgb, var(--atbl-text) 8%, var(--atbl-surface)));\n }\n\n :where([data-atbl-internal-surface=\"control\"], [data-atbl-internal-surface=\"option\"]):is(:active, [data-pressed]):not(:is(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-pressed-surface, color-mix(in srgb, var(--atbl-text) 8%, var(--atbl-surface)));\n }\n\n :where([data-atbl-internal-surface=\"control\"]):-webkit-any([aria-expanded=\"true\"], [data-open=\"true\"]):not(:-webkit-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-open-surface, var(--atbl-surface));\n }\n\n :where([data-atbl-internal-surface=\"control\"]):-moz-any([aria-expanded=\"true\"], [data-open=\"true\"]):not(:-moz-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-open-surface, var(--atbl-surface));\n }\n\n :where([data-atbl-internal-surface=\"control\"]):is([aria-expanded=\"true\"], [data-open=\"true\"]):not(:is(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-open-surface, var(--atbl-surface));\n }\n\n :where([data-atbl-internal-surface=\"control\"]):-webkit-any([data-variant=\"outline\"], [data-variant=\"elevated\"]):-webkit-any([aria-expanded=\"true\"], [data-open=\"true\"]):not(:-webkit-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n border-color: var(--atbl-control-open-border, var(--atbl-muted));\n }\n\n :where([data-atbl-internal-surface=\"control\"]):-moz-any([data-variant=\"outline\"], [data-variant=\"elevated\"]):-moz-any([aria-expanded=\"true\"], [data-open=\"true\"]):not(:-moz-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n border-color: var(--atbl-control-open-border, var(--atbl-muted));\n }\n\n :where([data-atbl-internal-surface=\"control\"]):is([data-variant=\"outline\"], [data-variant=\"elevated\"]):is([aria-expanded=\"true\"], [data-open=\"true\"]):not(:is(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n border-color: var(--atbl-control-open-border, var(--atbl-muted));\n }\n\n :where([data-atbl-internal-surface=\"control\"]):-webkit-any([aria-pressed=\"true\"], [data-selected], [aria-current=\"true\"], :has( > input:checked)):not(:-webkit-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-selected-surface, var(--atbl-subtle));\n color: var(--atbl-control-selected-text, var(--atbl-text));\n }\n\n :where([data-atbl-internal-surface=\"control\"]):-moz-any([aria-pressed=\"true\"], [data-selected], [aria-current=\"true\"], :has( > input:checked)):not(:-moz-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-selected-surface, var(--atbl-subtle));\n color: var(--atbl-control-selected-text, var(--atbl-text));\n }\n\n :where([data-atbl-internal-surface=\"control\"]):is([aria-pressed=\"true\"], [data-selected], [aria-current=\"true\"], :has( > input:checked)):not(:is(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-selected-surface, var(--atbl-subtle));\n color: var(--atbl-control-selected-text, var(--atbl-text));\n }\n\n :where([data-atbl-internal-surface=\"option\"])[data-selected]:not(:-webkit-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-selected-surface, var(--atbl-subtle));\n color: var(--atbl-control-selected-text, var(--atbl-text));\n }\n\n :where([data-atbl-internal-surface=\"option\"])[data-selected]:not(:-moz-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-selected-surface, var(--atbl-subtle));\n color: var(--atbl-control-selected-text, var(--atbl-text));\n }\n\n :where([data-atbl-internal-surface=\"option\"])[data-selected]:not(:is(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-selected-surface, var(--atbl-subtle));\n color: var(--atbl-control-selected-text, var(--atbl-text));\n }\n\n :where([data-atbl-internal-surface=\"option\"])[data-selected]:-webkit-any(:hover, [data-hovered]):not(:-webkit-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-hover-surface, color-mix(in srgb, var(--atbl-text) 4%, var(--atbl-control-selected-surface, var(--atbl-subtle))));\n }\n\n :where([data-atbl-internal-surface=\"option\"])[data-selected]:-moz-any(:hover, [data-hovered]):not(:-moz-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-hover-surface, color-mix(in srgb, var(--atbl-text) 4%, var(--atbl-control-selected-surface, var(--atbl-subtle))));\n }\n\n :where([data-atbl-internal-surface=\"option\"])[data-selected]:is(:hover, [data-hovered]):not(:is(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-hover-surface, color-mix(in srgb, var(--atbl-text) 4%, var(--atbl-control-selected-surface, var(--atbl-subtle))));\n }\n\n :where([data-atbl-internal-surface=\"option\"])[data-selected]:-webkit-any(:active, [data-pressed]):not(:-webkit-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-pressed-surface, color-mix(in srgb, var(--atbl-text) 8%, var(--atbl-control-selected-surface, var(--atbl-subtle))));\n }\n\n :where([data-atbl-internal-surface=\"option\"])[data-selected]:-moz-any(:active, [data-pressed]):not(:-moz-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-pressed-surface, color-mix(in srgb, var(--atbl-text) 8%, var(--atbl-control-selected-surface, var(--atbl-subtle))));\n }\n\n :where([data-atbl-internal-surface=\"option\"])[data-selected]:is(:active, [data-pressed]):not(:is(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-pressed-surface, color-mix(in srgb, var(--atbl-text) 8%, var(--atbl-control-selected-surface, var(--atbl-subtle))));\n }\n\n :where([data-atbl-internal-surface=\"field\"], [data-atbl-internal-surface=\"control\"][data-variant=\"outline\"], [data-atbl-internal-surface=\"control\"][data-variant=\"elevated\"]):-webkit-any(:hover, [data-hovered]):not(:-webkit-any(:disabled, :has(input:disabled), [data-disabled], [aria-disabled=\"true\"], [data-invalid], [aria-invalid=\"true\"], :has(input[aria-invalid=\"true\"]))) {\n border-color: var(--atbl-control-hover-border, color-mix(in srgb, var(--atbl-muted) 45%, var(--atbl-border)));\n }\n\n :where([data-atbl-internal-surface=\"field\"], [data-atbl-internal-surface=\"control\"][data-variant=\"outline\"], [data-atbl-internal-surface=\"control\"][data-variant=\"elevated\"]):-moz-any(:hover, [data-hovered]):not(:-moz-any(:disabled, :has(input:disabled), [data-disabled], [aria-disabled=\"true\"], [data-invalid], [aria-invalid=\"true\"], :has(input[aria-invalid=\"true\"]))) {\n border-color: var(--atbl-control-hover-border, color-mix(in srgb, var(--atbl-muted) 45%, var(--atbl-border)));\n }\n\n :where([data-atbl-internal-surface=\"field\"], [data-atbl-internal-surface=\"control\"][data-variant=\"outline\"], [data-atbl-internal-surface=\"control\"][data-variant=\"elevated\"]):is(:hover, [data-hovered]):not(:is(:disabled, :has(input:disabled), [data-disabled], [aria-disabled=\"true\"], [data-invalid], [aria-invalid=\"true\"], :has(input[aria-invalid=\"true\"]))) {\n border-color: var(--atbl-control-hover-border, color-mix(in srgb, var(--atbl-muted) 45%, var(--atbl-border)));\n }\n\n [data-atbl-internal-surface=\"field\"]:-webkit-any([data-invalid], [aria-invalid=\"true\"]) {\n border-color: var(--atbl-danger);\n --atbl-focus-color: var(--atbl-danger);\n }\n\n [data-atbl-internal-surface=\"field\"]:-moz-any([data-invalid], [aria-invalid=\"true\"]) {\n border-color: var(--atbl-danger);\n --atbl-focus-color: var(--atbl-danger);\n }\n\n [data-atbl-internal-surface=\"field\"]:is([data-invalid], [aria-invalid=\"true\"]) {\n border-color: var(--atbl-danger);\n --atbl-focus-color: var(--atbl-danger);\n }\n\n [data-atbl-internal-surface=\"field\"]:has(input[aria-invalid=\"true\"]) {\n border-color: var(--atbl-danger);\n --atbl-focus-color: var(--atbl-danger);\n }\n\n [data-atbl-control=\"text\"]:-webkit-any(:disabled, [data-disabled], [aria-disabled=\"true\"]) {\n color: var(--atbl-muted);\n }\n\n [data-atbl-control=\"text\"]:-moz-any(:disabled, [data-disabled], [aria-disabled=\"true\"]) {\n color: var(--atbl-muted);\n }\n\n [data-atbl-control=\"text\"]:is(:disabled, [data-disabled], [aria-disabled=\"true\"]) {\n color: var(--atbl-muted);\n }\n}\n\n/* packages/data-app-react/src/styles.css */\n@layer atbl.tokens, atbl.base, atbl.components, atbl.interaction;\n",
40
+ css: "/* packages/data-app-react/src/tokens.css */\n@layer atbl.tokens {\n :root {\n --atbl-background: var(--atbl-palette-background);\n --atbl-surface: var(--atbl-palette-surface);\n --atbl-subtle: var(--atbl-palette-subtle);\n --atbl-backdrop: #0f171e38;\n --atbl-text: var(--atbl-palette-text);\n --atbl-muted: var(--atbl-palette-muted);\n --atbl-border: var(--atbl-palette-border);\n --atbl-accent: var(--atbl-palette-accent);\n --atbl-on-accent: var(--atbl-palette-on-accent);\n --atbl-positive: var(--atbl-palette-positive);\n --atbl-danger: var(--atbl-palette-danger);\n --atbl-code-surface: #f4f6f9;\n --atbl-code-text: #273242;\n --atbl-mono-font: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;\n --atbl-focus-ring-offset: 2px;\n --atbl-focus-ring-inset: -1px;\n --atbl-font: var(--atbl-input-font, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, ui-sans-serif, sans-serif);\n --atbl-space-xs: 5px;\n --atbl-space-sm: 10px;\n --atbl-space-md: 16px;\n --atbl-space-lg: 24px;\n --atbl-space-xl: 32px;\n --atbl-content-width: 1920px;\n --atbl-control-height: 2.375rem;\n --atbl-control-compact-height: 1.875rem;\n --atbl-control-icon-size: 1rem;\n --atbl-control-padding-inline: .75rem;\n --atbl-control-padding-block: .375rem;\n --atbl-control-gap: .5rem;\n --atbl-control-disabled-opacity: .5;\n --atbl-dropdown-padding: calc(var(--atbl-control-padding-block) * 2 / 3);\n --atbl-dropdown-item-padding-block: var(--atbl-control-padding-block);\n --atbl-dropdown-item-padding-inline: calc(var(--atbl-control-padding-inline) * 3 / 4);\n --atbl-dropdown-item-gap: 2px;\n --atbl-radius-control: 7px;\n --atbl-radius-surface: 12px;\n --atbl-radius-overlay: 16px;\n --atbl-shadow-surface: 0 3px 16px #141c280d;\n --atbl-shadow-overlay: 0 18px 50px #00000029;\n --atbl-shadow-control: 0 1px 3px #0000001a;\n --atbl-cursor-action: pointer;\n --atbl-cursor-disabled: default;\n --atbl-cursor-help: help;\n --atbl-cursor-busy: progress;\n --atbl-duration-fast: .12s;\n --atbl-duration-normal: .18s;\n --atbl-duration-slow: .24s;\n --atbl-ease-standard: ease;\n --atbl-ease-enter: cubic-bezier(.2, .7, .2, 1);\n --atbl-chart-1: color-mix(in srgb, var(--atbl-input-chart-1, #285fc0) var(--atbl-chart-strength), white);\n --atbl-chart-2: color-mix(in srgb, var(--atbl-input-chart-2, #a95319) var(--atbl-chart-strength), white);\n --atbl-chart-3: color-mix(in srgb, var(--atbl-input-chart-3, #147862) var(--atbl-chart-strength), white);\n --atbl-chart-4: color-mix(in srgb, var(--atbl-input-chart-4, #7243aa) var(--atbl-chart-strength), white);\n --atbl-chart-5: color-mix(in srgb, var(--atbl-input-chart-5, #aa3958) var(--atbl-chart-strength), white);\n --atbl-chart-6: color-mix(in srgb, var(--atbl-input-chart-6, #475569) var(--atbl-chart-strength), white);\n --atbl-chart-7: color-mix(in srgb, var(--atbl-input-chart-7, #285fc0) var(--atbl-chart-strength), white);\n --atbl-chart-8: color-mix(in srgb, var(--atbl-input-chart-8, #a95319) var(--atbl-chart-strength), white);\n --atbl-type-emphasis-weight: 680;\n --atbl-type-meta-weight: 500;\n --atbl-type-page-size: clamp(1.375rem, 2.4vw, 1.75rem);\n --atbl-type-section-size: 1.25rem;\n --atbl-type-widget-size: var(--atbl-type-label-size);\n --atbl-type-body-size: .875rem;\n --atbl-type-label-size: .8125rem;\n --atbl-type-meta-size: .75rem;\n --atbl-type-metric-size: clamp(1.625rem, 3vw, 2.125rem);\n --atbl-type-heading-weight: 650;\n --atbl-type-label-weight: 600;\n --atbl-type-body-leading: 1.65;\n --atbl-type-label-leading: 1.4;\n --atbl-type-heading-leading: 1.3;\n --atbl-type-metric-leading: 1.08;\n --atbl-text-measure: 70ch;\n }\n}\n\n/* packages/data-app-react/src/appearance.css */\n@layer atbl.tokens {\n :root {\n --atbl-palette-background: #fff;\n --atbl-palette-surface: #fff;\n --atbl-palette-subtle: #f6f7f7;\n --atbl-palette-text: #202124;\n --atbl-palette-muted: #687078;\n --atbl-palette-border: #e3e6e8;\n --atbl-palette-accent: var(--atbl-input-accent, var(--atbl-text));\n --atbl-palette-on-accent: var(--atbl-input-on-accent, #fff);\n --atbl-palette-positive: #147862;\n --atbl-palette-danger: #b42318;\n --atbl-chart-strength: 100%;\n }\n\n :root[data-atbl-theme=\"dark\"] {\n --atbl-palette-background: #151719;\n --atbl-palette-surface: #202326;\n --atbl-palette-subtle: #292d31;\n --atbl-palette-text: #f2f3f4;\n --atbl-palette-muted: #aeb5bc;\n --atbl-palette-border: #3b4248;\n }\n\n :root[data-atbl-base-color=\"slate\"] {\n --atbl-palette-background: #f8fafc;\n --atbl-palette-surface: #fff;\n --atbl-palette-subtle: #f1f5f9;\n --atbl-palette-text: #17212f;\n --atbl-palette-muted: #607083;\n --atbl-palette-border: #dce3ea;\n }\n\n :root[data-atbl-base-color=\"slate\"][data-atbl-theme=\"dark\"] {\n --atbl-palette-background: #111820;\n --atbl-palette-surface: #1b2530;\n --atbl-palette-subtle: #263340;\n --atbl-palette-text: #f0f4f8;\n --atbl-palette-muted: #a8b5c3;\n --atbl-palette-border: #3a4857;\n }\n\n :root[data-atbl-base-color=\"warm\"] {\n --atbl-palette-background: #fbfaf8;\n --atbl-palette-surface: #fff;\n --atbl-palette-subtle: #f5f2ed;\n --atbl-palette-text: #292723;\n --atbl-palette-muted: #736e66;\n --atbl-palette-border: #e8e2da;\n }\n\n :root[data-atbl-base-color=\"warm\"][data-atbl-theme=\"dark\"] {\n --atbl-palette-background: #1b1916;\n --atbl-palette-surface: #25221e;\n --atbl-palette-subtle: #302c27;\n --atbl-palette-text: #f5f1eb;\n --atbl-palette-muted: #bcb3a8;\n --atbl-palette-border: #494239;\n }\n\n :root[data-atbl-theme=\"dark\"] {\n --atbl-palette-accent: var(--atbl-input-dark-accent, var(--atbl-text));\n --atbl-palette-on-accent: var(--atbl-input-on-accent, var(--atbl-background));\n --atbl-palette-positive: #6bc39a;\n --atbl-palette-danger: #f97066;\n --atbl-backdrop: #0000008c;\n --atbl-code-surface: #242a31;\n --atbl-code-text: #e5e9ef;\n --atbl-chart-strength: 60%;\n }\n\n :root[data-atbl-density=\"compact\"] {\n --atbl-control-height: 2.125rem;\n --atbl-control-compact-height: 1.625rem;\n --atbl-control-gap: .375rem;\n --atbl-control-padding-inline: .625rem;\n --atbl-control-padding-block: .25rem;\n --atbl-space-xs: 4px;\n --atbl-space-sm: 8px;\n --atbl-space-md: 12px;\n --atbl-space-lg: 18px;\n --atbl-space-xl: 24px;\n }\n\n :root[data-atbl-density=\"spacious\"] {\n --atbl-control-height: 2.625rem;\n --atbl-control-compact-height: 2.125rem;\n --atbl-control-gap: .625rem;\n --atbl-control-padding-inline: 1rem;\n --atbl-control-padding-block: .5rem;\n --atbl-space-xs: 6px;\n --atbl-space-sm: 12px;\n --atbl-space-md: 20px;\n --atbl-space-lg: 30px;\n --atbl-space-xl: 40px;\n }\n\n :root[data-atbl-radius=\"none\"] {\n --atbl-radius-control: 0px;\n --atbl-radius-surface: 0px;\n --atbl-radius-overlay: 0px;\n }\n\n :root[data-atbl-radius=\"small\"] {\n --atbl-radius-control: 4px;\n --atbl-radius-surface: 7px;\n --atbl-radius-overlay: 9px;\n }\n\n :root[data-atbl-radius=\"large\"] {\n --atbl-radius-control: 10px;\n --atbl-radius-surface: 18px;\n --atbl-radius-overlay: 24px;\n }\n\n :root[data-atbl-elevation=\"flat\"] {\n --atbl-shadow-surface: none;\n --atbl-shadow-overlay: none;\n --atbl-shadow-control: none;\n }\n\n :root[data-atbl-elevation=\"raised\"] {\n --atbl-shadow-surface: 0 8px 28px #141c281a;\n --atbl-shadow-overlay: 0 24px 72px #0000003d;\n --atbl-shadow-control: 0 2px 6px #00000029;\n }\n\n @media (forced-colors: active) {\n :root {\n --atbl-focus-color: Highlight !important;\n --atbl-on-accent: HighlightText !important;\n }\n }\n}\n\n/* packages/data-app-react/src/base.css */\n@layer atbl.base {\n :where([class^=\"altertable-\"], [class*=\" altertable-\"]) {\n box-sizing: border-box;\n }\n\n :where([class^=\"altertable-\"], [class*=\" altertable-\"]) * {\n box-sizing: border-box;\n }\n\n :where([class^=\"starter-\"], [class*=\" starter-\"]) * {\n box-sizing: border-box;\n }\n\n :where([class^=\"altertable-\"], [class*=\" altertable-\"]) button {\n font: inherit;\n }\n\n :root[data-atbl-appearance] {\n scrollbar-gutter: stable;\n font-family: var(--atbl-font);\n color: var(--atbl-text);\n background: var(--atbl-background);\n font-synthesis: none;\n -webkit-font-smoothing: antialiased;\n text-rendering: optimizeLegibility;\n }\n\n :root[data-atbl-frame-sizing=\"content\"] {\n overflow: hidden;\n scrollbar-gutter: auto;\n }\n\n :root {\n --atbl-frame-visible-height: calc(100dvh - var(--atbl-frame-inset-top, 0px) - var(--atbl-frame-inset-bottom, 0px));\n }\n\n :root[data-atbl-theme=\"light\"] {\n --buncss-light: initial;\n --buncss-dark: ;\n color-scheme: light;\n }\n\n :root[data-atbl-theme=\"dark\"] {\n --buncss-light: ;\n --buncss-dark: initial;\n color-scheme: dark;\n }\n\n :root[data-atbl-appearance] body, :root[data-atbl-appearance] #root {\n margin: 0;\n }\n\n .altertable-sr-only {\n position: fixed;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n clip-path: inset(50%);\n white-space: nowrap;\n border: 0;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n }\n}\n\n/* packages/data-app-react/src/ui/Skeleton.css */\n@layer atbl.components {\n .altertable-skeleton {\n display: block;\n border-radius: var(--atbl-radius-control);\n background: var(--atbl-subtle);\n opacity: 0;\n animation: altertable-skeleton-in .2s var(--atbl-ease-standard) .2s forwards, altertable-skeleton-pulse 1.4s ease-in-out .4s infinite alternate;\n }\n\n .altertable-skeleton[data-inline] {\n display: inline-block;\n vertical-align: middle;\n width: 8ch;\n height: 1em;\n }\n\n @keyframes altertable-skeleton-in {\n to {\n opacity: 1;\n }\n }\n\n @keyframes altertable-skeleton-pulse {\n to {\n opacity: .5;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-skeleton {\n animation: 1ms .2s forwards altertable-skeleton-in;\n }\n }\n}\n\n/* packages/data-app-react/src/ui/Grid.css */\n@layer atbl.components {\n .altertable-grid {\n display: grid;\n container: altertable-grid / inline-size;\n --atbl-grid-gap: var(--atbl-layout-gap, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg)));\n --atbl-grid-min-item-width: 280px;\n --atbl-grid-column-width: 100%;\n --atbl-grid-max-columns: 1;\n align-content: start;\n align-items: start;\n gap: var(--atbl-grid-gap);\n grid-template-columns: repeat(auto-fit, minmax(min(100%, max(var(--atbl-grid-min-item-width), var(--atbl-grid-column-width))), 1fr));\n min-width: 0;\n }\n\n .altertable-grid > * {\n min-width: 0;\n min-height: 0;\n margin: 0;\n }\n\n .altertable-grid[data-align=\"stretch\"] {\n align-items: stretch;\n }\n\n .altertable-grid[data-align=\"stretch\"] > .altertable-grid-item {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n }\n\n .altertable-grid[data-gap=\"sm\"] {\n --atbl-grid-gap: var(--atbl-space-sm);\n }\n\n .altertable-grid[data-gap=\"md\"] {\n --atbl-grid-gap: var(--atbl-space-md);\n }\n\n .altertable-grid[data-gap=\"lg\"] {\n --atbl-grid-gap: var(--atbl-layout-gap, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg)));\n }\n\n .altertable-grid[data-min-item-width=\"compact\"] {\n --atbl-grid-min-item-width: 224px;\n }\n\n .altertable-grid[data-min-item-width=\"wide\"] {\n --atbl-grid-min-item-width: 360px;\n }\n\n .altertable-grid[data-columns=\"2\"] {\n --atbl-grid-max-columns: 2;\n --atbl-grid-column-width: calc((100% - var(--atbl-grid-gap)) / 2);\n }\n\n .altertable-grid[data-columns=\"3\"] {\n --atbl-grid-max-columns: 3;\n --atbl-grid-column-width: calc((100% - var(--atbl-grid-gap) - var(--atbl-grid-gap)) / 3);\n }\n\n .altertable-grid[data-columns=\"4\"] {\n --atbl-grid-max-columns: 4;\n --atbl-grid-column-width: calc((100% - var(--atbl-grid-gap) - var(--atbl-grid-gap) - var(--atbl-grid-gap)) / 4);\n }\n\n .altertable-grid-item {\n min-width: 0;\n min-height: 0;\n }\n\n .altertable-grid > * {\n --atbl-grid-fitting-columns: clamp(1, round(down, tan(atan2(100cqw + var(--atbl-grid-gap) + .001px, var(--atbl-grid-min-item-width) + var(--atbl-grid-gap))), 1), var(--atbl-grid-max-columns));\n }\n\n .altertable-grid > .altertable-grid-item[data-span=\"2\"] {\n grid-column: span min(2, var(--atbl-grid-fitting-columns));\n }\n\n .altertable-grid[data-columns=\"3\"]:has( > .altertable-grid-item[data-span=\"2\"]) > :not(.altertable-grid-item[data-span=\"2\"]) {\n grid-column: span clamp(1, (3 - var(--atbl-grid-fitting-columns)) * 2, var(--atbl-grid-fitting-columns));\n }\n\n .altertable-grid[data-columns=\"3\"]:not(:has( > .altertable-grid-item[data-span=\"2\"])) > :last-child:nth-child(odd) {\n grid-column: span clamp(1, (3 - var(--atbl-grid-fitting-columns)) * 2, var(--atbl-grid-fitting-columns));\n }\n}\n\n/* packages/data-app-react/src/ui/DataWidget.css */\n@layer atbl.components {\n .altertable-data-widget {\n border: 1px solid var(--atbl-border);\n border-radius: calc(var(--atbl-radius-surface) * 1.5);\n corner-shape: squircle;\n background: var(--atbl-surface);\n box-shadow: var(--atbl-shadow-surface);\n min-width: 0;\n }\n\n .altertable-data-widget-header {\n padding: var(--atbl-surface-padding, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg))) var(--atbl-surface-padding, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg))) 0;\n }\n\n .altertable-data-widget-heading-row {\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: var(--atbl-space-md);\n min-height: 30px;\n }\n\n .altertable-data-widget-heading-row > .altertable-widget-heading {\n flex: 1;\n min-width: 0;\n }\n\n .altertable-data-widget-help {\n display: flex;\n flex: none;\n align-items: center;\n }\n\n .altertable-data-widget-help:empty {\n display: none;\n }\n\n .altertable-widget-heading {\n color: var(--atbl-muted);\n font-family: var(--atbl-font-heading, var(--atbl-input-font-heading, var(--atbl-font)));\n font-size: var(--atbl-type-widget-size);\n font-weight: var(--atbl-type-label-weight);\n line-height: var(--atbl-type-heading-leading);\n letter-spacing: 0;\n margin: 0;\n }\n\n .altertable-data-widget-count {\n display: inline-flex;\n vertical-align: baseline;\n font-variant-numeric: tabular-nums;\n color: var(--atbl-muted);\n font-size: .85em;\n line-height: 1;\n font-weight: var(--atbl-type-meta-weight);\n letter-spacing: 0;\n white-space: nowrap;\n align-self: center;\n align-items: center;\n margin-inline-start: var(--atbl-space-sm);\n }\n\n .altertable-data-widget-header p {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n margin: 4px 0 0;\n line-height: 1.45;\n }\n\n .altertable-data-widget-body {\n position: relative;\n padding: var(--atbl-space-md) var(--atbl-surface-padding, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg))) var(--atbl-surface-padding, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg)));\n min-width: 0;\n }\n\n .altertable-data-widget-body[data-padding=\"flush\"] {\n padding: 0;\n }\n\n .altertable-data-widget-footer {\n padding: var(--atbl-space-md) var(--atbl-surface-padding, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg)));\n }\n\n .altertable-data-widget-body > .altertable-status-panel {\n background: none;\n border: 0;\n border-radius: 0;\n margin: 0;\n padding: 0;\n }\n\n .altertable-widget-heading-trigger .altertable-data-widget-count {\n margin-inline-start: 0;\n }\n\n .altertable-widget-boundary {\n display: contents;\n }\n\n :where(.altertable-widget-boundary) > * {\n grid-column: inherit;\n }\n\n .altertable-widget-error {\n box-sizing: border-box;\n display: flex;\n text-align: center;\n color: var(--atbl-muted);\n font-family: var(--atbl-font);\n font-size: var(--atbl-type-meta-size);\n overflow: auto;\n overflow-wrap: anywhere;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n gap: 12px;\n width: 100%;\n max-width: 520px;\n min-height: 140px;\n margin-inline-start: auto;\n margin-inline-end: auto;\n padding: 16px;\n line-height: 1.5;\n }\n\n .altertable-widget-error-copy {\n min-width: 0;\n }\n\n .altertable-widget-error strong {\n color: var(--atbl-text);\n font-size: var(--atbl-type-label-size);\n font-weight: var(--atbl-type-label-weight);\n }\n\n .altertable-widget-error p {\n margin: 4px 0 0;\n }\n\n .altertable-widget-error-frame {\n display: flex;\n flex-direction: column;\n }\n\n .altertable-widget-error-frame > .altertable-data-widget-body {\n display: grid;\n flex: 1;\n min-height: 0;\n }\n}\n\n/* packages/data-app-react/src/ui/SectionHeading.css */\n@layer atbl.components {\n .altertable-section-heading {\n color: var(--atbl-text);\n font-family: var(--atbl-font-heading, var(--atbl-input-font-heading, var(--atbl-font)));\n font-size: var(--atbl-type-section-size);\n font-weight: var(--atbl-type-heading-weight);\n line-height: var(--atbl-type-heading-leading);\n letter-spacing: -.02em;\n overflow-wrap: anywhere;\n margin: 0;\n }\n}\n\n/* packages/data-app-react/src/ui/MetricWidget.css */\n@layer atbl.components {\n .altertable-metric-widget {\n display: flex;\n padding: var(--atbl-surface-padding, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg)));\n border: 1px solid var(--atbl-border);\n border-radius: calc(var(--atbl-radius-surface) * 1.5);\n corner-shape: squircle;\n background: var(--atbl-surface);\n box-shadow: var(--atbl-shadow-surface);\n flex-direction: column;\n min-width: 0;\n }\n\n .altertable-metric-widget.altertable-data-widget {\n padding: 0;\n }\n\n .altertable-metric-widget > .altertable-data-widget-header {\n min-height: 0;\n }\n\n .altertable-metric-widget > .altertable-data-widget-body {\n padding-top: 0;\n }\n\n .altertable-metric-widget > .altertable-data-widget-body:has( + footer) {\n padding-bottom: 0;\n }\n\n .altertable-metric-widget > .altertable-data-widget-footer {\n padding-top: 0;\n padding-bottom: var(--atbl-surface-padding, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg)));\n }\n\n .altertable-metric-value {\n margin: var(--atbl-space-sm) 0 2px;\n color: var(--atbl-text);\n font-family: var(--atbl-font-heading, var(--atbl-input-font-heading, var(--atbl-font)));\n font-size: var(--atbl-type-metric-size);\n font-weight: var(--atbl-type-emphasis-weight);\n line-height: var(--atbl-type-metric-leading);\n letter-spacing: -.04em;\n overflow-wrap: anywhere;\n font-variant-numeric: tabular-nums;\n max-inline-size: 100%;\n }\n\n .altertable-metric-reading {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: flex-start;\n gap: 4px;\n }\n\n .altertable-metric-trend {\n font-size: var(--atbl-type-meta-size);\n }\n\n .altertable-metric-change {\n display: inline-flex;\n color: var(--atbl-muted);\n font-variant-numeric: tabular-nums;\n align-items: center;\n gap: 3px;\n }\n\n .altertable-metric-change[data-tone=\"good\"] {\n color: var(--atbl-positive);\n }\n\n .altertable-metric-change[data-tone=\"bad\"] {\n color: var(--atbl-negative, var(--atbl-danger));\n }\n\n .altertable-metric-description {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n line-height: 1.45;\n }\n\n .altertable-metric-visual {\n margin-top: var(--atbl-space-sm);\n min-width: 0;\n }\n\n .altertable-metric-value[data-unavailable] {\n opacity: .6;\n }\n\n .altertable-metric-value > .altertable-skeleton {\n width: 6ch;\n height: 1lh;\n }\n}\n\n/* packages/data-app-react/src/ui/VisualizationWidget.css */\n@layer atbl.components {\n .altertable-visualization-widget-content {\n padding: var(--atbl-space-md) var(--atbl-surface-padding, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg))) var(--atbl-surface-padding, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg)));\n min-width: 0;\n }\n\n :where(.altertable-data-widget-body) > .altertable-visualization-widget-content {\n padding: 0;\n }\n\n :where(.altertable-data-widget-body > .altertable-widget-boundary) > .altertable-visualization-widget-content {\n padding: 0;\n }\n}\n\n/* packages/data-app-react/src/ui/ContentSkeleton.css */\n@layer atbl.components {\n .altertable-content-skeleton {\n display: grid;\n padding: var(--atbl-surface-padding, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg)));\n align-content: start;\n gap: 14px;\n min-width: 0;\n }\n\n .altertable-content-skeleton-label {\n width: 38%;\n height: 15px;\n }\n\n .altertable-content-skeleton-value {\n width: 56%;\n height: 38px;\n }\n\n .altertable-content-skeleton-chart {\n width: 100%;\n height: 180px;\n }\n\n .altertable-content-skeleton-foot {\n width: 70%;\n height: 12px;\n }\n\n .altertable-content-skeleton-subtitle {\n width: 52%;\n height: 12px;\n }\n\n .altertable-content-skeleton-rows {\n display: grid;\n gap: 18px;\n margin-top: 12px;\n }\n\n .altertable-content-skeleton-row {\n display: grid;\n gap: 8px;\n }\n\n .altertable-content-skeleton-row-label {\n width: 56%;\n height: 14px;\n }\n\n .altertable-content-skeleton-row-track {\n width: 100%;\n height: 8px;\n }\n\n .altertable-content-skeleton-row:nth-child(2) .altertable-content-skeleton-row-track {\n width: 72%;\n }\n\n .altertable-content-skeleton-row:nth-child(3) .altertable-content-skeleton-row-track {\n width: 48%;\n }\n\n .altertable-content-skeleton-row:nth-child(4) .altertable-content-skeleton-row-track {\n width: 30%;\n }\n\n .altertable-content-skeleton-body {\n display: grid;\n gap: 14px;\n min-width: 0;\n }\n}\n\n/* packages/data-app-react/src/shared.css */\n\n\n/* packages/data-app-react/src/ui/DateTimeRangePicker.css */\n@layer atbl.components {\n .altertable-datetime-input {\n display: flex;\n box-sizing: border-box;\n min-height: var(--atbl-control-height);\n padding: var(--atbl-control-padding-block) var(--atbl-control-padding-inline);\n font: var(--atbl-type-label-weight) var(--atbl-type-label-size) / var(--atbl-type-label-leading) var(--atbl-font);\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-control);\n background: var(--atbl-surface);\n color: var(--atbl-text);\n cursor: text;\n align-items: center;\n gap: .5rem;\n width: 22rem;\n min-width: 0;\n max-width: 100%;\n }\n\n .altertable-datetime-input input {\n outline: none;\n color: inherit;\n font: inherit;\n background: none;\n border: 0;\n width: 100%;\n min-width: 0;\n }\n\n .altertable-datetime-reset {\n display: grid;\n border-radius: var(--atbl-radius-control);\n color: var(--atbl-muted);\n cursor: pointer;\n background: none;\n border: 0;\n flex: none;\n place-items: center;\n width: 1.5rem;\n height: 1.5rem;\n padding: 0;\n }\n\n .altertable-datetime-reset:hover {\n background: var(--atbl-subtle);\n color: var(--atbl-text);\n }\n\n .altertable-datetime-input[data-disabled] {\n opacity: .5;\n }\n\n .altertable-datetime-input[data-invalid] {\n border-color: var(--atbl-danger);\n background: color-mix(in srgb, var(--atbl-danger) 9%, var(--atbl-surface));\n }\n\n .altertable-datetime-shortcut {\n display: inline-flex;\n box-sizing: border-box;\n border-radius: var(--atbl-radius-control);\n background: var(--atbl-subtle);\n color: var(--atbl-text);\n text-align: center;\n font-size: var(--atbl-type-meta-size);\n flex-shrink: 0;\n justify-content: center;\n align-items: center;\n width: 2.5rem;\n height: 1.5rem;\n padding: .1rem .25rem;\n }\n\n .altertable-datetime-shortcut span {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .altertable-datetime-popover {\n overflow: visible;\n box-sizing: border-box;\n width: min(22rem, 100vw - 2rem);\n max-width: calc(100vw - 2rem);\n }\n\n .altertable-datetime-popover:has(.altertable-datetime-presets) {\n display: flex;\n flex-direction: column;\n }\n\n .altertable-datetime-popover:has(.altertable-datetime-presets) > div {\n overflow-y: auto;\n overscroll-behavior: contain;\n min-height: 0;\n }\n\n .altertable-datetime-presets {\n box-sizing: border-box;\n padding: .25rem .25rem .5rem;\n }\n\n .altertable-datetime-presets button {\n display: flex;\n border-radius: var(--atbl-radius-control);\n color: inherit;\n text-align: left;\n font: inherit;\n cursor: pointer;\n background: none;\n border: 0;\n align-items: center;\n gap: .5rem;\n width: 100%;\n padding: .45rem .5rem;\n }\n\n .altertable-datetime-presets button[data-divider] {\n position: relative;\n margin-top: .8rem;\n }\n\n .altertable-datetime-presets button[data-divider]:before {\n content: \"\";\n position: absolute;\n border-top: 1px solid var(--atbl-border);\n inset: -.55rem 0 auto;\n }\n\n .altertable-datetime-presets button:last-child {\n scroll-margin-bottom: .5rem;\n }\n\n .altertable-datetime-presets button small {\n display: block;\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n margin-top: .125rem;\n }\n\n .altertable-datetime-presets button[data-highlighted] {\n background: var(--atbl-subtle);\n }\n\n .altertable-datetime-presets button[data-highlighted] .altertable-datetime-shortcut {\n background: var(--atbl-border);\n }\n\n .altertable-datetime-check {\n margin-left: auto;\n }\n\n .altertable-datetime-help {\n position: absolute;\n max-height: var(--available-height, 32rem);\n overflow-y: auto;\n box-sizing: border-box;\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-surface);\n background: var(--atbl-surface);\n color: var(--atbl-text);\n width: 16rem;\n padding: 1rem;\n top: 0;\n }\n\n .altertable-datetime-help[data-side=\"left\"] {\n right: calc(100% + .5rem);\n }\n\n .altertable-datetime-help[data-side=\"right\"] {\n left: calc(100% + .5rem);\n }\n\n .altertable-datetime-help h4 {\n color: var(--atbl-muted);\n margin: .75rem 0 .25rem;\n font-weight: 500;\n }\n\n .altertable-datetime-help section div {\n display: flex;\n flex-wrap: wrap;\n gap: .25rem;\n }\n\n .altertable-datetime-help button {\n font: inherit;\n font-size: var(--atbl-type-meta-size);\n color: inherit;\n background: var(--atbl-subtle);\n border-radius: var(--atbl-radius-control);\n cursor: pointer;\n border: 0;\n padding: .25rem;\n }\n\n .altertable-datetime-calendar-panel {\n max-height: var(--available-height, 32rem);\n overflow-y: auto;\n padding: .75rem;\n }\n\n .altertable-datetime-actions {\n display: flex;\n justify-content: space-between;\n gap: .5rem;\n margin-top: .75rem;\n }\n\n @media (max-width: 680px) {\n .altertable-datetime-popover {\n max-height: var(--available-height, calc(100dvh - 2rem));\n overflow-y: auto;\n }\n\n .altertable-datetime-help {\n position: static;\n border: 0;\n border-top: 1px solid var(--atbl-border);\n width: 100%;\n max-height: none;\n }\n }\n\n .altertable-datetime-calendar {\n width: 100%;\n min-width: 0;\n }\n\n .altertable-datetime-calendar header {\n display: grid;\n grid-template-columns: var(--atbl-control-height) minmax(0, 1.35fr) minmax(0, 1fr) var(--atbl-control-height);\n align-items: center;\n gap: .5rem;\n margin-bottom: .75rem;\n }\n\n .altertable-datetime-calendar header .altertable-select, .altertable-datetime-calendar header .altertable-select-trigger {\n width: 100%;\n }\n\n .altertable-datetime-calendar header .altertable-picker-label {\n display: none;\n }\n\n .altertable-datetime-calendar table {\n table-layout: fixed;\n border-collapse: separate;\n border-spacing: 0 2px;\n width: 100%;\n }\n\n .altertable-datetime-calendar th {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n font-weight: 500;\n }\n\n .altertable-datetime-calendar td {\n text-align: center;\n padding: 0;\n }\n\n .altertable-datetime-calendar .react-aria-CalendarCell {\n display: grid;\n cursor: pointer;\n border-radius: var(--atbl-radius-control);\n font-variant-numeric: tabular-nums;\n place-items: center;\n min-height: 40px;\n }\n\n .altertable-datetime-calendar .react-aria-CalendarCell[data-selected] {\n background: var(--atbl-accent-subtle, var(--atbl-subtle));\n font-weight: 650;\n }\n\n .altertable-datetime-calendar .react-aria-CalendarCell[data-selection-start], .altertable-datetime-calendar .react-aria-CalendarCell[data-selection-end] {\n background: var(--atbl-text);\n color: var(--atbl-surface);\n }\n\n .altertable-datetime-calendar .react-aria-CalendarCell[data-disabled], .altertable-datetime-calendar .react-aria-CalendarCell[data-unavailable] {\n color: var(--atbl-muted);\n cursor: default;\n text-decoration: line-through;\n }\n\n .altertable-datetime-calendar .react-aria-CalendarCell[data-outside-month] {\n visibility: hidden;\n }\n\n .altertable-datetime-help[data-side=\"inline\"] {\n position: static;\n border: 0;\n border-top: 1px solid var(--atbl-border);\n width: 100%;\n max-height: none;\n }\n\n .altertable-datetime-popover:has(.altertable-datetime-help[data-side=\"inline\"]) {\n max-height: var(--available-height, calc(100dvh - 2rem));\n overflow-y: auto;\n }\n}\n\n/* packages/data-app-react/src/ui/PopoverSurface.css */\n@layer atbl.components {\n .altertable-popover-surface {\n box-sizing: border-box;\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-surface);\n background: var(--atbl-surface);\n color: var(--atbl-text);\n box-shadow: var(--atbl-shadow-overlay);\n font: var(--atbl-type-label-size) / var(--atbl-type-label-leading) var(--atbl-font);\n }\n}\n\n/* packages/data-app-react/src/ui/PeriodSummary.css */\n@layer atbl.components {\n .altertable-period-summary {\n margin: 0;\n }\n\n .altertable-period-summary-visible {\n display: inline-flex;\n color: var(--atbl-text);\n font-size: var(--atbl-type-meta-size);\n font-weight: var(--atbl-type-meta-weight);\n font-variant-numeric: tabular-nums;\n white-space: nowrap;\n flex-wrap: wrap;\n align-items: center;\n gap: 4px 7px;\n }\n\n .altertable-period-summary-visible > svg {\n color: var(--atbl-muted);\n }\n}\n\n/* packages/data-app-react/src/ui/SearchInput.css */\n@layer atbl.components {\n .altertable-search-input-wrap {\n display: flex;\n min-height: var(--atbl-control-height);\n padding: 0 var(--atbl-control-padding-inline);\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-control);\n background: var(--atbl-surface);\n color: var(--atbl-muted);\n align-items: center;\n gap: 9px;\n width: min(100%, 380px);\n min-width: 0;\n }\n\n .altertable-search-input-wrap[data-size=\"compact\"] {\n min-height: var(--atbl-control-compact-height);\n padding: 0 calc(var(--atbl-control-padding-inline) * 5 / 6);\n width: min(100%, 300px);\n }\n\n .altertable-search-input-wrap[data-size=\"compact\"] .altertable-search-input {\n min-block-size: calc(var(--atbl-control-compact-height) - 2px);\n }\n\n .altertable-search-input {\n min-block-size: calc(var(--atbl-control-height) - 2px);\n outline: 0;\n color: var(--atbl-text);\n font: inherit;\n font-size: var(--atbl-control-text-size, var(--atbl-type-body-size));\n background: none;\n border: 0;\n flex: 1;\n width: 100%;\n min-width: 0;\n height: auto;\n padding: 0;\n }\n\n .altertable-search-input::-webkit-search-cancel-button {\n display: none;\n }\n\n .altertable-search-input-wrap > svg {\n flex: none;\n }\n\n .altertable-search-input-spinner {\n animation: .9s linear infinite altertable-search-input-spin;\n }\n\n @keyframes altertable-search-input-spin {\n to {\n transform: rotate(360deg);\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-search-input-spinner {\n animation: none;\n }\n }\n}\n\n/* packages/data-app-react/src/ui/Button.css */\n@layer atbl.components {\n .altertable-button {\n display: inline-flex;\n justify-content: center;\n align-items: center;\n gap: var(--atbl-control-gap);\n min-height: var(--atbl-control-height);\n padding: var(--atbl-control-padding-block) var(--atbl-control-padding-inline);\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-control);\n background: var(--atbl-surface);\n color: var(--atbl-text);\n font: inherit;\n font-size: var(--atbl-type-label-size);\n font-weight: var(--atbl-type-label-weight);\n line-height: var(--atbl-type-label-leading);\n overflow-wrap: anywhere;\n transition: background-color var(--atbl-duration-fast) var(--atbl-ease-standard), border-color var(--atbl-duration-fast) var(--atbl-ease-standard), color var(--atbl-duration-fast) var(--atbl-ease-standard);\n -webkit-tap-highlight-color: transparent;\n max-inline-size: 100%;\n }\n\n .altertable-button[data-size=\"icon\"] {\n width: var(--atbl-control-height);\n min-width: var(--atbl-control-height);\n height: var(--atbl-control-height);\n min-height: var(--atbl-control-height);\n flex: none;\n padding: 0;\n }\n\n .altertable-button[data-variant=\"primary\"] {\n border-color: var(--atbl-text);\n background: var(--atbl-text);\n color: var(--atbl-background);\n --atbl-control-hover-surface: color-mix(in srgb, var(--atbl-text) 92%, var(--atbl-background));\n --atbl-control-pressed-surface: color-mix(in srgb, var(--atbl-text) 84%, var(--atbl-background));\n }\n\n .altertable-button[data-variant=\"outline\"] {\n box-shadow: none;\n }\n\n .altertable-button[data-variant=\"elevated\"] {\n box-shadow: var(--atbl-shadow-surface);\n }\n\n .altertable-button[data-variant=\"ghost\"] {\n box-shadow: none;\n background: none;\n border-color: #0000;\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-button {\n transition: none;\n }\n }\n\n .altertable-button[data-size=\"compact\"] {\n min-height: var(--atbl-control-compact-height);\n padding: calc(var(--atbl-control-padding-block) * 2 / 3) calc(var(--atbl-control-padding-inline) * 2 / 3);\n font-size: var(--atbl-type-meta-size);\n }\n\n .altertable-button[data-size=\"icon-compact\"] {\n width: var(--atbl-control-compact-height);\n min-width: var(--atbl-control-compact-height);\n height: var(--atbl-control-compact-height);\n min-height: var(--atbl-control-compact-height);\n flex: none;\n padding: 0;\n }\n\n .altertable-button[data-size^=\"icon\"] > svg {\n inline-size: var(--atbl-control-icon-size);\n block-size: var(--atbl-control-icon-size);\n }\n\n .altertable-button[data-variant=\"inline\"] {\n --atbl-control-hover-surface: transparent;\n --atbl-control-pressed-surface: transparent;\n --atbl-control-open-surface: transparent;\n box-shadow: none;\n font: inherit;\n text-underline-offset: .2em;\n background: none;\n border: 0;\n border-radius: 0;\n min-height: 0;\n padding: 0;\n }\n\n .altertable-button[data-variant=\"inline\"]:-webkit-any(:hover, [data-hovered]):not(:-webkit-any(:disabled, [data-disabled])) {\n text-decoration: underline;\n }\n\n .altertable-button[data-variant=\"inline\"]:-moz-any(:hover, [data-hovered]):not(:-moz-any(:disabled, [data-disabled])) {\n text-decoration: underline;\n }\n\n .altertable-button[data-variant=\"inline\"]:is(:hover, [data-hovered]):not(:is(:disabled, [data-disabled])) {\n text-decoration: underline;\n }\n}\n\n/* packages/data-app-react/src/ui/SearchField.css */\n@layer atbl.components {\n .altertable-search-landmark {\n min-width: 0;\n }\n\n .altertable-search {\n display: grid;\n gap: 7px;\n min-width: 0;\n }\n\n .altertable-search-label {\n font-size: var(--atbl-type-label-size);\n font-weight: 650;\n }\n\n .altertable-search-row {\n display: flex;\n align-items: center;\n gap: 8px;\n min-width: 0;\n }\n\n .altertable-search-description, .altertable-search-status {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n margin: 0;\n line-height: 1.45;\n }\n\n @media (max-width: 560px) {\n .altertable-search .altertable-search-input-wrap {\n width: 100%;\n }\n }\n\n .altertable-search-suggestions {\n z-index: 150;\n padding: var(--atbl-space-xs);\n overflow: auto;\n }\n\n .altertable-search-suggestions ul {\n list-style: none;\n margin: 0;\n padding: 0;\n }\n\n .altertable-search-suggestions li {\n display: flex;\n align-items: baseline;\n gap: var(--atbl-space-sm);\n padding: var(--atbl-space-sm);\n border-radius: var(--atbl-radius-control);\n padding-inline-start: calc(var(--atbl-control-padding-inline) - var(--atbl-space-xs) - 1px);\n }\n\n .altertable-search-suggestions[data-size=\"compact\"] li {\n padding-inline-start: calc(var(--atbl-control-padding-inline) * 5 / 6 - var(--atbl-space-xs) - 1px);\n }\n\n .altertable-search-suggestions li > span, .altertable-search-suggestions small {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n min-width: 0;\n }\n\n .altertable-search-suggestions li > span {\n flex: 0 auto;\n }\n\n .altertable-search-suggestions li:has(small) > span {\n flex-shrink: 0;\n max-width: 65%;\n }\n\n .altertable-search-suggestions small {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n flex: 0 auto;\n }\n}\n\n/* packages/data-app-react/src/ui/Tooltip.css */\n@layer atbl.components {\n .altertable-tooltip-trigger {\n display: inline-flex;\n align-items: center;\n }\n\n .altertable-tooltip-trigger[data-variant=\"chart\"] {\n display: flex;\n align-items: flex-end;\n width: 100%;\n min-width: 0;\n height: 100%;\n }\n\n .altertable-tooltip-content {\n z-index: 1300;\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-control);\n background: var(--atbl-surface);\n color: var(--atbl-text);\n box-shadow: var(--atbl-shadow-overlay);\n font: var(--atbl-type-meta-weight) var(--atbl-type-meta-size) / var(--atbl-type-label-leading) var(--atbl-font);\n white-space: normal;\n overflow-wrap: anywhere;\n pointer-events: none;\n animation: altertable-tooltip-in var(--atbl-duration-fast) ease-out;\n width: max-content;\n max-width: min(240px, 100vw - 24px);\n padding: 6px 9px;\n }\n\n .altertable-tooltip-content[data-variant=\"hint\"] {\n pointer-events: auto;\n }\n\n .altertable-tooltip-content[data-instant] {\n animation: none;\n }\n\n .altertable-tooltip-content[data-variant=\"chart\"] {\n display: grid;\n font-variant-numeric: tabular-nums;\n gap: 2px;\n padding: 8px 10px;\n }\n\n .altertable-tooltip-content[data-variant=\"chart\"] strong {\n font-size: var(--atbl-type-body-size);\n font-weight: 650;\n line-height: 1.2;\n }\n\n @keyframes altertable-tooltip-in {\n from {\n opacity: 0;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-tooltip-content {\n animation: none;\n }\n }\n\n .altertable-chart-tooltip-row {\n display: flex;\n align-items: flex-start;\n gap: 6px;\n }\n\n .altertable-chart-tooltip-marker {\n flex-shrink: 0;\n width: 8px;\n height: 8px;\n margin-top: .3em;\n }\n\n .altertable-chart-tooltip-reading {\n overflow-wrap: anywhere;\n min-width: 0;\n }\n}\n\n/* packages/data-app-react/src/ui/RequestHint.css */\n@layer atbl.components {\n .altertable-request-hint {\n display: flex;\n color: var(--atbl-muted);\n font: var(--atbl-type-meta-size) / var(--atbl-type-label-leading) var(--atbl-font);\n align-items: center;\n gap: 6px;\n min-width: 0;\n height: 28px;\n }\n\n .altertable-request-hint > svg, .altertable-request-hint > button {\n flex: none;\n }\n\n .altertable-request-hint-message {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n min-width: 0;\n }\n\n .altertable-request-hint[data-state=\"error\"] .altertable-request-hint-copy > svg {\n color: var(--atbl-danger);\n }\n\n .altertable-request-hint-spinner {\n animation: .9s linear infinite altertable-request-hint-spin;\n }\n\n @keyframes altertable-request-hint-spin {\n to {\n transform: rotate(360deg);\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-request-hint-spinner {\n animation: none;\n }\n }\n\n .altertable-widget-status {\n display: flex;\n color: var(--atbl-muted);\n font: var(--atbl-type-meta-size) / var(--atbl-type-label-leading) var(--atbl-font);\n flex: none;\n justify-content: center;\n align-items: center;\n width: 78px;\n height: 30px;\n }\n\n .altertable-widget-status .altertable-button {\n gap: 5px;\n }\n\n .altertable-widget-status .altertable-button svg {\n color: var(--atbl-danger);\n }\n\n .altertable-widget-status-announcement {\n position: absolute;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n width: 1px;\n height: 1px;\n }\n\n .altertable-request-hint-copy {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n min-width: 0;\n }\n\n .altertable-request-hint-copy > svg {\n flex: none;\n }\n}\n\n/* packages/data-app-react/src/ui/GradientScroll.css */\n@layer atbl.components {\n .altertable-gradient-scroll {\n overflow: auto;\n --atbl-scroll-fade-size: 1.5rem;\n min-width: 0;\n min-height: 0;\n }\n\n .altertable-gradient-scroll[data-axis=\"vertical\"] {\n overflow-x: hidden;\n }\n\n .altertable-gradient-scroll[data-axis=\"horizontal\"] {\n overflow-y: hidden;\n }\n\n .altertable-gradient-scroll[data-axis=\"vertical\"][data-fade-start][data-fade-end] {\n mask-image: linear-gradient(to bottom, transparent, black var(--atbl-scroll-fade-size), black calc(100% - var(--atbl-scroll-fade-size)), transparent);\n }\n\n .altertable-gradient-scroll[data-axis=\"vertical\"][data-fade-start]:not([data-fade-end]) {\n mask-image: linear-gradient(to bottom, transparent, black var(--atbl-scroll-fade-size));\n }\n\n .altertable-gradient-scroll[data-axis=\"vertical\"][data-fade-end]:not([data-fade-start]) {\n mask-image: linear-gradient(to bottom, black, black calc(100% - var(--atbl-scroll-fade-size)), transparent);\n }\n\n .altertable-gradient-scroll[data-axis=\"horizontal\"][data-fade-start][data-fade-end] {\n mask-image: linear-gradient(to right, transparent, black var(--atbl-scroll-fade-size), black calc(100% - var(--atbl-scroll-fade-size)), transparent);\n }\n\n .altertable-gradient-scroll[data-axis=\"horizontal\"][data-fade-start]:not([data-fade-end]) {\n mask-image: linear-gradient(to right, transparent, black var(--atbl-scroll-fade-size));\n }\n\n .altertable-gradient-scroll[data-axis=\"horizontal\"][data-fade-end]:not([data-fade-start]) {\n mask-image: linear-gradient(to right, black, black calc(100% - var(--atbl-scroll-fade-size)), transparent);\n }\n}\n\n/* packages/data-app-react/src/ui/SelectionMark.css */\n@layer atbl.components {\n .altertable-selection-mark {\n display: grid;\n box-sizing: border-box;\n font-size: var(--atbl-control-icon-size);\n flex: none;\n place-items: center;\n width: 1em;\n height: 1em;\n }\n\n .altertable-selection-mark[data-multiple] {\n border: 1px solid var(--atbl-muted);\n border-radius: .25em;\n }\n\n .altertable-selection-mark[data-multiple][data-selected] {\n border-color: var(--atbl-accent);\n background: var(--atbl-accent);\n }\n\n .altertable-selection-mark[data-multiple][data-selected]:after {\n content: \"\";\n border: .125em solid;\n border-width: 0 .125em .125em 0;\n border-color: var(--atbl-on-accent);\n width: .25em;\n height: .4375em;\n margin-top: -.125em;\n transform: rotate(45deg);\n }\n}\n\n/* packages/data-app-react/src/ui/SearchMatch.css */\n@layer atbl.components {\n .altertable-search-match mark {\n background: color-mix(in srgb, currentColor 16%, transparent);\n color: inherit;\n box-decoration-break: clone;\n border-radius: 2px;\n padding: 0 1px;\n }\n}\n\n/* packages/data-app-react/src/ui/ChoicePicker.css */\n@layer atbl.components {\n .altertable-picker-trigger {\n box-sizing: border-box;\n text-align: left;\n max-width: min(100%, 340px, 75vw);\n }\n\n .altertable-picker-label {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: var(--atbl-muted);\n font-size: var(--atbl-type-label-size);\n font-weight: var(--atbl-type-meta-weight);\n flex: 1000 6em;\n min-width: 0;\n max-width: max-content;\n }\n\n .altertable-picker-value {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-size: var(--atbl-type-label-size);\n font-weight: var(--atbl-type-label-weight);\n flex: 6em;\n min-width: 0;\n max-width: max-content;\n }\n\n .altertable-picker-trigger > svg:last-child {\n color: var(--atbl-muted);\n flex: none;\n margin-left: auto;\n }\n\n .altertable-choice-picker-popover {\n z-index: 150;\n overflow: hidden;\n width: min(300px, 100vw - 24px);\n padding: 0;\n }\n\n .altertable-choice-picker-dialog {\n outline: none;\n }\n\n .altertable-choice-picker-dialog .altertable-search-input-wrap {\n gap: calc(10px + var(--atbl-control-icon-size) - 17px);\n box-sizing: border-box;\n border: 0;\n border-bottom: 1px solid var(--atbl-border);\n border-radius: 0;\n width: 100%;\n margin: 0;\n padding: 6px 18px;\n }\n\n .altertable-choice-picker-dialog .altertable-search-input-wrap:focus-within {\n outline: none;\n }\n\n .altertable-choice-picker-dialog .altertable-search-input-wrap > svg {\n opacity: .65;\n }\n\n .altertable-choice-picker-dialog .altertable-search-input-wrap:focus-within > svg {\n opacity: 1;\n }\n\n .altertable-choice-picker-status {\n position: absolute;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n width: 1px;\n height: 1px;\n }\n\n .altertable-choice-picker-options {\n scroll-padding-block: 8px;\n max-height: min(320px, 60dvh);\n }\n\n .altertable-choice-picker-popover .react-aria-ListBox {\n display: flex;\n gap: var(--atbl-dropdown-item-gap);\n padding: var(--atbl-dropdown-padding);\n outline: none;\n flex-direction: column;\n }\n\n .altertable-choice-picker-popover .react-aria-ListBoxItem {\n display: flex;\n padding: var(--atbl-dropdown-item-padding-block) var(--atbl-dropdown-item-padding-inline);\n border-radius: var(--atbl-radius-control);\n outline: none;\n align-items: center;\n gap: 10px;\n }\n\n .altertable-choice-picker-popover .react-aria-ListBoxItem small {\n display: block;\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n font-weight: 400;\n }\n\n .altertable-choice-picker-popover .react-aria-ListBoxItem[data-missing]:not(:first-child) {\n position: relative;\n margin-top: 9px;\n }\n\n .altertable-choice-picker-popover .react-aria-ListBoxItem[data-missing]:not(:first-child):before {\n content: \"\";\n position: absolute;\n border-top: 1px solid var(--atbl-border);\n pointer-events: none;\n top: -5px;\n left: 0;\n right: 0;\n }\n\n .altertable-choice-picker-option-content {\n min-width: 0;\n }\n\n .altertable-choice-picker-empty {\n color: var(--atbl-muted);\n padding: 12px 10px;\n }\n\n .altertable-choice-picker-actions {\n border-top: 1px solid var(--atbl-border);\n display: flex;\n justify-content: flex-start;\n margin: 0 8px;\n padding: 4px 0;\n }\n\n .altertable-choice-picker-dialog > .altertable-request-hint {\n margin: 4px 10px 0;\n }\n\n .altertable-choice-picker-skeletons {\n display: grid;\n gap: 10px;\n padding: 10px;\n }\n\n .altertable-choice-picker-skeletons > span {\n height: 24px;\n }\n\n .altertable-choice-picker-dialog > .altertable-request-hint[data-state=\"error\"] {\n display: flex;\n text-align: center;\n flex-direction: column;\n align-items: center;\n gap: 6px;\n height: auto;\n margin: 12px 10px 4px;\n }\n}\n\n/* packages/data-app-react/src/ui/Menu.css */\n@layer atbl.components {\n .altertable-menu-popover {\n z-index: 150;\n min-width: max(var(--trigger-width), 180px);\n padding: var(--atbl-dropdown-padding);\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-surface);\n background: var(--atbl-surface);\n color: var(--atbl-text);\n box-shadow: var(--atbl-shadow-overlay);\n font: var(--atbl-type-label-size) / var(--atbl-type-label-leading) var(--atbl-font);\n max-width: min(340px, 100vw - 24px);\n }\n\n .altertable-menu {\n display: flex;\n gap: var(--atbl-dropdown-item-gap);\n overflow: auto;\n outline: none;\n flex-direction: column;\n max-height: min(320px, 60dvh);\n }\n\n .altertable-menu-item {\n display: flex;\n padding: var(--atbl-dropdown-item-padding-block) var(--atbl-dropdown-item-padding-inline);\n border-radius: var(--atbl-radius-control);\n outline: none;\n align-items: center;\n gap: 9px;\n }\n\n .altertable-menu-separator {\n background: var(--atbl-border);\n height: 1px;\n margin: 4px 0;\n }\n\n .altertable-exploration-action-trigger {\n --atbl-control-hover-surface: transparent;\n --atbl-control-pressed-surface: transparent;\n --atbl-control-open-surface: transparent;\n color: var(--atbl-text);\n }\n\n .altertable-exploration-action-trigger:-webkit-any(:hover, [data-hovered], [aria-expanded=\"true\"]) {\n color: var(--atbl-accent);\n background: none;\n }\n\n .altertable-exploration-action-trigger:-moz-any(:hover, [data-hovered], [aria-expanded=\"true\"]) {\n color: var(--atbl-accent);\n background: none;\n }\n\n .altertable-exploration-action-trigger:is(:hover, [data-hovered], [aria-expanded=\"true\"]) {\n color: var(--atbl-accent);\n background: none;\n }\n\n .altertable-exploration-action-trigger[data-context-only] {\n visibility: hidden;\n position: absolute;\n overflow: hidden;\n border: 0;\n block-size: 0;\n min-block-size: 0;\n inline-size: 0;\n min-inline-size: 0;\n padding: 0;\n }\n\n .altertable-exploration-actions[data-context-only] {\n position: absolute;\n }\n\n .altertable-selectable-bars, .altertable-pie-chart, .altertable-trend-chart {\n position: relative;\n }\n\n .altertable-chart-copy-status {\n position: absolute;\n border-radius: var(--atbl-radius-control);\n background: var(--atbl-surface);\n color: var(--atbl-text);\n box-shadow: var(--atbl-shadow-overlay);\n font-size: var(--atbl-type-meta-size);\n padding: 4px 8px;\n bottom: 4px;\n }\n\n .altertable-chart-copy-status:not(:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {\n right: 8px;\n }\n\n .altertable-chart-copy-status:not(:-moz-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {\n right: 8px;\n }\n\n .altertable-chart-copy-status:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {\n right: 8px;\n }\n\n .altertable-chart-copy-status:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {\n left: 8px;\n }\n\n .altertable-chart-copy-status:-moz-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {\n left: 8px;\n }\n\n .altertable-chart-copy-status:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {\n left: 8px;\n }\n\n .altertable-exploration-action-menu {\n --atbl-focus-outline: none;\n width: max-content;\n min-width: 180px;\n }\n}\n\n/* packages/data-app-react/src/ui/FilterControls.css */\n@layer atbl.components {\n .altertable-number-field, .altertable-radio-group, .altertable-checkbox-group {\n display: flex;\n gap: var(--atbl-space-xs);\n font: var(--atbl-type-label-size) / var(--atbl-type-label-leading) var(--atbl-font);\n flex-direction: column;\n min-width: 0;\n }\n\n .altertable-number-field > label, .altertable-radio-group > .altertable-control-label, .altertable-checkbox-group > label {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n }\n\n .altertable-number-field [data-atbl-internal-surface=\"field\"] {\n min-height: var(--atbl-control-height);\n padding: var(--atbl-control-padding-block) var(--atbl-control-padding-inline);\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-control);\n background: var(--atbl-surface);\n color: var(--atbl-text);\n box-sizing: border-box;\n }\n\n .altertable-number-field input {\n outline: 0;\n color: inherit;\n font: inherit;\n background: none;\n border: 0;\n width: 100%;\n min-width: 0;\n }\n\n .altertable-number-range-field {\n display: flex;\n gap: var(--atbl-space-sm);\n border: 0;\n flex-wrap: wrap;\n min-width: 0;\n margin: 0;\n padding: 0;\n }\n\n .altertable-number-range-field legend {\n margin-bottom: var(--atbl-space-xs);\n font-size: var(--atbl-type-label-size);\n padding: 0;\n }\n\n .altertable-number-range-field .altertable-number-field {\n flex: 110px;\n max-width: 160px;\n }\n\n .altertable-number-range-field p {\n color: var(--atbl-danger);\n flex-basis: 100%;\n margin: 0;\n }\n\n .altertable-radio {\n display: inline-flex;\n align-items: center;\n gap: var(--atbl-space-xs);\n border-radius: var(--atbl-radius-control);\n }\n\n .altertable-radio-mark {\n display: grid;\n border: 1px solid var(--atbl-muted);\n border-radius: 50%;\n flex: none;\n place-items: center;\n width: 1em;\n height: 1em;\n }\n\n .altertable-radio[data-selected] .altertable-radio-mark:after {\n content: \"\";\n background: var(--atbl-accent);\n border-radius: 50%;\n width: .5em;\n height: .5em;\n }\n\n .altertable-segmented-control {\n align-items: center;\n gap: var(--atbl-space-sm);\n flex-direction: row;\n }\n\n .altertable-segmented-options {\n display: inline-flex;\n min-width: 0;\n }\n\n .altertable-segmented-control .altertable-radio {\n padding: var(--atbl-control-padding-block) var(--atbl-control-padding-inline);\n min-height: var(--atbl-control-height);\n box-sizing: border-box;\n border: 1px solid var(--atbl-border);\n border-radius: 0;\n }\n\n .altertable-segmented-options .altertable-radio:first-child {\n border-radius: var(--atbl-radius-control) 0 0 var(--atbl-radius-control);\n }\n\n .altertable-segmented-control .altertable-radio:last-child {\n border-radius: 0 var(--atbl-radius-control) var(--atbl-radius-control) 0;\n }\n\n .altertable-segmented-control .altertable-radio + .altertable-radio {\n margin-inline-start: -1px;\n }\n\n .altertable-segmented-control .altertable-radio-mark {\n display: none;\n }\n\n .altertable-filter-bar, .altertable-filter-actions {\n display: flex;\n align-items: center;\n gap: var(--atbl-space-sm);\n flex-wrap: wrap;\n min-width: 0;\n }\n\n .altertable-filter-bar > * {\n min-width: 0;\n max-width: 100%;\n }\n\n .altertable-filter-actions, .altertable-checkbox-group {\n border: 0;\n margin: 0;\n padding: 0;\n }\n\n .altertable-checkbox-group legend {\n color: var(--atbl-muted);\n margin-bottom: var(--atbl-space-xs);\n }\n\n :-webkit-any(.altertable-filter-bar, .altertable-variable-bar) .altertable-number-field {\n flex-direction: row;\n align-items: center;\n }\n\n :-moz-any(.altertable-filter-bar, .altertable-variable-bar) .altertable-number-field {\n flex-direction: row;\n align-items: center;\n }\n\n :is(.altertable-filter-bar, .altertable-variable-bar) .altertable-number-field {\n flex-direction: row;\n align-items: center;\n }\n\n :-webkit-any(.altertable-filter-bar, .altertable-variable-bar) .altertable-number-field > label {\n white-space: nowrap;\n }\n\n :-moz-any(.altertable-filter-bar, .altertable-variable-bar) .altertable-number-field > label {\n white-space: nowrap;\n }\n\n :is(.altertable-filter-bar, .altertable-variable-bar) .altertable-number-field > label {\n white-space: nowrap;\n }\n\n :-webkit-any(.altertable-filter-bar, .altertable-variable-bar) .altertable-number-range-field {\n position: relative;\n }\n\n :-moz-any(.altertable-filter-bar, .altertable-variable-bar) .altertable-number-range-field {\n position: relative;\n }\n\n :is(.altertable-filter-bar, .altertable-variable-bar) .altertable-number-range-field {\n position: relative;\n }\n\n :-webkit-any(.altertable-filter-bar, .altertable-variable-bar) .altertable-number-range-field legend {\n position: absolute;\n overflow: hidden;\n clip-path: inset(50%);\n width: 1px;\n height: 1px;\n }\n\n :-moz-any(.altertable-filter-bar, .altertable-variable-bar) .altertable-number-range-field legend {\n position: absolute;\n overflow: hidden;\n clip-path: inset(50%);\n width: 1px;\n height: 1px;\n }\n\n :is(.altertable-filter-bar, .altertable-variable-bar) .altertable-number-range-field legend {\n position: absolute;\n overflow: hidden;\n clip-path: inset(50%);\n width: 1px;\n height: 1px;\n }\n\n .altertable-select-trigger {\n font-size: var(--atbl-control-text-size, var(--atbl-type-body-size));\n justify-content: space-between;\n min-width: 90px;\n }\n\n .altertable-select-trigger > svg:last-child {\n color: var(--atbl-muted);\n flex: none;\n margin-inline-start: var(--atbl-space-sm);\n }\n\n .altertable-select-popover {\n z-index: 160;\n width: min(260px, 100vw - 24px);\n }\n\n .altertable-select-options {\n display: flex;\n gap: var(--atbl-dropdown-item-gap);\n padding: var(--atbl-dropdown-padding);\n overflow: auto;\n outline: none;\n flex-direction: column;\n max-height: min(320px, 60dvh);\n }\n\n .altertable-select-option {\n display: flex;\n align-items: center;\n gap: var(--atbl-space-sm);\n padding: var(--atbl-dropdown-item-padding-block) var(--atbl-dropdown-item-padding-inline);\n border-radius: var(--atbl-radius-control);\n outline: none;\n }\n\n .altertable-select-option small {\n display: block;\n color: var(--atbl-muted);\n }\n\n .altertable-number-filter-popover {\n z-index: 150;\n padding: var(--atbl-space-md);\n width: min(340px, 100vw - 24px);\n }\n\n .altertable-number-filter-dialog {\n outline: none;\n }\n\n .altertable-number-filter-editor {\n display: flex;\n gap: var(--atbl-space-md);\n flex-direction: column;\n }\n\n .altertable-number-filter-editor h3 {\n font: inherit;\n font-weight: var(--atbl-type-label-weight);\n margin: 0;\n }\n\n .altertable-number-filter-editor .altertable-select-trigger {\n width: 100%;\n }\n\n .altertable-number-filter-editor .altertable-number-range-field .altertable-number-field {\n max-width: none;\n }\n\n .altertable-number-filter-actions {\n display: flex;\n justify-content: flex-end;\n gap: var(--atbl-space-xs);\n }\n\n .altertable-number-filter-actions > [data-variant=\"ghost\"] {\n margin-inline-end: auto;\n }\n\n .altertable-segmented-options .altertable-radio:only-child {\n border-radius: var(--atbl-radius-control);\n }\n\n @media (max-width: 560px), (any-pointer: coarse) {\n .altertable-select-trigger {\n font-size: max(16px, var(--atbl-control-text-size, var(--atbl-type-body-size)));\n }\n }\n\n .altertable-number-filter-feedback {\n color: var(--atbl-danger);\n min-height: 1.4em;\n margin: 0;\n }\n\n .altertable-display-options-label {\n display: inline-flex;\n align-items: baseline;\n gap: var(--atbl-space-sm);\n }\n\n .altertable-display-options-label small {\n color: var(--atbl-muted);\n font-variant-numeric: tabular-nums;\n font-size: .85em;\n }\n\n .altertable-select[data-label-placement=\"inline\"] {\n display: inline-flex;\n gap: 0;\n }\n\n .altertable-select-trigger.altertable-picker-trigger > svg:last-child {\n margin-inline-start: auto;\n }\n\n .altertable-select-trigger[data-size=\"compact\"] {\n --atbl-type-label-size: var(--atbl-type-meta-size);\n min-width: 0;\n }\n}\n\n/* packages/data-app-react/src/ui/Field.css */\n@layer atbl.components {\n .altertable-field {\n display: grid;\n gap: var(--atbl-space-xs);\n font: var(--atbl-type-label-size) / var(--atbl-type-label-leading) var(--atbl-font);\n min-width: 0;\n }\n\n .altertable-field > :-webkit-any(label, .react-aria-Label, .altertable-field-label) {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-label-size);\n }\n\n .altertable-field > :-moz-any(label, .react-aria-Label, .altertable-field-label) {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-label-size);\n }\n\n .altertable-field > :is(label, .react-aria-Label, .altertable-field-label) {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-label-size);\n }\n\n .altertable-field[data-label-placement=\"above\"] > :-webkit-any(label, .react-aria-Label, .altertable-field-label) {\n font-weight: var(--atbl-type-label-weight);\n }\n\n .altertable-field[data-label-placement=\"above\"] > :-moz-any(label, .react-aria-Label, .altertable-field-label) {\n font-weight: var(--atbl-type-label-weight);\n }\n\n .altertable-field[data-label-placement=\"above\"] > :is(label, .react-aria-Label, .altertable-field-label) {\n font-weight: var(--atbl-type-label-weight);\n }\n\n .altertable-field[data-label-placement=\"inline\"] {\n grid-template-columns: auto auto;\n align-items: center;\n }\n\n .altertable-field[data-label-placement=\"beside\"] {\n grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);\n align-items: center;\n gap: var(--atbl-space-sm);\n }\n\n .altertable-field[data-label-placement=\"beside\"] > :-webkit-any(label, .react-aria-Label, .altertable-field-label) {\n font-size: var(--atbl-type-label-size);\n }\n\n .altertable-field[data-label-placement=\"beside\"] > :-moz-any(label, .react-aria-Label, .altertable-field-label) {\n font-size: var(--atbl-type-label-size);\n }\n\n .altertable-field[data-label-placement=\"beside\"] > :is(label, .react-aria-Label, .altertable-field-label) {\n font-size: var(--atbl-type-label-size);\n }\n\n .altertable-field[data-label-placement=\"beside\"] > button {\n font-weight: 400;\n }\n\n .altertable-field[data-label-placement=\"above\"] > :-webkit-any(button, .altertable-datetime-input) {\n width: 100%;\n min-width: 0;\n max-width: 100%;\n }\n\n .altertable-field[data-label-placement=\"above\"] > :-moz-any(button, .altertable-datetime-input) {\n width: 100%;\n min-width: 0;\n max-width: 100%;\n }\n\n .altertable-field[data-label-placement=\"above\"] > :is(button, .altertable-datetime-input) {\n width: 100%;\n min-width: 0;\n max-width: 100%;\n }\n\n .altertable-field[data-label-placement=\"beside\"] > :-webkit-any(button, .altertable-datetime-input) {\n width: 100%;\n min-width: 0;\n max-width: 100%;\n }\n\n .altertable-field[data-label-placement=\"beside\"] > :-moz-any(button, .altertable-datetime-input) {\n width: 100%;\n min-width: 0;\n max-width: 100%;\n }\n\n .altertable-field[data-label-placement=\"beside\"] > :is(button, .altertable-datetime-input) {\n width: 100%;\n min-width: 0;\n max-width: 100%;\n }\n}\n\n/* packages/data-app-react/src/ui/Checkbox.css */\n@layer atbl.components {\n .altertable-checkbox {\n position: relative;\n display: inline-flex;\n border-radius: var(--atbl-radius-control);\n font: var(--atbl-type-label-size) / var(--atbl-type-label-leading) var(--atbl-font);\n color: var(--atbl-text);\n align-items: flex-start;\n gap: 9px;\n }\n\n .altertable-checkbox input {\n position: absolute;\n cursor: inherit;\n opacity: 0;\n width: 100%;\n height: 100%;\n margin: 0;\n inset: 0;\n }\n\n .altertable-checkbox .altertable-selection-mark {\n margin-top: 2px;\n }\n\n .altertable-checkbox small {\n display: block;\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n margin-top: 2px;\n }\n}\n\n/* packages/data-app-react/src/ui/EmptyState.css */\n@layer atbl.components {\n .altertable-empty-state {\n display: flex;\n color: var(--atbl-muted);\n text-align: center;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n gap: 5px;\n min-height: 176px;\n padding: 24px;\n }\n\n .altertable-empty-state strong {\n color: var(--atbl-text);\n font-size: var(--atbl-type-label-size);\n font-weight: var(--atbl-type-label-weight);\n }\n\n .altertable-empty-state p {\n font-size: var(--atbl-type-meta-size);\n white-space: normal;\n max-width: 40ch;\n margin: 0;\n line-height: 1.5;\n }\n\n .altertable-empty-state[data-variant=\"table\"] {\n min-height: 112px;\n padding: 18px;\n }\n\n .altertable-empty-state-action {\n display: flex;\n justify-content: center;\n gap: var(--atbl-space-sm);\n flex-wrap: wrap;\n margin-block-start: var(--atbl-space-sm);\n }\n}\n\n/* packages/data-app-react/src/ui/Kbd.css */\n@layer atbl.components {\n .altertable-kbd {\n display: inline-flex;\n border: 1px solid var(--atbl-border);\n background: var(--atbl-subtle);\n color: var(--atbl-muted);\n font: var(--atbl-type-label-weight) var(--atbl-type-meta-size) / var(--atbl-type-label-leading) var(--atbl-font);\n font-variant-numeric: tabular-nums;\n white-space: nowrap;\n border-radius: 5px;\n justify-content: center;\n align-items: center;\n min-width: 1.6em;\n padding: 2px 5px;\n }\n\n .altertable-button[data-variant=\"primary\"] .altertable-kbd {\n color: inherit;\n border-color: color-mix(in srgb, currentColor 30%, transparent);\n background: none;\n }\n}\n\n/* packages/data-app-react/src/ui/QueryList.css */\n@layer atbl.components {\n .altertable-query-list {\n display: grid;\n gap: 20px;\n min-width: 0;\n }\n\n .altertable-query-list summary {\n display: inline-flex;\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n font-weight: var(--atbl-type-label-weight);\n list-style: none;\n transition: color var(--atbl-duration-fast) var(--atbl-ease-standard);\n border-radius: 4px;\n align-items: center;\n gap: 6px;\n width: -moz-fit-content;\n width: fit-content;\n }\n\n .altertable-query-list summary::-webkit-details-marker {\n display: none;\n }\n\n .altertable-query-list summary:before {\n content: \"\";\n transition: rotate var(--atbl-duration-fast) var(--atbl-ease-standard);\n border-block-start: 4px solid #0000;\n border-block-end: 4px solid #0000;\n border-inline-start: 5px solid;\n width: 0;\n height: 0;\n }\n\n .altertable-query-list[open] summary:before {\n rotate: 90deg;\n }\n\n .altertable-query-list summary:hover {\n color: var(--atbl-text);\n }\n\n .altertable-query-list figure {\n display: grid;\n overflow: hidden;\n border: 1px solid var(--atbl-border);\n background: var(--atbl-surface);\n border-radius: 10px;\n gap: 0;\n min-width: 0;\n margin: 0;\n }\n\n .altertable-query-list figcaption {\n display: flex;\n border-bottom: 1px solid var(--atbl-border);\n color: var(--atbl-text);\n font: var(--atbl-type-label-weight) var(--atbl-type-meta-size) / var(--atbl-type-label-leading) var(--atbl-font);\n background: none;\n justify-content: space-between;\n align-items: center;\n gap: 12px;\n min-height: 36px;\n padding: 3px 6px 3px 14px;\n }\n\n .altertable-query-filename {\n display: inline-flex;\n overflow-wrap: anywhere;\n align-items: center;\n gap: 7px;\n min-width: 0;\n }\n\n .altertable-query-actions {\n display: inline-flex;\n flex: none;\n align-items: center;\n gap: 2px;\n }\n\n .altertable-query-action {\n color: var(--atbl-muted);\n background: none;\n border: 0;\n width: 28px;\n min-width: 28px;\n min-height: 28px;\n padding: 0;\n }\n\n .altertable-query-action:hover:not(:disabled) {\n color: var(--atbl-text);\n background: var(--atbl-subtle);\n }\n\n .altertable-query-list pre {\n background: var(--atbl-code-surface);\n color: var(--atbl-code-text);\n font: var(--atbl-type-meta-size) / var(--atbl-type-body-leading) var(--atbl-mono-font);\n white-space: pre-wrap;\n overflow-wrap: anywhere;\n tab-size: 2;\n border: 0;\n border-radius: 0;\n margin: 0;\n padding: 14px 16px 18px;\n }\n\n .altertable-query-parameters {\n display: flex;\n border-top: 1px solid var(--atbl-border);\n color: var(--atbl-muted);\n font: var(--atbl-type-meta-size) / var(--atbl-type-body-leading) var(--atbl-font);\n flex-wrap: wrap;\n align-items: baseline;\n gap: 8px 12px;\n min-width: 0;\n padding: 10px 14px;\n }\n\n .altertable-query-parameters dl {\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n min-width: 0;\n margin: 0;\n }\n\n .altertable-query-parameters dl > div {\n display: flex;\n border: 1px solid var(--atbl-border);\n background: var(--atbl-subtle);\n overflow-wrap: anywhere;\n border-radius: 6px;\n flex-wrap: wrap;\n align-items: baseline;\n gap: 8px;\n min-width: 0;\n max-width: 100%;\n padding: 3px 8px;\n }\n\n .altertable-query-parameters dt, .altertable-query-parameters dd {\n min-width: 0;\n margin: 0;\n }\n\n .altertable-query-parameters dt {\n flex-shrink: 0;\n max-width: 100%;\n }\n\n .altertable-query-parameters dd {\n color: var(--atbl-text);\n }\n\n .altertable-query-parameters code {\n font-family: var(--atbl-mono-font);\n }\n\n .altertable-sql-keyword {\n color: var(--atbl-code-keyword, var(--atbl-accent));\n font-weight: 650;\n }\n\n .altertable-query-unavailable {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-label-size);\n margin: 0;\n }\n\n .altertable-query-notebook {\n gap: 16px;\n }\n\n .altertable-query-notebook-header {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n align-items: center;\n gap: 8px;\n padding: 0 0 4px;\n }\n\n .altertable-query-notebook-header > span {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-label-size);\n font-weight: 450;\n }\n\n .altertable-query-notebook-header small {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n font-weight: var(--atbl-type-meta-weight);\n margin-inline-start: 8px;\n }\n\n .altertable-query-notebook-header .altertable-button {\n display: inline-flex;\n font-size: var(--atbl-type-meta-size);\n align-items: center;\n gap: 6px;\n min-height: 30px;\n }\n\n .altertable-query-notebook figure {\n border-radius: 10px;\n }\n\n .altertable-query-notebook-error {\n color: var(--atbl-danger);\n font-size: var(--atbl-type-meta-size);\n padding: 8px 12px;\n }\n\n @media (hover: hover) and (pointer: fine) {\n .altertable-query-actions .altertable-query-action {\n opacity: 0;\n pointer-events: none;\n transition: opacity var(--atbl-duration-fast) var(--atbl-ease-standard);\n }\n\n .altertable-query-list figure:hover .altertable-query-action, .altertable-query-list figure:focus-within .altertable-query-action {\n opacity: 1;\n pointer-events: auto;\n }\n\n .altertable-query-actions:has(output) .altertable-query-action {\n opacity: 1;\n pointer-events: auto;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-query-list summary, .altertable-query-list summary:before, .altertable-query-actions .altertable-query-action {\n transition: none;\n }\n }\n}\n\n/* packages/data-app-react/src/ui/Sheet.css */\n@layer atbl.components {\n :root:has(.altertable-sheet:modal) {\n overflow: hidden;\n }\n\n .altertable-sheet:not([open]) {\n display: none;\n }\n\n .altertable-sheet {\n position: fixed;\n inset: var(--atbl-frame-inset-top, 0px) 0 auto auto;\n height: var(--atbl-frame-visible-height);\n overflow: visible;\n border: 0;\n border-left: 1px solid var(--atbl-border);\n background: var(--atbl-surface);\n color: var(--atbl-text);\n box-shadow: var(--atbl-shadow-overlay);\n font: var(--atbl-type-body-size) / var(--atbl-type-label-leading) var(--atbl-font);\n opacity: 0;\n transition: translate var(--atbl-duration-slow) cubic-bezier(.22, 1, .36, 1), opacity var(--atbl-duration-slow) var(--atbl-ease-standard);\n border-radius: 0;\n width: min(640px, 100vw);\n max-width: none;\n max-height: none;\n margin: 0;\n padding: 0;\n translate: 100%;\n }\n\n .altertable-sheet[data-wide] {\n width: min(960px, 100vw);\n }\n\n .altertable-sheet[open] {\n opacity: 1;\n translate: 0;\n }\n\n @starting-style {\n .altertable-sheet[open] {\n opacity: 0;\n translate: 100%;\n }\n }\n\n .altertable-sheet[open][data-closing] {\n opacity: 0;\n transition-timing-function: ease-in;\n translate: 100%;\n }\n\n .altertable-sheet::backdrop {\n background: var(--atbl-backdrop);\n opacity: 0;\n transition: opacity var(--atbl-duration-slow) var(--atbl-ease-standard);\n }\n\n .altertable-sheet[open]::backdrop {\n opacity: 1;\n }\n\n .altertable-sheet[open][data-closing]::backdrop {\n opacity: 0;\n }\n\n @starting-style {\n .altertable-sheet[open]::backdrop {\n opacity: 0;\n }\n }\n\n .altertable-sheet-shell {\n display: grid;\n grid-template-rows: auto minmax(0, 1fr) auto;\n height: 100%;\n }\n\n .altertable-sheet-header {\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n gap: var(--atbl-space-md);\n padding: var(--atbl-space-lg) calc((var(--atbl-space-lg) + var(--atbl-space-xl)) / 2) calc((var(--atbl-space-md) + var(--atbl-space-lg)) / 2);\n border-bottom: 1px solid var(--atbl-border);\n }\n\n .altertable-sheet-header h2 {\n font-size: var(--atbl-type-section-size);\n font-weight: var(--atbl-type-heading-weight);\n line-height: var(--atbl-type-heading-leading);\n letter-spacing: -.02em;\n overflow-wrap: anywhere;\n margin: 0;\n }\n\n .altertable-sheet-header p {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-label-size);\n margin: 4px 0 0;\n line-height: 1.45;\n }\n\n .altertable-sheet-actions {\n display: flex;\n align-items: center;\n gap: 4px;\n margin: -4px -8px 0 0;\n }\n\n .altertable-sheet-close {\n color: var(--atbl-muted);\n }\n\n .altertable-sheet-body {\n overflow-y: auto;\n overscroll-behavior: contain;\n padding: var(--atbl-space-lg) calc((var(--atbl-space-lg) + var(--atbl-space-xl)) / 2) calc(var(--atbl-space-xl) + var(--atbl-space-md) / 2);\n min-height: 0;\n }\n\n .altertable-sheet-footer {\n padding: var(--atbl-space-md) calc((var(--atbl-space-lg) + var(--atbl-space-xl)) / 2);\n border-top: 1px solid var(--atbl-border);\n }\n\n @media (min-width: 601px) {\n .altertable-sheet:where([data-placement=\"side\"][data-side=\"left\"]) {\n inset: var(--atbl-frame-inset-top, 0px) auto auto 0;\n border-left: 0;\n border-right: 1px solid var(--atbl-border);\n translate: -100%;\n }\n\n .altertable-sheet:where([data-placement=\"side\"][data-side=\"left\"])[open] {\n translate: 0;\n }\n\n .altertable-sheet:where([data-placement=\"side\"][data-side=\"left\"])[open][data-closing] {\n translate: -100%;\n }\n\n @starting-style {\n .altertable-sheet:where([data-placement=\"side\"][data-side=\"left\"])[open] {\n translate: -100%;\n }\n }\n }\n\n @media (max-width: 960px) {\n .altertable-sheet[data-wide] {\n inset: auto 0 var(--atbl-frame-inset-bottom, 0px);\n box-shadow: none;\n border: 0;\n translate: 0 100%;\n }\n\n .altertable-sheet[data-wide][open] {\n translate: 0;\n }\n\n .altertable-sheet[data-wide][open][data-closing] {\n translate: 0 100%;\n }\n\n @starting-style {\n .altertable-sheet[data-wide][open] {\n translate: 0 100%;\n }\n }\n }\n\n @media (max-width: 600px) {\n .altertable-sheet {\n inset: auto 0 var(--atbl-frame-inset-bottom, 0px);\n box-shadow: none;\n border: 0;\n translate: 0 100%;\n }\n\n .altertable-sheet[open] {\n translate: 0;\n }\n\n .altertable-sheet[open][data-closing] {\n translate: 0 100%;\n }\n\n @starting-style {\n .altertable-sheet[open] {\n translate: 0 100%;\n }\n }\n\n .altertable-sheet-header {\n padding: 20px 20px 16px;\n }\n\n .altertable-sheet-body {\n padding: 20px 20px 32px;\n }\n\n .altertable-sheet-footer {\n padding: 14px 20px;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-sheet, .altertable-sheet[open][data-closing] {\n transition: none;\n translate: 0;\n }\n\n .altertable-sheet::backdrop {\n transition: none;\n }\n\n @starting-style {\n .altertable-sheet[open] {\n translate: 0;\n }\n }\n }\n\n .altertable-sheet[data-placement=\"center\"] {\n inset: var(--atbl-frame-inset-top, 0px) 0 var(--atbl-frame-inset-bottom, 0px);\n max-height: calc(var(--atbl-frame-visible-height) - 32px);\n border: 1px solid var(--atbl-border, #e3e6e8);\n border-radius: var(--atbl-radius-overlay);\n width: min(480px, 100vw - 32px);\n height: -moz-fit-content;\n height: fit-content;\n margin: auto;\n translate: 0;\n }\n\n .altertable-sheet[data-placement=\"center\"] .altertable-sheet-shell {\n height: auto;\n }\n\n .altertable-sheet[data-placement=\"center\"] .altertable-sheet-header {\n padding: 20px 24px 16px;\n }\n\n .altertable-sheet[data-placement=\"center\"] .altertable-sheet-body {\n padding: 0 24px 20px;\n }\n\n .altertable-sheet[data-placement=\"center\"] .altertable-sheet-footer {\n padding: 16px 24px;\n }\n}\n\n/* packages/data-app-react/src/ui/Tabs.css */\n@layer atbl.components {\n .altertable-tabs .react-aria-TabList {\n display: flex;\n gap: var(--atbl-space-lg);\n overflow-x: auto;\n overscroll-behavior-x: none;\n border-bottom: 1px solid var(--atbl-border);\n scrollbar-width: none;\n }\n\n .altertable-tabs .react-aria-Tab {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-label-size);\n outline: none;\n transition: color var(--atbl-duration-fast) var(--atbl-ease-standard), border-color var(--atbl-duration-normal) var(--atbl-ease-standard);\n border-bottom: 2px solid #0000;\n flex: none;\n margin-bottom: -1px;\n padding: 0 1px 12px;\n font-weight: 550;\n }\n\n .altertable-tabs .react-aria-Tab[data-hovered] {\n color: var(--atbl-text);\n }\n\n .altertable-tabs .react-aria-Tab[data-selected] {\n border-bottom-color: var(--atbl-accent);\n color: var(--atbl-text);\n }\n\n .altertable-tabs .react-aria-Tab[data-focus-visible] {\n border-radius: 2px;\n }\n\n .altertable-tabs .react-aria-TabPanels {\n min-width: 0;\n padding-block-start: var(--atbl-space-md);\n }\n\n .altertable-tabs .react-aria-TabPanel {\n outline: none;\n min-width: 0;\n }\n\n .altertable-tabs .react-aria-TabPanel[data-inert] {\n display: none;\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-tabs .react-aria-Tab {\n transition: none;\n }\n }\n}\n\n/* packages/data-app-react/src/ui/AboutData.css */\n@layer atbl.components {\n .altertable-about-visual {\n display: grid;\n overflow-x: auto;\n overscroll-behavior-x: none;\n overflow-y: hidden;\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-surface);\n background: var(--atbl-subtle);\n min-width: 0;\n margin: 0 0 24px;\n padding: 22px 20px 16px;\n }\n\n .altertable-about-visual > * {\n min-width: 0;\n }\n\n .altertable-about-visual[data-kind=\"metric\"] {\n padding: 16px 18px;\n }\n\n .altertable-about-visual[data-kind=\"widget\"] {\n background: var(--atbl-surface);\n padding: 0;\n }\n\n .altertable-about-body {\n display: grid;\n gap: 28px;\n min-width: 0;\n }\n\n .altertable-about-glossary-list {\n display: grid;\n gap: 16px;\n }\n\n .altertable-about-glossary-entry {\n display: grid;\n gap: 3px;\n }\n\n .altertable-about-glossary-entry > h3 {\n font-size: var(--atbl-type-body-size);\n letter-spacing: -.01em;\n margin: 0;\n font-weight: 650;\n }\n\n .altertable-about-glossary-entry > p {\n margin: 0;\n line-height: 1.55;\n }\n\n .altertable-about-tabs {\n display: grid;\n gap: 0;\n min-width: 0;\n }\n\n .altertable-about-tabbar {\n position: sticky;\n z-index: 2;\n background: var(--atbl-surface);\n margin-top: -24px;\n padding: 24px 0 14px;\n top: -24px;\n }\n\n @media (max-width: 600px) {\n .altertable-about-tabbar {\n margin-top: -20px;\n padding-top: 20px;\n top: -20px;\n }\n }\n\n .altertable-about-tabs .react-aria-TabList {\n display: flex;\n background: var(--atbl-subtle);\n border: 0;\n border-radius: 10px;\n flex-wrap: wrap;\n gap: 2px;\n width: 100%;\n max-width: 100%;\n padding: 3px;\n }\n\n .altertable-about-tabs .react-aria-TabPanels {\n padding-top: 14px;\n }\n\n .altertable-about-tabs .react-aria-Tab {\n font-size: var(--atbl-type-meta-size);\n font-weight: var(--atbl-type-label-weight);\n border: 0;\n border-radius: 8px;\n margin: 0;\n padding: 6px 10px;\n }\n\n .altertable-about-tabs .react-aria-Tab[data-selected] {\n background: var(--atbl-surface);\n color: var(--atbl-text);\n box-shadow: 0 0 0 1px var(--atbl-border);\n }\n\n .altertable-about-tabs .react-aria-TabPanel {\n min-width: 0;\n }\n}\n\n/* packages/data-app-react/src/ui/AppHeader.css */\n@layer atbl.components {\n .altertable-app-header {\n border-bottom: 1px solid var(--atbl-border);\n padding-bottom: 12px;\n }\n\n .altertable-app-header-heading {\n min-width: 0;\n }\n\n .altertable-app-header-primary {\n display: flex;\n flex-wrap: wrap;\n align-items: baseline;\n gap: 4px 14px;\n min-width: 0;\n }\n\n .altertable-app-header-context {\n display: inline-flex;\n align-items: baseline;\n gap: 5px;\n min-width: 0;\n }\n\n .altertable-app-header-connector {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n font-weight: var(--atbl-type-label-weight);\n line-height: 1.2;\n }\n\n .altertable-app-header-primary h1 {\n font-family: var(--atbl-font-heading, var(--atbl-input-font-heading, var(--atbl-font)));\n font-size: var(--atbl-type-page-size);\n font-weight: var(--atbl-type-emphasis-weight);\n letter-spacing: -.03em;\n overflow-wrap: anywhere;\n text-wrap: balance;\n margin: 0;\n line-height: 1.15;\n }\n\n .altertable-app-header-heading > p {\n max-width: var(--atbl-text-measure);\n color: var(--atbl-muted);\n font-size: var(--atbl-type-label-size);\n text-wrap: pretty;\n margin: 4px 0 0;\n line-height: 1.45;\n }\n\n .altertable-app-header-toolbar {\n flex: none;\n align-self: center;\n max-width: 100%;\n margin-inline-start: auto;\n }\n\n @media (max-width: 700px) {\n .altertable-app-header-primary {\n gap: 8px 12px;\n }\n\n .altertable-app-header-primary h1 {\n flex-basis: 100%;\n }\n\n .altertable-app-header-context {\n flex: 160px;\n min-width: min(100%, 160px);\n }\n\n .altertable-app-header-heading > p {\n margin-top: 8px;\n }\n }\n}\n\n/* packages/data-app-react/src/ui/AppFooter.css */\n@layer atbl.components {\n .altertable-app-footer {\n color: var(--atbl-muted);\n font: var(--atbl-type-meta-size) / var(--atbl-type-label-leading) var(--atbl-font);\n }\n\n .altertable-app-footer-inner {\n width: min(100% - 48px, var(--atbl-content-width));\n padding-block: var(--atbl-space-lg);\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: var(--atbl-space-md);\n flex-wrap: wrap;\n margin: 0 auto;\n }\n\n .altertable-app-footer-actions {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n min-width: 0;\n }\n\n .altertable-app-footer a {\n display: inline-flex;\n color: inherit;\n text-decoration: none;\n white-space: normal;\n overflow-wrap: anywhere;\n align-items: center;\n gap: 4px;\n }\n\n .altertable-app-footer-logo {\n color: var(--atbl-text);\n width: 92px;\n height: 16px;\n margin-left: 4px;\n }\n\n .altertable-app-footer a:hover {\n color: var(--atbl-text);\n }\n\n @media (max-width: 600px) {\n .altertable-app-footer-inner {\n width: min(100% - 32px, var(--atbl-content-width));\n }\n }\n\n .altertable-app-footer-inner > *, .altertable-app-footer-actions > * {\n min-inline-size: 0;\n max-inline-size: 100%;\n }\n}\n\n/* packages/data-app-react/src/ui/AppLayout.css */\n@layer atbl.components {\n .altertable-app-layout {\n display: flex;\n flex-direction: column;\n min-height: 100dvh;\n }\n\n :root[data-atbl-frame-sizing=\"content\"] .altertable-app-layout {\n min-height: 0;\n }\n\n .altertable-app-main {\n display: grid;\n align-content: start;\n gap: var(--atbl-layout-gap, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg)));\n width: min(100% - 48px, var(--atbl-content-width));\n padding: clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg)) 0 calc(2 * var(--atbl-space-xl));\n min-width: 0;\n margin-inline-start: auto;\n margin-inline-end: auto;\n }\n\n .altertable-app-body {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n gap: var(--atbl-layout-gap, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg)));\n min-width: 0;\n }\n\n .altertable-app-main > *, .altertable-app-body > * {\n margin: 0;\n }\n\n .altertable-app-footer {\n margin-top: auto;\n }\n\n @media (max-width: 600px) {\n .altertable-app-main {\n width: min(100% - 32px, var(--atbl-content-width));\n }\n }\n\n .altertable-app-content-footer {\n padding-top: var(--atbl-space-sm);\n padding-inline: var(--atbl-surface-padding, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg)));\n min-width: 0;\n }\n\n .altertable-app-content-footer .altertable-text-content {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-body-size);\n max-width: none;\n }\n\n :root:has(.altertable-active-filters) {\n --atbl-active-filters-clearance: calc(env(safe-area-inset-bottom, 0px) + 2 * var(--atbl-space-md) + max(44px, var(--atbl-control-height)) + 2 * var(--atbl-space-xs) + 2px);\n scroll-padding-block-end: var(--atbl-active-filters-clearance);\n }\n\n .altertable-app-layout:has(.altertable-active-filters) {\n padding-block-end: var(--atbl-active-filters-clearance);\n }\n}\n\n/* packages/data-app-react/src/ui/AppScope.css */\n@layer atbl.components {\n .altertable-app-scope {\n display: inline-flex;\n color: var(--atbl-muted);\n font: var(--atbl-type-label-weight) var(--atbl-type-meta-size) / var(--atbl-type-label-leading) var(--atbl-font);\n align-items: center;\n gap: 5px;\n max-width: 100%;\n }\n\n .altertable-app-scope-organization {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: var(--atbl-text);\n font-size: var(--atbl-type-meta-size);\n font-weight: var(--atbl-type-emphasis-weight);\n letter-spacing: .06em;\n text-transform: uppercase;\n line-height: 1.3;\n }\n\n .altertable-app-scope-environment {\n background: var(--atbl-subtle);\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n font-weight: var(--atbl-type-label-weight);\n letter-spacing: .01em;\n border-radius: 999px;\n padding: 4px 8px;\n }\n}\n\n/* packages/data-app-react/src/ui/LiveControl.css */\n@layer atbl.components {\n .altertable-live-control {\n display: inline-flex;\n min-block-size: var(--atbl-control-height);\n overflow: hidden;\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-control);\n background: var(--atbl-surface);\n box-shadow: var(--atbl-shadow-surface);\n flex: none;\n align-self: flex-start;\n align-items: stretch;\n width: -moz-fit-content;\n width: fit-content;\n max-width: 100%;\n }\n\n .altertable-live-control .altertable-button[data-size=\"icon\"] {\n position: relative;\n width: calc(var(--atbl-control-height) - 2px);\n min-width: calc(var(--atbl-control-height) - 2px);\n min-height: calc(var(--atbl-control-height) - 2px);\n min-block-size: calc(var(--atbl-control-height) - 2px);\n box-shadow: none;\n background: none;\n border: 0;\n border-radius: 0;\n padding: 0;\n }\n\n .altertable-live-control[data-active=\"true\"] {\n border-color: var(--atbl-positive);\n }\n\n .altertable-live-control[data-active=\"true\"] .altertable-button {\n --atbl-control-selected-text: var(--atbl-positive);\n color: var(--atbl-positive);\n }\n\n .altertable-live-control[data-active=\"true\"] .altertable-button:after {\n position: absolute;\n content: \"\";\n background: currentColor;\n border-radius: 50%;\n width: 5px;\n height: 5px;\n top: 5px;\n right: 5px;\n }\n\n .altertable-live-frequency {\n width: calc(var(--atbl-control-height) - .5rem);\n min-block-size: calc(var(--atbl-control-height) - 2px);\n border-left: 1px solid var(--atbl-border);\n }\n\n .altertable-live-frequency > button {\n display: grid;\n color: var(--atbl-muted);\n background: none;\n border: 0;\n border-radius: 0;\n place-items: center;\n width: 100%;\n height: 100%;\n padding: 0;\n }\n\n .altertable-live-frequency-popover {\n z-index: 1000;\n padding: var(--atbl-dropdown-padding);\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-control);\n background: var(--atbl-surface);\n color: var(--atbl-text);\n box-shadow: var(--atbl-shadow-overlay);\n min-width: 190px;\n }\n\n .altertable-live-frequency-popover [role=\"option\"] {\n display: flex;\n min-height: calc(var(--atbl-control-height) - 2px);\n padding: var(--atbl-dropdown-item-padding-block) var(--atbl-dropdown-item-padding-inline);\n font-size: var(--atbl-type-label-size);\n outline: none;\n border-radius: 4px;\n justify-content: space-between;\n align-items: center;\n gap: 16px;\n }\n\n .altertable-live-frequency-popover [role=\"listbox\"] {\n display: flex;\n gap: var(--atbl-dropdown-item-gap);\n flex-direction: column;\n }\n\n .altertable-live-frequency-popover [role=\"option\"][data-selected] {\n font-weight: var(--atbl-type-label-weight);\n }\n\n .altertable-live-frequency-popover [role=\"option\"]:not([data-selected]) svg {\n visibility: hidden;\n }\n\n .altertable-visually-hidden {\n position: absolute;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n width: 1px;\n height: 1px;\n }\n}\n\n/* packages/data-app-react/src/ui/PresentStory.css */\n@layer atbl.components {\n :root:has(.altertable-present-dialog:modal) {\n overflow: hidden;\n }\n\n .altertable-present-launch {\n position: relative;\n display: inline-flex;\n }\n\n .altertable-present-dialog:not([open]) {\n display: none;\n }\n\n .altertable-present-dialog {\n position: fixed;\n inset: var(--atbl-frame-inset-top, 0px) 0 auto;\n height: var(--atbl-frame-visible-height);\n background: var(--atbl-background);\n color: var(--atbl-text);\n overscroll-behavior: contain;\n opacity: 0;\n transition: opacity .2s var(--atbl-ease-standard), overlay .2s allow-discrete, display .2s allow-discrete;\n border: 0;\n width: 100vw;\n max-width: none;\n max-height: none;\n margin: 0;\n padding: 0;\n }\n\n .altertable-present-dialog[open] {\n opacity: 1;\n }\n\n @starting-style {\n .altertable-present-dialog[open] {\n opacity: 0;\n }\n }\n\n .altertable-present-dialog::backdrop {\n background: none;\n }\n\n .altertable-present-shell {\n display: flex;\n flex-direction: column;\n height: 100%;\n min-height: 0;\n }\n\n .altertable-present-header, .altertable-present-nav {\n display: flex;\n align-items: center;\n gap: var(--atbl-space-md);\n flex: none;\n width: min(100% - 48px, 1200px);\n margin: 0 auto;\n }\n\n .altertable-present-header {\n border-bottom: 1px solid var(--atbl-border);\n font-size: var(--atbl-type-label-size);\n min-height: 60px;\n }\n\n .altertable-present-title {\n display: flex;\n flex-wrap: wrap;\n flex: 1;\n align-items: center;\n gap: 3px 6px;\n min-width: 0;\n line-height: 24px;\n }\n\n .altertable-present-title strong {\n font-size: var(--atbl-type-body-size);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-weight: 650;\n line-height: 24px;\n }\n\n .altertable-present-connector {\n color: var(--atbl-muted);\n font-weight: 400;\n }\n\n .altertable-present-title .altertable-app-scope {\n min-width: 0;\n line-height: 24px;\n }\n\n .altertable-present-title .altertable-app-scope-environment {\n line-height: 16px;\n }\n\n .altertable-present-count {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n font-variant-numeric: tabular-nums;\n flex: none;\n }\n\n .altertable-present-actions {\n display: flex;\n flex: none;\n align-items: center;\n gap: 4px;\n }\n\n .altertable-present-theme {\n display: inline-flex;\n margin-inline-start: var(--atbl-space-sm);\n }\n\n .altertable-present-main {\n display: grid;\n grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);\n align-content: safe center;\n align-items: start;\n column-gap: clamp(28px, 5vw, 72px);\n row-gap: var(--atbl-space-lg);\n padding: var(--atbl-space-lg) 0;\n overflow-y: auto;\n overscroll-behavior-y: contain;\n animation: altertable-present-step var(--atbl-duration-slow) var(--atbl-ease-enter);\n flex: 1;\n width: min(100% - 64px, 1100px);\n min-height: 0;\n margin: 0 auto;\n }\n\n @keyframes altertable-present-step {\n from {\n opacity: 0;\n translate: 0 6px;\n }\n }\n\n .altertable-present-copy {\n min-width: 0;\n }\n\n .altertable-present-copy > h2 {\n font-family: var(--atbl-font-heading, var(--atbl-input-font-heading, var(--atbl-font)));\n letter-spacing: -.04em;\n overflow-wrap: anywhere;\n text-wrap: balance;\n margin: 0;\n font-size: clamp(30px, 3.8vw, 50px);\n font-weight: 650;\n line-height: 1.1;\n }\n\n .altertable-present-copy > h2:focus {\n outline: none;\n }\n\n .altertable-present-explore {\n margin-top: var(--atbl-space-lg);\n }\n\n .altertable-present-copy > p {\n margin: var(--atbl-space-md) 0 0;\n color: var(--atbl-muted);\n text-wrap: pretty;\n max-width: 58ch;\n font-size: clamp(15px, 1.5vw, 18px);\n line-height: 1.55;\n }\n\n .altertable-present-visual {\n grid-column: 2;\n grid-row: 1;\n display: flex;\n padding: var(--atbl-space-lg);\n overflow: auto;\n overscroll-behavior: contain;\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-surface);\n background: var(--atbl-surface);\n align-items: center;\n min-width: 0;\n min-height: clamp(280px, 48vh, 470px);\n max-height: 62vh;\n }\n\n .altertable-present-visual > * {\n width: 100%;\n }\n\n .altertable-present-visual[data-kind=\"metric\"] {\n background: none;\n border: 0;\n padding: 0;\n }\n\n .altertable-present-nav {\n justify-content: space-between;\n min-height: 72px;\n }\n\n .altertable-present-nav > .altertable-tooltip-trigger > button:disabled {\n color: var(--atbl-muted);\n }\n\n .altertable-present-dots {\n display: flex;\n align-items: center;\n }\n\n .altertable-present-dots button {\n display: grid;\n border-radius: var(--atbl-radius-control);\n background: none;\n border: 0;\n place-items: center;\n width: 28px;\n height: 44px;\n padding: 0;\n }\n\n .altertable-present-dots button:before {\n background: var(--atbl-border);\n content: \"\";\n transition: width .2s var(--atbl-ease-enter), background-color .2s var(--atbl-ease-standard);\n border-radius: 999px;\n width: 7px;\n height: 7px;\n }\n\n .altertable-present-dots button:hover:before {\n background: var(--atbl-muted);\n }\n\n .altertable-present-dots button[aria-current=\"step\"]:before {\n background: var(--atbl-accent);\n width: 20px;\n }\n\n @media (max-width: 800px) {\n .altertable-present-main {\n grid-template-columns: minmax(0, 1fr);\n align-content: start;\n gap: var(--atbl-space-lg);\n width: min(100% - 40px, 640px);\n }\n\n .altertable-present-visual {\n grid-column: 1;\n grid-row: 2;\n min-height: 220px;\n max-height: none;\n }\n }\n\n @media (max-width: 600px) {\n .altertable-present-header, .altertable-present-nav {\n width: calc(100% - 32px);\n }\n\n .altertable-present-header {\n min-height: 56px;\n }\n\n .altertable-present-main {\n padding: var(--atbl-space-md) 0;\n width: calc(100% - 32px);\n }\n\n .altertable-present-visual {\n padding: var(--atbl-space-md);\n }\n\n .altertable-present-nav {\n gap: 0;\n min-height: 64px;\n }\n\n .altertable-present-dots button {\n width: 24px;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-present-dialog, .altertable-present-dots button:before {\n transition: none;\n }\n\n .altertable-present-main {\n animation: none;\n }\n }\n}\n\n/* packages/data-app-react/src/ui/ShimmerText.css */\n@layer atbl.components {\n .altertable-shimmer-text {\n position: relative;\n display: inline-block;\n overflow: hidden;\n white-space: nowrap;\n min-inline-size: 0;\n max-inline-size: 100%;\n }\n\n .altertable-shimmer-text-base {\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n opacity: .65;\n }\n\n .altertable-shimmer-text-sweep {\n position: absolute;\n color: var(--atbl-text);\n mask-image: linear-gradient(90deg, #0000 10%, #000 45% 55%, #0000 90%);\n animation: 1.6s linear infinite altertable-shimmer-text-sweep;\n inset: 0;\n }\n\n .altertable-shimmer-text-sweep > span {\n display: block;\n animation: 1.6s linear infinite altertable-shimmer-text-counter-sweep;\n }\n\n .altertable-shimmer-text-sweep > span:before {\n content: attr(data-text);\n }\n\n @keyframes altertable-shimmer-text-sweep {\n from {\n transform: translateX(-100%);\n }\n\n to {\n transform: translateX(100%);\n }\n }\n\n @keyframes altertable-shimmer-text-counter-sweep {\n from {\n transform: translateX(100%);\n }\n\n to {\n transform: translateX(-100%);\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-shimmer-text-sweep, .altertable-shimmer-text-sweep > span {\n animation: none;\n }\n\n .altertable-shimmer-text-sweep {\n display: none;\n }\n\n .altertable-shimmer-text-base {\n opacity: 1;\n }\n }\n}\n\n/* packages/data-app-react/src/ui/LoadingStatus.css */\n@layer atbl.components {\n .altertable-loading-status {\n position: absolute;\n inset: var(--atbl-space-md) 0 var(--atbl-surface-padding, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg)));\n display: grid;\n padding-inline: var(--atbl-space-md);\n pointer-events: none;\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n place-items: center;\n }\n\n .altertable-loading-status:empty {\n visibility: hidden;\n }\n\n .altertable-data-widget-body:has(.altertable-loading-status[data-visible]) .altertable-skeleton {\n animation: none;\n opacity: .35;\n }\n\n .altertable-data-widget-body[data-padding=\"flush\"] > .altertable-loading-status, .altertable-metric-widget .altertable-loading-status {\n top: 0;\n }\n}\n\n/* packages/data-app-react/src/ui/RefreshControl.css */\n@layer atbl.components {\n .altertable-refresh-control {\n position: relative;\n display: inline-flex;\n align-items: center;\n gap: var(--atbl-space-sm);\n }\n\n .altertable-refresh-loading, .altertable-refresh-cancel, .altertable-refresh-control[data-refreshing] .altertable-refresh-idle {\n display: none;\n }\n\n .altertable-refresh-control[data-refreshing] .altertable-refresh-loading {\n display: block;\n animation: .9s linear infinite altertable-refresh-spin;\n }\n\n .altertable-refresh-control[data-refreshing] .altertable-button:has(.altertable-refresh-cancel):hover .altertable-refresh-loading {\n display: none;\n }\n\n .altertable-refresh-control[data-refreshing] .altertable-button:hover .altertable-refresh-cancel {\n display: block;\n }\n\n .altertable-refresh-status {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n white-space: nowrap;\n display: grid;\n text-align: end;\n }\n\n .altertable-refresh-status > span {\n grid-area: 1 / 1;\n }\n\n @keyframes altertable-refresh-spin {\n to {\n rotate: 360deg;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-refresh-control[data-refreshing] .altertable-refresh-loading {\n animation: 1.2s ease-in-out infinite alternate altertable-refresh-pulse;\n }\n }\n\n @keyframes altertable-refresh-pulse {\n to {\n opacity: .35;\n }\n }\n}\n\n/* packages/data-app-react/src/ui/AppToolbar.css */\n@layer atbl.components {\n .altertable-app-toolbar {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n gap: var(--atbl-space-sm);\n width: 100%;\n }\n\n .altertable-app-toolbar-updated {\n color: color-mix(in srgb, var(--atbl-muted) 78%, var(--atbl-background));\n font-size: var(--atbl-type-meta-size);\n white-space: nowrap;\n margin-right: 6px;\n }\n\n .altertable-app-toolbar-actions {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n gap: var(--atbl-space-xs);\n flex-wrap: wrap;\n margin-inline-start: auto;\n }\n\n .altertable-app-toolbar {\n flex-shrink: 0;\n }\n}\n\n/* packages/data-app-react/src/ui/VariableBar.css */\n@layer atbl.components {\n .altertable-variable-bar {\n display: flex;\n align-items: center;\n gap: var(--atbl-space-sm);\n flex-wrap: wrap;\n min-width: 0;\n }\n\n .altertable-variable-bar > * {\n min-width: 0;\n max-width: 100%;\n }\n\n .altertable-primary-controls {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n align-items: start;\n gap: var(--atbl-space-sm);\n }\n\n .altertable-primary-control-actions {\n display: flex;\n align-items: center;\n gap: var(--atbl-space-sm);\n }\n\n .altertable-filter-bar-inputs {\n display: flex;\n align-items: center;\n gap: calc((var(--atbl-space-xs) + var(--atbl-space-sm)) / 2);\n flex-wrap: wrap;\n min-width: 0;\n }\n\n .altertable-filter-bar-inputs > * {\n min-width: 0;\n max-width: 100%;\n }\n\n .altertable-filter-bar-inputs > :-webkit-any(.altertable-picker-trigger, .altertable-field) {\n max-width: min(100%, 16rem);\n }\n\n .altertable-filter-bar-inputs > :-moz-any(.altertable-picker-trigger, .altertable-field) {\n max-width: min(100%, 16rem);\n }\n\n .altertable-filter-bar-inputs > :is(.altertable-picker-trigger, .altertable-field) {\n max-width: min(100%, 16rem);\n }\n\n .altertable-filter-sheet-actions {\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: var(--atbl-space-sm);\n }\n\n .altertable-variable-searches > .altertable-search-landmark {\n flex: 280px;\n max-width: 25rem;\n }\n\n .altertable-variable-searches .altertable-search-input-wrap {\n flex: 1;\n width: auto;\n }\n\n .altertable-sheet-filters {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n align-items: start;\n gap: var(--atbl-space-md);\n }\n\n .altertable-control-count {\n display: inline-flex;\n box-sizing: border-box;\n border-radius: var(--atbl-radius-control);\n background: var(--atbl-subtle);\n font-size: var(--atbl-type-meta-size);\n font-variant-numeric: tabular-nums;\n justify-content: center;\n align-items: center;\n block-size: 1.25rem;\n min-inline-size: 1.25rem;\n padding-inline-start: .25rem;\n padding-inline-end: .25rem;\n }\n\n .altertable-display-options-trigger {\n margin-inline-start: auto;\n }\n\n .altertable-display-options-button {\n position: relative;\n }\n\n .altertable-control-indicator {\n position: absolute;\n background: var(--atbl-accent);\n border-radius: 50%;\n block-size: 5px;\n inline-size: 5px;\n top: 5px;\n }\n\n .altertable-control-indicator:not(:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {\n right: 5px;\n }\n\n .altertable-control-indicator:not(:-moz-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {\n right: 5px;\n }\n\n .altertable-control-indicator:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {\n right: 5px;\n }\n\n .altertable-control-indicator:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {\n left: 5px;\n }\n\n .altertable-control-indicator:-moz-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {\n left: 5px;\n }\n\n .altertable-control-indicator:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {\n left: 5px;\n }\n\n .altertable-display-options-popover {\n z-index: 90;\n overflow: auto;\n padding: var(--atbl-space-md);\n border-radius: var(--atbl-radius-overlay);\n width: min(360px, 100vw - 24px);\n max-height: min(560px, 80dvh);\n }\n\n .altertable-display-options-dialog {\n display: grid;\n gap: var(--atbl-space-sm);\n outline: none;\n }\n\n .altertable-display-option > * {\n box-sizing: border-box;\n width: 100%;\n min-width: 0;\n }\n\n .altertable-display-option .react-aria-SelectValue {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .altertable-filter-sheet {\n width: min(360px, 100vw);\n }\n\n .altertable-toolbar-filter-editors {\n display: flex;\n align-items: center;\n gap: var(--atbl-space-xs);\n border: 0;\n flex-wrap: wrap;\n min-width: 0;\n margin: 0;\n padding: 0;\n }\n\n .altertable-active-filters {\n display: flex;\n gap: var(--atbl-space-xs);\n position: fixed;\n z-index: 40;\n opacity: 1;\n transition: opacity var(--atbl-duration-normal) var(--atbl-ease-enter), transform var(--atbl-duration-normal) var(--atbl-ease-enter);\n max-inline-size: calc(100vw - 2 * (var(--atbl-space-md) + max(env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px))));\n padding: var(--atbl-space-xs);\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-surface);\n background: var(--atbl-surface);\n box-shadow: var(--atbl-shadow-overlay);\n flex-wrap: nowrap;\n align-items: center;\n min-width: 0;\n margin: 0;\n top: calc(100dvh - var(--atbl-frame-inset-bottom, 0px) - var(--atbl-space-md) - env(safe-area-inset-bottom, 0px));\n transform: translate(-50%, -100%);\n }\n\n .altertable-active-filters:not(:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {\n left: 50vw;\n }\n\n .altertable-active-filters:not(:-moz-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {\n left: 50vw;\n }\n\n .altertable-active-filters:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {\n left: 50vw;\n }\n\n .altertable-active-filters:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {\n right: 50vw;\n }\n\n .altertable-active-filters:-moz-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {\n right: 50vw;\n }\n\n .altertable-active-filters:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {\n right: 50vw;\n }\n\n @starting-style {\n .altertable-active-filters {\n opacity: 0;\n transform: translate(-50%, calc(-100% + var(--atbl-space-sm)));\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-active-filters {\n transition-property: opacity;\n }\n }\n\n .altertable-active-filters > button {\n white-space: nowrap;\n flex: none;\n }\n\n .altertable-filter-summaries {\n display: flex;\n gap: var(--atbl-space-xs);\n overflow-x: auto;\n white-space: nowrap;\n min-inline-size: 0;\n }\n\n .altertable-filter-summaries > * {\n flex: none;\n }\n\n .altertable-active-filter-label {\n gap: var(--atbl-space-xs);\n font-size: var(--atbl-type-label-size);\n font-weight: var(--atbl-type-meta-weight);\n padding-inline-end: var(--atbl-space-xs);\n }\n\n .altertable-active-filter .altertable-picker-value {\n font-weight: inherit;\n }\n\n .altertable-active-filter {\n display: inline-flex;\n border-radius: var(--atbl-radius-control);\n background: var(--atbl-subtle);\n align-items: center;\n }\n\n .altertable-active-filter-remove {\n --atbl-control-hover-surface: color-mix(in srgb, var(--atbl-text) 14%, var(--atbl-subtle));\n color: var(--atbl-muted);\n margin-inline-end: var(--atbl-space-xs);\n }\n\n @media (any-pointer: coarse) {\n .altertable-active-filters .altertable-button {\n min-block-size: 44px;\n min-inline-size: 44px;\n }\n }\n}\n\n/* packages/data-app-react/src/ui/DataViewToast.css */\n@layer atbl.components {\n .altertable-data-view-toast-region {\n position: fixed;\n z-index: 100;\n left: 16px;\n right: 16px;\n bottom: calc(var(--atbl-frame-inset-bottom, 0px) + max(20px, env(safe-area-inset-bottom)));\n display: flex;\n pointer-events: none;\n justify-content: center;\n }\n\n .altertable-data-view-toast-region[data-position=\"top\"] {\n top: calc(var(--atbl-frame-inset-top, 0px) + max(20px, env(safe-area-inset-top)));\n bottom: auto;\n }\n\n .altertable-data-view-toast {\n display: flex;\n overflow: auto;\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-surface);\n background: var(--atbl-surface);\n box-shadow: var(--atbl-shadow-overlay);\n color: var(--atbl-text);\n font-size: var(--atbl-type-meta-size);\n pointer-events: auto;\n align-items: center;\n gap: 10px;\n width: -moz-fit-content;\n width: fit-content;\n max-width: min(100%, 560px);\n max-height: 40dvh;\n padding: 10px 12px;\n line-height: 1.45;\n }\n\n .altertable-data-view-toast > svg {\n color: var(--atbl-muted);\n flex: none;\n }\n\n .altertable-data-view-toast[data-state=\"error\"] > svg {\n color: var(--atbl-danger);\n }\n\n .altertable-data-view-toast > span {\n min-width: 0;\n }\n\n .altertable-data-view-toast .altertable-button {\n flex: none;\n min-height: 32px;\n }\n\n .altertable-data-view-toast-spinner {\n animation: 1s linear infinite altertable-data-view-toast-spin;\n }\n\n @keyframes altertable-data-view-toast-spin {\n to {\n transform: rotate(360deg);\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-data-view-toast-spinner {\n animation: none;\n }\n }\n}\n\n/* packages/data-app-react/src/ui/DataBoundary.css */\n@layer atbl.components {\n .altertable-data-boundary {\n min-width: 0;\n }\n\n .altertable-data-boundary-notice {\n display: flex;\n border-radius: var(--atbl-radius-control);\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n background: none;\n border: 0;\n flex-wrap: wrap;\n align-items: center;\n gap: 8px;\n min-height: 44px;\n margin: 0 0 14px;\n padding: 8px 0;\n line-height: 1.45;\n }\n\n .altertable-data-boundary-notice[data-state=\"stale-error\"] {\n border-color: color-mix(in srgb, var(--atbl-danger) 30%, var(--atbl-border));\n }\n\n .altertable-data-boundary-notice[data-state=\"stale-error\"] > svg {\n color: var(--atbl-danger);\n flex: none;\n }\n\n .altertable-data-boundary-message {\n flex: 240px;\n }\n\n .altertable-data-boundary-action {\n margin-left: auto;\n }\n\n .altertable-data-boundary-action button {\n min-height: 32px;\n }\n}\n\n/* packages/data-app-react/src/ui/StatusPanel.css */\n@layer atbl.components {\n .altertable-status-panel {\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: var(--atbl-space-lg);\n padding: var(--atbl-space-lg);\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-surface);\n background: var(--atbl-surface);\n color: var(--atbl-muted);\n font-size: var(--atbl-type-label-size);\n line-height: 1.5;\n }\n\n .altertable-status-panel[data-status=\"error\"] {\n box-sizing: border-box;\n box-shadow: none;\n display: grid;\n grid-template-columns: 18px minmax(0, 1fr);\n background: none;\n border: 0;\n align-items: start;\n gap: 18px 14px;\n width: min(100%, 520px);\n margin: clamp(16px, 4vw, 48px) auto 0;\n }\n\n .altertable-status-panel[data-status=\"error\"] > svg {\n color: var(--atbl-danger);\n margin-top: 1px;\n }\n\n .altertable-status-panel[data-status=\"error\"] .altertable-status-action {\n grid-column: 2;\n }\n\n .altertable-status-panel[data-status=\"error\"] .altertable-status-copy {\n min-width: 0;\n }\n\n .altertable-status-panel strong {\n color: var(--atbl-text);\n font-weight: 650;\n }\n\n .altertable-status-panel p {\n margin: 4px 0 0;\n }\n\n .altertable-status-panel small {\n display: block;\n overflow-wrap: anywhere;\n margin-top: 6px;\n }\n\n .altertable-status-action {\n flex: none;\n }\n\n @media (max-width: 600px) {\n .altertable-status-panel:not([data-status=\"error\"]) {\n flex-direction: column;\n align-items: flex-start;\n }\n }\n}\n\n/* packages/data-app-react/src/ui/GettingStarted.css */\n@layer atbl.components {\n .starter-eyebrow {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n letter-spacing: .08em;\n text-transform: uppercase;\n font-weight: 700;\n }\n\n .starter-connection {\n display: flex;\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-surface);\n background: var(--atbl-surface);\n align-items: flex-start;\n gap: 20px;\n min-width: 0;\n padding: 30px;\n }\n\n .starter-connection-icon {\n display: grid;\n background: var(--atbl-subtle);\n color: var(--atbl-muted);\n border-radius: 14px;\n flex: none;\n place-items: center;\n width: 48px;\n height: 48px;\n }\n\n .starter-connection[data-state=\"connected\"] .starter-connection-icon {\n background: color-mix(in srgb, var(--atbl-positive) 12%, var(--atbl-surface));\n color: var(--atbl-positive);\n }\n\n .starter-connection[data-state=\"error\"] .starter-connection-icon {\n background: var(--atbl-danger-subtle, color-mix(in srgb, var(--atbl-danger) 9%, var(--atbl-surface)));\n color: var(--atbl-danger);\n }\n\n .starter-connection[data-state=\"checking\"] .starter-connection-icon svg {\n animation: 1.5s linear infinite starter-spin;\n }\n\n .starter-connection-copy {\n flex: 1;\n min-width: 0;\n }\n\n .starter-connection h2 {\n font-family: var(--atbl-font-heading, var(--atbl-input-font-heading, var(--atbl-font)));\n font-size: clamp(26px, 3.2vw, 36px);\n font-weight: var(--atbl-type-emphasis-weight);\n letter-spacing: -.035em;\n margin: 8px 0 6px;\n line-height: 1.15;\n }\n\n .starter-connection p {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-body-size);\n max-width: 62ch;\n margin: 0;\n line-height: 1.55;\n }\n\n .starter-connection small {\n display: block;\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n margin-top: 14px;\n }\n\n .starter-connection > .altertable-button {\n flex: none;\n align-self: center;\n }\n\n .starter-next {\n min-width: 0;\n padding: 8px 0;\n }\n\n .starter-next-heading h2 {\n font-family: var(--atbl-font-heading, var(--atbl-input-font-heading, var(--atbl-font)));\n font-size: clamp(20px, 2.4vw, 26px);\n font-weight: var(--atbl-type-emphasis-weight);\n letter-spacing: -.025em;\n margin: 8px 0 4px;\n }\n\n .starter-next-heading p {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-body-size);\n margin: 0;\n line-height: 1.5;\n }\n\n .starter-steps {\n display: grid;\n grid-template-columns: repeat(3, minmax(0, 1fr));\n list-style: none;\n counter-reset: starter-step;\n gap: 12px;\n margin: 22px 0 0;\n padding: 0;\n }\n\n .starter-steps li {\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-surface);\n background: var(--atbl-surface);\n counter-increment: starter-step;\n min-width: 0;\n padding: 20px;\n }\n\n .starter-steps li:before {\n display: block;\n color: var(--atbl-accent);\n font-size: var(--atbl-type-meta-size);\n content: \"0\" counter(starter-step);\n margin-bottom: 22px;\n font-weight: 700;\n }\n\n .starter-steps strong {\n font-size: var(--atbl-type-body-size);\n font-weight: 650;\n }\n\n .starter-steps p {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-label-size);\n margin: 8px 0 0;\n line-height: 1.5;\n }\n\n .starter-steps code {\n color: var(--atbl-text);\n overflow-wrap: anywhere;\n font-size: .92em;\n }\n\n @keyframes starter-spin {\n to {\n transform: rotate(360deg);\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .starter-connection[data-state=\"checking\"] .starter-connection-icon svg {\n animation: none;\n }\n }\n\n @media (max-width: 700px) {\n .starter-connection {\n flex-wrap: wrap;\n padding: 22px;\n }\n\n .starter-connection > .altertable-button {\n margin-left: 68px;\n }\n\n .starter-steps {\n grid-template-columns: 1fr;\n }\n\n .starter-steps li:before {\n margin-bottom: 10px;\n }\n }\n}\n\n/* packages/data-app-react/src/ui/Stack.css */\n@layer atbl.components {\n .altertable-stack {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n align-content: start;\n min-width: 0;\n }\n\n .altertable-stack[data-gap=\"sm\"] {\n gap: var(--atbl-space-sm);\n }\n\n .altertable-stack[data-gap=\"md\"] {\n gap: var(--atbl-space-md);\n }\n\n .altertable-stack[data-gap=\"lg\"] {\n gap: var(--atbl-layout-gap, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg)));\n }\n\n .altertable-stack > * {\n margin: 0;\n }\n}\n\n/* packages/data-app-react/src/ui/Inspect.css */\n@layer atbl.components {\n .altertable-inspect-trigger {\n display: inline-grid;\n border-radius: var(--atbl-radius-control);\n color: var(--atbl-muted);\n transition: background-color var(--atbl-duration-fast) var(--atbl-ease-standard), color var(--atbl-duration-fast) var(--atbl-ease-standard);\n background: none;\n border: 0;\n flex: none;\n place-items: center;\n }\n\n .altertable-inspect-trigger:hover, .altertable-inspect-trigger[data-open=\"true\"] {\n background: var(--atbl-subtle);\n color: var(--atbl-text);\n }\n\n @media (hover: hover) and (pointer: fine) {\n :is(.altertable-metric-widget .altertable-metric-help, .altertable-data-widget .altertable-data-widget-help) {\n opacity: 0;\n transition: opacity var(--atbl-duration-fast) var(--atbl-ease-standard);\n }\n\n :is(.altertable-data-widget-help[data-has-action=\"true\"], .altertable-metric-widget:hover .altertable-metric-help, .altertable-metric-widget:focus-within .altertable-metric-help, .altertable-data-widget:hover .altertable-data-widget-help, .altertable-data-widget:focus-within .altertable-data-widget-help, .altertable-metric-help:has( > .altertable-widget-status:not([data-state=\"idle\"])), .altertable-data-widget-help:has( > .altertable-widget-status:not([data-state=\"idle\"])), .altertable-metric-help:has([data-open=\"true\"]), .altertable-data-widget-help:has([data-open=\"true\"])) {\n opacity: 1;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-inspect-trigger, .altertable-metric-help, .altertable-data-widget-help {\n transition: none;\n }\n }\n\n .altertable-widget-heading-trigger {\n --atbl-control-hover-surface: transparent;\n --atbl-control-pressed-surface: transparent;\n display: inline-flex;\n justify-content: flex-start;\n align-items: center;\n gap: var(--atbl-space-sm);\n box-shadow: none;\n color: inherit;\n font: inherit;\n letter-spacing: inherit;\n text-align: left;\n background: none;\n border: 0;\n border-radius: 2px;\n min-height: 0;\n padding: 0;\n }\n\n .altertable-button.altertable-widget-heading-trigger:hover:not(:disabled), .altertable-button.altertable-widget-heading-trigger[data-open=\"true\"] {\n color: var(--atbl-text);\n background: none;\n }\n\n .altertable-button.altertable-widget-heading-trigger:focus-visible {\n color: var(--atbl-text);\n background: none;\n }\n\n .altertable-widget-heading-trigger > svg {\n display: inline-block;\n opacity: 0;\n transition: opacity var(--atbl-duration-fast) var(--atbl-ease-standard);\n flex: none;\n align-self: center;\n margin-inline-start: var(--atbl-space-xs);\n }\n\n .altertable-widget-heading-trigger:hover > svg, .altertable-widget-heading-trigger[data-open=\"true\"] > svg {\n opacity: 1;\n }\n\n .altertable-widget-heading-trigger:focus-visible > svg {\n opacity: 1;\n }\n\n @media (hover: none) {\n .altertable-widget-heading-trigger > svg {\n opacity: 1;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-widget-heading-trigger > svg {\n transition: none;\n }\n }\n}\n\n/* packages/data-app-react/src/ui/WidgetViewTabs.css */\n@layer atbl.components {\n .altertable-widget-view-tabs > .react-aria-Tabs > .react-aria-TabList {\n border-radius: var(--atbl-radius-control);\n background: var(--atbl-subtle);\n border: 0;\n gap: 4px;\n width: -moz-fit-content;\n width: fit-content;\n max-width: 100%;\n margin: 0;\n padding: 3px;\n }\n\n .altertable-widget-view-tabs .react-aria-Tab {\n border-radius: calc(var(--atbl-radius-control) - 2px);\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n border: 0;\n margin: 0;\n padding: 6px 11px;\n }\n\n .altertable-widget-view-tabs .react-aria-Tab[data-selected] {\n background: var(--atbl-surface);\n box-shadow: var(--atbl-shadow-control);\n color: var(--atbl-text);\n }\n\n .altertable-widget-view-tabs .react-aria-TabPanels {\n padding-block-start: var(--atbl-space-md);\n }\n}\n\n/* packages/data-app-react/src/ui/HelpPopover.css */\n@layer atbl.components {\n .altertable-help-popover {\n z-index: 1000;\n overflow: auto;\n overscroll-behavior: contain;\n padding: var(--atbl-space-md);\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-overlay);\n background: var(--atbl-surface);\n box-shadow: var(--atbl-shadow-overlay);\n color: var(--atbl-text);\n font: var(--atbl-type-label-size) / var(--atbl-type-label-leading) var(--atbl-font);\n animation: altertable-popover-in var(--atbl-duration-fast) var(--atbl-ease-enter);\n max-width: calc(100vw - 24px);\n max-height: min(65dvh, 560px);\n }\n\n @keyframes altertable-popover-in {\n from {\n opacity: 0;\n translate: 0 -2px;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-help-popover {\n animation: none;\n }\n }\n}\n\n/* packages/data-app-react/src/ui/DateTimeTooltip.css */\n@layer atbl.components {\n .altertable-date-time-tooltip {\n width: max-content;\n max-width: min(480px, 100vw - 24px);\n padding: 10px 12px;\n }\n\n .altertable-date-time-rows {\n display: grid;\n gap: 6px;\n }\n\n .altertable-date-time-row {\n display: grid;\n grid-template-columns: minmax(80px, 1fr) auto;\n font-variant-numeric: tabular-nums;\n gap: 16px;\n }\n\n .altertable-date-time-row time {\n text-align: right;\n overflow-wrap: anywhere;\n }\n\n .altertable-date-time-label {\n color: var(--atbl-muted);\n }\n}\n\n/* packages/data-app-react/src/ui/DateDisplay.css */\n@layer atbl.components {\n .altertable-date-display {\n font-variant-numeric: tabular-nums;\n white-space: nowrap;\n }\n\n .altertable-date-display-trigger {\n color: inherit;\n font: inherit;\n background: none;\n border: 0;\n padding: 0;\n }\n}\n\n/* packages/data-app-react/src/ui/DataTable.css */\n@layer atbl.components {\n .altertable-data-table-scroll {\n overflow-x: auto;\n overscroll-behavior-x: none;\n max-width: 100%;\n }\n\n .altertable-data-table-search {\n margin: 8px 0 12px;\n }\n\n .altertable-data-table {\n border-collapse: collapse;\n font-size: var(--atbl-type-meta-size);\n width: 100%;\n }\n\n .altertable-data-table caption {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n text-align: start;\n padding: 0 0 8px;\n }\n\n .altertable-data-table th, .altertable-data-table td {\n border-bottom: 1px solid var(--atbl-border);\n text-align: start;\n white-space: nowrap;\n cursor: default;\n padding: 9px 10px;\n }\n\n .altertable-data-table thead th {\n color: var(--atbl-muted);\n font-weight: 650;\n }\n\n .altertable-data-table tbody th {\n color: var(--atbl-text);\n font-weight: 550;\n }\n\n .altertable-data-table :-webkit-any(th, td)[data-type=\"number\"] {\n text-align: end;\n font-variant-numeric: tabular-nums;\n }\n\n .altertable-data-table :-moz-any(th, td)[data-type=\"number\"] {\n text-align: end;\n font-variant-numeric: tabular-nums;\n }\n\n .altertable-data-table :is(th, td)[data-type=\"number\"] {\n text-align: end;\n font-variant-numeric: tabular-nums;\n }\n\n .altertable-data-table :-webkit-any(th, td)[data-type=\"datetime\"] {\n font-variant-numeric: tabular-nums;\n }\n\n .altertable-data-table :-moz-any(th, td)[data-type=\"datetime\"] {\n font-variant-numeric: tabular-nums;\n }\n\n .altertable-data-table :is(th, td)[data-type=\"datetime\"] {\n font-variant-numeric: tabular-nums;\n }\n\n .altertable-data-table :-webkit-any(th, td)[data-type=\"datetime\"]:not(:first-child) {\n text-align: end;\n }\n\n .altertable-data-table :-moz-any(th, td)[data-type=\"datetime\"]:not(:first-child) {\n text-align: end;\n }\n\n .altertable-data-table :is(th, td)[data-type=\"datetime\"]:not(:first-child) {\n text-align: end;\n }\n\n .altertable-data-table-timestamp {\n color: inherit;\n font: inherit;\n font-variant-numeric: tabular-nums;\n background: none;\n border: 0;\n padding: 0;\n }\n\n .altertable-data-table-timestamp:hover {\n color: var(--atbl-accent);\n }\n\n .altertable-data-table-timestamp:focus-visible {\n border-radius: 2px;\n }\n\n .altertable-data-table tbody tr:last-child :-webkit-any(th, td) {\n border-bottom: 0;\n }\n\n .altertable-data-table tbody tr:last-child :-moz-any(th, td) {\n border-bottom: 0;\n }\n\n .altertable-data-table tbody tr:last-child :is(th, td) {\n border-bottom: 0;\n }\n\n .altertable-data-table .altertable-data-table-empty-row td {\n white-space: normal;\n padding: 0;\n }\n\n .altertable-data-table-share {\n font-variant-numeric: tabular-nums;\n }\n}\n\n/* packages/data-app-react/src/ui/TableWidget.css */\n@layer atbl.components {\n .altertable-table-widget-content {\n padding: var(--atbl-space-md) var(--atbl-space-lg) var(--atbl-space-lg);\n min-width: 0;\n }\n\n :where(.altertable-visualization-widget-content) > .altertable-table-widget-content {\n padding: 0;\n }\n\n .altertable-table-widget-content .altertable-data-table-search {\n margin-top: 0;\n }\n\n .altertable-table-pagination {\n display: flex;\n color: var(--atbl-muted);\n font-size: var(--atbl-type-label-size);\n font-variant-numeric: tabular-nums;\n flex-wrap: wrap;\n justify-content: space-between;\n align-items: center;\n gap: 8px 16px;\n padding: 12px 10px 4px;\n }\n\n .altertable-table-pagination-controls {\n display: inline-flex;\n align-items: center;\n gap: 8px;\n }\n\n .altertable-table-widget .altertable-data-widget-body {\n padding-block-start: var(--atbl-space-sm);\n }\n\n .altertable-table-widget .altertable-loading-status {\n top: calc(var(--atbl-space-sm) + 1lh + 19px);\n }\n}\n\n/* packages/data-app-react/src/ui/TextContent.css */\n@layer atbl.components {\n .altertable-text-content {\n max-width: var(--atbl-text-measure);\n color: var(--atbl-text);\n overflow-wrap: anywhere;\n font-size: var(--atbl-type-body-size);\n line-height: var(--atbl-type-body-leading);\n min-width: 0;\n }\n\n .altertable-text-content > :first-child {\n margin-top: 0;\n }\n\n .altertable-text-content > :last-child {\n margin-bottom: 0;\n }\n\n .altertable-text-content :where(p, ul, ol) {\n margin-block: 0 var(--atbl-space-sm);\n }\n\n .altertable-text-content :where(ul, ol) {\n padding-inline-start: 1.5em;\n }\n\n .altertable-text-content a {\n color: var(--atbl-accent);\n text-underline-offset: 3px;\n text-decoration-thickness: 1px;\n }\n\n .altertable-text-content a:hover {\n color: var(--atbl-text);\n text-decoration-thickness: 2px;\n }\n\n .altertable-text-content h2 {\n font-family: var(--atbl-font-heading, var(--atbl-input-font-heading, var(--atbl-font)));\n font-size: var(--atbl-type-section-size);\n font-weight: var(--atbl-type-heading-weight);\n line-height: var(--atbl-type-heading-leading);\n }\n\n .altertable-text-content :where(h3, h4, h5, h6) {\n font-family: var(--atbl-font-heading, var(--atbl-input-font-heading, var(--atbl-font)));\n font-size: var(--atbl-type-widget-size);\n color: var(--atbl-muted);\n font-weight: var(--atbl-type-label-weight);\n line-height: var(--atbl-type-heading-leading);\n }\n}\n\n/* packages/data-app-react/src/ui/TextWidget.css */\n@layer atbl.components {\n .altertable-text-widget .altertable-text-content {\n min-block-size: calc(3em + 2 * var(--atbl-space-sm));\n }\n\n .altertable-text-widget-skeleton {\n display: grid;\n gap: var(--atbl-space-sm);\n max-width: var(--atbl-text-measure);\n }\n\n .altertable-text-widget-skeleton > .altertable-skeleton {\n width: 100%;\n height: 1em;\n }\n\n .altertable-text-widget-skeleton > :last-child {\n width: 65%;\n }\n}\n\n/* packages/data-app-react/src/ui/Breakdown.css */\n@layer atbl.components {\n .altertable-breakdown {\n display: grid;\n gap: 12px;\n min-width: 0;\n }\n\n .altertable-breakdown-summary {\n display: flex;\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n justify-content: space-between;\n align-items: baseline;\n gap: 12px;\n }\n\n .altertable-breakdown-summary strong {\n color: var(--atbl-text);\n font-size: var(--atbl-type-label-size);\n font-variant-numeric: tabular-nums;\n flex: none;\n font-weight: 650;\n }\n\n .altertable-breakdown-bar {\n display: flex;\n overflow: hidden;\n background: var(--atbl-subtle);\n border-radius: 999px;\n height: 12px;\n }\n\n .altertable-breakdown-bar > span {\n display: block;\n flex: none;\n height: 100%;\n }\n\n .altertable-breakdown-list {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));\n gap: 6px 18px;\n min-width: 0;\n margin: 0;\n }\n\n .altertable-breakdown-row {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto auto;\n border-bottom: 1px solid var(--atbl-border);\n font-size: var(--atbl-type-label-size);\n align-items: baseline;\n column-gap: 8px;\n min-width: 0;\n padding: 8px 0;\n }\n\n .altertable-breakdown-row dt {\n display: flex;\n overflow-wrap: anywhere;\n color: var(--atbl-text);\n align-items: baseline;\n gap: 7px;\n min-width: 0;\n }\n\n .altertable-breakdown-row dd {\n font-variant-numeric: tabular-nums;\n text-align: end;\n white-space: nowrap;\n margin: 0;\n }\n\n .altertable-breakdown-swatch {\n display: inline-block;\n background: var(--altertable-breakdown-color);\n border-radius: 2px;\n flex: none;\n width: 8px;\n height: 8px;\n }\n\n .altertable-breakdown-row[data-empty=\"true\"] .altertable-breakdown-swatch {\n border: 1px solid var(--atbl-border);\n background: none;\n }\n\n .altertable-breakdown-value {\n color: var(--atbl-text);\n font-weight: 650;\n }\n\n .altertable-breakdown-share {\n color: var(--atbl-muted);\n min-width: 4ch;\n }\n}\n\n/* packages/data-app-react/src/ui/Ranking.css */\n@layer atbl.components {\n .altertable-ranking {\n display: grid;\n gap: var(--atbl-space-md);\n list-style: none;\n min-width: 0;\n margin: 0;\n padding: 0;\n }\n\n .altertable-ranking li {\n display: grid;\n gap: 7px;\n min-width: 0;\n }\n\n .altertable-ranking-reading {\n display: flex;\n justify-content: space-between;\n align-items: baseline;\n gap: 12px;\n min-width: 0;\n }\n\n .altertable-ranking-reading > span {\n overflow-wrap: anywhere;\n font-family: var(--atbl-font-heading, var(--atbl-input-font-heading, var(--atbl-font)));\n font-weight: var(--atbl-type-label-weight);\n letter-spacing: -.01em;\n min-width: 0;\n line-height: 1.3;\n }\n\n .altertable-ranking-reading strong {\n font-family: var(--atbl-font-heading, var(--atbl-input-font-heading, var(--atbl-font)));\n font-variant-numeric: tabular-nums;\n flex: none;\n font-weight: 650;\n }\n\n .altertable-ranking-track {\n overflow: hidden;\n background: var(--atbl-subtle);\n border-radius: 999px;\n height: 6px;\n }\n\n .altertable-ranking-track > span {\n display: block;\n border-radius: inherit;\n background: var(--atbl-chart-1);\n height: 100%;\n }\n\n .altertable-ranking-detail {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n line-height: 1.45;\n }\n}\n\n/* packages/data-app-react/src/ui/WidgetDisclosure.css */\n@layer atbl.components {\n .altertable-widget-disclosure {\n margin: 16px 20px 20px;\n }\n\n .altertable-widget-disclosure > summary {\n display: inline-flex;\n border-radius: var(--atbl-radius-control);\n color: var(--atbl-text);\n font-size: var(--atbl-type-label-size);\n font-weight: var(--atbl-type-label-weight);\n list-style: none;\n align-items: center;\n gap: 8px;\n min-height: 38px;\n padding: 0 10px;\n }\n\n .altertable-widget-disclosure > summary::-webkit-details-marker {\n display: none;\n }\n\n .altertable-widget-disclosure > summary:hover, .altertable-widget-disclosure[open] > summary {\n background: var(--atbl-subtle);\n }\n\n .altertable-widget-disclosure > summary svg {\n color: var(--atbl-muted);\n transition: transform var(--atbl-duration-normal) var(--atbl-ease-standard);\n }\n\n .altertable-widget-disclosure[open] > summary svg {\n transform: rotate(180deg);\n }\n\n .altertable-widget-disclosure-content {\n margin-top: 12px;\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-widget-disclosure > summary svg {\n transition: none;\n }\n }\n}\n\n/* packages/data-app-react/src/ui/Comparison.css */\n@layer atbl.components {\n .altertable-comparison-visual {\n display: grid;\n gap: var(--atbl-space-lg);\n width: 100%;\n margin: 0;\n }\n\n .altertable-comparison-visual figcaption {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-label-size);\n font-weight: var(--atbl-type-heading-weight);\n }\n\n .altertable-comparison-row {\n display: grid;\n gap: var(--atbl-space-sm);\n }\n\n .altertable-comparison-row > div {\n display: flex;\n justify-content: space-between;\n align-items: baseline;\n gap: var(--atbl-space-md);\n flex-wrap: wrap;\n }\n\n .altertable-comparison-row > div > span {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-label-size);\n }\n\n .altertable-comparison-row strong {\n color: var(--atbl-text);\n font-family: var(--atbl-font-heading, var(--atbl-input-font-heading, var(--atbl-font)));\n font-weight: var(--atbl-type-emphasis-weight);\n line-height: var(--atbl-type-metric-leading);\n font-size: var(--atbl-type-metric-size);\n font-variant-numeric: tabular-nums;\n overflow-wrap: anywhere;\n letter-spacing: -.04em;\n max-inline-size: 100%;\n }\n\n .altertable-comparison-track {\n display: block;\n overflow: hidden;\n background: var(--atbl-subtle);\n border-radius: 999px;\n width: 100%;\n height: 10px;\n }\n\n .altertable-comparison-track > span {\n display: block;\n border-radius: inherit;\n background: var(--atbl-chart-1);\n min-width: 2px;\n height: 100%;\n }\n\n .altertable-comparison-row[data-period=\"previous\"] .altertable-comparison-track > span {\n background: var(--atbl-muted);\n opacity: .45;\n }\n\n .altertable-comparison-change {\n display: inline-flex;\n align-items: center;\n gap: var(--atbl-space-xs);\n color: var(--atbl-muted);\n font-size: var(--atbl-type-label-size);\n font-weight: var(--atbl-type-label-weight);\n font-variant-numeric: tabular-nums;\n margin: 0;\n }\n\n .altertable-comparison-change[data-tone=\"good\"] {\n color: var(--atbl-positive);\n }\n\n .altertable-comparison-change[data-tone=\"bad\"] {\n color: var(--atbl-negative, var(--atbl-danger));\n }\n\n .altertable-about-visual .altertable-comparison-visual {\n gap: var(--atbl-space-md);\n }\n\n .altertable-about-visual .altertable-comparison-row {\n gap: var(--atbl-space-xs);\n }\n\n .altertable-comparison-visual[data-emphasis=\"story\"] {\n gap: clamp(var(--atbl-space-lg), 4vh, calc(var(--atbl-space-xl) + var(--atbl-space-xs)));\n }\n\n .altertable-comparison-visual[data-emphasis=\"story\"] figcaption {\n font-size: var(--atbl-type-body-size);\n }\n\n .altertable-comparison-visual[data-emphasis=\"story\"] .altertable-comparison-row[data-period=\"current\"] > div {\n align-items: flex-start;\n gap: var(--atbl-space-sm);\n flex-direction: column-reverse;\n }\n\n .altertable-comparison-visual[data-emphasis=\"story\"] .altertable-comparison-row[data-period=\"current\"] strong {\n font-size: clamp(calc(var(--atbl-type-metric-size) * 1.5), 7vw, calc(var(--atbl-type-metric-size) * 2.75));\n line-height: 1;\n }\n\n .altertable-comparison-visual[data-emphasis=\"story\"] .altertable-comparison-row[data-period=\"previous\"] strong {\n font-size: var(--atbl-type-metric-size);\n }\n\n .altertable-comparison-visual[data-emphasis=\"story\"] .altertable-comparison-track {\n height: 12px;\n }\n\n .altertable-comparison-visual[data-emphasis=\"story\"] .altertable-comparison-change {\n font-size: var(--atbl-type-body-size);\n }\n\n .altertable-about-visual .altertable-comparison-visual[data-emphasis=\"story\"] .altertable-comparison-row[data-period=\"current\"] strong {\n font-size: calc(var(--atbl-type-metric-size) * 1.125);\n }\n}\n\n/* packages/data-app-react/src/ui/BarChart.css */\n@layer atbl.components {\n .altertable-selectable-bars {\n min-width: 0;\n }\n\n .altertable-selectable-bars-scroll {\n overflow-x: auto;\n overflow-y: hidden;\n width: auto;\n min-width: 0;\n height: 260px;\n margin: 12px 2px 14px;\n }\n\n .altertable-selectable-bars-item {\n display: flex;\n color: var(--atbl-muted);\n background: none;\n border: 0;\n flex-direction: column;\n flex: 1;\n align-items: center;\n min-width: 36px;\n padding: 0;\n }\n\n .altertable-selectable-bars-item:focus {\n outline: none;\n }\n\n .altertable-selectable-bars-area {\n display: flex;\n border-bottom: 1px solid var(--atbl-border);\n justify-content: center;\n align-items: end;\n width: 100%;\n height: 220px;\n }\n\n .altertable-selectable-bars-label {\n color: inherit;\n font: inherit;\n font-size: var(--atbl-type-meta-size);\n white-space: nowrap;\n background: none;\n border: 0;\n padding: 0;\n }\n\n .altertable-chart-item-actions {\n display: flex;\n flex-direction: column;\n flex: 1;\n min-width: 36px;\n }\n\n .altertable-chart-item-actions > .altertable-tooltip-trigger.altertable-chart-column[data-variant=\"chart\"] {\n flex: 1;\n align-items: flex-start;\n width: auto;\n min-width: 36px;\n height: auto;\n }\n\n .altertable-chart-item-actions .altertable-chart-column > button {\n width: 100%;\n }\n\n .altertable-chart-item-actions > span {\n align-self: center;\n }\n\n .altertable-chart-item-actions > span .altertable-button {\n font-size: var(--atbl-type-meta-size);\n min-width: 0;\n padding: 4px 6px;\n }\n\n .altertable-selectable-bars-plot {\n position: relative;\n }\n\n .altertable-selectable-bars-items {\n position: relative;\n display: flex;\n }\n\n .altertable-selectable-bars-items > .altertable-chart-item-actions > .altertable-chart-column {\n align-self: stretch;\n }\n\n .altertable-chart-item-label-row {\n display: flex;\n justify-content: center;\n align-items: center;\n gap: var(--atbl-space-xs);\n min-height: var(--atbl-control-compact-height);\n color: var(--atbl-muted);\n min-width: 0;\n padding: 4px 4px 0;\n }\n\n .altertable-chart-item-label-row > span {\n display: inline-flex;\n }\n\n .altertable-chart-item-label-row .altertable-selectable-bars-label {\n --atbl-control-hover-surface: transparent;\n --atbl-control-open-surface: transparent;\n --atbl-control-pressed-surface: transparent;\n display: inline-flex;\n color: inherit;\n align-items: center;\n gap: 4px;\n min-width: 0;\n max-width: 100%;\n min-height: 0;\n padding: 0;\n }\n\n .altertable-selectable-bars-scroll[data-time-axis=\"true\"] :-webkit-any(.altertable-selectable-bars-item, .altertable-chart-item-actions, .altertable-tooltip-trigger.altertable-chart-column) {\n min-width: 0;\n }\n\n .altertable-selectable-bars-scroll[data-time-axis=\"true\"] :-moz-any(.altertable-selectable-bars-item, .altertable-chart-item-actions, .altertable-tooltip-trigger.altertable-chart-column) {\n min-width: 0;\n }\n\n .altertable-selectable-bars-scroll[data-time-axis=\"true\"] :is(.altertable-selectable-bars-item, .altertable-chart-item-actions, .altertable-tooltip-trigger.altertable-chart-column) {\n min-width: 0;\n }\n\n .altertable-selectable-bars-scroll[data-time-axis=\"true\"] .altertable-chart-item-actions > .altertable-tooltip-trigger.altertable-chart-column[data-variant=\"chart\"] {\n min-width: 0;\n }\n\n .altertable-selectable-bars-scroll[data-time-axis=\"true\"] .altertable-chart-item-label-row {\n position: relative;\n padding-inline-start: 0;\n padding-inline-end: 0;\n }\n\n .altertable-selectable-bars-scroll[data-time-axis=\"true\"] .altertable-chart-item-label-row:not([data-time-tick=\"true\"]) > span {\n display: none;\n }\n\n .altertable-selectable-bars-scroll[data-time-axis=\"true\"] .altertable-chart-item-label-row > span {\n position: absolute;\n pointer-events: none;\n width: max-content;\n max-width: none;\n left: 50%;\n transform: translateX(-50%);\n }\n\n .altertable-selectable-bars-scroll[data-time-axis=\"true\"] .altertable-selectable-bars-label > span {\n overflow: visible;\n }\n\n .altertable-selectable-bars-label > span {\n overflow: hidden;\n text-overflow: ellipsis;\n min-width: 0;\n }\n\n .altertable-selectable-bars-label > svg {\n flex-shrink: 0;\n }\n\n .altertable-chart-item-label-row button.altertable-selectable-bars-label {\n padding: var(--atbl-space-xs) 6px;\n border-radius: var(--atbl-radius-control);\n border: 1px solid #0000;\n }\n\n .altertable-chart-item-label-row button.altertable-selectable-bars-label:-webkit-any(:hover, [data-hovered], [aria-expanded=\"true\"]) {\n border-color: var(--atbl-border);\n }\n\n .altertable-chart-item-label-row button.altertable-selectable-bars-label:-moz-any(:hover, [data-hovered], [aria-expanded=\"true\"]) {\n border-color: var(--atbl-border);\n }\n\n .altertable-chart-item-label-row button.altertable-selectable-bars-label:is(:hover, [data-hovered], [aria-expanded=\"true\"]) {\n border-color: var(--atbl-border);\n }\n}\n\n/* packages/data-app-react/src/ui/UpdatedAt.css */\n@layer atbl.components {\n .altertable-updated-at {\n color: var(--atbl-muted);\n font: var(--atbl-type-meta-size) / var(--atbl-type-label-leading) var(--atbl-font);\n background: none;\n border: 0;\n align-self: flex-start;\n width: -moz-fit-content;\n width: fit-content;\n padding: 0;\n }\n\n .altertable-updated-at:hover {\n color: var(--atbl-text);\n }\n}\n\n/* packages/data-app-react/src/ui/data-identifiers.css */\n@layer atbl.components {\n .altertable-data-identifier {\n border: 1px solid color-mix(in srgb, var(--atbl-border) 65%, var(--atbl-surface));\n background: color-mix(in srgb, var(--atbl-subtle) 65%, var(--atbl-surface));\n color: var(--atbl-text);\n font-size: .85em;\n font-weight: 450;\n line-height: inherit;\n letter-spacing: -.01em;\n overflow-wrap: anywhere;\n box-decoration-break: clone;\n -webkit-box-decoration-break: clone;\n border-radius: .3em;\n padding: .06em .24em .08em;\n }\n\n .altertable-data-identifier-path {\n color: var(--atbl-muted);\n }\n\n .altertable-data-identifier-name {\n font-weight: 550;\n }\n}\n\n/* packages/data-app-react/src/ui/GlossaryDefinition.css */\n@layer atbl.components {\n .altertable-glossary-definition-trigger {\n display: inline;\n color: inherit;\n font: inherit;\n font-weight: inherit;\n text-align: inherit;\n text-decoration: underline dotted var(--atbl-muted);\n text-decoration-thickness: 1px;\n text-underline-offset: .2em;\n background: none;\n border: 0;\n padding: 0;\n }\n\n .altertable-glossary-definition-trigger:hover, .altertable-glossary-definition-trigger[data-open=\"true\"] {\n text-decoration-color: var(--atbl-text);\n }\n\n .altertable-glossary-definition-trigger:focus-visible {\n border-radius: 2px;\n }\n\n .altertable-glossary-definition-popover {\n width: min(320px, 100vw - 24px);\n }\n\n .altertable-glossary-definition-popover > strong {\n display: block;\n font-size: var(--atbl-type-label-size);\n margin-bottom: 4px;\n font-weight: 650;\n }\n}\n\n/* packages/data-app-react/src/ui/ExportControl.css */\n@layer atbl.components {\n .altertable-export-popover {\n z-index: 1000;\n max-height: min(320px, var(--available-height));\n overflow: auto;\n padding: var(--atbl-dropdown-padding);\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-control);\n background: var(--atbl-surface);\n box-shadow: var(--atbl-shadow-overlay);\n color: var(--atbl-text);\n max-width: min(320px, 100vw - 32px);\n }\n\n .altertable-export-popover [role=\"menu\"] {\n display: flex;\n gap: var(--atbl-dropdown-item-gap);\n outline: none;\n flex-direction: column;\n }\n\n .altertable-export-popover [role=\"menuitem\"] {\n display: flex;\n padding: var(--atbl-dropdown-item-padding-block) var(--atbl-dropdown-item-padding-inline);\n font-size: var(--atbl-type-label-size);\n outline: none;\n border-radius: 4px;\n justify-content: space-between;\n align-items: center;\n gap: 16px;\n min-height: 34px;\n }\n\n .altertable-export-format {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n flex: none;\n }\n\n .altertable-export-all {\n position: relative;\n margin-top: 9px;\n }\n\n .altertable-export-all:before {\n position: absolute;\n border-top: 1px solid var(--atbl-border);\n content: \"\";\n top: -5px;\n left: 0;\n right: 0;\n }\n}\n\n/* packages/data-app-react/src/ui/TrendChart.css */\n@layer atbl.components {\n .altertable-trend-chart {\n min-width: 0;\n }\n\n .altertable-trend-scroll {\n overflow-x: auto;\n margin: 12px 0 14px;\n padding: 3px;\n }\n\n .altertable-trend-plot {\n position: relative;\n }\n\n .altertable-trend-points {\n position: relative;\n display: flex;\n width: 100%;\n }\n\n .altertable-trend-points > .altertable-chart-item-actions > .altertable-chart-column {\n align-self: stretch;\n }\n\n .altertable-trend-point {\n --atbl-focus-outline: none;\n color: var(--atbl-muted);\n background: none;\n border: 0;\n flex: 1;\n min-width: 0;\n padding: 0;\n }\n\n .altertable-trend-point:focus {\n outline: none;\n }\n\n .altertable-trend-point:focus-visible .altertable-trend-label {\n color: var(--atbl-text);\n text-decoration: underline;\n text-underline-offset: .2em;\n }\n\n .altertable-trend-hit {\n display: block;\n position: relative;\n height: 220px;\n }\n\n .altertable-trend-label {\n display: block;\n font-size: var(--atbl-type-meta-size);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n padding: 8px 3px 0;\n }\n}\n\n/* packages/data-app-react/src/ui/ChartLegend.css */\n@layer atbl.components {\n .altertable-chart-legend-container {\n container: atbl-chart-legend / inline-size;\n width: 100%;\n min-width: 0;\n }\n\n .altertable-chart-legend {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n align-items: center;\n gap: var(--atbl-space-sm) var(--atbl-space-md);\n list-style: none;\n color: var(--atbl-text);\n font-size: var(--atbl-type-meta-size);\n line-height: var(--atbl-type-label-leading);\n font-variant-numeric: tabular-nums;\n min-width: 0;\n margin: 0;\n padding: 0;\n }\n\n .altertable-chart-legend[data-layout=\"vertical\"] {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n }\n\n .altertable-chart-legend[data-align=\"center\"] {\n justify-content: center;\n }\n\n .altertable-chart-legend[data-align=\"end\"] {\n justify-content: end;\n }\n\n .altertable-chart-legend-item {\n display: flex;\n align-items: center;\n gap: var(--atbl-space-xs);\n min-width: 0;\n max-width: 100%;\n }\n\n .altertable-chart-legend-item[data-inactive] {\n opacity: var(--atbl-control-disabled-opacity);\n }\n\n .altertable-chart-legend-marker {\n display: inline-block;\n vertical-align: middle;\n flex: none;\n width: 8px;\n height: 8px;\n }\n\n .altertable-chart-legend-marker:not([data-kind=\"square\"]) {\n width: 20px;\n height: 12px;\n }\n\n .altertable-chart-legend-label {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n min-width: 0;\n }\n\n .altertable-chart-legend-action {\n display: flex;\n align-items: center;\n gap: inherit;\n color: inherit;\n font: inherit;\n text-align: left;\n background: none;\n border: 0;\n min-width: 0;\n max-width: 100%;\n padding: 0;\n }\n\n .altertable-chart-legend[data-layout=\"vertical\"][data-align=\"center\"] {\n justify-items: center;\n }\n\n .altertable-chart-legend[data-layout=\"vertical\"][data-align=\"end\"] {\n justify-items: end;\n }\n\n .altertable-chart-legend-overflow {\n grid-column: -2 / -1;\n color: var(--atbl-muted);\n min-width: 0;\n }\n\n @container atbl-chart-legend (width >= 240px) {\n .altertable-chart-legend:-webkit-any([data-layout=\"horizontal\"], [data-layout=\"single-row\"]) {\n grid-template-columns: repeat(2, minmax(0, 1fr));\n }\n\n .altertable-chart-legend:-moz-any([data-layout=\"horizontal\"], [data-layout=\"single-row\"]) {\n grid-template-columns: repeat(2, minmax(0, 1fr));\n }\n\n .altertable-chart-legend:is([data-layout=\"horizontal\"], [data-layout=\"single-row\"]) {\n grid-template-columns: repeat(2, minmax(0, 1fr));\n }\n }\n\n @container atbl-chart-legend (width >= 480px) {\n .altertable-chart-legend:-webkit-any([data-layout=\"horizontal\"], [data-layout=\"single-row\"]) {\n grid-template-columns: repeat(3, minmax(0, 1fr));\n }\n\n .altertable-chart-legend:-moz-any([data-layout=\"horizontal\"], [data-layout=\"single-row\"]) {\n grid-template-columns: repeat(3, minmax(0, 1fr));\n }\n\n .altertable-chart-legend:is([data-layout=\"horizontal\"], [data-layout=\"single-row\"]) {\n grid-template-columns: repeat(3, minmax(0, 1fr));\n }\n }\n\n @container atbl-chart-legend (width >= 720px) {\n .altertable-chart-legend:-webkit-any([data-layout=\"horizontal\"], [data-layout=\"single-row\"]) {\n grid-template-columns: repeat(4, minmax(0, 1fr));\n }\n\n .altertable-chart-legend:-moz-any([data-layout=\"horizontal\"], [data-layout=\"single-row\"]) {\n grid-template-columns: repeat(4, minmax(0, 1fr));\n }\n\n .altertable-chart-legend:is([data-layout=\"horizontal\"], [data-layout=\"single-row\"]) {\n grid-template-columns: repeat(4, minmax(0, 1fr));\n }\n }\n\n .altertable-chart-legend[data-layout=\"single-row\"] {\n align-items: start;\n }\n\n @container atbl-chart-legend (width < 240px) {\n .altertable-chart-legend[data-layout=\"single-row\"] {\n grid-template-columns: repeat(2, minmax(0, 1fr));\n }\n }\n}\n\n/* packages/data-app-react/src/ui/PieChart.css */\n@layer atbl.components {\n .altertable-pie-chart {\n min-width: 0;\n }\n\n .altertable-pie-plot {\n position: relative;\n display: grid;\n place-items: center;\n margin: 12px 0 14px;\n }\n\n .altertable-pie-plot svg {\n display: block;\n width: min(100%, 220px);\n height: auto;\n }\n\n .altertable-pie-slice {\n stroke: var(--atbl-surface);\n stroke-width: 2;\n transition: opacity var(--atbl-duration-fast) var(--atbl-ease-standard);\n }\n\n .altertable-pie-plot svg:has(.altertable-pie-slice[data-active]) .altertable-pie-slice:not([data-active]) {\n opacity: .3;\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-pie-slice {\n transition: none;\n }\n }\n\n .altertable-pie-empty {\n fill: var(--atbl-subtle);\n stroke: var(--atbl-border);\n }\n\n .altertable-pie-empty-label {\n position: absolute;\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n }\n\n .altertable-pie-legend {\n gap: 0;\n margin-bottom: 14px;\n }\n\n .altertable-pie-legend .altertable-chart-legend-overflow {\n padding-block-start: var(--atbl-space-sm);\n }\n\n .altertable-pie-legend .altertable-tooltip-trigger button {\n display: flex;\n color: var(--atbl-text);\n text-align: left;\n font-size: var(--atbl-type-meta-size);\n font-variant-numeric: tabular-nums;\n background: none;\n border: 0;\n align-items: center;\n gap: 10px;\n width: 100%;\n min-width: 0;\n padding: 8px 4px;\n }\n\n .altertable-pie-legend [data-open] > button {\n background: var(--atbl-subtle);\n }\n\n .altertable-pie-legend .altertable-tooltip-trigger button:focus {\n outline: none;\n }\n\n .altertable-pie-label {\n overflow-wrap: anywhere;\n min-width: 0;\n }\n\n .altertable-pie-menu-indicator {\n color: var(--atbl-muted);\n opacity: .5;\n }\n\n .altertable-pie-legend button:-webkit-any(:hover, :focus-visible, [aria-expanded=\"true\"]) .altertable-pie-menu-indicator {\n color: var(--atbl-text);\n opacity: 1;\n }\n\n .altertable-pie-legend button:-moz-any(:hover, :focus-visible, [aria-expanded=\"true\"]) .altertable-pie-menu-indicator {\n color: var(--atbl-text);\n opacity: 1;\n }\n\n .altertable-pie-legend button:is(:hover, :focus-visible, [aria-expanded=\"true\"]) .altertable-pie-menu-indicator {\n color: var(--atbl-text);\n opacity: 1;\n }\n\n .altertable-tooltip-trigger.altertable-pie-tooltip[data-variant=\"chart\"] {\n width: min(100%, 220px);\n height: auto;\n }\n\n .altertable-pie-legend .altertable-chart-legend-item {\n border-bottom: 1px solid var(--atbl-border);\n }\n\n .altertable-pie-legend .altertable-tooltip-trigger {\n flex: 1;\n width: 100%;\n min-width: 0;\n }\n\n .altertable-pie-legend .altertable-tooltip-trigger button {\n font: inherit;\n }\n\n .altertable-pie-value {\n margin-inline-start: auto;\n }\n\n .altertable-pie-share {\n color: var(--atbl-muted);\n text-align: end;\n min-inline-size: 4ch;\n }\n\n .altertable-pie-slice:focus {\n outline: none;\n }\n\n .altertable-pie-plot svg:has(.altertable-pie-slice:focus-visible) .altertable-pie-slice:not(:focus-visible) {\n opacity: .3;\n }\n\n .altertable-pie-slice:focus-visible {\n filter: brightness(1.15);\n }\n\n @media (forced-colors: active) {\n .altertable-pie-slice:focus-visible {\n stroke: Highlight;\n stroke-width: 3px;\n }\n }\n}\n\n/* packages/data-app-react/src/ui/ScatterChart.css */\n@layer atbl.components {\n .altertable-scatter-chart {\n min-width: 0;\n }\n\n .altertable-scatter-axis-title {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n overflow-wrap: anywhere;\n margin: 14px 0 18px;\n }\n\n .altertable-scatter-axes {\n padding: 0 12px 24px 48px;\n }\n\n .altertable-scatter-plot {\n position: relative;\n border-left: 1px solid var(--atbl-border);\n height: 220px;\n }\n\n .altertable-scatter-gridline {\n position: absolute;\n border-top: 1px solid var(--atbl-border);\n pointer-events: none;\n left: 0;\n right: 0;\n }\n\n .altertable-scatter-gridline > span {\n position: absolute;\n text-align: right;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n font-variant-numeric: tabular-nums;\n width: 40px;\n top: 0;\n right: calc(100% + 8px);\n transform: translateY(-50%);\n }\n\n .altertable-scatter-x-tick {\n position: absolute;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n font-variant-numeric: tabular-nums;\n max-width: 32%;\n top: calc(100% + 8px);\n transform: translateX(-50%);\n }\n\n .altertable-scatter-x-tick[data-edge=\"0\"] {\n transform: none;\n }\n\n .altertable-scatter-x-tick[data-edge=\"2\"] {\n transform: translateX(-100%);\n }\n\n .altertable-scatter-x-title {\n text-align: center;\n margin: 8px 0 16px;\n }\n\n .altertable-scatter-point {\n display: grid;\n background: none;\n border: 0;\n border-radius: 50%;\n place-items: center;\n width: 24px;\n height: 24px;\n padding: 0;\n }\n\n .altertable-scatter-point > span {\n background: var(--atbl-chart-1);\n opacity: .65;\n border: 1px solid var(--atbl-surface);\n border-radius: 50%;\n width: 9px;\n height: 9px;\n }\n\n .altertable-scatter-tooltip[data-open] {\n z-index: 1;\n }\n\n .altertable-scatter-tooltip[data-open] .altertable-scatter-point > span {\n opacity: 1;\n width: 12px;\n height: 12px;\n }\n\n .altertable-scatter-plot:has([data-open]) .altertable-scatter-tooltip:not([data-open]) .altertable-scatter-point > span {\n opacity: .3;\n }\n\n .altertable-scatter-point:focus {\n outline: none;\n }\n\n .altertable-tooltip-trigger.altertable-scatter-tooltip[data-variant=\"chart\"] {\n position: absolute;\n width: 24px;\n height: 24px;\n transform: translate(-50%, 50%);\n }\n}\n\n/* packages/data-app-react/src/ui/ComposedChart.css */\n@layer atbl.components {\n .altertable-composed-chart {\n font: inherit;\n color: var(--atbl-text);\n width: 100%;\n min-width: 0;\n }\n\n .altertable-chart-canvas {\n position: absolute;\n pointer-events: none;\n width: 100%;\n height: 220px;\n inset: 0 0 auto;\n }\n\n .altertable-composed-chart-legend-below {\n padding-top: var(--atbl-space-md);\n }\n\n .altertable-composed-chart-legend-above {\n padding-bottom: var(--atbl-space-md);\n }\n\n .altertable-composed-chart[data-atbl-internal-pointer-focus] {\n --atbl-focus-outline: none;\n }\n\n .altertable-composed-chart [data-atbl-focus=\"inset\"]:focus:not(:focus-visible) {\n outline: none;\n }\n\n .altertable-composed-chart svg [tabindex=\"-1\"]:focus {\n outline: none;\n }\n}\n\n/* packages/data-app-react/src/ui/AnalyticsCharts.css */\n@layer atbl.components {\n .altertable-funnel-chart, .altertable-retention-chart, .altertable-journey-chart {\n font-size: var(--atbl-type-meta-size);\n font-variant-numeric: tabular-nums;\n min-width: 0;\n }\n\n .altertable-funnel-header {\n display: grid;\n gap: var(--atbl-space-md);\n padding-bottom: var(--atbl-space-lg);\n }\n\n .altertable-funnel-summary-item {\n display: grid;\n gap: var(--atbl-space-xs);\n }\n\n .altertable-funnel-series-label {\n display: flex;\n align-items: center;\n gap: var(--atbl-space-xs);\n color: var(--atbl-muted);\n min-width: 0;\n }\n\n .altertable-funnel-series-value {\n font-size: var(--atbl-type-section-size);\n font-weight: var(--atbl-type-emphasis-weight);\n }\n\n .altertable-funnel-path {\n color: var(--atbl-muted);\n overflow-wrap: anywhere;\n margin: 0;\n }\n\n .altertable-funnel-scroll, .altertable-journey-scroll {\n overflow: auto;\n width: 100%;\n }\n\n .altertable-journey-scroll {\n max-height: 900px;\n }\n\n .altertable-analytics-note {\n color: var(--atbl-muted);\n overflow-wrap: anywhere;\n margin: 8px 0;\n }\n\n .altertable-journey-plot {\n position: relative;\n }\n\n .altertable-journey-plot > svg {\n position: absolute;\n inset: 0;\n }\n\n .altertable-journey-stage {\n position: absolute;\n color: var(--atbl-muted);\n top: 0;\n }\n\n .altertable-journey-node {\n position: absolute;\n }\n\n .altertable-journey-bar {\n position: absolute;\n top: 0;\n bottom: 0;\n background: var(--atbl-muted);\n left: 0;\n }\n\n .altertable-journey-bar[data-event] {\n background: var(--atbl-chart-5);\n }\n\n .altertable-journey-label {\n position: absolute;\n display: flex;\n box-sizing: border-box;\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-surface);\n background: var(--atbl-surface);\n color: var(--atbl-muted);\n overflow-wrap: anywhere;\n flex-direction: column;\n justify-content: center;\n gap: 2px;\n width: 100%;\n min-height: 64px;\n margin-bottom: 8px;\n padding: 8px 36px 8px 8px;\n bottom: 100%;\n }\n\n .altertable-journey-name {\n display: -webkit-box;\n -webkit-line-clamp: 2;\n overflow: hidden;\n color: var(--atbl-text);\n font-weight: var(--atbl-type-label-weight);\n -webkit-box-orient: vertical;\n }\n\n .altertable-journey-expand {\n position: absolute;\n margin-bottom: 12px;\n bottom: 100%;\n right: 4px;\n }\n\n .altertable-journey-more {\n position: absolute;\n margin-top: 8px;\n top: 100%;\n left: 0;\n }\n\n .altertable-funnel-tooltip-detail {\n display: block;\n color: var(--atbl-muted);\n overflow-wrap: anywhere;\n }\n}\n\n/* packages/data-app-react/src/annotations/colors.css */\n@layer atbl.components {\n :root {\n --atbl-annotation-accent: #c026d3;\n --atbl-annotation-accent-hover: #a21caf;\n --atbl-annotation-on-accent: #fff;\n }\n\n .altertable-annotation-trigger, .altertable-annotation-composer {\n --atbl-control-selected-surface: var(--atbl-annotation-accent);\n --atbl-control-selected-text: var(--atbl-annotation-on-accent);\n --atbl-focus-outline: 2px solid var(--atbl-annotation-accent);\n }\n\n .altertable-annotation-trigger[aria-pressed=\"true\"], .altertable-annotation-trigger:not([aria-pressed]) {\n background: var(--atbl-annotation-accent);\n color: var(--atbl-annotation-on-accent);\n border-color: #0000;\n }\n\n .altertable-annotation-trigger[aria-pressed=\"true\"]:hover:not(:disabled) {\n --atbl-control-selected-surface: var(--atbl-annotation-accent-hover);\n }\n\n .altertable-annotation-trigger:not([aria-pressed]) {\n --atbl-control-hover-surface: var(--atbl-annotation-accent-hover);\n --atbl-control-pressed-surface: var(--atbl-annotation-accent-hover);\n }\n}\n\n/* packages/data-app-react/src/annotations/AnnotationBar.css */\n@layer atbl.components {\n .altertable-annotation-bar, .altertable-annotation-bar-panel {\n --bar-surface: #202326;\n --bar-text: #f2f3f4;\n --bar-muted: #aeb5bc;\n --bar-border: #3b4248;\n --bar-danger: #ffa6a0;\n --bar-danger-surface: #572723;\n --atbl-control-selected-surface: var(--atbl-subtle);\n --atbl-control-selected-text: var(--bar-text);\n --atbl-control-disabled-opacity: 1;\n --atbl-surface: var(--bar-surface);\n --atbl-text: var(--bar-text);\n --atbl-muted: var(--bar-muted);\n --atbl-border: var(--bar-border);\n --atbl-focus-outline: 2px solid var(--atbl-annotation-accent);\n --atbl-subtle: color-mix(in srgb, var(--bar-text) 8%, var(--bar-surface));\n color: var(--bar-text);\n background: var(--bar-surface);\n font: 14px / 1.5 var(--atbl-font);\n box-sizing: border-box;\n border: 1px solid var(--bar-border);\n box-shadow: 0 8px 28px #0003;\n }\n\n .altertable-tooltip-content:has( > .altertable-annotation-bar-tooltip) {\n --bar-surface: #202326;\n --bar-text: #f2f3f4;\n --bar-muted: #aeb5bc;\n --bar-border: #3b4248;\n --bar-danger: #ffa6a0;\n --bar-danger-surface: #572723;\n --atbl-control-selected-surface: var(--atbl-subtle);\n --atbl-control-selected-text: var(--bar-text);\n --atbl-control-disabled-opacity: 1;\n --atbl-surface: var(--bar-surface);\n --atbl-text: var(--bar-text);\n --atbl-muted: var(--bar-muted);\n --atbl-border: var(--bar-border);\n --atbl-focus-outline: 2px solid var(--atbl-annotation-accent);\n --atbl-subtle: color-mix(in srgb, var(--bar-text) 8%, var(--bar-surface));\n color: var(--bar-text);\n background: var(--bar-surface);\n font: 14px / 1.5 var(--atbl-font);\n box-sizing: border-box;\n border: 1px solid var(--bar-border);\n box-shadow: 0 8px 28px #0003;\n }\n\n .altertable-annotation-bar[data-theme=\"dark\"], .altertable-annotation-bar-panel[data-theme=\"dark\"] {\n --bar-surface: #f2f3f4;\n --bar-text: #151719;\n --bar-muted: #505963;\n --bar-border: #dfe3e6;\n --bar-danger: #b42318;\n --bar-danger-surface: #ffe3e3;\n }\n\n .altertable-tooltip-content:has( > .altertable-annotation-bar-tooltip[data-theme=\"dark\"]) {\n --bar-surface: #f2f3f4;\n --bar-text: #151719;\n --bar-muted: #505963;\n --bar-border: #dfe3e6;\n --bar-danger: #b42318;\n --bar-danger-surface: #ffe3e3;\n }\n\n .altertable-annotation-bar {\n position: fixed;\n z-index: 1200;\n display: flex;\n border-radius: 18px;\n align-items: center;\n gap: 4px;\n max-width: calc(100vw - 24px);\n padding: 8px;\n bottom: 16px;\n left: 50%;\n transform: translateX(-50%);\n }\n\n .altertable-annotation-bar .altertable-button, .altertable-annotation-bar-panel .altertable-button {\n color: var(--bar-muted);\n font: inherit;\n flex-shrink: 0;\n width: auto;\n transition: none;\n }\n\n .altertable-annotation-bar .altertable-annotation-bar-count {\n white-space: nowrap;\n color: var(--bar-text);\n padding-inline-start: 6px;\n padding-inline-end: 6px;\n }\n\n .altertable-annotation-bar .altertable-button[data-atbl-internal-drag-handle] {\n --atbl-cursor-action: grab;\n touch-action: none;\n }\n\n .altertable-annotation-bar .altertable-button[data-atbl-internal-drag-handle]:active {\n --atbl-cursor-action: grabbing;\n }\n\n .altertable-annotation-bar .altertable-annotation-bar-send {\n --atbl-control-hover-surface: var(--atbl-annotation-accent-hover);\n --atbl-control-pressed-surface: var(--atbl-annotation-accent-hover);\n background: var(--atbl-annotation-accent);\n color: var(--atbl-annotation-on-accent);\n border-color: #0000;\n border-radius: 12px;\n padding-inline-start: 14px;\n padding-inline-end: 14px;\n font-weight: 600;\n line-height: 1.25;\n }\n\n .altertable-annotation-bar-panel {\n position: fixed;\n z-index: 1201;\n overflow: auto;\n border-radius: 16px;\n width: min(420px, 100vw - 24px);\n max-height: min(440px, 45vh);\n margin: 0;\n padding: 6px;\n }\n\n .altertable-annotation-bar-panel header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 4px 8px;\n }\n\n .altertable-annotation-bar-row {\n display: flex;\n border-radius: 10px;\n align-items: center;\n gap: 8px;\n padding: 4px;\n }\n\n .altertable-annotation-bar-row:hover, .altertable-annotation-bar-row:focus-within {\n background: var(--atbl-subtle);\n }\n\n .altertable-annotation-bar-row + .altertable-annotation-bar-row {\n border-top: 1px solid var(--bar-border);\n }\n\n .altertable-annotation-bar-panel .altertable-annotation-bar-open {\n display: grid;\n text-align: left;\n flex: 1;\n justify-content: stretch;\n gap: 2px;\n min-width: 0;\n height: auto;\n padding: 4px 6px;\n }\n\n .altertable-annotation-bar-open strong {\n color: var(--bar-text);\n font-weight: 600;\n }\n\n .altertable-annotation-bar-open span {\n color: var(--bar-muted);\n overflow-wrap: anywhere;\n font-size: 13px;\n }\n\n .altertable-annotation-bar-panel .altertable-annotation-bar-open:hover:not(:disabled) {\n background: none;\n }\n\n .altertable-annotation-bar-error {\n position: absolute;\n background: var(--bar-surface);\n color: var(--bar-text);\n border: 1px solid var(--bar-border);\n border-radius: 10px;\n padding: 8px 12px;\n font-size: 12px;\n bottom: calc(100% + 8px);\n left: 0;\n right: 0;\n }\n\n @media (max-width: 420px) {\n .altertable-annotation-bar {\n gap: 0;\n padding: 6px;\n font-size: 12px;\n }\n\n .altertable-annotation-bar .altertable-annotation-bar-send {\n padding-inline-start: 10px;\n padding-inline-end: 10px;\n }\n }\n\n @media (max-width: 360px) {\n .altertable-annotation-bar .altertable-button[data-size=\"icon-compact\"] {\n width: 26px;\n min-width: 26px;\n }\n }\n\n .altertable-tooltip-content:has( > .altertable-annotation-bar-tooltip) {\n font-size: 12px;\n line-height: 1.3;\n }\n\n .altertable-annotation-bar .altertable-button:hover:not(:disabled), .altertable-annotation-bar-panel .altertable-button:hover:not(:disabled) {\n color: var(--bar-text);\n background: var(--atbl-subtle);\n }\n\n .altertable-annotation-bar .altertable-annotation-bar-send:hover:not(:disabled) {\n color: var(--atbl-annotation-on-accent);\n background: var(--atbl-annotation-accent-hover);\n }\n\n .altertable-annotation-bar .altertable-button:disabled, .altertable-annotation-bar-panel .altertable-button:disabled {\n color: var(--bar-muted);\n }\n\n .altertable-annotation-bar .altertable-annotation-bar-send:disabled {\n color: var(--bar-muted);\n background: var(--atbl-subtle);\n }\n\n .altertable-annotation-bar .altertable-annotation-bar-send {\n position: relative;\n }\n\n .altertable-annotation-bar-send[data-pending] .altertable-annotation-bar-send-label {\n visibility: hidden;\n }\n\n .altertable-annotation-bar-spinner {\n position: absolute;\n animation: 1s linear infinite annotation-bar-spin;\n margin: auto;\n inset: 0;\n }\n\n @keyframes annotation-bar-spin {\n to {\n rotate: 360deg;\n }\n }\n\n .altertable-annotation-discard-description {\n color: var(--atbl-muted);\n font: 14px / 1.55 var(--atbl-font);\n margin: 0;\n }\n\n .altertable-annotation-discard-confirm {\n color: var(--atbl-danger);\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-annotation-bar-spinner {\n animation: none;\n }\n }\n\n .altertable-annotation-bar .altertable-button[aria-pressed=\"true\"] {\n color: var(--bar-text);\n background: var(--atbl-subtle);\n }\n\n .altertable-annotation-undo {\n position: fixed;\n z-index: 1202;\n display: flex;\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-overlay);\n background: var(--atbl-surface);\n color: var(--atbl-text);\n box-shadow: var(--atbl-shadow-overlay);\n font: 13px / 1.5 var(--atbl-font);\n align-items: center;\n gap: 12px;\n padding: 8px 12px;\n bottom: 16px;\n left: 16px;\n }\n\n .altertable-annotation-thumbnail {\n border: 1px solid var(--bar-border);\n overflow: hidden;\n background: var(--bar-surface);\n --atbl-cursor-action: zoom-in;\n border-radius: 6px;\n flex-shrink: 0;\n width: 56px;\n height: 40px;\n padding: 0;\n }\n\n .altertable-annotation-thumbnail img {\n object-fit: contain;\n display: block;\n width: 100%;\n height: 100%;\n }\n\n .altertable-annotation-thumbnail:focus-visible {\n outline: 2px solid var(--atbl-annotation-accent);\n outline-offset: 2px;\n }\n\n .altertable-annotation-preview {\n display: block;\n object-fit: contain;\n width: 100%;\n max-height: 65vh;\n }\n\n .altertable-annotation-undo[data-bar-visible] {\n bottom: 88px;\n }\n\n .altertable-annotation-undo[data-inline] {\n position: static;\n box-shadow: none;\n border-radius: 8px;\n margin-top: 6px;\n }\n\n .altertable-sheet.altertable-annotation-image-dialog[data-placement=\"center\"] {\n width: min(960px, 100vw - 32px);\n }\n}\n\n/* packages/data-app-react/src/annotations/AnnotationControls.css */\n@layer atbl.components {\n .altertable-annotation-composer, .altertable-annotation-hint {\n --annotation-surface: var(--atbl-text);\n --annotation-text: var(--atbl-background);\n --annotation-muted: color-mix(in srgb, var(--annotation-text) 65%, var(--annotation-surface));\n --annotation-border: color-mix(in srgb, var(--annotation-text) 15%, var(--annotation-surface));\n }\n\n .altertable-tooltip-content:has( > .altertable-annotation-tooltip) {\n --annotation-surface: var(--atbl-text);\n --annotation-text: var(--atbl-background);\n --annotation-muted: color-mix(in srgb, var(--annotation-text) 65%, var(--annotation-surface));\n --annotation-border: color-mix(in srgb, var(--annotation-text) 15%, var(--annotation-surface));\n }\n\n .altertable-annotation-outline {\n position: fixed;\n z-index: 1100;\n pointer-events: none;\n border: 2px dashed var(--atbl-annotation-accent);\n background: var(--atbl-annotation-highlight, color-mix(in srgb, var(--atbl-annotation-accent) 8%, transparent));\n border-radius: 0;\n }\n\n .altertable-annotation-pin {\n --atbl-focus-outline: 2px solid var(--atbl-annotation-accent);\n position: fixed;\n z-index: 1101;\n cursor: pointer;\n display: grid;\n background: var(--atbl-annotation-accent);\n color: var(--atbl-annotation-on-accent);\n font: 600 12px var(--atbl-font);\n border: 0;\n border-radius: 50%;\n place-items: center;\n width: 24px;\n height: 24px;\n padding: 0;\n }\n\n .altertable-annotation-composer {\n z-index: 1102;\n display: flex;\n box-sizing: border-box;\n border: 1px solid var(--annotation-border);\n background: var(--annotation-surface);\n color: var(--annotation-text);\n font: 14px / 1.5 var(--atbl-font);\n border-radius: 24px;\n flex-wrap: wrap;\n align-items: center;\n gap: 4px;\n width: min(320px, 100vw - 24px);\n padding: 8px;\n box-shadow: 0 4px 16px #0002;\n }\n\n .altertable-annotation-composer textarea {\n field-sizing: content;\n box-sizing: border-box;\n resize: none;\n overscroll-behavior: contain;\n font: inherit;\n color: inherit;\n background: none;\n border: 0;\n border-radius: 12px;\n flex: 1;\n min-width: 0;\n max-height: min(160px, 30vh);\n padding: 6px 8px;\n }\n\n .altertable-annotation-composer textarea:focus-visible {\n outline: none;\n }\n\n .altertable-annotation-composer [role=\"alert\"] {\n color: var(--annotation-text);\n flex-basis: 100%;\n margin: 4px 0;\n padding: 0 8px;\n }\n\n .altertable-annotation-hint {\n position: fixed;\n z-index: 1102;\n left: 50%;\n bottom: calc(var(--atbl-frame-inset-bottom, 0px) + 16px);\n box-sizing: border-box;\n border: 1px solid var(--annotation-border);\n background: var(--annotation-surface);\n color: var(--annotation-text);\n font: 13px / 1.5 var(--atbl-font);\n pointer-events: none;\n border-radius: 24px;\n max-width: calc(100vw - 24px);\n padding: 8px 16px;\n transform: translateX(-50%);\n box-shadow: 0 4px 16px #0002;\n }\n\n .altertable-annotation-pin:focus-visible {\n outline: 2px solid var(--atbl-annotation-accent);\n outline-offset: 2px;\n }\n\n .altertable-annotation-count {\n background: var(--atbl-annotation-accent);\n color: var(--atbl-annotation-on-accent);\n border-radius: 20px;\n padding: 0 5px;\n font-size: 11px;\n }\n\n .altertable-annotation-composer[data-shaking] {\n animation: .22s ease-in-out annotation-shake;\n }\n\n @keyframes annotation-shake {\n 25%, 75% {\n translate: -4px;\n }\n\n 50% {\n translate: 4px;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-annotation-composer[data-shaking] {\n animation-duration: 1ms;\n }\n }\n\n .altertable-annotation-composer textarea::placeholder {\n color: var(--annotation-muted);\n }\n\n .altertable-annotation-composer .altertable-annotation-submit {\n --atbl-control-hover-surface: var(--atbl-annotation-accent-hover);\n --atbl-control-pressed-surface: var(--atbl-annotation-accent-hover);\n background: var(--atbl-annotation-accent);\n color: var(--atbl-annotation-on-accent);\n box-shadow: none;\n border: 0;\n border-radius: 50%;\n }\n\n .altertable-annotation-composer .altertable-annotation-submit:hover:not(:disabled) {\n background: var(--atbl-annotation-accent-hover);\n }\n\n .altertable-tooltip-content:has( > .altertable-annotation-tooltip) {\n background: var(--annotation-surface);\n color: var(--annotation-text);\n border-color: var(--annotation-border);\n }\n\n .altertable-annotation-hint .altertable-kbd, .altertable-annotation-tooltip .altertable-kbd {\n color: var(--annotation-muted);\n border-color: var(--annotation-border);\n background: none;\n }\n\n @media (pointer: coarse) {\n .altertable-annotation-composer textarea {\n font-size: 16px;\n }\n }\n\n .altertable-annotation-outline[data-widget] {\n border-radius: var(--atbl-radius-surface);\n }\n\n .altertable-annotation-selection-layer {\n position: fixed;\n z-index: 1099;\n --atbl-cursor-action: crosshair;\n --atbl-focus-outline: none;\n touch-action: pan-x pan-y pinch-zoom;\n background: none;\n border: 0;\n border-radius: 0;\n width: 100%;\n height: 100%;\n margin: 0;\n padding: 0;\n inset: 0;\n }\n\n .altertable-annotation-selection-layer:focus-visible {\n outline: none;\n }\n\n .altertable-annotation-hint {\n display: flex;\n white-space: nowrap;\n align-items: center;\n gap: 6px;\n }\n\n .altertable-annotation-selection-layer[data-editing] {\n --atbl-cursor-action: default;\n }\n}\n\n/* packages/data-app-react/src/ui/Focus.css */\n@layer atbl.interaction {\n [data-atbl-focus=\"inset\"][data-atbl-internal-focus-state=\"focused\"][data-focused] {\n outline: var(--atbl-focus-outline, 1px solid var(--atbl-focus-color, var(--atbl-muted)));\n outline-offset: var(--atbl-focus-ring-offset);\n }\n\n [data-atbl-focus=\"ring\"]:-webkit-any(:focus-visible, [data-focus-visible]) {\n outline: var(--atbl-focus-outline, 1px solid var(--atbl-focus-color, var(--atbl-muted)));\n outline-offset: var(--atbl-focus-ring-offset);\n }\n\n [data-atbl-focus=\"ring\"]:-moz-any(:focus-visible, [data-focus-visible]) {\n outline: var(--atbl-focus-outline, 1px solid var(--atbl-focus-color, var(--atbl-muted)));\n outline-offset: var(--atbl-focus-ring-offset);\n }\n\n [data-atbl-focus=\"ring\"]:is(:focus-visible, [data-focus-visible]) {\n outline: var(--atbl-focus-outline, 1px solid var(--atbl-focus-color, var(--atbl-muted)));\n outline-offset: var(--atbl-focus-ring-offset);\n }\n\n [data-atbl-focus=\"ring\"]:has( > input:focus-visible) {\n outline: var(--atbl-focus-outline, 1px solid var(--atbl-focus-color, var(--atbl-muted)));\n outline-offset: var(--atbl-focus-ring-offset);\n }\n\n [data-atbl-focus=\"inset\"]:-webkit-any(:focus-visible, [data-focus-visible]) {\n outline: var(--atbl-focus-outline, 1px solid var(--atbl-focus-color, var(--atbl-muted)));\n outline-offset: var(--atbl-focus-ring-offset);\n }\n\n [data-atbl-focus=\"inset\"]:-moz-any(:focus-visible, [data-focus-visible]) {\n outline: var(--atbl-focus-outline, 1px solid var(--atbl-focus-color, var(--atbl-muted)));\n outline-offset: var(--atbl-focus-ring-offset);\n }\n\n [data-atbl-focus=\"inset\"]:is(:focus-visible, [data-focus-visible]) {\n outline: var(--atbl-focus-outline, 1px solid var(--atbl-focus-color, var(--atbl-muted)));\n outline-offset: var(--atbl-focus-ring-offset);\n }\n\n [data-atbl-internal-prose] a:focus-visible {\n outline: var(--atbl-focus-outline, 1px solid var(--atbl-focus-color, var(--atbl-muted)));\n outline-offset: var(--atbl-focus-ring-offset);\n }\n\n [data-atbl-focus=\"inset\"][data-atbl-internal-focus-state=\"focused\"][data-focused] {\n outline-offset: var(--atbl-focus-ring-inset);\n }\n\n [data-atbl-focus=\"inset\"]:-webkit-any(:focus-visible, [data-focus-visible]) {\n outline-offset: var(--atbl-focus-ring-inset);\n }\n\n [data-atbl-focus=\"inset\"]:-moz-any(:focus-visible, [data-focus-visible]) {\n outline-offset: var(--atbl-focus-ring-inset);\n }\n\n [data-atbl-focus=\"inset\"]:is(:focus-visible, [data-focus-visible]) {\n outline-offset: var(--atbl-focus-ring-inset);\n }\n\n [data-atbl-focus=\"group\"]:-webkit-any(:focus-within, [data-focus-within], [data-focus-visible]) {\n outline: var(--atbl-focus-outline, 1px solid var(--atbl-focus-color, var(--atbl-muted)));\n outline-offset: var(--atbl-focus-ring-inset);\n }\n\n [data-atbl-focus=\"group\"]:-moz-any(:focus-within, [data-focus-within], [data-focus-visible]) {\n outline: var(--atbl-focus-outline, 1px solid var(--atbl-focus-color, var(--atbl-muted)));\n outline-offset: var(--atbl-focus-ring-inset);\n }\n\n [data-atbl-focus=\"group\"]:is(:focus-within, [data-focus-within], [data-focus-visible]) {\n outline: var(--atbl-focus-outline, 1px solid var(--atbl-focus-color, var(--atbl-muted)));\n outline-offset: var(--atbl-focus-ring-inset);\n }\n\n [data-atbl-focus=\"group\"] input:focus-visible {\n outline: none;\n }\n\n @media (forced-colors: active) {\n [data-atbl-focus]:-webkit-any(:focus-visible, :focus-within, [data-focus-visible]) {\n outline-color: highlight !important;\n }\n\n [data-atbl-focus]:-moz-any(:focus-visible, :focus-within, [data-focus-visible]) {\n outline-color: highlight !important;\n }\n\n [data-atbl-focus]:is(:focus-visible, :focus-within, [data-focus-visible]) {\n outline-color: highlight !important;\n }\n\n [data-atbl-internal-prose] a:focus-visible {\n outline-color: highlight !important;\n }\n }\n}\n\n/* packages/data-app-react/src/interaction.css */\n@layer atbl.interaction {\n [data-atbl-control=\"default\"] {\n cursor: default;\n }\n\n [data-atbl-control=\"action\"], [data-atbl-internal-prose] a {\n cursor: var(--atbl-cursor-action);\n }\n\n [data-atbl-control=\"help\"] {\n cursor: var(--atbl-cursor-help);\n }\n\n [data-atbl-control=\"text\"] {\n cursor: text;\n font-size: var(--atbl-control-text-size, var(--atbl-type-body-size));\n }\n\n @media (max-width: 560px), (any-pointer: coarse) {\n [data-atbl-control=\"text\"] {\n font-size: max(16px, var(--atbl-control-text-size, var(--atbl-type-body-size)));\n }\n }\n\n [data-atbl-control]:-webkit-any(:disabled, [data-disabled], [aria-disabled=\"true\"], [data-unavailable]) {\n cursor: var(--atbl-cursor-disabled);\n }\n\n [data-atbl-control]:-moz-any(:disabled, [data-disabled], [aria-disabled=\"true\"], [data-unavailable]) {\n cursor: var(--atbl-cursor-disabled);\n }\n\n [data-atbl-control]:is(:disabled, [data-disabled], [aria-disabled=\"true\"], [data-unavailable]) {\n cursor: var(--atbl-cursor-disabled);\n }\n\n [data-atbl-control]:has( > input:disabled) {\n cursor: var(--atbl-cursor-disabled);\n }\n\n [data-atbl-control=\"action\"]:-webkit-any(:disabled, [data-disabled], [aria-disabled=\"true\"]) {\n opacity: var(--atbl-control-disabled-opacity);\n }\n\n [data-atbl-control=\"action\"]:-moz-any(:disabled, [data-disabled], [aria-disabled=\"true\"]) {\n opacity: var(--atbl-control-disabled-opacity);\n }\n\n [data-atbl-control=\"action\"]:is(:disabled, [data-disabled], [aria-disabled=\"true\"]) {\n opacity: var(--atbl-control-disabled-opacity);\n }\n\n [data-atbl-control=\"help\"]:-webkit-any(:disabled, [data-disabled], [aria-disabled=\"true\"]) {\n opacity: var(--atbl-control-disabled-opacity);\n }\n\n [data-atbl-control=\"help\"]:-moz-any(:disabled, [data-disabled], [aria-disabled=\"true\"]) {\n opacity: var(--atbl-control-disabled-opacity);\n }\n\n [data-atbl-control=\"help\"]:is(:disabled, [data-disabled], [aria-disabled=\"true\"]) {\n opacity: var(--atbl-control-disabled-opacity);\n }\n\n [data-atbl-control]:has( > input:disabled) {\n opacity: var(--atbl-control-disabled-opacity);\n }\n\n [data-atbl-control][aria-busy=\"true\"]:not(:-webkit-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n cursor: var(--atbl-cursor-busy);\n }\n\n [data-atbl-control][aria-busy=\"true\"]:not(:-moz-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n cursor: var(--atbl-cursor-busy);\n }\n\n [data-atbl-control][aria-busy=\"true\"]:not(:is(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n cursor: var(--atbl-cursor-busy);\n }\n\n :where([data-atbl-internal-surface=\"control\"], [data-atbl-internal-surface=\"option\"]):-webkit-any(:hover, [data-hovered], [data-focused], [data-open=\"true\"]):not(:-webkit-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-hover-surface, var(--atbl-subtle));\n }\n\n :where([data-atbl-internal-surface=\"control\"], [data-atbl-internal-surface=\"option\"]):-moz-any(:hover, [data-hovered], [data-focused], [data-open=\"true\"]):not(:-moz-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-hover-surface, var(--atbl-subtle));\n }\n\n :where([data-atbl-internal-surface=\"control\"], [data-atbl-internal-surface=\"option\"]):is(:hover, [data-hovered], [data-focused], [data-open=\"true\"]):not(:is(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-hover-surface, var(--atbl-subtle));\n }\n\n :where([data-atbl-internal-surface=\"control\"], [data-atbl-internal-surface=\"option\"]):-webkit-any(:active, [data-pressed]):not(:-webkit-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-pressed-surface, color-mix(in srgb, var(--atbl-text) 8%, var(--atbl-surface)));\n }\n\n :where([data-atbl-internal-surface=\"control\"], [data-atbl-internal-surface=\"option\"]):-moz-any(:active, [data-pressed]):not(:-moz-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-pressed-surface, color-mix(in srgb, var(--atbl-text) 8%, var(--atbl-surface)));\n }\n\n :where([data-atbl-internal-surface=\"control\"], [data-atbl-internal-surface=\"option\"]):is(:active, [data-pressed]):not(:is(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-pressed-surface, color-mix(in srgb, var(--atbl-text) 8%, var(--atbl-surface)));\n }\n\n :where([data-atbl-internal-surface=\"control\"]):-webkit-any([aria-expanded=\"true\"], [data-open=\"true\"]):not(:-webkit-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-open-surface, var(--atbl-surface));\n }\n\n :where([data-atbl-internal-surface=\"control\"]):-moz-any([aria-expanded=\"true\"], [data-open=\"true\"]):not(:-moz-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-open-surface, var(--atbl-surface));\n }\n\n :where([data-atbl-internal-surface=\"control\"]):is([aria-expanded=\"true\"], [data-open=\"true\"]):not(:is(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-open-surface, var(--atbl-surface));\n }\n\n :where([data-atbl-internal-surface=\"control\"]):-webkit-any([data-variant=\"outline\"], [data-variant=\"elevated\"]):-webkit-any([aria-expanded=\"true\"], [data-open=\"true\"]):not(:-webkit-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n border-color: var(--atbl-control-open-border, var(--atbl-muted));\n }\n\n :where([data-atbl-internal-surface=\"control\"]):-moz-any([data-variant=\"outline\"], [data-variant=\"elevated\"]):-moz-any([aria-expanded=\"true\"], [data-open=\"true\"]):not(:-moz-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n border-color: var(--atbl-control-open-border, var(--atbl-muted));\n }\n\n :where([data-atbl-internal-surface=\"control\"]):is([data-variant=\"outline\"], [data-variant=\"elevated\"]):is([aria-expanded=\"true\"], [data-open=\"true\"]):not(:is(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n border-color: var(--atbl-control-open-border, var(--atbl-muted));\n }\n\n :where([data-atbl-internal-surface=\"control\"]):-webkit-any([aria-pressed=\"true\"], [data-selected], [aria-current=\"true\"], :has( > input:checked)):not(:-webkit-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-selected-surface, var(--atbl-subtle));\n color: var(--atbl-control-selected-text, var(--atbl-text));\n }\n\n :where([data-atbl-internal-surface=\"control\"]):-moz-any([aria-pressed=\"true\"], [data-selected], [aria-current=\"true\"], :has( > input:checked)):not(:-moz-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-selected-surface, var(--atbl-subtle));\n color: var(--atbl-control-selected-text, var(--atbl-text));\n }\n\n :where([data-atbl-internal-surface=\"control\"]):is([aria-pressed=\"true\"], [data-selected], [aria-current=\"true\"], :has( > input:checked)):not(:is(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-selected-surface, var(--atbl-subtle));\n color: var(--atbl-control-selected-text, var(--atbl-text));\n }\n\n :where([data-atbl-internal-surface=\"option\"])[data-selected]:not(:-webkit-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-selected-surface, var(--atbl-subtle));\n color: var(--atbl-control-selected-text, var(--atbl-text));\n }\n\n :where([data-atbl-internal-surface=\"option\"])[data-selected]:not(:-moz-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-selected-surface, var(--atbl-subtle));\n color: var(--atbl-control-selected-text, var(--atbl-text));\n }\n\n :where([data-atbl-internal-surface=\"option\"])[data-selected]:not(:is(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-selected-surface, var(--atbl-subtle));\n color: var(--atbl-control-selected-text, var(--atbl-text));\n }\n\n :where([data-atbl-internal-surface=\"option\"])[data-selected]:-webkit-any(:hover, [data-hovered]):not(:-webkit-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-hover-surface, color-mix(in srgb, var(--atbl-text) 4%, var(--atbl-control-selected-surface, var(--atbl-subtle))));\n }\n\n :where([data-atbl-internal-surface=\"option\"])[data-selected]:-moz-any(:hover, [data-hovered]):not(:-moz-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-hover-surface, color-mix(in srgb, var(--atbl-text) 4%, var(--atbl-control-selected-surface, var(--atbl-subtle))));\n }\n\n :where([data-atbl-internal-surface=\"option\"])[data-selected]:is(:hover, [data-hovered]):not(:is(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-hover-surface, color-mix(in srgb, var(--atbl-text) 4%, var(--atbl-control-selected-surface, var(--atbl-subtle))));\n }\n\n :where([data-atbl-internal-surface=\"option\"])[data-selected]:-webkit-any(:active, [data-pressed]):not(:-webkit-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-pressed-surface, color-mix(in srgb, var(--atbl-text) 8%, var(--atbl-control-selected-surface, var(--atbl-subtle))));\n }\n\n :where([data-atbl-internal-surface=\"option\"])[data-selected]:-moz-any(:active, [data-pressed]):not(:-moz-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-pressed-surface, color-mix(in srgb, var(--atbl-text) 8%, var(--atbl-control-selected-surface, var(--atbl-subtle))));\n }\n\n :where([data-atbl-internal-surface=\"option\"])[data-selected]:is(:active, [data-pressed]):not(:is(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-pressed-surface, color-mix(in srgb, var(--atbl-text) 8%, var(--atbl-control-selected-surface, var(--atbl-subtle))));\n }\n\n :where([data-atbl-internal-surface=\"field\"], [data-atbl-internal-surface=\"control\"][data-variant=\"outline\"], [data-atbl-internal-surface=\"control\"][data-variant=\"elevated\"]):-webkit-any(:hover, [data-hovered]):not(:-webkit-any(:disabled, :has(input:disabled), [data-disabled], [aria-disabled=\"true\"], [data-invalid], [aria-invalid=\"true\"], :has(input[aria-invalid=\"true\"]))) {\n border-color: var(--atbl-control-hover-border, color-mix(in srgb, var(--atbl-muted) 45%, var(--atbl-border)));\n }\n\n :where([data-atbl-internal-surface=\"field\"], [data-atbl-internal-surface=\"control\"][data-variant=\"outline\"], [data-atbl-internal-surface=\"control\"][data-variant=\"elevated\"]):-moz-any(:hover, [data-hovered]):not(:-moz-any(:disabled, :has(input:disabled), [data-disabled], [aria-disabled=\"true\"], [data-invalid], [aria-invalid=\"true\"], :has(input[aria-invalid=\"true\"]))) {\n border-color: var(--atbl-control-hover-border, color-mix(in srgb, var(--atbl-muted) 45%, var(--atbl-border)));\n }\n\n :where([data-atbl-internal-surface=\"field\"], [data-atbl-internal-surface=\"control\"][data-variant=\"outline\"], [data-atbl-internal-surface=\"control\"][data-variant=\"elevated\"]):is(:hover, [data-hovered]):not(:is(:disabled, :has(input:disabled), [data-disabled], [aria-disabled=\"true\"], [data-invalid], [aria-invalid=\"true\"], :has(input[aria-invalid=\"true\"]))) {\n border-color: var(--atbl-control-hover-border, color-mix(in srgb, var(--atbl-muted) 45%, var(--atbl-border)));\n }\n\n [data-atbl-internal-surface=\"field\"]:-webkit-any([data-invalid], [aria-invalid=\"true\"]) {\n border-color: var(--atbl-danger);\n --atbl-focus-color: var(--atbl-danger);\n }\n\n [data-atbl-internal-surface=\"field\"]:-moz-any([data-invalid], [aria-invalid=\"true\"]) {\n border-color: var(--atbl-danger);\n --atbl-focus-color: var(--atbl-danger);\n }\n\n [data-atbl-internal-surface=\"field\"]:is([data-invalid], [aria-invalid=\"true\"]) {\n border-color: var(--atbl-danger);\n --atbl-focus-color: var(--atbl-danger);\n }\n\n [data-atbl-internal-surface=\"field\"]:has(input[aria-invalid=\"true\"]) {\n border-color: var(--atbl-danger);\n --atbl-focus-color: var(--atbl-danger);\n }\n\n [data-atbl-control=\"text\"]:-webkit-any(:disabled, [data-disabled], [aria-disabled=\"true\"]) {\n color: var(--atbl-muted);\n }\n\n [data-atbl-control=\"text\"]:-moz-any(:disabled, [data-disabled], [aria-disabled=\"true\"]) {\n color: var(--atbl-muted);\n }\n\n [data-atbl-control=\"text\"]:is(:disabled, [data-disabled], [aria-disabled=\"true\"]) {\n color: var(--atbl-muted);\n }\n}\n\n/* packages/data-app-react/src/styles.css */\n@layer atbl.tokens, atbl.base, atbl.components, atbl.interaction;\n",
41
41
  options
42
42
  });
43
43
  }
@@ -212,7 +212,7 @@ const shortcuts = {
212
212
  function isApple() {
213
213
  return typeof navigator !== "undefined" && /Macintosh|Mac OS X|iPhone|iPad/.test(navigator.userAgent);
214
214
  }
215
- function shortcutLabel({ modifier, shift, key }) {
215
+ function shortcutLabel$1({ modifier, shift, key }) {
216
216
  const platform = isApple() ? "apple" : "other";
217
217
  return `${{
218
218
  apple: {
@@ -269,7 +269,7 @@ function Kbd({ shortcut, children, className, ...props }) {
269
269
  return /* @__PURE__ */ jsx("kbd", {
270
270
  ...props,
271
271
  className: classNames("altertable-kbd", className),
272
- children: shortcut ? shortcutLabel(shortcut) : children
272
+ children: shortcut ? shortcutLabel$1(shortcut) : children
273
273
  });
274
274
  }
275
275
  //#endregion
@@ -282,7 +282,7 @@ function TooltipSurface({ className, ...props }) {
282
282
  });
283
283
  }
284
284
  //#endregion
285
- //#region src/ui/Tooltip.tsx
285
+ //#region src/ui/ChartTooltip.tsx
286
286
  const chartPointerPositions = /* @__PURE__ */ new WeakMap();
287
287
  function chartPointerMoved(document, x, y) {
288
288
  const previous = chartPointerPositions.get(document);
@@ -292,31 +292,8 @@ function chartPointerMoved(document, x, y) {
292
292
  });
293
293
  return !previous || previous.x !== x || previous.y !== y;
294
294
  }
295
- const TooltipContext = /* @__PURE__ */ createContext(null);
296
- /** Delay the first hover, then open nearby tooltips without waiting during the skip window.
297
- * Keyboard focus always opens immediately. AppLayout provides this by default. */
298
- function TooltipProvider({ children, delay = 500, skipDelayDuration = 300 }) {
299
- const skipUntil = useRef(0);
300
- const timing = useMemo(() => ({
301
- hoverDelay() {
302
- return Date.now() < skipUntil.current ? 0 : delay;
303
- },
304
- rememberClose() {
305
- skipUntil.current = Date.now() + skipDelayDuration;
306
- }
307
- }), [delay, skipDelayDuration]);
308
- return /* @__PURE__ */ jsx(TooltipContext.Provider, {
309
- value: timing,
310
- children
311
- });
312
- }
313
- /** Short visual hint for an already labeled control. variant="chart" follows the cursor
314
- * on hover and toggles on tap so a bar or point can show the period and value. Chart
315
- * tooltips dismiss on scroll and do not open on keyboard focus. Hint
316
- * tooltips hide once the control is pressed. Escape closes either. */
317
- function Tooltip({ content, children, onOpenChange, variant = "hint", align = "center", placement, portalRoot, className, ref, onPointerEnter, onPointerMove, onPointerLeave, onPointerDown, onFocusCapture, onBlurCapture, ...props }) {
295
+ function ChartTooltip({ content, children, onOpenChange, variant = "chart", align = "center", placement, followCursor = true, anchorRect, boundaryRefs, mouseHover = true, touchInspection = true, portalRoot, className, ref, onPointerEnter, onPointerMove, onPointerLeave, onPointerDown, ...props }) {
318
296
  const describedBy = useId();
319
- const timing = useContext(TooltipContext);
320
297
  const [open, setOpen] = useState(false);
321
298
  const visible = open && content != null;
322
299
  const notifyOpenChange = useEffectEvent((value) => onOpenChange?.(value));
@@ -324,40 +301,38 @@ function Tooltip({ content, children, onOpenChange, variant = "hint", align = "c
324
301
  notifyOpenChange(visible);
325
302
  }, [visible]);
326
303
  const [dialogRoot, setDialogRoot] = useState(null);
327
- const hoverTimer = useRef(null);
328
304
  const suppressed = useRef(false);
329
- const side = placement ?? (variant === "chart" ? "top" : "bottom");
330
- function cancelHover() {
331
- if (hoverTimer.current !== null) clearTimeout(hoverTimer.current);
332
- hoverTimer.current = null;
333
- }
305
+ const lastAnchor = useRef(null);
306
+ const side = placement ?? "top";
334
307
  function close() {
335
- cancelHover();
336
- if (open) timing?.rememberClose();
337
308
  setOpen(false);
338
309
  }
339
310
  const closeFromEffect = useEffectEvent(close);
340
- useEffect(() => cancelHover, []);
341
311
  useEffect(() => {
342
312
  if (!visible) return;
343
313
  function onKeyDown(event) {
344
314
  if (event.key !== "Escape") return;
345
- if (variant === "chart") event.preventDefault();
315
+ event.preventDefault();
346
316
  suppressed.current = true;
347
317
  closeFromEffect();
348
318
  }
349
319
  document.addEventListener("keydown", onKeyDown);
350
320
  return () => document.removeEventListener("keydown", onKeyDown);
351
- }, [visible, variant]);
321
+ }, [visible]);
352
322
  useEffect(() => {
353
- if (!visible || variant !== "chart") return;
323
+ if (!visible) return;
354
324
  function onScroll() {
355
325
  suppressed.current = false;
356
326
  closeFromEffect();
357
327
  }
358
328
  window.addEventListener("scroll", onScroll, true);
359
329
  return () => window.removeEventListener("scroll", onScroll, true);
360
- }, [visible, variant]);
330
+ }, [visible]);
331
+ const boundaries = boundaryRefs?.flatMap((ref) => ref.current ? [ref.current] : []);
332
+ const overflowOptions = boundaries?.length ? {
333
+ boundary: boundaries,
334
+ padding: 8
335
+ } : void 0;
361
336
  const { refs, floatingStyles, update } = useFloating({
362
337
  open: visible,
363
338
  onOpenChange: setOpen,
@@ -365,9 +340,13 @@ function Tooltip({ content, children, onOpenChange, variant = "hint", align = "c
365
340
  strategy: "fixed",
366
341
  whileElementsMounted: autoUpdate,
367
342
  middleware: [
368
- offset(variant === "chart" ? 16 : 8),
369
- flip(),
370
- shift({ padding: 12 })
343
+ offset(16),
344
+ flip(overflowOptions),
345
+ shift({
346
+ padding: 12,
347
+ ...overflowOptions,
348
+ crossAxis: Boolean(overflowOptions)
349
+ })
371
350
  ]
372
351
  });
373
352
  const closeOnOutsidePointer = useEffectEvent((event) => {
@@ -375,33 +354,45 @@ function Tooltip({ content, children, onOpenChange, variant = "hint", align = "c
375
354
  if (refs.domReference.current?.contains(node) || refs.floating.current?.contains(node)) return;
376
355
  close();
377
356
  });
378
- function followCursor(event) {
357
+ function positionAtPointer(event) {
358
+ const anchor = anchorRect?.(refs.domReference.current);
359
+ if (anchor) {
360
+ const previous = lastAnchor.current;
361
+ if (previous && previous.x === anchor.x && previous.y === anchor.y && previous.width === anchor.width && previous.height === anchor.height) return;
362
+ if (previous) suppressed.current = false;
363
+ lastAnchor.current = anchor;
364
+ }
379
365
  const { clientX: x, clientY: y } = event;
380
- refs.setPositionReference({ getBoundingClientRect() {
381
- return {
382
- x,
383
- y,
384
- top: y,
385
- left: x,
386
- right: x,
387
- bottom: y,
388
- width: 0,
389
- height: 0,
390
- toJSON() {
391
- return {};
392
- }
393
- };
394
- } });
366
+ refs.setPositionReference({
367
+ contextElement: refs.domReference.current ?? void 0,
368
+ getBoundingClientRect() {
369
+ const anchor = anchorRect?.(refs.domReference.current);
370
+ if (anchor) return anchor;
371
+ return {
372
+ x,
373
+ y,
374
+ top: y,
375
+ left: x,
376
+ right: x,
377
+ bottom: y,
378
+ width: 0,
379
+ height: 0,
380
+ toJSON() {
381
+ return {};
382
+ }
383
+ };
384
+ }
385
+ });
395
386
  update();
396
387
  }
397
388
  useEffect(() => {
398
- if (!visible || variant !== "chart") return;
389
+ if (!visible) return;
399
390
  function onDocPointerDown(event) {
400
391
  closeOnOutsidePointer(event);
401
392
  }
402
393
  document.addEventListener("pointerdown", onDocPointerDown, true);
403
394
  return () => document.removeEventListener("pointerdown", onDocPointerDown, true);
404
- }, [visible, variant]);
395
+ }, [visible]);
405
396
  const triggerRef = useMergeRefs([
406
397
  refs.setReference,
407
398
  ref,
@@ -416,62 +407,32 @@ function Tooltip({ content, children, onOpenChange, variant = "hint", align = "c
416
407
  className: classNames("altertable-tooltip-trigger", className),
417
408
  onPointerEnter: (event) => {
418
409
  onPointerEnter?.(event);
419
- if (event.defaultPrevented || event.pointerType !== "mouse" || suppressed.current) return;
420
- if (variant === "chart") {
421
- if (chartPointerMoved(event.currentTarget.ownerDocument, event.clientX, event.clientY)) {
422
- followCursor(event);
423
- setOpen(true);
424
- }
425
- return;
426
- }
427
- if (open) return;
428
- cancelHover();
429
- const delay = timing?.hoverDelay() ?? 500;
430
- if (delay === 0) setOpen(true);
431
- else hoverTimer.current = setTimeout(() => {
432
- hoverTimer.current = null;
410
+ if (event.defaultPrevented || !mouseHover || event.pointerType !== "mouse" || suppressed.current) return;
411
+ if (chartPointerMoved(event.currentTarget.ownerDocument, event.clientX, event.clientY)) {
412
+ positionAtPointer(event);
433
413
  setOpen(true);
434
- }, delay);
414
+ }
435
415
  },
436
416
  onPointerMove: (event) => {
437
417
  onPointerMove?.(event);
438
- if (event.defaultPrevented || variant !== "chart" || event.pointerType !== "mouse") return;
418
+ if (event.defaultPrevented || !mouseHover || event.pointerType !== "mouse") return;
439
419
  if (!chartPointerMoved(event.currentTarget.ownerDocument, event.clientX, event.clientY)) return;
440
- followCursor(event);
420
+ if (!followCursor && visible) return;
421
+ positionAtPointer(event);
441
422
  if (!suppressed.current) setOpen(true);
442
423
  },
443
424
  onPointerLeave: (event) => {
444
425
  onPointerLeave?.(event);
445
426
  suppressed.current = false;
446
- if (variant === "chart" && event.pointerType !== "mouse") return;
447
- if (!event.defaultPrevented && !(event.currentTarget.contains(document.activeElement) && variant !== "chart")) close();
448
- else cancelHover();
427
+ if (event.pointerType === "mouse" && !event.defaultPrevented) close();
449
428
  },
450
429
  onPointerDown: (event) => {
451
430
  onPointerDown?.(event);
452
431
  if (event.defaultPrevented) return;
453
- if (variant === "chart") {
454
- if (event.pointerType !== "mouse") {
455
- followCursor(event);
456
- setOpen((wasOpen) => !wasOpen);
457
- }
458
- return;
432
+ if (event.pointerType !== "mouse" && touchInspection) {
433
+ positionAtPointer(event);
434
+ setOpen((wasOpen) => !wasOpen);
459
435
  }
460
- suppressed.current = true;
461
- close();
462
- },
463
- onFocusCapture: (event) => {
464
- onFocusCapture?.(event);
465
- if (event.defaultPrevented || suppressed.current || variant === "chart" || !event.target.matches(":focus-visible")) return;
466
- cancelHover();
467
- refs.setPositionReference(refs.domReference.current);
468
- setOpen(true);
469
- },
470
- onBlurCapture: (event) => {
471
- onBlurCapture?.(event);
472
- if (event.defaultPrevented || event.currentTarget.contains(event.relatedTarget)) return;
473
- suppressed.current = false;
474
- if (!event.currentTarget.matches(":hover")) close();
475
436
  },
476
437
  children: Children.map(children, (child) => isValidElement(child) ? cloneElement(child, { "aria-describedby": [child.props["aria-describedby"], visible ? describedBy : void 0].filter(Boolean).join(" ") || void 0 }) : child)
477
438
  }), visible && /* @__PURE__ */ jsx(FloatingPortal, {
@@ -487,6 +448,163 @@ function Tooltip({ content, children, onOpenChange, variant = "hint", align = "c
487
448
  })] });
488
449
  }
489
450
  //#endregion
451
+ //#region src/ui/HintTooltip.tsx
452
+ /** Hint interactions are independent from chart cursor/tap inspection. */
453
+ function HintTooltip({ children, content, timing, onOpenChange, variant = "hint", align = "center", placement = "bottom", followCursor: _followCursor, portalRoot, className, ref, ...props }) {
454
+ const id = useId();
455
+ const [open, setOpen] = useState(false);
456
+ const [dialogRoot, setDialogRoot] = useState(null);
457
+ const hasContent = content != null && content !== false && content !== "";
458
+ const visible = open && hasContent;
459
+ const notifyOpenChange = useEffectEvent((value) => onOpenChange?.(value));
460
+ useEffect(() => {
461
+ notifyOpenChange(visible);
462
+ }, [visible]);
463
+ if (!hasContent && open) setOpen(false);
464
+ const { refs, context, floatingStyles } = useFloating({
465
+ open: visible,
466
+ onOpenChange(value, event, reason) {
467
+ if (reason === "escape-key") event?.preventDefault();
468
+ if (!value && (reason === "hover" || reason === "safe-polygon")) {
469
+ const reference = refs.domReference.current;
470
+ const focused = reference?.ownerDocument.activeElement;
471
+ if (focused?.matches(":focus-visible") && reference?.contains(focused)) return;
472
+ }
473
+ setOpen(value);
474
+ },
475
+ placement: align === "center" ? placement : `${placement}-${align}`,
476
+ strategy: "fixed",
477
+ whileElementsMounted: autoUpdate,
478
+ middleware: [
479
+ offset(8),
480
+ flip({ padding: 12 }),
481
+ shift({ padding: 12 })
482
+ ]
483
+ });
484
+ const group = useDelayGroup(context, { id });
485
+ const { delay, isInstantPhase, initialDelay, timeoutMs, currentId, setState } = group;
486
+ useLayoutEffect(() => {
487
+ if (initialDelay === timing.delay && timeoutMs === timing.skipDelayDuration) return;
488
+ setState({
489
+ initialDelay: timing.delay,
490
+ delay: currentId ? {
491
+ open: 1,
492
+ close: 0
493
+ } : timing.delay,
494
+ timeoutMs: timing.skipDelayDuration
495
+ });
496
+ }, [
497
+ initialDelay,
498
+ timeoutMs,
499
+ currentId,
500
+ setState,
501
+ timing
502
+ ]);
503
+ const releaseGroup = useEffectEvent(() => {
504
+ if (group.currentId === id) group.setState({
505
+ currentId: null,
506
+ delay: group.initialDelay
507
+ });
508
+ });
509
+ useEffect(() => () => releaseGroup(), []);
510
+ const { getReferenceProps, getFloatingProps } = useInteractions([useHover(context, {
511
+ enabled: hasContent,
512
+ mouseOnly: true,
513
+ move: false,
514
+ delay,
515
+ handleClose: safePolygon()
516
+ }), useDismiss(context, { referencePress: true })]);
517
+ const setTrigger = useCallback((element) => {
518
+ refs.setReference(element);
519
+ setDialogRoot(element?.closest("dialog") ?? null);
520
+ }, [refs]);
521
+ const triggerRef = useMergeRefs([setTrigger, ref]);
522
+ const setFloating = useCallback((element) => {
523
+ refs.setFloating(element);
524
+ }, [refs]);
525
+ const describedBy = [props["aria-describedby"], visible ? id : void 0].filter(Boolean).join(" ") || void 0;
526
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("span", {
527
+ ...getReferenceProps({
528
+ ...props,
529
+ "aria-describedby": describedBy,
530
+ onFocus(event) {
531
+ props.onFocus?.(event);
532
+ if (!event.defaultPrevented && hasContent && event.target.matches(":focus-visible")) context.onOpenChange(true, event.nativeEvent, "focus");
533
+ },
534
+ onBlur(event) {
535
+ props.onBlur?.(event);
536
+ if (event.defaultPrevented || event.currentTarget.contains(event.relatedTarget)) return;
537
+ if (!event.currentTarget.matches(":hover") && !refs.floating.current?.matches(":hover")) context.onOpenChange(false, event.nativeEvent, "focus");
538
+ }
539
+ }),
540
+ ref: triggerRef,
541
+ "data-variant": variant,
542
+ "data-open": visible || void 0,
543
+ className: classNames("altertable-tooltip-trigger", className),
544
+ children: Children.map(children, (child) => isValidElement(child) ? cloneElement(child, { "aria-describedby": [child.props["aria-describedby"], visible ? id : void 0].filter(Boolean).join(" ") || void 0 }) : child)
545
+ }), visible && /* @__PURE__ */ jsx(FloatingPortal, {
546
+ root: portalRoot ?? dialogRoot ?? void 0,
547
+ preserveTabOrder: false,
548
+ children: /* @__PURE__ */ jsx(TooltipSurface, {
549
+ ...getFloatingProps({
550
+ tabIndex: void 0,
551
+ onMouseDown(event) {
552
+ event.preventDefault();
553
+ }
554
+ }),
555
+ ref: setFloating,
556
+ id,
557
+ role: "tooltip",
558
+ "data-variant": variant,
559
+ "data-instant": isInstantPhase || void 0,
560
+ style: floatingStyles,
561
+ children: content
562
+ })
563
+ })] });
564
+ }
565
+ //#endregion
566
+ //#region src/ui/Tooltip.tsx
567
+ const defaultTiming = {
568
+ delay: 500,
569
+ skipDelayDuration: 300
570
+ };
571
+ const TooltipContext = /* @__PURE__ */ createContext(null);
572
+ /** Delay the first hover, then open nearby tooltips without waiting during the skip window.
573
+ * Keyboard focus always opens immediately. AppLayout provides this by default. */
574
+ function TooltipProvider({ children, delay = defaultTiming.delay, skipDelayDuration = defaultTiming.skipDelayDuration }) {
575
+ const timing = useMemo(() => ({
576
+ delay,
577
+ skipDelayDuration
578
+ }), [delay, skipDelayDuration]);
579
+ return /* @__PURE__ */ jsx(TooltipContext.Provider, {
580
+ value: timing,
581
+ children: /* @__PURE__ */ jsx(FloatingDelayGroup, {
582
+ delay,
583
+ timeoutMs: skipDelayDuration,
584
+ children
585
+ })
586
+ });
587
+ }
588
+ /** Supplemental, non-interactive description for one already labeled control. Supply a
589
+ * single child that forwards aria-describedby to its focusable DOM element. For a
590
+ * disabled control or plain text, make the wrapper focusable with tabIndex={0} and
591
+ * give it an accessible name. Hint content stays open while hovered and opens
592
+ * immediately on keyboard focus; pressing the control or Escape dismisses it.
593
+ * Use HelpPopover for essential information, links, or actions, including on touch.
594
+ * variant="chart" follows the cursor by default and toggles on tap; it dismisses on scroll
595
+ * and does not open on keyboard focus. Native span props and ref target the wrapper. */
596
+ function Tooltip(props) {
597
+ const timing = useContext(TooltipContext);
598
+ if (props.variant === "chart") return /* @__PURE__ */ jsx(ChartTooltip, { ...props });
599
+ return timing ? /* @__PURE__ */ jsx(HintTooltip, {
600
+ ...props,
601
+ timing
602
+ }) : /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsx(HintTooltip, {
603
+ ...props,
604
+ timing: defaultTiming
605
+ }) });
606
+ }
607
+ //#endregion
490
608
  //#region src/ui/QueryList.tsx
491
609
  const KEYWORD = /\b(WITH|SELECT|FROM|WHERE|AND|OR|NOT|IN|AS|ON|JOIN|LEFT|RIGHT|INNER|FULL|OUTER|CROSS|GROUP BY|ORDER BY|HAVING|LIMIT|UNION|ALL|DISTINCT|CASE|WHEN|THEN|ELSE|END|NULL|TRUE|FALSE|BETWEEN|LIKE|ILIKE|EXISTS|VALUES|CAST|COUNT|SUM|AVG|MIN|MAX|QUALIFY|WINDOW|OVER|PARTITION|BY)\b/gi;
492
610
  function formatSql(statement) {
@@ -1293,12 +1411,13 @@ function DataAppProvider({ app, children }) {
1293
1411
  function describeViewInput(definition) {
1294
1412
  const date = definition.date;
1295
1413
  const variable = date && definition.variables[date.variable];
1296
- invariant(!date || variable?.kind === "dateRange", "The view date must reference a date range variable.");
1414
+ invariant(!date || variable?.kind === "dateTimeRangeComparison", "The view date must reference a date range variable.");
1297
1415
  if (definition.describeInput) return definition.describeInput;
1298
1416
  invariant(date && variable, "A view needs a date binding or describeInput.");
1299
1417
  const dateBinding = date;
1300
1418
  function describeInput(input) {
1301
- return [variable.describeInput(dateBinding.input(input)), ...Object.entries(definition.variables).filter(([, variable]) => [
1419
+ const request = dateBinding.input(input);
1420
+ return [formatDateTimeRange(parseDateTimeRange(request.range)), ...Object.entries(definition.variables).filter(([, variable]) => [
1302
1421
  "dimension",
1303
1422
  "numberFilter",
1304
1423
  "booleanFilter"
@@ -1313,16 +1432,15 @@ function describeViewInput(definition) {
1313
1432
  function resolveViewInput(definition, values) {
1314
1433
  const input = definition.input(values);
1315
1434
  if (definition.date) {
1316
- const selected = values[definition.date.variable];
1317
- const mapped = definition.date.input(input);
1318
- invariant(mapped && mapped.range && "comparison" in mapped, "The operation input must preserve the selected date range and comparison.");
1319
- function sameRange(a, b) {
1320
- return a === b || !!a && !!b && a.start === b.start && a.end === b.end;
1435
+ const variable = definition.variables[definition.date.variable];
1436
+ if (variable?.kind === "dateTimeRangeComparison") {
1437
+ const selected = values[definition.date.variable];
1438
+ const mapped = definition.date.input(input);
1439
+ invariant(mapped && variable.same(selected.selection, mapped.selection) && selected.reference === mapped.reference && serializeDateTimeRange(selected.range) === serializeDateTimeRange(mapped.range) && (selected.comparison === null ? mapped.comparison === null : !!mapped.comparison && serializeDateTimeRange(selected.comparison) === serializeDateTimeRange(mapped.comparison)), "The operation input must preserve the selected datetime range and comparison.");
1321
1440
  }
1322
- invariant(sameRange(selected.range, mapped.range) && sameRange(selected.comparison, mapped.comparison), "The operation input must preserve the selected date range and comparison.");
1323
1441
  }
1324
1442
  for (const [key, variable] of Object.entries(definition.variables)) {
1325
- if (variable.kind === "dateRange" || variable.presentation?.group === "display" && variable.kind !== "choice") continue;
1443
+ if (variable.kind === "dateTimeRangeComparison" || variable.presentation?.group === "display" && variable.kind !== "choice") continue;
1326
1444
  const filter = variable;
1327
1445
  const selected = values[key];
1328
1446
  const mapped = readViewBinding(definition, key, input);
@@ -1365,7 +1483,7 @@ function appliedValues(definition) {
1365
1483
  return Object.fromEntries(Object.entries(definition.variables).map(([name, variable]) => [name, variable.read(params)]));
1366
1484
  }
1367
1485
  function commit(definition, values) {
1368
- resolveViewInput(definition, Object.fromEntries(Object.entries(definition.variables).map(([name, variable]) => [name, variable.kind === "dateRange" ? variable.input(values[name]) : values[name]])));
1486
+ resolveViewInput(definition, Object.fromEntries(Object.entries(definition.variables).map(([name, variable]) => [name, variable.kind === "dateTimeRangeComparison" ? variable.input(values[name]) : values[name]])));
1369
1487
  writeSearch(Object.assign({}, ...Object.entries(definition.variables).map(([name, variable]) => variable.write(values[name]))), "push");
1370
1488
  }
1371
1489
  function targetAvailable(target, displayedInput, owner) {
@@ -1377,7 +1495,8 @@ function targetAvailable(target, displayedInput, owner) {
1377
1495
  if (!(target instanceof BreakdownTarget && key === definition.key)) return true;
1378
1496
  }
1379
1497
  const shown = readInput(definition, key, displayedInput);
1380
- return variable.kind === "dateRange" ? JSON.stringify(variable.input(applied[key])) === JSON.stringify(shown) : variable.same(applied[key], shown);
1498
+ if (variable.kind === "dateTimeRangeComparison") return !!shown && variable.same(applied[key], shown.selection);
1499
+ return variable.same(applied[key], shown);
1381
1500
  });
1382
1501
  }
1383
1502
  /** Apply an explicit scope patch and optional chart choice in one history entry. */
@@ -2414,135 +2533,20 @@ function sectionContent(content) {
2414
2533
  return ViewContent.section(content);
2415
2534
  }
2416
2535
  //#endregion
2417
- //#region src/ui/variables.ts
2418
- /** Adapt one date variable to the controlled picker without giving the picker URL ownership. */
2419
- function dateRangeControl(variable, selection, onChange) {
2420
- const value = variable.resolve(selection);
2421
- function update(next) {
2422
- return onChange(selection.comparison && variable.previous(next) ? {
2423
- ...next,
2424
- comparison: "previous"
2425
- } : next);
2426
- }
2427
- return {
2428
- value,
2429
- label: variable.label,
2430
- onChange(range) {
2431
- return update(range ? {
2432
- kind: "dates",
2433
- ...range
2434
- } : variable.defaultValue);
2435
- },
2436
- onPresetChange(id) {
2437
- return update({
2438
- kind: "preset",
2439
- id
2440
- });
2441
- },
2442
- selectedPresetId: selection.kind === "preset" ? selection.id : null,
2443
- onReset() {
2444
- return onChange(variable.defaultValue);
2445
- },
2446
- isDefault: variable.same(selection, variable.defaultValue),
2447
- resetValue: variable.resolve(variable.defaultValue),
2448
- ...variable.supportsComparison ? { comparison: {
2449
- enabled: selection.comparison === "previous",
2450
- range: variable.previous(selection),
2451
- onChange(enabled) {
2452
- return onChange(enabled ? {
2453
- ...selection,
2454
- comparison: "previous"
2455
- } : {
2456
- ...selection,
2457
- comparison: void 0
2458
- });
2459
- }
2460
- } } : {},
2461
- ...variable.bounds()
2462
- };
2463
- }
2464
- function currentSearch() {
2465
- return searchParams().toString();
2466
- }
2467
- function serverSearch() {
2468
- return "";
2469
- }
2470
- /** URL is the source of truth for app variables; one update can change dependent values atomically. */
2471
- function useAppVariables(definitions) {
2472
- defineAppVariables(definitions);
2473
- const search = useSyncExternalStore(subscribeSearch, currentSearch, serverSearch);
2474
- const zones = Object.values(definitions).filter((item) => item.kind === "dateRange").map((item) => item.bounds().timeZone);
2475
- const zoneKey = [...new Set(zones)].sort().join("|");
2476
- const [, bumpDay] = useReducer((value) => value + 1, 0);
2477
- useEffect(() => {
2478
- if (!zoneKey) return;
2479
- const timeZones = zoneKey.split("|");
2480
- let day = timeZones.map((zone) => today(zone).toString()).join("|");
2481
- const timer = window.setInterval(() => {
2482
- const next = timeZones.map((zone) => today(zone).toString()).join("|");
2483
- if (next !== day) {
2484
- day = next;
2485
- bumpDay();
2486
- }
2487
- }, 3e4);
2488
- return () => window.clearInterval(timer);
2489
- }, [zoneKey]);
2490
- const params = new URLSearchParams(search);
2491
- const values = {};
2492
- const canonical = {};
2493
- for (const name of Object.keys(definitions)) {
2494
- const variable = definitions[name];
2495
- const value = variable.read(params);
2496
- values[name] = value;
2497
- Object.assign(canonical, variable.write(value));
2498
- }
2499
- useEffect(() => {
2500
- if (Object.entries(canonical).some(([key, value]) => params.get(key) !== value)) writeSearch(canonical);
2501
- });
2502
- function update(next, history) {
2503
- const changes = {};
2504
- let mode = history ?? "replace";
2505
- for (const name of Object.keys(next)) {
2506
- const variable = definitions[name];
2507
- const value = next[name];
2508
- invariant(variable.valid(value), `Invalid value for variable ${name}.`);
2509
- Object.assign(changes, variable.write(value));
2510
- if (!history && variable.history === "push") mode = "push";
2511
- }
2512
- writeSearch(changes, mode);
2513
- }
2514
- function set(name, value) {
2515
- update({ [name]: value });
2516
- }
2517
- function reset(name) {
2518
- const variable = definitions[name];
2519
- set(name, variable.defaultValue);
2520
- }
2521
- function resetAll() {
2522
- update(Object.fromEntries(Object.entries(definitions).map(([name, variable]) => [name, variable.defaultValue])), "push");
2523
- }
2524
- function clearAll() {
2525
- update(Object.fromEntries(Object.entries(definitions).filter(([, variable]) => variable.clearValue !== void 0 && variable.kind !== "search" && variable.presentation?.group !== "display").map(([name, variable]) => [name, variable.clearValue])), "push");
2526
- }
2527
- function bind(name) {
2528
- const variable = definitions[name];
2529
- return {
2530
- value: values[name],
2531
- onChange(value) {
2532
- return set(name, value);
2533
- },
2534
- resetValue: variable.defaultValue
2535
- };
2536
- }
2537
- return {
2538
- values,
2539
- set,
2540
- reset,
2541
- resetAll,
2542
- clearAll,
2543
- update,
2544
- bind
2536
+ //#region src/ui/date-time-range-label.ts
2537
+ /** Rebased timestamps are wall-clock fields; never convert them through the display timezone. */
2538
+ function dateTimeRangeLabel(value, options = {}) {
2539
+ const { from, to } = parseDateTimeRange(value);
2540
+ if (!(from instanceof Date) || !(to instanceof Date)) return formatDateTimeRange(value);
2541
+ if (from.getTime() % fixedUnitMilliseconds.DAY === 0 && to.getTime() % fixedUnitMilliseconds.DAY === 0) return formatDateRange({
2542
+ start: from.toISOString().slice(0, 10),
2543
+ end: (/* @__PURE__ */ new Date(to.getTime() - 1)).toISOString().slice(0, 10)
2544
+ }, options);
2545
+ const rebased = {
2546
+ ...options,
2547
+ timeZone: "UTC"
2545
2548
  };
2549
+ return `${formatDateTime(from, rebased)} – ${formatDateTime(to, rebased)}`;
2546
2550
  }
2547
2551
  //#endregion
2548
2552
  //#region src/ui/searchItems.ts
@@ -2968,301 +2972,967 @@ function ChoicePicker(props) {
2968
2972
  });
2969
2973
  }
2970
2974
  //#endregion
2971
- //#region src/ui/Checkbox.tsx
2972
- const CheckboxGroupContext = createContext(null);
2973
- function Checkbox({ label, description, checked, value, onChange, disabled, className }) {
2974
- const group = useContext(CheckboxGroupContext);
2975
- const descriptionId = useId();
2976
- invariant(value === void 0 || group, "A checkbox with value must belong to a CheckboxGroup.");
2977
- const selected = value === void 0 ? checked : group.values.includes(value);
2978
- return /* @__PURE__ */ jsxs("label", {
2979
- "data-atbl-focus": "ring",
2980
- "data-atbl-control": "action",
2981
- className: classNames("altertable-checkbox", className),
2975
+ //#region src/ui/date-time-range-input.ts
2976
+ function getDateTimeRangeInputSegmentSelection({ value, locale = "en-US", selectionStart, selectionEnd, direction }) {
2977
+ const segments = getDateTimeRangeEndpoints(value, locale).flatMap((endpoint) => endpoint.segments);
2978
+ const selectedIndex = segments.findIndex((segment) => segment.start === selectionStart && segment.end === selectionEnd);
2979
+ if (selectedIndex >= 0) {
2980
+ const adjacentIndex = selectedIndex + direction;
2981
+ const adjacentSegment = adjacentIndex >= 0 && adjacentIndex < segments.length ? segments.at(adjacentIndex) : void 0;
2982
+ if (adjacentSegment) return toSelection(adjacentSegment);
2983
+ const cursorPosition = direction === -1 ? 0 : value.length;
2984
+ return {
2985
+ start: cursorPosition,
2986
+ end: cursorPosition
2987
+ };
2988
+ }
2989
+ if (selectionStart !== selectionEnd) return null;
2990
+ return toSelection(direction === 1 ? segments.find((candidate) => candidate.end > selectionStart) : segments.findLast((candidate) => candidate.start < selectionStart));
2991
+ }
2992
+ function editDateTimeRangeInputSegment({ value, locale = "en-US", selectionStart, selectionEnd, direction }) {
2993
+ const endpoints = getDateTimeRangeEndpoints(value, locale);
2994
+ const segment = endpoints.flatMap((endpoint) => endpoint.segments).find((candidate) => candidate.start === selectionStart && candidate.end === selectionEnd);
2995
+ if (!segment) return null;
2996
+ const endpoint = endpoints.at(segment.endpointIndex);
2997
+ if (!endpoint) return null;
2998
+ const nextEndpointValue = formatEndpoint(editEndpoint(endpoint, segment.kind, direction), locale);
2999
+ const nextValue = `${value.slice(0, endpoint.start)}${nextEndpointValue}${value.slice(endpoint.end)}`;
3000
+ const nextSegment = getDateTimeRangeEndpoints(nextValue, locale).at(segment.endpointIndex)?.segments.find((candidate) => candidate.kind === segment.kind);
3001
+ if (!nextSegment) return null;
3002
+ return {
3003
+ value: nextValue,
3004
+ start: nextSegment.start,
3005
+ end: nextSegment.end
3006
+ };
3007
+ }
3008
+ /** Convert only complete, formatter-produced endpoints; natural-language input stays untouched. */
3009
+ function normalizeDateTimeRangeInput(value, locale) {
3010
+ const endpoints = getDateTimeRangeEndpoints(value, locale);
3011
+ for (const endpoint of endpoints.toReversed()) value = `${value.slice(0, endpoint.start)}${endpointDate(endpoint).toISOString()}${value.slice(endpoint.end)}`;
3012
+ return value;
3013
+ }
3014
+ function getDateTimeRangeEndpoints(value, locale) {
3015
+ locale = new Intl.Locale(locale, { calendar: "gregory" }).toString();
3016
+ const formatter = new Intl.DateTimeFormat(locale, {
3017
+ dateStyle: "medium",
3018
+ timeStyle: "short",
3019
+ hourCycle: "h23",
3020
+ timeZone: "UTC"
3021
+ });
3022
+ const sample = formatter.formatToParts(new Date(Date.UTC(2026, 10, 22, 16, 45)));
3023
+ const months = Array.from({ length: 12 }, (_, month) => formatter.formatToParts(new Date(Date.UTC(2026, month, 22))).find((part) => part.type === "month").value);
3024
+ const number = new Intl.NumberFormat(locale, { useGrouping: false });
3025
+ const digits = Array.from({ length: 10 }, (_, digit) => number.format(digit));
3026
+ function parseNumber(text) {
3027
+ return Number(Array.from(text, (char) => {
3028
+ const digit = digits.indexOf(char);
3029
+ return digit < 0 ? char : String(digit);
3030
+ }).join(""));
3031
+ }
3032
+ const fields = [];
3033
+ const pattern = sample.map((part) => {
3034
+ if (part.type === "literal") return RegExp.escape(part.value);
3035
+ if (![
3036
+ "month",
3037
+ "day",
3038
+ "year",
3039
+ "hour",
3040
+ "minute"
3041
+ ].includes(part.type)) return RegExp.escape(part.value);
3042
+ fields.push(part.type);
3043
+ return part.type === "month" ? `(${months.map((month) => RegExp.escape(month)).join("|")})` : part.type === "year" ? "(\\p{Decimal_Number}{1,4})" : "(\\p{Decimal_Number}{1,2})";
3044
+ }).join("");
3045
+ return [...value.matchAll(new RegExp(pattern, "dgu"))].flatMap((match, endpointIndex) => {
3046
+ const values = Object.fromEntries(fields.map((field, index) => [field, match[index + 1]]));
3047
+ const endpoint = {
3048
+ start: match.index,
3049
+ end: match.index + match[0].length,
3050
+ month: months.indexOf(values.month),
3051
+ day: parseNumber(values.day),
3052
+ year: parseNumber(values.year),
3053
+ hour: parseNumber(values.hour),
3054
+ minute: parseNumber(values.minute),
3055
+ segments: fields.map((field, index) => {
3056
+ const [start, end] = match.indices[index + 1];
3057
+ return createSegment(field, endpointIndex, start, end - start);
3058
+ })
3059
+ };
3060
+ return formatEndpoint(endpoint, locale) === match[0] ? [endpoint] : [];
3061
+ });
3062
+ }
3063
+ function createSegment(kind, endpointIndex, start, length) {
3064
+ return {
3065
+ kind,
3066
+ endpointIndex,
3067
+ start,
3068
+ end: start + length
3069
+ };
3070
+ }
3071
+ function editEndpoint(endpoint, kind, direction) {
3072
+ const edited = { ...endpoint };
3073
+ switch (kind) {
3074
+ case "month":
3075
+ edited.month = wrap(endpoint.month + direction, 0, 11);
3076
+ edited.day = Math.min(endpoint.day, getEndpointDaysInMonth(edited.year, edited.month));
3077
+ break;
3078
+ case "day":
3079
+ edited.day = wrap(endpoint.day + direction, 1, getEndpointDaysInMonth(endpoint.year, endpoint.month));
3080
+ break;
3081
+ case "year":
3082
+ edited.year = wrap(endpoint.year + direction, 1, 9999);
3083
+ edited.day = Math.min(endpoint.day, getEndpointDaysInMonth(edited.year, endpoint.month));
3084
+ break;
3085
+ case "hour":
3086
+ edited.hour = wrap(endpoint.hour + direction, 0, 23);
3087
+ break;
3088
+ case "minute": edited.minute = wrap(endpoint.minute + direction, 0, 59);
3089
+ }
3090
+ return edited;
3091
+ }
3092
+ function endpointDate(endpoint) {
3093
+ const date = /* @__PURE__ */ new Date(0);
3094
+ date.setUTCFullYear(endpoint.year, endpoint.month, endpoint.day);
3095
+ date.setUTCHours(endpoint.hour, endpoint.minute, 0, 0);
3096
+ return date;
3097
+ }
3098
+ function formatEndpoint(endpoint, locale) {
3099
+ return formatDateTimeRangeInputDate(endpointDate(endpoint), locale);
3100
+ }
3101
+ function getEndpointDaysInMonth(year, month) {
3102
+ const date = /* @__PURE__ */ new Date(0);
3103
+ date.setUTCFullYear(year, month + 1, 0);
3104
+ return date.getUTCDate();
3105
+ }
3106
+ function wrap(value, minimum, maximum) {
3107
+ const size = maximum - minimum + 1;
3108
+ return (value - minimum + size) % size + minimum;
3109
+ }
3110
+ function toSelection(segment) {
3111
+ return segment ? {
3112
+ start: segment.start,
3113
+ end: segment.end
3114
+ } : null;
3115
+ }
3116
+ /** Editable fields use Gregorian years with localized ordering, month names, and digits. */
3117
+ function formatDateTimeRangeInputDate(date, locale) {
3118
+ return formatDateTime(date, {
3119
+ locale: new Intl.Locale(locale, { calendar: "gregory" }).toString(),
3120
+ timeZone: "UTC"
3121
+ });
3122
+ }
3123
+ //#endregion
3124
+ //#region src/ui/date-time-range-picker-state.ts
3125
+ const initialPickerState = {
3126
+ open: false,
3127
+ mode: "presets",
3128
+ draft: "",
3129
+ edited: false,
3130
+ highlight: -1,
3131
+ error: "",
3132
+ help: false,
3133
+ helpSide: "left",
3134
+ calendar: null,
3135
+ complete: false
3136
+ };
3137
+ function dateTimeRangePickerReducer(state, action) {
3138
+ switch (action.type) {
3139
+ case "open": return {
3140
+ ...state,
3141
+ ...!state.open ? {
3142
+ draft: action.draft,
3143
+ edited: false,
3144
+ error: "",
3145
+ help: false
3146
+ } : {},
3147
+ open: true,
3148
+ mode: "presets",
3149
+ highlight: -1,
3150
+ helpSide: action.helpSide
3151
+ };
3152
+ case "close": return {
3153
+ ...state,
3154
+ open: false,
3155
+ help: false,
3156
+ error: ""
3157
+ };
3158
+ case "edit": return {
3159
+ ...state,
3160
+ draft: action.draft,
3161
+ edited: true,
3162
+ mode: "editing",
3163
+ highlight: -1,
3164
+ error: ""
3165
+ };
3166
+ case "calendar": return {
3167
+ ...state,
3168
+ calendar: action.value,
3169
+ complete: false,
3170
+ mode: "calendar",
3171
+ help: false,
3172
+ error: ""
3173
+ };
3174
+ case "error": return {
3175
+ ...state,
3176
+ error: action.error,
3177
+ help: true
3178
+ };
3179
+ case "update": return {
3180
+ ...state,
3181
+ ...action.value
3182
+ };
3183
+ }
3184
+ }
3185
+ //#endregion
3186
+ //#region src/ui/Select.tsx
3187
+ /** Labeled single selection with keyboard navigation and a styled listbox. */
3188
+ function Select$1({ label, options, value, onChange, disabled, required, className, align = "start", labelPlacement = "above", icon, size, ...props }) {
3189
+ const inline = labelPlacement === "inline";
3190
+ validateChoiceOptions(options);
3191
+ const selected = options.find((option) => option.id === value);
3192
+ invariant(selected, "Select value must refer to an available option.");
3193
+ const trigger = /* @__PURE__ */ jsx(PressButton, {
3194
+ size,
3195
+ className: classNames("altertable-select-trigger", inline && "altertable-picker-trigger"),
3196
+ children: /* @__PURE__ */ jsx(PickerTriggerContent, {
3197
+ label,
3198
+ labelPlacement,
3199
+ value: /* @__PURE__ */ jsx(SelectValue, { children: selected.label }),
3200
+ icon,
3201
+ iconSize: size === "compact" ? 14 : void 0
3202
+ })
3203
+ });
3204
+ return /* @__PURE__ */ jsxs(Select, {
3205
+ ...props,
3206
+ selectedKey: value,
3207
+ onSelectionChange: (key) => {
3208
+ if (key !== null) onChange(String(key));
3209
+ },
3210
+ isDisabled: disabled,
3211
+ isRequired: required,
3212
+ className: classNames("altertable-select", "altertable-field", className),
3213
+ "data-label-placement": labelPlacement,
2982
3214
  children: [
2983
- /* @__PURE__ */ jsx("input", {
2984
- type: "checkbox",
2985
- value,
2986
- checked: selected,
2987
- "aria-label": label,
2988
- "aria-describedby": description ? descriptionId : void 0,
2989
- disabled: disabled || group?.disabled,
2990
- onChange: (event) => {
2991
- if (value === void 0) onChange(event.currentTarget.checked);
2992
- else group.onChange(value, event.currentTarget.checked);
2993
- }
3215
+ /* @__PURE__ */ jsx(Label, {
3216
+ className: inline ? "altertable-sr-only" : void 0,
3217
+ children: label
2994
3218
  }),
2995
- /* @__PURE__ */ jsx(SelectionMark, { selected }),
2996
- /* @__PURE__ */ jsxs("span", { children: [label, description && /* @__PURE__ */ jsx("small", {
2997
- id: descriptionId,
2998
- children: description
2999
- })] })
3219
+ icon && inline ? /* @__PURE__ */ jsx(Tooltip, {
3220
+ content: label,
3221
+ children: trigger
3222
+ }) : trigger,
3223
+ /* @__PURE__ */ jsx(PopoverSurface, {
3224
+ className: "altertable-select-popover",
3225
+ placement: `bottom ${align}`,
3226
+ children: /* @__PURE__ */ jsx(ListBox, {
3227
+ items: options,
3228
+ "aria-label": `${label} values`,
3229
+ className: "altertable-select-options",
3230
+ children: (option) => /* @__PURE__ */ jsx(ListBoxItem, {
3231
+ id: option.id,
3232
+ textValue: option.label,
3233
+ className: "altertable-select-option",
3234
+ "data-atbl-control": "action",
3235
+ "data-atbl-internal-surface": "option",
3236
+ "data-atbl-focus": "inset",
3237
+ children: ({ isSelected }) => /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(SelectionMark, {
3238
+ selected: isSelected,
3239
+ multiple: false
3240
+ }), /* @__PURE__ */ jsxs("span", { children: [option.label, option.description && /* @__PURE__ */ jsx("small", { children: option.description })] })] })
3241
+ })
3242
+ })
3243
+ })
3000
3244
  ]
3001
3245
  });
3002
3246
  }
3003
3247
  //#endregion
3004
- //#region src/ui/DateRangePicker.tsx
3005
- /** The app owns URL state; `dateRangeControl` binds a date variable to this picker. */
3006
- function DateRangePicker$1({ label = "Date range", labelPlacement, value, onChange, minDate, maxDate, maxRangeDays, timeZone, resetValue, isDefault, onReset, onPresetChange, selectedPresetId, calendarFooter, comparison, className, ...props }) {
3007
- const dateFormatting = useDateFormatting();
3008
- const [error, setError] = useState("");
3009
- const [open, setOpen] = useState(false);
3010
- const selected = value ? {
3011
- start: parseDate(value.start),
3012
- end: parseDate(value.end)
3013
- } : null;
3014
- const presets = availableDatePresets({
3015
- minDate,
3016
- maxDate,
3017
- maxRangeDays,
3018
- timeZone
3248
+ //#region src/ui/DateTimeRangeCalendar.tsx
3249
+ /** Calendar days map to UTC fields and a next-midnight exclusive end. */
3250
+ function DateTimeRangeCalendar({ value, maxRangeDays, contract, onChange, onCompleteChange }) {
3251
+ const { locale } = useDateFormatting();
3252
+ const limits = contract?.bounds();
3253
+ const currentDay = limits ? parseDate(limits.maxDate) : today("UTC");
3254
+ const [selection, setSelection] = useState(() => {
3255
+ if (!value) return null;
3256
+ try {
3257
+ const resolved = contract ? contract.datetime.resolve(value) : resolveDateTimeRange(value);
3258
+ if (!resolved.from || resolved.from.toISOString().slice(0, 10) > currentDay.toString()) return null;
3259
+ return {
3260
+ start: parseDate(resolved.from.toISOString().slice(0, 10)),
3261
+ end: parseDate((/* @__PURE__ */ new Date(resolved.to.getTime() - 1)).toISOString().slice(0, 10))
3262
+ };
3263
+ } catch {
3264
+ return null;
3265
+ }
3019
3266
  });
3020
- const selectedDays = value ? inclusiveDays(value) : 0;
3021
- function choosePreset(preset) {
3022
- setError("");
3023
- if (onPresetChange) onPresetChange(preset.id);
3024
- else onChange(preset.range);
3025
- setOpen(false);
3267
+ const [focused, setFocused] = useState(selection?.start ?? currentDay);
3268
+ const ref = useRef(null);
3269
+ useEffect(() => {
3270
+ ref.current?.querySelector("[role=\"gridcell\"][tabindex=\"0\"], [role=\"gridcell\"] [tabindex=\"0\"]")?.focus();
3271
+ }, []);
3272
+ return /* @__PURE__ */ jsxs(RangeCalendar, {
3273
+ ref,
3274
+ "aria-label": "Select date range",
3275
+ className: "altertable-datetime-calendar",
3276
+ value: selection,
3277
+ focusedValue: focused,
3278
+ onFocusChange: setFocused,
3279
+ maxValue: currentDay,
3280
+ minValue: limits?.minDate ? parseDate(limits.minDate) : void 0,
3281
+ isDateUnavailable: (date, anchor) => !!maxRangeDays && !!anchor && Math.abs(date.toDate("UTC").getTime() - anchor.toDate("UTC").getTime()) >= maxRangeDays * fixedUnitMilliseconds.DAY,
3282
+ onChange: (range) => {
3283
+ setSelection(range);
3284
+ onChange(range ? {
3285
+ from: range.start.toDate("UTC"),
3286
+ to: range.end.add({ days: 1 }).toDate("UTC")
3287
+ } : null);
3288
+ },
3289
+ children: [
3290
+ /* @__PURE__ */ jsx(CalendarCompleteness, { onChange: onCompleteChange }),
3291
+ /* @__PURE__ */ jsxs("header", { children: [
3292
+ /* @__PURE__ */ jsx(Button$1, {
3293
+ size: "icon",
3294
+ "aria-label": "Previous month",
3295
+ onClick: () => setFocused(focused.subtract({ months: 1 })),
3296
+ children: /* @__PURE__ */ jsx(AppIcon, {
3297
+ name: "previousMonth",
3298
+ size: 16
3299
+ })
3300
+ }),
3301
+ /* @__PURE__ */ jsx(Select$1, {
3302
+ label: "Month",
3303
+ labelPlacement: "inline",
3304
+ value: String(focused.month),
3305
+ options: Array.from({ length: 12 }, (_, index) => ({
3306
+ id: String(index + 1),
3307
+ label: new Intl.DateTimeFormat(locale, {
3308
+ month: "long",
3309
+ timeZone: "UTC"
3310
+ }).format(new Date(Date.UTC(2e3, index, 1)))
3311
+ })),
3312
+ onChange: (month) => setFocused(focused.set({ month: Number(month) }))
3313
+ }),
3314
+ /* @__PURE__ */ jsx(Select$1, {
3315
+ label: "Year",
3316
+ labelPlacement: "inline",
3317
+ value: String(focused.year),
3318
+ options: Array.from({ length: currentDay.year - Math.min(currentDay.year - 100, focused.year) + 1 }, (_, index) => {
3319
+ const year = currentDay.year - index;
3320
+ return {
3321
+ id: String(year),
3322
+ label: String(year)
3323
+ };
3324
+ }),
3325
+ onChange: (year) => setFocused(focused.set({ year: Number(year) }))
3326
+ }),
3327
+ /* @__PURE__ */ jsx(Button$1, {
3328
+ size: "icon",
3329
+ "aria-label": "Next month",
3330
+ disabled: focused.year >= currentDay.year && focused.month >= currentDay.month,
3331
+ onClick: () => setFocused(focused.add({ months: 1 })),
3332
+ children: /* @__PURE__ */ jsx(AppIcon, {
3333
+ name: "nextMonth",
3334
+ size: 16
3335
+ })
3336
+ })
3337
+ ] }),
3338
+ /* @__PURE__ */ jsxs(CalendarGrid, { children: [/* @__PURE__ */ jsx(CalendarGridHeader, { children: (day) => /* @__PURE__ */ jsx(CalendarHeaderCell, { children: day }) }), /* @__PURE__ */ jsx(CalendarGridBody, { children: (date) => /* @__PURE__ */ jsx(CalendarCell, {
3339
+ date,
3340
+ "data-atbl-focus": "inset",
3341
+ "data-atbl-control": "action"
3342
+ }) })] })
3343
+ ]
3344
+ });
3345
+ }
3346
+ function CalendarCompleteness({ onChange }) {
3347
+ const state = useContext(RangeCalendarStateContext);
3348
+ const complete = !!state?.value && !state.anchorDate;
3349
+ const notifyChange = useEffectEvent(onChange);
3350
+ useEffect(() => {
3351
+ notifyChange(complete);
3352
+ }, [complete]);
3353
+ return null;
3354
+ }
3355
+ //#endregion
3356
+ //#region src/ui/DateTimeRangePicker.tsx
3357
+ const presetInputs = [
3358
+ ["15m", "Past 15 minutes"],
3359
+ ["4h", "Past 4 hours"],
3360
+ ["1d", "Past 24 hours"],
3361
+ ["2d", "Past 2 days"],
3362
+ ["3d", "Past 3 days"],
3363
+ ["7d", "Past 7 days"],
3364
+ ["1mo", "Past 1 month"],
3365
+ ["today", "Today"],
3366
+ ["yesterday", "Yesterday"]
3367
+ ];
3368
+ function shortcutLabel(shortcut) {
3369
+ return !shortcut || /^(today|yesterday)$/i.test(shortcut) ? "-" : shortcut;
3370
+ }
3371
+ const examples = {
3372
+ Recent: [
3373
+ "45m",
3374
+ "12 hours",
3375
+ "10d",
3376
+ "2 weeks",
3377
+ "last month",
3378
+ "yesterday",
3379
+ "today",
3380
+ "month to date"
3381
+ ],
3382
+ Calendar: [
3383
+ "2022",
3384
+ "2023 to 2024",
3385
+ "July 2024",
3386
+ "Jul 1",
3387
+ "Jul 1 - Jul 2",
3388
+ "7/1",
3389
+ "10:00 - 16:00"
3390
+ ],
3391
+ Since: ["since 7/1", "Jul 2 12pm to now"],
3392
+ Unix: ["1783003329 - 1783608129", "1783609703 to now"]
3393
+ };
3394
+ function resolvedLabel(value, contract, options = {}) {
3395
+ if (!value) return "";
3396
+ try {
3397
+ const { from, to } = contract ? contract.datetime.resolve(value) : resolveDateTimeRange(value);
3398
+ return from ? `${formatDateTimeRangeInputDate(from, options.locale ?? "en-US")} – ${formatDateTimeRangeInputDate(to, options.locale ?? "en-US")}` : "";
3399
+ } catch {
3400
+ return value.from ? `${formatDateTimeBound(value.from)} to ${formatDateTimeBound(value.to)}` : "";
3401
+ }
3402
+ }
3403
+ function summaryLabel(value, options) {
3404
+ if (!value) return "";
3405
+ for (const [input, label] of presetInputs) {
3406
+ const parsed = parseDateTimeRangeInput(input);
3407
+ if (parsed.ok && serializeDateTimeRange(parsed.range) === serializeDateTimeRange(value)) return label;
3408
+ }
3409
+ if (value.from && !(value.from instanceof Date) && !value.to && value.from.offset.length === 0) switch (value.from.anchor) {
3410
+ case "RELATIVE_ANCHOR_START_OF_WEEK": return "Week to date";
3411
+ case "RELATIVE_ANCHOR_START_OF_MONTH": return "Month to date";
3412
+ case "RELATIVE_ANCHOR_START_OF_YEAR": return "Year to date";
3413
+ }
3414
+ if (value.from && !(value.from instanceof Date) && !value.to && value.from.anchor === "RELATIVE_ANCHOR_NOW" && value.from.offset.length === 1) {
3415
+ const offset = value.from.offset[0];
3416
+ if (offset.amount < 0) return `Past ${-offset.amount} ${offset.unit.toLowerCase()}${offset.amount === -1 ? "" : "s"}`;
3417
+ }
3418
+ if (value.from instanceof Date) return value.to instanceof Date ? dateTimeRangeLabel(value, options) : !value.to ? `Since ${formatDateTime(value.from, {
3419
+ ...options,
3420
+ timeZone: "UTC"
3421
+ })}` : formatDateTimeRange(value);
3422
+ return formatDateTimeRange(value);
3423
+ }
3424
+ /** A datetime picker with presets, natural-language input, and a calendar.
3425
+ * Presets apply immediately; Enter or calendar Apply commits edits; dismissal discards them.
3426
+ * Unmodified arrows navigate presets or edit date segments. Escape returns from the
3427
+ * calendar to presets or closes the picker. Calendar days end at exclusive next UTC midnight.
3428
+ */
3429
+ function DateTimeRangePicker({ value, onChange, liveOption, comparison, isDefault, onReset, calendarFooter, className, placeholder = "Select date range…", label = "Date range", labelPlacement = "inline", maxRangeDays, contract, presets: configuredPresets, disabled }) {
3430
+ const id = useId();
3431
+ const dateFormatting = useDateFormatting();
3432
+ const trigger = useRef(null);
3433
+ const input = useRef(null);
3434
+ const pending = useRef(null);
3435
+ const helpTimer = useRef(void 0);
3436
+ const [state, dispatch] = useReducer(dateTimeRangePickerReducer, initialPickerState);
3437
+ const { open, mode, draft, edited, highlight, error, help, helpSide, calendar, complete } = state;
3438
+ const [selectionRevision, setSelectionRevision] = useState(0);
3439
+ useLayoutEffect(() => {
3440
+ if (selectionRevision) {
3441
+ input.current?.focus({ preventScroll: true });
3442
+ input.current?.select();
3443
+ }
3444
+ }, [selectionRevision]);
3445
+ const popup = useRef(null);
3446
+ useEffect(() => {
3447
+ if (!open) return;
3448
+ function dismissOutside(event) {
3449
+ const target = event.target;
3450
+ if (!(target instanceof Element) || trigger.current?.contains(target) || popup.current?.contains(target)) return;
3451
+ if (mode === "calendar" && target.closest(".altertable-popover-surface")) return;
3452
+ dispatch({ type: "close" });
3453
+ pending.current = null;
3454
+ }
3455
+ document.addEventListener("pointerdown", dismissOutside, true);
3456
+ document.addEventListener("focusin", dismissOutside, true);
3457
+ return () => {
3458
+ document.removeEventListener("pointerdown", dismissOutside, true);
3459
+ document.removeEventListener("focusin", dismissOutside, true);
3460
+ };
3461
+ }, [open, mode]);
3462
+ useEffect(() => () => clearTimeout(helpTimer.current), []);
3463
+ function rangeError(range) {
3464
+ try {
3465
+ parseDateTimeRange(range, { maxRangeDays });
3466
+ contract?.datetime.resolve(range);
3467
+ return "";
3468
+ } catch (error) {
3469
+ return error instanceof Error ? error.message : "Invalid date range.";
3470
+ }
3026
3471
  }
3027
- return /* @__PURE__ */ jsx(PickerField, {
3472
+ const presets = [...liveOption ? [{
3473
+ shortcut: "Live",
3474
+ label: "Live",
3475
+ range: liveOption.dateTimeRange,
3476
+ live: true
3477
+ }] : [], ...(configuredPresets ?? presetInputs.map(([shortcut, label]) => ({
3478
+ shortcut,
3479
+ label,
3480
+ range: shortcut
3481
+ }))).flatMap((preset) => {
3482
+ if (typeof preset.range !== "string") return [{
3483
+ ...preset,
3484
+ range: preset.range,
3485
+ live: false
3486
+ }];
3487
+ const result = parseDateTimeRangeInput(preset.range);
3488
+ return result.ok ? [{
3489
+ ...preset,
3490
+ range: result.range,
3491
+ live: false
3492
+ }] : [];
3493
+ })].filter((preset) => !rangeError(preset.range));
3494
+ const calendarIndex = presets.length;
3495
+ const moreIndex = calendarIndex + 1;
3496
+ const comparisonIndex = moreIndex + 1;
3497
+ const lastIndex = comparison?.range ? comparisonIndex : moreIndex;
3498
+ const live = !!(value && liveOption?.isLive && serializeDateTimeRange(value) === serializeDateTimeRange(liveOption.dateTimeRange));
3499
+ const selected = presets.find((preset) => value && preset.live === live && serializeDateTimeRange(preset.range) === serializeDateTimeRange(value));
3500
+ function selectInput() {
3501
+ setSelectionRevision((revision) => revision + 1);
3502
+ }
3503
+ function openPresets() {
3504
+ pending.current = null;
3505
+ const bounds = trigger.current?.getBoundingClientRect();
3506
+ dispatch({
3507
+ type: "open",
3508
+ draft: resolvedLabel(value, contract, dateFormatting),
3509
+ helpSide: bounds && bounds.left >= 280 ? "left" : bounds && window.innerWidth - bounds.right >= 280 ? "right" : "inline"
3510
+ });
3511
+ selectInput();
3512
+ }
3513
+ function close(focus = false) {
3514
+ dispatch({ type: "close" });
3515
+ pending.current = null;
3516
+ if (focus) input.current?.focus();
3517
+ }
3518
+ function commit(range, isLive = false) {
3519
+ const issue = rangeError(range);
3520
+ if (issue) {
3521
+ dispatch({
3522
+ type: "error",
3523
+ error: issue
3524
+ });
3525
+ return;
3526
+ }
3527
+ onChange(range, isLive);
3528
+ close(true);
3529
+ }
3530
+ function submit(text) {
3531
+ const normalized = normalizeDateTimeRangeInput(text, dateFormatting.locale);
3532
+ const result = parseDateTimeRangeInput(normalized);
3533
+ if (result.ok) {
3534
+ commit(result.range);
3535
+ return;
3536
+ }
3537
+ const bounds = normalized.split(/\s+(?:to|–)\s+/i);
3538
+ if (bounds.length === 2) try {
3539
+ commit({
3540
+ from: parseDateTimeBound(bounds[0]),
3541
+ to: parseDateTimeBound(bounds[1])
3542
+ });
3543
+ return;
3544
+ } catch {}
3545
+ dispatch({
3546
+ type: "error",
3547
+ error: "Couldn't parse that date range."
3548
+ });
3549
+ }
3550
+ function choose(index) {
3551
+ if (index === comparisonIndex) {
3552
+ if (comparison?.range) {
3553
+ comparison.onChange(!comparison.enabled);
3554
+ close(true);
3555
+ }
3556
+ return;
3557
+ }
3558
+ const preset = presets[index];
3559
+ if (preset) {
3560
+ commit(preset.range, preset.live);
3561
+ return;
3562
+ }
3563
+ if (index === calendarIndex) {
3564
+ let nextCalendar = null;
3565
+ try {
3566
+ if (value) {
3567
+ const resolved = contract ? contract.datetime.resolve(value) : resolveDateTimeRange(value);
3568
+ const from = resolved.from ? new Date(resolved.from) : null;
3569
+ const to = /* @__PURE__ */ new Date(resolved.to.getTime() - 1);
3570
+ from?.setUTCHours(0, 0, 0, 0);
3571
+ to.setUTCHours(24, 0, 0, 0);
3572
+ nextCalendar = from ? {
3573
+ from,
3574
+ to
3575
+ } : null;
3576
+ }
3577
+ } catch {
3578
+ nextCalendar = null;
3579
+ }
3580
+ dispatch({
3581
+ type: "calendar",
3582
+ value: nextCalendar
3583
+ });
3584
+ } else {
3585
+ dispatch({
3586
+ type: "update",
3587
+ value: {
3588
+ highlight: moreIndex,
3589
+ help: true
3590
+ }
3591
+ });
3592
+ selectInput();
3593
+ }
3594
+ }
3595
+ function back() {
3596
+ dispatch({
3597
+ type: "update",
3598
+ value: {
3599
+ mode: "presets",
3600
+ highlight: calendarIndex
3601
+ }
3602
+ });
3603
+ selectInput();
3604
+ }
3605
+ function highlightOption(index) {
3606
+ dispatch({
3607
+ type: "update",
3608
+ value: { highlight: index }
3609
+ });
3610
+ clearTimeout(helpTimer.current);
3611
+ if (index === moreIndex) dispatch({
3612
+ type: "update",
3613
+ value: { help: true }
3614
+ });
3615
+ else helpTimer.current = setTimeout(() => dispatch({
3616
+ type: "update",
3617
+ value: { help: false }
3618
+ }), 300);
3619
+ requestAnimationFrame(() => document.getElementById(`${id}-option-${index}`)?.scrollIntoView({ block: "nearest" }));
3620
+ }
3621
+ function navigateOption(index) {
3622
+ highlightOption(index);
3623
+ input.current?.focus();
3624
+ input.current?.select();
3625
+ }
3626
+ return /* @__PURE__ */ jsxs(PickerField, {
3028
3627
  label,
3029
3628
  labelPlacement,
3030
- children: /* @__PURE__ */ jsxs(DateRangePicker, {
3031
- ...props,
3629
+ children: [/* @__PURE__ */ jsxs("div", {
3630
+ ref: trigger,
3631
+ className: classNames("altertable-datetime-input", className),
3632
+ "data-disabled": disabled || void 0,
3633
+ "data-invalid": !!error || void 0,
3634
+ "data-atbl-focus": "group",
3635
+ "data-atbl-internal-surface": "field",
3636
+ onClick: () => {
3637
+ if (!disabled && !open) openPresets();
3638
+ },
3639
+ children: [
3640
+ /* @__PURE__ */ jsx("span", {
3641
+ className: "altertable-datetime-shortcut",
3642
+ "aria-hidden": "true",
3643
+ children: /* @__PURE__ */ jsx("span", { children: shortcutLabel(selected?.shortcut) })
3644
+ }),
3645
+ /* @__PURE__ */ jsx("input", {
3646
+ ref: input,
3647
+ onPointerDown: () => {
3648
+ pending.current = null;
3649
+ },
3650
+ role: "combobox",
3651
+ "aria-label": label,
3652
+ "aria-expanded": open,
3653
+ "aria-controls": open ? `${id}-popup` : void 0,
3654
+ "aria-haspopup": mode === "calendar" ? "dialog" : "listbox",
3655
+ "aria-autocomplete": mode === "presets" ? "list" : "none",
3656
+ "aria-activedescendant": open && mode !== "calendar" && highlight >= 0 ? `${id}-option-${highlight}` : void 0,
3657
+ "aria-invalid": !!error,
3658
+ "aria-describedby": error ? `${id}-error` : void 0,
3659
+ disabled,
3660
+ readOnly: !open,
3661
+ placeholder,
3662
+ value: open ? draft : live ? "Live" : `${selected?.label ?? summaryLabel(value, dateFormatting)}${comparison?.enabled ? " · vs previous" : ""}`,
3663
+ onFocus: () => dispatch({
3664
+ type: "update",
3665
+ value: { error: "" }
3666
+ }),
3667
+ onChange: (event) => {
3668
+ pending.current = null;
3669
+ dispatch({
3670
+ type: "edit",
3671
+ draft: event.target.value
3672
+ });
3673
+ },
3674
+ onKeyDown: (event) => {
3675
+ if (!event.key.startsWith("Arrow") && event.key !== "Enter") pending.current = null;
3676
+ if (event.key.startsWith("Arrow") && (event.shiftKey || event.ctrlKey || event.altKey || event.metaKey)) {
3677
+ pending.current = null;
3678
+ return;
3679
+ }
3680
+ if (!open) {
3681
+ if ([
3682
+ "Enter",
3683
+ " ",
3684
+ "ArrowDown",
3685
+ "ArrowUp"
3686
+ ].includes(event.key)) {
3687
+ event.preventDefault();
3688
+ openPresets();
3689
+ }
3690
+ return;
3691
+ }
3692
+ if (event.key === "Escape") {
3693
+ event.preventDefault();
3694
+ if (mode === "calendar") back();
3695
+ else close(true);
3696
+ return;
3697
+ }
3698
+ if (event.key === "Tab") {
3699
+ close();
3700
+ return;
3701
+ }
3702
+ if (event.key === "Enter") {
3703
+ event.preventDefault();
3704
+ if (mode === "presets" && highlight >= 0 && !edited) choose(highlight);
3705
+ else if (mode === "calendar") {
3706
+ if (complete && calendar) commit(calendar);
3707
+ } else {
3708
+ submit(pending.current?.value ?? event.currentTarget.value);
3709
+ pending.current = null;
3710
+ }
3711
+ return;
3712
+ }
3713
+ const current = pending.current ?? {
3714
+ value: event.currentTarget.value,
3715
+ start: event.currentTarget.selectionStart ?? 0,
3716
+ end: event.currentTarget.selectionEnd ?? 0
3717
+ };
3718
+ const args = {
3719
+ value: current.value,
3720
+ locale: dateFormatting.locale,
3721
+ selectionStart: current.start,
3722
+ selectionEnd: current.end,
3723
+ direction: event.key === "ArrowLeft" || event.key === "ArrowDown" ? -1 : 1
3724
+ };
3725
+ if (event.key === "ArrowLeft" || event.key === "ArrowRight") {
3726
+ dispatch({
3727
+ type: "update",
3728
+ value: { mode: "editing" }
3729
+ });
3730
+ dispatch({
3731
+ type: "update",
3732
+ value: { highlight: -1 }
3733
+ });
3734
+ const selection = getDateTimeRangeInputSegmentSelection(args);
3735
+ if (selection) {
3736
+ event.preventDefault();
3737
+ pending.current = {
3738
+ value: current.value,
3739
+ ...selection
3740
+ };
3741
+ input.current?.setSelectionRange(selection.start, selection.end);
3742
+ }
3743
+ }
3744
+ if (event.key === "ArrowUp" || event.key === "ArrowDown") {
3745
+ const edit = editDateTimeRangeInputSegment(args);
3746
+ if (edit) {
3747
+ event.preventDefault();
3748
+ pending.current = edit;
3749
+ dispatch({
3750
+ type: "edit",
3751
+ draft: edit.value
3752
+ });
3753
+ requestAnimationFrame(() => {
3754
+ const next = pending.current;
3755
+ if (next) input.current?.setSelectionRange(next.start, next.end);
3756
+ });
3757
+ } else if (mode === "presets") {
3758
+ event.preventDefault();
3759
+ navigateOption(highlight < 0 ? event.key === "ArrowDown" ? 0 : lastIndex : (highlight + (event.key === "ArrowDown" ? 1 : -1) + lastIndex + 1) % (lastIndex + 1));
3760
+ }
3761
+ }
3762
+ if (mode === "presets" && (event.key === "Home" || event.key === "End")) {
3763
+ event.preventDefault();
3764
+ navigateOption(event.key === "Home" ? 0 : lastIndex);
3765
+ }
3766
+ }
3767
+ }),
3768
+ !disabled && onReset && !isDefault && value && /* @__PURE__ */ jsx("button", {
3769
+ type: "button",
3770
+ className: "altertable-datetime-reset",
3771
+ "data-atbl-focus": "ring",
3772
+ "data-atbl-control": "action",
3773
+ "aria-label": "Reset date range",
3774
+ onClick: (event) => {
3775
+ event.stopPropagation();
3776
+ onReset();
3777
+ },
3778
+ children: /* @__PURE__ */ jsx(AppIcon, {
3779
+ name: "reset",
3780
+ size: 14
3781
+ })
3782
+ }),
3783
+ error && /* @__PURE__ */ jsx("span", {
3784
+ id: `${id}-error`,
3785
+ role: "alert",
3786
+ className: "altertable-sr-only",
3787
+ children: error
3788
+ }),
3789
+ /* @__PURE__ */ jsx(AppIcon, {
3790
+ name: "disclosure",
3791
+ size: 14
3792
+ })
3793
+ ]
3794
+ }), /* @__PURE__ */ jsx(PopoverSurface, {
3795
+ triggerRef: trigger,
3032
3796
  isOpen: open,
3033
3797
  onOpenChange: (next) => {
3034
- setOpen(next);
3035
- if (next) setError("");
3036
- },
3037
- "aria-label": `${props["aria-label"] ?? label}${comparison?.enabled ? ", compared with previous period" : ""}`,
3038
- className: (values) => classNames("altertable-date-range", typeof className === "function" ? className(values) : className),
3039
- value: selected,
3040
- onChange: (range) => {
3041
- const next = range ? {
3042
- start: range.start.toString(),
3043
- end: range.end.toString()
3044
- } : null;
3045
- if (next && !withinBounds(next, minDate, maxDate, maxRangeDays)) {
3046
- setError(maxRangeDays ? `Choose up to ${maxRangeDays} available days.` : "Choose dates within the available range.");
3047
- return;
3048
- }
3049
- setError("");
3050
- onChange(next);
3798
+ if (!next) close();
3051
3799
  },
3052
- minValue: minDate ? parseDate(minDate) : void 0,
3053
- maxValue: maxDate ? parseDate(maxDate) : void 0,
3054
- children: [
3055
- /* @__PURE__ */ jsxs(Group, {
3056
- "data-invalid": error || props.isInvalid ? true : void 0,
3057
- "data-disabled": props.isDisabled || void 0,
3058
- "data-atbl-internal-surface": "field",
3059
- "data-atbl-focus": "group",
3800
+ isNonModal: true,
3801
+ placement: "bottom start",
3802
+ shouldCloseOnInteractOutside: (element) => !trigger.current?.contains(element),
3803
+ className: "altertable-datetime-popover",
3804
+ children: /* @__PURE__ */ jsx("div", {
3805
+ ref: popup,
3806
+ onKeyDownCapture: (event) => {
3807
+ if (event.key === "Escape") {
3808
+ event.preventDefault();
3809
+ event.stopPropagation();
3810
+ if (mode === "calendar") back();
3811
+ else close(true);
3812
+ }
3813
+ if (event.key === "Tab" && event.shiftKey && event.target instanceof HTMLButtonElement && event.target.getAttribute("role") === "checkbox") {
3814
+ event.preventDefault();
3815
+ input.current?.focus();
3816
+ }
3817
+ },
3818
+ children: mode === "calendar" ? /* @__PURE__ */ jsxs("div", {
3819
+ id: `${id}-popup`,
3820
+ role: "dialog",
3821
+ "aria-label": `${label} calendar`,
3822
+ className: "altertable-datetime-calendar-panel",
3060
3823
  children: [
3061
- /* @__PURE__ */ jsx(Button, {
3062
- "data-atbl-internal-surface": "control",
3063
- "data-atbl-focus": "ring",
3064
- "data-atbl-control": "action",
3065
- "aria-label": "Choose dates",
3066
- children: /* @__PURE__ */ jsx(AppIcon, {
3067
- name: "calendar",
3068
- size: 16
3069
- })
3070
- }),
3071
- /* @__PURE__ */ jsx(DateInput, {
3072
- slot: "start",
3073
- children: (segment) => /* @__PURE__ */ jsx(DateSegment, {
3074
- "data-atbl-focus": "inset",
3075
- "data-atbl-internal-focus-state": "focused",
3076
- "data-atbl-control": "text",
3077
- segment
3824
+ /* @__PURE__ */ jsx(DateTimeRangeCalendar, {
3825
+ value,
3826
+ maxRangeDays: contract ? Math.min(maxRangeDays ?? Infinity, contract.bounds().maxRangeDays) : maxRangeDays,
3827
+ contract,
3828
+ onChange: (calendar) => dispatch({
3829
+ type: "update",
3830
+ value: { calendar }
3831
+ }),
3832
+ onCompleteChange: (complete) => dispatch({
3833
+ type: "update",
3834
+ value: { complete }
3078
3835
  })
3079
3836
  }),
3080
- /* @__PURE__ */ jsx("span", {
3081
- "aria-hidden": "true",
3082
- children: "–"
3083
- }),
3084
- /* @__PURE__ */ jsx(DateInput, {
3085
- slot: "end",
3086
- children: (segment) => /* @__PURE__ */ jsx(DateSegment, {
3087
- "data-atbl-focus": "inset",
3088
- "data-atbl-internal-focus-state": "focused",
3089
- "data-atbl-control": "text",
3090
- segment
3091
- })
3837
+ /* @__PURE__ */ jsxs("footer", {
3838
+ className: "altertable-datetime-actions",
3839
+ children: [/* @__PURE__ */ jsxs(Button$1, {
3840
+ onClick: back,
3841
+ children: [/* @__PURE__ */ jsx(AppIcon, {
3842
+ name: "previous",
3843
+ size: 16
3844
+ }), " Presets"]
3845
+ }), /* @__PURE__ */ jsx(Button$1, {
3846
+ variant: "primary",
3847
+ disabled: !complete || !calendar || !!rangeError(calendar),
3848
+ onClick: () => {
3849
+ if (calendar) commit(calendar);
3850
+ },
3851
+ children: "Apply"
3852
+ })]
3092
3853
  }),
3093
- (onReset || resetValue) && value && !(isDefault ?? (resetValue && value.start === resetValue.start && value.end === resetValue.end)) && /* @__PURE__ */ jsx("button", {
3094
- "data-atbl-focus": "ring",
3854
+ calendarFooter
3855
+ ]
3856
+ }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("div", {
3857
+ id: `${id}-popup`,
3858
+ role: "listbox",
3859
+ "aria-label": "Date range presets",
3860
+ "aria-multiselectable": comparison ? true : void 0,
3861
+ className: "altertable-datetime-presets",
3862
+ children: [
3863
+ ...presets.map((preset) => preset.label),
3864
+ "Select from calendar…",
3865
+ "More",
3866
+ ...comparison ? ["Compare with previous period"] : []
3867
+ ].map((text, index) => {
3868
+ const preset = presets[index];
3869
+ const isComparison = index === comparisonIndex;
3870
+ return /* @__PURE__ */ jsxs("button", {
3871
+ "data-atbl-focus": "inset",
3095
3872
  "data-atbl-control": "action",
3096
3873
  type: "button",
3097
- className: "altertable-date-range-reset",
3098
- "aria-label": "Reset date range",
3099
- onClick: () => onReset ? onReset() : onChange(resetValue ?? null),
3100
- children: /* @__PURE__ */ jsx(AppIcon, {
3101
- name: "reset",
3102
- size: 14
3103
- })
3104
- })
3105
- ]
3106
- }),
3107
- comparison?.enabled && /* @__PURE__ */ jsx("span", {
3108
- className: "altertable-date-range-comparison",
3109
- "aria-hidden": "true",
3110
- children: "vs prior"
3111
- }),
3112
- error && /* @__PURE__ */ jsx("span", {
3113
- className: "altertable-date-range-error",
3114
- role: "alert",
3115
- children: error
3116
- }),
3117
- /* @__PURE__ */ jsx(PopoverSurface, {
3118
- className: "altertable-date-range-popover",
3119
- children: /* @__PURE__ */ jsxs(Dialog, { children: [/* @__PURE__ */ jsxs("div", {
3120
- className: "altertable-date-range-content",
3121
- children: [presets.length > 0 && /* @__PURE__ */ jsxs("fieldset", {
3122
- className: "altertable-date-range-presets",
3123
- children: [/* @__PURE__ */ jsx("legend", {
3124
- className: "altertable-date-range-heading",
3125
- children: "Quick ranges"
3126
- }), /* @__PURE__ */ jsx("div", {
3127
- className: "altertable-date-range-preset-list",
3128
- children: presets.map((preset) => /* @__PURE__ */ jsx(Button, {
3129
- "data-atbl-internal-surface": "option",
3130
- "data-atbl-focus": "inset",
3131
- "data-atbl-control": "action",
3132
- className: "altertable-date-range-preset",
3133
- "aria-current": (selectedPresetId === void 0 ? value?.start === preset.range.start && value?.end === preset.range.end : selectedPresetId === preset.id) ? "true" : void 0,
3134
- onPress: () => choosePreset(preset),
3135
- children: preset.label
3136
- }, preset.id))
3137
- })]
3138
- }), /* @__PURE__ */ jsxs("div", {
3139
- className: "altertable-date-range-custom",
3874
+ role: "option",
3875
+ tabIndex: -1,
3876
+ id: `${id}-option-${index}`,
3877
+ "aria-selected": isComparison ? comparison?.enabled : !!preset && preset === selected,
3878
+ disabled: isComparison && !comparison?.range,
3879
+ "data-highlighted": highlight === index || void 0,
3880
+ "data-divider": index === calendarIndex || isComparison || preset?.shortcut === "today" || index === 1 && !!liveOption || void 0,
3881
+ onMouseDown: (event) => event.preventDefault(),
3882
+ onMouseMove: () => {
3883
+ dispatch({
3884
+ type: "update",
3885
+ value: { mode: "presets" }
3886
+ });
3887
+ highlightOption(index);
3888
+ },
3889
+ onClick: () => choose(index),
3140
3890
  children: [
3141
3891
  /* @__PURE__ */ jsx("span", {
3142
- className: "altertable-date-range-heading",
3143
- children: "Custom range"
3144
- }),
3145
- /* @__PURE__ */ jsxs(RangeCalendar, {
3146
- isDateUnavailable: (date, anchorDate) => !!maxRangeDays && !!anchorDate && Math.abs(date.toDate("UTC").getTime() - anchorDate.toDate("UTC").getTime()) >= maxRangeDays * 864e5,
3147
- children: [/* @__PURE__ */ jsxs("header", { children: [
3148
- /* @__PURE__ */ jsx(Button, {
3149
- "data-atbl-internal-surface": "control",
3150
- "data-atbl-focus": "ring",
3151
- "data-atbl-control": "action",
3152
- slot: "previous",
3153
- "aria-label": "Previous month",
3154
- children: /* @__PURE__ */ jsx(AppIcon, {
3155
- name: "previousMonth",
3156
- size: 16
3157
- })
3158
- }),
3159
- /* @__PURE__ */ jsx(CalendarMonthPicker, {
3160
- format: "short",
3161
- children: (picker) => /* @__PURE__ */ jsxs(Select, {
3162
- "aria-label": picker["aria-label"],
3163
- selectedKey: String(picker.value),
3164
- onSelectionChange: (key) => picker.onChange(Number(key)),
3165
- className: "altertable-calendar-select",
3166
- children: [/* @__PURE__ */ jsxs(Button, {
3167
- "data-atbl-internal-surface": "control",
3168
- "data-atbl-focus": "ring",
3169
- "data-atbl-control": "action",
3170
- children: [/* @__PURE__ */ jsx(SelectValue, {}), /* @__PURE__ */ jsx(AppIcon, {
3171
- name: "disclosure",
3172
- size: 14
3173
- })]
3174
- }), /* @__PURE__ */ jsx(PopoverSurface, {
3175
- className: "altertable-calendar-select-popover",
3176
- placement: "bottom start",
3177
- children: /* @__PURE__ */ jsx(ListBox, {
3178
- items: picker.items,
3179
- children: (month) => /* @__PURE__ */ jsx(ListBoxItem, {
3180
- "data-atbl-internal-surface": "option",
3181
- "data-atbl-focus": "inset",
3182
- "data-atbl-control": "action",
3183
- id: String(month.id),
3184
- textValue: month.formatted,
3185
- children: month.formatted
3186
- })
3187
- })
3188
- })]
3189
- })
3190
- }),
3191
- /* @__PURE__ */ jsx(CalendarYearPicker, { children: (picker) => /* @__PURE__ */ jsxs(Select, {
3192
- "aria-label": picker["aria-label"],
3193
- selectedKey: String(picker.value),
3194
- onSelectionChange: (key) => picker.onChange(Number(key)),
3195
- className: "altertable-calendar-select",
3196
- children: [/* @__PURE__ */ jsxs(Button, {
3197
- "data-atbl-internal-surface": "control",
3198
- "data-atbl-focus": "ring",
3199
- "data-atbl-control": "action",
3200
- children: [/* @__PURE__ */ jsx(SelectValue, {}), /* @__PURE__ */ jsx(AppIcon, {
3201
- name: "disclosure",
3202
- size: 14
3203
- })]
3204
- }), /* @__PURE__ */ jsx(PopoverSurface, {
3205
- className: "altertable-calendar-select-popover",
3206
- placement: "bottom start",
3207
- children: /* @__PURE__ */ jsx(ListBox, {
3208
- items: picker.items,
3209
- children: (year) => /* @__PURE__ */ jsx(ListBoxItem, {
3210
- "data-atbl-internal-surface": "option",
3211
- "data-atbl-focus": "inset",
3212
- "data-atbl-control": "action",
3213
- id: String(year.id),
3214
- textValue: year.formatted,
3215
- children: year.formatted
3216
- })
3217
- })
3218
- })]
3219
- }) }),
3220
- /* @__PURE__ */ jsx(Button, {
3221
- "data-atbl-internal-surface": "control",
3222
- "data-atbl-focus": "ring",
3223
- "data-atbl-control": "action",
3224
- slot: "next",
3225
- "aria-label": "Next month",
3226
- children: /* @__PURE__ */ jsx(AppIcon, {
3227
- name: "nextMonth",
3228
- size: 16
3229
- })
3230
- })
3231
- ] }), /* @__PURE__ */ jsxs(CalendarGrid, { children: [/* @__PURE__ */ jsx(CalendarGridHeader, { children: (day) => /* @__PURE__ */ jsx(CalendarHeaderCell, { children: day }) }), /* @__PURE__ */ jsx(CalendarGridBody, { children: (date) => /* @__PURE__ */ jsx(CalendarCell, {
3232
- "data-atbl-focus": "inset",
3233
- "data-atbl-control": "action",
3234
- date
3235
- }) })] })]
3236
- }),
3237
- /* @__PURE__ */ jsxs("div", {
3238
- className: "altertable-date-range-footer",
3239
- children: [/* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("span", {
3240
- className: "altertable-date-range-footer-label",
3241
- children: "Selected dates"
3242
- }), /* @__PURE__ */ jsx("strong", { children: value ? formatDateRange(value, dateFormatting) : "Select a start and end date" })] }), value && /* @__PURE__ */ jsxs("span", {
3243
- className: "altertable-date-range-footer-meta",
3244
- children: [
3245
- selectedDays,
3246
- " ",
3247
- pluralize(selectedDays, "day"),
3248
- timeZone ? ` · ${timeZone}` : ""
3249
- ]
3250
- })]
3892
+ className: "altertable-datetime-shortcut",
3893
+ "aria-hidden": "true",
3894
+ children: isComparison ? /* @__PURE__ */ jsx("span", { children: "vs" }) : preset ? /* @__PURE__ */ jsx("span", { children: shortcutLabel(preset.shortcut) }) : /* @__PURE__ */ jsx(AppIcon, {
3895
+ name: index === calendarIndex ? "calendar" : "moreActions",
3896
+ size: 14
3897
+ })
3251
3898
  }),
3252
- comparison && /* @__PURE__ */ jsx(Checkbox, {
3253
- className: "altertable-date-range-compare",
3254
- label: "Compare with previous period",
3255
- checked: comparison.enabled,
3256
- disabled: !comparison.range,
3257
- onChange: comparison.onChange,
3258
- description: comparison.range && formatDateRange(comparison.range, dateFormatting)
3899
+ /* @__PURE__ */ jsxs("span", { children: [text, isComparison && /* @__PURE__ */ jsx("small", { children: comparison?.range ? dateTimeRangeLabel(comparison.range, dateFormatting) : "Outside available source coverage" })] }),
3900
+ /* @__PURE__ */ jsx("span", {
3901
+ className: "altertable-datetime-check",
3902
+ "aria-hidden": "true",
3903
+ children: isComparison && comparison?.enabled || preset && preset === selected ? /* @__PURE__ */ jsx(AppIcon, {
3904
+ name: "check",
3905
+ size: 14
3906
+ }) : null
3259
3907
  })
3260
3908
  ]
3261
- })]
3262
- }), calendarFooter] })
3263
- })
3264
- ]
3265
- })
3909
+ }, index);
3910
+ })
3911
+ }), (help || !!error) && /* @__PURE__ */ jsxs("aside", {
3912
+ "aria-label": "Date range syntax help",
3913
+ className: "altertable-datetime-help",
3914
+ "data-side": helpSide,
3915
+ onMouseEnter: () => clearTimeout(helpTimer.current),
3916
+ onMouseLeave: () => {
3917
+ if (!error && highlight !== moreIndex) helpTimer.current = setTimeout(() => dispatch({
3918
+ type: "update",
3919
+ value: { help: false }
3920
+ }), 300);
3921
+ },
3922
+ children: [/* @__PURE__ */ jsx("strong", { children: "Date range syntax" }), Object.entries(examples).map(([group, items]) => /* @__PURE__ */ jsxs("section", { children: [/* @__PURE__ */ jsx("h4", { children: group }), /* @__PURE__ */ jsx("div", { children: items.filter((example) => {
3923
+ const parsed = parseDateTimeRangeInput(example);
3924
+ return parsed.ok && !rangeError(parsed.range);
3925
+ }).map((example) => /* @__PURE__ */ jsx("button", {
3926
+ "data-atbl-focus": "inset",
3927
+ "data-atbl-control": "action",
3928
+ type: "button",
3929
+ onMouseDown: (event) => event.preventDefault(),
3930
+ onClick: () => submit(example),
3931
+ children: example
3932
+ }, example)) })] }, group))]
3933
+ })] })
3934
+ })
3935
+ })]
3266
3936
  });
3267
3937
  }
3268
3938
  //#endregion
@@ -3276,68 +3946,6 @@ function FilterBar({ className, role = "group", "aria-label": label = "Filters",
3276
3946
  });
3277
3947
  }
3278
3948
  //#endregion
3279
- //#region src/ui/Select.tsx
3280
- /** Labeled single selection with keyboard navigation and a styled listbox. */
3281
- function Select$1({ label, options, value, onChange, disabled, required, className, align = "start", labelPlacement = "above", icon, size, ...props }) {
3282
- const inline = labelPlacement === "inline";
3283
- validateChoiceOptions(options);
3284
- const selected = options.find((option) => option.id === value);
3285
- invariant(selected, "Select value must refer to an available option.");
3286
- const trigger = /* @__PURE__ */ jsx(PressButton, {
3287
- size,
3288
- className: classNames("altertable-select-trigger", inline && "altertable-picker-trigger"),
3289
- children: /* @__PURE__ */ jsx(PickerTriggerContent, {
3290
- label,
3291
- labelPlacement,
3292
- value: /* @__PURE__ */ jsx(SelectValue, { children: selected.label }),
3293
- icon,
3294
- iconSize: size === "compact" ? 14 : void 0
3295
- })
3296
- });
3297
- return /* @__PURE__ */ jsxs(Select, {
3298
- ...props,
3299
- selectedKey: value,
3300
- onSelectionChange: (key) => {
3301
- if (key !== null) onChange(String(key));
3302
- },
3303
- isDisabled: disabled,
3304
- isRequired: required,
3305
- className: classNames("altertable-select", "altertable-field", className),
3306
- "data-label-placement": labelPlacement,
3307
- children: [
3308
- /* @__PURE__ */ jsx(Label, {
3309
- className: inline ? "altertable-sr-only" : void 0,
3310
- children: label
3311
- }),
3312
- icon && inline ? /* @__PURE__ */ jsx(Tooltip, {
3313
- content: label,
3314
- children: trigger
3315
- }) : trigger,
3316
- /* @__PURE__ */ jsx(PopoverSurface, {
3317
- className: "altertable-select-popover",
3318
- placement: `bottom ${align}`,
3319
- children: /* @__PURE__ */ jsx(ListBox, {
3320
- items: options,
3321
- "aria-label": `${label} values`,
3322
- className: "altertable-select-options",
3323
- children: (option) => /* @__PURE__ */ jsx(ListBoxItem, {
3324
- id: option.id,
3325
- textValue: option.label,
3326
- className: "altertable-select-option",
3327
- "data-atbl-control": "action",
3328
- "data-atbl-internal-surface": "option",
3329
- "data-atbl-focus": "inset",
3330
- children: ({ isSelected }) => /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(SelectionMark, {
3331
- selected: isSelected,
3332
- multiple: false
3333
- }), /* @__PURE__ */ jsxs("span", { children: [option.label, option.description && /* @__PURE__ */ jsx("small", { children: option.description })] })] })
3334
- })
3335
- })
3336
- })
3337
- ]
3338
- });
3339
- }
3340
- //#endregion
3341
3949
  //#region src/ui/DimensionPicker.tsx
3342
3950
  const allKey = "all";
3343
3951
  /** Adapts the typed dimension contract to the shared ChoicePicker control. */
@@ -3913,6 +4521,92 @@ function SearchTypeahead({ items, busy, inputProps, ...props }) {
3913
4521
  })] });
3914
4522
  }
3915
4523
  //#endregion
4524
+ //#region src/ui/variables.ts
4525
+ function currentSearch() {
4526
+ return searchParams().toString();
4527
+ }
4528
+ function serverSearch() {
4529
+ return "";
4530
+ }
4531
+ /** URL is the source of truth for app variables; one update can change dependent values atomically. */
4532
+ function useAppVariables(definitions) {
4533
+ defineAppVariables(definitions);
4534
+ const search = useSyncExternalStore(subscribeSearch, currentSearch, serverSearch);
4535
+ const zones = Object.values(definitions).flatMap((item) => (item.kind === "dateTimeRange" || item.kind === "dateTimeRangeComparison") && item.contract ? [item.contract.bounds().timeZone] : []);
4536
+ const zoneKey = [...new Set(zones)].sort().join("|");
4537
+ const [calendarRevision, bumpDay] = useReducer((value) => value + 1, 0);
4538
+ useEffect(() => {
4539
+ if (!zoneKey) return;
4540
+ const timeZones = zoneKey.split("|");
4541
+ let day = timeZones.map((zone) => today(zone).toString()).join("|");
4542
+ const timer = window.setInterval(() => {
4543
+ const next = timeZones.map((zone) => today(zone).toString()).join("|");
4544
+ if (next !== day) {
4545
+ day = next;
4546
+ bumpDay();
4547
+ }
4548
+ }, 3e4);
4549
+ return () => window.clearInterval(timer);
4550
+ }, [zoneKey]);
4551
+ const params = new URLSearchParams(search);
4552
+ const values = {};
4553
+ const canonical = {};
4554
+ for (const name of Object.keys(definitions)) {
4555
+ const variable = definitions[name];
4556
+ const value = variable.read(params);
4557
+ values[name] = value;
4558
+ Object.assign(canonical, variable.write(value));
4559
+ }
4560
+ useEffect(() => {
4561
+ if (Object.entries(canonical).some(([key, value]) => params.get(key) !== value)) writeSearch(canonical);
4562
+ });
4563
+ function update(next, history) {
4564
+ const changes = {};
4565
+ let mode = history ?? "replace";
4566
+ for (const name of Object.keys(next)) {
4567
+ const variable = definitions[name];
4568
+ const value = next[name];
4569
+ invariant(variable.valid(value), `Invalid value for variable ${name}.`);
4570
+ Object.assign(changes, variable.write(value));
4571
+ if (!history && variable.history === "push") mode = "push";
4572
+ }
4573
+ writeSearch(changes, mode);
4574
+ }
4575
+ function set(name, value) {
4576
+ update({ [name]: value });
4577
+ }
4578
+ function reset(name) {
4579
+ const variable = definitions[name];
4580
+ set(name, variable.defaultValue);
4581
+ }
4582
+ function resetAll() {
4583
+ update(Object.fromEntries(Object.entries(definitions).map(([name, variable]) => [name, variable.defaultValue])), "push");
4584
+ }
4585
+ function clearAll() {
4586
+ update(Object.fromEntries(Object.entries(definitions).filter(([, variable]) => variable.clearValue !== void 0 && variable.kind !== "search" && variable.presentation?.group !== "display").map(([name, variable]) => [name, variable.clearValue])), "push");
4587
+ }
4588
+ function bind(name) {
4589
+ const variable = definitions[name];
4590
+ return {
4591
+ value: values[name],
4592
+ onChange(value) {
4593
+ return set(name, value);
4594
+ },
4595
+ resetValue: variable.defaultValue
4596
+ };
4597
+ }
4598
+ return {
4599
+ values,
4600
+ calendarRevision,
4601
+ set,
4602
+ reset,
4603
+ resetAll,
4604
+ clearAll,
4605
+ update,
4606
+ bind
4607
+ };
4608
+ }
4609
+ //#endregion
3916
4610
  //#region src/ui/FilterActions.tsx
3917
4611
  function FilterActions({ onClear, onApply, onCancel }) {
3918
4612
  return /* @__PURE__ */ jsxs("fieldset", {
@@ -4006,9 +4700,9 @@ function ViewControlBar({ primaryFilters, activeFilters, allFilters, activeFilte
4006
4700
  children: [/* @__PURE__ */ jsxs("div", {
4007
4701
  className: "altertable-filter-bar-inputs",
4008
4702
  children: [
4009
- (allFilters.length > 0 || onClear) && /* @__PURE__ */ jsxs("div", {
4703
+ (allFilters.length > 0 || onClear) && /* @__PURE__ */ jsx("div", {
4010
4704
  className: "altertable-primary-control-actions",
4011
- children: [allFilters.length > 0 && /* @__PURE__ */ jsxs(Button$1, {
4705
+ children: allFilters.length > 0 && /* @__PURE__ */ jsxs(Button$1, {
4012
4706
  ref: filtersButtonRef,
4013
4707
  "aria-label": filtersButtonLabel,
4014
4708
  "aria-haspopup": "dialog",
@@ -4025,7 +4719,7 @@ function ViewControlBar({ primaryFilters, activeFilters, allFilters, activeFilte
4025
4719
  children: activeFilterCount
4026
4720
  })
4027
4721
  ]
4028
- }), onClear && /* @__PURE__ */ jsx(FilterActions, { onClear: clearFilters })]
4722
+ })
4029
4723
  }),
4030
4724
  primaryFilters,
4031
4725
  secondaryFilters.length > 0 && /* @__PURE__ */ jsx("fieldset", {
@@ -4035,7 +4729,8 @@ function ViewControlBar({ primaryFilters, activeFilters, allFilters, activeFilte
4035
4729
  filter,
4036
4730
  onClear: focusFiltersButton
4037
4731
  }, filter.id))
4038
- })
4732
+ }),
4733
+ onClear && /* @__PURE__ */ jsx(FilterActions, { onClear: clearFilters })
4039
4734
  ]
4040
4735
  }), displayOptions.length > 0 && /* @__PURE__ */ jsx(DisplayOptionsPopover, {
4041
4736
  changedCount: changedDisplayOptionCount,
@@ -4184,11 +4879,31 @@ function DisplayOptionsPopover({ children, changedCount }) {
4184
4879
  /** URL values resolve before facets; facet keys include their dependent inputs for cached, bounded loading. */
4185
4880
  function useViewVariables(definitions, clientScope, loadFacet) {
4186
4881
  const variables = useAppVariables(definitions);
4882
+ const [referenceRevision, refreshReference] = useReducer((value) => value + 1, 0);
4883
+ const selectionKey = JSON.stringify(variables.values);
4884
+ const referenceKey = JSON.stringify([
4885
+ selectionKey,
4886
+ referenceRevision,
4887
+ variables.calendarRevision
4888
+ ]);
4889
+ const [snapshot, setSnapshot] = useState(() => ({
4890
+ key: referenceKey,
4891
+ reference: /* @__PURE__ */ new Date()
4892
+ }));
4893
+ let reference = snapshot.reference;
4894
+ if (snapshot.key !== referenceKey) {
4895
+ reference = /* @__PURE__ */ new Date();
4896
+ setSnapshot({
4897
+ key: referenceKey,
4898
+ reference
4899
+ });
4900
+ }
4901
+ const hasComparison = Object.values(definitions).some((variable) => variable.kind === "dateTimeRangeComparison");
4187
4902
  const resolved = {};
4188
4903
  for (const name of Object.keys(definitions)) {
4189
4904
  const definition = definitions[name];
4190
4905
  const value = variables.values[name];
4191
- resolved[name] = definition.kind === "dateRange" ? definition.input(value) : value;
4906
+ resolved[name] = definition.kind === "dateTimeRangeComparison" ? definition.input(value, reference) : value;
4192
4907
  }
4193
4908
  const facets = Object.entries(definitions).filter((entry) => entry[1].kind === "dimension" && entry[1].optionsSource === "query" && facetSource in entry[1]);
4194
4909
  const sourceDimensions = Object.entries(definitions).filter((entry) => entry[1].kind === "dimension" && dimensionSource in entry[1]);
@@ -4308,9 +5023,42 @@ function useViewVariables(definitions, clientScope, loadFacet) {
4308
5023
  if (onClear && variable.same(next, baseline)) onClear();
4309
5024
  }
4310
5025
  let control = null;
4311
- if (definition.kind === "dateRange") control = /* @__PURE__ */ jsx(DateRangePicker$1, {
4312
- labelPlacement: labelPlacement === "inline" ? void 0 : labelPlacement,
4313
- ...dateRangeControl(definition, value, (next) => setControlValue(next))
5026
+ if (definition.kind === "dateTimeRangeComparison") {
5027
+ const selection = value;
5028
+ control = /* @__PURE__ */ jsx(DateTimeRangePicker, {
5029
+ label: definition.label,
5030
+ labelPlacement,
5031
+ value: selection.range,
5032
+ maxRangeDays: definition.maxRangeDays,
5033
+ presets: definition.presets,
5034
+ contract: definition.contract,
5035
+ isDefault: !active,
5036
+ onReset: () => setControlValue(baseline),
5037
+ comparison: {
5038
+ enabled: selection.comparison === "previous",
5039
+ range: definition.previous(selection),
5040
+ onChange: (enabled) => setControlValue({
5041
+ range: selection.range,
5042
+ ...enabled ? { comparison: "previous" } : {}
5043
+ })
5044
+ },
5045
+ onChange: (range) => {
5046
+ setControlValue({
5047
+ range,
5048
+ ...selection.comparison && definition.previous({ range }) ? { comparison: "previous" } : {}
5049
+ });
5050
+ }
5051
+ }, name);
5052
+ } else if (definition.kind === "dateTimeRange") control = /* @__PURE__ */ jsx(DateTimeRangePicker, {
5053
+ label: definition.label,
5054
+ labelPlacement,
5055
+ value,
5056
+ maxRangeDays: definition.maxRangeDays,
5057
+ presets: definition.presets,
5058
+ contract: definition.contract,
5059
+ isDefault: !active,
5060
+ onReset: () => setControlValue(baseline),
5061
+ onChange: (next) => setControlValue(next)
4314
5062
  }, name);
4315
5063
  else if (definition.kind === "dimension") {
4316
5064
  const filter = definition;
@@ -4397,6 +5145,11 @@ function useViewVariables(definitions, clientScope, loadFacet) {
4397
5145
  const orderedDisplayOptions = [...displayOptions.primary, ...displayOptions.secondary];
4398
5146
  const hasControls = allFilters.length > 0 || orderedDisplayOptions.length > 0;
4399
5147
  return {
5148
+ refreshTime() {
5149
+ if (!hasComparison) return false;
5150
+ refreshReference();
5151
+ return true;
5152
+ },
4400
5153
  ...variables,
4401
5154
  resolved,
4402
5155
  searchControls: searchControls.length ? searchControls : null,
@@ -4447,6 +5200,10 @@ function useDeclaredResult(view) {
4447
5200
  const PrimaryViewContext = createContext(null);
4448
5201
  //#endregion
4449
5202
  //#region src/hooks.ts
5203
+ function reportingTimeZone(definition) {
5204
+ const period = definition.date ? definition.variables[definition.date.variable] : definition.time;
5205
+ if (period?.kind === "dateTimeRangeComparison" || period?.kind === "dateTimeRange") return period.contract?.bounds().timeZone;
5206
+ }
4450
5207
  const clientScopes = /* @__PURE__ */ new WeakMap();
4451
5208
  function getClientScope(client) {
4452
5209
  let scope = clientScopes.get(client);
@@ -4566,7 +5323,7 @@ function createDataHooks(client) {
4566
5323
  return bindDataset({
4567
5324
  ...dataset,
4568
5325
  evidence: definition.dataContext.evidence(dataset.evidence)
4569
- }, view, normalized.date && normalized.variables[normalized.date.variable]?.kind === "dateRange" ? normalized.variables[normalized.date.variable].bounds().timeZone : void 0);
5326
+ }, view, reportingTimeZone(normalized));
4570
5327
  },
4571
5328
  metric(metric, select) {
4572
5329
  return bindMetric(definition.dataContext.metric(metric), select, definition.date?.input, view);
@@ -4613,37 +5370,26 @@ function createDataHooks(client) {
4613
5370
  }
4614
5371
  });
4615
5372
  }
4616
- /** One time declaration owns the URL picker, operation input, and displayed-period label.
4617
- * Without extra variables, the default input is the DateRangeRequest; with them it is
4618
- * { period, ...variables }. Other operation shapes require an input mapper.
4619
- * Mappers must preserve the period and dimension selections; bindings extract nested inputs.
4620
- * Use defineDataView with describeInput for deliberately fixed-period views. */
5373
+ /** Share a datetime variable with the operation parser via time: period. */
4621
5374
  function defineTimeView(definition) {
4622
- const period = dateRangeVariable({
4623
- ...definition.time,
4624
- key: "period"
4625
- });
5375
+ const period = definition.time;
4626
5376
  return bindDataView({
4627
- operation: definition.operation,
4628
- dataContext: definition.dataContext,
5377
+ ...definition,
4629
5378
  variables: {
4630
- period,
4631
- ...definition.variables
5379
+ ...definition.variables,
5380
+ period
4632
5381
  },
4633
- bindings: definition.bindings,
4634
- input(values) {
4635
- if (definition.input) return definition.input(values);
4636
- if (!definition.variables || !Object.keys(definition.variables).length) return values.period;
4637
- return { ...values };
4638
- },
4639
- date: {
5382
+ ...period.kind === "dateTimeRangeComparison" ? { date: {
4640
5383
  variable: "period",
4641
5384
  input(input) {
4642
- return definition.bindings?.period ? definition.bindings.period(input) : input && typeof input === "object" && "period" in input ? input.period : input;
5385
+ return definition.bindings?.period ? definition.bindings.period(input) : input.period;
4643
5386
  }
4644
- },
4645
- isEmpty: definition.isEmpty,
4646
- emptyFallback: definition.emptyFallback
5387
+ } } : {},
5388
+ describeInput(input) {
5389
+ const selected = definition.bindings?.period ? definition.bindings.period(input) : input.period;
5390
+ const range = parseDateTimeRange(period.kind === "dateTimeRangeComparison" ? selected.range : selected);
5391
+ return range.from instanceof Date && range.to instanceof Date && range.from.getTime() % 864e5 === 0 && range.to.getTime() % 864e5 === 0 ? `${dateTimeRangeLabel(range)} ${period.contract?.bounds().timeZone ?? "UTC"}` : period.kind === "dateTimeRangeComparison" ? formatDateTimeRange(range) : period.describe(range);
5392
+ }
4647
5393
  });
4648
5394
  }
4649
5395
  function defineFacetFilter(config) {
@@ -4678,13 +5424,13 @@ function createDataHooks(client) {
4678
5424
  snapshot: request.snapshot,
4679
5425
  scope: displayedScope(request.view, describeInput),
4680
5426
  refetch() {
4681
- request.refetch();
5427
+ if (!variables.refreshTime()) request.refetch();
4682
5428
  },
4683
5429
  cancel: request.cancel,
4684
5430
  refreshing: request.refreshing,
4685
5431
  queries: request.queries,
4686
5432
  emptyFallback: definition.emptyFallback,
4687
- timeZone: definition.date && definition.variables[definition.date.variable]?.kind === "dateRange" ? definition.variables[definition.date.variable].bounds().timeZone : void 0,
5433
+ timeZone: reportingTimeZone(definition),
4688
5434
  searchControls: variables.searchControls,
4689
5435
  filterControls: variables.filterControls,
4690
5436
  variables
@@ -5383,7 +6129,7 @@ function useAnnotationTargets(rootRef, active) {
5383
6129
  targets: [],
5384
6130
  hasDuplicateIds: false
5385
6131
  });
5386
- useEffect(() => {
6132
+ useLayoutEffect(() => {
5387
6133
  if (!active) return;
5388
6134
  const root = rootRef.current;
5389
6135
  function discover() {
@@ -6812,14 +7558,14 @@ function DataAppFrame(props) {
6812
7558
  if (import.meta.env?.DEV && bodyRef.current?.querySelector("h1")) console.warn("DataApp owns the page title. Use section headings (h2) in its body.");
6813
7559
  });
6814
7560
  const snapshot = request && displayedSnapshot(request.view);
6815
- const findings = request && snapshot ? props.story(snapshot) : void 0;
7561
+ const findings = request && snapshot ? props.story?.(snapshot) : void 0;
6816
7562
  const story = findings?.length ? { findings } : void 0;
6817
7563
  const scope = /* @__PURE__ */ jsx(AppScope, {
6818
7564
  organization: app.scope.organization,
6819
7565
  environment: app.scope.environment
6820
7566
  });
6821
- const toolbar = /* @__PURE__ */ jsxs(AppToolbar, {
6822
- csvExport: request ? snapshot ? props.csvExport(snapshot) : null : props.csvExport,
7567
+ const toolbar = props.showToolbar === false ? null : /* @__PURE__ */ jsxs(AppToolbar, {
7568
+ csvExport: request ? snapshot ? props.csvExport?.(snapshot) : props.csvExport ? null : void 0 : props.csvExport,
6823
7569
  requestState: request?.view.kind,
6824
7570
  refresh: request ? {
6825
7571
  refreshing: request.refreshing ?? (request.view.kind === "loading" || request.view.kind === "updating"),
@@ -6832,7 +7578,7 @@ function DataAppFrame(props) {
6832
7578
  scope,
6833
7579
  dataContext,
6834
7580
  theme: themeController
6835
- } : request ? null : void 0,
7581
+ } : request && props.story ? null : void 0,
6836
7582
  aboutData: /* @__PURE__ */ jsx(AboutData, {
6837
7583
  id: "data",
6838
7584
  shortcut: true,
@@ -6990,7 +7736,7 @@ function DataWidgetContent({ title, headingLevel = 2, annotationId, count, descr
6990
7736
  const visual = /* @__PURE__ */ jsx(WidgetContent, {
6991
7737
  bodyPadding: emptyFallback ? "flush" : bodyPadding,
6992
7738
  footer: emptyFallback ? void 0 : footer,
6993
- loadingLabel: busy ? typeof title === "string" ? `Loading ${title}` : "Loading data" : void 0,
7739
+ loadingLabel: busy ? "Loading widget" : void 0,
6994
7740
  status,
6995
7741
  children: /* @__PURE__ */ jsx(WidgetBoundary, {
6996
7742
  name: typeof title === "string" ? title : "Widget",
@@ -7372,18 +8118,21 @@ function getPrimaryExplorationAction(actions) {
7372
8118
  //#region src/ui/metric-comparison.ts
7373
8119
  /** Label a comparison from the input that produced the displayed result. Null means the
7374
8120
  * requested previous period has no comparable value; zero remains a measured value. */
7375
- function calendarMetricComparison(displayedInput, values, options = {}) {
8121
+ function dateTimeMetricComparison(displayedInput, values, options = {}) {
7376
8122
  if (!displayedInput.comparison) return void 0;
8123
+ function label(range) {
8124
+ return dateTimeRangeLabel(range, options);
8125
+ }
7377
8126
  return {
7378
8127
  current: {
7379
8128
  value: values.current,
7380
8129
  formattedValue: formatMetric(values.current, values.format),
7381
- periodLabel: formatDateRange(displayedInput.range, options)
8130
+ periodLabel: label(displayedInput.range)
7382
8131
  },
7383
8132
  previous: {
7384
8133
  value: values.previous,
7385
8134
  formattedValue: values.previous === null ? "Not available" : formatMetric(values.previous, values.format),
7386
- periodLabel: formatDateRange(displayedInput.comparison, options)
8135
+ periodLabel: label(displayedInput.comparison)
7387
8136
  },
7388
8137
  favorableDirection: values.favorableDirection
7389
8138
  };
@@ -7403,7 +8152,7 @@ function comparisonChange({ current, previous, favorableDirection }) {
7403
8152
  //#region src/ui/metric.ts
7404
8153
  function metricComparison(metric, reading, options = {}) {
7405
8154
  if (reading.loading || !reading.value.period) return void 0;
7406
- return calendarMetricComparison(reading.value.period, {
8155
+ return dateTimeMetricComparison(reading.value.period, {
7407
8156
  current: reading.value.current,
7408
8157
  previous: reading.value.previous ?? null,
7409
8158
  format: metric.format,
@@ -7982,6 +8731,6 @@ function SectionHeading({ children, level = 2, className, ...props }) {
7982
8731
  });
7983
8732
  }
7984
8733
  //#endregion
7985
- export { FilterBar as $, PressButton as $t, LiveControl as A, resolveActions as At, isPlainKeyEvent as B, useViewTab as Bt, ContentSkeleton as C, DetailContent as Ct, TextContent as D, DataSectionBoundary as Dt, DataAppFrame as E, useDetailNavigation as Et, MenuSeparator as F, Tab$1 as Ft, FilterActions as G, TooltipSurface as Gt, PrimaryViewContext as H, GradientScroll as Ht, MenuTrigger as I, TabList$1 as It, NumberFilterPicker as J, InspectionContext as Jt, SearchTypeahead as K, Kbd as Kt, IconButton as L, TabPanel$1 as Lt, MenuItem$1 as M, DataAppProvider as Mt, MenuPopover as N, mountDataApp as Nt, Stack as O, ShimmerText as Ot, MenuSection as P, AboutData as Pt, Select$1 as Q, Button$1 as Qt, useDataAppAnnotations as R, TabPanels as Rt, withWidgetBoundary as S, HelpPopover as St, DataValue as T, DetailView as Tt, useDeclaredResult as U, Tooltip as Ut, createDataHooks as V, Sheet as Vt, VariableBar as W, TooltipProvider as Wt, NumberRangeField as X, AppIcon as Xt, NumberField$1 as Y, useInspectionDefaults as Yt, DimensionPicker as Z, EmptyState as Zt, explorationMenuEvents as _, datasetTable as _t, TextWidget as a, injectStyles as an, SearchMatch as at, useChartActions as b, DateDisplay as bt, DataTableEmptyRow as c, searchItems as ct, MetricWidget as d, multiChoiceVariable as dt, classNames as en, DateRangePicker$1 as et, VisualizationWidget as f, searchVariable as ft, ExplorationActionMenu as g, RegisteredBinding as gt, ExplorationActionControl as h, MetricRecords as ht, chartColor as i, injectDataAppStyles as in, Skeleton as it, Menu$1 as j, breakdownState as jt, PresentStory as k, ownedSource as kt, DataTableShare as l, choiceVariable as lt, comparisonChange as m, sectionContent as mt, createDataContext as n, useDateFormatting as nn, CheckboxGroupContext as nt, TableWidget as o, SearchSuggestionsContext as ot, metricComparison as p, useAppVariables as pt, SearchField as q, shortcuts as qt, chartBarFill as r, useDataApp as rn, ChoicePicker as rt, DataTable as s, matchSearchText as st, SectionHeading as t, DateFormattingContext as tn, Checkbox as tt, DataTableTimestamp as u, dateRangeVariable as ut, getPrimaryExplorationAction as v, exportDatasets as vt, getAnnotationProps as w, DetailRoutes as wt, DataWidget as x, DateTimeTooltip as xt, openExplorationMenu as y, registeredEvidence as yt, AnnotationTooltip as z, Tabs$1 as zt };
8734
+ export { SearchField as $, Button$1 as $t, LiveControl as A, resolveActions as At, isPlainKeyEvent as B, useViewTab as Bt, ContentSkeleton as C, DetailContent as Ct, TextContent as D, DataSectionBoundary as Dt, DataAppFrame as E, useDetailNavigation as Et, MenuSeparator as F, Tab$1 as Ft, FilterActions as G, ChartTooltip as Gt, PrimaryViewContext as H, GradientScroll as Ht, MenuTrigger as I, TabList$1 as It, dateTimeRangeVariable as J, shortcuts as Jt, choiceVariable as K, TooltipSurface as Kt, IconButton as L, TabPanel$1 as Lt, MenuItem$1 as M, DataAppProvider as Mt, MenuPopover as N, mountDataApp as Nt, Stack as O, ShimmerText as Ot, MenuSection as P, AboutData as Pt, SearchTypeahead as Q, EmptyState as Qt, useDataAppAnnotations as R, TabPanels as Rt, withWidgetBoundary as S, HelpPopover as St, DataValue as T, DetailView as Tt, useDeclaredResult as U, Tooltip as Ut, createDataHooks as V, Sheet as Vt, VariableBar as W, TooltipProvider as Wt, searchVariable as X, useInspectionDefaults as Xt, multiChoiceVariable as Y, InspectionContext as Yt, useAppVariables as Z, AppIcon as Zt, explorationMenuEvents as _, datasetTable as _t, TextWidget as a, injectDataAppStyles as an, DateTimeRangePicker as at, useChartActions as b, DateDisplay as bt, DataTableEmptyRow as c, Skeleton as ct, MetricWidget as d, SearchSuggestionsContext as dt, PressButton as en, NumberFilterPicker as et, VisualizationWidget as f, matchSearchText as ft, ExplorationActionMenu as g, RegisteredBinding as gt, ExplorationActionControl as h, MetricRecords as ht, chartColor as i, useDataApp as in, FilterBar as it, Menu$1 as j, breakdownState as jt, PresentStory as k, ownedSource as kt, DataTableShare as l, SelectionMark as lt, comparisonChange as m, sectionContent as mt, createDataContext as n, DateFormattingContext as nn, NumberRangeField as nt, TableWidget as o, injectStyles as on, Select$1 as ot, metricComparison as p, searchItems as pt, dateTimeRangePresets as q, Kbd as qt, chartBarFill as r, useDateFormatting as rn, DimensionPicker as rt, DataTable as s, ChoicePicker as st, SectionHeading as t, classNames as tn, NumberField$1 as tt, DataTableTimestamp as u, SearchMatch as ut, getPrimaryExplorationAction as v, exportDatasets as vt, getAnnotationProps as w, DetailRoutes as wt, DataWidget as x, DateTimeTooltip as xt, openExplorationMenu as y, registeredEvidence as yt, AnnotationTooltip as z, Tabs$1 as zt };
7986
8735
 
7987
- //# sourceMappingURL=SectionHeading-DYRGGLUr.js.map
8736
+ //# sourceMappingURL=SectionHeading-DLVTKa91.js.map