/* The Center's page: the devenv page's look — its tokens, type, cards, buttons and tabs (files/static/app.css), and
   the dialog and checkbox rules of Client Hub (hub/edge/static/hub.css). The picker's own rules are picker.css (a copy
   of Client Hub's), taken in here. Geist served from here: the CSP takes nothing from elsewhere, and nothing inline. */
@import url("picker.css");
@font-face { font-family: "Geist"; src: url("geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("geist-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #f6f6f7; --bg2: #eeeef1; --panel: #ffffff; --panel2: #fafafb; --text: #111216; --text2: #3f424b;
  --muted: #80848f; --line: #e6e6ea; --line2: #d9dade; --hover: rgba(0,0,0,.045); --sel: oklch(0.56 0.19 var(--h) / .08);
  --h: 285;
  --acc-lc: 0.56 0.19;
  --accent: oklch(0.56 0.19 var(--h)); --accent2: oklch(0.5 0.19 var(--h)); --accent-soft: oklch(0.56 0.19 var(--h) / .11); --accent-ink: #fff;
  --glow: oklch(0.7 0.16 var(--h) / .22);
  --ok: #17a34a; --ok-soft: #e7f7ed; --danger: #e5484d; --danger-soft: #fdecec; --warn: #d97706;
  --shadow: 0 1px 2px rgba(16,17,22,.04), 0 4px 16px rgba(16,17,22,.06);
  --shadow-lg: 0 10px 40px rgba(16,17,22,.16), 0 2px 8px rgba(16,17,22,.06);
  --r: 14px; --r-sm: 10px;
  --mono: "Geist Mono", ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono", Menlo, monospace;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  --top-h: 60px;
  --tab-on: #ffffff; --tab-on-shadow: 0 1px 3px rgba(16,17,22,.16), 0 0 0 1px rgba(16,17,22,.06);
  /* everything that is a button has ONE height, its border inside it, and an outline that can be seen: an outlined
     button reads as big as it is only by its border — beside a filled one, a faint border makes it look the smaller */
  --btn-h: 36px; --btn-line: var(--line2);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #09090b; --bg2: #16171b; --panel: #111215; --panel2: #15161a; --text: #ececf0; --text2: #c3c6ce;
    --muted: #8a8f9b; --line: #23262d; --line2: #2e323a; --hover: rgba(255,255,255,.06); --sel: oklch(0.74 0.15 var(--h) / .1);
    --acc-lc: 0.74 0.15;
    --accent: oklch(0.74 0.15 var(--h)); --accent2: oklch(0.8 0.13 var(--h)); --accent-soft: oklch(0.74 0.15 var(--h) / .14); --accent-ink: #0b0c0f;
    --glow: oklch(0.6 0.17 var(--h) / .28);
    --ok: #3ecf71; --ok-soft: #10281a; --danger: #ff6369; --danger-soft: #2e1415;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25);
    --shadow-lg: 0 16px 50px rgba(0,0,0,.55), 0 2px 8px rgba(0,0,0,.3);
    --tab-on: #34363f; --tab-on-shadow: 0 1px 3px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.1);
    --btn-line: #5e6371;   /* (3:1 against the page and a card: on dark, --line2 is 1.5:1 and the box isn't seen) */
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; color: var(--text); font: 14px/1.45 var(--sans); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
body { min-height: 100vh; overflow-x: hidden; }   /* (no background of its own: the backdrop below sits behind it) */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(1100px 520px at 50% -140px, var(--glow), transparent 70%),
              radial-gradient(color-mix(in srgb, var(--text) 9%, transparent) 1px, transparent 1.4px) 0 0 / 22px 22px;
  -webkit-mask: linear-gradient(#000, #000 35%, transparent 85%); mask: linear-gradient(#000, #000 35%, transparent 85%); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
html, body, button, a, input, textarea, label, [role="button"] { touch-action: manipulation; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
[hidden] { display: none !important; }
code, pre, .mono { font-family: var(--mono); }
svg.i { width: 16px; height: 16px; flex: none; display: block; }
h1 { margin: 0; font-size: 24px; font-weight: 650; letter-spacing: -.015em; line-height: 1.2; overflow-wrap: anywhere; }
h2 { margin: 0; font-size: 16px; font-weight: 650; }
p { margin: 0; color: var(--text2); }
a { color: inherit; }
.note { color: var(--muted); font-size: 13px; }
.err { color: var(--danger); font-size: 13px; overflow-wrap: anywhere; }
.err:empty { display: none; }
.ok-line { color: var(--ok); font-size: 13px; }
.ok-line:empty { display: none; }
.empty { color: var(--muted); text-align: center; padding: 22px 10px; }

/* ------------------------------------------------------------ the top bar: brand, tabs, who is signed in */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
@media (display-mode: standalone) { .top { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; } }
.top-in { max-width: 1180px; margin: 0 auto; min-height: var(--top-h); padding: 0 20px; display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 9px; flex: none; color: inherit; text-decoration: none; }
.logo { display: block; width: 24px; height: 24px; border-radius: 7px; background: var(--accent) url("icon.svg") center / cover;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 40%, transparent); }
.brand-name { font-weight: 650; font-size: 15px; letter-spacing: -.01em; }
.tabs { display: flex; gap: 2px; background: var(--bg2); border-radius: 11px; padding: 3px; min-width: 0; overflow-x: auto;
  scrollbar-width: none; margin-right: auto; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 8px; color: var(--muted); font-weight: 550;
  text-decoration: none; white-space: nowrap; transition: color .15s, background .15s; }
.tab:hover { color: var(--text); }
.tab[aria-current="page"] { background: var(--tab-on); color: var(--text); box-shadow: var(--tab-on-shadow); }
/* tabs that don't fit with their names (center.js fitTabs: on a phone always, and at any width where an owner's seven run
   past the row): every tab but the current one is its icon, the current one has its name and the room that is left —
   ending in an ellipsis if it must; the page's heading names the screen too. Nothing scrolls, nothing is cut off. */
.tabs.compact { overflow: hidden; gap: 0; }
.tabs.compact .tab { flex: none; justify-content: center; min-width: 40px; min-height: 36px; padding: 0 12px; }
.tabs.compact .tab:not([aria-current]) > span { display: none; }
.tabs.compact .tab[aria-current="page"] { flex: 1 1 auto; justify-content: flex-start; }
.tabs.compact .tab[aria-current="page"] > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
#who { display: flex; align-items: center; min-width: 0; margin-left: auto; }
.who-btn { display: flex; align-items: center; gap: 6px; height: var(--btn-h); max-width: 220px; padding: 0 10px 0 12px; border: 1px solid var(--btn-line);
  border-radius: var(--r-sm); background: var(--panel); font-weight: 550; }
.who-btn:hover { background: var(--hover); }
.who-btn svg { color: var(--muted); }
.who-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
@media (max-width: 860px) {
  .top-in { flex-wrap: wrap; padding: 10px 14px; row-gap: 10px; min-height: 0; }
  .tabs { order: 3; flex: 1 1 100%; margin-right: 0; }
  .tab { padding: 7px 11px; }
  .who-btn { max-width: 170px; }
}

/* the account's menu */
dialog.amenu { margin: 60px 12px auto auto; padding: 6px; min-width: 230px; max-width: calc(100vw - 24px); border: 1px solid var(--line2);
  border-radius: 14px; background: var(--panel); color: var(--text); box-shadow: var(--shadow-lg); }
dialog.amenu::backdrop { background: rgba(0, 0, 0, .15); }
.amenu-who { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.amenu-who small { color: var(--muted); overflow-wrap: anywhere; }
.amenu-i { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border: 0; border-radius: 9px; background: none; color: inherit;
  font: inherit; font-size: 14px; text-align: left; text-decoration: none; cursor: pointer; }
.amenu-i:hover, .amenu-i:focus-visible { background: var(--hover); outline: none; }
.amenu-i svg { width: 17px; height: 17px; }

/* ------------------------------------------------------------ the page */
main { max-width: 1080px; width: 100%; min-width: 0; margin: 0 auto; padding: 22px 20px calc(100px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 16px; }
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (max-width: 640px) { main { padding: 16px 12px calc(70px + env(safe-area-inset-bottom)); gap: 14px; } .stack { gap: 14px; } }
/* a lone card in the middle: signed out, no account (app.py's 403 page too) */
main.lone { max-width: 440px; margin: 14vh auto 0; padding: 28px 26px; gap: 14px; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow); text-align: center; align-items: center; }
main.lone p { line-height: 1.5; }
@media (max-width: 480px) { main.lone { margin: 10vh 12px 0; width: auto; } }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; }
.page-head > div:first-child { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; color: var(--muted); font-weight: 550; text-decoration: none; }
.back:hover { color: var(--text); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: var(--btn-h); padding: 0 14px;
  flex: none; box-sizing: border-box; background: var(--panel); color: var(--text); border: 1px solid var(--btn-line); border-radius: var(--r-sm);
  font-weight: 550; white-space: nowrap; text-decoration: none; transition: background .12s, border-color .12s, transform .06s; }
.btn:hover { background: var(--hover); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent2); border-color: var(--accent2); }
.btn.danger { color: var(--danger); }
.btn.danger:hover { background: var(--danger-soft); }
.btn.ok { color: var(--ok); }
.btn.ok:hover { background: var(--ok-soft); }
.btn.sm { padding: 0 11px; font-size: 13px; gap: 6px; }   /* (smaller type and padding: never another height) */
.btn.busy > svg.i { display: none; }
.btn.busy:disabled { opacity: .7; cursor: progress; }
.input, textarea { width: 100%; background: var(--panel2); border: 1px solid var(--line2); border-radius: var(--r-sm);
  padding: 0 12px; height: 38px; outline: 0; transition: border-color .15s, box-shadow .15s; }
:where(textarea).input { height: auto; padding: 10px 12px; line-height: 1.45; resize: vertical; font-family: var(--mono); font-size: 13px; }
.input:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input::placeholder { color: var(--muted); }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.card-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; margin-bottom: 8px; }
.card-head > div:not(.acts) { flex: 1; min-width: 0; }
.card-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--bg2); color: var(--text2); flex: none; display: grid; place-items: center; }
.card-title { font-weight: 650; }
.card-sub { color: var(--muted); font-size: 13px; }
.card > .err { margin-bottom: 8px; }
.org-head { display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 640px) { .card { padding: 14px; } }

