@sticker-pop/web 0.0.0-stage → 0.1.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.
@@ -0,0 +1,837 @@
1
+ /* Sticker Pop components. Every value comes from tokens.css.
2
+ Rules: outline everything, hard shadows only, flat colour, ink text on
3
+ every fill, white text only on ink. */
4
+
5
+ @font-face {
6
+ font-family: 'Bricolage Grotesque';
7
+ src: url('../fonts/BricolageGrotesque-Variable.ttf') format('truetype');
8
+ font-weight: 600 800;
9
+ font-display: swap;
10
+ }
11
+
12
+ .sp-root, .sp-root * { box-sizing: border-box; }
13
+ .sp-root {
14
+ font-family: var(--sp-font-family);
15
+ font-weight: var(--sp-font-weight-body);
16
+ font-variation-settings: 'wght' 600;
17
+ color: var(--sp-color-ink);
18
+ -webkit-tap-highlight-color: transparent;
19
+ }
20
+ .sp-root button { font: inherit; color: inherit; }
21
+ .sp-root :focus-visible { outline: 3px solid var(--sp-color-ink); outline-offset: 3px; }
22
+
23
+ /* Paper: cream with the dot grid (the one allowed texture). */
24
+ .sp-paper {
25
+ background-color: var(--sp-color-paper);
26
+ background-image: radial-gradient(circle, var(--sp-color-paper-dot) var(--sp-size-paper-dot-radius), transparent calc(var(--sp-size-paper-dot-radius) + 0.4px));
27
+ background-size: var(--sp-size-paper-dot-step) var(--sp-size-paper-dot-step);
28
+ background-position: calc(var(--sp-size-paper-dot-step) / 2) calc(var(--sp-size-paper-dot-step) / 2);
29
+ }
30
+
31
+ /* Hard shadow helper. */
32
+ .sp-root { --sp-shadow-color: var(--sp-color-ink); }
33
+ .sp-shadow-sm { box-shadow: var(--sp-shadow-small) var(--sp-shadow-small) 0 var(--sp-shadow-color); }
34
+ .sp-shadow { box-shadow: var(--sp-shadow-regular) var(--sp-shadow-regular) 0 var(--sp-shadow-color); }
35
+ .sp-shadow-lg { box-shadow: var(--sp-shadow-large) var(--sp-shadow-large) 0 var(--sp-shadow-color); }
36
+
37
+ /* Fills (.sp-fill-*) are generated into fills.css, loaded after this file. */
38
+
39
+ /* Tilt (garnish only) */
40
+ .sp-tilt-l { transform: rotate(var(--sp-tilt-hero)); }
41
+ .sp-tilt-r { transform: rotate(var(--sp-tilt-hero-alt)); }
42
+
43
+ /* Card */
44
+ .sp-card {
45
+ background: var(--sp-color-white);
46
+ border: var(--sp-border-regular) solid var(--sp-color-ink);
47
+ border-radius: var(--sp-radius-card);
48
+ padding: var(--sp-space-card);
49
+ box-shadow: var(--sp-shadow-regular) var(--sp-shadow-regular) 0 var(--sp-color-ink);
50
+ }
51
+ .sp-card--hero {
52
+ background: var(--sp-color-yellow);
53
+ padding: var(--sp-space-xl);
54
+ box-shadow: var(--sp-shadow-large) var(--sp-shadow-large) 0 var(--sp-color-ink);
55
+ }
56
+ .sp-card--info { background: var(--sp-color-blue); }
57
+ button.sp-card { text-align: inherit; cursor: pointer; display: block; width: 100%; }
58
+ button.sp-card:active { translate: var(--sp-shadow-regular) var(--sp-shadow-regular); box-shadow: none; }
59
+
60
+ .sp-hint { display: flex; gap: var(--sp-space-md); background: var(--sp-color-lilac); }
61
+
62
+ /* Primary button */
63
+ .sp-button {
64
+ display: flex; align-items: center; justify-content: center;
65
+ width: 100%; height: var(--sp-size-button); padding: 0 var(--sp-space-lg);
66
+ background: var(--sp-color-ink); color: var(--sp-color-white);
67
+ border: var(--sp-border-regular) solid var(--sp-color-ink);
68
+ border-radius: var(--sp-radius-button);
69
+ box-shadow: var(--sp-shadow-regular) var(--sp-shadow-regular) 0 var(--sp-color-pink);
70
+ font-size: 18px; font-weight: 800; font-variation-settings: 'wght' 800;
71
+ cursor: pointer;
72
+ }
73
+ .sp-root .sp-button { color: var(--sp-color-white); }
74
+ .sp-button:active:not(:disabled) { translate: var(--sp-shadow-regular) var(--sp-shadow-regular); box-shadow: none; }
75
+ .sp-button:disabled { background: var(--sp-color-ink-muted); cursor: not-allowed; }
76
+
77
+ /* Text button */
78
+ .sp-text-button {
79
+ min-height: var(--sp-size-tap-target); padding: 0 var(--sp-space-xs);
80
+ background: none; border: 0; cursor: pointer;
81
+ font-size: 15px; font-weight: 800; font-variation-settings: 'wght' 800;
82
+ }
83
+ .sp-text-button--underline { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
84
+ .sp-text-button:disabled { color: var(--sp-color-ink-muted); cursor: not-allowed; }
85
+
86
+ /* Icon button */
87
+ .sp-icon-button {
88
+ display: inline-grid; place-items: center;
89
+ width: var(--sp-size-icon-button); height: var(--sp-size-icon-button);
90
+ background: var(--sp-color-white);
91
+ border: var(--sp-border-regular) solid var(--sp-color-ink); border-radius: 50%;
92
+ box-shadow: var(--sp-shadow-small) var(--sp-shadow-small) 0 var(--sp-color-ink);
93
+ cursor: pointer;
94
+ }
95
+ .sp-icon-button:active:not(:disabled) { translate: var(--sp-shadow-small) var(--sp-shadow-small); box-shadow: none; }
96
+ .sp-icon-button[aria-pressed='true'] { border-width: var(--sp-border-spotlight); }
97
+ .sp-icon-button:disabled { background: var(--sp-color-paper); color: var(--sp-color-ink-muted); box-shadow: none; cursor: not-allowed; }
98
+
99
+ /* Icons: Material Symbols Rounded */
100
+ .sp-icon { font-family: 'Material Symbols Rounded'; font-size: var(--sp-size-icon-nav); line-height: 1; font-weight: normal; font-variation-settings: 'FILL' 1, 'wght' 500; user-select: none; }
101
+
102
+ /* Chip */
103
+ /* A chip is the same size selected or not, so its neighbours never move:
104
+ the rest padding makes up for the thinner rest outline, and the label
105
+ reserves the width of its bold (selected) form. */
106
+ .sp-chip {
107
+ --sp-chip-pad: calc(var(--sp-border-regular) - var(--sp-border-thin));
108
+ display: inline-flex; align-items: center; gap: 6px;
109
+ min-height: var(--sp-size-chip); padding: calc(6px + var(--sp-chip-pad)) calc(14px + var(--sp-chip-pad));
110
+ background: var(--sp-color-white);
111
+ border: var(--sp-border-thin) solid var(--sp-color-ink);
112
+ border-radius: var(--sp-radius-pill);
113
+ font-size: 14px; font-weight: 700; font-variation-settings: 'wght' 700;
114
+ cursor: pointer;
115
+ }
116
+ .sp-chip .sp-icon { font-size: var(--sp-size-icon-chip); }
117
+ .sp-chip[aria-pressed='true'] {
118
+ background: var(--sp-chip-fill, var(--sp-color-yellow));
119
+ border-width: var(--sp-border-regular);
120
+ padding: 6px 14px;
121
+ box-shadow: var(--sp-shadow-chip) var(--sp-shadow-chip) 0 var(--sp-color-ink);
122
+ font-weight: 800; font-variation-settings: 'wght' 800;
123
+ }
124
+ .sp-chip:disabled { background: var(--sp-color-paper); color: var(--sp-color-ink-muted); cursor: not-allowed; }
125
+ .sp-chip--removable { padding-right: calc(6px + var(--sp-chip-pad)); }
126
+ .sp-chip--removable[aria-pressed='true'] { padding-right: 6px; }
127
+ .sp-chip__label { display: inline-grid; }
128
+ .sp-chip__label::after { content: attr(data-label); height: 0; overflow: hidden; visibility: hidden; font-weight: 800; font-variation-settings: 'wght' 800; }
129
+ .sp-chip__remove { display: inline-grid; place-items: center; padding: 4px; background: none; border: 0; cursor: pointer; }
130
+
131
+ /* Segmented */
132
+ .sp-segmented {
133
+ display: flex; overflow: hidden;
134
+ background: var(--sp-color-white);
135
+ border: var(--sp-border-regular) solid var(--sp-color-ink);
136
+ border-radius: var(--sp-radius-tile);
137
+ }
138
+ .sp-segmented > button {
139
+ flex: 1; height: var(--sp-size-segment); background: none; border: 0; cursor: pointer;
140
+ font-size: 15px; font-weight: 700; font-variation-settings: 'wght' 700;
141
+ }
142
+ .sp-segmented > button + button { border-left: var(--sp-border-regular) solid var(--sp-color-ink); }
143
+ .sp-segmented > button[aria-pressed='true'] { background: var(--sp-segment-fill, var(--sp-color-pink)); font-weight: 800; font-variation-settings: 'wght' 800; }
144
+ .sp-segmented[aria-disabled='true'] { background: var(--sp-color-paper); }
145
+ .sp-segmented[aria-disabled='true'] > button { color: var(--sp-color-ink-muted); cursor: not-allowed; background: none; }
146
+
147
+ /* Switch: <button role="switch" aria-checked> */
148
+ .sp-switch {
149
+ position: relative; width: var(--sp-size-switch-width); height: var(--sp-size-switch-height); padding: 0;
150
+ background: var(--sp-color-white);
151
+ border: var(--sp-border-regular) solid var(--sp-color-ink);
152
+ border-radius: var(--sp-radius-switch-track);
153
+ cursor: pointer; transition: background var(--sp-motion-toggle);
154
+ }
155
+ .sp-switch::after {
156
+ content: ''; position: absolute; top: 2px; left: 2px;
157
+ width: var(--sp-size-switch-knob); height: var(--sp-size-switch-knob);
158
+ background: var(--sp-color-white);
159
+ border: var(--sp-border-thin) solid var(--sp-color-ink); border-radius: 50%;
160
+ box-sizing: border-box; transition: translate var(--sp-motion-toggle) ease-out;
161
+ }
162
+ .sp-switch[aria-checked='true'] { background: var(--sp-color-mint); }
163
+ .sp-switch[aria-checked='true']::after { translate: calc(var(--sp-size-switch-width) - var(--sp-size-switch-knob) - 9px) 0; }
164
+ .sp-switch:disabled { background: var(--sp-color-paper); cursor: not-allowed; }
165
+ .sp-switch:disabled::after { background: var(--sp-color-divider); }
166
+
167
+ /* Text field */
168
+ .sp-field { display: grid; gap: 6px; }
169
+ .sp-field__label { font-size: 14px; font-weight: 700; font-variation-settings: 'wght' 700; color: var(--sp-color-ink-muted); }
170
+ .sp-field__input {
171
+ min-height: var(--sp-size-tap-target); padding: 0 var(--sp-space-md); width: 100%;
172
+ background: var(--sp-color-white); color: var(--sp-color-ink);
173
+ border: var(--sp-border-thin) solid var(--sp-color-ink);
174
+ border-radius: var(--sp-radius-field);
175
+ font: inherit; font-size: 16px; font-weight: 700; font-variation-settings: 'wght' 700;
176
+ }
177
+ .sp-field__input::placeholder { color: var(--sp-color-ink-muted); font-weight: 600; }
178
+ .sp-field__input:focus { outline: none; border-width: var(--sp-border-regular); }
179
+ .sp-field__input[aria-invalid='true'] { border-width: var(--sp-border-regular); }
180
+ .sp-field__input:disabled { background: var(--sp-color-paper); color: var(--sp-color-ink-muted); }
181
+ .sp-form-error { display: flex; gap: 6px; align-items: flex-start; font-size: 14px; font-weight: 800; font-variation-settings: 'wght' 800; }
182
+ .sp-form-error::before { content: '⚠'; }
183
+
184
+ /* Hero amount entry */
185
+ .sp-amount { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
186
+ .sp-amount__row { display: flex; align-items: baseline; gap: var(--sp-space-xs); font-size: 32px; font-weight: 800; font-variation-settings: 'wght' 800; font-variant-numeric: tabular-nums; }
187
+ .sp-amount__row input { flex: 1; width: 0; min-width: 0; background: none; border: 0; font: inherit; color: inherit; padding: 6px 0; }
188
+ .sp-amount__row input:focus { outline: none; }
189
+
190
+ /* Select: a native <select class="sp-select"> styled as a field. With
191
+ wirePopSelects() it becomes a trigger plus a sticker listbox popover; the
192
+ native select stays in the form, in sync. */
193
+ select.sp-select {
194
+ appearance: none; -webkit-appearance: none;
195
+ width: 100%; min-height: var(--sp-size-tap-target); padding: 0 calc(var(--sp-space-md) + 28px) 0 var(--sp-space-md);
196
+ background: var(--sp-color-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%23141414' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right var(--sp-space-md) center;
197
+ border: var(--sp-border-thin) solid var(--sp-color-ink); border-radius: var(--sp-radius-field);
198
+ font: inherit; font-size: 16px; font-weight: 700; font-variation-settings: 'wght' 700; color: var(--sp-color-ink);
199
+ }
200
+ select.sp-select:focus { outline: none; border-width: var(--sp-border-regular); }
201
+ select.sp-select[aria-invalid='true'] { border-width: var(--sp-border-regular); }
202
+ select.sp-select:disabled { background-color: var(--sp-color-paper); color: var(--sp-color-ink-muted); }
203
+
204
+ .sp-select-wrap { position: relative; display: grid; }
205
+ .sp-select-wrap > select.sp-select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
206
+ .sp-select__trigger {
207
+ display: flex; align-items: center; gap: var(--sp-space-sm);
208
+ width: 100%; min-height: var(--sp-size-tap-target); padding: 10px var(--sp-space-md);
209
+ background: var(--sp-color-white); color: var(--sp-color-ink);
210
+ border: var(--sp-border-thin) solid var(--sp-color-ink); border-radius: var(--sp-radius-field);
211
+ font: inherit; font-size: 16px; font-weight: 700; font-variation-settings: 'wght' 700; text-align: left; cursor: pointer;
212
+ }
213
+ .sp-select__trigger:focus-visible, .sp-select__trigger[aria-expanded='true'], .sp-select-wrap.is-invalid .sp-select__trigger { outline: none; border-width: var(--sp-border-regular); padding-inline: calc(var(--sp-space-md) - 0.5px); }
214
+ .sp-select__trigger:disabled { background: var(--sp-color-paper); color: var(--sp-color-ink-muted); cursor: default; }
215
+ .sp-select__value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
216
+ .sp-select__value.is-placeholder { color: var(--sp-color-ink-muted); font-weight: 600; font-variation-settings: 'wght' 600; }
217
+ .sp-select__chevron { transition: rotate var(--sp-motion-fade) ease-out; }
218
+ .sp-select__trigger[aria-expanded='true'] .sp-select__chevron { rotate: 180deg; }
219
+
220
+ /* Menu: a white sticker popover of actions (also the select's listbox).
221
+ Uses the HTML popover attribute: top layer, light dismiss and Escape come
222
+ from the browser; behaviors.mjs positions it next to its trigger. */
223
+ .sp-menu {
224
+ min-width: var(--sp-size-menu-min-width); max-width: min(var(--sp-size-menu-max-width), calc(100vw - 2 * var(--sp-space-sm)));
225
+ max-height: min(var(--sp-size-menu-max-height), calc(100vh - 2 * var(--sp-space-sm)));
226
+ overflow: auto; overscroll-behavior: contain;
227
+ padding: 6px 0; margin: 0;
228
+ background: var(--sp-color-white); color: var(--sp-color-ink);
229
+ border: var(--sp-border-regular) solid var(--sp-color-ink); border-radius: var(--sp-radius-menu);
230
+ box-shadow: var(--sp-shadow-regular) var(--sp-shadow-regular) 0 var(--sp-color-ink);
231
+ }
232
+ .sp-menu[popover] {
233
+ position: fixed; inset: auto;
234
+ opacity: 1; scale: 1; transform-origin: top right;
235
+ transition: opacity var(--sp-motion-fade) ease-out, scale var(--sp-motion-fade) ease-out,
236
+ display var(--sp-motion-fade) allow-discrete, overlay var(--sp-motion-fade) allow-discrete;
237
+ }
238
+ .sp-menu[popover]:not(:popover-open) { opacity: 0; scale: 0.96; }
239
+ @starting-style { .sp-menu[popover]:popover-open { opacity: 0; scale: 0.96; } }
240
+ .sp-menu.is-above { transform-origin: bottom right; }
241
+ .sp-select__list[popover] { transform-origin: top left; max-width: calc(100vw - 2 * var(--sp-space-sm)); }
242
+ .sp-menu__item {
243
+ display: flex; align-items: center; gap: var(--sp-space-md);
244
+ width: 100%; min-height: var(--sp-size-tap-target); padding: 10px var(--sp-space-lg);
245
+ background: none; border: 0; color: inherit; text-align: left; cursor: pointer;
246
+ font: inherit; font-size: 15px; font-weight: 700; font-variation-settings: 'wght' 700;
247
+ }
248
+ .sp-menu__item:hover, .sp-menu__item:focus-visible { outline: none; background: var(--sp-color-yellow); }
249
+ .sp-menu__item:disabled, .sp-menu__item[aria-disabled='true'] { color: var(--sp-color-ink-muted); cursor: default; background: none; }
250
+ .sp-menu__item--destructive { font-weight: 800; font-variation-settings: 'wght' 800; }
251
+ .sp-menu__divider { height: var(--sp-border-divider); margin: 6px 0; border: 0; background: var(--sp-color-divider); }
252
+ .sp-menu__text { flex: 1; min-width: 0; display: grid; }
253
+ .sp-menu__caption { font-size: 13px; font-weight: 600; font-variation-settings: 'wght' 600; color: var(--sp-color-ink-muted); }
254
+ .sp-menu__check { visibility: hidden; }
255
+ /* In a listbox the chosen option is yellow with a tick; hover and focus are paper. */
256
+ .sp-select__list .sp-menu__item { font-size: 16px; }
257
+ .sp-select__list .sp-menu__item:hover, .sp-select__list .sp-menu__item:focus-visible { background: var(--sp-color-paper); }
258
+ .sp-select__list .sp-menu__item[aria-selected='true'] { background: var(--sp-color-yellow); font-weight: 800; font-variation-settings: 'wght' 800; }
259
+ .sp-select__list .sp-menu__item[aria-selected='true'] .sp-menu__check { visibility: visible; }
260
+ @media (prefers-reduced-motion: reduce) {
261
+ .sp-menu[popover], .sp-menu[popover]:not(:popover-open) { scale: 1; }
262
+ @starting-style { .sp-menu[popover]:popover-open { scale: 1; } }
263
+ .sp-select__chevron { transition: none; }
264
+ }
265
+
266
+ /* Checkbox and radio: native inputs, styled; no script needed. */
267
+ .sp-checkbox, .sp-radio {
268
+ appearance: none; -webkit-appearance: none; flex: none;
269
+ width: var(--sp-size-checkbox); height: var(--sp-size-checkbox); margin: 12px; /* pads to the 48 tap target */
270
+ background: var(--sp-color-white) no-repeat center / 100% 100%;
271
+ border: var(--sp-border-thin) solid var(--sp-color-ink);
272
+ cursor: pointer;
273
+ transition: background-color var(--sp-motion-toggle) ease-out;
274
+ }
275
+ .sp-checkbox { border-radius: var(--sp-radius-checkbox); }
276
+ .sp-radio { border-radius: 50%; }
277
+ .sp-checkbox:checked, .sp-checkbox:indeterminate, .sp-radio:checked { border-width: var(--sp-border-regular); }
278
+ .sp-checkbox:checked { background-color: var(--sp-color-mint); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5.2 12.4l4.4 4.2 8-8.6' fill='none' stroke='%23141414' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
279
+ .sp-checkbox:indeterminate { background-color: var(--sp-color-mint); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12h11' fill='none' stroke='%23141414' stroke-width='2.8' stroke-linecap='round'/%3E%3C/svg%3E"); }
280
+ /* The dot: ink behind a yellow ring drawn with a hard inset shadow. */
281
+ .sp-radio:checked { background-color: var(--sp-color-ink); box-shadow: inset 0 0 0 calc((var(--sp-size-checkbox) - 2 * var(--sp-border-regular) - var(--sp-size-radio-dot)) / 2) var(--sp-color-yellow); }
282
+ .sp-checkbox:focus-visible, .sp-radio:focus-visible { outline: 3px solid var(--sp-color-ink); outline-offset: 3px; }
283
+ .sp-checkbox:disabled, .sp-radio:disabled { background-color: var(--sp-color-paper); cursor: default; }
284
+ .sp-checkbox:disabled:checked, .sp-checkbox:disabled:indeterminate { background-color: var(--sp-color-divider); }
285
+ .sp-radio:disabled:checked { background-color: var(--sp-color-ink-muted); box-shadow: inset 0 0 0 calc((var(--sp-size-checkbox) - 2 * var(--sp-border-regular) - var(--sp-size-radio-dot)) / 2) var(--sp-color-divider); }
286
+
287
+ /* A tappable row: <label class="sp-check-row"><input class="sp-checkbox"> text</label>. */
288
+ .sp-check-row {
289
+ display: flex; align-items: center; gap: calc(var(--sp-space-md) - 12px);
290
+ min-height: var(--sp-size-row-min); padding: 2px var(--sp-space-lg) 2px calc(var(--sp-space-lg) - 12px);
291
+ cursor: pointer;
292
+ }
293
+ .sp-check-row:has(input:disabled) { cursor: default; color: var(--sp-color-ink-muted); }
294
+ .sp-check-row__text { display: grid; padding: 8px 0; }
295
+ .sp-check-row__label { font-size: 16px; font-weight: 700; font-variation-settings: 'wght' 700; }
296
+ .sp-check-row__caption { font-size: 13px; font-weight: 600; font-variation-settings: 'wght' 600; color: var(--sp-color-ink-muted); }
297
+
298
+ /* Top app bar: <header class="sp-top-bar"> (compact) or .sp-top-bar--large.
299
+ Sticky; wirePopTopBars() adds .is-scrolled once content scrolls under it. */
300
+ .sp-top-bar {
301
+ position: sticky; top: 0; z-index: 4;
302
+ display: flex; align-items: center; gap: var(--sp-space-sm);
303
+ min-height: var(--sp-size-top-bar); padding: 0 var(--sp-space-screen);
304
+ background: transparent; border-bottom: var(--sp-border-regular) solid transparent;
305
+ transition: background-color var(--sp-motion-fade) ease-out, border-color var(--sp-motion-fade) ease-out;
306
+ }
307
+ .sp-top-bar.is-scrolled { background: var(--sp-color-paper); border-bottom-color: var(--sp-color-ink); }
308
+ .sp-top-bar > .sp-icon-button:first-child { margin-right: var(--sp-space-xs); }
309
+ .sp-top-bar__title {
310
+ flex: 1; min-width: 0; margin: 0;
311
+ font-size: 22px; font-weight: 800; font-variation-settings: 'wght' 800; line-height: 1.2;
312
+ white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
313
+ }
314
+ .sp-top-bar--large { position: static; padding-block: var(--sp-space-sm); }
315
+ .sp-top-bar--large .sp-top-bar__title {
316
+ font-size: 34px; letter-spacing: -1px; line-height: 1.1; white-space: normal;
317
+ display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
318
+ }
319
+ .sp-top-bar__actions { display: flex; gap: var(--sp-space-sm); margin-left: var(--sp-space-xs); }
320
+
321
+ /* Search field: <div class="sp-search"> with an icon, an input and a clear
322
+ button; wirePopSearch() shows the clear button while there is text. */
323
+ .sp-search-row { display: flex; align-items: center; gap: var(--sp-space-md); }
324
+ .sp-search {
325
+ flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--sp-space-sm);
326
+ min-height: var(--sp-size-tap-target); padding: 0 var(--sp-space-xs) 0 var(--sp-space-md);
327
+ background: var(--sp-color-white); border: var(--sp-border-thin) solid var(--sp-color-ink); border-radius: var(--sp-radius-field);
328
+ }
329
+ .sp-search:focus-within { border-width: var(--sp-border-regular); padding-left: calc(var(--sp-space-md) - 0.5px); }
330
+ .sp-search__input {
331
+ flex: 1; min-width: 0; padding: 10px 0; background: none; border: 0; outline: none; color: var(--sp-color-ink);
332
+ font: inherit; font-size: 16px; font-weight: 700; font-variation-settings: 'wght' 700;
333
+ }
334
+ .sp-search__input::placeholder { color: var(--sp-color-ink-muted); font-weight: 600; }
335
+ .sp-search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
336
+ .sp-search__clear { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; background: none; border: 0; color: var(--sp-color-ink); cursor: pointer; border-radius: 50%; }
337
+ .sp-search__clear[hidden] { display: none; }
338
+ .sp-search__clear .sp-icon { font-size: 20px; }
339
+ .sp-search__clear:focus-visible { outline: 3px solid var(--sp-color-ink); outline-offset: -3px; }
340
+
341
+ /* Date tiles: <div class="sp-date-tiles"> of <button class="sp-date-tile" aria-pressed>. */
342
+ .sp-date-tiles { display: flex; gap: var(--sp-space-sm); overflow-x: auto; padding: 0 var(--sp-shadow-small) var(--sp-shadow-small) 0; scrollbar-width: none; }
343
+ .sp-date-tile {
344
+ flex: none; display: grid; place-content: center; justify-items: center;
345
+ width: var(--sp-size-date-tile-width); height: var(--sp-size-date-tile-height); padding: 0 4px;
346
+ background: var(--sp-color-white); color: var(--sp-color-ink);
347
+ border: var(--sp-border-thin) solid var(--sp-color-ink); border-radius: var(--sp-radius-tile);
348
+ box-shadow: var(--sp-shadow-small) var(--sp-shadow-small) 0 var(--sp-color-ink);
349
+ font: inherit; cursor: pointer;
350
+ }
351
+ .sp-date-tile:active { translate: var(--sp-shadow-small) var(--sp-shadow-small); box-shadow: none; }
352
+ .sp-date-tile[aria-pressed='true'] { background: var(--sp-color-yellow); border-width: var(--sp-border-regular); }
353
+ .sp-date-tile__top { font-size: 13px; font-weight: 800; font-variation-settings: 'wght' 800; letter-spacing: 0.6px; text-transform: uppercase; color: var(--sp-color-ink-muted); white-space: nowrap; }
354
+ .sp-date-tile[aria-pressed='true'] .sp-date-tile__top { color: var(--sp-color-ink); }
355
+ .sp-date-tile__day { font-size: 20px; font-weight: 800; font-variation-settings: 'wght' 800; font-variant-numeric: tabular-nums; }
356
+ .sp-date-tile .sp-icon { font-size: var(--sp-size-icon-tile); }
357
+
358
+ /* Calendar (mountPopCalendar). */
359
+ .sp-calendar { display: grid; gap: var(--sp-space-sm); }
360
+ .sp-calendar__head { display: flex; align-items: center; gap: var(--sp-space-sm); }
361
+ .sp-calendar__title { flex: 1; min-width: 0; margin: 0; font-size: 20px; font-weight: 800; font-variation-settings: 'wght' 800; }
362
+ .sp-calendar__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 4px; }
363
+ .sp-calendar__weekday { text-align: center; font-size: 13px; font-weight: 800; font-variation-settings: 'wght' 800; color: var(--sp-color-ink-muted); padding-bottom: 4px; }
364
+ .sp-calendar__day {
365
+ justify-self: center; display: grid; place-items: center;
366
+ width: min(var(--sp-size-calendar-day), 100%); aspect-ratio: 1; padding: 0;
367
+ background: none; border: var(--sp-border-thin) solid transparent; border-radius: 50%; color: var(--sp-color-ink);
368
+ font: inherit; font-size: 16px; font-weight: 700; font-variation-settings: 'wght' 700; font-variant-numeric: tabular-nums; cursor: pointer;
369
+ }
370
+ .sp-calendar__day.is-today { border-color: var(--sp-color-ink); }
371
+ .sp-calendar__day[aria-pressed='true'] { background: var(--sp-color-yellow); border: var(--sp-border-regular) solid var(--sp-color-ink); font-weight: 800; font-variation-settings: 'wght' 800; }
372
+ .sp-calendar__day:hover:not(:disabled):not([aria-pressed='true']) { background: var(--sp-color-paper); }
373
+ .sp-calendar__day:focus-visible { outline: 3px solid var(--sp-color-ink); outline-offset: 1px; }
374
+ .sp-calendar__day:disabled { color: var(--sp-color-ink-muted); cursor: default; }
375
+ /* Range mode: each day sits in a cell; the mint band joins start and end. */
376
+ .sp-calendar__cell { position: relative; display: grid; }
377
+ .sp-calendar__cell .sp-calendar__day { position: relative; }
378
+ .sp-calendar__cell:is(.is-in, .is-start, .is-end)::before {
379
+ content: ''; position: absolute; inset-inline: 0; top: 50%; height: min(var(--sp-size-calendar-day), 100%);
380
+ transform: translateY(-50%); background: var(--sp-color-mint);
381
+ }
382
+ .sp-calendar__cell.is-start::before { inset-inline-start: 50%; }
383
+ .sp-calendar__cell.is-end::before { inset-inline-end: 50%; }
384
+
385
+ /* Loading: skeleton shapes and a spinner. Still under reduced motion. */
386
+ .sp-skeleton { display: block; background: var(--sp-color-divider); border-radius: var(--sp-radius-skeleton-line); height: var(--sp-size-skeleton-line); animation: sp-pulse var(--sp-motion-pulse) ease-in-out infinite alternate; }
387
+ .sp-skeleton--circle { width: var(--sp-size-category-dot); height: var(--sp-size-category-dot); border-radius: 50%; flex: none; }
388
+ .sp-skeleton--block { border-radius: var(--sp-radius-card); }
389
+ @keyframes sp-pulse { to { opacity: 0.55; } }
390
+ .sp-skeleton-row { display: flex; align-items: center; gap: var(--sp-space-md); padding: 12px var(--sp-space-lg); }
391
+ .sp-skeleton-row__text { flex: 1; display: grid; gap: var(--sp-space-sm); }
392
+ .sp-spinner {
393
+ display: inline-block; flex: none; width: var(--sp-size-spinner); height: var(--sp-size-spinner); border-radius: 50%;
394
+ border: calc(var(--sp-size-spinner) / 8) solid var(--sp-color-divider); border-top-color: var(--sp-color-ink);
395
+ animation: sp-spin var(--sp-motion-spin) linear infinite;
396
+ }
397
+ @keyframes sp-spin { to { rotate: 360deg; } }
398
+ @media (prefers-reduced-motion: reduce) { .sp-skeleton, .sp-spinner { animation: none; } }
399
+ .sp-motion-reduced .sp-skeleton, .sp-motion-reduced .sp-spinner { animation: none; }
400
+
401
+ /* Tabs: <div class="sp-tabs" role="tablist"> of <button role="tab" aria-selected>. */
402
+ .sp-tabs { display: flex; gap: var(--sp-space-xs); overflow-x: auto; scrollbar-width: none; }
403
+ .sp-tabs > [role='tab'] {
404
+ flex: none; min-height: var(--sp-size-chip); min-width: var(--sp-size-tap-target); padding: 0 var(--sp-space-lg);
405
+ background: transparent; color: var(--sp-color-ink-muted); border: var(--sp-border-thin) solid transparent; border-radius: var(--sp-radius-pill);
406
+ font: inherit; font-size: 15px; font-weight: 700; font-variation-settings: 'wght' 700; white-space: nowrap; cursor: pointer;
407
+ transition: background-color var(--sp-motion-toggle) ease-out;
408
+ }
409
+ .sp-tabs > [role='tab'][aria-selected='true'] { background: var(--sp-color-yellow); color: var(--sp-color-ink); border-color: var(--sp-color-ink); font-weight: 800; font-variation-settings: 'wght' 800; }
410
+ .sp-tabs > [role='tab']:focus-visible { outline: 3px solid var(--sp-color-ink); outline-offset: 2px; }
411
+
412
+ /* Banner: <div class="sp-banner sp-banner--warning" role="status">. */
413
+ .sp-banner { display: flex; align-items: flex-start; gap: var(--sp-space-md); padding: var(--sp-space-md) var(--sp-space-sm) var(--sp-space-md) var(--sp-space-lg); background: var(--sp-color-blue); }
414
+ .sp-banner--warning { background: var(--sp-color-orange); }
415
+ .sp-banner--success { background: var(--sp-color-mint); }
416
+ .sp-banner > .sp-icon { margin-top: 2px; }
417
+ .sp-banner__body { flex: 1; min-width: 0; display: grid; gap: 2px; padding-right: var(--sp-space-sm); }
418
+ .sp-banner__title { font-size: 16px; font-weight: 800; font-variation-settings: 'wght' 800; }
419
+ .sp-banner__body .sp-text-button { justify-self: start; margin-top: var(--sp-space-xs); }
420
+ .sp-banner__close { display: grid; place-items: center; flex: none; width: 40px; height: 40px; margin: -8px 0; padding: 0; background: none; border: 0; color: var(--sp-color-ink); cursor: pointer; border-radius: 50%; }
421
+ .sp-banner__close:focus-visible { outline: 3px solid var(--sp-color-ink); outline-offset: -3px; }
422
+
423
+ /* Settings row: a button or label row inside .sp-list. */
424
+ .sp-settings-row {
425
+ display: flex; align-items: center; gap: var(--sp-space-md); width: 100%;
426
+ min-height: var(--sp-size-row-min); padding: 8px var(--sp-space-sm) 8px var(--sp-space-lg);
427
+ background: none; border: 0; color: var(--sp-color-ink); font: inherit; text-align: left;
428
+ }
429
+ button.sp-settings-row, label.sp-settings-row { cursor: pointer; }
430
+ button.sp-settings-row:hover, label.sp-settings-row:hover { background: var(--sp-color-paper); }
431
+ .sp-settings-row:focus-visible { outline: 3px solid var(--sp-color-ink); outline-offset: -3px; }
432
+ .sp-settings-row__text { flex: 1; min-width: 0; display: grid; }
433
+ .sp-settings-row__title { font-size: 16px; font-weight: 700; font-variation-settings: 'wght' 700; }
434
+ .sp-settings-row__subtitle { font-size: 13px; font-weight: 600; font-variation-settings: 'wght' 600; color: var(--sp-color-ink-muted); }
435
+ .sp-settings-row__value { font-size: 16px; font-weight: 700; font-variation-settings: 'wght' 700; color: var(--sp-color-ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
436
+ .sp-settings-row__chevron { font-size: 26px; }
437
+ .sp-settings-row .sp-switch { margin-right: 4px; }
438
+
439
+ /* Slider: <div class="sp-slider"><input type="range"></div>; wirePopSliders()
440
+ keeps --sp-slider-fill in step. The wrapper draws the track and fill. */
441
+ .sp-slider { position: relative; display: grid; align-items: center; height: var(--sp-size-tap-target); --sp-slider-fill: 0.5; --_k: var(--sp-size-slider-knob); }
442
+ .sp-slider::before, .sp-slider::after { content: ''; position: absolute; left: calc(var(--_k) / 2 - var(--sp-size-progress-bar) / 2); height: var(--sp-size-progress-bar); border-radius: var(--sp-radius-progress-track); pointer-events: none; }
443
+ .sp-slider::before { right: calc(var(--_k) / 2 - var(--sp-size-progress-bar) / 2); background: var(--sp-color-white); border: var(--sp-border-thin) solid var(--sp-color-ink); box-sizing: border-box; }
444
+ .sp-slider::after { width: calc((100% - var(--_k)) * var(--sp-slider-fill) + var(--sp-size-progress-bar) / 2); background: var(--sp-slider-color, var(--sp-color-mint)); border: var(--sp-border-thin) solid var(--sp-color-ink); border-right-width: 0; box-sizing: border-box; border-radius: var(--sp-radius-progress-track) 0 0 var(--sp-radius-progress-track); }
445
+ .sp-slider:has(input:disabled)::before { background: var(--sp-color-paper); }
446
+ .sp-slider:has(input:disabled)::after { background: var(--sp-color-divider); }
447
+ .sp-slider input { position: relative; z-index: 1; width: 100%; height: var(--sp-size-tap-target); margin: 0; background: none; appearance: none; -webkit-appearance: none; cursor: pointer; }
448
+ .sp-slider input:disabled { cursor: default; }
449
+ .sp-slider input::-webkit-slider-runnable-track { height: var(--sp-size-tap-target); background: none; }
450
+ .sp-slider input::-moz-range-track { background: none; }
451
+ .sp-slider input::-webkit-slider-thumb {
452
+ -webkit-appearance: none; width: var(--_k); height: var(--_k); margin-top: calc((var(--sp-size-tap-target) - var(--_k)) / 2);
453
+ background: var(--sp-color-white); border: var(--sp-border-regular) solid var(--sp-color-ink); border-radius: 50%;
454
+ box-shadow: var(--sp-shadow-small) var(--sp-shadow-small) 0 var(--sp-color-ink);
455
+ }
456
+ .sp-slider input::-moz-range-thumb { width: var(--_k); height: var(--_k); box-sizing: border-box; background: var(--sp-color-white); border: var(--sp-border-regular) solid var(--sp-color-ink); border-radius: 50%; box-shadow: var(--sp-shadow-small) var(--sp-shadow-small) 0 var(--sp-color-ink); }
457
+ .sp-slider input:disabled::-webkit-slider-thumb { box-shadow: none; }
458
+ .sp-slider input:focus-visible { outline: none; }
459
+ .sp-slider input:focus-visible::-webkit-slider-thumb { border-width: var(--sp-border-spotlight); }
460
+ .sp-slider input:focus-visible::-moz-range-thumb { border-width: var(--sp-border-spotlight); }
461
+
462
+ /* Stepper: <div class="sp-stepper" data-min data-max> − <output> + </div>. */
463
+ .sp-stepper { display: inline-flex; align-items: center; }
464
+ .sp-stepper__value { min-width: 48px; text-align: center; font-size: 20px; font-weight: 800; font-variation-settings: 'wght' 800; font-variant-numeric: tabular-nums; }
465
+
466
+ /* Number keypad: <div class="sp-keypad"> of <button data-key>. */
467
+ .sp-keypad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-space-sm); padding: 0 var(--sp-shadow-small) var(--sp-shadow-small) 0; }
468
+ .sp-keypad > button {
469
+ height: var(--sp-size-keypad-key); display: grid; place-items: center;
470
+ background: var(--sp-color-white); color: var(--sp-color-ink);
471
+ border: var(--sp-border-thin) solid var(--sp-color-ink); border-radius: var(--sp-radius-tile);
472
+ box-shadow: var(--sp-shadow-small) var(--sp-shadow-small) 0 var(--sp-color-ink);
473
+ font: inherit; font-size: 26px; font-weight: 800; font-variation-settings: 'wght' 800; font-variant-numeric: tabular-nums; cursor: pointer;
474
+ touch-action: manipulation;
475
+ }
476
+ .sp-keypad > button:active { translate: var(--sp-shadow-small) var(--sp-shadow-small); box-shadow: none; background: var(--sp-color-paper); }
477
+ .sp-keypad > button:focus-visible { outline: 3px solid var(--sp-color-ink); outline-offset: 2px; }
478
+ .sp-keypad .sp-icon { font-size: var(--sp-size-icon-tile); }
479
+
480
+ /* Avatar: <span class="sp-avatar" data-name="Asha Rao"> (wirePopAvatars fills initials and colour). */
481
+ .sp-avatar {
482
+ --sp-avatar-size: 42px;
483
+ display: inline-grid; place-items: center; flex: none;
484
+ width: var(--sp-avatar-size); height: var(--sp-avatar-size); border-radius: 50%;
485
+ background: var(--sp-avatar-fill, var(--sp-color-yellow)); color: var(--sp-color-ink);
486
+ border: var(--sp-border-thin) solid var(--sp-color-ink);
487
+ font-size: calc(var(--sp-avatar-size) * 0.38); font-weight: 800; font-variation-settings: 'wght' 800; line-height: 1;
488
+ }
489
+ .sp-avatar--sm { --sp-avatar-size: 32px; }
490
+ .sp-avatar--lg { --sp-avatar-size: 56px; }
491
+
492
+ /* Empty and error screens: <div class="sp-empty"> centred tile, title, message, actions. */
493
+ .sp-empty { display: grid; justify-items: center; gap: var(--sp-space-sm); max-width: 340px; margin: 0 auto; padding: var(--sp-space-xl); text-align: center; }
494
+ .sp-empty__tile {
495
+ display: grid; place-items: center; width: var(--sp-size-state-tile); height: var(--sp-size-state-tile); margin-bottom: var(--sp-space-lg);
496
+ background: var(--sp-color-lilac); border: var(--sp-border-regular) solid var(--sp-color-ink); border-radius: var(--sp-radius-card);
497
+ box-shadow: var(--sp-shadow-large) var(--sp-shadow-large) 0 var(--sp-color-ink); rotate: -4deg;
498
+ }
499
+ .sp-empty__tile .sp-icon { font-size: 44px; }
500
+ .sp-empty--error .sp-empty__tile { background: var(--sp-color-orange); }
501
+ .sp-empty__title { margin: 0; font-size: 22px; font-weight: 800; font-variation-settings: 'wght' 800; }
502
+ .sp-empty__message { margin: 0; font-size: 15px; font-weight: 600; font-variation-settings: 'wght' 600; line-height: 1.4; color: var(--sp-color-ink-muted); }
503
+ .sp-empty .sp-button { margin-top: var(--sp-space-md); }
504
+
505
+ /* Stat tile: <div class="sp-card sp-stat">. */
506
+ .sp-stat { display: grid; gap: var(--sp-space-xs); justify-items: start; align-content: start; }
507
+ .sp-stat__value { font-size: 28px; font-weight: 800; font-variation-settings: 'wght' 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
508
+ .sp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: var(--sp-space-md); }
509
+
510
+ /* Expandable card: <details class="sp-card sp-expandable"><summary>…</summary>…</details>. */
511
+ .sp-expandable { padding: 0; overflow: hidden; }
512
+ .sp-expandable > summary {
513
+ display: flex; align-items: center; gap: var(--sp-space-sm); min-height: var(--sp-size-row-min);
514
+ padding: 10px var(--sp-space-md) 10px var(--sp-space-lg); cursor: pointer; list-style: none;
515
+ }
516
+ .sp-expandable > summary::-webkit-details-marker { display: none; }
517
+ .sp-expandable > summary::after { content: 'expand_more'; font-family: 'Material Symbols Rounded'; font-size: 26px; line-height: 1; transition: rotate var(--sp-motion-sheet) ease-out; }
518
+ .sp-expandable[open] > summary::after { rotate: 180deg; }
519
+ .sp-expandable > summary:focus-visible { outline: 3px solid var(--sp-color-ink); outline-offset: -3px; }
520
+ .sp-expandable__title { flex: 1; min-width: 0; display: grid; font-size: 16px; font-weight: 800; font-variation-settings: 'wght' 800; }
521
+ .sp-expandable__title small { font-size: 13px; font-weight: 600; font-variation-settings: 'wght' 600; color: var(--sp-color-ink-muted); }
522
+ .sp-expandable__body { padding: var(--sp-space-lg); border-top: var(--sp-border-divider) solid var(--sp-color-divider); }
523
+ @media (prefers-reduced-motion: reduce) { .sp-expandable > summary::after { transition: none; } }
524
+
525
+ /* Tooltip: any element with data-tip (usually an ⓘ button). Shows on hover,
526
+ keyboard focus, or a tap (wirePopTooltips adds .is-open for 3 s). */
527
+ [data-tip] { position: relative; }
528
+ [data-tip]::after {
529
+ content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + var(--sp-space-sm)); z-index: 6;
530
+ width: max-content; max-width: min(260px, 80vw); padding: var(--sp-space-sm) var(--sp-space-md);
531
+ background: var(--sp-color-ink); color: var(--sp-color-white); border-radius: var(--sp-radius-badge);
532
+ font-size: 13px; font-weight: 700; font-variation-settings: 'wght' 700; line-height: 1.35; text-align: left; white-space: normal;
533
+ translate: -50% 4px; opacity: 0; pointer-events: none; transition: opacity var(--sp-motion-fade) ease-out, translate var(--sp-motion-fade) ease-out;
534
+ }
535
+ [data-tip]:hover::after, [data-tip]:focus-visible::after, [data-tip].is-open::after { opacity: 1; translate: -50% 0; }
536
+ .sp-info { display: inline-grid; place-items: center; width: var(--sp-size-tap-target); height: var(--sp-size-tap-target); padding: 0; background: none; border: 0; color: var(--sp-color-ink); cursor: help; border-radius: 50%; }
537
+ .sp-info:focus-visible { outline: 3px solid var(--sp-color-ink); outline-offset: -6px; }
538
+ .sp-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
539
+ @media (prefers-reduced-motion: reduce) { [data-tip]::after { transition: none; translate: -50% 0; } }
540
+
541
+ /* Tag input: <div class="sp-tags" data-tags="Goa,Family"><input class="sp-tags__input"></div>. */
542
+ .sp-tags {
543
+ display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-space-sm);
544
+ min-height: var(--sp-size-tap-target); padding: 6px var(--sp-space-sm);
545
+ background: var(--sp-color-white); border: var(--sp-border-thin) solid var(--sp-color-ink); border-radius: var(--sp-radius-field); cursor: text;
546
+ }
547
+ .sp-tags:focus-within { border-width: var(--sp-border-regular); padding: 5.5px calc(var(--sp-space-sm) - 0.5px); }
548
+ .sp-tags__input { flex: 1; min-width: 120px; padding: 8px 4px; background: none; border: 0; outline: none; color: var(--sp-color-ink); font: inherit; font-size: 16px; font-weight: 700; font-variation-settings: 'wght' 700; }
549
+ .sp-tags__input::placeholder { color: var(--sp-color-ink-muted); font-weight: 600; }
550
+
551
+ /* PIN entry: <div class="sp-pin" data-length="4" data-value="12"> (renderPopPin draws the boxes). */
552
+ .sp-pin { display: flex; justify-content: center; gap: var(--sp-space-sm); }
553
+ .sp-pin__box {
554
+ display: grid; place-items: center; flex: 0 1 48px; height: 56px;
555
+ background: var(--sp-color-white); border: var(--sp-border-thin) solid var(--sp-color-ink); border-radius: var(--sp-radius-field);
556
+ font-size: 26px; font-weight: 800; font-variation-settings: 'wght' 800; font-variant-numeric: tabular-nums;
557
+ transition: background-color var(--sp-motion-toggle) ease-out;
558
+ }
559
+ .sp-pin__box.is-next { border-width: var(--sp-border-regular); }
560
+ .sp-pin__box.is-dot::after { content: ''; width: 14px; height: 14px; border-radius: 50%; background: var(--sp-color-ink); }
561
+ .sp-pin.is-error .sp-pin__box { background: var(--sp-color-orange); border-width: var(--sp-border-thin); }
562
+
563
+ /* Pagination: renderPopPagination(el, { page, count, onChange }). Numbers need 404; narrower shows "Page n of m". */
564
+ .sp-pagination-host { container-type: inline-size; }
565
+ .sp-pagination { display: flex; align-items: center; gap: var(--sp-space-xs); }
566
+ .sp-pagination__pages { display: flex; gap: var(--sp-space-xs); }
567
+ .sp-pagination__page, .sp-pagination__gap {
568
+ width: 40px; height: 40px; display: grid; place-items: center; box-sizing: border-box;
569
+ font-size: 15px; font-weight: 700; font-variation-settings: 'wght' 700; color: var(--sp-color-ink);
570
+ }
571
+ .sp-pagination__page { padding: 0; background: none; border: var(--sp-border-regular) solid transparent; border-radius: 12px; cursor: pointer; font-family: inherit; transition: background var(--sp-motion-toggle) ease-out; }
572
+ .sp-pagination__page:hover:not([aria-current]) { background: var(--sp-color-white); }
573
+ .sp-pagination__page[aria-current] { background: var(--sp-color-yellow); border-color: var(--sp-color-ink); font-weight: 800; font-variation-settings: 'wght' 800; cursor: default; }
574
+ .sp-pagination__page:focus-visible { outline: 3px solid var(--sp-color-ink); outline-offset: 2px; }
575
+ .sp-pagination__label { display: none; flex: 1; text-align: center; font-size: 16px; font-weight: 800; font-variation-settings: 'wght' 800; }
576
+ @container (max-width: 403.98px) {
577
+ .sp-pagination__pages { display: none; }
578
+ .sp-pagination__label { display: block; }
579
+ }
580
+
581
+ /* Pull to refresh: wirePopPullToRefresh(scroller, onRefresh) adds a .sp-refresh sticker at the top.
582
+ --sp-refresh-progress (0 to 1) fills the ring while pulling; .is-refreshing spins it. */
583
+ .sp-refresh-host { position: relative; overflow-y: auto; overscroll-behavior-y: contain; }
584
+ .sp-refresh-host.is-pulling { user-select: none; -webkit-user-select: none; }
585
+ .sp-refresh {
586
+ position: absolute; top: 0; left: 50%; z-index: 2; width: 44px; height: 44px; box-sizing: border-box;
587
+ display: grid; place-items: center; pointer-events: none;
588
+ background: var(--sp-color-white); border: var(--sp-border-thin) solid var(--sp-color-ink); border-radius: 50%;
589
+ box-shadow: var(--sp-shadow-small) var(--sp-shadow-small) 0 var(--sp-color-ink);
590
+ transform: translate(-50%, calc(var(--sp-refresh-pull, 0px) - 100%));
591
+ }
592
+ .sp-refresh:not(.is-pulling) { transition: transform var(--sp-motion-toggle) ease-out; }
593
+ .sp-refresh__ring { width: 20px; height: 20px; transform: rotate(-90deg); fill: none; stroke-width: 2.5; }
594
+ .sp-refresh__ring circle { stroke: var(--sp-color-divider); }
595
+ .sp-refresh__ring circle + circle { stroke: var(--sp-color-ink); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--sp-refresh-progress, 0)); }
596
+ .sp-refresh.is-refreshing .sp-refresh__ring { display: none; }
597
+ .sp-refresh:not(.is-refreshing) .sp-spinner { display: none; }
598
+
599
+ /* Attachment: <label class="sp-attach"><input type="file" accept="image/*,.pdf"> icon, label, caption</label>
600
+ (the native picker opens on click); filled: .sp-attach-file. wirePopAttachments() swaps between them. */
601
+ .sp-attach {
602
+ position: relative; display: grid; justify-items: center; align-content: center; gap: 2px;
603
+ min-height: 96px; padding: var(--sp-space-lg); box-sizing: border-box; text-align: center; cursor: pointer;
604
+ background: var(--sp-color-paper); border: var(--sp-border-thin) dashed var(--sp-color-ink); border-radius: var(--sp-radius-tile);
605
+ }
606
+ .sp-attach[hidden] { display: none; }
607
+ .sp-attach input[type="file"] { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
608
+ .sp-attach:focus-within { outline: 3px solid var(--sp-color-ink); outline-offset: 3px; }
609
+ .sp-attach .sp-icon { font-size: var(--sp-size-icon-tile); margin-bottom: var(--sp-space-xs); }
610
+ .sp-attach__label { font: 800 15px/1.3 var(--sp-font-family); font-variation-settings: 'wght' 800; color: var(--sp-color-ink); }
611
+ .sp-attach__caption { font: 600 13px/1.35 var(--sp-font-family); font-variation-settings: 'wght' 600; color: var(--sp-color-ink-muted); }
612
+ .sp-attach-file {
613
+ display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: var(--sp-space-md);
614
+ padding: var(--sp-space-md) var(--sp-space-xs) var(--sp-space-md) var(--sp-space-md);
615
+ background: var(--sp-color-white); border: var(--sp-border-thin) solid var(--sp-color-ink);
616
+ border-radius: var(--sp-radius-tile); box-shadow: var(--sp-shadow-small) var(--sp-shadow-small) 0 var(--sp-color-ink);
617
+ }
618
+ .sp-attach-file__thumb { width: 48px; height: 48px; border-radius: var(--sp-radius-badge); background: var(--sp-color-paper); display: grid; place-items: center; overflow: hidden; }
619
+ .sp-attach-file__thumb img { width: 100%; height: 100%; object-fit: cover; }
620
+ .sp-attach-file__name { font: 800 16px/1.3 var(--sp-font-family); font-variation-settings: 'wght' 800; color: var(--sp-color-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
621
+ .sp-attach-file__size { font: 600 13px/1.35 var(--sp-font-family); font-variation-settings: 'wght' 600; color: var(--sp-color-ink-muted); }
622
+ .sp-attach-file__remove { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: var(--sp-color-ink); cursor: pointer; border-radius: 50%; }
623
+ .sp-attach-file__remove:focus-visible { outline: 3px solid var(--sp-color-ink); }
624
+
625
+ /* Field row */
626
+ .sp-field-row { display: flex; align-items: center; min-height: var(--sp-size-row-min); padding: 6px 14px; border-bottom: var(--sp-border-divider) solid var(--sp-color-divider); }
627
+ .sp-field-row:last-child { border-bottom: 0; }
628
+ .sp-field-row__label { width: var(--sp-size-field-label-column); flex: none; font-size: 14px; font-weight: 700; font-variation-settings: 'wght' 700; color: var(--sp-color-ink-muted); }
629
+ .sp-field-row__value { flex: 1; font-size: 16px; font-weight: 800; font-variation-settings: 'wght' 800; }
630
+
631
+ /* Badge */
632
+ .sp-badge {
633
+ display: inline-block; padding: 2px 9px;
634
+ background: var(--sp-color-white);
635
+ border: var(--sp-border-thin) solid var(--sp-color-ink); border-radius: var(--sp-radius-badge);
636
+ font-size: 12px; font-weight: 800; font-variation-settings: 'wght' 800; font-variant-numeric: tabular-nums;
637
+ transform: rotate(var(--sp-tilt-badge));
638
+ }
639
+ .sp-badge--caps { text-transform: uppercase; letter-spacing: 0.6px; }
640
+
641
+ /* Category dot */
642
+ .sp-dot {
643
+ display: inline-grid; place-items: center; flex: none;
644
+ width: var(--sp-size-category-dot); height: var(--sp-size-category-dot);
645
+ background: var(--sp-dot-fill, var(--sp-color-white));
646
+ border: var(--sp-border-thin) solid var(--sp-color-ink); border-radius: 50%;
647
+ transform: rotate(var(--sp-tilt-category-dot));
648
+ }
649
+ .sp-dot .sp-icon { font-size: calc(var(--sp-size-category-dot) * 0.48); }
650
+
651
+ /* List */
652
+ /* No padding, and clipped to the corners: a selected row's fill reaches the outline on every edge. */
653
+ .sp-list { padding: 0; overflow: hidden; }
654
+ .sp-list > * + * { border-top: var(--sp-border-divider) solid var(--sp-color-divider); }
655
+ .sp-row { display: flex; align-items: center; gap: var(--sp-space-md); min-height: var(--sp-size-row-min); padding: 11px var(--sp-space-lg); }
656
+ .sp-row[aria-selected='true'] { background: var(--sp-color-yellow); }
657
+ .sp-row__main { flex: 1; min-width: 0; }
658
+ .sp-row__title { display: flex; align-items: center; gap: var(--sp-space-sm); flex-wrap: wrap; }
659
+ .sp-row__amount { text-align: right; }
660
+
661
+ /* Section label */
662
+ .sp-section-label { display: flex; align-items: center; justify-content: space-between; }
663
+
664
+ /* Bottom navigation */
665
+ .sp-nav { display: flex; align-items: center; padding: 10px 8px; background: var(--sp-color-white); border-top: var(--sp-border-regular) solid var(--sp-color-ink); }
666
+ .sp-nav__item { flex: 1; min-width: 0; padding: 0 2px; white-space: nowrap; display: grid; justify-items: center; gap: 3px; min-height: var(--sp-size-tap-target); background: none; border: 0; cursor: pointer; color: var(--sp-color-ink-muted); font-size: 12px; font-weight: 700; font-variation-settings: 'wght' 700; }
667
+ .sp-nav__label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
668
+ .sp-nav__pill { padding: 2px 10px; border: var(--sp-border-thin) solid transparent; border-radius: var(--sp-radius-nav-pill); }
669
+ .sp-nav__item[aria-current='page'] { color: var(--sp-color-ink); font-weight: 800; font-variation-settings: 'wght' 800; }
670
+ .sp-nav__item[aria-current='page'] .sp-nav__pill { background: var(--sp-color-yellow); border-color: var(--sp-color-ink); }
671
+ /* The add slot takes the button's own width (plus room for tilt and shadow); the four items share the rest. */
672
+ .sp-nav__add { flex: none; display: grid; place-items: center; padding: 0 calc(var(--sp-space-sm) + var(--sp-shadow-regular)) 0 var(--sp-space-sm); }
673
+ .sp-add {
674
+ display: grid; place-items: center; padding: 13px;
675
+ background: var(--sp-color-pink);
676
+ border: var(--sp-border-regular) solid var(--sp-color-ink); border-radius: var(--sp-radius-add-button);
677
+ box-shadow: var(--sp-shadow-regular) var(--sp-shadow-regular) 0 var(--sp-color-ink);
678
+ transform: rotate(var(--sp-tilt-add-button)); cursor: pointer;
679
+ }
680
+ .sp-add .sp-icon { font-size: var(--sp-size-icon-add); }
681
+ .sp-add:active { translate: var(--sp-shadow-regular) var(--sp-shadow-regular); box-shadow: none; }
682
+
683
+ /* Add menu: the nav add button opens a small speed dial (for example Type it,
684
+ Say it, Scan it). Markup: .sp-dial[data-pop-dial] > .sp-add + .sp-dial__menu >
685
+ .sp-dial__option*. behaviors.mjs (wirePopDials) places the options and
686
+ toggles [data-open]. Every duration is a motion token; --sp-motion-scale
687
+ slows everything down for review (4 = four times slower). */
688
+ .sp-dial {
689
+ --sp-dial-ease-pop: cubic-bezier(0.34, 1.56, 0.64, 1); /* lands about 10% past, then settles */
690
+ --sp-dial-ease-in: cubic-bezier(0.4, 0, 1, 1);
691
+ --_s: var(--sp-motion-scale, 1);
692
+ --_open: calc(var(--sp-motion-dial-open) * var(--_s));
693
+ --_close: calc(var(--sp-motion-dial-close) * var(--_s));
694
+ --_stagger: calc(var(--sp-motion-dial-stagger) * var(--_s));
695
+ position: relative; z-index: 3;
696
+ display: grid; place-items: center;
697
+ }
698
+ .sp-dial .sp-add { transition: transform var(--_close) var(--sp-dial-ease-in); }
699
+ .sp-dial .sp-add .sp-icon { display: inline-block; transition: rotate var(--_close) var(--sp-dial-ease-in); }
700
+ .sp-dial[data-open] .sp-add { transform: rotate(0deg); transition: transform var(--_open) var(--sp-dial-ease-pop); }
701
+ .sp-dial[data-open] .sp-add .sp-icon { rotate: 45deg; transition: rotate var(--_open) var(--sp-dial-ease-pop); }
702
+
703
+ .sp-dial__menu { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
704
+ .sp-dial__option {
705
+ --_in: calc(var(--i, 0) * var(--_stagger));
706
+ --_out: calc(var(--ri, 0) * var(--_stagger) / 2);
707
+ position: absolute; left: 0; top: 0;
708
+ display: grid; justify-items: center; gap: 6px;
709
+ padding: 0; background: none; border: 0; font: inherit; color: var(--sp-color-ink); cursor: pointer;
710
+ translate: -50% -50%; scale: 0.4; rotate: 0deg; opacity: 0; visibility: hidden; pointer-events: none;
711
+ transition:
712
+ translate var(--_close) var(--sp-dial-ease-in) var(--_out),
713
+ scale var(--_close) var(--sp-dial-ease-in) var(--_out),
714
+ rotate var(--_close) var(--sp-dial-ease-in) var(--_out),
715
+ opacity var(--_close) linear var(--_out),
716
+ visibility 0s linear calc(var(--_close) + var(--_out));
717
+ }
718
+ .sp-dial[data-open] .sp-dial__option {
719
+ translate: calc(-50% + var(--x, 0px)) calc(-50% + var(--y, 0px)); scale: 1; rotate: var(--tilt, 0deg);
720
+ opacity: 1; visibility: visible; pointer-events: auto;
721
+ transition:
722
+ translate var(--_open) var(--sp-dial-ease-pop) var(--_in),
723
+ scale var(--_open) var(--sp-dial-ease-pop) var(--_in),
724
+ rotate var(--_open) var(--sp-dial-ease-pop) var(--_in),
725
+ opacity calc(var(--_open) * 0.35) linear var(--_in),
726
+ visibility 0s linear var(--_in);
727
+ }
728
+ .sp-dial__sticker {
729
+ display: grid; place-items: center;
730
+ width: var(--sp-size-dial-option); height: var(--sp-size-dial-option);
731
+ background: var(--sp-color-white);
732
+ border: var(--sp-border-regular) solid var(--sp-color-ink); border-radius: var(--sp-radius-tile);
733
+ box-shadow: var(--sp-shadow-regular) var(--sp-shadow-regular) 0 var(--sp-color-ink);
734
+ transition: translate calc(var(--sp-motion-dial-press) * var(--_s)) linear, box-shadow calc(var(--sp-motion-dial-press) * var(--_s)) linear;
735
+ }
736
+ .sp-dial__sticker .sp-icon { font-size: var(--sp-size-icon-tile); }
737
+ .sp-dial__option:active .sp-dial__sticker, .sp-dial__option[data-chosen] .sp-dial__sticker { translate: var(--sp-shadow-regular) var(--sp-shadow-regular); box-shadow: none; }
738
+ .sp-dial__option:focus-visible { outline: none; }
739
+ .sp-dial__option:focus-visible .sp-dial__sticker { outline: 3px solid var(--sp-color-ink); outline-offset: 3px; }
740
+ .sp-dial__label {
741
+ padding: 2px 9px; white-space: nowrap;
742
+ background: var(--sp-color-white); border: var(--sp-border-thin) solid var(--sp-color-ink); border-radius: var(--sp-radius-badge);
743
+ font-size: 13px; font-weight: 800; font-variation-settings: 'wght' 800;
744
+ opacity: 0; translate: 0 4px;
745
+ transition: opacity calc(var(--_close) / 2) linear, translate calc(var(--_close) / 2) linear;
746
+ }
747
+ .sp-dial[data-open] .sp-dial__label {
748
+ opacity: 1; translate: 0 0;
749
+ transition: opacity calc(var(--_open) / 2) ease-out calc(var(--_in) + var(--_open) * 0.55), translate calc(var(--_open) / 2) ease-out calc(var(--_in) + var(--_open) * 0.55);
750
+ }
751
+
752
+ /* Stack layout: options in a column above the button, labels on the left. */
753
+ .sp-dial--stack .sp-dial__option { grid-auto-flow: column; align-items: center; gap: 10px; transform-origin: calc(100% - var(--sp-size-dial-option) / 2) 50%; }
754
+ .sp-dial--stack .sp-dial__label { order: -1; translate: 4px 0; }
755
+ .sp-dial--stack .sp-dial__option { translate: calc(-100% + var(--sp-size-dial-option) / 2) -50%; }
756
+ .sp-dial--stack[data-open] .sp-dial__option { translate: calc(-100% + var(--sp-size-dial-option) / 2 + var(--x, 0px)) calc(-50% + var(--y, 0px)); }
757
+
758
+ /* The scrim sits in the screen ([data-pop-dial-root]) or covers the page. */
759
+ [data-pop-dial-root] { position: relative; }
760
+ .sp-dial-scrim {
761
+ position: absolute; inset: 0; z-index: 2;
762
+ background: var(--sp-color-paper-scrim);
763
+ opacity: 0; visibility: hidden;
764
+ transition: opacity calc(var(--sp-motion-dial-scrim) * var(--sp-motion-scale, 1)) linear, visibility 0s linear calc(var(--sp-motion-dial-scrim) * var(--sp-motion-scale, 1));
765
+ }
766
+ .sp-dial-scrim--page { position: fixed; }
767
+ .sp-dial-scrim[data-open] { opacity: 1; visibility: visible; transition: opacity calc(var(--sp-motion-dial-scrim) * var(--sp-motion-scale, 1)) linear; }
768
+
769
+ /* Reduced motion: no travel, scale or spin; options and labels fade in place. */
770
+ .sp-motion-reduced .sp-dial__option, .sp-motion-reduced .sp-dial[data-open] .sp-dial__option {
771
+ translate: calc(-50% + var(--x, 0px)) calc(-50% + var(--y, 0px)); scale: 1; rotate: var(--tilt, 0deg);
772
+ transition: opacity calc(var(--sp-motion-fade) * var(--_s)) linear, visibility 0s linear calc(var(--sp-motion-fade) * var(--_s));
773
+ }
774
+ .sp-motion-reduced .sp-dial[data-open] .sp-dial__option { transition: opacity calc(var(--sp-motion-fade) * var(--_s)) linear; }
775
+ .sp-motion-reduced .sp-dial--stack .sp-dial__option, .sp-motion-reduced .sp-dial--stack[data-open] .sp-dial__option { translate: calc(-100% + var(--sp-size-dial-option) / 2 + var(--x, 0px)) calc(-50% + var(--y, 0px)); }
776
+ .sp-motion-reduced .sp-dial__label, .sp-motion-reduced .sp-dial[data-open] .sp-dial__label { translate: 0 0; transition: none; }
777
+ .sp-motion-reduced .sp-dial .sp-add, .sp-motion-reduced .sp-dial .sp-add .sp-icon { transition: none; }
778
+ @media (prefers-reduced-motion: reduce) {
779
+ .sp-dial__option, .sp-dial[data-open] .sp-dial__option {
780
+ translate: calc(-50% + var(--x, 0px)) calc(-50% + var(--y, 0px)); scale: 1; rotate: var(--tilt, 0deg);
781
+ transition: opacity var(--sp-motion-fade) linear, visibility 0s linear var(--sp-motion-fade);
782
+ }
783
+ .sp-dial[data-open] .sp-dial__option { transition: opacity var(--sp-motion-fade) linear; }
784
+ .sp-dial--stack .sp-dial__option, .sp-dial--stack[data-open] .sp-dial__option { translate: calc(-100% + var(--sp-size-dial-option) / 2 + var(--x, 0px)) calc(-50% + var(--y, 0px)); }
785
+ .sp-dial__label, .sp-dial[data-open] .sp-dial__label { translate: 0 0; transition: none; }
786
+ .sp-dial .sp-add, .sp-dial .sp-add .sp-icon { transition: none; }
787
+ }
788
+
789
+ /* Quick add */
790
+ .sp-quick-add { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-space-md); }
791
+ .sp-quick-add > button { display: grid; justify-items: center; gap: var(--sp-space-xs); padding: var(--sp-space-md) var(--sp-space-xs); font-size: 15px; font-weight: 800; font-variation-settings: 'wght' 800; }
792
+ .sp-quick-add .sp-icon { font-size: var(--sp-size-icon-tile); }
793
+
794
+ /* Sheet */
795
+ .sp-sheet { display: grid; gap: var(--sp-space-lg); padding: var(--sp-space-xl) var(--sp-space-xl) var(--sp-space-xxl); background: var(--sp-color-paper); border-top: var(--sp-border-regular) solid var(--sp-color-ink); border-radius: var(--sp-radius-sheet) var(--sp-radius-sheet) 0 0; max-height: 90vh; overflow: auto; }
796
+
797
+ /* Dialog */
798
+ .sp-dialog { max-height: calc(100dvh - 2 * var(--sp-space-xl)); overflow: auto; margin: var(--sp-space-xl); padding: var(--sp-space-xl); background: var(--sp-color-paper); border: var(--sp-border-regular) solid var(--sp-color-ink); border-radius: var(--sp-radius-card); box-shadow: var(--sp-shadow-large) var(--sp-shadow-large) 0 var(--sp-color-ink); }
799
+
800
+ /* Snackbar */
801
+ .sp-snackbar { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-space-md); padding: 14px var(--sp-space-lg); background: var(--sp-color-ink); color: var(--sp-color-white); border-radius: var(--sp-radius-snackbar); font-size: 15px; font-weight: 700; font-variation-settings: 'wght' 700; }
802
+ .sp-snackbar button { background: none; border: 0; color: var(--sp-color-yellow); font-weight: 800; font-variation-settings: 'wght' 800; cursor: pointer; }
803
+
804
+ /* Progress */
805
+ .sp-progress { height: var(--sp-size-progress-bar); background: var(--sp-color-white); border: var(--sp-border-thin) solid var(--sp-color-ink); border-radius: var(--sp-radius-progress-track); overflow: hidden; }
806
+ .sp-progress > span { display: block; height: 100%; width: var(--value, 0%); background: var(--sp-progress-fill, var(--sp-color-mint)); border-right: var(--sp-border-thin) solid var(--sp-color-ink); }
807
+ /* The track clips the fill, so its leading edge is a straight ink cut. No line at 0% or 100%. */
808
+ .sp-progress > span[style*='--value:0%'], .sp-progress[style*='--value:0%'] > span, .sp-progress[style*='--value:100%'] > span { border-right: 0; }
809
+
810
+ /* Charts */
811
+ .sp-legend { display: grid; gap: 8px; }
812
+ .sp-legend > div { display: flex; align-items: center; gap: var(--sp-space-sm); font-size: 14px; font-weight: 700; font-variation-settings: 'wght' 700; }
813
+ .sp-legend b { margin-left: auto; font-weight: 800; font-variation-settings: 'wght' 800; font-variant-numeric: tabular-nums; }
814
+ .sp-swatch { width: var(--sp-size-swatch); height: var(--sp-size-swatch); background: var(--sp-swatch-fill, var(--sp-color-white)); border: var(--sp-border-swatch) solid var(--sp-color-ink); border-radius: var(--sp-radius-swatch); }
815
+ /* Bars sit on a common baseline; labels below can grow with text size. */
816
+ .sp-bars { display: flex; align-items: flex-end; gap: 8px; min-height: 120px; }
817
+ .sp-bars > div { flex: 1; display: grid; justify-items: stretch; gap: 6px; text-align: center; font-size: 12px; font-weight: 700; color: var(--sp-color-ink-muted); }
818
+ .sp-bars i { display: block; height: var(--h); background: var(--sp-bar-fill, var(--sp-color-blue)); border: var(--sp-border-thin) solid var(--sp-color-ink); border-radius: 8px 8px 0 0; }
819
+ .sp-bars .is-current { color: var(--sp-color-ink); font-weight: 800; }
820
+ .sp-bars .is-current i { border-width: 3px; box-shadow: 2px 2px 0 var(--sp-color-ink); }
821
+
822
+ /* Tour */
823
+ .sp-dots { display: flex; gap: 6px; }
824
+ .sp-dots > i { width: var(--sp-size-progress-dot); height: var(--sp-size-progress-dot); background: var(--sp-color-white); border: var(--sp-border-thin) solid var(--sp-color-ink); border-radius: 5px; }
825
+ .sp-dots > i.is-reached { background: var(--sp-color-pink); }
826
+ .sp-dots > i.is-current { width: var(--sp-size-progress-dot-current); background: var(--sp-color-pink); }
827
+ .sp-tour-card { display: grid; gap: var(--sp-space-sm); background: var(--sp-color-yellow); padding: var(--sp-space-xl); border: var(--sp-border-regular) solid var(--sp-color-ink); border-radius: var(--sp-radius-card); box-shadow: var(--sp-shadow-large) var(--sp-shadow-large) 0 var(--sp-color-ink); }
828
+ /* The spotlight wraps the real control and owns the scrim, so pressing the
829
+ control (which drops its own shadow) never touches the dark overlay. The
830
+ negative margin keeps the layout exactly as it was. */
831
+ .sp-spotlight { position: relative; z-index: 1; display: grid; padding: 6px; margin: -6px; border: var(--sp-border-spotlight) solid var(--sp-color-yellow); border-radius: var(--sp-radius-spotlight); box-shadow: 0 0 0 100vmax var(--sp-color-scrim); pointer-events: none; }
832
+ .sp-spotlight > * { pointer-events: auto; }
833
+
834
+ /* Dialog and sheet as native <dialog> elements (see behaviors.mjs). */
835
+ dialog.sp-dialog, dialog.sp-sheet { color: inherit; }
836
+ dialog.sp-dialog::backdrop, dialog.sp-sheet::backdrop { background: rgb(20 20 20 / 45%); }
837
+ dialog.sp-sheet { margin: auto 0 0; width: 100%; max-width: none; border-left: 0; border-right: 0; border-bottom: 0; }