/* cardbot-dash design system (r24): every shared component defined once. style.css and grok.css sit in the
   legacy, r19 and late cascade layers; this file is unlayered, so a rule here wins over theirs without specificity
   escalation, and a view rule there cannot quietly restyle a component. Order: tokens (dark, then light), then one
   block per component (its header names the markup it owns), then the reduced-motion tail. */

/* ==== tokens ==== */
:root{
  color-scheme:dark;
  --bg:#0f0e0d; --surface-1:#1d1c1a; --surface-2:#262522; --surface-3:#2f2d29; --raised:#2b2926;
  --border:#3a3833; --border-soft:#302e2a; --border-strong:#57534c;
  --text:#edebe6; --text-2:#b4aea5; --text-3:#a6a097;
  --border-focus:#77716a; --focus-soft:rgba(255,255,255,.08); --tab-line:var(--text);
  --surface-overlay:#2d2a27; --overlay-border:rgba(255,255,255,.10);
  --shadow-overlay:0 16px 40px rgba(0,0,0,.55),0 2px 8px rgba(0,0,0,.35);
  --shadow-drawer:-24px 0 48px rgba(0,0,0,.5);
  --field-focus-edge:var(--border-focus); --field-ring:var(--focus-soft);
  --opt-bg:var(--surface-1); --opt-border:var(--border); --opt-border-hover:var(--border-strong); --opt-ring:var(--text); --opt-dot:var(--text); --opt-sel-bg:transparent; --opt-sel-edge:var(--text-2); --control-edge:#6b665e;
  --seg-track:var(--surface-2); --seg-on:#3f3c37; --seg-on-edge:rgba(255,255,255,.14); --seg-on-shadow:0 1px 2px rgba(0,0,0,.45);
  --meter-track:#3a3733; --meter-fill:#d9d3ca; --meter-hi:var(--warn); --meter-crit:var(--bad);
  --track:var(--meter-track); --meter:var(--meter-fill);
  --count-bg:#34312c; --count-fg:var(--text-2);
  --attn-edge:var(--accent); --callout-warn-bg:rgba(255,139,87,.07);
  --sel-bg:transparent; --pick-fill:var(--opt-bg); --pick-edge:var(--opt-ring);
  --switch-off:#3f3c37; --switch-off-edge:var(--control-edge);
  --scrim:rgba(8,7,6,.60); --scrim-sheet:rgba(8,7,6,.60);
  --bh:36px; --kcol:104px;
  --link:var(--text); --link-line:var(--border-strong);
  --callout-warn-edge:color-mix(in srgb,var(--warn) 35%,transparent);
  --thead-bg:transparent;
  --chat-canvas:var(--bg); --side-surface:var(--surface-1);
  --bubble-user:#2b2926; --bubble-mine:var(--bubble-user); --bubble-mine-border:var(--bubble-user);
  --well:#111111; --well-edge:rgba(255,255,255,.08);
  --shadow-card:0 0 0 0 transparent;
}
@media (prefers-color-scheme:light){
  :root:not([data-theme="dark"]){
    color-scheme:light;
    --bg:#eeeae3; --surface-1:#fffdfa; --surface-2:#f5f1ea; --surface-3:#ebe6dd; --raised:#fffdfa;
    --border:#d8cfc0; --border-soft:#e6dfd3; --border-strong:#bbb09e;
    --text:#1d1a16; --text-2:#5f574c; --text-3:#6a6256;
    --border-focus:#9a8f80; --focus-soft:rgba(29,26,22,.08); --tab-line:var(--text); --field-focus-edge:var(--border-focus); --field-ring:var(--focus-soft);
    --surface-overlay:#ffffff; --overlay-border:#d9d0c2;
    --shadow-overlay:0 16px 40px rgba(64,44,16,.16),0 2px 6px rgba(64,44,16,.08);
    --shadow-drawer:-24px 0 48px rgba(64,44,16,.14);
    --opt-sel-bg:transparent; --opt-sel-edge:var(--text-2); --control-edge:#a39784;
    --seg-track:#f1ece4; --seg-on:#ffffff; --seg-on-edge:#d8d0c3; --seg-on-shadow:0 1px 2px rgba(64,44,16,.12);
    --meter-track:#e3dccf; --meter-fill:#4f483e;
    --count-bg:#e3dccf;
    --attn-edge:var(--accent); --callout-warn-bg:#fdf6e6; --callout-warn-edge:#e9cf98; --callout-warn-ic:#8a5300;
    --switch-off:#e2dbcf; --switch-off-edge:var(--control-edge);
    --scrim:rgba(24,22,20,.45); --scrim-sheet:rgba(24,22,20,.45);
    --shadow-card:0 1px 2px rgba(64,44,16,.05); --link-line:#c4baa9;
    --chat-canvas:var(--bg); --side-surface:var(--surface-1);
    --bubble-user:#e4dbcc; --bubble-mine:var(--bubble-user); --bubble-mine-border:var(--bubble-user);
    --well-edge:#2a2622;
  }
}
:root[data-theme="light"]{
  color-scheme:light;
  --bg:#eeeae3; --surface-1:#fffdfa; --surface-2:#f5f1ea; --surface-3:#ebe6dd; --raised:#fffdfa;
  --border:#d8cfc0; --border-soft:#e6dfd3; --border-strong:#bbb09e;
  --text:#1d1a16; --text-2:#5f574c; --text-3:#6a6256;
  --border-focus:#9a8f80; --focus-soft:rgba(29,26,22,.08); --tab-line:var(--text); --field-focus-edge:var(--border-focus); --field-ring:var(--focus-soft);
  --surface-overlay:#ffffff; --overlay-border:#d9d0c2;
  --shadow-overlay:0 16px 40px rgba(64,44,16,.16),0 2px 6px rgba(64,44,16,.08);
  --shadow-drawer:-24px 0 48px rgba(64,44,16,.14);
  --opt-sel-bg:transparent; --opt-sel-edge:var(--text-2); --control-edge:#a39784;
  --seg-track:#f1ece4; --seg-on:#ffffff; --seg-on-edge:#d8d0c3; --seg-on-shadow:0 1px 2px rgba(64,44,16,.12);
  --meter-track:#e3dccf; --meter-fill:#4f483e;
  --count-bg:#e3dccf;
  --attn-edge:var(--accent); --callout-warn-bg:#fdf6e6; --callout-warn-edge:#e9cf98; --callout-warn-ic:#8a5300;
  --switch-off:#e2dbcf; --switch-off-edge:var(--control-edge);
  --scrim:rgba(24,22,20,.45); --scrim-sheet:rgba(24,22,20,.45);
  --shadow-card:0 1px 2px rgba(64,44,16,.05); --link-line:#c4baa9;
  --chat-canvas:var(--bg); --side-surface:var(--surface-1);
  --bubble-user:#e4dbcc; --bubble-mine:var(--bubble-user); --bubble-mine-border:var(--bubble-user);
  --well-edge:#2a2622;
}
@media (max-width:700px){:root{--bh:44px}}

/* ==== the meta line (.mline): facts 16 px apart, a middle dot centred in each gap (drawn left of the item it opens);
   the row clips at its left edge, so a dot that would open a line (the first, or a wrapped one) is never seen and no
   line ends on a dot. A padded row names its padding in --ml-clip. ==== */
.mline{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:16px;row-gap:2px;min-width:0;clip-path:inset(-6px -6px -6px var(--ml-clip,0px))}
.mline > *{white-space:nowrap;padding-left:0}
.mline > :not(.vh){position:relative}
.mline > *::after{content:none}
.mline > :not(.vh)::before{content:"·";position:absolute;top:0;left:-16px;width:16px;margin:0;padding:0;text-align:center;color:var(--text-3);font-weight:400;font-style:normal}

/* ==== type floor: 13 px for any meta; mono 13 px for ids, paths and code ==== */
code,kbd,samp,.idchip,.pid,.mono,.ck-cid,.host,.act-d,.apath,.code-chip,.ipanel .act time.w{font-size:13px}
.host > .port,code > span{font-size:inherit}
.eyebrow,h3.eyebrow,.props-h,h3.props-h,.dsec-h,.fsec > legend,.sec-k,.mgl,.mgh .sec-k{font:600 13px/18px var(--sans);letter-spacing:0;text-transform:none;color:var(--text-2)}

/* ==== buttons: primary .go/.cf-go, secondary button.sec (and the legacy plain text buttons in footers and tool rows),
   ghost, danger. One height (36 desktop, 44 phone), radius 8, 14 px labels, 16 px icons, 6 px gap. The lists are
   :where()s, so the states below win by order, never by an argument's specificity. */
:where(button.go,a.go,button.cf-go,button.sec,button.deny,button.danger,button.ghost,button.acc-cancel,button.dx-act,button.ap-n-go,button.pg-open,button.go2,.toolrow > button,.dfoot > button,.drawer .row > button,.cf > button,.cf .row > button,.dzrow button.danger):where(:not(.it,.ib,.send,.gk-send,.verbs > .verb,.scrmodes > .verb,[role=menuitem],.items > button,.composer > button)){
  flex-direction:row;align-items:center;justify-content:center;gap:6px;box-sizing:border-box;width:auto;height:var(--bh);min-height:var(--bh);
  padding:0 14px;margin:0;border:1px solid var(--border-strong);border-radius:8px;background:transparent;box-shadow:none;
  font:500 14px/20px var(--sans);letter-spacing:0;text-transform:none;color:var(--text);white-space:nowrap;cursor:pointer;opacity:1;
  transition:background-color 120ms ease,border-color 120ms ease,color 120ms ease}
:where(button.go,a.go,button.cf-go,button.sec,button.deny,button.danger,button.ghost,button.acc-cancel,button.dx-act,button.ap-n-go,button.pg-open,button.go2,.toolrow > button,.dfoot > button,.drawer .row > button,.cf > button,.cf .row > button,.dzrow button.danger):where(:not(.it,.ib,.send,.gk-send,.verbs > .verb,.scrmodes > .verb,[role=menuitem],.items > button,.composer > button)) > .ic{width:16px;height:16px;flex:none}
/* secondary: hover and off */
:where(button.sec,button.deny,button.acc-cancel,button.dx-act,button.ap-n-go,button.pg-open,button.go2,.toolrow > button,.dfoot > button,.drawer .row > button,.cf > button,.cf .row > button):where(:not(.it,.ib,.send,.gk-send,.verbs > .verb,.scrmodes > .verb,[role=menuitem],.items > button,.composer > button)):where(:not(.go,.cf-go,.danger,.ghost)):hover:not(:disabled){background:var(--hover);border-color:var(--border-strong);color:var(--text)}
:where(button.sec,button.deny,button.acc-cancel,button.dx-act,button.ap-n-go,button.pg-open,button.go2,.toolrow > button,.dfoot > button,.drawer .row > button,.cf > button,.cf .row > button):where(:not(.it,.ib,.send,.gk-send,.verbs > .verb,.scrmodes > .verb,[role=menuitem],.items > button,.composer > button)):where(:not(.go,.cf-go,.danger,.ghost)):disabled{border-color:var(--border);background:transparent;color:var(--text-2);cursor:not-allowed}
/* primary */
:where(button.go,a.go,button.cf-go):where(:not(.it,.ib,.send,.gk-send,.verbs > .verb,.scrmodes > .verb,[role=menuitem],.items > button,.composer > button)){border-color:var(--accent);background:var(--accent);color:var(--accent-ink);font-weight:600}
:where(button.go,a.go,button.cf-go):where(:not(.it,.ib,.send,.gk-send,.verbs > .verb,.scrmodes > .verb,[role=menuitem],.items > button,.composer > button)):hover:not(:disabled){border-color:var(--accent-hover);background:var(--accent-hover);color:var(--accent-ink)}
/* disabled primary: neutral filled, borderless, a readable label (the reason sits beside it in the footer) — never a
   dimmed amber, never outlined like a secondary or bordered like a field */
:where(button.go,button.cf-go):where(:not(.it,.ib,.send,.gk-send,.verbs > .verb,.scrmodes > .verb,[role=menuitem],.items > button,.composer > button)):disabled{border-color:var(--border-strong);background:transparent;color:var(--text-2);font-weight:500;opacity:1;box-shadow:none;cursor:not-allowed;filter:none}
:where(button.go,button.cf-go,button.danger):disabled > *{opacity:1}
:where(button.go,a.go,button.cf-go,button.danger) > :is(.ic,svg){color:currentColor;opacity:1}
/* the strong secondary: a pausing commit (Suspend, Stop, Drain, Freeze all) — outlined, semibold, the primary's box */
:where(button.sec.commit):where(:not(.it,.ib)){border-color:var(--border-strong);background:transparent;color:var(--text);font-weight:600}
:where(button.sec.commit):where(:not(.it,.ib)):hover:not(:disabled){background:var(--hover)}
:where(button.sec.commit):where(:not(.it,.ib)):disabled{border-color:var(--border-strong);background:transparent;color:var(--text-2);font-weight:500;cursor:not-allowed}
/* ghost (tertiary text) */
:where(button.ghost):where(:not(.it,.ib,.send,.gk-send,.verbs > .verb,.scrmodes > .verb,[role=menuitem],.items > button,.composer > button)){border-color:transparent;color:var(--text-2)}
:where(button.ghost):where(:not(.it,.ib,.send,.gk-send,.verbs > .verb,.scrmodes > .verb,[role=menuitem],.items > button,.composer > button)):hover:not(:disabled){background:var(--hover);color:var(--text)}
/* danger: a red edge, a red fill on hover; disabled a red tint; a drawer's armed submit filled */
:where(button.danger):where(:not(.it,.ib,.send,.gk-send,.verbs > .verb,.scrmodes > .verb,[role=menuitem],.items > button,.composer > button)){border-color:color-mix(in srgb,var(--bad) 55%,transparent);background:transparent;color:var(--bad-ink,var(--bad));font-weight:500}
:where(button.danger):where(:not(.it,.ib,.send,.gk-send,.verbs > .verb,.scrmodes > .verb,[role=menuitem],.items > button,.composer > button)):hover:not(:disabled){border-color:var(--bad-solid);background:var(--bad-solid);color:#fff}
:where(button.danger):where(:not(.it,.ib,.send,.gk-send,.verbs > .verb,.scrmodes > .verb,[role=menuitem],.items > button,.composer > button)):disabled{border-color:var(--border-strong);background:transparent;color:var(--text-2);opacity:1;cursor:not-allowed}
:where(.drawer button.danger[type=submit]):where(:not(.it,.ib,.send,.gk-send,.verbs > .verb,.scrmodes > .verb,[role=menuitem],.items > button,.composer > button)):not(:disabled){border-color:var(--bad-solid);background:var(--bad-solid);color:#fff}
:where(button.go,button.cf-go,button.sec,button.danger,button.ghost):active:not(:disabled){transform:translateY(1px)}
/* icon buttons and the one close button */
button.ib{place-items:center;box-sizing:border-box;width:32px;height:32px;min-width:32px;min-height:32px;padding:0;border:0;border-radius:8px;background:transparent;box-shadow:none;color:var(--text-2);cursor:pointer}
button.ib:hover:not(:disabled){background:var(--hover);color:var(--text)}
button.ib:disabled{opacity:.4;cursor:not-allowed}
/* a toolbar's refresh sits among outlined buttons, so it is the outlined icon button */
button.ib:is(.refresh,.fref){border:0;border-radius:8px;color:var(--text-2)}
button.ib:is(.refresh,.fref):disabled{opacity:1;color:var(--text-3)}
:is(button.ib[aria-label=close],.drawer .dh > button.ib,.toast .x,.gk-pclose,.gk-icon.x){place-items:center;width:36px;height:36px;min-width:36px;min-height:36px;padding:0;border:0;border-radius:8px;background:transparent;box-shadow:none;color:var(--text-2)}
:is(button.ib[aria-label=close],.drawer .dh > button.ib,.gk-pclose,.gk-icon.x):hover:not(:disabled){background:var(--hover);color:var(--text)}
:is(button.ib[aria-label=close],.drawer .dh > button.ib,.gk-pclose,.gk-icon.x) > .ic{width:18px;height:18px}
@media (max-width:700px){
  button.ib{width:40px;height:40px;min-width:40px;min-height:40px}
  :is(button.ib[aria-label=close],.drawer .dh > button.ib,.gk-pclose,.gk-icon.x){width:40px;height:40px;min-width:40px;min-height:40px}
}
/* links */
:is(.link.elink,a.elink){color:var(--link);text-decoration:underline;text-decoration-color:var(--link-line);text-decoration-thickness:1px;text-underline-offset:3px}
:is(.link.elink,a.elink):hover,:is(.link.elink,a.elink):focus-visible{text-decoration-color:currentColor}
/* the text action (History ›, Full history ›): 500 text, no underline at rest, its chevron after it */
:is(.thist,.lnk){display:inline-flex;align-items:center;gap:2px;color:var(--text);font-weight:500;text-decoration:none}
:is(.thist,.lnk):hover{text-decoration:underline;text-decoration-color:var(--link-line);text-underline-offset:3px}
a.ih-crumb.elink{color:var(--text);font-weight:600;text-decoration:none}
a.ih-crumb.elink:hover,a.ih-crumb.elink:focus-visible{text-decoration:underline;text-decoration-color:var(--link-line)}
button.thist{height:auto;min-height:0;padding:0;border:0;border-radius:4px;background:none;box-shadow:none}
.history-view .link.nm.elink{color:var(--text)}

/* ==== choosing: two components; the accent marks the indicator (a radio's dot, an edge), never a fill.
   1. The segmented control: a mode or an action that reshapes what follows — ui.js Verbs (.verbs-g > .verbs.seg) and
      History's view switch (.segmented). A track on surface-2, the chosen segment a raised neutral thumb; every verb is
      a segment (an unavailable one muted, still a radio: its reason in its title and the description line); the
      description line 10 px under the control. Equal columns sized to the longest label; a phone fills the width and
      wraps more than three verbs into rows of three.
   2. The option list: choices that each need their sentence — the access roles (.roles-g) and the screen's modes
      (.scrmodes). One bordered group, hairlines between rows, a radio at the left; the chosen row has an amber radio
      and a 1 px inset amber edge on a neutral surface-2 fill. ==== */
.verbs-g{display:block;min-width:0;margin:0}
.verbs-g:has(> .verbs.seg){display:flex;flex-wrap:wrap;align-items:center;column-gap:0;row-gap:0}
.verbs-g > .verbs-d{flex:1 0 100%}
/* the unavailable verbs: quiet text radios after the track, a 16 px hairline divider before them */
.verbs-g > .verbs-na{position:relative;display:inline-flex;align-items:center;flex-wrap:wrap;gap:0;min-width:0;margin:0 0 0 16px;padding:0 0 0 9px;border:0}
.verbs-g > .verbs-na::before{content:"";position:absolute;left:0;top:50%;width:1px;height:16px;margin-top:-8px;background:var(--border)}
.verbs-g > .verbs-na > button.verb{display:inline-flex;align-items:center;box-sizing:border-box;height:var(--bh);min-height:var(--bh);margin:0;padding:0 8px;border:0;border-radius:8px;background:transparent;box-shadow:none;font:500 14px/20px var(--sans);letter-spacing:0;text-transform:none;color:var(--text-3);white-space:nowrap;cursor:not-allowed;opacity:1}
.verbs-g > .verbs-na > button.verb > .vt{font:inherit;color:inherit;text-decoration:none}
.verbs-g > .verbs-na > button.verb.on{color:var(--text)}
.verbs-g > .verbs-na > button.verb.on > .vt{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
.verbs-g > .verbs-na > button.verb:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
:is(.segmented,.verbs-g > .verbs.seg){display:inline-grid;grid-auto-flow:column;grid-auto-columns:1fr;align-items:stretch;gap:2px;box-sizing:border-box;height:var(--bh);min-width:0;max-width:100%;margin:0;padding:3px;border:1px solid var(--border);border-radius:10px;background:var(--seg-track);box-shadow:none}
.segmented{display:inline-flex}
:is(.segmented,.verbs-g > .verbs.seg) > button{display:inline-flex;align-items:center;justify-content:center;gap:6px;box-sizing:border-box;height:auto;min-height:0;min-width:0;margin:0;padding:0 14px;border:0;border-radius:7px;background:transparent;box-shadow:none;
  font:500 14px/20px var(--sans);letter-spacing:0;text-transform:none;color:var(--text-2);white-space:nowrap;cursor:pointer;opacity:1;transition:background-color 120ms ease,color 120ms ease}
:is(.segmented,.verbs-g > .verbs.seg) > button::before,:is(.segmented,.verbs-g > .verbs.seg) > button::after{content:none}
:is(.segmented,.verbs-g > .verbs.seg) > button:hover:not(:disabled):not(.on){color:var(--text);background:var(--hover)}
:is(.segmented,.verbs-g > .verbs.seg) > button.on,:is(.segmented,.verbs-g > .verbs.seg) > button.on:hover{background:var(--seg-on);box-shadow:0 0 0 1px var(--seg-on-edge),var(--seg-on-shadow);color:var(--text);font-weight:600}
:is(.segmented,.verbs-g > .verbs.seg) > button:focus-visible{outline:2px solid var(--focus);outline-offset:1px}
.verbs-g > .verbs.seg > button > .vt{font:inherit;color:inherit;white-space:nowrap}
.verbs-g > .verbs.seg > button:disabled{cursor:not-allowed}
.verbs-g > .verbs.seg > button:disabled:not(.on){color:var(--text-3)}
.segmented > button > .count{margin-left:2px}
.verbs-g > .verbs-d{margin:12px 0 0;font:400 13px/18px var(--sans);color:var(--text-2);text-wrap:pretty}
/* one helper line per action card: where the commit footer carries the verb's sentence, the short line under the
   control is left out (an unavailable verb's reason still shows there) */
:is(.card,form):has(footer.cf > p.cf-note) .verbs-g > .verbs-d:not(:has(.vna-r)){display:none}

.verbs-g:not(:last-child){margin-bottom:20px}
.verbs-g:has(+ footer.cf){margin-bottom:0}
@media (max-width:700px){
  :is(.segmented,.verbs-g > .verbs.seg){height:44px}
  .verbs-g > .verbs.seg{display:grid;grid-auto-flow:row;grid-template-columns:repeat(var(--n),minmax(0,1fr));width:100%;height:auto;min-height:44px;row-gap:3px}
  .verbs-g > .verbs.seg:is(.n5,.n6){grid-template-columns:repeat(3,minmax(0,1fr))}
  .verbs-g > .verbs.seg.n4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .verbs-g > .verbs.seg > button{min-height:36px;padding:0 8px}
  .verbs-g > .verbs-na{flex:1 0 100%;height:auto;margin:6px 0 0 -8px;padding:0;border:0}
  .verbs-g > .verbs-na::before{content:none}
  .verbs-g > .verbs-na > button.verb{height:32px;min-height:32px;font-size:14px}
}
/* the option list */
.verbs-g > .verbs.cards,.scrmodes{display:flex;flex-direction:column;gap:0;box-sizing:border-box;margin:0;padding:0;border:1px solid var(--border);border-radius:10px;background:var(--opt-bg);overflow:hidden}
.verbs-g > .verbs.cards > button.verb,.verbs-g > .verbs.cards > button.verb.on,.scrmodes > .verb,.scrmodes > .verb.on{
  display:grid;grid-template-columns:18px minmax(0,1fr);grid-template-areas:"d t" "d s";column-gap:12px;row-gap:2px;align-content:center;align-items:center;
  box-sizing:border-box;width:100%;min-width:0;height:auto;min-height:52px;margin:0;padding:10px 14px 10px 12px;
  border:0;border-radius:0;background:transparent;box-shadow:none;text-align:left;color:var(--text);font:inherit;cursor:pointer;opacity:1;transition:background-color 120ms ease}
.verbs-g > .verbs.cards > button.verb + button.verb,.scrmodes > .verb + .verb{border-top:1px solid var(--border-soft)}
.verbs-g > .verbs.cards > button.verb:not(:has(> .vd)){grid-template-areas:"d t"}
.verbs-g > .verbs.cards > button.verb > .vdot,.scrmodes > .verb > .vdot{grid-area:d;align-self:start;display:block;box-sizing:border-box;width:18px;height:18px;margin:1px 0 0;border:1.5px solid var(--control-edge);border-radius:50%;background:transparent;box-shadow:none}
.verbs-g > .verbs.cards > button.verb > .vdot::after,.scrmodes > .verb > .vdot::after{content:none}
.verbs-g > .verbs.cards > button.verb > .vt,.scrmodes > .verb > .vt{grid-area:t;min-width:0;display:flex;align-items:center;gap:8px;white-space:normal;overflow:visible;font:600 14px/20px var(--sans);color:var(--text);letter-spacing:0;text-transform:none}
.verbs-g > .verbs.cards > button.verb > .vd,.scrmodes > .verb > .vd{grid-area:s;display:block;min-width:0;margin:0;white-space:normal;overflow:visible;text-overflow:clip;-webkit-line-clamp:none;font:400 13px/18px var(--sans);color:var(--text-2)}
.verbs-g > .verbs.cards > button.verb:hover:not(:disabled):not(.on),.scrmodes > .verb:hover:not(:disabled):not(.on){background:var(--hover)}
.verbs-g > .verbs.cards > button.verb:hover:not(:disabled):not(.on) > .vdot,.scrmodes > .verb:hover:not(:disabled):not(.on) > .vdot{border-color:var(--text-3)}
.verbs-g > .verbs.cards > button.verb.on,.scrmodes > .verb.on{background:var(--opt-sel-bg);box-shadow:inset 0 0 0 1px var(--opt-sel-edge)}
.verbs-g > .verbs.cards > button.verb.on + button.verb,.scrmodes > .verb.on + .verb{border-top-color:transparent}
.verbs-g > .verbs.cards > button.verb.on > .vdot,.scrmodes > .verb.on > .vdot{border-color:var(--opt-ring);background:radial-gradient(circle,var(--opt-dot) 0 4px,transparent 4.5px)}
.verbs-g > .verbs.cards > button.verb:first-child.on,.scrmodes > .verb:first-child.on{border-radius:9px 9px 0 0}
.verbs-g > .verbs.cards > button.verb:last-child.on,.scrmodes > .verb:last-child.on{border-radius:0 0 9px 9px}
.verbs-g > .verbs.cards > button.verb:focus-visible,.scrmodes > .verb:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
.verbs-g > .verbs.cards > button.verb:disabled,.scrmodes > .verb:disabled{cursor:default}
.verbs-g > .verbs.cards > button.verb:disabled > :is(.vt,.vd),.scrmodes > .verb:disabled > :is(.vt,.vd,.vic){opacity:.6}
.verbs-g > .verbs.cards > button.verb:disabled > .vdot,.scrmodes > .verb:disabled > .vdot{opacity:.5}
@media (max-width:700px){.verbs-g > .verbs.cards > button.verb,.scrmodes > .verb{min-height:56px}.verbs-g > .verbs.cards > button.verb > .vt{font:600 15px/20px var(--sans)}}
.roles-g{margin:0}
.roles-g > .f-l{display:block;margin:0 0 6px;font:500 14px/20px var(--sans);color:var(--text)}

/* the screen's controls: Control (the modes as the option list), then Sharing (the clipboard switch row), straight on
   the panel (no card around them) */
.scrctlc{display:block;box-sizing:border-box;margin:20px 0 0;padding:0;border:0;border-radius:0;background:none;box-shadow:none}
.scrctlc > .scrctlh,.scrctlc .scrh{display:block;margin:0 0 10px;padding:0;font:600 15px/20px var(--sans);letter-spacing:0;text-transform:none;color:var(--text)}
.scrmodes > .verb > .vt .lt{font:inherit}
.scrmodes > .verb .bn{font-weight:600;color:var(--text)}
.scrctlc > .scrclip{margin:16px 0 0;padding:0;border:0;background:none;box-shadow:none;border-radius:0}
.scrctlc > .scrfoot{margin:0;padding:0;border:0;background:none}
.scrctlc > .scrfoot > .scracts,.scrfoot > .scracts{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0}
.scrclipfields{display:grid;gap:8px;margin-top:12px}
.scrctlc > .scrclip,.scrctlc > .scrclip.later{position:static;width:auto;height:auto;overflow:visible;clip-path:none;white-space:normal;display:flex;flex-direction:column;gap:8px}
.scrctlc > .scrclip > h4.scrh{position:static;width:auto;height:auto;margin:0 0 4px;overflow:visible;clip-path:none}
.scrclipfields > button{justify-self:start}

/* ==== switch (ui.js SwitchRow): checkbox grammar everywhere — [switch 36x20] 12 px [label 14/500] with its help (13) under
   the label; on is the accent track, off surface-3 with an edge; gated dims only the switch and opens the help with a lock ==== */
.switch{position:relative;display:inline-flex;flex:none;width:auto;height:auto;margin:0}
.switch > input[type=checkbox]{appearance:none;-webkit-appearance:none;position:relative;flex:none;width:36px;height:20px;min-width:36px;min-height:20px;margin:0;padding:0;border:0;border-radius:999px;background:var(--surface-3);box-shadow:inset 0 0 0 1px var(--border-strong);cursor:pointer;transition:background-color 120ms ease}
.switch > input[type=checkbox]::before{content:none}
.switch > input[type=checkbox]::after{content:"";position:absolute;top:3px;left:3px;width:14px;height:14px;border-radius:50%;background:var(--text-3);box-shadow:none;transform:none;transition:transform 120ms ease}
.switch > input[type=checkbox]:checked{background:var(--text);box-shadow:none}
.switch > input[type=checkbox]:checked::after{background:var(--bg)}
.switch > input[type=checkbox]:checked::after{transform:translateX(16px)}
.switch > input[type=checkbox]:disabled{opacity:.45;cursor:not-allowed}
.switch > input[type=checkbox]:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.switch-row{display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-start;gap:12px;box-sizing:border-box;min-width:0;min-height:var(--bh);margin:0;padding:0;cursor:pointer}
.switch-row > .switch{order:0;margin-top:0;align-self:flex-start;padding:0}
.switch-row > .sw-t{order:1;flex:1 1 auto;display:flex;flex-direction:column;gap:2px;min-width:0}
.switch-row > .sw-t > b{font:500 14px/20px var(--sans);color:var(--text)}
.switch-row > .sw-t > .sw-h{display:block;font:400 13px/18px var(--sans);color:var(--text-2);text-wrap:pretty}
.switch-row > .sw-t > .sw-h > .ic{display:inline-block;width:14px;height:14px;margin:0 6px 0 0;vertical-align:-2px;color:var(--text-2)}
.switch-row:not(:has(.sw-h)){align-items:center}
.switch-row:not(:has(.sw-h)) > .switch{align-self:center}
.switch-row:has(input:disabled){cursor:not-allowed}
.switch-row:has(input:disabled) > .sw-t > b{color:var(--text)}
/* the switch in a form grid: its own full-width row under the fields (no label above it) */
.fgrid > .swf,.swf{display:flex;flex-direction:column;justify-content:flex-start;gap:0;min-width:0;align-self:start;grid-column:1 / -1}
.swf > .switch-row{min-height:0;padding:0}
/* text fields and the composer: one focus look — an amber edge and one soft amber ring, no outline, no fill change;
   buttons, links and tabs keep the 2 px accent outline */
:is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),select,textarea):not(.gk-pillbox textarea,.composer textarea){transition-property:border-color,background-color,color}
:is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),select,textarea):not(.gk-pillbox textarea,.composer textarea):is(:focus,:focus-visible){outline:none;border-color:var(--field-focus-edge);box-shadow:0 0 0 3px var(--field-ring)}
/* mono fields (paths, hashes) sit at the sans fields' visual size: 13 px on a desktop, 15 px on a phone */
:is(input,textarea).mono{font-family:var(--mono);font-size:13px}
@media (max-width:700px){:is(input,textarea).mono{font-size:15px}}
/* form fields: inputs and selects the height of a button (36 desktop, 44 phone) */
:where(label.f) > :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select){box-sizing:border-box;height:var(--bh);min-height:var(--bh)}

/* ==== unit fields: the unit as an attached addon segment (1 px divider, surface-2, 44 px) inside the field ==== */
.fld.unitf{position:static}
.fld.unitf > label.f > .uin{position:relative;display:block;width:100%;min-width:0;margin-top:6px}
.fld.unitf > label.f > .uin > input{margin:0}
.fld.unitf > label.f > .uin > input{box-sizing:border-box;width:100%;height:var(--bh);min-height:var(--bh);padding-right:56px}
.fld.unitf > label.f > .uin > .unit{position:absolute;top:1px;right:1px;bottom:1px;display:flex;align-items:center;justify-content:center;width:44px;height:auto;margin:0;border-left:1px solid var(--border);border-radius:0 7px 7px 0;background:var(--surface-2);font:400 13px/18px var(--sans);color:var(--text-2);pointer-events:none}

/* ==== metrics (ui.js Meter, Legend, Metric, StatStrip): one 6 px usage meter (neutral ink, warn and bad when high; no
   fill under 1 %, a dashed empty track while released); a composition is a legend of 8 px dots, never a split bar.
   A Metric cell: the label row (the share at its right), the value, one 16 px foot (meter or legend), one sub-line. ==== */
.meter{position:relative;display:block;box-sizing:border-box;width:100%;height:4px;min-height:4px;margin:0;padding:0;border:0;border-radius:2px;background:var(--meter-track);overflow:hidden;gap:0}
.meter > i{display:block;height:100%;border-radius:2px;background:var(--meter-fill);box-shadow:none}
.meter.hi > i{background:var(--meter-hi)}
.meter.crit > i{background:var(--meter-crit)}
.meter.none{background:transparent}
.legend{display:flex;flex-wrap:wrap;align-items:center;column-gap:12px;row-gap:2px;min-width:0;font:400 13px/16px var(--sans);color:var(--text-2);white-space:nowrap}
.legend > .lg{display:inline-flex;align-items:center;gap:6px;font-variant-numeric:tabular-nums}
.legend > .lg > .dot{flex:none;width:8px;height:8px;margin:0;border-radius:50%}
.legend > .lg > b{font-weight:600;color:var(--text)}
.legend.none{color:var(--text-3)}
.legend .lc{text-transform:lowercase}
/* a Metric: label 13, value 22/600 with its "of N" 13, then one 16 px foot (the 4 px meter, a legend or "released") */
.mt{display:grid;grid-template-rows:18px auto 16px;grid-template-columns:minmax(0,1fr);grid-template-areas:"l" "v" "f";align-content:start;row-gap:4px;min-width:0;box-sizing:border-box}
.mt > .mt-l{grid-area:l}.mt > .sv{grid-area:v}.mt > .mt-f{grid-area:f}
.mt > .mt-l{display:flex;align-items:baseline;gap:8px;min-width:0;font:400 13px/18px var(--sans);color:var(--text-2);white-space:nowrap}
.mt > .mt-l > .sk{min-width:0;overflow:hidden;text-overflow:ellipsis;font:inherit;color:inherit}
.mt > .sv{display:flex;align-items:baseline;gap:6px;min-width:0;margin:0;font:600 22px/28px var(--sans);letter-spacing:-.01em;color:var(--text);font-variant-numeric:tabular-nums;white-space:nowrap}
.mt > .sv > .of{font:400 13px/18px var(--sans);letter-spacing:0;color:var(--text-2)}
.mt > .mt-f{display:flex;align-items:center;min-width:0;height:16px;overflow:hidden}
.mt > .mt-f > .meter{flex:1 1 auto}
.mt > .mt-f > .mt-rel{font:400 13px/16px var(--sans);color:var(--text-2);white-space:nowrap}
.mt.mt-card > .sv{font-size:18px;line-height:24px}
.mt.dim > .sv{color:var(--text-2)}
/* the strip: no card — four metrics on the page, 32 px apart, no dividers; a phone two by two */
.statstrip-c,.card.statstrip-c{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px 32px;box-sizing:border-box;margin:0;padding:4px 0;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible}
.statstrip-c > .sc.mt{padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.mt > .mt-f > .legend:only-child:not(:has(.lg)){color:var(--text-3)}
@media (max-width:700px){
  .statstrip-c,.card.statstrip-c{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 24px;padding:0}
  .mt > .sv{font-size:18px;line-height:24px}
  .mt > .mt-f{height:auto;min-height:16px}
  .mt > .mt-f > .legend{column-gap:10px}
  .mt,.mt.mt-card{grid-template-rows:18px auto auto}
  .cluster.ov .cluster-node > .ov-ms .mt > .mt-f > .legend{row-gap:0}
}
/* ==== the one count pill ==== */
.count,.sec-h h2 > .count,.eyebrow > .count,.props-h > .count{display:inline;box-sizing:border-box;height:auto;min-width:0;padding:0;margin:0 0 0 8px;border:0;border-radius:0;background:none;color:var(--text-3);font-weight:400;font-size:inherit;line-height:inherit;font-variant-numeric:tabular-nums;letter-spacing:0;text-transform:none;vertical-align:baseline}
.count::before,.count::after{content:none}

/* ==== key/value: ui.js Props (dl.props) — 128 px keys in page cards, 112 px in rails, side panels and on a phone ==== */
dl.props{margin:0;padding:0}
dl.props > .pr{display:grid;grid-template-columns:var(--kcol) minmax(0,1fr);column-gap:12px;align-items:baseline;min-height:32px;box-sizing:border-box;margin:0;padding:6px 0;border:0;border-radius:0;background:none;box-shadow:none}
dl.props > .pr > dt{width:var(--kcol);min-width:0;margin:0;padding:0;font:400 13px/20px var(--sans);color:var(--text-2);text-transform:none;letter-spacing:0;white-space:normal}
dl.props > .pr > dd{min-width:0;margin:0;padding:0;font:400 14px/20px var(--sans);color:var(--text);overflow-wrap:anywhere;text-align:left}
dl.props > .pr > dd > .pv{min-width:0}
dl.props .nw{white-space:nowrap}
dl.props .pvf.mline{display:flex;row-gap:0}
dl.props.stack > .pr{grid-template-columns:minmax(0,1fr)}
dl.props.stack > .pr > dt{width:auto}
dl.props > .pr.pm-id > dd{font:400 13px/20px var(--mono)}
.props-h{margin:14px 0 4px}
.props-h:first-child{margin-top:0}
dl.props .muted,dl.props .chg-m{display:inline;font:400 13px/20px var(--sans);color:var(--text-3)}
/* the last change: what changed (one line, ellipsised) over when (muted) */
dl.props > .pr > dd > .pv:has(> .chg-t){display:flex;flex-direction:column;gap:0;min-width:0;white-space:normal}
dl.props > .pr > dd > .pv > .chg-t{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
dl.props > .pr > dd > .pv > .chg-m{display:block;margin:0}
dl.props > .pr > dd > .pv > .chg-m::before{content:none}
dl.props .idchip,dl.props code.pid{display:inline;padding:0;border:0;background:none;font:400 13px/20px var(--mono);color:var(--text)}

/* ==== tables (History, Checkpoints, Files): no header band — a 36 px header row (13/500, sentence case) over a 1 px
   line; hairlines run edge to edge of the card, cells pad 16 px; numeric columns right-aligned; an icon column with an
   empty header; group heads a 32 px full-bleed surface-2 row; the end of the list a quiet row inside the card ==== */
:is(table thead th,.ck-th > span,.ft-h > span,.fhead > span,.hhead > span,.hx-cols > span,.th){font:500 13px/20px var(--sans);letter-spacing:0;text-transform:none;color:var(--text-2)}
:is(.checkpoint-view .card.inventory > .ck-th,.history-main .hx-cols,.ftree .fhead){box-sizing:border-box;min-height:36px;align-items:center;background:transparent;border-bottom:1px solid var(--border-soft)}
.checkpoint-view .card.inventory > .ck-th{padding:0 14px 0 16px;border-radius:11px 11px 0 0}
.history-main .hx-cols{margin:0 calc(-1 * var(--card-px,20px));padding:0 var(--card-px,20px);border-radius:11px 11px 0 0}
/* history: icon | Operation | Target | By | Duration | Time */
.history-main{--hx-line:var(--border-soft)}
.history-main .hx-cols,.history-main .hx-row{grid-template-columns:20px minmax(0,280px) minmax(0,320px) minmax(0,1fr) 96px 64px;column-gap:16px}
.history-main .hx-cols > .c-op{grid-column:auto}
.history-main .hx-cols > :is(.c-d,.c-t){text-align:right;justify-self:end}
.history-main .hx-row{min-height:36px}
.history-main .hx-row > .hx-ic,.history-main .hx-row > .hx-ic:is(.k-new,.k-msg,.k-ck,.k-egress,.k-life){display:inline-grid;place-items:center;width:20px;height:20px;border-radius:0;background:none;color:var(--text-2)}
.history-main .hx-row > .hx-ic.k-bad,.history-main .s-failed > .hx-ic{background:none;color:var(--bad-ink,var(--bad))}
.history-main .hx-row > .hx-ic > .ic{width:16px;height:16px;stroke-width:1.75}
.history-main .hx-who > .hx-av{display:none}
.history-main .hx-who{font:400 13px/20px var(--sans);color:var(--text-2)}
.history-main .hx-res{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0;grid-column:5}
.history-main .hx-res > .rd{font:400 13px/20px var(--sans);color:var(--text-2);font-variant-numeric:tabular-nums}
.history-op.s-succeeded .hx-st{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.history-main .hx-t{grid-column:6;font:400 13px/20px var(--sans);color:var(--text-2)}
.history-main .hx-day{display:flex;align-items:center;gap:8px;box-sizing:border-box;min-height:32px;margin:0 calc(-1 * var(--card-px,20px));padding:0 var(--card-px,20px);border:0;border-top:1px solid var(--hx-line);border-bottom:1px solid var(--hx-line);background:var(--surface-2);font:600 12px/16px var(--sans);color:var(--text-2)}
.history-main .hx-cols + .hx-day{border-top:0}
.history-main .hx-day > b{font-weight:600;color:var(--text)}
.history-main .hx-day > .dd{font-weight:400;color:var(--text-2)}
.history-main .hx-row + .hx-day{padding-top:0}
.history-view .hx-end,.history-main .hx-end{display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;height:auto;min-height:40px;margin:0 calc(-1 * var(--card-px,20px));padding:0 var(--card-px,20px);border:0;border-top:1px solid var(--hx-line);background:none;text-align:left;font:400 13px/18px var(--sans);color:var(--text-3)}
@media (max-width:700px){
  .history-main .hx-row{grid-template-columns:16px minmax(0,1fr) auto;grid-template-areas:"ic op t" "ic meta res";min-height:52px;padding:8px var(--card-px,16px);row-gap:2px}
  .history-main .hx-row > .hx-ic,.history-main .hx-row > .hx-ic:is(.k-new,.k-msg,.k-ck,.k-egress,.k-life){grid-area:ic;align-self:start;width:16px;height:20px}
  .history-main .hx-op > .kind{font:600 14px/20px var(--sans)}
  .history-main .hx-row > .hx-t{grid-area:t;grid-column:auto;font-size:13px}
  .history-main .hx-row > .hx-res{grid-area:res;grid-column:auto}
  .history-main .hx-row > .hx-meta{grid-area:meta;gap:0}
  .history-main .hx-meta > .hx-by::before{content:"·";margin:0 6px;color:var(--text-3)}
}
/* ==== bars: one 52 px top bar (node pages' header.top, the instance and bot bars .ihx, the Grok bar) ====
   The crumb: [mark] cardbot / node ▾ / instance; no back chevron on a desktop (the crumb is the way back). */
.ih-brand{flex:none;font:500 14px/20px var(--sans);color:var(--text-2);text-decoration:none;white-space:nowrap}
.ih-brand:hover{color:var(--text);text-decoration:none}
.ih-row > .ih-sl,.ih-row .ih-sl{color:var(--text-3)}
@media (min-width:701px){.ih-row > .back,.ih-row > .m-back{display:none}}
@media (max-width:700px){.ih-row > .ih-brand,.ih-row > .ih-slb,.ih-row > .ih-node{display:none}}
.gk-bar.ihx{box-sizing:border-box;height:52px;min-height:52px}
/* every crumb is borderless: a 32 px text button with a hover surface; the node crumb stays split (the name is "all
   instances", the caret the node's menu) without a pill; the node kind ("fake") a neutral tag inside it */
.ih-node{display:inline-flex;align-items:center;gap:0;margin-left:-6px}
.ih-node > button.ih-nodeb{display:inline-flex;align-items:center;box-sizing:border-box;height:32px;margin:0;padding:0 6px;border:0;border-radius:8px;background:transparent;box-shadow:none;font:600 14px/20px var(--sans);color:var(--text);cursor:pointer}
.ih-node > .gk-nodem.caret > .gk-mbtn{display:inline-grid;place-items:center;box-sizing:border-box;width:24px;height:32px;margin:0;padding:0;border:0;border-radius:8px;background:transparent;box-shadow:none;color:var(--text-2)}
.ih-node > button.ih-nodeb:hover,.ih-node > .gk-nodem.caret > .gk-mbtn:hover{background:var(--hover)}
.ih-node > button.ih-nodeb:not(:hover),.ih-node > .gk-nodem.caret > .gk-mbtn:not(:hover){background:transparent}
.ih-node > .chip.fake{margin:0 2px 0 4px}
@media (max-width:1100px){.ih-node > .chip.fake{display:none}}
/* one crumb rhythm in every bar: 8 px of air either side of a "/" (a crumb button's own 6 px padding counts) */
:is(.ihx .ih-row,.ihx.bot .ih-row,.ihx .ih-title) > .ih-sl,.ihx.bot .ih-sl,.ihx .ih-sl{margin:0}
.ihx .ih-title{gap:8px}
header.top .sepr{margin:0}
header.top .node-switch.crumb{height:32px;margin:0 0 0 -6px;padding:0 6px;border:0;border-radius:8px;background:transparent;font:600 14px/20px var(--sans);color:var(--text)}
@media (min-width:701px){
  /* the instance and bot bars share the node bar's 24 px gutter and its 14 px tabs */
  .ihead.ihx > .ih-row,.gk-bar.ihx > .ih-row{padding-left:10px}
  header.top .hnav .tab,header.top .hnav .tab.on{padding:0 10px;font-size:14px}
  .ihx .subnav > .stab,.ihx .subnav > .stab.on{padding:0 10px;margin:0;font-size:14px}
  .ihx .subnav{gap:2px}
}
header.top .node-switch.crumb:hover{background:var(--hover)}
header.top .node-switch.crumb > .chip.fake,.ih-node .chip.fake{height:20px;padding:0 6px;border:0;border-radius:6px;background:var(--surface-3);font:500 13px/20px var(--sans);color:var(--text-2)}
header.top .htools > .hstat.cp-live{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 8px;font:500 13px/18px var(--sans);color:var(--text-2)}
header.top .htools > .hstat.cp-live > .dot{width:7px;height:7px;background:var(--ok)}
@media (max-width:700px){
  header.top.cp h1 .sys{position:static;width:auto;height:auto;overflow:visible;clip-path:none;white-space:nowrap;color:var(--text-2);font-weight:500}
}
@media (max-width:700px){.gk-bar.ihx{height:auto}}

/* the phone bot bar: a two-line title — the bot (15/600) over its instance (12, secondary) */
@media (max-width:700px){
  .ihx.bot .ih-row > .ih-t,.bot-admin-view .ihx.bot .ih-row > .ih-t{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;align-self:center;gap:0;min-width:0;margin:0}
  .ihx.bot .ih-row > .ih-t > .ih-title,.bot-admin-view .ihx.bot .ih-row > .ih-t > .ih-title{max-width:100%;min-width:0}
  .ihx.bot .ih-row > .ih-t > .ih-title > .ih-name{font:600 15px/20px var(--sans)}
  .ihx.bot .ih-row > .ih-t > .ih-sub,.bot-admin-view .ihx.bot .ih-row > .ih-t > .ih-sub.ih-sub{display:block;max-width:100%;min-width:0;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:400 13px/16px var(--sans);color:var(--text-2)}
  .ihx.bot .ih-row > .ih-t > .ih-sub::before,.bot-admin-view .ihx.bot .ih-row > .ih-t > .ih-sub.ih-sub::before{content:none}
}

/* ==== toasts: the overlay tier — a desktop stacks them 360 px wide at the bottom right, 24 px in; a phone shows one
   banner at the top over the app bar, 8 px in (taps pass through it except on its close). A bare 16 px semantic glyph
   on the title's first line, the title 14/600, the body 13 in the secondary text, a 32 px close; no tile, no edge ==== */
.toasts{position:fixed;z-index:var(--z-toast,90);top:auto;bottom:24px;left:auto;right:24px;width:360px;max-width:calc(100vw - 48px);display:flex;flex-direction:column;gap:8px;margin:0;padding:0;pointer-events:none}
.toasts > .toast,.toasts > .toast.ok,.toasts > .toast.bad,.toasts > .toast.warn{pointer-events:none;display:flex;align-items:flex-start;gap:10px;box-sizing:border-box;margin:0;padding:12px 8px 12px 14px;border:1px solid var(--overlay-border);border-radius:12px;background:var(--surface-overlay);box-shadow:var(--shadow-overlay);color:var(--text)}
.toasts > .toast > .ti{flex:none;display:inline-grid;place-items:center;width:16px;height:20px;margin:0;border-radius:0;background:none;color:var(--text-2)}
.toasts > .toast.ok > .ti{background:none;color:var(--ok-ink,var(--ok))}
.toasts > .toast.bad > .ti{background:none;color:var(--bad-ink,var(--bad))}
.toasts > .toast.warn > .ti{background:none;color:var(--warn-ink,var(--warn))}
.toasts > .toast > .ti > .ic{width:16px;height:16px}
.toasts > .toast > .tt{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:2px;padding-top:0}
.toasts > .toast > .tt > b{font:600 14px/20px var(--sans);color:var(--text)}
.toasts > .toast > .tt > .tb{font:400 13px/18px var(--sans);color:var(--text-2);overflow-wrap:anywhere}
.toasts > .toast > .tt > .tb:only-child{font-size:14px;line-height:20px;color:var(--text)}
.toasts > .toast > button.ib.rowact{flex:none;align-self:flex-start;width:32px;height:32px;min-width:32px;min-height:32px;margin:-6px 0 0;border:0;background:transparent}
.toasts > .toast > .ttimer{display:none}
.toasts > .toast > button{pointer-events:auto}
.toasts > .toast,.toasts > .toast.ok,.toasts > .toast.bad,.toasts > .toast.warn{opacity:1;animation:r26-toast-up 140ms ease-out}
@keyframes r26-toast-up{from{transform:translateY(8px)}to{transform:none}}
@keyframes r26-toast-down{from{transform:translateY(-8px)}to{transform:none}}
@media (max-width:700px){
  .toasts,:root:not(:has(.overlay)) #app > div > header.top ~ .toasts,:root:has(header.top.cp) .toasts,:root:has(.gk) .toasts,:root:has(.composer) .toasts,:root:has(.overlay > .drawer) .toasts,:root:has(.composer,.gk-compose) .toasts{top:calc(8px + env(safe-area-inset-top));bottom:auto;left:8px;right:8px;width:auto;max-width:none}
  .toasts > .toast,.toasts > .toast.ok,.toasts > .toast.bad,.toasts > .toast.warn{min-height:0;padding:10px 6px 10px 14px;animation:r26-toast-down 160ms ease-out;pointer-events:none}
  .toasts > .toast > button{pointer-events:auto}
  .toasts > .toast > button.ib.rowact{width:36px;height:36px;min-width:36px;min-height:36px;margin:-8px 0 -8px 0}
}


/* ==== drawers: a right sheet on a desktop (480 px, full height), a bottom sheet with a grab handle on a phone ==== */
.overlay{background:var(--scrim);-webkit-backdrop-filter:none;backdrop-filter:none}
.overlay > .drawer,.overlay > .drawer:has(.access-view){position:fixed;top:0;right:0;bottom:0;left:auto;box-sizing:border-box;width:480px;max-width:100vw;height:auto;max-height:none;margin:0;transform:none;
  display:flex;flex-direction:column;border:0;border-left:1px solid var(--border);border-radius:0;background:var(--surface-1);box-shadow:var(--shadow-drawer)}
.overlay > .drawer > .grab{display:none}
.drawer > .db{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;margin:0;padding:0;background:transparent}
.drawer > .db > form{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}
.drawer .dscroll{flex:1 1 auto;min-height:0;overflow:auto;background:transparent}
.drawer .dfoot,.drawer .db > form > .row:last-child,.drawer .db > .row:last-child{flex:none;box-sizing:border-box;margin:0;padding:16px 24px;border-top:1px solid var(--border-soft);background:transparent;box-shadow:none}
.overlay > .drawer::before{content:none}
.drawer > .dh{flex:none;display:flex;align-items:flex-start;gap:12px;box-sizing:border-box;min-height:64px;margin:0;padding:18px 16px 14px 24px;border-bottom:1px solid var(--border-soft);background:transparent}
.drawer > .dh > .dt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;padding-top:2px}
.drawer > .dh .dtt{font:600 18px/24px var(--sans);letter-spacing:-.01em;color:var(--text);text-transform:none}
.drawer > .dh .dsub{display:block;font:400 13px/18px var(--sans);color:var(--text-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.drawer > .dh .dsub > span{display:inline}
.drawer > .dh > button.ib{flex:none;margin:-4px 0 0}
.drawer .dfoot,.drawer .db > form > .row:last-child,.drawer .db > .row:last-child{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.drawer .dfoot > .fnote,.drawer .dfoot > p.why{flex:1 1 auto;min-width:0;margin:0 auto 0 0;display:flex;align-items:center;gap:6px;font:400 13px/18px var(--sans);color:var(--text-2)}
.drawer .dfoot > p.why > .ic{flex:none;width:14px;height:14px;color:var(--text-3)}
@media (max-width:700px){
  .overlay{display:flex;align-items:flex-end;justify-content:stretch}
  .overlay > .drawer,.overlay > .drawer:has(.access-view),.overlay > .drawer:has(.newinst){top:auto;left:0;right:0;bottom:0;width:100%;max-width:none;height:auto;max-height:calc(100dvh - 48px);border:0;border-top:1px solid var(--border);border-radius:16px 16px 0 0;box-shadow:0 -16px 48px rgba(0,0,0,.3)}
  .overlay > .drawer > .grab{display:block;flex:none;width:36px;height:4px;margin:8px auto 0;border-radius:2px;background:var(--border-strong)}
  .drawer > .dh{min-height:56px;padding:10px 12px 12px 16px}
  .drawer > .dh .dtt{font-size:17px}
  .drawer .dfoot,.drawer .db > form > .row:last-child,.drawer .db > .row:last-child{position:relative;padding:12px 16px calc(16px + env(safe-area-inset-bottom));background:var(--surface-1);box-shadow:none}
  .drawer .dfoot::before,.drawer .db > form > .row:last-child::before,.drawer .db > .row:last-child::before{content:"";position:absolute;left:0;right:0;bottom:100%;height:24px;background:linear-gradient(to bottom,transparent,var(--surface-1));pointer-events:none}
  .drawer .dfoot > :is(button.go,button.sec,button.danger,button.acc-cancel),.drawer .db > form > .row:last-child > button,.drawer .db > .row:last-child > button{flex:1 1 0;min-width:0}
  .drawer .dfoot > .fnote,.drawer .dfoot > p.why{flex:1 1 100%;order:-1;justify-content:flex-start;text-align:left}
}

/* ==== menus (menus.js BarMenu, ui.js MoreMenu): the overlay tier — a desktop popover 6 px under its trigger (264 px,
   radius 12, the overlay surface and shadow, internal scroll), a bottom sheet on a phone that always leaves the
   dimmed bar in view. A header row names what the menu acts on (avatar, name, "in <instance>"); group heads are bare
   eyebrows; rows 36 px (44 on a phone): a 16 px icon, the label, a chevron on navigation rows; the danger zone last,
   over a hairline, in red. A phone's "Go to" is a 2 × 2 grid of tiles. ==== */
.gk-sheet,.menu .items{background:var(--surface-overlay);border:1px solid var(--overlay-border);box-shadow:var(--shadow-overlay)}
@media (min-width:701px){
  .gk-menu .gk-menu-scrim,.menu .scrim,.menu-scrim{display:none}
  .gk-menu > .gk-sheet{top:calc(100% + 6px);border-radius:12px;max-height:calc(100vh - 72px)}
  .gk-menu.gk-instm > .gk-sheet{width:264px}
  .gk-menu.gk-instm .sh-h{display:flex;align-items:center;min-height:52px;margin:0;padding:10px 12px;border:0;border-bottom:1px solid var(--border-soft)}
  .gk-menu.gk-instm .sh-h > .x{display:none}
}
.gk-menu .sh-h > b{flex:1 1 auto;min-width:0;display:block}
.gk-menu .sh-h .mh{display:flex;align-items:center;gap:10px;min-width:0}
.gk-menu .sh-h .mh > .gk-av{width:24px;height:24px;min-width:24px;font-size:11px;line-height:24px}
.gk-menu .sh-h .mh > .mh-ic{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:6px;background:var(--surface-2);color:var(--text-2)}
.gk-menu .sh-h .mh > .mh-t{display:flex;flex-direction:column;gap:0;min-width:0}
.gk-menu .sh-h .mh > .mh-t > .sht{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:600 14px/20px var(--sans);letter-spacing:0;color:var(--text)}
.gk-menu .sh-h .mh > .mh-t > .sht-s{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:400 13px/18px var(--sans);color:var(--text-2)}
.gk-menu .sec.scope{display:flex;align-items:baseline;gap:12px;min-width:0;margin:0;padding:10px 10px 4px;border:0;background:none}
.gk-menu .sec.scope > .sec-k{flex:none;font:600 12px/16px var(--sans);letter-spacing:0;text-transform:none;color:var(--text-3)}
.gk-menu .grp{margin:0;padding:0 6px}
.gk-menu .pop-scroll > .grp:first-child{padding-top:2px}
.gk-menu .pop-scroll > .grp:last-child{padding-bottom:6px}
.gk-menu .grp + .grp{margin-top:6px;padding-top:2px;border-top:1px solid var(--border-soft)}
.gk-menu .grp :is(button.it,a.it,[role=menuitem]){display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:12px;box-sizing:border-box;width:100%;min-height:36px;margin:0;padding:0 10px;border:0;border-radius:8px;text-align:left;font:400 14px/20px var(--sans);color:var(--text);transition:background-color 120ms ease}
.gk-menu .grp :is(button.it,a.it,[role=menuitem]) > .ic:first-child{flex:none;width:16px;height:16px;margin:0;padding:0;color:var(--text-2)}
.gk-menu .grp :is(button.it,a.it,[role=menuitem]) > .l{flex:1 1 auto;min-width:0}
.gk-menu .grp :is(button.it,a.it,[role=menuitem]) > .r{display:inline-flex;align-items:center;margin-left:auto;color:var(--text-3)}
.gk-menu .grp :is(button.it,a.it,[role=menuitem]) > .r > .ic{width:16px;height:16px}
.gk-menu .grp.g-del{margin-top:8px}
.gk-menu .grp.g-del :is(button.it,[role=menuitem]).danger,.gk-menu .grp.g-del :is(button.it,[role=menuitem]).danger > .ic:first-child{color:var(--bad-ink,var(--bad))}
.gk-menu .grp.g-del :is(button.it,[role=menuitem]).danger:hover:not(:disabled){background:var(--bad-soft);color:var(--bad-ink,var(--bad))}
.gk-menu .sht-n{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gk-menu .g-tiles{display:contents}
@media (max-width:700px){
  .gk-menu .gk-menu-scrim{position:fixed;inset:0;z-index:49;background:var(--scrim-sheet)}
  .gk-sheet,.gk-nodem .gk-sheet,.gk-acctm .gk-sheet{max-height:calc(100dvh - 56px);background:var(--surface-overlay);border:0;border-top:1px solid var(--overlay-border);border-radius:16px 16px 0 0;box-shadow:0 -16px 48px rgba(0,0,0,.35)}
  .gk-sheet > .grab{display:block;flex:none;width:36px;height:4px;margin:8px auto 8px;border-radius:2px;background:var(--border-strong)}
  .gk-menu > .gk-sheet > .sh-h{display:flex;align-items:center;min-height:48px;margin:0;padding:0 8px 8px 16px;border:0;border-bottom:1px solid var(--border-soft)}
  .gk-menu .sh-h > .x{width:40px;height:40px;min-width:40px;min-height:40px}
  .gk-menu .grp{padding:0 8px}
  .gk-menu .sec.scope{padding:10px 8px 6px}
  .gk-menu .grp :is(button.it,a.it,[role=menuitem]){min-height:44px;padding:0 8px;font-size:15px}
  .gk-menu .grp :is(button.it,a.it,[role=menuitem]) > .ic:first-child{width:18px;height:18px;color:var(--text)}
  .gk-menu .grp + .grp{margin-top:6px;border-top-color:var(--border-soft)}
  .gk-menu .g-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:0 8px 4px}
  .gk-menu .g-tiles > :is(button.it,[role=menuitem]).tile{justify-content:flex-start;text-align:left}
  .gk-menu .g-tiles > :is(button.it,[role=menuitem]).tile > .l{display:block;flex:1 1 auto;text-align:left}
  .gk-menu .g-tiles > :is(button.it,[role=menuitem]).tile > .l > .lt{display:block;text-align:left}
  .gk-menu .g-tiles.g-acct{grid-template-columns:repeat(3,minmax(0,1fr))}
  .gk-menu .g-tiles > :is(button.it,[role=menuitem]).tile{min-height:48px;padding:0 12px;gap:10px;border-radius:10px;background:var(--surface-2);font:500 14px/18px var(--sans)}
  .gk-menu .g-tiles > :is(button.it,[role=menuitem]).tile:hover:not(:disabled){background:var(--surface-3)}
  .gk-menu .g-tiles > :is(button.it,[role=menuitem]).tile > .r{display:none}
  .gk-menu .grp.g-del{margin-top:6px}
  .gk-menu .pop-scroll > .grp:last-child{padding-bottom:calc(12px + env(safe-area-inset-bottom))}
}
/* ==== the card's commit footer (.cf): reason or note at the left, the commit at the right; stacked on a phone ==== */
/* the commit row: the card's last row — the verb's sentence (or the reason) at the left, the commit at the right; no
   band, no top border, no fill */
footer.cf{display:flex;align-items:center;justify-content:flex-end;gap:16px;flex-wrap:wrap;box-sizing:border-box;min-height:0;margin:20px 0 0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
footer.cf > :is(p.why,p.cf-note){flex:1 1 220px;min-width:0;margin:0;display:flex;align-items:center;justify-content:flex-start;gap:6px;font:400 13px/18px var(--sans);color:var(--text-2);text-align:left;order:0}
footer.cf > p.why:empty{display:none}
footer.cf > p.why > .ic{flex:none;width:14px;height:14px;color:var(--text-3)}
footer.cf > :is(button,.row){order:2;flex:none}
@media (max-width:700px){
  footer.cf{flex-direction:column;align-items:stretch;gap:10px}
  footer.cf > :is(p.why,p.cf-note){flex:none;order:0}
  footer.cf > p.cf-note{display:block}
  footer.cf > button,footer.cf > .row > button{width:100%}
  footer.cf > .row{display:flex;gap:8px;width:100%}
  footer.cf > .row > button{flex:1 1 0}
}

/* ==== disclosure rows (ui.js Disc, and the new-instance drawer's Advanced rows): 48 px, a 16 px icon, title 14/600
   over a 13 px summary, the chevron right and centred ==== */
details.disc > summary,.ni-rows > .ni-row:not(details),.ni-rows > details.ni-row > summary{display:flex;align-items:center;gap:12px;box-sizing:border-box;min-height:48px;margin:0;padding-top:8px;padding-bottom:8px;border:0;background:transparent;list-style:none;cursor:pointer;text-align:left;color:var(--text);font:inherit;width:100%}
details.disc > summary::-webkit-details-marker{display:none}
details.disc > summary > .d-ic,.ni-rows .ni-row .d-ic{flex:none;display:inline-grid;place-items:center;width:20px;height:20px;margin:0;padding:0;border:0;border-radius:0;background:none;color:var(--text-2)}
details.disc > summary > .d-ic > .ic,.ni-rows .ni-row .d-ic > .ic{width:16px;height:16px}
details.disc > summary > .d-t,.ni-rows .ni-row .d-t{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:2px}
details.disc > summary > .d-t > b,.ni-rows .ni-row .d-t > :is(b,.lt){font:600 14px/20px var(--sans);color:var(--text);letter-spacing:0;text-transform:none}
details.disc > summary > .d-t > .d-s,.ni-rows .ni-row .d-t > .d-s{font:400 13px/18px var(--sans);color:var(--text-2);min-width:0}
details.disc > summary > .d-ch,.ni-rows .ni-row > .d-ch{flex:none;align-self:center;box-sizing:content-box;width:16px;height:16px;margin:0;padding:0;color:var(--text-2);transition:transform 120ms ease}
details.disc[open] > summary > .d-ch,.ni-rows .ni-row[aria-expanded=true] > .d-ch{transform:rotate(180deg)}
.ni-rows > .ni-row.ni-own{cursor:default}
.ni-adv{margin:24px 0 0;padding:0;border:0}
.ni-adv > legend.eyebrow{display:block;margin:0 0 4px;padding:0}
.ni-rows{display:block;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none}
.ni-rows > .ni-row,.ni-rows > details.ni-row{margin:0;border:0;border-top:1px solid var(--border-soft);border-radius:0;background:none}
.ni-rows > .ni-row:first-child{border-top:0}
.ni-rows > .ni-row + .ni-row,.ni-rows > .ni-row + details.ni-row,.ni-rows > details.ni-row + .ni-row{border-top:1px solid var(--border-soft)}
.drawer .db .dscroll > .ni-adv{margin-top:12px}
/* the owner is a fact, not a disclosure: the rows' icon and title over its value, no chevron */
.ni-rows > .ni-row.ni-own > .d-t > .d-s{color:var(--text)}
.ni-rows > .ni-row.ni-own > .d-t > .d-s > span{color:var(--text-2)}
.ni-rows > details.ni-row > .d-b{padding:0 0 12px 32px}
.ni-rows > .ni-row:not(details),.ni-rows > details.ni-row > summary{padding-left:0;padding-right:0}
.card:has(> details.disc.cfg-ph){padding:0;overflow:hidden}
.card > details.disc.cfg-ph{margin:0;border:0}
.card > details.disc.cfg-ph > summary{padding:12px 16px}
.card > details.disc.cfg-ph > .d-b{margin:0;padding:0 16px 16px}
.card > details.disc.cfg-ph + *{margin:0;border-top:1px solid var(--border-soft)}
.card > details.disc.cfg-ph + .convo-row > .convo-t{padding:12px 16px}

/* ==== empty state: one component inside its section's card — a 32 px neutral icon tile, a 600 title, one muted line ==== */
.empty-state,.empty-state.flat{display:flex;align-items:center;gap:12px;box-sizing:border-box;min-height:48px;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;text-align:left}
.empty-state > .es-ic{flex:none;display:inline-grid;place-items:center;width:32px;height:32px;margin:0;padding:0;border:0;border-radius:8px;background:var(--surface-2);color:var(--text-2)}
.empty-state > .es-ic > .ic{width:16px;height:16px}
.empty-state > .es-t{display:flex;flex-direction:column;gap:2px;min-width:0}
.empty-state > .es-t > b{font:600 14px/20px var(--sans);color:var(--text)}
.empty-state > .es-t > span{font:400 13px/18px var(--sans);color:var(--text-2)}
.card.is-empty,section.card:has(> .empty-state:only-child){box-sizing:border-box;padding:16px 20px;border:1px solid var(--border);border-radius:12px;background:var(--surface-1);box-shadow:var(--shadow-card)}
@media (max-width:700px){.card.is-empty,section.card:has(> .empty-state:only-child){padding:14px 16px}}

/* ==== danger zone: one card on instance and bot administration — a neutral 1 px edge with a 3 px red left edge (the
   button carries the only red outline); the title and its sentence, then the button: at the right of the text on a wide
   card, under it in the rail, full width on a phone ==== */
section.dzrow{display:flex;align-items:center;justify-content:space-between;gap:16px;box-sizing:border-box;margin:0;padding:16px 20px;border:1px solid var(--border);border-radius:12px;background:var(--surface-1);box-shadow:var(--shadow-card)}
section.dzrow > .dz-t{display:flex;flex-direction:column;gap:2px;min-width:0}
section.dzrow > .dz-t > .dz-h{font:600 15px/22px var(--sans);color:var(--text)}
section.dzrow > .dz-t > .dz-l{font:400 13px/18px var(--sans);color:var(--text-2);text-wrap:pretty}
section.dzrow > .dz-pick{display:flex;margin:0;padding:0}
.ws-rail section.dzrow{display:flex;flex-direction:column;align-items:flex-start;gap:12px}
.ws-rail section.dzrow > .dz-t{display:flex}
.ws-rail section.dzrow > :is(button,.dz-pick){align-self:flex-start}
.ws-rail dl.props > .pr{min-height:28px;padding:4px 0}
.bot-admin-view .ws-rail dl.props > .pr > dd > .pv{display:block;min-width:0;white-space:normal}
@media (max-width:700px){section.dzrow{flex-direction:column;align-items:stretch;padding:16px}section.dzrow > button,section.dzrow > .dz-pick > button{width:100%;align-self:stretch}section.dzrow > .dz-pick{display:flex}}

/* ==== empty state with its next step at the right; inside an action card it is the card's first row ==== */
.empty-state > .es-a{flex:none;margin-left:auto}
.empty-state > .es-a > .lnk{height:auto;min-height:0;padding:0;border:0;background:none;font:500 13px/18px var(--sans);color:var(--text);text-decoration:underline;text-decoration-color:var(--link-line);text-underline-offset:3px;cursor:pointer}
.empty-state > .es-a > .lnk:hover{text-decoration-color:currentColor}
.card > .ck-empty-row{margin:-4px 0 16px;padding:0 0 16px;border-bottom:1px solid var(--border-soft)}
.card > .ck-empty-row > .empty-state{flex-direction:row;align-items:center;min-height:40px}
.card.convo-card{padding:0;overflow:hidden}
.card.convo-card > .convo-row{margin:0;border:0}
.card.convo-card > .convo-row > .convo-t{display:flex;align-items:center;gap:12px;box-sizing:border-box;width:100%;min-height:56px;margin:0;padding:10px 20px;border:0;background:none;text-align:left;cursor:pointer;color:var(--text)}
.card.convo-card > .convo-row > .convo-t:hover{background:var(--hover)}
.card.convo-card > .convo-row > .convo-t > .d-t{flex:1 1 auto;display:flex;flex-direction:column;gap:2px;min-width:0}
.card.convo-card > .convo-row > .convo-t > .d-t > b{font:600 14px/20px var(--sans);color:var(--text)}
.card.convo-card > .convo-row > .convo-t > .d-t > .d-s{font:400 13px/18px var(--sans);color:var(--text-2)}
.card.convo-card > .convo-row > .convo-t > .d-ch{flex:none;width:16px;height:16px;color:var(--text-2);transition:transform 120ms ease}
.card.convo-card > .convo-row > .convo-t[aria-expanded=true] > .d-ch{transform:rotate(180deg)}
.card.convo-card > .convo-row > .convo{border-top:1px solid var(--border-soft)}
@media (max-width:700px){.card.convo-card > .convo-row > .convo-t{padding:10px 16px}.card > .ck-empty-row > .empty-state{align-items:flex-start}}

/* ==== callout: a soft warn panel with an icon ==== */
.callout.warn{display:flex;align-items:flex-start;gap:10px;box-sizing:border-box;margin:0;padding:12px 14px;border:1px solid var(--callout-warn-edge);border-radius:10px;background:var(--callout-warn-bg);color:var(--text)}
.callout.warn > .ic{flex:none;width:16px;height:16px;margin-top:2px;color:var(--callout-warn-ic,var(--warn-ink,var(--warn)))}

/* instance administration: the policy's two sections keep the page's section rhythm */
.policy-bare{display:flex;flex-direction:column;gap:inherit;margin:0}

/* ==== tool rows (the node's and the instance's Tools card): a 16 px glyph, the title over one line, a status pill,
   and a secondary button at the right; hairlines between rows ==== */
.toolscard{box-sizing:border-box;padding:0 20px}
.toolscard > * + *{border-top:1px solid var(--border-soft)}
.toolscard > section.tool,.toolscard > .pol-grant-c{margin:0;padding:0;border-radius:0;background:none;box-shadow:none;border-left:0;border-right:0;border-bottom:0}
.toolscard > .pol-grant-c:not(.open) > .pol-grant,.toolscard > .toolrow,.toolscard > section.tool > details > summary{display:flex;align-items:center;gap:12px;box-sizing:border-box;min-height:60px;margin:0;padding:10px 0;border:0;background:none;list-style:none;cursor:default}
.toolscard > section.tool > details > summary{cursor:pointer}
.toolscard > section.tool > details > summary::-webkit-details-marker{display:none}
.toolscard :is(.tt-ic,.tl-ic,.pg-ic){flex:none;display:inline-grid;place-items:center;width:20px;height:20px;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;color:var(--text-2)}
.toolscard :is(.tt-ic,.tl-ic,.pg-ic) > .ic{width:16px;height:16px}
.toolscard :is(.tr-t,.ft,.pg-t){flex:1 1 auto;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left;margin:0;padding:0}
.toolscard :is(.tr-t,.ft,.pg-t) > b,.toolscard .ft > .ft-h > b{font:600 14px/20px var(--sans);color:var(--text)}
.toolscard .ft > .ft-h{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.toolscard .ft > .ft-h > .tt-st > .tt-s{height:auto;padding:0;font:400 13px/18px var(--sans)}
.toolscard :is(.tr-t,.ft,.pg-t) > span{font:400 13px/18px var(--sans);color:var(--text-2)}
.toolscard .tt-st:empty{display:none}
.toolscard .tt-st{flex:none}
.toolscard :is(.tl-go,.tt-foot){display:inline-flex;align-items:center;justify-content:center;gap:6px;box-sizing:border-box;height:var(--bh);min-width:0;padding:0 14px;border:1px solid var(--border-strong);border-radius:8px;background:transparent;font:500 14px/20px var(--sans);color:var(--text);white-space:nowrap}
.toolscard summary:hover :is(.tl-go,.tt-foot){background:var(--hover)}
.toolscard :is(.tl-go,.tt-foot) > .ic{width:16px;height:16px}
.toolscard > section.tool > details > summary > .ic:last-child{display:none}
.toolscard > section.tool > details[open] > summary :is(.tl-go,.tt-foot){background:var(--hover)}
.toolscard .tt-s,.toolscard .tt-s.ok{display:inline-flex;align-items:center;gap:6px;height:auto;padding:0;border:0;border-radius:0;background:none;font:400 13px/18px var(--sans);color:var(--text-2)}
.toolscard .tt-s > .dot{width:7px;height:7px;border:0;background:var(--text-3)}
.toolscard .tt-s.ok > .dot{background:var(--ok)}
.toolscard > .pol-grant-c.open{padding:16px 0}
.toolscard .tt-foot .tt-close,.toolscard details[open] > summary .tt-foot .tt-open{display:none}
.toolscard details[open] > summary .tt-foot .tt-close{display:inline}
.toolscard > section.tool > details > .fold-body,.toolscard > section.tool > details > :not(summary){padding:0 0 16px 32px}
.pol-grant.open{display:block}
.pol-grant.open > .pg-h{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}
.pol-grant.open > .pg-h > b{font:600 14px/20px var(--sans);color:var(--text)}
.pol-grant.open > .pg-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}
.pol-grant.open > .hint{margin:8px 0 0;font:400 13px/18px var(--sans);color:var(--text-2)}
.pol-grant-c.open > footer.cf{margin:16px 0 0}
@media (max-width:700px){.pol-grant.open > .pg-fields{grid-template-columns:minmax(0,1fr)}}
/* the whole row is the control at every width — the row's button (or summary) covers it, a chevron at its right, the
   label visually hidden so the accessible name is unchanged */
.toolscard :is(.tl-go,.tt-foot),.toolscard > .toolrow > button,.toolscard .pol-grant > button.pg-open{box-sizing:border-box;width:auto;min-width:0;justify-content:center}
.toolscard :is(.tl-go,.tt-foot) > .ic,.toolscard > .toolrow > button > .ic,.toolscard .pol-grant > button.pg-open > .ic{display:none}
@media (max-width:700px){.toolscard{padding:0 16px}}
@media all{
  .toolscard > .pol-grant-c:not(.open) > .pol-grant,.toolscard > .toolrow,.toolscard > section.tool > details > summary{flex-wrap:nowrap;min-height:64px;padding:10px 0}
  .toolscard :is(.tr-t,.ft,.pg-t){flex:1 1 0;min-width:0}
  .toolscard :is(.tt-ic,.tl-ic,.pg-ic){align-self:center;margin-top:0}
  .toolscard > .toolrow,.toolscard > .pol-grant-c:not(.open) > .pol-grant{position:relative;padding-right:28px}
  .toolscard :is(.tl-go,.tt-foot){display:none}
  .toolscard > .toolrow > button,.toolscard .pol-grant > button.pg-open{position:absolute;inset:0;z-index:1;display:block;width:auto;min-width:0;height:auto;min-height:0;margin:0;padding:0;border:0;border-radius:8px;background:transparent;font-size:0;color:var(--text-2)}
  .toolscard > .toolrow > button:hover:not(:disabled),.toolscard .pol-grant > button.pg-open:hover:not(:disabled){background:transparent}
  .toolscard > .toolrow > button:focus-visible,.toolscard .pol-grant > button.pg-open:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
  .toolscard > .toolrow > button > .ic,.toolscard .pol-grant > button.pg-open > .ic{display:none}
  .toolscard > .toolrow > button > .lt,.toolscard .pol-grant > button.pg-open > .lt{font-size:14px;position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .toolscard > .toolrow > button::after,.toolscard .pol-grant > button.pg-open::after,.toolscard > section.tool > details > summary::after{content:"";position:absolute;top:50%;right:6px;width:7px;height:7px;margin-top:-5px;border-right:1.75px solid var(--text-2);border-bottom:1.75px solid var(--text-2);transform:rotate(-45deg)}
  .toolscard > section.tool > details > summary{position:relative;padding-right:28px}
  .toolscard > section.tool > details[open] > summary::after{margin-top:-6px;transform:rotate(45deg)}
  .toolscard > .toolrow > button:disabled::after,.toolscard .pol-grant > button.pg-open:disabled::after{opacity:.4}
  .toolscard .tt-st{order:2;margin-left:0}
}

/* ==== page rhythm: sections 28 px apart on a desktop (24 on a phone) in the two-column admin grammar ==== */
@media (min-width:701px){.ws > :is(.ws-main,.ws-rail){display:flex;flex-direction:column;gap:24px;row-gap:24px}.adminview,.node-view{padding-bottom:0}}
/* a section: its heading, then 8 px to its card */
.sec{gap:8px}

/* ==== request banner (home, administration pages): the request card's anatomy on one neutral card with the 3 px amber
   edge — row 1 the 20 px shield glyph, "lead wants to reach <host>" and Review at the right; then the quote and the
   meta, all at the card's padding ==== */
.ap-notice,.ap-notice.many,.home-view .ap-notice.ap-notice{display:grid;grid-template-columns:20px minmax(0,1fr) auto;grid-template-areas:"ic t go";column-gap:10px;row-gap:0;align-items:start;box-sizing:border-box;padding:14px 16px;text-align:left;border:1px solid var(--border);border-radius:12px;background:var(--surface-1);box-shadow:var(--shadow-card);color:var(--text)}
.ap-notice > .ap-n-ic,.home-view .ap-notice.ap-notice > .ap-n-ic{grid-area:ic;align-self:start;display:inline-grid;place-items:center;width:20px;height:20px;margin:6px 0 0;border:0;border-radius:0;background:none;color:var(--warn-ink,var(--warn))}
.ap-notice > .ap-n-ic > .ic{width:18px;height:18px}
.ap-notice > .ap-n-t{grid-area:t;min-width:0;display:flex;flex-direction:column;gap:2px;padding-top:5px}
.ap-notice .ap-n-l1,.home-view .ap-notice.ap-notice > .ap-n-t > .ap-n-l1{display:block;font:400 14px/22px var(--sans);color:var(--text);text-align:left}
.ap-notice .ap-n-l1 > b{font-weight:600}
.ap-notice .ap-n-l1 > code.host,.home-view .ap-notice code.host.code-chip{display:inline;vertical-align:baseline;overflow:visible;margin:0;padding:2px 6px;border:0;border-radius:6px;background:var(--surface-2);font:400 13px/20px var(--mono);color:var(--text);white-space:nowrap}
.ap-notice .ap-n-l1 > code.host > .port{color:var(--text-2)}
.ap-notice .ap-n-m{flex-wrap:wrap;overflow:visible;white-space:normal;margin:0;font:400 13px/18px var(--sans);color:var(--text-2)}
.ap-notice .ap-n-m > .ap-n-q{color:var(--text);white-space:normal}
.ap-notice > .ap-n-go,.home-view .ap-notice.ap-notice > button.ap-n-go{grid-area:go;align-self:start;justify-self:end;margin:0}
@media (max-width:700px){
  .ap-notice,.ap-notice.many,.home-view .ap-notice.ap-notice{grid-template-areas:"ic t go";grid-template-columns:20px minmax(0,1fr) auto;padding:12px 12px 12px 14px}
  .ap-notice > .ap-n-go,.home-view .ap-notice.ap-notice > button.ap-n-go{justify-self:end;width:auto;height:36px;min-height:36px;margin:0;padding:0 12px}
}

/* ==== home instance cards: one memory row grid, a released row without a track, tertiary "Add bot" ==== */
/* the memory row, the Metric's inline variant: "Memory" at the left, the amount and share at the right, the meter
   full width under both (a dashed empty track while released) */
.home-view .ipanel > .usage.mrow,.home-view .ipanel > .usage.mrow.rel{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-areas:"k v" "m m";align-items:baseline;column-gap:12px;row-gap:8px}
.home-view .ipanel > .usage.mrow > .ip-k{grid-area:k;font:500 13px/18px var(--sans);color:var(--text-2)}
.home-view .ipanel > .usage.mrow > .uv{grid-area:v;justify-self:end;font:400 13px/18px var(--sans);color:var(--text-2);white-space:nowrap;font-variant-numeric:tabular-nums}
.home-view .ipanel > .usage.mrow > .uv > b{font-weight:600;color:var(--text)}
.home-view .ipanel > .usage.mrow > .meter{grid-area:m;width:100%;max-width:none}
.ipanel .ip-bots > button.addbot.ghost{display:inline-flex;align-items:center;gap:4px;height:28px;min-height:28px;padding:0 8px;border:0;border-radius:999px;background:transparent;color:var(--text-2);font:500 13px/18px var(--sans)}
.ipanel .ip-bots > button.addbot.ghost:hover:not(:disabled){background:var(--hover);color:var(--text)}
.ipanel .ip-bots > button.addbot.ghost > .ic{width:14px;height:14px}

/* ==== overview node cards: the header is one hover-able link row (tile, name + status pill, two meta lines, the
   chevron on the name line), then four Metric cells in the card size ==== */
.cluster.ov .cluster-node{display:flex;flex-direction:column;align-items:stretch;padding:0;overflow:hidden}
.cluster.ov .cluster-node > *{grid-column:auto;grid-row:auto}
.cluster.ov .cluster-node > .ov-nh{display:flex;align-items:flex-start;gap:12px;box-sizing:border-box;margin:0;padding:16px 20px}
.cluster.ov .cluster-node > .ov-nh > .ov-ic{flex:none;display:inline-grid;place-items:center;width:32px;height:32px;margin:0;border-radius:8px;background:var(--surface-2);color:var(--text-2)}
.cluster.ov .cluster-node > .ov-nh > .ov-id{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:2px}
.cluster.ov .cluster-node.linked > .ov-nh{position:relative;cursor:pointer;transition:background-color 120ms ease}
.cluster.ov .cluster-node.linked > .ov-nh:hover{background:var(--hover)}
.cluster.ov .cluster-node.linked > .ov-nh > a.ov-go::after{content:"";position:absolute;inset:0;border-radius:inherit}
.cluster.ov .cluster-node.linked > .ov-nh > a.ov-go{display:inline-flex;align-items:center;gap:4px;align-self:flex-start;height:22px;margin-left:auto;font:500 14px/20px var(--sans);color:var(--text-2);text-decoration:none}
.cluster.ov .cluster-node.linked > .ov-nh > a.ov-go:focus-visible{outline:2px solid var(--focus);outline-offset:2px;border-radius:6px}
.cluster.ov .cluster-node .ov-nl{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-height:22px;margin:0;padding:0}
.cluster.ov .cluster-node .ov-name{font:650 16px/22px var(--sans);color:var(--text)}
.cluster.ov .cluster-node .ov-meta{--ml-clip:0px;flex-wrap:wrap;overflow:visible;margin:0;font:400 13px/18px var(--sans);color:var(--text-2)}
.cluster.ov .cluster-node .ov-meta.ov-tech{font:400 13px/18px var(--mono);color:var(--text-3)}
.cluster.ov .cluster-node > .ov-ms{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px 32px;margin:0;padding:16px 20px 18px;border-top:1px solid var(--border-soft)}
.ihead.page .ttl .pills > code.cp-n{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:6px;background:var(--surface-3);font:400 13px/22px var(--mono);color:var(--text-2)}
.cluster.ov .sec-h.ov-sh{display:flex;align-items:center;justify-content:space-between;gap:12px}
.cluster.ov .sec-h.ov-sh > .sec-tt{flex:1 1 auto;min-width:0;width:auto}
.cluster.ov .sec-h.ov-sh > .upd-w{flex:none;width:auto;display:inline-flex;align-items:center;gap:4px;font:400 13px/18px var(--sans);color:var(--text-2)}
.cluster.ov .sec-h.ov-sh > .upd-w > .upd{font:inherit;color:inherit;font-variant-numeric:tabular-nums}
@media (max-width:700px){
  .cluster.ov .cluster-node .ov-meta.ov-tech > :nth-child(n+3){display:none}
  .cluster.ov .cluster-node > .ov-nh{padding:14px 16px}
  .cluster.ov .cluster-node > .ov-nh > .ov-ic{display:none}
  .cluster.ov .cluster-node > .ov-nh > a.ov-go > .lt{display:none}
  .cluster.ov .cluster-node > .ov-ms{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 20px;padding:14px 16px 16px}
}
.apr-l2.mline{flex-wrap:nowrap;overflow:hidden}
@media (max-width:700px){.apr-l2.mline{flex-wrap:wrap}}

/* ==== composer: one component for the classic chat (.chat .composer) and the Grok view (.gk-compose .gk-pillbox):
   one row when empty (tools at the left, the growing message, send at the right), a 24 px radius pill ==== */
:is(.chat > .compose > .composer,.gk-compose > .gk-pillbox){display:flex;flex-direction:row;align-items:flex-end;gap:6px;box-sizing:border-box;min-height:52px;margin:0;padding-top:7px;padding-right:7px;padding-bottom:7px;border:1px solid var(--border);border-radius:14px;background:var(--surface-1)}
.gk-compose > .gk-pillbox{padding-left:7px}
:is(.chat > .compose > .composer,.gk-compose > .gk-pillbox):focus-within{border-color:var(--field-focus-edge);box-shadow:0 0 0 3px var(--field-ring);outline:none}
:is(.chat > .compose > .composer,.gk-compose > .gk-pillbox) > textarea:is(:focus,:focus-visible){outline:none;box-shadow:none;border-color:transparent}
:is(.chat > .compose > .composer,.gk-compose > .gk-pillbox) > textarea{flex:1 1 auto;order:0;align-self:stretch;min-width:0;box-sizing:border-box;min-height:36px;max-height:176px;margin:0;padding:7px 6px;border:0;border-radius:0;background:transparent;resize:none;font:400 15px/22px var(--sans);color:var(--text)}
.gk-compose > .gk-pillbox > .gk-icon{order:-1;flex:none;display:inline-grid;place-items:center;box-sizing:border-box;width:36px;height:36px;min-width:36px;min-height:36px;margin:0;padding:0;border:0;border-radius:50%;background:transparent;color:var(--text-2)}
.gk-compose > .gk-pillbox > .gk-icon:hover,.gk-compose > .gk-pillbox > .gk-icon.on{background:var(--hover);color:var(--text)}
:is(.chat > .compose > .composer > button.send,.gk-compose > .gk-pillbox > .gk-send){order:2;flex:none;display:inline-grid;place-items:center;box-sizing:border-box;width:36px;height:36px;min-width:36px;min-height:36px;margin:0;padding:0;border:0;border-radius:50%;background:var(--accent);box-shadow:none;color:var(--accent-ink)}
:is(.chat > .compose > .composer > button.send,.gk-compose > .gk-pillbox > .gk-send):hover:not(:disabled){background:var(--accent-hover)}
:is(.chat > .compose > .composer > button.send,.gk-compose > .gk-pillbox > .gk-send):disabled{background:var(--surface-2);box-shadow:none;color:var(--text-3);cursor:default}
:is(.chat > .compose > .composer > button.danger,.gk-compose > .gk-pillbox > .gk-stop){order:1;flex:none;display:inline-flex;align-items:center;gap:6px;box-sizing:border-box;height:32px;min-height:32px;width:auto;margin:2px 0;padding:0 12px;border:1px solid var(--border-strong);border-radius:999px;background:transparent;color:var(--text);font:500 13px/18px var(--sans)}
@media (max-width:700px){:is(.chat > .compose > .composer,.gk-compose > .gk-pillbox){min-height:48px;padding-top:5px;padding-right:5px;padding-bottom:5px}.gk-compose > .gk-pillbox{padding-left:5px}}

/* ==== the request card in both chats (and the shape of the home/admin banner): every row starts at the card's padding
   — row 1 the 20 px shield glyph, "lead wants to reach", the host chip and the ⋯ at the right; then the quote, the
   meta, the actions (Allow primary, Deny secondary, one height; 50/50 on a phone). A 3 px amber edge, 24 px of room
   above the composer ==== */
:is(.gk-card.gk-egress:not(.rec),.chat-appr > .approval){position:relative;box-sizing:border-box;padding:16px;border:1px solid var(--border);border-radius:12px;background:var(--surface-1);box-shadow:var(--shadow-card);overflow:visible}
:is(.gk-card.gk-egress:not(.rec),.chat-appr > .approval) > .ap-h{display:flex;flex-direction:row;align-items:flex-start;gap:8px;min-height:32px;margin:0;padding:0}
:is(.gk-card.gk-egress:not(.rec),.chat-appr > .approval) > .ap-h > .ap-ic{flex:none;display:inline-grid;place-items:center;width:20px;height:20px;margin:6px 0 0;padding:0;border:0;border-radius:0;background:none;color:var(--warn-ink,var(--warn))}
:is(.gk-card.gk-egress:not(.rec),.chat-appr > .approval) > .ap-h > .ap-ic > .ic{width:18px;height:18px}
:is(.gk-card.gk-egress:not(.rec),.chat-appr > .approval) > .ap-h > .ap-hw{flex:1 1 auto;min-width:0;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:8px;flex-wrap:wrap;margin:0;padding:5px 0 0;text-align:left}
:is(.gk-card.gk-egress:not(.rec),.chat-appr > .approval) > .ap-h > .ap-hw > .ap-l1{display:block;min-width:0;margin:0;font:400 14px/22px var(--sans);color:var(--text);text-align:left}
:is(.gk-card.gk-egress:not(.rec),.chat-appr > .approval) > .ap-h > .ap-hw > .ap-l1 > b.host{display:inline-block;margin:0;padding:0 6px;border-radius:6px;background:var(--surface-2);font:400 13px/20px var(--mono);color:var(--text);white-space:nowrap}
:is(.gk-card.gk-egress:not(.rec),.chat-appr > .approval) > .ap-h > .ap-hw > .ap-l1 > b.host > .port{color:var(--text-2)}
:is(.gk-card.gk-egress:not(.rec),.chat-appr > .approval) > .ap-h > .ap-t{display:none}
:is(.gk-card.gk-egress:not(.rec),.chat-appr > .approval) > .ap-h > details.ap-more{flex:none;margin:0 -8px 0 auto;align-self:flex-start}
:is(.gk-card.gk-egress:not(.rec),.chat-appr > .approval) > .ap-h > details.ap-more > summary{display:inline-grid;place-items:center;width:32px;height:32px;border-radius:8px;color:var(--text-2);cursor:pointer;list-style:none}
:is(.gk-card.gk-egress:not(.rec),.chat-appr > .approval) > .ap-h > details.ap-more > summary:hover{background:var(--hover);color:var(--text)}
:is(.gk-card.gk-egress:not(.rec),.chat-appr > .approval) > .ap-who{margin:8px 0 0;padding:0;font:400 14px/20px var(--sans);color:var(--text)}
:is(.gk-card.gk-egress,.chat-appr > .approval) > .ap-m{margin:4px 0 0;font:400 13px/18px var(--sans);color:var(--text-2)}
:is(.gk-card.gk-egress:not(.rec),.chat-appr > .approval) > :is(.acts,.approval-actions){margin:14px 0 0;padding:0}
.ap-main{display:flex;gap:8px}
.ap-main > :is(button.deny,button.allow){height:36px;min-height:36px;padding:0 14px;border-radius:8px;font:500 14px/20px var(--sans)}
.ap-main > button.allow{font-weight:600}
.ap-main > button.deny{border:1px solid var(--border-strong);background:transparent;color:var(--text)}
.ap-main > button.deny:hover:not(:disabled){background:var(--hover)}
.gk-scroll > .gk-dock,.chat .appr-dock{padding-bottom:24px}
@media (max-width:700px){
  :is(.gk-card.gk-egress:not(.rec),.chat-appr > .approval){padding:14px}
  .ap-main{display:flex;gap:8px;width:100%}.ap-main > :is(button.deny,button.allow){flex:1 1 0;height:44px;min-height:44px}
}

/* ==== chat shell (classic .chat and the Grok .gk-chat share every part): a 56 px header (avatar 28, name, the runtime
   status line; the right cluster of 36 px ghost buttons, the pressed one filled), one compact conversation head at
   the top of a top-anchored thread, one user bubble, one request card, one composer ==== */
.cstart.intro{display:grid;grid-template-columns:28px minmax(0,1fr);grid-template-areas:"a t" "a m";column-gap:12px;row-gap:0;align-items:center;box-sizing:border-box;margin:0 0 4px;padding:0;border:0;background:none;text-align:left}
.cstart.intro > .cs-av{grid-area:a;display:inline-flex;width:28px;height:28px;margin:0}
.cstart.intro > .cs-av :is(.gk-av,.av){width:28px;height:28px;min-width:28px;font-size:12px;line-height:28px}
.cstart.intro > .cs-l1{grid-area:t;display:flex;align-items:baseline;gap:8px;min-width:0}
.cstart.intro > .cs-l1 > .cs-t{flex:none;display:block;font:600 14px/20px var(--sans);letter-spacing:0;color:var(--text)}
.cstart.intro > .cs-l1 > .cs-t > b{font-weight:600;color:var(--text)}
.cstart.intro > .cs-l1 > .cs-t > .cs-w{font-weight:400;color:var(--text-2)}
.cstart.intro > .cs-l1 > .cs-p{display:block;min-width:0;max-width:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-webkit-line-clamp:none;font:400 13px/18px var(--sans);color:var(--text-2)}
.cstart.intro > .cs-m{grid-area:m;display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:400 13px/18px var(--sans);color:var(--text-3)}
.chat > .transcript{display:flex;flex-direction:column}
.chat > .transcript > :first-child,.gk-chat > .gk-scroll > .gk-transcript{margin-top:auto}
.gk-chat > .gk-scroll{display:flex;flex-direction:column}
.chat > .transcript{padding-top:0}
:is(.chat > .transcript,.gk-chat .gk-transcript) > .cstart.intro:first-child{margin-top:auto;padding-top:24px}
.gk-chat .gk-transcript > .cstart.intro:first-child{margin-top:0}
.gk-chead .gk-namepill .who > .sub .gk-mood{color:var(--text-2)}
:is(.chat .day-sep,.gk-chat .gk-day){font:500 13px/18px var(--sans);letter-spacing:0;text-transform:none;color:var(--text-2)}
:is(.chat .day-sep,.gk-chat .gk-day)::before,:is(.chat .day-sep,.gk-chat .gk-day)::after{background:var(--border);border-color:var(--border)}
/* the user bubble: one colour, no edge or bevel, 18 px corners with a 6 px bottom-right */
:is(.msg.user .body,.gk-msg.mine .gk-bubble){box-sizing:border-box;max-width:100%;padding:10px 14px;border:0;border-radius:18px 18px 6px 18px;background:var(--bubble-user);box-shadow:none;color:var(--text)}
.chat .msg.user,.gk-msg.mine > .col{max-width:min(80%,640px)}
/* the header, both chats */
:is(.chat > .ch,.gk-chat > .gk-chead){box-sizing:border-box;min-height:56px}
:is(.chat > .ch,.gk-chead .gk-namepill) :is(.gk-av,.av):not(.cs-av *){width:28px;height:28px;min-width:28px;font-size:12px;line-height:28px}
:is(.chat > .ch .cht > b,.gk-chead .gk-namepill .who > b){font:600 15px/20px var(--sans);color:var(--text)}
:is(.chat > .ch .cht > .meta,.gk-chead .gk-namepill .who > .sub){font:400 13px/18px var(--sans);color:var(--text-2)}
.chat > .ch .ch-acts{display:flex;align-items:center;gap:4px;margin-left:auto}
.chat > .ch .ch-acts > button.sw-view.chv,.iview .chat > .ch .ch-acts > button.sw-view.chv{display:inline-flex;align-items:center;gap:6px;height:36px;min-height:36px;margin:0;padding:0 10px;border:1px solid transparent;border-radius:8px;background:transparent;box-shadow:none;font:500 14px/20px var(--sans);color:var(--text-2)}
.chat > .ch .ch-acts > button.sw-view.chv:hover{background:var(--hover);color:var(--text)}
:is(.chat > .ch .ch-acts > button.ib,.gk-chead > .r > .gk-icon){display:inline-grid;place-items:center;width:36px;height:36px;min-width:36px;min-height:36px;margin:0;padding:0;border:1px solid transparent;border-radius:8px;background:transparent;box-shadow:none;color:var(--text-2)}
:is(.chat > .ch .ch-acts > button.ib,.gk-chead > .r > .gk-icon):hover{background:var(--hover);color:var(--text)}
:is(.chat > .ch .ch-acts > button.ib.on,.chat > .ch .ch-acts > button.ib[aria-pressed=true],.gk-chead > .r > .gk-icon.on){background:var(--surface-2);border-color:transparent;color:var(--text)}
:is(.chat > .ch .ch-acts > button.ib,.gk-chead > .r > .gk-icon) > .ic{width:18px;height:18px}
@media (max-width:480px){.gk-chead > .r > button.gk-icon[aria-label="computer"]{display:none}}
@media (max-width:700px){.chat > .ch .ch-acts > button.stream-h{display:none}}
/* a needing bot's avatar dot shows its runtime (running), the shield badge says it waits */
.gk-av.needs > i.b{background:var(--warn)}
.gk-av.needs{box-shadow:none}
.gk-row > .cnt > .apw,.side .brow .apw{display:inline-flex;align-items:center;justify-content:center;gap:3px;height:20px;min-width:20px;padding:0 6px;border-radius:999px;background:var(--warn-soft);color:var(--warn-ink,var(--warn));font:600 12px/20px var(--sans)}
:is(.gk-row > .cnt > .apw,.side .brow .apw) > .ic{width:12px;height:12px}
@media (max-width:700px){
  :is(.chat > .ch,.gk-chat > .gk-chead){min-height:48px;padding-top:4px;padding-bottom:4px}
  .cstart.intro > .cs-l1 > .cs-p{display:none}
  .cstart.intro > .cs-m{white-space:normal;overflow:visible}
  :is(.chat > .transcript,.gk-chat .gk-transcript) > .cstart.intro:first-child{padding-top:12px}
  .chat > .compose{padding-left:16px;padding-right:16px}
}
/* the classic chat on a phone: no tab row (its pages are the bar's ⋯ "Go to"); the second row is the bots' row (chips,
   add, the panel) */
@media (max-width:700px){
  .iview > .ihead.on-chat .subnav,.iview .ihx.on-chat .subnav{display:none}
  .iview .chat > .botbar{box-sizing:border-box;min-height:44px}
  .iview .chat > .botbar .stream-ic > .sl{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
}

/* ==== the classic ⋯ menu's group heads: eyebrow + the object's name ==== */
.menu .items .mgh{display:flex;align-items:baseline;gap:0;padding:8px 10px 4px}
.menu .items .mgh > .sec-k,.menu .items .mgl{font:600 12px/16px var(--sans);letter-spacing:0;text-transform:none;color:var(--text-2)}
.menu .items .mgh > .sec-v{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:500 13px/16px var(--sans);color:var(--text)}
.menu .items .mgh > .sec-v::before{content:" · ";white-space:pre;color:var(--text-3)}
.menu .items .mgl:not(.mgh){display:block;padding:12px 10px 4px}

/* ==== the admin grid (node-admin, images, instance-admin, checkpoints, bot-admin): main and a 344 px rail, 24 px apart.
   Explainers ("How X works") are a rail card on a wide screen, a carded disclosure at the end of the page otherwise. ==== */
@media (min-width:1100px){
  :is(.ws:not(button),.pg2){grid-template-columns:minmax(0,1fr) 344px;column-gap:24px}
  .images-view > .ws.imgpg{display:grid;grid-template-columns:minmax(0,1fr) 344px;column-gap:24px;align-items:start}
}
:is(.card.explainer,.howrow.card){box-sizing:border-box;align-self:start;height:auto;margin:0;padding:20px;border:1px solid var(--border);border-radius:12px;background:var(--surface-1);box-shadow:var(--shadow-card)}
.explainer > .ex-h{margin:0 0 16px;padding:0;font:600 15px/20px var(--sans);letter-spacing:0;text-transform:none;color:var(--text)}
.hows{display:flex;flex-direction:column;gap:16px;margin:0;padding:0;list-style:none}
.hows > li{display:flex;align-items:flex-start;gap:12px;margin:0;padding:0;flex:none}
.hows > li > .hw-ic{flex:none;display:inline-grid;place-items:center;box-sizing:border-box;width:24px;height:24px;margin:0;border:0;border-radius:6px;background:var(--surface-2);color:var(--text-2);font:600 12px/1 var(--sans)}
.hows > li > .hw-ic > .ic{width:14px;height:14px}
.hows > li > .hw-t{display:flex;flex-direction:column;gap:2px;min-width:0}
.hows > li > .hw-t > b{font:600 14px/20px var(--sans);color:var(--text)}
.hows > li > .hw-t > span{font:400 13px/18px var(--sans);color:var(--text-2);text-wrap:pretty}
:is(.explainer,.howrow) > .ex-foot{display:flex;align-items:center;gap:4px;width:100%;margin:auto 0 0;padding:12px 0 0;border:0;border-top:1px solid var(--border-soft);border-radius:0;background:none;font:400 13px/18px var(--sans);color:var(--text-2);text-align:left;text-decoration:none}
:is(.explainer,.howrow) > button.ex-foot{justify-content:flex-start;cursor:pointer;color:var(--text);font-weight:500}
:is(.explainer,.howrow) > button.ex-foot:hover{text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--link-line)}
:is(.explainer,.howrow) > .hows + .ex-foot{margin-top:20px}
.pg-rail{align-self:start}
.pg-rail .howrow.card{padding:20px}
/* checkpoints: the rail's card stretches to the main column's end, its History link at its foot */
@media (min-width:1100px){
  .checkpoint-view .pg2.ckpg{align-items:stretch}
  .checkpoint-view .pg2.ckpg > .pg-rail{display:flex;flex-direction:column;align-self:stretch;margin-top:0}
  .checkpoint-view .pg2.ckpg > .pg-rail > .sec.ck-how{flex:1 1 auto;display:flex;flex-direction:column}
  .checkpoint-view .pg2.ckpg > .pg-rail > .sec.ck-how > .sec-b{flex:1 1 auto;display:flex;flex-direction:column}
  .checkpoint-view .pg2.ckpg > .pg-rail > .sec.ck-how > .sec-b > .howrow.card{flex:1 1 auto;display:flex;flex-direction:column}
  .images-view > .ws.imgpg > .ws-rail{position:sticky;top:72px;align-self:start}
}
/* the phone's explainer: the same card as "Host details", after the page's task */
:is(.howrow.ck-howend,.card.imguide-m.howend){margin:4px 0 0;padding:0;border:1px solid var(--border);border-radius:12px;background:var(--surface-1);box-shadow:var(--shadow-card);overflow:hidden}
:is(.howrow.ck-howend,.card.imguide-m.howend) > details.disc > summary{padding:10px 16px}
:is(.howrow.ck-howend,.card.imguide-m.howend) > details.disc > .d-b{margin:0;padding:4px 16px 16px;border:0;background:none}
.images-view .imreg-row,.images-view .imreg-row.wide{display:block}
.images-view > .ws.imgpg > :is(.ws-main,.ws-rail){display:flex;flex-direction:column;gap:28px;min-width:0}
@media (max-width:1099px){.images-view > .ws.imgpg{display:flex;flex-direction:column;gap:24px}}
.images-view .ex-foot{margin-top:20px}
.images-view .ws-main > .card.imguide-m.howend{margin-top:0}
}

/* ==== terminal: before a session, one centred, content-sized card on the page surface in the theme's own colours
   (the Vercel-login composition: icon, title, one line, the recording warning, the typed confirm, Start, a footer
   line), optically a little above centre; the bar (role=status) stays for assistive technology only. The dark
   xterm frame (.tframe) appears once a session is connecting or connected and fills the page. ==== */
.app-page:has(> .terminal-page){display:flex;flex-direction:column;min-height:100dvh;padding-bottom:24px;box-sizing:border-box}
.app-page > .terminal-page.adminview{padding-bottom:0}
.app-page > .terminal-page{flex:1 1 auto;display:flex;flex-direction:column;min-height:0}
.terminal-page > .tcard{flex:1 1 auto;display:flex;flex-direction:column;gap:16px;min-width:0;margin:0;padding:0;border:0;background:none;box-shadow:none}
.terminal-page > .tcard.t-idle{flex:1 1 auto;align-items:center;justify-content:center;padding:24px 0 8vh}
.terminal-page .tcard.t-idle > .twin{position:relative;flex:0 0 auto;display:block;box-sizing:border-box;width:440px;max-width:100%;margin:0;padding:28px;border:1px solid var(--border);border-radius:12px;background:var(--surface-1);box-shadow:var(--shadow-card);color:var(--text)}
.terminal-page .tcard.t-idle > .twin > .tbar{position:absolute;width:1px;height:1px;margin:0;padding:0;border:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.terminal-page .twin > .t-pre{display:flex;flex-direction:column;align-items:stretch;gap:0;margin:0;padding:0}
.terminal-page .twin > .t-pre > .ts-ic{display:inline-flex;align-self:flex-start;color:var(--text-3);margin:0 0 12px}
.terminal-page .twin > .t-pre > .ts-ic > .ic{width:20px;height:20px}
.terminal-page .twin > .t-pre > h2.ts-h{margin:0;font:600 20px/28px var(--sans);letter-spacing:-.01em;color:var(--text)}
.terminal-page .twin > .t-pre > .ts-sub{margin:4px 0 0;font:400 14px/20px var(--sans);color:var(--text-2)}
.terminal-page .twin > .t-pre > .ts-sub > .ts-n{font-weight:600;color:var(--text)}
.terminal-page .twin > .t-pre > .t-warn{display:flex;align-items:flex-start;gap:8px;margin:20px 0 0;font:500 13px/18px var(--sans);color:var(--text);text-wrap:pretty}
.terminal-page .twin > .t-pre > .t-warn > .ic{flex:none;width:16px;height:16px;margin-top:1px;color:var(--warn-ink,var(--warn))}
.terminal-page .twin > .t-pre > p.treason.callout.warn{display:block;margin:12px 0 0;padding:0;border:0;border-radius:0;background:none;font:400 13px/18px var(--sans);color:var(--warn-ink,var(--warn))}
.terminal-page .twin > .t-pre > :is(.err){margin:12px 0 0}
.terminal-page .twin > .t-pre > form.ts-card{display:flex;flex-direction:column;align-items:stretch;gap:12px;width:100%;margin:20px 0 0;padding:0;border:0;border-radius:0;background:none;box-shadow:none}
.terminal-page .twin > .t-pre > form.ts-card > label.f.confirm{display:flex;flex-direction:column;gap:8px;width:100%;margin:0}
.terminal-page .twin > .t-pre > form.ts-card > label.f.confirm > .cf-l{display:block;align-self:stretch;margin:0;text-align:left;font:400 13px/18px var(--sans);color:var(--text-2)}
.terminal-page .twin > .t-pre > form.ts-card > label.f.confirm > .cf-l > code.idchip{padding:0;border:0;background:none;font:500 13px/18px var(--mono);color:var(--text)}
.terminal-page .twin > .t-pre > form.ts-card > label.f.confirm > input{box-sizing:border-box;width:100%;height:40px;min-height:40px;padding:0 12px;font:400 14px/20px var(--mono)}
.terminal-page .twin > .t-pre > form.ts-card > button.go{width:100%;height:40px;min-height:40px}
.terminal-page .twin > .t-pre > .t-note{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px;margin:16px 0 0;font:400 13px/18px var(--sans);color:var(--text-2)}
.terminal-page .twin > .t-pre > .t-note > .t-dot{color:var(--text-3)}
.terminal-page .twin > .t-pre > .t-note > button.thist{font:400 13px/18px var(--sans);color:var(--text-2);gap:0}
.terminal-page .twin > .t-pre > .t-note > button.thist:hover{color:var(--text)}
.terminal-page .twin > .t-pre > .t-note > button.thist > .ic{width:14px;height:14px}
.terminal-page .tcard.t-idle > .twin > .terminal-host{position:absolute;left:0;right:0;top:0;height:0;padding:0;visibility:hidden;pointer-events:none;overflow:hidden}
@media (max-width:700px){
  .app-page:has(> .terminal-page){padding-bottom:16px}
  .terminal-page > .tcard.t-idle{padding:16px 0 10vh}
  .terminal-page .tcard.t-idle > .twin{width:100%;padding:8px 4px;border:0;border-radius:0;background:transparent;box-shadow:none}
  .terminal-page .twin > .t-pre > form.ts-card > label.f.confirm > input,.terminal-page .twin > .t-pre > form.ts-card > button.go{height:44px;min-height:44px}
}

/* ==== images: the register form within 720 px; kind and label side by side, the path and the hash full width ==== */
.images-view .card.register.imreg{max-width:none}
.images-view{--im-pad:20px}
@media (max-width:700px){.images-view{--im-pad:16px}}
.images-view .card.register.imreg > form > footer.cf{background:transparent}
.images-view .imfields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.images-view .imfields > .span2{grid-column:1 / -1}
@media (max-width:700px){.images-view .imfields{grid-template-columns:minmax(0,1fr)}}

/* ==== history ==== */
.history-view .hx-bar{display:flex;align-items:center;gap:8px}
.history-view .hx-bar > .hx-acts{display:flex;align-items:center;gap:8px;margin-left:auto}
.history-view .hx-bar .hx-rf{width:36px;height:36px;min-width:36px;min-height:36px}
.history-op:is(.s-failed,.s-running,.s-pending) .hx-st{display:inline-flex;align-items:center;gap:6px;height:22px;padding:0 9px;border-radius:999px;font:600 13px/18px var(--sans)}
.history-op:is(.s-failed,.s-running,.s-pending) .hx-st > .ic{display:none}
.history-op.s-failed .hx-st{background:var(--bad-soft);color:var(--bad-ink,var(--bad))}
.history-op:is(.s-running,.s-pending) .hx-st{background:var(--info-soft);color:var(--info-ink,var(--info))}
.history-view .elink,.history-view .link.nm.elink{text-decoration:none}
.history-view .elink:hover,.history-view .elink:focus-visible{text-decoration:underline;text-decoration-color:var(--link-line)}
.history-view .hx-t,.history-view .hx-t *{font-weight:400;color:var(--text-2)}
.history-view :is(.hx-t,.rd){font-variant-numeric:tabular-nums}
@media (min-width:701px){.history-main .hx-row{grid-template-rows:minmax(36px,auto)}.history-main .hx-cols{grid-template-rows:minmax(36px,auto)}.history-main .hx-day{min-height:32px}}
.history-view .hx-bar{border-bottom:0}

/* ==== the side panel's toolbars (Files, Activity): one 48 px row, a 32 px bot pill at the left, a count, actions right ==== */
.gk-panel :is(.fbar,.cbar),.rpane :is(.fbar,.cbar){display:flex;align-items:center;gap:8px;box-sizing:border-box;min-height:48px;margin-top:0;margin-bottom:0;padding-top:8px;padding-bottom:8px;border-bottom:1px solid var(--border-soft)}
:is(.fbar,.cbar) select.chipsel{box-sizing:border-box;height:32px;min-height:32px;padding:0 28px 0 12px;border:1px solid var(--border-strong);border-radius:999px;background-color:transparent;font:500 14px/20px var(--sans);color:var(--text)}
.fbar > .count,.cbar > .cn > .count{margin-left:4px}
.cwrap > .cbar{padding-left:16px;padding-right:16px}
.fbar > .fref{margin-left:auto}
.cbar > .cn{display:inline-flex;align-items:center;gap:6px;margin-left:auto;font:400 13px/18px var(--sans);color:var(--text-2)}
.cbar > .cn > .count{margin:0}
.fbar .upbtn.fup{display:inline-flex;align-items:center;gap:6px;box-sizing:border-box;height:32px;padding:0 12px;border:1px solid var(--border-strong);border-radius:8px;background:transparent;font:500 14px/20px var(--sans);color:var(--text);cursor:pointer}
.fbar .upbtn.fup:hover{background:var(--hover)}
.fbar .upbtn.fup > .ic{width:16px;height:16px}
/* files: one table inside the panel's 16 px gutter (Name | Modified | Size | a chevron column every row reserves),
   hairlines between rows and no row chrome; "3 items" right-aligned under it; then a compact dashed drop strip (a
   label for the same file input) on a pointer device — a touch screen keeps the toolbar's Upload only */
.gk-panel .fview{display:flex;flex-direction:column;min-height:100%;box-sizing:border-box}
.ftree :is(.fhead,.frow){box-sizing:border-box;width:auto;margin-left:0;margin-right:0;padding-left:16px;padding-right:12px;grid-template-columns:16px minmax(0,1fr) 88px 72px 24px;column-gap:12px;align-items:center}
.ftree .frow{min-height:44px;border-bottom:1px solid var(--border-soft)}
.gk-panel .ftree :is(.fhead,.flist > .frow,.flist > button.frow.frow),.rpane .ftree :is(.fhead,.flist > .frow,.flist > button.frow.frow){margin:0 16px;padding-left:2px;padding-right:0;border:0;border-bottom:1px solid var(--border-soft);border-radius:0;background:transparent;box-shadow:none}
.gk-panel .ftree .flist > button.frow.frow:hover,.rpane .ftree .flist > button.frow.frow:hover{background:var(--hover)}
.ftree .flist > button.frow + button.frow::before{content:none}
.ftree .frow > *{align-self:center}
.ftree .frow > :is(.mt,.sz){display:block;justify-self:stretch;height:auto;min-height:0;margin:0;padding:0;text-align:right;font:400 13px/20px var(--sans);color:var(--text-2);font-variant-numeric:tabular-nums}
.ftree .fhead > span:nth-child(3),.ftree .fhead > span:nth-child(4){text-align:right}
.ftree .frow > .cv{display:inline-grid;place-items:center;justify-self:end;width:20px;color:var(--text-2)}
.gk-panel .ftree .frow:not(.d) > .cv{opacity:0;transition:opacity 120ms ease}
.gk-panel .ftree .frow:not(.d):is(:hover,:focus-visible,.on) > .cv{opacity:1}
.ftree .fhead > span{font:500 13px/20px var(--sans);text-transform:none;letter-spacing:0;color:var(--text-2)}
.ftree .fcap{margin:8px 16px 0;font:400 13px/18px var(--sans);color:var(--text-3);text-align:right}
.ftree .fhint.fzone{flex:none;display:grid;grid-template-columns:32px minmax(0,1fr);grid-template-areas:"i t" "i s";column-gap:12px;row-gap:0;align-items:center;box-sizing:border-box;min-height:64px;margin:16px 16px 16px;padding:12px 16px;border:1.5px dashed var(--border-strong);border-radius:10px;background:transparent;text-align:left;cursor:pointer;color:var(--text-2)}
.ftree .fhint.fzone:hover{background:var(--hover)}
.ftree .fhint.fzone > .fz-ic{grid-area:i;display:inline-grid;place-items:center;width:32px;height:32px;margin:0;border-radius:8px;background:var(--surface-2);color:var(--text-2)}
.ftree .fhint.fzone > .fz-ic > .ic{width:16px;height:16px}
.ftree .fhint.fzone > .fz-t{grid-area:t}.ftree .fhint.fzone > .fz-s{grid-area:s}
.ftree .fhint.fzone > .fz-t{font:400 14px/20px var(--sans);color:var(--text)}
.ftree .fhint.fzone > .fz-t > b{font-weight:600}
.ftree .fhint.fzone > .fz-s{font:400 13px/18px var(--sans);color:var(--text-2)}
.ftree .fhint .fh-m{display:none}
@media (hover:none),(max-width:700px){.ftree .fhint.fzone{display:none}.gk-panel :is(.fbar,.cbar){padding-left:16px;padding-right:16px}}
.fbar > .count.fcount{display:none}
@media (max-width:700px){.ftree :is(.fhead,.frow){grid-template-columns:16px minmax(0,1fr) 56px 56px 20px}}
/* activity: "All bots ⌄ · 5 events"; the turn head (avatar 20, the bot, its minute) at 24 px; one event node — a 24 px
   circle with a 1 px edge and a 14 px glyph (a finished turn's glyph green, a failure red), the waiting stop a dashed
   circle with a static green dot; one 1.5 px rail (dashed only on its pending end); the duration inline after the
   title; a foot that links the full history ==== */
.cwrap > .cbar{justify-content:flex-start}
.cbar > .cn{display:inline-flex;align-items:center;gap:4px;margin:0;font:400 13px/18px var(--sans);color:var(--text-2)}
.cbar > .cn{margin-left:4px}
.cbar > .cn > .count{height:auto;min-width:0;margin:0;padding:0;border-radius:0;background:none;font:400 13px/18px var(--sans);color:var(--text-2)}
.console > :is(.act-h,.act-ev,.act-end){grid-template-columns:24px minmax(0,1fr);column-gap:12px}
.console > :is(.act-h,.act-ev)::after{left:19.25px;top:24px;width:1.5px;background:var(--border-strong)}
.console > .act-ev:has(+ .act-end)::after{background:repeating-linear-gradient(to bottom,var(--border-strong) 0 3px,transparent 3px 7px)}
.console > * > .act-mk{width:24px;height:24px;border:1px solid var(--border-strong);background:var(--act-bg);color:var(--text-2)}
.console > * > .act-mk > .ic{width:14px;height:14px}
.console > .act-ev.k-tool > .act-mk{color:var(--text-2)}
.console > .act-ev.k-end:not(.bad) > .act-mk{border:1px solid var(--border-strong);background:var(--act-bg);color:var(--ok)}
.console > .act-ev.bad > .act-mk{border:1px solid color-mix(in srgb,var(--bad) 60%,transparent);background:var(--act-bg);color:var(--bad-ink,var(--bad))}
.console > .act-h{min-height:24px;padding-bottom:8px;column-gap:0}
.console > .act-h > .act-mk{width:24px;height:24px;margin-right:12px;border:0;background:none}
.console > .act-h > .act-mk > .gk-av{width:20px;height:20px;min-width:20px;margin:2px;font-size:10px;line-height:20px}
.console > .act-h > b{font:600 14px/24px var(--sans)}
.console > .act-h > .act-ts,.console > .act-h:has(+ .act-ev.k-start) > .act-ts{display:inline;font:400 13px/24px var(--sans);color:var(--text-3)}
.console > .act-ev > .act-r{display:none}
.console > .act-ev .act-t{font:500 14px/24px var(--sans)}
.console > .act-ev .act-m{font:400 13px/24px var(--sans);color:var(--text-2)}
.console > .act-ev .act-line > .act-dur{font:400 13px/24px var(--sans);color:var(--text-2);font-variant-numeric:tabular-nums;white-space:nowrap}
.console > .act-ev .act-line > .act-dur::before{content:"·";margin:0 6px;color:var(--text-3)}
.console > .act-ev.k-end:not(.bad) .act-line > .act-dur{font-weight:400;color:var(--text-2)}
.console > .act-ev.open > .act-main{grid-column:2}
.console > .act-ev.open .act-line{padding-right:0}
.console > .act-end{font:400 14px/24px var(--sans);color:var(--text-2)}
.console > .act-end > .act-mk{border:1px dashed var(--border-strong);background:var(--act-bg)}
.console > .act-end > .act-mk::before{content:"";width:6px;height:6px;border:0;border-radius:50%;background:var(--ok)}
.console > .act-end > .act-main > .act-live{display:none}
.cwrap > .act-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;padding:12px 16px 20px;border-top:1px solid var(--border-soft);font:400 13px/18px var(--sans);color:var(--text-3)}
.cwrap > .act-foot > .lnk{height:auto;min-height:0;padding:0;border:0;background:none;font:500 13px/18px var(--sans);color:var(--text);cursor:pointer}
.cwrap > .act-foot > .lnk::after{content:"›";margin-left:4px;font-size:15px}

/* ==== the side panel's phone sheet: one 40 px ✕ close (the "Done" word is gone) ==== */
@media (max-width:899px){
  .gk-main > .gk-panel:not(.expanded) > .gk-ph > button.gk-icon[aria-label="close the side panel"]{display:inline-grid;place-items:center;width:40px;min-width:40px;height:40px;padding:0;border:0;border-radius:8px;background:transparent;color:var(--text-2)}
  .gk-main > .gk-panel:not(.expanded) > .gk-ph > button.gk-icon[aria-label="close the side panel"] > .ic{display:block;width:18px;height:18px}
  
}

/* ==== the Details tab: two cards (the bot; the instance with its tasks), Props rows at 112 px keys ==== */
.gk-details .dx-card{box-sizing:border-box;margin:0 0 12px;padding:0;border:1px solid var(--border);border-radius:12px;background:var(--surface-1);box-shadow:var(--shadow-card);overflow:hidden}
.gk-details .dx-card > .dx-h{display:flex;align-items:center;gap:12px;margin:0;padding:14px 16px;border-bottom:1px solid var(--border-soft)}
.gk-details .dx-card > .dx-h > .dx-ic{flex:none;display:inline-grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--surface-2);color:var(--text-2)}
.gk-details .dx-card > .dx-h > .dx-ic .gk-av{width:36px;height:36px}
.gk-details .dx-card > .dx-h > .dx-hd{flex:1 1 auto;min-width:0}
.gk-details .dx-card > .dx-h .dx-t{margin:0;font:600 16px/22px var(--sans);color:var(--text)}
.gk-details .dx-card > .dx-h .dx-sub{margin:0;font:400 13px/18px var(--sans);color:var(--text-2)}
.gk-details .dx-card > .dx-h > button.dx-act{flex:none;display:inline-grid;place-items:center;width:36px;height:36px;min-width:36px;min-height:36px;padding:0;border:0;border-radius:8px;background:transparent;color:var(--text-2)}
.gk-details .dx-card > .dx-h > button.dx-act:hover{background:var(--hover);color:var(--text)}
.gk-details .dx-card > .dx-h > button.dx-act > .lt{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.gk-details .dx-card > .dx-h > button.dx-act > .ic{width:18px;height:18px}
.gk-details dl.props .bstat{display:inline-flex;align-items:center;gap:6px;padding:0;background:none;font:400 14px/20px var(--sans);color:var(--text)}
.gk-details dl.props .bstat > .dot{width:7px;height:7px}
.gk-details{padding-bottom:24px}
.gk-details .dx-card > dl.props{margin:0;padding:8px 16px}
.gk-details .dx-card > dl.props + dl.props{padding-top:8px;border-top:1px solid var(--border-soft)}
.gk-details dl.props > .pr.has-x{grid-template-areas:"k v" "x x";row-gap:8px}
.gk-details dl.props > .pr.has-x > .meter{grid-column:2;width:100%;max-width:none;margin:2px 0 4px}
.gk-details .dx-id{display:inline-flex;align-items:center;gap:4px;padding:0;border:0;background:none}
.gk-details .dx-id > code.pid{padding:0;border:0;background:none;font:400 13px/20px var(--mono);color:var(--text)}
.gk-details .dx-id > button.ib.cpy{width:28px;height:28px;min-width:28px;min-height:28px}
.gk-details .gk-tasks.bare{margin:0;padding:12px 16px 12px;border-top:1px solid var(--border-soft)}
.gk-details .gk-tasks.bare > .props-h{margin:0 0 4px}
.gk-details .gk-tasks.bare > .empty-state{min-height:32px}
.gk-details .gk-tasks.bare > .empty-state > .es-ic{display:none}
.gk-details .gk-tasks.bare > .empty-state > .es-t > b{font-weight:400;color:var(--text-2)}
@media (max-width:700px){.gk-details .dx-card > dl.props{padding:8px 16px}.gk-panel .pb:has(> .gk-details){padding-left:16px;padding-right:16px}}
.gk-details .dx-card > details.dx-more{margin:0;border-top:1px solid var(--border-soft)}
.gk-details .dx-card > details.dx-more > summary{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:40px;padding:0 16px;list-style:none;cursor:pointer;font:500 14px/20px var(--sans);color:var(--text)}
.gk-details .dx-card > details.dx-more > summary::-webkit-details-marker{display:none}
.gk-details .dx-card > details.dx-more > summary:hover{background:var(--hover)}
.gk-details .dx-card > details.dx-more > summary:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
.gk-details .dx-card > details.dx-more > summary > .ic{color:var(--text-2);transition:transform var(--dur-1) var(--ease)}
.gk-details .dx-card > details.dx-more[open] > summary > .ic{transform:rotate(180deg)}
.gk-details .dx-card > details.dx-more > dl.props{margin:0;padding:0 16px 8px}

/* ==== small fixes on the type floor and the bars ==== */
.gk-menu .g-go .it.pg .l,.gk-menu .g-go .it.pg .lt{font:400 14px/20px var(--sans)}
.side .brow .apw{display:inline-flex;align-items:center;gap:3px;height:20px;padding:0 7px;border-radius:999px;background:var(--warn-soft);color:var(--warn-ink,var(--warn));font:600 13px/20px var(--sans)}
.side .brow .apw > .ic{width:12px;height:12px}
@media (min-width:701px){.ihead.ihx,.gk-bar.ihx{box-sizing:border-box;height:52px;min-height:52px}}
/* the screen's stream state: plain text (a pill border would read as a button), the dot green while streaming */
.tag.scrctl,.tag.scrctl.neutral{height:auto;padding:0;border:0;border-radius:0;background:none;box-shadow:none;font:400 13px/18px var(--sans);color:var(--text-2)}
.tag.scrctl > .dot{width:7px;height:7px;margin-right:6px;background:var(--text-3)}
.tag.scrctl.live > .dot{background:var(--ok)}
.disc .d-t > b > .opt{font-weight:400;color:var(--text-2)}
/* the bar's approval pill says "1 approval" at every width and in every bar */
.ih-wait > button.tag.waiting .wl{display:inline}
/* the classic side panel's header: expand and close as one icon pair, no rule between them and the tabs (as the Grok panel) */
.iview .rpane > .ph > button.ib.xp::before{content:none}
.iview .rpane > .ph > button.ib.xp + button.ib{margin-left:4px}
/* the classic rail: one-line previews, as the Grok rail */
@media (min-width:701px){.side .brow .bw > .s{display:block;-webkit-line-clamp:none;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}}

/* ==== page foot: the page ends 40 px under its last card on a desktop (short pages end on plain canvas) ==== */
@media (max-width:700px){.adminview{padding-bottom:calc(40px + env(safe-area-inset-bottom))}}
@media (min-width:701px){.app-page:not(:has(> .iview)){padding-bottom:32px}}
.node-view > .nres{margin-bottom:4px}
/* the node's CPU pools: a mini table, one 28 px line per pool (name, state, CPUs and core) */
dl.props.pools{--kcol:72px}
dl.props.pools > .pr{min-height:28px;padding:4px 0;align-items:center}
dl.props.pools > .pr > dt{font:500 14px/20px var(--sans);color:var(--text)}
dl.props.pools .pool-v{display:flex;align-items:baseline;gap:12px;min-width:0;white-space:nowrap}
dl.props.pools .pool-v > .ps{flex:none;display:inline-flex;align-items:center;gap:6px;width:64px}
dl.props.pools .pool-v > .ps > .dot{width:7px;height:7px}
dl.props.pools .pool-v > .pm{min-width:0;overflow:hidden;text-overflow:ellipsis;font:400 13px/18px var(--sans);color:var(--text-2)}

/* ==== layout fixes: sections hug their content in the two-column grammar ==== */
.ws :is(.ws-main,.ws-rail) > .sec,.ws :is(.ws-main,.ws-rail) > .sec > .sec-b{flex:none}
.ws :is(.ws-main,.ws-rail) > .sec > .sec-b > .card{height:auto}
/* the access drawer's invite form */
.access-view .share{display:flex;flex-direction:column;gap:16px}
.access-view .share > h3.eyebrow{margin:0 0 -4px}
/* role chips: a word, no status dot */
.access-view .tag.prole{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:999px;font:500 12px/22px var(--sans)}
.access-view .tag.prole::before,.access-view .tag.prole > .dot{content:none;display:none}
.access-view .share > .roles-g{margin:0}
/* the new-instance drawer: the profile's specs as small neutral chips under its select; the owner a key/value row */
.drawer .ni-spec{display:flex;flex-wrap:wrap;gap:0;margin:6px 0 0;padding:0;clip-path:none;font:400 13px/18px var(--sans);color:var(--text-2)}
.drawer .ni-spec > span{display:inline;height:auto;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;font:inherit;color:inherit;white-space:nowrap}
.drawer .ni-spec > span::before{content:none}
.drawer .ni-spec > span + span::before{content:"·";margin:0 7px;color:var(--text-3)}
.drawer .ni-spec > span > b{font-weight:400;color:inherit}
.drawer .ni-ownf{display:grid;grid-template-columns:minmax(0,1fr);row-gap:4px}
.drawer .ni-ownf > .ni-k{font:500 14px/20px var(--sans);color:var(--text)}
.drawer .ni-ownf > .ni-v{font:400 14px/20px var(--sans);color:var(--text)}
.drawer .ni-ownf > .ni-v > span{color:var(--text-2)}
.ni-adv > legend.eyebrow{margin:0 0 2px;font:600 14px/20px var(--sans);color:var(--text)}
.ni-rows > .ni-row,.ni-rows > details.ni-row{border-top:1px solid var(--border-soft)}
.ni-rows > .ni-row:first-child,.ni-rows > details.ni-row:first-child{border-top:0}
/* home cards: identity, the memory row, the bots, the newest activity as a body row ("lead wrote … · 30s ago"; the
   message ellipsises, never the time), then a footer of actions only, right-aligned: the lifecycle verb and Open,
   both outlined secondaries of one height (a phone splits them 50/50) */
.home-view > :is(.ihead,.ap-notice,.statstrip-c){margin-bottom:20px}
.cluster.ov > :is(.statstrip-c,.attn-sec){margin-bottom:28px}
.home-view .igrid > .card.ipanel{box-shadow:var(--shadow-card)}
.home-view .ipanel > .act,.home-view .ipanel > .act:not(.none),.home-view .ipanel:not(:has(> .acts > .slots)) > .act,.home-view .ipanel:not(:has(> .acts > .slots)) > .act.none{position:static;display:grid;grid-template-columns:16px minmax(0,1fr) auto;grid-template-rows:none;column-gap:8px;align-items:center;min-width:0;height:auto;min-height:20px;margin:0;padding:0;border:0;border-radius:0;background:none;font:400 13px/20px var(--sans)}
.home-view .ipanel > .act,.home-view .ipanel > .act.none{grid-template-areas:none;grid-template-columns:16px minmax(0,1fr) auto}
.home-view .ipanel > .act > *{grid-area:auto;grid-row:1}
.home-view .ipanel > .act > .a-ic{grid-column:1;display:inline-grid;place-items:center;height:20px;color:var(--text-2)}
.home-view .ipanel > .act > .x{grid-column:2}
.home-view .ipanel > .act > .x > :is(.t,.xd){display:inline;margin:0;white-space:nowrap}
.home-view .ipanel > .act > .x{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-2)}
.home-view .ipanel > .act > .x > .t{font-weight:600;color:var(--text)}
.home-view .ipanel > .act > .x > .xd{display:inline;color:var(--text-2)}
.home-view .ipanel > .act > .x > .xd code.apath{padding:0;border:0;background:none;font:400 13px/20px var(--mono);color:var(--text)}
.home-view .ipanel > .act > time.w{grid-column:3;flex:none;white-space:nowrap;font:400 13px/20px var(--sans);color:var(--text-3);font-variant-numeric:tabular-nums}
.home-view .ipanel > .act.none,.home-view .ipanel:not(:has(> .acts > .slots)) > .act.none{display:grid}
.home-view .ipanel > .act.none > .x,.home-view .ipanel > .act.none > .a-ic{color:var(--text-3)}
@media (max-width:700px){.home-view .ipanel > .act.none,.home-view .ipanel:not(:has(> .acts > .slots)) > .act.none{display:none}}
.home-view .ipanel > .acts{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin:auto -20px 0;padding:12px 20px;border-top:1px solid var(--border-soft)}
.home-view .ipanel > .acts > .sp{display:none}
.home-view .ipanel > .acts > .slots{margin-right:auto}
.home-view .ipanel > .acts > button.lc,.home-view .ipanel > .acts > button.lc.quiet{border:1px solid transparent;background:transparent;color:var(--text-2);margin:0}
.home-view .ipanel > .acts > button.lc:hover:not(:disabled){background:var(--hover);color:var(--text)}
.home-view .ipanel > .acts > button > .ic{width:16px;height:16px}
.home-view .ipanel .ip-bots .chip.bot .apw{display:inline-flex;align-items:center;margin-left:2px;color:var(--warn-ink,var(--warn))}
@media (max-width:700px){
  .home-view > :is(.ihead,.ap-notice,.statstrip-c){margin-bottom:16px}
  .home-view .ipanel > .acts{margin:auto -16px 0;padding:10px 16px}
  .home-view .ipanel > .acts > button{flex:1 1 0;min-width:0}
  .home-view .ihead.page .hlinks .go .nl-full{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .home-view .ihead.page .hlinks .go .nl-short{display:inline}
  .home-view .ihead.page .hlinks .go{padding:0 14px 0 12px}
  .home-view .ihead.page > .sub{max-width:none}
}

/* ==== sign-in: one centred composition on one canvas — the pitch (headline, three features, the preview) and the
   sign-in card side by side, their tops aligned, the group centred under the brand row; the card holds the commit, a
   full-width "Connection details" row and its footer ("Self-hosted …") under a hairline. A phone stacks the card, then
   the pitch and the preview. ==== */
.center.au{background:var(--bg)}
.center.au > :is(.au-show,.au-side){background:var(--bg);border:0}
.center.au .au-tag{text-wrap:balance}
.center.au .au-fi{background:var(--surface-3);color:var(--text)}
.center.au .au-pv-k{display:block;margin:40px 0 8px}
.center.au .au-pv{border:1px solid var(--border);border-radius:14px;background:var(--surface-1);box-shadow:none}
.center.au .pv-bots i,.center.au .pv-bots i.n{background:var(--ok)}
.center.au .pv-bots .pv-sh{display:inline-flex;margin-left:2px;color:var(--warn-ink,var(--warn))}
.center.au .pv-req{grid-template-columns:20px minmax(0,1fr);align-items:start;padding:14px 20px 16px;box-shadow:inset 3px 0 0 var(--attn-edge)}
.center.au .pv-ic{width:20px;height:20px;margin-top:1px;border-radius:0;background:none}
.center.au .pv-s{display:flex;align-items:center;gap:8px;margin-top:4px;font:400 13px/20px var(--sans)}
.center.au .pv-s > .pv-need{height:22px;padding:0 8px;font:600 12px/22px var(--sans)}
.center.au .au-form{box-sizing:border-box;width:100%;max-width:400px;margin:0;padding:32px 32px 0;border:1px solid var(--border);border-radius:16px;background:var(--surface-1);box-shadow:var(--shadow-overlay)}
.center.au .au-form > h1{font:700 26px/32px var(--sans);letter-spacing:-.015em}
.center.au button.au-go{width:100%;height:44px;min-height:44px;margin-top:24px}
.center.au details.au-more{margin:16px 0 0;padding:0;border:0}
.center.au details.au-more > summary{display:flex;align-items:center;gap:10px;height:40px;margin:0 -12px;padding:0 12px;border-radius:10px;font:500 14px/20px var(--sans);color:var(--text)}
.center.au details.au-more > summary > .ic:last-child{margin-left:auto}
.center.au .au-form > .au-foot{position:static;display:flex;align-items:center;justify-content:flex-start;gap:8px;height:auto;margin:20px -32px 0;padding:14px 32px;border-top:1px solid var(--border-soft);background:none;font:400 13px/18px var(--sans);color:var(--text-2)}
@media (min-width:900px){
  .center.au{position:relative;display:grid;grid-template-columns:minmax(0,560px) 400px;grid-template-rows:auto;column-gap:96px;justify-content:center;align-content:center;align-items:start;box-sizing:border-box;min-height:100vh;padding:104px 64px 64px}
  .center.au > .au-show{display:contents;padding:0}
  .center.au .au-lock{position:absolute;top:40px;left:64px}
  .center.au .au-pitch{grid-column:1;grid-row:1;width:auto;max-width:560px;margin:0;padding:0;border:0;background:none}
  .center.au .au-tag{font:700 44px/1.1 var(--sans);letter-spacing:-.025em}
  .center.au > .au-side{grid-column:2;grid-row:1;display:block;padding:0}
}
@media (min-width:900px) and (max-width:1099px){.center.au{grid-template-columns:minmax(0,1fr) 360px;column-gap:48px}}
@media (max-width:899px){
  .center.au,.center.au > .au-show,.center.au > .au-side{background:var(--bg)}
  .center.au .au-pitch{margin:0;padding:32px 24px 24px;border:0;background:var(--bg)}
  .center.au .au-tag{font:650 21px/28px var(--sans);letter-spacing:-.012em;color:var(--text)}
  .center.au .au-feats{gap:8px}
  .center.au .au-pv-k{margin:24px 0 8px}
  .center.au .au-lock{padding:20px 16px 0}
  .center.au .au-form{order:2;max-width:none;width:auto;margin:16px 16px 0;padding:24px 20px 0;box-shadow:var(--shadow-card)}
  .center.au .au-form > .au-foot{order:0;margin:16px -20px 0;padding:12px 20px;background:none}
  .center.au .au-pitch{padding:32px 16px 24px}
  .center.au .pv-req{grid-template-columns:20px minmax(0,1fr);gap:0 10px;padding:12px 16px 14px}
  .center.au .pv-ic{display:inline-grid;grid-row:1 / span 2;grid-column:1}
  .center.au .pv-t{display:flex;grid-column:2}
  .center.au .pv-l{white-space:normal}
  .center.au .pv-s{grid-row:auto;grid-column:auto}
  .center.au .pv-s > .pv-need{grid-row:auto;grid-column:auto}
}
.center.au .au-pv-k + .au-pv{margin-top:0}

/* ==== drawers' body rhythm: 16 px between fields, notes and switch rows ==== */
.drawer .db > form > .dscroll,.drawer .db > .dscroll{display:flex;flex-direction:column;gap:16px;padding:20px 24px}
.drawer .db .dscroll > *{margin-top:0;margin-bottom:0}
.drawer .dscroll .fld > .fhelp{margin:6px 0 0}
@media (max-width:700px){.drawer .db > form > .dscroll,.drawer .db > .dscroll{padding:16px}}
/* the chat's start marker on a phone: the bot only */
@media (max-width:700px){.chat .appr-dock{padding-left:0}}

/* ==== polish: balanced headings, pretty helper text, tabular numbers, themed scrollbars, the selection tint ==== */
:is(h1,h2,h3,.ihead.page .ttl h2,.sec-h h2,.dx-t,.ex-h){text-wrap:balance}
:is(.fhelp,.ihead.page .sub,.d-s,.vd,.sw-h,.dz-l,.es-t > span,.hw-t > span,.cf-note,p.why){text-wrap:pretty}
:is(.sv,.mt-p,.rd,.hx-t,.fcap,.ftree .frow > :is(.mt,.sz),.count,.tm,.act-dur,time){font-variant-numeric:tabular-nums}
:is(.gk-panel .pb,.rpane .pb,.drawer .dscroll,.gk-sheet .pop-scroll,.menu .items,.gk-side,.side,.chat > .transcript,.gk-chat > .gk-scroll){scrollbar-width:thin;scrollbar-color:var(--border-strong) transparent}
::selection{background:var(--accent-soft);color:var(--text)}

/* ==== r26: a section is one card — its header row inside it (title 15/600, a plain count, actions at the right), the
   content under it on the same surface; one card level, no box inside a box ==== */
.sec.in{display:flex;flex-direction:column;gap:0;box-sizing:border-box;min-width:0;margin:0;padding:0;border:1px solid var(--border);border-radius:12px;background:var(--surface-1);box-shadow:var(--shadow-card)}
.sec.in > .sec-h{display:flex;align-items:center;justify-content:space-between;gap:8px 16px;box-sizing:border-box;min-height:0;margin:0;padding:16px 20px 0;border:0;background:none}
.sec.in > .sec-h > .sec-tt{min-width:0}
.sec.in > .sec-h h2{margin:0;font:600 15px/22px var(--sans);letter-spacing:0;color:var(--text)}
.sec.in > .sec-h p{margin:2px 0 0;font:400 13px/18px var(--sans);color:var(--text-2)}
.sec.in > .sec-h > .sec-a{display:flex;align-items:center;gap:8px;height:auto;margin:-6px -8px -6px 0}
.sec.in > .sec-b{display:flex;flex-direction:column;gap:0;min-width:0;margin:0;padding:0}
.sec.in > .sec-b > :is(.card,section.card,div.card),.sec.in > .sec-b > :is(form,.imreg-row) > .card{margin:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.sec.in > .sec-b > .card:not(.toolscard):not(.inventory):not(.convo-card),.sec.in > .sec-b > :is(form,.imreg-row) > .card{padding:16px 20px 20px}
.sec.in > .sec-b > .card.toolscard{padding:4px 20px 4px}
.sec.in > .sec-b > .card.inventory{padding:8px 0 4px}
@media (max-width:700px){
  .sec.in > .sec-h{padding:14px 16px 0}
  .sec.in > .sec-b > .card:not(.toolscard):not(.inventory):not(.convo-card),.sec.in > .sec-b > :is(form,.imreg-row) > .card{padding:14px 16px 16px}
  .sec.in > .sec-b > .card.toolscard{padding:2px 16px 2px}
}
/* a plain section (explainers, the danger zone): no floating heading above a single card */
.sec.dz-sec > .sec-h{display:none}

/* ==== r26: empty states are sentences — a bare 16 px icon, the title, the next step in the secondary text ==== */
.empty-state > .es-ic{width:16px;height:20px;border-radius:0;background:none;color:var(--text-3)}
.empty-state > .es-t{flex-direction:row;flex-wrap:wrap;align-items:baseline;column-gap:8px;row-gap:0}
.empty-state > .es-t > b{font:500 14px/20px var(--sans);color:var(--text)}
.empty-state > .es-t > span{font:400 14px/20px var(--sans);color:var(--text-2)}
.empty-state,.empty-state.flat{min-height:44px;gap:10px}
.sec.in > .sec-b > .card.inventory.is-empty{padding:4px 20px 8px}
@media (max-width:700px){.sec.in > .sec-b > .card.inventory.is-empty{padding:2px 16px 6px}}
/* values that link (the bot's instance): the text colour, underlined on hover only */
dl.props .link.elink{color:var(--text);text-decoration:none}
dl.props .link.elink:hover,dl.props .link.elink:focus-visible{text-decoration:underline;text-decoration-color:var(--link-line)}
/* key/value groups: a 12 px gap between groups, no subheads */
dl.props.pg-a + dl.props.pg-b{margin-top:12px}
/* the retained conversation: one borderless disclosure row on the page, a hairline above it */
.convo-line{margin:0;padding:0;border-top:1px solid var(--border)}
.convo-line > .convo-row > .convo-t{display:flex;align-items:center;gap:12px;box-sizing:border-box;width:100%;min-height:56px;margin:0;padding:10px 4px;border:0;border-radius:0;background:none;text-align:left;cursor:pointer;color:var(--text)}
.convo-line > .convo-row > .convo-t:hover{background:var(--hover)}
.convo-line > .convo-row > .convo-t > .d-t{flex:1 1 auto;display:flex;flex-wrap:wrap;align-items:baseline;column-gap:8px;min-width:0}
.convo-line > .convo-row > .convo-t > .d-t > b{font:500 14px/20px var(--sans);color:var(--text)}
.convo-line > .convo-row > .convo-t > .d-t > .d-s{font:400 13px/18px var(--sans);color:var(--text-2)}
.convo-line > .convo-row > .convo-t > .d-ch{flex:none;width:16px;height:16px;color:var(--text-2);transition:transform 120ms ease}
.convo-line > .convo-row > .convo-t[aria-expanded=true] > .d-ch{transform:rotate(180deg)}
.convo-line > .convo-row > .convo{margin:0 0 8px;border:1px solid var(--border);border-radius:12px;background:var(--surface-1);overflow:hidden}

/* ==== r26: the page head — H1 24/32 650 (22/28 on a phone), one secondary line under it ==== */
.ihead.page .ttl h2,.ihead.page h2,.adminview .pg-head h2{font:650 24px/32px var(--sans);letter-spacing:-.01em;color:var(--text)}
.ihead.page .sub,.ihead.page .ttl > .sub{margin-top:4px;font:400 14px/20px var(--sans);color:var(--text-2)}
@media (max-width:700px){.ihead.page .ttl h2,.ihead.page h2,.adminview .pg-head h2{font-size:22px;line-height:28px}}
/* an action card's fields: a label and its switch side by side on a wide card, the switch centred on the field's line */
@media (min-width:701px){
  .bot-admin-view .o-act .fgrid.lp{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px 24px;align-items:end}
  .bot-admin-view .o-act .fgrid.lp > .swf{grid-column:auto;align-self:end;min-height:var(--bh);justify-content:center}
  .bot-admin-view .o-act .fgrid.lp > .swf > .switch-row{align-items:center}
  .bot-admin-view .o-act .fgrid.lp > .swf > .switch-row > .switch{align-self:center}
}

/* ==== r26: node administration's live state is the page's subtitle ("● Admissions open · aarch64 · Firecracker …") ==== */
.ihead.page .sub > .mline.nsub{display:flex;font:400 14px/20px var(--sans);color:var(--text-2)}
.ihead.page .sub > .mline.nsub > .stv{display:inline-flex;align-items:center;gap:6px;padding:0;border:0;background:none;font:inherit;color:var(--text-2)}
.ihead.page .sub > .mline.nsub > .stv > .dot{flex:none;width:8px;height:8px;border-radius:50%}
.ihead.page .sub > .mline.nsub > .stv > .dot.ok{background:var(--ok)}
.ihead.page .sub > .mline.nsub > .stv > .dot.warn{background:var(--warn)}

@media (max-width:1099px){.node-view > .ws > .ws-rail{order:4}}

/* ==== r26: the last change on one line, its time inline in the tertiary text ==== */
dl.props > .pr > dd > .pv:has(> .chg-t){display:block;white-space:normal}
dl.props > .pr > dd > .pv > .chg-t{display:inline;white-space:normal;overflow:visible}
dl.props > .pr > dd > .pv > .chg-m{display:inline;margin:0 0 0 6px;color:var(--text-3)}

/* ==== r26: checkpoints — no row tile; the name over its mono id; columns sized to their content ==== */
.checkpoint-view .ckpt > .ckr > .ck-ic,.checkpoint-view .card.inventory > .ck-th > span:first-child{display:none}
@media (min-width:701px){
  .checkpoint-view .card.inventory > .ck-th,.checkpoint-view .ckpt > .ckr{grid-template-columns:minmax(0,1fr) 72px 112px 152px 96px 40px;column-gap:16px}
  .checkpoint-view .card.inventory > .ck-th{min-height:36px;padding:0 12px 0 20px;border-bottom:1px solid var(--border-soft)}
  .checkpoint-view .ckpt > .ckr{min-height:56px;padding:8px 12px 8px 20px}
  .checkpoint-view .ckpt > .ckr > .ck-l > h3.sec{grid-column:1}
  .checkpoint-view .ckpt > .ckr > .ck-l > .ck-cid{grid-column:1;color:var(--text-3);font:400 13px/18px var(--mono)}
  .checkpoint-view .ckpt > .ckr > .ck-l > .ck-meta > .chip{grid-column:2;font-weight:400;color:var(--text)}
  .checkpoint-view .ckpt > .ckr > .ck-l > .ck-meta > .ck-t{grid-column:3}
  .checkpoint-view .ckpt > .ckr > .ck-l > .ret{grid-column:4}
  .checkpoint-view .ckpt > .ckr > .ck-s{grid-column:5}
  .checkpoint-view .ckpt > .ckr > .ck-m{grid-column:6}
  .checkpoint-view .ckpt > :is(.manifest,.ckbot){margin-left:20px}
}
.checkpoint-view .ckpt > .ckr > .ck-l > .ret.keep{height:auto;padding:0;border-radius:0;background:none;color:var(--text-2);font:400 14px/20px var(--sans)}
.checkpoint-view .ckpt > .ckr > .ck-s > button.manifest-t{padding:0 6px;border:0;background:none;font:400 14px/20px var(--sans);color:var(--text-2)}
.checkpoint-view .ckpt > .ckr > .ck-s > button.manifest-t:hover{color:var(--text);background:var(--hover)}
@media (max-width:700px){
  .checkpoint-view .ckpt > .ckr{grid-template-columns:auto auto minmax(0,1fr) auto;padding:12px 8px 10px 16px;row-gap:0}
  .checkpoint-view .ckpt > .ckr > .ck-l > h3.sec{grid-column:1 / 4;grid-row:1;justify-self:start;text-align:left;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .checkpoint-view .ckpt > .ckr > .ck-l > .ck-cid{display:block;grid-column:1 / -1;grid-row:2;margin:0;padding:0;border:0;background:none;font:400 13px/18px var(--mono);color:var(--text-3);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .checkpoint-view .ckpt > .ckr > .ck-l > .ck-meta{grid-column:1;grid-row:3;margin-top:4px}
  .checkpoint-view .ckpt > .ckr > .ck-l > .ck-meta > .ck-t > .ck-tl{display:none}
  .checkpoint-view .ckpt > .ckr > .ck-l > .ret{grid-column:2;grid-row:3;margin:4px 0 0}
  .checkpoint-view .ckpt > .ckr > .ck-l > .ret{display:inline-flex;align-items:center}
  .checkpoint-view .ckpt > .ckr > .ck-l > .ret::before{content:"·";display:inline-block;position:static;margin:0 7px;color:var(--text-3)}
  .checkpoint-view .ckpt > .ckr > .ck-l > .ret > .ic{display:none}
  .checkpoint-view .ckpt > .ckr > .ck-s{grid-column:3 / -1;grid-row:3;margin-top:4px}
  .checkpoint-view .ckpt > .ckr > .ck-m{grid-column:4;grid-row:1}
  .checkpoint-view .ckpt > .ckr > .ck-m .menu > button.ib.more{border-color:transparent}
  .checkpoint-view .ckpt > .ckbot{margin-left:16px}
}
/* the form: Kind and Label side by side, the keep switch its own row under them */
@media (min-width:701px){
  .checkpoint-view .card.ckform .fgrid.ck3{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 24px}
  .checkpoint-view .card.ckform .fgrid.ck3 > .swf{grid-column:1 / -1}
}
/* explainers ("How checkpoints work", "How registration works"): plain text in the rail on the page, no card, no tiles;
   the rail hugs its content */
.sec:is(.ck-how,.im-how) > .sec-h{min-height:0;margin:0 0 12px;padding:0}
.sec:is(.ck-how,.im-how) > .sec-h h2{font:600 13px/18px var(--sans);letter-spacing:0;color:var(--text-2)}
:is(.card.explainer,.howrow.card,.pg-rail .howrow.card){margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none}
.hows{gap:14px}
.hows > li{gap:10px}
.hows > li > .hw-ic{width:16px;height:20px;border-radius:0;background:none;color:var(--text-3);font:400 13px/20px var(--sans)}
.hows > li > .hw-ic > .ic{width:16px;height:16px}
.hows > li > .hw-t > b{font:600 13px/20px var(--sans);color:var(--text)}
.hows > li > .hw-t > span{font:400 13px/18px var(--sans);color:var(--text-2)}
:is(.explainer,.howrow) > .ex-foot,:is(.explainer,.howrow) > .hows + .ex-foot{margin:16px 0 0;padding:0;border:0;font:400 13px/18px var(--sans);color:var(--text-2)}
:is(.explainer,.howrow) > button.ex-foot{color:var(--text-2);font-weight:400}
:is(.explainer,.howrow) > button.ex-foot:hover{color:var(--text)}
@media (min-width:1100px){
  .checkpoint-view .pg2.ckpg{align-items:start}
  .checkpoint-view .pg2.ckpg > .pg-rail,.checkpoint-view .pg2.ckpg > .pg-rail > .sec.ck-how,.checkpoint-view .pg2.ckpg > .pg-rail > .sec.ck-how > .sec-b,.checkpoint-view .pg2.ckpg > .pg-rail > .sec.ck-how > .sec-b > .howrow.card{display:block;flex:none;align-self:start}
  .pg-rail > .sec.ck-how,.images-view .ws-rail > .sec.im-how{padding:18px 0 0 4px}
}
/* a phone's explainer: one text disclosure row at the end of the page, a hairline above, no card */
:is(.howrow.ck-howend,.card.imguide-m.howend){margin:0;padding:0;border:0;border-top:1px solid var(--border);border-radius:0;background:none;box-shadow:none}
:is(.howrow.ck-howend,.card.imguide-m.howend) > details.disc > summary{padding:10px 4px}
:is(.howrow.ck-howend,.card.imguide-m.howend) > details.disc > summary > .d-ic{display:none}
:is(.howrow.ck-howend,.card.imguide-m.howend) > details.disc > .d-b{padding:4px 4px 16px}

/* ==== r26: a state is a dot and a word (13/500, the secondary text), never a filled pill ==== */
.istate,.istate.ok,.istate.info,.istate.bad,.istate.amber,.istate:has(> :is(.st-SUSPENDED,.st-FROZEN,.st-STOPPED,.st-ARCHIVED,.st-DELETED,.st-DELETING)){display:inline-flex;align-items:center;gap:6px;height:auto;min-height:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;font:500 13px/18px var(--sans);color:var(--text-2);white-space:nowrap}
.istate > .dot{flex:none;width:8px;height:8px;margin:0;border-radius:50%;box-shadow:none;background:var(--text-3)}
.istate.ok > .dot{background:var(--ok)}
.istate.info > .dot{background:var(--info)}
.istate.bad > .dot{background:var(--bad)}
.istate.amber > .dot{background:var(--warn)}
.istate:has(> :is(.st-STOPPED,.st-ARCHIVED,.st-DELETED,.st-DELETING)) > .dot{background:transparent;box-shadow:inset 0 0 0 1.5px var(--text-3)}
.istate > span:not(.dot){font:inherit;color:inherit}

/* ==== r26: home instance cards — no footer band: name and state, the actions at the right of the name row (a ghost
   lifecycle verb, an icon Open), the facts, the memory row, the bots, then the newest activity when there is some ==== */
.home-view .igrid{gap:16px}
.home-view .igrid > .card.ipanel{display:flex;flex-direction:column;gap:12px;box-sizing:border-box;min-width:0;margin:0;padding:16px 20px 20px;border:1px solid var(--border);border-radius:12px;background:var(--surface-1);box-shadow:var(--shadow-card);cursor:pointer;transition:border-color 120ms ease}
.home-view .igrid > .card.ipanel:hover{border-color:var(--border-strong)}
.home-view .ipanel > .ip-h{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;min-height:32px;margin:0;padding:0}
.home-view .ipanel > .ip-h > .ip-nw{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:10px;min-width:0;flex:1 1 auto;text-align:left}
.home-view .ipanel > .ip-h > .ip-nw > .ip-n{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:600 15px/22px var(--sans);color:var(--text)}
.home-view .ipanel > .ip-h > .ip-acts{flex:none;display:flex;align-items:center;gap:2px;margin:0 -8px 0 0}
.home-view .ipanel > .ip-h > .ip-acts > button.ghost.lc{display:inline-flex;align-items:center;gap:6px;height:32px;min-height:32px;padding:0 10px;border:0;border-radius:8px;background:transparent;font:500 13px/18px var(--sans);color:var(--text-2)}
.home-view .ipanel > .ip-h > .ip-acts > button.ghost.lc:hover:not(:disabled){background:var(--hover);color:var(--text)}
.home-view .ipanel > .ip-h > .ip-acts > button.ghost.lc > .ic{width:14px;height:14px}
.home-view .ipanel > .ip-h > .ip-acts > button.ib.open{display:inline-grid;place-items:center;width:32px;height:32px;min-width:32px;min-height:32px;border:0;border-radius:8px;color:var(--text-2)}
.home-view .ipanel > .ip-h > .ip-acts > button.ib.open > .ic{width:18px;height:18px}
.home-view .ipanel > .specs.mline{display:flex;margin:-8px 0 0;font:400 13px/18px var(--sans);color:var(--text-2)}
.home-view .ipanel > .usage.mrow,.home-view .ipanel > .usage.mrow.rel{margin:4px 0 0;padding:0;row-gap:8px}
.home-view .ipanel > .usage.mrow.rel > .uv{justify-self:end;color:var(--text-2)}
.home-view .ipanel > .ip-bots{display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-height:28px;margin:0;padding:0}
.home-view .ipanel .ip-bots > .chip.bot{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 10px;border:0;border-radius:999px;background:var(--surface-2);font:500 13px/18px var(--sans);color:var(--text)}
.home-view .ipanel .ip-bots > .chip.bot > .dot{width:7px;height:7px}
.home-view .ipanel .ip-bots > .chip.bot > .dot.warn{background:var(--warn)}
.home-view .ipanel .ip-bots > .x{font:400 13px/18px var(--sans);color:var(--text-2)}
.home-view .ipanel > .act{margin:0}
.home-view .ipanel > .act > .x > .xd code.apath{color:var(--text-2)}
@media (max-width:700px){
  .home-view .igrid{gap:12px}
  .home-view .igrid > .card.ipanel{gap:10px;padding:14px 16px 16px}
  .home-view .ipanel > .ip-h > .ip-acts > button.ghost.lc,.home-view .ipanel > .ip-h > .ip-acts > button.ib.open{height:36px;min-height:36px}
  .home-view .ipanel > .ip-h > .ip-acts > button.ib.open{width:36px;min-width:36px}
  .home-view .ipanel > .act > .x{white-space:nowrap;display:block;-webkit-line-clamp:none}
  .home-view .igrid > .card.ipanel{gap:8px;padding:12px 14px 14px}
  .home-view .ipanel > .specs.mline{margin-top:-6px}
  .home-view .ipanel > .ip-h > .ip-acts > button.ghost.lc{width:36px;min-width:36px;padding:0;justify-content:center}
  .home-view .ipanel > .ip-h > .ip-acts > button.ghost.lc > .lt{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .home-view .ipanel > .ip-h > .ip-acts > button.ghost.lc > .ic{width:16px;height:16px}
  .home-view .ipanel > .usage.mrow:not(.rel){grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"k m v";align-items:center;column-gap:12px}
  .home-view .ipanel > .usage.mrow:not(.rel) > .meter{align-self:center}
  .home-view .ipanel > .usage.mrow{margin:2px 0 0}
  .home-view .ipanel > .usage.mrow.rel{grid-template-areas:"k v";row-gap:0}
  .home-view .ap-notice .ap-n-m > .ap-wi{display:none}
}

/* ==== r26: overview — the control plane's name quiet inside the heading; node cards are one link (hover fill), no tile:
   name, ● Reachable and the role on one line, then admissions and pools, then the address in mono; the chevron centred on
   the whole card; an idle node is one line ==== */
.cluster.ov .ihead.page .ttl .tl{display:flex;align-items:baseline;gap:10px}
.cluster.ov .ihead.page .ttl .tl > .cp-n{height:auto;margin:0;padding:0;border:0;background:none;font:400 15px/32px var(--sans);letter-spacing:0;color:var(--text-3)}
.cluster.ov .cluster-node{position:relative}
.cluster.ov .cluster-node.linked{transition:background-color 120ms ease,border-color 120ms ease}
.cluster.ov .cluster-node.linked:hover{background:var(--hover);border-color:var(--border-strong)}
.cluster.ov .cluster-node.linked > .ov-nh{position:static}
.cluster.ov .cluster-node.linked > .ov-nh:hover{background:transparent}
.cluster.ov .cluster-node.linked > .ov-nh > a.ov-go::after{border-radius:12px}
.cluster.ov .cluster-node > .ov-nh{padding:16px 56px 12px 20px}
.cluster.ov .cluster-node.linked > .ov-nh > a.ov-go{position:absolute;top:50%;right:16px;height:32px;width:32px;margin:-16px 0 0;justify-content:center;color:var(--text-2)}
.cluster.ov .cluster-node.linked > .ov-nh > a.ov-go > .lt{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.cluster.ov .cluster-node .ov-nl{gap:10px}
.cluster.ov .cluster-node .ov-nl > .tag{display:inline-flex;align-items:center;gap:6px;height:auto;padding:0;border:0;border-radius:0;background:none;box-shadow:none;font:500 13px/18px var(--sans);color:var(--text-2)}
.cluster.ov .cluster-node .ov-nl > .tag::before{content:"";flex:none;width:8px;height:8px;border-radius:50%;background:var(--ok)}
.cluster.ov .cluster-node .ov-nl > .tag.bad::before{background:var(--bad)}
.cluster.ov .cluster-node .ov-nl > .tag.warn::before{background:var(--warn)}
.cluster.ov .cluster-node .ov-nl > .tag > .dot{display:none}
.cluster.ov .cluster-node .ov-nl > .ov-role{font:400 13px/18px var(--sans);color:var(--text-2)}
.cluster.ov .cluster-node .ov-nl > .ov-role::before{content:"·";margin:0 10px 0 0;color:var(--text-3)}
.cluster.ov .cluster-node .ov-meta.ov-tech{font:400 12.5px/18px var(--mono);color:var(--text-3)}
.cluster.ov .cluster-node > .ov-ms{padding:12px 56px 18px 20px;border-top:0}
.cluster.ov .cluster-node > .ov-idle{margin:0;padding:0 56px 18px 20px;font:400 13px/18px var(--sans);color:var(--text-2)}
.cluster.ov .sec-h.ov-sh > .upd-w > button.ib.refresh{border:0}
.cluster.ov .sec-h.ov-sh h3 > .count{font-size:15px}
@media (max-width:700px){
  .cluster.ov .cluster-node .ov-meta.ov-tech{display:none}
  .cluster.ov .cluster-node > .ov-nh{padding:14px 48px 10px 16px}
  .cluster.ov .cluster-node.linked > .ov-nh > a.ov-go{right:8px}
  .cluster.ov .cluster-node > .ov-ms{padding:10px 48px 16px 16px;gap:12px 20px}
  .cluster.ov .cluster-node > .ov-idle{padding:0 48px 16px 16px}
  .cluster.ov .cluster-node > .ov-ms > .mt:nth-child(3) > .mt-f{display:none}
  .cluster.ov .ihead.page .ttl .tl > .cp-n{font-size:14px;line-height:28px}
}

/* ==== r26: the ⋯ menu — no header block; each group headed by the name it acts on (12/600, tertiary); navigation rows
   without chevrons; Classic view the instance group's last item; the deletes after a separator, unlabelled. A desktop
   popover 260 px wide, its right edge on the trigger's; a phone sheet with a slim top (grab, ✕), the instance's pages as
   one row of four icon-over-label buttons, the groups as 44 px rows, the account as one row of three ==== */
@media (min-width:701px){
  .gk-menu.gk-instm > .gk-sheet{left:auto;right:0;width:260px}
  .gk-menu.gk-instm .sh-h{display:none}
  .gk-menu.gk-instm .pop-scroll > .grp:first-child{padding-top:6px}
}
.gk-menu .sec.scope{padding:8px 10px 4px}
.gk-menu .sec.scope > .sec-k{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:600 12px/16px var(--sans);letter-spacing:0;text-transform:none;color:var(--text-3)}
.gk-menu .grp + .grp{margin-top:4px;padding-top:4px;border-top:1px solid var(--border-soft)}
.gk-menu .grp.g-del{margin-top:8px;padding-top:6px}
.gk-menu .grp > .gview{display:block;margin:0;padding:0;border:0}
.gk-menu .grp :is(button.it,[role=menuitem]) > .r:empty{display:none}
@media (max-width:700px){
  .gk-menu.gk-instm > .gk-sheet > .sh-h{min-height:40px;padding:0 8px 0 16px;border:0;justify-content:flex-end}
  .gk-menu.gk-instm > .gk-sheet > .sh-h > b{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .gk-menu.gk-instm > .gk-sheet > .grab{margin:8px auto 0}
  .gk-menu .g-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;padding:0 4px 4px}
  .gk-menu .g-tiles.g-acct{grid-template-columns:repeat(3,minmax(0,1fr))}
  .gk-menu .g-tiles > :is(button.it,[role=menuitem]).tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:64px;padding:8px 4px;border-radius:10px;background:transparent;font:500 13px/16px var(--sans);text-align:center}
  .gk-menu .g-tiles > :is(button.it,[role=menuitem]).tile:hover:not(:disabled){background:var(--hover)}
  .gk-menu .g-tiles > :is(button.it,[role=menuitem]).tile > .ic:first-child{box-sizing:content-box;width:20px;height:20px;padding:0;border:0;border-radius:0;background:none;color:var(--text-2)}
  .gk-menu .g-tiles > :is(button.it,[role=menuitem]).tile:hover:not(:disabled) > .ic:first-child{background:none;color:var(--text)}
  .gk-menu .g-tiles > :is(button.it,[role=menuitem]).tile > .l,.gk-menu .g-tiles > :is(button.it,[role=menuitem]).tile > .l > .lt{display:block;flex:none;text-align:center;white-space:nowrap}
  .gk-menu .grp :is(button.it,a.it,[role=menuitem]) > .ic:first-child{color:var(--text-2)}
  .gk-menu .grp.g-del :is(button.it,[role=menuitem]).danger > .ic:first-child{color:var(--bad-ink,var(--bad))}
  .gk-menu .pop-scroll > .grp:last-child{padding-bottom:calc(24px + env(safe-area-inset-bottom))}
}

/* ==== r26: the chat shell — the start line's runtime and model only on an empty thread; the thread bottom-anchored (the
   empty space above its start); the Groups section at the rail's foot ==== */
:is(.gk-chat .gk-transcript:has(.gk-msg),.chat > .transcript:has(.msg)) .cstart.intro > .cs-m{display:none}
:is(.gk-chat .gk-transcript:has(.gk-msg),.chat > .transcript:has(.msg)) .cstart.intro{grid-template-areas:"a t";align-items:center}
.gk-side:has(> .gk-groups){display:flex;flex-direction:column}
.gk-side > .gk-groups{margin-top:auto}
.iview .chat > .ch .ch-acts > button.ib,.iview .chat > .botbar button.ib.stream-ic{border-color:transparent}

/* counts in the rails: plain tertiary text after the heading, no pill */
.gk-side-h .badge.cpill,.side > .h > .count{display:inline;height:auto;min-width:0;margin:0 0 0 8px;padding:0;border:0;border-radius:0;background:none;box-shadow:none;font:400 13px/18px var(--sans);color:var(--text-3);font-variant-numeric:tabular-nums}

/* ==== r26: activity — "All bots ⌄ · 5 events" at the left, Full history › at the right of the one filter row (no band
   under it, no footer); chips in the one code token (no edge) ==== */
.gk-panel .cbar,.rpane .cbar{border-bottom:0}
.cbar > .lnk.act-full{display:inline-flex;align-items:center;height:32px;margin:0 0 0 auto;padding:0 4px;border:0;background:none;font:500 13px/18px var(--sans);color:var(--text-2);cursor:pointer}
.cbar > .lnk.act-full::after{content:"›";margin-left:4px;font-size:15px}
.cbar > .lnk.act-full:hover{color:var(--text)}
.console > .act-ev:is(.k-tool,.k-ok) .act-d:not(.raw),.console > .act-ev .act-d code.apath{padding:1px 5px;border:0;border-radius:5px;background:var(--surface-2);box-shadow:none;font:400 12.5px/18px var(--mono);color:var(--text)}
.console > .act-ev .act-d code.apath{margin:0}
.console > .act-ev .act-d.raw{border:0;background:var(--surface-2)}

/* ==== r26: files — no "3 items" caption and no standing drop zone (the dashed overlay shows only while a file is dragged
   over the panel); a folder's size is blank; every row keeps the trailing chevron column; a phone shows the name over one
   meta line ("now · 52 B") ==== */
.ftree .fcap,.ftree .fhint.fzone{display:none}
.ftree .frow > .sz > .sz-d{visibility:hidden}
.ftree .frow > .fm{display:none}
.gk-panel .ftree .frow:not(.d) > .cv{opacity:0}
.gk-panel .ftree .frow > .cv{width:20px}
@media (max-width:700px){
  .ftree :is(.fhead,.frow){grid-template-columns:16px minmax(0,1fr) 20px;grid-template-areas:"ic nm cv" "ic fm cv";row-gap:0}
  .ftree .fhead{display:none}
  .ftree .frow{min-height:52px;padding-top:6px;padding-bottom:6px}
  .ftree .frow > .ic{grid-area:ic;align-self:start;margin-top:2px}
  .ftree .frow > .nm{grid-area:nm}
  .ftree .frow > :is(.mt,.sz){display:none}
  .ftree .frow > .cv{grid-area:cv}
  .ftree .frow > .fm{grid-area:fm;display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:400 13px/18px var(--sans);color:var(--text-3);text-align:left}
}

/* ==== r26: the Details tab — one card per entity, its header row inside (no strip, no tile on the instance), the one
   way to configure it a ghost text button ("Settings", "Admin"); the memory meter under its row across both columns;
   Tasks a sentence-case subhead ==== */
.gk-details .dx-card > .dx-h{padding:16px 16px 4px;border-bottom:0}
.gk-details .dx-card.dx-inst > .dx-h > .dx-ic{display:none}
.gk-details .dx-card > .dx-h > .dx-ic{width:32px;height:32px;background:none}
.gk-details .dx-card > .dx-h .dx-t{font:600 15px/22px var(--sans)}
.gk-details .dx-card > .dx-h > button.dx-act{width:auto;min-width:0;height:32px;min-height:32px;padding:0 10px;border:0;border-radius:8px;background:transparent;font:500 13px/18px var(--sans);color:var(--text-2)}
.gk-details .dx-card > .dx-h > button.dx-act:hover{background:var(--hover);color:var(--text)}
.gk-details .dx-card > .dx-h > button.dx-act > .lt{position:static;width:auto;height:auto;overflow:visible;clip-path:none;white-space:nowrap}
.gk-details .dx-card > dl.props{padding:4px 16px}
.gk-details .dx-card > .dx-h + dl.props,.gk-details .dx-card > .dx-h + dl.props > .pr:first-child{border-top:0;margin-top:0}
.gk-details .dx-card > dl.props + dl.props{margin-top:4px;padding-top:8px;border-top:1px solid var(--border-soft)}
.gk-details .dx-card > dl.props:last-of-type{padding-bottom:12px}
.gk-details dl.props > .pr.has-x{grid-template-areas:"k v" "x x";row-gap:6px}
.gk-details dl.props > .pr.has-x > .meter{grid-area:x;grid-column:1 / -1;width:100%;margin:0 0 4px}
.gk-details .gk-tasks.bare > .props-h{font:600 13px/18px var(--sans);text-transform:none;letter-spacing:0;color:var(--text-2)}
.gk-details .gk-tasks.bare > .empty-state > .es-t > b{font:400 13px/18px var(--sans);color:var(--text-3)}
.gk-details{padding-bottom:calc(24px + env(safe-area-inset-bottom))}

/* ==== r26: sign-in — one centred 340 px column on the page (no card, no pitch): the mark top left, the heading, one line,
   Sign in, a quiet "Connection details" text button that opens in place; the footer line at the bottom centre ==== */
.center.au.au1{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;min-height:100vh;min-height:100dvh;margin:0;padding:96px 24px 18vh;background:var(--bg);grid-template-columns:none}
.center.au.au1 > .au-lock{position:absolute;top:24px;left:24px;display:flex;align-items:center;gap:10px;margin:0;padding:0;font:600 15px/20px var(--sans);color:var(--text)}
.center.au.au1 > .au-lock > .mark-s{zoom:1.2;margin:0}
.center.au.au1 > .au-lock > b{font:inherit}
.center.au.au1 > .au-form{display:flex;flex-direction:column;align-items:stretch;box-sizing:border-box;width:340px;max-width:100%;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;text-align:center}
.center.au.au1 > .au-form > h1{margin:0;font:650 28px/36px var(--sans);letter-spacing:-.015em;color:var(--text);text-align:center}
.center.au.au1 > .au-form > .au-lede{margin:8px 0 0;font:400 14px/20px var(--sans);color:var(--text-2);text-align:center}
.center.au.au1 > .au-form > button.au-go{width:100%;height:44px;min-height:44px;margin:28px 0 0}
.center.au.au1 > .au-form > details.au-more{margin:20px 0 0;padding:0;border:0;text-align:center}
.center.au.au1 > .au-form > details.au-more > summary{display:inline-flex;align-items:center;justify-content:center;gap:4px;height:32px;margin:0;padding:0 8px;border:0;border-radius:8px;background:none;list-style:none;cursor:pointer;font:400 14px/20px var(--sans);color:var(--text-2)}
.center.au.au1 > .au-form > details.au-more > summary::-webkit-details-marker{display:none}
.center.au.au1 > .au-form > details.au-more > summary:hover{color:var(--text);background:var(--hover)}
.center.au.au1 > .au-form > details.au-more > summary > .ic{width:16px;height:16px;transition:transform 120ms ease}
.center.au.au1 > .au-form > details.au-more[open] > summary > .ic{transform:rotate(180deg)}
.center.au.au1 > .au-form > details.au-more > .au-pop{position:static;margin:12px 0 0;padding:0;border:0;background:none;box-shadow:none;text-align:left;font:400 13px/18px var(--sans);color:var(--text-2)}
.center.au.au1 > .au-form > details.au-more > .au-pop > p{margin:0 0 10px}
.center.au.au1 > .au-form > details.au-more > .au-pop dl{margin:0}
.center.au.au1 > .au-form > details.au-more > .au-pop dl > div{display:flex;justify-content:space-between;gap:12px;padding:6px 0;border-top:1px solid var(--border-soft)}
.center.au.au1 > .au-form > details.au-more > .au-pop dt{color:var(--text-2)}
.center.au.au1 > .au-form > details.au-more > .au-pop dd{margin:0;color:var(--text)}
.center.au.au1 > .au-foot{position:absolute;left:0;right:0;bottom:24px;display:block;margin:0;padding:0 24px;border:0;background:none;text-align:center;font:400 13px/18px var(--sans);color:var(--text-3)}
@media (max-width:700px){
  .center.au.au1{padding:88px 24px 22vh}
  .center.au.au1 > .au-form > h1{font-size:26px;line-height:32px}
}

/* ==== r26: the access drawer — sentence-case subheads, the role a plain word after the name ==== */
.access-view h3.sub.eyebrow,.access-view .share > h3.eyebrow{font:600 14px/20px var(--sans);letter-spacing:0;text-transform:none;color:var(--text)}
.access-view h3.sub.eyebrow > .count{font-size:14px}
.access-view .tag.prole{height:auto;padding:0;border:0;border-radius:0;background:none;box-shadow:none;font:400 13px/18px var(--sans);color:var(--text-2)}

.images-view .card.register.imreg .im-body,.images-view .imreg .fgrid.imfields{padding:0}
.images-view .imreg .fgrid.imfields{gap:16px 24px}
.sec.in > .sec-b > .card.is-empty{padding:4px 20px 12px}
@media (max-width:700px){.sec.in > .sec-b > .card.is-empty{padding:2px 16px 10px}}

/* ==== r26: history — the day a 28 px label row (no band); a run of rows in one minute shows its time once; columns
   sized to their content; By, Duration and Time quiet ==== */
.history-main .hx-day{min-height:28px;margin-top:4px;border:0;background:none;font:600 12px/16px var(--sans);color:var(--text-2)}
.history-main .hx-day > b{color:var(--text-2)}
.history-main .hx-day > .dd{color:var(--text-3)}
.history-main .hx-row > .hx-t.rep > time{visibility:hidden}
@media (min-width:701px){
  .history-main .hx-cols,.history-main .hx-row{grid-template-columns:20px minmax(0,30fr) minmax(0,30fr) minmax(0,14fr) minmax(64px,10fr) minmax(56px,8fr)}
}
.history-main .hx-row .hx-op > .kind{font-weight:500}
.history-main .hx-who,.history-main .hx-res > .rd,.history-main .hx-t,.history-view .hx-t *{color:var(--text-3)}
.history-view .hx-bar .segmented{display:inline-flex}
.history-view .hx-bar .segmented > button{flex:none;padding:0 14px}
.segmented > button .count{color:inherit;font-weight:400}
@media (max-width:700px){
  .history-main .hx-row{min-height:52px;padding-top:7px;padding-bottom:7px;row-gap:0}
  .history-main .hx-row > .hx-res{display:none}
  .history-main .hx-row .hx-op > .kind{font:500 14px/20px var(--sans)}
  .history-main .hx-row .hx-meta{font:400 13px/18px var(--sans);color:var(--text-2)}
}

/* ==== r26: one accent per screen — tabs underline in the text colour, selected rail rows a neutral fill, no amber edge ==== */
.gk .gk-tabs > .gk-tab.on::after,.ptabs > .ptab.on::after,.ptabs > .ptab.on.on::after{background:var(--text)}
.gk .gk-side .gk-row.on::before,.gk.side-rail .gk-row.on::before,.side .brow.on::before{content:none}
.gk-side .gk-row.on,.side .brow.on{background:var(--surface-2);box-shadow:none}
@media (max-width:1100px){.chat > .botbar .brow.on,.chat > .botbar .brow.on:hover{background:var(--surface-2);border-color:var(--border-strong);box-shadow:none}}
@media (max-width:700px){.ih-wait > button.tag.waiting .wl{display:none}}

/* ==== r26: the computer panel's head on one centre line: the bot pill, the stream state, full screen at the end ==== */
.scr > .scrwin > .scrbar{display:flex;align-items:center;gap:12px}
.scr > .scrwin > .scrbar > .scrstate{display:inline-flex;align-items:center;align-self:center;margin-left:auto}
.scr > .scrwin > .scrbar > .scrstate > .tag.scrctl{display:inline-flex;align-items:center;height:auto;min-height:0;padding:0;line-height:18px}
.scr > .scrwin > .scrbar > button.ib.full{align-self:center;border:0}

/* rails: "More details" is a title-only disclosure row; key/value rows 28 px */
@media (min-width:701px){
  .ws-rail details.disc.cfg-more > summary{min-height:40px;padding-top:6px;padding-bottom:6px}
  .ws-rail details.disc.cfg-more > summary > .d-t > .d-s{display:none}
  .ws-rail details.disc.cfg-more > summary > .d-t > b{font:500 14px/20px var(--sans);color:var(--text)}
}

/* the phone bot bar: one line, the bot's name (its instance is in Details and the page) */
@media (max-width:700px){
  .ihx.bot .ih-row > .ih-t > .ih-sub,.bot-admin-view .ihx.bot .ih-row > .ih-t > .ih-sub.ih-sub{display:none}
}

/* ==== app shell (shell.js): one frame for every signed-in page — a 256 px sidebar (232 under 1200 px, a 64 px rail
   when collapsed) and the content column; under 900 px the sidebar is an off-canvas drawer (hidden, so its controls
   leave the role tree) and a 52 px page bar heads pages without their own bar. The root is the page's <main>. ==== */
:root{--sb-bg:#161514;--sb-cur:var(--surface-2);--sb-line:var(--border-soft)}
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]){--sb-bg:#f6f3ee;--sb-cur:#e9e3d9;--sb-line:#e3dccf}}
:root[data-theme="light"]{--sb-bg:#f6f3ee;--sb-cur:#e9e3d9;--sb-line:#e3dccf}
:root:has(main.app){--header-h:0px}
main.app{--sb-w:256px;display:grid;grid-template-columns:var(--sb-w) minmax(0,1fr);grid-template-rows:auto;align-items:start;box-sizing:border-box;width:auto;max-width:none;height:auto;min-height:100vh;min-height:100dvh;margin:0;padding:0;overflow:visible;background:var(--bg);color:var(--text);font-family:var(--sans)}
main.app > *{flex:initial;margin:0}
/* the sidebar's column runs the page's full height behind the sticky sidebar (a long page scrolls past its foot) */
main.app::before{content:"";grid-column:1;grid-row:1;align-self:stretch;min-height:100%;background:var(--sb-bg);border-right:1px solid var(--border)}
@media (max-width:1199px){main.app{--sb-w:232px}}
@media (min-width:900px){main.app.side-rail{--sb-w:64px}}
main.app.gk{height:100vh;height:100dvh;min-height:0;overflow:hidden}
main.app > .app-main{grid-column:2;grid-row:1;display:flex;flex-direction:column;min-width:0;min-height:100vh;min-height:100dvh;outline:none}
main.app.gk > .app-main{height:100vh;height:100dvh;min-height:0;overflow:hidden}
main.app.gk > .app-main > .gk-main{flex:1 1 auto;min-height:0;min-width:0}
main.app > .app-main > .app-page{flex:1 0 auto;box-sizing:border-box;width:100%;max-width:1160px;margin:0 auto;padding:32px 40px 48px}
main.app > .app-main > .app-page.scoped{max-width:none;padding-top:0}
main.app > .app-main > .app-page.scoped > :is(.adminview,.iview,.terminal-page) > .ihead.ihx{margin-left:-40px;margin-right:-40px}
main.app > .app-main > .app-page:has(> .iview){padding:0 24px;min-height:0;height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden}
main.app > .app-main > .app-page:has(> .iview) > .iview > .ihead.ihx{margin-left:-24px;margin-right:-24px}
@media (max-width:899px){
  main.app{display:block}
  main.app::before{content:none}
  main.app > .app-main{min-height:100dvh}
  main.app > .app-main > .app-page{max-width:none;padding:24px 24px 40px}
  main.app > .app-main > .app-page.scoped > :is(.adminview,.iview,.terminal-page) > .ihead.ihx{margin-left:-24px;margin-right:-24px}
  :root:has(main.app > .app-main.has-pbar){--header-h:52px}
}
@media (max-width:700px){
  main.app > .app-main > .app-page{padding:16px 16px calc(32px + env(safe-area-inset-bottom))}
  main.app > .app-main > .app-page.scoped{padding-top:0}
  main.app > .app-main > .app-page.scoped > :is(.adminview,.iview,.terminal-page) > .ihead.ihx{margin-left:-16px;margin-right:-16px}
  main.app > .app-main > .app-page:has(> .iview){padding:0 16px}
  main.app > .app-main > .app-page:has(> .iview) > .iview > .ihead.ihx{margin-left:-16px;margin-right:-16px}
}

/* the skip link: first in the Tab order, shown only while focused */
main.app > a.skip{position:fixed;top:8px;left:8px;z-index:80;padding:8px 12px;border-radius:8px;background:var(--surface-overlay);color:var(--text);font:600 14px/20px var(--sans);text-decoration:none;box-shadow:var(--shadow-overlay);transform:translateY(-200%)}
main.app > a.skip:focus,main.app > a.skip:focus-visible{transform:none;outline:2px solid var(--focus);outline-offset:2px}

/* the sidebar */
main.app > nav.sb{grid-column:1;grid-row:1;position:sticky;top:0;z-index:30;display:flex;flex-direction:column;box-sizing:border-box;width:var(--sb-w);min-width:0;height:100vh;height:100dvh;min-height:0;margin:0;padding:0;overflow:hidden;border:0;border-right:1px solid var(--border);border-radius:0;background:var(--sb-bg);box-shadow:none;transform:none;visibility:visible;font:400 14px/20px var(--sans);color:var(--text);transition:none}
main.app > .sb-scrim{display:none}
.sb > .sb-top{flex:none;display:flex;align-items:center;justify-content:space-between;gap:8px;box-sizing:border-box;height:52px;min-height:52px;padding:0 10px 0 18px;border:0}
.sb .sb-brand{display:inline-flex;align-items:center;gap:10px;min-width:0;white-space:nowrap}
.sb .sb-brand > .mark-s{margin:0}
.sb .sb-brand > b{font:600 15px/20px var(--sans);letter-spacing:-.01em;color:var(--text)}
.sb .sb-brand > .sb-div{width:1px;height:14px;background:var(--border-strong)}
.sb .sb-brand > .sb-area{font:500 15px/20px var(--sans);color:var(--text-2)}
.sb .gk-side-tg{flex:none;display:inline-grid;place-items:center;width:32px;height:32px;min-width:32px;min-height:32px;margin:0;padding:0;border:0;border-radius:8px;background:transparent;box-shadow:none;color:var(--text-2)}
.sb .gk-side-tg:hover{background:var(--hover);color:var(--text)}
.sb > .sb-scroll{flex:1 1 auto;min-height:0;overflow-x:hidden;overflow-y:auto;padding:4px 0 12px;scrollbar-width:thin;scrollbar-color:var(--border-strong) transparent}
.sb .sb-prim{display:flex;flex-direction:column;gap:2px;padding:0 8px}
.sb .sb-sec{display:flex;flex-direction:column;gap:2px;padding:0 8px;margin-top:20px}
.sb .sb-label{display:flex;align-items:center;gap:8px;min-height:28px;padding:0 10px;font:600 12px/16px var(--sans);letter-spacing:0;text-transform:none;color:var(--text-3)}
.sb .sb-label + .sb-row,.sb .sb-label + .sb-ig{margin-top:2px}
.sb .sb-sec > .sb-label.sb-node{margin-top:14px;min-height:32px;color:var(--text)}
.sb .sb-label.sb-node > .sb-nn{font:600 14px/20px var(--sans);color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sb .sb-label.sb-node > .sb-fake{display:inline-flex;align-items:center;height:20px;padding:0 6px;border:1px solid var(--border);border-radius:6px;font:500 12px/18px var(--sans);color:var(--text-2)}
.sb .sb-label.sb-node > .sb-pick{position:relative;display:inline-flex;align-items:center;min-width:0;max-width:100%;margin:0 0 0 -6px;border-radius:8px;color:var(--text)}
.sb .sb-label.sb-node > .sb-pick:hover{background:var(--hover)}
.sb .sb-label.sb-node > .sb-pick > select{appearance:none;-webkit-appearance:none;box-sizing:border-box;width:auto;max-width:100%;height:28px;min-height:28px;margin:0;padding:0 24px 0 6px;border:0;border-radius:8px;background:transparent;box-shadow:none;font:600 14px/20px var(--sans);color:var(--text);cursor:pointer}
.sb .sb-label.sb-node > .sb-pick > select:focus-visible{outline:2px solid var(--focus);outline-offset:-2px;box-shadow:none}
.sb .sb-label.sb-node > .sb-pick > .ic{position:absolute;right:6px;top:7px;pointer-events:none;color:var(--text-2)}
.sb .sb-ig.open > .sb-inst.on,.sb .sb-ig.open > .sb-inst.on:hover{background:transparent}
.sb .sb-ig.open > .sb-inst.on:hover{background:var(--hover)}
.cluster.ov .ihead.page h2 > .cp-n{display:inline-block;margin:0 0 0 12px;padding:0;border:0;background:none;font:400 13px/20px var(--mono);letter-spacing:0;color:var(--text-2);vertical-align:3px}
/* rows: 36 px, a 18 px icon, the label 14/500; current is a fill, never amber */
.sb :is(.sb-row,.sb-inst){position:relative;display:flex;align-items:center;gap:12px;box-sizing:border-box;width:100%;height:36px;min-height:36px;margin:0;padding:0 10px;border:0;border-radius:8px;background:transparent;box-shadow:none;text-align:left;font:500 14px/20px var(--sans);letter-spacing:0;text-transform:none;color:var(--text);cursor:pointer;transition:background-color var(--dur-1) var(--ease)}
.sb :is(.sb-row,.sb-inst):hover:not(:disabled){background:var(--hover)}
.sb :is(.sb-row,.sb-inst).on,.sb :is(.sb-row,.sb-inst).on:hover{background:var(--sb-cur);font-weight:600}
.sb :is(.sb-row,.sb-inst):focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
.sb .sb-row:disabled{opacity:1;color:var(--text-2);cursor:not-allowed}
.sb .sb-row > .sb-ic{flex:none;display:inline-grid;place-items:center;width:20px;height:20px;color:var(--text-2)}
.sb .sb-row.on > .sb-ic{color:var(--text)}
.sb :is(.sb-row,.sb-inst) > .sb-l{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sb .sb-row > .sb-r{flex:none;max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:400 12px/16px var(--sans);color:var(--text-3)}
.sb .sb-inst > .dot{flex:none;width:8px;height:8px;margin:0 6px 0 6px}
.sb .sb-inst > .sb-u{flex:none;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--surface-3);font:600 12px/18px var(--sans);text-align:center;color:var(--text);font-variant-numeric:tabular-nums}
.sb .sb-ig.open > .sb-inst{font-weight:600}
/* the open instance's bots, groups and quick add, inset under its row */
.sb .sb-tree{display:flex;flex-direction:column;margin:2px 0 8px 10px;padding:0 0 0 8px;border-left:1px solid var(--sb-line)}
.sb .sb-tree > .gk-tree{display:flex;flex-direction:column;min-width:0}
.sb .gk-tree > .gk-search{margin:4px 0 6px}
.sb .gk-tree > .gk-list{flex:none;overflow:visible;padding:0;gap:2px;min-height:0}
main.app .sb .gk-tree > .gk-list > .gk-row{width:100%;margin:0;grid-template-columns:auto minmax(0,1fr) auto}
main.app .sb .gk-tree > .gk-list > .gk-row:not(:has(> .cnt > :not(.vh))) > .pv{grid-column:2 / -1}
.sb .gk-tree > .gk-side-f{padding:0}
.sb .gk-tree > .gk-groups{flex:none;max-height:none;margin:8px 0 0;border-top:0}
.sb .gk-tree .gk-side-h{height:auto;min-height:32px;margin:0;padding:0 2px 0 10px;border:0}
/* the foot: Admin, then the account and Live on one row */
.sb > .sb-foot{flex:none;display:flex;flex-direction:column;gap:2px;padding:8px;border-top:1px solid var(--border)}
.sb .sb-acct{display:flex;align-items:center;gap:4px;min-width:0}
.sb .sb-acct > .gk-acctm{flex:1 1 auto;min-width:0}
.sb .sb-acct > .gk-acctm > .gk-mbtn{display:flex;align-items:center;justify-content:flex-start;gap:10px;box-sizing:border-box;width:100%;height:48px;min-height:48px;margin:0;padding:0 8px;border:0;border-radius:8px;background:transparent;box-shadow:none;text-align:left;color:var(--text)}
.sb .sb-acct > .gk-acctm > .gk-mbtn:hover,.sb .sb-acct > .gk-acctm > .gk-mbtn.on{background:var(--hover)}
.sb .sb-acct > .gk-acctm > .gk-mbtn:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
.sb .sb-acct > .gk-acctm > .gk-mbtn > .mav{flex:none;width:28px;height:28px;min-width:28px;font-size:12px;line-height:28px}
.sb .sb-acct > .gk-acctm > .gk-mbtn > .mw{display:flex;flex-direction:column;min-width:0}
.sb .sb-acct > .gk-acctm > .gk-mbtn > .mw > b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:600 14px/18px var(--sans);color:var(--text)}
.sb .sb-acct > .gk-acctm > .gk-mbtn > .mw > span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:400 12px/16px var(--sans);color:var(--text-2)}
.sb .sb-acct > .gk-acctm > .gk-sheet{top:auto;bottom:calc(100% + 8px);left:0;right:auto;transform-origin:bottom left}
:is(.sb,.pbar) .sb-live{flex:none;display:inline-flex;align-items:center;gap:6px;box-sizing:border-box;height:32px;min-height:32px;margin:0;padding:0 10px;border:0;border-radius:8px;background:transparent;box-shadow:none;font:500 13px/18px var(--sans);color:var(--text-2);white-space:nowrap}
:is(.sb,.pbar) button.sb-live:hover{background:var(--hover);color:var(--text)}
:is(.sb,.pbar) button.sb-live:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
:is(.sb,.pbar) .sb-live > .dot{width:7px;height:7px;margin:0}
:is(.sb,.pbar) .sb-live.off > .sl{color:var(--warn-ink,var(--text-2))}

/* the rail (900 px and wider): the mark and the toggle stacked, icons only, the open instance's avatars, the foot's
   icons; every item keeps its name for assistive technology and its title for the pointer */
@media (min-width:900px){
  main.app.side-rail > nav.sb > .sb-top{flex-direction:column;justify-content:center;gap:6px;height:auto;min-height:52px;padding:10px 0 6px}
  main.app.side-rail.rail-forced > nav.sb > .sb-top{padding-top:16px}
  main.app.side-rail > nav.sb .sb-brand > b,main.app.side-rail > nav.sb .sb-brand > :is(.sb-div,.sb-area){display:none}
  main.app.side-rail > nav.sb :is(.sb-prim,.sb-sec){padding:0 10px;align-items:center}
  main.app.side-rail > nav.sb :is(.sb-row,.sb-inst){justify-content:center;width:44px;height:40px;min-height:40px;padding:0;gap:0}
  main.app.side-rail > nav.sb :is(.sb-row,.sb-inst) > :is(.sb-l,.sb-r){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  main.app.side-rail > nav.sb .sb-sec{margin-top:8px;padding-top:8px;border-top:1px solid var(--sb-line);margin-left:12px;margin-right:12px;padding-left:0;padding-right:0}
  main.app.side-rail > nav.sb :is(.sb-label,.sb-ig > .sb-inst){display:none}
  main.app.side-rail > nav.sb .sb-ig:not(.open){display:none}
  main.app.side-rail > nav.sb .sb-tree{margin:0;padding:0;border:0;align-items:center}
  main.app.side-rail > nav.sb .sb-sec:not(:has(.sb-ig.open)){display:none}
  main.app.side-rail:not(.area-admin) > nav.sb .sb-sec:has(.sb-ig.open){display:flex}
  main.app.side-rail.area-admin > nav.sb .sb-sec{display:flex}
  main.app.side-rail.area-admin > nav.sb .sb-sec > .sb-label{display:none}
  main.app.side-rail > nav.sb > .sb-foot{align-items:center;padding:8px 0}
  main.app.side-rail > nav.sb .sb-acct{flex-direction:column-reverse;gap:6px}
  main.app.side-rail > nav.sb .sb-acct > .gk-acctm > .gk-mbtn{width:44px;height:44px;min-height:44px;justify-content:center;padding:0}
  main.app.side-rail > nav.sb .sb-acct > .gk-acctm > .gk-mbtn > .mw{display:none}
  main.app.side-rail > nav.sb .sb-live > .sl{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  main.app.side-rail > nav.sb .sb-live{width:32px;justify-content:center;padding:0}
  main.app.side-rail > nav.sb .gk-tree > .gk-list{align-items:center}
}

/* the phone (and anything under 900 px): the sidebar is a drawer over a scrim; closed, it is hidden at once (no
   closing transition, so a closed drawer is never visible to a pointer or assistive technology) */
@keyframes sb-in{from{transform:translateX(-102%)}to{transform:none}}
@media (max-width:899px){
  main.app > nav.sb{position:fixed;top:0;left:0;bottom:0;z-index:60;width:min(320px,86vw);height:100dvh;border-right:1px solid var(--border);transform:translateX(-102%);visibility:hidden;box-shadow:none;transition:none}
  main.app.side-open > nav.sb{transform:none;visibility:visible;box-shadow:var(--shadow-drawer);animation:sb-in var(--dur-3) var(--ease)}
  main.app.side-open > .sb-scrim{display:block;position:fixed;inset:0;z-index:59;background:var(--scrim);animation:fade-in var(--dur-3) var(--ease)}
  main.app > nav.sb .gk-side-tg{display:none}
  main.app > nav.sb .sb-acct > .gk-acctm > .gk-mbtn{height:52px}
  main.app > nav.sb :is(.sb-row,.sb-inst){height:44px;min-height:44px;font-size:15px}
}
@media (min-width:900px){main.app > .app-main > .pbar{display:none}}
/* the page bar (under 900 px, pages without their own bar): ☰, the brand, Live and the account */
.pbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:4px;box-sizing:border-box;height:52px;min-height:52px;padding:0 8px 0 4px;border-bottom:1px solid var(--border);background:var(--bg)}
.pbar > .pb-menu{display:inline-grid;place-items:center;width:44px;height:44px;min-width:44px;margin:0;padding:0;border:0;border-radius:10px;background:transparent;color:var(--text)}
.pbar > .pb-menu:hover{background:var(--hover)}
.pbar > .pb-brand{display:inline-flex;align-items:center;gap:8px;min-width:0;font:600 15px/20px var(--sans);color:var(--text)}
.pbar > .pb-brand > .mark-s{margin:0}
.pbar > .pb-sp{flex:1 1 auto}
.pbar > .sb-live.d{width:44px;height:44px;justify-content:center;padding:0}
.pbar > .sb-live.d > .sl{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.pbar > .sb-live.d > .dot{width:8px;height:8px}
.pbar > .gk-acctm > .gk-mbtn{display:inline-grid;place-items:center;width:44px;height:44px;min-width:44px;margin:0;padding:0;border:0;border-radius:10px;background:transparent;box-shadow:none}
.pbar > .gk-acctm > .gk-mbtn > .mav{width:28px;height:28px;font-size:12px;line-height:28px}

/* the instance and bot bars inside the shell: no crumb; ‹ and the account only where the sidebar is a drawer */
@media (min-width:900px){
  main.app .ih-row > :is(.back,.m-back),main.app .ih-row > .ih-acct{display:none}
  main.app :is(.ihead.ihx,.gk-bar.ihx) > .ih-row{padding-left:24px}
  main.app.gk .gk-bar.ihx > .ih-row{padding-left:20px}
}
@media (min-width:701px) and (max-width:899px){
  main.app .ih-row > :is(.back,.m-back){display:inline-grid}
}
main.app .gk-bar.ihx .ih-t .ih-name{font:600 15px/20px var(--sans);color:var(--text)}

/* the admin pages beside the sidebar: the rail narrows to 300 px; checkpoints puts its table across the whole
   content column, then the actions beside the explainer */
@media (min-width:1100px){
  main.app :is(.ws:not(button),.pg2){grid-template-columns:minmax(0,1fr) 300px}
  main.app .images-view > .ws.imgpg{grid-template-columns:minmax(0,1fr) 300px}
  main.app .checkpoint-view .pg2.ckpg{display:grid;grid-template-columns:minmax(0,1fr) 300px;grid-template-areas:"list list" "form rail";column-gap:24px;row-gap:24px;align-items:start}
  main.app .checkpoint-view .pg2.ckpg > .pg-main{display:contents}
  main.app .checkpoint-view .pg2.ckpg > .pg-main > .ck-list{grid-area:list;margin:0}
  main.app .checkpoint-view .pg2.ckpg > .pg-main > .ckcol{grid-area:form;margin:0}
  main.app .checkpoint-view .pg2.ckpg > .pg-rail{grid-area:rail;align-self:stretch}
}

/* node administration's subtitle starts with the node: its name, and "fake" as a small outlined tag */
.ihead.page .sub > .mline.nsub > .nn{display:inline-flex;align-items:center;gap:8px}
.ihead.page .sub > .mline.nsub > .nn > b{font-weight:600;color:var(--text)}
.ihead.page .sub > .mline.nsub > .nn > .nfake{display:inline-flex;align-items:center;height:20px;padding:0 6px;border:1px solid var(--border);border-radius:6px;font:500 12px/18px var(--sans);color:var(--text-2)}

/* node administration's instances: one 48 px row per instance (name over its state, owner, memory, bots, a chevron),
   the whole row opening the instance's administration */
.node-view .ninst-t{padding:0;overflow:hidden}
.node-view .ninst-t > .nit-h,.node-view .ninst-t > .nit-r{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,.8fr) minmax(0,1fr) 48px 16px;align-items:center;column-gap:16px;padding:0 20px}
.node-view .ninst-t > .nit-h{min-height:36px;border-bottom:1px solid var(--border-soft);font:500 13px/18px var(--sans);color:var(--text-2)}
.node-view .ninst-t > .nit-h > .nb,.node-view .ninst-t > .nit-r > .nb{text-align:right;font-variant-numeric:tabular-nums}
.node-view .ninst-t > .nit-r{box-sizing:border-box;width:100%;min-height:52px;margin:0;border:0;border-top:1px solid var(--border-soft);border-radius:0;background:transparent;box-shadow:none;text-align:left;font:400 14px/20px var(--sans);color:var(--text);cursor:pointer;transition:background-color var(--dur-1) var(--ease)}
.node-view .ninst-t > .nit-h + .nit-r{border-top:0}
.node-view .ninst-t > .nit-r:hover{background:var(--hover)}
.node-view .ninst-t > .nit-r:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
.node-view .ninst-t > .nit-r > .nn{display:flex;flex-direction:column;min-width:0}
.node-view .ninst-t > .nit-r > .nn > b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
.node-view .ninst-t > .nit-r > .nn > .ns{display:inline-flex;align-items:center;gap:6px;font-size:13px;line-height:18px;color:var(--text-2)}
.node-view .ninst-t > .nit-r > .nn > .ns > .dot{width:7px;height:7px;margin:0}
.node-view .ninst-t > .nit-r > :is(.no,.nm){overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-2);font-variant-numeric:tabular-nums}
.node-view .ninst-t > .nit-r > .ic{color:var(--text-3)}
.node-view .ninst-t > .ninst-none{margin:0;padding:16px 20px;color:var(--text-2)}
@media (max-width:700px){
  .node-view .ninst-t > .nit-h{display:none}
  .node-view .ninst-t > .nit-r{grid-template-columns:minmax(0,1fr) auto 16px;padding:8px 16px;border-top:1px solid var(--border-soft)}
  .node-view .ninst-t > .nit-r > :is(.no,.nb){display:none}
}

/* the first-run home: one centred block (a bare icon, a title, one line); the header's New instance is its action */
.home-view .empty-state.first-run{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;box-sizing:border-box;max-width:420px;min-height:0;margin:72px auto 48px;padding:0;border:0;border-radius:0;background:none;box-shadow:none;text-align:center}
.home-view .empty-state.first-run > .es-ic{display:inline-grid;place-items:center;width:auto;height:auto;margin:0;padding:0;border:0;background:none;color:var(--text-3)}
.home-view .empty-state.first-run > .es-ic > .ic{width:28px;height:28px}
.home-view .empty-state.first-run > .es-t{display:flex;flex-direction:column;align-items:center;gap:6px}
.home-view .empty-state.first-run > .es-t > b{font:600 17px/24px var(--sans);color:var(--text)}
.home-view .empty-state.first-run > .es-t > span{font:400 14px/20px var(--sans);color:var(--text-2);text-wrap:pretty}

/* ==== r26r ==== */
/* an instance's other pages: its bots under its row, as links into their chats (36 px rows, a 24 px avatar, the
   status dot at the end) */
.sb .sb-bots{display:flex;flex-direction:column;gap:2px;padding:2px 0}
.sb .sb-bot{position:relative;display:flex;align-items:center;gap:10px;box-sizing:border-box;height:36px;min-height:36px;padding:0 10px 0 6px;border-radius:8px;font:500 14px/20px var(--sans);color:var(--text);text-decoration:none;transition:background-color var(--dur-1) var(--ease)}
.sb .sb-bot:hover{background:var(--hover);text-decoration:none}
.sb .sb-bot.on,.sb .sb-bot.on:hover{background:var(--sb-cur);font-weight:600}
.sb .sb-bot:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
.sb .sb-bot > .gk-av{--sz:24px;font-size:11px}
.sb .sb-bot > .sb-l{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sb .sb-bot > .dot{flex:none;width:7px;height:7px;margin:0}
.sb .sb-none{padding:6px 10px;font:400 13px/18px var(--sans);color:var(--text-2)}
@media (max-width:899px){.sb .sb-bot{height:44px;min-height:44px;font-size:15px}}
@media (min-width:900px){
  main.app.side-rail > nav.sb .sb-bots{align-items:center}
  main.app.side-rail > nav.sb .sb-bot{justify-content:center;width:44px;height:40px;min-height:40px;padding:0;gap:0}
  main.app.side-rail > nav.sb .sb-bot > :is(.sb-l,.dot){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  main.app.side-rail > nav.sb .sb-bot > .gk-av{--sz:28px}
  main.app.side-rail > nav.sb .sb-none{display:none}
}

/* the unavailable verbs are segments of the same track: muted, after a hairline (one row), or the track's last cells
   when it wraps into rows of three (five or six verbs; four on a phone are two by two) */
.verbs-g > .verbs.seg > button.verb.na{color:var(--text-3);font-weight:500;cursor:default}
.verbs-g > .verbs.seg > button.verb.na:hover:not(.on){background:transparent;color:var(--text-2)}
.verbs-g > .verbs.seg > button.verb.na.on,.verbs-g > .verbs.seg > button.verb.na.on:hover{color:var(--text-2);font-weight:500}
.verbs-g > .verbs.seg > button.verb:not(.na) + button.verb.na{position:relative;margin-left:9px}
.verbs-g > .verbs.seg > button.verb:not(.na) + button.verb.na::before{content:"";position:absolute;left:-6px;top:50%;width:1px;height:16px;margin-top:-8px;background:var(--border-strong)}
.verbs-g > .verbs.seg:is(.n5,.n6){display:grid;grid-auto-flow:row;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;height:auto;row-gap:2px}
.verbs-g > .verbs.seg:is(.n5,.n6) > button{min-height:30px}
.verbs-g > .verbs.seg:is(.n5,.n6) > button.verb:not(.na) + button.verb.na{margin-left:0}
.verbs-g > .verbs.seg:is(.n5,.n6) > button.verb:not(.na) + button.verb.na::before{content:none}
@media (max-width:700px){
  .verbs-g > .verbs.seg.n4 > button.verb:not(.na) + button.verb.na{margin-left:0}
  .verbs-g > .verbs.seg.n4 > button.verb:not(.na) + button.verb.na::before{content:none}
  .verbs-g > .verbs.seg:is(.n5,.n6) > button{min-height:36px}
}

/* a phone's toasts sit at the foot (over the composer in a chat), never over the bar */
@media (max-width:700px){
  .toasts > .toast,.toasts > .toast.ok,.toasts > .toast.bad,.toasts > .toast.warn{animation:r26-toast-up 160ms ease-out}
}
/* a phone's bot bar keeps the bot's instance: its name in a muted line under the bot's */
@media (max-width:700px){
  main.app .ihx.bot .ih-row > .ih-t{flex-direction:column;align-items:flex-start;justify-content:center;gap:0}
  main.app .ihx.bot .ih-row > .ih-t > .ih-title > .ih-name{font:600 15px/20px var(--sans)}
  main.app .ihx.bot .ih-row > .ih-t > .ih-sub.ih-sub.ih-sub{display:block;max-width:100%;min-width:0;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:400 12px/16px var(--sans);color:var(--text-2)}
  main.app .ihx.bot .ih-row > .ih-t > .ih-sub.ih-sub.ih-sub::before{content:none}
}
/* a toast's kind is a 3 px edge at its start as well as its glyph */
.toasts > .toast.ok{box-shadow:inset 3px 0 0 var(--ok),var(--shadow-overlay)}
.toasts > .toast.bad{box-shadow:inset 3px 0 0 var(--bad),var(--shadow-overlay)}
.toasts > .toast.warn{box-shadow:inset 3px 0 0 var(--warn),var(--shadow-overlay)}
/* the skip link casts no shadow while it waits off screen */
main.app > a.skip:not(:focus){box-shadow:none;transform:translateY(calc(-100% - 16px))}
/* the activity's "Full history" is a plain link in both themes; Live is a word that tints on hover, never a box */
.cbar > .lnk.act-full,.cbar > .lnk.act-full:hover{box-shadow:none;background:none}
:is(.sb,.pbar) button.sb-live:hover{background:transparent}
.pbar > .sb-live.d{width:auto;height:44px;padding:0 10px;gap:6px}
.pbar > .sb-live.d > .sl{position:static;width:auto;height:auto;overflow:visible;clip-path:none;font:500 13px/18px var(--sans)}
.pbar > .sb-live.d > .dot{width:7px;height:7px}

/* a pausing commit (sec.commit) keeps its outline while it waits */
button.sec.commit:disabled,button.sec.commit:disabled:hover{border-color:var(--border);background:transparent;color:var(--text-3);font-weight:600;box-shadow:none;opacity:1;cursor:not-allowed}

/* the option list's chosen row: a tinted surface and a 2 px accent edge at its start (the group clips it to its
   corners), the radio filled; no ring that could stand proud of the group */
.verbs-g > .verbs.cards > button.verb.on > .vdot,.scrmodes > .verb.on > .vdot{border-color:var(--accent);background:radial-gradient(circle,var(--accent) 0 4px,transparent 4.5px)}

/* every disclosure that closes a page is a card like its siblings (a phone's explainers, the retained conversation) */
:is(.howrow.ck-howend,.card.imguide-m.howend){margin:0;padding:0;border:1px solid var(--border);border-radius:12px;background:var(--surface-1);box-shadow:var(--shadow-card);overflow:hidden}
:is(.howrow.ck-howend,.card.imguide-m.howend) > details.disc > summary{padding:12px 16px;min-height:56px;box-sizing:border-box}
:is(.howrow.ck-howend,.card.imguide-m.howend) > details.disc > summary > .d-ic{display:none}
:is(.howrow.ck-howend,.card.imguide-m.howend) > details.disc > .d-b{padding:4px 16px 16px}
.bot-admin-view .card.convo-card{margin:0;border:1px solid var(--border);border-radius:12px;background:var(--surface-1);box-shadow:var(--shadow-card)}
.bot-admin-view .card.convo-card > .convo-row > .convo-t{border-radius:0}

/* a phone's ⋯ sheet: headed by what it acts on (the bot's avatar and name, "in <instance>"), 40 px rows, and a fade
   at its foot while more rows wait under it */
@media (max-width:700px){
  .gk-menu.gk-instm > .gk-sheet > .sh-h{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:52px;padding:0 8px 8px 16px;border-bottom:1px solid var(--border-soft)}
  .gk-menu.gk-instm > .gk-sheet > .sh-h > b{position:static;width:auto;height:auto;overflow:hidden;clip-path:none;white-space:nowrap;flex:1 1 auto;min-width:0}
  .gk-menu.gk-instm .grp :is(button.it,[role=menuitem]):not(.tile){height:40px;min-height:40px}
  .gk-menu.gk-instm .gk-sheet .g-bot > .scope{display:none}
  .gk-menu.gk-instm .sec.scope{padding:8px 8px 2px}
  .gk-menu .gk-sheet .pop-scroll.can-more{-webkit-mask-image:linear-gradient(to bottom,#000 calc(100% - 32px),transparent);mask-image:linear-gradient(to bottom,#000 calc(100% - 32px),transparent)}
}

/* a drawer's body fades out over its last 48 px while more waits under the footer, and scrolls 32 px past its end */
.overlay > .drawer .dscroll.can-more{-webkit-mask-image:linear-gradient(to bottom,#000 calc(100% - 48px),transparent);mask-image:linear-gradient(to bottom,#000 calc(100% - 48px),transparent)}
@media (max-width:700px){.drawer .db > form > .dscroll,.drawer .db > .dscroll{padding-bottom:32px}}

/* History shows every row's time; a repeat of the row above's minute is in the tertiary text */
.history-main .hx-row > .hx-t.rep > time{visibility:visible;color:var(--text-3)}

/* a short conversation starts at the top of its column (the intro under the header), never mid-pane */
.gk-chat > .gk-scroll > .gk-transcript,.chat > .transcript > :first-child,:is(.chat > .transcript,.gk-chat .gk-transcript) > .cstart.intro:first-child{margin-top:0}
:is(.chat > .transcript,.gk-chat .gk-transcript) > .cstart.intro:first-child{padding-top:20px}
@media (max-width:700px){:is(.chat > .transcript,.gk-chat .gk-transcript) > .cstart.intro:first-child{padding-top:12px}}

/* the terminal's start step: under the page's heading like every instance page, a 480 px card at the content's start
   (a card on a phone too); the recording warning a soft callout */

/* a request's scope and duration read together, in the primary text, right over Allow and Deny */
/* the one thing on home that waits for the user: a warm tint and an accent edge set it apart from the cards */
.home-view .ap-notice.ap-notice.ap-notice,.app-page .ap-notice.ap-notice.ap-notice{border-color:var(--callout-warn-edge);background:var(--callout-warn-bg);box-shadow:inset 3px 0 0 var(--accent)}

/* the groups' empty line starts where its heading does */
.sb .sb-tree .gk-tree .gk-gnone.gk-gnone{margin:0 0 0 -6px;padding:0 0 4px;text-indent:0;font:400 13px/18px var(--sans);color:var(--text-2)}
/* an empty state's icon sits on its title's line */
.empty-state:not(.first-run){align-items:flex-start}
.empty-state:not(.first-run) > .es-ic{align-self:flex-start;margin-top:0}
button.sec.commit:not(:disabled){font-weight:500}
/* names in a page's subtitle are plain bold words, no chip padding */
.ihead.page .sub .ts-n{margin:0;padding:0;border:0;background:none;font-weight:600;color:var(--text)}

/* node administration: the instances table across the page under the two columns, its rows on the card's own content
   edge (the title's); a phone shows Host first; a CPU pool's range sits under its state instead of being cut */
.node-view > .sec.ninst{margin-top:24px}
.node-view .sec.in.ninst > .sec-b > .card.ninst-t.ninst-t{padding:8px 0 4px}
@media (max-width:700px){
  .node-view .sec.in.ninst > .sec-b > .card.ninst-t.ninst-t{padding:4px 0 4px}
  .node-view .ws > .ws-rail{order:-1}
  .node-view > .sec.ninst{margin-top:16px}
}
/* the Details cards' header actions read as small buttons that go somewhere (an edge, the primary text, a chevron) */
.gk-details .dx-card > .dx-h > button.dx-act{display:inline-flex;align-items:center;white-space:nowrap;gap:4px;height:28px;min-height:28px;padding:0 6px 0 10px;border:1px solid var(--border);color:var(--text)}
.gk-details .dx-card > .dx-h > button.dx-act > .ic{width:14px;height:14px;color:var(--text-2)}
/* the rail has no room for the connection's word: Live leaves it (the offline banner still says when it drops) */
@media (min-width:900px){main.app.side-rail > nav.sb .sb-live{display:none}}
.ihead.page .sub > .mline.nsub > .nn + .stv{margin-left:-4px}
.ihead.page .sub > .mline.nsub > .nn + .stv::before{content:none}
dl.props.pools > .pr{align-items:flex-start}
dl.props.pools .pool-v{flex-wrap:wrap;row-gap:0;white-space:normal}
dl.props.pools .pool-v > .pm{flex:1 1 100%;white-space:normal;overflow:visible}

/* a phone's card keeps its lifecycle action's word (a small bordered button), apart from the chevron that opens it */
@media (max-width:700px){
  .home-view .ipanel > .ip-h > .ip-acts{gap:6px}
  .home-view .ipanel > .ip-h > .ip-acts > button.ghost.lc{width:auto;min-width:0;padding:0 10px;gap:6px;border:1px solid var(--border);justify-content:center}
  .home-view .ipanel > .ip-h > .ip-acts > button.ghost.lc > .lt{position:static;width:auto;height:auto;overflow:visible;clip-path:none}
  .home-view .ipanel > .ip-h > .ip-acts > button.ghost.lc > .ic{width:14px;height:14px}
}
/* the overview: the control plane's name a small outlined tag beside the title; a phone's node card opens from a
   chevron on its title row, clear of the metrics */
.cluster.ov .ihead.page h2 > .cp-n{display:inline-flex;align-items:center;height:22px;margin:0 0 0 12px;padding:0 7px;border:1px solid var(--border);border-radius:6px;font:400 12px/20px var(--mono);color:var(--text-2);vertical-align:5px}
@media (max-width:700px){.cluster.ov .cluster-node.linked > .ov-nh > a.ov-go{top:12px;margin:0}}
:is(.pbar) > .sb-live.cp{height:44px}
/* home's cards keep their own height (a card without an activity line ends after its bots) */
.home-view .grid.igrid{align-items:start}

/* ==== r27: one product, two calm areas ==== */
/* the admin sidebar: the node's instances under a counted label; the page's instance opened to its bots */
.sb .sb-label.sb-cnt{gap:6px}
.sb .sb-label.sb-cnt > .n{font:500 12px/16px var(--sans);color:var(--text-3);font-variant-numeric:tabular-nums}
.sb .sb-adm-inst .sb-ig.open > .sb-bots{margin:2px 0 6px 18px;padding:0 0 0 8px;border-left:1px solid var(--sb-line)}
.sb .sb-adm-inst .sb-ig.open > .sb-inst{font-weight:600}
.sb .sb-adm-inst .sb-ig.open > .sb-inst.in{background:transparent}
.sb .sb-adm-inst .sb-ig.open > .sb-inst.in:hover{background:var(--hover)}
@media (min-width:900px){
  main.app.side-rail.area-admin > nav.sb .sb-adm-inst{display:none}
}

/* the phone's page bar: the drawer's button, the brand (the mark and "Admin" in the admin area), the way back as a
   quiet labelled button (its chevron inside it), Live with its word from 360 px, the account */
.pbar > .pb-brand{flex:none;gap:8px}
:root:root .pbar > button.pb-back{display:inline-flex;align-items:center;gap:2px;flex:none;box-sizing:border-box;width:auto;height:36px;min-width:0;min-height:36px;margin:0;padding:0 10px 0 4px;border:0;border-radius:8px;background:transparent;box-shadow:none;font:500 14px/20px var(--sans);color:var(--text);white-space:nowrap}
:root:root .pbar > button.pb-back > .ic{flex:none;width:16px;height:16px;margin:0;color:var(--text-2)}
:root:root .pbar > button.pb-back:hover{background:var(--hover)}
:root:root .pbar > button.pb-back:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
@media (max-width:359px){:root:root .pbar.pb-adm > .sb-live{display:none}}
/* a bot bar's phone title: the bot's name over "in <instance>" (the crumb and the avatar are a desktop's) */
.ihead.ihx .ih-t > .ih-l2{display:none}
@media (max-width:899px){
  .ihead.ihx.adm .ih-t{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:0;min-width:0;text-align:left}
  .ihead.ihx.adm .ih-t > .ih-title{min-width:0;flex-wrap:nowrap}
  .ihead.ihx.adm .ih-t > .ih-title > .ih-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .ihead.ihx.bot.adm .ih-t > .ih-l2{display:flex;align-items:center;min-width:0}
  .ihead.ihx.bot.adm .ih-t > .ih-l2 > .ih-l2i{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:400 13px/18px var(--sans);color:var(--text-2)}
  .ihead.ihx.bot.adm .ih-title > :is(.ih-crumb,.ih-sl,.gk-av){display:none}
}
.ihead.ihx.bot .ih-crumb{display:inline-flex;align-items:center;gap:6px;min-width:0}
.ihead.ihx.bot .ih-crumb > .ih-cn{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ihead.ihx.bot .ih-crumb > .dot{flex:none;width:7px;height:7px;margin:0}

/* the ⋯ menu's Admin ›: a disclosure inside the menu — the chevron turns and the admin pages open indented under it */
.gk-menu .grp.g-adm{padding-top:2px;padding-bottom:2px}
.gk-menu .adm-sub > .it.sub-t > .r{display:inline-flex;margin-left:auto;color:var(--text-2)}
.gk-menu .adm-sub > .it.sub-t > .r > .ic{width:16px;height:16px;transition:transform var(--dur-1) var(--ease)}
.gk-menu .adm-sub.open > .it.sub-t > .r > .ic{transform:rotate(90deg)}
.gk-menu .adm-sub.open > .it.sub-t{background:var(--hover)}
.gk-menu .gk-sub{position:static;margin:2px 0 0 18px;padding:0 0 0 8px;border:0;border-left:1px solid var(--border-soft);border-radius:0;background:none;box-shadow:none}
.gk-menu .gk-sub > .grp{margin:0;padding:0;border:0}
@media (prefers-reduced-motion:reduce){.gk-menu .adm-sub > .it.sub-t > .r > .ic{transition:none}}

/* the classic view's rail: the same sidebar collapsed; its toggle opens the full sidebar as a sheet over the page */
@media (min-width:900px){
  main.app.rail-forced{--sb-w:64px}
  main.app.rail-forced.rail-peek > nav.sb{position:fixed;top:0;left:0;bottom:0;z-index:60;width:256px;box-shadow:var(--shadow-drawer)}
  main.app.rail-forced.rail-peek > .sb-scrim{display:block;position:fixed;inset:0;z-index:59;background:var(--scrim)}
}

/* ==== r27 components: one component per job ==== */
/* tokens: amber focus for fields, one field surface, the faded primary, one mono face, a neutral scrim */
:root{
  --field-focus-edge:var(--accent);--field-ring:color-mix(in srgb,var(--accent) 28%,transparent);
  --go-off-bg:var(--surface-2);--go-off-border:var(--border-soft);--go-off-fg:var(--text-3);
  --bad-off-bg:var(--surface-2);--bad-off-border:var(--border-soft);--bad-off-fg:var(--text-3);
  --mono:"SF Mono",SFMono-Regular,ui-monospace,Menlo,"Cascadia Mono",Consolas,"Space Mono",monospace;
  --scrim:rgba(8,8,8,.56);--scrim-sheet:rgba(8,8,8,.56);
  --rc-on:color-mix(in srgb,var(--accent) 9%,var(--surface-1));--rc-edge:color-mix(in srgb,var(--accent) 55%,transparent);
}
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]){
  --field-focus-edge:var(--accent);--field-ring:color-mix(in srgb,var(--accent) 22%,transparent);
  --go-off-bg:var(--surface-2);--go-off-border:var(--border-soft);--go-off-fg:var(--text-3);
  --bad-off-bg:var(--surface-2);--bad-off-border:var(--border-soft);--bad-off-fg:var(--text-3);
  --scrim:rgba(28,26,23,.28);--scrim-sheet:rgba(28,26,23,.28);
  --rc-on:color-mix(in srgb,var(--accent) 10%,var(--surface-1));--rc-edge:color-mix(in srgb,var(--accent) 70%,transparent);
}}
:root[data-theme="light"]{
  --field-focus-edge:var(--accent);--field-ring:color-mix(in srgb,var(--accent) 22%,transparent);
  --go-off-bg:var(--surface-2);--go-off-border:var(--border-soft);--go-off-fg:var(--text-3);
  --bad-off-bg:var(--surface-2);--bad-off-border:var(--border-soft);--bad-off-fg:var(--text-3);
  --scrim:rgba(28,26,23,.28);--scrim-sheet:rgba(28,26,23,.28);
  --rc-on:color-mix(in srgb,var(--accent) 10%,var(--surface-1));--rc-edge:color-mix(in srgb,var(--accent) 70%,transparent);
}

/* 2.1 a disabled primary (or danger submit) is neutral: the raised surface, a hairline, its label in the tertiary
   text — legible, and never competing with an enabled action */
:is(button.go,button.cf-go):where(:not(.it,.ib,.send,.gk-send,.verb,[role=menuitem],.items > button,.composer > button)):disabled,
:is(button.go,button.cf-go):where(:not(.it,.ib,.send,.gk-send,.verb,[role=menuitem],.items > button,.composer > button)):disabled:hover,
button.danger[type=submit]:where(:not(.it,.ib,.verb,[role=menuitem])):disabled,
button.danger[type=submit]:where(:not(.it,.ib,.verb,[role=menuitem])):disabled:hover{border-color:var(--go-off-border);background:var(--go-off-bg);color:var(--go-off-fg);font-weight:600;box-shadow:none;opacity:1;cursor:not-allowed}
/* its reason: one secondary line beside the button (left of it on a desktop, above it on a phone) */
:is(.dfoot,footer.cf,.ts-foot) > p.why.fw{flex:0 1 auto;min-width:0;margin:0 4px 0 auto;display:block;font:400 13px/18px var(--sans);color:var(--text-2);text-align:right}
.ts-foot{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}
@media (max-width:700px){
  :is(.dfoot,footer.cf,.ts-foot) > p.why.fw{flex:1 1 100%;order:-1;margin:0;text-align:left}
  .ts-foot > button{flex:1 1 100%}
}

/* 2.2 the segmented control: one row of equal segments, no dividers; unavailable verbs quiet in the same track */
.verbs-g > .verbs.seg{display:grid;grid-auto-flow:column;grid-template-columns:repeat(var(--n),minmax(0,1fr));width:100%;max-width:100%;height:36px;min-height:36px;box-sizing:border-box;padding:3px;gap:0;border:1px solid var(--border-soft);border-radius:10px;background:var(--seg-track)}
.verbs-g > .verbs.seg > button.verb{min-width:0;height:30px;min-height:30px;padding:0 8px;border:0;border-radius:8px;font:500 14px/20px var(--sans);color:var(--text-2);box-shadow:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.verbs-g > .verbs.seg > button.verb.on{background:var(--seg-on);color:var(--text);font-weight:600;box-shadow:var(--seg-on-shadow)}
.verbs-g > .verbs.seg > button.verb:not(.na) + button.verb.na{margin-left:0}
.verbs-g > .verbs.seg > button.verb:not(.na) + button.verb.na::before{content:none}
.verbs-g > .verbs.seg > button.verb.na{color:var(--text-3)}
.verbs-g > .verbs.seg > button.verb.na.on{background:var(--seg-on);color:var(--text-2)}
.verbs-g > .verbs.seg > button.verb:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
@media (max-width:700px){
  .verbs-g > .verbs.seg,.verbs-g > .verbs.seg.n4,.verbs-g > .verbs.seg:is(.n5,.n6){display:grid;grid-auto-flow:column;grid-template-columns:repeat(var(--n),minmax(0,1fr));height:40px;min-height:40px;row-gap:0}
  .verbs-g > .verbs.seg > button.verb{height:34px;min-height:34px;padding:0 4px}
  .verbs-g > .verbs.seg.n4 > button.verb{font-size:13px}
}

/* 2.3 the radio-card list (lifecycle, roles, the screen's control): the chosen row a soft amber tint and a 1 px
   amber ring, its radio filled; no stripe; danger choices' titles in red */
.verbs-g > .verbs.cards > button.verb.on + button.verb,.scrmodes > .verb.on + .verb{border-top-color:transparent}
.verbs-g > .verbs.cards > button.verb.on > .vdot,.scrmodes > .verb.on > .vdot{border-color:var(--accent);background:radial-gradient(circle,var(--accent) 0 4px,transparent 4.5px)}
.verbs-g > .verbs.cards > button.verb.dz > .vt{color:var(--bad-ink,var(--bad))}
.verbs-g.rcg{display:block}
.verbs-g.rcg > .rc-na{display:flex;align-items:center;flex-wrap:wrap;gap:2px 4px;margin:10px 0 0}
.verbs-g.rcg > .rc-na > .rc-nl{margin-right:6px;font:400 13px/18px var(--sans);color:var(--text-2)}
.verbs-g.rcg > .rc-na > button.verb{display:inline-flex;align-items:center;height:28px;min-height:28px;margin:0;padding:0 2px;border:0;border-radius:4px;background:transparent;box-shadow:none;font:400 13px/18px var(--sans);color:var(--text-2);cursor:pointer}
.verbs-g.rcg > .rc-na > button.verb + button.verb::before{content:"·";margin:0 6px 0 0;color:var(--text-3);text-decoration:none}
.verbs-g.rcg > .rc-na > button.verb:hover > .vt{color:var(--text);text-decoration:underline;text-underline-offset:3px}
.verbs-g.rcg > .rc-na > button.verb.on > .vt{color:var(--text);font-weight:500;text-decoration:underline;text-underline-offset:3px}
.verbs-g.rcg > .rc-na > button.verb:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.verbs-g.rcg > .verbs-d{margin:10px 0 0;font:400 13px/18px var(--sans);color:var(--text-2)}
/* the role and the screen's control lose their stripe too */

/* 2.4 the empty state: an icon in a soft circle, the title over its line (never run together) */
.empty-state,.empty-state.flat{align-items:flex-start;gap:12px;min-height:0;padding:4px 0}
.empty-state > .es-ic,.empty-state:not(.first-run) > .es-ic{flex:none;display:inline-grid;place-items:center;width:32px;height:32px;margin:0;border-radius:50%;background:var(--surface-2);color:var(--text-2)}
.empty-state > .es-ic > .ic{width:16px;height:16px}
.empty-state > .es-t{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding-top:6px}
.empty-state > .es-t > b{font:600 14px/20px var(--sans);color:var(--text)}
.empty-state > .es-t > span{font:400 13px/18px var(--sans);color:var(--text-2)}

/* 2.5 a unit sits inside its field: no box, the secondary text at the field's right edge */
.fld.unitf > label.f > .uin > input{padding-right:52px}
.fld.unitf > label.f > .uin > .unit{top:0;right:0;bottom:0;width:auto;padding:0 12px 0 4px;border:0;border-radius:0;background:none;font:500 13px/18px var(--sans);color:var(--text-2)}
.ia-pol .uin > .unit,.uin > .unit{border:0;background:none}

/* drawers: a phone sheet has no grab handle */
.overlay > .drawer > .grab,.gk-sheet > .grab{display:none}
.drawer .dfoot > :is(button.ghost,button.acc-cancel){border:1px solid var(--border-strong);color:var(--text)}
@media (max-width:700px){
  .overlay > .drawer > .grab,.gk-sheet > .grab{display:none}
  .drawer > .dh{padding-top:14px}
  .drawer .dfoot > :is(button.ghost,button.acc-cancel){border:1px solid var(--border-strong);color:var(--text)}
}

/* ==== r27 chat: a bottom-anchored thread; the persona only on an empty thread (a centred hero); one assistant turn
   layout — avatar 28, then a header line (the bot, its work, one time), the reply, its files ==== */
.gk-chat > .gk-scroll > .gk-transcript,.gk-chat .gk-transcript > .cstart.intro:first-child{margin-top:auto}
.chat > .transcript > :first-child{margin-top:auto}
:is(.gk-chat .gk-transcript:has(.gk-msg,.gk-turn),.chat > .transcript:has(.msg)) > .cstart.intro{display:none}
:is(.gk-chat .gk-transcript,.chat > .transcript):not(:has(.gk-msg,.gk-turn,.msg)) > .cstart.intro{display:flex;flex-direction:column;align-items:center;gap:6px;margin:auto 0;padding:48px 16px;text-align:center}
:is(.gk-chat .gk-transcript,.chat > .transcript):not(:has(.gk-msg,.gk-turn,.msg)) > .cstart.intro > .cs-av :is(.gk-av,.av){width:48px;height:48px;min-width:48px;font-size:18px;line-height:48px}
:is(.gk-chat .gk-transcript,.chat > .transcript):not(:has(.gk-msg,.gk-turn,.msg)) > .cstart.intro > .cs-l1{flex-direction:column;align-items:center;gap:4px}
:is(.gk-chat .gk-transcript,.chat > .transcript):not(:has(.gk-msg,.gk-turn,.msg)) > .cstart.intro > .cs-l1 > .cs-t{font:650 16px/22px var(--sans)}
:is(.gk-chat .gk-transcript,.chat > .transcript):not(:has(.gk-msg,.gk-turn,.msg)) > .cstart.intro > .cs-l1 > .cs-p{display:block;max-width:44ch;white-space:normal;font:400 14px/20px var(--sans);color:var(--text-2)}
:is(.gk-chat .gk-transcript,.chat > .transcript):not(:has(.gk-msg,.gk-turn,.msg)) > .cstart.intro > .cs-m{font:400 13px/18px var(--sans);color:var(--text-2);white-space:normal}

.gk-msg.bot{display:grid;grid-template-columns:28px minmax(0,1fr);column-gap:12px;align-items:start}
.gk-msg.bot > .gk-av{width:28px;height:28px;min-width:28px;font-size:12px;line-height:28px}
.gk-msg.bot > .col{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0}
.gk-msg.bot > .col > .gk-th{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:4px;row-gap:6px;min-height:28px;font:400 13px/18px var(--sans);color:var(--text-2)}
.gk-msg.bot > .col > .gk-th > .who{font:600 14px/20px var(--sans);color:var(--text)}
.gk-msg.bot > .col > .gk-th > .gk-work{display:contents}
.gk-msg.bot > .col > .gk-th > .gk-work > .gk-workh{order:2;display:inline-flex;align-items:center;gap:4px;height:24px;min-height:24px;margin:0 0 0 -4px;padding:0 4px;border:0;border-radius:6px;background:transparent;box-shadow:none;font:400 13px/18px var(--sans);color:var(--text-2);cursor:pointer}
.gk-msg.bot > .col > .gk-th > .gk-work > .gk-workh::before{content:"·";margin:0 4px 0 0;color:var(--text-3)}
.gk-msg.bot > .col > .gk-th > .gk-work > .gk-workh > .car{align-self:center}
.gk-msg.bot > .col > .gk-th > .gk-work > .gk-workh:hover{background:var(--hover);color:var(--text)}
.gk-msg.bot > .col > .gk-th > .gk-work > .gk-workh > .car{display:inline-flex;color:var(--text-3)}
.gk-msg.bot > .col > .gk-th > .tm{order:1;font:400 13px/18px var(--sans);color:var(--text-2);font-variant-numeric:tabular-nums}
.gk-msg.bot > .col > .gk-th > .tm::before{content:"·";margin:0 6px 0 0;color:var(--text-3)}
.gk-msg.bot > .col > .gk-th > .gk-work > .gk-steps{order:3;flex:1 0 100%;margin:2px 0 4px}
.gk-msg.bot > .col > .gk-bubble{margin:0;font-size:15px;line-height:24px}
.gk-msg.bot > .col > .gk-files{margin:2px 0 0}
.gk-msg.bot > .col > .gk-meta:not(:has(> *)){display:none}
.gk-msg.bot > .col > .gk-meta{margin:0}
@media (max-width:700px){
  .gk .gk-chat:not(.gk-group) > .gk-scroll > .gk-transcript .gk-msg.bot > .gk-av{display:inline-grid;place-items:center}
  .gk-msg.bot > .col{grid-column:2}
  .gk-msg.bot{grid-template-columns:24px minmax(0,1fr);column-gap:10px}
  .gk-msg.bot > .gk-av{width:24px;height:24px;min-width:24px;font-size:11px;line-height:24px}
  .gk-msg.bot > .col > .gk-th{min-height:24px}
}

/* the request card: the host inline in its sentence */
.gk-card.gk-egress .ap-h .ap-l1 > .host,:root :is(.gk-dock,.appr-dock) :is(.gk-card.gk-egress,.approval).pending > .ap-h .ap-l1 > .host{display:inline;margin:0;padding:1px 5px;border:1px solid var(--border-soft);border-radius:6px;background:var(--code-bg);font:400 13px/20px var(--mono);color:var(--text);white-space:normal;overflow-wrap:anywhere;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.gk-msg.bot > .col{grid-column:2}
@media (max-width:700px){
  .gk-card.gk-egress .acts > .ap-main{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%}
  .gk-card.gk-egress .acts > .ap-main > button{width:100%;justify-content:center}
  .gk-card.gk-egress .acts{width:100%}
}

/* ==== r27 views ==== */
/* sign-in: one centred card at the optical centre on a faint amber glow; the mark in the card, no corner logo */
.center.au.au1.au27{justify-content:flex-start;padding:max(12vh,48px) 16px 96px;background:radial-gradient(640px 420px at 50% 36%,color-mix(in srgb,var(--accent) 7%,transparent),transparent),var(--bg)}
.center.au.au1.au27 > .au-form{width:400px;max-width:100%;margin:min(14vh,140px) 0 0;padding:32px;border:1px solid var(--border);border-radius:16px;background:var(--surface-1);box-shadow:var(--shadow-overlay)}
.center.au.au1.au27 > .au-form > .au-mark{display:flex;justify-content:center;margin:0 0 16px}
.center.au.au1.au27 > .au-form > .au-mark > .mark-s{zoom:2;margin:0}
.center.au.au1.au27 > .au-form > h1{font:650 22px/28px var(--sans);text-shadow:none}
.center.au.au1.au27 > .au-form > .au-lede{margin-top:6px}
.center.au.au1.au27 > .au-form > button.au-go{margin-top:24px}
.center.au.au1.au27 > .au-form > details.au-more{margin-top:12px}
.center.au.au1.au27 > .au-form > details.au-more > summary{height:36px;font:500 13px/18px var(--sans)}
.center.au.au1.au27 > .au-foot{position:absolute;left:0;right:0;bottom:calc(24px + env(safe-area-inset-bottom));margin:0;font:400 13px/18px var(--sans);color:var(--text-2);text-align:center}
@media (max-width:700px){
  .center.au.au1.au27 > .au-form{margin-top:min(10vh,80px);padding:28px 20px}
}

/* terminal: before a session, the start card alone on the page (no fake shell behind it), 480 px, at the column's
   start on a desktop and full width on a phone */

/* home: cards in a row share one height (a flex column, the activity line at its foot); the name owns the first
   line (it wraps rather than truncates); the state leads the meta line; one quiet lifecycle icon and the chevron */
.home-view .grid.igrid{align-items:stretch;grid-template-columns:repeat(auto-fill,minmax(360px,1fr))}
@media (max-width:700px){.home-view .grid.igrid{grid-template-columns:minmax(0,1fr)}}
.home-view .ipanel{display:flex;flex-direction:column}
.home-view .ipanel > .act{margin-top:auto;padding-top:12px}
.home-view .ipanel > .ip-bots:last-child{margin-bottom:0}
.home-view .ipanel > .ip-h{align-items:flex-start}
.home-view .ipanel > .ip-h > .ip-nw{min-width:0}
.home-view .ipanel > .ip-h > .ip-nw > .ip-n{display:block;min-width:0;overflow:visible;white-space:normal;overflow-wrap:anywhere;font:650 15px/22px var(--sans);color:var(--text)}
.home-view .ipanel > .ip-h > .ip-acts{gap:2px;margin-top:-4px;margin-right:-6px}
.home-view .ipanel > .ip-h > .ip-acts > button.ghost.lc,.home-view .ipanel > .ip-h > .ip-acts > button.ghost.lc:is(:hover,:focus-visible){display:inline-grid;place-items:center;width:32px;height:32px;min-width:32px;min-height:32px;padding:0;gap:0;border:0;border-radius:8px;color:var(--text-2)}
.home-view .ipanel > .ip-h > .ip-acts > button.ghost.lc:hover{background:var(--hover);color:var(--text)}
.home-view .ipanel > .ip-h > .ip-acts > button.ghost.lc > .lt{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.home-view .ipanel > .ip-h > .ip-acts > button.ghost.lc > .ic{width:16px;height:16px}
.home-view .ipanel > .specs > .ip-st > .istate{display:inline-flex;align-items:center;gap:6px;font:400 13px/18px var(--sans);color:var(--text-2)}
.home-view .ipanel > .specs > .ip-st > .istate > .dot{width:7px;height:7px;margin:0}
.home-view .ipanel > .specs > .ip-st > .istate > [class^="st-"]{font:inherit;color:inherit}
.home-view .ipanel > .act > .x > .t{display:inline}
.home-view .ipanel > .act > .x{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal}
.home-view .ipanel > .act code.apath{padding:0;border:0;background:none;font:400 12.5px/18px var(--mono);color:var(--text)}
@media (max-width:700px){
  .home-view .ipanel > .ip-h > .ip-acts > button.ghost.lc,.home-view .ipanel > .ip-h > .ip-acts > button.ghost.lc:is(:hover,:focus-visible){width:40px;height:40px;min-width:40px;min-height:40px;border:0;padding:0}
  .home-view .ipanel > .ip-h > .ip-acts > button.ghost.lc > .lt{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .home-view .ipanel > .ip-h > .ip-acts > button.ib.open{width:40px;height:40px}
}
/* home's waiting request: a callout (warn tint, no stripe); the shield in a soft circle; the host inline in its
   sentence; Review vertically centred (full width under the text on a phone) */
.home-view .ap-notice.ap-notice.ap-notice,.app-page .ap-notice.ap-notice.ap-notice{grid-template-columns:32px minmax(0,1fr) auto;column-gap:12px;align-items:center;box-shadow:none;border:1px solid var(--callout-warn-edge);border-radius:12px;background:var(--callout-warn-bg)}
.home-view .ap-notice.ap-notice > .ap-n-ic,.ap-notice > .ap-n-ic{align-self:start;width:32px;height:32px;margin:0;border-radius:50%;background:var(--warn-soft);color:var(--warn-ink,var(--warn))}
.ap-notice > .ap-n-ic > .ic{width:16px;height:16px}
.home-view .ap-notice.ap-notice > .ap-n-t,.ap-notice > .ap-n-t{padding-top:0}
.home-view .ap-notice.ap-notice > button.ap-n-go,.ap-notice > .ap-n-go{align-self:center}
.ap-notice .ap-n-l1 > code.host,.home-view .ap-notice code.host.code-chip{white-space:normal;overflow-wrap:anywhere;box-decoration-break:clone;-webkit-box-decoration-break:clone;padding:1px 5px}
@media (max-width:700px){
  .home-view .ap-notice.ap-notice.ap-notice,.app-page .ap-notice.ap-notice.ap-notice{grid-template-columns:32px minmax(0,1fr);grid-template-areas:"ic t" "go go";row-gap:12px;padding:14px}
  .home-view .ap-notice.ap-notice > button.ap-n-go,.ap-notice > .ap-n-go{justify-self:stretch;width:100%;height:40px;min-height:40px}
}

/* explainers ("How registration works", "How checkpoints work"): a quiet card — surface-2, no shadow, the card title
   inside, numbered steps in 20 px circles — its top on the main column's first card */
main.app :is(.ws-rail,.pg-rail) > .sec.sec:is(.im-how,.ck-how){box-sizing:border-box;margin:0;padding:18px 20px 20px;border:1px solid var(--border-soft);border-radius:12px;background:var(--surface-2);box-shadow:none}
.sec:is(.im-how,.ck-how) > .sec-h{margin:0 0 12px;padding:0;border:0}
.sec:is(.im-how,.ck-how) > .sec-h h2{margin:0;font:600 15px/20px var(--sans);letter-spacing:0;text-transform:none;color:var(--text)}
.sec:is(.im-how,.ck-how) > .sec-b > .card,.sec:is(.im-how,.ck-how) > .sec-b > section{margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none}
.sec:is(.im-how,.ck-how) ol.steps{display:flex;flex-direction:column;gap:14px;margin:0;padding:0;list-style:none}
.sec:is(.im-how,.ck-how) ol.steps > li{display:grid;grid-template-columns:20px minmax(0,1fr);column-gap:12px;align-items:start;margin:0;padding:0}
.sec:is(.im-how,.ck-how) ol.steps > li > .sn,.sec:is(.im-how,.ck-how) ol.steps > li > .hw-ic{display:inline-grid;place-items:center;width:20px;height:20px;margin:0;border-radius:50%;background:var(--surface-3);font:600 12px/20px var(--sans);color:var(--text);font-variant-numeric:tabular-nums}
.sec:is(.im-how,.ck-how) ol.steps > li > .hw-t{display:flex;flex-direction:column;gap:2px;min-width:0}
.sec:is(.im-how,.ck-how) ol.steps > li > .hw-t > b{font:600 14px/20px var(--sans);color:var(--text)}
.sec:is(.im-how,.ck-how) ol.steps > li > .hw-t > span{font:400 13px/19px var(--sans);color:var(--text-2)}
:root[data-theme="light"] .sec:is(.im-how,.ck-how){background:var(--surface-2)}

/* images: the host path and the hash take the form's full width, each with its helper */
.images-view .imfields{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.images-view .imfields > .fld:has(input.mono){grid-column:1 / -1}
.images-view .imfields .fhelp{margin:6px 0 0;font:400 13px/18px var(--sans);color:var(--text-2)}
@media (max-width:700px){.images-view .imfields{grid-template-columns:minmax(0,1fr)}}

/* history: one control height in the toolbar (the refresh bordered like Filters); By in the primary text; the time
   with its seconds, tabular */
.history-main .hx-bar .hx-acts > button.ib.hx-rf{width:36px;height:36px;min-width:36px;min-height:36px;border:1px solid var(--border-strong);border-radius:8px;color:var(--text-2)}
.history-main .hx-bar .hx-acts > button.ib.hx-rf:hover:not(:disabled){background:var(--hover);color:var(--text)}
.history-main .hx-bar .hx-acts > button.sec.hx-fbtn{height:36px;min-height:36px}
.history-main .hx-row .hx-by{color:var(--text)}
.history-main .hx-row > .hx-t time,.history-main .hx-row > .hx-t .ts-s{font-variant-numeric:tabular-nums;color:var(--text-2)}
.history-main .hx-row > .hx-t .ts-s{color:inherit}
@media (max-width:700px){.history-main .hx-bar .hx-acts > button.ib.hx-rf{width:40px;height:40px;min-width:40px;min-height:40px}}

/* checkpoints: Kind in the regular weight; the row's ⋯ a bordered 32 px icon button; the files a link-button */
.checkpoint-view .ckpt > .ckr > .ck-l > .ck-meta > .chip{font-weight:400;color:var(--text)}
.checkpoint-view .ckpt > .ckr > .ck-m .menu > button.ib.more{width:32px;height:32px;min-width:32px;min-height:32px;border:1px solid var(--border);border-radius:8px}
.checkpoint-view .ckpt > .ckr > .ck-s > button.manifest-t{color:var(--text);font-weight:500}
@media (max-width:700px){
  .checkpoint-view .ck-list .sec-b > .card,.checkpoint-view .ck-list .ck-th + .ckpt{margin-top:0}
  .checkpoint-view .ckpt > .ckr{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:8px;row-gap:0;align-items:start}
  .checkpoint-view .ckpt > .ckr > .ck-ic{display:none}
  .checkpoint-view .ckpt > .ckr > .ck-l{grid-column:1;grid-row:1;display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:flex-start;justify-self:stretch;width:100%;column-gap:0;row-gap:2px;min-width:0;text-align:left}
  .checkpoint-view .ckpt > .ckr > .ck-s::before,.checkpoint-view .ckpt > .ckr > .ck-s > button::before{content:none}
  .checkpoint-view .ckpt > .ckr > .ck-l > .ck-meta > .ck-t > .ck-tl{display:none}
  .checkpoint-view .ckpt > .ckr > .ck-l > h3.sec{flex:1 0 100%;margin:0;white-space:normal;overflow-wrap:anywhere}
  .checkpoint-view .ckpt > .ckr > .ck-l > .ck-cid{flex:1 0 100%;margin:0 0 4px}
  .checkpoint-view .ckpt > .ckr > .ck-l > .ck-meta{display:inline-flex;align-items:center;gap:0;margin:0;font:400 13px/18px var(--sans);color:var(--text-2)}
  .checkpoint-view .ckpt > .ckr > .ck-l > .ck-meta > .chip{height:auto;padding:0;border:0;background:none;font:400 13px/18px var(--sans);color:var(--text-2)}
  .checkpoint-view .ckpt > .ckr > .ck-l > .ck-meta > .ck-t{display:inline-flex;align-items:center}
  .checkpoint-view .ckpt > .ckr > .ck-l > .ck-meta > .ck-t::before,.checkpoint-view .ckpt > .ckr > .ck-l > .ret::before{content:"·";display:inline-block;position:static;margin:0 6px;color:var(--text-3)}
  .checkpoint-view .ckpt > .ckr > .ck-l > .ret{display:inline-flex;align-items:center;margin:0;font:400 13px/18px var(--sans);color:var(--text-2)}
  .checkpoint-view .ckpt > .ckr > .ck-s{grid-column:1 / -1;grid-row:2;margin:6px 0 0}
  .checkpoint-view .ckpt > .ckr > .ck-s > button.manifest-t{height:40px;min-height:40px;margin:0 -6px;padding:0 6px}
  .checkpoint-view .ckpt > .ckr > .ck-m{grid-column:2;grid-row:1}
  .checkpoint-view .ckpt > .ckr > .ck-m .menu > button.ib.more{width:40px;height:40px;min-width:40px;min-height:40px}
}

/* details: the memory meter inside the value column; toasts carry their kind in the glyph only (no edge) */
.gk-details .dx-r > dd > .pv:has(> .dx-memv){display:block;width:100%}
.gk-details .dx-memv{display:flex;flex-direction:column;align-items:stretch;gap:6px;width:100%;min-width:0}
.gk-details .dx-memv > .meter.dx-meter{display:block;width:100%;height:4px;margin:0}
.gk-details .dx-r.has-x > .meter{display:none}
.toasts > .toast.ok,.toasts > .toast.bad,.toasts > .toast.warn,.toasts > .toast{box-shadow:var(--shadow-overlay)}

/* the first-run home: a page-level empty state (the icon in a 56 px circle, the title, one line, Create an instance)
   and the three steps under it; with nothing waiting, the approvals band is one quiet line */
.home-view .fr-wrap{display:flex;flex-direction:column;align-items:center;gap:20px;margin:56px auto 40px;max-width:520px}
.home-view .fr-wrap > .empty-state.first-run{margin:0;gap:12px}
.home-view .fr-wrap > .empty-state.first-run > .es-ic{width:56px;height:56px;border-radius:50%;background:var(--surface-2);color:var(--text-2)}
.home-view .fr-wrap > .empty-state.first-run > .es-ic > .ic{width:24px;height:24px}
.home-view .fr-wrap > .empty-state.first-run > .es-t{padding:0}
.home-view .fr-wrap > .empty-state.first-run > .es-t > b{font:650 16px/22px var(--sans)}
.home-view .fr-wrap > .empty-state.first-run > .es-t > span{max-width:44ch}
.home-view .fr-wrap > .empty-state.first-run > .es-a{margin:8px 0 0}
.home-view .fr-wrap > .empty-state.first-run > .es-a > button.go{height:40px;min-height:40px;padding:0 18px}
.home-view .fr-steps{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 20px;margin:0;padding:0;list-style:none;font:400 13px/18px var(--sans);color:var(--text-2)}
.home-view .fr-steps > li{display:inline-flex;align-items:center;gap:8px;margin:0}
.home-view .fr-steps > li > .n{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--surface-3);font:600 12px/20px var(--sans);color:var(--text);font-variant-numeric:tabular-nums}
.home-view .quiet-band > .approvals.slim.qrow,.approvals.slim.qrow{display:flex;align-items:center;gap:8px;min-height:36px;margin:16px 0 0;padding:0 4px;border:0;border-radius:0;background:none;box-shadow:none}
.approvals.slim.qrow > .es-ic{display:inline-grid;place-items:center;width:16px;height:16px;margin:0;border:0;background:none;color:var(--text-2)}
.approvals.slim.qrow > .es-ic > .ic{width:16px;height:16px}
.approvals.slim.qrow > .sl-t{flex:1 1 auto;min-width:0;font:400 13px/18px var(--sans);color:var(--text-2)}
.approvals.slim.qrow > button.ib.refresh{width:32px;height:32px;min-width:32px;min-height:32px}

/* files: a count line after the rows, the upload hint as a dashed box under it (pointer screens), a folder's size a
   dash; the toolbar's refresh bordered like Upload */
p.fcount{margin:12px 16px 0;padding:0;font:400 13px/18px var(--sans);color:var(--text-2)}
p.fcount > b{font-weight:500;color:var(--text)}
@media (hover:hover) and (min-width:701px){.ftree .fhint.fzone{display:grid;min-height:72px;margin:12px 16px 16px;border-width:1px;border-color:var(--border)}}
.ftree .frow > .sz > .sz-d{visibility:visible;color:var(--text-3)}
.gk-panel .fbar button.ib.fref,.ftree button.ib.fref{width:32px;height:32px;min-width:32px;min-height:32px;border:1px solid var(--border-strong);border-radius:8px;color:var(--text-2)}
.gk-panel .fbar button.ib.fref:hover:not(:disabled){background:var(--hover);color:var(--text)}
@media (max-width:700px){.gk-panel .fbar button.ib.fref,.ftree button.ib.fref{width:40px;height:40px;min-width:40px;min-height:40px}}

/* the classic view: the bots column 232 px (the chat gains the width); its pane headers already share one 56 px line */
@media (min-width:1101px){
  .iview .ibody{grid-template-columns:232px minmax(0,1fr)}
  .iview .ibody.pane{grid-template-columns:232px minmax(0,1fr) clamp(380px,34.4vw,440px)}
  .iview .ibody.pane.wide{grid-template-columns:232px minmax(0,1fr) minmax(480px,56%)}
}

/* the new-instance drawer: the profile's facts as one plain line ("4 vCPU · 2–16 GiB memory · …"); the owner a plain
   read-only row (the label, the name, a lock); More options an eyebrow over a hairline */
.drawer .ni-spec{display:flex;flex-wrap:wrap;gap:0;margin:6px 0 0}
.drawer .ni-spec > span{display:inline;height:auto;padding:0;border-radius:0;background:none;font:400 13px/18px var(--sans);color:var(--text-2);white-space:nowrap}
.drawer .ni-spec > span + span::before{content:"·";margin:0 6px;color:var(--text-3)}
.drawer .ni-spec > span > b{font-weight:400;color:inherit}
:root:root .overlay > .drawer > .db > form.newinst .ni-f.ni-ownf,.drawer .ni-ownf{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:12px;min-height:24px}
.drawer .ni-ownf > .ni-k{flex:none;font:500 14px/20px var(--sans);color:var(--text)}
.drawer .ni-ownf > .ni-v{display:flex;align-items:center;gap:6px;min-width:0;min-height:0;padding:0;border:0;border-radius:0;background:none}
.drawer .ni-ownf > .ni-v > .ic{order:2;flex:none;width:13px;height:13px;color:var(--text-3)}
.drawer .ni-ownf > .ni-v > .ni-vn{color:var(--text);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:400 14px/20px var(--sans)}
.drawer .ni-ownf > .ni-v > .ni-vn > span{color:var(--text-2)}
.drawer .ni-adv{margin-top:24px;padding-top:20px;border-top:1px solid var(--border-soft)}
.ni-adv > legend.eyebrow{float:left;width:100%;margin:0 0 6px;padding:0;font:600 12px/16px var(--sans);letter-spacing:0;color:var(--text-2)}
.ni-adv > legend.eyebrow + *{clear:both}
.ni-rows > .ni-row .d-t > .lt,.ni-rows > details.ni-row > summary .d-t > b{font-weight:500}

/* toasts: 360 px on a desktop, the close a 32 px target */
@media (min-width:701px){.toasts > .toast{width:360px;max-width:calc(100vw - 48px);box-sizing:border-box}}
.toasts > .toast > button.ib.rowact{width:32px;height:32px;min-width:32px;min-height:32px}
@media (max-width:700px){.toasts > .toast > button.ib.rowact{width:40px;height:40px;min-width:40px;min-height:40px}}

/* inline code chips: no brighter than the text around them */
:is(.console,.gk-panel .act-ev,.cev) code:not(.pid){color:var(--text-2)}

/* a light theme's switch off: a visible track and a white knob; a disabled one dimmed (no ring) */
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]) .switch > input[type=checkbox]:not(:checked){background:var(--surface-3);box-shadow:inset 0 0 0 1px var(--border-strong)}
  :root:not([data-theme="dark"]) .switch > input[type=checkbox]:not(:checked)::after{background:#fff;box-shadow:0 1px 2px rgba(64,44,16,.25)}}
:root[data-theme="light"] .switch > input[type=checkbox]:not(:checked){background:var(--surface-3);box-shadow:inset 0 0 0 1px var(--border-strong)}
:root[data-theme="light"] .switch > input[type=checkbox]:not(:checked)::after{background:#fff;box-shadow:0 1px 2px rgba(64,44,16,.25)}
.switch > input[type=checkbox]:disabled,.switch > input[type=checkbox]:disabled:hover{opacity:.45;outline:0;cursor:not-allowed}

/* the phone's ⋯ sheet: the Admin row sits in the rhythm of its siblings */
@media (max-width:700px){.gk-menu .grp.g-adm{padding-top:0;padding-bottom:0}}

/* the account menu's keyboard shortcuts: a quiet legend, not menu items */
.gk-menu .grp.keys{padding:6px 12px 8px}
.gk-menu .grp.keys > .kh{margin:0 0 6px;font:600 12px/16px var(--sans);color:var(--text-2)}
.gk-menu .grp.keys > dl.kl{display:grid;gap:4px;margin:0}
.gk-menu .grp.keys > dl.kl > div{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0}
.gk-menu .grp.keys > dl.kl dt{display:inline-flex;gap:3px;margin:0}
.gk-menu .grp.keys > dl.kl dd{margin:0;font:400 13px/18px var(--sans);color:var(--text-2)}
.gk-menu .grp.keys kbd{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 5px;box-sizing:border-box;border:1px solid var(--border);border-radius:5px;background:var(--surface-2);font:500 12px/18px var(--sans);color:var(--text)}
@media (max-width:899px){.gk-menu .grp.keys{display:none}}

/* bot administration draws its details for both widths; the width picks one */
@media (min-width:701px){.bot-admin-view .ws.ba .ba-ov-m{display:none}}
.card > details.disc.cfg-ph.bare > :not(summary){margin-left:16px;margin-right:16px}
.card > details.disc.cfg-ph.bare > :last-child:not(summary){margin-bottom:16px}
.card > details.disc.cfg-ph.bare > details.disc.cfg-more{margin-left:0;margin-right:0;margin-bottom:0}
@media (max-width:700px){.bot-admin-view .ws.ba > .ws-rail > .sec.ba-ov-w{display:none}.bot-admin-view .ws.ba > .ws-rail:not(:has(> :not(.ba-ov-w))){display:none}}

/* ==== r27r: the critics' round — one idiom per job ==== */
/* the request card's meta line is one tone in the chat and the classic view: "TCP · whole instance · 10 min · 14:08" */
:root :is(.gk-card.gk-egress,.approval) .ap-m.ap-m.ap-m > :is(.ap-scope,.proto,span){display:inline;height:auto;margin:0;padding:0;border:0;border-radius:0;background:none;font:400 13px/18px var(--sans);color:var(--text-2)}
:root :is(.gk-card.gk-egress,.approval) .ap-m.ap-m.ap-m{column-gap:0}
:root :is(.gk-card.gk-egress,.approval) .ap-m.ap-m.ap-m > :first-child::before{content:none}
:root :is(.gk-card.gk-egress,.approval) .ap-m.ap-m.ap-m > * + *::before{content:"·";position:static;width:auto;margin:0 6px;padding:0;color:var(--text-3)}

/* drawers: the footer is pinned to the sheet's foot; content scrolling under it meets a hairline and a soft shadow,
   never a fade over real options */
:root:root .overlay > .drawer .dscroll.dscroll.can-more,:root:root .overlay > .drawer > .db.can-more{-webkit-mask-image:none;mask-image:none}
:root:root:root .overlay > .drawer > .db > :is(form,.dwrap) > .dscroll + .row.row::before,:root:root:root .overlay > .drawer > .db > .dscroll ~ .row.dfoot.dfoot::before,:root:root:root .overlay > .drawer .row.dfoot::before,:root:root:root .overlay > .drawer .db > form > .row:last-child::before{content:none;display:none}
:root:root:root .overlay > .drawer[aria-label^="access ·"] > .db > .dscroll,:root:root .overlay > .drawer > .db > form > .dscroll{flex:1 1 auto}
:root .overlay > .drawer .dscroll.can-more ~ .row.dfoot,:root .overlay > .drawer .dscroll.can-more + .row{box-shadow:0 -1px 0 var(--border),0 -12px 20px -16px rgba(0,0,0,.45)}

/* a short conversation starts at the top (under a 24 px gutter); a long one still follows its end */
:root .gk-chat > .gk-scroll > .gk-transcript:has(.gk-msg,.gk-turn),:root .gk-chat .gk-scroll > .gk-transcript:has(.gk-msg,.gk-turn){margin-top:0}
:root .chat > .transcript:has(.msg) > :first-child,:root .iview .chat > .transcript.transcript:has(.msg) > :first-child{margin-top:0}
:root .chat:has(.transcript .msg) > .transcript > .appr-dock{margin-top:16px}
@media (min-width:701px){:root .gk-chat > .gk-scroll > .gk-transcript:has(.gk-msg,.gk-turn){padding-top:24px}}

/* the composer's focus: one amber edge and a faint ring (it is focused on load; it should not shout) */
:root :is(.chat > .compose > .composer,.gk-compose > .gk-pillbox):focus-within{border-color:color-mix(in srgb,var(--accent) 70%,var(--border));box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 12%,transparent)}

/* descriptions and helper lines wrap without orphans */
:is(p,.vd,.dz-l,.hw-t > span,.fhelp,.hint,.cf-note,.es-t > span,dd){text-wrap:pretty}

/* configuration cards: the last change's text over its time; labels in a 96 px column */
:root:root .ia-ov dl.props > .pr > dd > .pv:has(> .chg-t),:root:root .bot-admin-view dl.props > .pr > dd > .pv:has(> .chg-t){display:flex;flex-direction:column;align-items:flex-start;gap:2px;white-space:normal}
:root:root .ia-ov dl.props > .pr > dd > .pv > .chg-t{display:block;overflow:visible;white-space:normal}
:root:root .ia-ov dl.props > .pr > dd > .pv > .chg-m{display:block;margin:0;font:400 13px/18px var(--sans);color:var(--text-3)}
:root:root .ia-ov dl.props > .pr > dd > .pv > .chg-m::before{content:none}

/* Egress and memory says how a change commits */
.policy-bare .pol-main > p.pol-how{display:flex;align-items:flex-start;gap:8px;margin:16px 0 0;padding:12px 0 0;border-top:1px solid var(--border-soft);font:400 13px/18px var(--sans);color:var(--text-2)}
.policy-bare .pol-main > p.pol-how > .ic{flex:none;width:14px;height:14px;margin:2px 0 0;color:var(--text-3)}

/* the classic phone chat: the first day label clears the bots strip */
:root .iview .chat > .transcript > .day-sep:nth-child(-n+2){margin-top:12px}

/* a light theme's chat: the conversation on the panel's paper (two tones: the sidebar and the work surface) */
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]){--chat-canvas:var(--surface-1)}}
:root[data-theme="light"]{--chat-canvas:var(--surface-1)}
:root:root .iview .ibody{background:var(--chat-canvas)}

/* node administration: the chosen action's consequence under the switch, before its fields */
.node-view .nactions p.cf-note.nact-d{margin:10px 0 16px;font:400 13px/18px var(--sans);color:var(--text-2)}
.node-view .nactions .verbs-g:has(+ .nact-d) > .verbs-d{display:none}

/* history: the Operations | Events switch is the one segmented control (the track, equal raised segment); every
   toolbar control one height; the end of the list a centred caption, not a row */
:root .history-view .hx-bar .segmented.hx-tabs{display:inline-grid;grid-auto-flow:column;grid-auto-columns:minmax(max-content,1fr);height:36px;min-height:36px;box-sizing:border-box;padding:3px;gap:0;border:1px solid var(--border-soft);border-radius:10px;background:var(--seg-track)}
:root .history-view .hx-bar .segmented.hx-tabs > button{height:28px;min-height:28px;padding:0 14px;border:0;border-radius:8px;font:500 14px/20px var(--sans);color:var(--text-2);box-shadow:none}
:root .history-view .hx-bar .segmented.hx-tabs > button.on{background:var(--seg-on);color:var(--text);font-weight:600;box-shadow:var(--seg-on-shadow)}
:root .history-view .hx-bar .segmented.hx-tabs > button:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
@media (max-width:700px){
  :root .history-view .hx-bar .segmented.hx-tabs{height:40px;min-height:40px}
  :root .history-view .hx-bar .segmented.hx-tabs > button{height:32px;min-height:32px}
  .history-main .hx-bar .hx-acts > button.sec.hx-fbtn{height:40px;min-height:40px}
}
:root .history-main .hx-end.hx-end{justify-content:center;min-height:0;margin:0;padding:16px 0 4px;border:0;background:none;font:400 13px/18px var(--sans);color:var(--text-2)}

/* home: the lifecycle action is a labelled quiet button ("Suspend", "Resume"), apart from the open chevron; the latest
   activity sits under a hairline */
:root:root .home-view .ipanel > .ip-h > .ip-acts{gap:6px}
:root:root .home-view .ipanel > .ip-h > .ip-acts > button.ghost.lc,:root:root .home-view .ipanel > .ip-h > .ip-acts > button.ghost.lc:is(:hover,:focus-visible){display:inline-flex;align-items:center;gap:6px;width:auto;min-width:0;height:30px;min-height:30px;padding:0 10px 0 8px;border:1px solid var(--border);border-radius:8px;font:500 13px/18px var(--sans);color:var(--text)}
:root:root .home-view .ipanel > .ip-h > .ip-acts > button.ghost.lc:hover:not(:disabled){background:var(--hover)}
:root:root .home-view .ipanel > .ip-h > .ip-acts > button.ghost.lc > .ic{width:14px;height:14px;color:var(--text-2)}
:root:root .home-view .ipanel > .ip-h > .ip-acts > button.ghost.lc > .lt{position:static;display:inline-block;width:auto;height:auto;overflow:visible;clip-path:none;white-space:nowrap}
:root:root .home-view .ipanel > .ip-h > .ip-acts > button.ghost.lc > .lt::first-letter{text-transform:uppercase}
@media (max-width:700px){:root:root .home-view .ipanel > .ip-h > .ip-acts > button.ghost.lc,:root:root .home-view .ipanel > .ip-h > .ip-acts > button.ghost.lc:is(:hover,:focus-visible){height:36px;min-height:36px;padding:0 12px 0 10px}}
:root .home-view .ipanel > .act{margin-top:auto;padding-top:12px;border-top:1px solid var(--border-soft)}
:root .home-view .ipanel > .ip-bots:has(+ .act){margin-bottom:12px}

/* the classic chat's assistant turn in the chat's own order: the avatar beside a header line (the bot · its time), then
   its work line, the reply and its files (the message and its header become the turn's grid items) */
:root:root .iview .chat > .transcript > .turn{grid-template-columns:28px minmax(0,1fr);column-gap:12px;row-gap:0}
:root:root .iview .chat > .transcript > .turn > .msg.user{grid-row:1}
:root:root .iview .chat > .transcript > .turn > .msg.bot > .gk-av{grid-column:1;grid-row:2;margin-top:0;width:28px;height:28px;min-width:28px}
:root:root .iview .chat > .transcript > .turn > .msg.bot > .mc{display:contents}
:root:root .iview .chat > .transcript > .turn > .msg.bot > .mc > .who{grid-column:2;grid-row:2;order:0;align-self:center;align-items:baseline;min-height:28px;margin:0;gap:0}
:root:root .iview .chat > .transcript > .turn > .msg.bot > .mc > .who > span:first-child{display:inline;font:600 14px/20px var(--sans);color:var(--text)}
:root:root .iview .chat > .transcript > .turn > .msg.bot > .mc > .who > span + span::before,:root:root .iview .chat > .transcript > .turn > .msg.bot > .mc > .who > .dur::before{content:"·";margin:0 6px;color:var(--text-3)}
:root:root .iview .chat > .transcript > .turn > .msg.bot > .mc > .who > span:nth-child(2){font:400 13px/18px var(--sans);color:var(--text-2)}
:root:root .iview .chat > .transcript > .turn > .work{grid-column:2;grid-row:3;margin:2px 0 0}
:root:root .iview .chat > .transcript > .turn > .msg.bot > .mc > .body{grid-column:2;grid-row:4;margin:6px 0 0}
:root:root .iview .chat > .transcript > .turn > .files{grid-column:2;grid-row:5;margin:8px 0 0}
:root:root .iview .chat > .transcript > .turn > .foot{grid-column:2;grid-row:6}
:root:root .iview .chat > .transcript > .turn:not(:has(> .msg.bot)) > :is(.work,.files){grid-row:auto}
@media (max-width:700px){:root:root .iview .chat > .transcript > .turn{grid-template-columns:24px minmax(0,1fr);column-gap:10px}
  :root:root .iview .chat > .transcript > .turn > .msg.bot > .gk-av{width:24px;height:24px;min-width:24px;align-self:center}}

/* Details: a hairline under each card's header; the memory meter spans its value column; no delegated tasks is one
   row (the label and a quiet value), like the rows above it; the phone sheet ends with room under its last row */
:root:root .gk-details.dx .dx-card > .dx-h + *{border-top:1px solid var(--dx-rule,var(--border-soft))}
:root:root .gk-details .dx-memv > .meter.dx-meter{width:100%;max-width:none;align-self:stretch}
:root:root .gk-details .dx-tasks.bare:has(> .empty-state.gk-none){display:grid;grid-template-columns:var(--dx-key,112px) minmax(0,1fr);align-items:baseline;column-gap:0}
:root:root .gk-details .dx-tasks.bare:has(> .empty-state.gk-none) > h5.dx-gh{margin:0;padding:0;font:400 13px/20px var(--sans);letter-spacing:0;text-transform:none;color:var(--text-2)}
:root:root .gk-details .dx-tasks.bare > .empty-state.gk-none{display:block;min-height:0;margin:0;padding:0}
:root:root .gk-details .dx-tasks.bare > .empty-state.gk-none > .es-ic{display:none}
:root:root .gk-details .dx-tasks.bare > .empty-state.gk-none > .es-t{display:block;padding:0}
:root:root .gk-details .dx-tasks.bare > .empty-state.gk-none > .es-t > b{font:400 14px/20px var(--sans);color:var(--text-2)}
@media (max-width:700px){:root .gk-panel .gk-details.dx{padding-bottom:calc(32px + env(safe-area-inset-bottom))}}

/* the ⋯ menu: one spacing between groups (the deletes too); a group's head is its kind, then the name */
:root .gk-menu .pop-scroll > .grp.g-del{margin-top:4px;padding-top:4px}
:root .gk-menu.gk-instm .sec.scope > .sec-k{font-weight:600;color:var(--text-2)}
:root .gk-menu.gk-instm .sec.scope > .sec-n{font-weight:400;color:var(--text-2)}
:root .gk-menu.gk-instm .sec.scope > .sec-n::before{content:"·";margin:0 6px 0 0;color:var(--text-3)}

/* the request card's host sits inline in its sentence in both chats */
:root:root :is(.gk-card.gk-egress,.approval) > .ap-h .ap-hw > .ap-l1{display:block}
:root:root :is(.gk-card.gk-egress,.approval) > .ap-h .ap-l1 > .host{display:inline;margin:0;padding:1px 5px;white-space:normal;overflow-wrap:anywhere;box-decoration-break:clone;-webkit-box-decoration-break:clone}

/* checkpoints on a phone: the retention word follows its separator with no reserved icon space */
@media (max-width:700px){:root .checkpoint-view .ckpt > .ckr > .ck-l > .ret{gap:0;padding:0}:root .checkpoint-view .ckpt > .ckr > .ck-l > .ret > .lt{margin:0;padding:0}}

/* the overview's heading names its control plane quietly after the title (plain text, not a chip) */
:root .cluster.ov .ihead.page h2 > .cp-n{display:inline;height:auto;margin:0 0 0 10px;padding:0;border:0;border-radius:0;background:none;font:400 15px/32px var(--sans);letter-spacing:0;color:var(--text-2);vertical-align:baseline}

/* the phone chat's two bars: 48 px and 44 px (the instance, then the bot and its thread) */
@media (max-width:700px){
  :root:root main.app.gk .gk-bar.ihx{height:48px;min-height:48px}
  :root:root main.app.gk .gk-chat > .gk-chead{height:44px;min-height:44px;padding-top:2px;padding-bottom:2px}
}

/* one inline path token everywhere (home's activity line, the activity timeline): a filled chip, 4 px inside, no
   outer margin, no edge */
:root:root:root:root:root .home-view .ipanel > .act > .x > .xd code.apath,:root:root :is(.console,.gk-panel,.ipanel .act,.home-view .ipanel .act.act) code.apath{display:inline;margin:0;padding:1px 4px;border:0;border-radius:4px;background:var(--code-bg);box-shadow:none;font:400 12.5px/18px var(--mono);color:var(--text)}
/* the activity timeline's end: a caption under the rail (no node, no dashed segment) */
:root .console > .act-end > .act-mk{border:0;background:none}
:root .console > .act-end > .act-mk::before{content:none}
:root .console > .crow:has(+ p.cend)::after,:root .console > .crow:has(+ .act-end)::after{border-left:0}
/* home's cards on a phone: the name centred on its actions; the activity's author inline with what it did */
@media (max-width:700px){
  :root:root .home-view .ipanel > .ip-h{align-items:center}
  :root:root:root:root:root .home-view .ipanel > .act:not(.none){grid-template-columns:16px minmax(0,1fr) auto;grid-template-rows:auto;align-items:start}
  :root:root:root:root:root .home-view .ipanel > .act:not(.none) > .x{grid-column:2;grid-row:1;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;min-width:0}
  :root:root:root:root:root .home-view .ipanel > .act:not(.none) > .x > :is(.t,.xd){display:inline;white-space:normal;overflow:visible}
  :root:root:root:root:root .home-view .ipanel > .act:not(.none) > time.w{grid-column:3;grid-row:1}
}
:root:root .gk-details .dx-tasks.bare:has(> .empty-state.gk-none){grid-template-columns:116px minmax(0,1fr)}

/* sign-in: even padding around the card's content, a crisper shadow, a 40 px Connection details target; on a phone
   the form sits on the page (no card) */

/* the Files toolbar on a phone: the bot pill, refresh and Upload one 36 px height */
@media (max-width:700px){
  :root:root .gk-panel .fbar button.ib.fref,:root:root .ftree button.ib.fref{width:36px;height:36px;min-width:36px;min-height:36px}
  :root:root .gk-panel .fbar > .fbot > select.chipsel,:root:root .ftree .fbar > .fbot > select.chipsel{height:36px;min-height:36px}
}

/* rail cards (Configuration, bot Details): an 88 px label column so values keep to one line */
:root .ws-rail dl.props:not(.pools){--kcol:88px}

/* node administration's subtitle on a phone: the platform on its own muted line */
@media (max-width:700px){
  :root .node-view .mline.nsub{display:flex;flex-wrap:wrap;align-items:center;row-gap:2px}
  :root .node-view .mline.nsub > .nplat{flex:1 0 100%;color:var(--text-2)}
  :root .node-view .mline.nsub > .nplat::before{content:none;display:none}
}

/* checkpoints on a desktop: every data cell in the one body colour (Kind, Created, Retention) */
@media (min-width:701px){:root .checkpoint-view .ckpt > .ckr :is(.ck-t,.ck-t time,.ck-t .ts,.ret > .lt){color:var(--text);font-weight:400}}

/* history: By in the row's body text, the same size as Operation and Target */
@media (min-width:701px){:root:root .history-main .hx-row :is(.hx-by,.hx-who),:root:root .history-main .hx-row :is(.hx-by,.hx-who) *{font:400 14px/20px var(--sans);color:var(--text)}}

/* the classic chat's request card on a phone: Allow and Deny share the card's width, like the chat view's */
@media (max-width:700px){
  :root:root .iview .appr-dock .approval.pending .acts{width:100%}
  :root:root .iview .appr-dock .approval.pending .acts > .ap-main{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%}
  :root:root .iview .appr-dock .approval.pending .acts > .ap-main > button{width:100%;justify-content:center}
}

/* Egress and memory: the select and the number field in one control type size */
@media (min-width:701px){:root:root .policy-bare .pol-fields :is(select,input){font-size:14px}}

/* ==== r28: the vocabulary — one definition per component, against the tokens; it closes the cascade (only the
   reduced-motion tail follows). Amber means "act" or "needs you": primary buttons, approvals and the brand mark. ==== */
/* tokens: muted text a step stronger, neutral focus and selection, the disabled primary as an amber outline, one code
   chip surface, a darker scrim, the status badge tones */
:root{
  --text-2:#c3bdb3; --text-3:#aea89e; --dim:var(--text-2);
  --border:#3d3b36; --raised:#2f2d29; --surface-overlay:#2f2d29;
  --focus:#e6e2da; --focus-line:var(--focus); --focus-outline:2px solid var(--focus);
  --field-focus-edge:var(--text-2); --field-ring:#3a3833; --field-bg:#151413;
  --sel-bg:var(--surface-2); --sel-edge:#8f897f; --rc-on:var(--surface-2); --rc-edge:var(--sel-edge); --opt-ring:var(--text); --opt-dot:var(--text);
  --go-off-bg:#2c261b; --go-off-border:#78561e; --go-off-fg:#e8b360;
  --bad-off-bg:transparent; --bad-off-border:#613837; --bad-off-fg:#d98a86;
  --sec-edge:#57534c; --sec-edge-hover:#6b665e;
  --code-bg:#2f2d29; --code-edge:#3d3b36; --chip-bg:#2f2d29;
  --scrim:rgba(8,7,6,.66); --scrim-sheet:rgba(8,7,6,.66);
  --card-hi:inset 0 1px 0 rgba(255,255,255,.03);
  --b-ok-bg:#26342a; --b-ok:#5fc98d; --b-info-bg:#2b3138; --b-info:#7fb2f0; --b-attn-bg:#3b2f1b; --b-attn:#f0b45a;
  --b-warn-bg:#3d2c23; --b-warn:#ff9b6e; --b-bad-bg:#3d2928; --b-bad:#ff8a8a; --b-n-edge:#57534c;
  --sheet-shadow:0 -12px 40px rgba(0,0,0,.5); --foot-shadow:0 -8px 16px rgba(0,0,0,.25);
  --toast-shadow:0 12px 32px rgba(0,0,0,.45);
  --bubble-user:#34312c; --bubble-mine:#34312c; --bubble-mine-border:#34312c;
}
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]){
  --text-2:#514a3f; --text-3:#5d5549; --dim:var(--text-2);
  --border:#d8cfc0; --raised:#fffdfa; --surface-overlay:#fffdfa;
  --focus:#2f2a24; --focus-line:var(--focus); --focus-outline:2px solid var(--focus);
  --field-focus-edge:var(--text-2); --field-ring:#e6e0d6; --field-bg:#fffdfa;
  --sel-bg:var(--surface-2); --sel-edge:#776e61; --rc-on:var(--surface-2); --rc-edge:var(--sel-edge);
  --go-off-bg:#fef5e8; --go-off-border:#e8b45e; --go-off-fg:#7f4900;
  --bad-off-bg:transparent; --bad-off-border:#e8bcb8; --bad-off-fg:#a3463e;
  --sec-edge:#bbb09e; --sec-edge-hover:#a39784;
  --code-bg:#f1ece4; --code-edge:#e6dfd3; --chip-bg:#f1ece4;
  --scrim:rgba(28,26,23,.48); --scrim-sheet:rgba(28,26,23,.48);
  --card-hi:0 1px 2px rgba(64,44,16,.05);
  --b-ok-bg:#e5efe7; --b-ok:#236535; --b-info-bg:#e5ecf5; --b-info:#28548f; --b-attn-bg:#fdf1dd; --b-attn:#7f4900;
  --b-warn-bg:#fbebe0; --b-warn:#a8420c; --b-bad-bg:#f6e3e0; --b-bad:#b3261e; --b-n-edge:#bbb09e;
  --sheet-shadow:0 -12px 40px rgba(64,44,16,.18); --foot-shadow:0 -8px 16px rgba(64,44,16,.06);
  --toast-shadow:0 12px 32px rgba(64,44,16,.20);
  --bubble-user:#e6dccb; --bubble-mine:#e6dccb; --bubble-mine-border:#e6dccb;
}}
:root[data-theme="light"]{
  --text-2:#514a3f; --text-3:#5d5549; --dim:var(--text-2);
  --border:#d8cfc0; --raised:#fffdfa; --surface-overlay:#fffdfa;
  --focus:#2f2a24; --focus-line:var(--focus); --focus-outline:2px solid var(--focus);
  --field-focus-edge:var(--text-2); --field-ring:#e6e0d6; --field-bg:#fffdfa;
  --sel-bg:var(--surface-2); --sel-edge:#776e61; --rc-on:var(--surface-2); --rc-edge:var(--sel-edge);
  --go-off-bg:#fef5e8; --go-off-border:#e8b45e; --go-off-fg:#7f4900;
  --bad-off-bg:transparent; --bad-off-border:#e8bcb8; --bad-off-fg:#a3463e;
  --sec-edge:#bbb09e; --sec-edge-hover:#a39784;
  --code-bg:#f1ece4; --code-edge:#e6dfd3; --chip-bg:#f1ece4;
  --scrim:rgba(28,26,23,.48); --scrim-sheet:rgba(28,26,23,.48);
  --card-hi:0 1px 2px rgba(64,44,16,.05);
  --b-ok-bg:#e5efe7; --b-ok:#236535; --b-info-bg:#e5ecf5; --b-info:#28548f; --b-attn-bg:#fdf1dd; --b-attn:#7f4900;
  --b-warn-bg:#fbebe0; --b-warn:#a8420c; --b-bad-bg:#f6e3e0; --b-bad:#b3261e; --b-n-edge:#bbb09e;
  --sheet-shadow:0 -12px 40px rgba(64,44,16,.18); --foot-shadow:0 -8px 16px rgba(64,44,16,.06);
  --toast-shadow:0 12px 32px rgba(64,44,16,.20);
  --bubble-user:#e6dccb; --bubble-mine:#e6dccb; --bubble-mine-border:#e6dccb;
}

:root :is(button.sec,button.deny,button.acc-cancel,button.dx-act,button.pg-open,button.go2,.toolrow > button,.cf > button:not(.go,.cf-go,.danger),.dfoot > button:not(.go,.cf-go,.danger)):where(:not(.it,.ib,.send,.gk-send,.verb,[role=menuitem],.items > button,.composer > button)){border:1px solid var(--sec-edge);background:var(--surface-1);color:var(--text)}
:root :is(button.sec,button.deny,button.acc-cancel,button.dx-act,button.pg-open,button.go2,.toolrow > button,.cf > button:not(.go,.cf-go,.danger),.dfoot > button:not(.go,.cf-go,.danger)):where(:not(.it,.ib,.send,.gk-send,.verb,[role=menuitem],.items > button,.composer > button)):hover:not(:disabled){border-color:var(--sec-edge-hover);background:var(--surface-2)}
:root :is(button.sec,button.deny,button.acc-cancel,button.dx-act,button.pg-open,button.go2,.toolrow > button,.cf > button:not(.go,.cf-go,.danger),.dfoot > button:not(.go,.cf-go,.danger)):where(:not(.it,.ib,.send,.gk-send,.verb,[role=menuitem],.items > button,.composer > button)):disabled{border-color:var(--border-soft);background:transparent;color:var(--text-3)}
:root:root button.danger:where(:not(.it,.ib,.verb,[role=menuitem],.items > button)):disabled,
:root:root button.danger[type=submit]:where(:not(.it,.ib,.verb,[role=menuitem])):disabled,
:root:root button.danger[type=submit]:where(:not(.it,.ib,.verb,[role=menuitem])):disabled:hover{border:1px solid var(--bad-off-border);background:var(--bad-off-bg);color:var(--bad-off-fg);font-weight:500;box-shadow:none;opacity:1;cursor:not-allowed}
/* the icon button: borderless, 32 px (40 on a phone), the glyph in the secondary text; pressed or open a neutral fill */
:root:root button.ib:where(:not(.open)),:root:root button.ib.more,:root:root button.ib:is(.refresh,.fref,.hx-rf){border:0;border-radius:8px;background:transparent;box-shadow:none;color:var(--text-2)}
:root:root button.ib:hover:not(:disabled){background:var(--surface-2);color:var(--text)}
:root:root button.ib:is([aria-pressed=true],[aria-expanded=true]){background:var(--surface-3);color:var(--text)}

/* 1.3 focus: one neutral ring */
:root :focus-visible{outline-color:var(--focus)}

/* 1.3 the selected option: a neutral fill and a 1.5 px inset edge in the text tone, the radio filled with the text */

/* 1.3 switches: on is the text tone; disabled dims the whole row */
:root:root .switch > input[type=checkbox]:checked{background:var(--text);box-shadow:none}
:root:root .switch > input[type=checkbox]:checked::after{background:var(--surface-1)}
:root .switch-row:has(input:disabled) > .sw-t > b{color:var(--text-2)}
:root .switch-row > .sw-t > .sw-h{color:var(--text-2)}

:root:root .ihead.page .sub{font:400 14px/20px var(--sans);color:var(--text-2)}
:root:root .sb .sb-label.sb-cnt > .n{font:500 13px/18px var(--sans)}

/* 1.4 the status badge: a soft pill, a 6 px dot and the word in sentence case */
.stb,:root:root .istate.stb{display:inline-flex;align-items:center;gap:6px;box-sizing:border-box;height:22px;min-height:22px;padding:0 8px 0 7px;margin:0;border:0;border-radius:999px;background:transparent;box-shadow:inset 0 0 0 1px var(--b-n-edge);font:500 13px/18px var(--sans);letter-spacing:0;color:var(--text-2);white-space:nowrap;vertical-align:middle;font-variant-numeric:tabular-nums}
:root:root .stb > .dot,:root:root .istate.stb > .dot{flex:none;width:6px;height:6px;min-width:6px;margin:0;border-radius:50%;background:var(--text-3);box-shadow:none;animation:none}
:root:root .stb > span:not(.dot):not(.vh){display:inline-block;font:inherit;color:inherit;text-transform:lowercase}
:root:root .stb > span:not(.dot):not(.vh)::first-letter{text-transform:uppercase}
:root:root .stb.t-ok{background:var(--b-ok-bg);box-shadow:none;color:var(--b-ok)}
:root:root .stb.t-ok > .dot{background:var(--b-ok)}
:root:root .stb.t-info{background:var(--b-info-bg);box-shadow:none;color:var(--b-info)}
:root:root .stb.t-info > .dot{background:var(--b-info)}
:root:root .stb.t-attn{background:var(--b-attn-bg);box-shadow:none;color:var(--b-attn)}
:root:root .stb.t-attn > .dot{background:var(--b-attn)}
:root:root .stb.t-warn{background:var(--b-warn-bg);box-shadow:none;color:var(--b-warn)}
:root:root .stb.t-warn > .dot{background:var(--b-warn)}
:root:root .stb.t-bad{background:var(--b-bad-bg);box-shadow:none;color:var(--b-bad)}
:root:root .stb.t-bad > .dot{background:var(--b-bad)}
:root:root .stb.sm{height:20px;min-height:20px;padding:0 7px 0 6px}

/* 1.7 sheets on a phone: a rounded top, a handle, a darker scrim; the footer a sibling of the scroll body with a
   shadow only while the body scrolls under it */
.overlay{background:var(--scrim)}
@media (max-width:700px){
  :root:root .overlay > .drawer,:root:root .overlay > .drawer:has(.access-view),:root:root .overlay > .drawer:has(.newinst){top:auto;max-height:calc(100dvh - max(56px,8vh));border:0;border-radius:16px 16px 0 0;background:var(--raised);box-shadow:var(--sheet-shadow)}
  :root:root .overlay > .drawer > .grab,:root:root .gk-sheet > .grab{display:block;flex:none;width:36px;height:4px;margin:8px auto 0;border-radius:2px;background:var(--border-strong)}
  :root:root .drawer > .dh{min-height:52px;padding:6px 12px 12px 16px;border-bottom:1px solid var(--border-soft)}
  :root:root .drawer > .dh .dtt{font:600 17px/24px var(--sans)}
  :root:root .drawer .dfoot,:root:root .drawer .db > form > .row:last-child,:root:root .drawer .db > .row:last-child{padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:var(--raised);border-top:1px solid var(--border-soft)}
  :root:root .drawer .dfoot::before,:root:root .drawer .db > form > .row:last-child::before,:root:root .drawer .db > .row:last-child::before{content:none;display:none}
  :root:root .overlay > .drawer .dscroll.can-more ~ .row.dfoot,:root:root .overlay > .drawer .dscroll.can-more + .row,:root:root .overlay > .drawer > .db.can-more > form > .row:last-child{box-shadow:var(--foot-shadow)}
  :root:root .gk-sheet{border-radius:16px 16px 0 0;background:var(--raised);box-shadow:var(--sheet-shadow)}
  :root:root .gk-menu-scrim{background:var(--scrim)}
}

/* 1.8 one code chip: a filled chip, 6 px radius, a hairline, the text colour; mono sized to the sans */
:root:root :is(code.idchip,code.host,code.code-chip,code.apath,.act-d code,.console code:not(.pid),.cev code,.ap-l1 > .host,.ap-n-l1 > code.host,.cf-l > code.idchip,.fhelp code,.hint code,.dz-l code){display:inline;margin:0;padding:1px 6px;border:1px solid var(--code-edge);border-radius:6px;background:var(--code-bg);box-shadow:none;font-family:var(--mono);font-size:13px;font-weight:400;line-height:1.3;color:var(--text);white-space:nowrap;vertical-align:baseline;box-decoration-break:clone;-webkit-box-decoration-break:clone}
:root:root:root:root:root .home-view .ipanel > .act > .x > .xd code.apath,:root:root:root :is(.console,.gk-panel,.ipanel .act,.home-view .ipanel .act.act) code.apath{padding:1px 6px;border:1px solid var(--code-edge);border-radius:6px;background:var(--code-bg);font:400 13px/18px var(--mono);color:var(--text)}
:root:root :is(.gk-card.gk-egress,.approval) > .ap-h .ap-l1 > .host,:root:root:root .gk-card.gk-egress .ap-h .ap-l1 > .host{white-space:normal;overflow-wrap:anywhere;padding:1px 6px;border:1px solid var(--code-edge);background:var(--code-bg);font-size:13px}

/* 1.8 one disclosure: a 48 px row, the title 14/600 over an optional summary, the chevron on the title line */
:root:root details.disc > summary{min-height:48px}
:root:root details.disc > summary .d-t > b{font:600 14px/20px var(--sans);color:var(--text)}
:root:root details.disc > summary .d-t > .d-s{font:400 13px/18px var(--sans);color:var(--text-2)}
:root:root details.disc > summary > .d-ch{width:16px;height:16px;color:var(--text-2)}
:root:root details.disc > summary:hover{background:var(--surface-2)}


/* dark cards separate from the canvas: a 1 px top highlight */
:root .card,:root .sec.in{box-shadow:var(--card-hi)}

/* 1.5 bars: the instance's status dot before its name (the word stays for assistive technology and the tests) */
:root:root .ihx .ih-title > .istate.stb{order:-1;height:auto;min-height:0;padding:0;gap:0;background:none;box-shadow:none}
:root:root .ihx .ih-title > .istate.stb > .dot{width:8px;height:8px;min-width:8px}
:root:root .ihx .ih-title > .istate.stb > span:not(.dot){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
:root:root .ihx .ih-title{gap:8px}
:root:root .ihead.ihx.bot .ih-crumb{flex-direction:row-reverse}
/* the sidebar's toggles are not "pressed" while the sidebar is open */
:root:root:root button.ib.gk-side-tg{background:transparent;color:var(--text-2)}
:root:root:root button.ib.gk-side-tg:hover{background:var(--surface-2);color:var(--text)}
:root:root .pbar > .pb-brand{display:inline-flex;align-items:center;gap:8px}
:root:root .pbar > .pb-brand > b{font:650 15px/20px var(--sans);color:var(--text)}
/* the node row: a real control (its status dot, the name 14/600, a chevron) */
:root:root .sb .sb-sec > .sb-label.sb-node{margin:12px 0 2px;padding:0}
:root:root .sb .sb-label.sb-node > .sb-pick{display:flex;align-items:center;gap:8px;box-sizing:border-box;width:100%;height:36px;margin:0;padding:0 0 0 12px;border-radius:8px}
:root:root .sb .sb-label.sb-node > .sb-pick:hover{background:var(--surface-2)}
:root:root .sb .sb-label.sb-node > .sb-pick > select{flex:1 1 auto;height:36px;min-height:36px;padding:0 28px 0 0;font:600 14px/20px var(--sans)}
:root:root .sb .sb-label.sb-node > .sb-pick > .ic{top:10px;right:10px;width:16px;height:16px}
:root:root .sb .sb-label.sb-node > :is(.sb-pick,.sb-nn) > .dot{flex:none;width:8px;height:8px;margin:0}
:root:root .sb .sb-label.sb-node > .sb-nn{display:flex;align-items:center;gap:8px;height:36px;padding:0 0 0 12px}
/* the admin sidebar lists the node's instances on every admin page */
@media (min-width:900px){:root:root main.app.side-rail.area-admin > nav.sb .sb-adm-inst{display:none}main.app.area-admin:not(.side-rail) > nav.sb .sb-adm-inst{display:block}}

/* 1.7 home's instance cards: one open target (the card), no chevron; the lifecycle verb and the bots above it */
:root:root .home-view .igrid > .card.ipanel{position:relative;gap:12px;padding:18px 20px 18px}
:root:root .home-view .igrid > .card.ipanel:hover{border-color:var(--border-strong);background:var(--surface-1)}
:root:root .home-view .ipanel > .ip-h > button.ib.open.stretch{position:absolute;inset:-1px;z-index:0;display:block;width:auto;height:auto;min-width:0;min-height:0;margin:0;padding:0;border:0;border-radius:12px;background:transparent;box-shadow:none;cursor:pointer}
:root:root .home-view .ipanel > .ip-h > button.ib.open.stretch:hover{background:transparent}
:root:root .home-view .ipanel > .ip-h > button.ib.open.stretch:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
:root:root .home-view .ipanel > .ip-h > .ip-acts,:root:root .home-view .ipanel > .ip-bots > :is(button,.chip){position:relative;z-index:1}
:root:root .home-view .ipanel > .ip-h > .ip-nw > .ip-n{font:600 16px/24px var(--sans)}
:root:root .home-view .ipanel > .ip-h > .ip-acts{margin:0}
:root:root .home-view .ipanel > .ip-h > .ip-acts > button.ghost.lc,:root:root .home-view .ipanel > .ip-h > .ip-acts > button.ghost.lc:is(:hover,:focus-visible){height:32px;min-height:32px;min-width:96px;justify-content:center;padding:0 12px 0 10px;border:1px solid var(--sec-edge);border-radius:8px;background:var(--surface-1);font:500 14px/20px var(--sans);color:var(--text)}
:root:root .home-view .ipanel > .ip-h > .ip-acts > button.ghost.lc:hover:not(:disabled){background:var(--surface-2);border-color:var(--sec-edge-hover)}
:root:root .home-view .ipanel > .ip-h > .ip-acts > button.ghost.lc > .ic{width:16px;height:16px;color:var(--text-2)}
.home-view .ipanel > .ip-meta{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;min-width:0;margin:-4px 0 0}
:root:root .home-view .ipanel > .ip-meta > .specs.mline{display:flex;margin:0;font:400 13px/18px var(--sans);color:var(--text-2)}
:root:root:root:root:root .home-view .ipanel > .act:not(.none) > .x,:root:root .home-view .ipanel > .act > .x{display:block;-webkit-line-clamp:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
:root:root:root:root:root .home-view .ipanel > .act:not(.none) > .x > :is(.t,.xd){display:inline;white-space:nowrap}
:root .home-view .ipanel > .act{display:grid;grid-template-columns:16px minmax(0,1fr) auto;align-items:center;column-gap:8px;font:400 13px/18px var(--sans);color:var(--text-2)}
:root .home-view .ipanel > .act > time.w{font:400 13px/18px var(--sans);color:var(--text-2);font-variant-numeric:tabular-nums}
@media (max-width:700px){
  :root:root .home-view .igrid > .card.ipanel{padding:14px 16px 16px;gap:10px}
  :root:root .home-view .ipanel > .ip-h > .ip-acts > button.ghost.lc,:root:root .home-view .ipanel > .ip-h > .ip-acts > button.ghost.lc:is(:hover,:focus-visible){height:36px;min-height:36px;min-width:0;width:auto;padding:0 12px 0 10px}
  :root:root .home-view .ipanel > .ip-h > .ip-acts > button.ghost.lc > .lt{position:static;width:auto;height:auto;overflow:visible;clip-path:none}
  :root:root:root:root:root .home-view .ipanel > .act:not(.none){grid-template-columns:16px minmax(0,1fr) auto}
}
/* phone tool rows: the whole row is the button (it keeps no box of its own) */
@media (max-width:700px){
  :root:root .toolscard > .toolrow > button,:root:root .toolscard .pol-grant > button.pg-open{border:0;background:transparent;box-shadow:none}
  :root:root .toolscard > .toolrow > button:hover:not(:disabled),:root:root .toolscard .pol-grant > button.pg-open:hover:not(:disabled){background:transparent}
}
/* the phone's page bar: Live lives in the sidebar's foot under 400 px */
@media (max-width:399px){
  :root:root:root .pbar > button.pb-back{width:36px;padding:0;justify-content:center}
  :root:root:root .pbar > button.pb-back > span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
}

/* 1.6 desktop pages in rows: each row's cards stretch to one height, so column bottoms line up. A section card is a
   flex column; its body (and the card or form in it) grows; its footer sits at the bottom. */
@media (min-width:1100px){
  :root:root .rowsgrid{display:grid;grid-template-columns:minmax(0,1fr) 344px;column-gap:24px;row-gap:24px;align-items:stretch}
  :root:root .rowsgrid > :is(.ws-main,.ws-rail,.pg-main,.pg-rail){display:contents}
  /* the instance policy keeps its own box (a region): a subgrid over rows 2-3, its sections placed in it */
  :root:root .instance-admin .rowsgrid > .ws-main > .policy-bare{display:grid;grid-column:1 / -1;grid-row:2 / span 2;grid-template-columns:subgrid;grid-template-rows:subgrid;column-gap:24px;row-gap:24px;margin:0}
  :root:root .instance-admin .rowsgrid > .ws-main > .policy-bare > .sec.ia-pol{grid-column:1;grid-row:1}
  :root:root .instance-admin .rowsgrid > .ws-main > .policy-bare > .sec.ws-tools{grid-column:1 / -1;grid-row:2}
  :root:root .instance-admin .rowsgrid > .ws-rail > .sec.dz-sec{position:relative;z-index:1}
  :root:root .rowsgrid .sec{margin:0;align-self:stretch}
  .rowsgrid .sec.in{display:flex;flex-direction:column}
  .rowsgrid .sec.in > .sec-b{flex:1 1 auto}
  .rowsgrid .sec.in > .sec-b > :is(.card,section,form){flex:1 1 auto;display:flex;flex-direction:column}
  .rowsgrid .sec.in > .sec-b > :is(.card,section) > form{flex:1 1 auto;display:flex;flex-direction:column}
  .rowsgrid :is(form,.card) > footer.cf{margin-top:auto}
  /* instance administration: Lifecycle | Configuration, Egress and memory | Delete, Tools across */
  :root:root .instance-admin > .ws.rowsgrid{grid-template-areas:"life cfg" "pol dz" "tools tools"}
  :root:root .instance-admin .sec.ia-life{grid-area:life}
  :root:root .instance-admin .sec.ia-cfg{grid-area:cfg}
  :root:root .instance-admin .sec.dz-sec{grid-area:dz}
}
/* the danger zone: a neutral card with a 3 px red top edge; the title 16/600, one sentence, the destructive button
   at its foot (right) */
/* instance tools: three tiles across, each its icon, title, line and button at the foot; an opened tool spans the row */
/* 2.15 Lifecycle: one radio list; the unavailable verbs its last rows (muted, a lock, the reason as the line); a
   danger verb's title in the text colour (its commit says danger) */
:root:root .verbs-g > .verbs.cards > button.verb.dz > .vt{color:var(--text)}
:root:root .rowsgrid :is(form,.card) > footer.cf{padding-top:16px}

/* the stat strip is one card: four cells with 1 px dividers, every cell the same footprint (label, value, one foot) */
:root:root :is(.node-view .nres,.cluster.ov) .statstrip-c{gap:0;padding:0;border:1px solid var(--border);border-radius:12px;background:var(--surface-1);box-shadow:var(--card-hi)}
:root:root :is(.node-view .nres,.cluster.ov) .statstrip-c > .sc.mt{padding:16px 20px 18px;border-left:1px solid var(--border-soft)}
:root:root :is(.node-view .nres,.cluster.ov) .statstrip-c > .sc.mt:first-child{border-left:0}
@media (max-width:700px){
  :root:root :is(.node-view .nres,.cluster.ov) .statstrip-c > .sc.mt{padding:14px 16px;border-left:0}
  :root:root :is(.node-view .nres,.cluster.ov) .statstrip-c > .sc.mt:nth-child(even){border-left:1px solid var(--border-soft)}
  :root:root :is(.node-view .nres,.cluster.ov) .statstrip-c > .sc.mt:nth-child(n+3){border-top:1px solid var(--border-soft)}
}
:root .mt > .mt-f > .meter{height:6px;min-height:6px;border-radius:3px}
:root .meter > i{min-width:2px}

/* node administration in rows: Instances | Host, then Drain or freeze | Tools as halves */
@media (min-width:1100px){
  :root:root .node-view > .ws.rowsgrid{grid-template-columns:minmax(0,1fr) calc(50% - 380px) 344px;grid-template-areas:"inst inst host" "drain tools tools";margin-top:24px}
  :root:root .node-view .sec.ninst{grid-area:inst}
  :root:root .node-view .sec.nhost{grid-area:host}
  :root:root .node-view .sec.ndrain{grid-area:drain}
  :root:root .node-view .sec.ntools-s{grid-area:tools}
}
/* the node's instances table: State a badge column; the row is the link (no chevron) */
@media (min-width:701px){
  :root:root .node-view .ninst-t > .nit-h,:root:root .node-view .ninst-t > .nit-r{grid-template-columns:minmax(0,1.3fr) 112px minmax(0,.6fr) minmax(0,1fr) 40px;column-gap:16px}
  :root:root .node-view .ninst-t > .nit-r{min-height:44px}
  :root:root .node-view .ninst-t > .nit-r > .ic{display:none}
}
:root:root .node-view .ninst-t > .nit-r > .nst{display:flex;align-items:center}
:root:root .node-view .ninst-t > .nit-r > :is(.no,.nm){color:var(--text)}
@media (max-width:700px){
  :root:root .node-view .ninst-t > .nit-r{grid-template-columns:minmax(0,1fr) auto 16px;grid-template-areas:"n m c" "s m c";row-gap:4px}
  :root:root .node-view .ninst-t > .nit-r > .nn{grid-area:n}
  :root:root .node-view .ninst-t > .nit-r > .nst{grid-area:s}
  :root:root .node-view .ninst-t > .nit-r > .nm{grid-area:m;align-self:start}
  :root:root .node-view .ninst-t > .nit-r > .ic{grid-area:c}
}
/* host: CPU pools rows with their badge */
:root:root .node-view dl.props.pools .pool-v{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
:root:root .node-view dl.props.pools .pool-v > .pm{font:400 13px/18px var(--sans);color:var(--text-2)}
/* segmented controls: sized to their labels, left-aligned (a phone fills the width) */
@media (min-width:701px){
  :root:root .verbs-g > .verbs.seg{display:inline-grid;grid-auto-columns:max-content;grid-template-columns:none;width:auto;height:36px;min-height:36px}
  :root:root .verbs-g > .verbs.seg > button.verb{height:28px;min-height:28px;padding:0 16px}
}
:root:root .verbs-g > .verbs.seg > button.verb{color:var(--text-2)}
:root:root .verbs-g > .verbs.seg > button.verb.on{color:var(--text)}

/* overview node cards: the card is the link (no chevron), Reachable a badge, the role a neutral badge at the right;
   the address alone in mono */
:root:root .cluster.ov .cluster-node.linked > .ov-nh > a.ov-go{position:absolute;inset:-1px;top:-1px;right:-1px;width:auto;height:auto;margin:0;z-index:0;border-radius:12px;background:transparent}
:root:root .cluster.ov .cluster-node.linked > .ov-nh > a.ov-go::after{content:none}
:root:root .cluster.ov .cluster-node.linked:hover{background:var(--surface-1);border-color:var(--border-strong)}
:root:root .cluster.ov .cluster-node > .ov-nh{padding:18px 20px 12px}
:root:root .cluster.ov .cluster-node > .ov-ms{padding:12px 20px 18px}
:root:root .cluster.ov .cluster-node > .ov-idle{padding:0 20px 18px}
:root:root .cluster.ov .cluster-node .ov-nl{gap:8px}
:root:root .cluster.ov .cluster-node .ov-nl > .stb::before{content:none}
:root:root .cluster.ov .cluster-node .ov-nl > .ov-role{display:inline-flex;align-items:center;height:22px;margin-left:auto;padding:0 8px;border-radius:999px;box-shadow:inset 0 0 0 1px var(--b-n-edge);font:500 13px/18px var(--sans);color:var(--text-2)}
:root:root .cluster.ov .cluster-node .ov-nl > .ov-role::before{content:none}
:root:root .cluster.ov .cluster-node .ov-meta.ov-tech{font:400 13px/18px var(--sans);color:var(--text-2)}
:root:root .cluster.ov .cluster-node .ov-meta.ov-tech > .ov-addr{font:400 13px/18px var(--mono);font-size-adjust:0.52}
:root:root .cluster.ov .ihead.page .ttl .tl > .cp-n,:root .cluster.ov .ihead.page h2 > .cp-n{display:inline-flex;align-items:center;height:24px;margin:0 0 0 10px;padding:0 9px;border-radius:999px;box-shadow:inset 0 0 0 1px var(--b-n-edge);font:500 13px/18px var(--sans);color:var(--text-2);vertical-align:4px}
:root:root .cluster.ov .sec-h.ov-sh h3{font:600 16px/24px var(--sans)}
:root:root .cluster.ov .sec-h.ov-sh h3 > .count{font:500 13px/24px var(--sans);color:var(--text-3)}
@media (max-width:700px){
  :root:root .cluster.ov .cluster-node > .ov-nh{padding:14px 16px 10px}
  :root:root .cluster.ov .cluster-node > .ov-ms{padding:10px 16px 16px}
  :root:root .cluster.ov .cluster-node > .ov-idle{padding:0 16px 16px}
}
/* node administration's drain form: the target across, the deadline and the reason as halves */
@media (min-width:701px){
  :root:root .node-view .nactions .fgrid.nact{grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:16px;row-gap:16px}
  :root:root .node-view .nactions .fgrid.nact > .fld:first-child{grid-column:1 / -1}
  :root:root .node-view .nactions .fgrid.nact > .fld.rsn{grid-column:auto}
}
:root:root .node-view > .nres{margin-bottom:0}

/* checkpoints in rows: the list across, then Checkpoint actions | How checkpoints work (one height) */
@media (min-width:1100px){
  :root:root .checkpoint-view > .pg2.ckpg.rowsgrid{grid-template-areas:"list list" "act how"}
  :root:root .checkpoint-view .rowsgrid .ckcol{display:contents}
  :root:root .checkpoint-view .sec.ck-list{grid-area:list}
  :root:root .checkpoint-view .sec.ck-act{grid-area:act}
  :root:root .checkpoint-view .sec.ck-how{grid-area:how}
  :root:root .checkpoint-view .card.inventory > .ck-th,:root:root .checkpoint-view .ckpt > .ckr{grid-template-columns:minmax(0,1.6fr) 96px 120px 156px 112px 40px;column-gap:16px}
}
/* the retention badge (Auto neutral, Pinned ok); Files a link button; the row's ⋯ a borderless icon button */
:root:root:root .checkpoint-view .ckpt > .ckr .ret.stb{display:inline-flex;gap:6px;height:22px;padding:0 8px 0 7px;font:500 13px/18px var(--sans)}
:root:root:root .checkpoint-view .ckpt > .ckr .ret.stb.t-ok{color:var(--b-ok)}
:root:root:root .checkpoint-view .ckpt > .ckr .ret.stb.t-n{color:var(--text-2)}
:root:root:root .checkpoint-view .ckpt > .ckr .ret.stb > .lt{display:inline-block;text-transform:lowercase;color:inherit;margin:0}
:root:root:root .checkpoint-view .ckpt > .ckr .ret.stb > .lt::first-letter{text-transform:uppercase}
:root:root .checkpoint-view .ckpt > .ckr > .ck-s > button.manifest-t{display:inline-flex;align-items:center;gap:4px;height:32px;margin:0 -8px;padding:0 8px;border-radius:8px;font:500 14px/20px var(--sans);color:var(--text);text-decoration:none}
:root:root .checkpoint-view .ckpt > .ckr > .ck-s > button.manifest-t:hover{background:var(--surface-2)}
:root:root .checkpoint-view .ckpt > .ckr > .ck-s > button.manifest-t > .ic{color:var(--text-2)}
:root:root .checkpoint-view .ckpt > .ckr > .ck-l > .ck-cid{font:400 13px/18px var(--mono);font-size-adjust:0.52;color:var(--text-2);padding:0;border:0;background:none}
/* the explainer: numbered or iconed steps in 24 px circles, the History link pinned to its foot */
:root:root main.app :is(.ws-rail,.pg-rail) > .sec.sec:is(.im-how,.ck-how),:root:root .rowsgrid .sec:is(.im-how,.ck-how){display:flex;flex-direction:column;box-sizing:border-box;margin:0;padding:20px;border:1px solid var(--border);border-radius:12px;background:var(--surface-1);box-shadow:var(--card-hi)}
:root:root .sec:is(.im-how,.ck-how) > .sec-h{margin:0 0 16px}
:root:root .sec:is(.im-how,.ck-how) > .sec-h h2{font:600 16px/24px var(--sans)}
:root:root .sec:is(.im-how,.ck-how) > .sec-b{flex:1 1 auto;display:flex;flex-direction:column}
:root:root .sec:is(.im-how,.ck-how) > .sec-b > :is(.howrow,.explainer){flex:1 1 auto;display:flex;flex-direction:column;padding:0;border:0;background:none;box-shadow:none}
:root:root .sec:is(.im-how,.ck-how) .hows > li > .hw-ic,:root:root .sec:is(.im-how,.ck-how) ol.steps > li > .sn{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--surface-3);font:600 13px/24px var(--sans);color:var(--text)}
:root:root .sec:is(.im-how,.ck-how) ol.steps > li{grid-template-columns:24px minmax(0,1fr)}
:root:root .sec:is(.im-how,.ck-how) .hows > li > .hw-t > span,:root:root .sec:is(.im-how,.ck-how) ol.steps > li > .hw-t > span{font:400 13px/18px var(--sans);color:var(--text-2)}
:root:root :is(.explainer,.howrow) > .ex-foot{margin-top:auto;padding-top:12px}
/* a phone's help: a disclosure row at the top of the task's card */
:root:root .card > details.disc.hhelp{margin:-4px -16px 12px;border-bottom:1px solid var(--border-soft)}
:root:root .card > details.disc.hhelp > summary{padding:8px 16px}
:root:root .card > details.disc.hhelp > .d-b{padding:4px 16px 16px}
@media (max-width:1099px){.checkpoint-view .pg-main{display:flex;flex-direction:column;gap:24px}.checkpoint-view .pg-main > .ckcol{order:-1}}
:root:root:root .checkpoint-view .ckpt > .ckr .ret.stb::before{content:none;display:none}
@media (max-width:700px){:root:root:root .checkpoint-view .ckpt > .ckr > .ck-l > .ret.stb{margin-left:8px}}
@media (min-width:1100px){
  :root:root .rowsgrid .sec.in > .sec-b > .imreg-row{flex:1 1 auto;display:flex;flex-direction:column}
  :root:root .rowsgrid .sec.in > .sec-b > .imreg-row > .card{flex:1 1 auto;display:flex;flex-direction:column;align-self:stretch;width:auto;max-width:none}
  :root:root .rowsgrid .imreg > form{flex:1 1 auto;display:flex;flex-direction:column}
  /* images: the list across, then Register an image | How registration works */
  :root:root .images-view > .ws.imgpg.rowsgrid{grid-template-areas:"list list" "reg how";align-items:stretch}
  :root:root .images-view .sec.im-list{grid-area:list}
  :root:root .images-view .sec.im-reg{grid-area:reg}
  :root:root .images-view .sec.im-how{grid-area:how;position:static}
  :root:root .images-view > .ws.imgpg > .ws-rail{position:static}
  /* bot administration: Actions | Details, then Checkpoints (with the retained conversation) | Delete */
  :root:root .bot-admin-view > .ws.ba.rowsgrid{grid-template-areas:"act det" "ck dz"}
  :root:root .bot-admin-view .sec.ba-act{grid-area:act}
  :root:root .bot-admin-view .sec.ba-ov-w{grid-area:det}
  :root:root .bot-admin-view .sec.ba-ck{grid-area:ck}
  :root:root .bot-admin-view .sec.dz-sec{grid-area:dz}
  :root:root .bot-admin-view .sec.ba-act > .sec-b > .card.o-act{display:flex;flex-direction:column}
  :root:root .bot-admin-view .sec.ba-act > .sec-b > .card.o-act > footer.cf{margin-top:auto}
}
/* the retained conversation: the checkpoints card's closing disclosure row */
:root:root .sec.ba-ck > .sec-b > .convo-in{margin-top:auto;border-top:1px solid var(--border-soft)}
:root:root .sec.ba-ck > .sec-b > .convo-in > .convo-row{margin:0;padding:0;border:0;background:none}
:root:root .sec.ba-ck > .sec-b > .convo-in .convo-t{display:flex;align-items:center;gap:12px;box-sizing:border-box;width:100%;min-height:56px;margin:0;padding:8px 20px;border:0;border-radius:0 0 12px 12px;background:transparent;text-align:left;cursor:pointer}
:root:root .sec.ba-ck > .sec-b > .convo-in .convo-t:hover{background:var(--surface-2)}
:root:root .sec.ba-ck > .sec-b > .convo-in .convo-t > .d-t{flex:1 1 auto;display:flex;flex-direction:column;gap:2px}
:root:root .sec.ba-ck > .sec-b > .convo-in .convo-t > .d-t > b{font:600 14px/20px var(--sans);color:var(--text)}
:root:root .sec.ba-ck > .sec-b > .convo-in .convo-t > .d-t > .d-s{font:400 13px/18px var(--sans);color:var(--text-2)}
@media (max-width:700px){:root:root .sec.ba-ck > .sec-b > .convo-in .convo-t{padding:8px 16px}}
/* the bot's checkpoint form: Keep until deleted on its own row under the label */
:root:root .bot-admin-view .o-act .fgrid.lp{grid-template-columns:minmax(0,1fr)}
:root:root .bot-admin-view .o-act .fgrid.lp > :is(.swf,.ba-keep){grid-column:1 / -1}
:root:root .checkpoint-view .ckform .fgrid.ck3 > .swf{grid-column:1 / -1}

/* the user sidebar: Groups its own section after every instance (a group head and a + icon button) */
:root:root .sb .sb-groups{margin:16px 0 0;padding:0}
:root:root .sb .sb-groups > .gk-groups{max-height:none;margin:0;padding:0;border-top:0}
:root:root .sb .sb-groups .gk-gh{display:flex;align-items:center;justify-content:space-between;min-height:32px;margin:0;padding:0 4px 0 12px}
:root:root .sb .sb-groups .gk-gh .t,:root:root .sb .sb-groups .gk-gh .t > b{font:600 13px/20px var(--sans);color:var(--text-2)}
:root:root .sb .sb-groups .gk-gh .gk-gadd{width:28px;height:28px;min-width:28px;min-height:28px;border:0;border-radius:8px;background:transparent;color:var(--text-2)}
:root:root .sb .sb-groups .gk-gh .gk-gadd:hover:not(:disabled){background:var(--surface-2);color:var(--text)}
:root:root .sb .sb-groups .gk-gnone{margin:0;padding:4px 12px;font:400 13px/18px var(--sans);color:var(--text-3)}
/* Add bot: a ghost row with + at avatar size (dashed is for drop targets only) */
:root:root .sb .gk-side-f > .gk-btn.gk-add{display:flex;align-items:center;gap:12px;width:100%;height:40px;min-height:40px;margin:2px 0 0;padding:0 10px;border:0;border-radius:8px;background:transparent;font:500 14px/20px var(--sans);color:var(--text-2);justify-content:flex-start}
:root:root .sb .gk-side-f > .gk-btn.gk-add > .ic{box-sizing:border-box;width:32px;height:32px;padding:8px;border:0;border-radius:50%;background:var(--surface-2);color:var(--text-2)}
:root:root .sb .gk-side-f > .gk-btn.gk-add::before{content:none;display:none}
:root:root .sb .gk-side-f > .gk-btn.gk-add:hover:not(:disabled){background:var(--surface-2);color:var(--text)}
/* the selected bot's preview gets two lines */
:root:root .sb .gk-row.on > .pv{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;white-space:normal;overflow:hidden}

/* avatar status dots: a 10 px dot with a ring in the surface it sits on, never clipped */
:root:root :is(.gk-av,.av) > :is(.bdot,.st-dot,.mood){overflow:visible}
:root:root :is(.gk-chip,.bchip,.gk-row,.sb-bot,.gk-chead .who){overflow:visible}

/* the chat: the status under the bot's name is a compact badge */
:root:root .gk-chead .istate:not(.stb){display:inline-flex;align-items:center;gap:6px;height:20px;padding:0 7px 0 6px;border-radius:999px;background:var(--surface-2);font:500 13px/18px var(--sans);color:var(--text-2)}
:root:root .gk-chead .istate.warn:not(.stb){background:var(--b-attn-bg);color:var(--b-attn)}
:root:root .gk-chead .istate.ok:not(.stb){background:var(--b-ok-bg);color:var(--b-ok)}
:root:root .gk-chead .istate:not(.stb) > .dot{width:6px;height:6px;margin:0}
:root:root .gk-chead .istate.warn:not(.stb) > .dot{background:var(--b-attn)}
:root:root .gk-chead .istate.ok:not(.stb) > .dot{background:var(--b-ok)}
/* the assistant turn's "Worked … · 2 steps ›": a 24 px pill */
:root:root .gk-msg.bot > .col > .gk-th > .gk-work > .gk-workh{height:24px;margin:0 0 0 4px;padding:0 8px;border-radius:999px;background:var(--surface-2);font:500 13px/18px var(--sans);color:var(--text-2)}
:root:root .gk-msg.bot > .col > .gk-th > .gk-work > .gk-workh::before{content:none}
:root:root .gk-msg.bot > .col > .gk-th > .gk-work > .gk-workh:hover{background:var(--surface-3);color:var(--text)}
/* the send button: amber only with text in it; empty a neutral circle */
:root:root :is(.gk-compose,.chat > .compose) :is(button.gk-send,button.send):disabled{background:var(--surface-2);color:var(--text-3);border-color:transparent;box-shadow:none;opacity:1}
/* the chat header's status: a compact badge (Needs approval attn, Ready ok, Working info, asleep neutral) */
:root:root:root .gk-chead .sub > .gk-mood{display:inline-flex;align-items:center;gap:6px;height:20px;margin:2px 0 0;padding:0 8px 0 7px;border-radius:999px;background:transparent;box-shadow:inset 0 0 0 1px var(--b-n-edge);font:500 13px/18px var(--sans);color:var(--text-2)}
:root:root:root .gk-chead .sub > .gk-mood > .dot{flex:none;width:6px;height:6px;margin:0;box-shadow:none}
:root:root:root .gk-chead .sub > .gk-mood.needs{background:var(--b-attn-bg);box-shadow:none;color:var(--b-attn)}
:root:root:root .gk-chead .sub > .gk-mood.needs > .dot{background:var(--b-attn)}
:root:root:root .gk-chead .sub > .gk-mood.idle{background:var(--b-ok-bg);box-shadow:none;color:var(--b-ok)}
:root:root:root .gk-chead .sub > .gk-mood.idle > .dot{background:var(--b-ok)}
:root:root:root .gk-chead .sub > .gk-mood:is(.working,.creating){background:var(--b-info-bg);box-shadow:none;color:var(--b-info)}
:root:root:root .gk-chead .sub > .gk-mood:is(.working,.creating) > .dot{background:var(--b-info)}
:root:root:root .gk-chead .sub > .gk-mood.blocked{background:var(--b-bad-bg);box-shadow:none;color:var(--b-bad)}
:root:root:root .gk-chead .sub > .gk-mood.blocked > .dot{background:var(--b-bad)}
:root:root .sb .sb-groups .gk-gh{padding-left:9px}
:root:root .sb .sb-groups .gk-gnone{padding-left:9px}

/* the classic view's rail is labelled: each row its icon over a 13 px word (New, Instances, Admin) */
.sb .sb-row > .sb-s{display:none}
/* the classic chat: the turn's work line as the same pill as the chat view's; the request card on the reply's edge */
:root:root:root .iview .chat > .transcript > .turn > .work > .wh{width:auto;display:inline-flex;align-items:center;gap:4px;height:24px;padding:0 8px;border:0;border-radius:999px;background:var(--surface-2);font:500 13px/18px var(--sans);color:var(--text-2)}
:root .iview .side > .add{display:flex;align-items:center;gap:12px}
:root:root .iview .side > .add > .pl{display:inline-grid;place-items:center;width:32px;height:32px;border:0;border-radius:50%;background:var(--surface-2);color:var(--text-2)}
/* the classic header's status line: the same compact badge */
:root:root:root .iview .chat .ch .cht .meta > .bstat{display:inline-flex;align-items:center;gap:6px;height:20px;padding:0 8px 0 7px;border-radius:999px;font:500 13px/18px var(--sans);background:transparent;box-shadow:inset 0 0 0 1px var(--b-n-edge);color:var(--text-2)}
:root:root:root .iview .chat .ch .cht .meta > .bstat.warn{background:var(--b-attn-bg);box-shadow:none;color:var(--b-attn)}
:root:root:root .iview .chat .ch .cht .meta > .bstat.ok{background:var(--b-ok-bg);box-shadow:none;color:var(--b-ok)}
:root:root:root .iview .chat .ch .cht .meta > .bstat > .dot{width:6px;height:6px;margin:0}
:root:root:root .iview .chat .ch .cht .meta > .bstat.warn > .dot{background:var(--b-attn)}
:root:root:root .iview .chat .ch .cht .meta > .bstat.ok > .dot{background:var(--b-ok)}

/* the new-instance drawer: the owner in the subtitle (a lock, "owned by"); the profile's facts as neutral chips */
:root:root .drawer > .dh .dsub:has(> .ni-ctx){white-space:normal;overflow:visible}
:root:root:root .drawer > .dh .dsub > .ni-ctx{display:inline;white-space:normal;overflow-wrap:anywhere;font:400 13px/18px var(--sans);color:var(--text-2)}
:root:root .drawer > .dh .dsub > .ni-ctx > .ic{display:inline-block;width:14px;height:14px;margin:0 6px 0 0;vertical-align:-2px;color:var(--text-2)}
:root:root .drawer > .dh .dsub > .ni-ctx > b{font-weight:600;color:var(--text)}
:root:root .drawer > .dh .dsub > .ni-ctx > .ni-who{color:var(--text-2)}
/* menus and sheets on the raised surface: dividers in the border tone so they read in the dark theme */
:root:root :is(.gk-sheet,.overlay > .drawer) :is(.sh-h,.dh){border-bottom-color:var(--border)}
:root:root .gk-sheet .pop-scroll > .grp + .grp,:root:root .gk-sheet .grp + .grp{border-top-color:var(--border)}
:root:root .overlay > .drawer :is(.dfoot,.db > form > .row:last-child,.db > .row:last-child){border-top-color:var(--border)}
:root:root .drawer .ni-adv{border-top-color:var(--border)}
/* the ⋯ menu's group head: the scope word, one " · ", the name */
:root:root .gk-menu.gk-instm .sec.scope{display:flex;align-items:baseline;gap:0}
:root:root .gk-menu.gk-instm .sec.scope > .sec-n::before{margin:0 6px}

/* history: icon | Operation | Target | Status (a badge) | By | Duration | Time; family-tinted 28 px icon circles; the
   day a 32 px band */
@media (min-width:701px){
  :root:root .history-main .hx-cols,:root:root .history-main .hx-row{grid-template-columns:28px minmax(0,1.1fr) minmax(0,1.3fr) 112px 72px 72px 80px;column-gap:16px}
  :root:root .history-main .hx-row{min-height:48px}
  :root:root .history-main .hx-row > :is(.hx-meta,.hx-res){display:contents}
  :root:root .history-main .hx-row > .hx-ic{grid-column:1}
  :root:root .history-main .hx-row > .hx-op{grid-column:2}
  :root:root .history-main .hx-row .hx-tgt{grid-column:3;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  :root:root .history-main .hx-row .hx-st{grid-column:4;justify-self:start}
  :root:root .history-main .hx-row .hx-by{grid-column:5;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  :root:root .history-main .hx-row .rd{grid-column:6;justify-self:end;text-align:right}
  :root:root .history-main .hx-row > .hx-t{grid-column:7;justify-self:end;text-align:right}
  :root:root .history-main .hx-row > .hx-go{position:absolute;right:4px;top:50%;margin-top:-14px;width:28px;height:28px;min-height:28px;opacity:0}
  :root:root .history-main .hx-row:hover > .hx-go,:root:root .history-main .hx-row > .hx-go:focus-visible{opacity:1}
  :root:root .history-main .hx-row > :is(.hx-ic,.hx-op,.hx-t),:root:root .history-main .hx-row :is(.hx-tgt,.hx-st,.hx-by,.rd){grid-row:1}
  :root:root .history-main .hx-row > .hr-x{grid-column:2 / -1;grid-row:2}
  :root:root .history-main .hx-cols > .c-st{grid-column:4}
  :root:root .history-main .hx-cols > .c-by{grid-column:5}
  :root:root .history-main .hx-cols > .c-d{grid-column:6}
  :root:root .history-main .hx-cols > .c-t{grid-column:7}
}
:root:root .history-main .hx-row{position:relative}
:root:root .history-main .hx-row:hover{background:var(--surface-2)}
:root:root:root .history-op.s-succeeded .hx-st,:root:root .history-main .hx-row .hx-st{position:static;width:auto;height:22px;overflow:visible;clip-path:none}
:root:root .history-main .hx-row .hx-st > .rs{font:inherit}
:root:root .history-main :is(.hx-who,.hx-res > .rd,.hx-row .rd,.hx-t,.hx-t *){color:var(--text-2);font-size:13px}
:root:root .history-main .hx-row > .hx-t time{color:var(--text)}
:root:root .history-main .hx-row > .hx-ic,:root:root .history-main .hx-row > .hx-ic:is(.k-new,.k-msg,.k-ck,.k-egress,.k-life,.k-bad){display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--surface-2);color:var(--text-2)}
:root:root .history-main .hx-row > .hx-ic.k-bad{background:var(--b-bad-bg);color:var(--b-bad)}
:root:root .history-main .hx-day{min-height:32px;margin:0 calc(-1 * var(--card-px,20px));border-top:1px solid var(--hx-line);border-bottom:1px solid var(--hx-line);background:var(--surface-2);font:600 13px/18px var(--sans)}
:root:root .history-main .hx-day > b{color:var(--text)}
:root:root .history-main .hx-day > .dd{font-weight:400;color:var(--text-2)}
:root:root .history-main .hx-end.hx-end{color:var(--text-2)}
@media (max-width:700px){
  :root:root .history-main .hx-row{grid-template-columns:28px minmax(0,1fr) auto;column-gap:12px}
  :root:root .history-main .hx-row > .hx-ic{align-self:start}
  :root:root .history-main .hx-row > .hx-res{display:flex;grid-area:res;justify-content:flex-end}
  :root:root .history-main .hx-row > .hx-res > .rd{display:none}
  :root:root .history-main .hx-row > .hx-t{grid-area:t}
}

/* terminal before a session: the page previews what it opens — a terminal frame (a 36 px title bar over the
   terminal's own dark well, in both themes) with the start card centred in it */

@media (max-width:700px){:root:root:root button.link-btn{height:40px;min-height:40px}}
/* the Details tab's status row: the bot's status as a badge */
:root:root .gk-details .bstat{display:inline-flex;align-items:center;gap:6px;height:22px;padding:0 8px 0 7px;border-radius:999px;box-shadow:inset 0 0 0 1px var(--b-n-edge);font:500 13px/18px var(--sans);color:var(--text-2)}
:root:root .gk-details .bstat.warn{background:var(--b-attn-bg);box-shadow:none;color:var(--b-attn)}
:root:root .gk-details .bstat.ok{background:var(--b-ok-bg);box-shadow:none;color:var(--b-ok)}
:root:root .gk-details .bstat > .dot{width:6px;height:6px;margin:0}
:root:root .gk-details .bstat.warn > .dot{background:var(--b-attn)}
:root:root .gk-details .bstat.ok > .dot{background:var(--b-ok)}
@media (max-width:700px){:root:root .cluster.ov .cluster-node > .ov-ms > .mt:nth-child(3) > .mt-f{display:flex}}

/* activity: every event title in the text colour; nodes are 28 px filled circles on one rail (Turn finished ok-soft) */
:root:root .console > .act-ev .act-t,:root:root .console > .act-ev:is(.k-start,.k-end) .act-t{color:var(--text);font-weight:500}
:root:root .console > .act-ev > .act-mk{box-sizing:border-box;width:28px;height:28px;border:0;border-radius:50%;background:var(--surface-2);color:var(--text-2)}
:root:root .console > .act-ev.k-end:not(.bad) > .act-mk{border:0;background:var(--b-ok-bg);color:var(--b-ok)}
:root:root .console > .act-ev.bad > .act-mk{border:0;background:var(--b-bad-bg);color:var(--b-bad)}
:root:root .console .act-line > :is(.act-m,.act-dur){color:var(--text-2)}
/* the side panel's phone sheet: one surface from the header to the body */
@media (max-width:700px){
  :root:root .gk-main > .gk-panel.gk-panel:not(.expanded),:root:root .gk-main > .gk-panel.gk-panel:not(.expanded) > .gk-ph{background:var(--surface-1);background-image:none}
}

/* sign-in: one composition at the optical centre on the plain canvas (no halo); the tagline 24 px under the card;
   Connection details a full-width row over a hairline */
/* the access drawer: the owner's role a neutral badge at the row's right */
:root:root .drawer .access-view .pn{display:flex;align-items:center;gap:8px}
:root:root .drawer .access-view .pw{flex:1 1 auto;min-width:0}
/* hairlines on raised surfaces (sheets, menus, the terminal's start card) use the stronger border so they read in
   the dark theme */
:root :is(.gk-sheet,.overlay > .drawer,.terminal-page .twin > .t-pre,.gk-menu .pop,.menu > .items,.toasts > .toast){--border-soft:var(--border)}
:root:root:root .ni-rows > .ni-row .d-t > :is(.lt,b),:root:root:root .ni-rows > details.ni-row > summary .d-t > b{font-weight:600;color:var(--text)}
@media (max-width:700px){
  :root:root:root :is(.gk-card.gk-egress,.iview .appr-dock .approval.pending) .acts{display:flex;gap:0}
  :root:root:root :is(.gk-card.gk-egress,.iview .appr-dock .approval.pending) .acts > .ap-main{flex:1 1 100%;width:100%;margin:0}
  :root:root:root :is(.gk-card.gk-egress,.iview .appr-dock .approval.pending) .acts > :not(.ap-main):empty{display:none}
}
:root:root:root .iview .chat > .transcript > .turn > .work{margin-left:0;padding-left:0}
:root:root:root .iview .chat > .transcript > .turn > .work > .wh{margin-left:0}

/* the 13 px floor: sidebar group labels, the account's role, the fake chip, menu scope names, ids and code */
:root:root .sb .sb-label,:root:root .sb .sb-label.sb-cnt{font-size:13px}
:root:root :is(.sb-acct,.gk-acctm) .mw span,:root:root .gk-acctm .gk-mbtn span:not(.mav){font-size:13px}
:root:root :is(.nfake,.gk-menu .sec-n,.act-d,code.idchip,.idchip,code.host,.host > .port,.ck-cid,code.pid){font-size:13px}
:root:root button.go.ap-n-go > .ic{display:none}
:root:root:root .toolscard .tt-st > .tt-s.stb{display:inline-flex;align-items:center;gap:6px;height:22px;padding:0 8px 0 7px;border:0;border-radius:999px;font:500 13px/18px var(--sans)}
:root:root:root .toolscard .tt-st > .tt-s.stb.t-ok{background:var(--b-ok-bg);box-shadow:none;color:var(--b-ok)}
:root:root:root .toolscard .tt-st > .tt-s.stb > .dot{width:6px;height:6px;margin:0;border:0}
/* node administration on a phone: the task first (Drain or freeze), then the instances, the host, the tools */
@media (max-width:1099px){
  :root:root .node-view > .ws{display:flex;flex-direction:column;gap:24px}
  :root:root .node-view > .ws > :is(.ws-main,.ws-rail){display:contents}
  :root:root .node-view .sec.ndrain{order:1}
  :root:root .node-view .sec.ninst{order:2}
  :root:root .node-view > .ws > .ws-rail > :is(.hostcard,.sec.nhost){order:3}
  :root:root .node-view .sec.ntools-s{order:4}
  :root:root .node-view > .ws .sec{margin:0}
}
@media (max-width:700px){:root:root .node-view .nactions details.disc.nmore{margin-bottom:0}:root:root .node-view .nactions details.disc.nmore + *{margin-top:0}}
/* files on a phone: the upload target after the list ("Tap to upload to home"), so the sheet has a purpose */
@media (max-width:700px){
  :root:root .ftree .fhint.fzone{display:grid;min-height:64px;margin:16px;border-width:1px;border-color:var(--border-strong)}
  :root:root .ftree .fhint .fh-d{display:none}
  :root:root .ftree .fhint .fh-m{display:inline}
}
/* under a request that waits: one quiet centred line anchors the column */
:root:root .chat-status.waiting{display:flex;align-items:center;justify-content:center;gap:8px;margin:20px 0 8px;font:400 13px/18px var(--sans);color:var(--text-2)}
:root:root .chat-status.waiting > .dot{width:6px;height:6px;margin:0;background:var(--b-attn)}
@media (max-width:700px){
  :root:root:root .iview .approval.pending .approval-actions{display:flex;gap:0}
  :root:root:root .iview .approval.pending .approval-actions > .ap-main{display:grid;grid-template-columns:1fr 1fr;gap:8px;flex:1 1 100%;width:100%;margin:0}
  :root:root:root .iview .approval.pending .approval-actions > .ap-main > button{width:100%;justify-content:center}
}
:root:root .iview .chat > .transcript > .appr-dock{flex:none}
:root:root .iview .chat > .transcript > .chat-status.waiting{margin-top:16px}
/* a card's closing disclosure sits on the card's foot when the row stretches the card */
@media (min-width:1100px){:root:root .rowsgrid .sec.in > .sec-b > :is(.card,section) > details.disc:last-child{margin-top:auto}}

/* ==== r29: settled components — one definition per component, against the tokens; it closes the cascade (only the
   reduced-motion tail follows). Amber means "act" or "needs you": primary buttons, Allow, the send button with text,
   the approval pill and the request card's shield and edge, the brand mark. ==== */
/* tokens: the disabled primary a neutral fill, a soft red outline for destructive actions, a quiet neutral focus, the
   selection ink, the badge tones, a cooler scrim, the user bubble */
:root{
  --go-off-bg:#3a3732; --go-off-fg:#c3bdb3; --go-off-border:#3a3732; --go-off-hi:inset 0 0 0 1px rgba(255,255,255,.05);
  --bad-edge:#8a4a48; --bad-ink:#ff8a85; --bad-hover:#3d2928;
  --focus:#a8a29a; --focus-line:var(--focus); --focus-outline:2px solid var(--focus);
  --border-focus:#8a847b; --field-focus-edge:#8a847b; --field-ring:#34322e;
  --sel-ink:#d6d0c6; --sel-row:#34312c; --sel-bg:transparent;
  --text-3:#aea89e;
  --b-ok-bg:#1c3325; --b-ok:#7fd49b; --b-info-bg:#1d2b3d; --b-info:#8db8ee; --b-warn-bg:#3a2e17; --b-warn:#f0c06a;
  --b-bad-bg:#3d2322; --b-bad:#ff8f8a; --b-attn-bg:#3b2a12; --b-attn:#ffb547; --b-n-bg:#3a3833; --b-n:#c9c3b9; --b-n-dot:#8a847b;
  --tag-bg:#3a3833; --tag-fg:#c9c3b9;
  --code-bg:#2f2d29; --code-edge:#3d3b36;
  --scrim:rgba(8,7,6,.62); --scrim-sheet:rgba(8,7,6,.62);
  --bubble-user:#302d29; --bubble-mine:#302d29; --bubble-mine-border:#302d29;
  --foot-shadow:0 -8px 16px -8px rgba(0,0,0,.35);
  --dot-ring:var(--surface-1);
}
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]){
  --go-off-bg:#ddd5c8; --go-off-fg:#4a443b; --go-off-border:#ddd5c8; --go-off-hi:inset 0 0 0 1px rgba(0,0,0,.04);
  --bad-edge:#e2aaa5; --bad-ink:#b3261e; --bad-hover:#f9e7e5;
  --focus:#6b6357; --focus-line:var(--focus); --focus-outline:2px solid var(--focus);
  --border-focus:#9a8f80; --field-focus-edge:#9a8f80; --field-ring:#ebe5db;
  --sel-ink:#3d372f; --sel-row:#e9e1d4; --sel-bg:transparent;
  --b-ok-bg:#e3f1e6; --b-ok:#1f6b3a; --b-info-bg:#e5edf8; --b-info:#24528a; --b-warn-bg:#fbf0d9; --b-warn:#7a4d00;
  --b-bad-bg:#fae5e3; --b-bad:#a3261e; --b-attn-bg:#fdebd0; --b-attn:#8a4b00; --b-n-bg:#ebe6dd; --b-n:#4f483e; --b-n-dot:#8f8678;
  --tag-bg:#ebe6dd; --tag-fg:#4f483e;
  --code-bg:#ebe6dd; --code-edge:#e0d8cb;
  --scrim:rgba(17,16,20,.42); --scrim-sheet:rgba(17,16,20,.42);
  --bubble-user:#ebe4d8; --bubble-mine:#ebe4d8; --bubble-mine-border:#ebe4d8;
  --foot-shadow:0 -8px 16px -8px rgba(64,44,16,.12);
}}
:root[data-theme="light"]{
  --go-off-bg:#ddd5c8; --go-off-fg:#4a443b; --go-off-border:#ddd5c8; --go-off-hi:inset 0 0 0 1px rgba(0,0,0,.04);
  --bad-edge:#e2aaa5; --bad-ink:#b3261e; --bad-hover:#f9e7e5;
  --focus:#6b6357; --focus-line:var(--focus); --focus-outline:2px solid var(--focus);
  --border-focus:#9a8f80; --field-focus-edge:#9a8f80; --field-ring:#ebe5db;
  --sel-ink:#3d372f; --sel-row:#e9e1d4; --sel-bg:transparent;
  --b-ok-bg:#e3f1e6; --b-ok:#1f6b3a; --b-info-bg:#e5edf8; --b-info:#24528a; --b-warn-bg:#fbf0d9; --b-warn:#7a4d00;
  --b-bad-bg:#fae5e3; --b-bad:#a3261e; --b-attn-bg:#fdebd0; --b-attn:#8a4b00; --b-n-bg:#ebe6dd; --b-n:#4f483e; --b-n-dot:#8f8678;
  --tag-bg:#ebe6dd; --tag-fg:#4f483e;
  --code-bg:#ebe6dd; --code-edge:#e0d8cb;
  --scrim:rgba(17,16,20,.42); --scrim-sheet:rgba(17,16,20,.42);
  --bubble-user:#ebe4d8; --bubble-mine:#ebe4d8; --bubble-mine-border:#ebe4d8;
  --foot-shadow:0 -8px 16px -8px rgba(64,44,16,.12);
}

/* ---- 2.1 buttons ---- */
/* the disabled primary: the primary's box, size, weight and place in a neutral fill with a readable label (no amber,
   no opacity); the fill says "the primary", the neutral tone says "not yet" */
:root:root:root:root :is(button.go,button.cf-go,a.go):where(:not(.it,.ib,.send,.gk-send,.verb,[role=menuitem],.items > button,.composer > button)):disabled,
:root:root:root:root :is(button.go,button.cf-go,a.go):where(:not(.it,.ib,.send,.gk-send,.verb,[role=menuitem],.items > button,.composer > button)):disabled:hover{border:1px solid var(--go-off-border);background:var(--go-off-bg);color:var(--go-off-fg);font-weight:600;box-shadow:var(--go-off-hi);opacity:1;filter:none;cursor:not-allowed}
:root:root:root:root :is(button.go,button.cf-go):disabled > *{opacity:1;color:inherit}
/* secondary: transparent with a neutral edge (the same box as the primary) */
:root:root :is(button.sec,button.deny,button.acc-cancel,button.dx-act,button.pg-open,button.go2,.toolrow > button,.cf > button:not(.go,.cf-go,.danger),.dfoot > button:not(.go,.cf-go,.danger)):where(:not(.it,.ib,.send,.gk-send,.verb,[role=menuitem],.items > button,.composer > button)){background:transparent}
:root:root :is(button.sec,button.deny,button.acc-cancel,button.dx-act,button.pg-open,button.go2,.toolrow > button,.cf > button:not(.go,.cf-go,.danger),.dfoot > button:not(.go,.cf-go,.danger)):where(:not(.it,.ib,.send,.gk-send,.verb,[role=menuitem],.items > button,.composer > button)):disabled{border-color:var(--border);background:transparent;color:var(--text-2)}
/* destructive: a soft red outline, a soft red fill on hover; solid only when a typed confirmation arms it */
:root:root:root button.danger:where(:not(.it,.ib,.verb,[role=menuitem],.items > button)):not(:disabled){border:1px solid var(--bad-edge);background:transparent;color:var(--bad-ink)}
:root:root:root button.danger:where(:not(.it,.ib,.verb,[role=menuitem],.items > button)):not(:disabled):hover{border-color:var(--bad-edge);background:var(--bad-hover);color:var(--bad-ink)}
:root:root:root button.danger:where(:not(.it,.ib,.verb,[role=menuitem],.items > button)) > .ic{color:inherit}
:root:root:root .drawer button.danger[type=submit]:where(:not(.it,.ib,.verb,[role=menuitem])):not(:disabled),:root:root:root .drawer button.danger[type=submit]:where(:not(.it,.ib,.verb,[role=menuitem])):not(:disabled):hover{border-color:var(--bad-solid);background:var(--bad-solid);color:#fff}
/* icon buttons in a toolbar beside bordered buttons: the secondary, icon-only and square */
:root:root:root :is(.history-main .hx-bar .hx-acts > button.ib.hx-rf,.gk-panel .fbar button.ib.fref,.ftree button.ib.fref,.cluster.ov .ov-sh button.ib.refresh){display:inline-grid;place-items:center;box-sizing:border-box;width:var(--bh);height:var(--bh);min-width:var(--bh);min-height:var(--bh);padding:0;border:1px solid var(--sec-edge);border-radius:8px;background:transparent;color:var(--text-2)}
:root:root:root :is(.history-main .hx-bar .hx-acts > button.ib.hx-rf,.gk-panel .fbar button.ib.fref,.ftree button.ib.fref,.cluster.ov .ov-sh button.ib.refresh):hover:not(:disabled){border-color:var(--sec-edge-hover);background:var(--surface-2);color:var(--text)}
:root:root:root :is(.gk-panel .fbar button.ib.fref,.ftree button.ib.fref){--bh:32px}
@media (max-width:700px){:root:root:root :is(.history-main .hx-bar .hx-acts > button.ib.hx-rf,.cluster.ov .ov-sh button.ib.refresh){--bh:40px}}
/* everywhere else the ghost icon button: borderless, 32 px (40 on a phone), the glyph in the secondary text */
:root:root:root .checkpoint-view .ckpt > .ckr > .ck-m .menu > button.ib.more{border:0;background:transparent;box-shadow:none}
:root:root:root .checkpoint-view .ckpt > .ckr > .ck-m .menu > button.ib.more:hover{background:var(--hover);color:var(--text)}
:root:root button.ib.more,:root:root .menu > button.ib.more{width:32px;height:32px;min-width:32px;min-height:32px}
@media (max-width:700px){:root:root button.ib.more,:root:root .menu > button.ib.more{width:40px;height:40px;min-width:40px;min-height:40px}}
/* the link button: a 32 px row, the label 14/500 in the text colour, a trailing chevron */
:root:root:root :is(.link-btn,button.thist){display:inline-flex;align-items:center;gap:2px;box-sizing:border-box;height:32px;min-height:32px;margin:0 -8px;padding:0 6px 0 8px;border:0;border-radius:8px;background:transparent;box-shadow:none;font:500 14px/20px var(--sans);color:var(--text);cursor:pointer}
:root:root:root :is(.link-btn,button.thist):hover{background:var(--hover);color:var(--text)}
:root:root:root :is(.link-btn,button.thist) > .ic{flex:none;width:14px;height:14px;color:var(--text-2)}
:root:root:root :is(.link-btn,button.thist) > .lt{font:inherit;color:inherit}

/* ---- 2.3 focus: buttons and rows a 2 px neutral outline; fields a neutral edge and a soft 3 px halo ---- */
:root :focus-visible{outline-color:var(--focus)}
:root:root:root:root :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),select,textarea):not(.gk-pillbox textarea,.composer textarea):is(:focus,:focus-visible){outline:none;border-color:var(--field-focus-edge);box-shadow:0 0 0 3px var(--field-ring)}
/* the composer: neutral at rest; on focus the focus edge and the soft halo (never the text colour) */
:root:root:root:root :is(.chat > .compose > .composer,.gk-compose > .gk-pillbox){border:1px solid var(--border);background:var(--surface-1);box-shadow:var(--card-hi),0 1px 3px rgba(0,0,0,.08)}
:root:root:root:root :is(.chat > .compose > .composer,.gk-compose > .gk-pillbox):focus-within{border-color:var(--border-strong);box-shadow:0 0 0 3px var(--field-ring)}

/* ---- 2.4 one badge, one tag ---- */
:root:root:root .stb.t-n,:root:root:root .istate.stb.t-n{background:var(--b-n-bg);box-shadow:none;color:var(--b-n)}
:root:root:root .stb.t-n > .dot,:root:root:root .istate.stb.t-n > .dot{background:var(--b-n-dot);box-shadow:none}
:root:root:root .stb.t-warn{background:var(--b-warn-bg);color:var(--b-warn)}
:root:root:root .stb.t-warn > .dot{background:var(--b-warn)}
:root:root:root .stb{align-self:center}
.tagn,:root:root:root :is(.area-chip,.sb .sb-brand > .sb-area.area-chip,.tag.prole,.nfake){display:inline-flex;align-items:center;box-sizing:border-box;height:22px;min-height:22px;margin:0;padding:0 8px;border:0;border-radius:6px;background:var(--tag-bg);box-shadow:none;font:500 13px/18px var(--sans);letter-spacing:0;text-transform:none;color:var(--tag-fg);white-space:nowrap;vertical-align:middle}
:root:root:root .tag.prole > .lt::first-letter{text-transform:uppercase}

/* ---- 2.2 type: the page title, the section title, the group head, the field label; selects and inputs alike ---- */
:root:root:root :is(.ihead.page h2,.ihead.page h1,.pg-head .ihead.page h2){font:650 24px/32px var(--sans);letter-spacing:-.01em;color:var(--text);text-wrap:balance}
@media (max-width:700px){:root:root:root :is(.ihead.page h2,.ihead.page h1,.pg-head .ihead.page h2){font-size:22px;line-height:28px}}
:root:root:root :is(.sec-h h2,.sec-h h3,.card > h2,.card > .ch > h2,.drawer > .dh .dtt){font:600 16px/24px var(--sans);letter-spacing:0;color:var(--text)}
:root:root:root :is(.sec-h h2,.sec-h h3) > .count{display:inline;margin-left:8px;font:500 13px/24px var(--sans);color:var(--text-3);font-variant-numeric:tabular-nums}
:root:root:root :is(.eyebrow,h3.eyebrow,.props-h,h3.props-h,.dsec-h,.mgl,.ni-adv > legend.eyebrow,.vna-h){font:600 13px/20px var(--sans);letter-spacing:0;text-transform:none;color:var(--text-2)}
:root:root:root :is(select,input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),textarea):not(.gk-pillbox textarea,.composer textarea){font-size:14px}
@media (max-width:700px){:root:root:root :is(select,input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),textarea):not(.gk-pillbox textarea,.composer textarea){font-size:16px}}
:root:root:root input.mono::placeholder,:root:root:root input.mono{font-size-adjust:0.5}

/* ---- 2.3 selection: separate option cards; the chosen one a 1.5 px ink edge and a filled ink radio, no fill ---- */
:root:root:root :is(.verbs-g > .verbs.cards,.scrmodes){display:flex;flex-direction:column;gap:8px;padding:0;border:0;border-radius:0;background:none;box-shadow:none;overflow:visible}
:root:root:root :is(.verbs-g > .verbs.cards > button.verb,.scrmodes > .verb){grid-template-columns:16px minmax(0,1fr);column-gap:12px;min-height:48px;padding:12px 14px;border:1px solid var(--border);border-radius:10px;background:transparent;box-shadow:none;transition:border-color 120ms ease,box-shadow 120ms ease}
:root:root:root :is(.verbs-g > .verbs.cards > button.verb + button.verb,.scrmodes > .verb + .verb){border-top:1px solid var(--border)}
:root:root:root :is(.verbs-g > .verbs.cards > button.verb,.scrmodes > .verb):hover:not(:disabled):not(.on){border-color:var(--border-strong);background:transparent}
:root:root:root :is(.verbs-g > .verbs.cards > button.verb,.scrmodes > .verb).on,:root:root:root :is(.verbs-g > .verbs.cards > button.verb,.scrmodes > .verb).on:hover{border-color:var(--sel-ink);border-radius:10px;background:transparent;box-shadow:0 0 0 .5px var(--sel-ink)}
:root:root:root :is(.verbs-g > .verbs.cards > button.verb,.scrmodes > .verb) > .vdot{align-self:center;width:16px;height:16px;margin:0;border:1.5px solid var(--control-edge);opacity:1}
:root:root:root :is(.verbs-g > .verbs.cards > button.verb:has(> .vd),.scrmodes > .verb:has(> .vd)) > .vdot{align-self:start;margin-top:2px}
:root:root:root :is(.verbs-g > .verbs.cards > button.verb,.scrmodes > .verb).on > .vdot{border-color:var(--text);background:radial-gradient(circle,var(--text) 0 3.5px,transparent 4px)}
:root:root:root :is(.verbs-g > .verbs.cards > button.verb,.scrmodes > .verb):focus-visible{outline:2px solid var(--focus);outline-offset:2px}
:root:root:root .roles-g .verbs.cards > button.verb.on{box-shadow:0 0 0 .5px var(--sel-ink)}
/* the unavailable verbs: under a group head, one compact line each (a lock, the verb, the reason), still radios */
:root:root:root .verbs-g > .verbs.cards > button.verb.na{grid-template-columns:16px auto minmax(0,1fr);grid-template-areas:"d t s";column-gap:12px;align-items:center;min-height:40px;padding:8px 14px;border-style:dashed;border-color:var(--border)}
:root:root:root .verbs-g > .verbs.cards > button.verb.na > .vt{font:500 14px/20px var(--sans);color:var(--text-2)}
:root:root:root .verbs-g > .verbs.cards > button.verb.na > .vt > .ic{flex:none;width:14px;height:14px;color:var(--text-2)}
:root:root:root .verbs-g > .verbs.cards > button.verb.na > .vd{margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--text-2)}
:root:root:root .verbs-g > .verbs.cards > button.verb.na.on{border-style:solid}
/* lifecycle: an available verb on one 48 px line (the radio, the verb, its line) */
/* the segmented control: segments sized to their labels; the inactive labels in the secondary text */
:root:root:root .verbs-g > .verbs.seg{grid-auto-columns:auto}
:root:root:root :is(.segmented,.verbs-g > .verbs.seg) > button{padding:0 14px;color:var(--text-2)}
:root:root:root :is(.segmented,.verbs-g > .verbs.seg) > button.on{color:var(--text)}
:root:root:root .verbs-g > .verbs.seg + .verbs-d,:root:root:root .verbs-g > .verbs-d{margin-top:8px}
@media (max-width:700px){
  :root:root:root .verbs-g > .verbs.seg{grid-template-columns:repeat(var(--n),minmax(0,1fr));height:auto;min-height:40px}
  :root:root:root .verbs-g > .verbs.seg > button{min-height:34px;padding:0 6px;font-size:14px}
}
@media (max-width:420px){:root:root:root .verbs-g > .verbs.seg.n4{grid-auto-flow:row;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:36px;height:auto;min-height:0;row-gap:3px}}

/* ---- 2.8 one code chip; one disclosure ---- */
:root:root:root :is(code.idchip,code.host,code.code-chip,code.apath,.act-d code,.console code:not(.pid),.cev code,.cf-l > code.idchip,.fhelp code,.hint code,.dz-l code){padding:1px 6px;border:1px solid var(--code-edge);border-radius:6px;background:var(--code-bg);font:400 13px/18px var(--mono);font-size-adjust:0.5;color:var(--text);vertical-align:baseline;margin:0 2px}
:root:root:root :is(.fhelp,.hint) > code:first-child{margin-left:0}
:root:root:root details.disc > summary,:root:root:root .drawer .ni-rows > :is(details.ni-row > summary,.ni-row:not(details)){min-height:44px}
@media (max-width:700px){:root:root:root details.disc > summary{min-height:48px}}
:root:root:root details.disc > summary > .d-ch{flex:none;width:16px;height:16px;color:var(--text-2);transition:transform 150ms ease}
:root:root:root details.disc[open] > summary > .d-ch{transform:rotate(180deg)}

/* ---- 2.5 shell ---- */
/* the classic view's sidebar is the sidebar's own collapsed state: 56 px, icon-only, the brand mark where the full
   sidebar has it */
@media (min-width:900px){
  :root:root:root main.app.rail-forced.side-rail{--sb-w:56px}
  :root:root:root main.app.rail-forced.side-rail > nav.sb .sb-top{flex-direction:column;align-items:center;gap:4px;height:auto;min-height:0;padding:12px 0 8px}
  :root:root:root main.app.rail-forced.side-rail > nav.sb .sb-top > .sb-brand{height:28px}
  :root:root:root main.app.rail-forced.side-rail > nav.sb .sb-top > button.gk-side-tg{flex-direction:row;width:40px;height:40px;min-width:40px;min-height:40px;gap:0;border-radius:8px}
  :root:root:root main.app.rail-forced.side-rail > nav.sb .sb-top > button.gk-side-tg::after{content:none}
  :root:root:root main.app.rail-forced.side-rail > nav.sb :is(.sb-prim,.sb-foot) .sb-row{flex-direction:row;justify-content:center;width:40px;height:40px;min-height:40px;padding:0;gap:0;border-radius:8px}
  :root:root:root main.app.rail-forced.side-rail > nav.sb .sb-row > .sb-s{display:none}
  :root:root:root main.app.rail-forced.side-rail > nav.sb .sb-prim{padding:4px 8px;gap:4px;align-items:center}
  :root:root:root main.app.rail-forced.side-rail > nav.sb > .sb-foot{padding:8px 0 12px}
  :root:root:root main.app.rail-forced.side-rail > nav.sb .sb-acct > .gk-acctm > .gk-mbtn{width:40px;height:40px;min-height:40px}
}
/* the instance tab bar: Chat · History, a hairline, then the admin pages */
.subnav > .stab-sep{flex:none;align-self:center;width:1px;height:16px;margin:0 4px;background:var(--border)}
/* phone bars: one 52 px grammar — the nav slot, the identity, the status, the account */
@media (max-width:899px){
  :root:root:root .pbar{gap:8px;padding:0 12px 0 6px}
  :root:root:root .pbar > button.ib.pb-back,:root:root:root .pbar > button.ib.pb-menu{flex:none;display:inline-grid;place-items:center;width:40px;height:40px;min-width:40px;min-height:40px;margin:0;padding:0;border:0;border-radius:8px;background:transparent;color:var(--text)}
  :root:root:root .pbar > button.ib.pb-back:hover,:root:root:root .pbar > button.ib.pb-menu:hover{background:var(--hover)}
  :root:root:root .pbar > button.ib.pb-back > .ic,:root:root:root .pbar > button.ib.pb-menu > .ic{width:20px;height:20px}
  :root:root:root .pbar.pb-adm > .pb-brand > b{display:inline}
  :root:root:root .pbar > .sb-live{display:inline-flex;align-items:center;gap:6px;width:auto;min-width:0;height:28px;padding:0 10px;border:0;border-radius:999px;background:var(--b-ok-bg);font:500 13px/18px var(--sans);color:var(--b-ok)}
  :root:root:root .pbar > .sb-live.off{background:var(--b-attn-bg);color:var(--b-attn)}
  :root:root:root .pbar > .sb-live > .sl{position:static;width:auto;height:auto;overflow:visible;clip-path:none}
  :root:root:root .pbar > .sb-live > .dot{width:6px;height:6px;min-width:6px;margin:0;background:currentColor;box-shadow:none}
}
@media (max-width:359px){:root:root:root .pbar > .sb-live > .sl{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}:root:root:root .pbar > .sb-live{padding:0 8px}}
/* a bot bar on a phone: one line — the avatar, the bot's name, then " · <instance>" in the secondary text */
@media (max-width:899px){
  :root:root:root .ihead.ihx.bot.adm .ih-t{flex-direction:row;align-items:center;gap:0}
  :root:root:root .ihead.ihx.bot.adm .ih-title > .gk-av{display:inline-grid;margin-right:8px}
  :root:root:root .ihead.ihx.bot.adm .ih-t > .ih-l2{flex:0 1 auto;min-width:0}
  :root:root:root .ihead.ihx.bot.adm .ih-t > .ih-l2 > .ih-l2i{font:400 15px/20px var(--sans);color:var(--text-2)}
  :root:root:root .ihead.ihx.bot.adm .ih-t > .ih-l2 > .ih-l2i::before{content:"·";margin:0 6px}
}
/* the grok chat's phone header: one hairline under its second row; Main a ghost select */
@media (max-width:700px){
  :root:root:root .gk .gk-chat > .gk-chead > .gk-threads::before{content:none}
  :root:root:root .gk .gk-chat > .gk-chead > .gk-threads{padding-left:0;margin-left:-4px;border:0;box-shadow:none}
  :root:root:root .gk .gk-chat > .gk-chead > .gk-threads > .gk-thread-pick::before,:root:root:root .gk .gk-chat > .gk-chead > .gk-threads > .gk-thread-pick::after{content:none}
  :root:root:root .gk .gk-chat > .gk-chead > .gk-threads > .gk-thread-pick{height:32px;min-height:32px;margin:0;padding:0 8px;border:0;border-radius:8px;background:transparent;font:500 14px/20px var(--sans);color:var(--text)}
  :root:root:root .gk .gk-chat > .gk-chead > .gk-threads > .gk-thread-pick:hover{background:var(--hover)}
}

/* ---- 2.6 desktop composition: column stacks whose bottoms meet; the danger zone one slim row across ---- */
@media (min-width:1100px){
  :root:root:root .rowsgrid{align-items:stretch}
  :root:root:root :is(.node-view,.bot-admin-view) > .ws.rowsgrid{grid-template-columns:minmax(0,1fr) 344px;grid-template-areas:none;align-items:stretch}
  :root:root:root :is(.node-view,.bot-admin-view) > .ws.rowsgrid > :is(.ws-main,.ws-rail){display:flex;flex-direction:column;align-items:stretch;align-self:stretch;gap:24px;min-width:0}
  :root:root:root .node-view .fgrid.nact{grid-template-columns:repeat(3,minmax(0,1fr));column-gap:16px}
  :root:root:root .node-view .fgrid.nact > .fld.rsn.span2,:root:root:root .node-view .nactions .fgrid.nact > .fld:first-child{grid-column:auto}
  :root:root:root .node-view > .ws.rowsgrid{margin-top:0}
  :root:root:root :is(.node-view,.bot-admin-view) > .ws.rowsgrid > :is(.ws-main,.ws-rail) > :last-child{flex:1 1 auto}
  :root:root:root :is(.node-view,.bot-admin-view) > .ws.rowsgrid > :is(.ws-main,.ws-rail) > .sec.in:last-child > .sec-b{flex:1 1 auto;display:flex;flex-direction:column}
  :root:root:root :is(.node-view,.bot-admin-view) > .ws.rowsgrid > :is(.ws-main,.ws-rail) > .sec.in:last-child > .sec-b > :is(.card,section){flex:1 1 auto;display:flex;flex-direction:column}
  :root:root:root :is(.node-view,.bot-admin-view) > .ws.rowsgrid > :is(.ws-main,.ws-rail) > .sec.in:last-child > .sec-b > :is(.card,section) > form{flex:1 1 auto;display:flex;flex-direction:column}
  :root:root:root .bot-admin-view > .ws.rowsgrid > .ws-foot{grid-column:1 / -1}
  /* instance administration: Lifecycle | Configuration; Egress and memory | Tools (one region across); the danger zone */
  :root:root:root .instance-admin > .ws.rowsgrid{grid-template-areas:"life cfg" "polb polb" "dz dz";grid-template-rows:auto auto auto;align-items:stretch}
  :root:root:root:root:root .instance-admin .rowsgrid > .ws-main > .policy-bare{display:grid;grid-area:polb;grid-template-columns:subgrid;grid-template-rows:auto;column-gap:24px;row-gap:0;margin:0;min-width:0}
  :root:root:root:root:root .instance-admin .rowsgrid > .ws-main > .policy-bare > .sec.ia-pol{grid-column:1;grid-row:1;align-self:stretch;margin:0}
  :root:root:root:root:root .instance-admin .rowsgrid > .ws-main > .policy-bare > .sec.ws-tools{grid-column:2;grid-row:1;align-self:stretch;margin:0}
  :root:root:root .instance-admin .rowsgrid .sec.ia-life{grid-area:life;align-self:stretch}
  :root:root:root .instance-admin .rowsgrid .sec.ia-cfg{grid-area:cfg;align-self:stretch}
  :root:root:root .instance-admin .rowsgrid .sec.dz-sec{grid-area:dz}
  :root:root:root .instance-admin .rowsgrid .pol-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:24px}
  :root:root:root .instance-admin .rowsgrid :is(.sec.ia-pol,.sec.ws-tools,.sec.ia-life,.sec.ia-cfg){display:flex;flex-direction:column}
  :root:root:root .instance-admin .rowsgrid :is(.sec.ia-pol,.sec.ws-tools,.sec.ia-life,.sec.ia-cfg) > .sec-b{flex:1 1 auto;display:flex;flex-direction:column}
  :root:root:root .instance-admin .rowsgrid :is(.sec.ia-pol,.sec.ws-tools,.sec.ia-life,.sec.ia-cfg) > .sec-b > :is(.card,section,form){flex:1 1 auto;display:flex;flex-direction:column}
  :root:root:root .instance-admin .rowsgrid .sec.ia-pol > .sec-b > form > .card.pol-main{flex:1 1 auto;display:flex;flex-direction:column}
  :root:root:root .instance-admin .rowsgrid .sec.ia-pol .pol-how{margin-top:auto}
  :root:root:root .instance-admin .rowsgrid .sec.ia-life #ia-lifecycle > form{flex:1 1 auto;display:flex;flex-direction:column}
  :root:root:root .instance-admin .rowsgrid .sec.ia-life #ia-lifecycle > form > footer.cf{margin-top:auto}
  :root:root:root .instance-admin .rowsgrid .sec.ia-cfg .card.ia-ov > details.cfg-more{margin-top:auto}
  /* checkpoints: the list across, then the actions | how checkpoints work */
  :root:root:root .checkpoint-view > .pg2.ckpg.rowsgrid{grid-template-columns:minmax(0,1fr) 344px;grid-template-areas:"list list" "act how"}
  :root:root:root .checkpoint-view .rowsgrid > .pg-main,:root:root:root .checkpoint-view .rowsgrid > .pg-main > .ckcol,:root:root:root .checkpoint-view .rowsgrid > .pg-rail{display:contents}
  :root:root:root .checkpoint-view .rowsgrid .sec.ck-list{grid-area:list}
  :root:root:root .checkpoint-view .rowsgrid .sec.ck-act{grid-area:act}
  :root:root:root .checkpoint-view .rowsgrid .sec.ck-how{grid-area:how}
  /* images: the form | the registered images over how registration works (the list across once it has rows) */
  :root:root:root .images-view > .ws.imgpg.rowsgrid{grid-template-columns:minmax(0,1fr) 344px;grid-template-areas:"list list" "reg how";grid-template-rows:auto auto}
  :root:root:root .images-view > .ws.imgpg.rowsgrid.im-empty{grid-template-areas:"reg list" "reg how";grid-template-rows:auto 1fr}
  :root:root:root .images-view .rowsgrid > .ws-main,:root:root:root .images-view .rowsgrid > .ws-rail{display:contents}
  :root:root:root .images-view .rowsgrid .sec.im-list{grid-area:list}
  :root:root:root .images-view .rowsgrid .sec.im-reg{grid-area:reg}
  :root:root:root .images-view .rowsgrid .sec.im-how{grid-area:how}
  :root:root:root .images-view .imreg .fgrid.imfields{grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:20px}
  :root:root:root .images-view .imreg .fgrid.imfields > .fld:nth-child(n+3){grid-column:1 / -1}
  :root:root:root :is(.checkpoint-view,.images-view) .rowsgrid :is(.sec.ck-act,.sec.ck-how,.sec.im-reg,.sec.im-how){display:flex;flex-direction:column;align-self:stretch}
  :root:root:root :is(.checkpoint-view,.images-view) .rowsgrid :is(.sec.ck-act,.sec.ck-how,.sec.im-reg,.sec.im-how) > .sec-b{flex:1 1 auto;display:flex;flex-direction:column}
  :root:root:root :is(.checkpoint-view,.images-view) .rowsgrid :is(.sec.ck-act,.sec.ck-how,.sec.im-reg,.sec.im-how) > .sec-b > :is(.card,section,.imreg-row){flex:1 1 auto;display:flex;flex-direction:column}
  :root:root:root .images-view .rowsgrid .imreg-row > .card.imreg{flex:1 1 auto;display:flex;flex-direction:column}
  :root:root:root .images-view .rowsgrid .imreg-row > .card.imreg > form{flex:1 1 auto;display:flex;flex-direction:column}
  :root:root:root .checkpoint-view .rowsgrid .card.ckform > form{flex:1 1 auto;display:flex;flex-direction:column}
  :root:root:root :is(.checkpoint-view,.images-view) .rowsgrid :is(form) > footer.cf{margin-top:auto}
  /* how it works in the rail: the steps stacked, a 24 px disc each (the same disc on both pages) */
  :root:root:root .sec:is(.ck-how,.im-how) > .sec-b > :is(.howrow,.explainer) > .hows{display:flex;flex-direction:column;gap:16px;margin:0;padding:0}
  :root:root:root .sec:is(.ck-how,.im-how) .hows > li{display:grid;grid-template-columns:24px minmax(0,1fr);column-gap:12px;align-items:start;margin:0;padding:0;border:0}
  :root:root:root .sec:is(.ck-how,.im-how) .hows > li > .hw-t{display:flex;flex-direction:column;gap:2px;text-wrap:pretty}
  :root:root:root .sec:is(.ck-how,.im-how) .hows > li > .hw-t > b{font:600 14px/20px var(--sans);color:var(--text)}
  :root:root:root .sec:is(.ck-how,.im-how) .hows > li > .hw-t > span{font:400 13px/18px var(--sans);color:var(--text-2)}
  :root:root:root :is(.explainer,.howrow) > .ex-foot{align-self:flex-start;margin:auto -8px 0;padding-top:16px}
  :root:root:root .node-view .ws-rail dl.props{--kcol:112px}
}
/* a form card's footer is its foot: a hairline, the note at the left and the commit at the right, flush with the
   card's bottom (a stretched card's room sits above it, inside the body) */
:root:root:root:root :is(.instance-admin #ia-lifecycle,.checkpoint-view .card.ckform,.images-view .card.imreg,.bot-admin-view .card.o-act,.node-view .card.nactions) form > footer.cf,
:root:root:root:root :is(.bot-admin-view .card.o-act,.instance-admin .card.pol-main) > footer.cf{margin:24px -20px -20px;padding:14px 20px;border-top:1px solid var(--border-soft);border-radius:0 0 12px 12px;background:var(--surface-2)}
:root:root:root:root .instance-admin .card.pol-main > p.pol-how{display:flex;align-items:center;gap:8px;margin:24px -20px -20px;padding:14px 20px;border-top:1px solid var(--border-soft);border-radius:0 0 12px 12px;background:var(--surface-2);font:400 13px/18px var(--sans);color:var(--text-2)}
/* a stretched card's room sits between its body and its foot; the body keeps one step above the foot */
:root:root:root :is(form,.card.o-act) > :has(+ footer.cf){margin-bottom:24px}
@media (max-width:700px){:root:root:root :is(form,.card.o-act) > :has(+ footer.cf){margin-bottom:20px}}
@media (min-width:1100px){:root:root:root:root :is(.instance-admin #ia-lifecycle,.checkpoint-view .card.ckform,.images-view .card.imreg,.bot-admin-view .card.o-act) form > footer.cf,:root:root:root:root .bot-admin-view .card.o-act > footer.cf{margin-top:auto}:root:root:root:root .instance-admin .card.pol-main > p.pol-how{margin-top:auto}}
@media (max-width:700px){
  :root:root:root:root :is(.instance-admin #ia-lifecycle,.checkpoint-view .card.ckform,.images-view .card.imreg,.bot-admin-view .card.o-act,.node-view .card.nactions) form > footer.cf,
  :root:root:root:root :is(.bot-admin-view .card.o-act,.instance-admin .card.pol-main) > footer.cf,:root:root:root:root .instance-admin .card.pol-main > p.pol-how{margin:20px -16px -16px;padding:12px 16px}
}

/* the one 24 px disc for every "how it works" step (numbers and icons) */
:root:root:root :is(.hows > li > .hw-ic,.steps > li > .sn){display:inline-grid;place-items:center;width:24px;height:24px;min-width:24px;margin:0;padding:0;border:0;border-radius:50%;background:var(--surface-3);font:600 13px/24px var(--sans);color:var(--text-2)}
:root:root:root :is(.hows > li > .hw-ic,.steps > li > .sn) > .ic{width:14px;height:14px}

/* the danger zone: one slim card across the page — a neutral edge, the title and sentence at the left, the
   red-outline button at the right (full width on a phone) */
:root:root:root:root .sec.dz-sec .dzrow{flex:none;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:24px;box-sizing:border-box;margin:0;padding:16px 20px;border:1px solid var(--border);border-radius:12px;background:var(--surface-1);box-shadow:var(--card-hi)}
:root:root:root:root .sec.dz-sec .dzrow > .dz-t{display:flex;flex-direction:column;gap:2px;min-width:0}
:root:root:root:root .sec.dz-sec .dzrow > .dz-t > .dz-h{font:600 15px/22px var(--sans);color:var(--text)}
:root:root:root:root .sec.dz-sec .dzrow > .dz-t > .dz-l{max-width:none;font:400 13px/18px var(--sans);color:var(--text-2);text-wrap:pretty}
:root:root:root:root .sec.dz-sec .dzrow > :is(button.danger,.dz-pick){flex:none;align-self:center;margin:0}
:root:root:root .sec.dz-sec{display:block}
@media (max-width:700px){
  :root:root:root:root .sec.dz-sec .dzrow{flex-direction:column;align-items:stretch;gap:12px;padding:16px}
  :root:root:root:root .sec.dz-sec .dzrow > :is(button.danger,.dz-pick),:root:root:root:root .sec.dz-sec .dzrow > .dz-pick > button{align-self:stretch;width:100%;justify-content:center}
}

/* node administration on a phone and a narrow desktop: every card the column's width; the inventory first, then the
   host, the drain form and the tools */
@media (max-width:1099px){
  :root:root:root .node-view > .ws{align-items:stretch}
  :root:root:root .node-view > .ws > :is(.ws-main,.ws-rail) > *{align-self:stretch;width:auto;max-width:none;min-width:0}
  :root:root:root .node-view .sec.ninst{order:1}
  :root:root:root .node-view > .ws > .ws-rail > :is(.hostcard,.sec.nhost){order:2}
  :root:root:root .node-view .sec.ndrain{order:3}
  :root:root:root .node-view .sec.ntools-s{order:4}
}

/* ---- 2.7 sheets on a phone: a fade where the body scrolls on under the footer; a cooler scrim ---- */
.overlay{background:var(--scrim)}
@media (max-width:700px){
  :root:root:root .overlay > .drawer .dscroll.can-more,:root:root:root .overlay > .drawer > .db.can-more{-webkit-mask-image:linear-gradient(to bottom,#000 calc(100% - 24px),transparent);mask-image:linear-gradient(to bottom,#000 calc(100% - 24px),transparent)}
  :root:root:root .drawer .dfoot,:root:root:root .drawer .db > form > .row:last-child{padding-bottom:max(16px,env(safe-area-inset-bottom))}
  :root:root:root .overlay > .drawer .dscroll.can-more ~ .row.dfoot,:root:root:root .overlay > .drawer .dscroll.can-more + .row{box-shadow:var(--foot-shadow)}
  :root:root:root .drawer .dfoot > button,:root:root:root .drawer .dfoot > :is(.go,.ghost,.sec){flex:1 1 0;min-width:0}
}
/* avatar status dots ring in the colour of what they sit on */
:root:root:root .gk-av > i.b{box-shadow:0 0 0 2px var(--dot-ring)}
:root:root:root :is(.sb .gk-row.on,.iview .side .bot.on){--dot-ring:var(--sel-row)}
:root:root:root .sb{--dot-ring:var(--side-surface,var(--surface-1))}
:root:root:root .chip.bot{--dot-ring:var(--chip-bg)}

/* ---- 2.9 chats ---- */
/* a short thread sits at the bottom, by the composer */
:root:root:root .gk-scroll > .gk-transcript{margin-top:auto}
:root:root:root:root .iview .chat > .transcript::before{content:"";display:block;flex:1 1 auto;min-height:0;height:auto;margin:0;padding:0;border:0;background:none}
/* a request that waits: the card is the state (the bar and the bot's badge repeat it); no detached line */
:root:root:root .chat-status.waiting{display:none}
/* the request card: every line on one left edge (the text column after the 20 px shield) */
:root:root:root :is(.gk-card.gk-egress:not(.rec),.chat-appr > .approval,.appr-dock .approval) > .ap-h{align-items:flex-start;gap:10px}
:root:root:root :is(.gk-card.gk-egress:not(.rec),.chat-appr > .approval,.appr-dock .approval) > .ap-h > .ap-ic{width:20px;height:22px;margin:0;color:var(--b-attn)}
:root:root:root :is(.gk-card.gk-egress:not(.rec),.chat-appr > .approval,.appr-dock .approval) > .ap-h > .ap-ic > .ic{width:16px;height:16px}
:root:root:root :is(.gk-card.gk-egress:not(.rec),.chat-appr > .approval,.appr-dock .approval) > .ap-h > .ap-hw{padding:0}
:root:root:root :is(.gk-card.gk-egress:not(.rec),.chat-appr > .approval,.appr-dock .approval) > .ap-h > details.ap-more{margin:-5px -8px 0 auto}
:root:root:root :is(.gk-card.gk-egress:not(.rec),.chat-appr > .approval,.appr-dock .approval) > :is(.ap-who,.ap-m,.acts,.approval-actions,.ap-reason,.err,.muted,.ap-dec){margin-left:30px}
:root:root:root :is(.gk-card.gk-egress:not(.rec),.chat-appr > .approval,.appr-dock .approval) > .ap-who{margin-top:6px}
@media (max-width:700px){
  :root:root:root :is(.gk-card.gk-egress:not(.rec),.chat-appr > .approval,.appr-dock .approval) > :is(.acts,.approval-actions){margin-left:0}
  :root:root:root :is(.gk-card.gk-egress,.appr-dock .approval.pending) :is(.acts,.approval-actions) > .ap-main{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%}
  :root:root:root :is(.gk-card.gk-egress,.appr-dock .approval.pending) :is(.acts,.approval-actions) > .ap-main > button{width:100%;justify-content:center;height:44px;min-height:44px}
}
/* chat headers (both chats, desktop): the avatar, the name and its compact badge on one line */
@media (min-width:701px){
  :root:root:root .gk-chead .gk-namepill .who{display:flex;flex-direction:row;align-items:center;gap:8px;min-width:0}
  :root:root:root .gk-chead .gk-namepill .who > b{font:600 15px/22px var(--sans)}
  :root:root:root .iview .chat > .ch > .cht{display:flex;flex-direction:row;align-items:center;gap:8px;min-width:0}
  :root:root:root .iview .chat > .ch > .cht > b{font:600 15px/22px var(--sans)}
}
/* the classic phone's bot strip: the chosen chip an ink edge; + a ghost icon */
@media (max-width:1100px){
  :root:root:root:root .iview .chat > .botbar .brow.on,:root:root:root:root .iview .chat > .botbar .brow.on:hover{border:1px solid var(--sel-ink);box-shadow:0 0 0 .5px var(--sel-ink);background:var(--surface-2)}
  :root:root:root:root .iview .chat > .botbar > nav.side > button.add.add{width:40px;height:40px;min-height:40px;border:0;border-radius:8px;background:transparent;color:var(--text-2)}
  :root:root:root:root .iview .chat > .botbar > nav.side > button.add.add:hover{background:var(--hover);color:var(--text)}
  :root:root:root:root .iview .chat > .botbar > nav.side > button.add.add > .pl{width:auto;height:auto;border:0;background:none}
}
/* the classic bots list: the preview on up to two lines */
:root:root:root .iview .side:not(.botbar .side) .brow .bw > .s{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;text-overflow:clip;font:400 13px/18px var(--sans);color:var(--text-2)}
/* the user's bubble: 80 % wide at most */
:root:root:root :is(.gk-msg.me .gk-bubble,.iview .chat .turn > .msg.me){max-width:80%}

/* ---- 2.9.7 toasts: no stripe; a soft-tinted icon well, the title over its detail, the close on the title row ---- */
:root:root:root .toasts > .toast,:root:root:root .toasts > .toast:is(.ok,.bad,.warn){align-items:flex-start;gap:12px;padding:12px 8px 12px 12px;border:1px solid var(--overlay-border);border-radius:12px;background:var(--surface-overlay);box-shadow:var(--shadow-overlay)}
:root:root:root .toasts > .toast > .ti{width:28px;height:28px;min-width:28px;border-radius:8px;background:var(--b-n-bg);color:var(--text-2)}
:root:root:root .toasts > .toast.ok > .ti{background:var(--b-ok-bg);color:var(--b-ok)}
:root:root:root .toasts > .toast.bad > .ti{background:var(--b-bad-bg);color:var(--b-bad)}
:root:root:root .toasts > .toast.warn > .ti{background:var(--b-warn-bg);color:var(--b-warn)}
:root:root:root .toasts > .toast > .ti > .ic{width:16px;height:16px}
:root:root:root .toasts > .toast > .tt{padding-top:4px}
:root:root:root .toasts > .toast > .tt > b{font:600 14px/20px var(--sans)}
:root:root:root .toasts > .toast > .tt > .tb{font:400 13px/18px var(--sans);color:var(--text-2)}
:root:root:root .toasts > .toast > .rowact{align-self:flex-start;width:32px;height:32px;min-width:32px;min-height:32px;margin:-2px 0 0}

/* ---- per view ---- */
/* home: the state after the name; the lifecycle verb a ghost text button; the cards' bots row at their foot */
:root:root:root .home-view .ipanel > .ip-h{align-items:center}
:root:root:root .home-view .ipanel > .ip-h > .ip-nw{display:flex;align-items:center;gap:10px;min-width:0}
:root:root:root .home-view .ipanel > .ip-h > .ip-nw > .ip-n{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
:root:root:root .home-view .ipanel > .ip-h > .ip-nw > .istate{flex:none}
:root:root:root .home-view .ipanel > .ip-h > .ip-acts > button.ghost.lc,:root:root:root .home-view .ipanel > .ip-h > .ip-acts > button.ghost.lc:is(:hover,:focus-visible){min-width:0;height:32px;min-height:32px;padding:0 10px 0 8px;gap:6px;border:0;border-radius:8px;background:transparent;font:500 14px/20px var(--sans);color:var(--text-2)}
:root:root:root .home-view .ipanel > .ip-h > .ip-acts > button.ghost.lc:hover:not(:disabled){background:var(--hover);color:var(--text)}
:root:root:root .home-view .ipanel > .ip-h > .ip-acts > button.ghost.lc > .ic{width:14px;height:14px}
:root:root:root .home-view .ipanel > .ip-meta{margin:-6px 0 0}
:root:root:root .home-view .igrid > .card.ipanel{display:flex;flex-direction:column}
:root:root:root .home-view .ipanel > .usage.mrow.rel{min-height:24px}
:root:root:root .home-view .ipanel > .ip-bots > button.addbot{height:24px;min-height:24px;padding:0 9px 0 7px;border:1px dashed var(--border-strong);border-radius:999px;background:transparent;font:500 13px/18px var(--sans);color:var(--text-2)}
:root:root:root .home-view .ipanel > .ip-bots > button.addbot:hover{border-color:var(--text-3);color:var(--text)}
:root:root:root .home-view .ipanel > .ip-bots > button.addbot > .ic{width:12px;height:12px}
:root:root:root .home-view .ipanel > .act{padding-top:12px;border-top:1px solid var(--border-soft)}
/* the home banner: the shield well, the sentence, the quote and the meta in one column, Review (secondary) at the right */
:root:root:root .ap-notice{display:grid;grid-template-columns:32px minmax(0,1fr) auto;column-gap:12px;align-items:center;padding:16px;border:1px solid var(--border);border-left:3px solid var(--accent);border-radius:12px;background:var(--surface-1)}
:root:root:root .ap-notice > .ap-n-ic{display:inline-grid;place-items:center;align-self:start;width:32px;height:32px;border-radius:8px;background:var(--b-attn-bg);color:var(--b-attn)}
:root:root:root .ap-notice > .ap-n-t{display:flex;flex-direction:column;gap:2px;min-width:0}
:root:root:root .ap-notice > .ap-n-t > .ap-n-q{font:400 14px/20px var(--sans);color:var(--text)}
:root:root:root .ap-notice > .ap-n-t > .ap-n-m{font:400 13px/18px var(--sans);color:var(--text-2)}
:root:root:root .ap-notice > button.ap-n-go{align-self:center}
@media (max-width:700px){
  :root:root:root .ap-notice{grid-template-columns:32px minmax(0,1fr);row-gap:12px}
  :root:root:root .ap-notice > button.ap-n-go{grid-column:1 / -1;width:100%;height:44px;justify-content:center}
}

/* overview: the role a word in the meta line; Open › at the card's right */
:root:root:root .cluster.ov .cluster-node .ov-nh{position:relative;display:flex;align-items:flex-start;gap:16px}
:root:root:root .cluster.ov .cluster-node .ov-nh > .ov-id{flex:1 1 auto;min-width:0}
:root:root:root .cluster.ov .cluster-node .ov-open{flex:none;display:inline-flex;align-items:center;gap:2px;height:32px;margin:-4px -8px 0 0;padding:0 6px 0 10px;border-radius:8px;font:500 14px/20px var(--sans);color:var(--text)}
:root:root:root .cluster.ov .cluster-node .ov-open > .ic{color:var(--text-2)}
:root:root:root .cluster.ov .cluster-node.linked:hover .ov-open{background:var(--hover)}
:root:root:root .cluster.ov .cluster-node .ov-meta > .ov-addr{font:400 13px/18px var(--mono);font-size-adjust:0.5}
:root:root:root .cluster.ov .ov-sh{align-items:center}
:root:root:root .cluster.ov .ov-sh > .upd-w{display:flex;align-items:center;gap:12px}
:root:root:root .cluster.ov .ihead.page .sub b.cp-sub{font-weight:600;color:var(--text)}
:root:root:root .mt > .mt-f{min-height:20px;display:flex;align-items:center}
@media (max-width:700px){:root:root:root .cluster.ov .ihead.page{margin-top:12px}}

/* node administration: the chips at the title's right; the subtitle plain text; 24 px under the stat strip; the
   drain form's line 8 px under its control */
:root:root:root .node-view > .nres{margin-bottom:24px}
:root:root:root .node-view .nactions .verbs-g{margin-bottom:0}
:root:root:root .node-view .nactions p.cf-note.nact-d{margin:8px 0 20px;font:400 13px/18px var(--sans);color:var(--text-2)}
:root:root:root .node-view .ihead.page{align-items:flex-start}
:root:root:root .node-view .ihead.page > .hlinks > .nh-chips{display:inline-flex;align-items:center;gap:8px;margin-top:5px}
:root:root:root .node-view .ihead.page .nsub > .nn{font-weight:600;color:var(--text)}

/* tool rows: the whole row is the control (its button has no box of its own); the row's hover is a quiet fill */
:root:root:root .toolscard > .toolrow > button,:root:root:root .toolscard .pol-grant > button.pg-open{border:0;background:transparent;box-shadow:none}
:root:root:root .toolscard > .toolrow > button:hover:not(:disabled),:root:root:root .toolscard .pol-grant > button.pg-open:hover:not(:disabled){background:var(--hover)}
:root:root:root .toolscard > .toolrow,:root:root:root .toolscard > .pol-grant-c:not(.open) > .pol-grant,:root:root:root .toolscard > section.tool > details > summary{margin:0 -8px;padding-left:8px}
:root:root:root .toolscard > .toolrow > button,:root:root:root .toolscard .pol-grant > button.pg-open{z-index:0}
:root:root:root .toolscard > .toolrow > :not(button),:root:root:root .toolscard > .pol-grant-c:not(.open) > .pol-grant > :not(button){position:relative;z-index:1;pointer-events:none}
:root:root:root .toolscard > section.tool > details > summary:hover{background:var(--hover);border-radius:8px}

/* files: the list in a card with its count as the card's foot; desktop drops on a quiet dashed row, a phone taps a
   dashed tile */
:root:root:root:root .gk .gk-panel .ftree > .fview > .flist > :is(.fhead,button.frow,p.fcount.ffoot){box-sizing:border-box;width:auto;margin-left:16px;margin-right:16px;border-left:1px solid var(--border);border-right:1px solid var(--border);background:var(--surface-1)}
:root:root:root:root .gk .gk-panel .ftree > .fview > .flist > :is(.fhead,button.frow){padding-left:14px;padding-right:8px}
:root:root:root:root .gk .gk-panel .ftree > .fview > .flist > .fhead{margin-top:12px;border-top:1px solid var(--border);border-radius:10px 10px 0 0}
:root:root:root:root .gk .gk-panel .ftree > .fview > .flist > button.frow:hover{background:var(--surface-2)}
:root:root:root:root .gk .gk-panel .ftree > .fview > .flist > p.fcount.ffoot{margin-top:0;margin-bottom:0;padding:10px 14px;border-top:1px solid var(--border-soft);border-bottom:1px solid var(--border);border-radius:0 0 10px 10px;font:400 13px/18px var(--sans);color:var(--text-2)}
:root:root:root:root .gk .gk-panel .ftree > .fview > .flist > p.fcount.ffoot > b{font-weight:500;color:var(--text)}
@media (max-width:700px){:root:root:root:root .gk .gk-panel .ftree > .fview > .flist > button.frow:first-of-type{margin-top:12px;border-top:1px solid var(--border);border-radius:10px 10px 0 0}}
:root:root:root .ftree .fhint.fzone{display:flex;align-items:center;justify-content:center;gap:8px;box-sizing:border-box;min-height:48px;margin:12px 16px 16px;padding:8px 14px;border:1px dashed var(--border-strong);border-radius:10px;background:transparent;text-align:center;cursor:pointer}
:root:root:root .ftree .fhint.fzone:hover{background:var(--surface-2)}
:root:root:root .ftree .fhint.fzone > .fz-ic{display:none}
:root:root:root .ftree .fhint.fzone > .fz-s{display:none}
:root:root:root .ftree .fhint.fzone .fz-t{font:400 13px/18px var(--sans);color:var(--text-2)}
:root:root:root .ftree .fhint.fzone .fz-t > b{font-weight:500;color:var(--text)}
@media (max-width:700px){
  :root:root:root .ftree p.fcount.ffoot > .ff-lim{display:none}
  :root:root:root .ftree .fhint.fzone{flex-direction:column;gap:2px;min-height:64px;margin:12px 16px 16px}
  :root:root:root .ftree .fhint.fzone > .fz-ic{display:inline-flex;width:auto;height:auto;margin:0 0 2px;padding:0;border:0;border-radius:0;background:none;color:var(--text-2)}
  :root:root:root .ftree .fhint.fzone > .fz-ic > .ic{width:16px;height:16px}
  :root:root:root .ftree .fhint.fzone > .fz-s{display:block;font:400 13px/18px var(--sans);color:var(--text-2)}
}

/* the computer's toolbar: Streaming as the ok badge, then "· view only" in the secondary text, on one centre line */
:root:root:root .gk .gk-panel .scr.scr > .scrwin.scrwin > .scrbar > .scrstate > .tag.scrctl{display:inline-flex;align-items:center;gap:0;height:32px;min-height:32px;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;font:400 13px/18px var(--sans);color:var(--text-2);white-space:nowrap}
:root:root:root .gk .gk-panel .scr.scr > .scrwin.scrwin > .scrbar > .scrstate > .tag.scrctl > .scrlv.stb{display:inline-flex;height:20px;min-height:20px;margin:0}
:root:root:root .gk .gk-panel .scr.scr > .scrwin.scrwin > .scrbar > .scrstate > .tag.scrctl > .scrlv.stb > .dot{width:6px;height:6px;min-width:6px;margin:0;box-shadow:none;background:var(--b-ok)}
:root:root:root .gk .gk-panel .scr.scr > .scrwin.scrwin > .scrbar > .scrstate > .tag.scrctl > .scr-sep{margin:0 6px;color:var(--text-3)}
:root:root:root .gk .gk-panel .scr.scr > .scrwin.scrwin > .scrbar > .scrstate > .tag.scrctl > .dot{display:none}

/* images: the empty state compact at the card's content edge */
:root:root:root .images-view .card.imgs.is-empty > .empty-state{align-self:flex-start;justify-content:flex-start;text-align:left;margin:0;padding:0}
:root:root:root :is(.images-view,.checkpoint-view) .card.howcard{padding:0;overflow:hidden}
:root:root:root :is(.images-view,.checkpoint-view) .card.howcard > details.disc{margin:0;border:0}
:root:root:root :is(.images-view,.checkpoint-view) .card.howcard > details.disc > summary{padding:0 16px}
:root:root:root :is(.images-view,.checkpoint-view) .card.howcard > details.disc > .d-b{padding:0 16px 16px}

/* checkpoints: the id on the name's line; the files a link button */
:root:root:root .checkpoint-view .ckpt .ck-l > code.ck-cid{display:inline-block;flex:none;align-self:flex-start;width:auto;justify-self:start;max-width:100%;box-sizing:border-box;margin:2px 0 0;padding:1px 6px;border:1px solid var(--code-edge);border-radius:6px;background:var(--code-bg);font:400 13px/18px var(--mono);font-size-adjust:0.5;color:var(--text-2)}
:root:root:root .ckpt .ck-s > button.manifest-t{display:inline-flex;align-items:center;gap:4px;height:32px;margin:0 -8px;padding:0 8px;border:0;border-radius:8px;background:transparent;font:500 14px/20px var(--sans);color:var(--text);text-decoration:none}
:root:root:root .ckpt .ck-s > button.manifest-t:hover{background:var(--hover)}
:root:root:root .ckpt .ck-s > button.manifest-t > .ic{color:var(--text-2)}
@media (max-width:700px){:root:root:root .checkpoint-view .ckpt > .ckr > .ck-m{align-self:start;margin-top:-9px}:root:root:root .checkpoint-view .ckpt .ck-l > code.ck-cid{margin:0 8px 0 0}}

/* checkpoints on a phone: the list first, then the actions, then how they work */
@media (max-width:1099px){:root:root:root .checkpoint-view .pg-main > .ckcol{order:0}}

/* bot administration: the retained conversation's own card */
:root:root:root .bot-admin-view .sec.ba-convo{margin:0}
:root:root:root .bot-admin-view .sec.ba-convo > .sec-b{flex:1 1 auto;display:flex;flex-direction:column}
:root:root:root .bot-admin-view .card.convo-card{flex:1 1 auto;margin:0;padding:4px 20px;display:flex;flex-direction:column}
:root:root:root .bot-admin-view .card.convo-card > .convo-row{margin:0;padding:0;border:0}
:root:root:root .bot-admin-view .card.convo-card > .convo-row > button.convo-t{margin:0 -20px;padding:0 20px;width:calc(100% + 40px)}
:root:root:root .bot-admin-view > .ws.rowsgrid > .ws-foot{min-width:0}
:root:root:root .bot-admin-view .card.o-act > .verbs-g{margin-bottom:0}
@media (max-width:700px){:root:root:root .bot-admin-view .card.convo-card{padding:0 16px}:root:root:root .bot-admin-view .card.convo-card > .convo-row > button.convo-t{margin:0 -16px;padding:0 16px;width:calc(100% + 32px)}}

/* terminal: a start card in the page's colours over a dark well that fills the viewport */
:root:root:root .terminal-page.t-idle{flex:1 1 auto;display:flex;flex-direction:column}
:root:root:root .terminal-page > .tcard.t-idle{flex:1 1 auto;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:16px;min-height:0;margin:0;padding:0;border:0;background:none;box-shadow:none}
:root:root:root .terminal-page .tcard.t-idle > .card.t-start{display:flex;flex-direction:column;gap:16px;box-sizing:border-box;margin:0;padding:20px;border:1px solid var(--border);border-radius:12px;background:var(--surface-1);box-shadow:var(--card-hi)}
:root:root:root .terminal-page .t-start > .t-h{margin:0;font:600 16px/24px var(--sans);color:var(--text)}
:root:root:root:root .terminal-page .t-start > .callout.t-warn{display:flex;flex-direction:row;justify-content:flex-start;text-align:left;align-items:center;gap:10px;margin:0;padding:10px 12px;border:1px solid var(--callout-warn-edge);border-radius:10px;background:var(--callout-warn-bg);font:400 14px/20px var(--sans);color:var(--text)}
:root:root:root .terminal-page .t-start > .callout.t-warn > .ic{flex:none;width:16px;height:16px;color:var(--callout-warn-ic,var(--warn-ink,var(--warn)))}
:root:root:root .terminal-page .t-start > .callout.t-warn b{font-weight:600}
:root:root:root .terminal-page .t-start > p.treason.callout.warn{margin:0}
:root:root:root .terminal-page .t-start > form.ts-card{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;align-items:end;margin:0;padding:0;border:0;background:none;box-shadow:none}
:root:root:root .terminal-page .t-start > form.ts-card > label.f.confirm{display:flex;flex-direction:column;gap:6px;margin:0;min-width:0}
:root:root:root:root .terminal-page .t-start > form.ts-card > label.f.confirm > .cf-l{display:block;align-self:stretch;margin:0;text-align:left;font:500 13px/18px var(--sans);color:var(--text)}
:root:root:root .terminal-page .t-start > form.ts-card > label.f.confirm > input{box-sizing:border-box;width:100%;height:var(--bh);min-height:var(--bh);font:400 14px/20px var(--mono);font-size-adjust:0.5}
:root:root:root .terminal-page .t-start > form.ts-card > button.go{height:var(--bh);min-height:var(--bh)}
:root:root:root .terminal-page .t-start > .t-foot{margin:-4px 0 -6px;padding:8px 0 0;border-top:1px solid var(--border-soft)}
:root:root:root .terminal-page .tcard.t-idle > .twin{position:relative;flex:1 1 auto;display:flex;flex-direction:column;box-sizing:border-box;width:auto;max-width:none;min-height:320px;margin:0;padding:0;border:1px solid var(--well-edge);border-radius:12px;background:var(--well);box-shadow:var(--card-hi);overflow:hidden}
:root:root:root .terminal-page .tcard.t-idle > .twin > .tbar{position:relative;width:auto;height:36px;min-height:36px;overflow:visible;clip-path:none;display:flex;align-items:center;justify-content:space-between;gap:12px;box-sizing:border-box;margin:0;padding:0 8px 0 14px;border:0;border-bottom:1px solid #2a2724;background:#1a1917;white-space:nowrap}
:root:root:root .terminal-page .tcard.t-idle > .twin > .tbar > .tb-t{display:inline;font:400 13px/18px var(--mono);font-size-adjust:0.5;color:#c3bdb3}
:root:root:root .terminal-page .tcard.t-idle > .twin > .tbar > .tb-t > .at{color:#aea89e}
:root:root:root:root .terminal-page .tcard.t-idle > .twin > .tbar > .tstatus{display:inline-flex;align-items:center;gap:6px;height:22px;margin:0;padding:0 8px 0 7px;border-radius:999px;background:#2f2d29;box-shadow:none;font:500 13px/18px var(--sans);color:#c3bdb3}
:root:root:root:root .terminal-page .tcard.t-idle > .twin > .tbar > .tstatus::before{content:"";width:6px;height:6px;border-radius:50%;background:#8a847b}
:root:root:root .terminal-page .tcard.t-idle > .twin > .t-empty{flex:1 1 auto;display:flex;align-items:center;justify-content:center;margin:0;padding:24px;font:400 13px/18px var(--mono);font-size-adjust:0.5;color:#a6a097;text-align:center}
:root:root:root .terminal-page .tcard.t-idle > .twin > .terminal-host{position:absolute;left:0;right:0;top:0;height:0;overflow:hidden;visibility:hidden;pointer-events:none}
@media (min-width:701px){:root:root:root .terminal-page .tcard.t-idle > .twin{min-height:max(320px,calc(100dvh - 520px))}}
@media (max-width:700px){
  :root:root:root .terminal-page .t-start > form.ts-card{grid-template-columns:minmax(0,1fr);row-gap:12px}
  :root:root:root .terminal-page .t-start > form.ts-card > button.go{width:100%;justify-content:center}
  :root:root:root .terminal-page .tcard.t-idle > .twin{min-height:240px}
  :root:root:root .terminal-page .t-start > form.ts-card > label.f.confirm > input{font-size:16px}
  :root:root:root .terminal-page .tcard.t-idle > .card.t-start{padding:16px}
}

/* sign-in: a centred card on a faint dot grid; the footer pinned to the viewport's foot */
:root:root:root .center.au.au1.au27{position:relative;justify-content:center;min-height:100vh;min-height:100dvh;box-sizing:border-box;padding:24px 16px calc(10vh + 48px);background:radial-gradient(circle at 1px 1px,rgba(255,255,255,.035) 1px,transparent 0) 0 0/24px 24px,var(--bg)}
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]) .center.au.au1.au27{background:radial-gradient(circle at 1px 1px,rgba(64,44,16,.06) 1px,transparent 0) 0 0/24px 24px,var(--bg)}}
:root[data-theme="light"] .center.au.au1.au27{background:radial-gradient(circle at 1px 1px,rgba(64,44,16,.06) 1px,transparent 0) 0 0/24px 24px,var(--bg)}
:root:root:root:root .center.au.au1.au27 > .au-form{width:400px;max-width:100%;box-sizing:border-box;margin:0;padding:32px;border:1px solid var(--border);border-radius:16px;background:var(--surface-1);box-shadow:0 1px 2px rgba(0,0,0,.06),0 16px 40px -20px rgba(0,0,0,.45)}
:root:root:root:root .center.au.au1.au27 > .au-form > .au-mark{margin:0 0 20px}
:root:root:root:root .center.au.au1.au27 > .au-form > h1{margin:0;font:650 22px/28px var(--sans);letter-spacing:-.01em}
:root:root:root:root .center.au.au1.au27 > .au-form > .au-lede{margin:6px 0 0;font:400 14px/20px var(--sans);color:var(--text-2)}
:root:root:root:root .center.au.au1.au27 > .au-form > button.au-go{width:100%;height:44px;min-height:44px;margin-top:24px;font:600 16px/22px var(--sans)}
:root:root:root:root .center.au.au1.au27 > .au-form > details.au-more{margin:16px 0 0;padding:0;border:0}
:root:root:root:root .center.au.au1.au27 > .au-form > details.au-more > summary{display:flex;justify-content:center;align-items:center;gap:4px;width:max-content;min-height:32px;height:32px;margin:0 auto;padding:0 8px;border-radius:8px;font:500 14px/20px var(--sans);color:var(--text)}
:root:root:root:root .center.au.au1.au27 > .au-form > details.au-more > summary:hover{background:var(--hover)}
:root:root:root:root .center.au.au1.au27 > .au-foot{position:absolute;left:0;right:0;bottom:calc(24px + env(safe-area-inset-bottom));margin:0;font:400 13px/18px var(--sans);color:var(--text-2);text-align:center}
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]) .center.au.au1.au27 > .au-form{box-shadow:0 1px 2px rgba(64,44,16,.05),0 16px 36px -18px rgba(64,44,16,.22)}}
:root[data-theme="light"] .center.au.au1.au27 > .au-form{box-shadow:0 1px 2px rgba(64,44,16,.05),0 16px 36px -18px rgba(64,44,16,.22)}
@media (max-width:700px){:root:root:root:root .center.au.au1.au27 > .au-form{width:100%;padding:24px;border:1px solid var(--border);border-radius:16px;background:var(--surface-1)}}

/* the new-instance drawer: the profile's facts as one plain line; the owner a read-only row */
:root:root:root .drawer .ni-spec{display:flex;flex-wrap:wrap;gap:0;margin:8px 0 0;font:400 13px/18px var(--sans);color:var(--text-2)}
:root:root:root .drawer .ni-spec > span{display:inline;height:auto;margin:0;padding:0;border:0;border-radius:0;background:none;font:inherit;color:inherit;white-space:nowrap}
:root:root:root .drawer .ni-spec > span + span::before{content:"·";margin:0 6px;color:var(--text-3)}
:root:root:root .drawer .ni-owner > dl.props{display:block;margin:0}
:root:root:root .drawer .ni-owner > dl.props > .pr{display:flex;align-items:baseline;gap:12px;min-height:0;margin:0;padding:0;border:0}
:root:root:root .drawer .ni-owner > dl.props > .pr > dt{flex:none;width:auto;font:500 13px/18px var(--sans);color:var(--text)}
:root:root:root .drawer .ni-owner > dl.props > .pr > dd{margin:0;font:400 13px/18px var(--sans);color:var(--text)}
:root:root:root .drawer .ni-owner > dl.props > .pr > dd .ni-who{color:var(--text-2)}
:root:root:root .drawer .ni-rows > details.ni-row > summary,:root:root:root .drawer .ni-rows > .ni-row:not(details){padding-right:10px}

/* the access drawer: the owner row's tag on its first line */
:root:root:root .access-view .person .pn{display:flex;align-items:center;gap:8px}
:root:root:root .access-view .person .pn > .tag.prole{margin-left:auto}

/* history: routine success is a dot (the word for assistive technology); anything else its badge */
:root:root:root .history-main .hx-row.s-succeeded .hx-st.stb{height:auto;padding:0;background:none;box-shadow:none;color:var(--text-2)}
:root:root:root .history-main .hx-row.s-succeeded .hx-st.stb > :not(.dot){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
:root:root:root .history-main .hx-row.s-succeeded .hx-st.stb > .dot{width:8px;height:8px;min-width:8px}
:root:root:root .history-main .hx-row > .hx-ic:is(.k-new,.k-msg,.k-ck,.k-egress,.k-life){background:var(--surface-2);color:var(--text-2)}
:root:root:root .history-main .hx-row > .hx-t,:root:root:root .history-main .hx-row > .hx-t *{font-weight:400;font-variant-numeric:tabular-nums}
@media (max-width:700px){
  :root:root:root .history-main .hx-row{grid-template-columns:28px minmax(0,1fr) auto;grid-template-areas:none;column-gap:12px;row-gap:2px}
  :root:root:root .history-main .hx-row > .hx-ic{grid-column:1;grid-row:1 / span 2}
  :root:root:root .history-main .hx-row > .hx-op{grid-column:2;grid-row:1;min-width:0}
  :root:root:root .history-main .hx-row > .hx-t{grid-column:3;grid-row:1;justify-self:end;color:var(--text-2)}
  :root:root:root .history-main .hx-row > .hx-meta{grid-column:2 / -1;grid-row:2;min-width:0}
  :root:root:root .history-main .hx-row:not(.s-succeeded) > .hx-meta{grid-column:2}
  :root:root:root .history-main .hx-row > .hx-res{grid-column:3;grid-row:2;align-self:center}
  :root:root:root .history-main .hx-row.s-succeeded > .hx-res{display:none}
  :root:root:root .history-main .hx-row > .hr-x{grid-column:2 / -1;grid-row:3}
  :root:root:root .history-main .hx-row .hx-meta > .hx-tgt{flex:0 1 auto;min-width:0}
  :root:root:root .history-main .hx-row .hx-meta > .hx-by:is(:has(.hx-who.you),.same){display:none}
}

/* descriptions wrap in balanced lines */
:root:root:root :is(.cf-note,.fhelp,.hint,.sw-h,.vd,.es-t > span){text-wrap:pretty}
:root:root:root .nw{white-space:nowrap}

/* the sidebar's waiting count beside an instance (its dot stays the instance's state) */
:root .sb .sb-inst > .sb-ap{flex:none;display:inline-flex;align-items:center;gap:3px;height:20px;margin-left:auto;padding:0 7px 0 6px;border-radius:999px;background:var(--b-attn-bg);font:600 12px/20px var(--sans);color:var(--b-attn);font-variant-numeric:tabular-nums}
:root .sb .sb-inst > .sb-ap > .ic{width:12px;height:12px}
:root .sb .sb-inst > .sb-ap + .sb-u{margin-left:6px}
:root:root:root .sb .gk-row.on,:root:root:root .iview .side .bot.on{background:var(--sel-row)}
:root:root:root .sb .sb-groups .gk-glist > .gk-gnone{margin-left:-16px}

/* the Details panel */
@media (max-width:700px){:root:root:root .gk-details.dx{padding-bottom:calc(24px + env(safe-area-inset-bottom))}}
@media (max-width:700px){
  :root:root:root .gk-details .dx-card > dl.props > .pr{min-height:28px;padding-top:4px;padding-bottom:4px}
  :root:root:root .gk-details .dx-card > .dx-h{padding-top:12px;padding-bottom:12px}
}
:root:root:root .gk-details .dx-card > .dx-h{align-items:center}
:root:root:root .gk-details .dx-card > .dx-h > button.link-btn.dx-act{width:auto;min-width:0}
:root:root:root .gk-details .dx-card > .dx-h > .dx-ic{align-self:center}
:root:root:root .gk-details dl.props{--kcol:112px}
:root:root:root .gk-details .dx-st{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}
:root:root:root .gk-details .dx-st > .link-btn.dx-rev{height:28px;min-height:28px;margin:0}
:root:root:root .gk-details .dx-memv{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:12px;flex-wrap:nowrap}
:root:root:root .gk-details .dx-memv > .meter.dx-meter{flex:none;align-self:center;width:96px;max-width:96px;height:6px;margin:0;border-radius:3px}
:root:root:root .gk-details .dx-tasks.bare:has(> .empty-state.gk-none){grid-template-columns:112px minmax(0,1fr);column-gap:12px}
/* the ⋯ sheet on a phone: its header names the bot and the instance, so the group heads keep only their kind */
@media (max-width:700px){:root:root:root .gk-sheet .gk-menu.gk-instm .sec.scope > .sec-n,:root:root:root .gk-menu.gk-instm.sheet .sec.scope > .sec-n{display:none}}

/* a phone's drain form: the optional fields' disclosure on the card's content edges */
@media (max-width:700px){
  :root:root:root .node-view .nactions details.disc.nmore{margin-left:0;margin-right:0}
  :root:root:root .node-view .nactions details.disc.nmore > summary{padding-left:0;padding-right:0}
}
/* the files drop zone's dashes read in the dark theme */
:root:root:root .ftree .fhint.fzone{border-color:var(--sec-edge)}

/* activity: the timeline sits in a card, like the Details cards */
:root:root:root .gk-panel .cwrap > .console{margin:0 16px 16px;padding:10px 16px 12px;border:1px solid var(--border);border-radius:12px;background:var(--surface-1);box-shadow:var(--card-hi)}
/* activity: one 28 px node size on the rail (the bot's avatar too); the pending end a hollow node */
:root:root:root .console > .act-h > .act-mk{display:inline-grid;place-items:center;width:28px;height:28px;min-width:28px}
:root:root:root .console > .act-h > .act-mk > :is(.gk-av,.av,span){width:28px;height:28px;min-width:28px;font-size:13px;line-height:28px}
:root:root:root .console > .act-end > .act-mk::after{content:"";position:absolute;left:50%;top:50%;width:8px;height:8px;margin:-5px 0 0 -5px;border:1px solid var(--text-3);border-radius:50%;background:var(--surface-1)}
:root:root:root .console > .act-end > .act-mk{position:relative}
:root:root:root .console .act-line > .act-dur,:root:root:root .console .act-ts{font-variant-numeric:tabular-nums}
/* the side panel's sheet on a phone: the bot's name with its compact badge, the instance under it */
@media (max-width:700px){
  :root:root:root .gk-main > .gk-panel:not(.expanded) > .gk-ph > .gk-pctx{grid-template-columns:auto auto minmax(0,1fr);grid-template-rows:22px 18px;row-gap:2px}
  :root:root:root .gk-main > .gk-panel:not(.expanded) > .gk-ph > .gk-pctx > b{grid-row:1;grid-column:2;align-self:center}
  :root:root:root .gk-main > .gk-panel:not(.expanded) > .gk-ph > .gk-pctx > .pc-st{grid-row:1;grid-column:3;justify-self:start;align-self:center;margin:0 0 0 8px}
  :root:root:root .gk-main > .gk-panel:not(.expanded) > .gk-ph > .gk-pctx > .pc-i{grid-row:2;grid-column:2 / 4;margin:0;font:400 13px/18px var(--sans);color:var(--text-2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
/* the side panel's sheet on a phone: its header clear of the top edge */
@media (max-width:700px){:root:root:root .gk-main > .gk-panel > .gk-ph{padding-top:8px}}
/* the classic chat: the request card one step under the reply */
:root:root:root .iview .chat > .transcript > .appr-dock{margin-top:0}

/* ==== r29r: the critics' round — cards hug their content, one gap between them, the disabled primary a tonal amber,
   selection a neutral fill (never a ring that reads as focus), quiet unavailable rows, a top-anchored thread ==== */
/* tokens: the disabled primary is the primary's own amber at low strength with its label in an amber ink — it still
   reads "the primary", and "not yet" by its tone */
@media (max-width:700px){:root{--stack-gap:16px}}

/* the composer: a calm edge at rest and while typing (no halo); the field's focus is its caret */
:root:root:root:root:root :is(.chat > .compose > .composer,.gk-compose > .gk-pillbox):focus-within{border-color:var(--border-strong);box-shadow:var(--card-hi),0 1px 3px rgba(0,0,0,.08)}

/* selection: the chosen option card a neutral fill and a strong edge, its radio filled; focus stays the outline */

/* unavailable verbs: plain muted rows under their head — no box, no dashes; the lock and the reason say why */
/* lifecycle on a phone: each available verb on one line too (the radio, the verb, its line) */

/* destructive menu items: the red ink of the danger zone, icon included */
:root:root:root:root:root .gk-menu :is(.it.danger,.it.danger > .ic,.it.danger .lt),:root:root:root:root:root .menu > .items > button.danger:not(:disabled),:root:root:root:root:root .menu > .items > button.danger:not(:disabled) > :is(.ic,.lt){color:var(--bad-ink)}
:root:root:root:root:root .gk-menu .it.danger:hover,:root:root:root:root:root .menu > .items > button.danger:not(:disabled):hover{background:var(--bad-hover)}

/* ---- desktop admin grids: each card hugs its content; the columns stack independently, one gap apart ---- */
@media (min-width:1100px){
  :root:root:root:root .rowsgrid{align-items:start;row-gap:var(--stack-gap);column-gap:24px}
  :root:root:root:root :is(.node-view,.bot-admin-view) > .ws.rowsgrid{align-items:start}
  :root:root:root:root :is(.node-view,.bot-admin-view) > .ws.rowsgrid > :is(.ws-main,.ws-rail){align-self:start;gap:var(--stack-gap)}
  :root:root:root:root :is(.node-view,.bot-admin-view) > .ws.rowsgrid > :is(.ws-main,.ws-rail) > *,
  :root:root:root:root :is(.node-view,.bot-admin-view) > .ws.rowsgrid > :is(.ws-main,.ws-rail) > .sec.in:last-child > .sec-b,
  :root:root:root:root :is(.node-view,.bot-admin-view) > .ws.rowsgrid > :is(.ws-main,.ws-rail) > .sec.in:last-child > .sec-b > :is(.card,section),
  :root:root:root:root :is(.node-view,.bot-admin-view) > .ws.rowsgrid > :is(.ws-main,.ws-rail) > .sec.in:last-child > .sec-b > :is(.card,section) > form{flex:0 0 auto}
  :root:root:root:root .node-view > .ws.rowsgrid > :is(.ws-main,.ws-rail) > *{margin:0}
  /* instance administration keeps its rows (Lifecycle | Configuration, Egress and memory | Tools): with the compact
     lifecycle the paired cards are within a few pixels, so they stretch to one bottom */
  :root:root:root:root .instance-admin > .ws.rowsgrid{align-items:stretch}
  /* the configuration's rows share the card's height evenly (no hole above More details) */
  /* checkpoints and images: the cards in their areas, each its own height */
  :root:root:root:root :is(.checkpoint-view,.images-view) .rowsgrid :is(.sec.ck-act,.sec.ck-how,.sec.im-reg,.sec.im-how,.sec.ck-list,.sec.im-list){align-self:start}
  :root:root:root:root :is(.checkpoint-view,.images-view) .rowsgrid :is(.sec.ck-act,.sec.ck-how,.sec.im-reg,.sec.im-how) > .sec-b,
  :root:root:root:root :is(.checkpoint-view,.images-view) .rowsgrid :is(.sec.ck-act,.sec.ck-how,.sec.im-reg,.sec.im-how) > .sec-b > :is(.card,section,.imreg-row),
  :root:root:root:root .images-view .rowsgrid .imreg-row > .card.imreg,:root:root:root:root .images-view .rowsgrid .imreg-row > .card.imreg > form,
  :root:root:root:root .checkpoint-view .rowsgrid .card.ckform > form{flex:0 0 auto}
  :root:root:root:root .images-view > .ws.imgpg.rowsgrid.im-empty{grid-template-areas:"reg list" "reg how";grid-template-rows:auto 1fr}
  /* a form's foot sits one step under its last field */
  :root:root:root:root:root :is(.checkpoint-view .card.ckform,.images-view .card.imreg,.bot-admin-view .card.o-act,.node-view .card.nactions) form > footer.cf,:root:root:root:root:root .bot-admin-view .card.o-act > footer.cf{margin-top:0}
  :root:root:root:root :is(.explainer,.howrow) > .ex-foot{margin-top:4px}
}
/* the stat strip and the cards under it: one gap */
:root:root:root:root .node-view > .nres{margin:0 0 calc(var(--stack-gap) - var(--nv-gap,20px))}
:root:root:root:root .node-view > .nres + .ws,:root:root:root:root .node-view > .ws.rowsgrid{margin-top:0}

/* ---- instance administration on a phone: the configuration's one-line summary first ---- */
@media (max-width:1099px){
  :root:root:root:root .instance-admin .ws-main{display:flex;flex-direction:column;gap:var(--stack-gap)}
  :root:root:root:root .instance-admin .ws-main > .ia-ov-m{order:-1;margin:0}
  :root:root:root:root .instance-admin .ws-main > *{margin-top:0;margin-bottom:0}
}

/* ---- history: one 40 px row; the operation's glyph without a disc; the outcome a word ---- */
@media (min-width:701px){
  :root:root:root:root .history-main .hx-cols,:root:root:root:root .history-main .hx-row{grid-template-columns:16px minmax(0,1.1fr) minmax(0,1.3fr) 112px 72px 72px 80px;column-gap:16px}
  :root:root:root:root .history-main .hx-row{min-height:40px;padding-top:0;padding-bottom:0}
  :root:root:root:root .history-main .hx-day{min-height:32px}
}
:root:root:root:root .history-main .hx-row > .hx-ic,:root:root:root:root .history-main .hx-row > .hx-ic:is(.k-new,.k-msg,.k-ck,.k-egress,.k-life){width:16px;height:16px;border-radius:0;background:none;color:var(--text-2)}
:root:root:root:root .history-main .hx-row > .hx-ic.k-bad{width:16px;height:16px;border-radius:0;background:none;color:var(--b-bad)}
:root:root:root:root .history-main .hx-row.s-succeeded .hx-st.stb{display:inline-flex;align-items:center;gap:6px;height:20px;padding:0;background:none;color:var(--text-2);font:400 13px/18px var(--sans)}
:root:root:root:root .history-main .hx-row.s-succeeded .hx-st.stb > :not(.dot){position:static;width:auto;height:auto;overflow:visible;clip-path:none;white-space:nowrap}
:root:root:root:root .history-main .hx-row.s-succeeded .hx-st.stb > .dot{width:6px;height:6px;min-width:6px;background:var(--b-ok)}
:root:root:root:root .history-main :is(.hx-row .rd,.hx-t,.hx-t *){font-variant-numeric:tabular-nums}
:root:root:root:root .history-view .hx-bar .segmented.hx-tabs{grid-auto-columns:max-content}
@media (max-width:700px){
  :root:root:root:root .history-main .hx-row{grid-template-columns:16px minmax(0,1fr) auto}
  :root:root:root:root .history-main .hx-row > .hx-ic{margin-top:2px}
  :root:root:root:root .history-main .hx-row.s-succeeded > .hx-res{display:flex;grid-column:3;grid-row:2;justify-self:end;align-self:center}
  :root:root:root:root .history-main .hx-row.s-succeeded > .hx-res > .hx-st{display:none}
  :root:root:root:root .history-main .hx-row > .hx-res > .rd{display:inline;font:400 13px/18px var(--sans);color:var(--text-2)}
  :root:root:root:root .history-main .hx-row.s-succeeded > .hx-meta{grid-column:2}
  :root:root:root:root .history-view .hx-bar .segmented.hx-tabs{grid-auto-columns:minmax(max-content,1fr)}
}

/* ---- the chat thread starts at the top; it scrolls once it outgrows the column ---- */

/* ---- Activity: the timeline on the panel's own surface, on the toolbar's edges (as in the classic view) ---- */
:root:root:root:root .gk-panel .cwrap > .console{margin:0;padding:8px 16px 16px;border:0;border-radius:0;background:transparent;box-shadow:none}

/* ---- Details: the memory meter under its value ---- */
:root:root:root:root .gk-details .dx-memv{flex-direction:column;align-items:flex-start;gap:6px}
:root:root:root:root .gk-details .dx-memv > .meter.dx-meter{width:100%;max-width:160px}

/* ---- home on a phone: the lifecycle verb an icon button, so the name keeps its room ---- */
@media (max-width:700px){
  :root:root:root:root .home-view .ipanel > .ip-h > .ip-acts > button.ghost.lc,:root:root:root:root .home-view .ipanel > .ip-h > .ip-acts > button.ghost.lc:is(:hover,:focus-visible){width:40px;height:40px;min-width:40px;min-height:40px;margin:-4px -8px -4px 0;padding:0;justify-content:center}
  :root:root:root:root .home-view .ipanel > .ip-h > .ip-acts > button.ghost.lc > .lt{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  :root:root:root:root .home-view .ipanel > .ip-h > .ip-acts > button.ghost.lc > .ic{width:18px;height:18px}
}

/* ---- home cards: the activity row is every card's foot ("No activity yet" before there is some) ---- */
:root:root:root:root .home-view .ipanel > .act{margin-top:auto}
:root:root:root:root .home-view .ipanel > .ip-bots + .act{margin-top:auto}
/* the card is one link (its stretched open button): the text on it lets the click through; its own buttons keep theirs */
:root:root:root:root .home-view .ipanel > :not(.ip-h),:root:root:root:root .home-view .ipanel > .ip-h > .ip-nw{pointer-events:none}
:root:root:root:root .home-view .ipanel button:not(.stretch),:root:root:root:root .home-view .ipanel > .ip-h > .ip-acts{pointer-events:auto}

/* ---- a phone's four-way segmented control stays one row: segments sized to their labels ---- */
@media (max-width:700px){
  :root:root:root:root .verbs-g > .verbs.seg.n4{grid-auto-flow:column;grid-template-columns:repeat(4,auto);grid-template-rows:none;grid-auto-rows:auto;height:40px;min-height:40px;row-gap:0}
  :root:root:root:root .verbs-g > .verbs.seg.n4 > button{min-width:0;height:32px;min-height:32px;padding:0 8px;font-size:14px;white-space:nowrap}
}

/* ---- files: Upload is the one way in (a dragged file still shows the panel's overlay); the limit in the list's foot;
   the toolbar's controls one height ---- */
:root:root:root:root:root .ftree .fhint.fzone{display:none}
:root:root:root:root:root .ftree p.fcount.ffoot > .ff-lim{display:inline}
@media (max-width:700px){:root:root:root:root .gk-panel .fbar button.ib.fref,:root:root:root:root .ftree button.ib.fref{--bh:36px}}

/* ---- the terminal's confirm: a short field and its button, not the page's width ---- */
@media (min-width:701px){:root:root:root:root .terminal-page .t-start > form.ts-card{grid-template-columns:minmax(0,360px) auto;justify-content:start}}

/* ---- sign-in: even padding round the card's content; a tight, low shadow; the dot grid visible in both themes ---- */
:root:root:root:root:root .center.au.au1.au27 > .au-form{padding:32px 32px 24px}
@media (max-width:700px){:root:root:root:root:root .center.au.au1.au27 > .au-form{padding:24px 24px 16px}}
@media (prefers-color-scheme:light){:root:root:root:root:root:not([data-theme="dark"]) .center.au.au1.au27 > .au-form{box-shadow:0 1px 2px rgba(64,44,16,.06),0 8px 24px rgba(64,44,16,.07)}
  :root:root:root:root:not([data-theme="dark"]) .center.au.au1.au27{background:radial-gradient(circle at 1px 1px,rgba(64,44,16,.10) 1px,transparent 0) 0 0/24px 24px,var(--bg)}}
:root:root:root:root:root[data-theme="light"] .center.au.au1.au27 > .au-form{box-shadow:0 1px 2px rgba(64,44,16,.06),0 8px 24px rgba(64,44,16,.07)}
:root:root:root:root[data-theme="light"] .center.au.au1.au27{background:radial-gradient(circle at 1px 1px,rgba(64,44,16,.10) 1px,transparent 0) 0 0/24px 24px,var(--bg)}

/* ---- checkpoints: automatic retention is a policy word, not a state badge (pinned keeps its badge) ---- */
:root:root:root:root:root .checkpoint-view .ckpt .ret.stb.t-n{height:auto;padding:0;border:0;background:none;box-shadow:none;font:400 14px/20px var(--sans);color:var(--text-2)}
:root:root:root:root:root .checkpoint-view .ckpt .ret.stb.t-n > .dot{display:none}
@media (max-width:700px){
  :root:root:root:root:root .checkpoint-view .ckpt .ret.stb.t-n{margin-left:0;font-size:13px;line-height:18px}
  :root:root:root:root:root .checkpoint-view .ckpt .ret.stb.t-n::before{content:"·";display:inline;margin:0 6px 0 0;color:var(--text-3)}
}

/* ---- the classic phone's bot strip: the chosen chip a neutral fill, no ring ---- */
@media (max-width:1100px){:root:root:root:root:root .iview .chat > .botbar .brow.on,:root:root:root:root:root .iview .chat > .botbar .brow.on:hover{border:1px solid var(--border-strong);box-shadow:none;background:var(--sel-row)}}

/* ---- toasts: a visible edge on the dark canvas ---- */
:root:root:root:root .toasts > .toast,:root:root:root:root .toasts > .toast:is(.ok,.bad,.warn){border-color:color-mix(in srgb,var(--text) 14%,transparent)}

/* ---- the node's instances table: the row's chevron at its end; waiting requests beside the state ---- */
@media (min-width:701px){
  :root:root:root:root .node-view .ninst-t > .nit-h,:root:root:root:root .node-view .ninst-t > .nit-r{grid-template-columns:minmax(0,1.3fr) 112px minmax(0,.6fr) minmax(0,1fr) 40px 16px}
  :root:root:root:root .node-view .ninst-t > .nit-r > .ic{display:block;width:16px;height:16px;color:var(--text-2)}
}
:root:root:root:root .node-view .ninst-t > .nit-r > .nst{gap:6px}
:root:root:root:root .node-view .ninst-t > .nit-r > .nst > .nit-ap{flex:none;display:inline-flex;align-items:center;gap:3px;height:20px;padding:0 7px 0 6px;border-radius:999px;background:var(--b-attn-bg);font:600 12px/20px var(--sans);color:var(--b-attn);font-variant-numeric:tabular-nums}
:root:root:root:root .node-view .ninst-t > .nit-r > .nst > .nit-ap > .ic{width:12px;height:12px}

/* ---- the ⋯ sheet on a phone: its header names the bot and the instance, so the group heads keep only their kind ---- */
@media (max-width:700px){:root:root:root:root .gk-menu.gk-instm .gk-sheet .sec.scope > .sec-n{display:none}}

/* ---- the classic composer's delivery button on its field's centre line ---- */
@media (min-width:701px){:root:root:root:root .chat > .compose > .delivery-options:not([open]),:root:root:root:root .chat > .compose > .delivery-options[open] > summary{bottom:28px}}

/* ---- the classic composer on a phone: the Grok composer's 48 px row (a 36 px field between 36 px buttons) ---- */
@media (max-width:700px){
  :root:root:root:root .chat > .compose > .composer{min-height:48px}
  :root:root:root:root .chat > .compose > .composer > textarea{box-sizing:border-box;min-height:36px;height:36px}
  :root:root:root:root .chat > .compose > .delivery-options[open] > summary,:root:root:root:root .chat > .compose > .delivery-options:not([open]){bottom:calc(16px + env(safe-area-inset-bottom))}
}

/* ---- Details: a card's header action on its title's line ---- */
:root:root:root:root .gk-details .dx-card > .dx-h{align-items:flex-start}
:root:root:root:root .gk-details .dx-card > .dx-h > .dx-ic{align-self:center}
:root:root:root:root .gk-details .dx-card > .dx-h > :is(button,a).link-btn{align-self:flex-start;margin-top:-5px}

/* ---- toasts on a phone: at the top, over the bar, never over the cards ---- */

/* ---- phone sheets: the large detent, a sliver of the page above ---- */

/* ---- the terminal before a session: a short well ---- */
:root:root:root:root .terminal-page .tcard.t-idle > .twin > .t-empty{color:#c3bdb3}

/* ==== r30: close the sevens — one disabled primary, accent selection, the classic view in the app's sidebar, the
   terminal as the page, admin pages that fit 900 px, overlays under the bar ==== */
/* tokens: the disabled primary a neutral solid with a quiet label (amber always means "you can act"); the chosen
   option an amber edge on a faint amber wash; one placeholder ink; the overlay surface */
:root{
  --go-off-bg:#33302c; --go-off-fg:#948e84; --go-off-border:transparent; --go-off-hi:inset 0 0 0 1px rgba(255,255,255,.06);
  --opt-sel-edge:#f5a524; --opt-sel-bg:rgba(245,165,36,.07);
  --placeholder:#8a847b;
  --seg-on:#4a4640; --seg-on-edge:rgba(255,255,255,.18); --seg-on-shadow:0 1px 2px rgba(0,0,0,.5);
  --menu-bg:#33302c; --menu-edge:rgba(255,255,255,.10);
  --toast-bg:#34312d; --toast-edge:rgba(255,255,255,.10); --toast-shadow:0 12px 32px rgba(0,0,0,.55),0 2px 6px rgba(0,0,0,.35);
  --scrim:rgba(8,7,6,.72); --scrim-sheet:rgba(8,7,6,.72);
  --stack-gap:24px;
}
@media (max-width:700px){:root{--stack-gap:16px}}
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]){
  --go-off-bg:#e6e0d5; --go-off-fg:#81786b; --go-off-border:transparent; --go-off-hi:inset 0 0 0 1px rgba(64,44,16,.07);
  --opt-sel-edge:#b8740a; --opt-sel-bg:#fdf5e6;
  --placeholder:#8a8174; --text-3:#5a5246; --bg:#ece7df; --border:#d4cab9;
  --seg-on:#fffdfa; --seg-on-edge:rgba(64,44,16,.10); --seg-on-shadow:0 1px 2px rgba(64,44,16,.14);
  --menu-bg:#fffdfa; --menu-edge:#d9d0c2;
  --toast-bg:#fffdfa; --toast-edge:#d9d0c2; --toast-shadow:0 12px 32px rgba(64,44,16,.16),0 2px 6px rgba(64,44,16,.08);
  --scrim:rgba(17,16,20,.50); --scrim-sheet:rgba(17,16,20,.50);
}}
:root[data-theme="light"]{
  --go-off-bg:#e6e0d5; --go-off-fg:#81786b; --go-off-border:transparent; --go-off-hi:inset 0 0 0 1px rgba(64,44,16,.07);
  --opt-sel-edge:#b8740a; --opt-sel-bg:#fdf5e6;
  --placeholder:#8a8174; --text-3:#5a5246; --bg:#ece7df; --border:#d4cab9;
  --seg-on:#fffdfa; --seg-on-edge:rgba(64,44,16,.10); --seg-on-shadow:0 1px 2px rgba(64,44,16,.14);
  --menu-bg:#fffdfa; --menu-edge:#d9d0c2;
  --toast-bg:#fffdfa; --toast-edge:#d9d0c2; --toast-shadow:0 12px 32px rgba(64,44,16,.16),0 2px 6px rgba(64,44,16,.08);
  --scrim:rgba(17,16,20,.50); --scrim-sheet:rgba(17,16,20,.50);
}

/* ---- 2.1 the disabled primary: the primary's box in a neutral solid, no edge, a quiet label ---- */
:root:root:root:root :is(button.go,button.cf-go,a.go):where(:not(.it,.ib,.send,.gk-send,.verb,[role=menuitem],.items > button,.composer > button)):disabled,
:root:root:root:root :is(button.go,button.cf-go,a.go):where(:not(.it,.ib,.send,.gk-send,.verb,[role=menuitem],.items > button,.composer > button)):disabled:hover{border-color:transparent}
/* the send circle at rest: the same family */
:root:root:root:root :is(.gk-compose .gk-send,.chat > .compose .composer > button.send):disabled{border-color:transparent;background:var(--go-off-bg);color:var(--go-off-fg);box-shadow:var(--go-off-hi);opacity:1}

/* ---- 2.2 selection: an amber edge, an amber radio, a faint amber wash; focus stays the neutral outline outside ---- */
:root:root:root:root :is(.verbs-g > .verbs.cards > button.verb,.roles-g .verbs.cards > button.verb){grid-template-columns:18px minmax(0,1fr);grid-template-areas:"d t" "d s";column-gap:12px;row-gap:2px;align-items:start;min-height:0;padding:12px 14px;border:1px solid var(--border);border-radius:10px;background:transparent;box-shadow:none;transition:border-color 120ms ease,background-color 120ms ease,box-shadow 120ms ease}
:root:root:root:root :is(.verbs-g > .verbs.cards > button.verb,.roles-g .verbs.cards > button.verb) > .vdot{grid-area:d;align-self:start;box-sizing:border-box;width:18px;height:18px;margin:1px 0 0;border:1.5px solid var(--control-edge);border-radius:50%;background:transparent;opacity:1}
:root:root:root:root :is(.verbs-g > .verbs.cards > button.verb,.roles-g .verbs.cards > button.verb) > .vt{grid-area:t;font:600 15px/20px var(--sans);color:var(--text)}
:root:root:root:root :is(.verbs-g > .verbs.cards > button.verb,.roles-g .verbs.cards > button.verb) > .vd{grid-area:s;margin:0;font:400 13px/18px var(--sans);color:var(--text-2);white-space:normal;overflow:visible;text-overflow:clip}
:root:root:root:root :is(.verbs-g > .verbs.cards > button.verb,.roles-g .verbs.cards > button.verb):hover:not(:disabled):not(.on){border-color:var(--border-strong);background:transparent}
:root:root:root:root :is(.verbs-g > .verbs.cards > button.verb,.roles-g .verbs.cards > button.verb).on,
:root:root:root:root :is(.verbs-g > .verbs.cards > button.verb,.roles-g .verbs.cards > button.verb).on:hover{border-color:var(--opt-sel-edge);background:var(--opt-sel-bg);box-shadow:inset 0 0 0 .5px var(--opt-sel-edge)}
:root:root:root:root :is(.verbs-g > .verbs.cards > button.verb,.roles-g .verbs.cards > button.verb).on > .vdot{border-color:var(--opt-sel-edge);background:radial-gradient(circle,var(--opt-sel-edge) 0 4px,transparent 4.5px)}
:root:root:root:root :is(.verbs-g > .verbs.cards > button.verb,.roles-g .verbs.cards > button.verb):focus-visible{outline:2px solid var(--focus);outline-offset:2px}
/* segmented controls: a raised neutral thumb (stronger in dark), the chosen label 600 */
:root:root:root:root :is(.segmented,.verbs-g > .verbs.seg) > button.on,:root:root:root:root :is(.segmented,.verbs-g > .verbs.seg) > button.on:hover{background:var(--seg-on);box-shadow:inset 0 0 0 1px var(--seg-on-edge),var(--seg-on-shadow);font-weight:600;color:var(--text)}
:root:root:root:root :is(.segmented,.verbs-g > .verbs.seg) > button:not(.on){font-weight:500;color:var(--text-2)}

/* ---- 2.3 placeholders: one ink, mono fields at 13 px (15 on a phone) ---- */
:root:root:root:root :is(input,textarea)::placeholder{color:var(--placeholder);opacity:1}
:root:root:root:root input.mono::placeholder{font-size:13px}
@media (max-width:700px){:root:root:root:root input.mono::placeholder{font-size:15px}}

/* ==== classic view ==== */
/* desktop: the bots list is the sidebar's tree, so the body is the chat and the panel */
@media (min-width:1101px){
  :root:root:root:root .iview .ibody{grid-template-columns:minmax(0,1fr)}
  :root:root:root:root .iview .ibody.pane{grid-template-columns:minmax(0,1fr) clamp(380px,34.4vw,440px)}
  :root:root:root:root .iview .ibody.pane.wide{grid-template-columns:minmax(0,1fr) minmax(480px,56%)}
}
/* the tree's rows are the chat view's rows: a 32 px avatar, the name and time, one line of preview */
:root:root:root:root .sb .sb-tree > nav.side.side-tree{display:flex;flex-direction:column;gap:2px;width:auto;min-width:0;height:auto;margin:0;padding:0;border:0;background:none;box-shadow:none;overflow:visible}
:root:root:root:root .sb .sb-tree > nav.side.side-tree > .brow{display:grid;grid-template-columns:32px minmax(0,1fr) auto;grid-template-areas:"av n tm" "av s s";column-gap:12px;row-gap:2px;align-items:center;box-sizing:border-box;width:auto;min-height:0;height:auto;margin:0;padding:10px 10px 10px 12px;border:0;border-radius:10px;background:transparent;box-shadow:none;cursor:pointer}
:root:root:root:root .sb .sb-tree > nav.side.side-tree > .brow:hover{background:var(--hover)}
:root:root:root:root .sb .sb-tree > nav.side.side-tree > .brow.on,:root:root:root:root .sb .sb-tree > nav.side.side-tree > .brow.on:hover{background:var(--sel-row);box-shadow:none}
:root:root:root:root .sb .sb-tree > nav.side.side-tree > .brow > .gk-av{grid-area:av;align-self:center;--dot-ring:var(--side-surface,var(--surface-1))}
:root:root:root:root .sb .sb-tree > nav.side.side-tree > .brow.on > .gk-av{--dot-ring:var(--sel-row)}
:root:root:root:root .sb .sb-tree > nav.side.side-tree > .brow > .bw{display:contents}
:root:root:root:root .sb .sb-tree > nav.side.side-tree > .brow > .bw > .n{grid-area:n;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:600 14px/20px var(--sans);color:var(--text)}
:root:root:root:root .sb .sb-tree > nav.side.side-tree > .brow > .bw > .s{grid-area:s;display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-webkit-line-clamp:unset;font:400 13px/18px var(--sans);color:var(--text-2)}
:root:root:root:root .sb .sb-tree > nav.side.side-tree > .brow > .tm{grid-area:tm;justify-self:end;font:400 13px/20px var(--sans);color:var(--text-2);font-variant-numeric:tabular-nums}
:root:root:root:root .sb .sb-tree > nav.side.side-tree > .brow > :is(.chip,.att,.u,.tag){grid-area:tm;justify-self:end}
/* Add bot in both trees: a quiet row, a 20 px plus in the avatar column, the label in the secondary text */
:root:root:root:root :is(.sb .sb-tree > nav.side.side-tree > button.add,.sb .sb-tree .gk-side-f > button.gk-add){display:grid;grid-template-columns:32px minmax(0,1fr);column-gap:12px;align-items:center;justify-items:start;box-sizing:border-box;width:auto;height:40px;min-height:40px;margin:2px 0 0;padding:0 10px 0 12px;border:0;border-radius:10px;background:transparent;box-shadow:none;font:500 14px/20px var(--sans);color:var(--text-2)}
:root:root:root:root :is(.sb .sb-tree > nav.side.side-tree > button.add,.sb .sb-tree .gk-side-f > button.gk-add):hover:not(:disabled){background:var(--hover);color:var(--text)}
:root:root:root:root .sb .sb-tree > nav.side.side-tree > button.add > .pl{display:inline-grid;place-items:center;justify-self:center;width:20px;height:20px;margin:0;padding:0;border:0;border-radius:0;background:none;color:inherit}
:root:root:root:root .sb .sb-tree > nav.side.side-tree > button.add > .pl > .ic,:root:root:root:root .sb .sb-tree .gk-side-f > button.gk-add > .ic{justify-self:center;width:18px;height:18px;margin:0;padding:0;border:0;border-radius:0;background:none;color:inherit}
:root:root:root:root .sb .sb-tree > nav.side.side-tree > button.add > .lt,:root:root:root:root .sb .sb-tree .gk-side-f > button.gk-add > .lbl{font:inherit;color:inherit}
:root:root:root:root .sb .sb-tree > nav.side.side-tree > button.add > .lt::first-letter,:root:root:root:root .sb .sb-tree .gk-side-f > button.gk-add > .lbl::first-letter{text-transform:uppercase}
:root:root:root:root .sb .sb-tree > nav.side.side-tree > .why{margin:2px 0 4px 12px;font:400 13px/18px var(--sans);color:var(--text-2)}
/* the Grok tree's preview on one line too */
:root:root:root:root main.app:not(.side-rail) > nav.sb .sb-tree .gk-row > .pv{display:block;-webkit-line-clamp:unset;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* the rail: the classic tree shows its avatars only */
@media (min-width:900px){
  :root:root:root:root main.app.side-rail > nav.sb .sb-tree > nav.side.side-tree{align-items:center}
  :root:root:root:root main.app.side-rail > nav.sb .sb-tree > nav.side.side-tree > .brow{grid-template-columns:32px;grid-template-areas:"av";justify-content:center;width:44px;padding:6px}
  :root:root:root:root main.app.side-rail > nav.sb .sb-tree > nav.side.side-tree > .brow > :not(.gk-av){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  :root:root:root:root main.app.side-rail > nav.sb .sb-tree > nav.side.side-tree > .brow > .bw{display:block;position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  :root:root:root:root main.app.side-rail > nav.sb .sb-tree > nav.side.side-tree > button.add{grid-template-columns:32px;width:44px;padding:0 6px}
  :root:root:root:root main.app.side-rail > nav.sb .sb-tree > nav.side.side-tree > button.add > .lt,:root:root:root:root main.app.side-rail > nav.sb .sb-tree > nav.side.side-tree > .why{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
}

/* the message anatomy (both chats): the author, the time and the "Worked" chip on one line; the reply the column's width */
:root:root:root:root .iview .chat > .transcript > .turn:has(> .msg.bot){grid-template-columns:28px auto minmax(0,1fr)}
:root:root:root:root .iview .chat > .transcript > .turn:has(> .msg.bot) > .msg.user{grid-column:1 / -1}
:root:root:root:root .iview .chat > .transcript > .turn:has(> .msg.bot) > .msg.bot > .mc > .who{grid-column:2;grid-row:2}
:root:root:root:root .iview .chat > .transcript > .turn:has(> .msg.bot) > .work{display:contents}
:root:root:root:root .iview .chat > .transcript > .turn:has(> .msg.bot) > .work > .wh{grid-column:3;grid-row:2;align-self:center;justify-self:start;margin:0 0 0 -4px}
:root:root:root:root .iview .chat > .transcript > .turn:has(> .msg.bot) > .work > .tools{grid-column:2 / -1;grid-row:3;margin:8px 0 0}
:root:root:root:root .iview .chat > .transcript > .turn:has(> .msg.bot) > .msg.bot > .mc > .body{grid-column:2 / -1;grid-row:4;max-width:72ch}
:root:root:root:root .iview .chat > .transcript > .turn:has(> .msg.bot) > .files{grid-column:2 / -1;grid-row:5}
:root:root:root:root .iview .chat > .transcript > .turn:has(> .msg.bot) > .foot{grid-column:2 / -1;grid-row:6}
@media (max-width:700px){:root:root:root:root .iview .chat > .transcript > .turn:has(> .msg.bot){grid-template-columns:24px auto minmax(0,1fr)}}
/* one object chip: Worked, the file chip and attachments — 28 px, radius 8, a 1 px edge, no fill */
:root:root:root:root :is(.iview .chat > .transcript > .turn > .work > .wh,.gk-msg.bot .gk-th .gk-work > .gk-workh){display:inline-flex;align-items:center;gap:4px;box-sizing:border-box;width:auto;height:28px;min-height:28px;padding:0 8px 0 10px;border:1px solid var(--border);border-radius:8px;background:transparent;box-shadow:none;font:500 13px/18px var(--sans);color:var(--text-2);white-space:nowrap;cursor:pointer}
:root:root:root:root :is(.iview .chat > .transcript > .turn > .work > .wh,.gk-msg.bot .gk-th .gk-work > .gk-workh):hover{background:var(--hover);color:var(--text)}
:root:root:root:root :is(.gk-files > .gk-file,.iview .chat .files > .fcard){border-radius:8px}
/* code chips: a lighter fill, no edge, never taller than the line */
:root{--code-bg:#2a2825}
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]){--code-bg:#efe9df}}
:root[data-theme="light"]{--code-bg:#efe9df}
:root:root:root:root :is(code.idchip,code.host,code.code-chip,code.apath,.act-d code,.console code:not(.pid),.cev code,.cf-l > code.idchip,.fhelp code,.hint code,.dz-l code,.gk-bubble code,.chat .body code){padding:1px 5px;border:0;border-radius:5px;background:var(--code-bg);font-size:max(13px,.92em);line-height:inherit}
:root:root:root:root .console .act-d{font-size:13px}
/* the assistant's reply: the column's width (72ch at most on a desktop) */
:root:root:root:root .gk-msg.bot > .col{max-width:none;flex:1 1 auto;min-width:0}
:root:root:root:root .gk-msg.bot .gk-bubble{max-width:72ch}
/* the request card: its ⋯ a 32 px ghost on the title line */
:root:root:root:root :is(.gk-card.gk-egress:not(.rec),.chat-appr > .approval,.appr-dock .approval) > .ap-h{align-items:flex-start}
:root:root:root:root :is(.gk-card.gk-egress:not(.rec),.chat-appr > .approval,.appr-dock .approval) > .ap-h > details.ap-more{align-self:flex-start;margin:-6px -8px 0 auto}
:root:root:root:root :is(.gk-card.gk-egress:not(.rec),.chat-appr > .approval,.appr-dock .approval) > .ap-h > details.ap-more > summary{display:inline-grid;place-items:center;width:32px;height:32px;min-height:32px;padding:0;border-radius:8px}
:root:root:root:root :is(.gk-card.gk-egress:not(.rec),.chat-appr > .approval,.appr-dock .approval) > .ap-h > details.ap-more > summary:hover{background:var(--hover)}
@media (max-width:700px){:root:root:root:root :is(.gk-card.gk-egress:not(.rec),.chat-appr > .approval,.appr-dock .approval) > .ap-h > details.ap-more > summary{width:36px;height:36px;min-height:36px}}
/* a phone's thread sits by the composer (bottom-anchored); a desktop's starts under the header */
@media (min-width:701px){
  :root:root:root:root:root .gk-scroll > .gk-transcript{margin-top:0}
  :root:root:root:root:root .iview .chat > .transcript::before{content:none;display:none}
}
@media (max-width:700px){
  :root:root:root:root:root .gk-scroll > .gk-transcript{margin-top:auto}
  :root:root:root:root:root .iview .chat > .transcript::before{content:"";display:block;flex:1 1 auto;min-height:0;height:auto;margin:0;padding:0;border:0;background:none}
}
/* the classic phone: the bot strip is the second bar — 48 px, one edge under it; 32 px chips; + and the panel
   toggle 36 px toolbar buttons at the right */
@media (max-width:899px){
  :root:root:root:root .iview .ihead.ihx{border-bottom:0;box-shadow:none}
  :root:root:root:root .iview .chat > .botbar{border-top:0;border-bottom:1px solid var(--border);padding:0 12px 0 16px;background:var(--chat-canvas,var(--bg))}
  :root:root:root:root .iview .chat > .botbar > nav.side.side{display:flex;flex-direction:row;align-items:center;gap:8px;box-sizing:border-box;height:48px;min-height:48px;padding:0;border:0;overflow-x:auto;scrollbar-width:none}
  :root:root:root:root .iview .chat > .botbar > nav.side > .h{display:none}
  :root:root:root:root .iview .chat > .botbar > nav.side > .brow.brow,:root:root:root:root .iview .chat > .botbar > nav.side > .brow.brow.on{flex:none;display:inline-flex;align-items:center;gap:8px;box-sizing:border-box;height:32px;min-height:32px;padding:0 12px 0 4px;border:0;border-radius:999px;background:transparent;box-shadow:none}
  :root:root:root:root .iview .chat > .botbar > nav.side > .brow.brow:hover{background:var(--hover)}
  :root:root:root:root .iview .chat > .botbar > nav.side > .brow.brow.on,:root:root:root:root .iview .chat > .botbar > nav.side > .brow.brow.on:hover{background:var(--sel-row)}
  :root:root:root:root .iview .chat > .botbar > nav.side > .brow .gk-av{--sz:24px;width:24px;height:24px;min-width:24px;font-size:11.5px;--dot-ring:var(--chat-canvas,var(--bg))}
  :root:root:root:root .iview .chat > .botbar > nav.side > .brow.on .gk-av{--dot-ring:var(--sel-row)}
  :root:root:root:root .iview .chat > .botbar > nav.side > .brow .gk-av > i.b{right:-2px;bottom:-2px;width:8px;height:8px}
  :root:root:root:root .iview .chat > .botbar > nav.side > .brow .bw > .n{font:600 14px/20px var(--sans);color:var(--text)}
  :root:root:root:root .iview .chat > .botbar > nav.side > button.add.add{flex:none;display:inline-grid;place-items:center;width:36px;height:36px;min-width:36px;min-height:36px;margin:0 0 0 auto;padding:0;border:1px solid var(--border);border-radius:8px;background:transparent;color:var(--text-2)}
  :root:root:root:root .iview .chat > .botbar > nav.side > button.add.add:hover:not(:disabled){background:var(--hover);color:var(--text)}
  :root:root:root:root .iview .chat > .botbar > nav.side > button.add.add > .pl{width:auto;height:auto;border:0;background:none}
  :root:root:root:root .iview .chat > .botbar > nav.side > .side-x{flex:none;margin:0;padding:0}
  :root:root:root:root .iview .chat > .botbar > nav.side > .side-x > button.ib.stream-ic.stream-ic{display:inline-grid;place-items:center;width:36px;height:36px;min-width:36px;min-height:36px;padding:0;border:1px solid var(--border);border-radius:8px;background:transparent;color:var(--text-2)}
  :root:root:root:root .iview .chat > .botbar > nav.side > .side-x > button.ib.stream-ic.stream-ic.on{background:var(--seg-on);color:var(--text)}
  :root:root:root:root .iview .chat > .botbar > nav.side > .side-x > button.ib.stream-ic.stream-ic > .sl{display:none}
}

/* ==== instance administration: two columns that stack on their own (Lifecycle, Egress and memory | Configuration,
   Tools, the danger zone), each card its content's height ==== */
@media (min-width:1100px){
  :root:root:root:root:root .instance-admin > .ws.rowsgrid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);grid-template-areas:none;grid-template-rows:none;column-gap:24px;row-gap:0;align-items:start}
  :root:root:root:root:root .instance-admin > .ws.rowsgrid > :is(.ws-main,.ws-rail){display:flex;flex-direction:column;gap:var(--stack-gap);min-width:0;align-self:start}
  :root:root:root:root:root .instance-admin > .ws.rowsgrid > :is(.ws-main,.ws-rail) > *{min-width:0}
  :root:root:root:root:root .instance-admin > .ws.rowsgrid > .ws-main > .policy-bare{display:block;grid-area:auto;margin:0}
  :root:root:root:root:root .instance-admin > .ws.rowsgrid :is(.sec.ia-life,.sec.ia-cfg,.sec.ia-pol,.sec.ws-tools,.sec.dz-sec){grid-area:auto;align-self:auto;margin:0}
  :root:root:root:root:root .instance-admin > .ws.rowsgrid :is(.sec.ia-life,.sec.ia-cfg,.sec.ia-pol,.sec.ws-tools) > .sec-b,
  :root:root:root:root:root .instance-admin > .ws.rowsgrid :is(.sec.ia-life,.sec.ia-cfg,.sec.ia-pol,.sec.ws-tools) > .sec-b > :is(.card,section,form),
  :root:root:root:root:root .instance-admin > .ws.rowsgrid .sec.ia-pol > .sec-b > form > .card.pol-main,
  :root:root:root:root:root .instance-admin > .ws.rowsgrid .sec.ia-life #ia-lifecycle > form{flex:0 0 auto}
  :root:root:root:root:root .instance-admin > .ws.rowsgrid .sec.ia-life #ia-lifecycle > form > footer.cf{margin-top:0}
  :root:root:root:root:root .instance-admin > .ws.rowsgrid .sec.ia-life #ia-lifecycle > form > :has(+ footer.cf){margin-bottom:16px}
  :root:root:root:root:root .instance-admin > .ws.rowsgrid .sec.ia-cfg .card.ia-ov > dl.props.ia-res{flex:0 0 auto;display:block}
  :root:root:root:root:root .instance-admin > .ws.rowsgrid .sec.ia-cfg .card.ia-ov > details.cfg-more{margin-top:12px}
  /* lifecycle: the available verbs side by side (each its title over its line), so the actions keep one column */
  :root:root:root:root:root .instance-admin .verbs-g.rcg > .verbs.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px}
}
/* lifecycle: the unavailable verbs as one quiet line of small radios, the merged reasons under it */
:root:root:root:root .verbs-g.rcg > .verbs.cards{display:flex;flex-direction:column;gap:8px}
/* Egress and memory: a plain caption until a value changes (no grey band); the grant its foot row */
:root:root:root:root .instance-admin .card.pol-main > p.pol-cap{margin:12px 0 0;font:400 13px/18px var(--sans);color:var(--text-3)}
:root:root:root:root .instance-admin .card.pol-main > .pol-grant-c{margin:16px -20px -20px;padding:10px 20px 12px;border-top:1px solid var(--border-soft)}
:root:root:root:root .instance-admin .card.pol-main > .pol-grant-c > .pol-grant:not(.open){display:grid;grid-template-columns:16px minmax(0,1fr) auto;column-gap:12px;align-items:center;min-height:0;margin:0;padding:0;border:0;background:none}
:root:root:root:root .instance-admin .card.pol-main > .pol-grant-c > .pol-grant:not(.open) > *{align-self:center;margin-top:0;margin-bottom:0}
:root:root:root:root .instance-admin .card.pol-main > .pol-grant-c > .pol-grant:not(.open) > .pg-ic{display:inline-grid;place-items:center;width:16px;height:16px;color:var(--text-2)}
:root:root:root:root .instance-admin .card.pol-main > .pol-grant-c > .pol-grant:not(.open) > .pg-t{display:flex;flex-direction:column;gap:0;min-width:0}
:root:root:root:root .instance-admin .card.pol-main > .pol-grant-c > .pol-grant:not(.open) > .pg-t > b{font:600 14px/20px var(--sans);color:var(--text)}
:root:root:root:root .instance-admin .card.pol-main > .pol-grant-c > .pol-grant:not(.open) > .pg-t > span{font:400 13px/18px var(--sans);color:var(--text-2)}
:root:root:root:root .instance-admin .card.pol-main > .pol-grant-c > .pol-grant:not(.open) > button.pg-open{display:inline-flex;align-items:center;gap:6px;height:32px;min-height:32px;padding:0 12px;border:1px solid var(--sec-edge);border-radius:8px;background:transparent;font:500 14px/20px var(--sans);color:var(--text)}
:root:root:root:root .instance-admin .card.pol-main > .pol-grant-c > .pol-grant:not(.open) > button.pg-open:hover:not(:disabled){border-color:var(--sec-edge-hover);background:var(--surface-2)}
:root:root:root:root .instance-admin .card.pol-main > .pol-grant-c > .pol-grant:not(.open) > button.pg-open > .ic{display:none}
:root:root:root:root .instance-admin .card.pol-main > .pol-grant-c > .pol-grant:not(.open) > button.pg-open > .lt::first-letter{text-transform:uppercase}
:root:root:root:root .instance-admin .card.pol-main > .pol-grant-c.open{padding-top:16px}
:root:root:root:root .instance-admin .card.pol-main > footer.cf + .pol-grant-c{margin-top:0}
:root:root:root:root .instance-admin .card.pol-main > footer.cf{margin:16px -20px 0;border-radius:0}
:root:root:root:root .unit > .unit-eq{margin-left:4px;color:var(--text-3)}
:root:root:root:root .unit > .unit-eq::before{content:"·";margin-right:4px}
/* Configuration: 32 px rows, the last change one line with its time inline */
:root:root:root:root .instance-admin .card.ia-ov dl.props.ia-res > .pr{min-height:28px;padding-top:4px;padding-bottom:4px}
:root:root:root:root .instance-admin .card.ia-ov dl.props.ia-res > .pr > dd{min-width:0}
:root:root:root:root .instance-admin .card.ia-ov dl.props.ia-res > .pr > dd > .pv:has(> .chg-t){display:flex;flex-direction:row;flex-wrap:nowrap;align-items:baseline;gap:0;min-width:0;max-width:100%}
:root:root:root:root .instance-admin .card.ia-ov dl.props.ia-res > .pr > dd > .pv > .chg-t{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
:root:root:root:root .instance-admin .card.ia-ov dl.props.ia-res > .pr > dd > .pv > .chg-m{flex:none;display:inline;margin:0;font:400 13px/20px var(--sans);color:var(--text-3);white-space:nowrap}
:root:root:root:root .instance-admin .card.ia-ov dl.props.ia-res > .pr > dd > .pv > .chg-m::before{content:"·";margin:0 6px}
:root:root:root:root .instance-admin .card.ia-ov dl.props.ia-res > .pr > dd > .pv > .vsep{color:var(--text-3)}
:root:root:root:root .instance-admin .card.ia-ov dl.props.ia-res > .pr > dd > .pv > :is(.chg-t,.chg-m){display:inline;margin:0}
/* Tools: 52 px rows */
:root:root:root:root .instance-admin .toolscard.ia-tools > .toolrow{min-height:52px;padding-top:8px;padding-bottom:8px}
/* a phone: the stack one gap apart; the danger button a 1.5 px red edge */
@media (max-width:1099px){:root:root:root:root:root .instance-admin .ws-main{gap:var(--stack-gap)}:root:root:root:root:root .instance-admin .ws-main > *{margin:0}}
@media (max-width:700px){
  :root:root:root:root:root .instance-admin .sec.dz-sec .dzrow > button.danger:not(:disabled){border-width:1.5px}
  :root:root:root:root .instance-admin .card.pol-main > .pol-grant-c{margin:16px -16px -16px;padding:10px 16px 12px}
  :root:root:root:root .instance-admin .card.pol-main > footer.cf{margin:16px -16px 0}
}

/* ==== terminal: the dark well is the page — it fills the viewport under the heading; before a session it holds the
   start panel (the warning, the typed confirm and Start on one row); it stays dark in both themes ==== */
:root:root:root:root .terminal-page .tcard{
  --surface-1:#1d1c1a; --surface-2:#262522; --text:#edebe6; --text-2:#c3bdb3; --text-3:#aea89e; --border:#3d3b36; --border-soft:#302e2a; --border-strong:#57534c;
  --field-bg:#151413; --control-edge:#6b665e; --placeholder:#8a847b; --focus:#a8a29a; --field-focus-edge:#8a847b; --field-ring:#34322e; --hover:rgba(255,255,255,.06);
  --go-off-bg:#33302c; --go-off-fg:#948e84; --go-off-hi:inset 0 0 0 1px rgba(255,255,255,.06); --code-bg:#2a2825; --code-edge:#3d3b36;
  --sec-edge:#57534c; --sec-edge-hover:#6b665e; color-scheme:dark;
}
:root:root:root:root .terminal-page.t-idle{flex:1 1 auto;display:flex;flex-direction:column;min-height:0}
:root:root:root:root .terminal-page > .tcard.t-idle{flex:1 1 auto;display:flex;flex-direction:column;min-height:0;margin:0;padding:0;border:0;background:none;box-shadow:none;gap:0}
:root:root:root:root .terminal-page .tcard.t-idle > .twin{position:relative;flex:1 1 auto;display:flex;flex-direction:column;box-sizing:border-box;width:auto;max-width:none;height:auto;min-height:max(360px,calc(100dvh - 248px));margin:0;padding:0;border:1px solid #2f2d29;border-radius:12px;background:#151413;box-shadow:none;overflow:hidden;color:var(--text)}
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]) .terminal-page .tcard.t-idle > .twin{border-color:#2a2622;box-shadow:0 1px 2px rgba(64,44,16,.08),0 8px 24px rgba(64,44,16,.10)}}
:root[data-theme="light"] .terminal-page .tcard.t-idle > .twin{border-color:#2a2622;box-shadow:0 1px 2px rgba(64,44,16,.08),0 8px 24px rgba(64,44,16,.10)}
/* its title bar: the prompt in mono, the state a neutral badge */
:root:root:root:root .terminal-page .tcard.t-idle > .twin > .tbar{position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;box-sizing:border-box;width:auto;height:44px;min-height:44px;margin:0;padding:0 12px 0 16px;border:0;border-bottom:1px solid #2f2d29;background:rgba(255,255,255,.04);overflow:visible;clip-path:none;white-space:nowrap}
:root:root:root:root .terminal-page .tcard.t-idle > .twin > .tbar > .tb-t{display:inline;font:400 13px/18px var(--mono);font-size-adjust:0.5;color:#c9c3b9}
:root:root:root:root .terminal-page .tcard.t-idle > .twin > .tbar > .tb-t > .at{color:#aea89e}
:root:root:root:root:root .terminal-page .tcard.t-idle > .twin > .tbar > .tstatus{display:inline-flex;align-items:center;gap:6px;height:22px;margin:0;padding:0 8px;border-radius:999px;background:#3a3833;box-shadow:none;font:500 12px/18px var(--sans);color:#d6d0c6}
:root:root:root:root:root .terminal-page .tcard.t-idle > .twin > .tbar > .tstatus::before{content:"";width:6px;height:6px;border-radius:50%;background:#8a847b}
/* the start panel: centred a little above the middle */
:root:root:root:root .terminal-page .tcard.t-idle > .twin > .t-panel{flex:1 1 auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;box-sizing:border-box;width:100%;max-width:520px;margin:0 auto;padding:32px 24px 64px;text-align:center}
:root:root:root:root .terminal-page .t-panel > .t-glyph{display:inline-grid;place-items:center;width:56px;height:56px;margin:0 0 16px;border-radius:14px;background:#262522;color:#c9c3b9}
:root:root:root:root .terminal-page .t-panel > .t-glyph > .ic{width:28px;height:28px}
:root:root:root:root .terminal-page .t-panel > .t-h{margin:0;font:600 17px/24px var(--sans);color:#edebe6}
:root:root:root:root .terminal-page .t-panel > p.t-warn{display:inline-flex;align-items:center;gap:8px;margin:8px 0 0;padding:0;border:0;background:none;font:400 14px/20px var(--sans);color:#c9c3b9}
:root:root:root:root .terminal-page .t-panel > p.t-warn > .ic{flex:none;width:16px;height:16px;color:#f0c06a}
:root:root:root:root .terminal-page .t-panel > p.t-warn b{font-weight:600;color:#edebe6}
:root:root:root:root .terminal-page .t-panel > :is(p.treason,p.err){align-self:stretch;margin:16px 0 0;padding:10px 12px;border:1px solid rgba(240,192,106,.35);border-radius:10px;background:rgba(240,192,106,.08);font:400 14px/20px var(--sans);color:#edebe6;text-align:left}
:root:root:root:root .terminal-page .t-panel > p.err{border-color:rgba(255,143,138,.4);background:rgba(255,143,138,.08)}
:root:root:root:root .terminal-page .t-panel > form.ts-card{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"l l" "i b";column-gap:8px;row-gap:8px;align-self:stretch;margin:24px 0 0;padding:0;border:0;background:none;box-shadow:none;text-align:left}
:root:root:root:root .terminal-page .t-panel > form.ts-card > label.f.confirm{display:contents}
:root:root:root:root:root .terminal-page .t-panel > form.ts-card > label.f.confirm > .cf-l{grid-area:l;display:block;margin:0;font:500 14px/20px var(--sans);color:#c9c3b9;text-align:left}
:root:root:root:root:root .terminal-page .t-panel > form.ts-card > label.f.confirm > .cf-l > code.idchip{margin:0 2px;padding:0;border:0;background:none;font:600 14px/20px var(--mono);font-size-adjust:0.5;color:#edebe6}
:root:root:root:root:root .terminal-page .t-panel > form.ts-card > label.f.confirm > input{grid-area:i;box-sizing:border-box;width:100%;height:36px;min-height:36px;margin:0;padding:0 12px;border:1px solid #3d3b36;border-radius:8px;background:#0f0e0d;font:400 14px/20px var(--mono);font-size-adjust:0.5;color:#edebe6}
:root:root:root:root:root .terminal-page .t-panel > form.ts-card > label.f.confirm > input:focus{border-color:#8a847b;box-shadow:0 0 0 3px #34322e;outline:none}
:root:root:root:root:root .terminal-page .t-panel > form.ts-card > button.go{grid-area:b;height:36px;min-height:36px;margin:0}
:root:root:root:root .terminal-page .tcard.t-idle > .twin > .terminal-host{position:absolute;left:0;right:0;top:0;height:0;overflow:hidden;visibility:hidden;pointer-events:none}
:root:root:root:root .terminal-page .tcard.t-idle > .twin > .t-empty{display:none}
/* the head's Past sessions link on the title's line */
:root:root:root:root .terminal-page .pg-head .ihead.page{align-items:flex-end}
@media (max-width:700px){
  :root:root:root:root .terminal-page .tcard.t-idle > .twin{min-height:max(420px,calc(100dvh - 330px))}
  :root:root:root:root:root .terminal-page .pg-head .ihead.page{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
  :root:root:root:root:root .terminal-page .pg-head .ihead.page > .hlinks{order:2;grid-area:auto;margin:0 0 0 -2px}
  :root:root:root:root:root .terminal-page .pg-head .ihead.page > .hlinks > .link-btn{margin:0;padding:0 6px 0 2px}
  :root:root:root:root .terminal-page .tcard.t-idle > .twin > .t-panel{max-width:none;padding:24px 16px 32px}
  :root:root:root:root .terminal-page .t-panel > form.ts-card{grid-template-columns:minmax(0,1fr);grid-template-areas:"l" "i" "b";row-gap:10px}
  :root:root:root:root:root .terminal-page .t-panel > form.ts-card > label.f.confirm > input{height:44px;min-height:44px;font-size:16px}
  :root:root:root:root:root .terminal-page .t-panel > form.ts-card > button.go{width:100%;height:44px;min-height:44px;justify-content:center}
}

/* ==== overlays: toasts on the overlay surface; on a phone under the 52 px bar (never over it), inset 12 px ==== */
:root:root:root:root .toasts > .toast,:root:root:root:root .toasts > .toast:is(.ok,.bad,.warn){align-items:flex-start;gap:12px;padding:10px 6px 10px 12px;border:1px solid var(--toast-edge);border-radius:12px;background:var(--toast-bg);box-shadow:var(--toast-shadow)}
:root:root:root:root .toasts > .toast > .tt{padding-top:4px}
:root:root:root:root .toasts > .toast > .tt > b{font:600 14px/20px var(--sans);color:var(--text)}
:root:root:root:root .toasts > .toast > .tt > .tb{font:400 13px/18px var(--sans);color:var(--text-2)}
:root:root:root:root .toasts > .toast > button.rowact{display:inline-grid;place-items:center;width:36px;height:36px;min-width:36px;min-height:36px;margin:-2px 0 0;padding:0;border:0;border-radius:8px;background:transparent;color:var(--text-2)}
:root:root:root:root .toasts > .toast > button.rowact:hover{background:var(--hover);color:var(--text)}
:root:root:root:root .toasts > .toast > button.rowact > .ic{width:16px;height:16px}
@media (max-width:700px){
  :root:root:root:root .toasts::before,:root:root:root:root .toasts::after{content:none;display:none}
}
/* home on a phone: the card's pause/resume an inline ghost with a visible ring; Add bot 32 px */
@media (max-width:700px){
  :root:root:root:root:root .home-view .ipanel > .ip-h > .ip-acts > button.ghost.lc,:root:root:root:root:root .home-view .ipanel > .ip-h > .ip-acts > button.ghost.lc:is(:hover,:focus-visible){width:40px;height:40px;min-width:40px;min-height:40px;margin:-4px -4px -4px 0;border:1px solid var(--border-soft);border-radius:10px}
  :root:root:root:root:root .home-view .ipanel > .ip-bots > button.addbot{height:32px;min-height:32px;padding:0 12px 0 10px}
}

/* ==== images: the registered images across the top (the page's content), then the form | a quiet explainer ==== */
@media (min-width:1100px){
  :root:root:root:root:root .images-view > .ws.imgpg.rowsgrid,:root:root:root:root:root .images-view > .ws.imgpg.rowsgrid.im-empty{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);grid-template-areas:"list list" "reg how";grid-template-rows:auto auto;align-items:start}
}
/* one column of fields, each the card's width */
:root:root:root:root:root .images-view .imreg .fgrid.imfields{display:grid;grid-template-columns:minmax(0,1fr);row-gap:16px;column-gap:0}
:root:root:root:root:root .images-view .imreg .fgrid.imfields > .fld{grid-column:1 / -1}
:root:root:root:root .images-view .imreg .fgrid.imfields :is(select,input){box-sizing:border-box;height:36px;min-height:36px}
@media (max-width:700px){:root:root:root:root .images-view .imreg .fgrid.imfields :is(select,input){height:44px;min-height:44px}}
:root:root:root:root .images-view .imreg .fhelp{margin:6px 0 0;font:400 13px/18px var(--sans);color:var(--text-3)}
/* the empty list: a roomy empty state, its next step a secondary button */
:root:root:root:root:root .images-view .card.imgs.is-empty{display:flex;align-items:center;min-height:144px;padding:24px}
:root:root:root:root:root .images-view .card.imgs.is-empty > .empty-state.im-es{display:grid;grid-template-columns:40px minmax(0,1fr) auto;column-gap:16px;align-items:center;width:100%;margin:0;padding:0;text-align:left}
:root:root:root:root:root .images-view .empty-state.im-es > .es-ic{display:inline-grid;place-items:center;width:40px;height:40px;margin:0;border-radius:10px;background:var(--surface-2);color:var(--text-2)}
:root:root:root:root:root .images-view .empty-state.im-es > .es-ic > .ic{width:20px;height:20px}
:root:root:root:root:root .images-view .empty-state.im-es > .es-t{display:flex;flex-direction:column;gap:2px;min-width:0}
:root:root:root:root:root .images-view .empty-state.im-es > .es-t > b{font:600 15px/22px var(--sans);color:var(--text)}
:root:root:root:root:root .images-view .empty-state.im-es > .es-t > span{max-width:56ch;font:400 14px/20px var(--sans);color:var(--text-2)}
:root:root:root:root:root .images-view .empty-state.im-es > .es-a{margin:0}
:root:root:root:root:root .images-view .empty-state.im-es > .es-a > button.im-go{display:inline-flex;align-items:center;gap:6px;height:36px;min-height:36px;padding:0 12px 0 14px;white-space:nowrap}
:root:root:root:root:root .images-view .empty-state.im-es > .es-a > button.im-go > .ic{width:14px;height:14px;color:var(--text-2)}
@media (max-width:700px){
  :root:root:root:root:root .images-view .card.imgs.is-empty{min-height:0;padding:20px 16px}
  :root:root:root:root:root .images-view .card.imgs.is-empty > .empty-state.im-es{grid-template-columns:40px minmax(0,1fr);row-gap:12px}
  :root:root:root:root:root .images-view .empty-state.im-es > .es-a{display:none}
}
/* the quiet explainer (images; checkpoints' "how" too): no card edge, the second surface, numbered 22 px discs */
:root:root:root:root:root :is(.images-view,.checkpoint-view) section.explainer.ex-quiet{display:flex;flex-direction:column;gap:12px;margin:0;padding:20px;border:0;border-radius:12px;background:var(--surface-2);box-shadow:none}
:root:root:root:root:root :is(.images-view,.checkpoint-view) section.explainer.ex-quiet > .ex-h{margin:0;font:600 14px/20px var(--sans);color:var(--text)}
:root:root:root:root:root :is(.images-view,.checkpoint-view) section.explainer.ex-quiet > .hows{display:flex;flex-direction:column;gap:12px;margin:0;padding:0}
:root:root:root:root:root :is(.images-view,.checkpoint-view) section.explainer.ex-quiet > .hows > li{display:grid;grid-template-columns:22px minmax(0,1fr);column-gap:12px;align-items:start;margin:0;padding:0;border:0}
:root:root:root:root:root :is(.images-view,.checkpoint-view) section.explainer.ex-quiet > .hows > li > .hw-ic{width:22px;height:22px;min-width:22px;background:var(--surface-3);font:600 12px/22px var(--sans);color:var(--text-2)}
:root:root:root:root:root :is(.images-view,.checkpoint-view) section.explainer.ex-quiet > .hows > li > .hw-t{display:flex;flex-direction:column;gap:2px;max-width:40ch}
:root:root:root:root:root :is(.images-view,.checkpoint-view) section.explainer.ex-quiet > .hows > li > .hw-t > b{font:600 14px/20px var(--sans);color:var(--text)}
:root:root:root:root:root :is(.images-view,.checkpoint-view) section.explainer.ex-quiet > .hows > li > .hw-t > span{font:400 13px/18px var(--sans);color:var(--text-2)}
/* a phone: how it works as a disclosure in the form card's foot */
:root:root:root:root .images-view .imreg form > details.disc.im-howd{margin:16px -16px 0;border-top:1px solid var(--border-soft);border-bottom:0}
:root:root:root:root .images-view .imreg form > details.disc.im-howd > summary{padding:0 16px}
:root:root:root:root .images-view .imreg form > details.disc.im-howd > :not(summary){padding:0 16px 12px}
:root:root:root:root .images-view .imreg form > details.disc.im-howd + footer.cf{margin-top:0}

/* ==== sheets on a phone: the top edge under the (dimmed, whole) bar; no fade — the footer a solid band with an edge,
   the body's last row clear of it ==== */
@media (max-width:700px){
  :root:root:root:root:root .overlay > .drawer,:root:root:root:root:root .overlay > .drawer:has(.access-view),:root:root:root:root:root .overlay > .drawer:has(.newinst){max-height:calc(100dvh - 60px - env(safe-area-inset-top))}
  :root:root:root:root:root .overlay > .drawer .dscroll,:root:root:root:root:root .overlay > .drawer .dscroll.can-more,:root:root:root:root:root .overlay > .drawer > .db,:root:root:root:root:root .overlay > .drawer > .db.can-more{-webkit-mask-image:none;mask-image:none;padding-bottom:16px}
  :root:root:root:root:root .overlay > .drawer .row.dfoot{border-top:1px solid var(--border);background:var(--surface-1);box-shadow:none}
  :root:root:root:root:root .overlay > .drawer .dscroll.can-more ~ .row.dfoot,:root:root:root:root:root .overlay > .drawer .dscroll.can-more + .row{box-shadow:none}
  :root:root:root:root:root .overlay > .drawer > .dh{padding-top:20px}
}
/* the new-instance drawer: the profile's facts a spec row (values 600, units regular); helpers one rhythm; the owner a
   read-only field */
:root:root:root:root:root .drawer .newinst .ni-spec{display:flex;flex-wrap:wrap;column-gap:16px;row-gap:4px;margin:8px 0 0;padding:0;font:400 13px/18px var(--sans);color:var(--text-2);font-variant-numeric:tabular-nums}
:root:root:root:root:root .drawer .newinst .ni-spec > span{display:inline;margin:0;padding:0;border:0;background:none;white-space:nowrap;color:var(--text-2)}
:root:root:root:root:root .drawer .newinst .ni-spec > span::before{content:none}
:root:root:root:root:root .drawer .newinst .ni-spec > span > b{font-weight:600;color:var(--text)}
@media (max-width:700px){:root:root:root:root:root .drawer .newinst .ni-spec{display:grid;grid-template-columns:repeat(2,max-content);column-gap:24px}}
:root:root:root:root .drawer .newinst .ni-f > .fhelp{margin:0;font:400 13px/18px var(--sans);color:var(--text-3)}
:root:root:root:root .drawer .newinst .ni-owner{display:flex;flex-direction:column;gap:6px}
:root:root:root:root .drawer .newinst .ni-owner > .f-l{font:500 14px/20px var(--sans);color:var(--text)}
:root:root:root:root .drawer .newinst .ni-owner > .ro-field{display:flex;align-items:center;gap:6px;box-sizing:border-box;min-height:var(--bh);padding:0 12px;border:1px dashed var(--border);border-radius:8px;background:transparent;font:400 14px/20px var(--sans);color:var(--text)}
:root:root:root:root .drawer .newinst .ni-owner > .ro-field > b{font-weight:600}
:root:root:root:root .drawer .newinst .ni-owner > .ro-field > .ni-who{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-2)}
:root:root:root:root .drawer .newinst .ni-owner > .ro-field > .ic{flex:none;margin-left:auto;color:var(--text-3)}
:root:root:root:root .drawer .row.dfoot > p.fnote{color:var(--text-2)}

/* ==== node administration: the live state in the meta line; one footer slot per stat; the waiting count after the
   name; the drain form two fields then the reason across; CPU pools one row each; the page fits 900 px ==== */
:root:root:root:root .node-view .ihead.page .sub > .nsub-w{display:flex;flex-wrap:wrap;align-items:center;column-gap:12px;row-gap:6px}
:root:root:root:root .node-view .ihead.page .sub > .nsub-w > .nh-chips{display:inline-flex;align-items:center;gap:8px;margin:0}
:root:root:root:root .node-view .ihead.page .sub > .nsub-w > .nh-chips .stb{height:22px;min-height:22px}
:root:root:root:root .node-view .ihead.page .sub > .nsub-w > .nh-chips > .nfake{height:22px;min-height:22px;padding:0 8px;border:0;border-radius:6px;background:var(--tag-bg);font:500 12px/18px var(--sans);color:var(--tag-fg)}
:root:root:root:root .node-view .ihead.page .sub > .nsub-w > .mline.nsub{flex:none}
/* stat cells: label, value, then one 20 px footer slot (a meter centred in it, or the legend) */
:root:root:root:root .node-view .nres .kpis > .sc.mt{padding-top:14px;padding-bottom:14px}
:root:root:root:root .node-view .nres .kpis > .sc.mt > .mt-f{display:flex;align-items:center;min-height:20px;margin-top:8px}
:root:root:root:root .node-view .nres .kpis > .sc.mt > .mt-f > .meter{width:100%;margin:0}
/* the instances table: 40 px rows; the waiting count in the name cell (attention ink, no fill) */
@media (min-width:701px){
  :root:root:root:root:root .node-view .ninst-t > .nit-h,:root:root:root:root:root .node-view .ninst-t > .nit-r{grid-template-columns:minmax(0,1.5fr) 104px minmax(0,.45fr) minmax(112px,1fr) 32px 16px;column-gap:12px}
  :root:root:root:root:root .node-view .ninst-t > .nit-r{min-height:40px;padding-top:0;padding-bottom:0}
}
:root:root:root:root:root .node-view .ninst-t > .nit-r > .nn{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:8px;min-width:0;text-align:left}
:root:root:root:root:root .node-view .ninst-t > .nit-r > .nn > b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
:root:root:root:root:root .node-view .ninst-t > .nit-r > .nn > .nit-ap{flex:none;display:inline-flex;align-items:center;gap:3px;height:auto;padding:0;border-radius:0;background:none;font:600 12px/18px var(--sans);color:var(--b-attn);font-variant-numeric:tabular-nums}
:root:root:root:root:root .node-view .ninst-t > .nit-r > .nn > .nit-ap > .ic{width:12px;height:12px}
/* drain: target | deadline, the reason across; the footer one step under the last field */
@media (min-width:701px){
  :root:root:root:root:root .node-view .fgrid.nact{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:16px;row-gap:16px}
  :root:root:root:root:root .node-view .fgrid.nact > .fld.rsn,:root:root:root:root:root .node-view .fgrid.nact > .fld.rsn.span2{grid-column:auto}
  :root:root:root:root:root .node-view .fgrid.nact > .fld > label.f{white-space:nowrap}
}
:root:root:root:root .node-view .nactions .fgrid.nact .fhelp{margin:6px 0 0;font:400 13px/18px var(--sans);color:var(--text-3)}
:root:root:root:root .unitf .uin > .unit{font:400 13px/18px var(--sans);color:var(--text-3)}
:root:root:root:root:root .node-view .card.nactions form > footer.cf:not(#_){margin-top:0}
:root:root:root:root:root .node-view .card.nactions form > :has(+ footer.cf){margin-bottom:20px}
/* the Host card: facts, a divider, CPU pools one 32 px row each (name, badge, CPUs and core at the right) */
:root:root:root:root .node-view .hostcard > h3.props-h{margin:12px 0 4px;padding-top:12px;border-top:1px solid var(--border-soft);font:600 13px/20px var(--sans);color:var(--text-2)}
:root:root:root:root .node-view .hostcard dl.props.pools > .pr{display:grid;grid-template-columns:72px minmax(0,1fr);align-items:center;min-height:32px;padding:0}
:root:root:root:root .node-view .hostcard dl.props.pools > .pr > dt{font:400 14px/20px var(--sans);color:var(--text)}
:root:root:root:root .node-view .hostcard dl.props.pools > .pr > dd > .pv > .pool-v{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:8px;min-width:0}
:root:root:root:root .node-view .hostcard dl.props.pools > .pr > dd > .pv{display:block;width:100%}
:root:root:root:root .node-view .hostcard dl.props.pools > .pr > dd > .pv > .pool-v > .pm{margin-left:auto;font:400 13px/18px var(--sans);color:var(--text-2);font-variant-numeric:tabular-nums;white-space:nowrap}
:root:root:root:root .node-view .hostcard dl.props.pools > .pr > dd > .pv > .pool-v > .ps .stb{height:20px;min-height:20px}
:root:root:root:root .node-view .hostcard dl.props:not(.pools) > .pr{min-height:30px;padding-top:4px;padding-bottom:4px}

/* ==== the ⋯ menu: scope heads a caption (12/600 tertiary, the name 12/400), groups apart by a hairline, 36 px rows
   (48 on a phone), the deletes last after their own divider; the overlay surface, 260 px, 4 px under the bar ==== */
:root:root:root:root .gk-menu.gk-instm .pop .grp > .sec.scope{display:flex;align-items:baseline;gap:6px;min-height:0;margin:0;padding:12px 12px 4px;font:600 12px/16px var(--sans);letter-spacing:0;text-transform:none;color:var(--text-3)}
:root:root:root:root .gk-menu.gk-instm .pop .grp > .sec.scope > .sec-k{font:inherit;color:inherit}
:root:root:root:root .gk-menu.gk-instm .pop .grp > .sec.scope > .sec-n{font:400 12px/16px var(--sans);color:var(--text-3)}
:root:root:root:root .gk-menu.gk-instm .pop .grp > .sec.scope > .sec-n::before{content:"·";margin:0 6px 0 0}
:root:root:root:root .gk-menu.gk-instm .pop .grp + .grp{margin-top:6px;padding-top:6px;border-top:1px solid var(--border-soft)}
:root:root:root:root .gk-menu.gk-instm .pop .grp.g-dels{padding-top:6px}
:root:root:root:root .gk-menu.gk-instm .pop .grp.g-dels > .g-danger{margin:0;padding:0;border:0}
:root:root:root:root .gk-menu.gk-instm .pop :is(button.it,[role=menuitem]){min-height:36px;height:36px}
:root:root:root:root .gk-menu.gk-instm .pop :is(button.it,[role=menuitem]) > .ic{width:16px;height:16px;color:var(--text-2)}
:root:root:root:root .gk-menu.gk-instm .pop :is(button.it,[role=menuitem]).danger > .ic{color:var(--bad-ink)}
@media (min-width:701px){
  :root:root:root:root:root .gk-menu.gk-instm > .gk-sheet{width:260px;min-width:260px;max-width:calc(100vw - 16px);margin-top:4px;border:1px solid var(--menu-edge);border-radius:12px;background:var(--menu-bg);box-shadow:var(--shadow-overlay)}
}
@media (max-width:700px){
  :root:root:root:root .gk-menu.gk-instm .pop :is(button.it,[role=menuitem]){min-height:48px;height:48px}
  :root:root:root:root .gk-menu.gk-instm > .gk-sheet{padding-bottom:calc(16px + env(safe-area-inset-bottom));background:var(--menu-bg)}
  :root:root:root:root .gk-menu.gk-instm > .gk-sheet > .sh-h > button.gk-icon.x{width:36px;height:36px;min-width:36px;min-height:36px}
  :root:root:root:root .gk-menu-scrim{background:var(--scrim)}
}

/* ==== the computer panel: control modes one segmented control (Watching, Use screen, Take over), one line about
   the mode under it; the clipboard row on the same left edge; the screen in a framed box, its title an overlay chip ==== */
:root:root:root:root .scr .scrctlc.modes{display:flex;flex-direction:column;gap:0;margin-top:20px}
:root:root:root:root .scr .scrctlc.modes > .scrctlh{margin:0 0 8px;font:600 14px/20px var(--sans);color:var(--text)}
:root:root:root:root .scr .scracts.scrmodes.tiles{display:flex;flex-direction:column;gap:8px;margin:0;padding:0;border:0;background:none;box-shadow:none}
@media (min-width:701px){
  :root:root:root:root:root .scr .scracts.scrmodes.tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  :root:root:root:root:root .scr .scracts.scrmodes.tiles > .verb{display:grid;grid-template-columns:16px minmax(0,1fr);grid-template-areas:"d t" "s s";column-gap:8px;row-gap:4px;align-content:start;align-items:center;min-width:0;min-height:0;height:auto;margin:0;padding:10px 10px 12px;border:1px solid var(--border);border-radius:10px;background:transparent;box-shadow:none;text-align:left}
  :root:root:root:root:root .scr .scracts.scrmodes.tiles > .verb > .vd{grid-area:s;margin:0;font:400 13px/18px var(--sans);color:var(--text-2);white-space:normal;text-wrap:pretty}
  :root:root:root:root:root .scr .scracts.scrmodes.tiles > .verb > .vd .nb{white-space:normal}
}
:root:root:root:root:root .scr .scracts.scrmodes.tiles > .verb{transition:border-color 120ms ease,background-color 120ms ease}
:root:root:root:root:root .scr .scracts.scrmodes.tiles > .verb > .vdot{grid-area:d;box-sizing:border-box;width:16px;height:16px;margin:0;border:1.5px solid var(--control-edge);border-radius:50%;background:transparent;opacity:1}
:root:root:root:root:root .scr .scracts.scrmodes.tiles > .verb > .vt{grid-area:t;min-width:0;font:600 14px/20px var(--sans);color:var(--text)}
:root:root:root:root:root .scr .scracts.scrmodes.tiles > .verb > .vt > .lt{display:inline-block}
:root:root:root:root:root .scr .scracts.scrmodes.tiles > .verb > .vt > .lt::first-letter{text-transform:uppercase}
:root:root:root:root:root .scr .scracts.scrmodes.tiles > button.verb:hover:not(:disabled){border-color:var(--border-strong);background:transparent}
:root:root:root:root:root .scr .scracts.scrmodes.tiles > .verb.on{border-color:var(--opt-sel-edge);background:var(--opt-sel-bg);box-shadow:inset 0 0 0 .5px var(--opt-sel-edge)}
:root:root:root:root:root .scr .scracts.scrmodes.tiles > .verb.on > .vdot{border-color:var(--opt-sel-edge);background:radial-gradient(circle,var(--opt-sel-edge) 0 3.5px,transparent 4px)}
:root:root:root:root:root .scr .scracts.scrmodes.tiles > button.verb.go{background:transparent;color:var(--text)}
:root:root:root:root:root .scr .scracts.scrmodes.tiles > button.verb:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
/* the clipboard row: the switch and its label on one line; the lock caption under the label's text */
:root:root:root:root .scr .scrctlc.modes > .scrclip{margin:16px 0 0;padding:0}
:root:root:root:root .scr .scrclip > .switch-row{display:grid;grid-template-columns:36px minmax(0,1fr);column-gap:12px;align-items:start;margin:0;padding:0}
:root:root:root:root .scr .scrclip > .switch-row > .switch{margin-top:0}
:root:root:root:root .scr .scrclip > .switch-row > .sw-t > b{font:500 14px/20px var(--sans);color:var(--text)}
:root:root:root:root .scr .scrclip > .switch-row > .sw-t > .sw-h{display:flex;align-items:center;gap:6px;margin:2px 0 0;padding:0;font:400 13px/18px var(--sans);color:var(--text-2);opacity:1}
:root:root:root:root .scr .scrclip > .switch-row.gated > .switch{opacity:.55}
:root:root:root:root .scr .scrclip > .switch-row.gated > .sw-t{opacity:1}
/* the screen: a 1 px frame with a 10 px radius; the window's title a chip on its bottom-left corner */
:root:root:root:root .gk-panel .scr > .scrwin{position:relative}
:root:root:root:root .gk-panel .scr > .scrwin > .scrframe{position:relative;border:1px solid var(--border);border-radius:10px;overflow:hidden}
:root:root:root:root .gk-panel .scr > .scrwin > .scrframe > .scrtitle.scrcap{position:absolute;left:8px;z-index:2;display:inline-flex;align-items:center;gap:6px;max-width:calc(100% - 16px);height:24px;margin:0;padding:0 8px;border:0;border-radius:6px;background:rgba(0,0,0,.6);top:auto;bottom:8px;transform:none;font:500 12px/16px var(--sans);color:#fff;pointer-events:none}
:root:root:root:root .gk-panel .scr > .scrwin > .scrframe > .scrtitle.scrcap > .ic{width:12px;height:12px;color:#fff}
:root:root:root:root .gk-panel .scr > .scrwin > .scrframe > .scrtitle.scrcap > .scrname{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff}
/* the toolbar: the picker, the state badge, full screen — one 32 px row */
:root:root:root:root .gk .gk-panel .scr.scr > .scrwin.scrwin > .scrbar{display:flex;align-items:center;gap:8px;min-height:32px;margin:0 0 12px}
:root:root:root:root .gk .gk-panel .scr.scr > .scrwin.scrwin > .scrbar > .scrstate{margin-left:auto}
:root:root:root:root .gk .gk-panel .scr.scr > .scrwin.scrwin > .scrbar > .scrstate > .tag.scrctl{display:inline-flex;align-items:center;gap:6px;height:24px;min-height:24px;padding:0 10px;border-radius:999px;background:var(--b-ok-bg);font:500 13px/18px var(--sans);color:var(--b-ok)}
:root:root:root:root .gk .gk-panel .scr.scr > .scrwin.scrwin > .scrbar > .scrstate > .tag.scrctl:not(.live){background:var(--b-n-bg);color:var(--b-n)}
:root:root:root:root .gk .gk-panel .scr.scr > .scrwin.scrwin > .scrbar > .scrstate > .tag.scrctl > .scrlv.stb{height:auto;min-height:0;padding:0;background:none;color:inherit;font:inherit}
:root:root:root:root .gk .gk-panel .scr.scr > .scrwin.scrwin > .scrbar > .scrstate > .tag.scrctl > .scr-sep{margin:0;color:inherit;opacity:.7}
:root:root:root:root .gk .gk-panel .scr.scr > .scrwin.scrwin > .scrbar > .scrstate > .tag.scrctl > .scr-tag{color:inherit}
:root:root:root:root .gk .gk-panel .scr.scr > .scrwin.scrwin > .scrbar > button.ib.full{display:inline-grid;place-items:center;width:32px;height:32px;min-width:32px;min-height:32px;padding:0;border:1px solid var(--border);border-radius:8px;background:transparent;color:var(--text-2)}
:root:root:root:root .gk .gk-panel .scr.scr > .scrwin.scrwin > .scrbar > button.ib.full:hover{background:var(--hover);color:var(--text)}

/* ==== one approval hierarchy: the request card is the call to act; the bar's pill its entry point; elsewhere the
   state is quiet — the sidebar's count an attention ink without a fill, the chat header's state a dot and a word ==== */
:root:root:root:root .sb .sb-inst > .sb-ap,:root:root:root:root .sb .sb-ig .sb-inst > .sb-ap{height:auto;padding:0;border-radius:0;background:none;font:600 12px/18px var(--sans);color:var(--b-attn)}
:root:root:root:root :is(.gk-chead .gk-namepill .who .sub > .gk-mood,.iview .chat > .ch > .cht .bstat){display:inline-flex;align-items:center;gap:6px;height:auto;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;font:400 13px/18px var(--sans);color:var(--text-2)}
:root:root:root:root :is(.gk-chead .gk-namepill .who .sub > .gk-mood,.iview .chat > .ch > .cht .bstat) > .dot{width:6px;height:6px;min-width:6px;margin:0;box-shadow:none}
:root:root:root:root :is(.gk-chead .gk-namepill .who .sub > .gk-mood.needs,.iview .chat > .ch > .cht .bstat:is(.warn,.amber)) > .dot{background:var(--b-attn)}
/* chat text wraps greedily (no balancing): a reply uses its column */
:root:root:root:root :is(.iview .chat .turn .msg .body,.gk-msg .gk-bubble),:root:root:root:root :is(.iview .chat .turn .msg .body,.gk-msg .gk-bubble) :is(p,li,span){text-wrap:wrap}

/* ==== files: one 32 px toolbar (the bot a text dropdown, the path on the same baseline); every row keeps the
   chevron's column; the rest of the panel a dashed drop region ==== */
:root:root:root:root:root .gk .gk-panel .ftree .fbar{display:flex;align-items:center;gap:6px;min-height:32px}
:root:root:root:root:root .gk .gk-panel .ftree .fbar :is(select,.gk-pick,.fpick) {height:32px;min-height:32px}
/* the bot picker a text dropdown: no box, a hover fill */
:root:root:root:root:root .gk .gk-panel .ftree .fbar > label.fbot{border-color:transparent;background:transparent;box-shadow:none}
:root:root:root:root:root .gk .gk-panel .ftree .fbar > label.fbot:hover{background:var(--hover)}
:root:root:root:root:root .gk .gk-panel .ftree .fbar > label.fbot select{border:0;background-color:transparent;box-shadow:none;font:500 14px/20px var(--sans);color:var(--text)}
:root:root:root:root:root .gk .gk-panel .ftree .fbar > nav.crumbs{display:flex;align-items:center;min-width:0;font:600 14px/20px var(--sans)}
:root:root:root:root:root .gk .gk-panel .ftree .fbar > nav.crumbs button.link{height:32px;min-height:32px;padding:0 6px;border-radius:8px;font:600 14px/20px var(--sans);color:var(--text)}
:root:root:root:root:root .gk .gk-panel .ftree .fbar > nav.crumbs button.link:hover{background:var(--hover)}
:root:root:root:root:root .gk .gk-panel .ftree .fbar > label.upbtn{height:32px;min-height:32px}
:root:root:root:root:root .gk .gk-panel .ftree .frow > .cv.cv-f{display:inline-flex;visibility:hidden}
:root:root:root:root:root .gk .gk-panel .ftree .frow > .mt{justify-self:end;text-align:right;font-variant-numeric:tabular-nums}
:root:root:root:root:root .gk .gk-panel .ftree .fhead > span:nth-child(3){justify-self:end;text-align:right}
:root:root:root:root:root .gk .gk-panel .ftree .frow{min-height:40px}
:root:root:root:root:root .gk .gk-panel .ftree p.fcount.ffoot > .ff-lim{display:none}
:root:root:root:root:root .gk .gk-panel .ftree .fhint.fzone{flex:1 1 auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;box-sizing:border-box;min-height:160px;margin:16px;padding:24px;border:1px dashed var(--border-strong);border-radius:12px;background:transparent;text-align:center;cursor:pointer}
:root:root:root:root:root .gk .gk-panel .ftree .fhint.fzone:hover{background:var(--hover)}
:root:root:root:root:root .gk .gk-panel .ftree .fhint.fzone > .fz-ic{display:inline-grid;place-items:center;width:auto;height:auto;margin:0 0 6px;padding:0;border:0;background:none;color:var(--text-3)}
:root:root:root:root:root .gk .gk-panel .ftree .fhint.fzone > .fz-ic > .ic{width:20px;height:20px}
:root:root:root:root:root .gk .gk-panel .ftree .fhint.fzone > .fz-t{display:block;font:400 14px/20px var(--sans);color:var(--text-2)}
:root:root:root:root:root .gk .gk-panel .ftree .fhint.fzone > .fz-t > b{font-weight:600;color:var(--text)}
:root:root:root:root:root .gk .gk-panel .ftree .fhint.fzone > .fz-s{display:block;font:400 13px/18px var(--sans);color:var(--text-3)}
@media (max-width:700px){:root:root:root:root:root .gk .gk-panel .ftree .fhint.fzone{flex:none;min-height:160px}}

/* ==== checkpoints: the id plain mono with a copy button (the copyable-id style of Details); on a phone the row is
   the label and ⋯, the meta line ("Disk · just now · Auto"), the id, then the files as the row's foot ==== */
:root:root:root:root .checkpoint-view .ckpt .ck-l > .ck-idr{display:inline-flex;align-items:center;gap:2px;min-width:0}
:root:root:root:root .checkpoint-view .ckpt .ck-l > .ck-idr > code.ck-cid{display:inline;min-width:0;margin:0;padding:0;border:0;background:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:400 13px/18px var(--mono);font-size-adjust:0.5;color:var(--text-3)}
:root:root:root:root .checkpoint-view .ckpt .ck-l > .ck-idr > button.ck-cpy{display:inline-grid;place-items:center;flex:none;width:24px;height:24px;min-width:24px;min-height:24px;margin:0;padding:0;border:0;border-radius:6px;background:transparent;color:var(--text-3)}
:root:root:root:root .checkpoint-view .ckpt .ck-l > .ck-idr > button.ck-cpy:hover{background:var(--hover);color:var(--text)}
:root:root:root:root .checkpoint-view .ckpt .ck-l > .ck-idr > button.ck-cpy > .ic{width:14px;height:14px}
@media (max-width:700px){
  :root:root:root:root:root .checkpoint-view .ckpt > .ckr{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"l m" "s s";column-gap:8px;row-gap:0;align-items:start}
  :root:root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-ic{display:none}
  :root:root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-l{grid-area:l;display:flex;flex-wrap:wrap;align-items:baseline;column-gap:0;row-gap:2px;min-width:0}
  :root:root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-l > h3{flex:1 0 100%;margin:0;font:600 15px/22px var(--sans)}
  :root:root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-l > .ck-meta{display:inline-flex;align-items:baseline;gap:0;margin:0;font:400 13px/18px var(--sans);color:var(--text-2)}
  :root:root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-l > .ck-meta > .chip{height:auto;min-height:0;margin:0;padding:0;border:0;background:none;font:inherit;color:inherit}
  :root:root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-l > .ck-meta > * + *::before{content:"·";margin:0 6px;color:var(--text-3)}
  :root:root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-l > .ret.stb{display:inline;height:auto;margin:0;padding:0;gap:0;font:400 13px/18px var(--sans)}
  :root:root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-l > .ret.stb > .lt{display:inline-block;font:inherit}
  :root:root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-l > .ret.stb::before{content:"·";display:inline;margin:0 6px;color:var(--text-3)}
  :root:root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-l > .ret.stb.keep::before{content:none}
  :root:root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-l > .ret.stb.keep{margin-left:8px}
  :root:root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-l > .ck-idr{order:3;flex:1 0 100%;margin:2px 0 0}
  :root:root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-m{grid-area:m;align-self:start;margin:-7px -8px 0 0}
  :root:root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-m .menu > button.ib.more{width:36px;height:36px;min-width:36px;min-height:36px;border-radius:8px}
  :root:root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-s{grid-area:s;display:block;justify-self:stretch;width:auto;margin:8px 0 0;padding:0;border-top:1px solid var(--border-soft)}
  :root:root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-s > button.manifest-t{display:flex;align-items:center;justify-content:space-between;width:100%;height:40px;min-height:40px;margin:0;padding:0;border-radius:0;font:500 14px/20px var(--sans);color:var(--text)}
}

/* a phone's "how checkpoints work": the actions card's last row */
:root:root:root:root .checkpoint-view .card.ckform > details.disc.ck-howd{margin:16px -16px -16px;border-top:1px solid var(--border-soft);border-bottom:0;border-radius:0 0 12px 12px}
:root:root:root:root .checkpoint-view .card.ckform > details.disc.ck-howd > summary{padding:0 16px}
:root:root:root:root .checkpoint-view .card.ckform > details.disc.ck-howd > :not(summary){padding:0 16px 16px}

/* ==== the phone's instance tab strip: scrolls in itself, 16 px in at both ends, 20 px between tabs, no hairline
   between the groups; the right edge fades only while tabs remain past it; the current tab 600 over a 2 px line ==== */
@media (max-width:700px){
  :root:root:root:root .ihx .subnav{gap:20px;padding:0 16px;overflow-x:auto;scrollbar-width:none;-webkit-mask-image:none;mask-image:none}
  :root:root:root:root .ihx .subnav::-webkit-scrollbar{display:none}
  :root:root:root:root .ihx .subnav.more{-webkit-mask-image:linear-gradient(to right,#000 calc(100% - 24px),transparent);mask-image:linear-gradient(to right,#000 calc(100% - 24px),transparent)}
  :root:root:root:root .ihx .subnav > .stab-sep{display:none}
  :root:root:root:root .ihx .subnav > .stab,:root:root:root:root .ihx .subnav > .stab.on{flex:none;display:inline-flex;align-items:center;box-sizing:border-box;height:40px;min-height:40px;margin:0;padding:0;font:500 15px/20px var(--sans);color:var(--text-2)}
  :root:root:root:root .ihx .subnav > .stab.on{font-weight:600;color:var(--text)}
}

/* ==== sign-in: a crisper dot grid in light; Connection details a ghost row over a hairline; the tagline 32 px up ==== */
@media (prefers-color-scheme:light){:root:root:root:root:root:not([data-theme="dark"]) .center.au.au1.au27{background:radial-gradient(circle at 1px 1px,rgba(64,44,16,.14) 1px,transparent 0) 0 0/24px 24px,var(--bg)}}
:root:root:root:root:root[data-theme="light"] .center.au.au1.au27{background:radial-gradient(circle at 1px 1px,rgba(64,44,16,.14) 1px,transparent 0) 0 0/24px 24px,var(--bg)}
:root:root:root:root:root .center.au.au1.au27 > .au-form > details.au-more{margin:20px -32px 0;padding:12px 32px 0;border-top:1px solid var(--border-soft)}
:root:root:root:root:root .center.au.au1.au27 > .au-form > details.au-more > summary{height:32px;min-height:32px;padding:0 10px;border-radius:8px;font:500 14px/20px var(--sans);color:var(--text-2)}
:root:root:root:root:root .center.au.au1.au27 > .au-form > details.au-more > summary:hover{background:var(--hover);color:var(--text)}
:root:root:root:root:root .center.au.au1.au27 > .au-foot{bottom:calc(32px + env(safe-area-inset-bottom));color:var(--text-2)}
@media (max-width:700px){:root:root:root:root:root .center.au.au1.au27 > .au-form > details.au-more{margin:16px -24px 0;padding:12px 24px 0}}

/* ==== the admin area's phone bar: ‹ · "Admin · alpha" · Live (a dot under 430 px) · ☰ · the account ==== */
@media (max-width:899px){
  :root:root:root:root .pbar.pb-adm > .pb-brand.pb-area{display:inline-flex;align-items:baseline;gap:0;min-width:0;overflow:hidden;white-space:nowrap;font:600 17px/24px var(--sans);color:var(--text)}
  :root:root:root:root .pbar.pb-adm > .pb-brand.pb-area > b{font:inherit;color:inherit}
  :root:root:root:root .pbar.pb-adm > .pb-brand.pb-area > .pb-node > .pb-sep{margin:0 6px;color:var(--text-3)}
  :root:root:root:root .pbar.pb-adm > .pb-brand.pb-area > .pb-node{overflow:hidden;text-overflow:ellipsis;font:400 15px/24px var(--sans);color:var(--text-2)}
}
/* the phone panel sheet's header: the bot's state a dot and a word too */
:root:root:root:root .gk-main > .gk-panel > .gk-ph > .gk-pctx > .pc-st,:root:root:root:root .gk-main > .gk-panel > .gk-ph > .gk-pctx > .pc-st *:not(.dot){height:auto;min-height:0;padding:0;border:0;background:none;box-shadow:none;font:400 13px/18px var(--sans);color:var(--text-2)}
:root:root:root:root .gk-main > .gk-panel > .gk-ph > .gk-pctx > .pc-st .dot{width:6px;height:6px;min-width:6px}
/* instance administration under 1100 px: one stack — the configuration summary, Lifecycle, Egress and memory, Tools,
   the danger zone (the rail's Tools join the main column's order) */
@media (max-width:1099px){
  :root:root:root:root:root .instance-admin > .ws.rowsgrid{display:flex;flex-direction:column;align-items:stretch;gap:var(--stack-gap)}
  :root:root:root:root:root .instance-admin > .ws.rowsgrid > * > *{align-self:stretch;width:auto}
  :root:root:root:root:root .instance-admin > .ws.rowsgrid > :is(.ws-main,.ws-rail){display:contents}
  :root:root:root:root:root .instance-admin > .ws.rowsgrid > .ws-main > .ia-ov-m{order:0;margin:0}
  :root:root:root:root:root .instance-admin > .ws.rowsgrid > .ws-main > .sec.ia-life{order:1;margin:0}
  :root:root:root:root:root .instance-admin > .ws.rowsgrid > .ws-main > .policy-bare{order:2;margin:0}
  :root:root:root:root:root .instance-admin > .ws.rowsgrid > .ws-rail > :is(.sec.ia-cfg,.sec.ws-tools){order:3;margin:0}
  :root:root:root:root:root .instance-admin > .ws.rowsgrid > * > *,:root:root:root:root:root .instance-admin > .ws.rowsgrid > * > * > .sec-b,:root:root:root:root:root .instance-admin > .ws.rowsgrid > * > * > .sec-b > *{min-width:0;max-width:100%}
  :root:root:root:root:root .instance-admin > .ws.rowsgrid > .ws-main > .sec.dz-sec{order:4;margin:0}
}

/* ==== r30r: the critics' round on r30 — one status component, a legible disabled primary, unavailable choices as
   muted cards, surfaces that hug their content (the idle terminal, the drop strip, the computer's control list),
   the phone's toast at the bottom, one tab indicator ==== */

/* ---- one status component in the chat headers: a 6 px dot and the word in the secondary text, no fill ---- */
:root:root:root:root:root:root:root .iview .chat > .ch .cht .bstat,:root:root:root:root:root:root:root .iview .chat > .ch .cht .bstat:is(.warn,.amber,.ok,.bad){display:inline-flex;align-items:center;gap:6px;height:auto;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;font:400 13px/18px var(--sans);color:var(--text-2)}
:root:root:root:root:root:root:root .iview .chat > .ch .cht .bstat > .dot{width:6px;height:6px;min-width:6px;margin:0;box-shadow:none}
/* the phone panel sheet's header: name and state on the first line; the state is text, so no pill radius clips its
   last glyph (it may ellipsize when the name is long) */
@media (max-width:700px){
  :root:root:root:root:root:root .gk-main > .gk-panel > .gk-ph > .gk-pctx{grid-template-columns:44px auto minmax(0,1fr);column-gap:0}
  :root:root:root:root:root:root .gk-main > .gk-panel > .gk-ph > .gk-pctx > .pc-st{display:inline-flex;align-items:center;gap:6px;width:auto;max-width:100%;min-width:0;border-radius:0;overflow:hidden;white-space:nowrap}
  :root:root:root:root:root:root .gk-main > .gk-panel > .gk-ph > .gk-pctx > .pc-st > span:not(.dot){display:block;min-width:0;max-width:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  :root:root:root:root:root:root .gk-main > .gk-panel > .gk-ph > .gk-pctx > .pc-st > .dot{flex:none}
}


/* instance administration: the danger zone under both columns; the grant row's icon on its title line; Egress and
   memory's idle footer the same band as its siblings' */
:root:root:root:root:root .instance-admin > .sec.dz-sec{margin:0}
:root:root:root:root:root .instance-admin .card.pol-main > .pol-grant-c > .pol-grant:not(.open){align-items:start}
:root:root:root:root:root .instance-admin .card.pol-main > .pol-grant-c > .pol-grant:not(.open) > .pg-ic{align-self:start;margin-top:2px}
:root:root:root:root:root .instance-admin .card.pol-main > .pol-grant-c > .pol-grant:not(.open) > button.pg-open{align-self:center}
:root:root:root:root:root .instance-admin .card.pol-main > .pol-grant-c:not(:last-child){margin-bottom:0}
:root:root:root:root:root .instance-admin .card.pol-main > .pol-grant-c ~ footer.cf{margin:0 -20px -20px;border-radius:0 0 12px 12px}
:root:root:root:root:root .instance-admin .card.pol-main > .pol-grant-c ~ p.err{margin:12px 0}
@media (max-width:700px){
  :root:root:root:root:root .instance-admin .card.pol-main > .pol-grant-c > .pol-grant:not(.open){grid-template-columns:16px minmax(0,1fr);grid-template-areas:"i t" "b b";row-gap:12px}
  :root:root:root:root:root .instance-admin .card.pol-main > .pol-grant-c > .pol-grant:not(.open) > .pg-ic{grid-area:i}
  :root:root:root:root:root .instance-admin .card.pol-main > .pol-grant-c > .pol-grant:not(.open) > .pg-t{grid-area:t}
  :root:root:root:root:root .instance-admin .card.pol-main > .pol-grant-c > .pol-grant:not(.open) > button.pg-open{grid-area:b;justify-content:center;width:100%;height:44px;min-height:44px}
  :root:root:root:root:root .instance-admin .card.pol-main > .pol-grant-c{padding-bottom:16px}
  :root:root:root:root:root .instance-admin .card.pol-main > .pol-grant-c ~ footer.cf{margin:0 -16px -16px}
}

/* ---- files: the drop target a 64 px strip under the list on a desktop (the whole panel takes a drop while dragging);
   a phone has the toolbar's Upload, the size limit in the list's foot ---- */
:root:root:root:root:root:root .gk .gk-panel .ftree .fhint.fzone{flex:none;display:grid;grid-template-columns:20px minmax(0,1fr);grid-template-areas:"i t" "i s";column-gap:12px;row-gap:0;align-items:center;justify-items:start;min-height:0;margin:12px 16px 16px;padding:12px 16px;border-radius:10px;text-align:left}
:root:root:root:root:root:root .gk .gk-panel .ftree .fhint.fzone > .fz-ic{grid-area:i;margin:0}
:root:root:root:root:root:root .gk .gk-panel .ftree .fhint.fzone > .fz-t{grid-area:t}
:root:root:root:root:root:root .gk .gk-panel .ftree .fhint.fzone > .fz-s{grid-area:s}
@media (max-width:700px){
  :root:root:root:root:root:root .gk .gk-panel .ftree .fhint.fzone{display:none}
  :root:root:root:root:root:root .gk .gk-panel .ftree p.fcount.ffoot > .ff-lim{display:inline}
}


/* ---- the computer's control modes: one full-width option per row (the radio, the name over its line), as on a phone;
   the clipboard row muted while it waits for a takeover ---- */
@media (min-width:701px){
  :root:root:root:root:root:root .scr .scracts.scrmodes.tiles{display:flex;flex-direction:column;gap:8px}
  :root:root:root:root:root:root .scr .scracts.scrmodes.tiles > .verb{grid-template-columns:16px minmax(0,1fr);grid-template-areas:"d t" "d s";column-gap:12px;row-gap:2px;align-items:start;padding:10px 14px}
  :root:root:root:root:root:root .scr .scracts.scrmodes.tiles > .verb > .vdot{align-self:start;margin-top:2px}
}
:root:root:root:root:root .scr .scrclip > .switch-row.gated > .sw-t > b{color:var(--text-2)}
:root:root:root:root:root .scr .scrclip > .switch-row.gated > .switch{opacity:.7}

/* ---- the phone's instance tabs: the desktop's 2 px bar on the row's bottom edge, one weight (the colour marks it) ---- */
@media (max-width:700px){
  :root:root:root:root:root:root .ihx .subnav > .stab,:root:root:root:root:root:root .ihx .subnav > .stab.on{font-weight:500}
  :root:root:root:root:root:root .ihx .subnav > .stab.on,:root:root:root:root:root:root .ihx .subnav > .stab.on:hover:not(:disabled){box-shadow:inset 0 -2px 0 var(--tab-line,var(--text))}
  :root:root:root:root:root:root .ihx .subnav > .stab.on > .lt,:root:root:root:root:root:root .ihx .subnav > .stab > .lt{box-shadow:none}
}

/* ---- the phone's ⋯ sheet: 44 px rows and no fade, so its last item reads as enabled ---- */
@media (max-width:700px){
  :root:root:root:root:root:root .gk-menu.gk-instm .pop :is(button.it,[role=menuitem]){min-height:44px;height:44px}
  :root:root:root:root:root:root .gk-menu .gk-sheet .pop-scroll,:root:root:root:root:root:root .gk-menu .gk-sheet .pop-scroll.can-more{-webkit-mask-image:none;mask-image:none}
}

/* ---- a phone's short thread starts under the chat's header, as on a desktop (the composer stays at the foot) ---- */
@media (max-width:700px){
  :root:root:root:root:root:root .gk-scroll > .gk-transcript{margin-top:0}
  :root:root:root:root:root:root .iview .chat > .transcript::before{content:none;display:none}
}


/* ---- images: the rail's "how" the checkpoints page's card; the empty list a compact row; on a phone each page's
   help a collapsed card of its own under the form ---- */
:root:root:root:root:root:root .images-view .card.imgs.is-empty{min-height:0;padding:16px 20px 20px}
:root:root:root:root:root:root :is(.images-view,.checkpoint-view) section.card.helpc{padding:0;overflow:hidden}
:root:root:root:root:root:root :is(.images-view,.checkpoint-view) section.card.helpc > details.disc{margin:0;border:0;border-radius:0}
:root:root:root:root:root:root :is(.images-view,.checkpoint-view) section.card.helpc > details.disc > summary{padding:0 16px}
:root:root:root:root:root:root :is(.images-view,.checkpoint-view) section.card.helpc > details.disc > :not(summary){padding:0 16px 16px}
:root:root:root:root:root:root :is(.images-view,.checkpoint-view) .sec + section.card.helpc{margin-top:0}

/* ---- node administration: the fake-driver chip a hairline edge (it reads as a chip on the light canvas); the drain
   fields sized to their content (the target's value in MiB and GiB, the deadline's placeholder)  ---- */
@media (min-width:701px){:root:root:root:root:root:root .node-view .fgrid.nact{grid-template-columns:minmax(0,1.15fr) minmax(0,1.1fr) minmax(0,1fr)}}
:root:root:root:root:root .node-view .ihead.page .sub > .nsub-w > .nh-chips > .nfake{box-shadow:inset 0 0 0 1px var(--border)}

/* ---- the Details tab's header actions (Settings ›, Admin ›): small bordered buttons on the title's line ---- */
:root:root:root:root:root:root .gk-panel button.link-btn.dx-act{align-self:flex-start;display:inline-flex;align-items:center;gap:2px;box-sizing:border-box;height:28px;min-height:28px;margin:0;padding:0 6px 0 10px;border:1px solid var(--border);border-radius:8px;background:transparent;font:500 13px/18px var(--sans);color:var(--text)}
:root:root:root:root:root:root .gk-panel button.link-btn.dx-act:hover{border-color:var(--border-strong);background:var(--hover)}
:root:root:root:root:root:root .gk-panel button.link-btn.dx-act > .ic{color:var(--text-2)}

/* ==== r31: settled decisions (LOCKED: D1 the disabled primary, D2 muted text, D3 badges, D4 selection, D5 focus, the
   phone tabs, D13 the phone toast, the terminal fill, the instance-admin fit) — one definition per component ==== */
/* ---- tokens: the dimmed primary (the accent at 55 % in the surface, solid), muted text one step up, one amber focus,
   the chosen option's edge and dot one colour ---- */
:root{
  --go-off-bg:#946720; --go-off-fg:#1c1303; --go-off-border:transparent; --go-off-hi:none;
  --text-2:#cdc8bf; --text-3:#aea89e; --placeholder:#948e84;
  --focus:#f5a524; --field-focus-edge:#f5a524; --field-ring:rgba(245,165,36,.22);
  --opt-sel:#f5a524; --opt-sel-edge:#f5a524; --opt-sel-bg:rgba(245,165,36,.08);
  --toast-bg:#36332f; --toast-edge:rgba(255,255,255,.12); --toast-shadow:0 16px 40px rgba(0,0,0,.55),0 2px 8px rgba(0,0,0,.35);
  --menu-bg:#36332f; --menu-edge:rgba(255,255,255,.12);
  --scrim-sheet:rgba(8,7,6,.62);
  --why-ink:var(--text-2);
}
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]){
  --go-off-bg:#f9cd84; --go-off-fg:#6f5a35; --go-off-border:transparent; --go-off-hi:none;
  --text-2:#433e36; --text-3:#5a5347; --placeholder:#7d7468;
  --focus:#b8740a; --field-focus-edge:#b8740a; --field-ring:rgba(184,116,10,.18);
  --opt-sel:#b8740a; --opt-sel-edge:#b8740a; --opt-sel-bg:#fdf3e1;
  --toast-bg:#fffdfa; --toast-edge:#d4cab9; --toast-shadow:0 16px 40px rgba(64,44,16,.20),0 2px 8px rgba(64,44,16,.10);
  --menu-bg:#fffdfa; --menu-edge:#d4cab9;
  --scrim-sheet:rgba(8,7,6,.62);
}}
:root[data-theme="light"]{
  --go-off-bg:#f9cd84; --go-off-fg:#6f5a35; --go-off-border:transparent; --go-off-hi:none;
  --text-2:#433e36; --text-3:#5a5347; --placeholder:#7d7468;
  --focus:#b8740a; --field-focus-edge:#b8740a; --field-ring:rgba(184,116,10,.18);
  --opt-sel:#b8740a; --opt-sel-edge:#b8740a; --opt-sel-bg:#fdf3e1;
  --toast-bg:#fffdfa; --toast-edge:#d4cab9; --toast-shadow:0 16px 40px rgba(64,44,16,.20),0 2px 8px rgba(64,44,16,.10);
  --menu-bg:#fffdfa; --menu-edge:#d4cab9;
  --scrim-sheet:rgba(8,7,6,.62);
}

/* ---- D1 the disabled primary: the primary's box, dimmed amber, no edge or highlight ---- */
:root:root:root:root:root:root:root:root:root :is(button.go,button.cf-go,a.go):where(:not(.it,.ib,.send,.gk-send,.verb,[role=menuitem],.items > button,.composer > button)):disabled,
:root:root:root:root:root:root:root:root:root :is(button.go,button.cf-go,a.go):where(:not(.it,.ib,.send,.gk-send,.verb,[role=menuitem],.items > button,.composer > button)):disabled:hover{border:1px solid transparent;background:var(--go-off-bg);color:var(--go-off-fg);font-weight:600;box-shadow:none;opacity:1;filter:none;cursor:not-allowed}
:root:root:root:root:root:root:root:root:root :is(button.go,button.cf-go):disabled > *{opacity:1;color:inherit}
:root:root:root:root:root:root:root:root:root :is(.gk-compose .gk-send,.chat > .compose .composer > button.send):disabled{border-color:transparent;background:var(--go-off-bg);color:var(--go-off-fg);box-shadow:none;opacity:1}
/* the reason beside a disabled primary: secondary ink, 13 px */
:root:root:root:root:root:root :is(footer.cf,.dfoot,.cf-foot) > :is(p.why,p.cf-note,.fnote){font:400 13px/18px var(--sans);color:var(--text-2)}

/* ---- D5 focus: one amber ring ---- */
:root:root:root:root:root :focus-visible{outline-color:var(--focus)}

/* ---- D13 the phone toast: under the bar on every page, elevated, the kind in its icon well ---- */
@media (max-width:700px){
  :root:root:root:root:root:root:root:root:root .toasts,:root:root:root:root:root:root:root:root:root:has(.gk,.composer,.gk-compose,.overlay > .drawer) .toasts{top:calc(var(--bar-h,52px) + 8px + env(safe-area-inset-top));bottom:auto;left:12px;right:12px;width:auto;max-width:none}
  :root:root:root:root:root:root:root:root:root:has(.gk) .toasts{--bar-h:48px}
  :root:root:root:root:root:root .toasts > .toast,:root:root:root:root:root:root .toasts > .toast:is(.ok,.bad,.warn){animation:r26-toast-down 160ms ease-out}
  :root:root:root:root:root:root .toasts > .toast > button.rowact{width:40px;height:40px;min-width:40px;min-height:40px;margin:-6px -2px -6px 0}
}
:root:root:root:root:root:root .toasts > .toast,:root:root:root:root:root:root .toasts > .toast:is(.ok,.bad,.warn){align-items:flex-start;gap:12px;padding:12px 8px 12px 12px;border:1px solid var(--toast-edge);border-radius:12px;background:var(--toast-bg);box-shadow:var(--toast-shadow)}
:root:root:root:root:root:root .toasts > .toast > .ti{flex:none;display:inline-grid;place-items:center;width:28px;height:28px;min-width:28px;border-radius:8px;background:color-mix(in srgb,var(--text-2) 14%,transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--text-2) 26%,transparent);color:var(--text-2)}
:root:root:root:root:root:root .toasts > .toast.ok > .ti{background:color-mix(in srgb,var(--b-ok) 18%,transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--b-ok) 30%,transparent);color:var(--b-ok)}
:root:root:root:root:root:root .toasts > .toast.bad > .ti{background:color-mix(in srgb,var(--b-bad) 18%,transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--b-bad) 30%,transparent);color:var(--b-bad)}
:root:root:root:root:root:root .toasts > .toast.warn > .ti{background:color-mix(in srgb,var(--b-warn) 18%,transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--b-warn) 30%,transparent);color:var(--b-warn)}
:root:root:root:root:root:root .toasts > .toast > .tt{padding-top:4px}
:root:root:root:root:root:root .toasts > .toast > .tt > .tb{font:400 13px/18px var(--sans);color:var(--text-2)}
:root:root:root:root:root:root .toasts > .toast > button.rowact{align-self:flex-start;color:var(--text-2)}

/* ---- the terminal: the dark well is the page (before and during a session); the start panel one 440 px column in
   it, the confirm field and Start joined; the well's header holds the state and Past sessions ---- */
:root:root:root:root:root:root .terminal-page .tcard{
  --surface-1:#1f1d1a; --text:#edebe6; --text-2:#cdc8bf; --text-3:#b8b2a8; --placeholder:#8f897f;
  --focus:#f5a524; --field-focus-edge:#f5a524; --field-ring:rgba(245,165,36,.22);
  --go-off-bg:#957020; --go-off-fg:#1c1303; --go-off-hi:none;
}
:root:root:root:root:root:root .terminal-page.t-idle{flex:1 1 auto;display:flex;flex-direction:column;min-height:0}
:root:root:root:root:root:root .terminal-page > .tcard.t-idle{flex:1 1 auto;display:flex;flex-direction:column;min-height:0}
:root:root:root:root:root:root .terminal-page .tcard.t-idle > .twin{flex:1 1 auto;min-height:360px;border:1px solid #2f2c28;border-radius:12px;background:#1f1d1a}
@media (prefers-color-scheme:light){:root:root:root:root:root:root:root:not([data-theme="dark"]) .terminal-page .tcard.t-idle > .twin{background:#1f1d1a;border-color:#2f2c28}}
:root:root:root:root:root:root:root[data-theme="light"] .terminal-page .tcard.t-idle > .twin{background:#1f1d1a;border-color:#2f2c28}
:root:root:root:root:root:root .terminal-page .tcard.t-idle > .twin > .tbar{height:44px;min-height:44px;padding:0 8px 0 16px;justify-content:flex-start;gap:16px;border-bottom:1px solid #2f2c28;background:rgba(255,255,255,.06)}
:root:root:root:root:root:root .terminal-page .tcard.t-idle > .twin > .tbar > .tb-t{font:400 13px/18px var(--mono);color:#cdc8bf}
:root:root:root:root:root:root .terminal-page .tcard.t-idle > .twin > .tbar > .tstatus{height:auto;padding:0;border-radius:0;background:none;font:400 13px/18px var(--sans);color:#b8b2a8}
:root:root:root:root:root:root .terminal-page .tcard.t-idle > .twin > .tbar > .tstatus::before{width:6px;height:6px;background:#8f897f}
:root:root:root:root:root:root .terminal-page .tcard.t-idle > .twin > .tbar > .link-btn.thist{margin-left:auto}
:root:root:root:root:root:root .terminal-page .tcard.t-idle > .twin > .t-panel{flex:1 1 auto;justify-content:center;align-items:stretch;max-width:440px;width:100%;margin:0 auto;padding:32px 0 56px;text-align:left}
:root:root:root:root:root:root .terminal-page .t-panel > .t-glyph{align-self:flex-start;width:40px;height:40px;margin:0 0 16px;border-radius:10px;background:rgba(255,255,255,.06);color:#cdc8bf}
:root:root:root:root:root:root .terminal-page .t-panel > .t-glyph > .ic{width:20px;height:20px}
:root:root:root:root:root:root .terminal-page .t-panel > .t-h{font:600 17px/24px var(--sans);color:#edebe6}
:root:root:root:root:root:root .terminal-page .t-panel > p.t-warn{display:flex;align-items:flex-start;gap:8px;margin:8px 0 0;font:400 14px/20px var(--sans);color:#f0b45a}
:root:root:root:root:root:root .terminal-page .t-panel > p.t-warn > .ic{margin-top:2px;color:#f0b45a}
:root:root:root:root:root:root .terminal-page .t-panel > p.t-warn b{font-weight:600;color:inherit}
:root:root:root:root:root:root .terminal-page .t-panel > form.ts-card{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"l l" "i b";column-gap:0;row-gap:8px;margin:24px 0 0}
:root:root:root:root:root:root .terminal-page .t-panel > form.ts-card > label.f.confirm > .cf-l{font:500 13px/18px var(--sans);color:#cdc8bf}
:root:root:root:root:root:root .terminal-page .t-panel > form.ts-card > label.f.confirm > .cf-l > code.idchip{font:600 13px/18px var(--mono);color:#edebe6}
:root:root:root:root:root:root .terminal-page .t-panel > form.ts-card > label.f.confirm > input{height:40px;min-height:40px;border:1px solid rgba(255,255,255,.16);border-right:0;border-radius:8px 0 0 8px;background:rgba(255,255,255,.04);color:#edebe6}
:root:root:root:root:root:root .terminal-page .t-panel > form.ts-card > label.f.confirm > input::placeholder{color:#8f897f}
:root:root:root:root:root:root .terminal-page .t-panel > form.ts-card > label.f.confirm > input:focus{position:relative;z-index:1;border-color:#f5a524;border-right:1px solid #f5a524;box-shadow:0 0 0 3px rgba(245,165,36,.22);outline:none}
:root:root:root:root:root:root .terminal-page .t-panel > form.ts-card > button.go,:root:root:root:root:root:root:root:root:root:root .terminal-page .t-panel > form.ts-card > button.go:disabled{height:40px;min-height:40px;margin:0;padding:0 16px;border-radius:0 8px 8px 0}
@media (max-width:700px){
  :root:root:root:root:root:root .terminal-page .tcard.t-idle > .twin{min-height:420px}
  :root:root:root:root:root:root .app-page:has(> .terminal-page){padding-bottom:calc(16px + env(safe-area-inset-bottom))}
  :root:root:root:root:root:root .terminal-page .tcard.t-idle > .twin > .tbar > .tb-t{display:none}
  :root:root:root:root:root:root .terminal-page .tcard.t-idle > .twin > .tbar{padding:0 4px 0 16px}
  :root:root:root:root:root:root .terminal-page .tcard.t-idle > .twin > .t-panel{max-width:none;padding:24px 16px 32px}
  :root:root:root:root:root:root .terminal-page .t-panel > form.ts-card{grid-template-columns:minmax(0,1fr);grid-template-areas:"l" "i" "b";row-gap:8px}
  :root:root:root:root:root:root .terminal-page .t-panel > form.ts-card > label.f.confirm > input{height:44px;min-height:44px;border-right:1px solid rgba(255,255,255,.16);border-radius:8px}
  :root:root:root:root:root:root .terminal-page .t-panel > form.ts-card > button.go,:root:root:root:root:root:root:root:root:root:root .terminal-page .t-panel > form.ts-card > button.go:disabled{width:100%;height:44px;min-height:44px;border-radius:8px}
}

/* ---- D6 the page foot: 32 px on a desktop, 24 px on a phone ---- */
:root:root:root:root:root .app-page:not(:has(> .iview)){padding-bottom:32px}
@media (max-width:700px){:root:root:root:root:root .app-page:not(:has(> .iview)){padding-bottom:calc(24px + env(safe-area-inset-bottom))}}

/* ---- instance administration: the unavailable verbs one muted chip row under the cards ---- */
:root:root:root:root:root:root .verbs-g.rcg > .verbs-na{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:12px 0 0;padding:0;border:0}
:root:root:root:root:root:root .verbs-g.rcg > .verbs-na::before{content:none;display:none}
@media (max-width:700px){:root:root:root:root:root:root .verbs-g.rcg > .verbs-na > .vna-cap{flex:1 0 100%;margin:0}}
:root:root:root:root:root:root .verbs-g.rcg > .verbs-na > .vna-cap{margin:0 4px 0 0;font:500 13px/18px var(--sans);color:var(--text-3)}
:root:root:root:root:root:root .verbs-g.rcg > .verbs-na > button.verb.na.chip{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:auto;height:32px;min-height:32px;margin:0;padding:0 14px;border:1px solid var(--border-soft);border-radius:999px;background:transparent;box-shadow:none;font:500 13px/18px var(--sans);color:var(--text-2);cursor:pointer}
:root:root:root:root:root:root .verbs-g.rcg > .verbs-na > button.verb.na.chip:hover:not(.on){border-color:var(--border);background:var(--hover);color:var(--text)}
:root:root:root:root:root:root .verbs-g.rcg > .verbs-na > button.verb.na.chip.on{border-color:var(--border);background:var(--surface-3);color:var(--text)}
:root:root:root:root:root:root .verbs-g.rcg > .verbs-na > button.verb.na.chip > .vt{margin:0;font:inherit;color:inherit}
:root:root:root:root:root:root .verbs-g.rcg > .verbs-na > button.verb.na.chip:focus-visible{outline:2px solid var(--focus);outline-offset:2px}

/* the admin pages end at the page foot (no extra bottom padding of their own) */
:root:root:root:root:root .app-page > .adminview{padding-bottom:0}
/* Egress and memory's idle footer on a phone: the note above a full-width button */
@media (max-width:700px){
  :root:root:root:root:root:root:root:root:root .instance-admin .card.pol-main > footer.cf.pol-idle{flex-direction:column;align-items:stretch;gap:12px}
  :root:root:root:root:root:root:root:root:root .instance-admin .card.pol-main > footer.cf.pol-idle > button.go{width:100%;height:44px;min-height:44px;justify-content:center}
}

/* ---- D9 quiet danger: the danger-zone trigger a neutral edge with the red label; red fill only on hover/focus ---- */
:root:root:root:root:root:root:root .dzrow > button.danger:not(:disabled){border:1px solid var(--border);background:transparent;color:var(--bad-ink,var(--bad));box-shadow:none}
:root:root:root:root:root:root:root .dzrow > button.danger:not(:disabled) > .ic{color:var(--bad-ink,var(--bad))}
:root:root:root:root:root:root:root .dzrow > button.danger:not(:disabled):is(:hover,:focus-visible){border-color:color-mix(in srgb,var(--bad) 50%,transparent);background:var(--bad-soft,color-mix(in srgb,var(--bad) 10%,transparent))}

/* ---- images: while none are registered the form | a rail (the compact empty list over the help, which stretches to
   the form's foot); the first two fields one row; helpers in the secondary ink ---- */
@media (min-width:1100px){
  :root:root:root:root:root:root .images-view > .ws.imgpg.rowsgrid.im-empty{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);grid-template-areas:"reg list" "reg how";grid-template-rows:auto 1fr;align-items:stretch}
  :root:root:root:root:root:root .images-view > .ws.imgpg.rowsgrid.im-empty .sec.im-list{align-self:start}
  :root:root:root:root:root:root .images-view > .ws.imgpg.rowsgrid.im-empty :is(.sec.im-how,.sec.im-reg){align-self:stretch;display:flex;flex-direction:column}
  :root:root:root:root:root:root .images-view > .ws.imgpg.rowsgrid.im-empty :is(.sec.im-how,.sec.im-reg) > .sec-b{flex:1 1 auto;display:flex;flex-direction:column}
  :root:root:root:root:root:root .images-view > .ws.imgpg.rowsgrid.im-empty :is(.sec.im-how,.sec.im-reg) > .sec-b > :is(.card,section,.imreg-row){flex:1 1 auto}
  :root:root:root:root:root:root .images-view > .ws.imgpg.rowsgrid.im-empty .imreg-row,:root:root:root:root:root:root .images-view > .ws.imgpg.rowsgrid.im-empty .imreg-row > .card.imreg,:root:root:root:root:root:root .images-view > .ws.imgpg.rowsgrid.im-empty .imreg-row > .card.imreg > form{flex:1 1 auto;display:flex;flex-direction:column}
  :root:root:root:root:root:root .images-view > .ws.imgpg.rowsgrid.im-empty .card.imreg > form > footer.cf{margin-top:auto}
}
:root:root:root:root:root:root .images-view .imreg .fgrid.imfields{grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:16px;row-gap:20px}
:root:root:root:root:root:root .images-view .imreg .fgrid.imfields > .fld{grid-column:auto}
:root:root:root:root:root:root .images-view .imreg .fgrid.imfields > .fld:nth-child(n+3){grid-column:1 / -1}
:root:root:root:root:root:root .images-view .imreg .fhelp{margin:6px 0 0;font:400 13px/18px var(--sans);color:var(--text-2)}
:root:root:root:root:root:root .images-view .imreg label.f > .opt{font:400 14px/20px var(--sans);color:var(--text-2)}
@media (max-width:700px){
  :root:root:root:root:root:root .images-view .imreg .fgrid.imfields{grid-template-columns:minmax(0,1fr);row-gap:16px}
  :root:root:root:root:root:root .images-view .imreg .fgrid.imfields > .fld{grid-column:1 / -1}
}
/* the empty list: one compact row (a 20 px glyph, the title over one line) */
:root:root:root:root:root:root .images-view .card.imgs.is-empty{display:block;min-height:0;padding:16px 20px}
:root:root:root:root:root:root .images-view .card.imgs.is-empty > .empty-state.im-es{display:grid;grid-template-columns:20px minmax(0,1fr);column-gap:12px;row-gap:0;align-items:start}
:root:root:root:root:root:root .images-view .empty-state.im-es > .es-ic{width:20px;height:20px;margin:0;border-radius:0;background:none;color:var(--text-2)}
:root:root:root:root:root:root .images-view .empty-state.im-es > .es-t > b{font:600 14px/20px var(--sans)}
:root:root:root:root:root:root .images-view .empty-state.im-es > .es-t > span{font:400 13px/18px var(--sans);color:var(--text-2)}
@media (max-width:700px){:root:root:root:root:root:root .images-view .card.imgs.is-empty{padding:14px 16px}}
/* the phone's help disclosure: its icon on the title's first line */
:root:root:root:root:root:root .images-view details.disc.im-howd > summary > .ic:first-child,:root:root:root:root:root:root .images-view details.disc.im-howd > summary > .d-ic{align-self:start;margin-top:2px}

/* ---- the new-instance drawer: the owner in the header's context line; the profile a four-cell strip; More options
   one bordered list; a phone sheet's body fades above its footer ---- */
:root:root:root:root:root:root .drawer > .dh .dsub > .ni-ctx{display:flex;align-items:flex-start;gap:6px;font:400 13px/18px var(--sans);color:var(--text-2)}
:root:root:root:root:root:root .drawer > .dh .dsub > .ni-ctx > .ic{flex:none;margin:2px 0 0;vertical-align:baseline}
:root:root:root:root:root:root .drawer > .dh .dsub > .ni-ctx > .ni-own{min-width:0;overflow-wrap:anywhere}
:root:root:root:root:root:root .drawer > .dh .dsub > .ni-ctx > .ni-own > b{font-weight:600;color:var(--text)}
:root:root:root:root:root:root .drawer > .dh .dsub > .ni-ctx > .ni-own > .ni-who{color:var(--text-2)}
:root:root:root:root:root:root .drawer .newinst .ni-spec{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));column-gap:8px;row-gap:0;box-sizing:border-box;margin:8px 0 0;padding:8px 12px;border-radius:8px;background:var(--surface-2)}
:root:root:root:root:root:root .drawer .newinst .ni-spec > span{display:flex;flex-direction:column;min-width:0;font:500 13px/18px var(--sans);color:var(--text-2);white-space:nowrap}
:root:root:root:root:root:root .drawer .newinst .ni-spec > span::before{content:none;display:none}
:root:root:root:root:root:root .drawer .newinst .ni-spec > span > b{font:600 14px/20px var(--sans);color:var(--text);font-variant-numeric:tabular-nums}
:root:root:root:root:root:root .drawer .ni-adv{margin-top:8px;padding-top:0;border-top:0}
:root:root:root:root:root:root .drawer .ni-adv > legend.eyebrow{margin:0 0 8px;font:600 13px/20px var(--sans);color:var(--text-2)}
:root:root:root:root:root:root .drawer .ni-adv > .ni-rows{display:flex;flex-direction:column;gap:0;border:1px solid var(--border);border-radius:10px;overflow:hidden}
:root:root:root:root:root:root .drawer .ni-adv > .ni-rows > .ni-row{margin:0;border:0;border-radius:0;background:transparent}
:root:root:root:root:root:root .drawer .ni-adv > .ni-rows > .ni-row + .ni-row,:root:root:root:root:root:root .drawer .ni-adv > .ni-rows > .overrides + .ni-row{border-top:1px solid var(--border-soft)}
:root:root:root:root:root:root .drawer .ni-adv > .ni-rows > details.ni-row > summary,:root:root:root:root:root:root .drawer .ni-adv > .ni-rows > .ni-row:not(details){box-sizing:border-box;min-height:52px;padding:6px 12px 6px 14px}
:root:root:root:root:root:root .drawer .ni-adv > .ni-rows > details.ni-row[open] > :not(summary){padding:0 14px 14px}
:root:root:root:root:root:root .drawer .ni-adv > .ni-rows > .overrides{padding:12px 14px 14px;border-top:1px solid var(--border-soft)}
@media (max-width:700px){
  :root:root:root:root:root:root .overlay > .drawer .dscroll.can-more{-webkit-mask-image:linear-gradient(to bottom,#000 calc(100% - 24px),transparent);mask-image:linear-gradient(to bottom,#000 calc(100% - 24px),transparent);padding-bottom:24px}
  :root:root:root:root:root:root .overlay:has(> .drawer){background:var(--scrim-sheet)}
}

/* ---- D3 one badge, one count, one approval count ---- */
:root{--b-n-bg:var(--surface-3);--b-n:var(--text-2);--tag-bg:var(--surface-3);--tag-fg:var(--text-2)}
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]){--b-n-bg:#ebe5da;--tag-bg:#ebe5da}}
:root[data-theme="light"]{--b-n-bg:#ebe5da;--tag-bg:#ebe5da}
:root:root:root:root .stb.t-n,:root:root:root:root .istate.stb.t-n{background:var(--b-n-bg);box-shadow:none;color:var(--text-2)}
:root:root:root:root:root .tagn,:root:root:root:root:root :is(.tag.prole,.nfake){height:22px;min-height:22px;padding:0 8px;border:0;border-radius:999px;background:var(--tag-bg);box-shadow:none;font:500 13px/18px var(--sans);color:var(--text-2)}
:root:root:root:root:root .sec-h h2 > .count,:root:root:root:root:root h2 > .count.count,:root:root:root:root:root:root .drawer h3.eyebrow > .count{display:inline-grid;place-items:center;box-sizing:border-box;min-width:22px;height:22px;margin:0 0 0 8px;padding:0 7px;border-radius:999px;background:var(--surface-3);font:600 12px/1 var(--sans);color:var(--text-2);font-variant-numeric:tabular-nums;vertical-align:2px}
@media (prefers-color-scheme:light){:root:root:root:root:root:root:not([data-theme="dark"]) .sec-h h2 > .count{background:#ebe5da}}
:root:root:root:root:root:root[data-theme="light"] .sec-h h2 > .count{background:#ebe5da}
:root:root:root:root:root:root .apc,:root:root:root:root:root:root .node-view .ninst-t > .nit-r > .nn > .apc.nit-ap{flex:none;display:inline-flex;align-items:center;gap:3px;box-sizing:border-box;height:20px;min-height:20px;margin:0;padding:0 7px 0 6px;border-radius:999px;background:var(--b-warn-bg);font:600 12px/20px var(--sans);color:var(--b-warn);font-variant-numeric:tabular-nums}
:root:root:root:root:root:root .apc > .ic{width:12px;height:12px}

/* ---- node administration ---- */
:root:root:root:root:root:root .node-view .hostcard dl.props.pools .pool-v > .ps .stb{min-width:68px;justify-content:center}
:root:root:root:root:root:root .node-view .ninst-t > .nit-r > :is(.no,.nm){color:var(--text-2);font-variant-numeric:tabular-nums}
:root:root:root:root:root:root .node-view .ninst-t > :is(.nit-h,.nit-r) > .nb{text-align:right;font-variant-numeric:tabular-nums}
:root:root:root:root:root:root .node-view .ninst-t > .nit-r > .ic{justify-self:end;color:var(--text-2)}
@media (min-width:701px){:root:root:root:root:root:root .node-view .ninst-t > :is(.nit-h,.nit-r){padding-right:16px}}
:root:root:root:root:root:root .node-view .hostcard :is(code.pid,.pv code){font-size:max(13px,.92em);color:var(--text)}
@media (max-width:700px){
  :root:root:root:root:root:root .node-view .ninst-t > .nit-r{grid-template-columns:auto minmax(0,1fr) 16px;grid-template-areas:"n n c" "s m c";column-gap:8px;row-gap:4px;align-items:center}
  :root:root:root:root:root:root .node-view .ninst-t > .nit-r > .nn{grid-area:n}
  :root:root:root:root:root:root .node-view .ninst-t > .nit-r > .nst{grid-area:s}
  :root:root:root:root:root:root .node-view .ninst-t > .nit-r > .nm{grid-area:m;align-self:center;justify-self:start;font:400 13px/18px var(--sans);text-align:left}
  :root:root:root:root:root:root .node-view .ninst-t > .nit-r > .ic{grid-area:c;align-self:center}
  /* Host last, a disclosure card after Tools */
  :root:root:root:root:root:root .node-view > .ws.rowsgrid{display:flex;flex-direction:column;gap:var(--stack-gap)}
  :root:root:root:root:root:root .node-view > .ws.rowsgrid > :is(.ws-main,.ws-rail){display:contents}
  :root:root:root:root:root:root .node-view > .ws.rowsgrid > .ws-main > .sec.ninst{order:1;margin:0}
  :root:root:root:root:root:root .node-view > .ws.rowsgrid > .ws-main > .sec.ndrain{order:2;margin:0}
  :root:root:root:root:root:root .node-view > .ws.rowsgrid > .ws-rail > .sec.ntools-s{order:3;margin:0}
  :root:root:root:root:root:root .node-view > .ws.rowsgrid > .ws-rail > .hostcard{order:4;margin:0}
}

/* ---- D6 two-column admin pages: both columns end on one line (the shorter column's last card takes the rest) ---- */
@media (min-width:1100px){
  :root:root:root:root:root:root :is(.node-view,.instance-admin) > .ws.rowsgrid{align-items:stretch}
  :root:root:root:root:root:root :is(.node-view,.instance-admin) > .ws.rowsgrid > :is(.ws-main,.ws-rail){align-self:stretch;display:flex;flex-direction:column}
  :root:root:root:root:root:root .node-view > .ws.rowsgrid > .ws-rail > .sec.ntools-s,:root:root:root:root:root:root .node-view > .ws.rowsgrid > .ws-rail > .sec.ntools-s > .sec-b,
  :root:root:root:root:root:root .node-view > .ws.rowsgrid > .ws-rail > .sec.ntools-s > .sec-b > .card.ntools,
  :root:root:root:root:root:root .node-view > .ws.rowsgrid > .ws-main > .sec.ndrain,:root:root:root:root:root:root .node-view > .ws.rowsgrid > .ws-main > .sec.ndrain > .sec-b,
  :root:root:root:root:root:root .node-view > .ws.rowsgrid > .ws-main > .sec.ndrain > .sec-b > .card.nactions,
  :root:root:root:root:root:root .instance-admin > .ws.rowsgrid > .ws-rail > .sec.ws-tools,:root:root:root:root:root:root .instance-admin > .ws.rowsgrid > .ws-rail > .sec.ws-tools > .sec-b,
  :root:root:root:root:root:root .instance-admin > .ws.rowsgrid > .ws-rail > .sec.ws-tools > .sec-b > .card.ia-tools,
  :root:root:root:root:root:root .instance-admin > .ws.rowsgrid > .ws-main > .policy-bare,
  :root:root:root:root:root:root .instance-admin > .ws.rowsgrid > .ws-main > .policy-bare > .sec,
  :root:root:root:root:root:root .instance-admin > .ws.rowsgrid > .ws-main > .policy-bare > .sec > .sec-b,
  :root:root:root:root:root:root .instance-admin > .ws.rowsgrid > .ws-main > .policy-bare > .sec > .sec-b > form.pol-cards,
  :root:root:root:root:root:root .instance-admin > .ws.rowsgrid > .ws-main > .policy-bare > .sec > .sec-b > form.pol-cards > .card.pol-main{flex:1 0 auto;display:flex;flex-direction:column}
  :root:root:root:root:root:root .instance-admin > .ws.rowsgrid > .ws-main > .policy-bare .card.pol-main > footer.cf{margin-top:auto}
  :root:root:root:root:root:root .node-view .card.nactions{justify-content:flex-start}
  :root:root:root:root:root:root .node-view .card.nactions > form{flex:1 0 auto;display:flex;flex-direction:column}
  :root:root:root:root:root:root .node-view .card.nactions > form > footer.cf{margin-top:auto}
}

/* ---- the chat (both views): the classic header in the chat view's metrics with the same two ghost icons; one thread
   rhythm; threads anchored at the bottom by the composer ---- */
:root:root:root:root:root:root .iview .chat > .ch{box-sizing:border-box;height:56px;min-height:56px;padding:0 16px 0 24px;gap:10px}
:root:root:root:root:root:root .iview .chat > .ch .cht > b{font:600 15px/22px var(--sans)}
:root:root:root:root:root:root .iview .chat > .ch > .ch-acts{display:flex;align-items:center;gap:4px;margin-left:auto}
:root:root:root:root:root:root .iview .chat > .ch > .ch-acts > button.ib{display:inline-grid}
:root:root:root:root:root:root :is(.iview .chat > .ch > .ch-acts > button.ib,.gk-chead > .r > button.gk-icon){place-items:center;align-items:center;justify-content:center;box-sizing:border-box;width:32px;height:32px;min-width:32px;min-height:32px;margin:0;padding:0;border:0;border-radius:8px;background:transparent;box-shadow:none;color:var(--text-2)}
:root:root:root:root:root:root :is(.iview .chat > .ch > .ch-acts > button.ib,.gk-chead > .r > button.gk-icon):hover{background:var(--hover);color:var(--text)}
:root:root:root:root:root:root :is(.iview .chat > .ch > .ch-acts > button.ib.on,.gk-chead > .r > button.gk-icon.on){background:var(--surface-3);color:var(--text)}
:root:root:root:root:root:root :is(.iview .chat > .ch > .ch-acts > button.ib,.gk-chead > .r > button.gk-icon) > .ic{width:16px;height:16px}
:root:root:root:root:root:root .iview .chat > .transcript{padding-top:28px}
@media (max-width:700px){:root:root:root:root:root:root .iview .chat > .transcript{padding-top:24px}}
/* D6 bottom anchor: a short thread sits on the composer (the spacer collapses once the thread overflows) */
:root:root:root:root:root:root:root:root .iview .chat > .transcript::before,:root:root:root:root:root:root:root:root .gk-chat > .gk-scroll::before{content:"";display:block;flex:1 0 auto;order:-1;min-height:0;height:0}
/* the request card on the message text column */
:root:root:root:root:root:root .iview .chat > .transcript > .appr-dock{margin-left:40px}
@media (max-width:700px){:root:root:root:root:root:root .iview .chat > .transcript > .appr-dock{margin-left:0}}
/* D10 the request card: the destination plain mono in the text colour (no chip), the port quieter; the scope first
   in the meta line as a neutral tag; the ⋯ a ghost on line 1 */
:root:root:root:root:root:root:root .ap-h .ap-l1 > b.host{display:inline;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;font-family:var(--mono);font-size:max(13px,.92em);font-weight:600;color:var(--text);white-space:normal;overflow-wrap:anywhere}
:root:root:root:root:root:root:root .ap-h .ap-l1 > b.host > .port{color:var(--text-2);font-weight:500}
:root:root:root:root:root:root:root .ap-m.mline > .ap-scope{order:-1;display:inline-flex;align-items:center;height:20px;padding:0 7px;border-radius:999px;background:var(--tag-bg);font:500 12px/18px var(--sans);color:var(--text-2)}
:root:root:root:root:root:root:root .ap-m.mline > .ap-scope::first-letter{text-transform:uppercase}
:root:root:root:root:root:root:root .ap-m.mline > .ap-scope{margin-right:8px}
:root:root:root:root:root:root:root .ap-m.mline > .ap-scope::before{content:none;display:none}
:root:root:root:root:root:root:root .ap-h > details.ap-more > summary{display:inline-grid;place-items:center;box-sizing:border-box;width:32px;height:32px;margin:-6px -8px -6px 0;padding:0;border:0;border-radius:8px;background:transparent;color:var(--text-2)}
:root:root:root:root:root:root:root .ap-h > details.ap-more > summary:hover{background:var(--hover);color:var(--text)}
/* D11 the work summary: a borderless text button after the time on the author line */
:root:root:root:root:root:root .gk-msg.bot .gk-th > .tm{order:1}
:root:root:root:root:root:root .gk-msg.bot .gk-th > .gk-work{order:2}
:root:root:root:root:root:root .gk-msg.bot .gk-th > .gk-work > button.gk-workh{display:inline-flex;align-items:center;gap:2px;height:auto;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;font:400 13px/18px var(--sans);color:var(--text-2);font-variant-numeric:tabular-nums}
:root:root:root:root:root:root .gk-msg.bot .gk-th > .gk-work > button.gk-workh::before{content:"·";margin:0 6px 0 0;color:var(--text-3)}
:root:root:root:root:root:root .gk-msg.bot .gk-th > .gk-work > button.gk-workh:hover{background:none;color:var(--text);text-decoration:underline;text-underline-offset:3px}
:root:root:root:root:root:root .gk-msg.bot .gk-th > .gk-work > button.gk-workh > .car > .ic{width:12px;height:12px}
:root:root:root:root:root:root .iview .turn > .work > .wh{height:auto;min-height:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;font:400 13px/18px var(--sans);color:var(--text-2)}
:root:root:root:root:root:root .iview .turn > .work > .wh:hover{background:none;color:var(--text);text-decoration:underline;text-underline-offset:3px}
/* the activity timeline (both panes): one inset, one 24 px rail, a solid spine; the turn bracketed */
:root:root:root:root:root:root :is(.gk .gk-panel,.iview .rpane) .console{padding:8px 16px 16px}
:root:root:root:root:root:root .console > :is(.act-h,.act-ev,.act-end){position:relative;grid-template-columns:24px minmax(0,1fr) auto;column-gap:12px}
:root:root:root:root:root:root .console > :is(.act-h,.act-ev,.act-end) > .act-mk{box-sizing:border-box;width:24px;height:24px;min-width:24px;margin:0}
:root:root:root:root:root:root .console > .act-h{column-gap:0;gap:0}
:root:root:root:root:root:root .console > .act-h > .act-mk{margin:0 12px 0 0}
:root:root:root:root:root:root .console > .act-h > b{margin-left:0}
:root:root:root:root:root:root .console > .act-h > .act-mk > :is(.gk-av,.av,span){width:24px;height:24px;min-width:24px;margin:0;font-size:11px;line-height:24px}
:root:root:root:root:root:root .console > :is(.act-h,.act-ev) > .act-mk > .ic{width:14px;height:14px}
:root:root:root:root:root:root .console > :is(.act-h,.act-ev)::after{content:"";position:absolute;left:19.5px;top:30px;bottom:-6px;width:1px;height:auto;border:0;background:var(--border-strong)}
:root:root:root:root:root:root .console > :is(.act-h,.act-ev):last-child::after{content:none}
:root:root:root:root:root:root .console > .act-ev:has(+ .act-end)::after{width:0;background:none;border-left:1px dashed var(--border-strong)}
:root:root:root:root:root:root .console > .act-end > .act-mk{position:relative;border:0;background:none}
:root:root:root:root:root:root .console > .act-end > .act-mk::after{content:"";position:absolute;left:8px;top:8px;box-sizing:border-box;width:8px;height:8px;margin:0;border:1.5px solid var(--border-strong);border-radius:50%;background:var(--surface-1)}
:root:root:root:root:root:root .console > .act-ev.k-start > .act-mk{background:var(--surface-3);color:var(--text)}

/* the classic phone's bot strip: one pill per bot (the chosen one filled), the state dot ringed outside the avatar; the
   + and the panel toggle 40 px ghosts */
@media (max-width:700px){
  :root:root:root:root:root:root:root:root:root .iview .chat > .botbar > nav.side > .brow{box-sizing:border-box;height:32px;min-height:32px;padding:0 12px 0 6px;gap:8px;border:1px solid var(--border-soft);border-radius:999px;background:transparent;box-shadow:none}
  :root:root:root:root:root:root:root:root:root .iview .chat > .botbar > nav.side > .brow > .bw > .n{font:500 14px/20px var(--sans);color:var(--text-2)}
  :root:root:root:root:root:root:root:root:root .iview .chat > .botbar > nav.side > .brow.on{border-color:transparent;background:var(--surface-3)}
  :root:root:root:root:root:root:root:root:root .iview .chat > .botbar > nav.side > .brow.on > .bw > .n{font-weight:600;color:var(--text)}
  :root:root:root:root:root:root:root:root:root .iview .chat > .botbar > nav.side > .brow > .gk-av{position:relative;width:20px;height:20px;min-width:20px;font-size:10px;line-height:20px;overflow:visible}
  :root:root:root:root:root:root:root:root:root .iview .chat > .botbar > nav.side > .brow > .gk-av > i.b{position:absolute;right:-3px;bottom:-3px;width:8px;height:8px;box-sizing:content-box;border:2px solid var(--surface-1);border-radius:50%}
  :root:root:root:root:root:root:root:root:root .iview .chat > .botbar > nav.side > .brow.on > .gk-av > i.b{border-color:var(--surface-3)}
  :root:root:root:root:root:root:root:root:root .iview .chat > .botbar > nav.side :is(button.add,.side-x > button.ib){width:40px;height:40px;min-width:40px;min-height:40px;border:0;border-radius:8px;background:transparent;box-shadow:none;color:var(--text-2)}
  :root:root:root:root:root:root:root:root:root .iview .chat > .botbar > nav.side :is(button.add,.side-x > button.ib):hover{background:var(--hover);color:var(--text)}
  :root:root:root:root:root:root:root:root:root .iview .chat > .botbar > nav.side > .side-x > button.ib.on{background:var(--surface-3);color:var(--text)}
}

/* ---- D4 selection: the chosen option a 1 px edge and its radio dot in one amber; segmented controls a defined track
   and thumb with equal segments ---- */
:root{--seg-on:#3a3732;--seg-on-edge:rgba(255,255,255,.10);--seg-on-shadow:0 0 0 0 transparent}
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]){--seg-on:#fffdfa;--seg-on-edge:#d4cab9;--seg-on-shadow:0 1px 2px rgba(64,44,16,.12)}}
:root[data-theme="light"]{--seg-on:#fffdfa;--seg-on-edge:#d4cab9;--seg-on-shadow:0 1px 2px rgba(64,44,16,.12)}
:root:root:root:root:root:root:root :is(.verbs-g > .verbs.cards > button.verb,.roles-g .verbs.cards > button.verb,.scr .scracts.scrmodes > .verb):is(.on,.on:hover){border-color:var(--opt-sel);background:var(--opt-sel-bg);box-shadow:none}
:root:root:root:root:root:root:root :is(.verbs-g > .verbs.cards > button.verb,.roles-g .verbs.cards > button.verb,.scr .scracts.scrmodes > .verb):not(.on):hover{border-color:var(--border-strong);background:var(--surface-2)}
:root:root:root:root:root:root:root :is(.verbs-g > .verbs.cards > button.verb,.roles-g .verbs.cards > button.verb,.scr .scracts.scrmodes > .verb) > .vdot{box-sizing:border-box;width:18px;height:18px;min-width:18px;border:1.5px solid var(--control-edge);border-radius:50%;background:transparent;opacity:1}
:root:root:root:root:root:root:root :is(.verbs-g > .verbs.cards > button.verb,.roles-g .verbs.cards > button.verb,.scr .scracts.scrmodes > .verb).on > .vdot{border-color:var(--opt-sel);background:radial-gradient(circle,var(--opt-sel) 0 3.5px,transparent 4px)}
:root:root:root:root:root:root:root :is(.segmented,.verbs-g > .verbs.seg){display:inline-grid;grid-auto-flow:column;grid-auto-columns:minmax(max-content,1fr);grid-template-columns:none;grid-template-rows:none;box-sizing:border-box;width:auto;height:auto;min-height:0;gap:2px;padding:2px;border:1px solid var(--border-soft);border-radius:10px;background:var(--surface-2)}
:root:root:root:root:root:root:root :is(.segmented,.verbs-g > .verbs.seg) > button{box-sizing:border-box;min-width:0;height:30px;min-height:30px;padding:0 14px;border:0;border-radius:8px;background:transparent;box-shadow:none;font:500 14px/20px var(--sans);color:var(--text-2);white-space:nowrap}
:root:root:root:root:root:root:root :is(.segmented,.verbs-g > .verbs.seg) > button:hover:not(.on):not(:disabled){background:var(--hover);color:var(--text)}
:root:root:root:root:root:root:root :is(.segmented,.verbs-g > .verbs.seg) > button.on,:root:root:root:root:root:root:root :is(.segmented,.verbs-g > .verbs.seg) > button.on:hover{background:var(--seg-on);box-shadow:inset 0 0 0 1px var(--seg-on-edge),var(--seg-on-shadow);font-weight:600;color:var(--text)}
@media (max-width:700px){
  :root:root:root:root:root:root:root :is(.segmented,.verbs-g > .verbs.seg){display:grid;width:100%}
  :root:root:root:root:root:root:root :is(.segmented,.verbs-g > .verbs.seg) > button{height:34px;min-height:34px;padding:0 6px}
}

/* ---- D7 the instance tab strip: no hairline between the groups, a wider gap instead; on a phone all tabs fit,
   16 px from each edge ---- */
:root:root:root:root:root:root .subnav > .stab-sep{flex:none;width:0;height:0;margin:0 10px;background:none;border:0}
@media (max-width:700px){
  :root:root:root:root:root:root:root .ihx .subnav{justify-content:flex-start;gap:20px;padding:0 16px;overflow-x:auto}
  :root:root:root:root:root:root:root .ihx .subnav:has(> .stab ~ .stab ~ .stab ~ .stab ~ .stab){justify-content:space-between;gap:0}
  :root:root:root:root:root:root:root .ihx .subnav > .stab-sep{display:none}
  :root:root:root:root:root:root:root .ihx .subnav > .stab,:root:root:root:root:root:root:root .ihx .subnav > .stab.on{height:44px;min-height:44px;padding:0 2px;font:500 14px/20px var(--sans)}
  :root:root:root:root:root:root:root .ihx .subnav > .stab.on{color:var(--text)}
}

/* ---- D8 navigation links: body text with a chevron, a 32 px hit area ---- */
:root:root:root:root:root:root button.link-btn:not(.dx-act),:root:root:root:root:root:root button.lnk.act-full{display:inline-flex;align-items:center;gap:2px;box-sizing:border-box;height:32px;min-height:32px;margin-top:0;margin-bottom:0;padding:0 6px;border:0;border-radius:6px;background:transparent;font:500 14px/20px var(--sans);color:var(--text);text-decoration:none}
:root:root:root:root:root:root button.link-btn:not(.dx-act):hover,:root:root:root:root:root:root button.lnk.act-full:hover{background:var(--hover)}
:root:root:root:root:root:root button.link-btn:not(.dx-act) > .ic{width:14px;height:14px;color:var(--text-2)}
:root:root:root:root:root:root .terminal-page .tcard.t-idle > .twin > .tbar > .link-btn.thist{color:#edebe6}
:root:root:root:root:root:root .terminal-page .tcard.t-idle > .twin > .tbar > .link-btn.thist:hover{background:rgba(255,255,255,.08)}
:root:root:root:root:root:root .terminal-page .tcard.t-idle > .twin > .tbar > .link-btn.thist > .ic{color:#cdc8bf}

/* ---- the ⋯ menu: three scoped groups; one caption line per group (kind · name) in the secondary ink at 13 px;
   hairlines between groups inset 12 px; 34 px rows on a desktop ---- */
:root:root:root:root:root:root:root .gk-menu .pop .sec.scope{display:flex;align-items:baseline;gap:6px;min-width:0;padding:10px 10px 4px;font:600 13px/18px var(--sans);letter-spacing:0;text-transform:none;color:var(--text-2)}
:root:root:root:root:root:root:root .gk-menu .pop .sec.scope > .sec-k{flex:none;font:600 13px/18px var(--sans);text-transform:none;color:var(--text-2)}
:root:root:root:root:root:root:root .gk-menu .pop .sec.scope > .sec-n{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:400 13px/18px var(--sans);color:var(--text-2)}
:root:root:root:root:root:root:root .gk-menu .pop .grp + .grp{position:relative;margin-top:6px;border-top:0}
:root:root:root:root:root:root:root .gk-menu .pop .grp + .grp::before{content:"";position:absolute;left:12px;right:12px;top:0;height:1px;background:var(--border)}
@media (min-width:701px){:root:root:root:root:root:root:root .gk-menu.gk-instm .pop :is(button.it,[role=menuitem]){height:34px;min-height:34px}}
:root:root:root:root:root:root:root .gk-menu .pop .g-danger :is(button.it,[role=menuitem]).danger,:root:root:root:root:root:root:root .gk-menu .pop .g-danger :is(button.it,[role=menuitem]).danger > .ic{color:var(--bad-ink,var(--bad))}
@media (max-width:700px){:root:root:root:root:root:root:root .gk-menu .pop .grp + .grp::before{left:16px;right:16px}}

/* ---- files: the shared bot pill, the path, a ghost refresh and Upload on one 32 px line; every row a chevron; the
   list's foot one row (the count and the drop target) ---- */
:root:root:root:root:root:root:root .gk .gk-panel .ftree .fbar{align-items:center;gap:8px}
:root:root:root:root:root:root:root .gk .gk-panel .ftree .fbar > button.ib.fref{display:inline-grid;place-items:center;width:32px;height:32px;min-width:32px;min-height:32px;margin:0 0 0 auto;padding:0;border:0;border-radius:8px;background:transparent;box-shadow:none;color:var(--text-2)}
:root:root:root:root:root:root:root .gk .gk-panel .ftree .fbar > button.ib.fref:hover{background:var(--hover);color:var(--text)}
:root:root:root:root:root:root:root .gk .gk-panel .ftree .fbar > button.ib.fref > .ic{width:16px;height:16px}
:root:root:root:root:root:root:root .gk .gk-panel .ftree .fbar .crumbs > button.link.root{font-weight:600;color:var(--text)}
:root:root:root:root:root:root:root .gk .gk-panel .ftree .fbar .cs{color:var(--text-3)}
:root:root:root:root:root:root:root .gk .gk-panel .ftree .frow > .cv.cv-f{display:inline-grid;visibility:visible;opacity:1}
:root:root:root:root:root:root:root .gk .gk-panel .ftree .frow > .cv{color:var(--text-2)}
:root:root:root:root:root:root:root .gk .gk-panel .ftree .frow > :is(.mt,.sz,.fm){color:var(--text-2);font-variant-numeric:tabular-nums}
:root:root:root:root:root:root:root .gk .gk-panel .ftree .flist > label.fhint.fzone.ffoot{display:flex;flex:none;flex-direction:row;justify-content:flex-start;align-items:center;gap:10px;box-sizing:border-box;min-height:44px;margin:0 16px;padding:10px 14px;border:1px solid var(--border);border-top-color:var(--border-soft);border-radius:0 0 10px 10px;background:var(--surface-1);font:400 13px/18px var(--sans);color:var(--text-2);text-align:left;cursor:pointer}
:root:root:root:root:root:root:root .gk .gk-panel .ftree .flist > label.fhint.fzone.ffoot:hover{background:var(--hover)}
:root:root:root:root:root:root:root .gk .gk-panel .ftree .flist > label.fhint.fzone.ffoot > .fz-ic{display:inline-grid;margin:0;color:var(--text-2)}
:root:root:root:root:root:root:root .gk .gk-panel .ftree .flist > label.fhint.fzone.ffoot > .fz-t{display:inline;min-width:0;font:inherit;color:inherit}
:root:root:root:root:root:root:root .gk .gk-panel .ftree .flist > label.fhint.fzone.ffoot b.fz-up{font-weight:500;color:var(--text);text-decoration:underline;text-underline-offset:3px}
:root:root:root:root:root:root:root .gk .gk-panel .ftree .flist > label.fhint.fzone.ffoot .fh-m{display:none}
@media (max-width:700px){
  :root:root:root:root:root:root:root .gk .gk-panel .ftree .flist > label.fhint.fzone.ffoot{display:flex}
  :root:root:root:root:root:root:root .gk .gk-panel .ftree .flist > label.fhint.fzone.ffoot .fh-d{display:none}
  :root:root:root:root:root:root:root .gk .gk-panel .ftree .flist > label.fhint.fzone.ffoot .fh-m{display:inline}
  :root:root:root:root:root:root:root .gk .gk-panel .ftree .flist > label.fhint.fzone.ffoot b.fz-up{text-transform:none}
  :root:root:root:root:root:root:root .gk .gk-panel .ftree .fbar > button.ib.fref{width:40px;height:40px;min-width:40px;min-height:40px}
}

:root:root:root:root:root:root:root .gk .gk-panel .ftree .fbar select.chipsel{border:1px solid var(--border-strong)}

/* ---- D12 toolbar icon buttons: ghosts (no edge at rest) ---- */
:root:root:root:root:root:root :is(.history-view,.images-view,.node-view,.home-view,.instance-admin,.checkpoint-view,.bot-admin-view) .sec-a > button.ib,:root:root:root:root:root:root .history-view .hx-bar button.ib{display:inline-grid;place-items:center;box-sizing:border-box;width:32px;height:32px;min-width:32px;min-height:32px;padding:0;border:0;border-radius:8px;background:transparent;box-shadow:none;color:var(--text-2)}
:root:root:root:root:root:root :is(.history-view,.images-view,.node-view,.home-view,.instance-admin,.checkpoint-view,.bot-admin-view) .sec-a > button.ib:hover,:root:root:root:root:root:root .history-view .hx-bar button.ib:hover{background:var(--hover);color:var(--text)}
@media (max-width:700px){:root:root:root:root:root:root .history-view .hx-bar button.ib{width:40px;height:40px;min-width:40px;min-height:40px}}

/* ---- bot administration: the empty inventory a compact row; on a phone the retained conversation and the details
   one card with two disclosure rows ---- */
:root:root:root:root:root:root .bot-admin-view .card.o-ck.is-empty{min-height:0;padding:16px 20px}
:root:root:root:root:root:root .bot-admin-view .card.o-ck.is-empty > .empty-state{display:grid;grid-template-columns:20px minmax(0,1fr);column-gap:12px;align-items:start;margin:0;padding:0;text-align:left}
:root:root:root:root:root:root .bot-admin-view .card.o-ck.is-empty > .empty-state > .es-ic{display:inline-grid;place-items:center;width:20px;height:20px;margin:0;border-radius:0;background:none;color:var(--text-2)}
:root:root:root:root:root:root .bot-admin-view .card.o-ck.is-empty > .empty-state > .es-t{display:flex;flex-direction:column;gap:2px}
:root:root:root:root:root:root .bot-admin-view .card.o-ck.is-empty > .empty-state > .es-t > b{font:600 14px/20px var(--sans);color:var(--text)}
:root:root:root:root:root:root .bot-admin-view .card.o-ck.is-empty > .empty-state > .es-t > span{font:400 13px/18px var(--sans);color:var(--text-2)}
@media (max-width:700px){
  :root:root:root:root:root:root .bot-admin-view .card.o-ck.is-empty{padding:14px 16px}
  :root:root:root:root:root:root .bot-admin-view .ws-main > .sec.ba-convo:has(+ .card.ba-ov-m) .card.convo-card{border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-width:0}
  :root:root:root:root:root:root .bot-admin-view .ws-main > .sec.ba-convo + .card.ba-ov-m{margin-top:-20px;border-top:1px solid var(--border-soft);border-top-left-radius:0;border-top-right-radius:0}
}

/* ---- history: the actor drops out when it is the target bot; durations quiet and tabular ---- */
@media (max-width:700px){:root:root:root:root:root:root .history-main .hx-row .hx-by.same{display:none}}
:root:root:root:root:root:root .history-main .hx-row .hx-res > .rd{font:400 13px/18px var(--sans);color:var(--text-3);font-variant-numeric:tabular-nums}

/* ---- checkpoints: "Keep until deleted": the switch on the label's line, a visible off track ---- */
:root:root:root:root:root:root .switch-row > .switch{align-self:start;margin-top:0}
:root:root:root:root:root:root .switch-row > .switch > input:not(:checked){box-shadow:inset 0 0 0 1px var(--control-edge)}

/* ---- the computer: the caption a neutral translucent chip; the gated clipboard switch a visible edge ---- */
:root:root:root:root:root:root:root .gk .gk-panel .scr .scrbox :is(.scrcap,.cap,figcaption){background:rgba(12,11,10,.72);color:#edebe6;border-radius:6px}

@media (max-width:700px){
  :root:root:root:root:root:root:root .verbs-g > .verbs.seg.n4 > button{padding:0 2px}
  /* a checkpoint's row: the title, then one meta line (kind · created · retention · the id and its copy) */
  :root:root:root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-l{display:flex;flex-wrap:wrap;align-items:center;column-gap:0;row-gap:2px}
  :root:root:root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-l > h3{flex:1 0 100%}
  :root:root:root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-l > .ck-meta{order:1}
  :root:root:root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-l > .ret.stb{order:2}
  :root:root:root:root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-l > :is(.ck-meta,.ret.stb,.ck-idr){flex:none;width:auto;max-width:100%;grid-column:auto}
  :root:root:root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-l > .ck-idr{order:3;display:inline-flex;align-items:center;margin:0}
  :root:root:root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-l > .ck-idr::before{content:"·";margin:0 6px;color:var(--text-3)}
  :root:root:root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-l > .ck-idr > code.ck-cid{font-size:13px;color:var(--text-2)}
}

/* the home banner's destination: the same plain mono host */
:root:root:root:root:root:root:root .ap-notice .ap-n-l1 > code.host{display:inline;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;font-family:var(--mono);font-size:max(13px,.92em);font-weight:600;color:var(--text);white-space:normal;overflow-wrap:anywhere}
:root:root:root:root:root:root:root .ap-notice .ap-n-l1 > code.host > .port{color:var(--text-2);font-weight:500}

@media (max-width:700px){:root:root:root:root:root:root .gk-chead > .r > button.gk-icon{width:40px;height:40px;min-width:40px;min-height:40px}}

/* ---- the Details tab: Review › the in-card small button after the badge; the memory meter the value column's width ---- */
:root:root:root:root:root:root:root .gk-panel .dx-st{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
:root:root:root:root:root:root:root .gk-panel .dx-st > button.link-btn.dx-rev{display:inline-flex;align-items:center;gap:2px;box-sizing:border-box;height:28px;min-height:28px;margin:0;padding:0 6px 0 10px;border:1px solid var(--border);border-radius:8px;background:transparent;font:500 13px/18px var(--sans);color:var(--text)}
:root:root:root:root:root:root:root .gk-panel .dx-st > button.link-btn.dx-rev:hover{border-color:var(--border-strong);background:var(--hover)}
:root:root:root:root:root:root:root .gk-panel .dx-st > button.link-btn.dx-rev > .ic{width:14px;height:14px;color:var(--text-2)}
:root:root:root:root:root:root .gk-details .dx-memv{display:flex;flex-direction:column;align-items:stretch;gap:6px;width:100%}
:root:root:root:root:root:root .gk-details .dx-memv > .meter.dx-meter{width:100%;max-width:none;height:6px;margin:0;border-radius:3px}
/* the computer's caption: a neutral translucent chip */
:root:root:root:root:root:root:root .gk .gk-panel .scrframe > .scrtitle.scrcap{border:0;border-radius:6px;background:rgba(12,11,10,.72);box-shadow:none;color:#edebe6}
:root:root:root:root:root:root:root .gk .gk-panel .scrframe > .scrtitle.scrcap > *{color:#edebe6}
/* the gated clipboard switch: a visible edge and a dimmer knob, not a faded whole */
:root:root:root:root:root:root .scr .scrclip > .switch-row.gated > .switch{opacity:1}
:root:root:root:root:root:root .scr .scrclip > .switch-row.gated > .switch > input{box-shadow:inset 0 0 0 1px var(--control-edge)}
:root:root:root:root:root:root .scr .scrclip > .switch-row.gated > .switch > input::after{opacity:.6}
:root:root:root:root:root:root .scr .scrclip > .switch-row.gated > .sw-t > .sw-h{margin-left:0}
/* the desktop toast's right edge on the content gutter */
@media (min-width:701px){:root:root:root:root:root:root .toasts{right:40px}}

:root:root:root:root:root:root .cbar > button.lnk.act-full{margin-left:auto;margin-right:-6px}
/* the classic sidebar's Groups: its + the sidebar's ghost icon */
:root:root:root:root:root:root:root:root:root .sb .sb-groups button.gk-gadd{display:inline-grid;place-items:center;width:28px;height:28px;min-width:28px;padding:0;border:0;border-radius:8px;background:transparent;box-shadow:none;color:var(--text-2)}
:root:root:root:root:root:root:root:root:root .sb .sb-groups button.gk-gadd:hover:not(:disabled){background:var(--hover);color:var(--text)}
/* the classic request card's ⋯ inside the card's top padding */
:root:root:root:root:root:root:root:root:root .iview .approval .ap-h > details.ap-more > summary{margin-top:-4px}

/* the sidebar's and the node header's chips: the one pill shape */
:root:root:root:root:root:root:root:root:root .sb .apc.sb-ap{height:20px;padding:0 7px 0 6px;border-radius:999px;background:var(--b-warn-bg);color:var(--b-warn);font:600 12px/20px var(--sans)}
:root:root:root:root:root:root:root:root:root .node-view .nh-chips > .tagn.nfake{border-radius:999px;box-shadow:none;background:var(--tag-bg);color:var(--text-2)}

/* ==== r31r: the critics' round on r31 — one soft disabled primary, the phone tab's bar, chips that hold on any
   surface, unavailable verbs as a line of text, the request card's ⋯ on the title line, a toast band on a phone page,
   the terminal's start panel a themed card ==== */
/* ---- tokens: the disabled primary is the accent's soft variant (a faint amber wash, an amber edge, amber ink) in
   both themes; neutral chips are a wash of the ink, so they show on a card, a sheet or the page alike ---- */
:root{
  --go-off-bg:rgba(245,165,36,.10); --go-off-fg:rgba(245,177,72,.78); --go-off-border:rgba(245,165,36,.30);
  --tag-bg:color-mix(in srgb,var(--text) 11%,transparent); --b-n-bg:color-mix(in srgb,var(--text) 11%,transparent);
}
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]){
  --go-off-bg:rgba(184,116,10,.08); --go-off-fg:rgba(138,82,0,.74); --go-off-border:rgba(184,116,10,.34);
  --tag-bg:rgba(80,60,30,.09); --b-n-bg:rgba(80,60,30,.09);
}}
:root[data-theme="light"]{
  --go-off-bg:rgba(184,116,10,.08); --go-off-fg:rgba(138,82,0,.74); --go-off-border:rgba(184,116,10,.34);
  --tag-bg:rgba(80,60,30,.09); --b-n-bg:rgba(80,60,30,.09);
}
:root:root:root:root:root:root:root:root:root:root :is(button.go,button.cf-go,a.go):where(:not(.it,.ib,.send,.gk-send,.verb,[role=menuitem],.items > button,.composer > button)):disabled,
:root:root:root:root:root:root:root:root:root:root :is(button.go,button.cf-go,a.go):where(:not(.it,.ib,.send,.gk-send,.verb,[role=menuitem],.items > button,.composer > button)):disabled:hover{border:1px solid var(--go-off-border);background:var(--go-off-bg);color:var(--go-off-fg);box-shadow:none;opacity:1;filter:none;cursor:not-allowed}
:root:root:root:root:root:root:root:root:root:root :is(.gk-compose .gk-send,.chat > .compose .composer > button.send):disabled{border:1px solid var(--go-off-border);background:var(--go-off-bg);color:var(--go-off-fg);box-shadow:none;opacity:1}

/* ---- the instance tabs: the phone's current tab carries the desktop's 2 px bar (the strip no longer clips it);
   on a desktop the two groups are apart by a 16 px hairline ---- */
@media (max-width:700px){
  :root:root:root:root:root:root:root:root:root:root .ihx .subnav{box-sizing:border-box;height:44px;min-height:44px;overflow-y:hidden}
  :root:root:root:root:root:root:root:root:root:root .ihx .subnav > .stab.on,:root:root:root:root:root:root:root:root:root:root .ihx .subnav > .stab.on:hover:not(:disabled){font-weight:500;color:var(--text);box-shadow:inset 0 -2px 0 var(--text)}
}
@media (min-width:701px){
  :root:root:root:root:root:root:root:root:root:root .subnav > .stab-sep{flex:none;align-self:center;width:1px;height:16px;margin:0 12px;background:var(--border);border:0}
}

/* ---- the unavailable verbs: one line of quiet text under the choices ("Not available now: Resume · Start ·
   Archive"); each name is still its radio (choosing it says why below) ---- */
:root:root:root:root:root:root:root:root:root:root .verbs-g.rcg > .verbs-na{display:flex;flex-wrap:wrap;align-items:baseline;gap:0;margin:12px 0 0;padding:0;border:0;font:400 13px/20px var(--sans);color:var(--text-2)}
:root:root:root:root:root:root:root:root:root:root .verbs-g.rcg > .verbs-na > .vna-cap{flex:none;margin:0 6px 0 0;font:400 13px/20px var(--sans);color:var(--text-2)}
:root:root:root:root:root:root:root:root:root:root .verbs-g.rcg > .verbs-na > .vna-cap::after{content:":"}
:root:root:root:root:root:root:root:root:root:root .verbs-g.rcg > .verbs-na > button.verb.na.chip,:root:root:root:root:root:root:root:root:root:root .verbs-g.rcg > .verbs-na > button.verb.na.chip:hover:not(.on){display:inline;width:auto;height:auto;min-height:0;margin:0;padding:0;border:0;border-radius:3px;background:none;box-shadow:none;font:400 13px/20px var(--sans);color:var(--text-2);cursor:help}
:root:root:root:root:root:root:root:root:root:root .verbs-g.rcg > .verbs-na > button.verb.na.chip:hover:not(.on) > .vt{text-decoration:underline;text-decoration-color:var(--text-3);text-underline-offset:3px}
:root:root:root:root:root:root:root:root:root:root .verbs-g.rcg > .verbs-na > button.verb.na.chip.on{display:inline;height:auto;min-height:0;padding:0;border:0;background:none;box-shadow:none;font:600 13px/20px var(--sans);color:var(--text)}
:root:root:root:root:root:root:root:root:root:root .verbs-g.rcg > .verbs-na > button.verb.na.chip + button.verb.na.chip::before{content:"·";margin:0 6px;font-weight:400;color:var(--text-3)}
@media (max-width:700px){:root:root:root:root:root:root:root:root:root:root .verbs-g.rcg > .verbs-na > .vna-cap{flex:none;margin:0 6px 0 0}}

/* ---- the request card: the ⋯ centred on the title's first line in a column of its own; the quote 4 px under ---- */
:root:root:root:root:root:root:root:root:root:root :is(.gk-card.gk-egress:not(.rec),.chat-appr > .approval,.appr-dock .approval) > .ap-h{min-height:0;align-items:flex-start}
:root:root:root:root:root:root:root:root:root:root :is(.gk-card.gk-egress:not(.rec),.chat-appr > .approval,.appr-dock .approval) > .ap-h > .ap-hw{padding-right:32px}
:root:root:root:root:root:root:root:root:root:root :is(.gk-card.gk-egress:not(.rec),.chat-appr > .approval,.appr-dock .approval) > .ap-h .ap-l1 > b.host{white-space:nowrap}
:root:root:root:root:root:root:root:root:root:root :is(.gk-card.gk-egress:not(.rec),.chat-appr > .approval,.appr-dock .approval) > .ap-h > details.ap-more{position:absolute;top:11px;right:8px;left:auto;bottom:auto;margin:0}
:root:root:root:root:root:root:root:root:root:root :is(.gk-card.gk-egress:not(.rec),.chat-appr > .approval,.appr-dock .approval) > .ap-h > details.ap-more > summary{margin:0}
:root:root:root:root:root:root:root:root:root:root :is(.gk-card.gk-egress:not(.rec),.chat-appr > .approval,.appr-dock .approval) > .ap-who{margin-top:4px}
@media (max-width:700px){
  :root:root:root:root:root:root:root:root:root:root :is(.gk-card.gk-egress:not(.rec),.chat-appr > .approval,.appr-dock .approval) > .ap-h > details.ap-more{top:7px;right:6px}
}

/* ---- a phone page's toasts: a band under the bar in the page's flow (the heading moves down while one shows,
   nothing is covered); sticky while the page scrolls ---- */
@media (max-width:700px){
  :root:root:root:root:root:root:root:root:root:root .app-page:not(.scoped) > .toasts{position:sticky;top:calc(var(--bar-h,52px) + 8px);bottom:auto;left:auto;right:auto;z-index:var(--z-toast,90);width:auto;max-width:none;margin:0 0 16px}
  :root:root:root:root:root:root:root:root:root:root .app-page:not(.scoped) > .toasts:empty{display:none}
}

/* ---- the terminal before a session: a themed card at its content's height (the dark well is the session's) ---- */
:root:root:root:root:root:root:root:root:root:root .terminal-page .tcard.t-idle{
  --surface-1:inherit; --surface-2:inherit; --text:inherit; --text-2:inherit; --text-3:inherit; --border:inherit; --border-soft:inherit; --border-strong:inherit;
  --field-bg:inherit; --control-edge:inherit; --placeholder:inherit; --focus:inherit; --field-focus-edge:inherit; --field-ring:inherit; --hover:inherit;
  --go-off-bg:inherit; --go-off-fg:inherit; --go-off-border:inherit; --go-off-hi:inherit; --code-bg:inherit; --code-edge:inherit; --sec-edge:inherit; --sec-edge-hover:inherit; color-scheme:inherit;
}
:root:root:root:root:root:root:root:root:root:root .terminal-page .tcard:not(.t-idle){--go-off-bg:rgba(245,165,36,.10);--go-off-fg:rgba(245,177,72,.78);--go-off-border:rgba(245,165,36,.30)}
:root:root:root:root:root:root:root:root:root:root .terminal-page.t-idle,:root:root:root:root:root:root:root:root:root:root .terminal-page > .tcard.t-idle{flex:none}
:root:root:root:root:root:root:root:root:root:root .terminal-page .tcard.t-idle > .twin{flex:none;min-height:0;border:1px solid var(--border-soft);border-radius:12px;background:var(--surface-1);box-shadow:var(--card-shadow,none);color:var(--text)}
:root:root:root:root:root:root:root:root:root:root .terminal-page .tcard.t-idle > .twin > .tbar{height:44px;min-height:44px;padding:0 8px 0 20px;border-bottom:1px solid var(--border-soft);background:transparent}
:root:root:root:root:root:root:root:root:root:root .terminal-page .tcard.t-idle > .twin > .tbar > .tb-t{display:none}
:root:root:root:root:root:root:root:root:root:root .terminal-page .tcard.t-idle > .twin > .tbar > .tstatus{height:auto;padding:0;background:none;font:400 13px/18px var(--sans);color:var(--text-2)}
:root:root:root:root:root:root:root:root:root:root .terminal-page .tcard.t-idle > .twin > .tbar > .tstatus::before{width:6px;height:6px;background:var(--text-3)}
:root:root:root:root:root:root:root:root:root:root .terminal-page .tcard.t-idle > .twin > .tbar > .link-btn.thist{margin-left:auto;font:500 13px/18px var(--sans);color:var(--text-2)}
:root:root:root:root:root:root:root:root:root:root .terminal-page .tcard.t-idle > .twin > .t-panel{flex:none;justify-content:flex-start;align-items:stretch;max-width:none;width:auto;margin:0;padding:24px 20px 24px;text-align:left}
:root:root:root:root:root:root:root:root:root:root .terminal-page .t-panel > .t-glyph{display:none}
:root:root:root:root:root:root:root:root:root:root .terminal-page .t-panel > .t-h{margin:0;font:600 16px/24px var(--sans);color:var(--text)}
:root:root:root:root:root:root:root:root:root:root .terminal-page .t-panel > p.t-warn{display:flex;align-items:flex-start;gap:8px;align-self:flex-start;margin:12px 0 0;padding:8px 12px;border:1px solid color-mix(in srgb,var(--b-warn) 30%,transparent);border-radius:8px;background:var(--b-warn-bg);font:400 14px/20px var(--sans);color:var(--text)}
:root:root:root:root:root:root:root:root:root:root .terminal-page .t-panel > p.t-warn > .ic{flex:none;margin-top:2px;color:var(--b-warn)}
:root:root:root:root:root:root:root:root:root:root .terminal-page .t-panel > :is(p.treason,p.err){border-color:color-mix(in srgb,var(--b-warn) 30%,transparent);background:var(--b-warn-bg);color:var(--text)}
:root:root:root:root:root:root:root:root:root:root .terminal-page .t-panel > form.ts-card{grid-template-columns:minmax(0,360px) auto;justify-content:start;grid-template-areas:"l l" "i b";column-gap:8px;row-gap:8px;margin:20px 0 0}
:root:root:root:root:root:root:root:root:root:root .terminal-page .t-panel > form.ts-card > label.f.confirm > .cf-l{font:400 14px/20px var(--sans);color:var(--text-2)}
:root:root:root:root:root:root:root:root:root:root .terminal-page .t-panel > form.ts-card > label.f.confirm > .cf-l > code.idchip{margin:0 2px;padding:1px 6px;border:1px solid var(--code-edge,var(--border-soft));border-radius:6px;background:var(--code-bg);font:400 13px/18px var(--mono);color:var(--text)}
:root:root:root:root:root:root:root:root:root:root .terminal-page .t-panel > form.ts-card > label.f.confirm > input{height:36px;min-height:36px;border:1px solid var(--control-edge);border-radius:8px;background:var(--field-bg);font:400 14px/20px var(--mono);font-size-adjust:0.5;color:var(--text)}
:root:root:root:root:root:root:root:root:root:root .terminal-page .t-panel > form.ts-card > label.f.confirm > input::placeholder{font-family:var(--sans);font-size-adjust:none;color:var(--placeholder)}
:root:root:root:root:root:root:root:root:root:root .terminal-page .t-panel > form.ts-card > label.f.confirm > input:focus{border-color:var(--field-focus-edge);box-shadow:0 0 0 3px var(--field-ring);outline:none}
:root:root:root:root:root:root:root:root:root:root .terminal-page .t-panel > form.ts-card > button.go,:root:root:root:root:root:root:root:root:root:root .terminal-page .t-panel > form.ts-card > button.go:disabled{height:36px;min-height:36px;padding:0 16px;border-radius:8px}
@media (max-width:700px){
  :root:root:root:root:root:root:root:root:root:root .terminal-page .tcard.t-idle > .twin{min-height:0}
  :root:root:root:root:root:root:root:root:root:root .terminal-page .tcard.t-idle > .twin > .tbar{padding:0 4px 0 16px}
  :root:root:root:root:root:root:root:root:root:root .terminal-page .tcard.t-idle > .twin > .t-panel{padding:20px 16px}
  :root:root:root:root:root:root:root:root:root:root .terminal-page .t-panel > form.ts-card{grid-template-columns:minmax(0,1fr);grid-template-areas:"l" "i" "b"}
  :root:root:root:root:root:root:root:root:root:root .terminal-page .t-panel > form.ts-card > label.f.confirm > input{height:44px;min-height:44px;font-size:16px}
  :root:root:root:root:root:root:root:root:root:root .terminal-page .t-panel > form.ts-card > button.go,:root:root:root:root:root:root:root:root:root:root .terminal-page .t-panel > form.ts-card > button.go:disabled{width:100%;height:44px;min-height:44px}
}

/* ---- the classic thread: the work line on the name's line after a "·", one baseline, the chevron 12 px; a phone's
   bot pill keeps its initial clear of the state dot ---- */
:root:root:root:root:root:root:root:root:root:root .iview .chat > .transcript > .turn:has(> .msg.bot) > .msg.bot > .mc > .who{align-self:center;min-height:0;align-items:baseline}
:root:root:root:root:root:root:root:root:root:root .iview .chat > .transcript > .turn:has(> .msg.bot) > .work > .wh{align-self:center;margin:0 0 0 -12px}
:root:root:root:root:root:root:root:root:root:root .iview .chat > .transcript > .turn:has(> .msg.bot) > .work > .wh::before{content:"·";margin:0 2px 0 6px;color:var(--text-3)}
:root:root:root:root:root:root:root:root:root:root :is(.iview .turn > .work > .wh,.gk-msg.bot .gk-th .gk-work > .gk-workh) > .car{display:inline-grid;place-items:center;width:14px;height:14px;margin:0 0 0 2px}
:root:root:root:root:root:root:root:root:root:root :is(.iview .turn > .work > .wh,.gk-msg.bot .gk-th .gk-work > .gk-workh) > .car > .ic{width:12px;height:12px}
@media (max-width:700px){:root:root:root:root:root:root:root:root:root:root .iview .chat > .botbar > nav.side > .brow > .gk-av > i.b{right:-5px;bottom:-3px;width:6px;height:6px;min-width:6px}}

/* ---- the phone's segmented controls: equal segments, none narrower than its label plus 10 px a side ---- */
@media (max-width:700px){
  :root:root:root:root:root:root:root:root:root:root :is(.segmented,.verbs-g > .verbs.seg){display:flex}
  :root:root:root:root:root:root:root:root:root:root :is(.segmented,.verbs-g > .verbs.seg) > button{flex:1 1 0;min-width:max-content;padding:0 10px}
}

/* ---- the gated clipboard switch: a filled track with an edge in both themes, its label quiet ---- */
:root:root:root:root:root:root:root:root:root:root .scr .scrclip > .switch-row.gated > .switch > input{opacity:1;background:var(--surface-3);box-shadow:inset 0 0 0 1px var(--control-edge)}
:root:root:root:root:root:root:root:root:root:root .switch > input[type=checkbox]:disabled:not(:checked){opacity:.7}

/* ---- the new-instance sheet on a phone: the privacy line one line (the account detail is the desktop's); the scroll
   area fades at its foot while more options remain below ---- */
@media (max-width:700px){
  :root:root:root:root:root:root:root:root:root:root .overlay > .drawer .dsub .ni-own > .ni-who{display:none}
  :root:root:root:root:root:root:root:root:root:root .overlay > .drawer form.newinst > .dscroll.can-more{-webkit-mask-image:linear-gradient(to bottom,#000 calc(100% - 40px),transparent);mask-image:linear-gradient(to bottom,#000 calc(100% - 40px),transparent);padding-bottom:40px}
}

/* ---- the home request banner names its scope the way the chat card does ---- */
:root:root:root:root:root:root:root:root:root:root .ap-n-m.mline > .ap-wi{order:-1;display:inline-flex;align-items:center;height:20px;margin-right:-8px;padding:0 7px;border-radius:999px;background:var(--tag-bg);font:500 12px/18px var(--sans);color:var(--text-2)}
:root:root:root:root:root:root:root:root:root:root .ap-n-m.mline > .ap-wi::first-letter{text-transform:uppercase}
:root:root:root:root:root:root:root:root:root:root .ap-n-m.mline > .ap-wi::before,:root:root:root:root:root:root:root:root:root:root .ap-n-m.mline > .ap-wi::after{content:none;display:none}
:root:root:root:root:root:root:root:root:root:root .ap-n-m.mline > :first-child::before{content:none;display:none}
@media (max-width:700px){:root:root:root:root:root:root:root:root:root:root .home-view .ap-notice .ap-n-m.mline > .ap-wi{display:none}}

/* ---- heading counts: the chip wash, so they show on a sheet too ---- */
:root:root:root:root:root:root:root:root:root:root :is(.sec-h h2 > .count,h2 > .count.count,.drawer h3.eyebrow > .count){background:var(--tag-bg)}

/* ---- checkpoints and bot administration: both columns end on one line, as on the other admin pages (the
   shorter column's card takes the rest; its footer stays at its foot) ---- */
@media (min-width:1100px){
  :root:root:root:root:root:root:root:root:root:root .checkpoint-view .rowsgrid :is(.sec.ck-act,.sec.ck-how){align-self:stretch;display:flex;flex-direction:column}
  :root:root:root:root:root:root:root:root:root:root .checkpoint-view .rowsgrid :is(.sec.ck-act,.sec.ck-how) > .sec-b,
  :root:root:root:root:root:root:root:root:root:root .checkpoint-view .rowsgrid :is(.sec.ck-act,.sec.ck-how) > .sec-b > :is(.card,section),
  :root:root:root:root:root:root:root:root:root:root .checkpoint-view .rowsgrid .card.ckform > form{flex:1 1 auto;display:flex;flex-direction:column}
  :root:root:root:root:root:root:root:root:root:root .checkpoint-view .rowsgrid .card.ckform > form > footer.cf{margin-top:auto}
  :root:root:root:root:root:root:root:root:root:root .bot-admin-view .ws.ba.rowsgrid{align-items:stretch}
  :root:root:root:root:root:root:root:root:root:root .bot-admin-view .ws.ba.rowsgrid > :is(.ws-main,.ws-rail){align-self:stretch;display:flex;flex-direction:column}
  :root:root:root:root:root:root:root:root:root:root .bot-admin-view .ws.ba.rowsgrid > .ws-rail > .sec.ba-ov-w{flex:1 1 auto}
}

/* ---- a mono field's placeholder is an example, not a value: the sans face in the placeholder ink ---- */
:root:root:root:root:root:root:root:root:root:root input.mono::placeholder{font-family:var(--sans);font-size-adjust:none;color:var(--placeholder)}

/* ---- the dark toast: a step lighter than the cards under it, a deeper shadow ---- */
:root{--toast-bg:#3a3733;--toast-shadow:0 16px 40px rgba(0,0,0,.6),0 2px 8px rgba(0,0,0,.4)}
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]){--toast-bg:#fffdfa;--toast-shadow:0 16px 40px rgba(64,44,16,.20),0 2px 8px rgba(64,44,16,.10)}}
:root[data-theme="light"]{--toast-bg:#fffdfa;--toast-shadow:0 16px 40px rgba(64,44,16,.20),0 2px 8px rgba(64,44,16,.10)}

/* ---- Details' status row: the state and Review on one line, Review at the row's end ---- */
:root:root:root:root:root:root:root:root:root:root .gk-details .dx-st{flex-wrap:nowrap;align-items:center;gap:6px}
:root:root:root:root:root:root:root:root:root:root .gk-details .dx-st > button.dx-rev{flex:none;margin-left:auto;padding:0 4px 0 8px}

/* ---- a phone's admin pages: one 16 px gap between cards on every page ---- */
@media (max-width:700px){
  :root:root:root:root:root:root:root:root:root:root .images-view > .ws.imgpg.rowsgrid,:root:root:root:root:root:root:root:root:root:root .images-view > .ws.imgpg.rowsgrid > .ws-main{gap:16px;row-gap:16px}
  :root:root:root:root:root:root:root:root:root:root .checkpoint-view .ckpg.rowsgrid,:root:root:root:root:root:root:root:root:root:root .checkpoint-view .ckpg.rowsgrid > .pg-main,:root:root:root:root:root:root:root:root:root:root .checkpoint-view .ckpg.rowsgrid > .pg-main > .ckcol{gap:16px;row-gap:16px}
  :root:root:root:root:root:root:root:root:root:root .bot-admin-view .ws.ba.rowsgrid,:root:root:root:root:root:root:root:root:root:root .bot-admin-view .ws.ba.rowsgrid > .ws-main{gap:16px;row-gap:16px}
  :root:root:root:root:root:root:root:root:root:root .bot-admin-view .ws.ba.rowsgrid > .ws-main > .card.o-ov.ba-ov-m{margin-top:-16px}
  :root:root:root:root:root:root:root:root:root:root .adminview > .sec.dz-sec{margin-top:-4px}
}

/* ---- a phone's checkpoint row: the id on its own mono line under the meta (as the desktop's under the name) ---- */
@media (max-width:700px){
  :root:root:root:root:root:root:root:root:root:root .ckpt > .ckr > .ck-l > .ck-idr{order:5;flex:1 0 100%;margin:2px 0 0;padding:0}
  :root:root:root:root:root:root:root:root:root:root .ckpt > .ckr > .ck-l > .ck-idr::before{content:none;display:none}
  :root:root:root:root:root:root:root:root:root:root .ckpt > .ckr > .ck-l > .ck-idr > code.ck-cid::before{content:none;display:none}
  :root:root:root:root:root:root:root:root:root:root .ckpt > .ckr > .ck-l > .ret{height:auto;line-height:18px}
}

/* ==== reduced motion ==== */
@media (prefers-reduced-motion:reduce){
  .toasts > .toast{animation:none}
  :is(.cluster.ov .cluster-node.linked > .ov-nh,.gk-menu .grp :is(button.it,[role=menuitem])){transition:none}
  :is(button.go,button.cf-go,button.sec,button.danger,button.ghost,.verb,.switch > input,.switch > input::after,.meter > i){transition:none;animation:none}
  :is(button.go,button.cf-go,button.sec,button.danger,button.ghost):active:not(:disabled){transform:none}
  main.app > nav.sb,.sb :is(.sb-row,.sb-inst),main.app > a.skip{transition:none}
  main.app.side-open > :is(nav.sb,.sb-scrim){animation:none}
}

/* ---- Fit: what has to hold whatever the rules above say. The collapsed sidebar is a 64 px rail of icons and
   avatars only; an instance's bar is one row from 701 px up, its tabs scrolling sideways when they run out of room;
   a phone's sheet scrolls when its rows outgrow it. (Popovers are pinned to the viewport by ui.js placePopover.) ---- */
@media (min-width:900px){
  :root:root main.app.side-rail > nav.sb .sb-brand > :is(.sb-area,.sb-div,b){display:none}
  :root:root main.app.side-rail > nav.sb :is(.sb-groups,.sb-ig > .sb-inst){display:none}
  :root:root main.app.side-rail > nav.sb :is(.sb-ig,.sb-tree,.gk-tree,.gk-tree > .gk-list,.gk-side-f){width:100%;margin:0;padding:0;border:0;display:flex;flex-direction:column;align-items:center;gap:6px}
  :root:root main.app.side-rail > nav.sb .gk-tree .gk-row{display:flex;align-items:center;justify-content:center;flex:none;position:relative;width:44px;min-width:44px;height:44px;min-height:44px;margin:0;padding:0;border-radius:12px;overflow:visible}
  :root:root main.app.side-rail > nav.sb .gk-tree .gk-row > :is(.pv,.tm){display:none}
  :root:root main.app.side-rail > nav.sb .gk-tree .gk-row > .nm{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  :root:root main.app.side-rail > nav.sb .gk-tree .gk-row > .gk-av{--sz:32px;width:32px;height:32px;min-width:32px;margin:0}
  :root:root main.app.side-rail > nav.sb .gk-tree .gk-row > .cnt{position:absolute;top:-2px;left:-2px;right:-2px;justify-content:space-between;pointer-events:none}
  :root:root:root:root:root main.app.side-rail > nav.sb .gk-side-f > .gk-add{display:flex;grid-template-columns:none;align-items:center;justify-content:center;width:36px;min-width:36px;height:36px;min-height:36px;margin:0;padding:0;gap:0;border-radius:50%}
  :root:root:root:root:root main.app.side-rail > nav.sb .gk-side-f > .gk-add > .lbl{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
}
@media (min-width:701px){
  :root:root .ihx .ih-row{flex-wrap:nowrap;min-width:0}
  :root:root .ihx .ih-row > .ih-t{flex:0 1 auto;min-width:96px;max-width:40%}
  :root:root .ihx .ih-row > nav.subnav{display:flex;order:0;flex:1 1 auto;min-width:0;height:auto;margin:0 0 0 16px;border:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}
  :root:root .ihx .ih-row > nav.subnav::-webkit-scrollbar{display:none}
  :root:root .ihx .ih-row > nav.subnav > .stab{flex:none}
  :root:root .ihx .ih-row > .ih-acts{flex:none;margin-left:auto}
}
:root:root :is(details.ap-more > .apm,.menu > .items,.gk-thread-pop){overflow-y:auto;overscroll-behavior:contain}
@media (max-width:700px){
  :root:root:root .gk-menu .gk-sheet{position:fixed;top:auto;bottom:0;left:0;right:0;overflow:hidden;transform-origin:bottom center}
  :root:root .gk-menu .gk-sheet > .pop{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain}
}
/* the side panel's head under 900 px: the bot's status, then its instance, on the second line side by side */
@media (max-width:899px){
  :root:root .gk-main > .gk-panel:not(.expanded) > .gk-ph > .gk-pctx > .pc-st{grid-row:2;grid-column:2;width:auto;min-width:0;margin:0;overflow:visible;white-space:nowrap}
  :root:root .gk-main > .gk-panel:not(.expanded) > .gk-ph > .gk-pctx > .pc-i{grid-row:2;grid-column:3;min-width:0;margin:0 0 0 8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
/* a phone's tool forms use the card's width; a row of actions wraps rather than running off the screen */
@media (max-width:700px){
  :root:root .toolscard > section.tool > details > :is(.fold-body,:not(summary)){padding-left:0}
  :root:root .row.cf-acts{flex-wrap:wrap}
  :root:root .row.cf-acts > button{flex:1 1 140px;min-width:0}
}
:root:root .row.cf-acts{flex-wrap:wrap}
/* the classic chat's start: the avatar box is the avatar's size, so the bot's name sits under it */
:root:root .cstart .cs-av{width:auto;height:auto;min-width:0;min-height:0;display:inline-flex;justify-content:center;overflow:visible}
/* the jump to the newest message gives way while the delivery options are open over the composer */
:root:root .gk-chat:has(.gk-opts) .gk-down{display:none}
/* long names never push or cover their neighbours: an instance's or bot's name in a bar ends in an ellipsis inside
   its own box (its full name is the title), an id chip in running text does too */
:root:root .ihx .ih-row > .ih-t{min-width:0;overflow:hidden}
:root:root .ihx .ih-t > .ih-title{min-width:0;max-width:100%}
:root:root .ihx .ih-title > :is(.ih-name,.ih-crumb){display:block;flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
:root:root :is(.cf-l,p,.hint,.fhelp,label) code.idchip{display:inline-block;box-sizing:border-box;max-width:calc(100% - 4px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:bottom}
@media (max-width:700px){
  :root:root .ihx .ih-row > .ih-t{flex:1 1 0;max-width:none}
}
/* 701-899 px: a bar with more than two tabs (an instance's or bot's admin pages) puts them on their own row under the
   name, as a phone does, so none hides off to the side */
@media (min-width:701px) and (max-width:899px){
  :root:root:root .ihx .ih-row:has(> nav.subnav > .stab:nth-of-type(3)){flex-wrap:wrap;row-gap:0}
  :root:root:root .ihx .ih-row:has(> nav.subnav > .stab:nth-of-type(3)) > nav.subnav{order:9;flex:1 1 100%;margin:0 -12px;padding:0 12px;border-top:1px solid var(--border-soft);height:44px}
  :root:root:root .ihx .ih-row:has(> nav.subnav > .stab:nth-of-type(3)) > .ih-t{flex:1 1 0;max-width:none}
  :root:root:root :is(.ihead,.gk-bar).ihx:has(> .ih-row > nav.subnav > .stab:nth-of-type(3)){height:auto;min-height:96px}
  :root:root:root .ihx .ih-row:has(> nav.subnav > .stab:nth-of-type(3)) > :not(nav.subnav){align-self:center;margin-top:10px;margin-bottom:10px}
}
/* a button's label wraps inside it rather than running out of it */
:root:root .row.cf-acts > button{white-space:normal;height:auto;min-height:40px;line-height:18px}
/* 900-1279 px with the side panel open: the sidebar is a rail (shell.js), the panel a column beside the chat, not
   a sheet over it, so the chat's lines are never cut by the panel's edge */
@media (min-width:900px) and (max-width:1279px){
  :root:root:root .gk-main > .gk-panel:not(.expanded),:root:root:root .gk-main > .gk-panel.t-screen:not(.expanded){position:relative;top:auto;right:auto;bottom:auto;width:clamp(360px,42%,440px);flex:none;box-shadow:none;border-left:1px solid var(--gk-line)}
  :root:root:root .gk-main:has(> .gk-panel:not(.expanded)) .gk-chead{padding-right:12px;grid-template-columns:minmax(0,1fr) minmax(0,auto) minmax(0,1fr)}
  :root:root:root .gk-main:has(> .gk-panel:not(.expanded)) > .gk-pscrim{display:none}
}
/* The page scrolls in the window, never in <body>: "overflow-x:hidden" on body (above) made body its own scroll
   container, so the sticky sidebar and bars stuck to a box that never scrolls and left the screen with the page.
   clip hides sideways overflow without making a scroll container. (The chat keeps body:has(.gk) hidden: it does
   not scroll as a page.) */
:root:root body:not(:has(.gk)){overflow-x:clip;overflow-y:visible}
:root:root html{overflow-x:clip}