.skels { display: flex; flex-direction: column; gap: 10px; padding: 8px 0; }
.skel { height: 18px; border-radius: 6px; background: linear-gradient(90deg, var(--bg2), var(--line), var(--bg2)); background-size: 200% 100%;
  animation: sk 1.4s linear infinite; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ------------------------------------------------------------ lists (center-lib.js row()) */
.c-list { display: flex; flex-direction: column; min-width: 0; }
.c-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 6px 12px calc(6px + var(--d, 0) * 22px);
  border-top: 1px solid var(--line); color: inherit; text-decoration: none; min-width: 0; }
.c-list > .c-row:first-child { border-top: 0; }
.c-row.link { border-radius: var(--r-sm); transition: background .12s; }
.c-row.link:hover { background: var(--hover); }
.c-row.link:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.tree .c-row[style] { position: relative; }
.tree .c-row[style]::before { content: ""; position: absolute; left: calc(var(--d) * 22px - 8px); top: 0; bottom: 50%; width: 9px;
  border-left: 1.5px solid var(--line2); border-bottom: 1.5px solid var(--line2); border-bottom-left-radius: 6px; }
.c-lead { flex: none; display: flex; }
.c-main { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.c-title { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; min-width: 0; }
.c-name { font-weight: 600; overflow-wrap: anywhere; }
.c-meta { color: var(--muted); font-size: 13px; }
/* a line of facts "a · b · c" (center-lib.js metaParts; row()'s meta): each part whole, wrapped as one; a "·" before
   every part, and the line moved left by a separator's width with that strip clipped away — the "·" before a part that
   starts a line (the first, or one wrapped) falls in it, so no line starts with a separator (DEVENV-251: "· last seen"
   began the second line on a phone). The node's page has the same rule (files/static/app.css). */
.meta-parts { --sep: 1.35em; display: flex; flex-wrap: wrap; min-width: 0; margin-left: calc(-1 * var(--sep)); clip-path: inset(0 0 0 var(--sep)); overflow-wrap: anywhere; }
.meta-parts > span { position: relative; min-width: 0; padding-left: var(--sep); }
.meta-parts > span::before { content: "·"; position: absolute; left: 0; width: var(--sep); text-align: center; }
.c-acts { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.c-chev { color: var(--muted); flex: none; }
.c-row > .err { flex: 1 1 100%; }
.c-ctl { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; }
.c-face { width: 34px; height: 34px; font-size: 12.5px; }
@media (max-width: 640px) {
  .c-acts { margin-left: 0; flex: 1 1 100%; }
  .c-row:has(.c-lead) .c-acts { padding-left: 46px; }
}

.chip { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 99px; font-size: 11.5px; font-weight: 600;
  background: var(--bg2); color: var(--text2); white-space: nowrap; letter-spacing: .01em; }
code.chip { font-family: var(--mono); font-weight: 500; }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.warn { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); }
.chip.bad { background: var(--danger-soft); color: var(--danger); }
.chip.accent { background: var(--accent-soft); color: var(--accent); }

/* fields, forms */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-l { font-size: 13px; font-weight: 550; color: var(--text2); }
.fields { display: flex; flex-direction: column; gap: 12px; }
.inline-field { display: flex; align-items: center; gap: 8px; }
.pk-btn.c-pk { width: auto; min-width: 0; min-height: var(--btn-h); height: var(--btn-h); padding: 0 8px 0 12px; font-size: 13px; flex: none; }
.pk-btn.c-pk:not(:hover, :focus-visible, .open) { border-color: var(--btn-line); }
.pk-btn.c-pk .pk-btn-title { font-weight: 550; }
.pk-btn.c-pk .pk-btn-sub { display: none; }
.add-form { display: flex; flex-direction: column; gap: 8px; }
.add-form:not(.card) { margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.add-title { font-weight: 600; }
.add-row { display: flex; gap: 8px; flex-wrap: wrap; }
.add-row .input { flex: 1 1 200px; min-width: 0; }
.add-row .pk-btn { width: auto; flex: none; }
.search { position: relative; }
.search > svg.i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search .input { padding-left: 36px; height: 40px; background: var(--panel); }

/* the switch (center-lib.js toggle()): a hidden, focusable checkbox, its track drawn */
.sw { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: var(--btn-h); cursor: pointer; color: var(--text2); font-size: 13px;
  -webkit-tap-highlight-color: transparent; }
.sw-in { position: absolute; left: 0; top: 50%; width: 34px; height: 20px; margin: -10px 0 0; opacity: 0; pointer-events: none; }
.sw-track { position: relative; flex: none; width: 34px; height: 20px; border-radius: 99px; background: color-mix(in srgb, var(--muted) 45%, var(--line2));
  transition: background .15s, box-shadow .15s; }
.sw-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .15s; }
.sw-in:checked + .sw-track { background: var(--accent); }
.sw-in:checked + .sw-track::after { transform: translateX(14px); }
.sw-in:focus-visible + .sw-track { box-shadow: 0 0 0 3px var(--accent-soft); }
.sw:has(.sw-in:disabled) { cursor: default; }
.sw-in:disabled ~ .sw-track, .sw-in:disabled ~ .sw-l { opacity: .5; }
@media (prefers-reduced-motion: reduce) { .sw-track, .sw-track::after { transition: none; } }

/* the checkbox (picker.js checkbox()): its box first, then its label and a hint under it */
.ck { position: relative; display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 12px 0; cursor: pointer;
  color: var(--text); text-align: left; -webkit-tap-highlight-color: transparent; }
.ck-in { position: absolute; top: 12px; left: 0; width: 20px; height: 20px; margin: 0; opacity: 0; pointer-events: none; }
.ck-box { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border: 1.5px solid color-mix(in srgb, var(--muted) 55%, var(--line));
  border-radius: 6px; background: var(--panel); color: var(--accent-ink); transition: background .12s, border-color .12s, box-shadow .12s; }
.ck-box .i { width: 14px; height: 14px; stroke-width: 3; vertical-align: 0; opacity: 0; transform: scale(.6); transition: opacity .12s, transform .12s; }
.ck:hover .ck-box { border-color: var(--accent); }
.ck-in:checked + .ck-box, .ck-in:indeterminate + .ck-box { background: var(--accent); border-color: var(--accent); }
.ck-in:checked + .ck-box .i { opacity: 1; transform: none; }
.ck-in:indeterminate + .ck-box .i { display: none; }
.ck-in:indeterminate + .ck-box::after { content: ""; width: 10px; height: 2px; border-radius: 1px; background: var(--accent-ink); }
.ck-in:focus-visible + .ck-box { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ck-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; line-height: 20px; overflow-wrap: anywhere; }
.ck-h { color: var(--muted); font-size: 13px; line-height: 1.4; }
.ck:has(.ck-in:disabled) { cursor: default; }
.ck-in:disabled ~ .ck-box, .ck-in:disabled ~ .ck-t { opacity: .5; }
.ck.ck-bare { padding: 0; min-width: 44px; align-items: center; justify-content: center; }
.ck.ck-bare .ck-in { top: 50%; left: 50%; transform: translate(-50%, -50%); }
@media (prefers-reduced-motion: reduce) { .ck-box, .ck-box .i { transition: none; } }
.ck-list { display: flex; flex-direction: column; max-height: 42vh; overflow-y: auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ck-list .ck + .ck { border-top: 1px solid var(--line); }
/* (a row is as tall as what it says: in a column that may scroll, a flex item would be squeezed to its min-height instead
   — a row's hint was then drawn over the row below it) */
.ck-list > * { flex: none; }

/* dialogs (dialog.js, and center-lib.js formDialog()): a sheet at the bottom on a phone, a box in the middle on a wider screen */
.dlg { border: 1px solid var(--line2); padding: 0; background: var(--panel); color: var(--text); border-radius: var(--r); width: min(460px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px); overflow: auto; box-shadow: var(--shadow-lg); }
.dlg::backdrop { background: rgb(0 0 0 / .45); }
.dlg-form { display: flex; flex-direction: column; gap: 12px; padding: 20px; }
.dlg-title { margin: 0; font-size: 17px; font-weight: 650; overflow-wrap: anywhere; }
.dlg-text { margin: 0; color: var(--text2); line-height: 1.45; }
.dlg-field { display: flex; flex-direction: column; gap: 6px; }
.dlg-foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 4px; }
@media (max-width: 599px) {
  .dlg { margin: auto 0 0; width: 100vw; max-width: 100vw; max-height: calc(100dvh - 24px); border-radius: var(--r) var(--r) 0 0;
    padding-bottom: env(safe-area-inset-bottom); }
  .dlg-foot .btn { flex: 1; }
}
/* what is visible with a phone's keyboard up (center-lib.js watchVisible: --vv-*): a dialog is placed in it and is no
   taller than it, so its top, the field with the focus and its buttons can be reached; it scrolls inside itself */
dialog[open] { inset-block: calc(var(--vv-top, 0px) + env(safe-area-inset-top)) var(--vv-bottom, 0px);
  max-height: calc(var(--vv-h, 100dvh) - env(safe-area-inset-top) - 16px); overscroll-behavior: contain; }

/* the trail */
.trail { display: flex; flex-direction: column; }
.trail-row { display: grid; grid-template-columns: 170px minmax(0, 160px) minmax(0, 150px) minmax(0, 1fr); gap: 4px 14px; padding: 9px 6px;
  border-top: 1px solid var(--line); font-size: 13px; align-items: baseline; }
.trail-row:first-child { border-top: 0; }
.trail-when { color: var(--muted); white-space: nowrap; }
.trail-who { font-weight: 550; overflow-wrap: anywhere; }
.trail-what { font-size: 12px; color: var(--accent); overflow-wrap: anywhere; }
.trail-target { color: var(--text2); overflow-wrap: anywhere; font-family: var(--mono); font-size: 12px; }
@media (max-width: 640px) { .trail-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* Releases (center-releases.js): a release's three rings under its line */
.rings { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.ring { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.ring-name { width: 68px; flex: none; color: var(--text2); font-weight: 600; }
.ring-nodes { color: var(--muted); overflow-wrap: anywhere; }
.rings .err, .rings .note { margin: 2px 0 0; }
.warn-line { color: var(--warn); }

/* features (center-features.js): pickers and numbers two to a row, one on a phone */
.fields.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .fields.two { grid-template-columns: 1fr; } }

/* a command to copy (an on-prem node's install line) */
.input.mono { font-family: var(--mono); font-size: 12.5px; line-height: 1.5; height: auto; padding: 10px 12px; word-break: break-all; }

/* a node's health (center-nodes.js healthDialog): a label and what it says */
.ring-name.wide { width: 150px; }
.ring-val { flex: 1 1 0; min-width: 0; }   /* (a value longer than its column wraps in it, beside its name: DEVENV-247) */

/* a node's own Client Hub addresses (center-nodes.js addressRow) */
.addrs { display: flex; flex-direction: column; gap: 10px; }
.addr { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.addr .ring b, .addr-rec { overflow-wrap: anywhere; }
.addr-how { display: flex; flex-direction: column; gap: 4px; width: 100%; }
.addr .note { margin: 0; }
.addr-rec { font-family: var(--mono); font-size: 12px; background: var(--bg2); border-radius: 6px; padding: 6px 8px; user-select: all; }

/* a certificate for this browser (center-certs.js): its steps, each with its mark, and the password shown once */
.dlg-form.flat { padding: 0; }
.cert-note { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; line-height: 1.45; }
.cert-note svg.i { flex: none; width: 15px; height: 15px; margin-top: 2px; }
.keep-open { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: var(--r-sm); background: var(--bg2);
  color: var(--text2); font-size: 13px; line-height: 1.45; }
.keep-open svg.i { flex: none; width: 16px; height: 16px; margin-top: 1px; color: var(--warn); }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.step { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); }
.step.doing, .step.done, .step.failed { color: var(--text); }
.step-mark { flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; border: 1.5px solid var(--line2); display: grid; place-items: center; font-size: 14px; }
.step.doing .step-mark, .step.done .step-mark, .step.failed .step-mark { border: 0; }
.step.done .step-mark { color: var(--ok); }
.step.failed .step-mark { color: var(--danger); }
.step-mark svg.i { width: 18px; height: 18px; }
/* the running step's spinner as large as the circle of a step still to come and the done or failed icon: the whole
   18px box (spinner() is 1em of its own font size), its ring at the box's edge and as thick as the circle's line */
.step-mark > .spinner { font-size: 18px; --sp-in: 0px; --sp-w: 1.5px; }
.step-l { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.step-note:empty { display: none; }
.pw-box { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pw { font-family: var(--mono); font-size: 17px; font-weight: 600; letter-spacing: .04em; padding: 10px 12px; border-radius: var(--r-sm);
  background: var(--bg2); user-select: all; overflow-wrap: anywhere; }
.install ol { margin: 6px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; color: var(--text2); line-height: 1.45; font-size: 14px; }

/* ------------------------------------------------------------ a touch screen
   iOS zooms into a field whose text is smaller than 16 px, and stays zoomed: every field is 16 px there, whatever it is
   elsewhere (last in the file: after each field's own size). The picker's own field: picker.css. */
/* "Your devices": the Center's own certificates, then the nodes' (center-certs.js) */
.c-group { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px 4px; font-size: 12px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.c-group .btn { text-transform: none; letter-spacing: 0; }
/* (a long button — "Add a key for another phone or computer" — goes under the group's name on a phone; on the
   narrowest it is a little smaller, and below that its words end in an ellipsis, the whole in its title) */
.c-group { flex-wrap: wrap; }
.c-group .btn { max-width: 100%; min-width: 0; }
.c-group .btn .btn-l { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (max-width: 380px) { .c-group .btn { font-size: 12px; padding: 0 8px; gap: 5px; } }
.pw.link { font-size: 13px; word-break: break-all; }
/* the invite (center.js inviteScreen) and the enrolment page (center-enrol.js) */
.howto { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--text2); line-height: 1.5; }
.howto li.now { color: var(--text); font-weight: 600; }
.lone .steps { margin: 4px 0; }
.lone .pw-box .pw { flex: 1 1 auto; min-width: 0; }
.msgs { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 10px 12px; border-radius: var(--r-sm); background: var(--bg2); font-size: 14px; line-height: 1.45; color: var(--text2); }
.msgs b { color: var(--text); font-weight: 600; }
main.lone.guide { max-width: 520px; margin-top: 6vh; text-align: left; align-items: stretch; }
main.lone.guide h1 { font-size: 24px; line-height: 1.25; margin: 0; }
@media (max-width: 480px) { main.lone.guide { margin: 12px 10px 0; padding: 22px 18px; } }
/* the front door (center-front.js) and adding a phone or computer (center-certs.js, center-enrol.js) */
.front-wait { display: flex; gap: 10px; align-items: center; margin: 0; color: var(--text2); }
.front-wait > .spinner { font-size: 18px; }
/* the front door's / (DEVENV-250): its ways on, a card per group, questions that open in place */
main.front-main { max-width: 640px; padding-top: calc(18px + env(safe-area-inset-top)); }
.front { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.front-head { display: flex; gap: 14px; align-items: center; padding: 4px 2px 2px; }
.front-head > div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.front-head p { color: var(--text2); line-height: 1.45; }
.logo.lg { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.front-status { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line);
  background: var(--panel); box-shadow: var(--shadow); }
.front-status > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.front-status b { font-weight: 650; color: var(--text); }
.front-status > .spinner { font-size: 20px; flex: none; }
.front-status .st-i { width: 22px; height: 22px; flex: none; }
.front-status[data-state="ok"] { border-color: color-mix(in srgb, var(--ok) 35%, var(--line)); background: color-mix(in srgb, var(--ok) 7%, var(--panel)); }
.front-status[data-state="ok"] .st-i { color: var(--ok); }
.front-status[data-state="no"] { border-color: color-mix(in srgb, var(--warn) 40%, var(--line)); background: color-mix(in srgb, var(--warn) 8%, var(--panel)); }
.front-status[data-state="no"] .st-i { color: var(--warn); }
.front-card { padding: 16px; }
.front-card .card-head { margin-bottom: 4px; }
.front-card .card-title { font-size: 16px; }
.front-card > .c-list { margin: 0 -16px; }
.front-card > .c-group { margin: 0 -16px; padding-top: 14px; }
.front-nodes { margin: 0 -16px -16px; }
.front-card .c-row { padding: 12px 16px; border-radius: 0; }
.front-card .c-row.link:focus-visible { border-radius: 0; }
.front-nodes > .c-list > .skels { padding: 12px 16px; }
.card-icon.sm { width: 30px; height: 30px; border-radius: 9px; }
.faq { border-top: 1px solid var(--line); margin: 0 -16px; }
.faq:last-child { margin-bottom: -16px; }
.faq > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 13px 16px; cursor: pointer; font-weight: 600; color: var(--text); }
.faq > summary::-webkit-details-marker { display: none; }
.faq > summary > span { flex: 1; min-width: 0; }
.faq > summary:hover { background: var(--hover); }
.faq > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.faq-chev { color: var(--muted); transition: transform .15s; }
.faq[open] .faq-chev { transform: rotate(180deg); }
.faq-body { display: flex; flex-direction: column; gap: 10px; padding: 0 16px 16px; }
.faq-body p { line-height: 1.5; }
.front-form { gap: 10px; }
.pics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 2px 0 4px; }
.pics figure { margin: 0; display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; }
.pics figcaption { font-size: 12px; line-height: 1.35; color: var(--text2); }
svg.pic { width: 100%; max-width: 120px; height: auto; display: block; border-radius: var(--r-sm); background: var(--bg2); }
.pic .p-dev { fill: var(--panel); stroke: var(--line2); stroke-width: 2; }
.pic path.p-dev { fill: none; stroke-linecap: round; }
.pic .p-line { fill: var(--line2); }
.pic .p-pick { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.5; }
.pic .p-ink { fill: var(--accent); }
.pic .p-btn { fill: var(--accent); }
.pic .p-btn-ink { stroke: var(--accent-ink); stroke-width: 2; stroke-linecap: round; fill: none; }
.pic .p-path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 4 4; stroke-linecap: round; }
.front-cmd-box { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.front-cmd { display: block; width: 100%; font-size: 12.5px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--bg2); color: var(--text);
  overflow-wrap: anywhere; user-select: all; }
.front-what { display: flex; flex-direction: column; gap: 8px; }
.front-what p { line-height: 1.5; }
.front-what b { color: var(--text); font-weight: 650; }
.front-keep { display: flex; gap: 8px; align-items: flex-start; padding: 0 4px; line-height: 1.45; }
.front-keep svg.i { margin-top: 2px; }
.qr { display: block; width: min(240px, 70vw); height: auto; image-rendering: pixelated; border-radius: var(--r-sm); background: #fff; padding: 8px; margin: 0 auto; }
.add-link { display: flex; flex-direction: column; gap: 12px; }
.add-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.places { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.places .pick-row { display: flex; gap: 10px; align-items: center; }
/* a dialog's foot with three choices (People's "Send a key code"): on a phone, the main one takes a line of its own */
.dlg-foot.three { flex-wrap: wrap; }
@media (max-width: 640px) { .dlg-foot.three .btn.primary { flex: 1 1 100%; order: -1; } }
@media (hover: none) and (pointer: coarse) {
  input, textarea, select, .input, :where(textarea).input, .input.mono { font-size: 16px; }
}
