1@import "uplot/dist/uPlot.min.css";
2
3:root {
4 color-scheme: dark;
5 --page: #151529;
6 --panel: #0f0f20;
7 --rim: #0a0a17;
8 --surface: #1c1c37;
9 --raised: #29294b;
10 --hover: #232342;
11 --well: #00000033;
12 --line: #2f2f53;
13 --grid: #262645;
14 --axis: #454571;
15 --text: #efeeff;
16 --text-2: #c0bee2;
17 --muted: #8b89b8;
18 --accent: #938cff;
19 --accent-wash: #938cff26;
20 --on-accent: #10112a;
21 --focus: #a9a3ff;
22 --shadow: 0 1px 2px #0005, 0 4px 14px #0003;
23 --shimmer: color-mix(in srgb, var(--raised) 55%, var(--text-2));
24
25 --series-1: #3987e5;
26 --series-2: #d95926;
27 --series-3: #199e70;
28 --series-4: #c98500;
29 --series-5: #d55181;
30 --series-6: #008300;
31 --series-7: #9085e9;
32 --series-8: #e66767;
33 --other: #605e8a;
34
35 --good: #0ca30c;
36 --warning: #fab219;
37 --serious: #ec835a;
38 --critical: #d03b3b;
39 --stopped: #605e8a;
40
41 --sans: "Name Sans", system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", "Noto Sans", sans-serif;
42 --mono: "Name Mono", ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono", Menlo, Consolas, monospace;
43 --radius: 8px;
44 /** Height of buttons and inputs; set it on a container to shrink every control inside. */
45 --control: 30px;
46 --radius-lg: 12px;
47 --sidebar: 300px;
48 --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
49 --ease-overshoot: cubic-bezier(0.34, 1.56, 0.64, 1);
50
51 scrollbar-color: var(--axis) transparent;
52}
53
54@media (prefers-color-scheme: light) {
55 :root {
56 color-scheme: light;
57 --page: #f7f6fd;
58 --panel: #ebeaf7;
59 --rim: #dcdaee;
60 --surface: #ffffff;
61 --raised: #e9e7f8;
62 --hover: #eeedfa;
63 --well: #1f1a4d0a;
64 --line: #dad8ee;
65 --grid: #ebe9f6;
66 --axis: #bbb8da;
67 --text: #18163a;
68 --text-2: #484575;
69 --muted: #625f8c;
70 --accent: #1a46cd;
71 --accent-wash: #1a46cd14;
72 --on-accent: #ffffff;
73 --focus: #1a46cd;
74 --shadow: 0 1px 2px #1f1a4d12, 0 4px 14px #1f1a4d0a;
75 --shimmer: var(--surface);
76 --series-1: #2a78d6;
77 --series-2: #eb6834;
78 --series-3: #1baf7a;
79 --series-4: #eda100;
80 --series-5: #e87ba4;
81 --series-6: #008300;
82 --series-7: #4a3aa7;
83 --series-8: #e34948;
84 --other: #b0aed0;
85 --stopped: #b0aed0;
86 }
87}
88
89* { box-sizing: border-box; }
90
91html, body, #root { height: 100%; margin: 0; }
92
93body {
94 background: var(--page);
95 color: var(--text);
96 font: 14px/1.4 var(--sans);
97 -webkit-font-smoothing: antialiased;
98}
99
100a { color: inherit; text-decoration: none; }
101button { font: inherit; color: inherit; }
102:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-radius: 4px; }
103::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); }
104
105.shell {
106 display: grid;
107 grid-template: auto minmax(0, 1fr) / var(--sidebar) 1fr;
108 height: 100%;
109}
110.shell > :is(.sidebar, .main) { grid-row: 2; }
111
112/* The preview an admin started from the account menu; loud so it can't be forgotten. */
113.viewing-as {
114 grid-column: 1 / -1;
115 display: flex;
116 align-items: center;
117 gap: 8px;
118 padding: 4px 8px 4px 16px;
119 background: var(--accent);
120 color: var(--on-accent);
121 font-size: 13px;
122}
123.viewing-as .button { margin-left: auto; --control: 24px; border: 0; background: var(--on-accent); color: var(--accent); font-weight: 600; }
124.viewing-as .button:hover:not(:disabled) { background: color-mix(in srgb, var(--on-accent) 85%, var(--accent)); }
125
126/* sidebar ---------------------------------------------------------------- */
127
128.sidebar {
129 background: var(--panel);
130 border-right: 4px solid var(--rim);
131 display: flex;
132 flex-direction: column;
133 overflow: hidden;
134 font-size: 13px;
135}
136
137.brand {
138 display: flex;
139 align-items: center;
140 gap: 10px;
141 padding: 16px 16px 14px;
142 font-weight: 700;
143 font-size: 18px;
144 letter-spacing: -0.01em;
145 color: var(--accent);
146}
147
148.brand img { flex: none; width: 38px; height: 38px; }
149
150.nav {
151 flex: 1;
152 overflow-y: auto;
153 padding: 2px 8px 12px;
154}
155
156.nav-item {
157 display: flex;
158 align-items: center;
159 gap: 10px;
160 height: 30px;
161 padding: 0 10px;
162 border: 0;
163 border-radius: var(--radius);
164 color: var(--text-2);
165 cursor: pointer;
166 user-select: none;
167 width: 100%;
168 background: none;
169 text-align: left;
170 transition: background-color 150ms, color 150ms;
171}
172
173.nav-item:hover { background: var(--hover); color: var(--text); }
174.nav-item.active { background: var(--accent-wash); color: var(--accent); font-weight: 600; }
175.nav-item .icon { width: 16px; height: 16px; flex: none; opacity: 0.9; }
176.nav-item .label, .nav-sub .label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
177.nav-item .badge { display: flex; gap: 8px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
178.nav-item .tally .status-label { gap: 4px; color: var(--text-2); }
179.nav-item .tally .status { width: 8px; height: 8px; }
180
181.chevron { width: 14px; height: 14px; flex: none; color: var(--muted); transition: transform 350ms var(--ease-overshoot); }
182.chevron.open { transform: rotate(90deg); }
183
184/* A page link with its tabs folded under it; the toggle sits over the link's right end. */
185.nav-row { position: relative; }
186.nav-row .nav-item { padding-right: 36px; }
187.nav-toggle {
188 position: absolute;
189 top: 4px;
190 right: 6px;
191 display: grid;
192 place-items: center;
193 width: 22px;
194 height: 22px;
195 padding: 0;
196 border: 0;
197 border-radius: 99px;
198 background: none;
199 cursor: pointer;
200 transition: background-color 150ms;
201}
202.nav-toggle:hover { background: var(--raised); }
203.nav-toggle:hover .chevron { color: var(--text); }
204.nav-sub {
205 display: flex;
206 align-items: center;
207 gap: 8px;
208 height: 26px;
209 padding-left: 40px;
210 border-radius: var(--radius);
211 color: var(--text-2);
212 transition: background-color 150ms, color 150ms;
213}
214.nav-sub .icon { width: 14px; height: 14px; flex: none; opacity: 0.75; }
215.nav-sub:hover { background: var(--hover); color: var(--text); }
216.nav-sub[aria-current="page"] { background: var(--accent-wash); color: var(--accent); font-weight: 600; }
217/* With a tab lit below it, the page link keeps its color but drops the fill. */
218.nav-row:has(+ .nav-group.open [aria-current="page"]) .nav-item.active { background: none; }
219
220.nav-group {
221 display: grid;
222 grid-template-rows: 0fr;
223 opacity: 0;
224 transition: grid-template-rows 350ms var(--ease-out), opacity 200ms;
225}
226
227.nav-group.open { grid-template-rows: 1fr; opacity: 1; }
228.nav-group > div { min-height: 0; overflow: hidden; }
229
230.service-row {
231 display: grid;
232 grid-template-columns: 12px 16px 1fr 44px 44px 34px;
233 align-items: center;
234 gap: 6px;
235 height: 26px;
236 padding-left: 16px;
237 border-radius: var(--radius);
238 color: var(--text-2);
239 transition: background-color 150ms, color 150ms;
240}
241
242.service-row:hover { background: var(--hover); color: var(--text); }
243.service-row.active { background: var(--accent-wash); color: var(--accent); font-weight: 600; }
244.service-row .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
245/* Hover targets span the whole row height, not just the drawn pixels. */
246.service-row .spark { height: 100%; }
247
248
249.whoami { border-top: 2px solid var(--rim); padding: 6px 8px; }
250
251.whoami-button {
252 display: flex;
253 align-items: center;
254 gap: 10px;
255 width: 100%;
256 height: 40px;
257 padding: 0 10px 0 7px;
258 border: 0;
259 border-radius: var(--radius);
260 background: none;
261 color: var(--text-2);
262 font: inherit;
263 text-align: left;
264 cursor: pointer;
265 transition: background-color 150ms, color 150ms;
266}
267
268.whoami-button:is(:hover, :has(+ :popover-open)) { background: var(--hover); color: var(--text); }
269.whoami-button.active { background: var(--accent-wash); color: var(--accent); }
270.whoami-button .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
271.whoami-button .icon { flex: none; color: var(--muted); }
272.whoami .avatar { width: 26px; height: 26px; font-size: 12px; }
273
274/* Pinned just above the corner; a popover sits in the top layer, so the sidebar can't clip it. */
275.account-menu {
276 inset: auto auto 54px 8px;
277 width: calc(var(--sidebar) - 20px);
278 margin: 0;
279 padding: 4px;
280 border: 1px solid var(--line);
281 border-radius: var(--radius-lg);
282 background: var(--surface);
283 color: var(--text);
284 box-shadow: 0 8px 28px #0005;
285}
286
287.account-menu:popover-open { animation: menu-in 200ms var(--ease-out); }
288.view-as { display: grid; gap: 6px; margin-top: 4px; padding: 8px 10px 6px; border-top: 1px solid var(--line); font-size: 12px; }
289.view-as .button { justify-self: start; }
290@keyframes menu-in { from { opacity: 0; transform: translateY(6px); } }
291
292@media (max-width: 760px) {
293 body:has(.mcp-page) { --sidebar: 56px; }
294 body:has(.mcp-page) .sidebar > .brand { justify-content: center; padding: 12px 0; font-size: 0; }
295 body:has(.mcp-page) .sidebar > .brand img { width: 30px; height: 30px; }
296 body:has(.mcp-page) .sidebar > .nav { padding-inline: 6px; }
297 body:has(.mcp-page) .sidebar > .nav :is(.nav-item, .nav-row .nav-item) { justify-content: center; padding: 0; }
298 body:has(.mcp-page) .sidebar > .nav :is(.nav-item .badge, .nav-item .chevron, .nav-toggle, .nav-group) { display: none; }
299 body:has(.mcp-page) .sidebar > .nav .label, body:has(.mcp-page) .whoami-button :is(.name, .icon) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
300 body:has(.mcp-page) .whoami-button { justify-content: center; padding: 0; }
301 body:has(.mcp-page) .account-menu { width: 240px; }
302}
303
304
305/* status ------------------------------------------------------------------ */
306
307.status { width: 10px; height: 10px; display: block; transition: color 300ms; }
308.status[data-tip] { box-sizing: content-box; padding: 4px; margin: -4px; }
309.status.healthy { color: var(--good); }
310.status.degraded { color: var(--warning); }
311.status.down { color: var(--critical); }
312.status.stopped { color: var(--stopped); }
313.status.working { color: var(--text-2); }
314.status:is(.deploying, .restarting, .starting) { color: var(--accent); }
315.status:is(.deploying, .restarting, .starting, .working) { transform-box: view-box; transform-origin: center; animation: spin 1.1s cubic-bezier(0.55, 0.15, 0.45, 0.85) infinite; }
316@keyframes spin { to { transform: rotate(360deg); } }
317
318.status-label { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
319
320/* main -------------------------------------------------------------------- */
321
322.main {
323 overflow-y: auto;
324 background: radial-gradient(900px 320px at 50% -160px, var(--accent-wash), transparent);
325}
326
327.page {
328 max-width: 1400px;
329 margin: 0 auto;
330 --gutter: 28px;
331 padding: 22px var(--gutter) 48px;
332}
333
334.list-page { height: 100%; display: flex; flex-direction: column; padding-bottom: 0; }
335.list-page > * { flex: none; }
336.list-page .summary { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 350ms var(--ease-out), opacity 200ms; }
337.list-page .summary.open { grid-template-rows: 1fr; opacity: 1; }
338.list-page .summary > div { min-height: 0; overflow: hidden; }
339.summary-toggle {
340 display: grid;
341 place-items: center;
342 height: 16px;
343 margin: 4px 0;
344 border: 0;
345 border-radius: 4px;
346 background: linear-gradient(var(--line), var(--line)) center / 100% 1px no-repeat;
347 color: var(--muted);
348 cursor: pointer;
349}
350.summary-toggle svg { padding: 0 6px; box-sizing: content-box; background: var(--page); border-radius: 4px; transition: transform 350ms var(--ease-overshoot); }
351.summary-toggle:hover { color: var(--text); }
352.summary-toggle .flipped { transform: rotate(180deg); }
353/* Negative margins leave room for card shadows the scroller would otherwise clip. */
354.list-body {
355 flex: 1;
356 min-height: 0;
357 overflow: auto;
358 display: flex;
359 flex-direction: column;
360 margin: 0 -8px;
361 padding: 2px 8px 24px;
362 transition: padding-bottom 200ms var(--ease-out);
363}
364.list-body > * { flex: none; }
365.list-body > .fill { flex: 1 1 0; min-height: 240px; max-height: none; }
366:is(.list-page, .list-body) > .segmented { align-self: flex-start; }
367.list-page > .segmented { margin-bottom: 12px; }
368/* Pinned headers draw their rule as a shadow, since a sticky cell's background covers the collapsed border. */
369:is(.list-body, .list-body > *) > table.data > thead th {
370 position: sticky;
371 top: 0;
372 z-index: 1;
373 background: var(--surface);
374 border-bottom: 0;
375 box-shadow: inset 0 -1px var(--line);
376}
377.list-body.flush { margin: 0 calc(-1 * var(--gutter)); padding: 0; }
378.list-body.flush > :not(.fill, .edge, table) { margin-inline: var(--gutter); }
379.list-body.flush > :last-child:not(.fill) { margin-bottom: 24px; }
380:is(.list-body.flush, .list-body.flush > :is(.fill, .edge)) > table.data > * > tr > :first-child { padding-left: var(--gutter); }
381:is(.list-body.flush, .list-body.flush > :is(.fill, .edge)) > table.data > * > tr > :last-child { padding-right: var(--gutter); }
382.list-body.flush > :is(table.data, :not(.card) > table.data) > thead th { background: var(--page); }
383/* Room for a toast, so it never covers the end of a list. */
384body:has(.toast) .list-body { padding-bottom: 64px; }
385
386.page-head {
387 display: flex;
388 align-items: center;
389 gap: 12px;
390 margin-bottom: 18px;
391 min-height: 36px;
392}
393
394.page-head h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
395.page-head .sub { color: var(--muted); font-size: 13px; }
396
397h2 {
398 font-size: 14px;
399 font-weight: 650;
400 color: var(--accent);
401 margin: 28px 0 10px;
402}
403
404:is(td, dd, p) > a:not([class]), .page-head a.sub {
405 color: var(--accent);
406 text-decoration: underline dotted;
407 text-underline-offset: 3px;
408 border-radius: 3px;
409 transition: background-color 150ms;
410}
411
412:is(td, dd, p) > a:not([class]):hover, .page-head a.sub:hover {
413 text-decoration-style: solid;
414 background: var(--accent-wash);
415}
416
417.card {
418 background: var(--surface);
419 border: 1px solid var(--line);
420 border-radius: var(--radius-lg);
421 box-shadow: var(--shadow);
422 padding: 14px 16px;
423 min-width: 0;
424}
425
426.card-title { font-size: 13px; font-weight: 650; margin-bottom: 6px; display: flex; gap: 8px; align-items: baseline; }
427.card-title .sub { color: var(--muted); font-weight: 400; }
428.card-title .reading { font-weight: 500; font-variant-numeric: tabular-nums; }
429
430.grid { display: grid; gap: 8px; }
431.grid.charts { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
432.grid.tiles { grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); }
433
434.tile { padding: 12px 14px; }
435.tile .label { color: var(--text-2); font-size: 12px; }
436.tile .value { white-space: nowrap; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; margin-top: 2px; font-variant-numeric: tabular-nums; }
437.tile .detail { color: var(--muted); font-size: 12px; margin-top: 2px; }
438
439.segmented {
440 position: relative;
441 display: inline-flex;
442 gap: 2px;
443 background: var(--well);
444 border: 1px solid var(--line);
445 border-radius: 10px;
446 padding: 2px;
447}
448
449/* One weight for every label, so choosing one never nudges its neighbours. */
450.segmented :is(button, a) {
451 position: relative;
452 display: inline-flex;
453 align-items: center;
454 gap: 5px;
455 border: 0;
456 background: none;
457 padding: 3px 10px;
458 border-radius: 7px;
459 color: var(--text-2);
460 cursor: pointer;
461 font-size: 12px;
462 font-weight: 550;
463 white-space: nowrap;
464 transition: background-color 200ms, color 200ms, transform 200ms var(--ease-overshoot);
465}
466.segmented > :is(button, a):hover:not(:disabled) { color: var(--text); background: var(--hover); }
467.segmented > :is(button, a):active:not(:disabled) { transform: scale(0.94); }
468.segmented > button:disabled { cursor: default; }
469.segmented > button:disabled:not([aria-pressed="true"]) { opacity: 0.5; }
470.segmented :is(.pill, .ink) { position: absolute; pointer-events: none; }
471.segmented :is(.pill, .ink)[hidden] { display: none; }
472.segmented .pill {
473 z-index: 1;
474 top: 2px;
475 bottom: 2px;
476 border-radius: 7px;
477 background: var(--accent);
478 transition: left 300ms var(--ease-out), width 300ms var(--ease-out);
479}
480.segmented .ink { z-index: 2; inset: 0; display: flex; gap: 2px; padding: 2px; transition: clip-path 300ms var(--ease-out); }
481.segmented .ink > * { color: var(--on-accent); transition: none; }
482/* A tab's item count, after a space; `alarm` marks a tab whose count is trouble. */
483.segmented .count { opacity: 0.6; font-variant-numeric: tabular-nums; }
484.segmented > .alarm { color: color-mix(in srgb, var(--critical) 80%, var(--text)); }
485
486.button {
487 display: inline-flex;
488 align-items: center;
489 justify-content: center;
490 gap: 6px;
491 height: var(--control);
492 padding: 0 12px;
493 border-radius: var(--radius);
494 border: 2px solid var(--line);
495 background: var(--well);
496 cursor: pointer;
497 white-space: nowrap;
498 font-size: 13px;
499 font-weight: 500;
500 transition: background-color 150ms, border-color 150ms, color 150ms, transform 200ms var(--ease-overshoot);
501}
502
503.button:hover:not(:disabled) { background: var(--raised); border-color: var(--axis); }
504.button:active:not(:disabled) { transform: scale(0.95); }
505.button.danger { color: color-mix(in srgb, var(--critical) 80%, var(--text)); }
506.button.danger:hover:not(:disabled) {
507 background: color-mix(in srgb, var(--critical) 14%, transparent);
508 border-color: color-mix(in srgb, var(--critical) 60%, var(--line));
509}
510.button:disabled { opacity: 0.5; cursor: default; }
511.button[aria-busy="true"] { cursor: progress; }
512.button.icon-only { width: var(--control); padding: 0; border-radius: 99px; }
513
514/* The pending spinner slides in when a button gets aria-busy. */
515.button::before {
516 content: "";
517 flex: none;
518 width: 0;
519 height: 14px;
520 margin-right: -6px;
521 opacity: 0;
522 background: conic-gradient(transparent 15%, currentColor) right / 14px 14px no-repeat;
523 mask: radial-gradient(7px at calc(100% - 7px) 50%, transparent 5px, #000 5.5px 6.5px, transparent 7px);
524 transition: width 250ms var(--ease-out), margin 250ms var(--ease-out), opacity 200ms;
525}
526.button[aria-busy="true"]::before { width: 14px; margin-right: 0; opacity: 1; animation: spin 700ms linear infinite; }
527
528.button.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
529.button.primary:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 85%, var(--text)); border-color: transparent; }
530.button.primary.danger { background: var(--critical); border-color: var(--critical); color: #fff; }
531.button.primary.danger:hover:not(:disabled) { background: color-mix(in srgb, var(--critical) 85%, #000); border-color: transparent; }
532
533kbd {
534 display: inline-grid;
535 place-items: center;
536 min-width: 18px;
537 height: 18px;
538 padding: 0 5px;
539 border-radius: 5px;
540 background: var(--raised);
541 box-shadow: inset 0 -1px 0 var(--line);
542 color: var(--muted);
543 font: 500 11px/1 var(--sans);
544}
545/* Inset 3px from the button's inner edge on top, bottom and right, with the radius shrunk to match. */
546.button kbd {
547 height: calc(var(--control) - 10px);
548 margin-right: -9px;
549 border-radius: calc(var(--radius) - 5px);
550 background: color-mix(in srgb, currentColor 16%, transparent);
551 box-shadow: none;
552 color: inherit;
553 opacity: 0.8;
554}
555
556/* A round icon link or button in a list row; it shows while the row is hovered or holds focus. */
557.row-icon {
558 display: inline-grid;
559 place-items: center;
560 flex: none;
561 justify-self: center;
562 width: 22px;
563 height: 22px;
564 padding: 0;
565 border: 0;
566 border-radius: 99px;
567 background: var(--raised);
568 color: var(--text-2);
569 cursor: pointer;
570 opacity: 0;
571 transition: opacity 150ms, background-color 150ms, color 150ms;
572}
573:is(tr, .service-row):is(:hover, :focus-within) .row-icon { opacity: 1; }
574.row-icon:hover { background: var(--accent); color: var(--on-accent); }
575/* In the sidebar the link fills its whole cell so it's easy to hit; the 20px circle is drawn behind the icon. */
576.service-row .row-icon { position: relative; isolation: isolate; width: 100%; height: 100%; background: none; }
577.service-row .row-icon::before {
578 content: "";
579 position: absolute;
580 inset: 50% auto auto 50%;
581 width: 20px;
582 height: 20px;
583 translate: -50% -50%;
584 border-radius: 99px;
585 background: var(--raised);
586 z-index: -1;
587 transition: background-color 150ms;
588}
589.service-row .row-icon:hover { background: none; }
590.service-row .row-icon:hover::before { background: var(--accent); }
591
592/* app icons --------------------------------------------------------------- */
593
594/* The way out to the real app a page wraps; it follows the page title. */
595.open-app {
596 --control: 24px;
597 display: inline-flex;
598 align-items: center;
599 gap: 5px;
600 height: 24px;
601 padding: 0 6px 0 4px;
602 border: 1px solid var(--line);
603 border-radius: 99px;
604 background: var(--surface);
605 color: var(--text-2);
606 font-size: 12px;
607 font-weight: 500;
608 white-space: nowrap;
609 transition: border-color 150ms, background-color 150ms, color 150ms;
610}
611.open-app:hover { border-color: var(--axis); background: var(--hover); color: var(--text); }
612.open-app :is(img, .monogram) { width: 16px; height: 16px; }
613.open-app .monogram { font-size: 9px; border-radius: 4px; }
614.open-app .arrow { color: var(--muted); }
615.open-app:hover .arrow { color: var(--text); }
616
617.monogram {
618 display: grid;
619 place-items: center;
620 border-radius: 22%;
621 font-weight: 700;
622 color: #fff;
623}
624
625.service-row .monogram { width: 16px; height: 16px; font-size: 9px; border-radius: 4px; }
626.service-row img { width: 16px; height: 16px; }
627picture { display: flex; }
628
629/* charts ------------------------------------------------------------------ */
630
631.chart { position: relative; }
632.chart .u-legend { font-size: 12px; color: var(--text-2); text-align: left; margin-top: 4px; }
633.chart .u-legend th { font-weight: 400; }
634.chart .u-legend .u-marker { width: 10px; height: 4px; border-radius: 2px; }
635.chart .u-legend .u-series > * { padding: 1px 6px 1px 0; }
636.chart .u-legend .u-value { font-variant-numeric: tabular-nums; color: var(--text); }
637.chart .u-legend .u-series:first-child { display: none; }
638.chart .u-cursor-x { border-right: 1px dashed var(--axis); }
639.chart .u-cursor-y { display: none; }
640
641.donut-row { display: flex; gap: 20px; align-items: center; }
642.legend { display: grid; gap: 6px; font-size: 13px; }
643.legend-item { display: grid; grid-template-columns: 10px 1fr auto; gap: 8px; align-items: center; color: var(--text-2); }
644.legend-item .swatch { width: 10px; height: 10px; border-radius: 3px; }
645.legend-item .v { color: var(--text); font-variant-numeric: tabular-nums; }
646
647/* tables & logs ----------------------------------------------------------- */
648
649table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
650table.data th { text-align: left; font-weight: 500; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); }
651table.data th.num { text-align: right; }
652table.data td { padding: 6px 8px; border-bottom: 1px solid var(--grid); font-variant-numeric: tabular-nums; }
653table.data tbody tr { transition: background-color 150ms; }
654
655/* The shared text input and select. */
656.search {
657 width: 100%;
658 height: var(--control);
659 padding: 0 10px;
660 border-radius: var(--radius);
661 border: 2px solid var(--line);
662 background: var(--well);
663 color: var(--text);
664 font: inherit;
665 transition: border-color 150ms, box-shadow 150ms;
666}
667
668.search::placeholder { color: var(--muted); }
669/* A search field with a leading icon; the label is the box. */
670.search-box {
671 display: flex;
672 align-items: center;
673 gap: 8px;
674 height: var(--control);
675 padding: 0 10px;
676 border: 2px solid var(--line);
677 border-radius: var(--radius);
678 background: var(--well);
679 color: var(--muted);
680 transition: border-color 150ms, box-shadow 150ms;
681}
682.search-box:hover { border-color: var(--axis); }
683.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
684.search-box input { flex: 1; min-width: 0; height: 100%; border: 0; padding: 0; background: none; color: var(--text); font: inherit; outline: none; }
685.search-box input::placeholder { color: var(--muted); font-family: var(--sans); }
686.search:hover { border-color: var(--axis); }
687.search:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
688
689.logs {
690 font: 12px/1.55 var(--mono);
691 background: var(--surface);
692 border: 1px solid var(--line);
693 border-radius: var(--radius-lg);
694 box-shadow: var(--shadow);
695 padding: 8px 0;
696 margin-top: 8px;
697 max-height: 70vh;
698 overflow: auto;
699}
700
701.log { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 0 12px; white-space: pre-wrap; word-break: break-word; }
702.log:hover { background: var(--hover); }
703.log time { color: var(--muted); }
704.log.warn { background: color-mix(in srgb, var(--warning) 7%, transparent); }
705.log.error { background: color-mix(in srgb, var(--critical) 10%, transparent); color: inherit; }
706.log mark { background: var(--accent-wash); color: var(--accent); border-radius: 3px; }
707
708.empty { color: var(--muted); padding: 24px 0; text-align: center; }
709.empty.failed { display: grid; justify-items: center; gap: 10px; padding: 24px 12px; color: var(--text-2); }
710.empty.failed p { margin: 0; max-width: 60ch; }
711.empty.unconnected { display: grid; justify-items: center; gap: 8px; padding: 24px 12px; }
712.empty.unconnected svg { width: 20px; height: 20px; }
713.empty.unconnected p { margin: 0; max-width: 60ch; }
714.stale-note { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; grid-column: 1 / -1; margin: 0 0 8px; font-size: 12px; color: var(--text-2); }
715.metric .empty { height: 196px; display: grid; place-content: center; }
716.card.metric { padding: 10px 10px 4px 12px; }
717
718/* shared pieces ----------------------------------------------------------- */
719
720.spacer { flex: 1; }
721.muted { color: var(--muted); }
722.error { color: color-mix(in srgb, var(--critical) 80%, var(--text)); }
723.nowrap { white-space: nowrap; }
724.tile .warning { color: color-mix(in srgb, var(--warning) 70%, var(--text)); }
725.inline { display: inline-flex; align-items: center; gap: 6px; }
726.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
727/* Live numbers the stream stopped updating. */
728.tile.stale, .stale .spark { opacity: 0.45; transition: opacity 300ms; }
729.small { --control: 26px; }
730.reveal {
731 display: grid;
732 flex: none;
733 opacity: 0;
734 transition: grid-template-columns 200ms var(--ease-out), grid-template-rows 200ms var(--ease-out), opacity 200ms;
735}
736.reveal.x { grid-template-columns: 0fr; }
737.reveal.y { grid-template-rows: 0fr; }
738.reveal.shown { opacity: 1; }
739.reveal.x.shown { grid-template-columns: 1fr; }
740.reveal.y.shown { grid-template-rows: 1fr; }
741/* The clip margin keeps focus rings and press effects from being cut off. */
742.reveal > div { min-width: 0; min-height: 0; overflow: clip; overflow-clip-margin: 4px; }
743
744.sort {
745 display: inline-flex;
746 align-items: center;
747 gap: 4px;
748 border: 0;
749 background: none;
750 padding: 0;
751 color: inherit;
752 font-weight: inherit;
753 white-space: nowrap;
754 cursor: pointer;
755}
756.sort:hover { color: var(--text); }
757
758.meter { display: flex; gap: 2px; height: 6px; min-width: 80px; border-radius: 3px; background: var(--raised); overflow: hidden; }
759.meter span { background: var(--series-1); transition: width 300ms var(--ease-out); }
760.meter span.failed { background: var(--critical); }
761
762.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 13px; }
763.kv dt { color: var(--muted); }
764.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
765.mono { font-family: var(--mono); font-size: 12px; }
766.chip {
767 display: inline-block;
768 padding: 0 8px;
769 border: 0;
770 border-radius: 99px;
771 background: var(--raised);
772 color: inherit;
773 font: 12px/20px var(--sans);
774 white-space: nowrap;
775 transition: background-color 150ms, color 150ms;
776}
777button.chip { cursor: pointer; }
778:is(a, button).chip:hover { background: var(--accent-wash); color: var(--accent); }
779.chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
780.chip.warn { background: color-mix(in srgb, var(--warning) 16%, transparent); color: color-mix(in srgb, var(--warning) 65%, var(--text)); }
781.chips { display: flex; flex-wrap: wrap; gap: 4px; }
782
783/* Headline numbers as small pills beside the page title; what each one is lives in its tooltip. */
784.stats { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
785.stat {
786 display: inline-flex;
787 align-items: center;
788 gap: 5px;
789 height: 24px;
790 padding: 0 10px 0 8px;
791 border: 1px solid var(--line);
792 border-radius: 99px;
793 background: var(--surface);
794 color: var(--muted);
795 font-size: 12px;
796 white-space: nowrap;
797 font-variant-numeric: tabular-nums;
798}
799.stat b { color: var(--text); font-weight: 600; }
800.stat svg { flex: none; }
801.stat .status-label { gap: 5px; color: var(--text-2); }
802a.stat { transition: border-color 150ms, background-color 150ms; }
803a.stat:hover { border-color: var(--axis); background: var(--hover); }
804.stat .button { --control: 20px; margin-right: -8px; padding: 0 6px; border: 0; border-radius: 99px; font-size: 12px; }
805.stat .button.icon-only { width: 20px; padding: 0; }
806.stat-skeleton { height: 24px; border-radius: 99px; }
807
808.check input { accent-color: var(--accent); margin: 0; }
809.check:has(input:disabled) { cursor: progress; }
810
811/* Checkbox.tsx: the real input sits invisibly under the drawn box, which takes its states. */
812label.checkbox { position: relative; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-2); cursor: pointer; }
813.checkbox input { position: absolute; left: 0; width: 15px; height: 15px; margin: 0; opacity: 0; pointer-events: none; }
814.checkbox .box {
815 flex: none;
816 display: grid;
817 place-items: center;
818 width: 15px;
819 height: 15px;
820 border: 1px solid var(--axis);
821 border-radius: 4px;
822 background: var(--surface);
823 color: var(--on-accent);
824 transition: background-color 150ms, border-color 150ms;
825}
826.checkbox .box svg { grid-area: 1 / 1; width: 11px; height: 11px; stroke-width: 3.5; opacity: 0; transform: scale(0.5); transition: opacity 150ms, transform 200ms var(--ease-overshoot); }
827.checkbox:hover .box { border-color: var(--muted); }
828.checkbox input:is(:checked, :indeterminate) + .box { border-color: var(--accent); background: var(--accent); }
829.checkbox input:checked:not(:indeterminate) + .box .tick, .checkbox input:indeterminate + .box .dash { opacity: 1; transform: none; }
830.checkbox input:focus-visible + .box { outline: 2px solid var(--focus); outline-offset: 2px; }
831.checkbox:has(input:disabled) { color: var(--muted); cursor: default; }
832.checkbox input:disabled + .box { opacity: 0.45; }
833
834/* Row buttons fill the row's height; the cell's 1px height lets the inner div resolve 100%. */
835td.actions { width: 1%; height: 1px; padding: 0; }
836td.actions > div { display: flex; justify-content: flex-end; height: 100%; }
837td.actions :is(button, a) {
838 display: inline-flex;
839 text-decoration: none;
840 align-items: center;
841 gap: 6px;
842 min-height: 36px;
843 padding: 0 14px;
844 border: 0;
845 background: none;
846 color: var(--accent);
847 font-size: 13px;
848 font-weight: 500;
849 white-space: nowrap;
850 cursor: pointer;
851 transition: background-color 150ms, color 150ms, opacity 150ms;
852}
853td.actions :is(button, a):hover:not(:disabled) { background: var(--raised); }
854td.actions :is(button, a).danger { color: color-mix(in srgb, var(--critical) 80%, var(--text)); }
855td.actions :is(button, a).danger:hover:not(:disabled) { background: color-mix(in srgb, var(--critical) 12%, transparent); }
856td.actions button:disabled { opacity: 0.45; cursor: default; }
857td.actions button[aria-busy="true"] { opacity: 1; cursor: progress; }
858td.actions button[aria-busy="true"]::before {
859 content: "";
860 width: 12px;
861 height: 12px;
862 border: 1.5px solid currentColor;
863 border-right-color: transparent;
864 border-radius: 50%;
865 animation: spin 700ms linear infinite;
866}
867td.actions :is(button, a):focus-visible { outline-offset: -2px; }
868.service-icon { display: grid; }
869.service-icon img, .service-icon .monogram { width: 32px; height: 32px; font-size: 16px; }
870
871.copy {
872 border: 0;
873 border-radius: 4px;
874 margin: 0 -3px;
875 padding: 0 3px;
876 background: none;
877 font: inherit;
878 text-align: inherit;
879 cursor: copy;
880 transition: background-color 150ms;
881}
882.copy:hover { background: var(--accent-wash); }
883
884.sr-only { position: absolute; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
885
886.skeleton {
887 display: block;
888 min-height: 12px;
889 border-radius: var(--radius);
890 background: linear-gradient(100deg, var(--raised) 40%, var(--shimmer) 50%, var(--raised) 60%) 0 0 / 300% 100%;
891 opacity: 0.6;
892 animation: shimmer 1.6s ease-in-out infinite;
893}
894.row-skeleton { height: 14px; margin: 11px var(--gutter); }
895@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
896
897/* overlays ---------------------------------------------------------------- */
898
899.dialog {
900 width: min(440px, calc(100% - 32px));
901 padding: 0;
902 border: 1px solid var(--line);
903 border-radius: var(--radius-lg);
904 background: var(--surface);
905 color: var(--text);
906 box-shadow: 0 24px 64px #0007;
907 animation: dialog-in 260ms var(--ease-overshoot);
908}
909.dialog::backdrop { background: #06061280; animation: fade-in 200ms; }
910.dialog.closing { animation: dialog-out 140ms ease-in forwards; }
911.dialog.closing::backdrop { animation: fade-in 140ms reverse forwards; }
912.dialog form { display: grid; gap: 12px; padding: 18px 20px 16px; }
913.dialog fieldset { display: grid; gap: 12px; min-width: 0; margin: 0; padding: 0; border: 0; }
914.dialog h2 { margin: 0; color: var(--text); font-size: 16px; }
915.dialog .description { min-width: 0; color: var(--text-2); font-size: 13.5px; }
916.dialog .description p { margin: 0 0 6px; }
917.dialog .description p:last-child { margin-bottom: 0; }
918.dialog .field { display: grid; gap: 5px; color: var(--text-2); font-size: 12px; }
919.dialog .field .hint { color: var(--muted); }
920.dialog .segmented { justify-self: start; }
921.dialog .row { display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; gap: 10px; }
922.dialog .field select.search { padding-right: 4px; }
923.dialog .field .search:user-invalid { border-color: color-mix(in srgb, var(--critical) 60%, var(--line)); }
924.dialog .error { margin: 0; font-size: 13px; }
925.dialog .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
926@keyframes dialog-in { from { opacity: 0; transform: translateY(8px) scale(0.95); } }
927@keyframes dialog-out { to { opacity: 0; transform: scale(0.97); } }
928@keyframes fade-in { from { opacity: 0; } }
929
930.tooltip {
931 position: fixed;
932 inset: auto;
933 margin: 0;
934 border: 0;
935 overflow: visible;
936 pointer-events: none;
937 box-sizing: content-box;
938 width: max-content;
939 max-width: 300px;
940 padding: 5px 9px;
941 border-radius: 6px;
942 background: var(--text);
943 color: var(--page);
944 font-size: 12px;
945 line-height: 1.35;
946 text-align: center;
947 text-wrap: balance;
948 overflow-wrap: anywhere;
949 animation: tip-in 240ms var(--ease-overshoot);
950}
951.tooltip::after {
952 content: "";
953 position: absolute;
954 top: 100%;
955 left: var(--arrow);
956 width: 9px;
957 height: 9px;
958 border-radius: 2px;
959 background: inherit;
960 transform: translate(-50%, -60%) rotate(45deg);
961 z-index: -1;
962}
963.tooltip[data-side="bottom"] { animation-name: tip-in-below; }
964.tooltip[data-side="bottom"]::after { top: 0; transform: translate(-50%, -40%) rotate(45deg); }
965@keyframes tip-in { from { opacity: 0; transform: translateY(5px) scale(0.94); } }
966@keyframes tip-in-below { from { opacity: 0; transform: translateY(-5px) scale(0.94); } }
967
968.toasts {
969 position: fixed;
970 z-index: 50;
971 left: var(--sidebar);
972 right: 0;
973 bottom: 20px;
974 display: grid;
975 justify-items: center;
976 pointer-events: none;
977}
978.toast {
979 display: flex;
980 align-items: center;
981 gap: 12px;
982 max-width: min(640px, calc(100% - 32px));
983 padding: 6px 6px 6px 14px;
984 border: 1px solid var(--line);
985 border-radius: var(--radius);
986 background: var(--raised);
987 box-shadow: 0 8px 28px #0005;
988 font-size: 13px;
989 pointer-events: auto;
990 animation: toast-in 300ms var(--ease-overshoot);
991}
992.toast .close { display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: var(--radius); background: none; color: var(--muted); cursor: pointer; }
993.toast .close:hover { background: var(--hover); color: var(--text); }
994@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(0.96); } }
995
996@media (prefers-reduced-motion: reduce) {
997 *, ::before, ::after {
998 animation-duration: 1ms !important;
999 animation-iteration-count: 1 !important;
1000 transition-duration: 1ms !important;
1001 }
1002}
1003
1004/* TimeChart `inline`: values floating inside the plot instead of a legend. */
1005.chart .values { position: absolute; inset: 0; pointer-events: none; font-size: 12px; font-variant-numeric: tabular-nums; }
1006.chart .values > span {
1007 position: absolute;
1008 right: 4px;
1009 display: flex;
1010 align-items: center;
1011 gap: 5px;
1012 height: 16px;
1013 padding: 0 5px;
1014 border-radius: 4px;
1015 background: color-mix(in srgb, var(--page) 78%, transparent);
1016 color: var(--text-2);
1017 white-space: nowrap;
1018 transform: translateY(-50%);
1019}
1020.chart .values > span::before { content: ""; width: 8px; height: 2px; border-radius: 1px; background: var(--key); }
1021.chart .values b { color: var(--text); font-weight: 600; }
1022.chart .values.hover { inset: 0 auto 0 auto; }
1023.chart .values.hover > span { right: auto; left: 8px; }
1024.chart .values.hover.flip > span { left: auto; right: 8px; }
1025.chart .values time {
1026 position: absolute;
1027 top: 100%;
1028 left: 0;
1029 margin-top: 3px;
1030 padding: 1px 6px;
1031 border-radius: 4px;
1032 background: var(--raised);
1033 color: var(--text);
1034 font-size: 11px;
1035 white-space: nowrap;
1036 transform: translateX(-50%);
1037}
1038
1039/* Charts stacked flush on one time axis and crosshair; each title sits in a gap in its divider. */
1040.strip-head { display: flex; align-items: center; gap: 8px; height: 24px; }
1041.strip-head::before, .strip-head .rule { content: ""; height: 0; border-top: 1px solid var(--line); }
1042.strip-head::before { width: 10px; }
1043.strip-head .rule { flex: 1; }
1044.strip-head h3 { margin: 0; color: var(--text-2); font-size: 13px; font-weight: 650; }
1045.strip-head .segmented { --control: 24px; font-size: 12px; }
1046.strip-head .now {
1047 display: inline-flex;
1048 align-items: center;
1049 gap: 3px;
1050 color: var(--accent);
1051 font-size: 18px;
1052 font-weight: 650;
1053 white-space: nowrap;
1054 transition: opacity 300ms;
1055}
1056.strip-head .now svg { color: var(--muted); }
1057.strip-head .now svg:not(:first-child) { margin-left: 8px; }
1058.strip-head .now.stale { opacity: 0.4; }
1059.strip-head .now .status-label { font-size: 14px; }
1060.strip .empty.failed { min-height: 64px; padding: 8px 0; }
1061