@kymoscope/sdk 0.21.0 → 0.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,403 +1,409 @@
1
- /*
2
- * @kymoscope/sdk chart styles. Import once: `import '@kymoscope/sdk/styles/charts.css'`.
3
- *
4
- * Colours are CSS custom properties; override them on any ancestor of a chart
5
- * (or per chart with the `style` mount option):
6
- * --chart-bg plot background
7
- * --chart-muted axis labels, ticks, legend text
8
- * --chart-grid grid and frame lines
9
- * --accent cursor and highlights
10
- * Dark is the default; `data-color-scheme="light"` on an ancestor (or the
11
- * `theme` mount option) switches to light.
12
- */
13
- :where(:root) {
14
- --chart-bg: oklch(0.13 0.022 255);
15
- --chart-muted: oklch(0.52 0.02 255);
16
- --chart-grid: oklch(0.29 0.022 255);
17
- --accent: oklch(0.76 0.14 58);
18
- }
19
-
20
- :where([data-color-scheme='light']) {
21
- --chart-bg: oklch(0.995 0 0);
22
- --chart-muted: oklch(0.46 0.02 255);
23
- --chart-grid: oklch(0.87 0.018 255);
24
- --accent: oklch(0.52 0.19 58);
25
- }
26
-
27
- :where([data-color-scheme='dark']) {
28
- --chart-bg: oklch(0.13 0.022 255);
29
- --chart-muted: oklch(0.52 0.02 255);
30
- --chart-grid: oklch(0.29 0.022 255);
31
- --accent: oklch(0.76 0.14 58);
32
- }
33
-
34
- .kymo-chart {
35
- position: relative;
36
- display: flex;
37
- flex-direction: column;
38
- width: 100%;
39
- height: 100%;
40
- min-height: 0;
41
- background: var(--chart-bg);
42
- }
43
-
44
- .kymo-chart > * {
45
- flex: 1;
46
- min-height: 0;
47
- }
48
-
49
- .kymo-chart .chart-canvas-wrap {
50
- position: relative;
51
- width: 100%;
52
- }
53
-
54
- .kymo-chart .chart-canvas {
55
- display: block;
56
- width: 100%;
57
- vertical-align: top;
58
- }
59
-
60
- .kymo-chart .chart-overlay {
61
- position: absolute;
62
- top: 0;
63
- left: 0;
64
- }
65
-
66
- .kymo-chart .kymoscope-attribution {
67
- flex: none;
68
- }
69
-
70
- /* Alarm line drawn over the plot (kinds whose chart does not draw its own). */
71
- .kymo-chart > .kymo-alarm {
72
- position: absolute;
73
- inset: 0;
74
- flex: none;
75
- width: 100%;
76
- height: 100%;
77
- z-index: 2;
78
- pointer-events: none;
79
- overflow: hidden;
80
- }
81
-
82
- /* ── Annotations ───────────────────────────────────────────────────────────
83
- An overlay over the plot. It lets the pointer through to the chart except
84
- on the annotations; while a tool is set it takes the pointer to draw. */
85
- .kymo-chart > .kymo-annotations {
86
- position: absolute;
87
- inset: 0;
88
- flex: none;
89
- z-index: 3;
90
- pointer-events: none;
91
- overflow: hidden;
92
- }
93
-
94
- .kymo-annotations.is-drawing {
95
- pointer-events: auto;
96
- cursor: crosshair;
97
- box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--accent) 55%, transparent);
98
- }
99
-
100
- .kymo-annotations.is-tool-text { cursor: text; }
101
-
102
- .kymo-ann-svg {
103
- position: absolute;
104
- inset: 0;
105
- overflow: visible;
106
- }
107
-
108
- .kymo-ann-clip {
109
- position: absolute;
110
- inset: 0;
111
- pointer-events: none;
112
- }
113
-
114
- .kymo-ann { cursor: move; }
115
- /* Alert marks: read-only spans; only their top strip takes the pointer (it selects the rule). */
116
- .kymo-marks { pointer-events: none; }
117
- .kymo-mark-hit { fill: transparent; pointer-events: auto; cursor: pointer; }
118
- /* From backlog data that arrived late: the same span, quieter. */
119
- .kymo-mark--late { opacity: 0.6; }
120
- .kymo-ann-hit {
121
- fill: none;
122
- stroke: transparent;
123
- pointer-events: stroke;
124
- }
125
-
126
- .kymo-annotations.is-drawing .kymo-ann,
127
- .kymo-annotations.is-drawing .kymo-ann-hit,
128
- .kymo-annotations.is-drawing .kymo-ann-text {
129
- pointer-events: none;
130
- }
131
-
132
- .kymo-ann-selection {
133
- fill: none;
134
- stroke: var(--accent);
135
- stroke-width: 1;
136
- stroke-dasharray: 3 3;
137
- pointer-events: none;
138
- }
139
-
140
- .kymo-ann-text {
141
- position: absolute;
142
- pointer-events: auto;
143
- cursor: move;
144
- max-width: 60%;
145
- padding: 0.15em 0.45em;
146
- border-radius: 4px;
147
- font-family: var(--font-sans, inherit);
148
- font-weight: 600;
149
- line-height: 1.25;
150
- white-space: pre-wrap;
151
- overflow-wrap: anywhere;
152
- font-variant-numeric: tabular-nums;
153
- background: color-mix(in oklch, var(--chart-bg) 82%, transparent);
154
- user-select: none;
155
- }
156
-
157
- .kymo-ann-text--box {
158
- max-width: 40%;
159
- font-size: 12px;
160
- }
161
-
162
- .kymo-ann-handle {
163
- fill: var(--chart-bg);
164
- stroke: var(--accent);
165
- stroke-width: 1.5;
166
- pointer-events: all;
167
- }
168
- .kymo-ann-handle--nwse { cursor: nwse-resize; }
169
- .kymo-ann-handle--nesw { cursor: nesw-resize; }
170
- .kymo-ann-handle--end { cursor: crosshair; }
171
- .kymo-ann-handle:hover { fill: var(--accent); }
172
-
173
- .kymo-ann-text.is-selected {
174
- box-shadow: 0 0 0 1px var(--accent);
175
- }
176
-
177
- .kymo-ann-editor {
178
- min-width: 2ch;
179
- outline: none;
180
- cursor: text;
181
- user-select: text;
182
- pointer-events: auto;
183
- caret-color: currentColor;
184
- }
185
-
186
- .kymo-ann-text:has(.kymo-ann-editor) {
187
- box-shadow: 0 0 0 1px var(--accent), 0 0 0 4px color-mix(in oklch, var(--accent) 22%, transparent);
188
- }
189
-
190
- .kymo-ann-delete {
191
- position: absolute;
192
- z-index: 1;
193
- display: grid;
194
- place-items: center;
195
- width: 20px;
196
- height: 20px;
197
- padding: 0;
198
- border-radius: 50%;
199
- border: 1px solid color-mix(in oklch, var(--accent) 60%, var(--chart-grid));
200
- background: var(--chart-bg);
201
- color: var(--chart-muted);
202
- cursor: pointer;
203
- pointer-events: auto;
204
- }
205
-
206
- .kymo-ann-delete svg { stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
207
- .kymo-ann-delete:hover { color: oklch(0.7 0.19 25); border-color: currentColor; }
208
- .kymo-ann-delete:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
209
-
210
- @media (prefers-reduced-motion: no-preference) {
211
- .kymo-ann-delete { transition: color 0.14s ease, border-color 0.14s ease; }
212
- }
213
-
214
- /* ── Camera panel ──────────────────────────────────────────────────────────
215
- The video itself stays plain: no glow, no motion. The overlay is a small
216
- readout over it; only the LIVE dot breathes (not with reduced motion). */
217
- .kymo-camera {
218
- position: relative;
219
- width: 100%;
220
- height: 100%;
221
- overflow: hidden;
222
- background: var(--chart-bg);
223
- }
224
-
225
- .kymo-camera__video {
226
- position: absolute;
227
- inset: 0;
228
- display: block;
229
- width: 100%;
230
- height: 100%;
231
- }
232
-
233
- .kymo-camera__overlay {
234
- position: absolute;
235
- top: 8px;
236
- left: 8px;
237
- display: flex;
238
- flex-wrap: wrap;
239
- align-items: center;
240
- gap: 4px 8px;
241
- max-width: calc(100% - 16px);
242
- padding: 3px 8px;
243
- border-radius: 6px;
244
- font: 500 11px/1.5 var(--font-mono, ui-monospace, monospace);
245
- font-variant-numeric: tabular-nums;
246
- font-feature-settings: 'tnum' 1;
247
- color: var(--chart-fg, oklch(0.93 0.01 255));
248
- background: color-mix(in oklch, var(--chart-bg) 80%, transparent);
249
- box-shadow:
250
- inset 0 1px 0 color-mix(in oklch, white 7%, transparent),
251
- 0 0 0 1px color-mix(in oklch, var(--chart-grid) 70%, transparent),
252
- 0 2px 6px color-mix(in oklch, black 28%, transparent);
253
- pointer-events: none;
254
- }
255
-
256
- [data-color-scheme='light'] .kymo-camera__overlay { color: oklch(0.25 0.03 255); }
257
-
258
- .kymo-camera__name {
259
- overflow: hidden;
260
- max-width: 24ch;
261
- text-overflow: ellipsis;
262
- white-space: nowrap;
263
- }
264
-
265
- .kymo-camera__live {
266
- display: inline-flex;
267
- align-items: center;
268
- gap: 5px;
269
- font-weight: 700;
270
- letter-spacing: 0.04em;
271
- color: var(--accent);
272
- }
273
-
274
- .kymo-camera__live::before {
275
- content: '';
276
- width: 6px;
277
- height: 6px;
278
- border-radius: 50%;
279
- background: currentColor;
280
- box-shadow: 0 0 0 2px color-mix(in oklch, var(--accent) 22%, transparent);
281
- }
282
-
283
- .kymo-camera__ago { color: var(--chart-muted); }
284
-
285
- .kymo-camera__rec {
286
- font-weight: 700;
287
- letter-spacing: 0.04em;
288
- color: var(--chart-muted);
289
- }
290
-
291
- .kymo-camera__badge {
292
- padding: 0 5px;
293
- border-radius: 4px;
294
- border: 1px solid var(--chart-grid);
295
- color: var(--chart-muted);
296
- }
297
-
298
- .kymo-camera__badge.is-exact {
299
- border-color: color-mix(in oklch, var(--accent) 45%, transparent);
300
- color: var(--accent);
301
- }
302
-
303
- .kymo-camera__note { color: var(--accent); }
304
-
305
- .kymo-camera__empty {
306
- position: absolute;
307
- inset: 0;
308
- display: grid;
309
- place-content: center;
310
- justify-items: center;
311
- gap: 6px;
312
- padding: 16px;
313
- text-align: center;
314
- color: var(--chart-muted);
315
- font: 13px/1.45 var(--font-sans, system-ui, sans-serif);
316
- }
317
-
318
- .kymo-camera__empty p { margin: 0; }
319
-
320
- /* Over the canvas: the last frame never shows through (No signal). */
321
- .kymo-camera__empty--cover { background: var(--chart-bg); }
322
-
323
- .kymo-camera__empty-icon {
324
- width: 30px;
325
- height: 30px;
326
- margin-bottom: 2px;
327
- fill: none;
328
- stroke: currentColor;
329
- stroke-width: 1.5;
330
- stroke-linejoin: round;
331
- opacity: 0.75;
332
- }
333
-
334
- .kymo-camera__empty-title {
335
- font-weight: 600;
336
- color: var(--chart-fg, oklch(0.93 0.01 255));
337
- }
338
-
339
- [data-color-scheme='light'] .kymo-camera__empty-title { color: oklch(0.25 0.03 255); }
340
-
341
- .kymo-camera__empty-detail { font-family: var(--font-mono, ui-monospace, monospace); font-size: 12px; }
342
-
343
- /* A wall of cameras: tiles on a hairline grid (the gap shows the chart grid colour). */
344
- .kymo-camera-wall {
345
- position: relative;
346
- display: grid;
347
- gap: 2px;
348
- width: 100%;
349
- height: 100%;
350
- overflow: hidden;
351
- background: var(--chart-grid);
352
- }
353
-
354
- .kymo-camera.is-tile { cursor: zoom-in; }
355
-
356
- /* Hover and keyboard focus ring the tile itself; the video is never dimmed or animated. */
357
- .kymo-camera.is-tile::after {
358
- content: '';
359
- position: absolute;
360
- inset: 0;
361
- box-shadow: inset 0 0 0 1px transparent;
362
- pointer-events: none;
363
- }
364
-
365
- .kymo-camera.is-tile:hover::after { box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--accent) 55%, transparent); }
366
- .kymo-camera.is-tile:focus-visible { outline: none; }
367
- .kymo-camera.is-tile:focus-visible::after { box-shadow: inset 0 0 0 2px var(--accent); }
368
-
369
- .kymo-camera__all {
370
- position: absolute;
371
- top: 8px;
372
- right: 8px;
373
- display: inline-flex;
374
- align-items: center;
375
- gap: 6px;
376
- padding: 4px 10px 4px 8px;
377
- border: 0;
378
- border-radius: 6px;
379
- font: 500 12px/1.4 var(--font-sans, system-ui, sans-serif);
380
- color: var(--chart-fg, oklch(0.93 0.01 255));
381
- background: color-mix(in oklch, var(--chart-bg) 82%, transparent);
382
- box-shadow:
383
- inset 0 1px 0 color-mix(in oklch, white 7%, transparent),
384
- 0 0 0 1px color-mix(in oklch, var(--chart-grid) 70%, transparent),
385
- 0 2px 6px color-mix(in oklch, black 28%, transparent);
386
- cursor: pointer;
387
- }
388
-
389
- .kymo-camera__all svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; }
390
- .kymo-camera__all:hover { box-shadow: inset 0 1px 0 color-mix(in oklch, white 7%, transparent), 0 0 0 1px color-mix(in oklch, var(--accent) 55%, transparent), 0 2px 6px color-mix(in oklch, black 28%, transparent); }
391
- .kymo-camera__all:hover svg { color: var(--accent); }
392
- .kymo-camera__all:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
393
-
394
- [data-color-scheme='light'] .kymo-camera__all { color: oklch(0.25 0.03 255); }
395
-
396
- @media (prefers-reduced-motion: no-preference) {
397
- .kymo-camera__live::before { animation: kymo-camera-live 2s ease-in-out infinite; }
398
- .kymo-camera.is-tile::after, .kymo-camera__all { transition: box-shadow 0.15s ease; }
399
- }
400
-
401
- @keyframes kymo-camera-live {
402
- 50% { box-shadow: 0 0 0 4px color-mix(in oklch, var(--accent) 8%, transparent); }
403
- }
1
+ /*
2
+ * @kymoscope/sdk chart styles. Import once: `import '@kymoscope/sdk/styles/charts.css'`.
3
+ *
4
+ * Colours are CSS custom properties; override them on any ancestor of a chart
5
+ * (or per chart with the `style` mount option):
6
+ * --chart-bg plot background
7
+ * --chart-muted axis labels, ticks, legend text
8
+ * --chart-grid grid and frame lines
9
+ * --accent cursor and highlights
10
+ * Dark is the default; `data-color-scheme="light"` on an ancestor (or the
11
+ * `theme` mount option) switches to light.
12
+ */
13
+ :where(:root) {
14
+ --chart-bg: oklch(0.13 0.022 255);
15
+ --chart-muted: oklch(0.52 0.02 255);
16
+ --chart-grid: oklch(0.29 0.022 255);
17
+ --accent: oklch(0.76 0.14 58);
18
+ }
19
+
20
+ :where([data-color-scheme='light']) {
21
+ --chart-bg: oklch(0.995 0 0);
22
+ --chart-muted: oklch(0.46 0.02 255);
23
+ --chart-grid: oklch(0.87 0.018 255);
24
+ --accent: oklch(0.52 0.19 58);
25
+ }
26
+
27
+ :where([data-color-scheme='dark']) {
28
+ --chart-bg: oklch(0.13 0.022 255);
29
+ --chart-muted: oklch(0.52 0.02 255);
30
+ --chart-grid: oklch(0.29 0.022 255);
31
+ --accent: oklch(0.76 0.14 58);
32
+ }
33
+
34
+ .kymo-chart {
35
+ position: relative;
36
+ display: flex;
37
+ flex-direction: column;
38
+ width: 100%;
39
+ height: 100%;
40
+ min-height: 0;
41
+ background: var(--chart-bg);
42
+ /* touch (touchGestures.ts): the page still scrolls on a vertical swipe; pinches, sideways drags and taps are the
43
+ chart's. No callout or text selection on a long press (it opens the settings). */
44
+ touch-action: pan-y;
45
+ -webkit-touch-callout: none;
46
+ -webkit-user-select: none;
47
+ user-select: none;
48
+ }
49
+
50
+ .kymo-chart > * {
51
+ flex: 1;
52
+ min-height: 0;
53
+ }
54
+
55
+ .kymo-chart .chart-canvas-wrap {
56
+ position: relative;
57
+ width: 100%;
58
+ }
59
+
60
+ .kymo-chart .chart-canvas {
61
+ display: block;
62
+ width: 100%;
63
+ vertical-align: top;
64
+ }
65
+
66
+ .kymo-chart .chart-overlay {
67
+ position: absolute;
68
+ top: 0;
69
+ left: 0;
70
+ }
71
+
72
+ .kymo-chart .kymoscope-attribution {
73
+ flex: none;
74
+ }
75
+
76
+ /* Alarm line drawn over the plot (kinds whose chart does not draw its own). */
77
+ .kymo-chart > .kymo-alarm {
78
+ position: absolute;
79
+ inset: 0;
80
+ flex: none;
81
+ width: 100%;
82
+ height: 100%;
83
+ z-index: 2;
84
+ pointer-events: none;
85
+ overflow: hidden;
86
+ }
87
+
88
+ /* ── Annotations ───────────────────────────────────────────────────────────
89
+ An overlay over the plot. It lets the pointer through to the chart except
90
+ on the annotations; while a tool is set it takes the pointer to draw. */
91
+ .kymo-chart > .kymo-annotations {
92
+ position: absolute;
93
+ inset: 0;
94
+ flex: none;
95
+ z-index: 3;
96
+ pointer-events: none;
97
+ overflow: hidden;
98
+ }
99
+
100
+ .kymo-annotations.is-drawing {
101
+ pointer-events: auto;
102
+ cursor: crosshair;
103
+ box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--accent) 55%, transparent);
104
+ }
105
+
106
+ .kymo-annotations.is-tool-text { cursor: text; }
107
+
108
+ .kymo-ann-svg {
109
+ position: absolute;
110
+ inset: 0;
111
+ overflow: visible;
112
+ }
113
+
114
+ .kymo-ann-clip {
115
+ position: absolute;
116
+ inset: 0;
117
+ pointer-events: none;
118
+ }
119
+
120
+ .kymo-ann { cursor: move; }
121
+ /* Alert marks: read-only spans; only their top strip takes the pointer (it selects the rule). */
122
+ .kymo-marks { pointer-events: none; }
123
+ .kymo-mark-hit { fill: transparent; pointer-events: auto; cursor: pointer; }
124
+ /* From backlog data that arrived late: the same span, quieter. */
125
+ .kymo-mark--late { opacity: 0.6; }
126
+ .kymo-ann-hit {
127
+ fill: none;
128
+ stroke: transparent;
129
+ pointer-events: stroke;
130
+ }
131
+
132
+ .kymo-annotations.is-drawing .kymo-ann,
133
+ .kymo-annotations.is-drawing .kymo-ann-hit,
134
+ .kymo-annotations.is-drawing .kymo-ann-text {
135
+ pointer-events: none;
136
+ }
137
+
138
+ .kymo-ann-selection {
139
+ fill: none;
140
+ stroke: var(--accent);
141
+ stroke-width: 1;
142
+ stroke-dasharray: 3 3;
143
+ pointer-events: none;
144
+ }
145
+
146
+ .kymo-ann-text {
147
+ position: absolute;
148
+ pointer-events: auto;
149
+ cursor: move;
150
+ max-width: 60%;
151
+ padding: 0.15em 0.45em;
152
+ border-radius: 4px;
153
+ font-family: var(--font-sans, inherit);
154
+ font-weight: 600;
155
+ line-height: 1.25;
156
+ white-space: pre-wrap;
157
+ overflow-wrap: anywhere;
158
+ font-variant-numeric: tabular-nums;
159
+ background: color-mix(in oklch, var(--chart-bg) 82%, transparent);
160
+ user-select: none;
161
+ }
162
+
163
+ .kymo-ann-text--box {
164
+ max-width: 40%;
165
+ font-size: 12px;
166
+ }
167
+
168
+ .kymo-ann-handle {
169
+ fill: var(--chart-bg);
170
+ stroke: var(--accent);
171
+ stroke-width: 1.5;
172
+ pointer-events: all;
173
+ }
174
+ .kymo-ann-handle--nwse { cursor: nwse-resize; }
175
+ .kymo-ann-handle--nesw { cursor: nesw-resize; }
176
+ .kymo-ann-handle--end { cursor: crosshair; }
177
+ .kymo-ann-handle:hover { fill: var(--accent); }
178
+
179
+ .kymo-ann-text.is-selected {
180
+ box-shadow: 0 0 0 1px var(--accent);
181
+ }
182
+
183
+ .kymo-ann-editor {
184
+ min-width: 2ch;
185
+ outline: none;
186
+ cursor: text;
187
+ user-select: text;
188
+ pointer-events: auto;
189
+ caret-color: currentColor;
190
+ }
191
+
192
+ .kymo-ann-text:has(.kymo-ann-editor) {
193
+ box-shadow: 0 0 0 1px var(--accent), 0 0 0 4px color-mix(in oklch, var(--accent) 22%, transparent);
194
+ }
195
+
196
+ .kymo-ann-delete {
197
+ position: absolute;
198
+ z-index: 1;
199
+ display: grid;
200
+ place-items: center;
201
+ width: 20px;
202
+ height: 20px;
203
+ padding: 0;
204
+ border-radius: 50%;
205
+ border: 1px solid color-mix(in oklch, var(--accent) 60%, var(--chart-grid));
206
+ background: var(--chart-bg);
207
+ color: var(--chart-muted);
208
+ cursor: pointer;
209
+ pointer-events: auto;
210
+ }
211
+
212
+ .kymo-ann-delete svg { stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
213
+ .kymo-ann-delete:hover { color: oklch(0.7 0.19 25); border-color: currentColor; }
214
+ .kymo-ann-delete:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
215
+
216
+ @media (prefers-reduced-motion: no-preference) {
217
+ .kymo-ann-delete { transition: color 0.14s ease, border-color 0.14s ease; }
218
+ }
219
+
220
+ /* ── Camera panel ──────────────────────────────────────────────────────────
221
+ The video itself stays plain: no glow, no motion. The overlay is a small
222
+ readout over it; only the LIVE dot breathes (not with reduced motion). */
223
+ .kymo-camera {
224
+ position: relative;
225
+ width: 100%;
226
+ height: 100%;
227
+ overflow: hidden;
228
+ background: var(--chart-bg);
229
+ }
230
+
231
+ .kymo-camera__video {
232
+ position: absolute;
233
+ inset: 0;
234
+ display: block;
235
+ width: 100%;
236
+ height: 100%;
237
+ }
238
+
239
+ .kymo-camera__overlay {
240
+ position: absolute;
241
+ top: 8px;
242
+ left: 8px;
243
+ display: flex;
244
+ flex-wrap: wrap;
245
+ align-items: center;
246
+ gap: 4px 8px;
247
+ max-width: calc(100% - 16px);
248
+ padding: 3px 8px;
249
+ border-radius: 6px;
250
+ font: 500 11px/1.5 var(--font-mono, ui-monospace, monospace);
251
+ font-variant-numeric: tabular-nums;
252
+ font-feature-settings: 'tnum' 1;
253
+ color: var(--chart-fg, oklch(0.93 0.01 255));
254
+ background: color-mix(in oklch, var(--chart-bg) 80%, transparent);
255
+ box-shadow:
256
+ inset 0 1px 0 color-mix(in oklch, white 7%, transparent),
257
+ 0 0 0 1px color-mix(in oklch, var(--chart-grid) 70%, transparent),
258
+ 0 2px 6px color-mix(in oklch, black 28%, transparent);
259
+ pointer-events: none;
260
+ }
261
+
262
+ [data-color-scheme='light'] .kymo-camera__overlay { color: oklch(0.25 0.03 255); }
263
+
264
+ .kymo-camera__name {
265
+ overflow: hidden;
266
+ max-width: 24ch;
267
+ text-overflow: ellipsis;
268
+ white-space: nowrap;
269
+ }
270
+
271
+ .kymo-camera__live {
272
+ display: inline-flex;
273
+ align-items: center;
274
+ gap: 5px;
275
+ font-weight: 700;
276
+ letter-spacing: 0.04em;
277
+ color: var(--accent);
278
+ }
279
+
280
+ .kymo-camera__live::before {
281
+ content: '';
282
+ width: 6px;
283
+ height: 6px;
284
+ border-radius: 50%;
285
+ background: currentColor;
286
+ box-shadow: 0 0 0 2px color-mix(in oklch, var(--accent) 22%, transparent);
287
+ }
288
+
289
+ .kymo-camera__ago { color: var(--chart-muted); }
290
+
291
+ .kymo-camera__rec {
292
+ font-weight: 700;
293
+ letter-spacing: 0.04em;
294
+ color: var(--chart-muted);
295
+ }
296
+
297
+ .kymo-camera__badge {
298
+ padding: 0 5px;
299
+ border-radius: 4px;
300
+ border: 1px solid var(--chart-grid);
301
+ color: var(--chart-muted);
302
+ }
303
+
304
+ .kymo-camera__badge.is-exact {
305
+ border-color: color-mix(in oklch, var(--accent) 45%, transparent);
306
+ color: var(--accent);
307
+ }
308
+
309
+ .kymo-camera__note { color: var(--accent); }
310
+
311
+ .kymo-camera__empty {
312
+ position: absolute;
313
+ inset: 0;
314
+ display: grid;
315
+ place-content: center;
316
+ justify-items: center;
317
+ gap: 6px;
318
+ padding: 16px;
319
+ text-align: center;
320
+ color: var(--chart-muted);
321
+ font: 13px/1.45 var(--font-sans, system-ui, sans-serif);
322
+ }
323
+
324
+ .kymo-camera__empty p { margin: 0; }
325
+
326
+ /* Over the canvas: the last frame never shows through (No signal). */
327
+ .kymo-camera__empty--cover { background: var(--chart-bg); }
328
+
329
+ .kymo-camera__empty-icon {
330
+ width: 30px;
331
+ height: 30px;
332
+ margin-bottom: 2px;
333
+ fill: none;
334
+ stroke: currentColor;
335
+ stroke-width: 1.5;
336
+ stroke-linejoin: round;
337
+ opacity: 0.75;
338
+ }
339
+
340
+ .kymo-camera__empty-title {
341
+ font-weight: 600;
342
+ color: var(--chart-fg, oklch(0.93 0.01 255));
343
+ }
344
+
345
+ [data-color-scheme='light'] .kymo-camera__empty-title { color: oklch(0.25 0.03 255); }
346
+
347
+ .kymo-camera__empty-detail { font-family: var(--font-mono, ui-monospace, monospace); font-size: 12px; }
348
+
349
+ /* A wall of cameras: tiles on a hairline grid (the gap shows the chart grid colour). */
350
+ .kymo-camera-wall {
351
+ position: relative;
352
+ display: grid;
353
+ gap: 2px;
354
+ width: 100%;
355
+ height: 100%;
356
+ overflow: hidden;
357
+ background: var(--chart-grid);
358
+ }
359
+
360
+ .kymo-camera.is-tile { cursor: zoom-in; }
361
+
362
+ /* Hover and keyboard focus ring the tile itself; the video is never dimmed or animated. */
363
+ .kymo-camera.is-tile::after {
364
+ content: '';
365
+ position: absolute;
366
+ inset: 0;
367
+ box-shadow: inset 0 0 0 1px transparent;
368
+ pointer-events: none;
369
+ }
370
+
371
+ .kymo-camera.is-tile:hover::after { box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--accent) 55%, transparent); }
372
+ .kymo-camera.is-tile:focus-visible { outline: none; }
373
+ .kymo-camera.is-tile:focus-visible::after { box-shadow: inset 0 0 0 2px var(--accent); }
374
+
375
+ .kymo-camera__all {
376
+ position: absolute;
377
+ top: 8px;
378
+ right: 8px;
379
+ display: inline-flex;
380
+ align-items: center;
381
+ gap: 6px;
382
+ padding: 4px 10px 4px 8px;
383
+ border: 0;
384
+ border-radius: 6px;
385
+ font: 500 12px/1.4 var(--font-sans, system-ui, sans-serif);
386
+ color: var(--chart-fg, oklch(0.93 0.01 255));
387
+ background: color-mix(in oklch, var(--chart-bg) 82%, transparent);
388
+ box-shadow:
389
+ inset 0 1px 0 color-mix(in oklch, white 7%, transparent),
390
+ 0 0 0 1px color-mix(in oklch, var(--chart-grid) 70%, transparent),
391
+ 0 2px 6px color-mix(in oklch, black 28%, transparent);
392
+ cursor: pointer;
393
+ }
394
+
395
+ .kymo-camera__all svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; }
396
+ .kymo-camera__all:hover { box-shadow: inset 0 1px 0 color-mix(in oklch, white 7%, transparent), 0 0 0 1px color-mix(in oklch, var(--accent) 55%, transparent), 0 2px 6px color-mix(in oklch, black 28%, transparent); }
397
+ .kymo-camera__all:hover svg { color: var(--accent); }
398
+ .kymo-camera__all:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
399
+
400
+ [data-color-scheme='light'] .kymo-camera__all { color: oklch(0.25 0.03 255); }
401
+
402
+ @media (prefers-reduced-motion: no-preference) {
403
+ .kymo-camera__live::before { animation: kymo-camera-live 2s ease-in-out infinite; }
404
+ .kymo-camera.is-tile::after, .kymo-camera__all { transition: box-shadow 0.15s ease; }
405
+ }
406
+
407
+ @keyframes kymo-camera-live {
408
+ 50% { box-shadow: 0 0 0 4px color-mix(in oklch, var(--accent) 8%, transparent); }
409
+ }