// Design tokens — two design languages selected by , mirroring // izlek/style/main.scss: // // instrument dense, neutral-cool tool (the default; the bare :root in the // first block doubles as its light set and as a fallback for any // document that somehow reaches this stylesheet without data-ui) // ledger warm paper, hairline rules, serif display face // // data-theme="dark" (the per-user preference) flips either language. // Signed-out pages render without the attributes: light instrument. There is // deliberately no OS-driven media-query rule — theme is explicit, never // OS-driven. The token set is the subset of İzlek's that the auth screens // read. Component rules below read only these custom properties; the ledger // skin overrides live in _ledger.scss. Instrument needs no partial: it IS the // styling below. @use "ledger"; // Instrument, light (defaults; also the no-JS fallback). :root, [data-ui="instrument"] { color-scheme: light; --bg: #f2f2f0; --surface: #fbfbfa; --border: #dcdcd8; --border-strong: #d0d0cb; --border-soft: #d3d3ce; --ink: #1a1b1d; --muted: #6b7078; --muted-soft: #6b7078; --accent: #46557b; --accent-tint: #eef0f5; --accent-ink: #2f3c5c; --accent-strong: #5a6a94; --field-bg: #f5f5f3; --panel-sunken: #eeeeec; --danger: #a04a24; --danger-tint-alt: #fbf1ec; --danger-border-soft: #eddcd3; --positive: #5c7b46; --positive-tint: #eef3e9; --positive-border: #d3e0c6; --font-sans: system-ui, sans-serif; --font-mono: 'IBM Plex Mono', ui-monospace, monospace; --control-h-lg: 40px; --radius: 3px; --radius-sm: var(--radius); --radius-lg: 3px; --shadow-2: none; --dur-fast: 120ms; --ease: ease-out; } // Instrument, dark: near-black neutral-cool; tint fills go translucent and // tint borders go alpha so the ground shows through. [data-ui="instrument"][data-theme="dark"] { color-scheme: dark; --bg: #0d0e10; --surface: #14161a; --border: #23262c; --border-strong: #2e323a; --border-soft: #1f2226; --ink: #e6e4de; --muted: #7d8590; --muted-soft: #4a4f58; --accent: #8ba1e8; --accent-tint: rgba(139, 161, 232, 0.14); --accent-ink: #b9c6ee; --accent-strong: #7e93d9; --field-bg: #101216; --panel-sunken: #101216; --danger: #e0906a; --danger-tint-alt: rgba(224, 144, 106, 0.05); --danger-border-soft: rgba(224, 144, 106, 0.3); --positive: #9db98a; --positive-tint: rgba(157, 185, 138, 0.13); --positive-border: rgba(157, 185, 138, 0.4); } // Ledger, light: warm paper; hairline rules carry structure, ink carries // emphasis. Values copied verbatim from izlek for every token im defines; // --font-display, --ink-soft, --row-hover and --rule-strong are carried over // too — the _ledger.scss overrides below read them. [data-ui="ledger"] { color-scheme: light; --bg: #f6f1e6; --surface: #f6f1e6; --border: #ddd5c2; --border-strong: #221f18; --border-soft: #cfc6b0; --ink: #221f18; --muted: #7a7466; --muted-soft: #a39b88; --accent: #46557b; --accent-tint: #eef0f5; --accent-ink: #2f3c5c; --accent-strong: #5a6a94; --field-bg: #f1ebdd; --panel-sunken: #f1ebdd; --danger: #a04a24; --danger-tint-alt: #fbf1ec; --danger-border-soft: #eddcd3; --positive: #5c7b46; --positive-tint: #eef3e9; --positive-border: #d3e0c6; --font-sans: system-ui, sans-serif; --font-mono: 'IBM Plex Mono', ui-monospace, monospace; --font-display: 'Newsreader', Georgia, serif; --ink-soft: #4a453a; --row-hover: #efe9da; --rule-strong: #221f18; --control-h-lg: 40px; --radius: 2px; --radius-sm: var(--radius); --radius-lg: 2px; --shadow-2: none; --dur-fast: 120ms; --ease: ease-out; } // Ledger, dark: dimmed paper ground; semantic hues lifted for contrast, tint // fills translucent over the paper tone. [data-ui="ledger"][data-theme="dark"] { color-scheme: dark; --bg: #171511; --surface: #171511; --border: #3a352a; --border-strong: #e8e2d4; --border-soft: #2e2a20; --ink: #e8e2d4; --muted: #97907f; --muted-soft: #6e6757; --accent: #9db0dd; --accent-tint: rgba(157, 176, 221, 0.14); --accent-ink: #c3cfee; --accent-strong: #8497c9; --field-bg: #1c1915; --panel-sunken: #1b1814; --danger: #d28a5a; --danger-tint-alt: rgba(210, 138, 90, 0.05); --danger-border-soft: rgba(210, 138, 90, 0.3); --positive: #a3bd8b; --positive-tint: rgba(163, 189, 139, 0.13); --positive-border: rgba(163, 189, 139, 0.4); --font-sans: system-ui, sans-serif; --font-mono: 'IBM Plex Mono', ui-monospace, monospace; --font-display: 'Newsreader', Georgia, serif; --ink-soft: #cfc8b6; --row-hover: #201c16; --rule-strong: #e8e2d4; --control-h-lg: 40px; --radius: 2px; --radius-sm: var(--radius); --radius-lg: 2px; --shadow-2: none; --dur-fast: 120ms; --ease: ease-out; } * { box-sizing: border-box; } body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-sans); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; } a { color: var(--accent); transition: color var(--dur-fast) var(--ease); &:hover { color: var(--accent-ink); } } // --- Account screens (the whole product, today) ---------------------------- // The card centers in the viewport; a card taller than it (a landscape // phone) pans inside the stage instead of growing the document. body:has(.auth-stage) { height: 100vh; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; > * { flex: none; } > .auth-stage { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; &::-webkit-scrollbar { display: none; } } } .auth-stage { min-height: 100vh; min-height: 100dvh; display: flex; padding: 0 40px 40px; } .auth-column { width: 520px; max-width: 100%; display: flex; flex-direction: column; gap: 10px; // margin auto centres the column while it fits and top-anchors it the // moment it outgrows the window — align-items: center on the stage used // to amputate the top of a tall landing, unreachable even by scrolling. margin: auto; } // The brand lockup. Lower case, and not by taste: capitalised, the dotted // `i` becomes `I` and the name reads as the English word. The tittle is the // Turkish one, in the word as it is in the mark. .wordmark { display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; color: inherit; padding: 6px 0; &:hover { color: inherit; } &-mark { flex: none; display: block; width: 24px; height: 24px; } &-tittle { fill: var(--accent); } &-text { font-family: var(--font-mono); font-size: 18px; font-weight: 500; letter-spacing: 0.02em; } } // The landing's section tabs wear the admin nav's skin, centred under the // wordmark instead of left-aligned in the admin bar. .landing-nav { justify-content: center; padding: 4px 0 10px; } // The family behind the signed-in wordmark: the siblings' marks in the // wordmark's mono, middots between, in a flyout that hangs under the mark // and shows on hover or keyboard focus (the mark carries tabindex for it). // Absolutely placed so the chrome keeps the bare wordmark's height; it // stays in the DOM so the links are reachable by tab, which is what opens // it for a keyboard. No gap between mark and flyout, so the pointer can // travel down into it without it closing. .wordmark-family { position: relative; display: flex; justify-content: center; .wordmark { cursor: default; outline: none; } &:hover .service-trio, &:focus-within .service-trio { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; } } .service-trio { position: absolute; top: 100%; left: 50%; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 6px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-2); opacity: 0; transform: translate(-50%, -4px); pointer-events: none; transition: opacity 120ms ease, transform 120ms ease; } .trio-mark { font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: 0.02em; text-decoration: none; color: var(--muted); &:hover { color: var(--ink); } } .trio-sep { color: var(--muted-soft); } // The landing's column tops out where it would sit if the TALLEST section // were the one being centred: the wordmark and tab row hold that line on // every section, and shorter sections simply end sooner below it. 640px // covers the password and profile blocks with their chrome and footer; a // section that outgrows the window (a long session list) lands on the // 24px floor and scrolls instead. .landing-stage .auth-column { margin-top: max(24px, calc((100dvh - 640px) / 2)); margin-bottom: 24px; } .auth-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 18px; box-shadow: var(--shadow-2); form { display: flex; flex-direction: column; gap: 20px; } } .auth-head { display: flex; flex-direction: column; gap: 6px; } .auth-title { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; } .auth-sub { font-size: 13px; color: var(--muted); line-height: 1.5; } .auth-field { display: flex; flex-direction: column; gap: 6px; } .auth-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-soft); } // The address an invited member signs in as: shown, never edited. .auth-locked { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; background: var(--panel-sunken); border: 1px solid var(--border-strong); border-radius: var(--radius); } .auth-locked-value { font-family: var(--font-mono); font-size: 13px; color: var(--muted); flex-grow: 1; } .auth-input { height: 40px; padding: 0 12px; background: var(--field-bg); border: 1px solid var(--border-strong); border-radius: var(--radius); color: var(--ink); font-family: var(--font-sans); font-size: 13px; width: 100%; &:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-tint); } &:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; } &:user-invalid { border-color: var(--danger); } } // The message body is the one multi-line field: same skin, height from // `rows`, vertical resize only. textarea.auth-input { height: auto; padding: 10px 12px; resize: vertical; } .auth-input-mono { font-family: var(--font-mono); } .auth-submit { height: var(--control-h-lg); display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: var(--surface); border: 0; border-radius: var(--radius); cursor: pointer; font-family: var(--font-sans); &:disabled { opacity: 0.45; cursor: default; } &:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; } } .auth-submit-text { font-size: 13px; font-weight: 600; } .auth-problem { font-size: 13px; color: var(--danger); background: var(--danger-tint-alt); border: 1px solid var(--danger-border-soft); border-radius: var(--radius); padding: 10px 12px; } .auth-note { font-size: 13px; color: var(--muted); background: var(--panel-sunken); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 10px 12px; } // The one thing that says "this worked": a confirmed TOTP enrolment, an // issued invite. .auth-ok { font-size: 13px; color: var(--positive); background: var(--positive-tint); border: 1px solid var(--positive-border); border-radius: var(--radius); padding: 10px 12px; } // The manual TOTP key: monospace, selectable, broken into four-letter groups. .auth-secret { font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.06em; text-align: center; background: var(--panel-sunken); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 10px 12px; user-select: all; } // The enrolment QR, centered, with quiet ground so the modules stay scannable // in either theme. .auth-qr { display: flex; justify-content: center; svg { width: 200px; height: 200px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; } } .auth-alt { font-size: 12px; color: var(--muted); text-decoration: none; align-self: center; &:hover { color: var(--accent-ink); } } .auth-footer { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; color: var(--muted-soft); text-align: center; padding-top: 4px; } // --- Profile section (the signed-in landing) ------------------------------- // izlek's people page, folded into the auth card: the face and name up top, // the counts in their own card below. .profile-head { display: flex; align-items: center; gap: 14px; } .profile-avatar { flex: none; width: 72px; height: 72px; border-radius: var(--radius); border: 1px solid var(--border); object-fit: cover; } // The no-photo face: the name's first letter on a quiet tile. .profile-avatar-initial { display: flex; align-items: center; justify-content: center; background: var(--panel-sunken); color: var(--muted); font-family: var(--font-mono); font-size: 26px; font-weight: 500; user-select: none; } .profile-heading { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; } .profile-marks { display: flex; gap: 6px; flex-wrap: wrap; } // The accent chip: not a probe result, a standing fact — membership of the // admin set reads in the accent, not in a pass/fail colour. .chip-accent { background: var(--accent-tint); border: 1px solid var(--border-strong); color: var(--accent-ink); } .profile-fields { margin: 0; display: flex; flex-direction: column; gap: 10px; } .profile-field { display: flex; flex-direction: column; gap: 4px; } .profile-value { margin: 0; font-size: 13px; } // The photo's Change/Remove live inside the viewer (avatar_script builds // them for a `data-own` face): a quiet row under the enlarged picture. .viewer-actions { display: flex; justify-content: center; gap: 8px; margin-top: 12px; // A label wearing the quiet-button skin needs the flex centering a button // gets for free. label.admin-action { display: inline-flex; align-items: center; box-sizing: border-box; cursor: pointer; } } // The picker opens through the labels; the input itself never shows. .profile-file-hidden { display: none; } // The forms the actions reach by `form=` carry no visible chrome. #profile-photo-form, #profile-photo-remove { display: none; } // The two faces of the profile picture box: the picker label and, once a // photo exists, the viewer trigger — the box rules are shared. .profile-avatar-upload, .avatar-view { position: relative; flex: none; cursor: pointer; } // The trigger is the label's box with a button's chrome stripped. .avatar-view { appearance: none; background: none; border: none; padding: 0; } // The upload affordance, iz's veil: a plus over the picture, on hover or // keyboard focus only. .profile-avatar-upload { &::after { content: "+"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgb(0 0 0 / 0.4); border-radius: var(--radius); color: #fff; font-size: 24px; font-weight: 300; opacity: 0; transition: opacity var(--dur-fast) var(--ease); pointer-events: none; } &:hover::after, &:has(.profile-file-hidden:focus-visible)::after { opacity: 1; } } // The photo viewer: a client-built overlay (avatar_script) around the same // /photo URL the avatar reads — a click on the dimmed ground or Escape // closes it. .viewer-scrim { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: rgb(0 0 0 / 0.65); cursor: zoom-out; } .viewer { outline: none; cursor: default; display: flex; flex-direction: column; align-items: center; } .viewer-media { max-width: min(90vw, 960px); max-height: 85vh; border-radius: var(--radius); } // Upload progress: a client-made hairline under the profile head while the // photo crosses, a quiet cancel beside it — no native chrome. .profile-upload-row { display: flex; gap: 8px; align-items: center; } .upload-progress { flex: 1; height: 2px; background: var(--panel-sunken); border-radius: 1px; overflow: hidden; } .upload-progress-fill { height: 100%; width: 0; background: var(--accent); transition: width var(--dur-fast) var(--ease); } .upload-cancel { height: 24px; padding: 0 8px; } .profile-stats { margin: 0; display: flex; justify-content: space-between; gap: 12px; } .profile-stat { display: flex; flex-direction: column; gap: 2px; } .profile-stat-value { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; } // The sessions list: one header row per live device — the name a person // recognizes, the address, the current one chipped. Everything else sits a // click behind the header: the item is a
, and the open detail // floats as a card over a dimmed ground. The backdrop is the summary's own // pseudo-element, so a click anywhere off the card toggles it shut — no // script at all (avatar_script adds Escape on top). .session-list { display: flex; flex-direction: column; } .session-item { border-top: 1px solid var(--border-soft); &:first-child { border-top: 0; } } .session-head { display: flex; gap: 12px; align-items: baseline; padding: 12px 0; cursor: pointer; list-style: none; &::-webkit-details-marker { display: none; } } .session-device { font-size: 13px; color: var(--ink); .chip { margin-left: 8px; } } .session-ip { margin-left: auto; font-size: 12px; color: var(--muted); } // An open item's header stays above the dim, reading as the card's title. .session-item[open] .session-head { position: relative; z-index: 121; &::after { content: ""; position: fixed; inset: 0; z-index: -1; background: rgb(0 0 0 / 0.65); } } .session-detail { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 122; width: min(90vw, 420px); max-height: 85vh; overflow: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; .profile-fields { margin: 0; } form { margin-top: 12px; text-align: right; } } // The full agent string is detail content: whole, wrapped, never stretching // the card. .session-agent { overflow-wrap: anywhere; } @media (max-width: 720px) { .auth-stage { padding: 0 16px 24px; } } // --- Admin panel ------------------------------------------------------------ // Same skin, tool posture: the bar top-anchors at a fixed line so it never // moves between sections, and the scrollbar's gutter is reserved so a // section that grows a scrollbar does not push the bar sideways. The // landing's centred line is not copied here — the logs fit their page size // to the window, and a viewport-scaled offset would eat the room that buys. body:has(.admin-shell) { min-height: 100vh; min-height: 100dvh; scrollbar-gutter: stable; } .admin-shell { display: flex; justify-content: center; padding: 24px 24px 48px; } .admin-column { width: 760px; max-width: 100%; display: flex; flex-direction: column; gap: 16px; } .admin-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; min-height: var(--control-h-lg); padding: 6px 0; .wordmark-text { font-size: 15px; } } .admin-tabs { display: flex; flex-wrap: wrap; gap: 8px 16px; } .admin-nav { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); text-decoration: none; padding-bottom: 2px; &:hover { color: var(--ink); } &-on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); } } .admin-bar .auth-alt { margin-left: auto; align-self: auto; } // A brand that is also a link keeps the wordmark's look, not the link's. a.wordmark-home { text-decoration: none; color: inherit; } .admin-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 16px; } // The logs filter row: five small fields in one wrapping line; a page turn's // foot splits the position note from the Newer/Older links. .logs-filters { display: flex; flex-wrap: wrap; gap: 10px 14px; .auth-field { flex: 1 1 120px; min-width: 0; } } // The logs page never outgrows the window, whatever the fit script managed: // when the script's page size is right the table ends where the foot sits, // and when it is not (script off, a stale cookie, a mid-session resize) the // card caps at the room below the bar and the table scrolls inside itself // instead of pushing rows past the fold. Scoped by `:has(.log-list)` so the // other sections keep the page's natural scroll. body:has(.log-list) { height: 100vh; height: 100dvh; overflow: hidden; .admin-shell { height: 100%; } .admin-column { height: 100%; } // The card is a flex column that may shrink below its content; the wrap is // the piece that gives, taking the scroll the page would have owned. .admin-card:has(.log-list) { min-height: 0; } } // Every admin table rides a wrapper that scrolls it sideways itself, so the // card never does and a section's heading and filters stay put. min-height: // 0 is what lets the logs fit shrink the wrap below its content, so the // vertical scroll also stays inside it instead of reaching the page. .admin-table-wrap { min-height: 0; overflow-x: auto; overflow-y: auto; } .logs-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; .log-count { font-family: var(--font-mono); font-size: 11px; color: var(--muted-soft); } .logs-links { display: flex; gap: 16px; } } .admin-table { width: 100%; border-collapse: collapse; font-size: 13px; th { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; color: var(--muted-soft); text-align: left; padding: 0 12px 6px 0; } td { padding: 8px 12px 8px 0; border-top: 1px solid var(--border-soft); vertical-align: middle; } // Long mono strings — addresses, client ids, redirect URIs — wrap inside // their columns instead of stretching the card sideways, the way the // sessions fold keeps user-agent strings inside the panel. td.mono { overflow-wrap: anywhere; } } // The clients table's registered date reads as one token; it holds its // line while the mono columns beside it take the wrap. .admin-clients td.muted { white-space: nowrap; } .mono { font-family: var(--font-mono); } .muted { color: var(--muted); } // The admin Health section's per-service state dot: green while the // service's /healthz answers ok, muted when it does not. The green is // iz's connection card's — the same light across the family's panels. .health-dot { display: inline-block; width: 0.55rem; height: 0.55rem; border-radius: 50%; margin-right: 0.4rem; vertical-align: baseline; &.health-on { background: #2e9e5b; } &.health-off { background: var(--muted); } } .actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; form { display: inline; } } // A quiet row-level button, back on --surface like İzlek's `.quiet`. .admin-action { height: var(--control-h); --control-h: 32px; padding: 0 10px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); color: var(--ink); font-size: 12px; cursor: pointer; &:hover { background: var(--row-hover, var(--panel-sunken)); } } .admin-action-wide { width: 100%; } .admin-invite { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; // One control height for the whole row — email, role and Invite stand on // the same line while there is room, the way izlek's member-invite row // does; on a phone the email drops to its own line instead. --control-h: 36px; .auth-input { height: var(--control-h); box-sizing: border-box; } // The email field keeps a floor wide enough to read the placeholder in; // when the row cannot fit that floor, it wraps. The role select shares // the input skin but not the floor, so this stays input-scoped. input.auth-input { flex: 1; min-width: 220px; } // The role picker: same field skin as the inputs, just narrower — izlek's // invite row uses a select here too, not a checkbox. `select`-scoped so the // enhancement's trigger button (which wears the same classes) keeps only // its own ::after caret instead of doubling this one. select.admin-role { flex: 0 0 auto; width: auto; padding: 0 28px 0 12px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; cursor: pointer; } .admin-invite-go { width: auto; height: var(--control-h); padding: 0 20px; } } .admin-form { display: flex; flex-direction: column; gap: 12px; } .admin-standing { font-size: 12px; color: var(--muted); } .admin-pair { display: flex; gap: 8px; } // The standing chip, iz's idiom: one colored pill that says what the last // probe proved — positive green on a pass, the danger tint on a refusal, // quiet gray until there is anything to say. .chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--radius); font-size: 11px; font-weight: 600; } .chip-muted { background: var(--panel-sunken); border: 1px solid var(--border-strong); color: var(--muted); } .chip-connected { background: var(--positive-tint); border: 1px solid var(--positive-border); color: var(--positive); } .chip-refused { background: var(--danger-tint-alt); border: 1px solid var(--danger-border-soft); color: var(--danger); } .admin-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; } // Delete is the one destructive row action; it wears the danger ink so it // never reads as another quiet button. .admin-danger { color: var(--danger); &:hover { background: var(--danger-tint-alt); } } // Admin overlays are top-layer popovers. Do not position one with // `top`/`left`/`transform`: a `position: fixed` panel inside // `.admin-table-wrap` (overflow) or a table cell resolves those against // that box as soon as an ancestor creates a containing block, and the // confirm lands off the page. Centering here is the top layer's own // `inset: 0; margin: auto`. New row overlays go through `admin_dialog`. .admin-dialog { width: min(240px, calc(100vw - 32px)); height: fit-content; max-height: min(85vh, 85dvh); margin: auto; inset: 0; padding: 12px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-2); overflow: auto; &::backdrop { background: rgb(0 0 0 / 0.45); } .admin-action { width: 100%; height: 30px; } } .admin-dialog-wide { width: min(420px, calc(100vw - 32px)); } // Flex only while open. An author `display` on the closed popover can beat // the UA `[popover]:not(:popover-open) { display: none }` and leave the // panel sitting in the row. .admin-dialog:popover-open { display: flex; flex-direction: column; gap: 8px; } .admin-dialog-title { font-weight: 600; color: var(--ink); } .admin-action:has(+ .admin-dialog:popover-open) { background: var(--panel-sunken); } // Under each person's row two folds share one strip — the live sessions and // the address edit. Each details sits inline so the summaries read as a row // of links, and the opened panels stay in normal flow: a wide table with // overflow:auto clips absolutely-positioned children, so nothing pops here. .admin-sessions { display: inline-block; vertical-align: top; & + & { margin-left: 16px; } summary { cursor: pointer; font-size: 12px; display: inline-block; } &[open] summary { margin-bottom: 8px; } // The device cell carries whole user-agent strings; keep them inside the // column instead of stretching the panel. .admin-table td:first-child { overflow-wrap: anywhere; max-width: 280px; } // The address-edit panel: the popover's visual box, but static — normal // flow inside the fold, so nothing is ever clipped. .admin-fold-form { width: 260px; padding: 12px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); margin: 8px 24px 8px 0; display: flex; flex-direction: column; gap: 8px; font-size: 12px; } } input[type="checkbox"] { accent-color: var(--accent); } @media (max-width: 720px) { .admin-shell { padding: 16px 12px 32px; } } // --- Themed dropdown (izlek's dropdown, on im's tokens) -------------------- // The native select hides but keeps posting; the trigger wears its classes // (auth-input included), so the closed control already matches the design. .dd-native { display: none; } .admin-invite .dd-trigger { flex: 0 0 auto; width: auto; } .dd-trigger { display: flex; align-items: center; font: inherit; text-align: left; cursor: pointer; &::after { content: "▾"; margin-left: auto; padding-left: 8px; color: var(--muted); font-size: 11px; } } .dd-panel { position: fixed; z-index: 60; max-height: 260px; overflow-y: auto; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: var(--shadow-2); padding: 8px; display: none; &.dd-open { display: block; } } .dd-option { display: block; width: 100%; padding: 6px 10px; border: none; border-radius: var(--radius-sm); background: none; font: inherit; font-size: 13px; text-align: left; color: var(--ink); white-space: nowrap; cursor: pointer; transition: background-color var(--dur-fast) var(--ease); &:hover, &:focus, &.dd-option-active { background: var(--row-hover); outline: none; } } .dd-option-selected { background: var(--accent-tint); color: var(--accent-ink); } .dd-option-hidden { display: none; } .dd-search { display: block; width: 100%; margin-bottom: 6px; padding: 8px 10px; border: none; border-bottom: 1px solid var(--border); background: none; font: inherit; font-size: 13px; color: var(--ink); } // The search box in the logs filter row takes the room the selects leave. .logs-filters .logs-q { flex: 2 1 200px; }