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 { color: var(--text); background: var(--hover); }
467.segmented > :is(button, a):active { transform: scale(0.94); }
468.segmented :is(.pill, .ink) { position: absolute; pointer-events: none; }
469.segmented .pill {
470 z-index: 1;
471 top: 2px;
472 bottom: 2px;
473 border-radius: 7px;
474 background: var(--accent);
475 transition: left 300ms var(--ease-out), width 300ms var(--ease-out);
476}
477.segmented .ink { z-index: 2; inset: 0; display: flex; gap: 2px; padding: 2px; transition: clip-path 300ms var(--ease-out); }
478.segmented .ink > * { color: var(--on-accent); transition: none; }
479/* A tab's item count, after a space; `alarm` marks a tab whose count is trouble. */
480.segmented .count { opacity: 0.6; font-variant-numeric: tabular-nums; }
481.segmented > .alarm { color: color-mix(in srgb, var(--critical) 80%, var(--text)); }
482
483.button {
484 display: inline-flex;
485 align-items: center;
486 justify-content: center;
487 gap: 6px;
488 height: var(--control);
489 padding: 0 12px;
490 border-radius: var(--radius);
491 border: 2px solid var(--line);
492 background: var(--well);
493 cursor: pointer;
494 white-space: nowrap;
495 font-size: 13px;
496 font-weight: 500;
497 transition: background-color 150ms, border-color 150ms, color 150ms, transform 200ms var(--ease-overshoot);
498}
499
500.button:hover:not(:disabled) { background: var(--raised); border-color: var(--axis); }
501.button:active:not(:disabled) { transform: scale(0.95); }
502.button.danger { color: color-mix(in srgb, var(--critical) 80%, var(--text)); }
503.button.danger:hover:not(:disabled) {
504 background: color-mix(in srgb, var(--critical) 14%, transparent);
505 border-color: color-mix(in srgb, var(--critical) 60%, var(--line));
506}
507.button:disabled { opacity: 0.5; cursor: default; }
508.button[aria-busy="true"] { cursor: progress; }
509.button.icon-only { width: var(--control); padding: 0; border-radius: 99px; }
510
511/* The pending spinner slides in when a button gets aria-busy. */
512.button::before {
513 content: "";
514 flex: none;
515 width: 0;
516 height: 14px;
517 margin-right: -6px;
518 opacity: 0;
519 background: conic-gradient(transparent 15%, currentColor) right / 14px 14px no-repeat;
520 mask: radial-gradient(7px at calc(100% - 7px) 50%, transparent 5px, #000 5.5px 6.5px, transparent 7px);
521 transition: width 250ms var(--ease-out), margin 250ms var(--ease-out), opacity 200ms;
522}
523.button[aria-busy="true"]::before { width: 14px; margin-right: 0; opacity: 1; animation: spin 700ms linear infinite; }
524
525.button.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
526.button.primary:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 85%, var(--text)); border-color: transparent; }
527.button.primary.danger { background: var(--critical); border-color: var(--critical); color: #fff; }
528.button.primary.danger:hover:not(:disabled) { background: color-mix(in srgb, var(--critical) 85%, #000); border-color: transparent; }
529
530kbd {
531 display: inline-grid;
532 place-items: center;
533 min-width: 18px;
534 height: 18px;
535 padding: 0 5px;
536 border-radius: 5px;
537 background: var(--raised);
538 box-shadow: inset 0 -1px 0 var(--line);
539 color: var(--muted);
540 font: 500 11px/1 var(--sans);
541}
542/* Inset 3px from the button's inner edge on top, bottom and right, with the radius shrunk to match. */
543.button kbd {
544 height: calc(var(--control) - 10px);
545 margin-right: -9px;
546 border-radius: calc(var(--radius) - 5px);
547 background: color-mix(in srgb, currentColor 16%, transparent);
548 box-shadow: none;
549 color: inherit;
550 opacity: 0.8;
551}
552
553/* A round icon link or button in a list row; it shows while the row is hovered or holds focus. */
554.row-icon {
555 display: inline-grid;
556 place-items: center;
557 flex: none;
558 justify-self: center;
559 width: 22px;
560 height: 22px;
561 padding: 0;
562 border: 0;
563 border-radius: 99px;
564 background: var(--raised);
565 color: var(--text-2);
566 cursor: pointer;
567 opacity: 0;
568 transition: opacity 150ms, background-color 150ms, color 150ms;
569}
570:is(tr, .service-row):is(:hover, :focus-within) .row-icon { opacity: 1; }
571.row-icon:hover { background: var(--accent); color: var(--on-accent); }
572/* In the sidebar the link fills its whole cell so it's easy to hit; the 20px circle is drawn behind the icon. */
573.service-row .row-icon { position: relative; isolation: isolate; width: 100%; height: 100%; background: none; }
574.service-row .row-icon::before {
575 content: "";
576 position: absolute;
577 inset: 50% auto auto 50%;
578 width: 20px;
579 height: 20px;
580 translate: -50% -50%;
581 border-radius: 99px;
582 background: var(--raised);
583 z-index: -1;
584 transition: background-color 150ms;
585}
586.service-row .row-icon:hover { background: none; }
587.service-row .row-icon:hover::before { background: var(--accent); }
588
589/* app icons --------------------------------------------------------------- */
590
591/* The way out to the real app a page wraps; it follows the page title. */
592.open-app {
593 --control: 24px;
594 display: inline-flex;
595 align-items: center;
596 gap: 5px;
597 height: 24px;
598 padding: 0 6px 0 4px;
599 border: 1px solid var(--line);
600 border-radius: 99px;
601 background: var(--surface);
602 color: var(--text-2);
603 font-size: 12px;
604 font-weight: 500;
605 white-space: nowrap;
606 transition: border-color 150ms, background-color 150ms, color 150ms;
607}
608.open-app:hover { border-color: var(--axis); background: var(--hover); color: var(--text); }
609.open-app :is(img, .monogram) { width: 16px; height: 16px; }
610.open-app .monogram { font-size: 9px; border-radius: 4px; }
611.open-app .arrow { color: var(--muted); }
612.open-app:hover .arrow { color: var(--text); }
613
614.monogram {
615 display: grid;
616 place-items: center;
617 border-radius: 22%;
618 font-weight: 700;
619 color: #fff;
620}
621
622.service-row .monogram { width: 16px; height: 16px; font-size: 9px; border-radius: 4px; }
623.service-row img { width: 16px; height: 16px; }
624picture { display: flex; }
625
626/* charts ------------------------------------------------------------------ */
627
628.chart { position: relative; }
629.chart .u-legend { font-size: 12px; color: var(--text-2); text-align: left; margin-top: 4px; }
630.chart .u-legend th { font-weight: 400; }
631.chart .u-legend .u-marker { width: 10px; height: 4px; border-radius: 2px; }
632.chart .u-legend .u-series > * { padding: 1px 6px 1px 0; }
633.chart .u-legend .u-value { font-variant-numeric: tabular-nums; color: var(--text); }
634.chart .u-legend .u-series:first-child { display: none; }
635.chart .u-cursor-x { border-right: 1px dashed var(--axis); }
636.chart .u-cursor-y { display: none; }
637
638.donut-row { display: flex; gap: 20px; align-items: center; }
639.legend { display: grid; gap: 6px; font-size: 13px; }
640.legend-item { display: grid; grid-template-columns: 10px 1fr auto; gap: 8px; align-items: center; color: var(--text-2); }
641.legend-item .swatch { width: 10px; height: 10px; border-radius: 3px; }
642.legend-item .v { color: var(--text); font-variant-numeric: tabular-nums; }
643
644/* tables & logs ----------------------------------------------------------- */
645
646table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
647table.data th { text-align: left; font-weight: 500; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); }
648table.data th.num { text-align: right; }
649table.data td { padding: 6px 8px; border-bottom: 1px solid var(--grid); font-variant-numeric: tabular-nums; }
650table.data tbody tr { transition: background-color 150ms; }
651
652/* The shared text input and select. */
653.search {
654 width: 100%;
655 height: var(--control);
656 padding: 0 10px;
657 border-radius: var(--radius);
658 border: 2px solid var(--line);
659 background: var(--well);
660 color: var(--text);
661 font: inherit;
662 transition: border-color 150ms, box-shadow 150ms;
663}
664
665.search::placeholder { color: var(--muted); }
666/* A search field with a leading icon; the label is the box. */
667.search-box {
668 display: flex;
669 align-items: center;
670 gap: 8px;
671 height: var(--control);
672 padding: 0 10px;
673 border: 2px solid var(--line);
674 border-radius: var(--radius);
675 background: var(--well);
676 color: var(--muted);
677 transition: border-color 150ms, box-shadow 150ms;
678}
679.search-box:hover { border-color: var(--axis); }
680.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
681.search-box input { flex: 1; min-width: 0; height: 100%; border: 0; padding: 0; background: none; color: var(--text); font: inherit; outline: none; }
682.search-box input::placeholder { color: var(--muted); font-family: var(--sans); }
683.search:hover { border-color: var(--axis); }
684.search:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
685
686.logs {
687 font: 12px/1.55 var(--mono);
688 background: var(--surface);
689 border: 1px solid var(--line);
690 border-radius: var(--radius-lg);
691 box-shadow: var(--shadow);
692 padding: 8px 0;
693 margin-top: 8px;
694 max-height: 70vh;
695 overflow: auto;
696}
697
698.log { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 0 12px; white-space: pre-wrap; word-break: break-word; }
699.log:hover { background: var(--hover); }
700.log time { color: var(--muted); }
701.log.warn { background: color-mix(in srgb, var(--warning) 7%, transparent); }
702.log.error { background: color-mix(in srgb, var(--critical) 10%, transparent); color: inherit; }
703.log mark { background: var(--accent-wash); color: var(--accent); border-radius: 3px; }
704
705.empty { color: var(--muted); padding: 24px 0; text-align: center; }
706.empty.failed { display: grid; justify-items: center; gap: 10px; padding: 24px 12px; color: var(--text-2); }
707.empty.failed p { margin: 0; max-width: 60ch; }
708.empty.unconnected { display: grid; justify-items: center; gap: 8px; padding: 24px 12px; }
709.empty.unconnected svg { width: 20px; height: 20px; }
710.empty.unconnected p { margin: 0; max-width: 60ch; }
711.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); }
712.metric .empty { height: 196px; display: grid; place-content: center; }
713.card.metric { padding: 10px 10px 4px 12px; }
714
715/* shared pieces ----------------------------------------------------------- */
716
717.spacer { flex: 1; }
718.muted { color: var(--muted); }
719.error { color: color-mix(in srgb, var(--critical) 80%, var(--text)); }
720.nowrap { white-space: nowrap; }
721.tile .warning { color: color-mix(in srgb, var(--warning) 70%, var(--text)); }
722.inline { display: inline-flex; align-items: center; gap: 6px; }
723.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
724/* Live numbers the stream stopped updating. */
725.tile.stale, .stale .spark { opacity: 0.45; transition: opacity 300ms; }
726.small { --control: 26px; }
727.reveal {
728 display: grid;
729 flex: none;
730 opacity: 0;
731 transition: grid-template-columns 200ms var(--ease-out), grid-template-rows 200ms var(--ease-out), opacity 200ms;
732}
733.reveal.x { grid-template-columns: 0fr; }
734.reveal.y { grid-template-rows: 0fr; }
735.reveal.shown { opacity: 1; }
736.reveal.x.shown { grid-template-columns: 1fr; }
737.reveal.y.shown { grid-template-rows: 1fr; }
738/* The clip margin keeps focus rings and press effects from being cut off. */
739.reveal > div { min-width: 0; min-height: 0; overflow: clip; overflow-clip-margin: 4px; }
740
741.sort {
742 display: inline-flex;
743 align-items: center;
744 gap: 4px;
745 border: 0;
746 background: none;
747 padding: 0;
748 color: inherit;
749 font-weight: inherit;
750 white-space: nowrap;
751 cursor: pointer;
752}
753.sort:hover { color: var(--text); }
754
755.meter { display: flex; gap: 2px; height: 6px; min-width: 80px; border-radius: 3px; background: var(--raised); overflow: hidden; }
756.meter span { background: var(--series-1); transition: width 300ms var(--ease-out); }
757.meter span.failed { background: var(--critical); }
758
759.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 13px; }
760.kv dt { color: var(--muted); }
761.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
762.mono { font-family: var(--mono); font-size: 12px; }
763.chip {
764 display: inline-block;
765 padding: 0 8px;
766 border: 0;
767 border-radius: 99px;
768 background: var(--raised);
769 color: inherit;
770 font: 12px/20px var(--sans);
771 white-space: nowrap;
772 transition: background-color 150ms, color 150ms;
773}
774button.chip { cursor: pointer; }
775:is(a, button).chip:hover { background: var(--accent-wash); color: var(--accent); }
776.chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
777.chip.warn { background: color-mix(in srgb, var(--warning) 16%, transparent); color: color-mix(in srgb, var(--warning) 65%, var(--text)); }
778.chips { display: flex; flex-wrap: wrap; gap: 4px; }
779
780/* Headline numbers as small pills beside the page title; what each one is lives in its tooltip. */
781.stats { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
782.stat {
783 display: inline-flex;
784 align-items: center;
785 gap: 5px;
786 height: 24px;
787 padding: 0 10px 0 8px;
788 border: 1px solid var(--line);
789 border-radius: 99px;
790 background: var(--surface);
791 color: var(--muted);
792 font-size: 12px;
793 white-space: nowrap;
794 font-variant-numeric: tabular-nums;
795}
796.stat b { color: var(--text); font-weight: 600; }
797.stat svg { flex: none; }
798.stat .status-label { gap: 5px; color: var(--text-2); }
799a.stat { transition: border-color 150ms, background-color 150ms; }
800a.stat:hover { border-color: var(--axis); background: var(--hover); }
801.stat .button { --control: 20px; margin-right: -8px; padding: 0 6px; border: 0; border-radius: 99px; font-size: 12px; }
802.stat .button.icon-only { width: 20px; padding: 0; }
803.stat-skeleton { height: 24px; border-radius: 99px; }
804
805.check input { accent-color: var(--accent); margin: 0; }
806.check:has(input:disabled) { cursor: progress; }
807
808/* Checkbox.tsx: the real input sits invisibly under the drawn box, which takes its states. */
809label.checkbox { position: relative; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-2); cursor: pointer; }
810.checkbox input { position: absolute; left: 0; width: 15px; height: 15px; margin: 0; opacity: 0; pointer-events: none; }
811.checkbox .box {
812 flex: none;
813 display: grid;
814 place-items: center;
815 width: 15px;
816 height: 15px;
817 border: 1px solid var(--axis);
818 border-radius: 4px;
819 background: var(--surface);
820 color: var(--on-accent);
821 transition: background-color 150ms, border-color 150ms;
822}
823.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); }
824.checkbox:hover .box { border-color: var(--muted); }
825.checkbox input:is(:checked, :indeterminate) + .box { border-color: var(--accent); background: var(--accent); }
826.checkbox input:checked:not(:indeterminate) + .box .tick, .checkbox input:indeterminate + .box .dash { opacity: 1; transform: none; }
827.checkbox input:focus-visible + .box { outline: 2px solid var(--focus); outline-offset: 2px; }
828.checkbox:has(input:disabled) { color: var(--muted); cursor: default; }
829.checkbox input:disabled + .box { opacity: 0.45; }
830
831/* Row buttons fill the row's height; the cell's 1px height lets the inner div resolve 100%. */
832td.actions { width: 1%; height: 1px; padding: 0; }
833td.actions > div { display: flex; justify-content: flex-end; height: 100%; }
834td.actions :is(button, a) {
835 display: inline-flex;
836 text-decoration: none;
837 align-items: center;
838 gap: 6px;
839 min-height: 36px;
840 padding: 0 14px;
841 border: 0;
842 background: none;
843 color: var(--accent);
844 font-size: 13px;
845 font-weight: 500;
846 white-space: nowrap;
847 cursor: pointer;
848 transition: background-color 150ms, color 150ms, opacity 150ms;
849}
850td.actions :is(button, a):hover:not(:disabled) { background: var(--raised); }
851td.actions :is(button, a).danger { color: color-mix(in srgb, var(--critical) 80%, var(--text)); }
852td.actions :is(button, a).danger:hover:not(:disabled) { background: color-mix(in srgb, var(--critical) 12%, transparent); }
853td.actions button:disabled { opacity: 0.45; cursor: default; }
854td.actions button[aria-busy="true"] { opacity: 1; cursor: progress; }
855td.actions button[aria-busy="true"]::before {
856 content: "";
857 width: 12px;
858 height: 12px;
859 border: 1.5px solid currentColor;
860 border-right-color: transparent;
861 border-radius: 50%;
862 animation: spin 700ms linear infinite;
863}
864td.actions :is(button, a):focus-visible { outline-offset: -2px; }
865.service-icon { display: grid; }
866.service-icon img, .service-icon .monogram { width: 32px; height: 32px; font-size: 16px; }
867
868.copy {
869 border: 0;
870 border-radius: 4px;
871 margin: 0 -3px;
872 padding: 0 3px;
873 background: none;
874 font: inherit;
875 text-align: inherit;
876 cursor: copy;
877 transition: background-color 150ms;
878}
879.copy:hover { background: var(--accent-wash); }
880
881.sr-only { position: absolute; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
882
883.skeleton {
884 display: block;
885 min-height: 12px;
886 border-radius: var(--radius);
887 background: linear-gradient(100deg, var(--raised) 40%, var(--shimmer) 50%, var(--raised) 60%) 0 0 / 300% 100%;
888 opacity: 0.6;
889 animation: shimmer 1.6s ease-in-out infinite;
890}
891.row-skeleton { height: 14px; margin: 11px var(--gutter); }
892@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
893
894/* overlays ---------------------------------------------------------------- */
895
896.dialog {
897 width: min(440px, calc(100% - 32px));
898 padding: 0;
899 border: 1px solid var(--line);
900 border-radius: var(--radius-lg);
901 background: var(--surface);
902 color: var(--text);
903 box-shadow: 0 24px 64px #0007;
904 animation: dialog-in 260ms var(--ease-overshoot);
905}
906.dialog::backdrop { background: #06061280; animation: fade-in 200ms; }
907.dialog.closing { animation: dialog-out 140ms ease-in forwards; }
908.dialog.closing::backdrop { animation: fade-in 140ms reverse forwards; }
909.dialog form { display: grid; gap: 12px; padding: 18px 20px 16px; }
910.dialog fieldset { display: grid; gap: 12px; min-width: 0; margin: 0; padding: 0; border: 0; }
911.dialog h2 { margin: 0; color: var(--text); font-size: 16px; }
912.dialog .description { min-width: 0; color: var(--text-2); font-size: 13.5px; }
913.dialog .description p { margin: 0 0 6px; }
914.dialog .description p:last-child { margin-bottom: 0; }
915.dialog .field { display: grid; gap: 5px; color: var(--text-2); font-size: 12px; }
916.dialog .field .hint { color: var(--muted); }
917.dialog .segmented { justify-self: start; }
918.dialog .row { display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; gap: 10px; }
919.dialog .field select.search { padding-right: 4px; }
920.dialog .field .search:user-invalid { border-color: color-mix(in srgb, var(--critical) 60%, var(--line)); }
921.dialog .error { margin: 0; font-size: 13px; }
922.dialog .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
923@keyframes dialog-in { from { opacity: 0; transform: translateY(8px) scale(0.95); } }
924@keyframes dialog-out { to { opacity: 0; transform: scale(0.97); } }
925@keyframes fade-in { from { opacity: 0; } }
926
927.tooltip {
928 position: fixed;
929 inset: auto;
930 margin: 0;
931 border: 0;
932 overflow: visible;
933 pointer-events: none;
934 box-sizing: content-box;
935 width: max-content;
936 max-width: 300px;
937 padding: 5px 9px;
938 border-radius: 6px;
939 background: var(--text);
940 color: var(--page);
941 font-size: 12px;
942 line-height: 1.35;
943 text-align: center;
944 text-wrap: balance;
945 overflow-wrap: anywhere;
946 animation: tip-in 240ms var(--ease-overshoot);
947}
948.tooltip::after {
949 content: "";
950 position: absolute;
951 top: 100%;
952 left: var(--arrow);
953 width: 9px;
954 height: 9px;
955 border-radius: 2px;
956 background: inherit;
957 transform: translate(-50%, -60%) rotate(45deg);
958 z-index: -1;
959}
960.tooltip[data-side="bottom"] { animation-name: tip-in-below; }
961.tooltip[data-side="bottom"]::after { top: 0; transform: translate(-50%, -40%) rotate(45deg); }
962@keyframes tip-in { from { opacity: 0; transform: translateY(5px) scale(0.94); } }
963@keyframes tip-in-below { from { opacity: 0; transform: translateY(-5px) scale(0.94); } }
964
965.toasts {
966 position: fixed;
967 z-index: 50;
968 left: var(--sidebar);
969 right: 0;
970 bottom: 20px;
971 display: grid;
972 justify-items: center;
973 pointer-events: none;
974}
975.toast {
976 display: flex;
977 align-items: center;
978 gap: 12px;
979 max-width: min(640px, calc(100% - 32px));
980 padding: 6px 6px 6px 14px;
981 border: 1px solid var(--line);
982 border-radius: var(--radius);
983 background: var(--raised);
984 box-shadow: 0 8px 28px #0005;
985 font-size: 13px;
986 pointer-events: auto;
987 animation: toast-in 300ms var(--ease-overshoot);
988}
989.toast .close { display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: var(--radius); background: none; color: var(--muted); cursor: pointer; }
990.toast .close:hover { background: var(--hover); color: var(--text); }
991@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(0.96); } }
992
993@media (prefers-reduced-motion: reduce) {
994 *, ::before, ::after {
995 animation-duration: 1ms !important;
996 animation-iteration-count: 1 !important;
997 transition-duration: 1ms !important;
998 }
999}
1000
1001/* TimeChart `inline`: values floating inside the plot instead of a legend. */
1002.chart .values { position: absolute; inset: 0; pointer-events: none; font-size: 12px; font-variant-numeric: tabular-nums; }
1003.chart .values > span {
1004 position: absolute;
1005 right: 4px;
1006 display: flex;
1007 align-items: center;
1008 gap: 5px;
1009 height: 16px;
1010 padding: 0 5px;
1011 border-radius: 4px;
1012 background: color-mix(in srgb, var(--page) 78%, transparent);
1013 color: var(--text-2);
1014 white-space: nowrap;
1015 transform: translateY(-50%);
1016}
1017.chart .values > span::before { content: ""; width: 8px; height: 2px; border-radius: 1px; background: var(--key); }
1018.chart .values b { color: var(--text); font-weight: 600; }
1019.chart .values.hover { inset: 0 auto 0 auto; }
1020.chart .values.hover > span { right: auto; left: 8px; }
1021.chart .values.hover.flip > span { left: auto; right: 8px; }
1022.chart .values time {
1023 position: absolute;
1024 top: 100%;
1025 left: 0;
1026 margin-top: 3px;
1027 padding: 1px 6px;
1028 border-radius: 4px;
1029 background: var(--raised);
1030 color: var(--text);
1031 font-size: 11px;
1032 white-space: nowrap;
1033 transform: translateX(-50%);
1034}
1035
1036/* Charts stacked flush on one time axis and crosshair; each title sits in a gap in its divider. */
1037.strip-head { display: flex; align-items: center; gap: 8px; height: 24px; }
1038.strip-head::before, .strip-head .rule { content: ""; height: 0; border-top: 1px solid var(--line); }
1039.strip-head::before { width: 10px; }
1040.strip-head .rule { flex: 1; }
1041.strip-head h3 { margin: 0; color: var(--text-2); font-size: 13px; font-weight: 650; }
1042.strip-head .segmented { --control: 24px; font-size: 12px; }
1043.strip-head .now {
1044 display: inline-flex;
1045 align-items: center;
1046 gap: 3px;
1047 color: var(--accent);
1048 font-size: 18px;
1049 font-weight: 650;
1050 white-space: nowrap;
1051 transition: opacity 300ms;
1052}
1053.strip-head .now svg { color: var(--muted); }
1054.strip-head .now svg:not(:first-child) { margin-left: 8px; }
1055.strip-head .now.stale { opacity: 0.4; }
1056.strip-head .now .status-label { font-size: 14px; }
1057.strip .empty.failed { min-height: 64px; padding: 8px 0; }
1058