@littlepress/renderer-web 0.0.0-stage → 1.0.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.
- package/LICENSE +202 -0
- package/NOTICE +20 -0
- package/README.md +229 -2
- package/dist/answer/answerComponents.d.ts +107 -0
- package/dist/answer/answerComponents.js +637 -0
- package/dist/answer/download.d.ts +63 -0
- package/dist/answer/download.js +109 -0
- package/dist/answer/downloadExport.d.ts +44 -0
- package/dist/answer/downloadExport.js +266 -0
- package/dist/answer/hostValues.d.ts +28 -0
- package/dist/answer/hostValues.js +379 -0
- package/dist/answer/mapComponent.d.ts +6 -0
- package/dist/answer/mapComponent.js +213 -0
- package/dist/answer/math.d.ts +57 -0
- package/dist/answer/math.js +168 -0
- package/dist/answer/surfaceStream.d.ts +51 -0
- package/dist/answer/surfaceStream.js +260 -0
- package/dist/answer/tableLayout.d.ts +42 -0
- package/dist/answer/tableLayout.js +89 -0
- package/dist/controls/ActionFeedback.d.ts +5 -0
- package/dist/controls/ActionFeedback.js +43 -0
- package/dist/controls/actionDispatch.d.ts +51 -0
- package/dist/controls/actionDispatch.js +211 -0
- package/dist/controls/actionOutcome.generated.d.ts +64 -0
- package/dist/controls/actionOutcome.generated.js +64 -0
- package/dist/controls/calculationPublisher.d.ts +14 -0
- package/dist/controls/calculationPublisher.js +6 -0
- package/dist/controls/calculations.d.ts +20 -0
- package/dist/controls/calculations.generated.d.ts +73 -0
- package/dist/controls/calculations.generated.js +85 -0
- package/dist/controls/calculations.js +208 -0
- package/dist/controls/controlState.d.ts +84 -0
- package/dist/controls/controlState.js +256 -0
- package/dist/controls/fieldMessages.d.ts +41 -0
- package/dist/controls/fieldMessages.js +81 -0
- package/dist/controls/fieldValidation.d.ts +19 -0
- package/dist/controls/fieldValidation.js +98 -0
- package/dist/controls/formComponents.d.ts +23 -0
- package/dist/controls/formComponents.js +738 -0
- package/dist/controls/formProgress.d.ts +63 -0
- package/dist/controls/formProgress.js +122 -0
- package/dist/controls/inputDrafts.d.ts +55 -0
- package/dist/controls/inputDrafts.js +183 -0
- package/dist/controls/inputValidation.d.ts +33 -0
- package/dist/controls/inputValidation.js +119 -0
- package/dist/controls/localWrites.d.ts +9 -0
- package/dist/controls/localWrites.js +29 -0
- package/dist/core/A2uiSurface.d.ts +13 -0
- package/dist/core/A2uiSurface.js +15 -0
- package/dist/core/AtlasIcon.d.ts +18 -0
- package/dist/core/AtlasIcon.js +22 -0
- package/dist/core/AtlasMedia.d.ts +22 -0
- package/dist/core/AtlasMedia.js +45 -0
- package/dist/core/Carousel.d.ts +61 -0
- package/dist/core/Carousel.js +183 -0
- package/dist/core/CoreMedia.d.ts +19 -0
- package/dist/core/CoreMedia.js +25 -0
- package/dist/core/FoundationA2uiSurface.d.ts +86 -0
- package/dist/core/FoundationA2uiSurface.js +440 -0
- package/dist/core/ImagePreview.d.ts +42 -0
- package/dist/core/ImagePreview.js +73 -0
- package/dist/core/LucideIcon.d.ts +19 -0
- package/dist/core/LucideIcon.js +42 -0
- package/dist/core/SurfaceLink.d.ts +35 -0
- package/dist/core/SurfaceLink.js +60 -0
- package/dist/core/appearance/aegis.d.ts +49 -0
- package/dist/core/appearance/aegis.js +34 -0
- package/dist/core/appearance/colour.d.ts +24 -0
- package/dist/core/appearance/colour.js +103 -0
- package/dist/core/appearance/css.d.ts +17 -0
- package/dist/core/appearance/css.js +153 -0
- package/dist/core/appearance/presets.generated.d.ts +4 -0
- package/dist/core/appearance/presets.generated.js +1184 -0
- package/dist/core/appearance/react.d.ts +29 -0
- package/dist/core/appearance/react.js +110 -0
- package/dist/core/appearance/resolve.d.ts +76 -0
- package/dist/core/appearance/resolve.js +127 -0
- package/dist/core/appearance/textScale.d.ts +11 -0
- package/dist/core/appearance/textScale.js +51 -0
- package/dist/core/appearance/theme.d.ts +138 -0
- package/dist/core/appearance/theme.js +274 -0
- package/dist/core/baseComponents.d.ts +53 -0
- package/dist/core/baseComponents.js +480 -0
- package/dist/core/binding.d.ts +46 -0
- package/dist/core/binding.js +118 -0
- package/dist/core/bundle.d.ts +23 -0
- package/dist/core/bundle.js +75 -0
- package/dist/core/catalog/catalog-index.generated.d.ts +44 -0
- package/dist/core/catalog/catalog-index.generated.js +79 -0
- package/dist/core/catalog/icons.generated.d.ts +6 -0
- package/dist/core/catalog/icons.generated.js +1788 -0
- package/dist/core/catalog.d.ts +6 -0
- package/dist/core/catalog.generated.d.ts +50 -0
- package/dist/core/catalog.generated.js +2174 -0
- package/dist/core/catalog.js +8 -0
- package/dist/core/chartRows.d.ts +7 -0
- package/dist/core/chartRows.js +38 -0
- package/dist/core/component-support.d.ts +39 -0
- package/dist/core/component-support.js +127 -0
- package/dist/core/components/actions.d.ts +4 -0
- package/dist/core/components/actions.js +21 -0
- package/dist/core/components/cards.d.ts +9 -0
- package/dist/core/components/cards.js +227 -0
- package/dist/core/components/charts.d.ts +18 -0
- package/dist/core/components/charts.js +412 -0
- package/dist/core/components/comparisonTable.d.ts +50 -0
- package/dist/core/components/comparisonTable.js +89 -0
- package/dist/core/components/content.d.ts +13 -0
- package/dist/core/components/content.js +108 -0
- package/dist/core/components/seriesCharts.d.ts +531 -0
- package/dist/core/components/seriesCharts.js +1053 -0
- package/dist/core/components/stepFlow.d.ts +7 -0
- package/dist/core/components/stepFlow.js +13 -0
- package/dist/core/components.full.d.ts +10 -0
- package/dist/core/components.full.js +41 -0
- package/dist/core/context.d.ts +207 -0
- package/dist/core/context.js +172 -0
- package/dist/core/coverage.d.ts +30 -0
- package/dist/core/coverage.js +93 -0
- package/dist/core/foundation.d.ts +21 -0
- package/dist/core/foundation.js +22 -0
- package/dist/core/fullTheme.d.ts +5 -0
- package/dist/core/fullTheme.js +9 -0
- package/dist/core/iconNodes.generated.d.ts +7 -0
- package/dist/core/iconNodes.generated.js +5 -0
- package/dist/core/lucideIcons.d.ts +5 -0
- package/dist/core/lucideIcons.js +7 -0
- package/dist/core/messages.d.ts +111 -0
- package/dist/core/messages.js +134 -0
- package/dist/core/pointer.d.ts +17 -0
- package/dist/core/pointer.js +104 -0
- package/dist/core/registry.d.ts +12 -0
- package/dist/core/registry.js +114 -0
- package/dist/core/runtime.d.ts +8 -0
- package/dist/core/runtime.js +6 -0
- package/dist/core/state.d.ts +73 -0
- package/dist/core/state.js +274 -0
- package/dist/core/surfaceMotion.d.ts +5 -0
- package/dist/core/surfaceMotion.js +46 -0
- package/dist/core/theme.d.ts +5 -0
- package/dist/core/theme.js +7 -0
- package/dist/core/useSurfaceImage.d.ts +20 -0
- package/dist/core/useSurfaceImage.js +65 -0
- package/dist/graph/RelationshipGraph.d.ts +14 -0
- package/dist/graph/RelationshipGraph.js +206 -0
- package/dist/graph/model.d.ts +20 -0
- package/dist/graph/model.js +36 -0
- package/dist/graph/program/assets.d.ts +3 -0
- package/dist/graph/program/assets.js +3 -0
- package/dist/graph/program/bridge.d.ts +6 -0
- package/dist/graph/program/bridge.generated.d.ts +136 -0
- package/dist/graph/program/bridge.generated.js +1 -0
- package/dist/graph/program/bridge.js +24 -0
- package/dist/graph/program/bridge.schema.json +717 -0
- package/dist/graph/program/bridgeValidator.cjs +2 -0
- package/dist/graph/program/bridgeValidator.d.cts +4 -0
- package/dist/graph/program/runner.d.ts +1 -0
- package/dist/graph/program/runner.html +2193 -0
- package/dist/graph/program/runner.js +157 -0
- package/dist/graph/program/runtime-manifest.json +1 -0
- package/dist/graph/program/view.d.ts +11 -0
- package/dist/graph/program/view.js +210 -0
- package/dist/graph/program/worker.d.ts +1 -0
- package/dist/graph/program/worker.js +2186 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +45 -0
- package/dist/internal/dsh.d.ts +4 -0
- package/dist/internal/dsh.js +3 -0
- package/dist/internal/relationship-graph.d.ts +4 -0
- package/dist/internal/relationship-graph.js +7202 -0
- package/dist/page/layoutComponents.d.ts +6 -0
- package/dist/page/layoutComponents.js +123 -0
- package/dist/page/layoutGeometry.d.ts +68 -0
- package/dist/page/layoutGeometry.js +174 -0
- package/dist/page/pageFormat.d.ts +34 -0
- package/dist/page/pageFormat.js +119 -0
- package/dist/page/printFit.d.ts +81 -0
- package/dist/page/printFit.js +338 -0
- package/dist/react/index.d.ts +5 -0
- package/dist/react/index.js +2 -0
- package/dist/report/locate.d.ts +42 -0
- package/dist/report/locate.js +34 -0
- package/dist/styles/renderer.css +4580 -0
- package/licenses/LUCIDE-LICENSE.txt +43 -0
- package/licenses/QUICKJS-EMSCRIPTEN-LICENSE.txt +21 -0
- package/licenses/QUICKJS-VARIANT-LICENSE.txt +47 -0
- package/package.json +68 -3
|
@@ -0,0 +1,4580 @@
|
|
|
1
|
+
/* GENERATED FILE — do not edit by hand.
|
|
2
|
+
Generator: ui-foundation/surface/typescript/packages/renderer-web/scripts/generate-renderer-assets.mjs
|
|
3
|
+
Regenerate: corepack pnpm --filter @littlepress/renderer-web generate:assets
|
|
4
|
+
Order: base runtime styles, style-pack tokens, semantic component styles. */
|
|
5
|
+
|
|
6
|
+
/* ---- renderer.css ---- */
|
|
7
|
+
/* Self-contained neutral styles for the public Foundation primitives. */
|
|
8
|
+
@keyframes lp-content-enter {
|
|
9
|
+
from { opacity: 0; translate: 0 6px; }
|
|
10
|
+
to { opacity: 1; translate: 0 0; }
|
|
11
|
+
}
|
|
12
|
+
.a2ui-surface .lp-content-enter {
|
|
13
|
+
animation: lp-content-enter 320ms ease-out var(--lp-enter-delay, 0ms) backwards;
|
|
14
|
+
}
|
|
15
|
+
@media (prefers-reduced-motion: reduce), print {
|
|
16
|
+
.a2ui-surface .lp-content-enter { animation: none; }
|
|
17
|
+
}
|
|
18
|
+
/* A Host that turns motion off (appearance reducedMotion) gets the same result as the system setting. */
|
|
19
|
+
.a2ui-surface[data-reduced-motion="true"],
|
|
20
|
+
.a2ui-surface[data-reduced-motion="true"] *,
|
|
21
|
+
.a2ui-surface[data-reduced-motion="true"] *::before,
|
|
22
|
+
.a2ui-surface[data-reduced-motion="true"] *::after {
|
|
23
|
+
animation: none !important;
|
|
24
|
+
transition: none !important;
|
|
25
|
+
scroll-behavior: auto !important;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.a2ui-surface {
|
|
29
|
+
color-scheme: light;
|
|
30
|
+
--bg: #f4f4f5;
|
|
31
|
+
--surface: #ffffff;
|
|
32
|
+
--surface-2: #e8e8ea;
|
|
33
|
+
--ink: #171717;
|
|
34
|
+
--ink-2: #4a4a4f;
|
|
35
|
+
--muted: #65656c;
|
|
36
|
+
--hairline: #c9c9cd;
|
|
37
|
+
--accent: #171717;
|
|
38
|
+
--accent-ink: #ffffff;
|
|
39
|
+
--accent-soft: #e7e7e8;
|
|
40
|
+
--tone-info-fg: #174a91;
|
|
41
|
+
--tone-info-bg: #eaf1fc;
|
|
42
|
+
--tone-info-border: #9cb9e5;
|
|
43
|
+
--tone-success-fg: #175b37;
|
|
44
|
+
--tone-success-bg: #e9f5ee;
|
|
45
|
+
--tone-success-border: #91c7a6;
|
|
46
|
+
--tone-warning-fg: #754006;
|
|
47
|
+
--tone-warning-bg: #fff3df;
|
|
48
|
+
--tone-warning-border: #d8aa68;
|
|
49
|
+
--tone-danger-fg: #8f1b13;
|
|
50
|
+
--tone-danger-bg: #fff0ee;
|
|
51
|
+
--tone-danger-border: #df9a94;
|
|
52
|
+
/* The -fg/-bg/-border colours above draw a pill (a chip, or an extension's status pill), which
|
|
53
|
+
stays light in every mode. Words and icons drawn straight on the surface (icons, the danger
|
|
54
|
+
button, field errors) use -text instead, which dark mode lightens. */
|
|
55
|
+
--tone-info-text: var(--tone-info-fg);
|
|
56
|
+
--tone-success-text: var(--tone-success-fg);
|
|
57
|
+
--tone-warning-text: var(--tone-warning-fg);
|
|
58
|
+
--tone-danger-text: var(--tone-danger-fg);
|
|
59
|
+
--tone-danger-hover-bg: var(--tone-danger-bg);
|
|
60
|
+
/* A surface tinted by a status (a tinted card or box): the theme's status colour mixed into the
|
|
61
|
+
surface, so it is light in light mode and dark in dark mode and keeps the surface's text
|
|
62
|
+
readable. Compose and SwiftUI mix the same amounts (contracts/fixtures/renderer/tone-surfaces.json). */
|
|
63
|
+
--tone-info-surface: color-mix(in srgb, var(--extend-blue, #3b6fd4) 10%, var(--surface));
|
|
64
|
+
--tone-success-surface: color-mix(in srgb, var(--pass, #2e7d4f) 10%, var(--surface));
|
|
65
|
+
--tone-warning-surface: color-mix(in srgb, var(--caution, #b45309) 10%, var(--surface));
|
|
66
|
+
--tone-danger-surface: color-mix(in srgb, var(--error, #d92d20) 10%, var(--surface));
|
|
67
|
+
--tone-info-edge: color-mix(in srgb, var(--extend-blue, #3b6fd4) 40%, transparent);
|
|
68
|
+
--tone-success-edge: color-mix(in srgb, var(--pass, #2e7d4f) 40%, transparent);
|
|
69
|
+
--tone-warning-edge: color-mix(in srgb, var(--caution, #b45309) 40%, transparent);
|
|
70
|
+
--tone-danger-edge: color-mix(in srgb, var(--error, #d92d20) 40%, transparent);
|
|
71
|
+
--font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
72
|
+
--font-mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
|
|
73
|
+
--display: 600 32px/1.15 var(--font-sans);
|
|
74
|
+
--title: 600 26px/1.2 var(--font-sans);
|
|
75
|
+
--heading: 600 18px/1.32 var(--font-sans);
|
|
76
|
+
--dek: 400 17px/1.5 var(--font-sans);
|
|
77
|
+
--body: 400 15px/1.5 var(--font-sans);
|
|
78
|
+
--caption: 500 12px/1.35 var(--font-sans);
|
|
79
|
+
--overline: 600 12px/1.35 var(--font-sans);
|
|
80
|
+
--meta: 500 12px/1.35 var(--font-sans);
|
|
81
|
+
--stat: var(--display);
|
|
82
|
+
--btn: 600 14px/1.2 var(--font-sans);
|
|
83
|
+
--radius-card: 8px;
|
|
84
|
+
--radius-media: 8px;
|
|
85
|
+
--radius-btn: 7px;
|
|
86
|
+
--radius-pill: 999px;
|
|
87
|
+
--shadow-card: none;
|
|
88
|
+
/* The width includes the padding on any Host page, not only on pages with a global
|
|
89
|
+
border-box reset; without it the surface is 40px wider than its container. */
|
|
90
|
+
box-sizing: border-box;
|
|
91
|
+
width: 100%;
|
|
92
|
+
max-width: 100%;
|
|
93
|
+
padding: 20px;
|
|
94
|
+
background: var(--bg);
|
|
95
|
+
color: var(--ink);
|
|
96
|
+
font: var(--body);
|
|
97
|
+
letter-spacing: 0;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.a2ui-surface[data-mode="dark"] {
|
|
101
|
+
color-scheme: dark;
|
|
102
|
+
/* Each is at least 8.2:1 on --bg, --surface and --surface-2 below. */
|
|
103
|
+
--tone-info-text: #a8c7fa;
|
|
104
|
+
--tone-success-text: #8fd6b0;
|
|
105
|
+
--tone-warning-text: #f6bd72;
|
|
106
|
+
--tone-danger-text: #ffb4ab;
|
|
107
|
+
--tone-danger-hover-bg: color-mix(in srgb, var(--tone-danger-text) 12%, transparent);
|
|
108
|
+
--bg: #151515;
|
|
109
|
+
--surface: #202020;
|
|
110
|
+
--surface-2: #2b2b2d;
|
|
111
|
+
--ink: #f4f4f5;
|
|
112
|
+
--ink-2: #c5c5ca;
|
|
113
|
+
--muted: #b2b2b8;
|
|
114
|
+
--hairline: #4a4a50;
|
|
115
|
+
--accent: #f2f2f3;
|
|
116
|
+
--accent-ink: #111111;
|
|
117
|
+
--accent-soft: #343438;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
@media (prefers-color-scheme: dark) {
|
|
121
|
+
.a2ui-surface[data-mode="system"] {
|
|
122
|
+
color-scheme: dark;
|
|
123
|
+
--tone-info-text: #a8c7fa;
|
|
124
|
+
--tone-success-text: #8fd6b0;
|
|
125
|
+
--tone-warning-text: #f6bd72;
|
|
126
|
+
--tone-danger-text: #ffb4ab;
|
|
127
|
+
--tone-danger-hover-bg: color-mix(in srgb, var(--tone-danger-text) 12%, transparent);
|
|
128
|
+
--bg: #151515;
|
|
129
|
+
--surface: #202020;
|
|
130
|
+
--surface-2: #2b2b2d;
|
|
131
|
+
--ink: #f4f4f5;
|
|
132
|
+
--ink-2: #c5c5ca;
|
|
133
|
+
--muted: #b2b2b8;
|
|
134
|
+
--hairline: #4a4a50;
|
|
135
|
+
--accent: #f2f2f3;
|
|
136
|
+
--accent-ink: #111111;
|
|
137
|
+
--accent-soft: #343438;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.a2ui-surface *,
|
|
142
|
+
.a2ui-surface *::before,
|
|
143
|
+
.a2ui-surface *::after { box-sizing: border-box; }
|
|
144
|
+
|
|
145
|
+
.a2ui-surface :is(p, h1, h2, h3, h4, figure, dl, dd) { margin: 0; }
|
|
146
|
+
.a2ui-surface ul { margin: 0; padding: 0; list-style: none; }
|
|
147
|
+
.a2ui-surface img { display: block; max-width: 100%; }
|
|
148
|
+
.a2ui-surface button,
|
|
149
|
+
.a2ui-surface input,
|
|
150
|
+
.a2ui-surface select,
|
|
151
|
+
.a2ui-surface textarea { font: inherit; letter-spacing: 0; }
|
|
152
|
+
.a2ui-surface button { cursor: pointer; }
|
|
153
|
+
.a2ui-surface button:disabled { cursor: default; opacity: 0.55; }
|
|
154
|
+
.a2ui-surface :is(button, a, input, select, textarea, .lp-choice-group[tabindex="-1"]):focus-visible {
|
|
155
|
+
outline: 3px solid var(--accent);
|
|
156
|
+
outline-offset: 3px;
|
|
157
|
+
}
|
|
158
|
+
/* A heading that locateComponent focused. */
|
|
159
|
+
.a2ui-surface h2[tabindex="-1"]:focus { outline: none; }
|
|
160
|
+
.a2ui-surface h2[tabindex="-1"]:focus-visible {
|
|
161
|
+
outline: 3px solid var(--accent);
|
|
162
|
+
outline-offset: 3px;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/* Text shows as written: a line break in a bound string starts a new line, as in Compose and SwiftUI. */
|
|
166
|
+
.a2ui-surface :is(.lp-display, .lp-title, .lp-heading, .lp-dek, .lp-body, .lp-caption, .lp-kicker, .lp-meta) {
|
|
167
|
+
min-width: 0;
|
|
168
|
+
overflow-wrap: anywhere;
|
|
169
|
+
white-space: pre-wrap;
|
|
170
|
+
}
|
|
171
|
+
.a2ui-surface .lp-display { font: var(--display); }
|
|
172
|
+
.a2ui-surface .lp-title { font: var(--title); }
|
|
173
|
+
.a2ui-surface .lp-heading { font: var(--heading); }
|
|
174
|
+
.a2ui-surface .lp-dek { font: var(--dek); color: var(--ink-2); }
|
|
175
|
+
.a2ui-surface .lp-body { font: var(--body); color: var(--ink-2); }
|
|
176
|
+
.a2ui-surface .lp-caption { font: var(--caption); color: var(--muted); }
|
|
177
|
+
.a2ui-surface .lp-kicker { font: var(--overline); text-transform: uppercase; color: var(--accent); }
|
|
178
|
+
.a2ui-surface .lp-kicker.default,
|
|
179
|
+
.a2ui-surface .lp-meta { color: var(--muted); }
|
|
180
|
+
.a2ui-surface .lp-meta { font: var(--meta); text-transform: uppercase; }
|
|
181
|
+
|
|
182
|
+
.a2ui-surface .lp-stack,
|
|
183
|
+
.a2ui-surface .lp-section,
|
|
184
|
+
.a2ui-surface .lp-list { display: grid; gap: 16px; min-width: 0; }
|
|
185
|
+
.a2ui-surface .lp-stack[data-rhythm="tight"] { gap: 10px; }
|
|
186
|
+
.a2ui-surface .lp-stack[data-rhythm="loose"] { gap: 24px; }
|
|
187
|
+
.a2ui-surface .lp-stack[data-axis] { display: flex; }
|
|
188
|
+
.a2ui-surface .lp-stack[data-axis="vertical"] { flex-direction: column; }
|
|
189
|
+
.a2ui-surface .lp-stack[data-axis="horizontal"] { flex-direction: row; }
|
|
190
|
+
.a2ui-surface .lp-stack[data-wrap="true"] { flex-wrap: wrap; }
|
|
191
|
+
/* Large text (appearance text scale 1.5 or more): side-by-side rows and metric groups wrap onto
|
|
192
|
+
more lines instead of squeezing their text (docs/architecture/host-appearance.md §5.2). */
|
|
193
|
+
.a2ui-surface[data-text-scale="large"] .lp-stack[data-axis="horizontal"],
|
|
194
|
+
.a2ui-surface[data-text-scale="large"] .lp-metric-row { flex-wrap: wrap; }
|
|
195
|
+
.a2ui-surface .lp-stack[data-gap="xs"] { gap: 6px; }
|
|
196
|
+
.a2ui-surface .lp-stack[data-gap="sm"] { gap: 10px; }
|
|
197
|
+
.a2ui-surface .lp-stack[data-gap="lg"] { gap: 24px; }
|
|
198
|
+
.a2ui-surface .lp-stack[data-align="center"] { align-items: center; }
|
|
199
|
+
.a2ui-surface .lp-stack[data-align="end"] { align-items: flex-end; }
|
|
200
|
+
.a2ui-surface .lp-stack[data-align="stretch"] { align-items: stretch; }
|
|
201
|
+
.a2ui-surface .lp-stack[data-justify="center"] { justify-content: center; }
|
|
202
|
+
.a2ui-surface .lp-stack[data-justify="end"] { justify-content: flex-end; }
|
|
203
|
+
.a2ui-surface .lp-stack[data-justify="between"] { justify-content: space-between; }
|
|
204
|
+
|
|
205
|
+
/* Section headings.
|
|
206
|
+
|
|
207
|
+
A section boundary must separate more strongly than anything inside a section.
|
|
208
|
+
Inside a vertical stack at the default rhythm (gap md or no gap, rhythm neither
|
|
209
|
+
tight nor loose), a child that opens a new section gets extra space above it, so
|
|
210
|
+
the total distance is `--lp-section-gap` (36px unless a style extension sets it;
|
|
211
|
+
it must stay at least 8px above the largest space the extension puts above a data
|
|
212
|
+
block). A child opens a section when it is a title or headline, or a vertical
|
|
213
|
+
stack whose first child opens one (checked two nested stacks deep).
|
|
214
|
+
|
|
215
|
+
The first child of a stack is never pushed down, so a card or surface that starts
|
|
216
|
+
with its title is unchanged. A heading right after a kicker stays with its kicker.
|
|
217
|
+
Stacks the author tightened or loosened keep exactly the gap they asked for.
|
|
218
|
+
`--lp-block-base` is the stack's own gap when an extension changes it, and setting
|
|
219
|
+
`--lp-block-lead` on an ancestor switches this space off, as a Fixed Layout print
|
|
220
|
+
page does. */
|
|
221
|
+
.a2ui-surface .lp-stack:is([data-gap="md"], :not([data-gap])):not([data-axis="horizontal"]):not([data-rhythm="tight"]):not([data-rhythm="loose"])
|
|
222
|
+
> :is(
|
|
223
|
+
h2:is(.lp-title, .lp-headline),
|
|
224
|
+
.lp-stack:not([data-axis="horizontal"]):has(> h2:first-child:is(.lp-title, .lp-headline)),
|
|
225
|
+
.lp-stack:not([data-axis="horizontal"]):has(> .lp-stack:first-child:not([data-axis="horizontal"]) > h2:first-child:is(.lp-title, .lp-headline))
|
|
226
|
+
):not(:first-child):not(.lp-kicker + *) {
|
|
227
|
+
margin-block-start: var(--lp-block-lead, calc(var(--lp-section-gap, 36px) - var(--lp-block-base, 16px)));
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.a2ui-surface .lp-grid {
|
|
231
|
+
--lp-columns: 2;
|
|
232
|
+
--lp-grid-gap: 10px;
|
|
233
|
+
--lp-grid-min: 160px;
|
|
234
|
+
--lp-grid-track: calc((100% - (var(--lp-columns) - 1) * var(--lp-grid-gap)) / var(--lp-columns));
|
|
235
|
+
display: grid;
|
|
236
|
+
grid-template-columns: repeat(auto-fill, minmax(min(100%, max(var(--lp-grid-min), var(--lp-grid-track))), 1fr));
|
|
237
|
+
gap: var(--lp-grid-gap);
|
|
238
|
+
min-width: 0;
|
|
239
|
+
}
|
|
240
|
+
.a2ui-surface .lp-grid[data-columns="1"] { --lp-columns: 1; }
|
|
241
|
+
.a2ui-surface .lp-grid[data-columns="3"] { --lp-columns: 3; }
|
|
242
|
+
.a2ui-surface .lp-grid[data-min-item-width="compact"] { --lp-grid-min: 80px; }
|
|
243
|
+
.a2ui-surface .lp-grid[data-min-item-width="wide"] { --lp-grid-min: 240px; }
|
|
244
|
+
.a2ui-surface .lp-grid[data-gap="xs"] { --lp-grid-gap: 6px; }
|
|
245
|
+
.a2ui-surface .lp-grid[data-gap="md"] { --lp-grid-gap: 16px; }
|
|
246
|
+
.a2ui-surface .lp-grid[data-gap="lg"] { --lp-grid-gap: 24px; }
|
|
247
|
+
.a2ui-surface .lp-grid[data-columns="4"] { --lp-columns: 4; }
|
|
248
|
+
/* A cell spans columns and rows (LPGrid_Default `itemSpans`). Placement is CSS Grid's own
|
|
249
|
+
auto-placement, which Compose and SwiftUI follow (contracts/fixtures/renderer/grid-flow-layout.json).
|
|
250
|
+
A span never exceeds the columns the width leaves: the grid holds min(columns,
|
|
251
|
+
floor((width + gap) / (minItemWidth + gap))) tracks, so below each width where a track is lost the
|
|
252
|
+
wider spans are cut to the tracks left. The grid is a size container only when it has spans. */
|
|
253
|
+
.a2ui-surface .lp-grid[data-spans="true"] { container: lp-grid / inline-size; }
|
|
254
|
+
.a2ui-surface .lp-grid-item { display: grid; min-width: 0; }
|
|
255
|
+
/* A card stretched to its cell keeps its content at the top, as Compose and SwiftUI draw it. */
|
|
256
|
+
.a2ui-surface :is(.lp-grid-item, .lp-flow-item) > .lp-card { align-content: start; }
|
|
257
|
+
.a2ui-surface .lp-grid-item[data-column-span="2"] { grid-column: span 2; }
|
|
258
|
+
.a2ui-surface .lp-grid-item[data-column-span="3"] { grid-column: span 3; }
|
|
259
|
+
.a2ui-surface .lp-grid-item[data-column-span="4"] { grid-column: span 4; }
|
|
260
|
+
.a2ui-surface .lp-grid-item[data-row-span="2"] { grid-row: span 2; }
|
|
261
|
+
.a2ui-surface .lp-grid-item[data-row-span="3"] { grid-row: span 3; }
|
|
262
|
+
.a2ui-surface .lp-grid-item[data-row-span="4"] { grid-row: span 4; }
|
|
263
|
+
@container lp-grid (width < 166px) { .a2ui-surface .lp-grid[data-min-item-width="compact"][data-gap="xs"] > .lp-grid-item { grid-column: span 1; } }
|
|
264
|
+
@container lp-grid (166px <= width < 252px) { .a2ui-surface .lp-grid[data-min-item-width="compact"][data-gap="xs"] > .lp-grid-item:is([data-column-span="3"], [data-column-span="4"]) { grid-column: span 2; } }
|
|
265
|
+
@container lp-grid (252px <= width < 338px) { .a2ui-surface .lp-grid[data-min-item-width="compact"][data-gap="xs"] > .lp-grid-item[data-column-span="4"] { grid-column: span 3; } }
|
|
266
|
+
@container lp-grid (width < 170px) { .a2ui-surface .lp-grid[data-min-item-width="compact"][data-gap="sm"] > .lp-grid-item { grid-column: span 1; } }
|
|
267
|
+
@container lp-grid (170px <= width < 260px) { .a2ui-surface .lp-grid[data-min-item-width="compact"][data-gap="sm"] > .lp-grid-item:is([data-column-span="3"], [data-column-span="4"]) { grid-column: span 2; } }
|
|
268
|
+
@container lp-grid (260px <= width < 350px) { .a2ui-surface .lp-grid[data-min-item-width="compact"][data-gap="sm"] > .lp-grid-item[data-column-span="4"] { grid-column: span 3; } }
|
|
269
|
+
@container lp-grid (width < 176px) { .a2ui-surface .lp-grid[data-min-item-width="compact"][data-gap="md"] > .lp-grid-item { grid-column: span 1; } }
|
|
270
|
+
@container lp-grid (176px <= width < 272px) { .a2ui-surface .lp-grid[data-min-item-width="compact"][data-gap="md"] > .lp-grid-item:is([data-column-span="3"], [data-column-span="4"]) { grid-column: span 2; } }
|
|
271
|
+
@container lp-grid (272px <= width < 368px) { .a2ui-surface .lp-grid[data-min-item-width="compact"][data-gap="md"] > .lp-grid-item[data-column-span="4"] { grid-column: span 3; } }
|
|
272
|
+
@container lp-grid (width < 184px) { .a2ui-surface .lp-grid[data-min-item-width="compact"][data-gap="lg"] > .lp-grid-item { grid-column: span 1; } }
|
|
273
|
+
@container lp-grid (184px <= width < 288px) { .a2ui-surface .lp-grid[data-min-item-width="compact"][data-gap="lg"] > .lp-grid-item:is([data-column-span="3"], [data-column-span="4"]) { grid-column: span 2; } }
|
|
274
|
+
@container lp-grid (288px <= width < 392px) { .a2ui-surface .lp-grid[data-min-item-width="compact"][data-gap="lg"] > .lp-grid-item[data-column-span="4"] { grid-column: span 3; } }
|
|
275
|
+
@container lp-grid (width < 326px) { .a2ui-surface .lp-grid[data-min-item-width="medium"][data-gap="xs"] > .lp-grid-item { grid-column: span 1; } }
|
|
276
|
+
@container lp-grid (326px <= width < 492px) { .a2ui-surface .lp-grid[data-min-item-width="medium"][data-gap="xs"] > .lp-grid-item:is([data-column-span="3"], [data-column-span="4"]) { grid-column: span 2; } }
|
|
277
|
+
@container lp-grid (492px <= width < 658px) { .a2ui-surface .lp-grid[data-min-item-width="medium"][data-gap="xs"] > .lp-grid-item[data-column-span="4"] { grid-column: span 3; } }
|
|
278
|
+
@container lp-grid (width < 330px) { .a2ui-surface .lp-grid[data-min-item-width="medium"][data-gap="sm"] > .lp-grid-item { grid-column: span 1; } }
|
|
279
|
+
@container lp-grid (330px <= width < 500px) { .a2ui-surface .lp-grid[data-min-item-width="medium"][data-gap="sm"] > .lp-grid-item:is([data-column-span="3"], [data-column-span="4"]) { grid-column: span 2; } }
|
|
280
|
+
@container lp-grid (500px <= width < 670px) { .a2ui-surface .lp-grid[data-min-item-width="medium"][data-gap="sm"] > .lp-grid-item[data-column-span="4"] { grid-column: span 3; } }
|
|
281
|
+
@container lp-grid (width < 336px) { .a2ui-surface .lp-grid[data-min-item-width="medium"][data-gap="md"] > .lp-grid-item { grid-column: span 1; } }
|
|
282
|
+
@container lp-grid (336px <= width < 512px) { .a2ui-surface .lp-grid[data-min-item-width="medium"][data-gap="md"] > .lp-grid-item:is([data-column-span="3"], [data-column-span="4"]) { grid-column: span 2; } }
|
|
283
|
+
@container lp-grid (512px <= width < 688px) { .a2ui-surface .lp-grid[data-min-item-width="medium"][data-gap="md"] > .lp-grid-item[data-column-span="4"] { grid-column: span 3; } }
|
|
284
|
+
@container lp-grid (width < 344px) { .a2ui-surface .lp-grid[data-min-item-width="medium"][data-gap="lg"] > .lp-grid-item { grid-column: span 1; } }
|
|
285
|
+
@container lp-grid (344px <= width < 528px) { .a2ui-surface .lp-grid[data-min-item-width="medium"][data-gap="lg"] > .lp-grid-item:is([data-column-span="3"], [data-column-span="4"]) { grid-column: span 2; } }
|
|
286
|
+
@container lp-grid (528px <= width < 712px) { .a2ui-surface .lp-grid[data-min-item-width="medium"][data-gap="lg"] > .lp-grid-item[data-column-span="4"] { grid-column: span 3; } }
|
|
287
|
+
@container lp-grid (width < 486px) { .a2ui-surface .lp-grid[data-min-item-width="wide"][data-gap="xs"] > .lp-grid-item { grid-column: span 1; } }
|
|
288
|
+
@container lp-grid (486px <= width < 732px) { .a2ui-surface .lp-grid[data-min-item-width="wide"][data-gap="xs"] > .lp-grid-item:is([data-column-span="3"], [data-column-span="4"]) { grid-column: span 2; } }
|
|
289
|
+
@container lp-grid (732px <= width < 978px) { .a2ui-surface .lp-grid[data-min-item-width="wide"][data-gap="xs"] > .lp-grid-item[data-column-span="4"] { grid-column: span 3; } }
|
|
290
|
+
@container lp-grid (width < 490px) { .a2ui-surface .lp-grid[data-min-item-width="wide"][data-gap="sm"] > .lp-grid-item { grid-column: span 1; } }
|
|
291
|
+
@container lp-grid (490px <= width < 740px) { .a2ui-surface .lp-grid[data-min-item-width="wide"][data-gap="sm"] > .lp-grid-item:is([data-column-span="3"], [data-column-span="4"]) { grid-column: span 2; } }
|
|
292
|
+
@container lp-grid (740px <= width < 990px) { .a2ui-surface .lp-grid[data-min-item-width="wide"][data-gap="sm"] > .lp-grid-item[data-column-span="4"] { grid-column: span 3; } }
|
|
293
|
+
@container lp-grid (width < 496px) { .a2ui-surface .lp-grid[data-min-item-width="wide"][data-gap="md"] > .lp-grid-item { grid-column: span 1; } }
|
|
294
|
+
@container lp-grid (496px <= width < 752px) { .a2ui-surface .lp-grid[data-min-item-width="wide"][data-gap="md"] > .lp-grid-item:is([data-column-span="3"], [data-column-span="4"]) { grid-column: span 2; } }
|
|
295
|
+
@container lp-grid (752px <= width < 1008px) { .a2ui-surface .lp-grid[data-min-item-width="wide"][data-gap="md"] > .lp-grid-item[data-column-span="4"] { grid-column: span 3; } }
|
|
296
|
+
@container lp-grid (width < 504px) { .a2ui-surface .lp-grid[data-min-item-width="wide"][data-gap="lg"] > .lp-grid-item { grid-column: span 1; } }
|
|
297
|
+
@container lp-grid (504px <= width < 768px) { .a2ui-surface .lp-grid[data-min-item-width="wide"][data-gap="lg"] > .lp-grid-item:is([data-column-span="3"], [data-column-span="4"]) { grid-column: span 2; } }
|
|
298
|
+
@container lp-grid (768px <= width < 1032px) { .a2ui-surface .lp-grid[data-min-item-width="wide"][data-gap="lg"] > .lp-grid-item[data-column-span="4"] { grid-column: span 3; } }
|
|
299
|
+
|
|
300
|
+
/* A masonry (LPFlow_Default). Multi-column layout uses min(columns, floor((width + gap) /
|
|
301
|
+
(minItemWidth + gap))) columns, fills each in order and balances their heights; Compose and
|
|
302
|
+
SwiftUI compute the same (contracts/fixtures/renderer/grid-flow-layout.json). The space between
|
|
303
|
+
items is a top margin, which a column break truncates, so each column starts flush. */
|
|
304
|
+
.a2ui-surface .lp-flow {
|
|
305
|
+
--lp-columns: 2;
|
|
306
|
+
--lp-flow-gap: 10px;
|
|
307
|
+
--lp-flow-min: 160px;
|
|
308
|
+
columns: var(--lp-flow-min) var(--lp-columns);
|
|
309
|
+
column-gap: var(--lp-flow-gap);
|
|
310
|
+
min-width: 0;
|
|
311
|
+
}
|
|
312
|
+
.a2ui-surface .lp-flow[data-columns="1"] { --lp-columns: 1; }
|
|
313
|
+
.a2ui-surface .lp-flow[data-columns="3"] { --lp-columns: 3; }
|
|
314
|
+
.a2ui-surface .lp-flow[data-columns="4"] { --lp-columns: 4; }
|
|
315
|
+
.a2ui-surface .lp-flow[data-min-item-width="compact"] { --lp-flow-min: 80px; }
|
|
316
|
+
.a2ui-surface .lp-flow[data-min-item-width="wide"] { --lp-flow-min: 240px; }
|
|
317
|
+
.a2ui-surface .lp-flow[data-gap="xs"] { --lp-flow-gap: 6px; }
|
|
318
|
+
.a2ui-surface .lp-flow[data-gap="md"] { --lp-flow-gap: 16px; }
|
|
319
|
+
.a2ui-surface .lp-flow[data-gap="lg"] { --lp-flow-gap: 24px; }
|
|
320
|
+
.a2ui-surface .lp-flow-item { display: grid; min-width: 0; break-inside: avoid; }
|
|
321
|
+
.a2ui-surface .lp-flow-item + .lp-flow-item { margin-block-start: var(--lp-flow-gap); }
|
|
322
|
+
/* A full-width item spans every column; the columns after it start one gap below it. */
|
|
323
|
+
.a2ui-surface .lp-flow-item[data-full-width="true"] { column-span: all; margin-block-end: var(--lp-flow-gap); }
|
|
324
|
+
.a2ui-surface .lp-flow-item[data-full-width="true"] + .lp-flow-item { margin-block-start: 0; }
|
|
325
|
+
.a2ui-surface .lp-flow-item[data-full-width="true"]:last-child { margin-block-end: 0; }
|
|
326
|
+
.a2ui-surface .lp-flow-item[data-aspect-ratio="square"] { aspect-ratio: 1 / 1; }
|
|
327
|
+
.a2ui-surface .lp-flow-item[data-aspect-ratio="portrait"] { aspect-ratio: 4 / 5; }
|
|
328
|
+
.a2ui-surface .lp-flow-item[data-aspect-ratio="wide"] { aspect-ratio: 16 / 9; }
|
|
329
|
+
.a2ui-surface .lp-flow-item[data-aspect-ratio="feature"] { aspect-ratio: 3 / 2; }
|
|
330
|
+
|
|
331
|
+
.a2ui-surface .lp-card {
|
|
332
|
+
display: grid;
|
|
333
|
+
gap: 10px;
|
|
334
|
+
padding: 16px;
|
|
335
|
+
border: 1px solid var(--hairline);
|
|
336
|
+
border-radius: var(--radius-card);
|
|
337
|
+
background: var(--surface);
|
|
338
|
+
box-shadow: var(--shadow-card);
|
|
339
|
+
}
|
|
340
|
+
.a2ui-surface .lp-card.tonal { background: var(--surface-2); border-color: transparent; }
|
|
341
|
+
.a2ui-surface .lp-container-card[data-padding="compact"] { padding: 12px; }
|
|
342
|
+
.a2ui-surface .lp-container-card[data-padding="spacious"] { padding: 22px; }
|
|
343
|
+
.a2ui-surface .lp-container-card.accent { border-top: 3px solid var(--accent); }
|
|
344
|
+
/* A tinted card (--tone-*-surface), with the text in its usual colour. */
|
|
345
|
+
.a2ui-surface .lp-container-card.info { background: var(--tone-info-surface); border-color: var(--tone-info-edge); }
|
|
346
|
+
.a2ui-surface .lp-container-card.positive { background: var(--tone-success-surface); border-color: var(--tone-success-edge); }
|
|
347
|
+
.a2ui-surface .lp-container-card.warning { background: var(--tone-warning-surface); border-color: var(--tone-warning-edge); }
|
|
348
|
+
.a2ui-surface .lp-container-card.danger { background: var(--tone-danger-surface); border-color: var(--tone-danger-edge); }
|
|
349
|
+
|
|
350
|
+
.a2ui-surface .lp-row {
|
|
351
|
+
display: flex;
|
|
352
|
+
width: 100%;
|
|
353
|
+
min-height: var(--lp-min-touch, 44px);
|
|
354
|
+
align-items: center;
|
|
355
|
+
gap: 12px;
|
|
356
|
+
padding: 8px 0;
|
|
357
|
+
border: 0;
|
|
358
|
+
border-bottom: 1px solid var(--hairline);
|
|
359
|
+
background: transparent;
|
|
360
|
+
color: inherit;
|
|
361
|
+
text-align: left;
|
|
362
|
+
}
|
|
363
|
+
.a2ui-surface .lp-row-main,
|
|
364
|
+
.a2ui-surface .lp-row-copy { display: grid; gap: 4px; min-width: 0; flex: 1; }
|
|
365
|
+
.a2ui-surface .lp-row-main.is-actionable { grid-template-columns: minmax(0, 1fr) auto; }
|
|
366
|
+
.a2ui-surface .lp-row-leading { flex: none; display: inline-flex; align-items: center; }
|
|
367
|
+
.a2ui-surface .lp-row-trailing { flex: none; display: inline-flex; align-items: center; }
|
|
368
|
+
.a2ui-surface button.lp-row:not([aria-disabled="true"]) { cursor: pointer; }
|
|
369
|
+
.a2ui-surface button.lp-row[aria-disabled="true"] { opacity: 0.6; cursor: default; }
|
|
370
|
+
.a2ui-surface .lp-row[aria-busy="true"] { opacity: 0.6; }
|
|
371
|
+
.a2ui-surface .lp-row-spinner { animation: lp-row-spin 1s linear infinite; }
|
|
372
|
+
@keyframes lp-row-spin { to { transform: rotate(360deg); } }
|
|
373
|
+
@media (prefers-reduced-motion: reduce) { .a2ui-surface .lp-row-spinner { animation: none; } }
|
|
374
|
+
|
|
375
|
+
.a2ui-surface .lp-icon-slot {
|
|
376
|
+
display: inline-flex;
|
|
377
|
+
flex: none;
|
|
378
|
+
align-items: center;
|
|
379
|
+
justify-content: center;
|
|
380
|
+
color: inherit;
|
|
381
|
+
}
|
|
382
|
+
.a2ui-surface .lp-icon-slot[data-size="sm"] { width: 16px; height: 16px; }
|
|
383
|
+
.a2ui-surface .lp-icon-slot[data-size="md"] { width: 20px; height: 20px; }
|
|
384
|
+
.a2ui-surface .lp-icon-slot[data-size="lg"] { width: 24px; height: 24px; }
|
|
385
|
+
.a2ui-surface .lp-icon-slot svg { width: 100%; height: 100%; }
|
|
386
|
+
.a2ui-surface .lp-icon-slot[data-tone="muted"] { color: var(--muted); }
|
|
387
|
+
.a2ui-surface .lp-icon-slot[data-tone="accent"] { color: var(--accent); }
|
|
388
|
+
.a2ui-surface .lp-icon-slot[data-tone="info"] { color: var(--tone-info-text); }
|
|
389
|
+
.a2ui-surface .lp-icon-slot[data-tone="positive"] { color: var(--tone-success-text); }
|
|
390
|
+
.a2ui-surface .lp-icon-slot[data-tone="warning"] { color: var(--tone-warning-text); }
|
|
391
|
+
.a2ui-surface .lp-icon-slot[data-tone="danger"] { color: var(--tone-danger-text); }
|
|
392
|
+
.a2ui-surface .lp-icon-fallback { width: auto; height: auto; font: var(--caption); }
|
|
393
|
+
.a2ui-surface .lp-meta-row { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
|
|
394
|
+
.a2ui-surface .lp-meta-row > .lp-meta { flex: 1; }
|
|
395
|
+
.a2ui-surface .lp-action-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
|
|
396
|
+
|
|
397
|
+
.a2ui-surface .lp-btn {
|
|
398
|
+
display: inline-flex;
|
|
399
|
+
min-width: 24px;
|
|
400
|
+
min-height: var(--lp-min-touch, 44px);
|
|
401
|
+
align-items: center;
|
|
402
|
+
justify-content: center;
|
|
403
|
+
gap: 7px;
|
|
404
|
+
padding: 10px 16px;
|
|
405
|
+
border: 1px solid transparent;
|
|
406
|
+
border-radius: var(--radius-btn);
|
|
407
|
+
background: var(--ink);
|
|
408
|
+
color: var(--bg);
|
|
409
|
+
font: var(--btn);
|
|
410
|
+
text-align: center;
|
|
411
|
+
}
|
|
412
|
+
.a2ui-surface .lp-btn.accent { background: var(--accent); color: var(--accent-ink); }
|
|
413
|
+
.a2ui-surface .lp-btn.ghost { border-color: var(--hairline); background: transparent; color: var(--ink); }
|
|
414
|
+
.a2ui-surface .lp-btn.danger { border-color: var(--tone-danger-border); background: transparent; color: var(--tone-danger-text); }
|
|
415
|
+
.a2ui-surface .lp-btn.danger:hover { background: var(--tone-danger-hover-bg); }
|
|
416
|
+
|
|
417
|
+
.a2ui-surface .lp-pill {
|
|
418
|
+
display: inline-flex;
|
|
419
|
+
max-width: 100%;
|
|
420
|
+
align-items: center;
|
|
421
|
+
gap: 5px;
|
|
422
|
+
padding: 5px 9px;
|
|
423
|
+
border: 1px solid var(--hairline);
|
|
424
|
+
border-radius: var(--radius-pill);
|
|
425
|
+
color: var(--ink-2);
|
|
426
|
+
font: var(--meta);
|
|
427
|
+
}
|
|
428
|
+
/* A chip hugs short labels and can give way beside prose; long labels wrap without enlarging the corners. */
|
|
429
|
+
.a2ui-surface .lp-chip {
|
|
430
|
+
flex: 0 1 auto;
|
|
431
|
+
align-self: flex-start;
|
|
432
|
+
width: fit-content;
|
|
433
|
+
min-width: 0;
|
|
434
|
+
white-space: normal;
|
|
435
|
+
overflow-wrap: anywhere;
|
|
436
|
+
/* Half one line plus the existing block padding and border; scales with the font. */
|
|
437
|
+
border-radius: min(var(--radius-pill), calc(0.5lh + 6px));
|
|
438
|
+
}
|
|
439
|
+
.a2ui-surface .lp-chip > span:not(.lp-icon-slot) { min-width: 0; }
|
|
440
|
+
/* A chip's tone, written out or resolved from data; default and any other value keep the pill above.
|
|
441
|
+
A toned chip is a light pill in every mode, as the native SDKs draw it. */
|
|
442
|
+
.a2ui-surface .lp-chip.accent { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
|
|
443
|
+
.a2ui-surface .lp-chip.info { color: var(--tone-info-fg); border-color: var(--tone-info-border); background: var(--tone-info-bg); }
|
|
444
|
+
.a2ui-surface .lp-chip.positive { color: var(--tone-success-fg); border-color: var(--tone-success-border); background: var(--tone-success-bg); }
|
|
445
|
+
.a2ui-surface .lp-chip.warning { color: var(--tone-warning-fg); border-color: var(--tone-warning-border); background: var(--tone-warning-bg); }
|
|
446
|
+
.a2ui-surface .lp-chip.danger { color: var(--tone-danger-fg); border-color: var(--tone-danger-border); background: var(--tone-danger-bg); }
|
|
447
|
+
|
|
448
|
+
.a2ui-surface .lp-media {
|
|
449
|
+
display: flex;
|
|
450
|
+
width: 100%;
|
|
451
|
+
align-items: center;
|
|
452
|
+
justify-content: center;
|
|
453
|
+
overflow: hidden;
|
|
454
|
+
border-radius: var(--radius-media);
|
|
455
|
+
background: var(--surface-2);
|
|
456
|
+
}
|
|
457
|
+
.a2ui-surface .lp-media img { width: 100%; height: 100%; object-fit: cover; }
|
|
458
|
+
.a2ui-surface .lp-media-alt { padding: 12px; color: var(--ink-2); }
|
|
459
|
+
.a2ui-surface .lp-figure { display: grid; gap: 8px; }
|
|
460
|
+
|
|
461
|
+
/* A tappable image: `preview` opens the viewer below, `tapAction` runs its action. */
|
|
462
|
+
.a2ui-surface .lp-image-button {
|
|
463
|
+
display: block;
|
|
464
|
+
width: 100%;
|
|
465
|
+
padding: 0;
|
|
466
|
+
border: 0;
|
|
467
|
+
border-radius: var(--radius-media);
|
|
468
|
+
background: none;
|
|
469
|
+
color: inherit;
|
|
470
|
+
text-align: inherit;
|
|
471
|
+
}
|
|
472
|
+
.a2ui-surface .lp-image-button[data-preview="true"]:not(:disabled) { cursor: zoom-in; }
|
|
473
|
+
/* Locked while the answer streams: the image looks as it will, it just does not answer taps yet. */
|
|
474
|
+
.a2ui-surface .lp-image-button:disabled { opacity: 1; }
|
|
475
|
+
.a2ui-surface .lp-image-button:not(:disabled):hover .lp-media img { filter: brightness(0.94); }
|
|
476
|
+
|
|
477
|
+
/* The image viewer: a modal <dialog> over a dimmed page. */
|
|
478
|
+
.a2ui-surface .lp-image-preview {
|
|
479
|
+
width: 100vw;
|
|
480
|
+
max-width: 100vw;
|
|
481
|
+
height: 100dvh;
|
|
482
|
+
max-height: 100dvh;
|
|
483
|
+
margin: 0;
|
|
484
|
+
padding: 56px 16px 24px;
|
|
485
|
+
border: 0;
|
|
486
|
+
background: transparent;
|
|
487
|
+
color: #ffffff;
|
|
488
|
+
}
|
|
489
|
+
.a2ui-surface .lp-image-preview[open] { display: grid; place-items: center; }
|
|
490
|
+
.a2ui-surface .lp-image-preview::backdrop { background: rgb(0 0 0 / 0.9); }
|
|
491
|
+
.a2ui-surface .lp-image-preview-body {
|
|
492
|
+
display: grid;
|
|
493
|
+
justify-items: center;
|
|
494
|
+
gap: 12px;
|
|
495
|
+
max-width: 100%;
|
|
496
|
+
max-height: 100%;
|
|
497
|
+
margin: 0;
|
|
498
|
+
min-height: 0;
|
|
499
|
+
}
|
|
500
|
+
.a2ui-surface .lp-image-preview-body img {
|
|
501
|
+
max-width: min(100%, 1200px);
|
|
502
|
+
max-height: calc(100dvh - 140px);
|
|
503
|
+
object-fit: contain;
|
|
504
|
+
border-radius: var(--radius-media);
|
|
505
|
+
}
|
|
506
|
+
.a2ui-surface .lp-image-preview-caption { font: var(--body); color: #f2f2f3; text-align: center; max-width: 60ch; }
|
|
507
|
+
.a2ui-surface .lp-image-preview-close {
|
|
508
|
+
position: fixed;
|
|
509
|
+
top: 12px;
|
|
510
|
+
right: 12px;
|
|
511
|
+
display: inline-grid;
|
|
512
|
+
place-items: center;
|
|
513
|
+
width: 44px;
|
|
514
|
+
height: 44px;
|
|
515
|
+
border: 0;
|
|
516
|
+
border-radius: var(--radius-pill);
|
|
517
|
+
background: rgb(255 255 255 / 0.16);
|
|
518
|
+
color: #ffffff;
|
|
519
|
+
}
|
|
520
|
+
.a2ui-surface .lp-image-preview-close:hover { background: rgb(255 255 255 / 0.26); }
|
|
521
|
+
.a2ui-surface .lp-image-preview-close:focus-visible { outline-color: #ffffff; }
|
|
522
|
+
|
|
523
|
+
/* lp.pager as a carousel: one row that scrolls sideways and snaps to an item, the next item
|
|
524
|
+
peeking at the edge (Carousel.tsx sets each item's width), and below it the count between
|
|
525
|
+
the previous and next buttons, which never cover an item. */
|
|
526
|
+
.a2ui-surface .lp-carousel { display: grid; gap: 8px; min-width: 0; }
|
|
527
|
+
.a2ui-surface .lp-carousel-viewport { min-width: 0; }
|
|
528
|
+
.a2ui-surface .lp-carousel-track {
|
|
529
|
+
position: relative;
|
|
530
|
+
display: flex;
|
|
531
|
+
align-items: stretch;
|
|
532
|
+
overflow-x: auto;
|
|
533
|
+
overscroll-behavior-x: contain;
|
|
534
|
+
scroll-snap-type: x mandatory;
|
|
535
|
+
scroll-behavior: smooth;
|
|
536
|
+
scrollbar-width: none;
|
|
537
|
+
}
|
|
538
|
+
.a2ui-surface .lp-carousel-track::-webkit-scrollbar { display: none; }
|
|
539
|
+
/* No rounded corners on the row: they would clip a caption's first or last letter where it
|
|
540
|
+
meets the row's bottom corner. The items keep their own radius. */
|
|
541
|
+
.a2ui-surface .lp-carousel-track:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
|
|
542
|
+
.a2ui-surface .lp-carousel-item {
|
|
543
|
+
flex: 0 0 auto;
|
|
544
|
+
/* Before the row is measured: as many items as asked, with a tenth of the width left to peek. */
|
|
545
|
+
width: calc((90% - 10px * var(--lp-carousel-per-view, 1)) / var(--lp-carousel-per-view, 1));
|
|
546
|
+
min-width: 0;
|
|
547
|
+
scroll-snap-align: start;
|
|
548
|
+
display: flex;
|
|
549
|
+
flex-direction: column;
|
|
550
|
+
}
|
|
551
|
+
/* An item's column, and a card alone in it, fill the item, so the cards of one carousel share a
|
|
552
|
+
height; a shorter card keeps its content at the top. */
|
|
553
|
+
.a2ui-surface .lp-carousel-item > .lp-stack { flex: 1 1 auto; }
|
|
554
|
+
.a2ui-surface .lp-carousel-item > .lp-stack > .lp-card:only-child { flex: 1 1 auto; align-content: start; }
|
|
555
|
+
.a2ui-surface .lp-carousel-controls {
|
|
556
|
+
display: flex;
|
|
557
|
+
align-items: center;
|
|
558
|
+
justify-content: center;
|
|
559
|
+
gap: 4px;
|
|
560
|
+
}
|
|
561
|
+
.a2ui-surface .lp-carousel-arrow {
|
|
562
|
+
display: inline-grid;
|
|
563
|
+
place-items: center;
|
|
564
|
+
width: var(--lp-min-touch, 44px);
|
|
565
|
+
height: var(--lp-min-touch, 44px);
|
|
566
|
+
padding: 0;
|
|
567
|
+
border: 0;
|
|
568
|
+
border-radius: var(--radius-pill);
|
|
569
|
+
background: none;
|
|
570
|
+
color: var(--ink);
|
|
571
|
+
}
|
|
572
|
+
/* A 32 px disc inside the 44 px target, as Compose and SwiftUI draw it. */
|
|
573
|
+
.a2ui-surface .lp-carousel-arrow-disc {
|
|
574
|
+
display: inline-grid;
|
|
575
|
+
place-items: center;
|
|
576
|
+
width: 32px;
|
|
577
|
+
height: 32px;
|
|
578
|
+
border-radius: var(--radius-pill);
|
|
579
|
+
background: var(--surface-2);
|
|
580
|
+
}
|
|
581
|
+
.a2ui-surface .lp-carousel-arrow:disabled { opacity: 0.35; }
|
|
582
|
+
.a2ui-surface .lp-carousel-count { margin: 0 8px; text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; }
|
|
583
|
+
|
|
584
|
+
/* Composed list rows (a ui-list row whose template is not lp.list-row); see
|
|
585
|
+
docs/architecture/renderer-visual-contract.md. Nothing here applies outside such a row. */
|
|
586
|
+
/* In a horizontal row that holds text, the text side shares the spare width and wraps; chips,
|
|
587
|
+
figures, buttons and images keep their own width on one line and follow the row's alignment. */
|
|
588
|
+
.a2ui-surface .lp-stack[data-row-split="true"] { flex-wrap: wrap; }
|
|
589
|
+
.a2ui-surface .lp-stack[data-row-split="true"] > * { flex: none; min-width: auto; }
|
|
590
|
+
/* The text side never gets narrower than its longest word: when the fixed parts and the
|
|
591
|
+
longest words do not fit on one line, the fixed parts move to the next line instead. A word
|
|
592
|
+
wider than the whole row is the exception: the automatic minimum width is capped at the row
|
|
593
|
+
width, so that word breaks instead of pushing the text out of the card. */
|
|
594
|
+
.a2ui-surface .lp-stack[data-row-split="true"] > :is(.lp-stack, .lp-body, .lp-caption, .lp-heading, .lp-title, .lp-display, .lp-headline, .lp-meta-row, .lp-kicker, .lp-progress-meter) {
|
|
595
|
+
flex: 1 1 0;
|
|
596
|
+
min-width: auto;
|
|
597
|
+
max-width: 100%;
|
|
598
|
+
}
|
|
599
|
+
.a2ui-surface .lp-stack[data-row-split="true"] > .lp-chip { align-self: auto; white-space: nowrap; overflow-wrap: normal; }
|
|
600
|
+
.a2ui-surface .lp-stack[data-row-split="true"] > .lp-stat strong { white-space: nowrap; }
|
|
601
|
+
/* R2b: a row of text parts alone wraps like text; each part keeps its natural width. */
|
|
602
|
+
.a2ui-surface .lp-stack[data-row-flow="true"] { flex-wrap: wrap; }
|
|
603
|
+
.a2ui-surface .lp-stack[data-row-flow="true"] > * { flex: 0 1 auto; max-width: 100%; }
|
|
604
|
+
/* In a composed row, text breaks inside a word only when the word alone is wider than the
|
|
605
|
+
whole line, so a column is never squeezed below its longest word. */
|
|
606
|
+
.a2ui-surface .lp-stack[data-composed-row="true"] :is(.lp-display, .lp-title, .lp-heading, .lp-body, .lp-caption, .lp-kicker, .lp-meta) {
|
|
607
|
+
overflow-wrap: break-word;
|
|
608
|
+
}
|
|
609
|
+
/* R8: in a title row (the item's title beside a stat), the stat is one line at the title's size:
|
|
610
|
+
value and unit, then its label, on a shared baseline. It wraps rather than clips. */
|
|
611
|
+
.a2ui-surface .lp-stack[data-title-row="true"] > .lp-stat {
|
|
612
|
+
display: flex;
|
|
613
|
+
flex-wrap: wrap;
|
|
614
|
+
align-items: baseline;
|
|
615
|
+
column-gap: 6px;
|
|
616
|
+
row-gap: 0;
|
|
617
|
+
}
|
|
618
|
+
.a2ui-surface .lp-stack[data-title-row="true"] > .lp-stat > p { margin: 0; }
|
|
619
|
+
.a2ui-surface .lp-stack[data-title-row="true"] > .lp-stat strong { font: var(--heading); white-space: nowrap; }
|
|
620
|
+
/* An image beside other parts of a composed row is a 56 px square thumbnail. */
|
|
621
|
+
.a2ui-surface .lp-stack[data-composed-row="true"][data-axis="horizontal"] > :is(.lp-media, .lp-figure) {
|
|
622
|
+
flex: none;
|
|
623
|
+
width: 56px;
|
|
624
|
+
height: 56px;
|
|
625
|
+
}
|
|
626
|
+
.a2ui-surface .lp-stack[data-composed-row="true"][data-axis="horizontal"] > .lp-media,
|
|
627
|
+
.a2ui-surface .lp-stack[data-composed-row="true"][data-axis="horizontal"] > .lp-figure > .lp-media {
|
|
628
|
+
width: 56px;
|
|
629
|
+
height: 56px;
|
|
630
|
+
aspect-ratio: 1 / 1 !important;
|
|
631
|
+
}
|
|
632
|
+
.a2ui-surface .lp-stack[data-composed-row="true"][data-axis="horizontal"] > .lp-figure > figcaption,
|
|
633
|
+
.a2ui-surface .lp-stack[data-composed-row="true"][data-axis="horizontal"] .lp-media-alt { display: none; }
|
|
634
|
+
/* R7: a tappable composed row is one button; a chevron at its trailing edge, a spinner while its
|
|
635
|
+
action runs (dimmed, as a running list row is), and a visible focus ring. */
|
|
636
|
+
.a2ui-surface [data-row-tap="true"] {
|
|
637
|
+
position: relative;
|
|
638
|
+
padding-right: 28px;
|
|
639
|
+
cursor: pointer;
|
|
640
|
+
}
|
|
641
|
+
.a2ui-surface .lp-card[data-row-tap="true"][data-padding] { padding-right: 40px; }
|
|
642
|
+
.a2ui-surface [data-row-tap="true"][aria-disabled="true"] { cursor: default; }
|
|
643
|
+
.a2ui-surface [data-row-tap="true"][aria-busy="true"] { opacity: .6; }
|
|
644
|
+
.a2ui-surface [data-row-tap="true"]:focus-visible {
|
|
645
|
+
outline: 2px solid var(--accent);
|
|
646
|
+
outline-offset: 2px;
|
|
647
|
+
border-radius: var(--radius-card);
|
|
648
|
+
}
|
|
649
|
+
.a2ui-surface .lp-row-tap-trailing {
|
|
650
|
+
position: absolute;
|
|
651
|
+
top: 50%;
|
|
652
|
+
right: 4px;
|
|
653
|
+
display: inline-flex;
|
|
654
|
+
transform: translateY(-50%);
|
|
655
|
+
color: var(--ink-3, var(--ink-2));
|
|
656
|
+
}
|
|
657
|
+
.a2ui-surface .lp-card[data-row-tap="true"] > .lp-row-tap-trailing { right: 14px; }
|
|
658
|
+
.a2ui-surface [data-row-tap="true"][aria-busy="true"] .lp-row-tap-trailing svg { animation: lp-row-tap-spin 1s linear infinite; }
|
|
659
|
+
@keyframes lp-row-tap-spin { to { transform: rotate(360deg); } }
|
|
660
|
+
@media (prefers-reduced-motion: reduce) {
|
|
661
|
+
.a2ui-surface [data-row-tap="true"][aria-busy="true"] .lp-row-tap-trailing svg { animation: none; }
|
|
662
|
+
}
|
|
663
|
+
/* Plain composed rows are separated like list rows, unless the surface turns item dividers off. */
|
|
664
|
+
.a2ui-surface .lp-stack[data-row-dividers="true"] > .lp-stack:not(:last-child) {
|
|
665
|
+
padding-bottom: 10px;
|
|
666
|
+
border-bottom: 1px solid var(--hairline);
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
.a2ui-surface .lp-avatar {
|
|
670
|
+
width: 40px;
|
|
671
|
+
height: 40px;
|
|
672
|
+
flex: none;
|
|
673
|
+
border-radius: 50%;
|
|
674
|
+
object-fit: cover;
|
|
675
|
+
}
|
|
676
|
+
.a2ui-surface .lp-avatar-fallback { display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); }
|
|
677
|
+
.a2ui-surface .lp-stat { display: grid; gap: 4px; }
|
|
678
|
+
.a2ui-surface .lp-stat strong { font: var(--stat); }
|
|
679
|
+
.a2ui-surface .lp-progress-meter { display: grid; gap: 8px; min-width: 0; }
|
|
680
|
+
.a2ui-surface .lp-progress-meter.compact { gap: 6px; }
|
|
681
|
+
.a2ui-surface .lp-progress-meter-head { display: flex; gap: 8px; align-items: baseline; }
|
|
682
|
+
.a2ui-surface .lp-progress-meter-label { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
|
|
683
|
+
.a2ui-surface .lp-progress-meter-value { flex: none; margin-inline-start: auto; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
|
|
684
|
+
.a2ui-surface .lp-progress-meter-row { display: flex; gap: 8px; align-items: center; min-width: 0; }
|
|
685
|
+
.a2ui-surface .lp-progress-meter-row .lp-progress-meter-track { flex: 1 1 auto; min-width: 0; }
|
|
686
|
+
/* compact reserves the width of "100%" so stacked rows keep equal tracks and one value column. */
|
|
687
|
+
.a2ui-surface .lp-progress-meter.compact .lp-progress-meter-value { display: inline-grid; justify-items: end; }
|
|
688
|
+
.a2ui-surface .lp-progress-meter.compact .lp-progress-meter-value::before { content: "100%"; visibility: hidden; grid-area: 1 / 1; }
|
|
689
|
+
.a2ui-surface .lp-progress-meter.compact .lp-progress-meter-value > span { grid-area: 1 / 1; }
|
|
690
|
+
.a2ui-surface .lp-progress-meter-track { display: block; height: 6px; overflow: hidden; border-radius: 3px; background: var(--surface-2); }
|
|
691
|
+
.a2ui-surface .lp-progress-meter-track i { display: block; height: 100%; background: var(--accent); }
|
|
692
|
+
.a2ui-surface .lp-rule { height: 1px; margin: 0; border: 0; background: var(--hairline); }
|
|
693
|
+
.a2ui-surface .lp-rule.strong { height: 2px; background: var(--ink); }
|
|
694
|
+
|
|
695
|
+
.a2ui-surface .lp-field { display: grid; gap: 6px; min-width: 0; }
|
|
696
|
+
.a2ui-surface .lp-field-label { color: var(--ink); font-weight: 600; }
|
|
697
|
+
.a2ui-surface .lp-field-shell {
|
|
698
|
+
display: flex;
|
|
699
|
+
min-height: var(--lp-min-touch, 44px);
|
|
700
|
+
align-items: center;
|
|
701
|
+
gap: 8px;
|
|
702
|
+
padding: 0 12px;
|
|
703
|
+
border: 1px solid var(--hairline);
|
|
704
|
+
border-radius: var(--radius-btn);
|
|
705
|
+
background: var(--surface);
|
|
706
|
+
}
|
|
707
|
+
.a2ui-surface .lp-field-shell:focus-within { border-color: var(--accent); }
|
|
708
|
+
.a2ui-surface .lp-field-shell > :is(input, select, textarea) {
|
|
709
|
+
width: 100%;
|
|
710
|
+
min-width: 0;
|
|
711
|
+
min-height: 42px;
|
|
712
|
+
border: 0;
|
|
713
|
+
outline: 0;
|
|
714
|
+
background: transparent;
|
|
715
|
+
color: var(--ink);
|
|
716
|
+
}
|
|
717
|
+
.a2ui-surface .lp-field-shell textarea { min-height: 88px; padding: 10px 0; resize: vertical; }
|
|
718
|
+
.a2ui-surface .lp-field-shell select { appearance: auto; }
|
|
719
|
+
@media (max-width: 600px), (pointer: coarse) {
|
|
720
|
+
.a2ui-surface .lp-field .lp-field-shell > :is(input, select):enabled {
|
|
721
|
+
min-height: max(var(--lp-min-touch, 44px), calc(var(--size-control, 46px) - 2px));
|
|
722
|
+
font-size: max(16px, 1em);
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
/* Shows or hides a password; it sits inside the field, at the end. */
|
|
726
|
+
.a2ui-surface .lp-field-reveal {
|
|
727
|
+
flex: none;
|
|
728
|
+
display: inline-grid;
|
|
729
|
+
place-items: center;
|
|
730
|
+
width: 40px;
|
|
731
|
+
height: 40px;
|
|
732
|
+
margin-inline-end: -10px;
|
|
733
|
+
padding: 0;
|
|
734
|
+
border: 0;
|
|
735
|
+
border-radius: var(--radius-btn);
|
|
736
|
+
background: transparent;
|
|
737
|
+
color: var(--muted);
|
|
738
|
+
cursor: pointer;
|
|
739
|
+
}
|
|
740
|
+
.a2ui-surface .lp-field-reveal:hover:enabled { color: var(--ink); }
|
|
741
|
+
.a2ui-surface .lp-field-reveal:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
|
|
742
|
+
.a2ui-surface .lp-field-reveal:disabled { cursor: default; opacity: 0.5; }
|
|
743
|
+
@media (max-width: 600px), (pointer: coarse) {
|
|
744
|
+
.a2ui-surface .lp-field-reveal { width: 44px; height: 44px; margin-inline-end: -12px; }
|
|
745
|
+
}
|
|
746
|
+
.a2ui-surface .lp-field[data-invalid="true"] .lp-field-shell { border-color: var(--tone-danger-border); }
|
|
747
|
+
.a2ui-surface .lp-field-hint { color: var(--muted); font: var(--caption); }
|
|
748
|
+
.a2ui-surface .lp-field-error { color: var(--tone-danger-text); font: var(--caption); }
|
|
749
|
+
.a2ui-surface .lp-draft-status { display: grid; justify-items: start; gap: 8px; margin-bottom: 16px; }
|
|
750
|
+
/* Read by assistive technology only. */
|
|
751
|
+
.a2ui-surface .lp-visually-hidden {
|
|
752
|
+
position: absolute;
|
|
753
|
+
width: 1px;
|
|
754
|
+
height: 1px;
|
|
755
|
+
margin: -1px;
|
|
756
|
+
padding: 0;
|
|
757
|
+
border: 0;
|
|
758
|
+
overflow: hidden;
|
|
759
|
+
clip-path: inset(50%);
|
|
760
|
+
opacity: 0;
|
|
761
|
+
pointer-events: none;
|
|
762
|
+
}
|
|
763
|
+
.a2ui-surface .lp-check-field,
|
|
764
|
+
.a2ui-surface .lp-choice-group { margin: 0; padding: 0; border: 0; }
|
|
765
|
+
.a2ui-surface .lp-check-option {
|
|
766
|
+
display: flex;
|
|
767
|
+
min-height: var(--lp-min-touch, 44px);
|
|
768
|
+
align-items: center;
|
|
769
|
+
gap: 10px;
|
|
770
|
+
}
|
|
771
|
+
.a2ui-surface .lp-check-option input { width: 20px; min-height: 20px; height: 20px; flex: none; margin: 0; padding: 0; accent-color: var(--accent); }
|
|
772
|
+
.a2ui-surface .lp-check-option label { display: block; min-width: 0; padding: 10px 0; color: var(--ink); overflow-wrap: anywhere; }
|
|
773
|
+
.a2ui-surface .lp-check-option[data-line-through="true"] label { text-decoration: line-through; color: var(--muted); }
|
|
774
|
+
.a2ui-surface .lp-choice-options { display: grid; gap: 2px; }
|
|
775
|
+
.a2ui-surface .lp-slider-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
|
|
776
|
+
.a2ui-surface .lp-slider-label-row output { color: var(--ink-2); font: var(--meta); font-variant-numeric: tabular-nums; }
|
|
777
|
+
.a2ui-surface .lp-slider { width: 100%; min-height: var(--lp-min-touch, 44px); margin: 0; padding: 0; border: 0; background: transparent; accent-color: var(--accent); }
|
|
778
|
+
.a2ui-surface .lp-slider-marks { position: relative; margin-top: -6px; }
|
|
779
|
+
.a2ui-surface .lp-slider-mark-probe {
|
|
780
|
+
position: absolute;
|
|
781
|
+
top: 0;
|
|
782
|
+
left: 0;
|
|
783
|
+
width: 0;
|
|
784
|
+
height: 0;
|
|
785
|
+
overflow: hidden;
|
|
786
|
+
visibility: hidden;
|
|
787
|
+
pointer-events: none;
|
|
788
|
+
display: flex;
|
|
789
|
+
align-items: flex-start;
|
|
790
|
+
}
|
|
791
|
+
.a2ui-surface .lp-slider-mark-probe-item {
|
|
792
|
+
flex: none;
|
|
793
|
+
font: var(--caption);
|
|
794
|
+
font-weight: 600;
|
|
795
|
+
font-variant-numeric: tabular-nums;
|
|
796
|
+
white-space: nowrap;
|
|
797
|
+
}
|
|
798
|
+
.a2ui-surface .lp-slider-mark-ticks { position: relative; height: 4px; }
|
|
799
|
+
.a2ui-surface .lp-slider-mark-tick {
|
|
800
|
+
position: absolute;
|
|
801
|
+
top: 0;
|
|
802
|
+
left: calc(9px + (100% - 18px) * var(--lp-mark-ratio, 0));
|
|
803
|
+
display: block;
|
|
804
|
+
width: 1px;
|
|
805
|
+
height: 4px;
|
|
806
|
+
background: var(--hairline);
|
|
807
|
+
transform: translateX(-50%);
|
|
808
|
+
}
|
|
809
|
+
.a2ui-surface .lp-slider-mark-tick[data-active="true"] { background: var(--ink); }
|
|
810
|
+
.a2ui-surface .lp-slider-mark-labels { position: relative; min-height: 16px; margin-top: 2px; }
|
|
811
|
+
.a2ui-surface .lp-slider-mark-label {
|
|
812
|
+
position: absolute;
|
|
813
|
+
top: 0;
|
|
814
|
+
left: calc(9px + (100% - 18px) * var(--lp-mark-ratio, 0));
|
|
815
|
+
transform: translateX(-50%);
|
|
816
|
+
color: var(--muted);
|
|
817
|
+
font: var(--caption);
|
|
818
|
+
font-variant-numeric: tabular-nums;
|
|
819
|
+
white-space: nowrap;
|
|
820
|
+
}
|
|
821
|
+
.a2ui-surface .lp-slider-mark-label[data-edge="start"] { left: 0; transform: none; }
|
|
822
|
+
.a2ui-surface .lp-slider-mark-label[data-edge="end"] { left: 100%; transform: translateX(-100%); }
|
|
823
|
+
.a2ui-surface .lp-slider-mark-label[data-placed="true"] { transform: none; }
|
|
824
|
+
.a2ui-surface .lp-slider-mark-label[data-active="true"] { color: var(--ink); font-weight: 600; }
|
|
825
|
+
.a2ui-surface .lp-form,
|
|
826
|
+
.a2ui-surface .lp-form-fields { display: grid; gap: 16px; min-width: 0; }
|
|
827
|
+
.a2ui-surface .lp-form-fields { margin: 0; padding: 0; border: 0; }
|
|
828
|
+
.a2ui-surface .lp-form-fields > .lp-btn { justify-self: start; }
|
|
829
|
+
.a2ui-surface .lp-form-progress { margin: 0; color: var(--muted); font: var(--caption); font-variant-numeric: tabular-nums; }
|
|
830
|
+
.a2ui-surface .lp-form-progress[data-complete="true"] { color: var(--tone-success-text); }
|
|
831
|
+
/* Required fields are missing: the submit stays a working button, drawn quieter until they are done. */
|
|
832
|
+
.a2ui-surface .lp-form-fields > .lp-btn[data-incomplete="true"] { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--muted); }
|
|
833
|
+
.a2ui-surface .lp-tabs { display: grid; gap: 16px; min-width: 0; }
|
|
834
|
+
/* Neutral tabs follow Geist: text tabs, a 2px ink underline, and one hairline under the row.
|
|
835
|
+
Compose and SwiftUI draw the same metrics. Lines are inset shadows so Host button styles
|
|
836
|
+
(radius, borders) cannot bend them. */
|
|
837
|
+
.a2ui-surface .lp-tab-list {
|
|
838
|
+
display: flex;
|
|
839
|
+
gap: 24px;
|
|
840
|
+
overflow-x: auto;
|
|
841
|
+
scrollbar-width: none;
|
|
842
|
+
box-shadow: inset 0 -1px 0 var(--hairline);
|
|
843
|
+
}
|
|
844
|
+
.a2ui-surface .lp-tab-list::-webkit-scrollbar { display: none; }
|
|
845
|
+
.a2ui-surface .lp-tab {
|
|
846
|
+
flex: 0 0 auto;
|
|
847
|
+
min-width: var(--lp-min-touch, 44px);
|
|
848
|
+
min-height: max(48px, var(--lp-min-touch, 44px));
|
|
849
|
+
margin: 0;
|
|
850
|
+
padding: 0 2px;
|
|
851
|
+
border: 0;
|
|
852
|
+
border-radius: 0;
|
|
853
|
+
background: transparent;
|
|
854
|
+
box-shadow: none;
|
|
855
|
+
color: var(--ink-2);
|
|
856
|
+
font: 400 calc(14px * var(--lp-text-zoom, 1))/calc(20px * var(--lp-text-zoom, 1)) var(--font-sans);
|
|
857
|
+
white-space: nowrap;
|
|
858
|
+
}
|
|
859
|
+
.a2ui-surface .lp-tab:hover { color: var(--ink); }
|
|
860
|
+
.a2ui-surface .lp-tab[aria-selected="true"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }
|
|
861
|
+
.a2ui-surface .lp-tab:focus-visible { outline-offset: -3px; }
|
|
862
|
+
.a2ui-surface .lp-tab-panel { min-width: 0; }
|
|
863
|
+
.a2ui-surface .lp-tab-panel[hidden] { display: none; }
|
|
864
|
+
|
|
865
|
+
/* Explicit segmented variant for tabs and single-choice segmented controls (works in neutral and themed surfaces). */
|
|
866
|
+
.a2ui-surface .lp-tabs[data-variant="segmented"] .lp-tab-list,
|
|
867
|
+
.a2ui-surface .lp-choice-group[data-variant="segmented"] .lp-segmented-options {
|
|
868
|
+
display: inline-flex;
|
|
869
|
+
width: max-content;
|
|
870
|
+
max-width: 100%;
|
|
871
|
+
overflow-x: auto;
|
|
872
|
+
scrollbar-width: none;
|
|
873
|
+
gap: var(--control-tab-gap, 2px);
|
|
874
|
+
padding: var(--control-tab-track-padding, 3px);
|
|
875
|
+
border-radius: var(--control-tab-radius, 10px);
|
|
876
|
+
background: var(--control-tab-surface, color-mix(in srgb, var(--ink) 7%, transparent));
|
|
877
|
+
box-shadow: none;
|
|
878
|
+
}
|
|
879
|
+
.a2ui-surface .lp-choice-group[data-variant="segmented"] .lp-segmented-options::-webkit-scrollbar { display: none; }
|
|
880
|
+
.a2ui-surface .lp-tabs[data-variant="segmented"] .lp-tab,
|
|
881
|
+
.a2ui-surface .lp-choice-group[data-variant="segmented"] .lp-segmented-option {
|
|
882
|
+
position: relative;
|
|
883
|
+
display: inline-flex;
|
|
884
|
+
align-items: center;
|
|
885
|
+
justify-content: center;
|
|
886
|
+
flex: 0 0 auto;
|
|
887
|
+
min-width: var(--lp-min-touch, 44px);
|
|
888
|
+
min-height: calc(max(44px, var(--lp-min-touch, 44px)) - 2 * var(--control-tab-track-padding, 3px));
|
|
889
|
+
padding: 0 var(--control-tab-padding-x, 14px);
|
|
890
|
+
border: 0;
|
|
891
|
+
border-radius: var(--control-tab-segment-radius, 7px);
|
|
892
|
+
background: transparent;
|
|
893
|
+
box-shadow: none;
|
|
894
|
+
color: var(--control-tab-text, var(--ink-2));
|
|
895
|
+
font: 500 calc(14px * var(--lp-text-zoom, 1))/calc(20px * var(--lp-text-zoom, 1)) var(--font-sans);
|
|
896
|
+
white-space: nowrap;
|
|
897
|
+
cursor: pointer;
|
|
898
|
+
}
|
|
899
|
+
.a2ui-surface .lp-tabs[data-variant="segmented"] .lp-tab[aria-selected="true"],
|
|
900
|
+
.a2ui-surface .lp-choice-group[data-variant="segmented"] .lp-segmented-option[data-selected="true"] {
|
|
901
|
+
background: var(--control-tab-active-surface, var(--surface));
|
|
902
|
+
box-shadow: var(--control-tab-shadow, 0 0 0 1px var(--hairline), 0 1px 2px color-mix(in srgb, var(--ink) 8%, transparent));
|
|
903
|
+
color: var(--control-tab-active-text, var(--ink));
|
|
904
|
+
font-weight: 600;
|
|
905
|
+
}
|
|
906
|
+
.a2ui-surface .lp-tabs[data-variant="segmented"] .lp-tab:disabled,
|
|
907
|
+
.a2ui-surface .lp-choice-group[data-variant="segmented"] .lp-segmented-option[data-disabled="true"] {
|
|
908
|
+
opacity: 0.5;
|
|
909
|
+
cursor: not-allowed;
|
|
910
|
+
}
|
|
911
|
+
.a2ui-surface .lp-choice-group[data-variant="segmented"] .lp-segmented-input {
|
|
912
|
+
position: absolute;
|
|
913
|
+
width: 1px;
|
|
914
|
+
height: 1px;
|
|
915
|
+
margin: -1px;
|
|
916
|
+
padding: 0;
|
|
917
|
+
overflow: hidden;
|
|
918
|
+
clip-path: inset(50%);
|
|
919
|
+
border: 0;
|
|
920
|
+
}
|
|
921
|
+
.a2ui-surface .lp-choice-group[data-variant="segmented"] .lp-segmented-option:has(.lp-segmented-input:focus-visible) {
|
|
922
|
+
outline: 2px solid var(--accent);
|
|
923
|
+
outline-offset: -2px;
|
|
924
|
+
}
|
|
925
|
+
|
|
926
|
+
/* Anchored popover: dismissible panel with focus return to trigger. */
|
|
927
|
+
.a2ui-surface .lp-popover {
|
|
928
|
+
position: relative;
|
|
929
|
+
display: inline-block;
|
|
930
|
+
max-width: 100%;
|
|
931
|
+
}
|
|
932
|
+
.a2ui-surface .lp-popover-trigger {
|
|
933
|
+
display: inline-flex;
|
|
934
|
+
align-items: center;
|
|
935
|
+
gap: 6px;
|
|
936
|
+
}
|
|
937
|
+
.a2ui-surface .lp-popover-trigger[data-variant="outline"] {
|
|
938
|
+
background: var(--surface, var(--bg));
|
|
939
|
+
color: var(--ink);
|
|
940
|
+
border: 1px solid var(--hairline);
|
|
941
|
+
box-shadow: none;
|
|
942
|
+
}
|
|
943
|
+
.a2ui-surface .lp-popover-trigger[data-variant="outline"]:hover:not(:disabled) {
|
|
944
|
+
background: var(--surface-subtle, rgba(0, 0, 0, 0.04));
|
|
945
|
+
}
|
|
946
|
+
.a2ui-surface .lp-popover-trigger[data-variant="outline"][data-intent="accent"] {
|
|
947
|
+
color: var(--accent);
|
|
948
|
+
border-color: var(--accent);
|
|
949
|
+
}
|
|
950
|
+
.a2ui-surface .lp-popover-trigger[data-variant="soft"] {
|
|
951
|
+
background: var(--surface-subtle, rgba(0, 0, 0, 0.06));
|
|
952
|
+
color: var(--ink);
|
|
953
|
+
border: 1px solid transparent;
|
|
954
|
+
box-shadow: none;
|
|
955
|
+
}
|
|
956
|
+
.a2ui-surface .lp-popover-trigger[data-variant="soft"][data-intent="accent"] {
|
|
957
|
+
color: var(--accent);
|
|
958
|
+
}
|
|
959
|
+
.a2ui-surface .lp-popover-trigger[data-variant="ghost"] {
|
|
960
|
+
background: transparent;
|
|
961
|
+
color: var(--ink);
|
|
962
|
+
border: 1px solid var(--hairline);
|
|
963
|
+
box-shadow: none;
|
|
964
|
+
}
|
|
965
|
+
.a2ui-surface .lp-popover-trigger[data-variant="ghost"][data-intent="accent"] {
|
|
966
|
+
color: var(--accent);
|
|
967
|
+
border-color: var(--accent);
|
|
968
|
+
}
|
|
969
|
+
.a2ui-surface .lp-popover-trigger[data-intent="danger"] {
|
|
970
|
+
background: transparent;
|
|
971
|
+
color: var(--tone-danger-text);
|
|
972
|
+
border: 1px solid var(--tone-danger-border);
|
|
973
|
+
box-shadow: none;
|
|
974
|
+
}
|
|
975
|
+
.a2ui-surface .lp-popover-trigger[data-intent="danger"]:hover:not(:disabled) {
|
|
976
|
+
background: var(--tone-danger-hover-bg);
|
|
977
|
+
}
|
|
978
|
+
.a2ui-surface .lp-popover-trigger[data-size="sm"] {
|
|
979
|
+
min-height: 36px;
|
|
980
|
+
padding: 7px 12px;
|
|
981
|
+
font-size: 13px;
|
|
982
|
+
}
|
|
983
|
+
.a2ui-surface .lp-popover-trigger[data-size="lg"] {
|
|
984
|
+
min-height: 48px;
|
|
985
|
+
padding: 13px 20px;
|
|
986
|
+
font-size: 15px;
|
|
987
|
+
}
|
|
988
|
+
.a2ui-surface .lp-popover-trigger-body {
|
|
989
|
+
display: inline-flex;
|
|
990
|
+
align-items: center;
|
|
991
|
+
gap: 6px;
|
|
992
|
+
}
|
|
993
|
+
.a2ui-surface .lp-popover-trigger-body > .lp-rich-text,
|
|
994
|
+
.a2ui-surface .lp-popover-trigger-body > .lp-body {
|
|
995
|
+
margin: 0;
|
|
996
|
+
font: inherit;
|
|
997
|
+
color: inherit;
|
|
998
|
+
}
|
|
999
|
+
.a2ui-surface .lp-popover-panel {
|
|
1000
|
+
position: absolute;
|
|
1001
|
+
z-index: 40;
|
|
1002
|
+
display: flex;
|
|
1003
|
+
flex-direction: column;
|
|
1004
|
+
box-sizing: border-box;
|
|
1005
|
+
min-width: 220px;
|
|
1006
|
+
width: max-content;
|
|
1007
|
+
max-width: min(340px, calc(100vw - 16px));
|
|
1008
|
+
max-height: calc(100vh - 16px);
|
|
1009
|
+
padding: 12px 14px;
|
|
1010
|
+
border: 1px solid var(--hairline);
|
|
1011
|
+
border-radius: var(--radius-card, 12px);
|
|
1012
|
+
background: var(--surface, var(--bg));
|
|
1013
|
+
color: var(--ink);
|
|
1014
|
+
box-shadow: 0 10px 28px color-mix(in srgb, var(--ink) 14%, transparent), 0 2px 6px color-mix(in srgb, var(--ink) 6%, transparent);
|
|
1015
|
+
outline: none;
|
|
1016
|
+
}
|
|
1017
|
+
.a2ui-surface .lp-popover-panel[data-placement="bottom"] { top: calc(100% + 8px); left: 0; }
|
|
1018
|
+
.a2ui-surface .lp-popover-panel[data-placement="top"] { bottom: calc(100% + 8px); left: 0; }
|
|
1019
|
+
.a2ui-surface .lp-popover-panel[data-placement="start"] { top: 0; right: calc(100% + 8px); }
|
|
1020
|
+
.a2ui-surface .lp-popover-panel[data-placement="end"] { top: 0; left: calc(100% + 8px); }
|
|
1021
|
+
.a2ui-surface .lp-popover-panel:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
1022
|
+
.a2ui-surface .lp-popover-header {
|
|
1023
|
+
display: flex;
|
|
1024
|
+
flex: 0 0 auto;
|
|
1025
|
+
align-items: center;
|
|
1026
|
+
justify-content: space-between;
|
|
1027
|
+
gap: 8px;
|
|
1028
|
+
margin-bottom: 6px;
|
|
1029
|
+
}
|
|
1030
|
+
.a2ui-surface .lp-popover-title {
|
|
1031
|
+
font: 600 calc(13px * var(--lp-text-zoom, 1))/calc(18px * var(--lp-text-zoom, 1)) var(--font-sans);
|
|
1032
|
+
color: var(--ink);
|
|
1033
|
+
}
|
|
1034
|
+
.a2ui-surface .lp-popover-close {
|
|
1035
|
+
display: inline-flex;
|
|
1036
|
+
align-items: center;
|
|
1037
|
+
justify-content: center;
|
|
1038
|
+
min-width: 32px;
|
|
1039
|
+
min-height: 32px;
|
|
1040
|
+
margin: -4px -6px -4px 0;
|
|
1041
|
+
padding: 0;
|
|
1042
|
+
border: 0;
|
|
1043
|
+
border-radius: 6px;
|
|
1044
|
+
background: transparent;
|
|
1045
|
+
color: var(--ink-2);
|
|
1046
|
+
cursor: pointer;
|
|
1047
|
+
}
|
|
1048
|
+
.a2ui-surface .lp-popover-close:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink); }
|
|
1049
|
+
.a2ui-surface .lp-popover-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
|
|
1050
|
+
.a2ui-surface .lp-popover-body {
|
|
1051
|
+
display: grid;
|
|
1052
|
+
align-content: start;
|
|
1053
|
+
gap: 8px;
|
|
1054
|
+
flex: 1 1 auto;
|
|
1055
|
+
min-width: 0;
|
|
1056
|
+
min-height: 0;
|
|
1057
|
+
overflow-y: auto;
|
|
1058
|
+
overscroll-behavior: contain;
|
|
1059
|
+
}
|
|
1060
|
+
|
|
1061
|
+
.a2ui-surface .a2ui-surface-notice,
|
|
1062
|
+
.a2ui-surface .a2ui-empty,
|
|
1063
|
+
.a2ui-surface .a2ui-unsupported { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--hairline); border-radius: 8px; }
|
|
1064
|
+
.a2ui-surface .a2ui-unsupported-data { display: grid; gap: 8px; overflow-wrap: anywhere; }
|
|
1065
|
+
.a2ui-surface .a2ui-unsupported-data div { display: grid; grid-template-columns: minmax(90px, auto) 1fr; gap: 12px; }
|
|
1066
|
+
.a2ui-surface .a2ui-degraded-container,
|
|
1067
|
+
.a2ui-surface .a2ui-flow-page,
|
|
1068
|
+
.a2ui-surface .a2ui-flow-slot { display: grid; gap: 16px; min-width: 0; }
|
|
1069
|
+
.a2ui-surface .a2ui-flow-grid { display: grid; grid-template-columns: 1fr; gap: 16px; min-width: 0; }
|
|
1070
|
+
|
|
1071
|
+
.a2ui-surface .a2ui-print-page { position: relative; max-width: 100%; overflow: hidden; background: var(--bg); }
|
|
1072
|
+
.a2ui-surface .a2ui-print-textarea,
|
|
1073
|
+
.a2ui-surface .a2ui-print-slot { position: absolute; min-width: 0; min-height: 0; overflow: hidden; }
|
|
1074
|
+
.a2ui-surface .a2ui-print-grid { position: absolute; inset: 0; }
|
|
1075
|
+
.a2ui-surface .a2ui-print-sized { min-width: 0; min-height: 0; overflow: hidden; }
|
|
1076
|
+
.a2ui-surface .a2ui-print-slot[data-overset="true"] { outline: 2px solid var(--tone-danger-text); outline-offset: -2px; }
|
|
1077
|
+
.a2ui-surface .a2ui-print-unplaced { position: absolute; inset: auto 8px 8px; max-height: 35%; overflow: auto; padding: 8px; background: var(--tone-danger-bg); }
|
|
1078
|
+
.a2ui-surface .a2ui-print-fit-summary { position: absolute; top: 8px; right: 8px; padding: 4px 7px; background: var(--tone-danger-bg); color: var(--tone-danger-fg); font: var(--caption); }
|
|
1079
|
+
|
|
1080
|
+
.a2ui-page-frame { display: grid; gap: 8px; width: 100%; min-width: 0; }
|
|
1081
|
+
.a2ui-page { position: relative; width: 100%; overflow: hidden; border: 1px solid var(--hairline, #c9c9cd); background: var(--bg, #fff); }
|
|
1082
|
+
.a2ui-page-clip { position: absolute; inset: 0; overflow: hidden; }
|
|
1083
|
+
.a2ui-page-scroll { position: absolute; inset: 0; overflow-y: auto; }
|
|
1084
|
+
.a2ui-page-overflow-badge { position: absolute; right: 8px; bottom: 8px; padding: 4px 7px; background: #fff0ee; color: #8f1b13; font: 500 12px/1.35 system-ui; }
|
|
1085
|
+
.a2ui-page-caption { color: var(--muted, #65656c); font: 500 12px/1.35 system-ui; }
|
|
1086
|
+
|
|
1087
|
+
@container (max-width: 340px) {
|
|
1088
|
+
.a2ui-surface .lp-action-row .lp-btn { width: 100%; }
|
|
1089
|
+
}
|
|
1090
|
+
|
|
1091
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1092
|
+
.a2ui-surface *,
|
|
1093
|
+
.a2ui-surface *::before,
|
|
1094
|
+
.a2ui-surface *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1097
|
+
/* Action feedback keeps business labels and unrelated controls intact. */
|
|
1098
|
+
.lp-action-feedback { margin-block: 0.5rem; overflow-wrap: anywhere; }
|
|
1099
|
+
.lp-action-feedback > p { margin-block: 0.35rem; }
|
|
1100
|
+
.lp-action-feedback .lp-btn { min-height: var(--lp-min-touch, 44px); }
|
|
1101
|
+
|
|
1102
|
+
/* Whole-answer blocks (contracts/fixtures/renderer/answer-blocks.json). */
|
|
1103
|
+
.a2ui-surface .lp-rich-text { margin: 0; overflow-wrap: anywhere; }
|
|
1104
|
+
.a2ui-surface .lp-rich-text :is(strong) { font-weight: 650; color: inherit; }
|
|
1105
|
+
/* Inline code gets a background and no side padding, the same as Compose and SwiftUI. */
|
|
1106
|
+
.a2ui-surface .lp-inline-code { font: inherit; font-family: var(--font-mono); font-size: 1em; color: inherit; background: var(--surface-2); border-radius: 3px; }
|
|
1107
|
+
.a2ui-surface .lp-answer-link { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
|
|
1108
|
+
.a2ui-surface button.lp-answer-link { display: inline; padding: 0; border: 0; background: none; font: inherit; text-align: inherit; }
|
|
1109
|
+
.a2ui-surface .lp-answer-link[aria-disabled="true"], .a2ui-surface .lp-answer-link[data-pending-link="true"] { cursor: default; }
|
|
1110
|
+
.a2ui-surface .lp-answer-link[aria-busy="true"] { opacity: 0.6; }
|
|
1111
|
+
.a2ui-surface .lp-answer-list { margin: 0; padding-inline-start: 1.5em; display: grid; gap: 6px; font: var(--body); color: var(--ink-2); }
|
|
1112
|
+
.a2ui-surface .lp-answer-list .lp-answer-list { margin-top: 6px; }
|
|
1113
|
+
.a2ui-surface .lp-answer-list-item { padding-inline-start: 2px; }
|
|
1114
|
+
.a2ui-surface .lp-answer-list-item > .lp-answer-list-item-body { display: grid; gap: 6px; min-width: 0; }
|
|
1115
|
+
.a2ui-surface .lp-answer-list-item[data-task="true"] { list-style: none; display: flex; gap: 8px; align-items: flex-start; margin-inline-start: -1.5em; }
|
|
1116
|
+
/* A read-only tick drawn the same way on every platform: an outlined box, filled when done. */
|
|
1117
|
+
.a2ui-surface .lp-task-mark { flex: none; display: inline-grid; place-items: center; width: 1.1em; height: 1.1em; margin-top: 0.2em; border: 1.5px solid var(--hairline); border-radius: 4px; box-sizing: border-box; }
|
|
1118
|
+
.a2ui-surface .lp-task-mark[data-checked="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
|
|
1119
|
+
.a2ui-surface .lp-table-shell { overflow-x: auto; max-width: 100%; border: 1px solid var(--hairline); border-radius: var(--radius-card); background: var(--surface); }
|
|
1120
|
+
.a2ui-surface .lp-table { border-collapse: collapse; font: var(--body); color: var(--ink-2); }
|
|
1121
|
+
.a2ui-surface .lp-table :is(th, td) { padding-block: 8px; border-bottom: 1px solid var(--hairline); vertical-align: top; overflow-wrap: anywhere; }
|
|
1122
|
+
.a2ui-surface .lp-table th { font-weight: 600; color: var(--ink); background: var(--surface-2); }
|
|
1123
|
+
/* The last line of the table needs no rule: the cells that end on it, row-spanning ones included. */
|
|
1124
|
+
.a2ui-surface .lp-table [data-last-row="true"] { border-bottom: 0; }
|
|
1125
|
+
/* A section row titles the rows below it; footer rows sum up the table below a heavier rule. */
|
|
1126
|
+
.a2ui-surface .lp-table .lp-table-section th { background: transparent; }
|
|
1127
|
+
.a2ui-surface .lp-table .lp-table-footer :is(th, td) { font-weight: 600; color: var(--ink); }
|
|
1128
|
+
.a2ui-surface .lp-table tfoot tr:first-child :is(th, td) { border-top: 2px solid var(--hairline); }
|
|
1129
|
+
/* While measuring, every cell lays out on one line at its natural width. */
|
|
1130
|
+
.a2ui-surface .lp-table[data-measuring="true"] { table-layout: auto !important; width: max-content !important; }
|
|
1131
|
+
.a2ui-surface .lp-table[data-measuring="true"] .lp-table-cell-content { white-space: nowrap; display: inline-block; }
|
|
1132
|
+
.a2ui-surface .lp-code-block { margin: 0; border-radius: var(--radius-card); background: var(--surface-2); overflow: hidden; }
|
|
1133
|
+
.a2ui-surface .lp-code-header { display: flex; justify-content: space-between; align-items: center; padding: 6px 12px; font: var(--caption); color: var(--muted); }
|
|
1134
|
+
.a2ui-surface .lp-code-copy { display: inline-grid; place-items: center; color: var(--ink-2); background: none; border: 0; border-radius: 6px; padding: 4px; cursor: pointer; }
|
|
1135
|
+
.a2ui-surface .lp-code-body { margin: 0; padding: 0 12px 12px; overflow-x: auto; font-family: var(--font-mono); font-size: calc(13px * var(--lp-text-zoom, 1)); line-height: 1.55; color: var(--ink); white-space: pre; }
|
|
1136
|
+
/* Code colours reuse the style pack's text colours until style packs carry a code palette. */
|
|
1137
|
+
.a2ui-surface .lp-token-keyword { color: var(--accent); }
|
|
1138
|
+
.a2ui-surface .lp-token-comment { color: var(--muted); font-style: italic; }
|
|
1139
|
+
.a2ui-surface .lp-token-punctuation { color: var(--muted); }
|
|
1140
|
+
.a2ui-surface .lp-blockquote { margin: 0; padding-inline-start: 12px; border-inline-start: 3px solid var(--hairline); display: grid; gap: 8px; }
|
|
1141
|
+
.a2ui-surface .lp-math { overflow-x: auto; font: var(--body); color: var(--ink); background: var(--surface-2); border-radius: var(--radius-card); padding: 12px; }
|
|
1142
|
+
.a2ui-surface .lp-math code { font: inherit; font-family: var(--font-mono); color: inherit; }
|
|
1143
|
+
.a2ui-surface .lp-math[data-typeset] { overflow: visible; background: none; border-radius: 0; padding: 0.5em 0; text-align: center; line-height: normal; }
|
|
1144
|
+
.a2ui-surface .lp-math-formula { box-sizing: content-box; white-space: nowrap; }
|
|
1145
|
+
.a2ui-surface .lp-code-body code { font: inherit; color: inherit; }
|
|
1146
|
+
|
|
1147
|
+
/* LP-MDX token props and inline Aegis placeholder. */
|
|
1148
|
+
.a2ui-surface :is(.lp-display, .lp-title, .lp-heading, .lp-body, .lp-caption)[data-tone="muted"] { color: var(--muted); }
|
|
1149
|
+
.a2ui-surface :is(.lp-display, .lp-title, .lp-heading, .lp-body, .lp-caption)[data-tone="accent"] { color: var(--accent); }
|
|
1150
|
+
.a2ui-surface :is(.lp-display, .lp-title, .lp-heading, .lp-body, .lp-caption)[data-tone="info"] { color: var(--tone-info-text); }
|
|
1151
|
+
.a2ui-surface :is(.lp-display, .lp-title, .lp-heading, .lp-body, .lp-caption)[data-tone="positive"] { color: var(--tone-success-text); }
|
|
1152
|
+
.a2ui-surface :is(.lp-display, .lp-title, .lp-heading, .lp-body, .lp-caption)[data-tone="warning"] { color: var(--tone-warning-text); }
|
|
1153
|
+
.a2ui-surface :is(.lp-display, .lp-title, .lp-heading, .lp-body, .lp-caption)[data-tone="danger"] { color: var(--tone-danger-text); }
|
|
1154
|
+
.a2ui-surface :is(.lp-display, .lp-title, .lp-heading, .lp-body, .lp-caption)[data-align="center"] { text-align: center; }
|
|
1155
|
+
.a2ui-surface :is(.lp-display, .lp-title, .lp-heading, .lp-body, .lp-caption)[data-align="end"] { text-align: end; }
|
|
1156
|
+
|
|
1157
|
+
.a2ui-surface .lp-stack[data-padding="none"] { padding: 0; }
|
|
1158
|
+
.a2ui-surface .lp-stack[data-padding="sm"] { padding: 8px; }
|
|
1159
|
+
.a2ui-surface .lp-stack[data-padding="md"] { padding: 12px; }
|
|
1160
|
+
.a2ui-surface .lp-stack[data-padding="lg"] { padding: 16px; }
|
|
1161
|
+
.a2ui-surface .lp-stack[data-background="surface"] { background: var(--surface); }
|
|
1162
|
+
.a2ui-surface .lp-stack[data-background="muted"] { background: var(--surface-2); }
|
|
1163
|
+
.a2ui-surface .lp-stack[data-background="accent"] { background: var(--accent-soft); }
|
|
1164
|
+
.a2ui-surface .lp-stack[data-background="info"] { background: var(--tone-info-surface); }
|
|
1165
|
+
.a2ui-surface .lp-stack[data-background="positive"] { background: var(--tone-success-surface); }
|
|
1166
|
+
.a2ui-surface .lp-stack[data-background="warning"] { background: var(--tone-warning-surface); }
|
|
1167
|
+
.a2ui-surface .lp-stack[data-background="danger"] { background: var(--tone-danger-surface); }
|
|
1168
|
+
.a2ui-surface .lp-stack[data-border="subtle"] { border: 1px solid var(--hairline); }
|
|
1169
|
+
.a2ui-surface .lp-stack[data-border="strong"] { border: 1.5px solid var(--ink); }
|
|
1170
|
+
.a2ui-surface .lp-stack[data-radius="none"], .a2ui-surface .lp-card[data-radius="none"] { border-radius: 0; }
|
|
1171
|
+
.a2ui-surface .lp-stack[data-radius="sm"], .a2ui-surface .lp-card[data-radius="sm"] { border-radius: 6px; }
|
|
1172
|
+
.a2ui-surface .lp-stack[data-radius="md"], .a2ui-surface .lp-card[data-radius="md"] { border-radius: 8px; }
|
|
1173
|
+
.a2ui-surface .lp-stack[data-radius="lg"], .a2ui-surface .lp-card[data-radius="lg"] { border-radius: 12px; }
|
|
1174
|
+
.a2ui-surface .lp-stack[data-radius="full"], .a2ui-surface .lp-card[data-radius="full"] { border-radius: 999px; }
|
|
1175
|
+
|
|
1176
|
+
.a2ui-surface .lp-card[data-variant="flat"] { border-color: transparent; box-shadow: none; }
|
|
1177
|
+
.a2ui-surface .lp-card[data-variant="outline"] { box-shadow: none; }
|
|
1178
|
+
.a2ui-surface .lp-card[data-variant="elevated"] { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); }
|
|
1179
|
+
|
|
1180
|
+
.a2ui-surface .lp-chip[data-size="sm"] { padding: 3px 7px; font-size: 11px; }
|
|
1181
|
+
.a2ui-surface .lp-chip[data-variant="outline"] { background: transparent; }
|
|
1182
|
+
.a2ui-surface .lp-chip[data-variant="solid"] { background: var(--ink); color: var(--bg); border-color: transparent; }
|
|
1183
|
+
.a2ui-surface .lp-chip.accent[data-variant="solid"] { background: var(--accent); color: var(--accent-ink); }
|
|
1184
|
+
.a2ui-surface .lp-chip.info[data-variant="solid"] { background: var(--tone-info-fg); color: #ffffff; }
|
|
1185
|
+
.a2ui-surface .lp-chip.positive[data-variant="solid"] { background: var(--tone-success-fg); color: #ffffff; }
|
|
1186
|
+
.a2ui-surface .lp-chip.warning[data-variant="solid"] { background: var(--tone-warning-fg); color: #ffffff; }
|
|
1187
|
+
.a2ui-surface .lp-chip.danger[data-variant="solid"] { background: var(--tone-danger-fg); color: #ffffff; }
|
|
1188
|
+
|
|
1189
|
+
.a2ui-surface .lp-btn[data-size="sm"] { min-height: 36px; padding: 7px 12px; font-size: 13px; }
|
|
1190
|
+
.a2ui-surface .lp-btn[data-size="lg"] { min-height: 48px; padding: 13px 20px; font-size: 15px; }
|
|
1191
|
+
.a2ui-surface .lp-btn[data-full-width="true"] { width: 100%; }
|
|
1192
|
+
|
|
1193
|
+
.a2ui-surface .lp-rule[data-spacing="sm"] { margin-block: 4px; }
|
|
1194
|
+
.a2ui-surface .lp-rule[data-spacing="md"] { margin-block: 12px; }
|
|
1195
|
+
.a2ui-surface .lp-rule[data-spacing="lg"] { margin-block: 20px; }
|
|
1196
|
+
|
|
1197
|
+
.a2ui-surface .lp-aegis-block-placeholder {
|
|
1198
|
+
padding: 12px 14px;
|
|
1199
|
+
border: 1px dashed var(--hairline);
|
|
1200
|
+
border-radius: var(--radius-card);
|
|
1201
|
+
background: var(--surface-2);
|
|
1202
|
+
color: var(--muted);
|
|
1203
|
+
font: var(--caption);
|
|
1204
|
+
}
|
|
1205
|
+
|
|
1206
|
+
|
|
1207
|
+
.a2ui-surface .lp-aegis-block-frame[data-chrome="default"] {
|
|
1208
|
+
border: 1px solid var(--hairline);
|
|
1209
|
+
border-radius: var(--radius-card);
|
|
1210
|
+
padding: 12px;
|
|
1211
|
+
}
|
|
1212
|
+
.a2ui-surface .lp-aegis-block-title {
|
|
1213
|
+
font: var(--body);
|
|
1214
|
+
font-weight: 600;
|
|
1215
|
+
margin: 0 0 8px;
|
|
1216
|
+
overflow-wrap: anywhere;
|
|
1217
|
+
}
|
|
1218
|
+
.a2ui-surface .lp-aegis-block-frame .lp-aegis-block-placeholder {
|
|
1219
|
+
padding: 0;
|
|
1220
|
+
border: 0;
|
|
1221
|
+
background: transparent;
|
|
1222
|
+
}
|
|
1223
|
+
|
|
1224
|
+
.a2ui-surface .lp-download { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
|
|
1225
|
+
.a2ui-surface .lp-download .lp-btn[aria-busy="true"] { cursor: progress; opacity: 0.72; }
|
|
1226
|
+
|
|
1227
|
+
.a2ui-surface .lp-inline-popover-anchor {
|
|
1228
|
+
position: relative;
|
|
1229
|
+
display: inline-block;
|
|
1230
|
+
vertical-align: baseline;
|
|
1231
|
+
}
|
|
1232
|
+
.a2ui-surface .lp-cite-pill,
|
|
1233
|
+
.a2ui-surface .lp-entity-pill {
|
|
1234
|
+
display: inline-flex;
|
|
1235
|
+
align-items: center;
|
|
1236
|
+
gap: 4px;
|
|
1237
|
+
vertical-align: baseline;
|
|
1238
|
+
white-space: nowrap;
|
|
1239
|
+
width: auto;
|
|
1240
|
+
min-width: 0;
|
|
1241
|
+
min-height: 0;
|
|
1242
|
+
margin-inline: 2px;
|
|
1243
|
+
padding: 1px 7px;
|
|
1244
|
+
border: 1px solid var(--hairline);
|
|
1245
|
+
border-radius: 999px;
|
|
1246
|
+
background: var(--surface-2);
|
|
1247
|
+
color: var(--ink);
|
|
1248
|
+
font: 500 calc(12px * var(--lp-text-zoom, 1))/calc(18px * var(--lp-text-zoom, 1)) var(--font-sans);
|
|
1249
|
+
cursor: pointer;
|
|
1250
|
+
text-decoration: none;
|
|
1251
|
+
}
|
|
1252
|
+
.a2ui-surface .lp-entity-pill {
|
|
1253
|
+
border-color: color-mix(in srgb, var(--accent) 32%, var(--hairline));
|
|
1254
|
+
background: color-mix(in srgb, var(--accent) 10%, var(--surface-2));
|
|
1255
|
+
color: var(--accent);
|
|
1256
|
+
}
|
|
1257
|
+
.a2ui-surface .lp-cite-pill[data-streaming="true"],
|
|
1258
|
+
.a2ui-surface .lp-entity-pill[data-streaming="true"] {
|
|
1259
|
+
cursor: default;
|
|
1260
|
+
opacity: 0.75;
|
|
1261
|
+
}
|
|
1262
|
+
.a2ui-surface .lp-cite-pill:hover:not([data-streaming="true"]),
|
|
1263
|
+
.a2ui-surface .lp-entity-pill:hover:not([data-streaming="true"]) {
|
|
1264
|
+
border-color: var(--accent);
|
|
1265
|
+
}
|
|
1266
|
+
.a2ui-surface .lp-cite-pill:focus-visible,
|
|
1267
|
+
.a2ui-surface .lp-entity-pill:focus-visible {
|
|
1268
|
+
outline: 2px solid var(--accent);
|
|
1269
|
+
outline-offset: 1px;
|
|
1270
|
+
}
|
|
1271
|
+
.a2ui-surface .lp-cite-favicon,
|
|
1272
|
+
.a2ui-surface .lp-source-favicon {
|
|
1273
|
+
display: inline-block;
|
|
1274
|
+
flex: 0 0 auto;
|
|
1275
|
+
width: 14px;
|
|
1276
|
+
height: 14px;
|
|
1277
|
+
min-width: 14px;
|
|
1278
|
+
min-height: 14px;
|
|
1279
|
+
max-width: 14px;
|
|
1280
|
+
max-height: 14px;
|
|
1281
|
+
border-radius: 50%;
|
|
1282
|
+
object-fit: cover;
|
|
1283
|
+
}
|
|
1284
|
+
.a2ui-surface .lp-source-favicon {
|
|
1285
|
+
width: 18px;
|
|
1286
|
+
height: 18px;
|
|
1287
|
+
min-width: 18px;
|
|
1288
|
+
min-height: 18px;
|
|
1289
|
+
max-width: 18px;
|
|
1290
|
+
max-height: 18px;
|
|
1291
|
+
margin-top: 2px;
|
|
1292
|
+
}
|
|
1293
|
+
.a2ui-surface .lp-cite-initial,
|
|
1294
|
+
.a2ui-surface .lp-source-initial {
|
|
1295
|
+
display: inline-flex;
|
|
1296
|
+
align-items: center;
|
|
1297
|
+
justify-content: center;
|
|
1298
|
+
flex: 0 0 auto;
|
|
1299
|
+
width: 14px;
|
|
1300
|
+
height: 14px;
|
|
1301
|
+
border-radius: 50%;
|
|
1302
|
+
background: color-mix(in srgb, var(--ink) 12%, transparent);
|
|
1303
|
+
color: var(--ink);
|
|
1304
|
+
font: 600 9px/1 var(--font-sans);
|
|
1305
|
+
}
|
|
1306
|
+
.a2ui-surface .lp-source-initial {
|
|
1307
|
+
width: 18px;
|
|
1308
|
+
height: 18px;
|
|
1309
|
+
font-size: 10px;
|
|
1310
|
+
}
|
|
1311
|
+
.a2ui-surface .lp-cite-pill[data-source-kind="code"] .lp-cite-label {
|
|
1312
|
+
font-family: var(--font-mono);
|
|
1313
|
+
font-size: calc(11.5px * var(--lp-text-zoom, 1));
|
|
1314
|
+
}
|
|
1315
|
+
.a2ui-surface .lp-cite-kind-icon,
|
|
1316
|
+
.a2ui-surface .lp-source-kind-icon {
|
|
1317
|
+
display: inline-flex;
|
|
1318
|
+
align-items: center;
|
|
1319
|
+
justify-content: center;
|
|
1320
|
+
flex: 0 0 auto;
|
|
1321
|
+
color: var(--ink-2);
|
|
1322
|
+
}
|
|
1323
|
+
.a2ui-surface .lp-cite-kind-icon {
|
|
1324
|
+
width: 14px;
|
|
1325
|
+
height: 14px;
|
|
1326
|
+
}
|
|
1327
|
+
.a2ui-surface .lp-cite-kind-icon svg {
|
|
1328
|
+
width: 13px;
|
|
1329
|
+
height: 13px;
|
|
1330
|
+
}
|
|
1331
|
+
.a2ui-surface .lp-source-kind-icon {
|
|
1332
|
+
width: 18px;
|
|
1333
|
+
height: 18px;
|
|
1334
|
+
margin-top: 2px;
|
|
1335
|
+
}
|
|
1336
|
+
.a2ui-surface .lp-source-kind-icon svg {
|
|
1337
|
+
width: 15px;
|
|
1338
|
+
height: 15px;
|
|
1339
|
+
}
|
|
1340
|
+
.a2ui-surface .lp-source-row {
|
|
1341
|
+
display: flex;
|
|
1342
|
+
align-items: flex-start;
|
|
1343
|
+
gap: 10px;
|
|
1344
|
+
color: inherit;
|
|
1345
|
+
text-decoration: none;
|
|
1346
|
+
}
|
|
1347
|
+
.a2ui-surface button.lp-source-row {
|
|
1348
|
+
width: 100%;
|
|
1349
|
+
padding: 0;
|
|
1350
|
+
border: 0;
|
|
1351
|
+
background: transparent;
|
|
1352
|
+
text-align: start;
|
|
1353
|
+
cursor: pointer;
|
|
1354
|
+
font: inherit;
|
|
1355
|
+
}
|
|
1356
|
+
.a2ui-surface a.lp-source-row:hover .lp-heading,
|
|
1357
|
+
.a2ui-surface button.lp-source-row:hover .lp-heading {
|
|
1358
|
+
text-decoration: underline;
|
|
1359
|
+
}
|
|
1360
|
+
.a2ui-surface .lp-source-excerpt {
|
|
1361
|
+
display: -webkit-box;
|
|
1362
|
+
-webkit-line-clamp: 2;
|
|
1363
|
+
-webkit-box-orient: vertical;
|
|
1364
|
+
overflow: hidden;
|
|
1365
|
+
}
|
|
1366
|
+
.a2ui-surface .lp-inline-popover-panel {
|
|
1367
|
+
position: fixed;
|
|
1368
|
+
z-index: 60;
|
|
1369
|
+
display: flex;
|
|
1370
|
+
flex-direction: column;
|
|
1371
|
+
box-sizing: border-box;
|
|
1372
|
+
min-width: 240px;
|
|
1373
|
+
width: min(300px, calc(100vw - 16px));
|
|
1374
|
+
max-height: calc(100vh - 16px);
|
|
1375
|
+
padding: 12px 14px;
|
|
1376
|
+
border: 1px solid var(--hairline);
|
|
1377
|
+
border-radius: var(--radius-card, 12px);
|
|
1378
|
+
background: var(--surface, var(--bg));
|
|
1379
|
+
color: var(--ink);
|
|
1380
|
+
box-shadow: 0 10px 28px color-mix(in srgb, var(--ink) 14%, transparent), 0 2px 6px color-mix(in srgb, var(--ink) 6%, transparent);
|
|
1381
|
+
outline: none;
|
|
1382
|
+
text-align: start;
|
|
1383
|
+
}
|
|
1384
|
+
.a2ui-surface .lp-inline-popover-panel[data-source-kind="code"] {
|
|
1385
|
+
width: min(380px, calc(100vw - 16px));
|
|
1386
|
+
}
|
|
1387
|
+
.a2ui-surface .lp-inline-popover-header {
|
|
1388
|
+
display: flex;
|
|
1389
|
+
flex: 0 0 auto;
|
|
1390
|
+
align-items: center;
|
|
1391
|
+
justify-content: space-between;
|
|
1392
|
+
gap: 8px;
|
|
1393
|
+
margin-bottom: 6px;
|
|
1394
|
+
}
|
|
1395
|
+
.a2ui-surface .lp-inline-popover-source {
|
|
1396
|
+
display: inline-flex;
|
|
1397
|
+
align-items: center;
|
|
1398
|
+
gap: 6px;
|
|
1399
|
+
min-width: 0;
|
|
1400
|
+
white-space: nowrap;
|
|
1401
|
+
}
|
|
1402
|
+
.a2ui-surface .lp-inline-popover-site,
|
|
1403
|
+
.a2ui-surface .lp-entity-card-category {
|
|
1404
|
+
font: 600 calc(11px * var(--lp-text-zoom, 1))/calc(16px * var(--lp-text-zoom, 1)) var(--font-sans);
|
|
1405
|
+
color: var(--ink-2);
|
|
1406
|
+
white-space: nowrap;
|
|
1407
|
+
overflow: hidden;
|
|
1408
|
+
text-overflow: ellipsis;
|
|
1409
|
+
}
|
|
1410
|
+
.a2ui-surface .lp-inline-popover-panel[data-source-kind="code"] .lp-inline-popover-site {
|
|
1411
|
+
font-family: var(--font-mono);
|
|
1412
|
+
}
|
|
1413
|
+
.a2ui-surface .lp-cite-file-path {
|
|
1414
|
+
font: 400 calc(11.5px * var(--lp-text-zoom, 1))/calc(16px * var(--lp-text-zoom, 1)) var(--font-mono);
|
|
1415
|
+
color: var(--ink-2);
|
|
1416
|
+
overflow-wrap: anywhere;
|
|
1417
|
+
}
|
|
1418
|
+
.a2ui-surface .lp-cite-code-preview {
|
|
1419
|
+
border: 1px solid var(--hairline);
|
|
1420
|
+
border-radius: 8px;
|
|
1421
|
+
background: var(--surface-2);
|
|
1422
|
+
overflow-x: auto;
|
|
1423
|
+
max-height: 220px;
|
|
1424
|
+
overflow-y: auto;
|
|
1425
|
+
}
|
|
1426
|
+
.a2ui-surface .lp-cite-code-pre {
|
|
1427
|
+
margin: 0;
|
|
1428
|
+
padding: 6px 0;
|
|
1429
|
+
font: 400 calc(11.5px * var(--lp-text-zoom, 1))/calc(18px * var(--lp-text-zoom, 1)) var(--font-mono);
|
|
1430
|
+
color: var(--ink);
|
|
1431
|
+
min-width: max-content;
|
|
1432
|
+
}
|
|
1433
|
+
.a2ui-surface .lp-cite-code-line {
|
|
1434
|
+
display: flex;
|
|
1435
|
+
align-items: baseline;
|
|
1436
|
+
padding: 0 10px 0 8px;
|
|
1437
|
+
border-left: 2px solid transparent;
|
|
1438
|
+
}
|
|
1439
|
+
.a2ui-surface .lp-cite-code-line[data-highlighted="true"] {
|
|
1440
|
+
background: color-mix(in srgb, var(--accent) 12%, transparent);
|
|
1441
|
+
border-left-color: var(--accent);
|
|
1442
|
+
}
|
|
1443
|
+
.a2ui-surface .lp-cite-code-gutter {
|
|
1444
|
+
flex: 0 0 auto;
|
|
1445
|
+
min-width: 28px;
|
|
1446
|
+
padding-right: 10px;
|
|
1447
|
+
text-align: right;
|
|
1448
|
+
color: var(--ink-2);
|
|
1449
|
+
user-select: none;
|
|
1450
|
+
font-variant-numeric: tabular-nums;
|
|
1451
|
+
}
|
|
1452
|
+
.a2ui-surface .lp-cite-code-text {
|
|
1453
|
+
white-space: pre;
|
|
1454
|
+
}
|
|
1455
|
+
.a2ui-surface .lp-inline-popover-open {
|
|
1456
|
+
display: inline-flex;
|
|
1457
|
+
align-items: center;
|
|
1458
|
+
padding: 4px 10px;
|
|
1459
|
+
border: 1px solid var(--hairline);
|
|
1460
|
+
border-radius: 6px;
|
|
1461
|
+
background: transparent;
|
|
1462
|
+
color: var(--accent);
|
|
1463
|
+
font: 600 calc(12px * var(--lp-text-zoom, 1))/calc(16px * var(--lp-text-zoom, 1)) var(--font-sans);
|
|
1464
|
+
text-decoration: none;
|
|
1465
|
+
cursor: pointer;
|
|
1466
|
+
}
|
|
1467
|
+
.a2ui-surface .lp-inline-popover-close {
|
|
1468
|
+
display: inline-flex;
|
|
1469
|
+
align-items: center;
|
|
1470
|
+
justify-content: center;
|
|
1471
|
+
min-width: 28px;
|
|
1472
|
+
min-height: 28px;
|
|
1473
|
+
margin: -4px -6px -4px 0;
|
|
1474
|
+
padding: 0;
|
|
1475
|
+
border: 0;
|
|
1476
|
+
border-radius: 6px;
|
|
1477
|
+
background: transparent;
|
|
1478
|
+
color: var(--ink-2);
|
|
1479
|
+
cursor: pointer;
|
|
1480
|
+
}
|
|
1481
|
+
.a2ui-surface .lp-inline-popover-close:hover {
|
|
1482
|
+
background: color-mix(in srgb, var(--ink) 8%, transparent);
|
|
1483
|
+
color: var(--ink);
|
|
1484
|
+
}
|
|
1485
|
+
.a2ui-surface .lp-inline-popover-body {
|
|
1486
|
+
display: grid;
|
|
1487
|
+
align-content: start;
|
|
1488
|
+
gap: 8px;
|
|
1489
|
+
flex: 1 1 auto;
|
|
1490
|
+
min-height: 0;
|
|
1491
|
+
overflow-y: auto;
|
|
1492
|
+
overscroll-behavior: contain;
|
|
1493
|
+
}
|
|
1494
|
+
.a2ui-surface .lp-inline-popover-title {
|
|
1495
|
+
font: 600 calc(14px * var(--lp-text-zoom, 1))/calc(20px * var(--lp-text-zoom, 1)) var(--font-sans);
|
|
1496
|
+
color: var(--ink);
|
|
1497
|
+
}
|
|
1498
|
+
.a2ui-surface .lp-inline-popover-excerpt {
|
|
1499
|
+
margin: 0;
|
|
1500
|
+
font: 400 calc(13px * var(--lp-text-zoom, 1))/calc(18px * var(--lp-text-zoom, 1)) var(--font-sans);
|
|
1501
|
+
color: var(--ink-2);
|
|
1502
|
+
}
|
|
1503
|
+
.a2ui-surface .lp-inline-popover-actions {
|
|
1504
|
+
display: flex;
|
|
1505
|
+
justify-content: flex-end;
|
|
1506
|
+
padding-top: 2px;
|
|
1507
|
+
}
|
|
1508
|
+
.a2ui-surface .lp-inline-popover-open:hover {
|
|
1509
|
+
border-color: var(--accent);
|
|
1510
|
+
}
|
|
1511
|
+
.a2ui-surface .lp-entity-card-head {
|
|
1512
|
+
display: flex;
|
|
1513
|
+
align-items: center;
|
|
1514
|
+
gap: 10px;
|
|
1515
|
+
}
|
|
1516
|
+
.a2ui-surface .lp-entity-card-image,
|
|
1517
|
+
.a2ui-surface .lp-entity-card-initial {
|
|
1518
|
+
flex: 0 0 auto;
|
|
1519
|
+
width: 36px;
|
|
1520
|
+
height: 36px;
|
|
1521
|
+
min-width: 36px;
|
|
1522
|
+
min-height: 36px;
|
|
1523
|
+
max-width: 36px;
|
|
1524
|
+
max-height: 36px;
|
|
1525
|
+
border-radius: 8px;
|
|
1526
|
+
object-fit: cover;
|
|
1527
|
+
}
|
|
1528
|
+
.a2ui-surface .lp-entity-card-initial {
|
|
1529
|
+
display: inline-flex;
|
|
1530
|
+
align-items: center;
|
|
1531
|
+
justify-content: center;
|
|
1532
|
+
background: color-mix(in srgb, var(--accent) 14%, var(--surface-2));
|
|
1533
|
+
color: var(--accent);
|
|
1534
|
+
font: 600 15px/1 var(--font-sans);
|
|
1535
|
+
}
|
|
1536
|
+
.a2ui-surface .lp-entity-card-titles {
|
|
1537
|
+
min-width: 0;
|
|
1538
|
+
}
|
|
1539
|
+
.a2ui-surface .lp-entity-card-subtitle {
|
|
1540
|
+
font: 400 calc(12px * var(--lp-text-zoom, 1))/calc(16px * var(--lp-text-zoom, 1)) var(--font-sans);
|
|
1541
|
+
color: var(--ink-2);
|
|
1542
|
+
}
|
|
1543
|
+
.a2ui-surface .lp-entity-card-fields {
|
|
1544
|
+
display: grid;
|
|
1545
|
+
gap: 6px;
|
|
1546
|
+
margin: 0;
|
|
1547
|
+
padding-top: 6px;
|
|
1548
|
+
border-top: 1px solid var(--hairline);
|
|
1549
|
+
}
|
|
1550
|
+
.a2ui-surface .lp-entity-card-field {
|
|
1551
|
+
display: flex;
|
|
1552
|
+
justify-content: space-between;
|
|
1553
|
+
gap: 10px;
|
|
1554
|
+
font: 400 calc(12px * var(--lp-text-zoom, 1))/calc(16px * var(--lp-text-zoom, 1)) var(--font-sans);
|
|
1555
|
+
}
|
|
1556
|
+
.a2ui-surface .lp-entity-card-field dt {
|
|
1557
|
+
color: var(--ink-2);
|
|
1558
|
+
}
|
|
1559
|
+
.a2ui-surface .lp-entity-card-field dd {
|
|
1560
|
+
margin: 0;
|
|
1561
|
+
color: var(--ink);
|
|
1562
|
+
font-weight: 500;
|
|
1563
|
+
text-align: end;
|
|
1564
|
+
}
|
|
1565
|
+
|
|
1566
|
+
/* LPMap_Default: day-grouped numbered place list and optional Host map adapter. */
|
|
1567
|
+
.a2ui-surface .lp-map {
|
|
1568
|
+
display: grid;
|
|
1569
|
+
gap: 10px;
|
|
1570
|
+
padding: 14px;
|
|
1571
|
+
border: 1px solid var(--hairline);
|
|
1572
|
+
border-radius: var(--radius-card);
|
|
1573
|
+
background: var(--surface);
|
|
1574
|
+
}
|
|
1575
|
+
.a2ui-surface .lp-map-title {
|
|
1576
|
+
margin: 0;
|
|
1577
|
+
font: var(--heading);
|
|
1578
|
+
color: var(--ink);
|
|
1579
|
+
}
|
|
1580
|
+
.a2ui-surface .lp-map-adapter {
|
|
1581
|
+
border-radius: calc(var(--radius-card) - 2px);
|
|
1582
|
+
overflow: hidden;
|
|
1583
|
+
border: 1px solid var(--hairline);
|
|
1584
|
+
background: var(--surface-2);
|
|
1585
|
+
}
|
|
1586
|
+
.a2ui-surface .lp-map-groups {
|
|
1587
|
+
display: grid;
|
|
1588
|
+
gap: 12px;
|
|
1589
|
+
}
|
|
1590
|
+
.a2ui-surface .lp-map-group {
|
|
1591
|
+
display: grid;
|
|
1592
|
+
gap: 6px;
|
|
1593
|
+
}
|
|
1594
|
+
.a2ui-surface .lp-map-day {
|
|
1595
|
+
margin: 0;
|
|
1596
|
+
font: var(--caption);
|
|
1597
|
+
font-weight: 600;
|
|
1598
|
+
color: var(--muted);
|
|
1599
|
+
letter-spacing: 0.02em;
|
|
1600
|
+
}
|
|
1601
|
+
.a2ui-surface .lp-map-list {
|
|
1602
|
+
list-style: none;
|
|
1603
|
+
margin: 0;
|
|
1604
|
+
padding: 0;
|
|
1605
|
+
display: grid;
|
|
1606
|
+
gap: 6px;
|
|
1607
|
+
}
|
|
1608
|
+
.a2ui-surface .lp-map-item {
|
|
1609
|
+
display: flex;
|
|
1610
|
+
align-items: center;
|
|
1611
|
+
gap: 8px;
|
|
1612
|
+
border: 1px solid var(--hairline);
|
|
1613
|
+
border-radius: 8px;
|
|
1614
|
+
background: var(--surface);
|
|
1615
|
+
transition: border-color 120ms ease, background-color 120ms ease;
|
|
1616
|
+
}
|
|
1617
|
+
.a2ui-surface .lp-map-item[data-selected="true"] {
|
|
1618
|
+
border-color: var(--accent);
|
|
1619
|
+
background: var(--accent-soft);
|
|
1620
|
+
}
|
|
1621
|
+
.a2ui-surface .lp-map-row {
|
|
1622
|
+
flex: 1 1 auto;
|
|
1623
|
+
min-width: 0;
|
|
1624
|
+
display: flex;
|
|
1625
|
+
align-items: flex-start;
|
|
1626
|
+
gap: 10px;
|
|
1627
|
+
padding: 10px 12px;
|
|
1628
|
+
border: 0;
|
|
1629
|
+
background: transparent;
|
|
1630
|
+
text-align: start;
|
|
1631
|
+
cursor: pointer;
|
|
1632
|
+
color: inherit;
|
|
1633
|
+
font: inherit;
|
|
1634
|
+
}
|
|
1635
|
+
.a2ui-surface .lp-map-row:disabled {
|
|
1636
|
+
cursor: default;
|
|
1637
|
+
}
|
|
1638
|
+
.a2ui-surface .lp-map-index {
|
|
1639
|
+
flex: none;
|
|
1640
|
+
width: 22px;
|
|
1641
|
+
height: 22px;
|
|
1642
|
+
border-radius: 999px;
|
|
1643
|
+
display: inline-grid;
|
|
1644
|
+
place-items: center;
|
|
1645
|
+
background: var(--surface-2);
|
|
1646
|
+
color: var(--ink);
|
|
1647
|
+
font-size: 12px;
|
|
1648
|
+
font-weight: 600;
|
|
1649
|
+
line-height: 1;
|
|
1650
|
+
margin-top: 1px;
|
|
1651
|
+
}
|
|
1652
|
+
.a2ui-surface .lp-map-item[data-selected="true"] .lp-map-index {
|
|
1653
|
+
background: var(--accent);
|
|
1654
|
+
color: var(--accent-ink);
|
|
1655
|
+
}
|
|
1656
|
+
.a2ui-surface .lp-map-copy {
|
|
1657
|
+
display: grid;
|
|
1658
|
+
gap: 2px;
|
|
1659
|
+
min-width: 0;
|
|
1660
|
+
}
|
|
1661
|
+
.a2ui-surface .lp-map-name {
|
|
1662
|
+
font: var(--body);
|
|
1663
|
+
font-weight: 600;
|
|
1664
|
+
color: var(--ink);
|
|
1665
|
+
overflow-wrap: anywhere;
|
|
1666
|
+
}
|
|
1667
|
+
.a2ui-surface .lp-map-address {
|
|
1668
|
+
font: var(--caption);
|
|
1669
|
+
color: var(--muted);
|
|
1670
|
+
overflow-wrap: anywhere;
|
|
1671
|
+
}
|
|
1672
|
+
.a2ui-surface .lp-map-open {
|
|
1673
|
+
flex: none;
|
|
1674
|
+
display: inline-flex;
|
|
1675
|
+
align-items: center;
|
|
1676
|
+
gap: 4px;
|
|
1677
|
+
margin-inline-end: 10px;
|
|
1678
|
+
padding: 6px 10px;
|
|
1679
|
+
min-height: 32px;
|
|
1680
|
+
border: 1px solid var(--hairline);
|
|
1681
|
+
border-radius: 999px;
|
|
1682
|
+
background: var(--surface-2);
|
|
1683
|
+
color: var(--accent);
|
|
1684
|
+
font: var(--caption);
|
|
1685
|
+
font-weight: 600;
|
|
1686
|
+
cursor: pointer;
|
|
1687
|
+
white-space: nowrap;
|
|
1688
|
+
}
|
|
1689
|
+
.a2ui-surface .lp-map-open:disabled {
|
|
1690
|
+
opacity: 0.55;
|
|
1691
|
+
cursor: default;
|
|
1692
|
+
}
|
|
1693
|
+
.a2ui-surface .lp-map-caption {
|
|
1694
|
+
margin: 0;
|
|
1695
|
+
font: var(--caption);
|
|
1696
|
+
color: var(--muted);
|
|
1697
|
+
}
|
|
1698
|
+
|
|
1699
|
+
/* ---- pack-tokens.generated.css ---- */
|
|
1700
|
+
/* GENERATED FILE — do not edit by hand.
|
|
1701
|
+
Source: ui-foundation/surface/contracts/catalog/generated/style-tokens.json
|
|
1702
|
+
Generator: ui-foundation/surface/typescript/packages/renderer-web/scripts/generate-renderer-assets.mjs
|
|
1703
|
+
Regenerate: corepack pnpm --filter @littlepress/renderer-web generate:assets
|
|
1704
|
+
|
|
1705
|
+
5 packs x light/dark, mirroring ui-foundation/surface/contracts/catalog/styles/.
|
|
1706
|
+
`system` mode follows prefers-color-scheme; `light`/`dark` are explicit. */
|
|
1707
|
+
|
|
1708
|
+
.a2ui-surface {
|
|
1709
|
+
--sys-sans: system-ui, -apple-system, "PingFang SC", "Noto Sans SC", sans-serif;
|
|
1710
|
+
--sys-serif: Georgia, "Songti SC", serif;
|
|
1711
|
+
--sys-mono: ui-monospace, "SF Mono", Menlo, monospace;
|
|
1712
|
+
|
|
1713
|
+
--font-sans: var(--font-display);
|
|
1714
|
+
--font-serif: var(--font-text);
|
|
1715
|
+
--font-mono: var(--sys-mono);
|
|
1716
|
+
--tone-info-fg: color-mix(in srgb, var(--extend-blue) 72%, var(--text));
|
|
1717
|
+
--tone-info-bg: color-mix(in srgb, var(--extend-blue) 9%, var(--surface));
|
|
1718
|
+
--tone-info-border: color-mix(in srgb, var(--extend-blue) 22%, transparent);
|
|
1719
|
+
--tone-success-fg: color-mix(in srgb, var(--pass) 74%, var(--text));
|
|
1720
|
+
--tone-success-bg: color-mix(in srgb, var(--pass) 9%, var(--surface));
|
|
1721
|
+
--tone-success-border: color-mix(in srgb, var(--pass) 22%, transparent);
|
|
1722
|
+
--tone-warning-fg: color-mix(in srgb, var(--caution) 76%, var(--text));
|
|
1723
|
+
--tone-warning-bg: color-mix(in srgb, var(--caution) 10%, var(--surface));
|
|
1724
|
+
--tone-warning-border: color-mix(in srgb, var(--caution) 24%, transparent);
|
|
1725
|
+
--tone-danger-fg: color-mix(in srgb, var(--error) 72%, var(--text));
|
|
1726
|
+
--tone-danger-bg: color-mix(in srgb, var(--error) 8%, var(--surface));
|
|
1727
|
+
--tone-danger-border: color-mix(in srgb, var(--error) 20%, transparent);
|
|
1728
|
+
}
|
|
1729
|
+
|
|
1730
|
+
/* ---- neutral — default unstyled wireframe ---- */
|
|
1731
|
+
.a2ui-surface[data-pack="neutral"] {
|
|
1732
|
+
--font-display: var(--sys-sans);
|
|
1733
|
+
--font-text: var(--sys-sans);
|
|
1734
|
+
--alignment: start;
|
|
1735
|
+
--background: #f4f4f5;
|
|
1736
|
+
--surface: #ffffff;
|
|
1737
|
+
--surface-variant: rgba(0,0,0,.043);
|
|
1738
|
+
--surface-disabled: rgba(0,0,0,.075);
|
|
1739
|
+
--text: rgba(0,0,0,.910);
|
|
1740
|
+
--text-variant: rgba(0,0,0,.733);
|
|
1741
|
+
--text-disabled: rgba(0,0,0,.459);
|
|
1742
|
+
--text-reverse: rgba(255,255,255,.923);
|
|
1743
|
+
--text-reverse-variant: rgba(255,255,255,.719);
|
|
1744
|
+
--hover: rgba(0,0,0,.045);
|
|
1745
|
+
--accent: #171717;
|
|
1746
|
+
--accent-container: rgba(23,23,23,.06);
|
|
1747
|
+
--outline: rgba(0,0,0,.106);
|
|
1748
|
+
--pass: #2e7d4f;
|
|
1749
|
+
--caution: #b45309;
|
|
1750
|
+
--error: #d92d20;
|
|
1751
|
+
--extend-blue: #3b6fd4;
|
|
1752
|
+
--extend-red: #d64550;
|
|
1753
|
+
--series-1: var(--accent);
|
|
1754
|
+
--series-2: #0072f5;
|
|
1755
|
+
--series-3: #c88200;
|
|
1756
|
+
--series-4: #8e4ec6;
|
|
1757
|
+
--bg: var(--background);
|
|
1758
|
+
--surface-2: var(--surface-variant);
|
|
1759
|
+
--ink: var(--text);
|
|
1760
|
+
--ink-2: var(--text-variant);
|
|
1761
|
+
--muted: var(--text-variant);
|
|
1762
|
+
--hairline: var(--outline);
|
|
1763
|
+
--accent-ink: var(--text-reverse);
|
|
1764
|
+
--accent-soft: var(--accent-container);
|
|
1765
|
+
--ok: var(--pass);
|
|
1766
|
+
--warn: var(--caution);
|
|
1767
|
+
--live: var(--error);
|
|
1768
|
+
--team-a: var(--extend-red);
|
|
1769
|
+
--team-b: var(--extend-blue);
|
|
1770
|
+
--display: 500 32px/1.15 var(--font-display);
|
|
1771
|
+
--headline: 500 26px/1.20 var(--font-display);
|
|
1772
|
+
--title-large: 500 21px/1.28 var(--font-display);
|
|
1773
|
+
--title-small: 500 18px/1.32 var(--font-display);
|
|
1774
|
+
--body-large: 400 17px/1.50 var(--font-text);
|
|
1775
|
+
--body-medium: 400 15px/1.50 var(--font-text);
|
|
1776
|
+
--body-small: 400 13px/1.50 var(--font-text);
|
|
1777
|
+
--label-large: 500 14px/1.20 var(--font-text);
|
|
1778
|
+
--label-small: 500 12px/1.35 var(--font-text);
|
|
1779
|
+
--dek-style: normal;
|
|
1780
|
+
--overline-tracking: .12em;
|
|
1781
|
+
--meta-tracking: .06em;
|
|
1782
|
+
--title: var(--headline);
|
|
1783
|
+
--heading: var(--title-small);
|
|
1784
|
+
--dek: var(--body-large);
|
|
1785
|
+
--body: var(--body-medium);
|
|
1786
|
+
--caption: var(--label-small);
|
|
1787
|
+
--overline: var(--label-small);
|
|
1788
|
+
--meta: var(--label-small);
|
|
1789
|
+
--stat: var(--display);
|
|
1790
|
+
--btn: var(--label-large);
|
|
1791
|
+
--space-2xs: 4px;
|
|
1792
|
+
--space-xs: 8px;
|
|
1793
|
+
--space-sm: 12px;
|
|
1794
|
+
--space-md: 16px;
|
|
1795
|
+
--space-lg: 24px;
|
|
1796
|
+
--space-xl: 32px;
|
|
1797
|
+
--space-2xl: 48px;
|
|
1798
|
+
--block-gap: 28px;
|
|
1799
|
+
--size-control: 44px;
|
|
1800
|
+
--size-row: 52px;
|
|
1801
|
+
--size-avatar: 40px;
|
|
1802
|
+
--size-icon: 24px;
|
|
1803
|
+
--radius-control: 8px;
|
|
1804
|
+
--radius-surface: 8px;
|
|
1805
|
+
--radius-surface-lg: 12px;
|
|
1806
|
+
--radius-pill: 999px;
|
|
1807
|
+
--radius-card: var(--radius-surface-lg);
|
|
1808
|
+
--radius-media: var(--radius-surface);
|
|
1809
|
+
--radius-btn: var(--radius-control);
|
|
1810
|
+
--shadow-card: none;
|
|
1811
|
+
}
|
|
1812
|
+
|
|
1813
|
+
.a2ui-surface[data-pack="neutral"][data-mode="dark"] {
|
|
1814
|
+
--accent: #ededed;
|
|
1815
|
+
--accent-container: rgba(237,237,237,.08);
|
|
1816
|
+
--background: #141414;
|
|
1817
|
+
--extend-blue: #6f9be8;
|
|
1818
|
+
--extend-red: #e0707a;
|
|
1819
|
+
--hover: rgba(255,255,255,.06);
|
|
1820
|
+
--outline: rgba(255,255,255,.123);
|
|
1821
|
+
--series-1: var(--accent);
|
|
1822
|
+
--series-2: #0072f5;
|
|
1823
|
+
--series-3: #ffb224;
|
|
1824
|
+
--series-4: #8e4ec6;
|
|
1825
|
+
--surface: #1d1d1d;
|
|
1826
|
+
--surface-disabled: rgba(255,255,255,.094);
|
|
1827
|
+
--surface-variant: rgba(255,255,255,.077);
|
|
1828
|
+
--text: rgba(255,255,255,.923);
|
|
1829
|
+
--text-disabled: rgba(255,255,255,.447);
|
|
1830
|
+
--text-reverse: rgba(0,0,0,.910);
|
|
1831
|
+
--text-reverse-variant: rgba(0,0,0,.733);
|
|
1832
|
+
--text-variant: rgba(255,255,255,.719);
|
|
1833
|
+
}
|
|
1834
|
+
|
|
1835
|
+
@media (prefers-color-scheme: dark) {
|
|
1836
|
+
.a2ui-surface[data-pack="neutral"][data-mode="system"] {
|
|
1837
|
+
--accent: #ededed;
|
|
1838
|
+
--accent-container: rgba(237,237,237,.08);
|
|
1839
|
+
--background: #141414;
|
|
1840
|
+
--extend-blue: #6f9be8;
|
|
1841
|
+
--extend-red: #e0707a;
|
|
1842
|
+
--hover: rgba(255,255,255,.06);
|
|
1843
|
+
--outline: rgba(255,255,255,.123);
|
|
1844
|
+
--series-1: var(--accent);
|
|
1845
|
+
--series-2: #0072f5;
|
|
1846
|
+
--series-3: #ffb224;
|
|
1847
|
+
--series-4: #8e4ec6;
|
|
1848
|
+
--surface: #1d1d1d;
|
|
1849
|
+
--surface-disabled: rgba(255,255,255,.094);
|
|
1850
|
+
--surface-variant: rgba(255,255,255,.077);
|
|
1851
|
+
--text: rgba(255,255,255,.923);
|
|
1852
|
+
--text-disabled: rgba(255,255,255,.447);
|
|
1853
|
+
--text-reverse: rgba(0,0,0,.910);
|
|
1854
|
+
--text-reverse-variant: rgba(0,0,0,.733);
|
|
1855
|
+
--text-variant: rgba(255,255,255,.719);
|
|
1856
|
+
}
|
|
1857
|
+
}
|
|
1858
|
+
|
|
1859
|
+
/* ---- editorial — internal reference name; use a neutral public label (ADR 0004) ---- */
|
|
1860
|
+
.a2ui-surface[data-pack="editorial"] {
|
|
1861
|
+
--font-display: 'Hanken Grotesk', var(--sys-sans);
|
|
1862
|
+
--font-text: 'STIX Two Text', var(--sys-serif);
|
|
1863
|
+
--alignment: center;
|
|
1864
|
+
--background: #faf9f5;
|
|
1865
|
+
--surface: rgba(255,255,255,.70);
|
|
1866
|
+
--surface-variant: #e3dacc;
|
|
1867
|
+
--surface-disabled: #e8e6dc;
|
|
1868
|
+
--text: #141413;
|
|
1869
|
+
--text-variant: #5e5d59;
|
|
1870
|
+
--text-disabled: #b0aea5;
|
|
1871
|
+
--text-reverse: #f5f4ef;
|
|
1872
|
+
--text-reverse-variant: #c9c7bd;
|
|
1873
|
+
--hover: rgba(20,20,19,.06);
|
|
1874
|
+
--accent: #9a492e;
|
|
1875
|
+
--accent-container: rgba(198,97,63,.12);
|
|
1876
|
+
--outline: rgba(20,20,19,.10);
|
|
1877
|
+
--pass: #788c5d;
|
|
1878
|
+
--caution: #d4a27f;
|
|
1879
|
+
--error: #e5484d;
|
|
1880
|
+
--extend-blue: #6a9bcc;
|
|
1881
|
+
--extend-red: #c46686;
|
|
1882
|
+
--series-1: var(--accent);
|
|
1883
|
+
--series-2: #6295c9;
|
|
1884
|
+
--series-3: #788c5d;
|
|
1885
|
+
--series-4: #c46686;
|
|
1886
|
+
--bg: var(--background);
|
|
1887
|
+
--surface-2: var(--surface-variant);
|
|
1888
|
+
--ink: var(--text);
|
|
1889
|
+
--ink-2: var(--text-variant);
|
|
1890
|
+
--muted: var(--text-variant);
|
|
1891
|
+
--hairline: var(--outline);
|
|
1892
|
+
--accent-ink: var(--text-reverse);
|
|
1893
|
+
--accent-soft: var(--accent-container);
|
|
1894
|
+
--ok: var(--pass);
|
|
1895
|
+
--warn: var(--caution);
|
|
1896
|
+
--live: var(--error);
|
|
1897
|
+
--team-a: var(--extend-red);
|
|
1898
|
+
--team-b: var(--extend-blue);
|
|
1899
|
+
--display: 700 40px/1.10 var(--font-display);
|
|
1900
|
+
--headline: 700 32px/1.12 var(--font-display);
|
|
1901
|
+
--title-large: 600 28px/1.20 var(--font-display);
|
|
1902
|
+
--title-small: 600 22px/1.25 var(--font-display);
|
|
1903
|
+
--body-large: 400 18px/1.45 var(--font-text);
|
|
1904
|
+
--body-medium: 400 17px/1.75 var(--font-text);
|
|
1905
|
+
--body-small: 400 15px/1.55 var(--font-display);
|
|
1906
|
+
--label-large: 500 14px/1.20 var(--font-display);
|
|
1907
|
+
--label-small: 400 12px/1.50 var(--font-display);
|
|
1908
|
+
--dek-style: italic;
|
|
1909
|
+
--overline-tracking: .12em;
|
|
1910
|
+
--meta-tracking: .05em;
|
|
1911
|
+
--title: var(--headline);
|
|
1912
|
+
--heading: var(--title-small);
|
|
1913
|
+
--dek: var(--body-large);
|
|
1914
|
+
--body: var(--body-medium);
|
|
1915
|
+
--caption: var(--label-small);
|
|
1916
|
+
--overline: var(--label-small);
|
|
1917
|
+
--meta: var(--label-small);
|
|
1918
|
+
--stat: var(--display);
|
|
1919
|
+
--btn: var(--label-large);
|
|
1920
|
+
--space-2xs: 4px;
|
|
1921
|
+
--space-xs: 8px;
|
|
1922
|
+
--space-sm: 12px;
|
|
1923
|
+
--space-md: 16px;
|
|
1924
|
+
--space-lg: 24px;
|
|
1925
|
+
--space-xl: 32px;
|
|
1926
|
+
--space-2xl: 48px;
|
|
1927
|
+
--block-gap: 32px;
|
|
1928
|
+
--size-control: 48px;
|
|
1929
|
+
--size-row: 56px;
|
|
1930
|
+
--size-avatar: 40px;
|
|
1931
|
+
--size-icon: 24px;
|
|
1932
|
+
--radius-control: 8px;
|
|
1933
|
+
--radius-surface: 4px;
|
|
1934
|
+
--radius-surface-lg: 16px;
|
|
1935
|
+
--radius-pill: 999px;
|
|
1936
|
+
--radius-card: var(--radius-surface-lg);
|
|
1937
|
+
--radius-media: var(--radius-surface);
|
|
1938
|
+
--radius-btn: var(--radius-control);
|
|
1939
|
+
--shadow-card: 0 1px 2px rgba(31,30,27,.04);
|
|
1940
|
+
--control-active: var(--accent);
|
|
1941
|
+
--control-on-active: var(--text-reverse);
|
|
1942
|
+
--control-stroke: var(--text-variant);
|
|
1943
|
+
--control-tab-shadow: 0 0 0 1px rgba(11,11,11,.10), 0 1px 2px rgba(0,0,0,.05);
|
|
1944
|
+
--control-corner: var(--radius-surface);
|
|
1945
|
+
--control-fill: var(--surface);
|
|
1946
|
+
--control-mark-radius: 4px;
|
|
1947
|
+
--control-track-height: 4px;
|
|
1948
|
+
--control-thumb-width: 18px;
|
|
1949
|
+
--control-thumb-height: 18px;
|
|
1950
|
+
--control-thumb-radius: 999px;
|
|
1951
|
+
--control-tab-surface: rgba(11,11,11,.05);
|
|
1952
|
+
--control-tab-active-surface: var(--surface);
|
|
1953
|
+
--control-tab-radius: 8px;
|
|
1954
|
+
--control-tab-indicator: transparent;
|
|
1955
|
+
--control-tab-track-padding: 1px;
|
|
1956
|
+
--control-tab-segment-radius: 7px;
|
|
1957
|
+
--control-tab-text: var(--text-variant);
|
|
1958
|
+
--control-tab-active-text: var(--text);
|
|
1959
|
+
--control-tab-weight: 400;
|
|
1960
|
+
--control-tab-active-weight: 400;
|
|
1961
|
+
--control-tab-padding-x: 12px;
|
|
1962
|
+
--control-tab-gap: 0px;
|
|
1963
|
+
--control-tab-grow: 0;
|
|
1964
|
+
--control-thumb-fill: var(--control-active);
|
|
1965
|
+
}
|
|
1966
|
+
|
|
1967
|
+
.a2ui-surface[data-pack="editorial"][data-mode="dark"] {
|
|
1968
|
+
--accent: #e49e87;
|
|
1969
|
+
--accent-container: rgba(217,119,87,.16);
|
|
1970
|
+
--background: #262624;
|
|
1971
|
+
--control-tab-active-surface: color-mix(in srgb, var(--text) 14%, var(--surface));
|
|
1972
|
+
--control-tab-shadow: 0 0 0 1px rgba(255,255,255,.12);
|
|
1973
|
+
--control-tab-surface: rgba(255,255,255,.06);
|
|
1974
|
+
--error: #ff5b62;
|
|
1975
|
+
--extend-blue: #6a9bcc;
|
|
1976
|
+
--extend-red: #c46686;
|
|
1977
|
+
--hover: rgba(245,244,239,.06);
|
|
1978
|
+
--outline: rgba(245,244,239,.14);
|
|
1979
|
+
--series-1: var(--accent);
|
|
1980
|
+
--series-2: #6a9bcc;
|
|
1981
|
+
--series-3: #788c5d;
|
|
1982
|
+
--series-4: #c46686;
|
|
1983
|
+
--shadow-card: none;
|
|
1984
|
+
--surface: #30302e;
|
|
1985
|
+
--surface-disabled: #3a3937;
|
|
1986
|
+
--surface-variant: #444239;
|
|
1987
|
+
--text: #f5f4ef;
|
|
1988
|
+
--text-disabled: #918e82;
|
|
1989
|
+
--text-reverse: #141413;
|
|
1990
|
+
--text-reverse-variant: #5e5d59;
|
|
1991
|
+
--text-variant: #c9c7bd;
|
|
1992
|
+
}
|
|
1993
|
+
|
|
1994
|
+
@media (prefers-color-scheme: dark) {
|
|
1995
|
+
.a2ui-surface[data-pack="editorial"][data-mode="system"] {
|
|
1996
|
+
--accent: #e49e87;
|
|
1997
|
+
--accent-container: rgba(217,119,87,.16);
|
|
1998
|
+
--background: #262624;
|
|
1999
|
+
--control-tab-active-surface: color-mix(in srgb, var(--text) 14%, var(--surface));
|
|
2000
|
+
--control-tab-shadow: 0 0 0 1px rgba(255,255,255,.12);
|
|
2001
|
+
--control-tab-surface: rgba(255,255,255,.06);
|
|
2002
|
+
--error: #ff5b62;
|
|
2003
|
+
--extend-blue: #6a9bcc;
|
|
2004
|
+
--extend-red: #c46686;
|
|
2005
|
+
--hover: rgba(245,244,239,.06);
|
|
2006
|
+
--outline: rgba(245,244,239,.14);
|
|
2007
|
+
--series-1: var(--accent);
|
|
2008
|
+
--series-2: #6a9bcc;
|
|
2009
|
+
--series-3: #788c5d;
|
|
2010
|
+
--series-4: #c46686;
|
|
2011
|
+
--shadow-card: none;
|
|
2012
|
+
--surface: #30302e;
|
|
2013
|
+
--surface-disabled: #3a3937;
|
|
2014
|
+
--surface-variant: #444239;
|
|
2015
|
+
--text: #f5f4ef;
|
|
2016
|
+
--text-disabled: #918e82;
|
|
2017
|
+
--text-reverse: #141413;
|
|
2018
|
+
--text-reverse-variant: #5e5d59;
|
|
2019
|
+
--text-variant: #c9c7bd;
|
|
2020
|
+
}
|
|
2021
|
+
}
|
|
2022
|
+
|
|
2023
|
+
/* ---- minimal — internal reference name; use a neutral public label (ADR 0004) ---- */
|
|
2024
|
+
.a2ui-surface[data-pack="minimal"] {
|
|
2025
|
+
--font-display: 'Inter', var(--sys-sans);
|
|
2026
|
+
--font-text: 'Inter', var(--sys-sans);
|
|
2027
|
+
--alignment: center;
|
|
2028
|
+
--background: #ffffff;
|
|
2029
|
+
--surface: #f5f5f5;
|
|
2030
|
+
--surface-variant: #f0f1f2;
|
|
2031
|
+
--surface-disabled: #e0e0e0;
|
|
2032
|
+
--text: #000000;
|
|
2033
|
+
--text-variant: rgba(0,0,0,.60);
|
|
2034
|
+
--text-disabled: rgba(0,0,0,.44);
|
|
2035
|
+
--text-reverse: #ffffff;
|
|
2036
|
+
--text-reverse-variant: rgba(255,255,255,.60);
|
|
2037
|
+
--hover: rgba(0,0,0,.04);
|
|
2038
|
+
--accent: #000000;
|
|
2039
|
+
--accent-container: rgba(0,0,0,.06);
|
|
2040
|
+
--outline: rgba(0,0,0,.12);
|
|
2041
|
+
--pass: #03a354;
|
|
2042
|
+
--caution: #e2a727;
|
|
2043
|
+
--error: #e80d2f;
|
|
2044
|
+
--extend-blue: #36a6d7;
|
|
2045
|
+
--extend-red: #ed6079;
|
|
2046
|
+
--series-1: var(--accent);
|
|
2047
|
+
--series-2: #0285ff;
|
|
2048
|
+
--series-3: #924ff7;
|
|
2049
|
+
--series-4: #f35404;
|
|
2050
|
+
--bg: var(--background);
|
|
2051
|
+
--surface-2: var(--surface-variant);
|
|
2052
|
+
--ink: var(--text);
|
|
2053
|
+
--ink-2: var(--text-variant);
|
|
2054
|
+
--muted: var(--text-variant);
|
|
2055
|
+
--hairline: var(--outline);
|
|
2056
|
+
--accent-ink: var(--text-reverse);
|
|
2057
|
+
--accent-soft: var(--accent-container);
|
|
2058
|
+
--ok: var(--pass);
|
|
2059
|
+
--warn: var(--caution);
|
|
2060
|
+
--live: var(--error);
|
|
2061
|
+
--team-a: var(--extend-red);
|
|
2062
|
+
--team-b: var(--extend-blue);
|
|
2063
|
+
--display: 500 32px/1.15 var(--font-display);
|
|
2064
|
+
--headline: 500 28px/1.20 var(--font-display);
|
|
2065
|
+
--title-large: 500 24px/1.32 var(--font-display);
|
|
2066
|
+
--title-small: 500 20px/1.20 var(--font-display);
|
|
2067
|
+
--body-large: 400 17px/1.65 var(--font-text);
|
|
2068
|
+
--body-medium: 400 15px/1.60 var(--font-text);
|
|
2069
|
+
--body-small: 400 14px/1.64 var(--font-text);
|
|
2070
|
+
--label-large: 500 14px/1.40 var(--font-text);
|
|
2071
|
+
--label-small: 500 12px/1.40 var(--font-text);
|
|
2072
|
+
--dek-style: normal;
|
|
2073
|
+
--overline-tracking: .08em;
|
|
2074
|
+
--meta-tracking: .02em;
|
|
2075
|
+
--title: var(--headline);
|
|
2076
|
+
--heading: var(--title-small);
|
|
2077
|
+
--dek: var(--body-large);
|
|
2078
|
+
--body: var(--body-medium);
|
|
2079
|
+
--caption: var(--label-small);
|
|
2080
|
+
--overline: var(--label-small);
|
|
2081
|
+
--meta: var(--label-small);
|
|
2082
|
+
--stat: var(--display);
|
|
2083
|
+
--btn: var(--label-large);
|
|
2084
|
+
--space-2xs: 4px;
|
|
2085
|
+
--space-xs: 8px;
|
|
2086
|
+
--space-sm: 12px;
|
|
2087
|
+
--space-md: 16px;
|
|
2088
|
+
--space-lg: 24px;
|
|
2089
|
+
--space-xl: 32px;
|
|
2090
|
+
--space-2xl: 48px;
|
|
2091
|
+
--block-gap: 32px;
|
|
2092
|
+
--size-control: 40px;
|
|
2093
|
+
--size-row: 48px;
|
|
2094
|
+
--size-avatar: 36px;
|
|
2095
|
+
--size-icon: 24px;
|
|
2096
|
+
--radius-control: 6px;
|
|
2097
|
+
--radius-surface: 4px;
|
|
2098
|
+
--radius-surface-lg: 12px;
|
|
2099
|
+
--radius-pill: 999px;
|
|
2100
|
+
--radius-card: var(--radius-surface-lg);
|
|
2101
|
+
--radius-media: var(--radius-surface);
|
|
2102
|
+
--radius-btn: var(--radius-control);
|
|
2103
|
+
--shadow-card: none;
|
|
2104
|
+
--control-active: var(--accent);
|
|
2105
|
+
--control-on-active: var(--text-reverse);
|
|
2106
|
+
--control-stroke: var(--text-variant);
|
|
2107
|
+
--control-tab-shadow: 0 1px 4px -1px rgba(0,0,0,.2);
|
|
2108
|
+
--control-corner: var(--radius-surface);
|
|
2109
|
+
--control-fill: var(--surface);
|
|
2110
|
+
--control-mark-radius: 6px;
|
|
2111
|
+
--control-track-height: 4px;
|
|
2112
|
+
--control-thumb-width: 18px;
|
|
2113
|
+
--control-thumb-height: 18px;
|
|
2114
|
+
--control-thumb-radius: 999px;
|
|
2115
|
+
--control-tab-surface: #ededed;
|
|
2116
|
+
--control-tab-active-surface: #ffffff;
|
|
2117
|
+
--control-tab-radius: 999px;
|
|
2118
|
+
--control-tab-indicator: transparent;
|
|
2119
|
+
--control-tab-track-padding: 2px;
|
|
2120
|
+
--control-tab-segment-radius: 999px;
|
|
2121
|
+
--control-tab-text: var(--text-variant);
|
|
2122
|
+
--control-tab-active-text: var(--text);
|
|
2123
|
+
--control-tab-weight: 600;
|
|
2124
|
+
--control-tab-active-weight: 600;
|
|
2125
|
+
--control-tab-padding-x: 16px;
|
|
2126
|
+
--control-tab-gap: 2px;
|
|
2127
|
+
--control-tab-grow: 0;
|
|
2128
|
+
--control-thumb-fill: var(--control-active);
|
|
2129
|
+
}
|
|
2130
|
+
|
|
2131
|
+
.a2ui-surface[data-pack="minimal"][data-mode="dark"] {
|
|
2132
|
+
--accent: #ffffff;
|
|
2133
|
+
--accent-container: rgba(255,255,255,.08);
|
|
2134
|
+
--background: #000000;
|
|
2135
|
+
--control-tab-active-surface: #303030;
|
|
2136
|
+
--control-tab-surface: #0d0d0d;
|
|
2137
|
+
--error: #e80d2f;
|
|
2138
|
+
--extend-blue: #36a6d7;
|
|
2139
|
+
--extend-red: #ed6079;
|
|
2140
|
+
--hover: rgba(255,255,255,.06);
|
|
2141
|
+
--outline: rgba(255,255,255,.12);
|
|
2142
|
+
--series-1: var(--accent);
|
|
2143
|
+
--series-2: #0285ff;
|
|
2144
|
+
--series-3: #924ff7;
|
|
2145
|
+
--series-4: #fb6a22;
|
|
2146
|
+
--surface: #1f1f1f;
|
|
2147
|
+
--surface-disabled: #1a1a1a;
|
|
2148
|
+
--surface-variant: #333333;
|
|
2149
|
+
--text: #ffffff;
|
|
2150
|
+
--text-disabled: rgba(255,255,255,.44);
|
|
2151
|
+
--text-reverse: #000000;
|
|
2152
|
+
--text-reverse-variant: rgba(0,0,0,.60);
|
|
2153
|
+
--text-variant: rgba(255,255,255,.60);
|
|
2154
|
+
}
|
|
2155
|
+
|
|
2156
|
+
@media (prefers-color-scheme: dark) {
|
|
2157
|
+
.a2ui-surface[data-pack="minimal"][data-mode="system"] {
|
|
2158
|
+
--accent: #ffffff;
|
|
2159
|
+
--accent-container: rgba(255,255,255,.08);
|
|
2160
|
+
--background: #000000;
|
|
2161
|
+
--control-tab-active-surface: #303030;
|
|
2162
|
+
--control-tab-surface: #0d0d0d;
|
|
2163
|
+
--error: #e80d2f;
|
|
2164
|
+
--extend-blue: #36a6d7;
|
|
2165
|
+
--extend-red: #ed6079;
|
|
2166
|
+
--hover: rgba(255,255,255,.06);
|
|
2167
|
+
--outline: rgba(255,255,255,.12);
|
|
2168
|
+
--series-1: var(--accent);
|
|
2169
|
+
--series-2: #0285ff;
|
|
2170
|
+
--series-3: #924ff7;
|
|
2171
|
+
--series-4: #fb6a22;
|
|
2172
|
+
--surface: #1f1f1f;
|
|
2173
|
+
--surface-disabled: #1a1a1a;
|
|
2174
|
+
--surface-variant: #333333;
|
|
2175
|
+
--text: #ffffff;
|
|
2176
|
+
--text-disabled: rgba(255,255,255,.44);
|
|
2177
|
+
--text-reverse: #000000;
|
|
2178
|
+
--text-reverse-variant: rgba(0,0,0,.60);
|
|
2179
|
+
--text-variant: rgba(255,255,255,.60);
|
|
2180
|
+
}
|
|
2181
|
+
}
|
|
2182
|
+
|
|
2183
|
+
/* ---- system — internal reference name; use a neutral public label (ADR 0004) ---- */
|
|
2184
|
+
.a2ui-surface[data-pack="system"] {
|
|
2185
|
+
--font-display: var(--sys-sans);
|
|
2186
|
+
--font-text: var(--sys-sans);
|
|
2187
|
+
--alignment: start;
|
|
2188
|
+
--background: #f2f2f7;
|
|
2189
|
+
--surface: #ffffff;
|
|
2190
|
+
--surface-variant: #e5e5ea;
|
|
2191
|
+
--surface-disabled: #e5e5ea;
|
|
2192
|
+
--text: #000000;
|
|
2193
|
+
--text-variant: #66666a;
|
|
2194
|
+
--text-disabled: rgba(60,60,67,.30);
|
|
2195
|
+
--text-reverse: #ffffff;
|
|
2196
|
+
--text-reverse-variant: rgba(235,235,245,.60);
|
|
2197
|
+
--hover: rgba(60,60,67,.08);
|
|
2198
|
+
--accent: #0063cf;
|
|
2199
|
+
--accent-container: rgba(0,122,255,.12);
|
|
2200
|
+
--outline: rgba(60,60,67,.29);
|
|
2201
|
+
--pass: #34c759;
|
|
2202
|
+
--caution: #ff9500;
|
|
2203
|
+
--error: #ff3b30;
|
|
2204
|
+
--extend-blue: #007aff;
|
|
2205
|
+
--extend-red: #ff3b30;
|
|
2206
|
+
--series-1: var(--accent);
|
|
2207
|
+
--series-2: #c55300;
|
|
2208
|
+
--series-3: #b02fc2;
|
|
2209
|
+
--series-4: #008932;
|
|
2210
|
+
--bg: var(--background);
|
|
2211
|
+
--surface-2: var(--surface-variant);
|
|
2212
|
+
--ink: var(--text);
|
|
2213
|
+
--ink-2: var(--text-variant);
|
|
2214
|
+
--muted: var(--text-variant);
|
|
2215
|
+
--hairline: var(--outline);
|
|
2216
|
+
--accent-ink: var(--text-reverse);
|
|
2217
|
+
--accent-soft: var(--accent-container);
|
|
2218
|
+
--ok: var(--pass);
|
|
2219
|
+
--warn: var(--caution);
|
|
2220
|
+
--live: var(--error);
|
|
2221
|
+
--team-a: var(--extend-red);
|
|
2222
|
+
--team-b: var(--extend-blue);
|
|
2223
|
+
--display: 400 34px/1.21 var(--font-display);
|
|
2224
|
+
--headline: 400 28px/1.21 var(--font-display);
|
|
2225
|
+
--title-large: 400 22px/1.27 var(--font-display);
|
|
2226
|
+
--title-small: 400 20px/1.25 var(--font-display);
|
|
2227
|
+
--body-large: 400 17px/1.29 var(--font-text);
|
|
2228
|
+
--body-medium: 400 16px/1.31 var(--font-text);
|
|
2229
|
+
--body-small: 400 15px/1.33 var(--font-text);
|
|
2230
|
+
--label-large: 600 17px/1.29 var(--font-text);
|
|
2231
|
+
--label-small: 400 12px/1.33 var(--font-text);
|
|
2232
|
+
--dek-style: normal;
|
|
2233
|
+
--overline-tracking: .06em;
|
|
2234
|
+
--meta-tracking: .02em;
|
|
2235
|
+
--title: var(--headline);
|
|
2236
|
+
--heading: var(--title-small);
|
|
2237
|
+
--dek: var(--body-large);
|
|
2238
|
+
--body: var(--body-medium);
|
|
2239
|
+
--caption: var(--label-small);
|
|
2240
|
+
--overline: var(--label-small);
|
|
2241
|
+
--meta: var(--label-small);
|
|
2242
|
+
--stat: var(--display);
|
|
2243
|
+
--btn: var(--label-large);
|
|
2244
|
+
--space-2xs: 4px;
|
|
2245
|
+
--space-xs: 8px;
|
|
2246
|
+
--space-sm: 12px;
|
|
2247
|
+
--space-md: 16px;
|
|
2248
|
+
--space-lg: 20px;
|
|
2249
|
+
--space-xl: 24px;
|
|
2250
|
+
--space-2xl: 32px;
|
|
2251
|
+
--block-gap: 28px;
|
|
2252
|
+
--size-control: 44px;
|
|
2253
|
+
--size-row: 44px;
|
|
2254
|
+
--size-avatar: 40px;
|
|
2255
|
+
--size-icon: 28px;
|
|
2256
|
+
--radius-control: 999px;
|
|
2257
|
+
--radius-surface: 8px;
|
|
2258
|
+
--radius-surface-lg: 26px;
|
|
2259
|
+
--radius-pill: 999px;
|
|
2260
|
+
--radius-card: var(--radius-surface-lg);
|
|
2261
|
+
--radius-media: var(--radius-surface);
|
|
2262
|
+
--radius-btn: var(--radius-control);
|
|
2263
|
+
--shadow-card: 0 2px 8px rgba(0,0,0,.05);
|
|
2264
|
+
--control-active: var(--accent);
|
|
2265
|
+
--control-on-active: var(--text-reverse);
|
|
2266
|
+
--control-stroke: var(--text-variant);
|
|
2267
|
+
--control-tab-shadow: 0 0 0 .5px rgba(0,0,0,.04), 0 3px 8px rgba(0,0,0,.12), 0 3px 1px rgba(0,0,0,.04);
|
|
2268
|
+
--control-corner: var(--radius-surface);
|
|
2269
|
+
--control-fill: var(--surface);
|
|
2270
|
+
--control-mark-radius: 5px;
|
|
2271
|
+
--control-track-height: 4px;
|
|
2272
|
+
--control-thumb-width: 24px;
|
|
2273
|
+
--control-thumb-height: 24px;
|
|
2274
|
+
--control-thumb-radius: 999px;
|
|
2275
|
+
--control-tab-surface: rgba(118,118,128,.12);
|
|
2276
|
+
--control-tab-active-surface: #ffffff;
|
|
2277
|
+
--control-tab-radius: 9px;
|
|
2278
|
+
--control-tab-indicator: transparent;
|
|
2279
|
+
--control-thumb-fill: #ffffff;
|
|
2280
|
+
--control-tab-grow: 1;
|
|
2281
|
+
--control-tab-track-padding: 2px;
|
|
2282
|
+
--control-tab-segment-radius: 7px;
|
|
2283
|
+
--control-tab-text: var(--text);
|
|
2284
|
+
--control-tab-active-text: var(--text);
|
|
2285
|
+
--control-tab-weight: 400;
|
|
2286
|
+
--control-tab-active-weight: 600;
|
|
2287
|
+
--control-tab-padding-x: 12px;
|
|
2288
|
+
--control-tab-gap: 0px;
|
|
2289
|
+
}
|
|
2290
|
+
|
|
2291
|
+
.a2ui-surface[data-pack="system"][data-mode="dark"] {
|
|
2292
|
+
--accent: #2b95ff;
|
|
2293
|
+
--accent-container: rgba(10,132,255,.18);
|
|
2294
|
+
--background: #000000;
|
|
2295
|
+
--caution: #ff9f0a;
|
|
2296
|
+
--control-tab-active-surface: #636366;
|
|
2297
|
+
--control-tab-shadow: 0 3px 8px rgba(0,0,0,.24);
|
|
2298
|
+
--control-tab-surface: rgba(118,118,128,.24);
|
|
2299
|
+
--error: #ff453a;
|
|
2300
|
+
--extend-blue: #0a84ff;
|
|
2301
|
+
--extend-red: #ff453a;
|
|
2302
|
+
--hover: rgba(235,235,245,.08);
|
|
2303
|
+
--outline: rgba(84,84,88,.60);
|
|
2304
|
+
--pass: #30d158;
|
|
2305
|
+
--series-1: var(--accent);
|
|
2306
|
+
--series-2: #ffa056;
|
|
2307
|
+
--series-3: #ea8dff;
|
|
2308
|
+
--series-4: #4ad968;
|
|
2309
|
+
--shadow-card: none;
|
|
2310
|
+
--surface: #1c1c1e;
|
|
2311
|
+
--surface-disabled: #3a3a3c;
|
|
2312
|
+
--surface-variant: #2c2c2e;
|
|
2313
|
+
--text: #ffffff;
|
|
2314
|
+
--text-disabled: rgba(235,235,245,.30);
|
|
2315
|
+
--text-reverse: #000000;
|
|
2316
|
+
--text-reverse-variant: rgba(60,60,67,.60);
|
|
2317
|
+
--text-variant: rgba(235,235,245,.60);
|
|
2318
|
+
}
|
|
2319
|
+
|
|
2320
|
+
@media (prefers-color-scheme: dark) {
|
|
2321
|
+
.a2ui-surface[data-pack="system"][data-mode="system"] {
|
|
2322
|
+
--accent: #2b95ff;
|
|
2323
|
+
--accent-container: rgba(10,132,255,.18);
|
|
2324
|
+
--background: #000000;
|
|
2325
|
+
--caution: #ff9f0a;
|
|
2326
|
+
--control-tab-active-surface: #636366;
|
|
2327
|
+
--control-tab-shadow: 0 3px 8px rgba(0,0,0,.24);
|
|
2328
|
+
--control-tab-surface: rgba(118,118,128,.24);
|
|
2329
|
+
--error: #ff453a;
|
|
2330
|
+
--extend-blue: #0a84ff;
|
|
2331
|
+
--extend-red: #ff453a;
|
|
2332
|
+
--hover: rgba(235,235,245,.08);
|
|
2333
|
+
--outline: rgba(84,84,88,.60);
|
|
2334
|
+
--pass: #30d158;
|
|
2335
|
+
--series-1: var(--accent);
|
|
2336
|
+
--series-2: #ffa056;
|
|
2337
|
+
--series-3: #ea8dff;
|
|
2338
|
+
--series-4: #4ad968;
|
|
2339
|
+
--shadow-card: none;
|
|
2340
|
+
--surface: #1c1c1e;
|
|
2341
|
+
--surface-disabled: #3a3a3c;
|
|
2342
|
+
--surface-variant: #2c2c2e;
|
|
2343
|
+
--text: #ffffff;
|
|
2344
|
+
--text-disabled: rgba(235,235,245,.30);
|
|
2345
|
+
--text-reverse: #000000;
|
|
2346
|
+
--text-reverse-variant: rgba(60,60,67,.60);
|
|
2347
|
+
--text-variant: rgba(235,235,245,.60);
|
|
2348
|
+
}
|
|
2349
|
+
}
|
|
2350
|
+
|
|
2351
|
+
/* ---- m3 — internal reference name; use a neutral public label (ADR 0004) ---- */
|
|
2352
|
+
.a2ui-surface[data-pack="m3"] {
|
|
2353
|
+
--font-display: 'Google Sans', var(--sys-sans);
|
|
2354
|
+
--font-text: 'Roboto', var(--sys-sans);
|
|
2355
|
+
--alignment: start;
|
|
2356
|
+
--background: #f3edf7;
|
|
2357
|
+
--surface: #fef7ff;
|
|
2358
|
+
--surface-variant: #e6e0e9;
|
|
2359
|
+
--surface-disabled: #ded8e1;
|
|
2360
|
+
--text: #1d1b20;
|
|
2361
|
+
--text-variant: #494549;
|
|
2362
|
+
--text-disabled: rgba(29,27,32,.38);
|
|
2363
|
+
--text-reverse: #e6e0e9;
|
|
2364
|
+
--text-reverse-variant: #cac4d0;
|
|
2365
|
+
--hover: rgba(29,27,32,.08);
|
|
2366
|
+
--accent: #6750a4;
|
|
2367
|
+
--accent-container: #eaddff;
|
|
2368
|
+
--outline: #cac4d0;
|
|
2369
|
+
--pass: #386a20;
|
|
2370
|
+
--caution: #825500;
|
|
2371
|
+
--error: #b3261e;
|
|
2372
|
+
--extend-blue: #0b57d0;
|
|
2373
|
+
--extend-red: #b3261e;
|
|
2374
|
+
--series-1: var(--accent);
|
|
2375
|
+
--series-2: #7d5260;
|
|
2376
|
+
--series-3: #6d5e00;
|
|
2377
|
+
--series-4: #00696e;
|
|
2378
|
+
--bg: var(--background);
|
|
2379
|
+
--surface-2: var(--surface-variant);
|
|
2380
|
+
--ink: var(--text);
|
|
2381
|
+
--ink-2: var(--text-variant);
|
|
2382
|
+
--muted: var(--text-variant);
|
|
2383
|
+
--hairline: var(--outline);
|
|
2384
|
+
--accent-ink: var(--text-reverse);
|
|
2385
|
+
--accent-soft: var(--accent-container);
|
|
2386
|
+
--ok: var(--pass);
|
|
2387
|
+
--warn: var(--caution);
|
|
2388
|
+
--live: var(--error);
|
|
2389
|
+
--team-a: var(--extend-red);
|
|
2390
|
+
--team-b: var(--extend-blue);
|
|
2391
|
+
--display: 400 36px/1.22 var(--font-display);
|
|
2392
|
+
--headline: 400 32px/1.25 var(--font-display);
|
|
2393
|
+
--title-large: 400 28px/1.29 var(--font-display);
|
|
2394
|
+
--title-small: 400 22px/1.27 var(--font-display);
|
|
2395
|
+
--body-large: 400 16px/1.50 var(--font-text);
|
|
2396
|
+
--body-medium: 400 14px/1.43 var(--font-text);
|
|
2397
|
+
--body-small: 400 12px/1.33 var(--font-text);
|
|
2398
|
+
--label-large: 500 14px/1.43 var(--font-text);
|
|
2399
|
+
--label-small: 500 11px/1.45 var(--font-text);
|
|
2400
|
+
--dek-style: normal;
|
|
2401
|
+
--overline-tracking: .1em;
|
|
2402
|
+
--meta-tracking: .04em;
|
|
2403
|
+
--title: var(--headline);
|
|
2404
|
+
--heading: var(--title-small);
|
|
2405
|
+
--dek: var(--body-large);
|
|
2406
|
+
--body: var(--body-medium);
|
|
2407
|
+
--caption: var(--label-small);
|
|
2408
|
+
--overline: var(--label-small);
|
|
2409
|
+
--meta: var(--label-small);
|
|
2410
|
+
--stat: var(--display);
|
|
2411
|
+
--btn: var(--label-large);
|
|
2412
|
+
--space-2xs: 4px;
|
|
2413
|
+
--space-xs: 8px;
|
|
2414
|
+
--space-sm: 12px;
|
|
2415
|
+
--space-md: 16px;
|
|
2416
|
+
--space-lg: 24px;
|
|
2417
|
+
--space-xl: 32px;
|
|
2418
|
+
--space-2xl: 48px;
|
|
2419
|
+
--block-gap: 24px;
|
|
2420
|
+
--size-control: 40px;
|
|
2421
|
+
--size-row: 56px;
|
|
2422
|
+
--size-avatar: 40px;
|
|
2423
|
+
--size-icon: 24px;
|
|
2424
|
+
--radius-control: 999px;
|
|
2425
|
+
--radius-surface: 8px;
|
|
2426
|
+
--radius-surface-lg: 16px;
|
|
2427
|
+
--radius-pill: 999px;
|
|
2428
|
+
--radius-card: var(--radius-surface-lg);
|
|
2429
|
+
--radius-media: var(--radius-surface);
|
|
2430
|
+
--radius-btn: var(--radius-control);
|
|
2431
|
+
--shadow-card: none;
|
|
2432
|
+
--control-active: var(--accent);
|
|
2433
|
+
--control-on-active: var(--text-reverse);
|
|
2434
|
+
--control-stroke: var(--text-variant);
|
|
2435
|
+
--control-tab-shadow: none;
|
|
2436
|
+
--control-corner: var(--radius-surface);
|
|
2437
|
+
--control-fill: var(--surface-variant);
|
|
2438
|
+
--control-mark-radius: 2px;
|
|
2439
|
+
--control-track-height: 10px;
|
|
2440
|
+
--control-thumb-width: 4px;
|
|
2441
|
+
--control-thumb-height: 32px;
|
|
2442
|
+
--control-thumb-radius: 2px;
|
|
2443
|
+
--control-tab-surface: transparent;
|
|
2444
|
+
--control-tab-active-surface: transparent;
|
|
2445
|
+
--control-tab-radius: 0px;
|
|
2446
|
+
--control-tab-indicator: var(--accent);
|
|
2447
|
+
--control-tab-track-padding: 0px;
|
|
2448
|
+
--control-tab-segment-radius: 0px;
|
|
2449
|
+
--control-tab-text: var(--text-variant);
|
|
2450
|
+
--control-tab-active-text: var(--text);
|
|
2451
|
+
--control-tab-weight: 500;
|
|
2452
|
+
--control-tab-active-weight: 500;
|
|
2453
|
+
--control-tab-padding-x: 16px;
|
|
2454
|
+
--control-tab-gap: 0px;
|
|
2455
|
+
--control-tab-grow: 1;
|
|
2456
|
+
--control-thumb-fill: var(--control-active);
|
|
2457
|
+
}
|
|
2458
|
+
|
|
2459
|
+
.a2ui-surface[data-pack="m3"][data-mode="dark"] {
|
|
2460
|
+
--accent: #d0bcff;
|
|
2461
|
+
--accent-container: #4f378b;
|
|
2462
|
+
--background: #212026;
|
|
2463
|
+
--error: #f2b8b5;
|
|
2464
|
+
--extend-blue: #a8c7fa;
|
|
2465
|
+
--extend-red: #f2b8b5;
|
|
2466
|
+
--hover: rgba(230,224,233,.08);
|
|
2467
|
+
--outline: #49454f;
|
|
2468
|
+
--series-1: var(--accent);
|
|
2469
|
+
--series-2: #efb8c8;
|
|
2470
|
+
--series-3: #dcc86a;
|
|
2471
|
+
--series-4: #4fd8e4;
|
|
2472
|
+
--surface: #3b383e;
|
|
2473
|
+
--surface-disabled: #141218;
|
|
2474
|
+
--surface-variant: #363438;
|
|
2475
|
+
--text: #e6e0e9;
|
|
2476
|
+
--text-disabled: rgba(230,224,233,.38);
|
|
2477
|
+
--text-reverse: #1d1b20;
|
|
2478
|
+
--text-reverse-variant: #494549;
|
|
2479
|
+
--text-variant: #cac4d0;
|
|
2480
|
+
}
|
|
2481
|
+
|
|
2482
|
+
@media (prefers-color-scheme: dark) {
|
|
2483
|
+
.a2ui-surface[data-pack="m3"][data-mode="system"] {
|
|
2484
|
+
--accent: #d0bcff;
|
|
2485
|
+
--accent-container: #4f378b;
|
|
2486
|
+
--background: #212026;
|
|
2487
|
+
--error: #f2b8b5;
|
|
2488
|
+
--extend-blue: #a8c7fa;
|
|
2489
|
+
--extend-red: #f2b8b5;
|
|
2490
|
+
--hover: rgba(230,224,233,.08);
|
|
2491
|
+
--outline: #49454f;
|
|
2492
|
+
--series-1: var(--accent);
|
|
2493
|
+
--series-2: #efb8c8;
|
|
2494
|
+
--series-3: #dcc86a;
|
|
2495
|
+
--series-4: #4fd8e4;
|
|
2496
|
+
--surface: #3b383e;
|
|
2497
|
+
--surface-disabled: #141218;
|
|
2498
|
+
--surface-variant: #363438;
|
|
2499
|
+
--text: #e6e0e9;
|
|
2500
|
+
--text-disabled: rgba(230,224,233,.38);
|
|
2501
|
+
--text-reverse: #1d1b20;
|
|
2502
|
+
--text-reverse-variant: #494549;
|
|
2503
|
+
--text-variant: #cac4d0;
|
|
2504
|
+
}
|
|
2505
|
+
}
|
|
2506
|
+
|
|
2507
|
+
/* ---- semantic-foundation-tokens.css ---- */
|
|
2508
|
+
/* Self-contained public renderer styles. Private Atlas packs override only
|
|
2509
|
+
these tokens; Foundation does not load fonts or assets from sibling modules. */
|
|
2510
|
+
|
|
2511
|
+
.a2ui-surface {
|
|
2512
|
+
--sys-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
2513
|
+
--sys-serif: Georgia, "Times New Roman", serif;
|
|
2514
|
+
--sys-mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
|
|
2515
|
+
--font-display: var(--sys-sans);
|
|
2516
|
+
--font-text: var(--sys-sans);
|
|
2517
|
+
--font-mono: var(--sys-mono);
|
|
2518
|
+
--background: #f4f4f5;
|
|
2519
|
+
--surface: #ffffff;
|
|
2520
|
+
--surface-variant: #e8e8ea;
|
|
2521
|
+
--surface-disabled: #dedee1;
|
|
2522
|
+
--text: #171717;
|
|
2523
|
+
--text-variant: #4a4a4f;
|
|
2524
|
+
--text-disabled: #76767d;
|
|
2525
|
+
--text-reverse: #ffffff;
|
|
2526
|
+
--hover: #eeeeef;
|
|
2527
|
+
--accent: #171717;
|
|
2528
|
+
--accent-container: #e7e7e8;
|
|
2529
|
+
--outline: #c9c9cd;
|
|
2530
|
+
--pass: #236b43;
|
|
2531
|
+
--caution: #8a4b08;
|
|
2532
|
+
--error: #b42318;
|
|
2533
|
+
--extend-blue: #245bb5;
|
|
2534
|
+
--extend-red: #b4234f;
|
|
2535
|
+
/* Ordered chart series colors. Series 1 follows the accent, so a single
|
|
2536
|
+
mapped series looks exactly like the single-series charts; every pack
|
|
2537
|
+
overrides the other three. */
|
|
2538
|
+
--series-1: var(--accent);
|
|
2539
|
+
--series-2: #0072f5;
|
|
2540
|
+
--series-3: #c88200;
|
|
2541
|
+
--series-4: #8e4ec6;
|
|
2542
|
+
--bg: var(--background);
|
|
2543
|
+
--surface-2: var(--surface-variant);
|
|
2544
|
+
--ink: var(--text);
|
|
2545
|
+
--ink-2: var(--text-variant);
|
|
2546
|
+
--muted: var(--text-variant);
|
|
2547
|
+
--hairline: var(--outline);
|
|
2548
|
+
--accent-ink: var(--text-reverse);
|
|
2549
|
+
--accent-soft: var(--accent-container);
|
|
2550
|
+
--ok: var(--pass);
|
|
2551
|
+
--warn: var(--caution);
|
|
2552
|
+
--live: var(--error);
|
|
2553
|
+
--team-a: var(--extend-red);
|
|
2554
|
+
--team-b: var(--extend-blue);
|
|
2555
|
+
--tone-info-fg: #174a91;
|
|
2556
|
+
--tone-info-bg: #eaf1fc;
|
|
2557
|
+
--tone-info-border: #9cb9e5;
|
|
2558
|
+
--tone-success-fg: #175b37;
|
|
2559
|
+
--tone-success-bg: #e9f5ee;
|
|
2560
|
+
--tone-success-border: #91c7a6;
|
|
2561
|
+
--tone-warning-fg: #754006;
|
|
2562
|
+
--tone-warning-bg: #fff3df;
|
|
2563
|
+
--tone-warning-border: #d8aa68;
|
|
2564
|
+
--tone-danger-fg: #8f1b13;
|
|
2565
|
+
--tone-danger-bg: #fff0ee;
|
|
2566
|
+
--tone-danger-border: #df9a94;
|
|
2567
|
+
--display: 600 32px/1.15 var(--font-display);
|
|
2568
|
+
--headline: 600 26px/1.2 var(--font-display);
|
|
2569
|
+
--title-large: 600 21px/1.28 var(--font-display);
|
|
2570
|
+
--title-small: 600 18px/1.32 var(--font-display);
|
|
2571
|
+
--body-large: 400 17px/1.5 var(--font-text);
|
|
2572
|
+
--body-medium: 400 15px/1.5 var(--font-text);
|
|
2573
|
+
--body-small: 400 13px/1.5 var(--font-text);
|
|
2574
|
+
--label-large: 600 14px/1.2 var(--font-text);
|
|
2575
|
+
--label-small: 500 12px/1.35 var(--font-text);
|
|
2576
|
+
--overline-tracking: 0;
|
|
2577
|
+
--meta-tracking: 0;
|
|
2578
|
+
--title: var(--headline);
|
|
2579
|
+
--heading: var(--title-small);
|
|
2580
|
+
--dek: var(--body-large);
|
|
2581
|
+
--body: var(--body-medium);
|
|
2582
|
+
--caption: var(--label-small);
|
|
2583
|
+
--overline: var(--label-small);
|
|
2584
|
+
--meta: var(--label-small);
|
|
2585
|
+
--stat: var(--display);
|
|
2586
|
+
--btn: var(--label-large);
|
|
2587
|
+
--radius-card: 8px;
|
|
2588
|
+
--radius-media: 8px;
|
|
2589
|
+
--radius-btn: 7px;
|
|
2590
|
+
--radius-pill: 999px;
|
|
2591
|
+
--shadow-card: none;
|
|
2592
|
+
}
|
|
2593
|
+
|
|
2594
|
+
.a2ui-surface[data-mode="dark"] {
|
|
2595
|
+
--background: #151515;
|
|
2596
|
+
--surface: #202020;
|
|
2597
|
+
--surface-variant: #2b2b2d;
|
|
2598
|
+
--surface-disabled: #303034;
|
|
2599
|
+
--text: #f4f4f5;
|
|
2600
|
+
--text-variant: #c5c5ca;
|
|
2601
|
+
--text-disabled: #929299;
|
|
2602
|
+
--text-reverse: #111111;
|
|
2603
|
+
--hover: #29292c;
|
|
2604
|
+
--accent: #f2f2f3;
|
|
2605
|
+
--accent-container: #343438;
|
|
2606
|
+
--outline: #4a4a50;
|
|
2607
|
+
}
|
|
2608
|
+
|
|
2609
|
+
@media (prefers-color-scheme: dark) {
|
|
2610
|
+
.a2ui-surface[data-mode="system"] {
|
|
2611
|
+
--background: #151515;
|
|
2612
|
+
--surface: #202020;
|
|
2613
|
+
--surface-variant: #2b2b2d;
|
|
2614
|
+
--text: #f4f4f5;
|
|
2615
|
+
--text-variant: #c5c5ca;
|
|
2616
|
+
--text-reverse: #111111;
|
|
2617
|
+
--accent: #f2f2f3;
|
|
2618
|
+
--accent-container: #343438;
|
|
2619
|
+
--outline: #4a4a50;
|
|
2620
|
+
}
|
|
2621
|
+
}
|
|
2622
|
+
|
|
2623
|
+
/* ---- semantic-primitives.css ---- */
|
|
2624
|
+
/* ------------------------------------------------------------ surface shell */
|
|
2625
|
+
|
|
2626
|
+
.a2ui-surface {
|
|
2627
|
+
background: var(--bg);
|
|
2628
|
+
color: var(--ink);
|
|
2629
|
+
font: var(--body);
|
|
2630
|
+
padding: 22px 20px 30px;
|
|
2631
|
+
}
|
|
2632
|
+
|
|
2633
|
+
.a2ui-surface *,
|
|
2634
|
+
.a2ui-surface *::before,
|
|
2635
|
+
.a2ui-surface *::after {
|
|
2636
|
+
box-sizing: border-box;
|
|
2637
|
+
}
|
|
2638
|
+
|
|
2639
|
+
.a2ui-surface button {
|
|
2640
|
+
font: inherit;
|
|
2641
|
+
color: inherit;
|
|
2642
|
+
background: none;
|
|
2643
|
+
border: 0;
|
|
2644
|
+
padding: 0;
|
|
2645
|
+
margin: 0;
|
|
2646
|
+
text-align: left;
|
|
2647
|
+
cursor: pointer;
|
|
2648
|
+
}
|
|
2649
|
+
|
|
2650
|
+
.a2ui-surface button:disabled {
|
|
2651
|
+
cursor: default;
|
|
2652
|
+
}
|
|
2653
|
+
|
|
2654
|
+
.a2ui-surface :is(button, a, input, select, textarea):focus-visible {
|
|
2655
|
+
outline: 3px solid var(--accent);
|
|
2656
|
+
outline-offset: 3px;
|
|
2657
|
+
}
|
|
2658
|
+
|
|
2659
|
+
.a2ui-surface p,
|
|
2660
|
+
.a2ui-surface h1,
|
|
2661
|
+
.a2ui-surface h2,
|
|
2662
|
+
.a2ui-surface h3,
|
|
2663
|
+
.a2ui-surface h4,
|
|
2664
|
+
.a2ui-surface h5,
|
|
2665
|
+
.a2ui-surface h6,
|
|
2666
|
+
.a2ui-surface figure,
|
|
2667
|
+
.a2ui-surface blockquote,
|
|
2668
|
+
.a2ui-surface dl,
|
|
2669
|
+
.a2ui-surface dd {
|
|
2670
|
+
margin: 0;
|
|
2671
|
+
}
|
|
2672
|
+
|
|
2673
|
+
.a2ui-surface ul {
|
|
2674
|
+
margin: 0;
|
|
2675
|
+
padding: 0;
|
|
2676
|
+
list-style: none;
|
|
2677
|
+
}
|
|
2678
|
+
|
|
2679
|
+
.a2ui-surface img {
|
|
2680
|
+
display: block;
|
|
2681
|
+
width: 100%;
|
|
2682
|
+
height: 100%;
|
|
2683
|
+
object-fit: cover;
|
|
2684
|
+
}
|
|
2685
|
+
|
|
2686
|
+
.a2ui-surface code {
|
|
2687
|
+
font: var(--meta);
|
|
2688
|
+
color: var(--ink-2);
|
|
2689
|
+
}
|
|
2690
|
+
|
|
2691
|
+
/* --------------------------------------------------------------- text roles */
|
|
2692
|
+
|
|
2693
|
+
.a2ui-surface .lp-display { font: var(--display); letter-spacing: 0; }
|
|
2694
|
+
.a2ui-surface .lp-title { font: var(--title); letter-spacing: 0; }
|
|
2695
|
+
.a2ui-surface .lp-heading { font: var(--heading); }
|
|
2696
|
+
.a2ui-surface .lp-dek { font: var(--dek); font-style: var(--dek-style, normal); color: var(--ink-2); }
|
|
2697
|
+
.a2ui-surface .lp-body { font: var(--body); color: var(--ink-2); }
|
|
2698
|
+
.a2ui-surface .lp-caption { font: var(--caption); color: var(--muted); }
|
|
2699
|
+
|
|
2700
|
+
.a2ui-surface .lp-kicker {
|
|
2701
|
+
font: var(--overline);
|
|
2702
|
+
letter-spacing: var(--overline-tracking);
|
|
2703
|
+
text-transform: uppercase;
|
|
2704
|
+
color: var(--accent);
|
|
2705
|
+
}
|
|
2706
|
+
|
|
2707
|
+
.a2ui-surface .lp-kicker.default { color: var(--muted); }
|
|
2708
|
+
|
|
2709
|
+
.a2ui-surface .lp-meta {
|
|
2710
|
+
font: var(--meta);
|
|
2711
|
+
letter-spacing: var(--meta-tracking);
|
|
2712
|
+
text-transform: uppercase;
|
|
2713
|
+
color: var(--muted);
|
|
2714
|
+
}
|
|
2715
|
+
|
|
2716
|
+
.a2ui-surface .lp-lede { font: var(--dek); color: var(--ink); }
|
|
2717
|
+
|
|
2718
|
+
.a2ui-surface .lp-dropcap::first-letter {
|
|
2719
|
+
font: 600 calc(34px * var(--lp-text-zoom, 1))/0.9 inherit;
|
|
2720
|
+
float: left;
|
|
2721
|
+
padding: 4px 7px 0 0;
|
|
2722
|
+
color: var(--accent);
|
|
2723
|
+
}
|
|
2724
|
+
|
|
2725
|
+
.a2ui-surface .lp-crosshead {
|
|
2726
|
+
display: flex;
|
|
2727
|
+
align-items: center;
|
|
2728
|
+
gap: 12px;
|
|
2729
|
+
font: var(--overline);
|
|
2730
|
+
letter-spacing: var(--overline-tracking);
|
|
2731
|
+
text-transform: uppercase;
|
|
2732
|
+
color: var(--ink);
|
|
2733
|
+
}
|
|
2734
|
+
|
|
2735
|
+
.a2ui-surface .lp-crosshead em { font-style: normal; color: var(--accent); }
|
|
2736
|
+
.a2ui-surface .lp-crosshead::after { content: ""; height: 1px; background: var(--hairline); flex: 1; }
|
|
2737
|
+
|
|
2738
|
+
/* ---------------------------------------------------------------- structure */
|
|
2739
|
+
|
|
2740
|
+
/* The stack's own gap is kept in a variable so the section rhythm below can measure
|
|
2741
|
+
the distance it still has to add. The resolved values are unchanged. */
|
|
2742
|
+
.a2ui-surface .lp-stack { --lp-stack-gap: 20px; display: grid; gap: var(--lp-stack-gap); }
|
|
2743
|
+
.a2ui-surface .lp-stack[data-rhythm="tight"] { --lp-stack-gap: 10px; }
|
|
2744
|
+
.a2ui-surface .lp-stack[data-rhythm="loose"] { --lp-stack-gap: 32px; }
|
|
2745
|
+
.a2ui-surface .lp-stack[data-axis] { display: flex; min-width: 0; }
|
|
2746
|
+
.a2ui-surface .lp-stack[data-axis="vertical"] { flex-direction: column; }
|
|
2747
|
+
.a2ui-surface .lp-stack[data-axis="horizontal"] { flex-direction: row; }
|
|
2748
|
+
.a2ui-surface .lp-stack[data-wrap="true"] { flex-wrap: wrap; }
|
|
2749
|
+
.a2ui-surface .lp-stack[data-gap="xs"] { --lp-stack-gap: 6px; }
|
|
2750
|
+
.a2ui-surface .lp-stack[data-gap="sm"] { --lp-stack-gap: 10px; }
|
|
2751
|
+
.a2ui-surface .lp-stack[data-gap="md"] { --lp-stack-gap: 16px; }
|
|
2752
|
+
.a2ui-surface .lp-stack[data-gap="lg"] { --lp-stack-gap: 24px; }
|
|
2753
|
+
.a2ui-surface .lp-stack[data-align="start"] { align-items: flex-start; }
|
|
2754
|
+
.a2ui-surface .lp-stack[data-align="center"] { align-items: center; }
|
|
2755
|
+
.a2ui-surface .lp-stack[data-align="end"] { align-items: flex-end; }
|
|
2756
|
+
.a2ui-surface .lp-stack[data-align="stretch"] { align-items: stretch; }
|
|
2757
|
+
.a2ui-surface .lp-stack[data-justify="start"] { justify-content: flex-start; }
|
|
2758
|
+
.a2ui-surface .lp-stack[data-justify="center"] { justify-content: center; }
|
|
2759
|
+
.a2ui-surface .lp-stack[data-justify="end"] { justify-content: flex-end; }
|
|
2760
|
+
.a2ui-surface .lp-stack[data-justify="between"] { justify-content: space-between; }
|
|
2761
|
+
.a2ui-surface .lp-stack[data-axis] > * { min-width: 0; }
|
|
2762
|
+
|
|
2763
|
+
/* Section rhythm.
|
|
2764
|
+
|
|
2765
|
+
A card that holds several data blocks used to read as one undifferentiated
|
|
2766
|
+
column, because the gap between a title and its body was the gap between two
|
|
2767
|
+
charts. So: inside a vertical stack at its default rhythm, a self-contained data
|
|
2768
|
+
block that is not the first child gets extra space above it. The blocks are the
|
|
2769
|
+
metric strip, every chart figure, the comparison table, the step flow and a list
|
|
2770
|
+
of result rows — the things that carry their own heading, frame or grid.
|
|
2771
|
+
|
|
2772
|
+
The space only ever goes above a block, never around it, so a caption written
|
|
2773
|
+
right after a chart still sits close to the chart it describes. Text after text
|
|
2774
|
+
(kicker, title, body, chips) keeps the stack's own gap, and so does anything
|
|
2775
|
+
that is not a data block.
|
|
2776
|
+
|
|
2777
|
+
`--block-gap` is the total distance between two blocks and each style pack sets
|
|
2778
|
+
its own, so the rhythm is true to the design language it comes from. What is
|
|
2779
|
+
added here is only the part the stack gap does not already cover.
|
|
2780
|
+
|
|
2781
|
+
Authoring wins: this applies to the default rhythm alone. A stack the author
|
|
2782
|
+
tightened or loosened (gap xs/sm/lg, rhythm tight/loose) keeps exactly what it
|
|
2783
|
+
asked for, so `loose` never doubles up into a huge gap. Horizontal rows, grid
|
|
2784
|
+
cells, card padding and Fixed Layout print pages are untouched, and a first
|
|
2785
|
+
child is never pushed down, so a block at the top of a card or a tab panel still
|
|
2786
|
+
lines up with its neighbours.
|
|
2787
|
+
|
|
2788
|
+
The eligible stack publishes its own gap as `--lp-block-base`, because a block
|
|
2789
|
+
that is itself a stack carries a `--lp-stack-gap` of its own and would otherwise
|
|
2790
|
+
subtract the wrong number. Setting `--lp-block-lead` on an ancestor switches the
|
|
2791
|
+
rhythm off for everything inside it. */
|
|
2792
|
+
.a2ui-surface .lp-stack:is([data-gap="md"], :not([data-gap])):not([data-axis="horizontal"]):not([data-rhythm="tight"]):not([data-rhythm="loose"]) {
|
|
2793
|
+
--lp-block-base: var(--lp-stack-gap);
|
|
2794
|
+
}
|
|
2795
|
+
|
|
2796
|
+
.a2ui-surface .lp-stack:is([data-gap="md"], :not([data-gap])):not([data-axis="horizontal"]):not([data-rhythm="tight"]):not([data-rhythm="loose"])
|
|
2797
|
+
> :is(.lp-metric-strip, .lp-chart-frame, .lp-comparison-table, .lp-step-flow, .lp-stack:has(> .lp-row)):not(:first-child) {
|
|
2798
|
+
margin-block-start: var(--lp-block-lead, calc(var(--block-gap, var(--space-lg)) - var(--lp-block-base)));
|
|
2799
|
+
}
|
|
2800
|
+
|
|
2801
|
+
/* Section headings sit further from the content above them than a data block does.
|
|
2802
|
+
Foundation puts the space above a heading that opens a new section and reads the
|
|
2803
|
+
total from `--lp-section-gap`; here it is the pack's `--block-gap` plus one
|
|
2804
|
+
`--space-xs` step (8px in every pack), so a new section always separates more
|
|
2805
|
+
strongly than a chart or table inside the section before it. */
|
|
2806
|
+
.a2ui-surface { --lp-section-gap: calc(var(--block-gap, var(--space-lg)) + var(--space-xs, 8px)); }
|
|
2807
|
+
|
|
2808
|
+
.a2ui-surface .lp-section { display: grid; gap: 10px; }
|
|
2809
|
+
|
|
2810
|
+
.a2ui-surface .lp-section-head {
|
|
2811
|
+
display: flex;
|
|
2812
|
+
align-items: center;
|
|
2813
|
+
justify-content: space-between;
|
|
2814
|
+
gap: 10px;
|
|
2815
|
+
}
|
|
2816
|
+
|
|
2817
|
+
.a2ui-surface .lp-rule {
|
|
2818
|
+
height: 1px;
|
|
2819
|
+
background: var(--hairline);
|
|
2820
|
+
border: 0;
|
|
2821
|
+
margin: 0;
|
|
2822
|
+
}
|
|
2823
|
+
|
|
2824
|
+
.a2ui-surface .lp-rule.strong { height: 2px; background: var(--ink); }
|
|
2825
|
+
.a2ui-surface[data-section-dividers="none"] .lp-rule { display: none; }
|
|
2826
|
+
.a2ui-surface[data-section-dividers="strong"] .lp-rule { height: 2px; background: var(--ink); }
|
|
2827
|
+
|
|
2828
|
+
.a2ui-surface .lp-card {
|
|
2829
|
+
background: var(--surface);
|
|
2830
|
+
border: 1px solid var(--hairline);
|
|
2831
|
+
border-radius: var(--radius-card);
|
|
2832
|
+
box-shadow: var(--shadow-card);
|
|
2833
|
+
padding: 14px;
|
|
2834
|
+
display: grid;
|
|
2835
|
+
gap: 8px;
|
|
2836
|
+
}
|
|
2837
|
+
|
|
2838
|
+
.a2ui-surface .lp-card.tonal { background: var(--surface-2); border-color: transparent; }
|
|
2839
|
+
.a2ui-surface .lp-container-card[data-padding="compact"] { padding: 12px; }
|
|
2840
|
+
.a2ui-surface .lp-container-card[data-padding="standard"] { padding: 16px; }
|
|
2841
|
+
.a2ui-surface .lp-container-card[data-padding="spacious"] { padding: 22px; }
|
|
2842
|
+
.a2ui-surface .lp-container-card.accent { border-top: 3px solid var(--accent); }
|
|
2843
|
+
|
|
2844
|
+
/* Foundation owns responsive grid sizing, including minItemWidth. */
|
|
2845
|
+
|
|
2846
|
+
.a2ui-surface .lp-row {
|
|
2847
|
+
display: flex;
|
|
2848
|
+
gap: 12px;
|
|
2849
|
+
align-items: center;
|
|
2850
|
+
padding: 10px 0;
|
|
2851
|
+
border-bottom: 1px solid var(--hairline);
|
|
2852
|
+
}
|
|
2853
|
+
|
|
2854
|
+
.a2ui-surface .lp-row:last-child { border-bottom: none; }
|
|
2855
|
+
|
|
2856
|
+
.a2ui-surface[data-item-dividers] .lp-row { position: relative; border-bottom: 0; }
|
|
2857
|
+
.a2ui-surface[data-item-dividers="full"] .lp-row:not(:last-child)::after,
|
|
2858
|
+
.a2ui-surface[data-item-dividers="inset"] .lp-row:not(:last-child)::after {
|
|
2859
|
+
content: "";
|
|
2860
|
+
position: absolute;
|
|
2861
|
+
right: 0;
|
|
2862
|
+
bottom: 0;
|
|
2863
|
+
height: 1px;
|
|
2864
|
+
background: var(--hairline);
|
|
2865
|
+
}
|
|
2866
|
+
.a2ui-surface[data-item-dividers="full"] .lp-row:not(:last-child)::after { left: 0; }
|
|
2867
|
+
.a2ui-surface[data-item-dividers="inset"] .lp-row:not(:last-child)::after { left: 0; }
|
|
2868
|
+
.a2ui-surface[data-item-dividers="inset"] .lp-row:has(> .lp-row-leading):not(:last-child)::after { left: 36px; }
|
|
2869
|
+
|
|
2870
|
+
.a2ui-surface .lp-row-main {
|
|
2871
|
+
flex: 1;
|
|
2872
|
+
display: grid;
|
|
2873
|
+
gap: 4px;
|
|
2874
|
+
}
|
|
2875
|
+
.a2ui-surface .lp-row-main.is-actionable {
|
|
2876
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
2877
|
+
align-items: center;
|
|
2878
|
+
gap: 12px;
|
|
2879
|
+
width: 100%;
|
|
2880
|
+
}
|
|
2881
|
+
.a2ui-surface .lp-row-copy { display: grid; gap: 4px; min-width: 0; }
|
|
2882
|
+
.a2ui-surface .lp-row-leading { flex: none; }
|
|
2883
|
+
|
|
2884
|
+
.a2ui-surface .lp-icon-slot {
|
|
2885
|
+
display: inline-flex;
|
|
2886
|
+
align-items: center;
|
|
2887
|
+
justify-content: center;
|
|
2888
|
+
flex: none;
|
|
2889
|
+
color: inherit;
|
|
2890
|
+
}
|
|
2891
|
+
.a2ui-surface .lp-icon-slot[data-size="sm"] { width: 16px; height: 16px; }
|
|
2892
|
+
.a2ui-surface .lp-icon-slot[data-size="md"] { width: 20px; height: 20px; }
|
|
2893
|
+
.a2ui-surface .lp-icon-slot[data-size="lg"] { width: 24px; height: 24px; }
|
|
2894
|
+
.a2ui-surface .lp-icon-slot svg { display: block; width: 100%; height: 100%; }
|
|
2895
|
+
.a2ui-surface .lp-icon-slot[data-tone="muted"] { color: var(--muted); }
|
|
2896
|
+
.a2ui-surface .lp-icon-slot[data-tone="accent"] { color: var(--accent); }
|
|
2897
|
+
.a2ui-surface .lp-icon-slot[data-tone="info"] { color: var(--tone-info-text); }
|
|
2898
|
+
.a2ui-surface .lp-icon-slot[data-tone="positive"] { color: var(--tone-success-text); }
|
|
2899
|
+
.a2ui-surface .lp-icon-slot[data-tone="warning"] { color: var(--tone-warning-text); }
|
|
2900
|
+
.a2ui-surface .lp-icon-slot[data-tone="danger"] { color: var(--tone-danger-text); }
|
|
2901
|
+
.a2ui-surface .lp-icon-slot.lp-icon-fallback {
|
|
2902
|
+
width: auto;
|
|
2903
|
+
height: auto;
|
|
2904
|
+
max-width: 100%;
|
|
2905
|
+
justify-content: flex-start;
|
|
2906
|
+
color: var(--muted);
|
|
2907
|
+
font: var(--caption);
|
|
2908
|
+
}
|
|
2909
|
+
.a2ui-surface .lp-meta-row { gap: 7px; }
|
|
2910
|
+
.a2ui-surface .lp-icon-label { display: flex; align-items: center; gap: 7px; min-width: 0; }
|
|
2911
|
+
|
|
2912
|
+
.a2ui-surface .lp-list { display: grid; gap: 8px; }
|
|
2913
|
+
.a2ui-surface .lp-list li { padding-left: 14px; position: relative; }
|
|
2914
|
+
.a2ui-surface .lp-list li::before {
|
|
2915
|
+
content: "";
|
|
2916
|
+
position: absolute;
|
|
2917
|
+
left: 0;
|
|
2918
|
+
top: 0.62em;
|
|
2919
|
+
width: 5px;
|
|
2920
|
+
height: 5px;
|
|
2921
|
+
border-radius: 50%;
|
|
2922
|
+
background: var(--accent);
|
|
2923
|
+
}
|
|
2924
|
+
|
|
2925
|
+
/* -------------------------------------------------------------------- media */
|
|
2926
|
+
|
|
2927
|
+
.a2ui-surface .lp-media {
|
|
2928
|
+
border-radius: var(--radius-media);
|
|
2929
|
+
overflow: hidden;
|
|
2930
|
+
display: flex;
|
|
2931
|
+
align-items: flex-end;
|
|
2932
|
+
position: relative;
|
|
2933
|
+
width: 100%;
|
|
2934
|
+
background: var(--surface-2);
|
|
2935
|
+
}
|
|
2936
|
+
|
|
2937
|
+
.a2ui-surface .lp-media-alt {
|
|
2938
|
+
padding: 10px 12px;
|
|
2939
|
+
color: #fff;
|
|
2940
|
+
mix-blend-mode: difference;
|
|
2941
|
+
}
|
|
2942
|
+
|
|
2943
|
+
.a2ui-surface .lp-figure { display: grid; gap: 8px; }
|
|
2944
|
+
.a2ui-surface .lp-figure figcaption { display: flex; gap: 8px; align-items: baseline; }
|
|
2945
|
+
|
|
2946
|
+
/* Media placeholder tints — content stand-ins, deliberately pack-independent. */
|
|
2947
|
+
.a2ui-surface .ph-a { background: linear-gradient(150deg, #b0402f, #5f1d14); }
|
|
2948
|
+
.a2ui-surface .ph-b { background: linear-gradient(160deg, #41586b, #131f2b); }
|
|
2949
|
+
.a2ui-surface .ph-c { background: linear-gradient(150deg, #cdb88a, #8a6f3c); }
|
|
2950
|
+
.a2ui-surface .ph-d { background: linear-gradient(160deg, #ffb84d, #ff6f4d); }
|
|
2951
|
+
.a2ui-surface .ph-e { background: linear-gradient(165deg, #6b5bd6, #2d2470); }
|
|
2952
|
+
.a2ui-surface .ph-f { background: linear-gradient(170deg, #1c1a5e, #0b0a24); }
|
|
2953
|
+
|
|
2954
|
+
/* ------------------------------------------------------------------ actions */
|
|
2955
|
+
|
|
2956
|
+
.a2ui-surface .lp-action-row { display: flex; gap: 8px; flex-wrap: wrap; }
|
|
2957
|
+
|
|
2958
|
+
.a2ui-surface .lp-btn {
|
|
2959
|
+
display: inline-flex;
|
|
2960
|
+
align-items: center;
|
|
2961
|
+
justify-content: center;
|
|
2962
|
+
gap: 7px;
|
|
2963
|
+
font: var(--btn);
|
|
2964
|
+
padding: 11px 17px;
|
|
2965
|
+
border-radius: var(--radius-btn);
|
|
2966
|
+
background: var(--ink);
|
|
2967
|
+
color: var(--bg);
|
|
2968
|
+
text-align: center;
|
|
2969
|
+
}
|
|
2970
|
+
|
|
2971
|
+
.a2ui-surface .lp-btn.accent { background: var(--accent); color: var(--accent-ink); }
|
|
2972
|
+
.a2ui-surface .lp-btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--hairline); padding: 10px 16px; }
|
|
2973
|
+
/* Destructive actions are outlined, never filled: risk is carried by order and chips, not by a red block. */
|
|
2974
|
+
.a2ui-surface .lp-btn.danger { background: transparent; color: var(--tone-danger-text); border: 1px solid var(--tone-danger-border); padding: 10px 16px; }
|
|
2975
|
+
.a2ui-surface .lp-btn.danger:hover { background: var(--tone-danger-hover-bg); }
|
|
2976
|
+
.a2ui-surface .lp-btn.block { display: block; width: 100%; }
|
|
2977
|
+
.a2ui-surface .lp-btn:disabled { opacity: 0.55; }
|
|
2978
|
+
|
|
2979
|
+
.a2ui-surface .lp-pill {
|
|
2980
|
+
display: inline-flex;
|
|
2981
|
+
align-items: center;
|
|
2982
|
+
gap: 5px;
|
|
2983
|
+
font: var(--meta);
|
|
2984
|
+
letter-spacing: var(--meta-tracking);
|
|
2985
|
+
border: 1px solid var(--hairline);
|
|
2986
|
+
color: var(--ink-2);
|
|
2987
|
+
padding: 5px 9px;
|
|
2988
|
+
}
|
|
2989
|
+
|
|
2990
|
+
.a2ui-surface .lp-pill.accent { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
|
|
2991
|
+
.a2ui-surface .lp-chip { letter-spacing: 0; }
|
|
2992
|
+
.a2ui-surface .lp-chip.info { color: var(--tone-info-fg); border-color: var(--tone-info-border); background: var(--tone-info-bg); }
|
|
2993
|
+
.a2ui-surface .lp-chip.positive { color: var(--tone-success-fg); border-color: var(--tone-success-border); background: var(--tone-success-bg); }
|
|
2994
|
+
.a2ui-surface .lp-chip.warning { color: var(--tone-warning-fg); border-color: var(--tone-warning-border); background: var(--tone-warning-bg); }
|
|
2995
|
+
.a2ui-surface .lp-chip.danger { color: var(--tone-danger-fg); border-color: var(--tone-danger-border); background: var(--tone-danger-bg); }
|
|
2996
|
+
|
|
2997
|
+
/* ---- semantic-widget-shell.css ---- */
|
|
2998
|
+
/* Chat-like surfaces are host-sized tools, not paper pages. */
|
|
2999
|
+
.a2ui-surface[data-surface-type="chat_widget"] {
|
|
3000
|
+
container-type: inline-size;
|
|
3001
|
+
width: 100%;
|
|
3002
|
+
max-width: 100%;
|
|
3003
|
+
padding: 0;
|
|
3004
|
+
background: transparent;
|
|
3005
|
+
letter-spacing: 0;
|
|
3006
|
+
}
|
|
3007
|
+
.a2ui-surface[data-surface-type="chat_widget"][data-frame="card"] {
|
|
3008
|
+
padding: 22px 24px;
|
|
3009
|
+
background: var(--surface);
|
|
3010
|
+
border: 1px solid var(--hairline);
|
|
3011
|
+
border-radius: 8px;
|
|
3012
|
+
box-shadow: 0 14px 34px color-mix(in srgb, var(--ink) 7%, transparent);
|
|
3013
|
+
}
|
|
3014
|
+
.a2ui-surface[data-surface-type="chat_widget"][data-frame="none"] {
|
|
3015
|
+
padding: 0;
|
|
3016
|
+
background: transparent;
|
|
3017
|
+
border: 0;
|
|
3018
|
+
border-radius: 0;
|
|
3019
|
+
box-shadow: none;
|
|
3020
|
+
}
|
|
3021
|
+
.a2ui-surface[data-surface-type="chat_widget"] .lp-container-card {
|
|
3022
|
+
border-radius: 8px;
|
|
3023
|
+
box-shadow: none;
|
|
3024
|
+
align-content: start;
|
|
3025
|
+
}
|
|
3026
|
+
/* Paragraph cards need a readable measure. Compact grids keep their authored minimum.
|
|
3027
|
+
Card content may sit inside an author stack, so look for the body anywhere below the card.
|
|
3028
|
+
A grid with spanning cells keeps its minimum: the span limits are computed from it. */
|
|
3029
|
+
.a2ui-surface[data-surface-type="chat_widget"] .lp-grid:not([data-min-item-width="compact"]):not([data-spans]):has(> .lp-container-card .lp-body) {
|
|
3030
|
+
--lp-grid-min: 240px;
|
|
3031
|
+
}
|
|
3032
|
+
.a2ui-surface[data-surface-type="chat_widget"] :is(.lp-display, .lp-title, .lp-heading, .lp-meta, .lp-kicker) {
|
|
3033
|
+
letter-spacing: 0;
|
|
3034
|
+
}
|
|
3035
|
+
.a2ui-surface[data-surface-type="chat_widget"] .lp-display {
|
|
3036
|
+
font-size: calc(24px * var(--lp-text-zoom, 1));
|
|
3037
|
+
line-height: 1.3;
|
|
3038
|
+
}
|
|
3039
|
+
.a2ui-surface[data-surface-type="chat_widget"] .lp-title {
|
|
3040
|
+
font-size: calc(21px * var(--lp-text-zoom, 1));
|
|
3041
|
+
line-height: 1.22;
|
|
3042
|
+
}
|
|
3043
|
+
.a2ui-surface[data-surface-type="chat_widget"] .lp-body {
|
|
3044
|
+
line-height: 1.6;
|
|
3045
|
+
}
|
|
3046
|
+
.a2ui-surface[data-surface-type="chat_widget"] :is(.lp-meta, .lp-caption) {
|
|
3047
|
+
font-size: calc(13px * var(--lp-text-zoom, 1));
|
|
3048
|
+
line-height: 1.5;
|
|
3049
|
+
}
|
|
3050
|
+
.a2ui-surface[data-surface-type="chat_widget"] .lp-btn {
|
|
3051
|
+
min-height: var(--lp-min-touch, 44px);
|
|
3052
|
+
display: inline-flex;
|
|
3053
|
+
align-items: center;
|
|
3054
|
+
justify-content: center;
|
|
3055
|
+
border-radius: 7px;
|
|
3056
|
+
}
|
|
3057
|
+
.a2ui-surface[data-surface-type="chat_widget"] .lp-action-row {
|
|
3058
|
+
justify-content: flex-end;
|
|
3059
|
+
}
|
|
3060
|
+
.a2ui-surface[data-surface-type="chat_widget"] .lp-row {
|
|
3061
|
+
min-height: 52px;
|
|
3062
|
+
}
|
|
3063
|
+
|
|
3064
|
+
@container (max-width: 340px) {
|
|
3065
|
+
.a2ui-surface[data-surface-type="chat_widget"][data-frame="card"] { padding: 17px 16px; }
|
|
3066
|
+
.a2ui-surface[data-surface-type="chat_widget"] .lp-container-card[data-padding="spacious"] { padding: 16px; }
|
|
3067
|
+
.a2ui-surface[data-surface-type="chat_widget"] .lp-action-row { justify-content: stretch; }
|
|
3068
|
+
.a2ui-surface[data-surface-type="chat_widget"] .lp-action-row .lp-btn { width: 100%; }
|
|
3069
|
+
}
|
|
3070
|
+
|
|
3071
|
+
.a2ui-surface .lp-audio-pill {
|
|
3072
|
+
display: inline-flex;
|
|
3073
|
+
align-items: center;
|
|
3074
|
+
gap: 6px;
|
|
3075
|
+
border: 1px solid var(--hairline);
|
|
3076
|
+
border-radius: var(--radius-pill);
|
|
3077
|
+
padding: 5px 10px;
|
|
3078
|
+
font: var(--meta);
|
|
3079
|
+
color: var(--ink);
|
|
3080
|
+
}
|
|
3081
|
+
|
|
3082
|
+
.a2ui-surface .lp-audio-pill i {
|
|
3083
|
+
width: 14px;
|
|
3084
|
+
height: 14px;
|
|
3085
|
+
border-radius: 50%;
|
|
3086
|
+
background: var(--accent);
|
|
3087
|
+
color: var(--accent-ink);
|
|
3088
|
+
font: 700 7px/14px var(--sys-sans);
|
|
3089
|
+
text-align: center;
|
|
3090
|
+
font-style: normal;
|
|
3091
|
+
}
|
|
3092
|
+
|
|
3093
|
+
.a2ui-surface .lp-input {
|
|
3094
|
+
display: flex;
|
|
3095
|
+
gap: 8px;
|
|
3096
|
+
align-items: center;
|
|
3097
|
+
border: 1px solid var(--hairline);
|
|
3098
|
+
border-radius: var(--radius-pill);
|
|
3099
|
+
padding: 10px 14px;
|
|
3100
|
+
color: var(--muted);
|
|
3101
|
+
font: var(--body);
|
|
3102
|
+
background: var(--surface);
|
|
3103
|
+
}
|
|
3104
|
+
|
|
3105
|
+
.a2ui-surface .lp-field {
|
|
3106
|
+
display: grid;
|
|
3107
|
+
gap: 6px;
|
|
3108
|
+
min-width: 0;
|
|
3109
|
+
}
|
|
3110
|
+
|
|
3111
|
+
.a2ui-surface .lp-field-label {
|
|
3112
|
+
display: flex;
|
|
3113
|
+
align-items: baseline;
|
|
3114
|
+
gap: 3px;
|
|
3115
|
+
color: var(--ink);
|
|
3116
|
+
font: var(--body);
|
|
3117
|
+
font-size: calc(14px * var(--lp-text-zoom, 1));
|
|
3118
|
+
font-weight: 650;
|
|
3119
|
+
letter-spacing: 0;
|
|
3120
|
+
}
|
|
3121
|
+
|
|
3122
|
+
.a2ui-surface .lp-field-label span { color: var(--tone-danger-text); font: inherit; }
|
|
3123
|
+
|
|
3124
|
+
.a2ui-surface .lp-field-shell {
|
|
3125
|
+
display: flex;
|
|
3126
|
+
align-items: center;
|
|
3127
|
+
gap: 9px;
|
|
3128
|
+
min-height: var(--lp-min-touch, 44px);
|
|
3129
|
+
padding: 0 12px;
|
|
3130
|
+
border: 1px solid var(--hairline);
|
|
3131
|
+
border-radius: 7px;
|
|
3132
|
+
background: var(--surface);
|
|
3133
|
+
color: var(--muted);
|
|
3134
|
+
}
|
|
3135
|
+
|
|
3136
|
+
.a2ui-surface .lp-field-shell:focus-within {
|
|
3137
|
+
border-color: var(--accent);
|
|
3138
|
+
box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 12%, transparent);
|
|
3139
|
+
}
|
|
3140
|
+
|
|
3141
|
+
.a2ui-surface .lp-field-shell > input {
|
|
3142
|
+
width: 100%;
|
|
3143
|
+
min-width: 0;
|
|
3144
|
+
min-height: 42px;
|
|
3145
|
+
border: 0;
|
|
3146
|
+
outline: 0;
|
|
3147
|
+
padding: 0;
|
|
3148
|
+
background: transparent;
|
|
3149
|
+
color: var(--ink);
|
|
3150
|
+
font: var(--body);
|
|
3151
|
+
letter-spacing: 0;
|
|
3152
|
+
}
|
|
3153
|
+
|
|
3154
|
+
.a2ui-surface .lp-field input::placeholder { color: var(--muted); }
|
|
3155
|
+
.a2ui-surface .lp-field[data-invalid="true"] .lp-field-shell { border-color: var(--tone-danger-border); }
|
|
3156
|
+
.a2ui-surface .lp-field-error { color: var(--tone-danger-text); font: var(--caption); }
|
|
3157
|
+
|
|
3158
|
+
.a2ui-surface .lp-progress { display: flex; gap: 5px; width: 100%; }
|
|
3159
|
+
.a2ui-surface .lp-progress span { flex: 1; height: 4px; border-radius: 2px; background: var(--hairline); }
|
|
3160
|
+
.a2ui-surface .lp-progress span.on { background: var(--accent); }
|
|
3161
|
+
|
|
3162
|
+
.a2ui-surface .lp-avatar {
|
|
3163
|
+
width: 40px;
|
|
3164
|
+
height: 40px;
|
|
3165
|
+
flex: none;
|
|
3166
|
+
border-radius: 50%;
|
|
3167
|
+
object-fit: cover;
|
|
3168
|
+
}
|
|
3169
|
+
|
|
3170
|
+
.a2ui-surface .lp-avatar-fallback {
|
|
3171
|
+
display: inline-flex;
|
|
3172
|
+
align-items: center;
|
|
3173
|
+
justify-content: center;
|
|
3174
|
+
background: var(--surface-2);
|
|
3175
|
+
color: var(--ink);
|
|
3176
|
+
font: var(--heading);
|
|
3177
|
+
}
|
|
3178
|
+
|
|
3179
|
+
.a2ui-surface .lp-chart-elements,
|
|
3180
|
+
.a2ui-surface .lp-async,
|
|
3181
|
+
.a2ui-surface .lp-ad {
|
|
3182
|
+
display: grid;
|
|
3183
|
+
gap: 10px;
|
|
3184
|
+
}
|
|
3185
|
+
|
|
3186
|
+
.a2ui-surface .lp-media-fallback {
|
|
3187
|
+
align-items: center;
|
|
3188
|
+
justify-content: center;
|
|
3189
|
+
padding: 16px;
|
|
3190
|
+
}
|
|
3191
|
+
|
|
3192
|
+
.a2ui-surface .a2ui-layout-page-flow,
|
|
3193
|
+
.a2ui-surface .a2ui-layout-grid,
|
|
3194
|
+
.a2ui-surface .a2ui-layout-slot {
|
|
3195
|
+
min-width: 0;
|
|
3196
|
+
}
|
|
3197
|
+
|
|
3198
|
+
.a2ui-surface .a2ui-layout-page-flow,
|
|
3199
|
+
.a2ui-surface .a2ui-layout-slot {
|
|
3200
|
+
display: grid;
|
|
3201
|
+
gap: 16px;
|
|
3202
|
+
}
|
|
3203
|
+
|
|
3204
|
+
.a2ui-surface .a2ui-print-page {
|
|
3205
|
+
position: relative;
|
|
3206
|
+
max-width: 100%;
|
|
3207
|
+
overflow: hidden;
|
|
3208
|
+
background: var(--bg);
|
|
3209
|
+
}
|
|
3210
|
+
|
|
3211
|
+
.a2ui-surface .a2ui-print-text-area,
|
|
3212
|
+
.a2ui-surface .a2ui-print-slot {
|
|
3213
|
+
position: absolute;
|
|
3214
|
+
min-width: 0;
|
|
3215
|
+
min-height: 0;
|
|
3216
|
+
overflow: hidden;
|
|
3217
|
+
}
|
|
3218
|
+
|
|
3219
|
+
/* Filled fields follow the theme's controls.fields; the values come from its control colours and sizes. */
|
|
3220
|
+
.a2ui-surface[data-fields="filled"] .lp-field-shell {
|
|
3221
|
+
min-height: var(--size-control);
|
|
3222
|
+
border-radius: var(--control-corner);
|
|
3223
|
+
background: var(--control-fill);
|
|
3224
|
+
}
|
|
3225
|
+
.a2ui-surface[data-fields="filled"] .lp-field-shell > :is(input, select, textarea) {
|
|
3226
|
+
min-height: calc(var(--size-control) - 2px);
|
|
3227
|
+
font-family: var(--font-display);
|
|
3228
|
+
}
|
|
3229
|
+
.a2ui-surface[data-fields="filled"] .lp-check-option {
|
|
3230
|
+
min-height: var(--size-control);
|
|
3231
|
+
font-family: var(--font-display);
|
|
3232
|
+
}
|
|
3233
|
+
.a2ui-surface[data-fields="filled"] .lp-check-option input {
|
|
3234
|
+
appearance: none;
|
|
3235
|
+
position: relative;
|
|
3236
|
+
border: 1px solid var(--control-stroke);
|
|
3237
|
+
border-radius: var(--control-mark-radius);
|
|
3238
|
+
background: var(--surface);
|
|
3239
|
+
}
|
|
3240
|
+
.a2ui-surface[data-fields="filled"] .lp-check-option input:checked {
|
|
3241
|
+
border-color: var(--control-active);
|
|
3242
|
+
background: var(--control-active);
|
|
3243
|
+
}
|
|
3244
|
+
.a2ui-surface[data-fields="filled"] .lp-check-option input[type="checkbox"]:checked::after {
|
|
3245
|
+
content: "";
|
|
3246
|
+
position: absolute;
|
|
3247
|
+
inset: 3px 6px 5px;
|
|
3248
|
+
border: solid var(--control-on-active);
|
|
3249
|
+
border-width: 0 2px 2px 0;
|
|
3250
|
+
transform: rotate(45deg);
|
|
3251
|
+
}
|
|
3252
|
+
.a2ui-surface[data-fields="filled"] .lp-check-option input[type="radio"] { border-radius: 50%; }
|
|
3253
|
+
.a2ui-surface[data-fields="filled"] .lp-check-option input[type="radio"]:checked { box-shadow: inset 0 0 0 4px var(--surface); }
|
|
3254
|
+
.a2ui-surface[data-fields="filled"] .lp-slider { appearance: none; height: var(--size-control); border-radius: var(--control-corner); }
|
|
3255
|
+
.a2ui-surface[data-fields="filled"] .lp-slider::-webkit-slider-runnable-track { height: var(--control-track-height); border-radius: 99px; background: linear-gradient(to right, var(--control-active) var(--lp-range-progress, 0%), var(--outline) var(--lp-range-progress, 0%)); }
|
|
3256
|
+
.a2ui-surface[data-fields="filled"] .lp-slider::-webkit-slider-thumb {
|
|
3257
|
+
appearance: none;
|
|
3258
|
+
width: var(--control-thumb-width);
|
|
3259
|
+
height: var(--control-thumb-height);
|
|
3260
|
+
margin-top: calc((var(--control-track-height) - var(--control-thumb-height)) / 2);
|
|
3261
|
+
border: 0;
|
|
3262
|
+
border-radius: var(--control-thumb-radius);
|
|
3263
|
+
background: var(--control-thumb-fill);
|
|
3264
|
+
box-shadow: var(--control-tab-shadow);
|
|
3265
|
+
}
|
|
3266
|
+
.a2ui-surface[data-fields="filled"] .lp-slider::-moz-range-track { height: var(--control-track-height); border-radius: 99px; background: linear-gradient(to right, var(--control-active) var(--lp-range-progress, 0%), var(--outline) var(--lp-range-progress, 0%)); }
|
|
3267
|
+
.a2ui-surface[data-fields="filled"] .lp-slider::-moz-range-thumb { width: var(--control-thumb-width); height: var(--control-thumb-height); border: 0; border-radius: var(--control-thumb-radius); background: var(--control-thumb-fill); box-shadow: var(--control-tab-shadow); }
|
|
3268
|
+
.a2ui-surface .lp-check-option input:disabled, .a2ui-surface .lp-slider:disabled { opacity: .5; cursor: not-allowed; }
|
|
3269
|
+
.a2ui-surface[data-fields="filled"] .lp-field-label { font: var(--label-medium); font-family: var(--font-display); }
|
|
3270
|
+
.a2ui-surface .lp-field-shell > :is(input, select, textarea):focus-visible { outline: 0; box-shadow: none; }
|
|
3271
|
+
|
|
3272
|
+
/* Tabs follow the theme's controls.tabs (docs/architecture/host-appearance.md §4). Segmented draws a track
|
|
3273
|
+
with one raised segment (Editorial, Minimal and System); underline with tabsFullWidth draws Material 3
|
|
3274
|
+
secondary tabs (Tonal); underline without it keeps the default tabs (Neutral). The track stays 44px tall. */
|
|
3275
|
+
.a2ui-surface[data-tabs="segmented"] .lp-tab-list {
|
|
3276
|
+
display: flex;
|
|
3277
|
+
width: max-content;
|
|
3278
|
+
max-width: 100%;
|
|
3279
|
+
gap: var(--control-tab-gap);
|
|
3280
|
+
padding: var(--control-tab-track-padding);
|
|
3281
|
+
border-radius: var(--control-tab-radius);
|
|
3282
|
+
background: var(--control-tab-surface);
|
|
3283
|
+
box-shadow: none;
|
|
3284
|
+
}
|
|
3285
|
+
.a2ui-surface[data-tabs="segmented"][data-tabs-full="true"] .lp-tab-list { width: 100%; }
|
|
3286
|
+
.a2ui-surface[data-tabs="segmented"] .lp-tab {
|
|
3287
|
+
flex: var(--control-tab-grow) 0 auto;
|
|
3288
|
+
min-height: calc(44px - 2 * var(--control-tab-track-padding));
|
|
3289
|
+
padding: 0 var(--control-tab-padding-x);
|
|
3290
|
+
border-radius: var(--control-tab-segment-radius);
|
|
3291
|
+
color: var(--control-tab-text);
|
|
3292
|
+
font: 400 calc(14px * var(--lp-text-zoom, 1))/calc(20px * var(--lp-text-zoom, 1)) var(--font-display);
|
|
3293
|
+
font-weight: var(--control-tab-weight);
|
|
3294
|
+
text-align: center;
|
|
3295
|
+
}
|
|
3296
|
+
.a2ui-surface[data-tabs="segmented"] .lp-tab[aria-selected="true"] {
|
|
3297
|
+
background: var(--control-tab-active-surface);
|
|
3298
|
+
box-shadow: var(--control-tab-shadow);
|
|
3299
|
+
color: var(--control-tab-active-text);
|
|
3300
|
+
font-weight: var(--control-tab-active-weight);
|
|
3301
|
+
}
|
|
3302
|
+
.a2ui-surface[data-tabs="underline"][data-tabs-full="true"] .lp-tab-list { gap: 0; box-shadow: inset 0 -1px 0 var(--outline); }
|
|
3303
|
+
.a2ui-surface[data-tabs="underline"][data-tabs-full="true"] .lp-tab {
|
|
3304
|
+
flex: 1 0 auto;
|
|
3305
|
+
padding: 0 var(--control-tab-padding-x);
|
|
3306
|
+
color: var(--control-tab-text);
|
|
3307
|
+
font: 500 calc(14px * var(--lp-text-zoom, 1))/calc(20px * var(--lp-text-zoom, 1)) var(--font-display);
|
|
3308
|
+
letter-spacing: .1px;
|
|
3309
|
+
text-align: center;
|
|
3310
|
+
}
|
|
3311
|
+
.a2ui-surface[data-tabs="underline"][data-tabs-full="true"] .lp-tab[aria-selected="true"] { color: var(--control-tab-active-text); box-shadow: inset 0 -2px 0 var(--control-tab-indicator); }
|
|
3312
|
+
|
|
3313
|
+
/* ---- semantic-content.css ---- */
|
|
3314
|
+
/* -------------------------------------------------------------------- hero */
|
|
3315
|
+
|
|
3316
|
+
.a2ui-surface .lp-hero { display: grid; gap: 12px; }
|
|
3317
|
+
|
|
3318
|
+
.a2ui-surface .lp-hero-masthead { text-align: center; justify-items: center; }
|
|
3319
|
+
|
|
3320
|
+
.a2ui-surface .lp-hero-masthead .lp-dek { max-width: 34em; }
|
|
3321
|
+
|
|
3322
|
+
.a2ui-surface .lp-hero-rules {
|
|
3323
|
+
width: 100%;
|
|
3324
|
+
height: 5px;
|
|
3325
|
+
border-top: 1px solid var(--ink);
|
|
3326
|
+
border-bottom: 1px solid var(--ink);
|
|
3327
|
+
}
|
|
3328
|
+
|
|
3329
|
+
.a2ui-surface .lp-hero-byline {
|
|
3330
|
+
display: flex;
|
|
3331
|
+
justify-content: center;
|
|
3332
|
+
align-items: center;
|
|
3333
|
+
gap: 12px;
|
|
3334
|
+
flex-wrap: wrap;
|
|
3335
|
+
}
|
|
3336
|
+
|
|
3337
|
+
.a2ui-surface .lp-hero-media { margin-top: 6px; }
|
|
3338
|
+
|
|
3339
|
+
.a2ui-surface .lp-hero-campaign.has-media { position: relative; }
|
|
3340
|
+
.a2ui-surface .lp-hero-campaign-body { display: grid; gap: 8px; justify-items: start; }
|
|
3341
|
+
|
|
3342
|
+
.a2ui-surface .lp-hero-cover { justify-items: start; }
|
|
3343
|
+
|
|
3344
|
+
/* -------------------------------------------------------------- pull quote */
|
|
3345
|
+
|
|
3346
|
+
.a2ui-surface .lp-pullquote {
|
|
3347
|
+
padding: 6px 0 6px 22px;
|
|
3348
|
+
border-left: 3px solid var(--accent);
|
|
3349
|
+
display: grid;
|
|
3350
|
+
gap: 10px;
|
|
3351
|
+
}
|
|
3352
|
+
|
|
3353
|
+
.a2ui-surface .lp-pullquote blockquote {
|
|
3354
|
+
margin: 0;
|
|
3355
|
+
font: var(--title);
|
|
3356
|
+
font-style: italic;
|
|
3357
|
+
}
|
|
3358
|
+
|
|
3359
|
+
.a2ui-surface .lp-pullquote cite {
|
|
3360
|
+
font: var(--meta);
|
|
3361
|
+
letter-spacing: var(--meta-tracking);
|
|
3362
|
+
text-transform: uppercase;
|
|
3363
|
+
color: var(--muted);
|
|
3364
|
+
font-style: normal;
|
|
3365
|
+
}
|
|
3366
|
+
|
|
3367
|
+
/* -------------------------------------------------------------- timeline --- */
|
|
3368
|
+
|
|
3369
|
+
.a2ui-surface .lp-timeline .lp-row { align-items: flex-start; }
|
|
3370
|
+
.a2ui-surface .lp-timeline-time { min-width: 44px; padding-top: 2px; }
|
|
3371
|
+
|
|
3372
|
+
/* --------------------------------------------------------------------- cta */
|
|
3373
|
+
|
|
3374
|
+
.a2ui-surface .lp-cta {
|
|
3375
|
+
display: grid;
|
|
3376
|
+
gap: 12px;
|
|
3377
|
+
justify-items: center;
|
|
3378
|
+
text-align: center;
|
|
3379
|
+
border: 1px solid var(--hairline);
|
|
3380
|
+
background: var(--surface);
|
|
3381
|
+
border-radius: var(--radius-card);
|
|
3382
|
+
padding: 24px 20px;
|
|
3383
|
+
}
|
|
3384
|
+
|
|
3385
|
+
.a2ui-surface .lp-cta-banner { justify-items: stretch; text-align: left; }
|
|
3386
|
+
.a2ui-surface .lp-cta-body { display: grid; gap: 6px; }
|
|
3387
|
+
|
|
3388
|
+
/* ------------------------------------------------------------------ pager */
|
|
3389
|
+
/* paged_deck root. Real pagination belongs to the typography engine; the
|
|
3390
|
+
reference renderer stacks the pages so page count and order stay verifiable. */
|
|
3391
|
+
|
|
3392
|
+
.a2ui-surface .lp-pager { display: grid; gap: 16px; }
|
|
3393
|
+
.a2ui-surface .lp-pager-dots { display: flex; gap: 6px; justify-content: center; }
|
|
3394
|
+
|
|
3395
|
+
.a2ui-surface .lp-pager-dots span {
|
|
3396
|
+
width: 6px;
|
|
3397
|
+
height: 6px;
|
|
3398
|
+
border-radius: 50%;
|
|
3399
|
+
background: var(--hairline);
|
|
3400
|
+
}
|
|
3401
|
+
|
|
3402
|
+
.a2ui-surface .lp-pager-dots span.on { background: var(--accent); }
|
|
3403
|
+
.a2ui-surface .lp-pager-pages { display: grid; gap: 20px; }
|
|
3404
|
+
|
|
3405
|
+
.a2ui-surface .lp-pager-page {
|
|
3406
|
+
border: 1px solid var(--hairline);
|
|
3407
|
+
border-radius: var(--radius-card);
|
|
3408
|
+
background: var(--surface);
|
|
3409
|
+
padding: 16px;
|
|
3410
|
+
}
|
|
3411
|
+
|
|
3412
|
+
.a2ui-surface .lp-story-art { margin-bottom: 4px; }
|
|
3413
|
+
|
|
3414
|
+
/* ---- semantic-insights-social.css ---- */
|
|
3415
|
+
/* ------------------------------------------------------------------ data */
|
|
3416
|
+
|
|
3417
|
+
.a2ui-surface .lp-metric-row {
|
|
3418
|
+
display: flex;
|
|
3419
|
+
border-top: 1px solid var(--ink);
|
|
3420
|
+
border-bottom: 1px solid var(--hairline);
|
|
3421
|
+
padding: 16px 0;
|
|
3422
|
+
}
|
|
3423
|
+
|
|
3424
|
+
.a2ui-surface .lp-metric {
|
|
3425
|
+
flex: 1;
|
|
3426
|
+
padding: 0 14px;
|
|
3427
|
+
border-left: 1px solid var(--hairline);
|
|
3428
|
+
display: grid;
|
|
3429
|
+
gap: 4px;
|
|
3430
|
+
}
|
|
3431
|
+
|
|
3432
|
+
.a2ui-surface .lp-metric-row .lp-metric:first-child { border-left: none; padding-left: 0; }
|
|
3433
|
+
.a2ui-surface .lp-stat-num { font: var(--stat); color: var(--accent); }
|
|
3434
|
+
.a2ui-surface .lp-stat-unit { font: var(--caption); color: var(--muted); }
|
|
3435
|
+
.a2ui-surface .lp-stat-label { font: var(--caption); color: var(--muted); }
|
|
3436
|
+
|
|
3437
|
+
.a2ui-surface .lp-progress-meter { display: grid; gap: 7px; }
|
|
3438
|
+
.a2ui-surface .lp-progress-track {
|
|
3439
|
+
height: 7px;
|
|
3440
|
+
overflow: hidden;
|
|
3441
|
+
border-radius: 999px;
|
|
3442
|
+
background: var(--hairline);
|
|
3443
|
+
}
|
|
3444
|
+
.a2ui-surface .lp-progress-track span {
|
|
3445
|
+
display: block;
|
|
3446
|
+
height: 100%;
|
|
3447
|
+
min-width: 2px;
|
|
3448
|
+
border-radius: inherit;
|
|
3449
|
+
background: var(--accent);
|
|
3450
|
+
}
|
|
3451
|
+
.a2ui-surface .lp-progress-copy {
|
|
3452
|
+
display: flex;
|
|
3453
|
+
justify-content: space-between;
|
|
3454
|
+
gap: 12px;
|
|
3455
|
+
color: var(--muted);
|
|
3456
|
+
font: var(--caption);
|
|
3457
|
+
}
|
|
3458
|
+
.a2ui-surface .lp-progress-copy strong { color: var(--ink); }
|
|
3459
|
+
.a2ui-surface .lp-progress-meter.compact .lp-progress-copy span { display: none; }
|
|
3460
|
+
|
|
3461
|
+
.a2ui-surface .lp-async-state {
|
|
3462
|
+
display: grid;
|
|
3463
|
+
gap: 12px;
|
|
3464
|
+
min-height: 112px;
|
|
3465
|
+
align-content: center;
|
|
3466
|
+
}
|
|
3467
|
+
.a2ui-surface .lp-async-state[data-state="error"] {
|
|
3468
|
+
padding: 14px;
|
|
3469
|
+
border: 1px solid var(--tone-danger-border);
|
|
3470
|
+
border-radius: 8px;
|
|
3471
|
+
background: var(--tone-danger-bg);
|
|
3472
|
+
}
|
|
3473
|
+
.a2ui-surface .lp-async-state[data-state="empty"] {
|
|
3474
|
+
padding: 14px;
|
|
3475
|
+
border: 1px solid var(--hairline);
|
|
3476
|
+
border-radius: 8px;
|
|
3477
|
+
background: var(--surface-2);
|
|
3478
|
+
}
|
|
3479
|
+
.a2ui-surface .lp-shimmer-summary,
|
|
3480
|
+
.a2ui-surface .lp-shimmer-list,
|
|
3481
|
+
.a2ui-surface .lp-shimmer-metrics { display: grid; gap: 9px; }
|
|
3482
|
+
.a2ui-surface :is(.lp-shimmer-summary, .lp-shimmer-list, .lp-shimmer-metrics) > * {
|
|
3483
|
+
display: block;
|
|
3484
|
+
min-height: 12px;
|
|
3485
|
+
border-radius: 4px;
|
|
3486
|
+
background: linear-gradient(100deg, var(--surface-2) 22%, color-mix(in srgb, var(--surface-2) 55%, var(--surface)) 40%, var(--surface-2) 58%);
|
|
3487
|
+
background-size: 220% 100%;
|
|
3488
|
+
animation: lp-shimmer 1.5s ease-in-out infinite;
|
|
3489
|
+
}
|
|
3490
|
+
.a2ui-surface .lp-shimmer-summary > :first-child { width: 46%; min-height: 18px; }
|
|
3491
|
+
.a2ui-surface .lp-shimmer-summary > :nth-child(2) { width: 78%; }
|
|
3492
|
+
.a2ui-surface .lp-shimmer-summary > i { width: 100%; min-height: 48px; }
|
|
3493
|
+
.a2ui-surface .lp-shimmer-list > * { min-height: 38px; }
|
|
3494
|
+
.a2ui-surface .lp-shimmer-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
|
3495
|
+
.a2ui-surface .lp-shimmer-metrics > * { min-height: 68px; }
|
|
3496
|
+
@keyframes lp-shimmer { to { background-position-x: -220%; } }
|
|
3497
|
+
@media (prefers-reduced-motion: reduce) {
|
|
3498
|
+
.a2ui-surface :is(.lp-shimmer-summary, .lp-shimmer-list, .lp-shimmer-metrics) > * { animation: none; }
|
|
3499
|
+
}
|
|
3500
|
+
|
|
3501
|
+
.a2ui-surface .lp-list-check li::before {
|
|
3502
|
+
border-radius: 1px;
|
|
3503
|
+
width: 6px;
|
|
3504
|
+
height: 6px;
|
|
3505
|
+
transform: rotate(45deg);
|
|
3506
|
+
}
|
|
3507
|
+
|
|
3508
|
+
.a2ui-surface .lp-term-list { display: grid; gap: 8px; }
|
|
3509
|
+
.a2ui-surface .lp-term-list > div { display: grid; gap: 2px; }
|
|
3510
|
+
|
|
3511
|
+
/* --------------------------------------------------------------- social -- */
|
|
3512
|
+
|
|
3513
|
+
.a2ui-surface .lp-poll { gap: 6px; }
|
|
3514
|
+
|
|
3515
|
+
.a2ui-surface .lp-opt {
|
|
3516
|
+
position: relative;
|
|
3517
|
+
display: block;
|
|
3518
|
+
width: 100%;
|
|
3519
|
+
border: 1.5px solid var(--hairline);
|
|
3520
|
+
border-radius: calc(var(--radius-card) - 2px);
|
|
3521
|
+
padding: 10px 12px;
|
|
3522
|
+
font: var(--heading);
|
|
3523
|
+
overflow: hidden;
|
|
3524
|
+
}
|
|
3525
|
+
|
|
3526
|
+
.a2ui-surface .lp-opt .fill { position: absolute; inset: 0; background: var(--accent-soft); width: var(--w, 0); }
|
|
3527
|
+
.a2ui-surface .lp-opt .lab { position: relative; display: flex; justify-content: space-between; gap: 8px; }
|
|
3528
|
+
.a2ui-surface .lp-opt.picked { border-color: var(--accent); }
|
|
3529
|
+
.a2ui-surface .lp-opt.picked .lab b:last-child { color: var(--accent); }
|
|
3530
|
+
|
|
3531
|
+
.a2ui-surface .lp-reaction-bar {
|
|
3532
|
+
display: flex;
|
|
3533
|
+
align-items: center;
|
|
3534
|
+
justify-content: space-between;
|
|
3535
|
+
gap: 10px;
|
|
3536
|
+
flex-wrap: wrap;
|
|
3537
|
+
border-top: 1px solid var(--hairline);
|
|
3538
|
+
padding-top: 12px;
|
|
3539
|
+
}
|
|
3540
|
+
|
|
3541
|
+
.a2ui-surface .lp-sources .lp-row { padding: 8px 0; }
|
|
3542
|
+
|
|
3543
|
+
/* ------------------------------------------------------- renderer chrome -- */
|
|
3544
|
+
|
|
3545
|
+
.a2ui-surface .a2ui-unsupported,
|
|
3546
|
+
.a2ui-surface .a2ui-empty,
|
|
3547
|
+
.a2ui-surface .a2ui-surface-notice {
|
|
3548
|
+
display: grid;
|
|
3549
|
+
gap: 6px;
|
|
3550
|
+
padding: 14px;
|
|
3551
|
+
border: 1px dashed var(--hairline);
|
|
3552
|
+
border-radius: var(--radius-card);
|
|
3553
|
+
background: var(--surface-2);
|
|
3554
|
+
}
|
|
3555
|
+
|
|
3556
|
+
.a2ui-surface .a2ui-unsupported-data {
|
|
3557
|
+
display: grid;
|
|
3558
|
+
gap: 6px;
|
|
3559
|
+
margin-top: 4px;
|
|
3560
|
+
}
|
|
3561
|
+
|
|
3562
|
+
.a2ui-surface .a2ui-unsupported-data > div {
|
|
3563
|
+
display: grid;
|
|
3564
|
+
grid-template-columns: minmax(72px, 22%) minmax(0, 1fr);
|
|
3565
|
+
gap: 10px;
|
|
3566
|
+
align-items: baseline;
|
|
3567
|
+
}
|
|
3568
|
+
|
|
3569
|
+
.a2ui-surface .a2ui-unsupported-data dd { overflow-wrap: anywhere; }
|
|
3570
|
+
|
|
3571
|
+
.a2ui-surface .a2ui-fallback-text {
|
|
3572
|
+
border-left: 2px solid var(--hairline);
|
|
3573
|
+
padding-left: 12px;
|
|
3574
|
+
color: var(--muted);
|
|
3575
|
+
}
|
|
3576
|
+
|
|
3577
|
+
/* ---- semantic-page-frame.css ---- */
|
|
3578
|
+
/* ---------------------------------------------------------------- page frame */
|
|
3579
|
+
|
|
3580
|
+
.a2ui-page-frame {
|
|
3581
|
+
display: flex;
|
|
3582
|
+
flex-direction: column;
|
|
3583
|
+
align-items: center;
|
|
3584
|
+
gap: 10px;
|
|
3585
|
+
max-width: 100%;
|
|
3586
|
+
}
|
|
3587
|
+
|
|
3588
|
+
.a2ui-page {
|
|
3589
|
+
position: relative;
|
|
3590
|
+
width: 100%;
|
|
3591
|
+
max-width: 560px;
|
|
3592
|
+
border: 1px solid rgba(0, 0, 0, 0.12);
|
|
3593
|
+
border-radius: 8px;
|
|
3594
|
+
box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
|
|
3595
|
+
overflow: hidden;
|
|
3596
|
+
background: #fff;
|
|
3597
|
+
}
|
|
3598
|
+
|
|
3599
|
+
.a2ui-page-landscape { max-width: 720px; }
|
|
3600
|
+
.a2ui-page-square { max-width: 620px; }
|
|
3601
|
+
|
|
3602
|
+
.a2ui-page-scroll { height: 100%; overflow-y: auto; }
|
|
3603
|
+
.a2ui-page-scroll .a2ui-surface { min-height: 100%; }
|
|
3604
|
+
|
|
3605
|
+
.a2ui-page-caption {
|
|
3606
|
+
margin: 0;
|
|
3607
|
+
font-size: 12px;
|
|
3608
|
+
font-weight: 600;
|
|
3609
|
+
letter-spacing: 0.04em;
|
|
3610
|
+
text-align: center;
|
|
3611
|
+
opacity: 0.65;
|
|
3612
|
+
}
|
|
3613
|
+
|
|
3614
|
+
/* ---------------------------------------------------- semantic calibration */
|
|
3615
|
+
|
|
3616
|
+
/* Clipped, not removed: assistive technology still reads what is in here. Put it
|
|
3617
|
+
on a block element — a `display: table` box treats `width` as a minimum and
|
|
3618
|
+
grows to its content instead of shrinking to 1px, which widens the document in
|
|
3619
|
+
any host that does not clip. Tables therefore travel inside this wrapper. */
|
|
3620
|
+
.a2ui-visually-hidden {
|
|
3621
|
+
position: absolute !important;
|
|
3622
|
+
width: 1px !important;
|
|
3623
|
+
height: 1px !important;
|
|
3624
|
+
padding: 0 !important;
|
|
3625
|
+
margin: -1px !important;
|
|
3626
|
+
overflow: hidden !important;
|
|
3627
|
+
clip: rect(0, 0, 0, 0) !important;
|
|
3628
|
+
white-space: nowrap !important;
|
|
3629
|
+
border: 0 !important;
|
|
3630
|
+
}
|
|
3631
|
+
|
|
3632
|
+
.a2ui-surface .lp-link-button {
|
|
3633
|
+
appearance: none;
|
|
3634
|
+
border: 0;
|
|
3635
|
+
padding: 0;
|
|
3636
|
+
background: transparent;
|
|
3637
|
+
color: inherit;
|
|
3638
|
+
font: inherit;
|
|
3639
|
+
text-decoration: underline;
|
|
3640
|
+
text-underline-offset: 2px;
|
|
3641
|
+
}
|
|
3642
|
+
|
|
3643
|
+
.a2ui-surface .lp-quote-wall {
|
|
3644
|
+
display: grid;
|
|
3645
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
3646
|
+
gap: 10px;
|
|
3647
|
+
}
|
|
3648
|
+
|
|
3649
|
+
.a2ui-surface .lp-quote-tile { display: grid; align-content: space-between; gap: 8px; min-width: 0; }
|
|
3650
|
+
.a2ui-surface .lp-quote-tile blockquote { margin: 0; font: var(--heading); }
|
|
3651
|
+
.a2ui-surface .lp-quote-tile figcaption { display: flex; justify-content: space-between; gap: 8px; }
|
|
3652
|
+
|
|
3653
|
+
.a2ui-surface .lp-gallery { display: grid; gap: 8px; margin: 0; min-height: 0; }
|
|
3654
|
+
.a2ui-surface .lp-gallery-track { display: grid; grid-auto-flow: column; grid-auto-columns: 88%; gap: 10px; overflow: hidden; min-height: 0; }
|
|
3655
|
+
.a2ui-surface .lp-gallery-item { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 5px; min-width: 0; min-height: 0; }
|
|
3656
|
+
|
|
3657
|
+
.a2ui-surface .lp-insight { display: grid; gap: 8px; border-left: 3px solid var(--accent); }
|
|
3658
|
+
.a2ui-surface .lp-insight-tension,
|
|
3659
|
+
.a2ui-surface .lp-insight-warning { border-left-color: var(--warn); }
|
|
3660
|
+
|
|
3661
|
+
.a2ui-surface .lp-transcript { display: grid; gap: 0; border-top: 1px solid var(--hairline); }
|
|
3662
|
+
.a2ui-surface .lp-transcript-turn { display: grid; gap: 5px; padding: 9px 0; border-bottom: 1px solid var(--hairline); }
|
|
3663
|
+
.a2ui-surface .lp-transcript-turn header { display: flex; gap: 10px; align-items: baseline; }
|
|
3664
|
+
|
|
3665
|
+
.a2ui-surface .lp-chart-frame { display: grid; gap: 8px; margin: 0; min-height: 0; }
|
|
3666
|
+
/* The rows share one set of columns. A row with a grid of its own gave the label a
|
|
3667
|
+
fixed share, so "OBSERVABILITY" ran into its bar, and sized the value column per
|
|
3668
|
+
row, so the bars neither started nor ended on one line. The label column follows
|
|
3669
|
+
the longest label and the track keeps a floor. */
|
|
3670
|
+
.a2ui-surface .lp-signal-bars { display: grid; gap: 7px 8px; grid-template-columns: minmax(58px, auto) minmax(80px, 1fr) auto; }
|
|
3671
|
+
.a2ui-surface .lp-signal-row { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; gap: 8px; align-items: center; }
|
|
3672
|
+
.a2ui-surface .lp-signal-track { height: 8px; overflow: hidden; background: var(--surface-2); }
|
|
3673
|
+
.a2ui-surface .lp-signal-track i { display: block; height: 100%; background: var(--accent); }
|
|
3674
|
+
|
|
3675
|
+
.a2ui-surface .lp-trend { min-width: 0; }
|
|
3676
|
+
/* The plot stretches to the card's width, so anything drawn inside it stretches
|
|
3677
|
+
too. The box is the stretched plot's frame; markers are laid over it in the
|
|
3678
|
+
plot's own coordinates and sized in px, so they stay round at every width. */
|
|
3679
|
+
.a2ui-surface .lp-trend-plot-box { position: relative; min-width: 0; }
|
|
3680
|
+
.a2ui-surface .lp-trend-plot { display: block; width: 100%; height: 124px; overflow: visible; }
|
|
3681
|
+
.a2ui-surface .lp-chart-marker {
|
|
3682
|
+
position: absolute;
|
|
3683
|
+
width: var(--lp-marker-size);
|
|
3684
|
+
height: var(--lp-marker-size);
|
|
3685
|
+
translate: -50% -50%;
|
|
3686
|
+
border-radius: 50%;
|
|
3687
|
+
/* The SVG points carried a 2px surface stroke, centred on the edge: 1px of it
|
|
3688
|
+
sat outside the fill, which is what this ring reproduces. */
|
|
3689
|
+
box-shadow: 0 0 0 1px var(--surface);
|
|
3690
|
+
}
|
|
3691
|
+
.a2ui-surface .lp-chart-marker.variant { background: var(--ink-2); }
|
|
3692
|
+
.a2ui-surface .lp-chart-marker.accent { background: var(--accent); }
|
|
3693
|
+
.a2ui-surface .lp-chart-grid { stroke: var(--hairline); stroke-width: 1; vector-effect: non-scaling-stroke; }
|
|
3694
|
+
.a2ui-surface .lp-chart-line-underlay {
|
|
3695
|
+
fill: none;
|
|
3696
|
+
stroke: var(--surface);
|
|
3697
|
+
stroke-width: 6;
|
|
3698
|
+
stroke-linejoin: round;
|
|
3699
|
+
stroke-linecap: round;
|
|
3700
|
+
vector-effect: non-scaling-stroke;
|
|
3701
|
+
}
|
|
3702
|
+
.a2ui-surface .lp-chart-line {
|
|
3703
|
+
fill: none;
|
|
3704
|
+
stroke: var(--ink);
|
|
3705
|
+
stroke-width: 2;
|
|
3706
|
+
stroke-linejoin: round;
|
|
3707
|
+
stroke-linecap: round;
|
|
3708
|
+
vector-effect: non-scaling-stroke;
|
|
3709
|
+
}
|
|
3710
|
+
.a2ui-surface .lp-chart-line.accent { stroke: var(--accent); }
|
|
3711
|
+
.a2ui-surface .lp-trend-endpoints { display: flex; justify-content: space-between; gap: 12px; }
|
|
3712
|
+
.a2ui-surface .lp-trend-endpoints span { display: grid; gap: 1px; min-width: 0; }
|
|
3713
|
+
.a2ui-surface .lp-trend-endpoints span:last-child { text-align: right; }
|
|
3714
|
+
.a2ui-surface .lp-trend-endpoints b { font: var(--heading); font-variant-numeric: tabular-nums; }
|
|
3715
|
+
.a2ui-surface .lp-trend-endpoints small { font: var(--caption); color: var(--muted); }
|
|
3716
|
+
|
|
3717
|
+
/* Bar and line charts (S42, S43), for one or several series.
|
|
3718
|
+
|
|
3719
|
+
Both share one chart language with the rest of this section: a row grid with
|
|
3720
|
+
a 7px rhythm and an 8px square track on surface-2 for horizontal bars, the
|
|
3721
|
+
line plot box with hairline rules, meta type for every label and value. One
|
|
3722
|
+
unnamed series draws without a legend. Extra series add a legend, a dash
|
|
3723
|
+
pattern per line, and — only when direct labels no longer fit — a value axis.
|
|
3724
|
+
|
|
3725
|
+
Bar ends: the end that sits on the axis is always square. Horizontal bars
|
|
3726
|
+
are the 8px track, square at both ends on every platform (Compose and
|
|
3727
|
+
SwiftUI draw the same). Only a vertical column rounds its free end: the top
|
|
3728
|
+
of a positive column, the bottom of a negative one. */
|
|
3729
|
+
.a2ui-surface .lp-series-chart { --lp-series-height: 116px; --lp-series-lane: 8px; min-width: 0; container-type: inline-size; }
|
|
3730
|
+
.a2ui-surface .lp-series-1 { --lp-series-color: var(--series-1); }
|
|
3731
|
+
.a2ui-surface .lp-series-2 { --lp-series-color: var(--series-2); }
|
|
3732
|
+
.a2ui-surface .lp-series-3 { --lp-series-color: var(--series-3); }
|
|
3733
|
+
.a2ui-surface .lp-series-4 { --lp-series-color: var(--series-4); }
|
|
3734
|
+
|
|
3735
|
+
/* The legend sits in the caption type role, like every other chart note. */
|
|
3736
|
+
.a2ui-surface .lp-series-legend { display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: center; font: var(--caption); color: var(--muted); }
|
|
3737
|
+
.a2ui-surface .lp-series-key { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
|
|
3738
|
+
.a2ui-surface .lp-series-key > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
3739
|
+
.a2ui-surface .lp-series-chip { width: 8px; height: 8px; flex: none; background: var(--lp-series-color); }
|
|
3740
|
+
.a2ui-surface .lp-series-swatch { width: 18px; height: 8px; flex: none; overflow: visible; }
|
|
3741
|
+
.a2ui-surface .lp-series-unit { font: var(--caption); color: var(--muted); }
|
|
3742
|
+
.a2ui-surface :is(.lp-series-tick, .lp-series-row-labels span) { font: var(--meta); letter-spacing: var(--meta-tracking); color: var(--muted); font-variant-numeric: tabular-nums; }
|
|
3743
|
+
.a2ui-surface .lp-series-gridline { position: absolute; border: 0 solid var(--hairline); }
|
|
3744
|
+
|
|
3745
|
+
/* ---- horizontal bars: one row per category, with one lane per series ---- */
|
|
3746
|
+
/* Lanes sit 7px apart, and the gap between categories is double that, so a
|
|
3747
|
+
group reads as a group. */
|
|
3748
|
+
/* The rows share one set of columns, so every bar starts on the same line and
|
|
3749
|
+
every track ends on the same line however long a label or a value is. A row
|
|
3750
|
+
with a grid of its own sizes `auto` per row, and the bars stop being comparable. */
|
|
3751
|
+
.a2ui-surface .lp-series-rows { gap: 14px 8px; grid-template-columns: minmax(58px, 0.8fr) minmax(80px, 2fr) auto; }
|
|
3752
|
+
.a2ui-surface .lp-series-rows > :is(.lp-signal-row, .lp-series-scale) { grid-column: 1 / -1; grid-template-columns: subgrid; }
|
|
3753
|
+
.a2ui-surface .lp-series-row { align-items: center; }
|
|
3754
|
+
.a2ui-surface .lp-series-lanes,
|
|
3755
|
+
.a2ui-surface .lp-series-values { display: grid; grid-auto-rows: var(--lp-series-lane); gap: 7px; min-width: 0; }
|
|
3756
|
+
.a2ui-surface .lp-series-values { justify-items: end; }
|
|
3757
|
+
.a2ui-surface .lp-series-values b { line-height: var(--lp-series-lane); font-variant-numeric: tabular-nums; }
|
|
3758
|
+
.a2ui-surface .lp-series-lanes .lp-signal-track { position: relative; }
|
|
3759
|
+
.a2ui-surface .lp-series-lanes i { position: absolute; top: 0; bottom: 0; left: var(--lp-bar-start); width: var(--lp-bar-size); height: auto; background: var(--lp-series-color); }
|
|
3760
|
+
/* Stacked segments touch, so a surface-coloured hairline keeps the boundary
|
|
3761
|
+
readable even when two neighbouring series read as one block. */
|
|
3762
|
+
.a2ui-surface .lp-series-lanes i.stacked + i.stacked { box-shadow: -1px 0 0 var(--surface); }
|
|
3763
|
+
/* The scale reuses the row grid so its ticks line up with the tracks above. */
|
|
3764
|
+
.a2ui-surface .lp-series-scale { display: grid; grid-template-columns: minmax(58px, 0.8fr) minmax(80px, 2fr) auto; gap: 8px; }
|
|
3765
|
+
.a2ui-surface .lp-series-scale-track { position: relative; height: 14px; min-width: 0; }
|
|
3766
|
+
.a2ui-surface .lp-series-scale-track .lp-series-tick { position: absolute; top: 1px; left: var(--lp-tick); translate: -50% 0; white-space: nowrap; }
|
|
3767
|
+
.a2ui-surface .lp-series-scale-track .lp-series-tick:first-of-type { translate: 0 0; }
|
|
3768
|
+
.a2ui-surface .lp-series-scale-track .lp-series-tick:last-of-type { translate: -100% 0; }
|
|
3769
|
+
.a2ui-surface .lp-series-scale .lp-series-unit { align-self: start; white-space: nowrap; }
|
|
3770
|
+
|
|
3771
|
+
/* ---- vertical bars: thin columns over hairline rules ---- */
|
|
3772
|
+
.a2ui-surface .lp-series-plot.vertical { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 6px; min-width: 0; }
|
|
3773
|
+
.a2ui-surface .lp-series-plot.vertical.bare { grid-template-columns: minmax(0, 1fr); }
|
|
3774
|
+
.a2ui-surface .lp-series-plot.vertical > .lp-series-unit { grid-column: 1 / -1; text-align: end; }
|
|
3775
|
+
/* A hidden copy of the widest tick gives the gutter a real width, so no label
|
|
3776
|
+
can hang outside the card's content box. */
|
|
3777
|
+
.a2ui-surface .lp-series-axis { position: relative; height: var(--lp-series-height); }
|
|
3778
|
+
.a2ui-surface .lp-series-axis .lp-series-tick { position: absolute; right: 0; bottom: var(--lp-tick); translate: 0 50%; white-space: nowrap; }
|
|
3779
|
+
.a2ui-surface .lp-series-axis .lp-series-gutter { position: static; display: block; visibility: hidden; translate: none; }
|
|
3780
|
+
.a2ui-surface .lp-series-area { position: relative; height: var(--lp-series-height); min-width: 0; }
|
|
3781
|
+
.a2ui-surface .lp-series-plot.vertical .lp-series-gridline { left: 0; right: 0; bottom: var(--lp-tick); border-top-width: 1px; }
|
|
3782
|
+
.a2ui-surface .lp-series-plot.vertical .lp-series-gridline.zero { border-top-color: var(--ink-2); }
|
|
3783
|
+
.a2ui-surface .lp-series-bands { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--lp-series-count), minmax(0, 1fr)); }
|
|
3784
|
+
.a2ui-surface .lp-series-band { display: flex; justify-content: center; align-items: stretch; gap: 4px; padding-inline: 5px; min-width: 0; }
|
|
3785
|
+
/* Labelled bars keep at least 16px apart, more when the widest value label needs it: a label is
|
|
3786
|
+
centred over an 18px bar, so the gap is its width (digits of the meta font, 1ch each) less
|
|
3787
|
+
the bar, plus 6px of air. The band itself draws no text; the font only sizes the ch unit. */
|
|
3788
|
+
.a2ui-surface .lp-series-plot.labelled .lp-series-band { font: var(--meta); gap: max(16px, calc(var(--lp-value-chars, 0) * 1ch - 12px)); }
|
|
3789
|
+
.a2ui-surface .lp-series-slot { position: relative; flex: 0 1 18px; min-width: 0; }
|
|
3790
|
+
.a2ui-surface .lp-series-chart-bar.stacked .lp-series-slot { flex-basis: 24px; }
|
|
3791
|
+
/* Square on the zero line, rounded only on the free end away from it: the top
|
|
3792
|
+
of a positive column, the bottom of a negative one. `roundedBarEnd` picks the
|
|
3793
|
+
end, and in a stack only the outermost segment on each side of zero gets one. */
|
|
3794
|
+
.a2ui-surface .lp-series-bar { position: absolute; left: 0; right: 0; bottom: var(--lp-bar-start); height: var(--lp-bar-size); border-radius: 0; background: var(--lp-series-color); }
|
|
3795
|
+
.a2ui-surface .lp-series-bar.round-top { border-radius: 3px 3px 0 0; }
|
|
3796
|
+
.a2ui-surface .lp-series-bar.round-bottom { border-radius: 0 0 3px 3px; }
|
|
3797
|
+
.a2ui-surface .lp-series-bar.stacked + .lp-series-bar.stacked { box-shadow: 0 -1px 0 var(--surface); }
|
|
3798
|
+
.a2ui-surface .lp-series-bar b { position: absolute; bottom: 100%; left: 50%; translate: -50% -3px; font: var(--meta); letter-spacing: var(--meta-tracking); color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
|
|
3799
|
+
/* Row labels are never truncated, never broken inside a word and never rotated:
|
|
3800
|
+
`rowLabelLayout` compares the widest label, and then the widest unbreakable run
|
|
3801
|
+
inside it, with the column the narrowest card gives it. A label that fits keeps
|
|
3802
|
+
one line; a longer one wraps onto at most two lines, each centred in its own
|
|
3803
|
+
column so it stays over the bars it names; one that needs a third line, or whose
|
|
3804
|
+
own word will not fit, turns the whole chart sideways (`.labels-wide`), where
|
|
3805
|
+
each category owns a row.
|
|
3806
|
+
|
|
3807
|
+
`word-break: normal` is what lets a CJK label take a second line: it writes no
|
|
3808
|
+
spaces, so `keep-all` left it a single unbreakable run. Latin words still never
|
|
3809
|
+
break, because `overflow-wrap` stays `normal`. */
|
|
3810
|
+
.a2ui-surface .lp-series-row-labels { grid-column: -2 / -1; display: grid; grid-template-columns: repeat(var(--lp-series-count), minmax(0, 1fr)); text-align: center; align-items: start; }
|
|
3811
|
+
.a2ui-surface .lp-series-row-labels span { min-width: 0; padding-inline: 2px; overflow-wrap: normal; word-break: normal; line-height: 1.2; }
|
|
3812
|
+
/* Turned sideways for its labels, not by request: the label column follows the
|
|
3813
|
+
text and the track keeps a floor so it cannot collapse. */
|
|
3814
|
+
.a2ui-surface .lp-series-chart-bar.labels-wide .lp-series-rows { grid-template-columns: minmax(58px, auto) minmax(72px, 1fr) auto; }
|
|
3815
|
+
|
|
3816
|
+
/* ---- lines: one plot box, one stroke, dash and point set per series ---- */
|
|
3817
|
+
/* Only a series-tagged mark is recoloured; a single-series chart keeps the
|
|
3818
|
+
accent stroke and ink-2 / accent points untouched. */
|
|
3819
|
+
.a2ui-surface .lp-chart-line:is(.lp-series-1, .lp-series-2, .lp-series-3, .lp-series-4) { stroke: var(--lp-series-color); }
|
|
3820
|
+
.a2ui-surface .lp-chart-marker:is(.lp-series-1, .lp-series-2, .lp-series-3, .lp-series-4) { background: var(--lp-series-color); }
|
|
3821
|
+
.a2ui-surface .lp-series-endpoints .lp-series-endpoint { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
|
|
3822
|
+
.a2ui-surface .lp-series-endpoints .lp-series-endpoint b { color: var(--lp-series-color, var(--ink)); }
|
|
3823
|
+
.a2ui-surface .lp-series-endpoints .lp-series-endpoint small { font: var(--caption); color: var(--muted); }
|
|
3824
|
+
.a2ui-surface .lp-series-endpoints span:last-child .lp-series-endpoint { justify-content: end; }
|
|
3825
|
+
.a2ui-surface .lp-series-stroke { fill: none; stroke: var(--lp-series-color); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
|
|
3826
|
+
|
|
3827
|
+
/* ---- areas (S44): a line with the space beneath it filled ---- */
|
|
3828
|
+
/* A flat low-opacity fill of the same ordered colour — no gradient, no shadow —
|
|
3829
|
+
closed on the baseline, so the shape sits flat the way a bar does. The seam is
|
|
3830
|
+
a surface-coloured stroke under every edge, so two stacked bands never meet
|
|
3831
|
+
colour to colour and an overlaid edge stays readable over the band below. */
|
|
3832
|
+
.a2ui-surface .lp-series-area { fill: var(--lp-series-color); fill-opacity: 0.2; stroke: none; }
|
|
3833
|
+
.a2ui-surface .lp-series-chart-area.stacked .lp-series-area { fill-opacity: 0.28; }
|
|
3834
|
+
.a2ui-surface .lp-series-seam { fill: none; stroke: var(--surface); stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
|
|
3835
|
+
|
|
3836
|
+
/* ---- shares (S45): a ring, and every slice named with its own value ---- */
|
|
3837
|
+
.a2ui-surface .lp-pie-body { display: grid; gap: 12px; justify-items: center; align-items: center; min-width: 0; }
|
|
3838
|
+
.a2ui-surface .lp-pie-plot { display: block; width: min(100%, 148px); height: auto; }
|
|
3839
|
+
/* Slices touch, so each one carries a surface-coloured hairline of its own. */
|
|
3840
|
+
.a2ui-surface .lp-pie-slice { fill: var(--lp-series-color); stroke: var(--surface); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
|
|
3841
|
+
.a2ui-surface .lp-pie-slice.dim { fill-opacity: 0.55; }
|
|
3842
|
+
/* The list stays a readable column: on a wide card the value must not drift a
|
|
3843
|
+
card-width away from the name it belongs to. */
|
|
3844
|
+
.a2ui-surface .lp-pie-labels { display: grid; gap: 5px; justify-self: start; width: min(100%, 320px); min-width: 0; font: var(--caption); color: var(--muted); }
|
|
3845
|
+
.a2ui-surface .lp-pie-labels > .lp-series-unit { justify-self: end; }
|
|
3846
|
+
.a2ui-surface .lp-pie-label { display: flex; align-items: center; gap: 7px; min-width: 0; }
|
|
3847
|
+
.a2ui-surface .lp-pie-label > span { min-width: 0; overflow-wrap: normal; }
|
|
3848
|
+
.a2ui-surface .lp-pie-label.dim .lp-series-chip { opacity: 0.55; }
|
|
3849
|
+
.a2ui-surface .lp-pie-label b { margin-left: auto; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
|
|
3850
|
+
/* Wide enough for the ring and the list side by side; narrower, they stack. */
|
|
3851
|
+
@container (min-width: 380px) {
|
|
3852
|
+
.a2ui-surface .lp-pie-body { grid-template-columns: 148px minmax(0, 1fr); gap: 16px; }
|
|
3853
|
+
}
|
|
3854
|
+
|
|
3855
|
+
/* ---- rings (S46): the horizontal bar groove bent into a circle ---- */
|
|
3856
|
+
/* Same 8px weight and surface-2 groove as a horizontal bar, and every arc ends
|
|
3857
|
+
square: a rounded cap would read as more value than the number carries. */
|
|
3858
|
+
.a2ui-surface :is(.lp-radial-track, .lp-radial-arc) { fill: none; stroke-width: 8; vector-effect: non-scaling-stroke; }
|
|
3859
|
+
.a2ui-surface .lp-radial-track { stroke: var(--surface-2); }
|
|
3860
|
+
.a2ui-surface .lp-radial-arc { stroke: var(--lp-series-color); stroke-linecap: butt; }
|
|
3861
|
+
|
|
3862
|
+
/* ---- radar (S16): one face per series ---- */
|
|
3863
|
+
/* The second face is told apart by its dash pattern and a lighter fill, so two
|
|
3864
|
+
series stay separable where the pack's own colours sit close together. */
|
|
3865
|
+
.a2ui-surface .lp-radar-face { fill: var(--lp-series-color); fill-opacity: 0.26; stroke: var(--lp-series-color); stroke-width: 2; vector-effect: non-scaling-stroke; }
|
|
3866
|
+
.a2ui-surface .lp-radar-face.lp-series-2 { fill-opacity: 0.12; }
|
|
3867
|
+
/* The row under the chart only appears when a name could not be placed beside
|
|
3868
|
+
its own vertex, and then every name is in it. */
|
|
3869
|
+
.a2ui-surface .lp-series-chart-radar .lp-chart-legend { justify-content: center; }
|
|
3870
|
+
/* Axis names are drawn inside the plot, so they take the meta role's `fill`
|
|
3871
|
+
rather than its `color`; they keep the case the author wrote them in. */
|
|
3872
|
+
.a2ui-surface .lp-radar-axis { font: var(--meta); fill: var(--muted); }
|
|
3873
|
+
/* One axis per row, with one value column per series. The heads repeat the
|
|
3874
|
+
series names so two columns of numbers are never anonymous. */
|
|
3875
|
+
.a2ui-surface .lp-radar-values { display: grid; gap: 5px; width: min(100%, 320px); margin-inline: auto; font: var(--caption); color: var(--muted); }
|
|
3876
|
+
.a2ui-surface .lp-radar-values > .lp-series-unit { justify-self: end; }
|
|
3877
|
+
.a2ui-surface .lp-radar-value { display: grid; grid-template-columns: minmax(0, 1fr) repeat(var(--lp-radar-columns, 1), minmax(var(--lp-radar-column, 38px), max-content)); gap: 4px 10px; align-items: baseline; }
|
|
3878
|
+
.a2ui-surface .lp-radar-value > span { min-width: 0; overflow-wrap: normal; }
|
|
3879
|
+
.a2ui-surface .lp-radar-value b { color: var(--ink); font-variant-numeric: tabular-nums; text-align: end; overflow-wrap: normal; }
|
|
3880
|
+
.a2ui-surface .lp-radar-value.head b { color: var(--muted); font-weight: inherit; }
|
|
3881
|
+
|
|
3882
|
+
/* ---- scatter chart (S47): two value axes and one marker per row and series ---- */
|
|
3883
|
+
/* The vertical bar plot's frame: ticks in a gutter on the leading edge, hairline
|
|
3884
|
+
rules across the plot, and the x ticks under it on the horizontal scale's
|
|
3885
|
+
track. The x axis name sits under its ticks where the unit sits above. */
|
|
3886
|
+
.a2ui-surface .lp-series-chart-scatter { --lp-series-height: 160px; }
|
|
3887
|
+
/* Points and x ticks keep half a marker clear of each end of the rules, so a
|
|
3888
|
+
point on the first or last tick is drawn whole. */
|
|
3889
|
+
.a2ui-surface .lp-scatter-points { position: absolute; inset: 0 6px; }
|
|
3890
|
+
.a2ui-surface .lp-scatter-axes .lp-scatter-x-ticks { grid-column: -2 / -1; margin-inline: 6px; }
|
|
3891
|
+
/* `scatterXTicks` says how each label sits on its tick: a lone tick is centred. */
|
|
3892
|
+
.a2ui-surface .lp-scatter-axes .lp-scatter-x-ticks .lp-series-tick.start { translate: 0 0; }
|
|
3893
|
+
.a2ui-surface .lp-scatter-axes .lp-scatter-x-ticks .lp-series-tick.center { translate: -50% 0; }
|
|
3894
|
+
.a2ui-surface .lp-scatter-axes .lp-scatter-x-ticks .lp-series-tick.end { translate: -100% 0; }
|
|
3895
|
+
.a2ui-surface .lp-scatter-axes .lp-scatter-x-name { grid-column: -2 / -1; text-align: end; }
|
|
3896
|
+
/* A marker is HTML over the plot, sized in px, so it keeps its shape at every
|
|
3897
|
+
width. The surface-coloured ring, painted under the fill, keeps two
|
|
3898
|
+
overlapping points readable as two. */
|
|
3899
|
+
.a2ui-surface .lp-scatter-mark {
|
|
3900
|
+
position: absolute;
|
|
3901
|
+
width: 12px;
|
|
3902
|
+
height: 12px;
|
|
3903
|
+
translate: -50% 50%;
|
|
3904
|
+
overflow: visible;
|
|
3905
|
+
}
|
|
3906
|
+
.a2ui-surface :is(.lp-scatter-mark, .lp-scatter-swatch) .lp-scatter-mark-shape {
|
|
3907
|
+
fill: var(--lp-series-color, var(--accent));
|
|
3908
|
+
stroke: var(--surface);
|
|
3909
|
+
stroke-width: 2;
|
|
3910
|
+
stroke-linejoin: round;
|
|
3911
|
+
paint-order: stroke;
|
|
3912
|
+
/* `.lp-series-area` is also the area chart's fill class; nothing of it carries over. */
|
|
3913
|
+
fill-opacity: 1;
|
|
3914
|
+
}
|
|
3915
|
+
.a2ui-surface .lp-scatter-mark.accent .lp-scatter-mark-shape { fill: var(--accent); }
|
|
3916
|
+
.a2ui-surface .lp-scatter-swatch { width: 10px; height: 10px; }
|
|
3917
|
+
.a2ui-surface .lp-scatter-swatch .lp-scatter-mark-shape { stroke: none; }
|
|
3918
|
+
|
|
3919
|
+
/* ---- scatter (S17): the quadrant plot, tinted only for variant="quadrant" ---- */
|
|
3920
|
+
/* The quadrant tint belongs to variant="quadrant"; a scatter is a bare plot. */
|
|
3921
|
+
.a2ui-surface .lp-scatter-plot:not(.quadrant) { background: none; }
|
|
3922
|
+
.a2ui-surface .lp-scatter-plot { min-height: 176px; margin-block: 22px 26px; }
|
|
3923
|
+
/* A point carries its weight as its size and a surface-coloured hairline, so two
|
|
3924
|
+
overlapping markers still read as two. */
|
|
3925
|
+
.a2ui-surface .lp-scatter-point {
|
|
3926
|
+
position: absolute;
|
|
3927
|
+
width: var(--lp-point-size);
|
|
3928
|
+
height: var(--lp-point-size);
|
|
3929
|
+
translate: -50% 50%;
|
|
3930
|
+
border-radius: 50%;
|
|
3931
|
+
background: var(--lp-series-color);
|
|
3932
|
+
box-shadow: 0 0 0 1px var(--surface);
|
|
3933
|
+
}
|
|
3934
|
+
/* A name sits above its point by default and flips below or to one side when
|
|
3935
|
+
an edge or another name is in the way; `scatterLabels` picks the side and
|
|
3936
|
+
drops a name it cannot place at all, so nothing is ever clipped. */
|
|
3937
|
+
.a2ui-surface .lp-scatter-name { position: absolute; translate: -50% calc(-1 * var(--lp-name-gap)); width: max-content; font: var(--meta); letter-spacing: var(--meta-tracking); text-transform: uppercase; color: var(--muted); overflow-wrap: normal; white-space: nowrap; text-align: center; }
|
|
3938
|
+
.a2ui-surface .lp-scatter-name.start { translate: 0 calc(-1 * var(--lp-name-gap)); text-align: start; }
|
|
3939
|
+
.a2ui-surface .lp-scatter-name.end { translate: -100% calc(-1 * var(--lp-name-gap)); text-align: end; }
|
|
3940
|
+
/* Below: the name's own height plus the clearance, so its top edge clears the marker. */
|
|
3941
|
+
.a2ui-surface .lp-scatter-name.below { translate: -50% calc(100% + var(--lp-name-gap)); }
|
|
3942
|
+
.a2ui-surface .lp-scatter-name.below.start { translate: 0 calc(100% + var(--lp-name-gap)); }
|
|
3943
|
+
.a2ui-surface .lp-scatter-name.below.end { translate: -100% calc(100% + var(--lp-name-gap)); }
|
|
3944
|
+
|
|
3945
|
+
.a2ui-surface .lp-radar-visual { min-height: 0; display: grid; place-items: center; }
|
|
3946
|
+
/* One drawn size at every card width, the way the share and ring charts keep
|
|
3947
|
+
theirs: the box is laid out at one user unit per pixel, so the axis names
|
|
3948
|
+
render at the size the placement model measured them at instead of growing
|
|
3949
|
+
with the card. A host narrower than the box scales the whole drawing down
|
|
3950
|
+
rather than pushing a name out of it. */
|
|
3951
|
+
.a2ui-surface .lp-radar-plot { display: block; width: 100%; max-width: 310px; height: auto; }
|
|
3952
|
+
.a2ui-surface .lp-chart-legend { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--muted); font: var(--meta); }
|
|
3953
|
+
|
|
3954
|
+
.a2ui-surface .lp-quadrant-plot {
|
|
3955
|
+
position: relative;
|
|
3956
|
+
min-height: 150px;
|
|
3957
|
+
/* The leading margin is the y-axis label's gutter: the label hangs in it, so
|
|
3958
|
+
the figure's box has to be wide enough to hold it. Bottom margin must exceed
|
|
3959
|
+
the hanging x-axis label (5px offset + one meta line), or the label
|
|
3960
|
+
overprints the legend row that follows in flow. */
|
|
3961
|
+
--lp-axis-gutter: 24px;
|
|
3962
|
+
margin: 0 16px 24px var(--lp-axis-gutter);
|
|
3963
|
+
border-left: 1px solid var(--ink-2);
|
|
3964
|
+
border-bottom: 1px solid var(--ink-2);
|
|
3965
|
+
background:
|
|
3966
|
+
linear-gradient(to right, transparent calc(50% - 0.5px), var(--hairline) 50%, transparent calc(50% + 0.5px)),
|
|
3967
|
+
linear-gradient(to bottom, transparent calc(50% - 0.5px), var(--hairline) 50%, transparent calc(50% + 0.5px));
|
|
3968
|
+
}
|
|
3969
|
+
.a2ui-surface .lp-quadrant-x { position: absolute; top: calc(100% + 5px); right: 0; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font: var(--meta); color: var(--muted); }
|
|
3970
|
+
/* One line, inside the gutter, inside the plot's own height: a wrapped vertical
|
|
3971
|
+
label used to grow past the card's left edge and be cut off by the host. */
|
|
3972
|
+
.a2ui-surface .lp-quadrant-y {
|
|
3973
|
+
position: absolute;
|
|
3974
|
+
right: calc(100% + 5px);
|
|
3975
|
+
top: 0;
|
|
3976
|
+
max-width: calc(var(--lp-axis-gutter) - 5px);
|
|
3977
|
+
max-height: 100%;
|
|
3978
|
+
white-space: nowrap;
|
|
3979
|
+
overflow: hidden;
|
|
3980
|
+
text-overflow: ellipsis;
|
|
3981
|
+
font: var(--meta);
|
|
3982
|
+
color: var(--muted);
|
|
3983
|
+
writing-mode: vertical-rl;
|
|
3984
|
+
}
|
|
3985
|
+
|
|
3986
|
+
.a2ui-surface .lp-diverging { min-width: 0; }
|
|
3987
|
+
.a2ui-surface .lp-diverging > .lp-series-unit { text-align: end; }
|
|
3988
|
+
.a2ui-surface .lp-diverging-poles { display: flex; justify-content: space-between; gap: 12px; font: var(--meta); color: var(--muted); }
|
|
3989
|
+
/* Pole labels must shrink, never widen the chart: a long label once pushed the
|
|
3990
|
+
row to 812px inside a 295px widget (zh audit 2026-08-03). */
|
|
3991
|
+
.a2ui-surface .lp-diverging-poles > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
3992
|
+
.a2ui-surface .lp-diverging-row { display: grid; grid-template-columns: minmax(40px, 1fr) minmax(54px, auto) minmax(40px, 1fr); gap: 7px; align-items: center; }
|
|
3993
|
+
.a2ui-surface .lp-diverging-left,
|
|
3994
|
+
.a2ui-surface .lp-diverging-right { display: flex; align-items: center; gap: 4px; height: 12px; font: var(--meta); }
|
|
3995
|
+
.a2ui-surface .lp-diverging-left { justify-content: end; }
|
|
3996
|
+
.a2ui-surface .lp-diverging-left i,
|
|
3997
|
+
.a2ui-surface .lp-diverging-right i { height: 8px; background: var(--ink-2); }
|
|
3998
|
+
.a2ui-surface .lp-diverging-left i { order: -1; }
|
|
3999
|
+
.a2ui-surface .lp-diverging-right i { background: var(--accent); }
|
|
4000
|
+
|
|
4001
|
+
.a2ui-surface .lp-comparison-table { display: grid; gap: 8px; margin: 0; overflow: hidden; }
|
|
4002
|
+
/* Label column 120px + 110px per value column; when that exceeds the host the table scrolls sideways. */
|
|
4003
|
+
.a2ui-surface .lp-comparison-table table {
|
|
4004
|
+
width: 100%;
|
|
4005
|
+
min-width: calc(120px + var(--lp-table-columns, 3) * 110px);
|
|
4006
|
+
border-collapse: collapse;
|
|
4007
|
+
table-layout: fixed;
|
|
4008
|
+
font: var(--caption);
|
|
4009
|
+
}
|
|
4010
|
+
/* A column that does not fit has to stay reachable: the scroller takes focus so
|
|
4011
|
+
arrow keys move it, and it draws its own bar rather than relying on the
|
|
4012
|
+
platform's overlay one, which is invisible until something already scrolls. */
|
|
4013
|
+
.a2ui-surface .lp-comparison-table .lp-comparison-scroll {
|
|
4014
|
+
/* The containing block for the visually hidden "previous:" prefixes: without it they are
|
|
4015
|
+
placed against the page, outside the scroller, and widen the whole page sideways. */
|
|
4016
|
+
position: relative;
|
|
4017
|
+
overflow-x: auto;
|
|
4018
|
+
overscroll-behavior-x: contain;
|
|
4019
|
+
-webkit-overflow-scrolling: touch;
|
|
4020
|
+
/* No trailing fade: it was tried as a second cue for "more to the right" and read
|
|
4021
|
+
as a grey smear over the last column (2026-09-22). The scroller's own
|
|
4022
|
+
bar and its focus stop stay. */
|
|
4023
|
+
}
|
|
4024
|
+
/* Chromium (and so Electron hosts such as DeepSeek Harness Desktop) ignores the
|
|
4025
|
+
::-webkit-scrollbar rules below once `scrollbar-width` or `scrollbar-color` is set,
|
|
4026
|
+
and on macOS falls back to the overlay bar that stays invisible until the table is
|
|
4027
|
+
already scrolling. The standard properties are therefore only for browsers without
|
|
4028
|
+
those rules, such as Firefox. */
|
|
4029
|
+
@supports not selector(::-webkit-scrollbar) {
|
|
4030
|
+
.a2ui-surface .lp-comparison-table .lp-comparison-scroll { scrollbar-width: thin; scrollbar-color: var(--ink-2) var(--surface-2); }
|
|
4031
|
+
}
|
|
4032
|
+
.a2ui-surface .lp-comparison-table .lp-comparison-scroll::-webkit-scrollbar { height: 6px; }
|
|
4033
|
+
.a2ui-surface .lp-comparison-table .lp-comparison-scroll::-webkit-scrollbar-track { background: var(--surface-2); border-radius: 3px; }
|
|
4034
|
+
.a2ui-surface .lp-comparison-table .lp-comparison-scroll::-webkit-scrollbar-thumb { background: var(--ink-2); border-radius: 3px; }
|
|
4035
|
+
/* The figure clips, so the focus ring is drawn inside the scroller's own box. */
|
|
4036
|
+
.a2ui-surface .lp-comparison-table .lp-comparison-scroll:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
|
|
4037
|
+
/* The row labels, and the empty corner above them, stay put while the value columns scroll. */
|
|
4038
|
+
.a2ui-surface .lp-comparison-table :is(th[scope="row"], thead th:first-child) { position: sticky; left: 0; z-index: 1; background: var(--surface); }
|
|
4039
|
+
/* Columns are fixed at 110px, so a long unbroken value (an order ID, a SKU) wraps onto
|
|
4040
|
+
another line. Clipping it would show a shorter number that still looks complete. */
|
|
4041
|
+
.a2ui-surface .lp-comparison-table :is(th, td) { padding: 7px 6px; border-bottom: 1px solid var(--hairline); text-align: start; overflow: hidden; overflow-wrap: anywhere; }
|
|
4042
|
+
/* A value column's header lines up with its cells (`columnAlignment`): text columns centre both,
|
|
4043
|
+
a column whose every value is a number puts both at the line's end, with tabular figures.
|
|
4044
|
+
`end`, not `right`, so a right-to-left page mirrors it. The row labels stay at the start. */
|
|
4045
|
+
.a2ui-surface .lp-comparison-table .text { text-align: center; }
|
|
4046
|
+
.a2ui-surface .lp-comparison-table .numeric { text-align: end; font-variant-numeric: tabular-nums; }
|
|
4047
|
+
.a2ui-surface .lp-comparison-table .highlight { color: var(--accent); font-weight: 700; background: var(--accent-soft); }
|
|
4048
|
+
/* `tone`: a status cell ("Submitted", "Missing") drawn as a badge in the chip tone colours, a light
|
|
4049
|
+
pill in every mode as a chip is. The text states the status, so the colour is a second signal,
|
|
4050
|
+
never the only one. */
|
|
4051
|
+
.a2ui-surface .lp-comparison-table .lp-comparison-tone { display: inline-block; max-width: 100%; box-sizing: border-box; padding: 1px 7px; border: 1px solid var(--hairline); border-radius: var(--radius-pill); color: var(--ink-2); vertical-align: top; }
|
|
4052
|
+
.a2ui-surface .lp-comparison-table .lp-comparison-tone[data-tone="accent"] { color: var(--accent); background: var(--accent-soft); border-color: transparent; }
|
|
4053
|
+
.a2ui-surface .lp-comparison-table .lp-comparison-tone[data-tone="info"] { color: var(--tone-info-fg); background: var(--tone-info-bg); border-color: var(--tone-info-border); }
|
|
4054
|
+
.a2ui-surface .lp-comparison-table .lp-comparison-tone[data-tone="positive"] { color: var(--tone-success-fg); background: var(--tone-success-bg); border-color: var(--tone-success-border); }
|
|
4055
|
+
.a2ui-surface .lp-comparison-table .lp-comparison-tone[data-tone="warning"] { color: var(--tone-warning-fg); background: var(--tone-warning-bg); border-color: var(--tone-warning-border); }
|
|
4056
|
+
.a2ui-surface .lp-comparison-table .lp-comparison-tone[data-tone="danger"] { color: var(--tone-danger-fg); background: var(--tone-danger-bg); border-color: var(--tone-danger-border); }
|
|
4057
|
+
/* A column's `unit`: a smaller, secondary line under the header label, lined up with the column. */
|
|
4058
|
+
.a2ui-surface .lp-comparison-table .lp-comparison-unit { display: block; font-size: calc(11px * var(--lp-text-zoom, 1)); font-weight: 400; color: var(--muted); }
|
|
4059
|
+
/* `previous`: the prior period as a smaller, secondary second line under the value. */
|
|
4060
|
+
.a2ui-surface .lp-comparison-table .lp-comparison-previous { display: block; font-size: calc(11px * var(--lp-text-zoom, 1)); font-weight: 400; color: var(--muted); }
|
|
4061
|
+
|
|
4062
|
+
.a2ui-surface .lp-offer { display: flex; align-items: stretch; gap: 12px; }
|
|
4063
|
+
.a2ui-surface .lp-offer-media { width: min(38%, 150px); flex: none; }
|
|
4064
|
+
.a2ui-surface .lp-offer-body { display: grid; align-content: start; gap: 7px; min-width: 0; flex: 1; }
|
|
4065
|
+
.a2ui-surface .lp-offer-price { display: flex; align-items: baseline; gap: 8px; margin: 0; }
|
|
4066
|
+
.a2ui-surface .lp-offer-price del { color: var(--muted); }
|
|
4067
|
+
.a2ui-surface .lp-offer-price strong { color: var(--accent); font: var(--heading); }
|
|
4068
|
+
|
|
4069
|
+
.a2ui-surface .lp-step-flow { display: grid; gap: 8px; }
|
|
4070
|
+
.a2ui-surface .lp-step-flow ol { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
|
|
4071
|
+
.a2ui-surface .lp-step-flow li { position: relative; display: grid; grid-template-columns: 25px minmax(0, 1fr); gap: 9px; padding: 7px 0; }
|
|
4072
|
+
.a2ui-surface .lp-step-flow li:not(:last-child)::after { content: ""; position: absolute; left: 12px; top: 31px; bottom: -5px; width: 1px; background: var(--hairline); }
|
|
4073
|
+
.a2ui-surface .lp-step-marker { width: 25px; height: 25px; border: 1px solid var(--hairline); border-radius: 50%; color: var(--muted); font: 600 10px/23px var(--sys-mono); text-align: center; }
|
|
4074
|
+
.a2ui-surface .lp-step-flow li[data-state="done"] .lp-step-marker,
|
|
4075
|
+
.a2ui-surface .lp-step-flow li[data-state="current"] .lp-step-marker { border-color: var(--accent); color: var(--accent); }
|
|
4076
|
+
.a2ui-surface .lp-step-flow li[data-state="done"] .lp-step-marker {
|
|
4077
|
+
background: var(--accent-soft);
|
|
4078
|
+
font-size: 0;
|
|
4079
|
+
}
|
|
4080
|
+
.a2ui-surface .lp-step-flow li[data-state="done"] .lp-step-marker::after {
|
|
4081
|
+
content: "\2713";
|
|
4082
|
+
font: 700 12px/23px var(--sys-sans);
|
|
4083
|
+
}
|
|
4084
|
+
.a2ui-surface .lp-step-flow li[data-state="current"] .lp-step-marker {
|
|
4085
|
+
background: var(--accent);
|
|
4086
|
+
color: var(--accent-ink);
|
|
4087
|
+
font-weight: 700;
|
|
4088
|
+
}
|
|
4089
|
+
.a2ui-surface .lp-step-flow li[data-state="current"] .lp-heading { color: var(--accent); }
|
|
4090
|
+
.a2ui-surface .lp-step-flow li[data-state="pending"] { color: var(--muted); }
|
|
4091
|
+
/* A step that failed keeps its accent ring and swaps its number for "!". */
|
|
4092
|
+
.a2ui-surface .lp-step-flow li[data-state="error"] .lp-step-marker { border-color: var(--accent); color: var(--accent); font-size: 0; }
|
|
4093
|
+
.a2ui-surface .lp-step-flow li[data-state="error"] .lp-step-marker::after { content: "!"; font: 700 12px/23px var(--sys-sans); }
|
|
4094
|
+
/* The strip unit heads the values from the right, like the list beside a pie or ring. */
|
|
4095
|
+
.a2ui-surface .lp-metric-strip > .lp-series-unit { justify-self: end; }
|
|
4096
|
+
|
|
4097
|
+
.a2ui-surface .lp-countdown { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
|
|
4098
|
+
/* The date badge must never starve the countdown: badge caps at 45% and
|
|
4099
|
+
ellipsizes; the main column keeps a floor so the value cannot hit 0 width
|
|
4100
|
+
(zh audit 2026-08-03: a long badge left title and value at width 0). */
|
|
4101
|
+
.a2ui-surface .lp-datebadge { flex: none; max-width: 45%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
|
|
4102
|
+
.a2ui-surface .lp-countdown-main { display: grid; gap: 3px; min-width: 88px; flex: 1; }
|
|
4103
|
+
.a2ui-surface .lp-countdown-value { font: var(--stat); color: var(--ink); white-space: nowrap; }
|
|
4104
|
+
|
|
4105
|
+
.a2ui-surface .lp-versus-card { display: grid; gap: 8px; }
|
|
4106
|
+
.a2ui-surface .lp-versus { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; color: #fff; text-align: center; }
|
|
4107
|
+
.a2ui-surface .lp-versus button { display: grid; place-items: center; gap: 5px; min-height: 74px; padding: 13px 8px; border: 0; color: inherit; font: var(--heading); }
|
|
4108
|
+
.a2ui-surface .lp-versus .side-a { background: var(--team-a); }
|
|
4109
|
+
.a2ui-surface .lp-versus .side-b { background: var(--team-b); }
|
|
4110
|
+
|
|
4111
|
+
.a2ui-surface .lp-comments { display: grid; gap: 0; }
|
|
4112
|
+
.a2ui-surface .lp-comment-tabs { display: flex; gap: 16px; border-bottom: 1px solid var(--hairline); font: var(--meta); }
|
|
4113
|
+
.a2ui-surface .lp-comment-tabs span { padding: 7px 0; }
|
|
4114
|
+
.a2ui-surface .lp-comment-tabs .active { color: var(--accent); border-bottom: 2px solid var(--accent); }
|
|
4115
|
+
.a2ui-surface .lp-comment-row { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 9px; padding: 9px 0; border-bottom: 1px solid var(--hairline); }
|
|
4116
|
+
.a2ui-surface .lp-comment-row > div { display: grid; gap: 4px; min-width: 0; }
|
|
4117
|
+
|
|
4118
|
+
.a2ui-surface .lp-share-composer { display: grid; grid-template-columns: minmax(90px, 0.8fr) minmax(0, 1.4fr); gap: 14px; padding: 14px; background: var(--surface-2); }
|
|
4119
|
+
.a2ui-surface .lp-share-copy { display: grid; align-content: center; gap: 9px; min-width: 0; }
|
|
4120
|
+
.a2ui-surface .lp-share-copy blockquote { margin: 0; font: var(--title); }
|
|
4121
|
+
.a2ui-surface .lp-qr { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--hairline); background: var(--bg); color: var(--ink); font: 700 9px var(--sys-mono); }
|
|
4122
|
+
|
|
4123
|
+
.a2ui-surface .lp-sponsor { display: grid; gap: 9px; border-top: 3px solid var(--ink); }
|
|
4124
|
+
.a2ui-surface .lp-product { display: grid; gap: 8px; min-width: 0; }
|
|
4125
|
+
|
|
4126
|
+
@media (max-width: 480px) {
|
|
4127
|
+
.a2ui-surface .lp-quote-wall { grid-template-columns: 1fr; }
|
|
4128
|
+
.a2ui-surface .lp-offer { display: grid; grid-template-columns: minmax(80px, 0.7fr) minmax(0, 1.3fr); }
|
|
4129
|
+
.a2ui-surface .lp-offer-media { width: 100%; }
|
|
4130
|
+
}
|
|
4131
|
+
|
|
4132
|
+
/* ------------------------------------------------------- layout containers */
|
|
4133
|
+
|
|
4134
|
+
.a2ui-layout-page {
|
|
4135
|
+
display: flow-root;
|
|
4136
|
+
}
|
|
4137
|
+
|
|
4138
|
+
.a2ui-layout-slot,
|
|
4139
|
+
.a2ui-degraded-container {
|
|
4140
|
+
min-width: 0;
|
|
4141
|
+
display: flex;
|
|
4142
|
+
flex-direction: column;
|
|
4143
|
+
gap: 14px;
|
|
4144
|
+
}
|
|
4145
|
+
|
|
4146
|
+
/* ---- semantic-materialization.css ---- */
|
|
4147
|
+
/* ---- flow materialization: one scrolling column, screen typography ---- */
|
|
4148
|
+
|
|
4149
|
+
.a2ui-flow-grid {
|
|
4150
|
+
display: flex;
|
|
4151
|
+
flex-direction: column;
|
|
4152
|
+
gap: 26px;
|
|
4153
|
+
}
|
|
4154
|
+
|
|
4155
|
+
.a2ui-flow-slot {
|
|
4156
|
+
min-width: 0;
|
|
4157
|
+
}
|
|
4158
|
+
|
|
4159
|
+
/* ---- print materialization: the typeset page ----
|
|
4160
|
+
The page box is pageWidthPt x pageHeightPt CSS px, zoomed to fit by the
|
|
4161
|
+
renderer, so 1px here IS 1pt of the engine's geometry. Type roles read the
|
|
4162
|
+
--pp-* variables the page derives from bodySizePt x modularRatio; pack
|
|
4163
|
+
tokens keep family/weight/style, the plan owns size and leading. */
|
|
4164
|
+
|
|
4165
|
+
.a2ui-surface-print {
|
|
4166
|
+
padding: 0;
|
|
4167
|
+
background: transparent;
|
|
4168
|
+
}
|
|
4169
|
+
|
|
4170
|
+
.a2ui-print-page {
|
|
4171
|
+
position: relative;
|
|
4172
|
+
overflow: hidden;
|
|
4173
|
+
background: var(--bg);
|
|
4174
|
+
}
|
|
4175
|
+
|
|
4176
|
+
.a2ui-print-grid {
|
|
4177
|
+
position: absolute;
|
|
4178
|
+
inset: 0;
|
|
4179
|
+
}
|
|
4180
|
+
|
|
4181
|
+
.a2ui-print-slot {
|
|
4182
|
+
overflow: hidden;
|
|
4183
|
+
gap: var(--pp-baseline, 14px);
|
|
4184
|
+
}
|
|
4185
|
+
|
|
4186
|
+
.a2ui-print-slot[data-child-layout="rects"] {
|
|
4187
|
+
display: block;
|
|
4188
|
+
gap: 0;
|
|
4189
|
+
}
|
|
4190
|
+
|
|
4191
|
+
.a2ui-print-slot[data-overlay="true"] {
|
|
4192
|
+
z-index: 2;
|
|
4193
|
+
}
|
|
4194
|
+
|
|
4195
|
+
.a2ui-print-slot[data-overset="true"] {
|
|
4196
|
+
box-shadow: inset 0 -2px 0 0 rgba(217, 45, 32, 0.85);
|
|
4197
|
+
}
|
|
4198
|
+
|
|
4199
|
+
.a2ui-print-slot[data-overset="true"]::after {
|
|
4200
|
+
content: attr(data-fit-status);
|
|
4201
|
+
position: absolute;
|
|
4202
|
+
right: 0;
|
|
4203
|
+
bottom: 0;
|
|
4204
|
+
padding: 1px 5px;
|
|
4205
|
+
background: rgba(217, 45, 32, 0.9);
|
|
4206
|
+
color: #fff;
|
|
4207
|
+
font: 600 7px/1.4 var(--sys-mono);
|
|
4208
|
+
letter-spacing: 0.08em;
|
|
4209
|
+
text-transform: uppercase;
|
|
4210
|
+
pointer-events: none;
|
|
4211
|
+
}
|
|
4212
|
+
|
|
4213
|
+
.a2ui-print-fit-summary {
|
|
4214
|
+
position: absolute;
|
|
4215
|
+
top: 4px;
|
|
4216
|
+
right: 4px;
|
|
4217
|
+
z-index: 4;
|
|
4218
|
+
margin: 0;
|
|
4219
|
+
padding: 3px 6px;
|
|
4220
|
+
background: rgba(217, 45, 32, 0.92);
|
|
4221
|
+
color: #fff;
|
|
4222
|
+
font: 600 8px/1.4 var(--sys-mono);
|
|
4223
|
+
pointer-events: none;
|
|
4224
|
+
}
|
|
4225
|
+
|
|
4226
|
+
.a2ui-print-unplaced {
|
|
4227
|
+
position: absolute;
|
|
4228
|
+
left: 4px;
|
|
4229
|
+
right: 4px;
|
|
4230
|
+
bottom: 4px;
|
|
4231
|
+
z-index: 3;
|
|
4232
|
+
display: grid;
|
|
4233
|
+
gap: 6px;
|
|
4234
|
+
padding: 8px;
|
|
4235
|
+
border: 1.5px dashed var(--live);
|
|
4236
|
+
background: color-mix(in srgb, var(--bg) 88%, var(--live));
|
|
4237
|
+
max-height: 40%;
|
|
4238
|
+
overflow: hidden;
|
|
4239
|
+
}
|
|
4240
|
+
|
|
4241
|
+
/* Type roles at plan size. Declared after the base role rules so the size and
|
|
4242
|
+
line-height override the pack's `font` shorthand inside a print page. */
|
|
4243
|
+
.a2ui-print-page .lp-display { font-size: var(--pp-display); line-height: var(--pp-display-lh); }
|
|
4244
|
+
.a2ui-print-page .lp-title { font-size: var(--pp-title); line-height: var(--pp-title-lh); }
|
|
4245
|
+
.a2ui-print-page .lp-heading { font-size: var(--pp-heading); line-height: var(--pp-heading-lh); }
|
|
4246
|
+
.a2ui-print-page .lp-dek { font-size: var(--pp-dek); line-height: var(--pp-dek-lh); }
|
|
4247
|
+
.a2ui-print-page .lp-lede { font-size: var(--pp-dek); line-height: var(--pp-dek-lh); }
|
|
4248
|
+
.a2ui-print-page .lp-body { font-size: var(--pp-body); line-height: var(--pp-body-lh); }
|
|
4249
|
+
.a2ui-print-page .lp-caption { font-size: var(--pp-caption); line-height: var(--pp-caption-lh); }
|
|
4250
|
+
.a2ui-print-page .lp-kicker {
|
|
4251
|
+
font-size: var(--pp-meta);
|
|
4252
|
+
line-height: var(--pp-meta-lh);
|
|
4253
|
+
letter-spacing: min(var(--overline-tracking), .06em);
|
|
4254
|
+
}
|
|
4255
|
+
.a2ui-print-page .lp-meta { font-size: var(--pp-meta); line-height: var(--pp-meta-lh); }
|
|
4256
|
+
.a2ui-print-page .lp-crosshead { font-size: var(--pp-meta); line-height: var(--pp-meta-lh); }
|
|
4257
|
+
.a2ui-print-page .lp-stat-num { font-size: var(--pp-stat); line-height: var(--pp-stat-lh); }
|
|
4258
|
+
.a2ui-print-page .lp-btn { font-size: var(--pp-meta); line-height: 1; padding: 0.9em 1.6em; }
|
|
4259
|
+
.a2ui-print-page .lp-pullquote blockquote { font-size: var(--pp-title); line-height: var(--pp-title-lh); }
|
|
4260
|
+
.a2ui-print-page .lp-dropcap::first-letter { font-size: calc(var(--pp-body) * 3.1); padding: 2px 5px 0 0; }
|
|
4261
|
+
/* The drop cap is a float; without a BFC a two-line lede reports
|
|
4262
|
+
scrollHeight > clientHeight and printFit reads phantom clipping. flow-root
|
|
4263
|
+
makes the paragraph own its float, so measured height is the true height. */
|
|
4264
|
+
.a2ui-print-page .lp-dropcap { display: flow-root; }
|
|
4265
|
+
.a2ui-print-page .lp-opt { font-size: var(--pp-body); }
|
|
4266
|
+
.a2ui-print-page code { font-size: var(--pp-meta); }
|
|
4267
|
+
|
|
4268
|
+
/* Structural rhythm follows the baseline instead of screen px. A fixed page sets
|
|
4269
|
+
every gap from its own baseline, so the flow section rhythm is switched off here
|
|
4270
|
+
and the page keeps the spacing it is calibrated for. */
|
|
4271
|
+
.a2ui-print-page { --lp-block-lead: 0px; }
|
|
4272
|
+
.a2ui-print-page .lp-stack { gap: var(--pp-baseline); }
|
|
4273
|
+
.a2ui-print-page .lp-stack[data-rhythm="tight"] { gap: calc(var(--pp-baseline) * 0.5); }
|
|
4274
|
+
.a2ui-print-page .lp-stack[data-rhythm="loose"] { gap: calc(var(--pp-baseline) * 1.5); }
|
|
4275
|
+
.a2ui-print-page .lp-section { gap: calc(var(--pp-baseline) * 0.5); }
|
|
4276
|
+
.a2ui-print-page .lp-hero { gap: calc(var(--pp-baseline) * 0.75); }
|
|
4277
|
+
.a2ui-print-page .lp-figure { gap: calc(var(--pp-baseline) * 0.4); }
|
|
4278
|
+
.a2ui-print-page .lp-card { padding: calc(var(--pp-baseline) * 0.9); gap: calc(var(--pp-baseline) * 0.5); }
|
|
4279
|
+
.a2ui-print-page .lp-list { gap: calc(var(--pp-baseline) * 0.45); }
|
|
4280
|
+
.a2ui-print-page .lp-row { padding: calc(var(--pp-baseline) * 0.55) 0; gap: calc(var(--pp-baseline) * 0.7); }
|
|
4281
|
+
.a2ui-print-page .lp-cta { padding: calc(var(--pp-baseline) * 1.2) calc(var(--pp-baseline) * 1); gap: calc(var(--pp-baseline) * 0.7); }
|
|
4282
|
+
.a2ui-print-page .lp-metric-row { padding: calc(var(--pp-baseline) * 0.8) 0; }
|
|
4283
|
+
.a2ui-print-page .lp-pullquote {
|
|
4284
|
+
padding-block: 0;
|
|
4285
|
+
padding-left: calc(var(--pp-baseline) * 1.2);
|
|
4286
|
+
gap: calc(var(--pp-baseline) * 0.5);
|
|
4287
|
+
}
|
|
4288
|
+
|
|
4289
|
+
/* A dedicated media frame — the figure is the slot's only occupant — fills the
|
|
4290
|
+
engine's rectangle instead of imposing its own aspect step (inline style,
|
|
4291
|
+
hence the important). Captions keep their natural height below the frame.
|
|
4292
|
+
The :only-child guard matters: mixed slots (text + figures flowing together,
|
|
4293
|
+
e.g. LAND-M1 body columns) have no height basis for a 1fr row, so this rule
|
|
4294
|
+
used to collapse their figures to 0pt and let captions overprint the next
|
|
4295
|
+
block (observed 2026-07-31). In mixed flow a figure keeps its aspect box. */
|
|
4296
|
+
.a2ui-print-slot[data-archetypes~="media"] .lp-figure:only-child {
|
|
4297
|
+
flex: 1 1 auto;
|
|
4298
|
+
min-height: 0;
|
|
4299
|
+
display: grid;
|
|
4300
|
+
grid-template-rows: minmax(0, 1fr) auto;
|
|
4301
|
+
}
|
|
4302
|
+
.a2ui-print-slot[data-archetypes~="media"] .lp-figure:only-child .lp-media {
|
|
4303
|
+
aspect-ratio: auto !important;
|
|
4304
|
+
height: 100%;
|
|
4305
|
+
min-height: 0;
|
|
4306
|
+
}
|
|
4307
|
+
|
|
4308
|
+
/* A masthead's inline image yields to the fixed band: the text is the point
|
|
4309
|
+
of a masthead, the picture takes what room the baseline grid leaves.
|
|
4310
|
+
3 baselines, not 5 - at 5 the title+dek+strip stack overran the 3-module
|
|
4311
|
+
band by ~20% on every page (2026-08-02 DOM audit). */
|
|
4312
|
+
.a2ui-print-slot[data-archetypes~="hero"] .lp-hero .lp-media {
|
|
4313
|
+
aspect-ratio: auto !important;
|
|
4314
|
+
height: calc(var(--pp-baseline, 14px) * 3);
|
|
4315
|
+
}
|
|
4316
|
+
/* The campaign hero is media-led, not text-led: its media flexes to the
|
|
4317
|
+
leftover band height instead of the masthead's fixed 3-baseline strip
|
|
4318
|
+
(which left a 14:1 ribbon over ~100px of dead space, audit 2026-08-03). */
|
|
4319
|
+
.a2ui-print-sized:not(.a2ui-print-elastic) .lp-hero-campaign {
|
|
4320
|
+
display: flex;
|
|
4321
|
+
flex-direction: column;
|
|
4322
|
+
height: 100%;
|
|
4323
|
+
min-height: 0;
|
|
4324
|
+
}
|
|
4325
|
+
.a2ui-print-sized:not(.a2ui-print-elastic) .lp-hero-campaign .lp-hero-media {
|
|
4326
|
+
flex: 1 1 auto;
|
|
4327
|
+
min-height: calc(var(--pp-baseline, 14px) * 3);
|
|
4328
|
+
height: auto !important;
|
|
4329
|
+
}
|
|
4330
|
+
|
|
4331
|
+
.lp-numbered-section {
|
|
4332
|
+
display: grid;
|
|
4333
|
+
gap: 8px;
|
|
4334
|
+
}
|
|
4335
|
+
|
|
4336
|
+
.lp-numbered-head {
|
|
4337
|
+
display: flex;
|
|
4338
|
+
align-items: baseline;
|
|
4339
|
+
gap: 12px;
|
|
4340
|
+
}
|
|
4341
|
+
|
|
4342
|
+
.lp-numbered-index {
|
|
4343
|
+
font-family: var(--lp-font-display, inherit);
|
|
4344
|
+
font-size: 1.9em;
|
|
4345
|
+
font-weight: 700;
|
|
4346
|
+
line-height: 1;
|
|
4347
|
+
color: var(--lp-accent, currentColor);
|
|
4348
|
+
}
|
|
4349
|
+
|
|
4350
|
+
.lp-term-deck {
|
|
4351
|
+
display: grid;
|
|
4352
|
+
gap: 10px;
|
|
4353
|
+
}
|
|
4354
|
+
|
|
4355
|
+
.lp-term-deck-grid {
|
|
4356
|
+
display: grid;
|
|
4357
|
+
grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
|
|
4358
|
+
gap: 10px;
|
|
4359
|
+
}
|
|
4360
|
+
|
|
4361
|
+
.lp-term-card {
|
|
4362
|
+
border: 1px solid var(--lp-border, rgba(0, 0, 0, 0.12));
|
|
4363
|
+
border-radius: 10px;
|
|
4364
|
+
padding: 10px 12px;
|
|
4365
|
+
display: grid;
|
|
4366
|
+
gap: 4px;
|
|
4367
|
+
}
|
|
4368
|
+
|
|
4369
|
+
.lp-term-card-term {
|
|
4370
|
+
margin: 0;
|
|
4371
|
+
font-weight: 700;
|
|
4372
|
+
font-size: 0.95em;
|
|
4373
|
+
}
|
|
4374
|
+
|
|
4375
|
+
/* Non-scrollable (print) pages clip at the trim edge instead of scrolling. */
|
|
4376
|
+
.a2ui-page-clip {
|
|
4377
|
+
height: 100%;
|
|
4378
|
+
overflow: hidden;
|
|
4379
|
+
}
|
|
4380
|
+
|
|
4381
|
+
.a2ui-page-overflow-badge {
|
|
4382
|
+
position: absolute;
|
|
4383
|
+
left: 50%;
|
|
4384
|
+
bottom: 10px;
|
|
4385
|
+
transform: translateX(-50%);
|
|
4386
|
+
margin: 0;
|
|
4387
|
+
padding: 5px 12px;
|
|
4388
|
+
border-radius: 999px;
|
|
4389
|
+
background: rgba(163, 50, 50, 0.92);
|
|
4390
|
+
color: #fff;
|
|
4391
|
+
font-size: 11px;
|
|
4392
|
+
font-weight: 600;
|
|
4393
|
+
white-space: nowrap;
|
|
4394
|
+
pointer-events: none;
|
|
4395
|
+
}
|
|
4396
|
+
|
|
4397
|
+
/* ---- semantic-print-fit.css ---- */
|
|
4398
|
+
/* ---------- D-30 widget sizes: enforced child boxes + standard clamps ---------- */
|
|
4399
|
+
|
|
4400
|
+
/* Declared children clip at their exact engine-issued height; the elastic
|
|
4401
|
+
(prose) child takes whatever the slot has left. */
|
|
4402
|
+
.a2ui-print-slot .a2ui-print-sized { flex: none; overflow: hidden; min-height: 0; }
|
|
4403
|
+
.a2ui-print-slot .a2ui-print-elastic { flex: 1 1 auto; overflow: hidden; }
|
|
4404
|
+
|
|
4405
|
+
/* Inside an enforced box the media stretches to the box, not to its aspect. */
|
|
4406
|
+
.a2ui-print-sized:not(.a2ui-print-elastic) .lp-figure {
|
|
4407
|
+
height: 100%;
|
|
4408
|
+
display: grid;
|
|
4409
|
+
grid-template-rows: minmax(0, 1fr) auto;
|
|
4410
|
+
min-height: 0;
|
|
4411
|
+
}
|
|
4412
|
+
.a2ui-print-sized:not(.a2ui-print-elastic) .lp-figure .lp-media {
|
|
4413
|
+
aspect-ratio: auto !important;
|
|
4414
|
+
height: 100%;
|
|
4415
|
+
min-height: 0;
|
|
4416
|
+
}
|
|
4417
|
+
.a2ui-print-sized:not(.a2ui-print-elastic) .lp-hero { height: 100%; min-height: 0; }
|
|
4418
|
+
|
|
4419
|
+
/* Editorial cards with media keep the governed text anatomy and let the
|
|
4420
|
+
image absorb the remaining footprint. Without this row program a natural
|
|
4421
|
+
feature aspect ratio pushes the dek outside otherwise valid MAG-08 cards. */
|
|
4422
|
+
.a2ui-print-sized:not(.a2ui-print-elastic) .lp-editorial-card:has(> .lp-media) {
|
|
4423
|
+
height: 100%;
|
|
4424
|
+
min-height: 0;
|
|
4425
|
+
grid-template-rows: minmax(0, 1fr) auto auto auto auto;
|
|
4426
|
+
}
|
|
4427
|
+
.a2ui-print-sized:not(.a2ui-print-elastic) .lp-editorial-card:has(> .lp-media) > .lp-media {
|
|
4428
|
+
aspect-ratio: auto !important;
|
|
4429
|
+
height: 100%;
|
|
4430
|
+
min-height: 0;
|
|
4431
|
+
}
|
|
4432
|
+
|
|
4433
|
+
/* Chart footprints reserve labels and captions first; the plotted area owns
|
|
4434
|
+
the remaining rectangle and must shrink instead of silently escaping it. */
|
|
4435
|
+
.a2ui-print-sized:not(.a2ui-print-elastic) .lp-radar {
|
|
4436
|
+
height: 100%;
|
|
4437
|
+
min-height: 0;
|
|
4438
|
+
}
|
|
4439
|
+
.a2ui-print-sized:not(.a2ui-print-elastic) .lp-radar {
|
|
4440
|
+
grid-template-rows: minmax(0, 1fr) auto auto auto;
|
|
4441
|
+
}
|
|
4442
|
+
.a2ui-print-sized:not(.a2ui-print-elastic) .lp-radar-visual {
|
|
4443
|
+
min-height: 0;
|
|
4444
|
+
overflow: hidden;
|
|
4445
|
+
}
|
|
4446
|
+
.a2ui-print-sized:not(.a2ui-print-elastic) .lp-radar-visual svg {
|
|
4447
|
+
width: 100%;
|
|
4448
|
+
height: 100%;
|
|
4449
|
+
/* The flow radar caps its box so the axis names keep the size they were
|
|
4450
|
+
measured at; a fixed print box sizes the drawing itself instead. */
|
|
4451
|
+
max-width: none;
|
|
4452
|
+
max-height: none;
|
|
4453
|
+
}
|
|
4454
|
+
.a2ui-print-sized:not(.a2ui-print-elastic) .lp-quadrant-plot {
|
|
4455
|
+
height: 100%;
|
|
4456
|
+
min-height: 0;
|
|
4457
|
+
}
|
|
4458
|
+
|
|
4459
|
+
/* Inner clamp target inside a padded shell (pill / input / poll label): the
|
|
4460
|
+
shell keeps its own display and padding; only this unpadded span clamps, so
|
|
4461
|
+
a cut line has no padding band to leak into. */
|
|
4462
|
+
.lp-clamp-inner { display: block; width: 100%; min-width: 0; }
|
|
4463
|
+
|
|
4464
|
+
/* Standard print clamps (Atlas printSize clamp vocabulary, common parts):
|
|
4465
|
+
short text never grows its widget — it truncates. */
|
|
4466
|
+
.a2ui-print-page [data-print-policy="clamp"][style*="--print-clamp-lines"] {
|
|
4467
|
+
display: -webkit-box;
|
|
4468
|
+
-webkit-box-orient: vertical;
|
|
4469
|
+
-webkit-line-clamp: var(--print-clamp-lines);
|
|
4470
|
+
overflow: hidden;
|
|
4471
|
+
}
|
|
4472
|
+
.a2ui-print-page .lp-kicker { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; }
|
|
4473
|
+
.a2ui-print-page .lp-title,
|
|
4474
|
+
.a2ui-print-page .lp-display { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
|
|
4475
|
+
.a2ui-print-page .lp-dek { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
|
|
4476
|
+
.a2ui-print-page .lp-caption { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
|
|
4477
|
+
|
|
4478
|
+
/* Compliance and governance copy is never shortened by a generic text role.
|
|
4479
|
+
Its fixed owner may still clip it, which the slot-fit report treats as a
|
|
4480
|
+
blocking protected-hidden failure. */
|
|
4481
|
+
.a2ui-print-page [data-print-policy="protected"] {
|
|
4482
|
+
display: block;
|
|
4483
|
+
-webkit-line-clamp: unset;
|
|
4484
|
+
overflow: visible;
|
|
4485
|
+
}
|
|
4486
|
+
|
|
4487
|
+
/* Keep host-sized Widget spacing overrides after the shared sizing rules. */
|
|
4488
|
+
.a2ui-surface[data-surface-type="chat_widget"] .lp-chip {
|
|
4489
|
+
align-self: flex-start;
|
|
4490
|
+
}
|
|
4491
|
+
|
|
4492
|
+
.a2ui-surface[data-surface-type="chat_widget"] .lp-metric-row {
|
|
4493
|
+
display: grid;
|
|
4494
|
+
grid-template-columns: var(--metric-columns, repeat(auto-fit, minmax(96px, 1fr)));
|
|
4495
|
+
border: 1px solid var(--hairline);
|
|
4496
|
+
border-radius: 7px;
|
|
4497
|
+
padding: 12px;
|
|
4498
|
+
background: var(--surface-2);
|
|
4499
|
+
}
|
|
4500
|
+
.a2ui-surface[data-surface-type="chat_widget"] .lp-metric {
|
|
4501
|
+
min-width: 0;
|
|
4502
|
+
padding: 0 10px;
|
|
4503
|
+
align-content: start;
|
|
4504
|
+
}
|
|
4505
|
+
.a2ui-surface[data-surface-type="chat_widget"] .lp-stat-num {
|
|
4506
|
+
white-space: nowrap;
|
|
4507
|
+
font-variant-numeric: tabular-nums;
|
|
4508
|
+
letter-spacing: 0;
|
|
4509
|
+
}
|
|
4510
|
+
.a2ui-surface[data-surface-type="chat_widget"] .lp-metric[data-emphasis="primary"] .lp-stat-num { color: var(--ink); }
|
|
4511
|
+
/* A pack's stat face can be wider than a cell: Editorial's set "$18,420" over its
|
|
4512
|
+
neighbour in a two-column strip. 1em is the pack's own size, so a value that
|
|
4513
|
+
fits is drawn exactly as before; 0.6em is the measured width of one bold
|
|
4514
|
+
tabular character. The count is the strip's longest value, and the cell that
|
|
4515
|
+
starts a row gives back the 10px of padding it does not carry, so every cell of
|
|
4516
|
+
one strip measures the same room and keeps one size. A wider primary cell
|
|
4517
|
+
scales its own width back to the narrowest cell's before measuring. */
|
|
4518
|
+
.a2ui-surface[data-surface-type="chat_widget"] .lp-metric { container-type: inline-size; }
|
|
4519
|
+
.a2ui-surface[data-surface-type="chat_widget"] .lp-stat-fit {
|
|
4520
|
+
display: inline-block;
|
|
4521
|
+
font-size: min(1em, calc(((100cqi + 20px - var(--lp-stat-inset, 0px)) * var(--lp-stat-scale, 1) - 20px) / (var(--lp-stat-chars, 1) * 0.6)));
|
|
4522
|
+
}
|
|
4523
|
+
.a2ui-surface[data-surface-type="chat_widget"] .lp-stat-num.is-very-long {
|
|
4524
|
+
font-size: 20px;
|
|
4525
|
+
line-height: 1.15;
|
|
4526
|
+
white-space: nowrap;
|
|
4527
|
+
}
|
|
4528
|
+
.a2ui-surface[data-surface-type="chat_widget"] .lp-metric-row .lp-metric:first-child {
|
|
4529
|
+
padding-left: 0;
|
|
4530
|
+
--lp-stat-inset: 10px;
|
|
4531
|
+
}
|
|
4532
|
+
|
|
4533
|
+
/* Six to ten KPIs is what a marketing daily carries, so the strip wraps instead of
|
|
4534
|
+
squeezing a track per cell into one line. Four across, two on a narrow card; the
|
|
4535
|
+
cell that starts a row drops the hairline it would otherwise carry on its left. */
|
|
4536
|
+
.a2ui-surface[data-surface-type="chat_widget"] .lp-metric-row.wraps {
|
|
4537
|
+
row-gap: 14px;
|
|
4538
|
+
}
|
|
4539
|
+
.a2ui-surface[data-surface-type="chat_widget"] .lp-metric-row.wraps .lp-metric:nth-child(4n + 1) {
|
|
4540
|
+
padding-left: 0;
|
|
4541
|
+
--lp-stat-inset: 10px;
|
|
4542
|
+
border-left: 0;
|
|
4543
|
+
}
|
|
4544
|
+
|
|
4545
|
+
@container (max-width: 430px) {
|
|
4546
|
+
.a2ui-surface[data-surface-type="chat_widget"] .lp-metric-row.wraps {
|
|
4547
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
4548
|
+
}
|
|
4549
|
+
.a2ui-surface[data-surface-type="chat_widget"] .lp-metric-row.wraps .lp-metric:nth-child(odd) {
|
|
4550
|
+
padding-left: 0;
|
|
4551
|
+
--lp-stat-inset: 10px;
|
|
4552
|
+
border-left: 0;
|
|
4553
|
+
}
|
|
4554
|
+
.a2ui-surface[data-surface-type="chat_widget"] .lp-metric-row:has(.lp-metric:nth-child(2):last-child):has(.lp-stat-num.is-long) .lp-stat-num,
|
|
4555
|
+
.a2ui-surface[data-surface-type="chat_widget"] .lp-metric-row:has(.lp-metric:nth-child(3):last-child):has(.lp-stat-num.is-long) .lp-stat-num {
|
|
4556
|
+
font-size: 20px;
|
|
4557
|
+
line-height: 1.15;
|
|
4558
|
+
}
|
|
4559
|
+
.a2ui-surface[data-surface-type="chat_widget"] .lp-metric-row:has(.lp-metric:nth-child(4)) {
|
|
4560
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
4561
|
+
row-gap: 14px;
|
|
4562
|
+
}
|
|
4563
|
+
.a2ui-surface[data-surface-type="chat_widget"] .lp-metric-row:has(.lp-metric:nth-child(4)) .lp-metric:nth-child(odd) {
|
|
4564
|
+
padding-left: 0;
|
|
4565
|
+
--lp-stat-inset: 10px;
|
|
4566
|
+
border-left: 0;
|
|
4567
|
+
}
|
|
4568
|
+
}
|
|
4569
|
+
|
|
4570
|
+
@container (max-width: 340px) {
|
|
4571
|
+
.a2ui-surface[data-surface-type="chat_widget"] .lp-metric-row {
|
|
4572
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
4573
|
+
row-gap: 14px;
|
|
4574
|
+
}
|
|
4575
|
+
.a2ui-surface[data-surface-type="chat_widget"] .lp-metric:nth-child(odd) {
|
|
4576
|
+
padding-left: 0;
|
|
4577
|
+
--lp-stat-inset: 10px;
|
|
4578
|
+
border-left: 0;
|
|
4579
|
+
}
|
|
4580
|
+
}
|