forge
Explore
Log in

Don't you dare go Hollow

im_old

Clone
★ 0

0 watching0 forksRustGPL-3.0755.6 KiB84318dcTahinli2 months ago77 commits

main.scss1368 lines, 30.9 KiBHistoryRawDownload
1// Design tokens — two design languages selected by <html data-ui>, mirroring
2// izlek/style/main.scss:
3//
4// instrument dense, neutral-cool tool (the default; the bare :root in the
5// first block doubles as its light set and as a fallback for any
6// document that somehow reaches this stylesheet without data-ui)
7// ledger warm paper, hairline rules, serif display face
8//
9// data-theme="dark" (the per-user preference) flips either language.
10// Signed-out pages render without the attributes: light instrument. There is
11// deliberately no OS-driven media-query rule — theme is explicit, never
12// OS-driven. The token set is the subset of İzlek's that the auth screens
13// read. Component rules below read only these custom properties; the ledger
14// skin overrides live in _ledger.scss. Instrument needs no partial: it IS the
15// styling below.
16@use "ledger";
17
18// Instrument, light (defaults; also the no-JS fallback).
19:root,
20[data-ui="instrument"] {
21 color-scheme: light;
22 --bg: #f2f2f0;
23 --surface: #fbfbfa;
24 --border: #dcdcd8;
25 --border-strong: #d0d0cb;
26 --border-soft: #d3d3ce;
27 --ink: #1a1b1d;
28 --muted: #6b7078;
29 --muted-soft: #6b7078;
30 --accent: #46557b;
31 --accent-tint: #eef0f5;
32 --accent-ink: #2f3c5c;
33 --accent-strong: #5a6a94;
34
35 --field-bg: #f5f5f3;
36 --panel-sunken: #eeeeec;
37
38 --danger: #a04a24;
39 --danger-tint-alt: #fbf1ec;
40 --danger-border-soft: #eddcd3;
41
42 --positive: #5c7b46;
43 --positive-tint: #eef3e9;
44 --positive-border: #d3e0c6;
45
46 --font-sans: system-ui, sans-serif;
47 --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
48
49 --control-h-lg: 40px;
50 --radius: 3px;
51 --radius-sm: var(--radius);
52 --radius-lg: 3px;
53 --shadow-2: none;
54
55 --dur-fast: 120ms;
56 --ease: ease-out;
57}
58
59// Instrument, dark: near-black neutral-cool; tint fills go translucent and
60// tint borders go alpha so the ground shows through.
61[data-ui="instrument"][data-theme="dark"] {
62 color-scheme: dark;
63 --bg: #0d0e10;
64 --surface: #14161a;
65 --border: #23262c;
66 --border-strong: #2e323a;
67 --border-soft: #1f2226;
68 --ink: #e6e4de;
69 --muted: #7d8590;
70 --muted-soft: #4a4f58;
71 --accent: #8ba1e8;
72 --accent-tint: rgba(139, 161, 232, 0.14);
73 --accent-ink: #b9c6ee;
74 --accent-strong: #7e93d9;
75
76 --field-bg: #101216;
77 --panel-sunken: #101216;
78
79 --danger: #e0906a;
80 --danger-tint-alt: rgba(224, 144, 106, 0.05);
81 --danger-border-soft: rgba(224, 144, 106, 0.3);
82
83 --positive: #9db98a;
84 --positive-tint: rgba(157, 185, 138, 0.13);
85 --positive-border: rgba(157, 185, 138, 0.4);
86}
87
88// Ledger, light: warm paper; hairline rules carry structure, ink carries
89// emphasis. Values copied verbatim from izlek for every token im defines;
90// --font-display, --ink-soft, --row-hover and --rule-strong are carried over
91// too — the _ledger.scss overrides below read them.
92[data-ui="ledger"] {
93 color-scheme: light;
94 --bg: #f6f1e6;
95 --surface: #f6f1e6;
96 --border: #ddd5c2;
97 --border-strong: #221f18;
98 --border-soft: #cfc6b0;
99 --ink: #221f18;
100 --muted: #7a7466;
101 --muted-soft: #a39b88;
102 --accent: #46557b;
103 --accent-tint: #eef0f5;
104 --accent-ink: #2f3c5c;
105 --accent-strong: #5a6a94;
106
107 --field-bg: #f1ebdd;
108 --panel-sunken: #f1ebdd;
109
110 --danger: #a04a24;
111 --danger-tint-alt: #fbf1ec;
112 --danger-border-soft: #eddcd3;
113
114 --positive: #5c7b46;
115 --positive-tint: #eef3e9;
116 --positive-border: #d3e0c6;
117
118 --font-sans: system-ui, sans-serif;
119 --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
120 --font-display: 'Newsreader', Georgia, serif;
121
122 --ink-soft: #4a453a;
123 --row-hover: #efe9da;
124 --rule-strong: #221f18;
125
126 --control-h-lg: 40px;
127 --radius: 2px;
128 --radius-sm: var(--radius);
129 --radius-lg: 2px;
130 --shadow-2: none;
131
132 --dur-fast: 120ms;
133 --ease: ease-out;
134}
135
136// Ledger, dark: dimmed paper ground; semantic hues lifted for contrast, tint
137// fills translucent over the paper tone.
138[data-ui="ledger"][data-theme="dark"] {
139 color-scheme: dark;
140 --bg: #171511;
141 --surface: #171511;
142 --border: #3a352a;
143 --border-strong: #e8e2d4;
144 --border-soft: #2e2a20;
145 --ink: #e8e2d4;
146 --muted: #97907f;
147 --muted-soft: #6e6757;
148 --accent: #9db0dd;
149 --accent-tint: rgba(157, 176, 221, 0.14);
150 --accent-ink: #c3cfee;
151 --accent-strong: #8497c9;
152
153 --field-bg: #1c1915;
154 --panel-sunken: #1b1814;
155
156 --danger: #d28a5a;
157 --danger-tint-alt: rgba(210, 138, 90, 0.05);
158 --danger-border-soft: rgba(210, 138, 90, 0.3);
159
160 --positive: #a3bd8b;
161 --positive-tint: rgba(163, 189, 139, 0.13);
162 --positive-border: rgba(163, 189, 139, 0.4);
163
164 --font-sans: system-ui, sans-serif;
165 --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
166 --font-display: 'Newsreader', Georgia, serif;
167
168 --ink-soft: #cfc8b6;
169 --row-hover: #201c16;
170 --rule-strong: #e8e2d4;
171
172 --control-h-lg: 40px;
173 --radius: 2px;
174 --radius-sm: var(--radius);
175 --radius-lg: 2px;
176 --shadow-2: none;
177
178 --dur-fast: 120ms;
179 --ease: ease-out;
180}
181
182* { box-sizing: border-box; }
183
184body {
185 margin: 0;
186 background: var(--bg);
187 color: var(--ink);
188 font-family: var(--font-sans);
189 font-size: 14px;
190 line-height: 1.45;
191 -webkit-font-smoothing: antialiased;
192}
193
194a {
195 color: var(--accent);
196 transition: color var(--dur-fast) var(--ease);
197 &:hover { color: var(--accent-ink); }
198}
199
200// --- Account screens (the whole product, today) ----------------------------
201
202// The card centers in the viewport; a card taller than it (a landscape
203// phone) pans inside the stage instead of growing the document.
204body:has(.auth-stage) {
205 height: 100vh;
206 height: 100dvh;
207 overflow: hidden;
208 display: flex;
209 flex-direction: column;
210
211 > * { flex: none; }
212 > .auth-stage {
213 flex: 1;
214 min-height: 0;
215 overflow-y: auto;
216 scrollbar-width: none;
217
218 &::-webkit-scrollbar { display: none; }
219 }
220}
221
222.auth-stage {
223 min-height: 100vh;
224 min-height: 100dvh;
225 display: flex;
226 padding: 0 40px 40px;
227}
228
229.auth-column {
230 width: 520px;
231 max-width: 100%;
232 display: flex;
233 flex-direction: column;
234 gap: 10px;
235 // margin auto centres the column while it fits and top-anchors it the
236 // moment it outgrows the window — align-items: center on the stage used
237 // to amputate the top of a tall landing, unreachable even by scrolling.
238 margin: auto;
239}
240
241
242
243// The brand lockup. Lower case, and not by taste: capitalised, the dotted
244// `i` becomes `I` and the name reads as the English word. The tittle is the
245// Turkish one, in the word as it is in the mark.
246.wordmark {
247 display: flex;
248 align-items: center;
249 justify-content: center;
250 gap: 10px;
251 text-decoration: none;
252 color: inherit;
253
254 padding: 6px 0;
255
256 &:hover { color: inherit; }
257
258 &-mark {
259 flex: none;
260 display: block;
261 width: 24px;
262 height: 24px;
263 }
264
265 &-tittle { fill: var(--accent); }
266
267 &-text {
268 font-family: var(--font-mono);
269 font-size: 18px;
270 font-weight: 500;
271 letter-spacing: 0.02em;
272 }
273}
274
275// The landing's section tabs wear the admin nav's skin, centred under the
276// wordmark instead of left-aligned in the admin bar.
277.landing-nav {
278 justify-content: center;
279 padding: 4px 0 10px;
280}
281
282// The family behind the signed-in wordmark: the siblings' marks in the
283// wordmark's mono, middots between, in a flyout that hangs under the mark
284// and shows on hover or keyboard focus (the mark carries tabindex for it).
285// Absolutely placed so the chrome keeps the bare wordmark's height; it
286// stays in the DOM so the links are reachable by tab, which is what opens
287// it for a keyboard. No gap between mark and flyout, so the pointer can
288// travel down into it without it closing.
289.wordmark-family {
290 position: relative;
291 display: flex;
292 justify-content: center;
293
294 .wordmark { cursor: default; outline: none; }
295
296 &:hover .service-trio,
297 &:focus-within .service-trio {
298 opacity: 1;
299 transform: translate(-50%, 0);
300 pointer-events: auto;
301 }
302}
303
304.service-trio {
305 position: absolute;
306 top: 100%;
307 left: 50%;
308 z-index: 2;
309 display: flex;
310 align-items: center;
311 gap: 10px;
312 padding: 6px 12px;
313 background: var(--surface);
314 border: 1px solid var(--border);
315 border-radius: var(--radius);
316 box-shadow: var(--shadow-2);
317 opacity: 0;
318 transform: translate(-50%, -4px);
319 pointer-events: none;
320 transition: opacity 120ms ease, transform 120ms ease;
321}
322
323.trio-mark {
324 font-family: var(--font-mono);
325 font-size: 13px;
326 font-weight: 500;
327 letter-spacing: 0.02em;
328 text-decoration: none;
329 color: var(--muted);
330
331 &:hover { color: var(--ink); }
332}
333
334.trio-sep { color: var(--muted-soft); }
335
336// The landing's column tops out where it would sit if the TALLEST section
337// were the one being centred: the wordmark and tab row hold that line on
338// every section, and shorter sections simply end sooner below it. 640px
339// covers the password and profile blocks with their chrome and footer; a
340// section that outgrows the window (a long session list) lands on the
341// 24px floor and scrolls instead.
342.landing-stage .auth-column {
343 margin-top: max(24px, calc((100dvh - 640px) / 2));
344 margin-bottom: 24px;
345}
346
347
348
349
350.auth-card {
351 background: var(--surface);
352 border: 1px solid var(--border);
353 border-radius: var(--radius-lg);
354 padding: 28px;
355 display: flex;
356 flex-direction: column;
357 gap: 18px;
358 box-shadow: var(--shadow-2);
359
360 form {
361 display: flex;
362 flex-direction: column;
363 gap: 20px;
364 }
365}
366
367.auth-head {
368 display: flex;
369 flex-direction: column;
370 gap: 6px;
371}
372
373.auth-title {
374 font-size: 18px;
375 font-weight: 600;
376 letter-spacing: -0.01em;
377}
378
379.auth-sub {
380 font-size: 13px;
381 color: var(--muted);
382 line-height: 1.5;
383}
384
385.auth-field {
386 display: flex;
387 flex-direction: column;
388 gap: 6px;
389}
390
391.auth-label {
392 font-family: var(--font-mono);
393 font-size: 10px;
394 letter-spacing: 0.08em;
395 text-transform: uppercase;
396 color: var(--muted-soft);
397}
398
399// The address an invited member signs in as: shown, never edited.
400.auth-locked {
401 display: flex;
402 align-items: center;
403 gap: 8px;
404 height: 40px;
405 padding: 0 12px;
406 background: var(--panel-sunken);
407 border: 1px solid var(--border-strong);
408 border-radius: var(--radius);
409}
410
411.auth-locked-value {
412 font-family: var(--font-mono);
413 font-size: 13px;
414 color: var(--muted);
415 flex-grow: 1;
416}
417
418.auth-input {
419 height: 40px;
420 padding: 0 12px;
421 background: var(--field-bg);
422 border: 1px solid var(--border-strong);
423 border-radius: var(--radius);
424 color: var(--ink);
425 font-family: var(--font-sans);
426 font-size: 13px;
427 width: 100%;
428
429 &:focus {
430 outline: none;
431 border-color: var(--accent);
432 box-shadow: 0 0 0 2px var(--accent-tint);
433 }
434
435 &:focus-visible {
436 outline: 2px solid var(--accent);
437 outline-offset: 1px;
438 }
439
440 &:user-invalid {
441 border-color: var(--danger);
442 }
443}
444
445// The message body is the one multi-line field: same skin, height from
446// `rows`, vertical resize only.
447textarea.auth-input {
448 height: auto;
449 padding: 10px 12px;
450 resize: vertical;
451}
452
453.auth-input-mono {
454 font-family: var(--font-mono);
455}
456
457.auth-submit {
458 height: var(--control-h-lg);
459 display: flex;
460 align-items: center;
461 justify-content: center;
462 gap: 8px;
463 background: var(--accent);
464 color: var(--surface);
465 border: 0;
466 border-radius: var(--radius);
467 cursor: pointer;
468 font-family: var(--font-sans);
469
470 &:disabled {
471 opacity: 0.45;
472 cursor: default;
473 }
474
475 &:focus-visible {
476 outline: 2px solid var(--accent-ink);
477 outline-offset: 2px;
478 }
479}
480
481.auth-submit-text {
482 font-size: 13px;
483 font-weight: 600;
484}
485
486.auth-problem {
487 font-size: 13px;
488 color: var(--danger);
489 background: var(--danger-tint-alt);
490 border: 1px solid var(--danger-border-soft);
491 border-radius: var(--radius);
492 padding: 10px 12px;
493}
494
495.auth-note {
496 font-size: 13px;
497 color: var(--muted);
498 background: var(--panel-sunken);
499 border: 1px solid var(--border-soft);
500 border-radius: var(--radius);
501 padding: 10px 12px;
502}
503
504// The one thing that says "this worked": a confirmed TOTP enrolment, an
505// issued invite.
506.auth-ok {
507 font-size: 13px;
508 color: var(--positive);
509 background: var(--positive-tint);
510 border: 1px solid var(--positive-border);
511 border-radius: var(--radius);
512 padding: 10px 12px;
513}
514
515// The manual TOTP key: monospace, selectable, broken into four-letter groups.
516.auth-secret {
517 font-family: var(--font-mono);
518 font-size: 14px;
519 letter-spacing: 0.06em;
520 text-align: center;
521 background: var(--panel-sunken);
522 border: 1px solid var(--border-soft);
523 border-radius: var(--radius);
524 padding: 10px 12px;
525 user-select: all;
526}
527
528// The enrolment QR, centered, with quiet ground so the modules stay scannable
529// in either theme.
530.auth-qr {
531 display: flex;
532 justify-content: center;
533
534 svg {
535 width: 200px;
536 height: 200px;
537 background: #fff;
538 border: 1px solid var(--border);
539 border-radius: var(--radius);
540 padding: 12px;
541 }
542}
543
544.auth-alt {
545 font-size: 12px;
546 color: var(--muted);
547 text-decoration: none;
548 align-self: center;
549
550 &:hover { color: var(--accent-ink); }
551}
552
553.auth-footer {
554 font-family: var(--font-mono);
555 font-size: 10px;
556 letter-spacing: 0.08em;
557 color: var(--muted-soft);
558 text-align: center;
559 padding-top: 4px;
560}
561
562// --- Profile section (the signed-in landing) -------------------------------
563// izlek's people page, folded into the auth card: the face and name up top,
564// the counts in their own card below.
565
566.profile-head {
567 display: flex;
568 align-items: center;
569 gap: 14px;
570}
571
572.profile-avatar {
573 flex: none;
574 width: 72px;
575 height: 72px;
576 border-radius: var(--radius);
577 border: 1px solid var(--border);
578 object-fit: cover;
579}
580
581// The no-photo face: the name's first letter on a quiet tile.
582.profile-avatar-initial {
583 display: flex;
584 align-items: center;
585 justify-content: center;
586 background: var(--panel-sunken);
587 color: var(--muted);
588 font-family: var(--font-mono);
589 font-size: 26px;
590 font-weight: 500;
591 user-select: none;
592}
593
594.profile-heading {
595 flex: 1;
596 display: flex;
597 flex-direction: column;
598 gap: 6px;
599 min-width: 0;
600}
601
602.profile-marks {
603 display: flex;
604 gap: 6px;
605 flex-wrap: wrap;
606}
607
608// The accent chip: not a probe result, a standing fact — membership of the
609// admin set reads in the accent, not in a pass/fail colour.
610.chip-accent {
611 background: var(--accent-tint);
612 border: 1px solid var(--border-strong);
613 color: var(--accent-ink);
614}
615
616.profile-fields {
617 margin: 0;
618 display: flex;
619 flex-direction: column;
620 gap: 10px;
621}
622
623.profile-field {
624 display: flex;
625 flex-direction: column;
626 gap: 4px;
627}
628
629.profile-value {
630 margin: 0;
631 font-size: 13px;
632}
633
634// The photo's Change/Remove live inside the viewer (avatar_script builds
635// them for a `data-own` face): a quiet row under the enlarged picture.
636.viewer-actions {
637 display: flex;
638 justify-content: center;
639 gap: 8px;
640 margin-top: 12px;
641
642 // A label wearing the quiet-button skin needs the flex centering a button
643 // gets for free.
644 label.admin-action {
645 display: inline-flex;
646 align-items: center;
647 box-sizing: border-box;
648 cursor: pointer;
649 }
650}
651
652// The picker opens through the labels; the input itself never shows.
653.profile-file-hidden {
654 display: none;
655}
656
657// The forms the actions reach by `form=` carry no visible chrome.
658#profile-photo-form,
659#profile-photo-remove {
660 display: none;
661}
662
663// The two faces of the profile picture box: the picker label and, once a
664// photo exists, the viewer trigger — the box rules are shared.
665.profile-avatar-upload,
666.avatar-view {
667 position: relative;
668 flex: none;
669 cursor: pointer;
670}
671
672// The trigger is the label's box with a button's chrome stripped.
673.avatar-view {
674 appearance: none;
675 background: none;
676 border: none;
677 padding: 0;
678}
679
680// The upload affordance, iz's veil: a plus over the picture, on hover or
681// keyboard focus only.
682.profile-avatar-upload {
683 &::after {
684 content: "+";
685 position: absolute;
686 inset: 0;
687 display: flex;
688 align-items: center;
689 justify-content: center;
690 background: rgb(0 0 0 / 0.4);
691 border-radius: var(--radius);
692 color: #fff;
693 font-size: 24px;
694 font-weight: 300;
695 opacity: 0;
696 transition: opacity var(--dur-fast) var(--ease);
697 pointer-events: none;
698 }
699
700 &:hover::after,
701 &:has(.profile-file-hidden:focus-visible)::after {
702 opacity: 1;
703 }
704}
705
706// The photo viewer: a client-built overlay (avatar_script) around the same
707// /photo URL the avatar reads — a click on the dimmed ground or Escape
708// closes it.
709.viewer-scrim {
710 position: fixed;
711 inset: 0;
712 z-index: 100;
713 display: flex;
714 align-items: center;
715 justify-content: center;
716 background: rgb(0 0 0 / 0.65);
717 cursor: zoom-out;
718}
719
720.viewer {
721 outline: none;
722 cursor: default;
723 display: flex;
724 flex-direction: column;
725 align-items: center;
726}
727.viewer-media {
728 max-width: min(90vw, 960px);
729 max-height: 85vh;
730 border-radius: var(--radius);
731}
732
733// Upload progress: a client-made hairline under the profile head while the
734// photo crosses, a quiet cancel beside it — no native <progress> chrome.
735.profile-upload-row {
736 display: flex;
737 gap: 8px;
738 align-items: center;
739}
740
741.upload-progress {
742 flex: 1;
743 height: 2px;
744 background: var(--panel-sunken);
745 border-radius: 1px;
746 overflow: hidden;
747}
748
749.upload-progress-fill {
750 height: 100%;
751 width: 0;
752 background: var(--accent);
753 transition: width var(--dur-fast) var(--ease);
754}
755
756.upload-cancel {
757 height: 24px;
758 padding: 0 8px;
759}
760
761.profile-stats {
762 margin: 0;
763 display: flex;
764 justify-content: space-between;
765 gap: 12px;
766}
767
768.profile-stat {
769 display: flex;
770 flex-direction: column;
771 gap: 2px;
772}
773
774.profile-stat-value {
775 margin: 0;
776 font-size: 22px;
777 font-weight: 600;
778 letter-spacing: -0.01em;
779}
780
781// The sessions list: one header row per live device — the name a person
782// recognizes, the address, the current one chipped. Everything else sits a
783// click behind the header: the item is a <details>, and the open detail
784// floats as a card over a dimmed ground. The backdrop is the summary's own
785// pseudo-element, so a click anywhere off the card toggles it shut — no
786// script at all (avatar_script adds Escape on top).
787.session-list {
788 display: flex;
789 flex-direction: column;
790}
791
792.session-item {
793 border-top: 1px solid var(--border-soft);
794
795 &:first-child { border-top: 0; }
796}
797
798.session-head {
799 display: flex;
800 gap: 12px;
801 align-items: baseline;
802 padding: 12px 0;
803 cursor: pointer;
804 list-style: none;
805
806 &::-webkit-details-marker { display: none; }
807}
808
809.session-device {
810 font-size: 13px;
811 color: var(--ink);
812
813 .chip { margin-left: 8px; }
814}
815
816.session-ip {
817 margin-left: auto;
818 font-size: 12px;
819 color: var(--muted);
820}
821
822// An open item's header stays above the dim, reading as the card's title.
823.session-item[open] .session-head {
824 position: relative;
825 z-index: 121;
826
827 &::after {
828 content: "";
829 position: fixed;
830 inset: 0;
831 z-index: -1;
832 background: rgb(0 0 0 / 0.65);
833 }
834}
835
836.session-detail {
837 position: fixed;
838 top: 50%;
839 left: 50%;
840 transform: translate(-50%, -50%);
841 z-index: 122;
842 width: min(90vw, 420px);
843 max-height: 85vh;
844 overflow: auto;
845 background: var(--surface);
846 border: 1px solid var(--border);
847 border-radius: var(--radius-lg);
848 padding: 20px;
849
850 .profile-fields { margin: 0; }
851
852 form {
853 margin-top: 12px;
854 text-align: right;
855 }
856}
857
858// The full agent string is detail content: whole, wrapped, never stretching
859// the card.
860.session-agent { overflow-wrap: anywhere; }
861
862@media (max-width: 720px) {
863 .auth-stage { padding: 0 16px 24px; }
864}
865
866// --- Admin panel ------------------------------------------------------------
867// Same skin, tool posture: the bar top-anchors at a fixed line so it never
868// moves between sections, and the scrollbar's gutter is reserved so a
869// section that grows a scrollbar does not push the bar sideways. The
870// landing's centred line is not copied here — the logs fit their page size
871// to the window, and a viewport-scaled offset would eat the room that buys.
872
873body:has(.admin-shell) {
874 min-height: 100vh;
875 min-height: 100dvh;
876 scrollbar-gutter: stable;
877}
878
879.admin-shell {
880 display: flex;
881 justify-content: center;
882 padding: 24px 24px 48px;
883}
884
885.admin-column {
886 width: 760px;
887 max-width: 100%;
888 display: flex;
889 flex-direction: column;
890 gap: 16px;
891}
892
893.admin-bar {
894 display: flex;
895 align-items: center;
896 flex-wrap: wrap;
897 gap: 8px 20px;
898 min-height: var(--control-h-lg);
899 padding: 6px 0;
900
901 .wordmark-text { font-size: 15px; }
902}
903
904.admin-tabs {
905 display: flex;
906 flex-wrap: wrap;
907 gap: 8px 16px;
908}
909
910.admin-nav {
911 font-family: var(--font-mono);
912 font-size: 10px;
913 letter-spacing: 0.08em;
914 text-transform: uppercase;
915 color: var(--muted);
916 text-decoration: none;
917 padding-bottom: 2px;
918
919 &:hover { color: var(--ink); }
920
921 &-on {
922 color: var(--ink);
923 box-shadow: inset 0 -2px 0 var(--ink);
924 }
925}
926
927.admin-bar .auth-alt { margin-left: auto; align-self: auto; }
928
929// A brand that is also a link keeps the wordmark's look, not the link's.
930a.wordmark-home {
931 text-decoration: none;
932 color: inherit;
933}
934
935.admin-card {
936 background: var(--surface);
937 border: 1px solid var(--border);
938 border-radius: var(--radius-lg);
939 padding: 24px;
940 display: flex;
941 flex-direction: column;
942 gap: 16px;
943}
944
945// The logs filter row: five small fields in one wrapping line; a page turn's
946// foot splits the position note from the Newer/Older links.
947.logs-filters {
948 display: flex;
949 flex-wrap: wrap;
950 gap: 10px 14px;
951
952 .auth-field {
953 flex: 1 1 120px;
954 min-width: 0;
955 }
956}
957
958// The logs page never outgrows the window, whatever the fit script managed:
959// when the script's page size is right the table ends where the foot sits,
960// and when it is not (script off, a stale cookie, a mid-session resize) the
961// card caps at the room below the bar and the table scrolls inside itself
962// instead of pushing rows past the fold. Scoped by `:has(.log-list)` so the
963// other sections keep the page's natural scroll.
964body:has(.log-list) {
965 height: 100vh;
966 height: 100dvh;
967 overflow: hidden;
968
969 .admin-shell { height: 100%; }
970
971 .admin-column { height: 100%; }
972
973 // The card is a flex column that may shrink below its content; the wrap is
974 // the piece that gives, taking the scroll the page would have owned.
975 .admin-card:has(.log-list) { min-height: 0; }
976}
977
978// Every admin table rides a wrapper that scrolls it sideways itself, so the
979// card never does and a section's heading and filters stay put. min-height:
980// 0 is what lets the logs fit shrink the wrap below its content, so the
981// vertical scroll also stays inside it instead of reaching the page.
982.admin-table-wrap {
983 min-height: 0;
984 overflow-x: auto;
985 overflow-y: auto;
986}
987
988.logs-foot {
989 display: flex;
990 align-items: center;
991 justify-content: space-between;
992 gap: 12px;
993
994 .log-count {
995 font-family: var(--font-mono);
996 font-size: 11px;
997 color: var(--muted-soft);
998 }
999
1000 .logs-links {
1001 display: flex;
1002 gap: 16px;
1003 }
1004}
1005
1006.admin-table {
1007 width: 100%;
1008 border-collapse: collapse;
1009 font-size: 13px;
1010
1011 th {
1012 font-family: var(--font-mono);
1013 font-size: 10px;
1014 letter-spacing: 0.08em;
1015 color: var(--muted-soft);
1016 text-align: left;
1017 padding: 0 12px 6px 0;
1018 }
1019
1020 td {
1021 padding: 8px 12px 8px 0;
1022 border-top: 1px solid var(--border-soft);
1023 vertical-align: middle;
1024 }
1025
1026 // Long mono strings — addresses, client ids, redirect URIs — wrap inside
1027 // their columns instead of stretching the card sideways, the way the
1028 // sessions fold keeps user-agent strings inside the panel.
1029 td.mono {
1030 overflow-wrap: anywhere;
1031 }
1032}
1033
1034// The clients table's registered date reads as one token; it holds its
1035// line while the mono columns beside it take the wrap.
1036.admin-clients td.muted {
1037 white-space: nowrap;
1038}
1039
1040.mono { font-family: var(--font-mono); }
1041.muted { color: var(--muted); }
1042
1043// The admin Health section's per-service state dot: green while the
1044// service's /healthz answers ok, muted when it does not. The green is
1045// iz's connection card's — the same light across the family's panels.
1046.health-dot {
1047 display: inline-block;
1048 width: 0.55rem;
1049 height: 0.55rem;
1050 border-radius: 50%;
1051 margin-right: 0.4rem;
1052 vertical-align: baseline;
1053
1054 &.health-on { background: #2e9e5b; }
1055 &.health-off { background: var(--muted); }
1056}
1057
1058.actions {
1059 display: flex;
1060 flex-wrap: wrap;
1061 gap: 8px;
1062 justify-content: flex-end;
1063
1064 form { display: inline; }
1065}
1066
1067// A quiet row-level button, back on --surface like İzlek's `.quiet`.
1068.admin-action {
1069 height: var(--control-h);
1070 --control-h: 32px;
1071 padding: 0 10px;
1072 background: var(--surface);
1073 border: 1px solid var(--border-strong);
1074 border-radius: var(--radius);
1075 color: var(--ink);
1076 font-size: 12px;
1077 cursor: pointer;
1078
1079 &:hover { background: var(--row-hover, var(--panel-sunken)); }
1080}
1081
1082.admin-action-wide { width: 100%; }
1083
1084.admin-invite {
1085 display: flex;
1086 flex-wrap: wrap;
1087 gap: 8px;
1088 align-items: stretch;
1089 // One control height for the whole row — email, role and Invite stand on
1090 // the same line while there is room, the way izlek's member-invite row
1091 // does; on a phone the email drops to its own line instead.
1092 --control-h: 36px;
1093
1094 .auth-input {
1095 height: var(--control-h);
1096 box-sizing: border-box;
1097 }
1098
1099 // The email field keeps a floor wide enough to read the placeholder in;
1100 // when the row cannot fit that floor, it wraps. The role select shares
1101 // the input skin but not the floor, so this stays input-scoped.
1102 input.auth-input {
1103 flex: 1;
1104 min-width: 220px;
1105 }
1106
1107 // The role picker: same field skin as the inputs, just narrower — izlek's
1108 // invite row uses a select here too, not a checkbox. `select`-scoped so the
1109 // enhancement's trigger button (which wears the same classes) keeps only
1110 // its own ::after caret instead of doubling this one.
1111 select.admin-role {
1112 flex: 0 0 auto;
1113 width: auto;
1114 padding: 0 28px 0 12px;
1115 appearance: none;
1116 background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
1117 linear-gradient(135deg, var(--muted) 50%, transparent 50%);
1118 background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
1119 background-size: 5px 5px, 5px 5px;
1120 background-repeat: no-repeat;
1121 cursor: pointer;
1122 }
1123
1124 .admin-invite-go {
1125 width: auto;
1126 height: var(--control-h);
1127 padding: 0 20px;
1128 }
1129}
1130
1131.admin-form {
1132 display: flex;
1133 flex-direction: column;
1134 gap: 12px;
1135}
1136
1137.admin-standing {
1138 font-size: 12px;
1139 color: var(--muted);
1140}
1141
1142.admin-pair {
1143 display: flex;
1144 gap: 8px;
1145}
1146
1147// The standing chip, iz's idiom: one colored pill that says what the last
1148// probe proved — positive green on a pass, the danger tint on a refusal,
1149// quiet gray until there is anything to say.
1150.chip {
1151 display: inline-flex;
1152 align-items: center;
1153 height: 24px;
1154 padding: 0 10px;
1155 border-radius: var(--radius);
1156 font-size: 11px;
1157 font-weight: 600;
1158}
1159
1160.chip-muted {
1161 background: var(--panel-sunken);
1162 border: 1px solid var(--border-strong);
1163 color: var(--muted);
1164}
1165
1166.chip-connected {
1167 background: var(--positive-tint);
1168 border: 1px solid var(--positive-border);
1169 color: var(--positive);
1170}
1171
1172.chip-refused {
1173 background: var(--danger-tint-alt);
1174 border: 1px solid var(--danger-border-soft);
1175 color: var(--danger);
1176}
1177
1178.admin-card-head {
1179 display: flex;
1180 align-items: center;
1181 justify-content: space-between;
1182 gap: 10px;
1183}
1184
1185// Delete is the one destructive row action; it wears the danger ink so it
1186// never reads as another quiet button.
1187.admin-danger {
1188 color: var(--danger);
1189
1190 &:hover { background: var(--danger-tint-alt); }
1191}
1192
1193// Admin overlays are top-layer popovers. Do not position one with
1194// `top`/`left`/`transform`: a `position: fixed` panel inside
1195// `.admin-table-wrap` (overflow) or a table cell resolves those against
1196// that box as soon as an ancestor creates a containing block, and the
1197// confirm lands off the page. Centering here is the top layer's own
1198// `inset: 0; margin: auto`. New row overlays go through `admin_dialog`.
1199.admin-dialog {
1200 width: min(240px, calc(100vw - 32px));
1201 height: fit-content;
1202 max-height: min(85vh, 85dvh);
1203 margin: auto;
1204 inset: 0;
1205 padding: 12px;
1206 border: 1px solid var(--border-strong);
1207 border-radius: var(--radius);
1208 background: var(--surface);
1209 color: var(--ink);
1210 box-shadow: var(--shadow-2);
1211 overflow: auto;
1212
1213 &::backdrop { background: rgb(0 0 0 / 0.45); }
1214
1215 .admin-action { width: 100%; height: 30px; }
1216}
1217
1218.admin-dialog-wide { width: min(420px, calc(100vw - 32px)); }
1219
1220// Flex only while open. An author `display` on the closed popover can beat
1221// the UA `[popover]:not(:popover-open) { display: none }` and leave the
1222// panel sitting in the row.
1223.admin-dialog:popover-open {
1224 display: flex;
1225 flex-direction: column;
1226 gap: 8px;
1227}
1228
1229.admin-dialog-title { font-weight: 600; color: var(--ink); }
1230
1231.admin-action:has(+ .admin-dialog:popover-open) {
1232 background: var(--panel-sunken);
1233}
1234
1235// Under each person's row two folds share one strip — the live sessions and
1236// the address edit. Each details sits inline so the summaries read as a row
1237// of links, and the opened panels stay in normal flow: a wide table with
1238// overflow:auto clips absolutely-positioned children, so nothing pops here.
1239.admin-sessions {
1240 display: inline-block;
1241 vertical-align: top;
1242
1243 & + & { margin-left: 16px; }
1244
1245 summary {
1246 cursor: pointer;
1247 font-size: 12px;
1248 display: inline-block;
1249 }
1250
1251 &[open] summary { margin-bottom: 8px; }
1252
1253 // The device cell carries whole user-agent strings; keep them inside the
1254 // column instead of stretching the panel.
1255 .admin-table td:first-child {
1256 overflow-wrap: anywhere;
1257 max-width: 280px;
1258 }
1259
1260 // The address-edit panel: the popover's visual box, but static — normal
1261 // flow inside the fold, so nothing is ever clipped.
1262 .admin-fold-form {
1263 width: 260px;
1264 padding: 12px;
1265 background: var(--surface);
1266 border: 1px solid var(--border-strong);
1267 border-radius: var(--radius);
1268 margin: 8px 24px 8px 0;
1269 display: flex;
1270 flex-direction: column;
1271 gap: 8px;
1272 font-size: 12px;
1273 }
1274}
1275
1276input[type="checkbox"] { accent-color: var(--accent); }
1277
1278@media (max-width: 720px) {
1279 .admin-shell { padding: 16px 12px 32px; }
1280}
1281
1282// --- Themed dropdown (izlek's dropdown, on im's tokens) --------------------
1283// The native select hides but keeps posting; the trigger wears its classes
1284// (auth-input included), so the closed control already matches the design.
1285
1286.dd-native { display: none; }
1287
1288.admin-invite .dd-trigger {
1289 flex: 0 0 auto;
1290 width: auto;
1291}
1292
1293.dd-trigger {
1294 display: flex;
1295 align-items: center;
1296 font: inherit;
1297 text-align: left;
1298 cursor: pointer;
1299
1300 &::after {
1301 content: "▾";
1302 margin-left: auto;
1303 padding-left: 8px;
1304 color: var(--muted);
1305 font-size: 11px;
1306 }
1307}
1308
1309.dd-panel {
1310 position: fixed;
1311 z-index: 60;
1312 max-height: 260px;
1313 overflow-y: auto;
1314 background: var(--surface);
1315 border: 1px solid var(--border-strong);
1316 border-radius: var(--radius);
1317 box-shadow: var(--shadow-2);
1318 padding: 8px;
1319 display: none;
1320
1321 &.dd-open { display: block; }
1322}
1323
1324.dd-option {
1325 display: block;
1326 width: 100%;
1327 padding: 6px 10px;
1328 border: none;
1329 border-radius: var(--radius-sm);
1330 background: none;
1331 font: inherit;
1332 font-size: 13px;
1333 text-align: left;
1334 color: var(--ink);
1335 white-space: nowrap;
1336 cursor: pointer;
1337 transition: background-color var(--dur-fast) var(--ease);
1338
1339 &:hover,
1340 &:focus,
1341 &.dd-option-active {
1342 background: var(--row-hover);
1343 outline: none;
1344 }
1345}
1346
1347.dd-option-selected {
1348 background: var(--accent-tint);
1349 color: var(--accent-ink);
1350}
1351
1352.dd-option-hidden { display: none; }
1353
1354.dd-search {
1355 display: block;
1356 width: 100%;
1357 margin-bottom: 6px;
1358 padding: 8px 10px;
1359 border: none;
1360 border-bottom: 1px solid var(--border);
1361 background: none;
1362 font: inherit;
1363 font-size: 13px;
1364 color: var(--ink);
1365}
1366
1367// The search box in the logs filter row takes the room the selects leave.
1368.logs-filters .logs-q { flex: 2 1 200px; }