/* cardbot-dash: one visual language for every page, the Grok view included ("quiet instrument"). The system sans
   for everything a person reads, Space Mono only for ids, paths, code, console output and aligned numbers; warm
   graphite (dark) and warm paper (light) surfaces; amber for the primary action, focus, live state and links.
   All tokens live here; grok.css aliases its --gk-* names to them. */
/* Every rule before the r19 block sits in the "legacy" cascade layer (grok.css joins it), so the unlayered r19
   system wins over it without specificity escalation. */
@layer legacy, r19, late;
@layer legacy{
@font-face{font-family:"Space Mono";font-style:normal;font-weight:400;font-display:swap;src:url(/vendor/space-mono@5.3.0/space-mono-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:"Space Mono";font-style:normal;font-weight:700;font-display:swap;src:url(/vendor/space-mono@5.3.0/space-mono-latin-700-normal.woff2) format("woff2")}

/* ---- tokens: dark (default) ---- */
:root{
  --bg:#0b0b0a;
  --surface-1:#1b1a18;
  --surface-2:#24231f;
  --surface-3:#2e2c28;
  --sunken:#121211;
  --code-bg:#121211;
  --term-bg:#111111;
  --border:#3a3833;
  --border-soft:#2d2c29;
  --border-strong:#55524b;
  --border-input:var(--border-strong);
  --hover:rgba(255,255,255,.05);
  --pressed:rgba(255,255,255,.08);
  --selected:rgba(255,255,255,.07);
  --sel-bg:var(--selected); --sel-border:var(--text); --sel-dot:var(--text);
  --neutral-soft:rgba(255,255,255,.07);
  --scrim:rgba(0,0,0,.60);
  --scrim-sheet:var(--scrim);
  --track:#3d3b36;
  --meter-fill:#a39d92;
  --seg-well:#121211;
  --seg-on:#3a3934;
  --seg-ring:#5a5852;
  --seg-shadow:0 1px 2px rgba(0,0,0,.45);

  --text:#edebe6;
  --text-2:#cdc9c1;
  --text-3:#9d978e;
  --text-disabled:#9a958c;
  --border-focus:#8f8a80; --focus-wash:rgba(255,255,255,.08); --dot-ring:var(--surface-1);
  --switch-off:#5f5c55;
  --placeholder:#a19c93;
  --off-bg:transparent; --off-border:#4a4741; --off-fg:var(--text-disabled);
  --go-off-bg:var(--surface-2); --go-off-border:var(--off-border); --go-off-fg:var(--off-fg); --bad-off:var(--off-fg);
  --btn-off-bg:var(--off-bg); --btn-off-border:var(--off-border); --btn-off-fg:var(--off-fg);
  --focus-border:var(--border-focus); --focus-line:color-mix(in srgb,var(--accent) 80%,transparent);
  --term-border:#2e2d2a;
  --seg-susp:#8a857c;
  --foot-bg:#21201d;
  --mini-bg:#232220;
  --chev:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23aba79f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");

  --accent:#f5a524;
  --accent-hover:#ffb948;
  --accent-active:#e8961a;
  --accent-ink:#1c1303;
  --accent-text:#f6ad3a;
  --accent-soft:rgba(245,165,36,.14);
  --accent-wash:rgba(245,165,36,.07);
  --accent-border:rgba(245,165,36,.45);

  --ok:#5fc98d;   --ok-soft:rgba(95,201,141,.14);   --ok-border:rgba(95,201,141,.40);
  --warn:#ff8b57; --warn-soft:rgba(255,139,87,.13); --warn-border:rgba(255,139,87,.40); --warn-dot:#ff8b57;
  --bad:#ff7b7b;  --bad-soft:rgba(255,123,123,.10); --bad-border:rgba(255,123,123,.42); --bad-line:rgba(255,123,123,.35);
  --info:#7fb2f0; --info-soft:rgba(127,178,240,.14); --info-border:rgba(127,178,240,.40);
  --bad-solid:#cc3833;
  --danger-edge:rgba(246,135,124,.30);
  --on-solid:#ffffff;
  --scroll-shade:rgba(0,0,0,.28); --foot-shade:rgba(0,0,0,.55);

  --bubble-mine:#26251f; --bubble-mine-border:#36342e; --bubble-mine-text:#f3efe6;
  --chat-canvas:var(--bg); --side-surface:var(--surface-1);

  --focus:#f5a524;
  --focus-soft:rgba(245,165,36,.30);
  --selection:rgba(245,165,36,.32);

  --shadow-1:0 1px 2px rgba(0,0,0,.5);
  --shadow-2:0 1px 2px rgba(0,0,0,.4),0 6px 18px rgba(0,0,0,.45);
  --shadow-3:0 2px 6px rgba(0,0,0,.4),0 20px 50px rgba(0,0,0,.6),inset 0 1px 0 rgba(255,255,255,.04);
  --shadow-card:none;
  --btn-bg:var(--surface-2); --btn-bg-hover:var(--surface-3); --btn-shadow:none;
  --raised:#2b2926;   /* menus, popovers, sheets: lift off surface-1 panels (with --border-strong and --shadow-3) */
  --toast-bg:#2f2d2a; --toast-fg:#edebe6; --toast-meta:#c3bfb7; --toast-ok:#5fc98d; --toast-bad:#ff7b7b; --toast-info:#7fb2f0; --toast-edge:#4a4843; --toast-ti:#141311;
  --tonal-bg:var(--accent-soft); --tonal-bg-hover:color-mix(in srgb,var(--accent) 24%,transparent); --tonal-border:transparent; --tonal-fg:var(--accent-text);
  --menu-edge:var(--border-strong);
  --drawer-shadow:-24px 0 48px rgba(0,0,0,.5);

  --botl:72%;
  --av-s:28%; --av-l:30%; --av-fl:86%;
  color-scheme:dark;

  /* type */
  --sans:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","Inter","Segoe UI",Roboto,"Noto Sans","Helvetica Neue",Helvetica,Arial,"Liberation Sans",system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji";
  --mono:ui-monospace,"SF Mono",SFMono-Regular,Menlo,"Cascadia Mono","Segoe UI Mono",Consolas,"Space Mono","Liberation Mono",monospace;
  --fs-2xs:11px; --fs-xs:13px; --fs-sm:13px; --fs-base:14px; --fs-md:15px; --fs-lg:18px; --fs-xl:20px; --fs-2xl:24px;
  --fs-mono:12.5px;
  --lh-tight:1.25; --lh-snug:1.4; --lh:1.5; --lh-relaxed:1.6;
  --fw-regular:400; --fw-medium:400; --fw-semibold:600; --fw-bold:700;
  --ls-tight:-0.011em;
  --ls-eyebrow:.06em;

  /* space: 4 px base */
  --sp-0:0; --sp-px:1px; --sp-0_5:2px; --sp-1:4px; --sp-1_5:6px; --sp-2:8px; --sp-2_5:10px; --sp-3:12px;
  --sp-4:16px; --sp-5:20px; --sp-6:24px; --sp-8:32px; --sp-10:40px; --sp-12:48px; --sp-16:64px;

  /* shape */
  --r-xs:4px; --r-sm:6px; --r-md:8px; --r-lg:12px; --r-xl:16px; --r-bubble:18px; --r-pill:999px;

  /* sizes */
  --h-sm:28px; --h-md:32px; --h-lg:40px; --h-input:36px;
  --header-h:56px;
  --content-max:1280px;
  --form-max:760px;
  --page-form-max:1080px;
  --sheet-r:16px;
  --kv-key:112px;
  --sec-gap:28px; --card-pad:20px;
  --fs-meta:13px; --lh-meta:18px; --fs-help:13px; --lh-help:19px;
  --h-touch:40px;

  /* focus */
  --focus-ring:0 0 0 3px var(--focus-wash);
  --focus-outline:2px solid var(--focus-line);

  /* motion */
  --dur-1:120ms; --dur-2:160ms; --dur-3:200ms;
  --ease:cubic-bezier(.2,0,0,1);
  --ease-out:cubic-bezier(.16,1,.3,1);
  --ease-in:cubic-bezier(.4,0,1,1);

  /* layers */
  --z-header:20; --z-menu:30; --z-overlay:40; --z-modal:50; --z-toast:60; --z-lightbox:70;
}

/* ---- tokens: light. The same block twice (no build step): keep both identical. ---- */
@media (prefers-color-scheme:light){
  :root:not([data-theme="dark"]){
    --bg:#eae6dd;
    --surface-1:#fffdf9;
    --surface-2:#f4f1eb;
    --surface-3:#e7e3da;
    --sunken:#fffefb;
    --code-bg:#f2efe8;
    --term-bg:#111111;
    --border:#d5cdbf;
    --border-soft:#ebe6dc;
    --border-strong:#bcb3a2;
    --border-input:var(--border-strong);
    --hover:rgba(31,27,23,.045);
    --pressed:rgba(31,27,23,.08);
    --selected:rgba(31,27,23,.065);
    --sel-bg:var(--selected); --sel-border:var(--text); --sel-dot:var(--text);
    --neutral-soft:rgba(31,27,23,.06);
    --scrim:rgba(28,24,18,.45);
    --scrim-sheet:var(--scrim);
    --track:#d9d2c5; --meter-fill:#a29b8e; --seg-well:#e9e5dc; --seg-on:#fffefb; --seg-ring:#d3ccbf; --seg-shadow:0 1px 2px rgba(31,27,23,.10);

    --text:#1d1b17;
    --text-2:#47433c;
    --text-3:#6a6256;
    --text-disabled:#8d877c;
    --border-focus:#6f695f; --focus-wash:rgba(31,27,23,.07); --dot-ring:var(--surface-1);
    --switch-off:#a39b8c; --term-border:#3a3833; --foot-bg:#f3f0e9; --mini-bg:#f0ede6; --seg-susp:#a39c8f;
    --chev:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f5a52' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    --placeholder:#7a7367;
  --off-bg:transparent; --off-border:#cdc5b6; --off-fg:var(--text-disabled);
  --go-off-bg:var(--surface-2); --go-off-border:var(--off-border); --go-off-fg:var(--off-fg); --bad-off:var(--off-fg);
  --btn-off-bg:var(--off-bg); --btn-off-border:var(--off-border); --btn-off-fg:var(--off-fg);
  --focus-border:var(--border-focus); --focus-line:color-mix(in srgb,var(--focus) 75%,transparent);

    --accent:#f0a92e;
    --accent-hover:#e39a17;
    --accent-active:#d48c0c;
    --accent-ink:#1f1503;
    --accent-text:#7f4900;
    --accent-soft:rgba(240,169,46,.16);
    --accent-wash:rgba(240,169,46,.08);
    --accent-border:rgba(176,108,0,.45);

    --ok:#236535;   --ok-soft:rgba(35,101,53,.12);  --ok-border:rgba(35,101,53,.35);
    --warn:#a8420c; --warn-soft:#fdefe6; --warn-border:#f0c0a6; --warn-dot:#e0661f;
    --bad:#b3261e;  --bad-soft:rgba(179,38,30,.08); --bad-border:rgba(179,38,30,.35); --bad-line:rgba(179,38,30,.28);
    --info:#28548f; --info-soft:rgba(40,84,143,.10); --info-border:rgba(40,84,143,.32);
    --bad-solid:#c4352b;
    --danger-edge:#e7b4ad;
    --on-solid:#ffffff;
    --scroll-shade:rgba(31,27,23,.05); --foot-shade:rgba(31,27,23,.14);

    --bubble-mine:#f0ede6; --bubble-mine-border:#f0ede6; --bubble-mine-text:#1d1b17; --chat-canvas:#fdfcf9; --side-surface:#f5f3ee;

    --focus:#9a5a00;
    --focus-soft:rgba(154,90,0,.22);
    --selection:rgba(240,169,46,.30);

    --shadow-1:0 1px 2px rgba(41,33,17,.07);
    --shadow-2:0 1px 2px rgba(41,33,17,.06),0 6px 18px rgba(41,33,17,.08);
    --shadow-3:0 2px 6px rgba(31,27,23,.08),0 12px 32px rgba(31,27,23,.14);
    --shadow-card:none;
    --btn-bg:var(--sunken); --btn-bg-hover:var(--surface-2); --btn-shadow:var(--shadow-1);
    --raised:var(--surface-1);
    --toast-bg:#22201c; --toast-fg:#f4f1ea; --toast-meta:#c9c4ba; --toast-ok:#2f9e5b; --toast-bad:#d64541; --toast-info:#3b74c4; --toast-edge:transparent; --toast-ti:#ffffff;
    --tonal-bg:var(--accent-soft); --tonal-bg-hover:color-mix(in srgb,var(--accent) 24%,transparent); --tonal-border:transparent; --tonal-fg:var(--accent-text);
    --menu-edge:#cdc7ba;
    --drawer-shadow:-24px 0 48px rgba(31,27,23,.18);

    --botl:23%;
    --av-s:35%; --av-l:86%; --av-fl:26%;
    color-scheme:light;
  }
}
:root[data-theme="light"]{
  --bg:#eae6dd;
  --surface-1:#fffdf9;
  --surface-2:#f4f1eb;
  --surface-3:#e7e3da;
  --sunken:#fffefb;
  --code-bg:#f2efe8;
  --term-bg:#111111;
  --border:#d5cdbf;
  --border-soft:#ebe6dc;
  --border-strong:#bcb3a2;
  --border-input:var(--border-strong);
  --hover:rgba(31,27,23,.045);
  --pressed:rgba(31,27,23,.08);
  --selected:rgba(31,27,23,.065);
  --sel-bg:var(--selected); --sel-border:var(--text); --sel-dot:var(--text);
  --neutral-soft:rgba(31,27,23,.06);
  --scrim:rgba(28,24,18,.45);
  --scrim-sheet:var(--scrim);
  --track:#d9d2c5; --meter-fill:#a29b8e; --seg-well:#e9e5dc; --seg-on:#fffefb; --seg-ring:#d3ccbf; --seg-shadow:0 1px 2px rgba(31,27,23,.10);

  --text:#1d1b17;
  --text-2:#47433c;
  --text-3:#6a6256;
  --text-disabled:#8d877c;
  --border-focus:#6f695f; --focus-wash:rgba(31,27,23,.07); --dot-ring:var(--surface-1);
    --switch-off:#a39b8c; --term-border:#3a3833; --foot-bg:#f3f0e9; --mini-bg:#f0ede6; --seg-susp:#a39c8f;
    --chev:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f5a52' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  --placeholder:#7a7367;
  --off-bg:transparent; --off-border:#cdc5b6; --off-fg:var(--text-disabled);
  --go-off-bg:var(--surface-2); --go-off-border:var(--off-border); --go-off-fg:var(--off-fg); --bad-off:var(--off-fg);
  --btn-off-bg:var(--off-bg); --btn-off-border:var(--off-border); --btn-off-fg:var(--off-fg);
  --focus-border:var(--border-focus); --focus-line:color-mix(in srgb,var(--focus) 75%,transparent);

  --accent:#f0a92e;
  --accent-hover:#e39a17;
  --accent-active:#d48c0c;
  --accent-ink:#1f1503;
  --accent-text:#7f4900;
  --accent-soft:rgba(240,169,46,.16);
  --accent-wash:rgba(240,169,46,.08);
  --accent-border:rgba(176,108,0,.45);

  --ok:#236535;   --ok-soft:rgba(35,101,53,.12);  --ok-border:rgba(35,101,53,.35);
  --warn:#a8420c; --warn-soft:#fdefe6; --warn-border:#f0c0a6; --warn-dot:#e0661f;
  --bad:#b3261e;  --bad-soft:rgba(179,38,30,.08); --bad-border:rgba(179,38,30,.35); --bad-line:rgba(179,38,30,.28);
  --info:#28548f; --info-soft:rgba(40,84,143,.10); --info-border:rgba(40,84,143,.32);
  --bad-solid:#c4352b;
  --danger-edge:#e7b4ad;
  --on-solid:#ffffff;
  --scroll-shade:rgba(31,27,23,.05); --foot-shade:rgba(31,27,23,.14);

  --bubble-mine:#f0ede6; --bubble-mine-border:#f0ede6; --bubble-mine-text:#1d1b17; --chat-canvas:#fdfcf9; --side-surface:#f5f3ee;

  --focus:#9a5a00;
  --focus-soft:rgba(154,90,0,.22);
  --selection:rgba(240,169,46,.30);

  --shadow-1:0 1px 2px rgba(41,33,17,.07);
  --shadow-2:0 1px 2px rgba(41,33,17,.06),0 6px 18px rgba(41,33,17,.08);
  --shadow-3:0 2px 6px rgba(31,27,23,.08),0 12px 32px rgba(31,27,23,.14);
  --shadow-card:none;
  --btn-bg:var(--sunken); --btn-bg-hover:var(--surface-2); --btn-shadow:var(--shadow-1);
  --raised:var(--surface-1);
    --toast-bg:#22201c; --toast-fg:#f4f1ea; --toast-meta:#c9c4ba; --toast-ok:#2f9e5b; --toast-bad:#d64541; --toast-info:#3b74c4; --toast-edge:transparent; --toast-ti:#ffffff;
    --tonal-bg:var(--accent-soft); --tonal-bg-hover:color-mix(in srgb,var(--accent) 24%,transparent); --tonal-border:transparent; --tonal-fg:var(--accent-text);
    --menu-edge:#cdc7ba;
    --drawer-shadow:-24px 0 48px rgba(31,27,23,.18);

  --botl:23%;
  --av-s:35%; --av-l:86%; --av-fl:26%;
  color-scheme:light;
}

/* ---- legacy names (style.css, grok.css, pane.js's --botl): aliases resolve per theme ---- */
:root{
  --fg:var(--text);
  --dim:var(--text-3);
  --amber:var(--accent-text);   /* amber as text; fills use --accent */
  --amber2:var(--warn);
  --ink:var(--accent-ink);
  --panel:var(--surface-1);
  --panel2:var(--surface-2);
  --line:var(--border);
  --line2:var(--border-strong);
  --user:var(--surface-2);
  --overlay:var(--scrim);
  --glow:none; --corner:transparent; --scan:transparent;
}

/* ---- base ---- */
*,*::before,*::after{box-sizing:border-box}
html,body{max-width:100%;overflow-x:hidden}
body{margin:0;background:var(--bg);color:var(--text);font:var(--fs-base)/var(--lh) var(--sans);
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility;-webkit-text-size-adjust:100%}
button,input,select,textarea,optgroup{font:inherit;color:inherit;letter-spacing:normal}
::selection{background:var(--selection);color:var(--text)}
h1,h2,h3,h4{margin:0;font-weight:var(--fw-semibold);line-height:var(--lh-tight);text-wrap:balance}
:is(p,dd,.hint,.fhelp,.lead,.es-t span,.callout p,.ap-who){text-wrap:pretty}
.es-t b{text-wrap:balance}
p{margin:0 0 var(--sp-3)}
p:last-child{margin-bottom:0}
b,strong{font-weight:var(--fw-semibold)}
/* links in content: the text colour with a quiet underline that takes the text colour on hover (never amber) */
a{color:var(--text);text-decoration:underline;text-decoration-color:var(--border-strong);text-underline-offset:3px;text-decoration-thickness:1px;transition:text-decoration-color var(--dur-1) var(--ease)}
a:hover{text-decoration-color:currentColor}
/* an entity in data (an instance, a bot, an operation in a row or a meta line): the text, medium, underlined on hover */
:is(a,button.link).elink,.ihx .ih-meta a.elink,dl.kv dd button.link.elink,.ap-m a.elink{color:var(--text);font-weight:500;text-decoration:none}
:is(a,button.link).elink:is(:hover,:focus-visible),.ihx .ih-meta a.elink:hover,dl.kv dd button.link.elink:hover:not(:disabled),.ap-m a.elink:hover{color:var(--text);text-decoration:underline;text-decoration-color:currentColor;text-underline-offset:3px}
:where(code,kbd,samp,pre,.mono){font-family:var(--mono);letter-spacing:-.02em}
code{font-size:.88em;font-weight:400;color:var(--text);background:var(--neutral-soft);padding:.12em .4em;border-radius:var(--r-xs);overflow-wrap:anywhere}
pre code{background:none;padding:0;font-size:1em;color:inherit}
:is(.banner,.err,.gk-cb,.chatbanner) code{color:inherit;background:transparent;padding:0}
kbd{font:400 11.5px/1 var(--mono);padding:2px 5px;border:1px solid var(--border-strong);border-bottom-width:2px;border-radius:var(--r-xs);background:var(--surface-2)}
hr{border:0;border-top:1px solid var(--border);margin:var(--sp-4) 0}
.muted{color:var(--text-2)}
.hidden{display:none !important}
.nowrap{white-space:nowrap}
.mt6{margin-top:6px}.mt8{margin-top:8px}
.files{display:flex;flex-direction:column;gap:4px}
.ell{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
/* timestamps: one local date-time format (the ISO value in their title), never broken across lines */
time.ts{white-space:nowrap;font-variant-numeric:tabular-nums}

/* focus: a 2 px accent outline on every interactive control; fields draw a ring instead (below) */
:where(a[href],button,summary,[tabindex]:not([tabindex="-1"]),input[type=checkbox],input[type=radio],input[type=file]):focus-visible{outline:var(--focus-outline);outline-offset:2px}
:where(.brow,.frow,.menu .items button,.tab,.trow):focus-visible{outline-offset:-2px}

/* scrollbars */
*{scrollbar-width:thin;scrollbar-color:var(--border-strong) transparent}
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-thumb{background:var(--border-strong);border:3px solid transparent;background-clip:padding-box;border-radius:var(--r-pill)}
::-webkit-scrollbar-track{background:transparent}

/* ---- header (classic pages): the breadcrumb, the node's pages as tabs | Live (the connection test) | the account ---- */
header.top{position:sticky;top:0;z-index:var(--z-header);height:var(--header-h);display:flex;align-items:center;gap:var(--sp-2);
  padding:0 var(--sp-4) 0 var(--sp-6);background:var(--bg);border-bottom:1px solid var(--border);font-size:var(--fs-sm);color:var(--text-2);white-space:nowrap}
header.top .brand{display:flex;align-items:center;min-width:0;flex:0 1 auto;margin-right:var(--sp-4)}
header.top h1{display:flex;align-items:center;gap:var(--sp-2);margin:0 0 0 -8px;padding:4px 8px;border-radius:var(--r-md);font-size:var(--fs-base);font-weight:600;
  line-height:20px;color:var(--text);min-width:0;transition:background var(--dur-1) var(--ease)}
header.top h1:has(.dot){cursor:pointer}
header.top h1:has(.dot):hover{background:var(--hover)}
header.top h1 .dot{margin:0 2px 0 0}
header.top h1 .sys{color:var(--text-2);font-weight:400;text-decoration:none;border-radius:var(--r-xs)}
header.top h1 a.sys:hover{color:var(--text);text-decoration:none}
header.top h1 .sepr{color:var(--text-3);font-weight:400}
header.top h1 .nm{overflow:hidden;text-overflow:ellipsis;min-width:0}
/* the overview's brand mark: the sign-in page's two cards, small */
.mark-s{position:relative;display:inline-block;width:20px;height:20px;border-radius:6px;background:var(--accent);flex:none;margin-right:2px}
.mark-s::before,.mark-s::after{content:"";position:absolute;top:5px;left:6.5px;width:7px;height:9.5px;border-radius:1.5px}
.mark-s::before{border:1.5px solid var(--accent-ink);transform:translateX(-2px) rotate(-12deg)}
.mark-s::after{background:var(--accent-ink);transform:translate(2px,.5px) rotate(10deg)}
/* the live state on the mark's corner where the header has no room for the word (tablets and phones) */
.mark-s > .dot{display:none;position:absolute;top:-3px;right:-3px;z-index:1;width:6px;height:6px;margin:0;box-shadow:0 0 0 2px var(--bg);background:var(--text-3)}
.mark-s > .dot.live{background:var(--ok);box-shadow:0 0 0 2px var(--bg)}
/* a tab's label reserves the width of its bold self (a hidden copy under it), so selecting it shifts nothing */
.lt[data-label]::after{content:attr(data-label);display:block;height:0;overflow:hidden;visibility:hidden;font-weight:600;pointer-events:none;user-select:none}
/* the pages: underline tabs the height of the bar */
header.top .hnav{display:flex;align-items:stretch;align-self:stretch;gap:2px;min-width:0}
header.top .hnav .tab{height:auto;min-height:0;padding:0 10px;margin:0;border:0;border-radius:0;background:none;color:var(--text-2);font:400 var(--fs-sm)/1 var(--sans);
  box-shadow:inset 0 -2px 0 transparent;transition:color var(--dur-1) var(--ease),box-shadow var(--dur-1) var(--ease)}
header.top .hnav .tab:hover:not(:disabled){color:var(--text);background:none;box-shadow:inset 0 -2px 0 var(--border-strong)}
header.top .hnav .tab.on,header.top .hnav .tab.on:hover:not(:disabled){color:var(--text);font-weight:600;box-shadow:inset 0 -2px 0 var(--accent)}
header.top .hnav .tab:focus-visible{outline-offset:-4px;border-radius:var(--r-sm)}
header.top .htools{margin-left:auto;display:flex;align-items:center;gap:var(--sp-1);min-width:0}
header.top .node-switch{display:inline-flex;align-items:center}
header.top .node-switch select{field-sizing:content;height:var(--h-md);max-width:220px;padding:0 28px 0 10px;font-size:var(--fs-sm);color:var(--text);background-color:transparent;border-color:var(--border);border-radius:var(--r-md);background-position:right 9px center}
header.top .node-switch select:hover:not(:disabled){background-color:var(--hover);border-color:var(--border-strong)}
/* Live: a dot and the word, its title when the last event came; a click tests the connection (a dot on phones) */
header.top button.hstat{display:inline-flex;align-items:center;gap:6px;min-height:0;height:var(--h-md);padding:0 10px 0 8px;border:0;border-radius:var(--r-pill);background:none;box-shadow:none;
  font-size:13px;font-weight:400;color:var(--text-2);cursor:pointer}
header.top button.hstat:is(:hover,:active):not(:disabled){background:transparent;color:var(--text);transform:none}
header.top .hstat .dot{margin:0;width:7px;height:7px}
header.top .hstat.off{color:var(--warn)}
header.top .who{display:flex;align-items:center;padding-left:var(--sp-3);margin-left:var(--sp-1);border-left:1px solid var(--border);flex:none;height:24px}
/* quiet header controls change colour on hover, never into a pressed pill */
header.top :is(button.quiet,button.ib):hover:not(:disabled){background:transparent;color:var(--text)}
header.top :is(button.quiet,button.ib):focus-visible{outline-offset:0}
header.top h1 .chip.fake{height:20px;padding:0 7px;font-size:13px;font-weight:400}
/* the breadcrumb's node name is the node switch: the select lies invisibly over the name and its chevron */
header.top .node-switch.crumb{position:relative;display:inline-flex;align-items:center;gap:6px;min-width:0;height:32px;padding:0 8px 0 10px;margin:0 0 0 -2px;border:1px solid var(--border);border-radius:var(--r-md);cursor:pointer}
header.top .node-switch.crumb:hover{background:var(--hover)}
header.top .node-switch.crumb .nm{overflow:hidden;text-overflow:ellipsis;min-width:0}
header.top .node-switch.crumb > .ic{color:var(--text-2);flex:none}
header.top .node-switch.crumb select,header.top .node-switch.crumb select:hover:not(:disabled){position:absolute;inset:0;width:100%;min-width:0;height:100%;min-height:0;margin:0;padding:0;border:0;opacity:0;cursor:pointer;background:none}
header.top .node-switch.crumb:has(select:focus-visible){outline:var(--focus-outline);outline-offset:1px}
/* the account: an avatar that opens its menu (menus.js); on an instance's phone bar the live state sits on its corner */
.gk-mbtn.gk-acctm-btn{position:relative;width:32px;height:32px;min-height:32px;padding:0;border:0;border-radius:50%;background:transparent;box-shadow:none}
.gk-mbtn.gk-acctm-btn:hover:not(:disabled) .mav,.gk-mbtn.gk-acctm-btn.on .mav{box-shadow:inset 0 0 0 1px var(--text-3);color:var(--text)}
.gk-mbtn.gk-acctm-btn:is(:hover,:active):not(:disabled){background:transparent;transform:none}
.gk-acctm .who .mlive{display:inline-flex;align-items:center;gap:6px;margin-left:auto;flex:none;font-size:13px;color:var(--text-2)}
.gk-acctm .who .mlive .dot{margin:0}
/* tablets and phones: one 52 px row (the breadcrumb, then Live and the account at the right); on the node's own
   pages a second row of the four tabs */
@media (max-width:900px){
  header.top.node{display:grid;grid-template-columns:minmax(0,1fr) auto auto;grid-template-areas:"brand htools who" "nav nav nav";height:auto;gap:0;padding:0}
  :root:has(header.top.node){--header-h:97px}
  :root:has(header.top.node.scoped){--header-h:53px}
  header.top .brand{grid-area:brand;height:52px;margin:0;padding:0 var(--sp-2) 0 var(--sp-4)}
  header.top .htools{grid-area:htools;margin:0;gap:2px}
  header.top .who{grid-area:who;border-left:0;margin:0;padding:0 var(--sp-3) 0 2px;height:auto}
  header.top .hnav{grid-area:nav;height:44px;padding:0 var(--sp-3);justify-content:flex-start;gap:4px;border-top:1px solid var(--border)}
  header.top.scoped .hnav{display:none}
  header.top .hnav .tab{padding:0 10px;flex:none}
  header.top button.hstat{height:36px;min-height:36px;padding:0 8px;justify-content:center;border-radius:var(--r-md)}
  header.top button.hstat .dot{width:8px;height:8px}
  header.top h1 .chip.fake{display:none}
  header.top.cp .brand{padding-left:0}
}
@media (max-width:700px){
  header.top h1{font-size:var(--fs-md)}
  header.top.cp{padding:0 var(--sp-2) 0 var(--sp-4);height:52px}
  header.top.cp .htools{margin-left:auto}
  header.top.cp .who{margin-left:0;padding-left:2px;border-left:0}
  header.top.cp h1 :is(.sepr,.nm){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  :root:has(header.top.cp){--header-h:53px}
  /* an instance's or a bot's pages: their own bar (nav.js) is the page's one bar */
  header.top.node.scoped{display:none}
  :root:has(header.top.node.scoped){--header-h:0px}
}
/* the overview's node switch on a phone: the same ghost select as on desktop */
@media (max-width:900px){
  :root:root header.top.cp .node-switch select{width:auto;min-width:0;max-width:150px;height:36px;min-height:36px;padding:0 26px 0 8px;color:var(--text);font-size:14px;
    border-color:var(--border);background:transparent var(--chev) no-repeat right 8px center/16px}
  :root:root header.top.cp .node-switch select:hover{background-color:var(--hover)}
}

/* state dots */
.dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--text-3);margin-right:6px;vertical-align:1px;flex:none}
.dot.live{background:var(--ok);box-shadow:0 0 0 3px var(--ok-soft);animation:dot-pulse 2s var(--ease) infinite}
.dot.ok{background:var(--ok)}.dot.bad{background:var(--bad)}.dot.amber{background:var(--accent)}
.dot.blink{background:var(--accent);animation:dot-pulse 1.2s var(--ease) infinite}
@keyframes dot-pulse{50%{opacity:.45}}

.app-page{max-width:var(--content-max);margin:0 auto;padding:var(--sp-6) var(--sp-6) var(--sp-12);display:flex;flex-direction:column;
  min-height:calc(100vh - var(--header-h));min-height:calc(100dvh - var(--header-h))}
.app-page > *{flex:none}
.app-page > :is(.node-view,.images-view,.checkpoint-view,.bot-admin-view,.terminal-page,.instance-admin,.history-view,.home-view,.cluster){width:100%}

/* ---- banners ---- */
.banner{display:flex;align-items:center;flex-wrap:nowrap;gap:var(--sp-2) var(--sp-3);padding:var(--sp-2_5) 14px;margin:0 0 var(--sp-4);
  border:1px solid var(--bad-border);border-radius:var(--r-lg);background:var(--bad-soft);color:var(--bad);font:400 var(--fs-sm)/var(--lh-snug) var(--sans)}
.banner::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;flex:none;align-self:flex-start;margin-top:6px}
.banner > button{flex:none;margin-left:auto}
.banner.warn{border-color:var(--warn-border);background:var(--warn-soft);color:var(--warn)}
.banner.ok{border-color:var(--ok-border);background:var(--ok-soft);color:var(--ok)}
.banner.info{border-color:var(--border);background:var(--surface-2);color:var(--text-2)}
.banner.notice .fill{flex:1;min-width:0;overflow-wrap:anywhere}
.banner.slim{margin:0;border-radius:0;border-width:0 0 1px;padding:var(--sp-2) var(--sp-6)}
.banner button{height:var(--h-sm);padding:0 10px;font-size:var(--fs-xs);background:var(--surface-1);color:var(--text)}

/* ---- sections ---- */
section{margin-bottom:var(--sp-10)}
h2.sec{display:flex;align-items:center;flex-wrap:wrap;gap:var(--sp-2) var(--sp-3);margin:0 0 var(--sp-4);font-size:var(--fs-md);font-weight:600;color:var(--text);letter-spacing:normal}
h2.sec .muted{font-size:var(--fs-sm);font-weight:400;color:var(--text-2)}
.app-page section > h2.sec{font-size:var(--fs-lg);letter-spacing:-0.006em}
h2.sec .fill{flex:1;min-width:var(--sp-4);border:0}
h2.sec > button:not(.go){height:var(--h-sm);padding:0 10px;font-size:var(--fs-xs)}
.card > h2.sec,.card > form > h2.sec{font-size:17px;margin-bottom:var(--sp-3)}
h3.sec{font-size:var(--fs-sm);font-weight:600;color:var(--text-2);margin:var(--sp-5) 0 var(--sp-2)}

/* ---- cards ---- */
.card{--card-px:20px;--card-py:20px;background:var(--surface-1);border:1px solid var(--border);border-radius:var(--r-lg);padding:var(--card-py) var(--card-px);min-width:0;position:relative;box-shadow:var(--shadow-card)}
.k{font-size:var(--fs-xs);font-weight:400;color:var(--text-2);letter-spacing:normal}
.hint{font-size:13px;line-height:19px;color:var(--text-2)}
.empty{padding:var(--sp-6);border:1px dashed var(--border-strong);border-radius:var(--r-lg);background:transparent;color:var(--text-2);font-size:var(--fs-base);line-height:var(--lh-relaxed)}
.placeholder{padding:var(--sp-8) var(--sp-6);border:1px dashed var(--border-strong);border-radius:var(--r-lg);color:var(--text-2);font-size:var(--fs-sm);text-align:center;line-height:var(--lh-relaxed)}
.placeholder b{display:block;margin-bottom:6px;font-size:var(--fs-md);font-weight:600;color:var(--text)}

/* ---- page heading: back, title over a row of chips, the page's actions at the right ---- */
.ihead.page{display:flex;align-items:flex-start;gap:var(--sp-3);flex-wrap:nowrap;margin:0 0 var(--sp-5)}
.adminview > .ihead.page{margin-bottom:var(--sp-2)}
.ihead.page > .back{margin:2px 0 0 -6px}
.ihead.page .ttl{display:flex;flex-direction:column;gap:6px;min-width:0;flex:1}
.ihead.page h2{margin:0;font-size:26px;line-height:32px;font-weight:600;letter-spacing:-0.02em;color:var(--text);text-wrap:balance}
.ihead.page .ttl > .tl{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;min-width:0}
.ihead.page .ttl > .tl > .pills{display:inline-flex;align-items:center;flex-wrap:wrap;gap:6px}
@media (max-width:700px){.ihead.page .ttl > .tl{flex-direction:column;align-items:flex-start;gap:8px}}
.ihead.page .sub{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;margin:0;font-size:var(--fs-sm);color:var(--text-2);min-width:0}
.ihead.page .sub .sep{color:var(--text-3)}
.ihead.page .hlinks{display:flex;align-items:center;flex-wrap:nowrap;gap:2px;flex:none;margin-top:1px}
.ihead.page .hlinks > button{min-height:var(--h-md)}
.ihead.page .hlinks .ib.refresh{margin-left:2px}
/* ---- C15 the entity bar of an instance's or a bot's pages (nav.js): the name and its pills, the pages as underline
   tabs and the actions, one 52 px row under the node's bar (two rows under 1100 px); a phone's own two bars ---- */
/* ---- C2 one bar for every page of an instance or a bot (the global header leaves): ‹, the mark, the node (its menu),
   the instance (its state and waiting requests), its pages as underline tabs on the bar's bottom edge, then the
   page's actions, the node's two most used pages as icons, a rule, Live and the account. 56 px; under 1100 px the tabs
   take a second row; a phone has its own two bars (below). ---- */
.ihead.ihx{display:block;position:sticky;top:0;z-index:var(--z-header);margin:0 calc(-1 * var(--sp-6)) var(--sp-6);padding:0 16px 0 12px;border-bottom:1px solid var(--border);background:var(--bg)}
.app-page.scoped,.app-page:has(> * > .ihead.ihx){padding-top:0}
.ihx .ih-row{display:flex;align-items:center;gap:8px;min-height:56px;min-width:0}
.ihx .m-back{display:inline-flex;flex:none;width:32px;height:32px;min-height:32px;margin:0;color:var(--text-2)}
.ihx .ih-mark{display:inline-flex;align-items:center;flex:none;margin:0 2px}
.ihx .ih-mark .mark-s{margin:0}
.ihx .ih-node{display:inline-flex;flex:none}
.ihx .ih-node .gk-nodem-btn{display:inline-flex;align-items:center;gap:6px;width:auto;height:32px;min-height:32px;padding:0 8px 0 10px;margin:0;border:1px solid var(--border);border-radius:var(--r-md);background:transparent;box-shadow:none;color:var(--text)}
.ihx .ih-node .gk-nodem-btn:hover:not(:disabled){background:var(--hover);border-color:var(--border-strong)}
.ihx .ih-node .gk-nodem-btn .nm{font-weight:600;font-size:14px}
.ihx .ih-node .gk-nodem-btn .chip{height:20px;padding:0 7px;font-size:13px;font-weight:400}
.ihx .ih-node .gk-nodem-btn .ic{color:var(--text-2)}
.ihx .ih-sl{flex:none;color:var(--text-2);font-size:14px;margin:0 -2px}
.ihx .ih-t{display:flex;align-items:center;min-width:0;flex:0 1 auto}
.ihx .ih-title{display:flex;align-items:center;flex-wrap:nowrap;gap:8px;min-width:0}
.ihx .ih-name{margin:0;font-size:15px;line-height:22px;font-weight:600;letter-spacing:-0.006em;color:var(--text);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ihx .ih-title > :is(.tag,.istate,.m-hide,.gk-av){flex:none}
.ihx .ih-crumb{font-size:14px;line-height:20px;color:var(--text);font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:180px;text-decoration:none}
.ihx .ih-crumb:hover{color:var(--text);text-decoration:underline;text-decoration-color:var(--border-strong)}
.ihx .subnav{align-self:stretch;flex:0 1 auto;min-width:0;margin:0 0 0 16px;padding:0;border:0;gap:20px}
.subnav{display:flex;align-items:stretch;gap:20px;overflow-x:auto;scrollbar-width:none}
.subnav::-webkit-scrollbar{display:none}
.subnav .stab{display:inline-flex;align-items:center;height:auto;min-height:44px;padding:0 1px;border:0;border-radius:0;background:none;color:var(--text-2);font:500 14px/20px var(--sans);box-shadow:inset 0 -2px 0 transparent;flex:none;
  transition:color var(--dur-1) var(--ease),box-shadow var(--dur-1) var(--ease)}
.ihx .subnav .stab{min-height:56px}
.subnav .stab:hover:not(:disabled){background:none;color:var(--text);box-shadow:inset 0 -2px 0 var(--border-strong)}
.subnav .stab.on,.subnav .stab.on:hover:not(:disabled){color:var(--text);font-weight:600;box-shadow:inset 0 -2px 0 var(--accent)}
.subnav .stab:focus-visible{outline-offset:-4px;border-radius:var(--r-sm)}
.subnav .stab .m-lbl{display:none}
.subnav.ovf{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 24px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 24px),transparent)}
.ihx .ih-acts{display:flex;align-items:center;gap:2px;flex:none;height:32px;margin-left:auto}
.ihx .ih-acts > button:not(.ib){height:32px;min-height:32px;padding:0 10px 0 8px}
.ihx .ih-acts > button .ic{color:var(--text-2)}
.ihx .ih-acts > button.on,.ihx .ih-acts > button.on:hover:not(:disabled){background:var(--pressed);border-color:transparent;color:var(--text);box-shadow:inset 0 0 0 1px var(--border-strong)}
.ihx .ih-acts > button.on .ic{color:var(--text)}
.ihx .ih-acts > .vr{display:none}
/* under 1440 px Access and Suspend fold into ⋯ (its first items there), as in the Grok bar */
@media (max-width:1439px){.ihx .ih-acts > button.wfold{display:none !important}.menu .items button.fold{display:flex !important}}
.ihx .ih-links{display:inline-flex;align-items:center;gap:2px;flex:none}
.ihx .ih-title button.tag.waiting{height:28px;min-height:28px;padding:0 10px 0 8px;gap:5px;border-radius:var(--r-pill);font-weight:600}
.ihx .ih-title button.tag.waiting .wl{font-weight:400}
.ih-acct{display:flex;align-items:center;gap:10px;flex:none;height:24px;margin-left:4px;padding-left:12px;border-left:1px solid var(--border)}
.ih-live{display:inline-flex;align-items:center;gap:6px;padding:0;font-size:13px;line-height:20px;color:var(--text-2);white-space:nowrap}
.ih-live > .dot{margin:0;width:7px;height:7px;flex:none}
.ih-live.off{color:var(--warn)}
@media (max-width:1100px) and (min-width:701px){
  .ihx .ih-row{flex-wrap:wrap;row-gap:0}
  .ihx .subnav{order:9;flex:1 1 100%;margin:0 0 0 -4px;border-top:1px solid var(--border-soft)}
  .ihx .subnav .stab{min-height:44px}
}
.pg-h{margin:0;font-size:17px;line-height:24px;font-weight:600;letter-spacing:-0.006em;color:var(--text)}
/* V12 the bot's bar: "audit-… /" quiet at 14 px, a 24 px avatar, the name at 18, its state; on a phone the instance
   is a subtitle under the name */
.ihx.bot .ih-crumb{font-size:14px;line-height:20px;max-width:200px}
.ihx.bot .ih-sl{margin:0 2px;font-size:14px}
.ihx.bot .ih-title{gap:8px}
.ihx.bot .ih-title > .gk-av{--sz:24px;font-size:11px}
.ihx.bot .ih-name{font-size:18px;line-height:24px}
.ihx .ih-sub{display:none}
/* phones: the page's own two bars (the node's bar leaves): back, the name and its state as a dot, the approvals,
   ⋯ and the account (the live state a dot on it), 48 px; then the tabs, 40 px. It stays at the top. */
@media (max-width:700px){
  .app-page:has(.ihead.ihx){padding-top:0}
  .ihead.ihx{position:sticky;top:0;z-index:var(--z-header);margin:0 calc(-1 * var(--sp-4)) var(--sp-4);padding:0}
  .ihx .ih-row{display:flex;flex-wrap:wrap;align-items:center;column-gap:2px;min-height:0;padding:0}
  .ihx .m-back{display:inline-flex;width:40px;height:40px;min-height:40px;margin:6px 0 6px 4px}
  .ihx .ih-t{order:1;flex:1;min-width:0;max-width:none;height:52px}
  .ihx .ih-acts{order:2}
  .ih-acct{order:3}
  .ihx .subnav{order:4;flex:1 1 100%;height:44px;gap:20px;margin:0;padding:0 var(--sp-4);border-top:1px solid var(--border-soft);scroll-padding-inline:16px}
  .ihx .subnav::after{content:"";flex:none;width:1px}
  .ihx .subnav .stab{min-height:44px;font-size:14px}
  .ihx .subnav .stab .d-lbl{display:none}
  .ihx .subnav .stab .m-lbl{display:inline-block}
  .ihx .ih-name{font-size:16px;line-height:22px}
  .ihx .ih-title{gap:8px}
  .ihx .m-hide,.ihx .ih-crumb,.ihx .ih-sl{display:none}
  .ihx .ih-title > .istate{height:auto;padding:0;background:none;flex:none}
  .ihx .ih-title > .istate > .dot{width:8px;height:8px;margin:0}
  .ihx .ih-title > .istate > span:not(.dot){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .ihx .ih-title > .gk-av{--sz:26px}
  .ihx.bot .ih-t{flex-direction:column;align-items:flex-start;justify-content:center}
  .ihx.bot .ih-sub{display:block;margin:-2px 0 0 34px;font-size:13px;line-height:16px;color:var(--text-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
  .ihx.bot .ih-name{font-size:16px;line-height:20px}
  .ihx .ih-title button.tag.waiting{flex:none;height:28px;min-height:28px;padding:0 9px;font-weight:600}
  .ihx .ih-title button.tag.waiting .wl{display:none}
  .ihx .ih-acts{gap:0;height:auto}
  .ihx .ih-acts > button:not(.ib){width:40px;height:40px;min-height:40px;padding:0;gap:0}
  .ihx .ih-acts > button:not(.ib) .lt{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .ihx .ih-acts .menu > button.ib{width:40px;height:40px;min-height:40px}
  .ihx .ih-acts > button.stream-ic{display:inline-flex;width:40px;height:40px;min-height:40px;border:0;border-radius:var(--r-md);background:transparent;color:var(--text-2)}
  .ihx .ih-acts > button.stream-ic.on{background:var(--surface-3);color:var(--text);box-shadow:inset 0 0 0 1px var(--border-strong)}
  /* the account, with the live state as the word beside it, as on the node's pages (never a badge on the avatar,
     which would read as the user's presence) */
  .ih-acct{display:flex;align-items:center;gap:8px;height:auto;margin:0 10px 0 2px;padding:0;border:0}
  .ihx :is(.ih-mark,.ih-node,.ih-sl0,.ih-links){display:none}
  .ih-live{display:inline-flex;align-items:center;gap:6px;padding:0 2px;font-size:13px;line-height:20px;color:var(--text-2);white-space:nowrap}
  .ih-live > .dot{margin:0;width:7px;height:7px;flex:none}
}
.subnav.ovf{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 16px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 16px),transparent)}

/* ids: one mono chip for every id (instance, bot, op, checkpoint, request) */
code.idchip,.idchip{display:inline-flex;align-items:center;height:20px;padding:0 6px;border-radius:var(--r-xs);background:var(--neutral-soft);color:var(--text-2);
  font:400 13px/1 var(--mono);letter-spacing:0;white-space:nowrap;word-break:keep-all;overflow-wrap:normal;max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}
button.link.idchip,button.idchip{display:inline-flex;gap:0;height:20px;min-height:20px;padding:0 6px;border:0;border-radius:var(--r-xs);background:var(--neutral-soft);color:var(--text-2);font:400 13px/1 var(--mono);text-decoration:none;box-shadow:none;cursor:pointer}
button.link.idchip:hover:not(:disabled),button.idchip:hover:not(:disabled){background:var(--hover);color:var(--text);text-decoration:underline;text-underline-offset:2px}
/* a long id cut in the middle: the whole id stays in the page (and its title); a click copies it */
.idchip.mid .cut{display:inline-block;width:0;overflow:hidden;vertical-align:bottom}
.idchip.mid .ell-m{color:var(--text-3)}
code.idchip.hash{max-width:28ch}
.none{color:var(--text-2)}

/* ---- the card anatomy: header (title, count, actions), one-line lead, body, footer with the primary action ---- */
.card > .ch{display:flex;align-items:center;gap:8px;min-height:32px;margin:0 0 12px}
.card > .ch h2.sec{margin:0;font-size:16px;line-height:24px;font-weight:600;letter-spacing:-0.01em}
@media (max-width:700px){.card > .ch h2.sec,.card.fold > details > summary .ft b{font-size:17px}}
.card > .ch .count{font-variant-numeric:tabular-nums}
.card > .ch .acts{margin-left:auto;display:flex;align-items:center;gap:6px}
.card > .ch .acts > button:not(.ib){min-height:var(--h-sm);height:var(--h-sm);padding:0 10px;font-size:13px;border-radius:var(--r-sm)}
.card > .ch .acts > select{height:var(--h-sm);min-height:var(--h-sm);font-size:13px;width:auto}
.card > p.lead:last-child{margin-bottom:0}
.card > p.lead,.card > form > p.lead,.fold-body > p.lead{margin:-6px 0 var(--sp-4);font-size:13.5px;line-height:20px;color:var(--text-2)}
button.danger.solid:not(:disabled){font-weight:600}

.card-foot{display:flex;align-items:center;gap:var(--sp-3);margin:var(--sp-4) 0 0;padding:0}
.card-foot > .note{margin-right:auto;font-size:13px;color:var(--text-2);min-width:0}
.card-foot > .acts{display:flex;gap:var(--sp-2);margin-left:auto}
.cf > .why:empty{display:none}
.cf > .why code.idchip{height:18px;font-size:13px}
.cf-l{display:inline-flex;align-items:center;gap:6px;font-size:14px;line-height:20px;color:var(--text)}
.cf-l code.idchip{height:22px;padding:0 6px;font-size:13px;color:var(--text);background:var(--neutral-soft);box-shadow:inset 0 0 0 1px var(--border-soft)}
/* content and an aside: the page's main column and a 400 px column of forms and tools (one column below 1100 px) */
/* cards end where their content ends: columns may end at different heights, never with a hollow box */
.split{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--sp-5);align-items:start;min-width:0}
.split > .main,.split > .aside{display:flex;flex-direction:column;gap:var(--sp-5);min-width:0}
.split > * > section{margin:0}
@media (min-width:1100px){.split{grid-template-columns:minmax(0,1fr) 400px}}
/* one column: a page whose two columns could never balance */
.stack{display:flex;flex-direction:column;gap:var(--sp-5);min-width:0}
.stack > section{margin:0}
@media (max-width:700px){.split,.split > .main,.split > .aside,.stack{gap:var(--sp-4)}}
/* the field grid: forms use the card's width */
.fgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 var(--sp-5)}
.fgrid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.fgrid.four{grid-template-columns:repeat(4,minmax(0,1fr))}
.fgrid > .span2{grid-column:1 / -1}
.fgrid > *{min-width:0}
.fgrid label.check{margin-top:26px}
.mono-in input,.mono-in textarea,input.mono,textarea.mono{font-family:var(--mono);font-size:var(--fs-mono)}
.mono-in input::placeholder,.mono-in textarea::placeholder{font-family:var(--sans);font-size:var(--fs-sm)}
/* a fold: a card whose body opens from its header (rarely used, heavy forms) */
/* a fold: a card whose body opens from its header (heavy, rarely used forms); its header reads like a card's */
.card.fold{padding:0}
.card.fold > details > summary{display:flex;align-items:center;gap:var(--sp-3);min-height:64px;padding:var(--sp-4) var(--sp-6);cursor:pointer;list-style:none;border-radius:var(--r-lg)}
.card.fold > details > summary::-webkit-details-marker{display:none}
.card.fold > details > summary:focus-visible{outline-offset:-2px}
.card.fold > details > summary .ft{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.card.fold > details > summary .ft b{font-size:16px;line-height:24px;font-weight:600;letter-spacing:-0.01em;color:var(--text)}
.card.fold > details > summary .ft span{font-size:var(--fs-sm);color:var(--text-2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.card.fold > details > summary .fi{display:none}
.card.fold > details > summary > .ic:last-child{box-sizing:content-box;padding:6px;border-radius:50%;color:var(--text-2);flex:none;transition:transform var(--dur-2) var(--ease),background var(--dur-1) var(--ease)}
.card.fold > details > summary:hover > .ic:last-child{background:var(--hover);color:var(--text)}
.card.fold > details[open] > summary > .ic:last-child{transform:rotate(180deg)}
.card.fold > details[open] > summary{border-radius:var(--r-lg) var(--r-lg) 0 0}
.card.fold .fold-body{padding:var(--sp-5) var(--sp-6);border-top:1px solid var(--border)}
/* "about …": policy prose behind a quiet text button, always last in its card */
details.about{margin:var(--sp-4) 0 0}
details.about > summary{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 6px;margin-left:-6px;border-radius:var(--r-sm);cursor:pointer;list-style:none;
  font-size:13px;font-weight:400;color:var(--text-2);background:transparent;user-select:none}
details.about > summary::-webkit-details-marker{display:none}
details.about > summary:hover{color:var(--text);background:var(--hover)}
details.about > summary .ic{color:var(--text-2)}
details.about > summary .ic:last-child{transition:transform var(--dur-2) var(--ease)}
details.about[open] > summary .ic:last-child{transform:rotate(180deg)}
details.about .about-body{margin-top:var(--sp-2);padding:2px 0 2px var(--sp-4);border-left:2px solid var(--border-strong);font-size:var(--fs-sm);line-height:var(--lh);color:var(--text-2);max-width:72ch}
details.about .about-body p{margin:0 0 var(--sp-2)}
details.about .about-body p:last-child{margin:0}
.ch details.about,.ihead details.about{margin:0}
/* the ⓘ in a card's header: an icon button whose prose opens as a popover under it */
details.about.pop{position:relative;margin:0;flex:none}
details.about.pop > summary{width:32px;height:32px;padding:0;margin:0;justify-content:center;border-radius:var(--r-md);color:var(--text-2)}
details.about.pop > summary .ic{color:inherit}
details.about.pop[open] > summary{background:var(--pressed);color:var(--text)}
details.about.pop > .about-body{position:absolute;right:0;top:calc(100% + 6px);z-index:var(--z-menu);width:min(360px,calc(100vw - 48px));margin:0;padding:12px 14px;
  border:1px solid var(--border-strong);border-radius:var(--r-lg);background:var(--raised);box-shadow:var(--shadow-3);color:var(--text-2);font-size:13px;line-height:20px;text-align:left;white-space:normal}
details.about.pop.left > .about-body{left:0;right:auto}
/* the ⓘ sits right after a card's title (the right of the header holds only actions) */
.ch > :is(h2.sec,.badge,.tag) + details.about.pop{margin-left:-4px}
.ch > :is(h2.sec,.badge,.tag) + details.about.pop > summary{width:28px;height:28px;border-radius:50%}
.ch > :is(h2.sec,.badge,.tag) + details.about.pop > summary .ic{width:15px;height:15px}
.ch > :is(h2.sec,.badge,.tag) + details.about.pop > .about-body{left:-8px;right:auto}
/* one key-value list everywhere: one key column (128 px; 104 px on phones), 36 px rows divided by hairlines */
dl.kv{display:grid;grid-template-columns:var(--kv-key) minmax(0,1fr);align-content:start;margin:0}
dl.kv > div{display:grid;grid-column:1 / -1;grid-template-columns:subgrid;align-items:baseline;min-height:40px;border-bottom:0}
dl.kv > div + div{border-top:1px solid var(--border-soft)}
dl.kv dt,dl.kv dd{padding:10px 0;border:0;font-size:14px;line-height:20px;min-width:0}
dl.kv > div.wide{align-items:start}
dl.kv dt{color:var(--text-2);padding-right:var(--sp-4)}
dl.kv dd{margin:0;color:var(--text);font-size:14px;font-variant-numeric:tabular-nums;overflow-wrap:break-word;display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px}
dl.kv dd .none,dl.kv dd.none{color:var(--text-2);font-style:normal}
dl.kv dd .tag{height:22px}
dl.kv dd .bstat{color:var(--text)}
/* ids and versions in a key-value list are plain mono text: rows keep one height */
dl.kv dd code,dl.kv dd code.idchip{height:auto;padding:0;background:none;color:var(--text);font-size:13px;line-height:20px}
dl.kv dd .act-r{margin-left:auto}
dl.kv .mono dd{font-family:var(--mono);font-size:var(--fs-xs)}
dl.kv > div.wide{grid-template-columns:subgrid}
@media (max-width:480px){
  /* a wide value (chips, a long id) stacks under its label; other values wrap beside the fixed key column */
  dl.kv:not(.grid) > div.wide{display:flex;flex-direction:column;gap:2px;padding:10px 0}
  dl.kv:not(.grid) > div.wide > :is(dt,dd){padding:0}
  dl.kv:not(.grid) > div.wide > dt{font-size:13px}
}
/* a sub-heading: a level between a card's title and its rows (Machine, Identity, Bot …): 14 px semibold in the text
   colour, sentence case; never an uppercase eyebrow */
:is(h3.sub,.kvh,.eyebrow){margin:24px 0 8px;font:600 14px/20px var(--sans);letter-spacing:0;text-transform:none;color:var(--text)}
:is(h3.sub,.kvh,.eyebrow):first-child{margin-top:0}

.kv3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--sp-2) var(--sp-8)}
.kv3 > *{min-width:0}
/* empty states: compact and centred in their container; an icon tile, a title, a line, an action under it; never a
   dashed box (dashes are for drop targets) */
.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;margin-block:auto}
.empty-state .es-ic{display:inline-grid;place-items:center;flex:none}
.empty-state .es-t{display:flex;flex-direction:column;align-items:center;gap:4px;margin-top:12px}

.empty-state .es-t > span{max-width:44ch}
.empty-state .es-t > button{margin-top:12px}

.app-page > :last-child{margin-bottom:0}

/* ---- buttons ---- */
button,.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:var(--h-md);padding:0 var(--sp-3);
  border-radius:var(--r-md);border:1px solid var(--border-strong);background:var(--btn-bg);color:var(--text);box-shadow:var(--btn-shadow);
  font:400 var(--fs-sm)/1.2 var(--sans);letter-spacing:normal;text-transform:none;white-space:nowrap;text-decoration:none;cursor:pointer;user-select:none;
  transition:background var(--dur-1) var(--ease),border-color var(--dur-1) var(--ease),color var(--dur-1) var(--ease),box-shadow var(--dur-1) var(--ease)}
button:hover:not(:disabled),.btn:hover{background:var(--btn-bg-hover);border-color:var(--border-input);color:var(--text)}
button:active:not(:disabled){transform:scale(.98)}
button.go,a.go{background:var(--accent);border:1px solid var(--accent);color:var(--accent-ink);font-weight:600;box-shadow:none}
button.go:hover:not(:disabled),a.go:hover{background:var(--accent-hover);border-color:var(--accent-hover);color:var(--accent-ink)}

a.go,a.btn{display:inline-flex;align-items:center;justify-content:center;min-height:var(--h-md);padding:0 var(--sp-3);border-radius:var(--r-md);font:600 var(--fs-sm)/1.2 var(--sans);text-decoration:none;white-space:nowrap}
button.danger{background:transparent;border-color:var(--bad-border);color:var(--bad)}

button.quiet{background:transparent;border-color:transparent;color:var(--text-2);box-shadow:none}
button.quiet:hover:not(:disabled){background:var(--hover);border-color:transparent;color:var(--text)}
button.on{background:var(--pressed);border-color:transparent;color:var(--text);box-shadow:inset 0 0 0 1px var(--border-strong)}
button.link{display:inline;min-height:0;height:auto;padding:0;border:0;border-radius:var(--r-xs);background:none;box-shadow:none;color:var(--text);font:inherit;font-weight:400;white-space:normal;
  text-decoration:underline;text-decoration-color:var(--border-strong);text-underline-offset:3px;text-decoration-thickness:1px}
button.link:hover:not(:disabled){background:none;color:var(--text);text-decoration:underline;text-decoration-color:currentColor;text-underline-offset:3px}
/* K2 the tonal button: the one amber-tinted action that is not the page's commit (Allow for 10 min, an empty send) */
:is(button,.btn,.gk .gk-btn).tonal{background:var(--tonal-bg);border:1px solid var(--tonal-border);color:var(--tonal-fg);font-weight:600;box-shadow:none}
:is(button,.btn,.gk .gk-btn).tonal:hover:not(:disabled){background:var(--tonal-bg-hover);border-color:var(--tonal-bg-hover);color:var(--tonal-fg)}
:is(button,.gk .gk-btn).tonal .ic{color:inherit}
/* the ghost small button: 28 px, the text colour, a hover fill (Change, Add a reason, Details) */
button.ghost-sm{min-height:28px;height:28px;padding:0 8px;border-color:transparent;background:transparent;box-shadow:none;color:var(--text);font-size:13px;font-weight:500;border-radius:var(--r-sm)}
button.ghost-sm:hover:not(:disabled){background:var(--hover);border-color:transparent}
/* the strong secondary: a way in (Open), filled neutral with a trailing chevron; one step under the amber primary */

/* disabled (L1): every button keeps its kind and says it is locked without fading away. A primary keeps a muted amber,
   a secondary is a transparent hairline with the disabled text, a danger keeps its red edge at 70 %; no hover, no
   press; borderless controls (below) fade */
:is(button,.btn):disabled,.btn[aria-disabled=true],a.go[aria-disabled=true]{opacity:.5;cursor:not-allowed;box-shadow:none;transform:none}

button:disabled:active{transform:none}
/* borderless controls stay borderless when disabled */
:is(button.quiet,button.ib,button.link,.menu .items button,.gk .gk-icon,.gk .gk-menu .it,.side .add,.subnav .stab,.tab,button.frow,button.manifest-t,.gk .gk-thread-new,.gk .gk-side-f .gk-add):disabled{background:transparent;border-color:transparent}

/* the small size, for dense rows (28 px; 36 px on touch) */
:is(button,a).sm:not(.ib){min-height:var(--h-sm);height:var(--h-sm);padding:0 10px;font-size:13px;border-radius:var(--r-sm);gap:5px}
button.quiet.sm{padding:0 8px;color:var(--text-2)}
/* sentence case for UI copy: the DOM text stays as authored (tests and assistive names read it); text-only
   buttons and field labels are block containers so ::first-letter applies; elsewhere a .lt span carries it */
.lt{display:inline-block}
.lt::first-letter{text-transform:uppercase}
button:not(:has(*)):not(.link,.idchip,.tag,.gk-pill,.gk-link,.gk-row,.it,[role=option],.frow,.nocase){display:inline-block;text-align:center;line-height:1.2}
button:not(:has(*)):not(.link,.idchip,.tag,.gk-pill,.gk-link,.gk-row,.it,[role=option],.frow,.nocase)::first-letter{text-transform:uppercase}
/* icon buttons: close, back, refresh, more; the old text stays their accessible name */
button.ib{width:var(--h-md);min-height:var(--h-md);height:var(--h-md);padding:0;flex:none;border-color:transparent;background:transparent;box-shadow:none;color:var(--text-2)}
button.ib:hover:not(:disabled){background:var(--hover);border-color:transparent;color:var(--text)}
button.ib:disabled{background:transparent;border-color:transparent}
button.ib.sm{width:var(--h-sm);min-height:var(--h-sm);height:var(--h-sm)}
button.ib.on,button.ib[aria-pressed="true"],button.ib[aria-expanded="true"]{background:var(--surface-3);border-color:var(--border-strong);color:var(--text)}
button .ic{flex:none}
.vh{position:absolute !important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
/* a quiet page action: icon and short label */
button.act{gap:6px;padding:0 10px 0 8px;color:var(--text-2)}
button.act .ic{color:var(--text-2)}
button.act:hover:not(:disabled) .ic{color:var(--text)}

/* ---- fields ---- */
input:not([type]),input[type=text],input[type=password],input[type=number],input[type=search],input[type=email],input[type=url],select,textarea{
  height:var(--h-input);padding:0 var(--sp-2_5);background:var(--sunken);color:var(--text);border:1px solid var(--border-strong);border-radius:var(--r-md);
  font:400 var(--fs-sm)/1.4 var(--sans);max-width:100%;min-width:0;transition:border-color var(--dur-1) var(--ease),box-shadow var(--dur-1) var(--ease)}
:is(input:not([type]),input[type=text],input[type=password],input[type=number],input[type=search],input[type=email],input[type=url],select,textarea):hover:not(:disabled){border-color:var(--border-input)}
:is(input:not([type]),input[type=text],input[type=password],input[type=number],input[type=search],input[type=email],input[type=url],select,textarea):is(:focus,:focus-visible){outline:none;border-color:var(--focus-border);box-shadow:var(--focus-ring)}
:is(input,textarea)::placeholder{color:var(--placeholder,var(--text-3));opacity:1;font-family:var(--sans)}
:is(input,textarea):disabled::placeholder{color:var(--text-disabled)}
:is(input:not([type]),input[type=text],input[type=password],input[type=number],input[type=search],input[type=email],input[type=url],select,textarea):disabled{background:color-mix(in srgb,var(--surface-2) 60%,transparent);color:var(--text-disabled);border-color:var(--border-strong);opacity:.6;cursor:not-allowed}
/* a confirm-by-typing field that matches: a quiet check, no colour shouting */
label.f.confirm.ok input{border-color:var(--ok-border);padding-right:32px;
  background:var(--sunken) no-repeat right 10px center/16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235fc98d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")}
:is(input,select,textarea)[aria-invalid=true]{border-color:var(--bad-border)}
textarea{height:auto;min-height:84px;padding:var(--sp-2) var(--sp-2_5);line-height:var(--lh);resize:vertical}
select{appearance:none;-webkit-appearance:none;padding-right:30px;background-image:var(--chev);background-position:right 10px center;background-size:12px 12px;background-repeat:no-repeat}
select option{background:var(--surface-1);color:var(--text)}
select.ghost{field-sizing:content;height:var(--h-sm);min-height:var(--h-sm);width:auto;max-width:200px;padding:0 26px 0 8px;border-color:transparent;background-color:transparent;color:var(--text);font-size:13px;background-position:right 8px center}
select.ghost:hover:not(:disabled){border-color:transparent;background-color:var(--hover)}
/* a chip-select: a bot or scope picker in a toolbar (Files, Screen, Activity, the egress scope) */
select.ghost.chipsel{height:32px;min-height:32px;padding:0 28px 0 10px;border:1px solid var(--border-strong);border-radius:var(--r-md);background-color:transparent;color:var(--text);font:500 14px/30px var(--sans);background-position:right 10px center;background-size:12px 12px}
select.ghost.chipsel:hover:not(:disabled){background-color:var(--hover);border-color:var(--border-input)}
/* a datalist input: the same chevron as a select instead of the browser's own indicator */
input[list]{padding-right:30px;background-image:var(--chev);background-position:right 10px center;background-size:12px 12px;background-repeat:no-repeat}
input[list]::-webkit-calendar-picker-indicator{opacity:0}
input[type=radio]{width:16px;height:16px;margin:0;accent-color:var(--accent);flex:none}
/* checkboxes: a drawn square with a check, never the platform's */
input[type=checkbox]{appearance:none;-webkit-appearance:none;width:18px;height:18px;margin:0;flex:none;display:inline-grid;place-content:center;cursor:pointer;
  border:1.5px solid var(--border-input);border-radius:5px;background:var(--sunken);transition:background var(--dur-1) var(--ease),border-color var(--dur-1) var(--ease)}
input[type=checkbox]::before{content:"";width:10px;height:10px;background:var(--accent-ink);transform:scale(0);transition:transform var(--dur-1) var(--ease);
  clip-path:polygon(14% 44%,0 65%,50% 100%,100% 16%,80% 0%,43% 62%)}
input[type=checkbox]:checked{background:var(--accent);border-color:var(--accent)}
input[type=checkbox]:checked::before{transform:scale(1)}
input[type=checkbox]:hover:not(:disabled){border-color:var(--text-2)}
input[type=checkbox]:checked:hover:not(:disabled){border-color:var(--accent-hover);background:var(--accent-hover)}
input[type=checkbox]:disabled{cursor:not-allowed;opacity:.45}
input[type=checkbox]:checked:disabled{background:var(--accent-soft);border-style:solid;border-color:transparent}
/* a switch: the same input as a 36 × 20 track with a thumb */

/* disabled: the track solid and faded, the thumb as usual */

input[type=file]{font:400 var(--fs-sm)/1.4 var(--sans);color:var(--text-2);max-width:100%;min-width:0}
input[type=file]::file-selector-button{height:var(--h-md);padding:0 12px;margin-right:12px;border:1px solid var(--border-strong);border-radius:var(--r-md);
  background:var(--surface-2);color:var(--text);font:400 var(--fs-sm)/1 var(--sans);cursor:pointer}
input[type=file]:disabled::file-selector-button{color:var(--text-disabled);cursor:not-allowed}
/* a dropzone around a file input: the input is stretched invisibly over it, so a click or a drop reaches it */
label.drop{position:relative;display:flex;align-items:center;gap:12px;min-height:72px;padding:12px 16px;border:1.5px dashed var(--border-strong);border-radius:var(--r-lg);
  background:var(--surface-2);color:var(--text-2);font-size:var(--fs-sm);cursor:pointer;transition:border-color var(--dur-1) var(--ease),background var(--dur-1) var(--ease)}
label.drop:hover{border-color:var(--text-2);background:var(--hover)}
label.drop:focus-within{border-color:var(--focus);box-shadow:var(--focus-ring)}
label.drop .dz-ic{width:36px;height:36px;border-radius:50%;display:inline-grid;place-items:center;background:var(--surface-1);border:1px solid var(--border);color:var(--text-2);flex:none}
label.drop .dz-t{display:flex;flex-direction:column;gap:2px;min-width:0}
label.drop .dz-t b{color:var(--text);font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
label.drop .dz-t span{font-size:var(--fs-xs);color:var(--text-2)}
label.drop input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
label.drop input[type=file]:disabled{cursor:not-allowed}
label.drop:has(input:disabled){cursor:not-allowed;background:transparent}
/* a field: its label above the control (a block, so the label reads in sentence case); help sits under it */
label.f{display:block;margin:0 0 var(--sp-4);font-size:13.5px;font-weight:400;line-height:20px;color:var(--text)}
/* phones: 16 px fields under 15 px medium labels, so a label still leads its field */
@media (max-width:700px){label.f :is(input,select,textarea){font-weight:400}label.f .opt{font-weight:400}}
label.f::first-letter{text-transform:uppercase}
/* an optional field says so after its label */
label.f > .opt{display:inline;margin-left:6px;font-size:13px;font-weight:400;color:var(--text-2)}
label.f > :is(input,select,textarea,label.drop){display:block;width:100%;margin-top:6px}
label.f > label.drop{display:flex}
label.f > :is(.hint,span.why){display:block;margin-top:6px;font-weight:400}
label.f .hint{font-weight:400}
.fld{min-width:0}
.fld > label.f{margin-bottom:6px}
.fld > label.f:last-child,.fld.unitf > label.f{margin-bottom:var(--sp-4)}
label.f:has(+ .fhelp){margin-bottom:6px}
p.fhelp,.fhelp{margin:0 0 var(--sp-4);font-size:13px;line-height:19px;color:var(--text-2);font-weight:400}
.fhelp code.idchip{height:18px;font-size:13px}
.fld.narrow{max-width:200px}
label.f > .vh + :is(input,select,textarea){margin-top:0}
label.check{display:flex;align-items:center;gap:10px;min-height:var(--h-md);margin:0 0 var(--sp-3);font-size:var(--fs-base);color:var(--text);cursor:pointer}
label.check:has(input:disabled){cursor:not-allowed;color:var(--text-2)}
.row{display:flex;gap:var(--sp-2);align-items:center;flex-wrap:wrap}
form > .row:last-child{margin-top:var(--sp-2)}
.err{color:var(--bad);font-size:var(--fs-sm);margin:var(--sp-2) 0;word-break:break-word}
:is(p,div).err[role=alert]{background:var(--bad-soft);border:1px solid var(--bad-border);border-radius:var(--r-md);padding:var(--sp-2) var(--sp-3)}

/* ---- tags, badges, state colours ---- */
/* .tag is a state (ok, warn, bad, info, neutral): a tinted pill. .chip is a neutral label. .idchip is an id. */
/* the four kinds: .tag a status pill (a dot and a label on a tint, no border); .chip a neutral label; .idchip an id;
   .badge a count */
.tag{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 10px 0 9px;border-radius:var(--r-pill);border:0;background:var(--neutral-soft);
  color:var(--text-2);font:600 13px/1 var(--sans);letter-spacing:0;white-space:nowrap;vertical-align:middle;max-width:100%;flex:none}
.tag.sp{margin-left:6px}
.tag:is(.ok,.warn,.bad,.info,.amber,.status):not(:has(.dot,.ic))::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;flex:none}
.tag .dot{width:6px;height:6px;margin:0;background:currentColor}
.badge{display:inline-flex;align-items:center;min-width:0;height:auto;padding:0;border-radius:0;background:none;
  color:var(--text-2);font:500 14px/20px var(--sans);font-variant-numeric:tabular-nums;flex:none;vertical-align:baseline}
/* a count is always neutral: the attention signal is the request's own pill and the header's approvals button */
.badge.warn,.badge.accent{background:none;color:var(--text-2)}
.tag.amber{background:var(--accent-soft);color:var(--accent-text)}
.tag[data-role],.tag.role{background:var(--neutral-soft);box-shadow:none;color:var(--text);border-radius:var(--r-pill);font-weight:500;font-size:13px}
.tag.ok{background:var(--ok-soft);color:var(--ok)}
.tag.warn{background:var(--warn-soft);color:var(--warn)}
.tag.bad{background:var(--bad-soft);color:var(--bad)}
.tag.info{background:var(--info-soft);color:var(--info)}
p.tag{display:inline-flex;margin:0 0 var(--sp-4)}
.st-READY,.st-ok{color:var(--ok)}.st-ACTIVE,.st-running{color:var(--accent-text)}.st-FAILED,.st-FAILED_SECURITY,.st-FROZEN,.st-error{color:var(--bad)}
.st-SUSPENDED,.st-STOPPED,.st-IDLE,.st-cancelled{color:var(--text-2)}

/* ---- tabs (underline) ---- */
.tabs{display:flex;gap:var(--sp-1);border-bottom:1px solid var(--border);overflow-x:auto;scrollbar-width:none;flex:none}
.tab{display:inline-flex;align-items:center;height:36px;min-height:0;padding:0 var(--sp-3);font:400 var(--fs-sm)/1 var(--sans);color:var(--text-2);background:none;
  border:0;border-bottom:2px solid transparent;margin-bottom:-1px;border-radius:0;cursor:pointer;white-space:nowrap;user-select:none;box-shadow:none}
.tab:hover:not(:disabled){color:var(--text);background:none;border-color:transparent}
.tab.on,.tab.on:hover:not(:disabled){color:var(--text);font-weight:600;border-bottom-color:var(--accent)}

/* ---- the page title row: the title and the page's action on one line, a description under it ---- */
.ihead.page.tr{flex-direction:column;align-items:stretch;gap:6px}
.ihead.page.tr .ttl{flex-direction:row;align-items:center;justify-content:space-between;gap:var(--sp-3)}
.ihead.page.tr .hlinks{margin:0}
.ihead.page.tr > .sub{margin:0}
/* ---- C7 the stat cell (the overview's strip, a node's, node admin's): a label, the value with its "of N", and a
   20 px footer slot 10 px under it holding exactly one of: a meter and its percent, a one-line dot legend, a line ---- */
.statstrip-c{display:grid;grid-template-columns:repeat(auto-fit,minmax(0,1fr));padding:0;margin:0 0 var(--sp-6)}
.statstrip-c .sc{display:grid;grid-template-rows:18px 30px 20px;align-content:start;row-gap:4px;padding:16px 20px 18px;min-width:0}
.statstrip-c .sc + .sc{border-left:1px solid var(--border)}
.statstrip-c .sk{font-size:13px;line-height:18px;color:var(--text-2)}
.statstrip-c .sv{display:flex;align-items:last baseline;gap:6px;font-size:24px;font-weight:600;line-height:30px;letter-spacing:-.015em;color:var(--text);font-variant-numeric:tabular-nums;white-space:nowrap;min-width:0}
.statstrip-c .sv .of{font-size:13px;font-weight:400;letter-spacing:0;color:var(--text-2)}
.statstrip-c .sf{display:flex;align-items:center;gap:6px;min-width:0;height:20px;margin-top:6px;font-size:13px;line-height:20px;color:var(--text-2);font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden}
.statstrip-c .sf > span:last-child{overflow:hidden;text-overflow:ellipsis}
.statstrip-c .sf:has(> .meter){display:grid;grid-template-columns:minmax(0,1fr) 40px;column-gap:10px}
.statstrip-c .sf:has(> .meter) > span:last-child{text-align:right}
.statstrip-c .sf .meter{width:auto;max-width:none}
.statstrip-c .sf .dot{margin:0;width:7px;height:7px;background:currentColor}
.statstrip-c .sf .dot.ok{background:var(--ok)}.statstrip-c .sf .dot.bad{background:var(--bad)}.statstrip-c .sf .dot.amber{background:var(--accent)}.statstrip-c .sf .dot.warn{background:var(--warn-dot)}
.statstrip-c .sf.ok,.statstrip-c .sf.bad,.statstrip-c .sf.warn{color:var(--text-2)}
.statstrip-c .sf.ok .dot{background:var(--ok)}.statstrip-c .sf.bad .dot{background:var(--bad)}.statstrip-c .sf.warn .dot{background:var(--warn-dot)}
/* a dot legend on one line: "● 3 ready · ● 1 suspended" */

@media (max-width:700px){
  .statstrip-c{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:var(--sp-4)}
  .statstrip-c .sc{grid-template-rows:18px 28px 20px;padding:12px 14px 14px}
  .statstrip-c .sc + .sc{border-left:0}
  .statstrip-c .sc:nth-child(even){border-left:1px solid var(--border)}
  .statstrip-c .sc:nth-child(n+3){border-top:1px solid var(--border)}
  .statstrip-c .sv{font-size:22px;line-height:28px}
  .statstrip-c .sf:has(> .meter){grid-template-columns:minmax(0,1fr) 34px;column-gap:8px}
  
  
  
  
}
/* ---- home (instances): the heading, the node's stat strip, the instances and approvals in a right rail ---- */
.home-view{display:flex;flex-direction:column;gap:0;min-width:0}
.home-view > .ihead.page{margin-bottom:var(--sp-5)}
.home-view .ihead.page .hlinks .go{min-height:var(--h-md);height:var(--h-md);padding:0 14px 0 12px;gap:6px}
@media (min-width:1100px){
  .home-view.with-rail .igrid{grid-template-columns:repeat(2,minmax(0,1fr))}
  /* the rail ends with the instances: Node capacity takes the height the queue leaves */
}
/* narrower: the queue above the instances while requests wait, the node's capacity after them */
/* the node's capacity: key over value, the committed memory with its meter */
/* the node's capacity in the rail: three stat rows in the stat strip's type, the meter under the first */
/* a phone: the capacity as one line that opens administration */
/* the rail's queue is the full card on wide screens; narrower, a notice under the strip opens it as a sheet */
.home-view > .ap-notice{margin:0 0 var(--sp-4)}
/* no requests: one row (an icon tile, the title and a line, refresh at the right) */
section.approvals.slim{display:flex;align-items:flex-start;gap:14px;padding:16px 12px 16px var(--card-px)}
section.approvals.slim .es-ic{display:inline-grid;place-items:center;flex:none}
section.approvals.slim .sl-t{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1;padding-top:1px}
section.approvals.slim .sl-t h2.sec{margin:0;font-size:14px;line-height:20px;font-weight:600;color:var(--text)}
section.approvals.slim .sl-t span{font-size:13px;line-height:19px;color:var(--text-2)}
section.approvals.slim > .ib{margin:-2px 0 0 auto}
.bar{height:6px;background:var(--track);border-radius:var(--r-pill);overflow:hidden;width:90px;display:inline-block;vertical-align:middle;margin-left:6px}
.bar i{display:block;height:100%;background:var(--meter-fill);border-radius:var(--r-pill)}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(320px,100%),1fr));gap:var(--sp-4)}
.grid.igrid{grid-template-columns:repeat(auto-fill,minmax(min(340px,100%),1fr));align-items:stretch}
@media (min-width:701px){.grid.igrid{grid-auto-rows:1fr}}
.ipanel{--card-px:var(--sp-5);cursor:pointer;display:flex;flex-direction:column;gap:var(--sp-3);padding:var(--sp-5) var(--card-px) 0;min-width:0;
  transition:border-color var(--dur-1) var(--ease),box-shadow var(--dur-1) var(--ease),background var(--dur-1) var(--ease),transform var(--dur-1) var(--ease)}
.ipanel:hover{border-color:var(--border-strong)}
.ipanel:active:not(:has(.acts:active)){transform:none;background:color-mix(in srgb,var(--surface-1) 94%,var(--text) 6%)}
.ipanel:focus-visible{outline-offset:2px}
.ipanel.dim{background:var(--surface-2)}
.ipanel.private{cursor:default}
.ipanel.private:hover,.ipanel.private:active:not(:has(.acts:active)){transform:none;border-color:var(--border);background:var(--surface-1);box-shadow:none}
.ipanel .ip-h{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-3);min-width:0}
.ipanel .ip-nm{display:flex;align-items:center;gap:8px;min-width:0}
.ipanel .ip-n{font-size:15px;font-weight:600;letter-spacing:-0.005em;color:var(--text);line-height:24px;min-width:0}
.ipanel .line.specs{margin-top:-6px}
.ipanel .ip-nm .chip{flex:none}
.ipanel .nm{display:flex;flex-direction:column;gap:6px;min-width:0}
.ipanel .nm b{font-size:var(--fs-md);font-weight:600;color:var(--text);line-height:1.3}
.ipanel .ip-sub{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-3);min-width:0;margin-top:-4px}
.ipanel .ip-sub code.idchip{flex:none}
.ipanel .line{font-size:13px;color:var(--text-2);font-variant-numeric:tabular-nums;min-width:0}
.ipanel .line b{color:var(--text);font-weight:400}
.ipanel .specs .sep{margin:0 6px;color:var(--text-3)}
.ipanel .usage{display:flex;flex-direction:column;gap:6px}
.ipanel .usage .uh{display:flex;justify-content:space-between;gap:var(--sp-2);font-size:13px;color:var(--text-2);font-variant-numeric:tabular-nums}
.ipanel .usage .uh b{color:var(--text);font-weight:600}
.ipanel .usage .meter{width:100%}
.ipanel .line.st-FAILED{color:var(--bad)}
.ipanel .awake{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--text-2)}
.ipanel .awake .dot{margin:0}
.ipanel .ip-k{font-size:13px;color:var(--text-2)}
.ipanel .chips{gap:6px;min-height:28px;align-items:center}
.ipanel .chips.none{font-size:13px;color:var(--text-2)}
.ipanel .chips.none .sep{margin:0 6px;color:var(--text-3)}
.ipanel .chips.none button.link{font-size:13px;color:var(--text);cursor:pointer}
.ipanel .usage .uh .pc{color:var(--text-2);font-weight:400}
.ipanel .chips .nobots{font-size:13px;color:var(--text-2);line-height:24px;min-height:24px}
.ipanel .chip.bot{height:26px;padding:0 10px 0 9px;border-radius:var(--r-pill);font-size:13px;font-weight:500;color:var(--text);gap:6px}
.ipanel .chip.bot.lead{font-weight:600}
.ipanel .chip.bot .dot{width:8px;height:8px;margin:0}
.ipanel .act{display:flex;align-items:baseline;gap:6px;min-width:0;min-height:20px;font-size:13px;color:var(--text-2);white-space:nowrap}
.ipanel .act .t{color:var(--text);font-weight:600;flex:none}
.ipanel .act .x{min-width:0;overflow:hidden;text-overflow:ellipsis;flex:0 1 auto}
.ipanel .act .w{flex:none;color:var(--text-2);font-variant-numeric:tabular-nums}
.ipanel .act .w::before{content:"·";margin-right:6px;color:var(--text-3)}
/* the card's foot: its slots at the left; Suspend (quiet) and Open at the right */
.ipanel .acts{display:flex;align-items:center;gap:8px;margin:auto calc(-1 * var(--card-px)) 0;padding:12px var(--card-px);border-top:1px solid var(--border);cursor:default}
.ipanel .acts .slots{display:flex;align-items:center;gap:6px;margin-right:auto;min-width:0;font-size:13px;color:var(--text-2);font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden}
.ipanel .acts .slots .sep{color:var(--text-3)}
.ipanel .acts .slots code.idchip{height:20px;flex:none}
.ipanel .acts .slots .chip{flex:none}
.ipanel .acts button{min-height:30px;height:30px;padding:0 10px 0 9px;gap:5px;font-size:13px;border-radius:var(--r-md)}
.ipanel .acts button.open{padding:0 6px 0 12px}
.ipanel .acts button.open .ic{color:var(--text)}
.ipanel .acts button .ic{color:var(--text-2)}
.ipanel .acts button:disabled .ic{color:inherit}
.ipanel.creating{overflow:hidden;padding-bottom:var(--sp-5)}
.ipanel.failed{padding-bottom:var(--sp-5)}
.ipanel.creating::before{content:"";position:absolute;top:0;left:0;height:2px;width:40%;background:var(--accent);border-radius:var(--r-pill);animation:indeterminate 1.4s var(--ease) infinite}
@keyframes indeterminate{from{transform:translateX(-100%)}to{transform:translateX(260%)}}
.ipanel.failed{border-color:var(--bad-border)}
table.access{width:100%;border-collapse:collapse;font-size:var(--fs-sm)}
table.access td{padding:var(--sp-2_5) var(--sp-3);border-bottom:1px solid var(--border);vertical-align:middle;overflow-wrap:anywhere}
table.access td:first-child{padding-left:0}
table.access td:last-child{padding-right:0;text-align:right}
table.access tr:last-child td{border-bottom:0}
table.access td.muted{font-size:var(--fs-xs)}
table.access button{min-height:var(--h-sm);padding:0 10px;font-size:var(--fs-xs)}
table.access select{height:var(--h-sm)}
.chips{display:flex;gap:6px;flex-wrap:wrap}
.chips > .muted{font-size:var(--fs-sm)}
.chip{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 10px;border-radius:var(--r-pill);background:var(--neutral-soft);border:0;
  font:500 13px/1 var(--sans);color:var(--text);white-space:nowrap;vertical-align:middle;max-width:100%}
.chip .dot{width:6px;height:6px;margin:0}
.chip b{color:var(--text);font-weight:600}
.chip .tag.sp{margin-left:0}
.chip .u{min-width:16px;height:16px;padding:0 4px;border-radius:var(--r-pill);background:var(--accent);color:var(--accent-ink);font:600 10.5px/16px var(--sans);text-align:center}
.chip.bot{height:26px;padding:0 10px 0 8px;font-size:13px;color:var(--text)}
.private-instances.sec{margin-top:var(--sec-gap);gap:10px}

/* ---- page title row (legacy heads; .ihead.page is the shared one) ---- */
.ihead{display:flex;align-items:center;gap:var(--sp-2) var(--sp-3);flex-wrap:wrap;margin:0 0 var(--sp-6)}
.ihead h2{margin:0;font-size:var(--fs-xl);font-weight:600;letter-spacing:var(--ls-tight);color:var(--text)}
.ihead .meta{font-size:var(--fs-xs);color:var(--text-2)}
.ihead .sp{flex:1}

/* ---- classic instance view: the instance header (nav.js), then one app shell of bots, chat and the stream ---- */
.iview{min-width:0;display:flex;flex-direction:column}
.iview > *{min-width:0}
.iview > .ihead.ihx{margin-bottom:0}
.ititle button.tag.waiting,.ih-title button.tag.waiting{height:22px;min-height:22px;padding:0 9px 0 8px;cursor:pointer;font-weight:400;box-shadow:none;gap:5px}
.ih-title button.tag.waiting:hover:not(:disabled){background:var(--warn-soft);border-color:var(--warn);color:var(--warn)}
/* the state pill: READY ok, FAILED / FROZEN bad, the -ING states amber, the rest neutral; one 22 px pill */
.istate{display:inline-flex;align-items:center;gap:6px;height:22px;padding:0 8px 0 7px;border:0;border-radius:var(--r-pill);background:var(--neutral-soft);
  font:600 13px/1 var(--sans);letter-spacing:0;color:var(--text-2);white-space:nowrap;flex:none;font-variant-numeric:tabular-nums}
.istate .dot{margin:0;width:6px;height:6px}
.istate > [class^="st-"]{color:inherit}
.istate.ok{background:var(--ok-soft);border-color:var(--ok-border);color:var(--ok)}
.istate.bad{background:var(--bad-soft);border-color:var(--bad-border);color:var(--bad)}
.istate:is(.amber,.blink){background:var(--accent-soft);border-color:var(--accent-border);color:var(--accent-text)}
.istate .dot.ok{background:var(--ok)}
.iview > .banner{margin-bottom:var(--sp-3)}
.m-only{display:none !important}
@media (max-width:900px){span.m-only{display:inline !important}}
/* the shell fills the window under the header: 900 px tall pages end at the viewport */
/* the app shell runs edge to edge under the tabs, like the Grok view: the bots, the chat and the stream, divided by
   hairlines, the composer on the window's bottom edge */
.ibody{display:grid;grid-template-columns:220px minmax(0,1fr);gap:0;height:calc(100vh - var(--header-h) - 127px);height:calc(100dvh - var(--header-h) - 127px);min-height:480px;
  margin:0 calc(-1 * var(--sp-6)) calc(-1 * var(--sp-12));border:0;border-radius:0;background:var(--chat-canvas);box-shadow:none;overflow:hidden}
.ibody.pane{grid-template-columns:220px minmax(0,1fr) 360px}
.side{border:0;border-right:1px solid var(--border);border-radius:0;background:var(--side-surface);overflow:auto;display:flex;flex-direction:column;padding:0 0 var(--sp-2)}
/* the three panes' heads are one 56 px band: one rule under the bots, the chat and the stream */
.side .h{display:flex;align-items:center;justify-content:space-between;flex:none;min-height:57px;margin-bottom:var(--sp-2);font-size:var(--fs-sm);font-weight:600;color:var(--text);padding:0 var(--sp-3) 0 var(--sp-4);border-bottom:1px solid var(--border);font-variant-numeric:tabular-nums}
.brow{position:relative;display:flex;align-items:center;gap:10px;min-height:52px;margin:1px var(--sp-2);padding:6px 8px;cursor:pointer;border-radius:10px;font-size:var(--fs-sm);color:var(--text);
  transition:background var(--dur-1) var(--ease)}
.brow:hover{background:var(--hover)}
.brow.on{background:var(--pressed)}
.brow .gk-av{flex:none}
.brow .gk-av{--av-ring:var(--side-surface)}
.brow .bw{display:flex;flex-direction:column;gap:1px;min-width:0;flex:1}
.brow .n{font-size:14px;font-weight:600;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.brow .s{font-size:13px;color:var(--text-2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.brow .chip,.side .h .chip{height:20px;padding:0 7px;font-size:13px}
.brow .u{min-width:18px;height:18px;padding:0 5px;border-radius:var(--r-pill);background:var(--accent);color:var(--accent-ink);font:600 var(--fs-2xs)/18px var(--sans);text-align:center;font-variant-numeric:tabular-nums}
.brow .att{color:var(--bad);font-weight:700}
.side .add{justify-content:flex-start;gap:10px;margin:1px var(--sp-2) 0;min-height:52px;padding:6px 8px;font-size:14px;font-weight:400;border-color:transparent;background:transparent;box-shadow:none;color:var(--text-2);border-radius:10px}
.side .add .pl{width:28px;height:28px;border-radius:50%;display:inline-grid;place-items:center;border:0;background:var(--neutral-soft);color:var(--text-2);flex:none}
.side .side-acts{display:none}
.side .add:hover:not(:disabled){background:var(--hover);border-color:transparent;color:var(--text)}
.side .add:disabled{background:transparent;border-color:transparent}
.side .why{font-size:13px;color:var(--text-2);padding:var(--sp-1) var(--sp-4) var(--sp-2)}

/* the chat column: one card; the bot's header holds its actions as icons */
.ccol{position:relative;display:flex;flex-direction:column;min-width:0;min-height:0;border:0;border-radius:0;background:var(--chat-canvas);overflow:hidden}
.ccol > .chat{flex:1;border:0;border-radius:0;box-shadow:none;min-height:0}
.bot-acts{display:flex;align-items:center;gap:4px;margin-left:auto;min-width:0;flex:none}
.bot-acts > button.ib .ic{width:16px;height:16px;color:var(--text-2)}
.bot-acts > button.ib:hover:not(:disabled) .ic{color:var(--text)}

/* chat */
.chat{display:flex;flex-direction:column;border:1px solid var(--border);border-radius:var(--r-lg);background:var(--chat-canvas);min-width:0;min-height:0;overflow:hidden}
.chat .ch{display:flex;align-items:center;gap:10px;min-height:57px;padding:var(--sp-2) 12px var(--sp-2) var(--sp-4);border-bottom:1px solid var(--border);font-size:var(--fs-sm);flex-wrap:nowrap;flex:none;min-width:0}
.chat .ch .gk-av{flex:none}
.chat .ch .cht{display:flex;flex-direction:column;gap:1px;min-width:0;flex:1}
.chat .ch b{color:var(--text);font-size:15px;line-height:20px;font-weight:600}
.chat .ch .meta{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:var(--text-2);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat .ch .meta .dot{margin:0;width:7px;height:7px}
.transcript{flex:1;overflow-y:auto;padding:16px max(24px,calc((100% - 720px) / 2)) 20px;display:flex;flex-direction:column;gap:var(--sp-5);min-height:0;
  -webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 16px);mask-image:linear-gradient(to bottom,transparent 0,#000 16px)}
.transcript > button{align-self:center;min-height:var(--h-sm);padding:0 12px;font-size:var(--fs-xs);margin-top:var(--sp-3)}
.transcript > .empty{margin:auto 0}
/* the top of a conversation: who it is with, instead of an empty band */
/* the top of a conversation, centred: who it is with (avatar, name, persona, its runtime and model), 24 px over the day */
/* the day under the intro, as the Grok view's day line */
.day-sep{display:flex;align-items:center;gap:12px;color:var(--text-2);font-size:13px;margin:-8px 0 -4px}
.day-sep::before,.day-sep::after{content:"";flex:1;border-top:1px solid var(--border)}
.turn{display:flex;flex-direction:column;min-width:0}
.msg{max-width:100%;min-width:0;display:flex;flex-direction:column}
.msg .who{font-size:13px;color:var(--text-2);margin-bottom:6px;display:flex;gap:6px var(--sp-2);flex-wrap:wrap;align-items:center;font-variant-numeric:tabular-nums}
.msg .who > span:first-child{color:var(--text);font-weight:600}
.msg .who .tag{height:20px;padding:0 7px}
/* "✓ replied": a quiet word, not a pill */
.msg.user .who .tag.ok{gap:4px;height:auto;padding:0;background:none;font:500 13px/18px var(--sans);color:var(--text-2)}
.msg.user .who .tag.ok::before{content:"";width:12px;height:12px;border-radius:0;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/contain no-repeat}
.msg.user{align-self:flex-end;max-width:min(85%,640px);align-items:flex-end}
.msg.user .who{order:2;justify-content:flex-end;margin:6px 0 0}
.msg.user .who > span:first-child{color:var(--text-2);font-weight:400}
.msg.user .body{background:var(--bubble-mine);border:1px solid var(--bubble-mine-border);color:var(--bubble-mine-text);border-radius:18px 18px 6px 18px;padding:10px 14px;
  white-space:pre-wrap;word-break:break-word;line-height:var(--lh);font-size:15px}
.msg.bot{flex-direction:row;align-items:flex-start;gap:10px}
.msg.bot > .gk-av{--sz:24px}
.msg.bot > .gk-av{margin-top:1px}
.msg.bot .mc{display:flex;flex-direction:column;min-width:0;flex:1}
.msg.bot .mc > .who{order:2;margin:6px 0 0}
.msg.bot .mc > .who > span:first-child{display:none}
.msg .who .channel-tag.dflt,.delivery-summary.dflt{display:none}
.msg.bot .who .dur::before{content:"·";margin-right:6px;color:var(--text-3)}
.msg.bot .body{padding:0;line-height:var(--lh-relaxed);word-break:break-word;color:var(--text);font-size:15px}
.msg.note .body{color:var(--text-2);font-style:italic}
.turn > .work,.turn > .files,.turn > .foot{margin-left:34px}
.turn > .foot{margin-top:2px}
.md p{margin:0 0 var(--sp-2)}.md p:last-child{margin-bottom:0}
.md pre,pre.preview,.tdet pre,pre.node-result,.history-view pre,pre.err{font:400 var(--fs-mono)/1.55 var(--mono);color:var(--text);background:var(--code-bg);border:1px solid var(--border);
  border-radius:var(--r-md);padding:var(--sp-2_5) var(--sp-3);overflow:auto;tab-size:2;margin:var(--sp-2) 0}
.md pre{white-space:pre}
pre.err{color:var(--bad);border-color:var(--bad-border)}
.md ul,.md ol{margin:4px 0 8px;padding-left:22px}
.md h4{margin:var(--sp-3) 0 var(--sp-1);font-size:var(--fs-base);font-weight:600;color:var(--text)}
/* a turn's work: one quiet line that opens to its tools */
.work{border:0;border-radius:0;background:none;overflow:visible;align-self:flex-start;max-width:100%}
.work > .wh{display:inline-flex;gap:8px;align-items:center;min-height:28px;padding:0 10px 0 8px;margin-left:-8px;border-radius:var(--r-pill);cursor:pointer;font-size:var(--fs-sm);color:var(--text-2);user-select:none;font-variant-numeric:tabular-nums}
.work > .wh:hover{color:var(--text);background:var(--hover)}
.work > .wh .car{display:inline-flex;color:var(--text-2);order:2;margin-left:-2px}
.work > .wh .dot{margin:0}
.tools{border-left:2px solid var(--border);margin:4px 0 0 4px;padding:2px 0 2px 10px}
.trow{display:grid;grid-template-columns:120px minmax(0,1fr) auto;gap:var(--sp-2);padding:5px 8px;font-size:13px;cursor:pointer;align-items:baseline;border-radius:var(--r-md)}
.trow:hover{background:var(--hover)}
.trow .tn{color:var(--text);font-family:var(--mono);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.trow .ta{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-2)}
.trow .tr{white-space:nowrap;color:var(--text-2);font-variant-numeric:tabular-nums}
.trow .tr .okk{color:var(--ok)}.trow .tr .terr{color:var(--bad)}
.tdet{padding:0 var(--sp-3) var(--sp-2)}
.tdet .k{margin-top:var(--sp-1)}
.tdet pre{margin:4px 0 0;font-size:var(--fs-xs);white-space:pre-wrap;word-break:break-all;max-height:260px}
.tnote{padding:3px var(--sp-3);font-size:13px;color:var(--text-2);font-style:italic}
.fcard{position:relative;display:inline-flex;align-items:center;gap:var(--sp-2);min-height:32px;border:1px solid var(--border);border-radius:var(--r-pill);background:var(--surface-1);padding:0 12px;font-size:13px;max-width:100%;align-self:flex-start;box-shadow:var(--shadow-card);transition:background var(--dur-1) var(--ease),border-color var(--dur-1) var(--ease)}
.fcard:has(button):hover{background:var(--hover);border-color:var(--border-strong)}
.fcard::before{content:"";width:14px;height:14px;flex:none;background:var(--text-2);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5M9 13h6M9 17h4'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5M9 13h6M9 17h4'/%3E%3C/svg%3E") center/contain no-repeat}
.fcard .p{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--mono);color:var(--text)}
.fcard button.sm{position:static;min-height:0;height:auto;padding:0 0 0 2px;border:0;background:none;box-shadow:none;font:500 13px/1 var(--sans);color:var(--text-2);border-radius:var(--r-xs)}
.fcard button.sm::after{content:"";position:absolute;inset:0;border-radius:inherit}
.fcard button.sm:hover:not(:disabled){background:none;color:var(--text)}
.fcard button.sm:focus-visible{outline-offset:4px}
.files{display:flex;flex-direction:column;gap:4px;align-items:flex-start}
.foot{font-size:13px;color:var(--text-2);display:flex;gap:6px;flex-wrap:wrap;align-items:center;font-variant-numeric:tabular-nums}
.foot.bad{color:var(--bad)}
.foot > span + span::before{content:"· ";color:var(--text-3)}
.foot button{min-height:24px;height:24px;padding:0 10px;font-size:var(--fs-xs)}
.stat{font-size:var(--fs-xs)}
.chipsugg{display:flex;flex-direction:column;gap:var(--sp-2);margin:var(--sp-2) 0 0;padding:0;max-width:560px;width:100%}
.chipsugg > .muted{font-size:var(--fs-sm);color:var(--text-2);margin-bottom:var(--sp-1)}
.chipsugg button{justify-content:flex-start;text-align:left;white-space:normal;height:auto;padding:10px 14px;border-radius:10px;line-height:var(--lh-snug);font-weight:400;color:var(--text-2)}
.msg .who span{overflow-wrap:anywhere;min-width:0}
.msg .who .channel-tag{white-space:normal;max-width:100%;height:auto;min-height:18px}
.msg .who .id-tag{font-family:var(--mono)}

/* the composer: delivery options and their summary on one slim line, then the message pill */
.compose{position:relative;flex:none;display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-1) var(--sp-3);width:100%;max-width:752px;margin:0 auto;padding:var(--sp-2) var(--sp-4) var(--sp-4)}
.compose > .delivery-options[open] > summary,.compose > .delivery-options:not([open]){position:absolute;left:calc(var(--sp-4) + 9px);bottom:calc(var(--sp-4) + 12px);z-index:1;max-width:88px}
.compose > .delivery-options[open] > summary{background:var(--pressed);color:var(--text)}
.composer textarea::placeholder{color:var(--placeholder)}
.delivery-options .dch{display:inline-flex;align-items:center;gap:5px;min-width:0;font:500 13px/1 var(--sans);color:var(--text)}
.delivery-options .dch > span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.delivery-options .dch .ic{color:var(--text-2)}
.compose > .composer{padding-left:104px}
.compose > *{min-width:0}
.compose > .delivery-options{flex:none;max-width:100%}
.compose > .delivery-options[open]{flex-basis:100%;max-height:min(46vh,420px);overflow:auto;padding:var(--sp-3) var(--sp-3) var(--sp-2);margin-bottom:var(--sp-1);border:1px solid var(--border);border-radius:var(--r-lg);background:var(--surface-2)}
.compose > .delivery-options:not([open]){flex:none;margin:0;padding:0}
.compose > .delivery-summary{flex:1 1 160px}
.compose > :is(.delivery-error,.cnote,.composer){flex-basis:100%}
.delivery-options{overflow-wrap:anywhere}
.delivery-options summary{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 8px 0 9px;border-radius:var(--r-pill);cursor:pointer;list-style:none;font-size:13px;font-weight:500;color:var(--text);background:var(--neutral-soft)}
.delivery-options summary::-webkit-details-marker{display:none}
.delivery-options summary:hover{color:var(--text);background:var(--pressed)}
.delivery-options summary:focus-visible{outline-offset:-2px}
.delivery-options .grid{grid-template-columns:repeat(auto-fit,minmax(min(200px,100%),1fr));gap:0 var(--sp-3)}
.delivery-options .grid>*{min-width:0}
.delivery-options label.f{margin-bottom:var(--sp-3)}
.delivery-options .hint{margin:0 0 var(--sp-2);max-width:72ch}
.delivery-options button{min-height:var(--h-sm);padding:0 10px;font-size:var(--fs-xs)}
.delivery-summary,.delivery-error{padding:0;font-size:13px;color:var(--text-2);overflow-wrap:anywhere}
.delivery-summary code{font-size:13px;color:var(--text-2)}
.delivery-error{color:var(--bad);margin:0}
.cnote{font-size:13px;color:var(--text-2)}
/* one composer (the classic and the Grok chat): a 52 px box, the leading control, the message, a round send */
.composer{display:flex;gap:8px;align-items:flex-end;min-height:52px;padding:8px;margin-top:var(--sp-1);background:var(--surface-1);border:1px solid var(--border-strong);border-radius:14px;box-shadow:none;
  transition:border-color var(--dur-1) var(--ease),box-shadow var(--dur-1) var(--ease)}
.composer:hover{border-color:color-mix(in srgb,var(--border-input) 60%,var(--text-2))}
/* focused: a neutral lift, as the Grok composer's; the accent stays for the primary action */
.composer textarea,.composer textarea:hover,.composer textarea:is(:focus,:focus-visible),.composer textarea:disabled{flex:1;min-height:34px;height:34px;max-height:200px;resize:none;padding:7px 0;
  border:0;background:transparent;box-shadow:none;outline:none;font-size:var(--fs-md);line-height:20px}
.composer:has(textarea:disabled){background:var(--surface-2);border-color:var(--border);box-shadow:none}
.composer button{min-height:32px;height:32px;margin-bottom:1px}
.composer button.send{width:32px;height:32px;min-height:32px;padding:0;border-radius:50%;flex:none}
.composer button.danger{border-radius:var(--r-pill);padding:0 14px}
.chatbanner{flex:none;padding:var(--sp-2) var(--sp-4);font-size:var(--fs-xs);border-bottom:1px solid var(--warn-border);background:var(--warn-soft);color:var(--warn)}
.chatbanner.bad{background:var(--bad-soft);color:var(--bad);border-bottom-color:var(--bad-border)}

/* the stream pane: activity, files and screens */
.rpane{border:0;border-left:1px solid var(--border);border-radius:0;background:var(--surface-1);display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden}
.rpane > .grab,.rscrim{display:none}
.rpane .ph{display:flex;align-items:center;flex-wrap:nowrap;gap:8px;min-height:57px;padding:0 var(--sp-2) 0 var(--sp-3);border-bottom:1px solid var(--border);flex:none}
.rpane .ph .x{margin-left:auto}
.rpane .pb{flex:1;overflow:auto;min-height:0;padding:var(--sp-3) var(--sp-3) var(--sp-4)}
.rpane .pb{display:flex;flex-direction:column}
.rpane .pb > *{flex:none}
.cwrap{display:flex;flex-direction:column;min-height:0}
/* the activity log: a toolbar (bots, count), then rows of an icon, the event and its detail (two lines at most) and
   the time taken, under a caption whenever the bot or the minute changes; a row opens to its whole text */
.cbar{display:flex;align-items:center;gap:8px;min-height:36px;margin:0 0 var(--sp-3);padding-bottom:var(--sp-3);border-bottom:1px solid var(--border);flex-wrap:nowrap}
.cbar .cn{margin-left:auto;font-size:13px;line-height:20px;font-variant-numeric:tabular-nums;color:var(--text-2)}
.rpane .pb .empty{padding:var(--sp-5);font-size:var(--fs-sm);text-align:center}
.console{display:flex;flex-direction:column;gap:0;flex:none;background:none;border:0;padding:0;font-family:var(--sans)}
.console:empty{display:none}
.cgh{position:sticky;top:calc(-1 * var(--sp-3));z-index:2;display:grid;grid-template-columns:24px auto minmax(0,1fr);align-items:center;column-gap:10px;margin-top:10px;padding:10px 8px 6px;
  border-top:1px solid var(--border);background:var(--panel-bg,var(--surface-1));font-size:13px;color:var(--text-2);font-variant-numeric:tabular-nums}
.cgh .gk-av.s16{--sz:20px;font-size:10.5px}
.cgh:first-child{margin-top:0;padding-top:2px;border-top:0}
.cgh .gk-av{justify-self:center;margin:0}
.cgh b{font-size:13px;font-weight:600;color:var(--text)}
.cgh time{margin-left:8px;font-size:13px;font-weight:400;color:var(--text-2)}
.crow{position:relative;display:grid;grid-template-columns:24px minmax(0,1fr);column-gap:10px;align-items:start;padding:6px 8px;border-radius:8px;cursor:pointer;transition:background var(--dur-1) var(--ease)}
.crow:hover{background:var(--hover)}
/* a timeline: one continuous rail through the icon column, from the first event to the live row; the icons and the
   captions' avatars sit on discs over it */
:is(.crow,.cgh:not(:first-child),.clive)::before{content:"";position:absolute;left:20px;top:0;bottom:0;width:1px;background:var(--border-strong)}
.clive{position:relative}
.cwrap .clive::before{bottom:50%}
.cgh:not(:first-child)::before{z-index:0}
.cgh .gk-av{position:relative;z-index:1;box-shadow:0 0 0 3px var(--panel-bg,var(--surface-1))}
.crow .ci{position:relative;z-index:1;justify-self:center;width:24px;border-radius:50%;background:var(--panel-bg,var(--surface-1))}
.crow .t .du{margin-left:6px;font-size:13px;font-weight:400;color:var(--text-2);font-variant-numeric:tabular-nums}
.crow .t .du::before{content:"·";margin-right:6px;color:var(--text-3)}
.crow:focus-visible{outline-offset:-2px}
.crow .ci{display:inline-flex;width:20px;height:20px;margin-top:0;align-items:center;justify-content:center;color:var(--text-2)}
.crow .cm{display:flex;flex-direction:column;gap:2px;min-width:0}
.crow .t{font:500 14px/20px var(--sans);color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.crow .d{font:400 13px/18px var(--mono);color:var(--text-2);display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.crow:is(.k-tool,.k-ok) .d{width:fit-content;max-width:100%;margin-top:2px;padding:1px 6px;border-radius:var(--r-xs);background:var(--code-bg)}
.crow.k-tool .ci{color:var(--info)}
.crow.k-ok .ci{color:var(--ok)}
.crow.bad .ci,.crow.bad .t{color:var(--bad)}
.crow.k-say .d{font-family:var(--sans);font-size:13px}
.crow.k-end .ci{color:var(--text-2)}
.crow.open .d{display:block;-webkit-line-clamp:none;white-space:pre-wrap;overflow-wrap:anywhere;margin-top:4px;padding:8px 10px;border-radius:var(--r-md);background:var(--surface-2);max-height:240px;overflow:auto}
.clive{display:grid;grid-template-columns:24px minmax(0,1fr);column-gap:10px;align-items:center;justify-content:start;margin:0;padding:6px 8px;border-top:0;font-size:13px;color:var(--text-2)}
.clive .dot{position:relative;z-index:1;margin:0;width:8px;height:8px;justify-self:center;box-shadow:0 0 0 3px var(--panel-bg,var(--surface-1))}
/* ---- V1 files: the list card owns its toolbar (the bot as a crumb chip, the path, the count beside refresh); rows on
   fixed columns (icon, name, modified, size, chevron); the upload a footer pinned to the panel's foot; a file dragged
   over the panel lands on the upload field, under a dashed "Drop to upload" overlay ---- */
.ftree{font-size:var(--fs-sm);display:flex;flex-direction:column;flex:1 0 auto;min-height:100%}
:is(.gk-panel,.rpane) .pb:has(> .ftree){display:flex;flex-direction:column;padding-bottom:0}
.ftree > .fview{flex:1 0 auto}
.ftree label.fbot{display:inline-flex;align-items:center;margin:0;flex:none}
.fview{position:relative;display:flex;flex-direction:column;gap:var(--sp-3);min-height:100%}
.flist{display:flex;flex-direction:column;border:1px solid var(--border);border-radius:var(--r-lg);overflow:hidden;flex:none;background:var(--surface-1)}
.flist:empty{display:none}
.flist > .fbar{display:flex;align-items:center;gap:0;flex-wrap:nowrap;min-width:0;height:48px;margin:0;padding:0 8px 0 6px;border-bottom:1px solid var(--border);background:var(--surface-1)}
.fbar select.ghost.chipsel,.gk .gk-panel .flist > .fbar select.ghost.chipsel{height:32px;min-height:32px;padding:0 26px 0 8px;border:0;border-radius:var(--r-md);background-color:transparent;font:600 14px/32px var(--sans);color:var(--text);align-self:center;background-position:right 6px center}
.fbar select.ghost.chipsel:hover:not(:disabled){background-color:var(--hover)}
.fbar .fsep{margin:0 4px;color:var(--text-2);font-size:14px;line-height:20px}
.crumbs{display:flex;align-items:center;flex-wrap:nowrap;gap:2px;min-width:0;flex:1;margin:0;font:400 14px/20px var(--sans);color:var(--text-2);overflow:hidden}
.crumbs > span{display:inline-flex;align-items:center;gap:2px}
.crumbs .cs{color:var(--text-2)}
.crumbs button.link{display:inline-flex;align-items:center;height:32px;padding:0 6px;border-radius:var(--r-md);font-weight:500;color:var(--text-2);text-decoration:none;white-space:nowrap}
.crumbs button.link:hover:not(:disabled){background:var(--hover);color:var(--text);text-decoration:none}
.crumbs button.root .ic{display:none}
.crumbs > button.root:last-child,.crumbs > span:last-child > button.link{color:var(--text);font-weight:600}
.fbar .fcount{margin:0 0 0 auto;flex:none;font-size:13px;line-height:20px;color:var(--text-2);white-space:nowrap;font-variant-numeric:tabular-nums}
.fbar > .ib{flex:none;margin-left:8px}
.fbar > .fcount + .ib{margin-left:8px}
button.frow,.ftree button.frow{position:relative;display:grid;grid-template-columns:20px minmax(0,1fr) 72px 64px 16px;align-items:center;justify-items:start;column-gap:10px;width:100%;min-height:44px;padding:0 12px 0 14px;border:0;border-radius:0;text-align:left;
  background:transparent;box-shadow:none;color:var(--text);font:400 14px/1.3 var(--sans);cursor:pointer;transition:background-color var(--dur-1) var(--ease)}
button.frow + button.frow::before{content:"";position:absolute;left:14px;right:14px;top:0;border-top:1px solid var(--border-soft)}
button.frow:hover:not(:disabled){background:var(--hover)}
button.frow:active:not(:disabled){background:var(--pressed);transform:none}
button.frow:focus-visible{outline-offset:-2px}
button.frow > .ic{color:var(--text-2)}
button.frow .nm{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text)}
button.frow .mt{justify-self:end;font-size:13px;color:var(--text-2);white-space:nowrap;font-variant-numeric:tabular-nums}
button.frow .sz{justify-self:end;color:var(--text-2);font:400 13px/1 var(--sans);white-space:nowrap;font-variant-numeric:tabular-nums;text-align:right}
button.frow .cv{display:inline-flex;justify-self:end;color:var(--text-2)}
.fempty{display:flex;align-items:center;gap:10px;min-height:44px;padding:0 14px;font-size:13px;color:var(--text)}
.fempty .ic{color:var(--text-2)}
.fview .fnote{margin:0;font-size:13px;line-height:19px;color:var(--text-2);text-align:center}
.fview > .empty{padding:var(--sp-4);font-size:var(--fs-sm);text-align:center}
/* the upload footer: pinned to the panel's foot (full width, a hairline over it) */
.fview > form.upfoot{order:9;position:sticky;bottom:0;z-index:2;display:flex;flex-direction:column;gap:12px;margin:auto -16px 0;padding:12px 16px;border:0;border-top:1px solid var(--border);border-radius:0;background:var(--surface-1)}
.rpane .fview > form.upfoot{margin-left:-12px;margin-right:-12px;padding-left:12px;padding-right:12px}
.upfoot .uf-row{display:flex;align-items:center;gap:12px;min-height:36px}
.upfoot .uf-hint{flex:1;min-width:0;display:flex;flex-direction:column;font-size:13px;line-height:18px;color:var(--text-2)}
.upfoot .uf-hint > *{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
label.upbtn .m-l{display:none}
.upfoot .uf-hint b,.upfoot .uf-lim b{color:var(--text);font-weight:500}
.upfoot .uf-lim{display:none;font-size:13px;line-height:18px;color:var(--text-2);text-align:center}
label.upbtn{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:none;height:36px;padding:0 14px;margin:0;border:1px solid var(--border-strong);border-radius:var(--r-md);
  background:var(--btn-bg);box-shadow:var(--btn-shadow);font:500 14px/20px var(--sans);color:var(--text);cursor:pointer;transition:background-color var(--dur-1) var(--ease),border-color var(--dur-1) var(--ease)}
label.upbtn:hover{background:var(--btn-bg-hover);border-color:var(--border-input)}
label.upbtn > .ic{color:var(--text-2)}
label.upbtn:focus-within{outline:var(--focus-outline);outline-offset:2px}
label.upbtn > input[type=file]{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
label.upbtn:has(input:disabled){cursor:not-allowed;color:var(--text-disabled);background:transparent;border-color:var(--border)}
.upfoot label.f{margin-bottom:0}
.upfoot .hint{margin:0}
/* a file dragged over the panel: the field takes the whole panel, a dashed overlay says where it goes */
.fview > .fdrop{position:absolute;inset:0;z-index:3;display:none;flex-direction:column;align-items:center;justify-content:center;gap:8px;border:1.5px dashed var(--accent);border-radius:var(--r-lg);
  background:color-mix(in srgb,var(--surface-1) 88%,transparent);font-size:14px;font-weight:500;color:var(--text);pointer-events:none}
.fview > .fdrop .ic{color:var(--accent-text)}
.fview.dragging > .fdrop{display:flex}
.fview.dragging label.upbtn{position:static}
.fview.dragging label.upbtn > input[type=file]{z-index:4}
@media (max-width:700px){
  .fview > form.upfoot{padding:12px 16px calc(12px + env(safe-area-inset-bottom))}
  .upfoot .uf-row{flex-direction:column;align-items:stretch;gap:6px}
  .upfoot .uf-hint{display:none}
  .upfoot .uf-lim{display:block}
  label.upbtn{height:44px;width:100%}
  label.upbtn .m-l{display:inline}
}
.fpreview{border-top:1px solid var(--border);padding-top:var(--sp-3)}
.fpreview > .row button{min-height:var(--h-sm);padding:0 10px;font-size:var(--fs-xs)}
.fpreview > .row b{flex:1;font:400 var(--fs-mono)/1.4 var(--mono)}
.fpreview p{font-size:var(--fs-sm);margin:var(--sp-2) 0 0}
pre.preview{white-space:pre-wrap;word-break:break-word;margin:var(--sp-2) 0 0;max-height:none}

/* screen tab: one toolbar (the bot, Use screen | Take over, full screen), the frame (a caption over the box that
   keeps the screen's 16:10; noVNC scales the picture into it), then Sharing. The target div is noVNC's. */
.ibody.pane.wide{grid-template-columns:200px minmax(0,1fr) minmax(480px,56%)}
/* the Computer tab: "Screen of <bot>"; the screen (the picture to its edges), its caption under it (the window's
   title, wrapping, then the control state and full screen); Use screen (the safe default, tonal) | Take over and one
   hint; then Sharing */
.scr{display:flex;flex-direction:column;gap:12px;min-height:100%}
.scrbar{display:flex;align-items:center;flex-wrap:wrap;gap:12px 8px;min-width:0}
.scrbar .scrof{font-size:13px;color:var(--text-2);white-space:nowrap;flex:none}

.scrframe{position:relative;border:1px solid var(--border);border-radius:var(--r-lg);overflow:hidden;background:var(--sunken);box-shadow:var(--shadow-card)}
.scrframe.controlling{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
/* the caption: the remote window's title shown literally and whole (it wraps), then the state and full screen */
.scrtitle{display:flex;flex-direction:column;align-items:stretch;gap:8px;margin-top:-4px;min-width:0}
.scrname{min-width:0;font:400 13px/19px var(--sans);color:var(--text-2);white-space:normal;overflow-wrap:anywhere}
.scrstate{display:flex;align-items:center;gap:8px;min-height:32px}
.scrstate > button.ib.full{margin-left:auto}
.scrstate .tag .ic{margin-left:-1px}
.scrlive.tag{flex:none}
/* About sharing: the one accordion row */
.scr details.scrabout{margin:0;border-top:1px solid var(--border)}
.scr details.scrabout > summary{display:grid;grid-template-columns:auto minmax(0,1fr) 32px;align-items:center;gap:8px;width:100%;height:auto;min-height:48px;margin:0;padding:6px 0;font-size:14px;color:var(--text);border-radius:var(--r-md)}
.scr details.scrabout > summary:hover{background:var(--hover);box-shadow:-8px 0 0 var(--hover),8px 0 0 var(--hover)}
.scr details.scrabout > summary .ic:first-child{color:var(--text-2)}
.scr details.scrabout > summary .ic:last-child{box-sizing:border-box;width:32px;height:32px;padding:8px;border-radius:50%;color:var(--text-2)}
.scr details.scrabout .about-body{margin:0 0 var(--sp-3);font-size:var(--fs-sm)}
.scrhelp{font-size:13px;line-height:19px;color:var(--text-2)}
.scrhelp.warn{color:var(--warn)}
.scrclip{display:flex;flex-direction:column;gap:var(--sp-2);margin-top:4px}
.scrclip .scrh{margin:0;font:600 14px/20px var(--sans);color:var(--text)}

/* a switch row: the title and one line of help at the left, the switch on the title's line at the right */

.scrclipfields{display:flex;flex-direction:column;gap:6px;margin-top:var(--sp-2)}
.scrclipfields button{align-self:flex-start}
.scrbox{position:relative;width:100%;aspect-ratio:16 / 10;height:auto;background:var(--term-bg);overflow:hidden;cursor:default}
.scrbox.live{background:#000}
/* Only the active holder sends pointer events into the desktop. */
.scrtarget{position:absolute;inset:0;pointer-events:none}
.scrbox.controlling .scrtarget{pointer-events:auto}
.scrover{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:18px;text-align:center;background:var(--surface-2);color:var(--text);font-size:var(--fs-sm);word-break:break-word}
.scrover.frozen{inset:auto 0 0 0;padding:6px 10px;background:var(--surface-1);border-top:1px solid var(--accent-border);color:var(--accent-text);font-size:var(--fs-xs)}
.scrbox:fullscreen{aspect-ratio:auto;width:100vw;height:100vh;border:0;border-radius:0}
.scrbox:-webkit-full-screen{aspect-ratio:auto;width:100vw;height:100vh;border:0;border-radius:0}

/* ---- drawers: a right sheet over a scrim; the page under it is held still ---- */
html:has(.overlay){overflow:hidden}
body:has(.overlay) #app > div{height:100vh;height:100dvh;overflow:hidden}
/* a drawer runs the window's full height, flush right: its header, the body that scrolls (fading out above the
   foot), and a foot of buttons only */
.overlay{position:fixed;inset:0;z-index:var(--z-overlay);background:var(--scrim);display:flex;justify-content:flex-end;padding:0;animation:fade-in var(--dur-2) var(--ease)}
.drawer{width:min(520px,100vw);height:100vh;height:100dvh;display:flex;flex-direction:column;background:var(--surface-1);border:0;border-left:1px solid var(--border-strong);
  border-radius:0;box-shadow:-24px 0 48px rgba(0,0,0,.28);color:var(--text);font-size:var(--fs-base);overflow:hidden;animation:sheet-in var(--dur-3) var(--ease-out)}
:root[data-theme="light"] .drawer{box-shadow:-24px 0 48px rgba(31,27,23,.10)}
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]) .drawer{box-shadow:-24px 0 48px rgba(31,27,23,.10)}}
.drawer .dh{flex:none;min-height:68px;display:flex;align-items:center;gap:var(--sp-2);padding:16px 12px 14px 24px;border-bottom:1px solid var(--border)}
.drawer .dh .dt{display:flex;flex-direction:column;gap:2px;min-width:0;margin-right:auto}
.drawer .dh .dtt{font:600 17px/24px var(--sans);letter-spacing:-0.01em;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* drawer titles are headings: sentence case on screen; the dialog's accessible name stays the authored text */
.drawer .dh .dtt::first-letter{text-transform:uppercase}
.drawer .dh .dsub{font-size:var(--fs-sm);color:var(--text-2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.drawer .dh .dsub code{font:400 13px/1 var(--mono);color:var(--text);background:none;padding:0}
.drawer .db{flex:1;overflow:auto;padding:var(--sp-5) var(--sp-6) 0;font-size:var(--fs-base);display:flex;flex-direction:column}
.drawer .fhelp{margin:6px 0 var(--sp-5);font-size:13px}
.drawer .fld > label.f + .fhelp{margin-top:6px}
/* what the profile includes: one read-only line on a quiet strip */
.drawer .db > *{flex:none}
.drawer .db > form{display:flex;flex-direction:column;flex:1 0 auto}
.drawer .db h3.sec{font-size:var(--fs-base);color:var(--text);margin:var(--sp-5) 0 var(--sp-2)}
/* the action row: pinned to the sheet's foot, primary at the right */
.drawer .db > form > .row:last-child,.drawer .db > .row.dfoot{position:sticky;bottom:0;z-index:1;display:flex;flex-direction:row-reverse;justify-content:flex-start;align-items:center;flex-wrap:wrap;gap:var(--sp-3);
  margin:auto calc(-1 * var(--sp-6)) 0;padding:14px var(--sp-6);background:var(--foot-bg);border-top:1px solid var(--border);box-shadow:none}
.drawer .db > form > .row:last-child{margin-top:auto}
.drawer .db > form > :nth-last-child(2){margin-bottom:var(--sp-8)}
.drawer .db > form > .row:last-child > button,.drawer .db > .row.dfoot > button{min-height:36px;padding:0 14px}
.drawer .db > form > .row:last-child > :is(.muted,.fnote),.drawer .db > .row.dfoot > :is(.muted,.fnote){align-self:center;flex:1 1 0;font-size:13px;line-height:19px;color:var(--text-2);margin-right:auto;display:inline-flex;align-items:center;gap:8px;min-width:0}
.drawer .row > .fnote .ic{flex:none}
.drawer .db > form > .row:last-child > :is(.go,button[type=submit]){min-width:96px}
.drawer .db > form > button:not(.go,.danger){min-height:var(--h-sm);padding:0 10px;font-size:var(--fs-xs);margin:0 var(--sp-2) var(--sp-4) 0}
.drawer .db > :is(form,div) > p{font-size:var(--fs-sm);line-height:var(--lh);color:var(--text-2)}
.drawer .db > :is(form,div) > p b{color:var(--text)}
.drawer .db p.hint,.drawer label.f > .hint{font-size:13px;line-height:19px;color:var(--text-2)}
.drawer label.f + p.hint,.drawer label.check + p.hint{margin-top:calc(-1 * var(--sp-2));margin-bottom:var(--sp-4)}
.drawer label.check{font-size:var(--fs-sm)}
/* groups of fields: a small legend and room between groups */
.drawer fieldset.grp{border:0;margin:0;padding:0;min-width:0}
.drawer fieldset.grp + fieldset.grp{margin-top:24px;padding-top:24px;border-top:1px solid var(--border)}
.drawer p.fhelp.name-note{display:none}
.drawer label.f:has(+ p.name-note){margin-bottom:var(--sp-4)}

/* a floated legend sits inside the fieldset like any heading (not on its border) */
.drawer fieldset.grp > legend{float:left;display:flex;align-items:center;gap:var(--sp-2);width:100%;min-height:18px;padding:0;margin:0 0 14px;font:600 13px/18px var(--sans);text-transform:uppercase;letter-spacing:.04em;color:var(--text-2)}
.drawer fieldset.grp label.f{font-size:14px;font-weight:500}
.drawer fieldset.grp > legend + *{clear:both}
.drawer fieldset.grp > :last-child{margin-bottom:0}
.drawer fieldset.grp > legend .ib{margin:-6px -6px -6px auto}
.drawer p.spec{margin:-4px 0 var(--sp-2);font-size:13px;line-height:19px;color:var(--text-2);font-variant-numeric:tabular-nums}
.drawer p.spec b{font-weight:400;color:var(--text);margin-right:4px}
.drawer .fgrid.keep2{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (max-width:520px){.drawer .fgrid.keep2{grid-template-columns:minmax(0,1fr)}}
.drawer select{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}
.drawer .fld > label.f{margin-bottom:6px}
.drawer .fld > label.f:last-child{margin-bottom:var(--sp-4)}
.drawer .overrides{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 var(--sp-3);padding:var(--sp-3) var(--sp-3) 0;margin:0 0 var(--sp-4);
  background:var(--surface-2);border:1px solid var(--border);border-radius:var(--r-md)}
.drawer .overrides > p{grid-column:1 / -1;margin:0 0 var(--sp-3)}
.drawer .overrides label.f{margin-bottom:var(--sp-3)}
.drawer .opstate{overflow-wrap:anywhere}
.dnote{font-size:var(--fs-sm);line-height:var(--lh);color:var(--text-2);background:var(--surface-2);border:1px solid var(--border);border-radius:var(--r-md);padding:var(--sp-2_5) var(--sp-3);margin:0 0 var(--sp-4)}
.dnote b{color:var(--text);font-weight:600}
/* a callout: a soft tint of its tone with a border, an icon and the text (the bold lead in the tone) */
.callout{display:flex;gap:10px;margin:0 0 var(--sp-5);padding:10px 12px;border:1px solid var(--bad-border);border-radius:var(--r-md);background:var(--bad-soft)}
.callout > .ic{flex:none;margin-top:2px;color:var(--bad)}
.callout.warn{border-color:var(--warn-border);background:var(--warn-soft)}
.callout.warn > .ic{color:var(--warn)}
.callout.info{border-color:var(--border);background:var(--surface-2)}
.callout.info > .ic{color:var(--text-2)}
.callout > div{display:flex;flex-direction:column;gap:var(--sp-1);min-width:0}
.callout:not(:has(> div)){flex-direction:column;gap:var(--sp-2)}
.callout p{margin:0;font-size:13px;line-height:20px;color:var(--text)}
.callout p:first-child{font-weight:600;color:var(--text)}
.callout label.check{margin:var(--sp-1) 0 0}
.drawer fieldset.members{margin:0 0 var(--sp-4);padding:var(--sp-1) var(--sp-3);border:1px solid var(--border);border-radius:var(--r-md);background:var(--surface-2)}
.drawer fieldset.members legend{padding:0 6px;margin-left:-6px;font-size:var(--fs-sm);font-weight:400;color:var(--text-2)}
.drawer fieldset.members label.check{margin:0;border-bottom:1px solid var(--border)}
.drawer fieldset.members label.check:last-of-type{border-bottom:0}
.drawer fieldset.members > p{margin:var(--sp-2) 0;font-size:var(--fs-xs)}
/* the access sheet: people with access, then the share row, then the levels; it flows from the top */
.access-view,.drawer .db > .access-view{display:flex;flex-direction:column;flex:none;padding-bottom:var(--sp-6)}
.access-view h3.sub{display:flex;align-items:center;gap:8px;margin:0 0 var(--sp-1);font:600 14px/20px var(--sans);text-transform:none;letter-spacing:0;color:var(--text)}
.access-view h3.sub .badge{margin:0}
ul.people{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
ul.people .person{display:flex;align-items:center;gap:var(--sp-3);min-height:52px;padding:var(--sp-2) 0;border-bottom:1px solid var(--border)}
ul.people .person:last-child{border-bottom:0}
ul.people .pav{width:32px;height:32px;border-radius:50%;display:inline-grid;place-items:center;flex:none;background:var(--surface-3);color:var(--text);font:600 13px/1 var(--sans)}
ul.people .pav.none{background:var(--neutral-soft);color:var(--text-2)}
ul.people .pw{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
ul.people .pw b{font-size:14px;font-weight:600;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:20px}
ul.people .pw .you,ul.people .pw .pm-n{font-weight:400;color:var(--text-2)}
ul.people .pm{font-size:13px;color:var(--text-2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
ul.people .person select{width:auto;height:var(--h-sm);font-size:var(--fs-xs);flex:none}
ul.people .person > :is(.chip,.tag){flex:none;margin-top:1px}
.access-view p.nobody{margin:var(--sp-1) 0 0;font-size:13px;color:var(--text-2)}
.access-view form.share{margin:20px 0 0;padding:0;border-top:0;background:none;border-radius:0}
.access-view form.share h3.sub{margin-bottom:var(--sp-2)}
.access-view form.share .callout{margin:var(--sp-3) 0 0}
.access-view p.share-note{margin:6px 0 0}
.access-view .levels-block{margin-top:24px;padding-top:0;border-top:0}
.access-view .levels-block > summary{display:grid;grid-template-columns:16px minmax(0,1fr) 16px;align-items:center;gap:10px;min-height:44px;margin:0 -8px;padding:0 8px;border-radius:var(--r-md);cursor:pointer;list-style:none;font-size:14px;font-weight:500;color:var(--text)}
.access-view .levels-block > summary::-webkit-details-marker{display:none}
.access-view .levels-block > summary:hover{background:var(--hover)}
.access-view .levels-block > summary .ic{color:var(--text-2)}
.access-view .levels-block > summary .ic:last-child{transition:transform var(--dur-2) var(--ease)}
.access-view .levels-block[open] > summary .ic:last-child{transform:rotate(180deg)}
.access-view .levels-block > dl.levels{padding:8px 0 4px 26px}
h3.sub.lv{margin:0 0 10px}
/* the access levels: each its icon and name, its meaning under it */
dl.levels{display:flex;flex-direction:column;gap:12px;margin:0}
dl.levels .lvl{display:inline-flex;align-items:center;gap:8px;font-size:14px;line-height:20px;font-weight:600;color:var(--text)}
dl.levels .lvl .ic{color:var(--text-2)}
dl.levels > div{display:flex;flex-direction:column;gap:2px;padding:0;border-bottom:0}
dl.levels dt{margin:0}
dl.levels dd{margin:0 0 0 22px;font-size:13px;line-height:19px;color:var(--text-2)}
dl.levels .lvl .ic{align-self:center}
.chip.role{gap:5px;padding:0 8px 0 7px}
.chip.role .ic{color:var(--text-2)}
.access-view h3.sub .badge{margin-left:6px}

@keyframes fade-in{from{opacity:0}}
@keyframes sheet-in{from{transform:translateX(16px);opacity:0}}
.opstate{font-size:var(--fs-sm);background:var(--surface-2);border:1px solid var(--border);border-radius:var(--r-md);padding:var(--sp-3) var(--sp-4);margin:var(--sp-3) 0}
.opstate p{margin:4px 0}
.opstate [role=status]{font-weight:600;color:var(--text)}

/* ---- centred page (sign in, no role, loading) ---- */
.center{position:fixed;inset:0;z-index:var(--z-modal);display:flex;align-items:center;justify-content:center;padding:var(--sp-4);overflow:auto;
  background:var(--bg)}
.center form.card,.center .card,.center .box{width:min(420px,100%);padding:var(--sp-8);border-radius:var(--r-xl);background:var(--surface-1);border:1px solid var(--border);
  box-shadow:var(--shadow-3);display:flex;flex-direction:column;gap:var(--sp-4);margin-bottom:6vh}
/* the brand mark: two playing cards on an amber tile */
.center .mark{position:relative;flex:none;width:40px;height:40px;border-radius:11px;background:var(--accent);box-shadow:inset 0 -2px 0 rgba(0,0,0,.12),var(--shadow-1);margin-bottom:var(--sp-2)}
.center .mark::before,.center .mark::after{content:"";position:absolute;top:10px;left:13px;width:14px;height:19px;border-radius:3px}
.center .mark::before{border:2px solid var(--accent-ink);transform:translateX(-4px) rotate(-12deg)}
.center .mark::after{background:var(--accent-ink);transform:translate(4px,1px) rotate(10deg)}
.center .k{font-size:var(--fs-2xs);font-weight:600;letter-spacing:var(--ls-eyebrow);text-transform:uppercase;color:var(--text-2);margin-bottom:-10px}
.center h1{font-size:var(--fs-xl);font-weight:600;letter-spacing:var(--ls-tight);color:var(--text)}
.center :is(.card,.box) p{margin:0}
.center :is(.card,.box) p.muted{font-size:var(--fs-base);line-height:var(--lh-relaxed);color:var(--text-2)}
.center :is(.card,.box) p.muted b{color:var(--text);font-weight:600}
.center :is(.card,.box) p.err{background:var(--bad-soft);border:1px solid var(--bad-border);border-radius:var(--r-md);padding:var(--sp-2) var(--sp-3)}
.center .row .go{width:100%;min-height:var(--h-lg);font-size:var(--fs-base)}
.center .row a.go{width:auto;min-height:var(--h-md);font-size:var(--fs-sm);background:var(--surface-2);border-color:var(--border-strong);color:var(--text);font-weight:400}
.center .row a.go:hover{background:var(--surface-3);border-color:var(--border-input);color:var(--text)}
.center .row:last-child:has(> a:not(.go)){justify-content:space-between}
.center .row.cfoot{padding-top:var(--sp-4);border-top:1px solid var(--border)}
.center .row.nodes{gap:var(--sp-2);margin-top:-8px}

.center > .muted{display:inline-flex;align-items:center;gap:var(--sp-2);font-size:var(--fs-sm);color:var(--text-2)}
.center > .muted::before{content:"";width:14px;height:14px;border-radius:50%;border:2px solid var(--border-strong);border-top-color:var(--accent);animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

/* ---- menus ---- */
.menu{position:relative;display:inline-block}
.menu .items{position:absolute;right:0;top:calc(100% + 6px);z-index:var(--z-menu);display:flex;flex-direction:column;min-width:200px;padding:var(--sp-1_5);
  background:var(--raised);border:1px solid var(--border-strong);border-radius:var(--r-lg);box-shadow:var(--shadow-3);transform-origin:top right;animation:pop-in var(--dur-2) var(--ease-out)}
.menu .items button{display:flex;justify-content:flex-start;align-items:center;gap:var(--sp-2_5);width:100%;min-height:32px;padding:0 var(--sp-2_5);border:0;border-radius:var(--r-sm);
  background:none;box-shadow:none;color:var(--text);font:400 var(--fs-sm)/1.3 var(--sans);text-align:left;white-space:normal}
.menu .items button:hover:not(:disabled),.menu .items button:focus-visible{background:var(--hover)}
.menu .items .grab{display:none}
.menu .items hr{margin:4px -6px;border-top-color:var(--border)}
.menu .items .mgl{margin:4px -6px 0;padding:10px 16px 4px;border-top:1px solid var(--border);font:600 13px/20px var(--sans);text-transform:none;letter-spacing:0;color:var(--text)}
.menu .items button > .ic:last-child:not(:first-child){margin-left:auto;color:var(--text-2)}
.menu .items button .ic{color:var(--text-2);flex:none}
.menu .items button.danger .ic{color:inherit}
.menu .items button .r{margin-left:auto;font-size:var(--fs-xs);color:var(--text-2)}
.menu .items button.danger{color:var(--bad)}

@keyframes pop-in{from{opacity:0;transform:translateY(-4px) scale(.98)}}

/* ---- the classic view on tablets and phones: the instance header, bot chips and the chat; the stream a sheet ---- */
@media (max-width:1100px){
  .ibody{grid-template-columns:200px minmax(0,1fr)}
  .ibody.pane,.ibody.pane.wide{grid-template-columns:200px minmax(0,1fr) minmax(320px,360px)}
}
@media (max-width:900px){
  .ititle .wl,.ih-title .wl{display:none}
  .menu .items button.m-only{display:flex !important}
  .menu.m-only{display:inline-block !important}
  .d-only{display:none !important}
  .ibody,.ibody.pane{display:flex;flex-direction:column;gap:var(--sp-2);height:calc(100dvh - var(--header-h) - 168px);min-height:440px;margin:var(--sp-4) 0 0}
  .side{flex-direction:row;overflow-x:auto;overflow-y:hidden;flex:none;align-items:center;gap:6px;padding:0;border:0;background:none;box-shadow:none;border-radius:0;scrollbar-width:none;
    -webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 24px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 24px),transparent)}
  .side::-webkit-scrollbar{display:none}
  .side .h,.side .why{display:none}
  .brow{flex:none;margin:0;min-height:36px;padding:0 12px 0 4px;gap:8px;border-radius:var(--r-pill);background:var(--surface-1);border:1px solid var(--border)}
  .brow .gk-av{--sz:24px}
  .brow .bw{flex:none}
  .brow .s{display:none}
  .brow .n{font-size:13.5px}
  .side .add{flex:none;margin:0 24px 0 0;border-radius:var(--r-pill);border:1px solid var(--border);min-height:36px;padding:0 12px 0 6px;gap:6px}
  .side .add .pl{width:22px;height:22px;border:0}
  .ccol{flex:1;min-height:0}
  .chat .ch{min-height:52px;padding-right:var(--sp-1)}
  .bot-acts .menu > button.ib{width:40px;height:40px;min-height:40px;border-color:transparent;background:transparent;box-shadow:none}
  .transcript{padding:var(--sp-2) var(--sp-4) var(--sp-4)}
  .turn > .work,.turn > .files,.turn > .foot{margin-left:34px}
  /* phones: the bots as chips, the chat (its composer on the first screen), then the stream under it */
  .ibody,.ibody.pane{border:0;border-radius:0;background:none;box-shadow:none;overflow:visible}
  .ccol{border:1px solid var(--border);border-radius:var(--r-lg);box-shadow:var(--shadow-card)}
  .iview.streaming .ibody{height:auto;min-height:0;gap:var(--sp-3)}
  .iview.streaming .ibody > .side{order:1}
  .iview.streaming .ibody > .ccol{order:2;flex:none;height:calc(100dvh - var(--header-h) - 150px);min-height:420px}
  .iview.streaming .ibody > .rpane{order:3;flex:none;height:auto;max-height:none;min-height:0;border:1px solid var(--border);border-radius:var(--r-lg);box-shadow:var(--shadow-card)}
  .rpane .ph{min-height:52px;padding:0 var(--sp-1) 0 var(--sp-2);gap:var(--sp-2)}
  .rpane .ph .seg{max-width:none}
  .rpane .ph .x{width:40px;height:40px;min-height:40px}
  .rpane .pb{padding:var(--sp-3) var(--sp-3) var(--sp-4)}
}
@keyframes sheet-up{from{transform:translateY(24px);opacity:.6}}
/* menus as sheets on phones */
@media (max-width:700px){
  .menu .items{position:fixed;left:0;right:0;bottom:0;top:auto;min-width:0;max-height:85dvh;overflow:auto;padding:20px 8px calc(12px + env(safe-area-inset-bottom));
    border-radius:var(--sheet-r) var(--sheet-r) 0 0;border:0;border-top:1px solid var(--border-strong);box-shadow:0 0 0 100vmax var(--scrim-sheet),0 -12px 40px rgba(0,0,0,.35);animation:sheet-up var(--dur-3) var(--ease-out)}
  .menu .items .grab{display:block;position:absolute;top:8px;left:50%;width:36px;height:4px;margin-left:-18px;border-radius:var(--r-pill);background:var(--border-input)}
  .menu .items button{min-height:44px;font-size:var(--fs-base)}
}

/* ---- egress approvals: one anatomy on every page and in the chat (state and age; the host on its own line, never
   cut; what it opens and who asks; the bot's reason as a quote; Approve and Deny, then Add a reason and Details) ---- */
section.approvals{margin:0;container-type:inline-size}
section.approvals.bare{background:none;border:0;padding:0;box-shadow:none}
/* the one-line notice where requests wait but are not the page's subject; Review opens the queue as a sheet */
/* the attention row where requests wait but are not the page's subject: Review opens them as a sheet */
.ap-notice{display:flex;align-items:center;gap:12px;min-height:52px;padding:8px 10px 8px 16px;margin:0;border:1px solid var(--warn-border);border-radius:var(--r-lg);background:var(--warn-soft);box-shadow:inset 3px 0 0 var(--warn-dot)}
.ap-n-ic{display:inline-flex;color:var(--warn);flex:none}
.ap-notice > .ap-n-ic{display:inline-grid;place-items:center;width:20px;height:20px}
.ap-n-t{display:flex;flex-direction:column;gap:1px;min-width:0;flex:1;font-size:14px;line-height:20px;color:var(--text)}
.ap-n-t b{font-weight:600}

.ap-notice > button{flex:none}
@media (max-width:700px){
  .ap-notice{align-items:center;padding:10px 10px 10px 12px}
  .ap-notice > button{height:36px;min-height:36px}
}
.approvals > .ch{display:flex;align-items:center;flex-wrap:nowrap;gap:var(--sp-2)}
.approvals > .ch > h2.sec{white-space:nowrap}
.approvals > .ch .acts{display:flex;align-items:center;gap:2px;margin-left:auto;min-width:0}
/* the queue's filters: in the title row, at its right edge (refresh before them); chip selects that size to their words (never cut) */
.approvals .ap-bar{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:0}
.approvals > .ch .acts > .ap-bar{margin-right:0}
.approvals .ap-bar select.ghost.chipsel{flex:none;width:auto;min-width:max-content;max-width:100%;white-space:nowrap}
.approvals .ap-tools .ap-bar{margin:0}
/* the bot's waiting requests are already cards in its chat: one row that says so and opens the queue */
.approvals.inchat > .ic-row{display:flex;align-items:center;gap:12px;width:100%;height:auto;min-height:60px;padding:10px 12px;border:0;border-radius:var(--r-lg);background:none;text-align:left;font:inherit;color:var(--text)}
.approvals.inchat > button.ic-row:hover:not(:disabled){background:var(--hover)}
.approvals.inchat .ap-n-ic{display:inline-grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--warn-soft);color:var(--warn);flex:none}
.approvals.inchat .ft{display:flex;flex-direction:column;gap:1px;min-width:0;flex:1}
.approvals.inchat .ft b{font-size:14px;line-height:20px;font-weight:600}
.approvals.inchat .ft span{font-size:13px;line-height:19px;color:var(--text-2)}
@media (max-width:700px){.approvals.inchat .ft{flex-direction:row;align-items:baseline;gap:6px}.approvals.inchat .ft span{display:none}}
.approvals.inchat > button.ic-row > .ic:last-child{color:var(--text-2);flex:none}
.approvals .ap-tools{display:flex;align-items:center;justify-content:flex-end;gap:2px;margin:0 0 var(--sp-3)}
.approvals > details.about,.approvals .fold-body > details.about{margin:var(--sp-4) 0 0}
.approval-list{display:flex;flex-direction:column}
.approval-list:empty{display:none}
/* ---- C6 one egress request everywhere (the queue's rows, the classic chat, the Grok chat): the host and the time;
   one meta line (what it opens, who asks); the bot's reason as a quote; Allow (the amber primary), Deny (secondary),
   then Add a reason and Details, left-aligned. In a queue a row; on its own a card with a warn edge ---- */
.approval{display:flex;flex-direction:column;gap:0;padding:16px 0;border-top:1px solid var(--border-soft);overflow-wrap:anywhere;font-size:14px;color:var(--text-2)}
.approval:first-child{border-top:0;padding-top:0}
.approval:last-child{padding-bottom:0}
.chat-appr > .approval,.gk-card.gk-egress{padding:14px 16px;border:1px solid var(--border);border-radius:var(--r-lg);background:var(--surface-1);box-shadow:none}
.ap-h{display:flex;align-items:baseline;gap:8px;min-width:0}
.ap-h .ap-t{margin-left:auto;font-size:13px;color:var(--text-2);white-space:nowrap;font-variant-numeric:tabular-nums}
.ap-h .host{display:block;flex:0 1 auto;min-width:0;margin:0;font:400 var(--fs-mono)/20px var(--mono);letter-spacing:-.02em;color:var(--text);overflow-wrap:anywhere;white-space:normal}
.ap-h .host > .port{color:var(--text-2)}
.ap-h .tag{flex:none}
@media (min-width:701px){.ap-h .ap-t{margin-left:0}.ap-h .ap-t::before{content:"·";margin-right:8px;color:var(--text-2)}}
/* C13 a meta line: items joined by "·", a separator never starts a line */
.mline{display:flex;flex-wrap:wrap;column-gap:0;row-gap:2px;min-width:0}
.mline > *{white-space:nowrap}
.mline > :not(:last-child)::after{content:"·";margin:0 6px;color:var(--text-2)}
.ap-m{margin:2px 0 0;font-size:13px;line-height:18px;color:var(--text-2)}
.ap-m a,.ap-who a{color:var(--text);font-weight:500;text-decoration:none;text-underline-offset:3px}
.ap-m a:hover,.ap-who a:hover{text-decoration:underline;text-decoration-color:currentColor}
.ap-who{margin:10px 0 0;padding:0 0 0 10px;border-left:2px solid var(--border-strong);background:none;border-radius:0;font-size:14px;line-height:20px;font-style:normal;color:var(--text);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.ap-who q{color:var(--text);quotes:"“" "”"}
.ap-dec{margin:6px 0 0;font-size:13px;color:var(--text-2)}
.ap-dec b{color:var(--text);font-weight:600}
:is(.approval,.gk-egress) > label.f.ap-reason{margin:10px 0 0}
:is(.approval,.gk-egress) > label.f.ap-reason input{height:var(--h-md);margin:0}
.approval-actions,.gk-egress .acts{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:12px}
.approval,.gk-card.gk-egress{container-type:inline-size}
.approval-actions:empty{display:none}
.approval-actions > button{flex:none}
:is(.approval-actions,.gk-egress .acts) .ap-main{display:inline-flex;gap:8px}
.approval-actions :is(button,summary),.gk .gk-egress .acts .gk-btn{height:32px;min-height:32px;padding:0 12px;font-size:13px;border-radius:var(--r-md)}

:is(.approval-actions,.gk .gk-egress .acts) :is(button.addwhy,.gk-btn.addwhy){padding:0 10px;background:transparent;border-color:transparent;color:var(--text-2)}
:is(.approval-actions,.gk .gk-egress .acts) button .ic{color:inherit}
.approval-actions .muted{font-size:13px;color:var(--text-2)}
details.ap-ids{font-size:13px;color:var(--text-2)}
details.ap-ids > summary{display:inline-flex;align-items:center;gap:6px;padding:0 10px;border-radius:var(--r-md);cursor:pointer;list-style:none;font-size:13px;color:var(--text-2)}
details.ap-ids > summary::-webkit-details-marker{display:none}
details.ap-ids > summary:hover{background:var(--hover);color:var(--text)}
details.ap-ids > summary .ic{transition:transform var(--dur-2) var(--ease)}
details.ap-ids[open]{flex-basis:100%}
details.ap-ids[open] > summary .ic{transform:rotate(180deg)}
details.ap-ids > p{margin:4px 0 0;display:flex;align-items:center;flex-wrap:wrap;gap:4px 6px}
.approval > .err{margin:6px 0 0}
.approvals.fold .fold-body{padding-top:var(--sp-4)}
.approvals.fold > details > summary .badge{flex:none}
/* narrow (a phone, a narrow panel): Allow (the rest of the row) and Deny (112 px); Add a reason and Details under */
@container (max-width:440px){
  :is(.approval-actions,.gk-egress .acts) .ap-main{flex:1 1 100%;display:grid;grid-template-columns:minmax(0,1fr) 112px;min-width:0}
  :is(.approval-actions,.gk-egress .acts) .ap-main > button{min-width:0;padding:0 8px}
  :is(.approval-actions,.gk-egress .acts) :is(button.addwhy,.gk-btn.addwhy){margin-left:-10px}
  :is(.approval-actions,.gk-egress .acts) details.ap-ids{margin-left:auto}
  :is(.approval-actions,.gk-egress .acts) details.ap-ids[open]{margin-left:0}
}
@media (max-width:700px){
  .approvals > .ch:has(.ap-bar){flex-wrap:wrap;row-gap:8px}
  .approvals > .ch:has(.ap-bar) > .acts{order:9;flex:1 1 100%;margin-left:0}
  .approvals > .ch:has(.ap-bar) > .acts > .ap-bar{margin-right:auto}
  .approvals > .ch:has(.ap-bar) > .acts > button.refresh{order:2}
  .approval-actions .ap-main > button,.gk .gk-egress .acts .ap-main .gk-btn{height:40px;min-height:40px}
  :is(.approval-actions,.gk-egress .acts) :is(button.addwhy,details.ap-ids > summary),.gk .gk-egress .acts .gk-btn.addwhy{height:36px;min-height:36px}
}
/* the queue as an attention card (instance and bot admin, the node's home): a normal card, a 44 px head (a warn
   shield, the title, a neutral count), a 3 px warn edge the only warm signal */
section.approvals.card.attn{padding:0;border-color:var(--border);overflow:hidden;box-shadow:var(--shadow-card)}
section.approvals.card.attn > .ch{min-height:44px;margin:0;padding:4px 12px 0 20px;gap:10px;background:none;border-bottom:0}
section.approvals.card.attn > .ch > .ap-shield{display:inline-flex;color:var(--warn)}
section.approvals.card.attn > .ch > h2.sec{font-size:14px;line-height:20px;font-weight:600}
section.approvals.card.attn > .ch > .tag{height:22px;padding:0 8px;font-weight:500;color:var(--text-2);background:var(--neutral-soft)}
section.approvals.card.attn > :not(.ch){margin-left:20px;margin-right:20px}
section.approvals.card.attn > .approval-list{padding:6px 0 18px}
section.approvals.card.attn > .err{margin-top:12px}
.attn-band > section{margin:0}
@media (max-width:700px){section.approvals.card.attn > :not(.ch){margin-left:16px;margin-right:16px}section.approvals.card.attn > .ch{padding-left:16px}}

/* ---- admin pages: node administration, images, history ---- */
:is(.node-view,.images-view,.history-view){margin:0;display:flex;flex-direction:column;gap:var(--sp-4)}
:is(.node-view,.images-view,.history-view) > .ihead.page{margin-bottom:var(--sp-2)}
:is(.node-view,.images-view,.history-view) section{margin:0}
.cardhead{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-3);flex-wrap:wrap;margin:0 0 var(--sp-3)}
.cardhead > h2.sec{margin:0}
.cardhead > button{min-height:var(--h-sm);padding:0 12px;font-size:var(--fs-xs)}
.card p.lede,p.lede{font-size:var(--fs-sm);color:var(--text-2);max-width:80ch}
.card > h3.sec:first-child{margin-top:0}

.node-view{overflow-wrap:anywhere;gap:var(--sp-5) !important}
.node-view > .statstrip-c{margin:0}
/* host and memory: one key-value list in two balanced columns of six rows */
/* the host: Machine, Memory and the CPU pools on one grid of 34 px rows under heads of one height */
/* the host: Machine at the left; Memory and the CPU pools under it at the right */
.hostcard > h3.sub.hostpools{margin-top:var(--sp-6)}
.hostcard h3.sub{margin:0 0 6px}
.hostcard .pst{font-size:13.5px}
.hostcard dl.kv dd .sep{color:var(--text-3)}
.hostcard > h3.sub{margin-top:20px}
.hostcard > .ch + h3.sub{margin-top:0}

.hostcard dl.kv.cols2{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(6,auto);grid-auto-flow:column;column-gap:var(--sp-8)}
.hostcard dl.kv.cols2 > div{grid-column:auto;grid-template-columns:var(--kv-key) minmax(0,1fr)}
.hostcard dl.kv.cols2 > div:nth-child(6n){border-bottom:0}
.hostcard .card-foot.bys{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;padding:12px var(--card-px)}

.hostcard details.kvgrp.more{border-top:1px solid var(--border);border-bottom:0}
/* the tools beside the CPU pools: two plain cards, each a title, a line and one secondary button */
/* the tools: two equal cards side by side (a title, one line, the button at the foot); an open one spans the row */
.node-view .card > p.lead{max-width:none}
.pst{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:var(--text-2)}
.pst .dot{margin:0;width:7px;height:7px;background:var(--text-3)}
.pst.open{color:var(--ok)}
.pst.open .dot{background:var(--ok)}
/* the top row: three cards sized to their content */
.ngrid3{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--sp-6);align-items:start}
@media (min-width:800px){.ngrid3{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:1100px){.ngrid3{grid-template-columns:repeat(3,minmax(0,1fr))}}
.card.rescard{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:0}
.rescard > .rescol{padding:var(--card-py) var(--card-px);min-width:0}
.rescard > .rescol + .rescol{border-left:1px solid var(--border)}
.rescard h3.sub{margin:0 0 var(--sp-2)}
.poolbar{display:flex;align-items:center;gap:10px;margin-top:2px;padding-top:var(--sp-2);font-size:13px;color:var(--text-2);font-variant-numeric:tabular-nums}
.poolbar .meter{flex:1}
@media (max-width:1099px){.card.rescard{grid-template-columns:minmax(0,1fr);padding:0 0 var(--sp-2)}.rescard > .rescol + .rescol{border-left:0;border-top:1px solid var(--border)}}
@media (max-width:700px){
  .card.rescard{display:block;padding:var(--card-py) var(--card-px) var(--sp-1)}
  .rescard > .rescol{padding:0 0 var(--sp-3)}
  .rescard > details.kvgrp{border-top:1px solid var(--border);border-bottom:0}
}
/* tools: two tiles (an icon, a title and a line, the control in the tile's foot); an open tile spans the row */
.tile .tt-h{display:flex;align-items:flex-start;gap:var(--sp-3)}

.tile .ft,.tooltiles .tool.fold > details > summary .ft{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.tile .ft b{font-size:14px;font-weight:600;color:var(--text)}
.tile .ft span{font-size:13px;color:var(--text-2)}

.tile .tool-out{padding:0;border:0}
/* the action form: three equal fields whose help lines align; units as the field's suffix */
.pools{display:flex;flex-direction:column}
.pool-r{display:grid;grid-template-columns:88px minmax(0,1fr) 96px;align-items:center;gap:var(--sp-3);min-height:44px;border-bottom:1px solid var(--border);font-size:14px;color:var(--text);font-variant-numeric:tabular-nums}
.pool-r:last-child{border-bottom:0}
.pool-r.pool-h{min-height:36px;margin:0 calc(-1 * var(--card-px));padding:0 var(--card-px);background:none;border-top:1px solid var(--border);font:500 13px/16px var(--sans);color:var(--text-2)}
.pool-r b{font-weight:400;color:var(--text);font-size:var(--fs-sm)}
.pool-r > :last-child{justify-self:start}
dl.kv.bystate{border-top:1px solid var(--border);--kv-key:auto}
dl.kv.bystate dd{justify-content:flex-end}
/* a unit inside a number field, inset at its right */
.fld.unitf{position:relative}
.fld.unitf > .unit{position:absolute;right:12px;top:27px;height:var(--h-input);display:flex;align-items:center;font-size:13px;color:var(--text-2);pointer-events:none}
.fld.unitf input{padding-right:44px}
h3.sub.bys{margin-top:var(--sp-4);padding-top:var(--sp-4);border-top:1px solid var(--border)}

.cluster-node .states .istate b{font-weight:600;color:var(--text);margin-left:2px}
.node-result{white-space:pre-wrap;overflow-wrap:anywhere}
/* the tools card: rows of a title and a line with their control at the right */
.card.toolscard{padding-bottom:var(--sp-2)}
.card.toolscard > .ch{margin-bottom:0}

.tool.fold > details > summary .ft{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.tool.fold > details > summary .ft b{font-size:14px;font-weight:600;color:var(--text)}
.tool.fold > details > summary .ft span{font-size:13px;color:var(--text-2)}

.tool-out{padding:var(--sp-3) 0;border-bottom:1px solid var(--border)}
.tool-out .checks{margin:0}
.tool.fold{margin:0}
.tool.fold > details > summary{display:flex;align-items:center;gap:var(--sp-3);min-height:64px;padding:var(--sp-3) 0;cursor:pointer;list-style:none}
.tool.fold > details > summary::-webkit-details-marker{display:none}
.tool.fold > details > summary:focus-visible{outline-offset:2px;border-radius:var(--r-sm)}
.tool.fold > details > summary > .ic:last-child{box-sizing:border-box;width:32px;height:32px;padding:8px;border:0;border-radius:var(--r-md);background:transparent;color:var(--text-2);flex:none;align-self:flex-start;transition:transform var(--dur-2) var(--ease),background var(--dur-1) var(--ease)}
.tool.fold > details > summary:hover > .ic:last-child{background:var(--hover);color:var(--text)}
.tool.fold > details[open] > summary > .ic:last-child{transform:rotate(180deg)}
.tool.fold .fold-body{padding:var(--sp-2) 0 var(--sp-4)}
.checks{display:flex;flex-direction:column;border:1px solid var(--border);border-radius:var(--r-md);overflow:hidden;margin-top:var(--sp-1)}
.checks .check{display:flex;align-items:baseline;gap:var(--sp-2);margin:0;padding:var(--sp-2) var(--sp-3);font-size:var(--fs-sm);color:var(--text-2);flex-wrap:wrap}
.checks .check + .check{border-top:1px solid var(--border)}
.checks .check .tag{flex:none;align-self:center;min-width:44px;justify-content:center}
.checks .check b{color:var(--text);font-weight:600}
.node-view .opstate{margin-top:var(--sp-5)}
.signer .sg-tools{gap:var(--sp-2);margin:0 0 var(--sp-3)}
.signer .callout p.cm{font-weight:400;color:var(--text);font-family:var(--mono);font-size:var(--fs-xs)}
.signer dl.kv.formats{margin:0 0 var(--sp-4)}
.signer dl.kv.formats :is(dt,dd){padding:6px 0;font-size:var(--fs-xs)}
.node-view .signing-receipt{margin-top:var(--sp-4);padding:var(--sp-4);border:1px solid var(--border);border-radius:var(--r-md);background:var(--surface-2)}

.images-view{overflow-wrap:anywhere}
.image-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(300px,100%),1fr));gap:var(--sp-3)}
.image{min-width:0;display:flex;flex-direction:column;gap:6px;padding:var(--sp-4);border:1px solid var(--border);border-radius:var(--r-md);background:var(--surface-2)}
.image .im-h{display:flex;align-items:center;gap:var(--sp-2);min-width:0}
.image .im-h b{font-size:var(--fs-base);font-weight:600;color:var(--text);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.image .im-h .ver{font-size:var(--fs-xs);color:var(--text-2)}
.image p{margin:0;font-size:var(--fs-xs);color:var(--text-2)}
.image p code.idchip{max-width:100%}
.images-view .empty-state > button{gap:6px}
/* images: the list and how registration works at the left, the registration form in a 420 px rail at the right */
/* the form's foot: the reason it waits at the left, the button at the right (on a phone the reason over the button) */
.register .cf{justify-content:space-between}
.register .cf > .why{flex:1 1 auto;margin:0;text-align:left}
.register .cf > .why + button{margin-left:auto}
@media (max-width:700px){.register .cf > .why{order:0}}

.howto .sn{width:24px;height:24px;margin-top:-2px;border-radius:50%;display:inline-grid;place-items:center;background:var(--surface-3);color:var(--text);font:600 13px/1 var(--sans);font-variant-numeric:tabular-nums}
.howto .st{display:flex;flex-direction:column;gap:2px;min-width:0}
.howto .st b{font-size:14px;line-height:20px;font-weight:500;color:var(--text)}
.howto .st span{font-size:13px;line-height:19px;color:var(--text-2)}
.register .fhelp code.plain{background:none;padding:0;color:var(--text);font-size:13px}
/* ---- instance administration, checkpoints, terminal, bot administration ---- */
.adminview{margin:0;display:flex;flex-direction:column;gap:var(--sp-5);min-width:0;overflow-wrap:anywhere}
.adminview > .pg-head{margin:0}
.adminview section{margin:0}
.adminview > .ihead{margin-bottom:var(--sp-2);align-items:center}
.adminview .grid>*{min-width:0}
.adminview > p{margin:0;font-size:var(--fs-sm)}
.adminview > p.loading{color:var(--text-2)}
.ihead .ttl{display:flex;flex-direction:column;gap:2px;min-width:0}
.ihead .ttl .sub{margin:0;font-size:var(--fs-sm);color:var(--text-2);font-variant-numeric:tabular-nums}
.ihead .hlinks{display:flex;align-items:center;flex-wrap:wrap;gap:var(--sp-2);min-width:0}
.ihead .hlinks button{min-height:var(--h-sm);padding:0 10px;font-size:var(--fs-xs)}
.ihead .hlinks button.refresh{margin-left:var(--sp-1)}
.card > h2.sec:has(> .mono){display:block;overflow-wrap:anywhere}
.card > h2.sec .mono{font:400 var(--fs-xs)/1.4 var(--mono);color:var(--text-2)}

.p-alert,p.err.callout-bad{margin:0 0 var(--sp-4);padding:var(--sp-2_5) var(--sp-3);border:1px solid var(--bad-border);border-radius:var(--r-md);background:var(--bad-soft);line-height:1.55}

/* instance administration: a sticky section nav beside the sections (wide screens), which follows the reading */
.ia-layout{display:grid;grid-template-columns:184px minmax(0,1fr);gap:var(--sp-8);align-items:start}
.ia-main{display:flex;flex-direction:column;gap:var(--sp-6);min-width:0}
.ia-main > section{margin:0;scroll-margin-top:calc(var(--header-h) + 16px)}
.secnav{position:sticky;top:calc(var(--header-h) + 24px);display:flex;flex-direction:column;gap:2px;padding-top:2px}
.secnav .navlink{display:flex;text-align:left;justify-content:flex-start;gap:8px;min-height:var(--h-md);padding:0 12px;border:0;background:none;box-shadow:none;color:var(--text-2);font-weight:400;border-radius:var(--r-sm)}
.secnav .navlink:hover:not(:disabled){background:var(--hover);color:var(--text)}
.secnav .navlink.on,.secnav .navlink.on:hover:not(:disabled){color:var(--text);background:var(--hover);box-shadow:inset 2px 0 0 var(--accent)}
.secnav .navlink.bad:hover:not(:disabled),.secnav .navlink.bad.on{color:var(--bad)}
.secnav .navlink .dz-dot{width:6px;height:6px;border-radius:50%;background:var(--bad);flex:none}
.ihead.page .sub b.iname{color:var(--text);font-weight:400}
/* the current policy: three stats, label over value */
dl.nowstrip{display:flex;flex-wrap:wrap;gap:var(--sp-3) var(--sp-8);margin:-4px 0 var(--sp-5);padding:0 0 var(--sp-5);border-bottom:1px solid var(--border);background:none;border-radius:0}
dl.nowstrip > div{display:flex;flex-direction:column;gap:2px}
dl.nowstrip dt{font-size:13px;color:var(--text-2)}
dl.nowstrip dd{margin:0;font-size:15px;font-weight:600;color:var(--text);font-variant-numeric:tabular-nums}
.fgrid > .span2x{grid-column:span 2}
.fgrid > p.hint,.fgrid > p.fhelp{grid-column:1 / -1;margin:-10px 0 var(--sp-4);font-size:13px;line-height:19px;color:var(--text-2)}
.fgrid > p.fdesc{grid-column:1 / -1;margin:-10px 0 var(--sp-4);font-size:13px;line-height:1.45;color:var(--text-2)}
.fgrid > .fld > p.fhelp{margin-bottom:var(--sp-4)}
/* a danger zone: a soft red edge, a red icon tile before a neutral title, an outlined danger button; the foot untinted */
.card.danger-zone{border-color:var(--border)}
.card.danger-zone > .ch{gap:10px}
.card.danger-zone > .ch > .dz-ic{width:28px;height:28px;border-radius:var(--r-md);display:inline-grid;place-items:center;background:var(--bad-soft);color:var(--bad);flex:none}
.card.danger-zone > p.lead{margin:0;font-size:13.5px;line-height:20px;text-wrap:wrap}
.card.danger-zone > .callout{margin:var(--sp-4) 0}
.card.danger-zone > .callout p{text-wrap:wrap}
.card.danger-zone > label.f{margin:0}
/* bot administration's actions: the bot's own verbs, then deleting it in a danger card of its own (one form) */
.bstack > form{display:flex;flex-direction:column;gap:var(--sp-5);margin:0}
.bstack > form > .card{margin:0}
@media (max-width:700px){.bstack > form{gap:var(--sp-4)}}
.danger-zone .dz{display:flex;align-items:center;gap:var(--sp-3) var(--sp-4)}
.danger-zone .dz-ic{width:28px;height:28px;border-radius:var(--r-md);display:inline-grid;place-items:center;background:var(--bad-soft);color:var(--bad);flex:none}
.danger-zone .dz-t{flex:1;min-width:0}
.danger-zone .dz-t h2.sec{margin:0 0 4px;color:var(--text);font-size:var(--fs-md)}
.danger-zone .dz-t p{margin:0;font-size:var(--fs-sm);color:var(--text-2)}
.danger-zone .dz > button{flex:none}
.card .callout{margin:0 0 var(--sp-4)}
.callout .row{margin-top:var(--sp-2)}
.command-result{margin-top:var(--sp-4);padding-top:var(--sp-4);border-top:1px solid var(--border)}
.command-result p{margin:0 0 var(--sp-1);font-size:var(--fs-sm);color:var(--text-2)}
.command-result [role=status]{font-weight:600;color:var(--text)}
.command-result pre{max-height:320px}
/* the overview's wide row under its three columns, and its groups as disclosures on a phone */
dl.kv.wide-row{margin-top:var(--sp-2);border-top:1px solid var(--border)}
dl.kv.wide-row dd{justify-content:flex-start}
details.kvgrp{border-bottom:1px solid var(--border)}
details.kvgrp:last-child{border-bottom:0}
/* one accordion row everywhere: (an icon,) the title over its summary line, the chevron in a 32 px circle at the
   right, centred on the row; the whole row tints on hover, bleeding to the card's edge */
details.kvgrp > summary,.tool.fold > details > summary,.card.fold > details > summary{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 32px;align-items:center;gap:2px 12px;
  min-height:56px;padding:12px 0;cursor:pointer;list-style:none;font-size:14px;color:var(--text);border-radius:var(--r-md);transition:background var(--dur-1) var(--ease),box-shadow var(--dur-1) var(--ease)}
:is(details.kvgrp,.tool.fold > details,.card.fold > details) > summary::-webkit-details-marker{display:none}
:is(details.kvgrp,.tool.fold > details) > summary:hover{background:var(--hover);box-shadow:calc(-1 * var(--card-px,16px)) 0 0 var(--hover),var(--card-px,16px) 0 0 var(--hover);border-radius:0}
details.kvgrp > summary .kg-t,.tool.fold > details > summary .ft,.card.fold > details > summary .ft{display:flex;flex-direction:column;gap:2px;min-width:0}
details.kvgrp > summary .kg-s,.tool.fold > details > summary .ft span,.card.fold > details > summary .ft span{font-size:13px;line-height:19px;color:var(--text-2);text-wrap:pretty}
details.kvgrp > summary b,.tool.fold > details > summary .ft b{font:600 14px/20px var(--sans);text-transform:none;letter-spacing:0;color:var(--text)}

:is(details.kvgrp,.tool.fold > details,.card.fold > details) > summary > .ic:last-child{box-sizing:border-box;grid-column:-2;grid-row:1;width:32px;height:32px;padding:8px;margin:0;border-radius:50%;
  color:var(--text-2);transition:transform var(--dur-2) var(--ease),background var(--dur-1) var(--ease)}
@media (max-width:700px){:is(details.kvgrp > summary .kg-s,.tool.fold > details > summary .ft span,.card.fold > details > summary .ft span){white-space:normal;font-size:13.5px;line-height:20px}}
:is(details.kvgrp,.tool.fold > details,.card.fold > details) > summary:hover > .ic:last-child{background:var(--hover);color:var(--text)}
:is(details.kvgrp,.tool.fold > details,.card.fold > details)[open] > summary > .ic:last-child{transform:rotate(180deg)}
.card.fold > details > summary{padding:18px var(--card-px);border-radius:var(--r-lg)}
.card.fold > details > summary:hover{background:var(--hover)}
.card.fold > details[open] > summary{border-radius:var(--r-lg) var(--r-lg) 0 0}
details.kvgrp > dl.kv{margin-bottom:var(--sp-2)}
@media (max-width:1099px){
  .ia-layout{grid-template-columns:minmax(0,1fr);gap:0}
  .secnav{display:none}
}

/* instance administration: the overview, and an aside to manage it (lifecycle and egress policy as tabs of one
   card, its approvals, its tools and the danger zone) */
.instance-admin .opstate{overflow-wrap:anywhere;margin:0}
.fgrid.one{grid-template-columns:minmax(0,1fr)}
.aside :is(.fgrid,.fgrid.three,.fgrid.four){grid-template-columns:minmax(0,1fr)}
.aside .fgrid > :is(.span2,.span2x){grid-column:auto}
.aside .fgrid > p.hint,.aside .fgrid > p.fhelp{margin-top:-10px}
/* a setting in a form: a plain row (title and help at the left, the switch top-aligned at the right) */

.card.manage > .ch{margin-bottom:var(--sp-3)}
/* the overview: a strip of the state and its dates, then two columns of seven rows */
dl.statstrip{display:grid;grid-template-columns:auto minmax(0,1.6fr) minmax(0,1fr) minmax(0,1fr);gap:var(--sp-3) var(--sp-6);margin:0 0 var(--sp-5);padding:0 0 var(--sp-5);border-bottom:1px solid var(--border)}
dl.statstrip > div{display:flex;flex-direction:column;gap:4px;min-width:0}
dl.statstrip dt{font-size:13px;color:var(--text-2)}
dl.statstrip dd{margin:0;min-height:22px;display:flex;align-items:center;font-size:14px;color:var(--text);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-variant-numeric:tabular-nums}
dl.statstrip dd > :not(.istate){overflow:hidden;text-overflow:ellipsis}
div.o-ov{display:flex;flex-direction:column;gap:var(--sp-5);min-width:0}

/* an instance's status: one strip of label-over-value facts above its cards */
.statstrip-c.facts{grid-template-columns:minmax(0,.8fr) minmax(0,2fr) minmax(0,1fr) minmax(0,1fr);margin:0}
.statstrip-c.facts .sc{grid-template-rows:20px 24px;row-gap:6px;padding:14px var(--sp-5)}
.statstrip-c.facts .sv{font-size:14px;font-weight:400;line-height:24px;letter-spacing:0;align-items:center;overflow:hidden}
.statstrip-c.facts .sv .istate{flex:none}
.statstrip-c.facts .sv > .ell{min-width:0}
.bot-admin-view .card > p.lead.persona{margin:-8px 0 var(--sp-5);font-size:14px;color:var(--text);max-width:none}
.bot-admin-view .card > p.when{margin:var(--sp-3) 0 0;font-size:13px;color:var(--text-2)}

/* the guest features: one row across the card under the four groups, so their chips stay on one line */
.ia-ov dl.kvfeat{margin-top:var(--sp-3);padding-top:var(--sp-1)}
/* a phone's open group shows its rows, not its one-line summary as well */
details.kvgrp[open] .kg-s{display:none}
/* wide: two columns, each card as deep as its content */
/* the configuration's four groups on one grid (Instance | Resources, Images | Storage), one key column */

/* a field that depends on the one above it: indented under a rule */
.fgrid > label.f.dep{padding-left:0;border-left:0}
/* the new-checkpoint form in a rail: its verbs on their own row under the title */
.ckform > .ch{flex-wrap:wrap;row-gap:12px}

@media (max-width:700px){
  /* State, Created and Expires on one row; the reason spans the row under them, so an id never wraps */
  .statstrip-c.facts{grid-template-columns:repeat(3,minmax(0,1fr))}
  .statstrip-c.facts .sc{padding:var(--sp-3) var(--sp-4);grid-template-rows:18px 24px;border-top:0;border-left:1px solid var(--border)}
  .statstrip-c.facts .sc:first-child{border-left:0}
  .statstrip-c.facts .sc.wide{grid-column:1 / -1;order:3;border-left:0;border-top:1px solid var(--border)}
  dl.statstrip{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sp-3) var(--sp-4);margin-bottom:var(--sp-2);padding-bottom:var(--sp-4)}
  dl.statstrip dd{white-space:normal;overflow-wrap:anywhere}
}
.policy-bare dl.kv.now{margin-bottom:var(--sp-5)}
.policy-bare > form > .fgrid{margin-top:var(--sp-1)}
/* V11 the policy change as a sentence: "Change [Egress tier ⌄] to [T0 · current ⌄]", its meaning full width under it */
.policy-bare .fgrid.pchange{display:flex;flex-wrap:wrap;align-items:center;gap:10px 12px;margin:0}
.policy-bare .fgrid.pchange > label.f{display:inline-flex;align-items:center;gap:10px;margin:0;font-size:14px;color:var(--text)}
.policy-bare .fgrid.pchange > label.f + label.f::first-letter{text-transform:none}
.policy-bare .fgrid.pchange > label.f > :is(select,input){width:auto;min-width:200px;margin:0}
.policy-bare .fgrid.pchange > :is(.hint,.fgrid){flex-basis:100%;margin:0}
@media (max-width:700px){.policy-bare .fgrid.pchange > label.f{flex:1 1 100%}.policy-bare .fgrid.pchange > label.f > :is(select,input){flex:1;min-width:0}}
.tool.fold + .tool.fold{border-top:1px solid var(--border)}
.card.toolscard.tools2{padding-bottom:var(--sp-1)}
.card.toolscard.tools2 > .ch{margin-bottom:var(--sp-1)}
.card.toolscard.tools2 .tool.fold > details > summary{min-height:60px}
.aside .danger-zone .dz{align-items:flex-start;flex-wrap:wrap}
.aside .danger-zone .dz-t{flex:1 1 200px}
.aside .danger-zone .dz > button{margin-left:auto}

.file-transfer{margin:var(--sp-3) 0;padding:var(--sp-3);border:1px solid var(--border);border-radius:10px;background:var(--surface-2)}
/* in a settings card the transfer form is the right column like any other form: no second frame */
.file-transfer input[aria-label*="path"]{font-family:var(--mono);font-size:var(--fs-sm)}
.file-transfer > p{font-size:var(--fs-sm);color:var(--text-2)}
.file-transfer > .row{margin-top:var(--sp-1)}
.file-transfer input[type=file]{width:100%}
.transfer-receipt{overflow-wrap:anywhere;margin:var(--sp-3) 0;padding:var(--sp-3) var(--sp-4);border:1px solid var(--ok-border);border-radius:var(--r-md);background:var(--ok-soft);font-size:var(--fs-sm)}
.transfer-receipt p{margin:0 0 4px;color:var(--text)}
.transfer-receipt [role=status]{font-weight:600;color:var(--ok)}
.transfer-receipt button{margin-top:var(--sp-1);min-height:var(--h-sm);padding:0 12px;font-size:var(--fs-xs);background:var(--surface-1)}

/* checkpoints: a table (label and kind, id, created, retention, files, a row menu); on a phone two-line rows */
/* checkpoints: a table sized to its content (the label takes the rest; the files toggle and ⋯ one cluster at the
   right); in a narrow card (a rail, a phone) each row is two lines */
.inventory{container-type:inline-size}
.ckcols,.ckr{display:grid;grid-template-columns:minmax(0,1fr) 140px 140px 110px 40px;align-items:center;column-gap:var(--sp-3)}
/* the id is in ⋯ (Copy ID) and in the page for search and assistive technology, not a column */
.ck-s > .ck-id{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.ckr button.manifest-t{justify-self:start;margin:0 0 0 -8px;padding:0 6px 0 8px}
.ck-s{display:contents}
.ckr .ret{font-size:13px;color:var(--text-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.ckr .ret.keep{color:var(--text)}
.ckcols{min-height:36px;margin:0 calc(-1 * var(--card-px));padding:0 var(--card-px);background:none;border-top:0;border-bottom:1px solid var(--border-strong);
  font:500 13px/16px var(--sans);text-transform:none;letter-spacing:0;color:var(--text-2)}
.inventory > .ckpt{margin:0 calc(-1 * var(--card-px));padding:0 var(--card-px);border-bottom:1px solid var(--border-soft)}
.inventory > .ckpt:hover{background:var(--hover)}
.ckr{min-height:52px}
.ck-l{display:flex;align-items:center;gap:var(--sp-2);min-width:0}
.ck-l h3.sec{margin:0;font-size:14px;font-weight:600;color:var(--text);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ckr code.idchip{justify-self:start;max-width:100%}
.ck-t{font-size:13px;color:var(--text-2);white-space:nowrap}
.ck-m{display:flex;justify-content:flex-end}
.ckbot{margin:-8px 0 10px;font-size:13px;color:var(--text-2)}
button.manifest-t{display:inline-flex;align-items:center;gap:4px;height:28px;min-height:28px;padding:0 6px 0 8px;border:0;border-radius:var(--r-sm);background:none;box-shadow:none;font-size:13px;color:var(--text);font-variant-numeric:tabular-nums}
button.manifest-t:hover:not(:disabled){background:var(--pressed);color:var(--text)}
button.manifest-t .ic{transition:transform var(--dur-2) var(--ease)}
button.manifest-t[aria-expanded="true"] .ic{transform:rotate(90deg)}
.ckpt > .manifest{padding:0 0 var(--sp-4)}
.inventory > .card-foot{margin-top:auto;border-top:0}
.inventory > .ckpt + .card-foot{margin-top:auto}
/* the list card is as deep as its rows (the form beside it may run longer); a muted line under the rows says
   how retention works */
/* a loading list: static bars where the rows will be */
.skel{display:flex;flex-direction:column;gap:14px;padding:var(--sp-3) 0}
.skel > i{display:block;height:12px;border-radius:4px;background:var(--surface-2)}
.skel > i:nth-child(2){width:72%}.skel > i:nth-child(3){width:48%}
@container (max-width:640px){
  .ckcols{display:none}
  .inventory > .ch + .ckpt{border-top:1px solid var(--border)}
  /* a row is two lines: the label, its kind and ⋯; then the age and retention, with the files at the right (the id
     is in ⋯ as Copy ID) */
  .ckr{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"l m" "s f";row-gap:0;column-gap:var(--sp-2);padding:8px 0 6px}
  .ck-l{grid-area:l;min-width:0}
  .ck-m{grid-area:m;align-self:center;margin-right:-6px}
  .ck-s{grid-area:s;display:flex;flex-wrap:wrap;align-items:center;gap:2px 8px;min-width:0;font-size:13px;color:var(--text-2)}
  .ck-s > :not(.ck-id) + *::before{content:"·";margin-right:8px;color:var(--text-3)}
  .ckr .ret{overflow:visible}
  .ckr .manifest-t{grid-area:f;justify-self:end;align-self:center;margin:0 -2px 0 0}
}
.ckimg{margin:var(--sp-2) 0;font-size:var(--fs-xs);color:var(--text-2)}
.ckfiles{border:1px solid var(--border);border-radius:var(--r-md);background:var(--code-bg);overflow:hidden}
.ckfiles p{margin:0;padding:var(--sp-2) var(--sp-3);font:400 var(--fs-xs)/1.55 var(--mono);color:var(--text-2);overflow-wrap:anywhere}
.ckfiles p + p{border-top:1px solid var(--border)}
.ckfiles b{font-weight:400;color:var(--text)}
.ckfiles code{background:none;padding:0;font-size:1em;color:var(--text-2)}
.ck-tasks{margin:0 0 var(--sp-4)}
.ck-tasks button{min-height:var(--h-sm);font-size:var(--fs-xs)}
.inventory .empty-state{margin-top:0}

/* a switch row boxed as its own setting, the width of the form */

/* a setting inside a form: the switch first, its title and help to its right (settings lists keep it at the right) */

/* bot administration */

dl.statstrip.three{grid-template-columns:repeat(3,minmax(0,1fr));margin:0;padding:0;border:0}
dl.nowstrip.tl{margin:var(--sp-4) 0 0;padding:var(--sp-4) 0 0;border-top:1px solid var(--border);border-bottom:0}
dl.nowstrip.tl dd{font-size:13.5px;font-weight:400}
.bot-admin-view .card > .ch .bav{width:28px;height:28px;border-radius:50%;display:inline-grid;place-items:center;flex:none;background:var(--surface-3);color:var(--text);font:600 13px/1 var(--sans)}
.bot-admin-view .convo .chat{height:min(560px,70vh);border-radius:var(--r-md)}
.kv dd code.idchip{max-width:100%}

/* terminal page (xterm's own rendering is untouched): the title, its state and a lead line; idle, a compact card in
   the theme (what the shell is, then the start form at its right); once a session exists, one dark frame whose bar
   holds the state, the keys and Disconnect (or, ended, the start form again). Only that frame keeps dark tokens. */
.terminal-page{min-width:0;display:flex;flex-direction:column}
/* one card, one title: the header (Root terminal and its state), the lead, then the body (idle: the facts and the start
   form, over a sunken strip where the shell will open; else the dark frame) */
.terminal-page > .tcard{display:flex;flex-direction:column;gap:var(--sp-3);min-width:0;margin:0;overflow-wrap:anywhere}
.terminal-page > .tcard > *{margin:0}
.terminal-page > .tcard > .ch{display:flex;align-items:center;gap:var(--sp-2);min-height:32px}
.terminal-page > .tcard > .ch h2.sec{margin:0;font-size:16px;line-height:24px;font-weight:600;letter-spacing:-0.01em}
.terminal-page > .tcard > .ch > .tag{margin-left:4px}
.terminal-page > .tcard > p.lead{margin:-8px 0 8px;font-size:13.5px;line-height:20px;color:var(--text-2)}
.terminal-page .treason{font-size:var(--fs-sm);line-height:20px;color:var(--warn)}
.tag.neutral{background:var(--neutral-soft);color:var(--text-2)}
.tag.neutral::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;flex:none}
.tframe{position:relative;display:flex;flex-direction:column;min-width:0}
.tframe:not(.s-idle){height:clamp(360px,calc(100dvh - 300px),720px);border:1px solid #2a2a2a;border-radius:var(--r-lg);overflow:hidden;background:var(--term-bg)}
.tbar{display:flex;align-items:center;flex-wrap:nowrap;gap:var(--sp-2) var(--sp-3);min-height:52px;padding:8px 10px 8px 14px;background:#1b1a18;border-bottom:1px solid #2a2a2a}
.tstatus{display:inline-flex;align-items:center;gap:var(--sp-2);margin:0;flex:none;font-size:13px;color:#bdbab2}
.tstatus::before{content:"";width:8px;height:8px;border-radius:50%;background:#8f8b83;flex:none}
.tstatus.connecting::before{background:#f5a524;animation:dot-pulse 1.2s var(--ease) infinite}
.tstatus.connected::before{background:#5fc98d;box-shadow:0 0 0 3px rgba(95,201,141,.14)}
.tbar > .tkeys{display:flex;align-items:center;gap:6px;margin:0 0 0 auto;flex-wrap:nowrap}
.terminal-keys{margin:0;flex-wrap:wrap;gap:6px}
.terminal-keys:has(button:disabled){display:none}
.tbar button{min-height:var(--h-sm);height:var(--h-sm);padding:0 10px;font-size:13px;background:#262522;border-color:#403e39;color:#edebe6;box-shadow:none}
.tbar button:hover:not(:disabled){background:#302f2b;border-color:#4a4843;color:#fff}
.terminal-host{width:100%;min-width:0;min-height:0;flex:1 1 auto;overflow:hidden;background:var(--term-bg);padding:var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-3)}
/* idle: xterm stays mounted, unseen under the card */
.terminal-host .xterm{padding:0}
.terminal-host textarea{min-height:0}
/* the start form: "Type <name> to start", the field and Start; in the idle card a column, in the bar one row */
form.tstart{display:flex;align-items:center;gap:8px 10px;margin:0;min-width:0}
form.tstart:not(.cf) > label.f.confirm{display:flex;align-items:center;gap:6px 10px;margin:0;min-width:0}
form.tstart input{font-family:var(--mono);font-size:13px}
form.tstart.inbar{margin-left:auto;flex-wrap:nowrap}
form.tstart.inbar > label.f.confirm input{width:200px;height:var(--h-md)}
form.tstart.inbar > button{min-height:var(--h-md);height:var(--h-md)}
.treceipt{padding:var(--sp-3) var(--sp-4);border:1px solid var(--border);border-radius:var(--r-md);background:var(--surface-2);font-size:var(--fs-sm)}
.treceipt p{margin:0 0 var(--sp-1);color:var(--text-2)}
.treceipt button{margin:var(--sp-1) 0 var(--sp-2);min-height:var(--h-sm);padding:0 12px;font-size:var(--fs-xs)}
@media (max-width:900px){
  .tbar{flex-wrap:wrap;padding:10px 12px}
  .tbar > .tkeys{margin:0;flex:1 1 100%;flex-wrap:wrap}
  form.tstart.inbar{flex:1 1 100%;flex-wrap:wrap;margin:0}
  form.tstart.inbar > label.f.confirm{flex:1 1 100%;flex-direction:column;align-items:stretch}
  form.tstart.inbar > label.f.confirm input{width:100%}
  form.tstart.inbar > button{flex:1}
}
@media (max-width:700px){
  .tframe:not(.s-idle){height:calc(100dvh - 230px);min-height:360px}
  .terminal-page .terminal-host{padding:var(--sp-1) var(--sp-1) var(--sp-1) var(--sp-2)}
}

/* one segmented control everywhere (history, Manage, the stream pane, the Grok panel's tabs, pickers of up to four
   verbs): a sunken well, the chosen segment raised and bold; never a colour */
:is(.segmented,.seg){display:inline-grid;grid-auto-flow:column;grid-auto-columns:1fr;align-items:center;gap:2px;height:auto;padding:3px;margin:0;
  border-radius:10px;background:var(--seg-well);border:1px solid var(--border);min-width:0;overflow:visible}
:is(.segmented,.seg) > button{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:28px;min-height:28px;padding:0 14px;
  border:0;border-radius:7px;background:transparent;color:var(--text-2);box-shadow:none;font:500 14px/28px var(--sans);white-space:nowrap;min-width:0;
  transition:background-color var(--dur-1) var(--ease),box-shadow var(--dur-1) var(--ease),color var(--dur-1) var(--ease)}
:is(.segmented,.seg) > button:hover:not(:disabled):not(.on,[aria-checked=true]){background:var(--hover);color:var(--text)}
:is(.segmented,.seg) > :is(.on,[aria-selected=true],[aria-checked=true]),:is(.segmented,.seg) > :is(.on,[aria-checked=true]):hover:not(:disabled){background:var(--seg-on);color:var(--text);font-weight:600;box-shadow:0 0 0 1px var(--seg-ring),var(--seg-shadow)}
:is(.segmented,.seg) > button:focus-visible{outline-offset:0}
:is(.segmented,.seg) > button:not(:has(*)){display:block;text-align:center}
:is(.segmented,.seg).full{display:grid;width:100%}
.segmented.full{margin:0 0 var(--sp-4)}
@media (max-width:700px){
  :is(.segmented,.seg) > button{height:32px;min-height:32px;line-height:32px;padding:0 8px}
}
/* ---- C8 choice cards (Verbs): equal cards in one row on wide screens (a 16 px radio, the name, one line); the one
   selection is amber (K4: a 1.5 px accent edge, a soft accent fill, the radio filled amber with an ink dot). On a phone,
   and in a narrow rail (.list), the same radios are one grouped list: one bordered container, hairline dividers (K5). */

/* the chosen verb's whole sentence, under the cards, only where it adds to the card's own line */
/* the grouped list: rows of 56 px (title over its line), divided by hairlines inside one bordered container */

/* retained operation and event history: one card. Its toolbar (the kind as a segmented control, the count, Filters
   and refresh, one height), the filter band, then a table: a type icon and the operation in words, who (an avatar
   and a name), the instance, the bot and how long ago, right-aligned; on a phone two-line rows under day heads */
.history-view{min-width:0}
.history-main{display:flex;flex-direction:column;gap:var(--sp-5)}
.history-view .card{min-width:0}
.history-view p,.history-view h3,.history-view code{overflow-wrap:anywhere}
.history-records{padding-bottom:0;overflow:clip}
.history-records .ftoggle{padding:0 12px;gap:6px;font-size:13px}
.history-records .ftoggle.on{background:var(--pressed);border-color:transparent;color:var(--text);box-shadow:inset 0 0 0 1px var(--border-strong)}
.history-records .ftoggle .fn{color:var(--text-2);font-variant-numeric:tabular-nums}
form.hfilters{margin:0 0 var(--sp-4);padding:12px 16px;background:var(--surface-2);border-radius:10px}
.frow1{display:grid;grid-template-columns:repeat(5,minmax(0,1fr)) 96px;gap:12px;align-items:end}
.frow1.ev{grid-template-columns:repeat(4,minmax(0,1fr)) 96px}
.frow2{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}
.frow2 details.about.pop{margin-left:-6px}
.frow1 label.f{margin:0;font-size:13px;color:var(--text-2)}
.frow1 label.f > :is(input,select){margin-top:4px;background-color:var(--surface-1)}
.frow1 > button{height:var(--h-input)}
form.hfilters details.about{margin:var(--sp-2) 0 0}
.history-actions{margin:0}
.history-records .rh{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px var(--sp-3);margin:0}
.history-records .rh:not(:has(button)){display:none}
.history-records .rh button{margin-left:auto}
.history-records > p{font-size:var(--fs-sm)}
.history-records > .skel{padding-bottom:var(--sp-5)}
.history-records > p.empty{margin:0 0 var(--sp-5);border:0;text-align:center;color:var(--text-2)}
/* the operations table */
.hcols,.hrow.optab{display:grid;grid-template-columns:minmax(0,30fr) minmax(0,14fr) minmax(0,24fr) minmax(0,16fr) minmax(0,16fr);align-items:center;column-gap:var(--sp-4)}
.hcols{position:sticky;top:var(--header-h);z-index:1;min-height:36px;padding:0 var(--card-px);margin:0 calc(-1 * var(--card-px));background:var(--surface-1);border-top:1px solid var(--border);border-bottom:1px solid var(--border);
  font:500 13px/16px var(--sans);text-transform:none;letter-spacing:0;color:var(--text-2)}
.hcols > span:nth-child(5){text-align:right}
.hrow{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:start;column-gap:var(--sp-3);padding:var(--sp-3) var(--card-px);margin:0 calc(-1 * var(--card-px));border-top:1px solid var(--border-soft);transition:background var(--dur-1) var(--ease)}
.hrow:hover{background:var(--hover)}
.hcols + .hrow,.history-records > .rh + .hrow,.history-records > .rh + p + .hrow,.hcols + .hday + .hrow{border-top:0}
.hrow.optab{min-height:44px;padding:5px var(--card-px);cursor:pointer}
.hrow.optab.sel{background:var(--selected)}
.hrow.optab .hop{display:flex;align-items:center;gap:10px;min-width:0}
.hrow.optab .hop .kic{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;flex:none;background:var(--neutral-soft);color:var(--text-2)}
.hrow.optab .hop .kic.k-new{background:var(--ok-soft);color:var(--ok)}
.hrow.optab .hop .kic.k-egress{background:var(--warn-soft);color:var(--warn)}
.hrow.optab .hop .kic.k-ck{background:var(--info-soft);color:var(--info)}
.hrow.optab .hop .kic.k-msg{background:var(--accent-soft);color:var(--accent-text)}
.hrow.optab .hop .tag{height:20px;flex:none}
.hrow .hst-d{margin:0;width:8px;height:8px;flex:none}
.hrow .hst-d.dot.quiet{display:none}
.hrow.optab .kind{font:500 13.5px/20px var(--sans);letter-spacing:0;color:var(--text);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hrow.optab .actor{display:inline-flex;align-items:center;gap:8px;min-width:0;font-size:13.5px;color:var(--text);overflow:hidden;white-space:nowrap}
.hrow.optab .actor .aav{width:20px;height:20px;border-radius:50%;display:inline-grid;place-items:center;flex:none;background:var(--neutral-soft);color:var(--text);font:600 10.5px/1 var(--sans)}
.hrow.optab .actor .aav.gk-av{--sz:20px;background:hsl(var(--h,40) var(--gk-av-s) var(--gk-av-l));color:hsl(var(--h,40) 35% var(--gk-av-fl))}
.hrow.optab .actor .an{color:var(--text);min-width:0;overflow:hidden;text-overflow:ellipsis}
.hrow.optab :is(.hin,.hbt){min-width:0;display:flex}
.hrow.optab :is(.hin,.hbt) .none{font-size:13px;color:var(--text-2)}
.hrow.optab :is(.hin,.hbt) :is(button.link,.nm){color:var(--text);font-size:13.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-decoration:none}
/* the instance and the bot open their pages: a quiet underline says so at rest */
.hrow.optab :is(.hin,.hbt) button.link{font-weight:500;text-decoration:none;text-underline-offset:3px}
.hrow.optab :is(.hin,.hbt) button.link:hover:not(:disabled){color:var(--text);text-decoration:underline;text-decoration-color:currentColor}
.hrow.optab .hr-t{grid-column:5;grid-row:1;text-align:right;font-size:13px}
.hrow.optab .hr-x{grid-column:1 / -1;padding:2px 0 4px 34px}
.hrow.optab .hr-x p{margin:0;font-size:13px}
.hrow:last-of-type{margin-bottom:0}
.hr-main{display:flex;flex-direction:column;gap:6px;min-width:0}
.hr-l1{display:flex;align-items:center;gap:var(--sp-2);min-width:0;flex-wrap:wrap;min-height:24px}
.hr-l1 .kind{font:400 13px/20px var(--mono);color:var(--text)}
.hr-l1 .actor,.hr-l1 .seq{font-size:13px;color:var(--text-2)}
.hr-l2{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-width:0;font-size:13px;color:var(--text-2)}
.hr-l2 .hid{display:inline-flex;align-items:center;gap:6px}
.hr-l2 .hid button{position:relative;z-index:1}
.hrow .hr-main > p{margin:0;font-size:var(--fs-sm);color:var(--text-2)}
.hr-t{font-size:13px;color:var(--text-2);white-space:nowrap;line-height:24px;font-variant-numeric:tabular-nums}
.history-attribution{display:inline-flex;flex-wrap:wrap;align-items:center;gap:6px}
.history-attribution .scope{color:var(--text-2)}
.history-attribution button.link.idchip,.hrow details,.hrow button.idchip,.hrow.optab :is(.hin,.hbt) button{position:relative;z-index:1}
/* the whole operation row opens it; its chevron shows on hover, in the card's right padding */
.hrow .go-op{width:20px;height:24px;min-height:24px;color:var(--text-2);opacity:0;transition:opacity var(--dur-1) var(--ease)}
.hrow.optab .go-op{grid-column:5;grid-row:1;justify-self:end;margin-right:-22px}
.hrow .go-op::after{content:"";position:absolute;inset:0}
.hrow:hover .go-op,.hrow .go-op:focus-visible,.hrow.sel .go-op{opacity:1;color:var(--text)}
/* day heads: a quiet line over each day's rows */
.hday{display:flex;align-items:flex-end;min-height:44px;margin:0 calc(-1 * var(--card-px));padding:0 var(--card-px) 8px;font:600 14px/20px var(--sans);letter-spacing:0;text-transform:none;color:var(--text)}
.history-view details{margin-top:2px}
.history-view .hrow summary{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:var(--text-2);cursor:pointer;list-style:none;border-radius:var(--r-xs)}
.history-view .hrow summary::-webkit-details-marker{display:none}
.history-view .hrow summary::before{content:"";width:5px;height:5px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(-45deg);transition:transform var(--dur-1) var(--ease)}
.history-view .hrow details[open] > summary::before{transform:rotate(45deg)}
.history-view pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:440px;max-width:100%}
.history-records > :last-child:is(.hrow){border-bottom:0}
.hfoot{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-3);min-height:44px;margin:0 calc(-1 * var(--card-px));padding:6px var(--card-px);border-top:1px solid var(--border);
  font-size:13px;color:var(--text-2);font-variant-numeric:tabular-nums}
.hfoot:empty{display:none}
.history-selected{border-color:var(--accent-border)}
.history-selected p{font-size:var(--fs-sm);margin:2px 0}
.history-selected [role=status]{font-weight:600;color:var(--text);display:flex;align-items:center;gap:6px}
.history-selected .hs-state .dot{margin:0}
@media (max-width:1100px){
  .frow1,.frow1.ev{grid-template-columns:repeat(3,minmax(0,1fr))}
  .hcols,.hrow.optab{grid-template-columns:minmax(0,1fr) 140px 160px 0 88px}
  .hcols > span:nth-child(4),.hrow.optab .hbt{display:none}
}
@media (max-width:700px){
  .frow1,.frow1.ev{grid-template-columns:repeat(2,minmax(0,1fr))}
  .frow1 > button{grid-column:1 / -1;height:44px}
  .hcols{display:none}
  .hday{display:flex;align-items:center;position:sticky;top:var(--header-h);z-index:1;height:32px;margin:0 calc(-1 * var(--card-px));padding:0 var(--card-px);
    background:var(--surface-1);border-top:1px solid var(--border);font:600 14px/20px var(--sans);letter-spacing:0;text-transform:none;color:var(--text)}
  .history-records > .rh + .hday,.history-records > .ch + .hday{border-top:0}
  .hday + .hrow{border-top:1px solid var(--border)}
  /* a row is two lines: the type icon, the operation and its time; then one flowing muted line, who · instance · bot */
  .hrow.optab{grid-template-columns:minmax(0,1fr) auto;min-height:60px;padding-top:10px;padding-bottom:10px;row-gap:2px;column-gap:var(--sp-3)}
  .hrow.optab .hop{grid-column:1;grid-row:1;gap:10px}
  .hrow.optab .kind{font-size:14px}
  .hrow.optab .hr-t{grid-column:2;grid-row:1;align-self:center;font-size:13px;line-height:20px}
  .hrow.optab .hmeta{grid-column:1 / -1;grid-row:2;display:flex;align-items:center;min-width:0;padding-left:38px;font-size:13px;line-height:20px;color:var(--text-2);white-space:nowrap}
  .hrow.optab .hmeta .actor{flex:none;max-width:40%;gap:0;font-size:13px;font-weight:400;color:var(--text-2)}
  .hrow.optab .hmeta .actor .an{color:var(--text-2)}
  .hrow.optab .actor .aav{display:none}
  .hrow.optab .hmeta :is(.hin,.hbt){display:flex;flex:0 1 auto;min-width:0;margin:0}
  .hrow.optab .hmeta :is(.hin,.hbt)::before{content:"·";flex:none;margin:0 6px;color:var(--text-2)}
  .hrow.optab .hbt.nobot{display:none}
  .hrow.optab :is(.hin,.hbt) :is(button.link,.nm,.none){font-size:13px;line-height:20px;color:var(--text-2);font-weight:400}
  .hrow.optab .hr-x{grid-row:3;padding-left:38px}
  .hrow.optab .go-op{display:none}
  .hr-l2 code.idchip{max-width:100%}
}

/* screenshots attached to replies (attachments.js) */
.atts{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(220px,100%),1fr));gap:10px;margin:8px 0 4px}
.att{margin:0;min-width:0;border:1px solid var(--border);border-radius:10px;overflow:hidden;background:var(--surface-2);display:flex;flex-direction:column}
.att .thumb{display:block;min-height:0;padding:0;border:0;border-radius:0;border-bottom:1px solid var(--border);background:var(--code-bg);box-shadow:none;cursor:zoom-in;width:100%}
.att .thumb:focus-visible{outline:var(--focus-outline);outline-offset:-2px}
.att .thumb img{display:block;width:100%;height:auto;max-height:240px;object-fit:contain}
.att .attmsg{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:14px 10px;font-size:var(--fs-xs);color:var(--text-2);min-height:64px;border-bottom:1px solid var(--border)}
.att.failed .attmsg,.att.unavailable .attmsg,.att.denied .attmsg,.att.error .attmsg{color:var(--warn)}
.att figcaption{padding:6px 8px;font-size:var(--fs-xs);display:flex;flex-direction:column;gap:2px;overflow-wrap:anywhere}
.att figcaption .prov,.lightbox .prov{font-size:13px;color:var(--text-2)}
.lightbox{position:fixed;inset:0;z-index:var(--z-lightbox);background:var(--bg);display:flex;flex-direction:column}
.lightbox .lbhead{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center;justify-content:space-between;padding:10px 14px;background:var(--surface-1);border-bottom:1px solid var(--border)}
.lightbox .lbtitle{display:flex;flex-direction:column;gap:2px;min-width:0;overflow-wrap:anywhere}
.lightbox .lbacts{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.lightbox .lbacts a{font-size:var(--fs-xs)}
.lightbox .lbbody{flex:1;overflow:auto;padding:12px;display:flex;align-items:flex-start;justify-content:center}
.lightbox .lbbody img{display:block;max-width:none}
.lightbox .lbbody.fit{align-items:center}
.lightbox .lbbody.fit img{max-width:100%;max-height:100%;object-fit:contain}
@media (max-width:480px){
  .atts{grid-template-columns:1fr}
  .lightbox .lbhead{padding:8px 10px}
  .lightbox .lbbody{padding:6px}
}

/* ---- the cluster overview (cluster.js) ---- */
.meter{position:relative;display:block;overflow:hidden;flex:none;font-variant-numeric:tabular-nums}
/* one neutral fill; warn from 80 % and bad from 95 % (meterTone); amber is never a meter colour */
.meter i{position:absolute;top:0;bottom:0;left:0;transition:width var(--dur-3) var(--ease)}
.meter i:not([style*="width: 0%"]){min-width:4px}

.cluster{margin:0}
.cluster .ihead.page{margin-bottom:var(--sp-6)}
.cluster .loading{font-size:var(--fs-sm)}
.cluster-nodes{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(380px,100%),1fr));gap:var(--sp-4);align-items:start}
.cluster-nodes:has(> :only-child){grid-template-columns:minmax(0,640px)}
.cluster-node{position:relative;display:flex;flex-direction:column;gap:var(--sp-4);padding:var(--sp-5) var(--card-px) 0;font-size:var(--fs-sm);color:var(--text-2);overflow-wrap:anywhere;font-variant-numeric:tabular-nums;
  transition:border-color var(--dur-1) var(--ease),box-shadow var(--dur-1) var(--ease)}
.cluster-node.linked{cursor:pointer}
.cluster-node.linked:hover{border-color:var(--border-strong)}
.cluster-node{transition:border-color var(--dur-1) var(--ease),box-shadow var(--dur-1) var(--ease),transform var(--dur-1) var(--ease)}
.cluster-node.down{border-color:var(--bad-border)}
.cluster-node.none{background:transparent;border-style:dashed;box-shadow:none;padding-bottom:var(--sp-5)}
.cluster-title{display:flex;align-items:center;gap:var(--sp-2);flex-wrap:wrap;min-height:32px}
.cluster-title b{font-size:17px;line-height:24px;font-weight:600;letter-spacing:-0.01em;color:var(--text);margin-right:2px}
.cluster-title .tag.role{color:var(--text-2)}
.cluster-title .tag.idle::before{content:none}
.cluster-node .url{display:flex;align-items:baseline;min-width:0;margin-top:-12px;font:400 13px/18px var(--mono);color:var(--text-2)}
.cluster-node .url .ell{min-width:0;max-width:100%}

.cluster-node .err{margin:0}
.cluster-node .usage{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--sp-5);padding:var(--sp-4) 0 0;border-top:1px solid var(--border)}
.cluster-node .use{display:flex;flex-direction:column;gap:4px;min-width:0}
.cluster-node .usage.idle{flex:1 0 auto;display:flex;align-items:center;gap:12px;font-size:14px;line-height:20px;color:var(--text-2)}
.cluster-node .usage.idle .id-ic{display:inline-grid;place-items:center;width:36px;height:36px;flex:none;border-radius:10px;background:var(--surface-2);color:var(--text-2)}
.cluster-node .usage.idle .id-t{display:flex;flex-direction:column;gap:2px;min-width:0}
.cluster-node .usage.idle b{font-weight:600;color:var(--text)}
.cluster-node .uk{font-size:13px;color:var(--text-2)}
.cluster-node .uv{font-size:13px;color:var(--text-2);white-space:nowrap}
.cluster-node .uv{font-size:13px}
.cluster-node .uv b{font-size:15px;font-weight:600;color:var(--text)}
.cluster-node .use .meter{margin-top:4px}
.cluster-node .counts{display:flex;align-items:center;flex-wrap:wrap;min-height:52px;gap:var(--sp-2);margin:auto calc(-1 * var(--card-px)) 0;padding:10px var(--card-px);color:var(--text-2);border-top:1px solid var(--border)}
.cluster-node .counts .sep{color:var(--text-3)}
.cluster-node .counts.none .ic{color:var(--text-2)}
.cluster-node .counts b{color:var(--text);font-weight:600;margin-right:2px}
.cluster-node .counts.none{color:var(--text-2)}
.cluster-node .states{display:flex;flex-wrap:wrap;gap:4px 12px;margin:0 0 0 auto}
.cluster-node .states .none{color:var(--text-2)}
.cluster-node .states .istate b{font-weight:600;color:inherit;margin-left:2px}
/* the card's way in: Open at the right of its title; the whole card opens the node */
.cluster-node a.cardlink{margin-left:auto;width:32px;height:32px;min-height:32px;padding:0;justify-content:center;border:1px solid transparent;border-radius:50%;background:transparent;color:var(--text-2);font-weight:400;box-shadow:none}
.cluster-node a.cardlink .lt{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.cluster-node a.cardlink .ic{color:var(--text-2)}
.cluster-node a.cardlink:hover,.cluster-node.linked:hover a.cardlink{background:var(--hover);color:var(--text);text-decoration:none}
.cluster-node.linked a.cardlink::after{content:"";position:absolute;inset:0;border-radius:var(--r-lg)}
@media (max-width:700px){
  .cluster-node{gap:var(--sp-3)}
  .cluster-node .url{margin-top:-6px}
  .cluster-node .usage{grid-template-columns:minmax(0,1fr);gap:var(--sp-3);margin-top:var(--sp-1)}
  .cluster-node a.cardlink{width:36px;height:36px;min-height:36px}
  /* each metric one row: its name at the left, the amount and share at the right, a 4 px meter under them */
  .cluster-node .use{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;row-gap:6px;min-height:28px}
  .cluster-node .use .meter{grid-column:1 / -1;margin-top:0}
  .cluster-node .uv b{font-size:14px}
  .cluster-node .states{flex-basis:100%;margin-left:0}
}

/* ---- shared refinements (before the phone rules, so those still win) ---- */
/* node administration: the capacity strip and the host card are one region; the instances cell lists the states */
.node-view > section.nres{display:flex;flex-direction:column;gap:var(--sp-5);margin:0}

.pool-r{margin:0 calc(-1 * var(--card-px));padding:0 var(--card-px)}
.ihead.page .sub{display:flex;align-items:center;flex-wrap:wrap;gap:6px 8px}
.ihead.page .sub > .desc{flex-basis:100%;color:var(--text-2)}
/* state pills in sentence case like every other pill ("Ready", "Suspended"); the DOM keeps the API's word */
:is(.istate,.gk-bar .st,.line.badges .state) > [class^="st-"]{display:inline-block;text-transform:lowercase}
:is(.istate,.gk-bar .st,.line.badges .state) > [class^="st-"]::first-letter{text-transform:uppercase}
/* overview: each metric shows its share */
.cluster{display:flex;flex-direction:column;flex:1 0 auto}
.app-page > .cluster{flex:1 0 auto}
/* the pages update live, so a card's own refresh stays out of sight until a pointer is over the card (or the focus
   is in it, or it failed); touch screens, with no hover, keep it in view. The overview's page refresh always shows */
@media (hover:hover){
  button.ib.refresh{transition:opacity var(--dur-1) var(--ease)}
  button.ib.refresh:not(.spin){opacity:0}
  :is(.card,.approvals,.history-view,.images-view):is(:hover,:focus-within) button.ib.refresh,button.ib.refresh:focus-visible,
  :is(.card,.history-view):has(.err) button.ib.refresh,.upd-w button.ib.refresh{opacity:1}
}
/* the overview's freshness, quiet at the right of its heading */
.ihead.page .hlinks.upd-w{align-self:flex-start;gap:2px;margin-top:0}
.ihead.page .upd{font-size:13px;color:var(--text-2);white-space:nowrap;font-variant-numeric:tabular-nums}
.cluster .all-ok{display:inline-flex;align-items:center;gap:6px;font-size:13px;line-height:18px;color:var(--text-2);white-space:nowrap}
.cluster .all-ok .ic{color:var(--ok)}
.cluster .hlinks > .sep{margin:0 8px 0 6px;font-size:13px;color:var(--text-2)}
.cluster .hlinks.upd-w{align-items:center}
.cluster .all-ok.ph{display:none}
@media (max-width:700px){.cluster :is(.all-ok,.sep).dk{display:none}.cluster .ihead.page .sub .all-ok.ph{display:flex;margin-top:8px}}
/* a phone: the freshness at the right of the title's line; the subtitle wraps under both */
@media (max-width:700px){
  .cluster > .ihead.page{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:8px;align-items:start}
  .cluster > .ihead.page > .ttl{display:contents}
  .cluster > .ihead.page > .ttl > h2{grid-column:1;grid-row:1}
  .cluster > .ihead.page > .ttl > .sub{grid-column:1 / -1;grid-row:2;margin-top:6px}
  .cluster > .ihead.page > .hlinks.upd-w{grid-column:2;grid-row:1;align-self:center;margin:-8px -6px -8px 0}
}
/* ---- phones: after every component rule, so the touch sizes win over the components' desktop sizes ---- */
@media (pointer:coarse){
  button,.btn,a.go{min-height:36px}
}
@media (max-width:700px){
  .app-page{padding:var(--sp-4) var(--sp-4) var(--sp-8)}
  /* one card padding on phones: stacked cards' titles share an edge */
  .card{--card-px:var(--sp-4);--card-py:var(--sp-4)}
  .card.ipanel{--card-px:var(--sp-4);padding-top:var(--sp-4)}
  .card.cluster-node{padding-top:var(--sp-4)}
  .card.cluster-node.none{padding-bottom:var(--sp-4)}
  .card.statstrip-c{padding:0}
  .card.fold{padding:0}
  .ihead .sp{display:none}
  .trow{grid-template-columns:80px minmax(0,1fr) auto}
  button,.btn,a.go{min-height:var(--h-lg)}
  .ipanel .acts .slots :is(code.idchip,.sep){display:none}
  .ipanel .acts button,table.access button,.banner button,.ilinks button,.bot-acts button,.terminal-keys button,.transfer-receipt button,.treceipt button,
  .fcard button.sm,.delivery-options button,.cbar select,.fpreview > .row button,.card > .ch .acts > button:not(.ib),.signer .sg-tools button,.approval-actions button,
  .hr-l2 .hid button,.ck-tasks button,details.about > summary{min-height:36px}
  .rpane .ph .seg > button{height:34px;min-height:34px}
  .fcard{min-height:40px}
  .cbar.one select{display:none}
  .composer textarea,.composer textarea:hover,.composer textarea:is(:focus,:focus-visible),.composer textarea:disabled{font-size:16px;min-height:38px;height:38px;padding:8px 0}
  .composer button{min-height:38px}
  .composer button.send{width:36px;height:36px;min-height:36px}
  :root select.ghost.chipsel,.gk .gk-panel select.ghost.chipsel{height:40px;min-height:40px;padding:0 30px 0 12px;font-size:15px;line-height:38px}
  .transcript{padding:var(--sp-4) var(--sp-3)}
  .msg.user{max-width:88%}
  :root{--h-input:44px}
  :is(input:not([type]),input[type=text],input[type=password],input[type=number],input[type=search],input[type=email],input[type=url],select){height:var(--h-input);font-size:16px}
  textarea{font-size:16px}
  
  .center form.card,.center .card,.center .box{padding:var(--sp-6)}
  .center .row .go{min-height:44px}
  section{margin-bottom:var(--sp-8)}
  .newcard{min-height:72px;flex-direction:row;gap:12px;justify-content:flex-start;padding:0 var(--sp-4)}
  .newcard .nc-ic{margin:0;width:36px;height:36px}
  .newcard span:last-child{display:none}
  /* the field values are 16 px (iOS zooms smaller ones): labels step up to 15 px medium; helpers stay a step below */
  label.f{font-size:15px;font-weight:500}
}
/* phones: every drawer is a full-screen sheet: a 56 px header (title, subtitle, close), the body that scrolls, the
   pinned foot with a shade over what scrolls under it */
@media (max-width:700px){
  .overlay{align-items:stretch;padding:0;background:var(--scrim-sheet);-webkit-backdrop-filter:none;backdrop-filter:none}
  .drawer{position:relative;width:100vw;height:100vh;height:100dvh;min-height:0;max-height:none;padding-top:env(safe-area-inset-top);
    border:0;border-radius:0;box-shadow:none;animation:sheet-up var(--dur-3) var(--ease-out)}
  .drawer .dh{min-height:56px;padding:6px 6px 6px 16px;background:var(--surface-1)}
  .drawer .dh .dtt{font-size:17px}
  .drawer .dh .dsub{white-space:normal}
  
  .drawer .db{flex:1 1 auto;min-height:0;padding:var(--sp-4) var(--sp-4) 0;overscroll-behavior:contain}
  .drawer .db > form > .row:last-child,.drawer .db > .row.dfoot{margin-left:calc(-1 * var(--sp-4));margin-right:calc(-1 * var(--sp-4));padding:var(--sp-3) var(--sp-4) calc(var(--sp-3) + env(safe-area-inset-bottom))}
  .drawer .db > form > .row:last-child > :is(.go,.danger,button),.drawer .db > .row.dfoot > :is(.go,.danger,button){flex:1}
  /* Cancel and the primary: equal halves, the reason it waits over them */
  .drawer .db > form > .row:last-child:has(> button:nth-of-type(2)){display:grid;grid-template-columns:1fr 1fr;direction:rtl}
  .drawer .db > form > .row:last-child:has(> button:nth-of-type(2)) > *{direction:ltr}
  .drawer .db > form > .row:last-child:has(> button:nth-of-type(2)) > :is(.muted,.fnote,.why){grid-column:1 / -1;order:-1}
  .drawer .db > form > .row:last-child > :is(.go,.danger,button){height:44px;min-height:44px}
  .drawer .overrides{grid-template-columns:minmax(0,1fr)}
}

/* ---- shared components on phones (after the components) ---- */
@media (max-width:700px){
  .ihead.page{flex-wrap:wrap;gap:var(--sp-2) var(--sp-2);margin-bottom:var(--sp-4)}
  .ihead.page > .back{margin-top:0}
  .ihead.page h2{font-size:22px;line-height:28px}
  .ihead.page .ttl{flex:1 1 calc(100% - 52px)}
  .ihead.page .hlinks{flex-basis:100%;margin:0;gap:2px;overflow-x:auto;scrollbar-width:none}
  .ihead.page .hlinks::-webkit-scrollbar{display:none}
  .ihead.page .hlinks > button{flex:none;min-height:36px}
  .ihead.page .hlinks > button.act{padding:0 9px}
  .ihead.page .hlinks > button.act .ic{display:none}
  .ihead.page .hlinks > button.ib.refresh{margin-left:auto}
  .ihead.page:has(> .back) .hlinks{margin-left:-8px;flex-basis:calc(100% + 8px)}
  .home-view .ihead.page .hlinks,.cluster .ihead.page .hlinks{flex-basis:auto;margin-left:auto}
  .home-view .ihead.page .hlinks .go{height:36px;min-height:36px;padding:0 12px 0 10px;font-size:13px}
  .home-view .ihead.page .ttl,.cluster .ihead.page .ttl{flex:1 1 0}
  /* the foot is a flex column on a phone: the primary is exactly as wide as the fields above it */
  .card.fold > details > summary{padding:var(--sp-3) var(--sp-4);min-height:56px}
  .card.fold > details > summary .ft span{white-space:normal}
  .card.fold .fold-body{padding:var(--sp-4)}
  .fgrid,.fgrid.three,.fgrid.four{grid-template-columns:minmax(0,1fr)}
  .fgrid > .span2x{grid-column:auto}
  .fgrid > p.fdesc{margin:-8px 0 var(--sp-4)}
  .fgrid label.check{margin-top:0}
  .kv3{grid-template-columns:minmax(0,1fr);gap:var(--sp-4)}
  /* key-value rows: the values left-aligned in a fixed key column, so the eye does not travel */
  :root{--kv-key:112px}
  dl.kv dt{padding-right:10px}
  dl.kv dd{justify-content:flex-start;text-align:left}
  .danger-zone .dz{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start}
  .danger-zone .dz-ic{width:28px;height:28px}
  .danger-zone .dz > button{grid-column:1 / -1;width:100%;margin:0}
  .card > .ch:has(> .acts > button:not(.ib,.quiet)){flex-wrap:wrap}
  .card > .ch .acts:has(> button:not(.ib,.quiet)){margin-left:0;flex-basis:100%}
  .card > .ch .acts > button:not(.ib,.quiet){flex:1}
  .bot-admin-view .card > p.lead.persona{margin-bottom:var(--sp-4)}
  button.ib,button.ib.sm{width:40px;height:40px;min-height:40px}
  dl.nowstrip{gap:var(--sp-1) var(--sp-5)}
}
@media (max-width:700px){
  .fld.unitf > .unit{top:28px;height:calc(var(--h-input) - 2px)}
}

/* ---- scroll shadows on inner scrollers: a soft edge shows there is more above or below ---- */
/* the covers are the scroller's own surface (--scroll-bg), so at rest nothing shows; the shade is theme-tuned */
:is(.gk-panel .pb,.drawer .db,.rpane .pb){--scroll-bg:var(--surface-1);
  background:linear-gradient(var(--scroll-bg) 30%,transparent) top / 100% 32px no-repeat local,linear-gradient(transparent,var(--scroll-bg) 70%) bottom / 100% 32px no-repeat local,
    radial-gradient(farthest-side at 50% 0,var(--scroll-shade),transparent) top / 100% 8px no-repeat scroll,radial-gradient(farthest-side at 50% 100%,var(--scroll-shade),transparent) bottom / 100% 8px no-repeat scroll;
  background-color:var(--scroll-bg)}

/* phones: the instance's bar and tabs, then the chat frameless to the screen's edges (the bots as its first row of
   chips) with its composer docked at the bottom; the stream a sheet that the bar's Stream opens */
@media (max-width:700px){
  .app-page:has(> .iview){padding-bottom:0}
  .iview > .ihead.ihx{margin-bottom:0}
  .ibody,.ibody.pane,.iview.streaming .ibody{gap:0;height:calc(100dvh - 93px);min-height:420px;margin:0}
  .iview.streaming .ibody > .ccol{order:2;flex:1;height:auto;min-height:0}
  .side{min-height:52px;padding:8px 0;gap:6px;-webkit-mask-image:none;mask-image:none}
  .brow{min-height:32px;height:32px;padding:0 12px 0 4px;gap:8px;border-radius:var(--r-pill);background:var(--surface-1);border:1px solid var(--border)}
  .brow .gk-av{--sz:24px}
  .brow .gk-av{--av-ring:var(--surface-1)}
  .side .add{width:32px;min-width:32px;height:32px;min-height:32px;margin:0;padding:0;justify-content:center;border:1px solid var(--border);border-radius:50%;background:var(--surface-1);color:var(--text-2)}
  .side .add .pl{width:auto;height:auto;background:none}
  .side .add .lt{display:none}
  .ccol,.iview .ccol{margin:0 calc(-1 * var(--sp-4));border:0;border-top:1px solid var(--border);border-radius:0;box-shadow:none;background:var(--chat-canvas)}
  .chat .ch{display:none}
  /* the bots as a slim bar over the chat: who you are messaging stays in view, a tap switches */
  .chat > .botbar{flex:none;padding:0 var(--sp-4);border-bottom:1px solid var(--border);background:var(--chat-canvas)}
  .chat > .botbar > .side{min-height:48px;padding:8px 0;align-items:center;overflow-x:auto;scrollbar-width:none}
  .chat > .botbar .side-x{display:inline-flex;align-items:center;margin-left:auto;padding-left:8px;flex:none}
  .chat > .botbar .side-x button.tag.waiting{height:32px;min-height:32px;padding:0 12px;border-radius:var(--r-pill)}
  .chat .transcript{padding:var(--sp-3) var(--sp-4) var(--sp-4)}
  /* the intro as one compact row: a 32 px avatar beside the name and persona; its chips one row that scrolls */
  .compose{padding:var(--sp-2) var(--sp-3) calc(var(--sp-3) + env(safe-area-inset-bottom));background:var(--chat-canvas)}
  .compose > .composer{padding-left:96px}
  .compose > .delivery-options[open] > summary,.compose > .delivery-options:not([open]){max-width:80px}
  .rpane > .grab{display:block;position:absolute;top:8px;left:50%;width:36px;height:4px;margin-left:-18px;border-radius:var(--r-pill);background:var(--border-input)}
  .iview.streaming .rscrim{display:block;position:fixed;inset:0;z-index:calc(var(--z-overlay) - 1);background:var(--scrim-sheet);animation:fade-in var(--dur-2) var(--ease)}
  .iview.streaming .ibody > .rpane{position:fixed;left:0;right:0;bottom:0;z-index:var(--z-overlay);order:3;width:100vw;height:auto;min-height:min(46dvh,420px);max-height:calc(100dvh - 56px);
    padding-top:20px;border:0;border-top:1px solid var(--border-strong);border-radius:16px 16px 0 0;background:var(--surface-1);box-shadow:0 -16px 48px rgba(0,0,0,.35);animation:sheet-up var(--dur-3) var(--ease-out)}
  .iview.streaming .rpane .ph{min-height:46px;gap:12px;padding:0 8px 10px 12px;border-bottom:1px solid var(--border)}
  .iview.streaming .rpane .ph .seg{flex:1;max-width:none;height:36px}
  .iview.streaming .rpane .ph .x{width:36px;height:36px;min-height:36px;align-self:center}
  .iview.streaming .rpane .pb{flex:1 1 auto;padding:var(--sp-3) var(--sp-4) calc(var(--sp-5) + env(safe-area-inset-bottom));overscroll-behavior:contain}
  .iview.streaming .rpane .cbar select{font-size:14px}
  /* the bots as chips: the first row of the conversation, so they scroll away with it */
  .transcript > .side{margin:-4px 0 -4px;padding:0 0 4px;min-height:44px;background:none}
  .transcript > .appr-dock{margin-left:0}
}
/* checkpoints: the table ends at the card's edge */
.inventory > .ckpt:last-child{border-bottom:0;border-radius:0 0 var(--r-lg) var(--r-lg)}
/* a folded queue's tools: its filters at the left, refresh and about at the right */
.approvals .ap-tools{justify-content:space-between}
.approvals .ap-tools > .ap-ta{display:inline-flex;align-items:center;gap:2px;margin-left:auto}
/* drawers: the name's rules under it; resource overrides as the one accordion row */
.drawer p.fhelp.name-rules{margin:6px 0 var(--sp-4)}
.drawer label.f:has(+ p.name-rules){margin-bottom:0}
.drawer .disclose{display:grid;grid-template-columns:minmax(0,1fr) 24px;align-items:center;gap:0 12px;width:100%;min-height:56px;margin:var(--sp-2) 0 var(--sp-3);padding:8px 12px 8px 14px;
  border:1px solid var(--border);border-radius:var(--r-lg);background:none;box-shadow:none;color:var(--text);text-align:left;white-space:normal}
.drawer .disclose:hover:not(:disabled){background:var(--hover);color:var(--text)}
.drawer .disclose .dz-t{display:flex;flex-direction:column;gap:2px;min-width:0}
.drawer .disclose .lt{font-weight:500;font-size:13.5px;line-height:20px}
.drawer .disclose .dz-h{margin:0;font-size:13px;line-height:19px;color:var(--text-2)}
.drawer .disclose > .ic{box-sizing:border-box;width:32px;height:32px;padding:8px;margin-top:0;border-radius:50%;color:var(--text-2);transition:transform var(--dur-2) var(--ease)}
.drawer .disclose:hover:not(:disabled) > .ic{background:var(--hover);color:var(--text)}
.drawer .disclose[aria-expanded="true"] > .ic{transform:rotate(180deg)}
.drawer select{padding-right:36px}
dl.levels dd{text-wrap:wrap}
/* node administration on a phone: one card padding, full-width tool buttons */
.node-view > section.nres > .statstrip-c{margin:0}
/* a card of accordions starts at the card's title line, as every other card does */
.card .kvgroups > details.kvgrp:first-child > summary{margin-top:-10px}
.approvals.fold .ap-tools{margin:-4px 0 var(--sp-2)}
/* a turn's start reads as words (who started it), not as tool arguments */
.crow.k-start .cm .d{font-family:var(--sans);font-size:13px}
/* bot administration: the details' header on one line; on wide screens the waiting requests lead the column and
   the actions rail stays in view */
.bot-admin-view .o-ov > .ch h2.sec{flex:none}
/* wide: egress, details and the conversation | the bot's actions, its checkpoints (where a new one lands) and
   delete; each card as deep as its content. Narrower, one column: the conversation after the checkpoints */
.bstack > form > .card.inventory{margin:0}
@media (max-width:700px){
  .bot-admin-view .o-ov > .ch{flex-wrap:nowrap}
  .bot-admin-view .o-ov > .ch > .acts{flex-basis:auto;margin-left:auto}
  .bot-admin-view .o-ov > .ch > .acts > button{flex:none}
}
/* a bot's status: the pill's warn tone, a dot and its word */
.istate.warn{background:var(--warn-soft);color:var(--warn)}
.dot.warn{background:var(--warn-dot)}
.istate .dot.warn{background:var(--warn-dot)}
.bstat{display:inline-flex;align-items:center;gap:6px;color:var(--text-2)}
.bstat .dot{margin:0}
.bstat.warn{color:var(--warn)}.bstat.bad{color:var(--bad)}.bstat.ok{color:var(--text-2)}
.chat .ch .meta{display:inline-flex;align-items:center;gap:0;flex-wrap:wrap}
.chat .ch .meta > .sep{margin:0 6px;color:var(--text-3)}
.side .brow .s.warn{color:var(--warn)}
.side .brow .s.bad{color:var(--bad)}
.side .brow .s.amber{color:var(--accent-text)}

/* the classic chat's waiting egress requests: the Grok view's card, inline in the conversation */
.chat-appr{display:flex;flex-direction:column;gap:12px}
.chat-appr > .approval:first-child{padding-top:14px}.chat-appr > .approval:last-child{padding-bottom:14px}
/* the waiting requests are the conversation's last items, on the bot's content column */
.transcript > .appr-dock{flex:none;width:auto;margin:0 0 0 34px;padding:0}
.transcript > .appr-dock:empty{display:none}
/* docked on a phone, the same card, a little tighter: the reason on one line */
@media (max-width:700px){
  :is(.appr-dock,.gk-dock) :is(.approval,.gk-egress).pending > .ap-who{margin-top:8px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
  :is(.appr-dock,.gk-dock) :is(.approval,.gk-egress).pending :is(.approval-actions,.acts){margin-top:10px}
  .chat-appr > .approval,.gk-card.gk-egress{padding:12px 14px}
}

/* bot administration's Conversation: a folding card (the same accordion row as a fold card's header) */

/* node: CPU pools as a table that lines up */
table.pooltab{width:100%;border-collapse:collapse;font-size:13.5px}
table.pooltab th,table.pooltab td{height:34px;padding:0 8px 0 0;text-align:left;font-weight:400;color:var(--text);border-bottom:1px solid var(--border);white-space:nowrap}
table.pooltab{table-layout:fixed}
table.pooltab th,table.pooltab td{height:36px;border-bottom-color:var(--border-soft)}
table.pooltab :is(th,td):first-child{width:34%}
table.pooltab :is(th,td):is(:nth-child(2),:nth-child(3)){width:22%}
table.pooltab :is(th,td):last-child{width:22%;padding-right:0;text-align:left}
table.pooltab thead th{font:500 13px/18px var(--sans);color:var(--text-2);border-bottom-color:var(--border)}
table.pooltab tbody tr:last-child > *{border-bottom:0}
table.pooltab tbody th{font-weight:500}
table.pooltab td.num{font-variant-numeric:tabular-nums}
details.kvmore > summary{display:inline-flex;align-items:center;gap:4px;height:28px;margin:2px 0 2px -8px;padding:0 8px;border-radius:var(--r-sm);list-style:none;cursor:pointer;font:500 13px/1 var(--sans);color:var(--text-2)}
details.kvmore > summary:hover{background:var(--hover);color:var(--text)}
details.kvmore > summary .ic{transition:transform var(--dur-2) var(--ease)}
details.kvmore > summary::-webkit-details-marker{display:none}
details.kvmore[open] > summary .ic{transform:rotate(180deg)}

/* the classic chat's Stream: a toggle with its switch in the chat's header (the page header's while no bot is
   open), not a pressed button */
button.stream,button.stream.on,button.stream.on:hover:not(:disabled){gap:8px;height:32px;min-height:32px;padding:0 10px;background:transparent;box-shadow:none;border-color:transparent;color:var(--text-2);font-size:13px}
button.stream:hover:not(:disabled){background:var(--hover);color:var(--text)}
button.stream.on{color:var(--text)}
.chat > .ch > button.stream{flex:none;margin-left:auto}
/* on a phone the toggle gives way to a round icon at the end of the bots' chip row */
button.stream-ic{display:none}
@media (max-width:700px){
  button.stream{display:none}
  button.stream-ic{display:inline-flex;width:32px;height:32px;min-height:32px;border:1px solid var(--border);border-radius:50%;background:var(--surface-1);color:var(--text-2)}
  button.stream-ic.on{background:var(--pressed);border-color:var(--border-strong);color:var(--text)}
}
.chat > .ch > button.stream + .bot-acts{margin-left:0}
button.stream .sw-i{position:relative;flex:none;width:28px;height:16px;border-radius:var(--r-pill);background:var(--switch-off);transition:background var(--dur-1) var(--ease)}
button.stream .sw-i::after{content:"";position:absolute;top:2px;left:2px;width:12px;height:12px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.25);transition:left var(--dur-1) var(--ease)}
button.stream .sw-i.on{background:var(--accent)}
button.stream .sw-i.on::after{left:14px}
/* what each control choice means, one line under its button */
header.top .node-switch.crumb > .chip{margin-left:0}
/* a drawer's foot: a hairline over what scrolls under it, never a fade that half-shows the next heading */
/* the new-instance drawer's Resource overrides: a section under a divider, as every other one */
.drawer fieldset.grp > .disclose{position:relative;margin-top:var(--sp-2)}
/* page subtitles never end on one word */
:is(.ihead.page .sub,.pghead .sub,.desc,.sub > span){text-wrap:pretty}
/* a phone's field labels: a step under the 16 px inputs, medium weight, so a label still leads its field */
@media (max-width:700px){label.f{font-size:15px;font-weight:500}label.f > .opt{font-weight:400}}
/* chat messages wrap as written: no balancing that leaves a ragged gap at the right of a reply */
:is(.msg .body,.gk-bubble,.gk-msg) :is(p,li){text-wrap:wrap}
/* ---- one fact grid for wide cards (KvGrid): label over value cells that flow evenly, headings spanning the row ---- */

/* a card's closing disclosure: a full-width quiet row over a hairline (Technical details, Show more) */
/* node administration: Host and CPU pools side by side, then Tools, then the actions */
.node-view .poolcard > .ch{margin-bottom:4px}
table.pooltab :is(th,td){height:44px}
table.pooltab tbody tr{transition:background var(--dur-1) var(--ease)}
table.pooltab tbody tr:hover{background:var(--hover)}
table.pooltab :is(th,td):first-child{width:30%}
table.pooltab :is(th,td):is(:nth-child(2),:nth-child(3)){width:20%}
table.pooltab :is(th,td):last-child{width:30%}
table.pooltab td .tag{height:24px}
/* a tools card: rows of an icon tile, a title over one sentence, a status, and a natural-width secondary button */

.toolscard > .tool-out{padding:12px 0;border-bottom:1px solid var(--border-soft)}

/* danger zones: one red element, the button; a plain card, the title in the text colour, always last */
.card.danger-zone > .ch h2.sec{color:var(--text)}
.card.danger-zone > p.lead{margin:0;font-size:14px;line-height:20px}
.card.danger-zone .cf{justify-content:flex-end}
.card.danger-zone .cf > button.danger:not(.solid){margin-left:auto}
@media (max-width:700px){.card.danger-zone .cf > button{width:100%}}
/* instance administration and bot administration on narrow screens: what to act on first, delete last */
/* the configuration's policy row on a phone: the form opens inside the group */
details.kvgrp.pol .kvgrp-body{padding:4px 0 16px}

/* ---- the chats (classic and Grok): a compact intro once there are messages; delivery options as one icon ---- */
/* once there are messages the chat header already says who it is: the intro is one muted left-aligned line (the
   persona, the runtime, the model) and the turns follow it directly, at every width */
.compose > .delivery-options[open] > summary,.compose > .delivery-options:not([open]){left:calc(var(--sp-4) + 9px);bottom:calc(var(--sp-4) + 10px);max-width:200px}
.compose > .delivery-options > summary{min-width:32px;height:32px;padding:0 8px;justify-content:center;border-radius:var(--r-pill);background:transparent;color:var(--text-2)}
.compose > .delivery-options > summary:hover,.compose > .delivery-options[open] > summary{background:var(--hover);color:var(--text)}
.compose > .delivery-options[open] > summary{background:var(--surface-3);box-shadow:inset 0 0 0 1px var(--border-strong)}
.delivery-options .dch{gap:6px;color:inherit}
.delivery-options .dch .ic{color:inherit}
.delivery-options .dch .chn{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:var(--r-pill);background:var(--neutral-soft);font:500 13px/1 var(--sans);color:var(--text)}
.compose > .composer{padding-left:48px}
.compose:has(.delivery-options .chn) > .composer{padding-left:132px}
@media (max-width:700px){
  .compose > .delivery-options[open] > summary,.compose > .delivery-options:not([open]){left:calc(var(--sp-3) + 8px);bottom:calc(var(--sp-3) + env(safe-area-inset-bottom) + 10px)}
  .compose > .delivery-options > summary{min-width:36px;height:36px}
  .compose > .composer{padding-left:52px}
}

/* ---- the access drawer: a right sheet like New instance; people, then Invite (the name, its help, then the level
   and Share on one row), the levels folded, the audit note inside them ---- */

.access-view h3.sub{display:flex;align-items:baseline;gap:8px;margin:0 0 4px}
.access-view h3.sub .badge{margin:0}
ul.people .person > .tag.role{flex:none;height:24px}
.access-view form.share{margin:28px 0 0}
.access-view form.share h3.sub{margin-bottom:10px}
.access-view form.share label.su{margin:0}
.access-view p.share-note{margin:6px 0 12px;font-size:13px;line-height:19px;color:var(--text-2)}
.access-view .share-row{display:flex;align-items:center;gap:8px 12px}
.access-view .share-row label.sl{margin:0;flex:none}
.access-view .share-row select.ghost.chipsel{width:140px;max-width:none;height:36px;min-height:36px;line-height:34px}
.access-view .share-row > .why{flex:1;min-width:0;margin:0;font-size:13px;line-height:19px;color:var(--text-2);text-align:right}
.access-view .share-row > .why:empty{visibility:hidden}
.access-view .share-row > button{flex:none;height:36px;min-height:36px;padding:0 18px}
.access-view .levels-block{margin-top:20px;border-top:1px solid var(--border-soft);padding-top:4px}
.access-view .levels-block > summary .ic:first-child{align-self:center}
.access-view .levels-block > dl.levels{padding:4px 0 4px 26px}
dl.levels .lvl .ic{display:none}
dl.levels dd{margin:0;font-size:14px;line-height:20px}
.access-view p.lvl-note{margin:12px 0 4px 26px;font-size:13px;line-height:19px;color:var(--text-2)}
@media (max-width:700px){
  .access-view .share-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .access-view .share-row > .why{grid-column:1 / -1;order:-1;text-align:left}
  .access-view .share-row > .why:empty{display:none}
  .access-view .share-row select.ghost.chipsel{width:100%;height:44px;min-height:44px;line-height:42px}
  .access-view .share-row > button{height:44px;min-height:44px}
  .access-view form.share label.su input{height:44px}
}

/* ---- the new-instance drawer: one field rhythm (6 px label to field to help, 20 px between fields), sections under
   sentence-case headings with a hairline between them, what the profile includes as a 4-cell fact grid ---- */
.drawer fieldset.grp + fieldset.grp{margin-top:28px;padding-top:24px;border-top:1px solid var(--border-soft)}
.drawer fieldset.grp label.f,.drawer .fld > label.f,.drawer .fld > label.f:last-child{margin-bottom:20px}
.drawer fieldset.grp label.f:has(+ :is(p.fhelp,p.hint)),.drawer .fld > label.f:has(+ p.fhelp){margin-bottom:6px}
.drawer fieldset.grp :is(p.fhelp,p.hint),.drawer p.fhelp.name-rules,.drawer .fld > label.f + .fhelp{margin:0 0 20px;font-size:13px;line-height:19px}
.drawer fieldset.grp > :last-child,.drawer fieldset.grp > .fgrid:last-child > * > :last-child{margin-bottom:0}
.specgrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 8px;margin:0;padding:12px 14px;border-radius:10px;background:var(--surface-2)}
.specgrid .sg-k{grid-column:1 / -1;font-size:13px;line-height:18px;color:var(--text-2)}
.specgrid .sg-c{display:flex;flex-direction:column;gap:2px;min-width:0}
.specgrid .sg-c b{font-size:15px;line-height:20px;font-weight:600;color:var(--text);font-variant-numeric:tabular-nums;white-space:nowrap}
.specgrid .sg-c span{font-size:13px;line-height:18px;color:var(--text-2)}
@media (max-width:520px){.specgrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* resource overrides: a plain disclosure row in the section's rhythm, never a card */
.drawer fieldset.grp > .disclose,.drawer .disclose{min-height:52px;margin:4px 0 0;padding:6px 0;border:0;border-top:1px solid var(--border-soft);border-radius:0;background:none}
.drawer .disclose:hover:not(:disabled){background:none}
.drawer .disclose .lt{font-size:14px;font-weight:600}
.drawer .overrides{margin-top:8px}
/* the drawer's foot: the reason it waits at the left, Cancel and the primary at the right */
.drawer .db > form > .row:last-child > .fnote{font-size:13px;color:var(--text-2)}
.drawer .db > form{padding-bottom:0}
.drawer .db > form > :nth-last-child(2){margin-bottom:32px}

/* ---- the terminal (L6): idle, one start card (what is recorded, then the typed confirm and Start); the dark frame
   only once a session exists ---- */
.terminal-page > .tcard.card{padding:24px}
.terminal-page > .tcard > .ch{flex-wrap:nowrap;margin:0}
.terminal-page > .tcard > .ch > .tag{font-weight:500}
.terminal-page > .tcard > p.lead{margin:-6px 0 4px;font-size:14px;line-height:20px;color:var(--text-2)}
.terminal-page .treason{margin:0;padding:10px 14px;border:1px solid var(--warn-border);border-radius:var(--r-md);background:var(--warn-soft);color:var(--warn);font-size:14px;line-height:20px}
@media (max-width:700px){.terminal-page > .tcard.card{padding:16px}}

/* ---- the Computer tab: the frame carries its state and full screen over its top corners; the two ways to use it
   as choice tiles with their meaning inside; the clipboard row only once you have control ---- */
.scrframe{position:relative;border-radius:10px;background:#000}
.scrframe > .scrstate{position:absolute;bottom:8px;left:8px;right:8px;z-index:2;display:flex;align-items:center;justify-content:space-between;min-height:0;pointer-events:none}
.scrframe > .scrstate > *{pointer-events:auto}
.scrframe > .scrstate .tag.scrctl{height:26px;padding:0 10px;background:rgba(0,0,0,.62);color:#fff;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
.scrframe > .scrstate .tag.scrctl.ok{color:#8ee6b0}
.scrframe > .scrstate .tag.scrctl.ok::before{background:#5fc98d}
.scrframe > .scrstate button.ib.full{width:28px;height:28px;min-height:28px;margin-left:auto;border-radius:var(--r-md);background:rgba(0,0,0,.62);color:#fff}
.scrframe > .scrstate button.ib.full:hover:not(:disabled){background:rgba(0,0,0,.8);color:#fff}
.scrclip.later{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* images: the empty list is the page's lead (what happens without images, the way to register one, then how it works) */
.howto .st b{font-weight:600}
.howto .st span{font-size:14px;line-height:20px}
.register .cf{justify-content:flex-end}

/* ---- checkpoints: the files of a checkpoint as rows (name, size at the right, the digest under in one line) ---- */
.ckpt > .manifest{padding:0 0 16px}
.ckimg{display:flex;flex-wrap:wrap;gap:4px 32px;margin:0 0 12px;font-size:13px;line-height:20px;color:var(--text-2)}
.ckimg > div{display:flex;gap:8px;min-width:0}
.ckimg dt{color:var(--text-2)}
.ckimg dd{margin:0;color:var(--text)}
.ckimg code{font:400 13px/20px var(--mono);background:none;padding:0;color:var(--text)}
.ckfiles{border:1px solid var(--border-soft);border-radius:10px;background:var(--surface-1);overflow:hidden}
.ckfiles p{display:grid;grid-template-columns:minmax(0,1fr) auto 88px 28px;column-gap:16px;align-items:center;margin:0;min-height:40px;padding:4px 6px 4px 12px;font:400 14px/20px var(--sans);color:var(--text)}
.ckfiles p + p{border-top:1px solid var(--border-soft)}
.ckfiles p:hover{background:var(--hover)}
.ckfiles b{font-weight:500;color:var(--text);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ckfiles .fsz{font-size:13px;color:var(--text-2);font-variant-numeric:tabular-nums;white-space:nowrap;text-align:right}
.ckfiles code{font:400 13px/18px var(--mono);color:var(--text-2);background:none;padding:0;white-space:nowrap}
.ckfiles button.ib.cpy{width:28px;height:28px;min-height:28px;color:var(--text-2)}
@media (max-width:520px){.ckfiles p{grid-template-columns:minmax(0,1fr) auto 28px;row-gap:0}.ckfiles code{grid-column:1;grid-row:2}.ckfiles .fsz{grid-row:1 / span 2;grid-column:2}.ckfiles button.ib.cpy{grid-row:1 / span 2;grid-column:3}}
@container (min-width:641px){.ckcols,.ckr{grid-template-columns:minmax(0,1.4fr) 140px minmax(0,1fr) 120px 48px}}
.ck-l .chip{height:22px;font-size:13px}
.ckform select{background-color:var(--sunken)}

/* ---- the classic chat: a bot's turn on one gutter (its avatar at the turn's first line, the work, the files and
   the reply on one column); the selected bot marked by an accent edge ---- */
.turn{display:grid;grid-template-columns:24px minmax(0,1fr);column-gap:10px;row-gap:8px}
.turn > *{grid-column:1 / -1;margin-top:0}
.turn > :is(.work,.files,.foot){grid-column:2;margin-left:0}
.turn > .msg.bot{display:contents}
.turn > .msg.bot > .gk-av{grid-column:1;grid-row:1;align-self:start;margin-top:2px}
.turn:has(> .msg.user) > .msg.bot > .gk-av{grid-row:2}
.turn > .msg.bot > .mc{grid-column:2}
.turn > .msg.user + *{margin-top:4px}
.work > .wh{margin-left:-8px}
/* L7 the selected bot row (both rails): the amber selection, a soft fill and a 2 px bar at its left */
.brow.on,.brow.on:hover{background:var(--pressed);box-shadow:none}
.gk .gk-row.on,.gk .gk-row.on:hover:not(:disabled){background:var(--pressed);box-shadow:none}
.chat > .ch > button.stream + .bot-acts{margin-left:2px;padding-left:6px;border-left:1px solid var(--border)}
/* ---- the overview: identical node cards, the same height in a row, the footer at the foot ---- */
.cluster-nodes{align-items:stretch}
.cluster-node .counts .opn{margin-left:auto;display:inline-flex;align-items:center;gap:4px;height:28px;padding:0 6px 0 10px;border-radius:var(--r-md);font-size:13.5px;font-weight:500;color:var(--text);text-decoration:none}
.cluster-node:hover .counts .opn{background:var(--hover)}
/* ---- home: the cards' foot (slots; Suspend and Open, one height and family) and the add-a-bot button ---- */
.ipanel .acts button{min-height:32px;height:32px;padding:0 12px 0 10px}
.ipanel .acts button.open{padding:0 8px 0 12px}
.ipanel .chips.none{align-items:center}
.ipanel .chips.none button.addbot{height:28px;min-height:28px;padding:0 10px 0 8px;gap:4px;font-size:13px}
.ipanel .act{min-height:20px}
@media (max-width:700px){
  .ipanel .acts button{min-height:36px;height:36px}
}
/* ---- history: the toolbar over a hairline, sentence-case heads lighter than the rows, minute-grouped times ---- */
.hcols,.hrow.optab{grid-template-columns:minmax(0,36fr) minmax(0,14fr) minmax(0,20fr) minmax(0,14fr) minmax(0,16fr)}
.hcols{padding-right:calc(var(--card-px) + 24px)}
.hrow.optab{padding-right:calc(var(--card-px) + 24px)}
.hrow.optab .go-op{margin-right:-26px}
.hrow.optab .hop .kic{width:28px;height:28px}
.hrow.optab .hop .kic .ic{width:15px;height:15px;stroke-width:1.75}
.hrow.optab .hop .kic.k-msg{background:var(--info-soft);color:var(--info)}
.hrow.optab .kind{font-size:14px;font-weight:500}
.hrow.optab :is(.hin,.hbt) :is(button.link,.nm),.hrow.optab .actor{font-size:14px}
.hrow.optab :is(.hin,.hbt) .none{line-height:20px}
@media (min-width:701px){.hrow.optab .hmeta{display:contents}}
@media (max-width:700px){
  .hrow.optab{grid-template-columns:minmax(0,1fr) auto;padding-right:var(--card-px)}
}

/* the classic app shell fills the window under the instance's header, whatever that header's height */
@media (min-width:901px){
  .app-page:has(> .iview){height:calc(100vh - var(--header-h));height:calc(100dvh - var(--header-h));min-height:560px;padding-bottom:0}
  .app-page > .iview{flex:1 1 auto;min-height:0}
  .iview > .ibody{flex:1 1 auto;height:auto;min-height:420px;margin-bottom:0}
}
.ipanel .chips.none{gap:10px}
.ipanel .chips.none .sep{display:none}

.drawer fieldset.grp > :is(p.fhelp,p.hint):last-child,.drawer fieldset.grp > .fgrid:last-child .fld > :last-child{margin-bottom:0}

.ipanel .act .w{margin-left:auto;padding-left:8px}
.ipanel .act .w::before{content:none}

/* ---- r10r refinements ---- */
/* the classic thread: the user's bubble always at the right; a request spans the message column on a phone */
.turn > .msg.user{justify-self:end}
@media (max-width:700px){.transcript > .appr-dock{margin-left:0}}
/* a node card's head: the name and its pills wrap on their own; the open chevron stays at the top right */
.cluster-title{flex-wrap:nowrap;align-items:flex-start}
.cluster-title > .ct-l{display:flex;align-items:center;flex-wrap:wrap;gap:var(--sp-2);min-width:0;min-height:32px}
.cluster-title > a.cardlink{flex:none;margin-left:auto}
.cluster-node .usage.idle{padding-bottom:var(--sp-1)}

/* a fact grid with a set column count, chosen so its groups fill their rows (a phone keeps two columns) */

/* the new-instance drawer: the mode's meaning under both selects; a phone sheet's title clear of the top edge */
.drawer .fgrid.keep2 > p.mode-help{grid-column:1 / -1;margin:-6px 0 16px}
:root{--foot-shade:rgba(0,0,0,.6)}
:root[data-theme="light"]{--foot-shade:rgba(31,27,23,.2)}
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]){--foot-shade:rgba(31,27,23,.2)}}

/* the images empty state: its copy and the steps under it share one measure */

/* a request off its instance's pages: who asked and where, on a line of its own */
/* the bot chips on an instance card: one weight (the lead is first, and says so in its title) */
.ipanel .chip.bot.lead{font-weight:500}

/* ==== r11: one page grammar and one component each (bands, settings rows, disclosures, action footers) ==== */
/* ---- C1 page head: the title (pills inline after it), the subtitle under it, at every width ---- */
.ihead.page h2{font-size:24px;line-height:32px;letter-spacing:-0.015em}
.ihead.page .sub{font-size:14px;line-height:20px}
.ihead.page{margin:0 0 24px}
@media (max-width:700px){
  .ihead.page h2{font-size:22px;line-height:28px}
  .ihead.page .ttl:has(> .tl){display:block}
  .ihead.page .ttl > .tl{display:flex;flex-direction:column;flex-wrap:nowrap;align-items:flex-start;gap:8px;margin:0 0 8px}
  .ihead.page .ttl > .tl > h2{margin:0}
  .ihead.page .ttl > .tl > .pills{display:inline-flex;margin:0}
  .ihead.page .ttl > .sub{display:block}
  .ihead.page{margin:0 0 16px}
}

/* ---- C1 one page container: every node and instance page uses main's full width (24 px gutters, the same left edge
   as the bars above it), so a page's title never moves between tabs; fields inside a card stop at --form-max ---- */
:is(.node-view,.images-view,.instance-admin,.checkpoint-view,.bot-admin-view,.terminal-page) > :not(.ihead.ihx,form.vh-form,.vh){width:100%;max-width:none;margin-left:0;margin-right:0}
:is(.instance-admin,.checkpoint-view,.bot-admin-view) .card > .fgrid,:is(.instance-admin,.checkpoint-view,.bot-admin-view) .card > form > .fgrid{max-width:var(--form-max)}
.app-page:has(> :is(.node-view,.images-view,.instance-admin,.checkpoint-view,.bot-admin-view,.terminal-page,.history-view,.home-view,.cluster)){padding-bottom:64px}
@media (max-width:700px){.app-page:has(> :is(.node-view,.images-view,.instance-admin,.checkpoint-view,.bot-admin-view,.terminal-page,.history-view,.home-view,.cluster)){padding-bottom:48px}}
/* ---- C2 sections: a header (title, count, one line; a pill or actions at the right) above a full-width card ---- */
.page-body{display:flex;flex-direction:column;gap:40px;min-width:0}
.page-body + .page-body,section.nres + .page-body,section.nres > .page-body{margin-top:40px}
.node-view > section.nres{gap:0}
.node-view > section.nres + .page-body{margin-top:24px}
.sec{display:flex;flex-direction:column;gap:12px;min-width:0;margin:0}
.sec-h{display:flex;align-items:flex-end;justify-content:space-between;gap:8px 16px;min-width:0;min-height:32px}
.sec-tt{min-width:0}
.sec-tt > h2{display:flex;align-items:baseline;gap:8px;margin:0;font-size:17px;line-height:24px;font-weight:600;letter-spacing:-0.01em;color:var(--text)}
.sec-tt > h2 > .count{display:inline-flex;align-items:center;align-self:center;font-variant-numeric:tabular-nums}
.sec-tt > p{margin:2px 0 0;font-size:14px;line-height:20px;color:var(--text-2)}
.sec-a{display:flex;align-items:center;gap:8px;flex:none;height:32px}
.sec-b{display:flex;flex-direction:column;gap:16px;min-width:0}
.sec-b > section,.sec-b > .card{margin:0}
@media (max-width:700px){
  .page-body{gap:32px}
  .page-body + .page-body,section.nres + .page-body,section.nres > .page-body{margin-top:32px}
  .node-view > section.nres + .page-body{margin-top:16px}
  .sec-tt > p{text-wrap:pretty}
}

/* ---- C3 the action footer: the card's last row, a tinted strip under a hairline: why it waits (or what happens) at
   the left, the commit button at the right; with a typed confirm, "Type X to confirm" over the field and the button
   right beside it, the reason under the field. Phones stack it. ---- */
.card footer.cf,.card .cf{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin:20px calc(-1 * var(--card-px)) calc(-1 * var(--card-py));padding:16px var(--card-px);
  background:none;border-top:1px solid var(--border-soft);border-radius:0 0 calc(var(--r-lg) - 1px) calc(var(--r-lg) - 1px)}
.cf > .why,.cf > .cf-note{flex:1 1 200px;min-width:0;margin:0;font-size:13px;line-height:18px;color:var(--text-2);text-align:left}
.cf > .why:not(:empty){display:flex;align-items:flex-start;gap:6px}
.cf > .why > .ic,.drawer .fnote > .ic{flex:none;margin-top:2px;color:currentColor}
.cf > :is(button,.row){margin:0 0 0 auto;flex:none}
.cf > .row{gap:8px;flex-wrap:nowrap}
.cf > button,.cf > .row > button{height:36px;min-height:36px;padding:0 16px}
.cf:has(> label.f.confirm){display:grid;grid-template-columns:minmax(0,280px) auto minmax(0,1fr);grid-template-areas:"l l l" "i b ." "w w w";column-gap:8px;row-gap:8px;align-items:center}
.cf > label.f.confirm{display:contents}
.cf > label.f.confirm > .cf-l{grid-area:l}
.cf > label.f.confirm > input{grid-area:i;width:100%;height:36px;margin:0;font:400 13px/1.4 var(--mono);letter-spacing:-.01em}
.cf:has(> label.f.confirm) > :is(button,.row){grid-area:b;margin:0}
.cf:has(> label.f.confirm) > .why{grid-area:w}
@media (max-width:700px){
  .card footer.cf,.card .cf{flex-direction:column;align-items:stretch;flex-wrap:nowrap;gap:12px;padding:14px var(--card-px) 16px}
  .cf:has(> label.f.confirm){grid-template-columns:minmax(0,1fr);grid-template-areas:"l" "i" "b" "w";row-gap:10px}
  .cf:has(> label.f.confirm){grid-template-areas:"l" "i" "w" "b"}
  .cf > label.f.confirm > input{height:40px;font-size:16px}
  .cf > :is(button,.row){width:100%;margin:0;order:2}
  .cf > .row > button{flex:1}
  .cf > button,.cf > .row > button{height:40px;min-height:40px}
  .cf > .why,.cf > .cf-note{flex:none;order:1}
}

/* ---- C3 the row disclosure: (an icon,) a title over its summary, a chevron centred on the title block ---- */
details.disc{display:block;align-self:stretch;margin:0;border-top:1px solid var(--border-soft)}
details.disc > summary{width:auto}
details.disc:first-child{border-top:0}
details.disc > summary{display:grid;grid-template-columns:minmax(0,1fr) auto 16px;align-items:center;column-gap:12px;min-height:52px;padding:14px 0;list-style:none;cursor:pointer;border-radius:var(--r-sm);
  transition:background-color var(--dur-1) var(--ease)}
details.disc.hasic > summary{grid-template-columns:20px minmax(0,1fr) auto 16px}
details.disc > summary::-webkit-details-marker{display:none}
details.disc > summary:hover{background:var(--hover);box-shadow:-8px 0 0 var(--hover),8px 0 0 var(--hover)}
details.disc > summary:focus-visible{outline-offset:2px}
details.disc > summary > .d-ic{display:inline-flex;color:var(--text-2)}
details.disc > summary > .d-t{display:flex;flex-direction:column;gap:2px;min-width:0}
details.disc > summary > .d-t > b{font:600 15px/22px var(--sans);color:var(--text)}
details.disc > summary > .d-t > .d-s{font-size:13px;line-height:18px;color:var(--text-2);text-wrap:pretty}
details.disc > summary > .d-ch{grid-column:-2;color:var(--text-2);transition:transform var(--dur-2) var(--ease)}
details.disc[open] > summary > .d-ch{transform:rotate(180deg)}
details.disc > .d-b{padding:0 0 16px}
details.disc.hasic > .d-b{padding-left:32px}
/* a card's closing row: under a hairline, the card's full width, a 14 px medium title */
.card > details.disc.foot{margin:16px calc(-1 * var(--card-px)) calc(-1 * var(--card-py));border-top:1px solid var(--border-soft)}
.card > details.disc.foot > summary{min-height:48px;padding:12px var(--card-px);border-radius:0 0 var(--r-lg) var(--r-lg)}
.card > details.disc.foot[open] > summary{border-radius:0}
.card > details.disc.foot > summary:hover{box-shadow:none}
.card > details.disc.foot > summary > .d-t > b{font:500 14px/20px var(--sans)}
.card > details.disc.foot > .d-b{padding:0 var(--card-px) var(--card-py)}
.card > details.disc.foot.hasic > .d-b{padding-left:calc(var(--card-px) + 32px)}
@media (max-width:700px){details.disc > summary > .d-t > .d-s{white-space:nowrap}}

/* ---- V10 node administration: the host one grid of six equal cells; CPU pools a table on fixed columns; the tools
   rows a plain glyph, the title and its line, a reserved status column and a 128 px button; on a phone the host and
   the pools are row disclosures, a tool's status on its title line and its button full width under it ---- */
.node-view .hostcard{padding:20px}

.node-view .poolcard{padding:4px 20px}
table.pooltab{table-layout:fixed}
table.pooltab :is(th,td):first-child{width:auto}
table.pooltab :is(th,td):is(:nth-child(2),:nth-child(3),:last-child){width:120px}
table.pooltab td.num{font:400 var(--fs-mono)/20px var(--mono);letter-spacing:-.02em}
.node-view .toolscard{padding:4px 20px}

.nactions .fgrid.three{gap:0 16px;align-items:start}
/* V11 instance admin's configuration: eyebrow-size subheads (the card has no title of its own) */

.card.ia-ov details.disc .d-b > h3.sub{margin:16px 0 0;font:600 13px/18px var(--sans);color:var(--text-2)}
.card.ia-ov details.disc .d-b > h3.sub:first-child{margin-top:0}
.card.ia-ov > p.lastc-t{margin:0;padding:12px 0;border-bottom:1px solid var(--border-soft);font-size:14px;line-height:20px;color:var(--text)}
.card.ia-ov > p.lastc-t .k{display:block;font-size:13px;line-height:18px;color:var(--text-2)}
.nactions .fhelp{margin-top:6px}
@media (max-width:700px){
  .node-view .hostcard,.node-view .poolcard{padding:4px 16px}
  .node-view .hostcard dl.kv.hostkv dd{justify-content:flex-end;text-align:right}
  .node-view .toolscard{padding:4px 16px}
  table.pooltab thead{display:none}
  table.pooltab,table.pooltab tbody{display:block}
  table.pooltab tbody tr{display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"n n s" "m c s";align-items:center;column-gap:0;padding:12px 0;border-bottom:1px solid var(--border-soft)}
  table.pooltab tbody tr:last-child{border-bottom:0}
  table.pooltab tbody tr > *{display:block;width:auto !important;height:auto;padding:0;border:0}
  table.pooltab tbody tr > th{grid-area:n;font:600 15px/22px var(--sans)}
  table.pooltab tbody tr > td:nth-child(2){grid-area:m;font-size:13px;line-height:18px;color:var(--text-2)}
  table.pooltab tbody tr > td:nth-child(2)::before{content:"CPUs ";font-family:var(--sans);letter-spacing:0}
  table.pooltab tbody tr > td:nth-child(3){grid-area:c;font-size:13px;line-height:18px;color:var(--text-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  table.pooltab tbody tr > td:nth-child(3)::before{content:"\00a0· Core "}
  table.pooltab tbody tr > td:last-child{grid-area:s;padding-left:12px}
  
  
  
  
  .nactions details.disc.nmore{margin:0;border-top:1px solid var(--border-soft)}
  .nactions details.disc.nmore > .d-b{padding:0 0 4px}
}

/* ---- the pieces of the settings pages ---- */
.attn-band:empty{display:none}
.attn-band{margin:0 0 24px}
.adminview > .attn-band{margin:0 0 4px}
form.vh-form{display:none}
.attn-band:not(:has(*)){display:none}
.card > .ov-refresh{position:absolute;top:12px;right:12px;z-index:1}
.card:has(> .ov-refresh) > p.lead.persona{padding-right:40px}
.card.ia-ov > dl.kv.lastc{margin:-4px 0 16px;padding:0 40px 12px 0;border-bottom:1px solid var(--border-soft);--kv-key:112px}
.card.ia-ov > dl.kv.lastc dd{gap:6px}
.card.ia-ov > dl.kv.lastc dt,.card.ia-ov > dl.kv.lastc dd{padding:0}
/* a toggle row: the switch first, centred on its label's line, the help under the label */

/* a danger zone: one row, what it does at the left and the danger button at the right */
.danger-zone .dz-row{display:flex;align-items:center;gap:12px 24px}
.danger-zone .dz-row > p{flex:1;margin:0;font-size:14px;line-height:20px;color:var(--text)}
.danger-zone .dz-row > :is(button,.row){flex:none;margin:0}
:root[data-theme="light"] button.danger{border-color:var(--bad)}
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]) button.danger{border-color:var(--bad)}}
/* one weight for a danger button in both themes; a danger row in a menu keeps the menu's weight */
button.danger{font-weight:600}
:is(.gk-menu .it,.menu .items button).danger{font-weight:400}
@media (max-width:700px){.danger-zone .dz-row{flex-direction:column;align-items:stretch}.danger-zone .dz-row > :is(button,.row),.danger-zone .dz-row > .row > button{width:100%;height:44px}}
/* a button that toggles like a row disclosure (the bot's conversation) */
button.disc-btn{display:grid;grid-template-columns:20px minmax(0,1fr) 16px;align-items:center;column-gap:12px;width:100%;height:auto;min-height:56px;padding:14px 0;border:0;border-radius:var(--r-sm);
  background:transparent;box-shadow:none;text-align:left;white-space:normal;color:var(--text)}
button.disc-btn:hover:not(:disabled){background:var(--hover);box-shadow:-8px 0 0 var(--hover),8px 0 0 var(--hover)}
button.disc-btn > .d-ic{display:inline-flex;color:var(--text-2)}
button.disc-btn > .d-t{display:flex;flex-direction:column;gap:2px;min-width:0}
button.disc-btn > .d-t > b{font:600 15px/22px var(--sans);color:var(--text)}
button.disc-btn > .d-t > .d-s{font-size:13px;line-height:18px;color:var(--text-2);text-wrap:pretty}
button.disc-btn > .d-ch{color:var(--text-2);transition:transform var(--dur-2) var(--ease)}
button.disc-btn.on > .d-ch{transform:rotate(180deg)}
.card.convo-card{padding-top:4px;padding-bottom:4px}
.card.convo-card > .convo{margin:4px 0 16px}
/* how registration works: neutral numerals */
/* ---- V6 images: the registered list (or its designed empty state), then the form card beside an always-open
   "How registration works" card (2fr | 1fr, the same height); on a phone the help is a row disclosure under the form ---- */

:is(.howto,.howcard) .sn{width:24px;height:24px;margin:-2px 0 0;border-radius:50%;display:inline-grid;place-items:center;background:var(--surface-2);color:var(--text);font:600 13px/18px var(--sans);font-variant-numeric:tabular-nums}
:is(.howto,.howcard) .st{display:flex;flex-direction:column;gap:2px}
:is(.howto,.howcard) .st b{font-weight:600;font-size:14px;line-height:20px;color:var(--text)}
:is(.howto,.howcard) .st span{font-size:14px;line-height:20px;color:var(--text-2)}
.images-view .card.imgs.is-empty{display:flex;align-items:center;min-height:0;padding:14px 56px 14px 20px}

.images-view .card.imgs > .ov-refresh{top:12px;right:12px}
.images-view .card.imgs.is-empty > .ov-refresh{top:50%;transform:translateY(-50%)}
.regband{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:16px;align-items:start}
.regband > .card{margin:0}
.regband > .card.register{display:flex;flex-direction:column}
.regband > .card.register > form{flex:1 0 auto;display:flex;flex-direction:column}
.regband > .card.register > form > footer.cf{margin-top:auto}
.regband > .card.register > form > .fgrid{margin-bottom:4px}
.regband > .howcard h3.sub{margin:0 0 16px;font:600 15px/22px var(--sans);color:var(--text)}
.regband > details.howm{display:none}
.images-view .register .fgrid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
.images-view .register .fgrid > .fld > p.fhelp{margin:6px 0 16px}
.images-view .register .fgrid > label.f,.images-view .register .fgrid > .fld > label.f{margin-bottom:16px}
.images-view .register .fgrid > .fld > label.f:has(+ .fhelp){margin-bottom:0}
@media (max-width:900px){
  .regband{grid-template-columns:minmax(0,1fr)}
  .regband > .howcard{display:none}
  .regband > details.howm{display:block;margin:0;border:1px solid var(--border);border-radius:var(--r-lg);padding:0 16px;background:var(--surface-1)}
  .regband > details.howm > .d-b{padding:0 0 16px}
}
@media (max-width:700px){.images-view .register .fgrid{grid-template-columns:minmax(0,1fr)}.images-view .register :is(input,select){height:44px}}

/* the instance's tools: node admin's tool row (a 32 px icon tile, the title and its line) with one trailing control:
   "Run…"/"Open…" while closed on a wide screen, the chevron once open (and always on a phone) */

.toolscard.tools2 .tool.fold > details > summary .ft b{font:600 15px/22px var(--sans)}
@media (max-width:700px){
  
  
  .card.ia-ov > dl.kv.lastc > div{display:flex;flex-direction:column;gap:2px}
  .card.ia-ov > dl.kv.lastc dt{font-size:13px;line-height:18px}
}

/* ---- C10 the chats start at the top: the conversation's start is its first item (who it is with) ---- */
/* the intro: one muted line under the header (which already names the bot): its persona, runtime, model and thread */
/* C9 the conversation's start (L2): directly above the first day line, on the message column: the avatar, the
   name and its role, the persona, then runtime, model and thread as chips */

/* ---- C10 one tab component (underline): the classic stream's views and the Grok panel's tabs: 14 px, 600 when
   current (each tab reserves its bold width, so the strip never shifts), a 2 px amber underline inset to the label ---- */
:is(.ptabs,.gk .gk-tabs){display:flex;align-items:stretch;align-self:stretch;gap:4px;flex:1;min-width:0;height:auto;margin:0;padding:0;border:0;border-radius:0;background:none;overflow-x:auto;scrollbar-width:none}
:is(.ptabs,.gk .gk-tabs)::-webkit-scrollbar{display:none}
:is(.ptabs > .ptab,.gk .gk-tabs > .gk-tab){position:relative;display:inline-flex;align-items:center;justify-content:center;height:auto;min-height:44px;padding:0 12px;border:0;border-radius:0;background:none;
  box-shadow:none;color:var(--text-2);font:400 14px/20px var(--sans);white-space:nowrap;flex:none;transition:color var(--dur-1) var(--ease)}
:is(.ptabs > .ptab,.gk .gk-tabs > .gk-tab)::after{content:"";position:absolute;left:12px;right:12px;bottom:0;height:2px;border-radius:2px 2px 0 0;background:transparent;transition:background-color var(--dur-1) var(--ease)}
:is(.ptabs > .ptab,.gk .gk-tabs > .gk-tab):hover:not(:disabled):not(.on){background:none;color:var(--text);box-shadow:none}
:is(.ptabs > .ptab,.gk .gk-tabs > .gk-tab):hover:not(:disabled):not(.on)::after{background:var(--border-strong)}
:is(.ptabs > .ptab,.gk .gk-tabs > .gk-tab).on,:is(.ptabs > .ptab,.gk .gk-tabs > .gk-tab).on:hover:not(:disabled){background:none;color:var(--text);font-weight:600;box-shadow:none}
:is(.ptabs > .ptab,.gk .gk-tabs > .gk-tab).on::after{background:var(--accent)}
:is(.ptabs > .ptab,.gk .gk-tabs > .gk-tab):focus-visible{outline-offset:-4px;border-radius:var(--r-sm)}
.ptabs > .ptab:not(:has(*))::first-letter{text-transform:uppercase}

/* ---- the three panes' heads (bots, chat, panel): one 56 px band over one rule, in both chats ---- */
.side .h,.chat .ch,.rpane .ph,.gk-side > .gk-side-h:first-child,.gk-chead,.gk-ph{box-sizing:border-box;height:57px;min-height:57px;border-bottom:1px solid var(--border)}
.rpane .ph{align-items:stretch;padding:0 8px 0 12px}
.rpane .ph .x{align-self:center}
.gk-ph{align-items:stretch}
.gk-ph > :not(.gk-tabs){align-self:center}
.gk-chead{grid-template-rows:56px}
/* the bots rail: "Bots" with its count beside it; 32 px avatars; the selected row a neutral pressed fill */
.side .h{justify-content:flex-start;gap:8px;margin-bottom:8px;padding:0 12px 0 16px;font:600 14px/20px var(--sans)}
.side .h > .badge{font-size:13px;font-weight:400;color:var(--text-2)}
@media (min-width:701px){
  .brow{min-height:56px;gap:12px;padding:8px 10px;border-radius:8px}
  .brow .bw{gap:2px}
  .side .add{gap:12px;min-height:52px;padding:8px 10px;border-radius:8px}
  .side .add .pl{width:32px;height:32px;background:transparent;border:1.5px dashed var(--border-strong)}
}
@media (max-width:700px){.chat > .botbar .brow .gk-av{--sz:28px}}

/* the classic chat head: the bot (32 px avatar, name over its status), its tools grouped at the right: Stream | icons */
.chat .ch{gap:12px;padding:0 16px}
.chat .ch .gk-av{--sz:32px}
.chat .ch b{font-size:15px;line-height:22px}
.chat .ch .bot-acts{gap:4px}
.chat .ch .bot-acts > button.ib{width:32px;height:32px;min-height:32px}

/* ---- C11 overlays (L9): a flat scrim, never blurred; a 440 px drawer on wide screens; on a phone a sheet 48 px under the top ---- */
.overlay{background:var(--scrim);-webkit-backdrop-filter:none;backdrop-filter:none}
.drawer{width:min(440px,100vw);box-shadow:var(--shadow-3)}
.drawer .dh{min-height:68px;padding:20px 16px 16px 24px;align-items:flex-start}
.drawer .dh .dtt{font-size:18px;line-height:24px}
.drawer .dh .ib{margin-top:-6px}

@media (max-width:700px){
  .overlay{align-items:flex-end;background:var(--scrim-sheet)}
  .drawer{width:100vw;height:calc(100dvh - 48px);margin-top:48px;padding-top:20px;border-radius:var(--sheet-r) var(--sheet-r) 0 0;box-shadow:var(--shadow-3);overflow:hidden}
  .drawer::before{content:"";position:absolute;top:8px;left:50%;z-index:2;width:36px;height:4px;margin-left:-18px;border-radius:2px;background:var(--border-strong)}
  .drawer .dh{min-height:52px;padding:0 6px 10px 16px;background:transparent}
  .drawer .dh .ib{align-self:flex-start}
  .iview.streaming .ibody > .rpane{top:48px;height:auto;min-height:0;max-height:none;border-radius:var(--sheet-r) var(--sheet-r) 0 0}
}

/* ---- V15 the access drawer: people (32 px hued avatars; the name, "(you)" and the role on one line, how under it);
   one 36 px invite row (Username, the role, Share) with the chosen role's meaning under it; what each role can do
   behind one row disclosure; the audit note pinned to the foot as a plain line ---- */
ul.people .pav{width:32px;height:32px;background:hsl(var(--h,40) var(--av-s) var(--av-l));color:hsl(var(--h,40) 35% var(--av-fl))}
ul.people .person{min-height:56px;border-bottom:0}
ul.people .person .pw b{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;font-size:14px;line-height:20px}
ul.people .person .pw b .tag.role{height:22px;padding:0 8px;font-size:13px;font-weight:500}
ul.people .person .pw .you{font-weight:400;color:var(--text-2)}
.access-view form.share{margin:24px 0 0}
.access-view form.share h3.sub{margin:0 0 10px}
.access-view .share-row{display:flex;align-items:center;gap:8px}
.access-view .share-row > label.su{flex:1;min-width:0;margin:0}
.access-view .share-row > label.su input,.access-view form.share label.su input{margin:0;width:100%;height:36px;padding-left:10px;background-image:none}
.access-view .share-row select.ghost.chipsel{width:120px;height:36px;min-height:36px;border:1px solid var(--border-strong);background-color:var(--sunken)}
.access-view .share-row > button{height:36px;min-height:36px;padding:0 16px}
.access-view form.share > p.share-role{margin:8px 0 0;font-size:13px;line-height:18px;color:var(--text-2)}
.access-view form.share > p.why{margin:8px 0 0;font-size:13px;color:var(--text-2)}
.access-view .levels-block{margin:24px 0 0;padding:0;border-top:1px solid var(--border-soft)}
.access-view .levels-block > details.disc{border-top:0}
.access-view dl.levels .lvl .ic{display:inline-flex;width:16px;height:16px;color:var(--text-2)}
.access-view dl.levels dd{margin:2px 0 0 24px;font-size:13px;line-height:18px;color:var(--text-2)}
.drawer .db > p.dfoot.lvl-note{position:sticky;bottom:0;z-index:1;display:flex;align-items:center;gap:8px;margin:auto calc(-1 * var(--sp-6)) 0;padding:14px var(--sp-6);border-top:1px solid var(--border);background:var(--surface-1);font-size:13px;line-height:18px;color:var(--text-2)}
.drawer .db > p.dfoot.lvl-note .ic{flex:none;color:var(--text-2)}
.drawer .db > .access-view{padding-bottom:24px}
@media (max-width:700px){
  .access-view .share-row{display:grid;grid-template-columns:minmax(0,1fr) 112px;gap:8px}
  .access-view .share-row > label.su{grid-column:1 / -1}
  .access-view .share-row > label.su input,.access-view .share-row select.ghost.chipsel,.access-view .share-row > button{width:100%;height:44px;min-height:44px}
  .drawer .db > p.dfoot.lvl-note{margin-left:calc(-1 * var(--sp-4));margin-right:calc(-1 * var(--sp-4));padding:12px var(--sp-4) calc(12px + env(safe-area-inset-bottom))}
}

/* ---- the Computer tab: one bottom bar over the frame (state, full screen); the window's title under it, labelled;
   Use screen and Take over as two single-line buttons over one line that says what each means ---- */
.scrframe > .scrstate{left:0;right:0;bottom:0;min-height:48px;padding:10px 8px 8px;align-items:flex-end;background:linear-gradient(transparent,rgba(0,0,0,.55));border-radius:0 0 10px 10px}
.scrframe > .scrstate .tag.scrctl{height:28px;padding:0 10px;background:rgba(0,0,0,.55);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.scrframe > .scrstate button.ib.full{width:28px;height:28px;min-height:28px;border-radius:var(--r-pill);background:rgba(0,0,0,.55);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.scrtitle{display:flex;flex-direction:row;align-items:center;flex-wrap:nowrap;gap:8px;margin:-4px 0 0;padding-right:8px;min-width:0}
.scrtitle > .ic{flex:none;color:var(--text-2)}
.scrtitle > .scrlbl{flex:none;font:400 13px/18px var(--sans);text-transform:none;letter-spacing:0;color:var(--text-2)}
.scrtitle > .scrname{flex:1 1 0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:400 13px/18px var(--sans);color:var(--text)}
/* "Screen of [lead ⌄]": the picker a borderless crumb chip */
.scrbar{gap:4px}
.scrbar .scrof{font-size:14px;line-height:20px;color:var(--text-2)}
.scrbar select.ghost.chipsel,.gk .gk-panel .scrbar select.ghost{height:32px;min-height:32px;padding:0 26px 0 8px;border:0;border-radius:var(--r-md);background-color:transparent;font:600 14px/32px var(--sans);color:var(--text);background-position:right 6px center}
.scrbar select.ghost.chipsel:hover:not(:disabled){background-color:var(--hover)}
/* C17 Use screen (neutral filled, the way most people share) and Take over (outline), one help line under them */
.scrfoot{display:flex;flex-direction:column;gap:8px}

p.scrcaps{margin:0;font-size:13px;line-height:18px;color:var(--text-2)}
.scr details.scrabout > summary{min-height:48px;padding:12px 0}
@media (max-width:700px){
  
  /* the phone sheet: the two buttons and their line pinned to its foot */
  .gk-panel .pb:has(> .scr){display:flex;flex-direction:column;padding-bottom:0}
  .gk-panel .pb > .scr{flex:1 0 auto}
  .scr > .scrfoot{order:9;position:sticky;bottom:0;z-index:3;flex-direction:column-reverse;gap:10px;margin:auto -16px 0;padding:12px 16px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--border);background:var(--surface-1)}
}

/* ---- home: the head, the attention band, the node's stat strip, then the instances two to a row; every card the
   same anatomy (head, meta, memory, bots, activity, foot), so a row's cards line up ---- */
.home-view > .attn-band{margin:0 0 24px}
.adminview > .attn-band{margin:0 0 4px}
form.vh-form{display:none}
.home-view > .statstrip-c.homecap{margin:0 0 24px}
.home-view > section.instances{margin:0}
.home-view > .quiet-band{margin:24px 0 0}
.home-view > .quiet-band > section{margin:0}
.grid.igrid{gap:16px}
@media (min-width:1000px){.grid.igrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.ipanel{gap:12px}
.ipanel .ip-n{font-size:16px;line-height:24px}
/* the card's facts (profile, tier, vCPUs) are a muted line in its footer, after the lifecycle button */
.ipanel .acts > .specs{flex:1 1 auto;min-width:0;margin:0 0 0 4px;font-size:13px;line-height:18px;color:var(--text-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
.ipanel .acts > .specs > span{display:inline}
.ipanel .acts > .slots ~ .specs{display:none}
/* a suspended instance's bots: a hollow ring, not a grey dot on a grey chip */
.ipanel.asleep .ip-bots > .chip.bot > .dot:not(.ok,.bad,.amber,.blink,.warn){background:transparent;box-shadow:inset 0 0 0 1.5px var(--text-2)}
@media (max-width:700px){
  .ipanel .acts > .specs .eg{display:none}
  .ipanel .acts > .specs{margin-left:2px}
  .ipanel .ip-bots > button.addbot{width:28px;padding:0;justify-content:center;gap:0}
  .ipanel .ip-bots > button.addbot > .lt{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
}
.ipanel .usage.rel .uh > span:last-child{color:var(--text-2)}
.ipanel .ip-bots{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-height:32px}
.ipanel .ip-bots > .x{font-size:13px;color:var(--text-2)}
.ipanel .ip-bots > .chip.bot{height:28px}
.ipanel .ip-bots > button.addbot{display:inline-flex;align-items:center;gap:5px;height:28px;min-height:28px;padding:0 10px 0 8px;border:1px dashed var(--border-strong);border-radius:var(--r-pill);background:transparent;box-shadow:none;color:var(--text-2);font-size:13px}
.ipanel .ip-bots > button.addbot:hover:not(:disabled){border-color:var(--text-2);background:transparent;color:var(--text)}
.ipanel .ip-bk{display:flex;align-items:baseline;gap:0;margin-bottom:-4px;font-size:13px;line-height:18px;color:var(--text-2)}
.ipanel .ip-bk > .slots{font-variant-numeric:tabular-nums;white-space:nowrap}
.ipanel .ip-bk > .slots::before{content:"·";margin:0 6px}
.ipanel .usage.rel .uh > .rel-v{color:var(--text-2)}
.ipanel .act{display:grid;grid-template-columns:16px minmax(0,1fr) 64px;align-items:center;gap:8px;min-height:20px;font-size:13px;line-height:20px}
.ipanel .act > .a-ic{display:inline-flex;color:var(--text-2)}
.ipanel .act > .x.none{grid-column:2 / -1}
.ipanel .act .x{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-2)}
.ipanel .act .x .t{color:var(--text);font-weight:600;margin-right:4px}
.ipanel .act .w{justify-self:end;text-align:right}
.ipanel .act .w::before{content:none}
.ipanel .acts{justify-content:flex-end;gap:8px;padding:12px var(--card-px)}
.ipanel .acts > button:not(.open){margin-right:auto}
.ipanel .acts > .slots + button:not(.open){margin-left:0}
.ipanel .acts button.open{font-weight:600;margin-left:auto}
.ipanel .acts button{height:32px;min-height:32px}
/* a phone: the capacity as one banner row, its trailing affordance the same as the approvals banner's */
/* a phone's node capacity: one slim 44 px row, no card (an icon, the committed memory, View ›) */
button.capline{display:grid;grid-template-columns:20px minmax(0,1fr) auto;align-items:center;gap:10px;width:100%;height:44px;min-height:44px;padding:0 4px 0 2px;border:0;border-bottom:1px solid var(--border-soft);border-radius:0;background:transparent;box-shadow:none;text-align:left;color:var(--text)}
button.capline:hover:not(:disabled){background:transparent}
button.capline .cl-ic{display:inline-flex;color:var(--text-2)}
button.capline .cl-t{min-width:0;font-size:14px;line-height:20px;color:var(--text-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
button.capline .cl-t b{color:var(--text);font-weight:600}
button.capline .cl-go{display:inline-flex;align-items:center;gap:2px;height:32px;padding:0 6px 0 10px;border-radius:var(--r-md);font-size:13px;font-weight:500;color:var(--text)}
button.capline:hover:not(:disabled) .cl-go{background:var(--hover)}
button.capline:disabled{opacity:1;color:var(--text)}
.home-view > button.capline{margin:-4px 0 16px}
.ap-notice > button.sm{background:transparent;border-color:transparent;box-shadow:none;font-weight:500;color:var(--text)}
@media (max-width:700px){
  .grid.igrid{gap:12px}
  .ipanel{--card-px:16px}
}

/* a phone's page head: the primary action is a compact "New" on the title's row (its accessible name unchanged) */
.nl-short{display:none}
@media (max-width:700px){
  .home-view .ihead.page.tr .ttl{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:12px}
  .home-view .ihead.page .hlinks .go{height:36px;min-height:36px;padding:0 12px 0 10px}
  .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}
}

/* ---- the overview: every node card the same anatomy (head, URL and role, three meters, instances by state, foot) ---- */
.cluster-nodes{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
.cluster-nodes:has(> :only-child){grid-template-columns:minmax(0,640px)}
@media (max-width:900px){.cluster-nodes{grid-template-columns:minmax(0,1fr)}}
.cluster-node{gap:16px}
.cluster-title b{font-size:16px}
.cluster-node .url{display:flex;align-items:baseline;gap:6px;margin-top:-10px;font-size:13px;line-height:18px}
.cluster-node .url{font:400 13px/18px var(--sans);font-variant-numeric:tabular-nums}
.cluster-node .url .rl{flex:none;font:400 13px/18px var(--sans);color:var(--text-2)}
.cluster-node .url .rl::before{content:"·";margin-right:6px}
.cluster-node .usage{gap:20px}
.cluster-node .use{display:grid;grid-template-columns:minmax(0,1fr) 40px;grid-template-areas:"k k" "v v" "m p";align-items:center;column-gap:8px;row-gap:4px}
.cluster-node .use > .uk{grid-area:k}.cluster-node .use > .uv{grid-area:v}.cluster-node .use > .meter{grid-area:m;margin:0}
.cluster-node .use > .pc{grid-area:p;text-align:right;font-size:13px;color:var(--text-2);font-variant-numeric:tabular-nums}
.cluster-node .bystate{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"k s" "b b";align-items:baseline;row-gap:8px;column-gap:12px}
.cluster-node .bystate > .uk{grid-area:k}.cluster-node .bystate > .sbar{grid-area:b}.cluster-node .bystate > .states{grid-area:s;justify-self:end}
.cluster-node .bystate .sbar{display:flex;gap:2px;height:6px;border-radius:3px;overflow:hidden;background:var(--track)}
.cluster-node .bystate .sbar > i{display:block;height:100%}
.cluster-node .bystate .sbar > .sb-ok{background:var(--ok)}.cluster-node .bystate .sbar > .sb-susp{background:var(--seg-susp)}.cluster-node .bystate .sbar > .sb-warn{background:var(--warn-dot)}
.cluster-node .bystate .states{margin:0;gap:0;font-size:13px;flex-wrap:nowrap}
.cluster-node .bystate .states .sct + .sct::before{content:"·";margin:0 1px 0 6px;color:var(--text-2)}
.cluster-node .bystate > .states.none{font-size:13px;color:var(--text-2)}
.cluster-node .counts{justify-content:flex-start}
.cluster-node .counts a.cardlink{position:static;margin-left:auto;width:auto;height:30px;min-height:30px;padding:0 8px 0 12px;gap:4px;border:1px solid var(--border-input);border-radius:var(--r-md);background:transparent;color:var(--text);font-weight:600}
.cluster-node .counts a.cardlink .lt{position:static;width:auto;height:auto;overflow:visible;clip-path:none;white-space:nowrap}
.cluster-node .counts a.cardlink .ic{color:var(--text)}
.cluster-node.linked:hover .counts a.cardlink{background:var(--hover)}
@media (max-width:700px){
  .cluster-node .use{grid-template-columns:minmax(0,1fr) auto auto;grid-template-areas:"k v p" "m m m";column-gap:0;row-gap:8px}
  .cluster-node .use > .uv{justify-self:end}
  .cluster-node .use > .pc{text-align:left}
  .cluster-node .use > .pc::before{content:"·";margin:0 6px}
}
/* an idle node: one line of what it has free */
/* the overview's attention list: one row per thing that needs someone; one quiet row when nothing does */
.attn-sec{display:flex;flex-direction:column;gap:12px;margin:40px 0 0}
.card.attn-list{padding:0 20px}
.at-row{display:flex;align-items:center;gap:12px;min-height:52px;padding:8px 0;border-top:1px solid var(--border-soft)}
.at-row:first-child{border-top:0}
.at-row > .at-ic{display:inline-flex;flex:none;color:var(--text-2)}
.at-row.ok > .at-ic{color:var(--ok)}.at-row.warn > .at-ic{color:var(--warn)}.at-row.bad > .at-ic{color:var(--bad)}
.at-row > .at-t{flex:1;min-width:0;display:flex;flex-wrap:wrap;column-gap:8px;font-size:14px;line-height:20px;color:var(--text)}
.at-row > .at-t > span{color:var(--text-2)}
.at-row > .at-t > b{font-weight:600}
.at-row > a.btn{flex:none;gap:2px;padding:0 6px 0 10px}
@media (max-width:700px){.attn-sec{margin-top:32px}.card.attn-list{padding:0 16px}.at-row > .at-t{flex-direction:column}}
/* the node card's sides line up with the summary strip's cells above it */
.card.cluster-node{--card-px:var(--sp-5)}
@media (max-width:700px){.card.cluster-node{--card-px:var(--sp-4)}}

/* ---- V9 history: one 52 px toolbar (the kind as a borderless segmented well, the count, Filters at the right);
   Operation | Target | By | Time on fixed columns (a 24 px gutter, the time right-aligned); 44 px rows, a plain 16 px
   glyph (colour only for egress and failures); day rows a hairline and a count; the end a plain line ---- */
@media (min-width:701px){
  .hcols,.hrow.optab{grid-template-columns:minmax(200px,30fr) minmax(200px,36fr) minmax(140px,20fr) minmax(104px,14fr);column-gap:24px}
  .hcols,.hrow.optab{padding-right:calc(var(--card-px) + 24px)}
  .hcols > span:nth-child(4){text-align:right}
  .hrow.optab .hr-t,.hrow.optab .go-op{grid-column:4}
  .hrow.optab .go-op{margin-right:-30px}
}
.hrow.optab{min-height:44px}
.hrow.optab .hr-t{color:var(--text-2);font-size:13px;font-variant-numeric:tabular-nums}
.hrow.optab .htgt{display:flex;align-items:center;gap:6px;min-width:0;overflow:hidden;white-space:nowrap}
.hrow.optab .htgt .hsep{flex:none;color:var(--text-2)}
/* the instance and bot are links: a quiet underline at rest, the full one on hover */
.hrow.optab .htgt button.link.elink{text-decoration:underline;text-decoration-color:var(--border-strong);text-underline-offset:3px;text-decoration-thickness:1px}
.hrow.optab .htgt button.link.elink:is(:hover,:focus-visible){text-decoration-color:currentColor}
.hrow.optab .htgt .hbt :is(button.link,.nm){color:var(--text-2)}
.hrow.optab .htgt:has(> .hbt.nobot) > .hsep,.hrow.optab .htgt > .hbt.nobot{display:none}
.hrow.optab .hop .kic,.hrow.optab .hop .kic:is(.k-new,.k-egress,.k-ck,.k-msg,.k-life){width:20px;height:20px;border-radius:0;background:none;color:var(--text-2)}
.hrow.optab .hop .kic .ic{width:16px;height:16px}
.hrow.optab .hop .kic.k-egress{color:var(--warn)}
.hrow.optab.failed .hop .kic,.hrow.optab:has(.tag.bad) .hop .kic{color:var(--bad)}
.hrow.optab:hover{background:var(--hover)}
.hrow.optab:active{background:var(--pressed)}
.hday{display:flex;align-items:center;justify-content:space-between;min-height:36px;height:36px;margin:0 calc(-1 * var(--card-px));padding:0 calc(var(--card-px) + 24px) 0 var(--card-px);background:none;border-top:0;border-bottom:1px solid var(--border-soft);font:600 13px/18px var(--sans);color:var(--text)}
.hday .dd{margin-left:4px;margin-right:auto;font-weight:400;color:var(--text-2)}
.hday .hdc{font-weight:400;color:var(--text-2);font-variant-numeric:tabular-nums}
.hcols + .hday{border-top:0}
.hday + .hrow{border-top:0}
@media (max-width:700px){
  .hrow.optab{min-height:0;padding-top:10px;padding-bottom:10px}
  .hrow.optab .hop{gap:12px}
  .hrow.optab .kind{font-size:15px;line-height:22px}
  .hrow.optab .hop .kic{align-self:center}
  .hrow.optab .hmeta{display:flex;gap:0;padding-left:32px}
  .hrow.optab .hmeta .htgt{flex:0 1 auto;gap:4px}
  .hrow.optab .hmeta .htgt :is(.hin,.hbt)::before{content:none}
  .hrow.optab .hmeta .htgt .hin :is(button.link,.nm,.none){color:var(--text-2)}
  .hrow.optab .hmeta .actor{order:2}
  .hrow.optab .hmeta .actor::before{content:"·";margin:0 6px;color:var(--text-2)}
  .hrow.optab .hr-t{grid-column:2;align-self:start;line-height:22px}
  .hrow.optab .hmeta.by-bot .actor{display:none}
  .hday{position:sticky;top:var(--header-h);z-index:1;padding-right:var(--card-px);background:var(--surface-1)}
}

/* ---- the new-instance drawer: section heads a step over the labels, one field rhythm, a bordered fact row ---- */
.drawer fieldset.grp label.f,.drawer .fld > label.f,.drawer .fld > label.f:last-child{margin-bottom:16px}
.drawer fieldset.grp :is(p.fhelp,p.hint),.drawer p.fhelp.name-rules,.drawer .fld > label.f + .fhelp{margin:0 0 16px;font-size:13px;line-height:18px}
/* C7 the mini stat ("Squad includes"): a filled box, no inner rules; the value over its label; 4 across, 2 × 2 on a phone */
.specgrid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 12px;padding:12px 14px;border:0;border-radius:10px;background:var(--mini-bg);overflow:hidden}
.specgrid .sg-k{padding:0;font-size:13px;line-height:18px;font-weight:600;color:var(--text)}
.specgrid .sg-c{padding:0}
.specgrid .sg-c b{font-size:15px;line-height:20px}
@media (max-width:520px){.specgrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.drawer .db{padding-bottom:0}
.drawer .db > form > :nth-last-child(2){margin-bottom:32px}
@media (max-width:700px){
  .ckr .manifest-t{height:36px;min-height:36px;padding:0 4px 0 8px;margin-right:-4px;border-radius:var(--r-md);background:none;color:var(--text)}
  .card.inventory:has(> .ckpt){padding-top:4px}
}
.card.inventory:has(> .ckcols){padding-top:4px}
.card.inventory:has(> .ckpt){padding-bottom:4px}
.bot-admin-view .card.o-ov > p.lead.persona{margin:0 0 16px;font-size:15px;line-height:22px;color:var(--text)}

/* ---- V2 the activity timeline: one toolbar row (the bot picker as a crumb chip, the count at the right); one
   continuous 1 px rail from the first group to the live tail; every marker a 24 px circle (the bot's avatar heads a
   group, the time at the right); the title over one meta line (the detail as a quiet code chip, then the time taken);
   on a phone the live tail is the sheet's pinned footer ---- */
.cbar{min-height:44px;margin:0 0 8px;padding:0;border-bottom:0}
.cbar select.ghost.chipsel{height:32px;min-height:32px;padding:0 26px 0 8px;margin-left:-8px;border:0;border-radius:var(--r-md);background-color:transparent;font:600 14px/32px var(--sans);color:var(--text);background-position:right 6px center}
.cbar select.ghost.chipsel:hover:not(:disabled){background-color:var(--hover)}
.cbar .cn{margin-left:auto;font-size:13px;line-height:20px;color:var(--text-2);font-variant-numeric:tabular-nums}
.cgh{position:relative;top:auto;display:grid;grid-template-columns:24px minmax(0,1fr) auto;align-items:center;column-gap:10px;margin:0;padding:6px 8px;border:0;background:none}
.cgh:not(:first-child){margin-top:12px}
.cgh .gk-av,.cgh .gk-av.s16{--sz:24px;font-size:11px;justify-self:center;margin:0;position:relative;z-index:1;box-shadow:0 0 0 3px var(--panel-bg,var(--surface-1))}
.cgh b{font-size:14px;font-weight:600;color:var(--text)}
.cgh time{margin:0;justify-self:end;font-size:13px;color:var(--text-2);font-variant-numeric:tabular-nums}
.console > .cgh:first-child{position:relative}
.console > .cgh:first-child::before{content:"";position:absolute;left:20px;top:50%;bottom:0;width:1px;background:var(--border-strong)}
.cwrap .clive::before{bottom:50%}
.crow{padding:6px 8px}
.crow .ci,.crow:is(.k-tool,.k-ok,.k-end,.k-say,.k-start) .ci{position:relative;z-index:1;display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;margin:0;border:1px solid var(--border-strong);border-radius:50%;background:var(--panel-bg,var(--surface-1));color:var(--text-2)}
.crow .ci .ic{width:14px;height:14px}
.crow.bad .ci{color:var(--bad);border-color:color-mix(in srgb,var(--bad) 50%,var(--border-strong))}
.crow .t{font:400 14px/20px var(--sans);color:var(--text)}
.crow .d2{display:flex;align-items:center;flex-wrap:wrap;gap:2px 0;min-width:0;font-size:13px;line-height:18px;color:var(--text-2)}
.crow .d2 > .d{min-width:0;max-width:100%}
.crow .d2 > .du{white-space:nowrap;font-variant-numeric:tabular-nums}
.crow .d2 > .d + .du::before{content:"·";margin:0 6px;color:var(--text-2)}
.crow .d{font:400 13px/18px var(--sans);color:var(--text-2)}
.crow:is(.k-tool,.k-ok) .d{width:auto;margin:2px 0 0;padding:0 6px;border:0;border-radius:6px;background:var(--neutral-soft);font:400 var(--fs-mono)/20px var(--mono);letter-spacing:-.02em;color:var(--text-2)}
.crow.open .d2{flex-direction:column;align-items:stretch}
.crow.open .d2 > .du::before{content:none}
.clive{position:relative;min-height:36px;padding:6px 8px}
.clive .dot{position:relative;z-index:1;justify-self:center;width:24px;height:24px;margin:0;border-radius:50%;background:var(--panel-bg,var(--surface-1));box-shadow:inset 0 0 0 1px var(--ok-border),0 0 0 3px var(--panel-bg,var(--surface-1));animation:none}
.clive .dot::after{content:"";position:absolute;inset:8px;border-radius:50%;background:var(--ok);animation:dot-pulse 2s var(--ease) infinite}
.card:has(> details.disc:only-child){padding-top:4px;padding-bottom:4px}
.card.toolscard.tools2{padding-top:4px;padding-bottom:4px}
@media (max-width:700px){.card.ia-ov{padding-bottom:4px}.card.ia-ov .kvgroups > details.disc:last-child{border-bottom:0}}

.gk .gk-facts dd .chg{box-shadow:none}

/* "about …": a row disclosure like every other (an info icon, the title, the chevron at the right) */
details.about:not(.pop){margin:16px 0 0;border-top:1px solid var(--border-soft)}
details.about:not(.pop) > summary{display:grid;grid-template-columns:16px minmax(0,1fr) 16px;align-items:center;column-gap:12px;width:100%;height:auto;min-height:48px;margin:0;padding:12px 0;border-radius:var(--r-sm);font-size:14px;font-weight:500;color:var(--text)}
details.about:not(.pop) > summary:hover{background:var(--hover);box-shadow:-8px 0 0 var(--hover),8px 0 0 var(--hover)}
details.about:not(.pop) > summary .ic{color:var(--text-2)}
details.about:not(.pop) .about-body{margin:0 0 12px 28px;padding:0;border-left:0}
/* a phone's body text: 15/22 */
@media (max-width:700px){body{font-size:15px;line-height:22px}}
/* ==== /r11 ==== */

/* ==== later refinements: the pieces that sit last in the cascade ==== */
/* a one-line empty row inside a list card (no icon tile; the form that fills it is beside it) */
.empty-line{margin:0;padding:4px 0;font-size:14px;line-height:20px;color:var(--text-2)}
.card.inventory:has(> .empty-line:only-child){padding-top:16px;padding-bottom:16px}
.card.o-ov > details.disc.foot:has(+ .convo-row){margin-bottom:0}
.card.o-ov > details.disc.foot:has(+ .convo-row) > summary{border-radius:0}
.card > .convo-row{margin:0 calc(-1 * var(--card-px)) calc(-1 * var(--card-py));border-top:1px solid var(--border-soft)}

.card > .convo-row > button.disc-btn{grid-template-columns:minmax(0,1fr) 16px;min-height:48px;padding:12px var(--card-px);border-radius:0 0 var(--r-lg) var(--r-lg)}
.card > .convo-row > button.disc-btn.on{border-radius:0}
.card > .convo-row > button.disc-btn > .d-t > b{font:500 14px/20px var(--sans)}
.card > .convo-row > button.disc-btn:hover:not(:disabled){box-shadow:none}
.card > .convo-row > .convo{margin:0;padding:0 var(--card-px) var(--card-py)}

/* the classic chat's bot chips (tablets and phones): the open bot in the amber selection (L7) */
@media (max-width:1100px){.chat > .botbar .brow.on,.chat > .botbar .brow.on:hover{background:var(--accent-soft);border-color:var(--accent);box-shadow:inset 0 0 0 .5px var(--accent)}}
.drawer:focus,.drawer:focus-visible{outline:none}
/* V-Drawer new instance: each group under a hairline, its title 15/600 in sentence case; 20 px between groups */
.drawer fieldset.grp > legend{min-height:22px;margin:0 0 12px;font:600 15px/22px var(--sans);text-transform:none;letter-spacing:-0.006em;color:var(--text)}
.drawer fieldset.grp + fieldset.grp{margin-top:20px;padding-top:20px;border-top:1px solid var(--border-soft)}
/* one select chevron, the same size at every width */
select{background-size:16px 16px;background-position:right 8px center}
select.ghost.chipsel{background-size:16px 16px;background-position:right 8px center}
/* a drawer's pinned foot: a tinted strip under a hairline with a soft shadow cast up over the fields that scroll under
   it (an opaque edge, so nothing half-shows through a fade) */
.drawer .db > form > .row:last-child,.drawer .db > .row.dfoot{box-shadow:0 -12px 16px -14px var(--foot-shade)}
/* a phone's instance card: no empty activity line */
@media (max-width:700px){
  .ipanel .act:has(> .x.none){display:none}
}
/* the attention row's Review reads like the capacity row's View: a trailing chevron */
.ap-notice button.ap-n-go{gap:2px}

@media (max-width:700px){.ap-notice{gap:10px}}
/* every typed-name confirmation: the expected name in mono, placeholder included */
label.f.confirm input,label.f.confirm input::placeholder{font-family:var(--mono)}
/* ---- V-Terminal (K8): a head row (an icon tile, Root terminal, its state, what it is); idle, the start card in the
   page's theme (a neutral recording note, the typed confirm and Start, where sessions are listed); then the terminal's
   frame, dark in both themes, which fills the rest of the window (its title strip; idle a dimmed prompt). The frame
   carries the dark tokens itself, so its controls read the same in either theme. ---- */
.tframe:not(.s-idle) > *{--bg:#111111;--sunken:#0b0b0b;--code-bg:#262522;--surface-1:#181816;--surface-2:#21201e;--surface-3:#292826;
  --text:#ededed;--text-2:#b4b0a8;--text-3:#b4b0a8;--text-disabled:#8f8b83;--border:#2e2d2a;--border-soft:#262523;--border-strong:#3a3a3a;--border-input:#4a4843;
  --placeholder:#8a857c;--hover:rgba(255,255,255,.06);--pressed:rgba(255,255,255,.09);--neutral-soft:rgba(255,255,255,.08);
  --btn-bg:#21201e;--btn-bg-hover:#292826;--btn-shadow:none;--off-bg:transparent;--off-border:#45423c;--off-fg:#a8a39a;--go-off-bg:#21201e;--go-off-border:#45423c;--go-off-fg:#a8a39a;--border-focus:#8f8a80;--focus-wash:rgba(255,255,255,.08);--btn-off-bg:transparent;--btn-off-border:#45423c;--btn-off-fg:#a8a39a;
  --accent:#f5a524;--accent-hover:#ffb948;--accent-active:#e8961a;--accent-ink:#1c1303;--accent-text:#f6ad3a;
  --ok:#5fc98d;--ok-soft:rgba(95,201,141,.14);--ok-border:rgba(95,201,141,.40);--warn:#ff8b57;--warn-soft:rgba(255,139,87,.13);--warn-border:rgba(255,139,87,.40);
  --bad:#ff7b7b;--bad-soft:rgba(255,123,123,.10);--bad-border:rgba(255,123,123,.42);
  --focus:#f5a524;--focus-soft:rgba(245,165,36,.30);--focus-ring:0 0 0 3px rgba(255,255,255,.08);--focus-outline:2px solid #f5a524;
  --chev:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23aba79f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  color-scheme:dark;color:var(--text)}

/* ==== r13: the components each defined once (requests, workspace, property list, footers, disclosures, empty states) ==== */
/* ---- C3 one egress request: a shield in a 24 px circle, the host (mono) over protocol · scope, the time at the right;
   the quote on a quiet block; Allow (tonal), Deny, then Add a reason and Details as ghost buttons. No left bar (K11). ---- */
.ap-h{display:grid;grid-template-columns:24px minmax(0,1fr) auto auto;column-gap:10px;align-items:start;min-width:0}
.ap-ic{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--neutral-soft);color:var(--text-2);flex:none}
.ap-ic.warn{background:var(--warn-soft);color:var(--warn)}.ap-ic.ok{background:var(--ok-soft);color:var(--ok)}.ap-ic.bad{background:var(--bad-soft);color:var(--bad)}
.ap-ic .ic{stroke-width:2}
.ap-hw{display:flex;flex-direction:column;gap:1px;min-width:0}
.ap-hw .host{display:block;font:400 13px/20px var(--mono);letter-spacing:-.02em;color:var(--text);overflow-wrap:anywhere}
.ap-hw .host > .port{color:var(--text-2)}
.ap-hw .ap-m{margin:0;font-size:13px;line-height:18px;color:var(--text-2)}
.ap-hw > .tag:not(.vh){justify-self:start;margin:2px 0}
.ap-h .ap-t{margin:0;font-size:13px;line-height:20px;color:var(--text-2);white-space:nowrap;font-variant-numeric:tabular-nums}
.ap-h .ap-t::before{content:none !important}
.ap-h .ap-x{margin:-4px -6px 0 0}
.ap-h .ap-x .ic{transform:rotate(180deg)}
.approval > .ap-who,.gk-egress > .ap-who{margin:10px 0 0 34px;padding:8px 12px;border:0;border-radius:8px;background:var(--surface-2);font-size:14px;line-height:20px;color:var(--text)}
:is(.approval,.gk-egress) > :is(label.f.ap-reason,.err,.ap-dec,.muted){margin-left:34px}
.approval-actions,.gk-egress .acts{margin:12px 0 0 34px;gap:8px}
:is(.approval-actions,.gk .gk-egress .acts) :is(button.addwhy,.gk-btn.addwhy){height:32px;min-height:32px;padding:0 8px;color:var(--text);font-weight:500}
.approval-actions,.gk .gk-egress .acts{column-gap:6px}
details.ap-ids > summary{height:32px;padding:0 8px;color:var(--text);font-weight:500}
:is(.approval-actions,.gk .gk-egress .acts) button.allow,.gk .gk-egress .acts .gk-btn.allow{padding:0 12px 0 10px}
.chat-appr > .approval,.gk-card.gk-egress{padding:14px 16px;border:1px solid var(--border);border-radius:12px;background:var(--surface-1);box-shadow:none}
section.approvals.card.attn{box-shadow:var(--shadow-card)}
@media (max-width:700px){
  .approval > .ap-who,.gk-egress > .ap-who,:is(.approval,.gk-egress) > :is(label.f.ap-reason,.err,.ap-dec,.muted){margin-left:0}
  .approval-actions,.gk-egress .acts{margin-left:0;column-gap:16px;row-gap:8px}
  :is(.approval-actions,.gk-egress .acts) .ap-main{flex:1 1 100%;display:grid;grid-template-columns:1fr 1fr;gap:8px}
  :is(.approval-actions,.gk-egress .acts) :is(button.addwhy,.gk-btn.addwhy){margin-left:0}
  :is(.approval-actions,.gk-egress .acts) details.ap-ids{margin-left:0}
  .chat-appr > .approval,.gk-card.gk-egress{padding:12px}
}
/* the compact row (home, instance and bot administration): one 60 px row; its chevron opens the full card in place */
section.approvals.waitreq{padding:0;overflow:hidden}
.waitreq > .wr-h{display:flex;align-items:center;gap:8px;min-height:48px;padding:0 12px 0 16px;border-bottom:1px solid var(--border-soft)}
.waitreq > .wr-h > h2.sec{margin:0;font-size:15px;line-height:22px;font-weight:600;color:var(--text)}
.waitreq > .wr-h > .wr-s{display:none}
.waitreq > .wr-h > button{margin-left:auto}
.waitreq > .approval-list > .approval{padding:12px 16px;border-top:1px solid var(--border-soft)}
.waitreq > .approval-list > .approval:first-child{border-top:0}
.approval.compact{display:grid;grid-template-columns:28px minmax(0,1fr) auto;column-gap:12px;align-items:center;min-height:60px}
.approval.compact > .ap-ic{width:28px;height:28px}
.apr-t{display:flex;flex-direction:column;gap:1px;min-width:0}
.apr-l1{font-size:14px;line-height:20px;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.apr-l1 :is(b,a.apr-who){font-weight:600;color:var(--text)}
.apr-l1 code.host{font:400 13px/20px var(--mono);letter-spacing:-.02em;background:none;padding:0;color:var(--text)}
.apr-l2.mline{flex-wrap:nowrap;overflow:hidden;font-size:13px;line-height:18px;color:var(--text-2)}
.apr-l2.mline > .apr-q{min-width:0;overflow:hidden;text-overflow:ellipsis}
.apr-t > .err{margin:4px 0 0;font-size:13px}
.apr-a{display:flex;align-items:center;gap:8px;flex:none}
.apr-a > button:not(.ib){height:32px;min-height:32px;padding:0 12px;font-size:13px}

@media (max-width:700px){
  .approval.compact{grid-template-columns:28px minmax(0,1fr);row-gap:10px;align-items:start}
  .approval.compact > .apr-a{grid-column:1 / -1;display:grid;grid-template-columns:1fr 1fr 40px;gap:8px}
  .apr-a > button:not(.ib){height:40px;min-height:40px}
  .apr-a > .apr-more{width:40px;height:40px;min-height:40px}
  .apr-l2.mline{flex-wrap:wrap;white-space:normal}
}
/* the phone's one-line notice: the same shape (a neutral card, only the shield tinted) */
.ap-notice{border-color:var(--border);background:var(--surface-1);box-shadow:var(--shadow-card)}
.ap-notice > .ap-n-ic{width:28px;height:28px;border-radius:50%;background:var(--warn-soft);color:var(--warn)}
/* the Details tab's line (the requests are cards in the chat already): a plain group, never a banner */
.gk-panel .approvals.inchat{margin-top:24px;padding:0;border:0;background:none;box-shadow:none}
.gk-panel .approvals.inchat > .ic-row{min-height:0;padding:0;gap:10px;background:none}
.gk-panel .approvals.inchat .ap-n-ic{width:24px;height:24px}
.gk-panel .approvals.inchat .ft b{font-weight:500}
.gk-panel .approvals.inchat .ic-row > button{height:28px;min-height:28px;border-color:transparent;background:transparent;font-weight:500}
.gk-panel .approvals.inchat .ic-row > button:hover:not(:disabled){background:var(--hover)}

/* ---- K12 the start block is the transcript's first item, under the chat's header; free space falls under the last message ---- */

/* ---- V-Home the instance card (K7): the name with its facts under it, the state at the right; the memory label and
   "2 GiB of 16 GiB" over the meter (a released one dashed); "Bots  2 / 8"; the footer only actions ---- */
.ipanel .ip-h{align-items:flex-start}
.ipanel .ip-nw{display:flex;flex-direction:column;gap:2px;min-width:0}
.ipanel .ip-n{font-size:16px;line-height:22px;font-weight:650;letter-spacing:-0.006em;color:var(--text)}
.ipanel .ip-nw > .specs{font-size:13px;line-height:18px;color:var(--text-2)}
.ipanel .ip-h > .tag{margin-top:1px}
.ipanel .ip-bk{justify-content:space-between;margin-bottom:-4px}
.ipanel .ip-bk > .slots::before{content:none}
.ipanel .ip-bk > .ip-k,.ipanel .uh > .ip-k{color:var(--text-2);font-size:13px;font-weight:500}
.ipanel .usage.rel .meter{margin-top:2px;margin-bottom:2px}
.ipanel .usage.rel .meter > i{display:none}
.ipanel .acts > .sp{flex:1}
.ipanel .acts{justify-content:flex-start}
.ipanel:hover{border-color:var(--border-strong)}

/* ---- C1 the workspace: the page's actions in the main column, its facts or forms in a 380 px rail (one column under
   1100 px, the main sections first). Sections inside both columns keep the page's 32 px rhythm. ---- */
.ws{display:grid;grid-template-columns:minmax(0,1fr);gap:32px;align-items:start;min-width:0}
.ws > .ws-main,.ws > .ws-rail{display:flex;flex-direction:column;gap:32px;min-width:0}
@media (min-width:1100px){
  .ws{grid-template-columns:minmax(0,1fr) 380px;gap:24px}
  .ws > .ws-rail > .sticky{position:sticky;top:72px}
}
section.nres + .ws{margin-top:24px}
.attn-band + .ws,.ihead.page + .ws{margin-top:0}
.ws .card > .fgrid,.ws .card > form > .fgrid{max-width:none}
.app-page{padding-bottom:40px}
@media (max-width:700px){
  .ws{gap:24px}
  .ws > .ws-main,.ws > .ws-rail{gap:24px}
  section.nres + .ws{margin-top:16px}
  .app-page{padding-bottom:28px}
}
/* a rail fact card on a phone: one disclosure (the title, its one-line summary), the facts inside without a second frame */
section.card.railx{padding:0}
section.card.railx > details.disc > summary{padding:14px 16px}
section.card.railx > details.disc > .d-b{padding:0 16px 16px;margin:0}
section.card.railx > details.disc > .d-b > .card{border:0;padding:0;background:none;box-shadow:none}

/* ---- C10 the property list: key 140 px (13/500 secondary) and value (14 px) on one 20 px line box; 36 px rows over
   hairlines; a trailing action at the row's end; .inline (short values at the right); .stack (key over value) ---- */
dl.props{display:flex;flex-direction:column;margin:0}
dl.props > .pr{display:grid;align-items:baseline}

dl.props dt{margin:0}
dl.props dd{display:flex;align-items:baseline;gap:8px;margin:0;overflow-wrap:anywhere}
dl.props dd > .pv{flex:1}
dl.props dd > :is(button,.chg){flex:none;margin:-4px 0 -4px auto;align-self:center}

dl.props.inline dd{justify-content:flex-end;text-align:right}
dl.props.inline dd > .pv{flex:0 1 auto}
dl.props.stack > .pr,dl.props > .pr.wide{row-gap:2px}

.props-h{margin:20px 0 6px;font:600 13px/18px var(--sans);color:var(--text)}
.props-h:first-child{margin-top:0}
@media (max-width:700px){dl.props:not(.inline) > .pr{row-gap:2px}}

/* ---- V-Instance admin's Configuration rail: the last change, then two property groups, More details as a disclosure */
.ia-ov .lastc{display:flex;flex-direction:column;gap:2px;margin:0 0 4px;padding:0 0 14px;border-bottom:1px solid var(--border-soft)}
.ia-ov .lastc .lc-k{font-size:13px;line-height:18px;font-weight:500;color:var(--text-2)}
.ia-ov .lastc .lc-v{font-size:14px;line-height:20px;color:var(--text)}
.ia-ov details.cfg-more{margin:16px calc(-1 * var(--card-px)) calc(-1 * var(--card-py));border-top:1px solid var(--border-soft)}
.ia-ov details.cfg-more > summary{padding:14px var(--card-px)}
.ia-ov details.cfg-more > .d-b{padding:0 var(--card-px) 16px;margin:0}
.ia-ov .feat .chips{display:flex;flex-wrap:wrap;gap:6px}
.ia-ov.railx .ov-refresh{display:flex;justify-content:flex-end;margin-top:8px}
/* the bot's conversation: its own card, the disclosure row its whole body */
.card.o-convo-c{padding:0}
.card.o-convo-c > .convo-row{margin:0;border:0;padding:0}
.card.o-convo-c > .convo-row > .convo-t{width:100%;min-height:60px;padding:12px 16px 12px 20px;border:0;border-radius:var(--r-lg)}
.card.o-convo-c > .convo-row > .convo{padding:0 16px 16px}
.bot-admin-view .persona{margin:0 0 4px;padding:0 0 14px;border-bottom:1px solid var(--border-soft);font-size:14px;line-height:20px;color:var(--text)}
.bot-admin-view .persona q{quotes:"“" "”"}
/* ---- V-Node the CPU pools: one row each (the pool, CPUs and core, its state pill at the right) ---- */
ul.pools{display:flex;flex-direction:column;margin:0;padding:0;list-style:none}
ul.pools > li{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;column-gap:12px;align-items:center;padding:10px 0;border-top:1px solid var(--border-soft)}
ul.pools > li:first-child{border-top:0;padding-top:0}
ul.pools > li:last-child{padding-bottom:0}
ul.pools .pn{font-size:14px;line-height:20px;font-weight:600;color:var(--text)}
ul.pools .pm{grid-row:2;font-size:13px;line-height:18px;color:var(--text-2)}
ul.pools .pm code.pid{font:400 12.5px/18px var(--mono);background:none;padding:0;color:var(--text-2)}
ul.pools > li > .tag{grid-column:2;grid-row:1 / span 2}
.ws-rail .card:is(.hostcard,.poolcard){padding:16px 20px}
@media (max-width:700px){.ws-rail .card:is(.hostcard,.poolcard){padding:0}}
.node-view .nact .fhelp{margin-top:4px}

/* ---- V-Checkpoints the list (the page's focus): natural columns (name and kind, created, retention, files, ⋯ bordered
   and visible at rest); the actions in the rail ---- */
:is(.ws-main,.ck-list) .ckcols,:is(.ws-main,.ck-list) .ckr{grid-template-columns:minmax(0,1fr) 120px 180px 96px 40px;column-gap:16px}
:is(.ws-main,.ck-list) .ckr .manifest-t{margin:0;padding:0;height:auto;min-height:0;font-size:13px;text-decoration:underline;text-decoration-color:var(--border-strong);text-underline-offset:3px;font-weight:400}
:is(.ws-main,.ck-list) .ckr .manifest-t:hover:not(:disabled){background:none;text-decoration-color:currentColor}
:is(.ws-main,.ck-list) .ckr .ck-t{font-size:13px;color:var(--text-2);font-variant-numeric:tabular-nums}
.ckform.rl .fgrid.one{grid-template-columns:minmax(0,1fr)}
.empty-state.es-card{display:flex;flex-direction:column;align-items:center;gap:12px}
.empty-state.es-card .es-ic{display:inline-grid;place-items:center}
.empty-state.es-card .es-t{display:flex;flex-direction:column;align-items:center;gap:4px;max-width:44ch}

.empty-state.es-card .es-t > button{margin-top:8px}
@media (max-width:700px){
  :is(.ws-main,.ck-list) .ckr{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"l m" "s s"}
  :is(.ws-main,.ck-list) .ck-s{grid-area:s}
  :is(.ws-main,.ck-list) .ckr .manifest-t{grid-area:auto;display:inline;height:auto;min-height:0;margin:0}
}

/* checkpoints: how they work, three short facts under the list (wide screens) */
.card.ckhow > ul{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:0;padding:0;list-style:none}
.card.ckhow li{display:grid;grid-template-columns:20px minmax(0,1fr);column-gap:10px;align-items:start}
.card.ckhow li > span:last-child{display:flex;flex-direction:column;gap:4px}
.card.ckhow b{font-size:14px;line-height:20px;font-weight:600;color:var(--text)}
.card.ckhow li > span:last-child > span{font-size:13px;line-height:19px;color:var(--text-2)}

/* ---- V-Images the registered list (or its empty state, stretched to the form's height) beside the form, the steps
   inside the form's card under a hairline ---- */
.imgws{align-items:stretch}
.imgws > .ws-main > .sec{flex:1;display:flex;flex-direction:column}
.imgws > .ws-main > .sec > .sec-b{flex:1;display:flex;flex-direction:column}
.imgws .card.imgs{flex:1;display:flex;flex-direction:column}
.imgws .card.imgs.is-empty{align-items:center;justify-content:center}
.register .fgrid.one{grid-template-columns:minmax(0,1fr)}
.register:has(> .howin) form > footer.cf{margin-bottom:0;border-radius:0}
.register > .howin{margin:0 calc(-1 * var(--card-px)) 0;padding:16px var(--card-px) 0;border-top:1px solid var(--border-soft)}

.register > details.howm{margin:-4px 0 12px;border:0}
.register > details.howm > summary{padding:0;min-height:32px}
.register > details.howm > .d-b{margin:8px 0 0;padding:0}
input::placeholder,textarea::placeholder{color:var(--placeholder);opacity:1}

/* ---- C11 drawers: a right sheet (480 px for a form, 440 px for access) over a scrim that covers the bars too; a strong
   left edge and a long soft shadow. K9 on a phone: full screen, a 52 px header (title, subtitle, close), the body that
   scrolls, the action row pinned to its foot; no grabber (nothing drags). ---- */
.overlay{z-index:60}
.drawer{width:min(480px,100vw);border-left:1px solid var(--border-strong);box-shadow:var(--drawer-shadow)}

@media (max-width:700px){
  .overlay{align-items:stretch}
  .drawer{width:100vw;height:100vh;height:100dvh;margin:0;padding-top:0;border:0;border-radius:0;box-shadow:none}
  .drawer::before{content:none}
  .drawer .dh{min-height:52px;padding:8px 6px 8px 16px;align-items:center;border-bottom:1px solid var(--border);background:var(--surface-1)}
  .drawer .dh .ib{align-self:center;margin:0}
}
/* ---- V-Access: Invite (the name, the role, Share on one 36 px row), Roles (three rows, the invite's choice marked
   amber and a click on a row choosing it), then People with access and the audit caption under them ---- */
.access-view{gap:0}
.access-view form.share{margin:0}
.access-view .share-row{display:flex;align-items:center;gap:8px}
.access-view .share-row > label.sl{flex:none;margin:0}
.access-view .share-row > label.sl select{width:132px;height:36px;min-height:36px;margin:0}
.access-view .share-row > button{height:36px;min-height:36px;padding:0 16px}
.access-view .levels-block{margin:24px 0 0;padding:0;border:0}
.access-view .levels-block > h3.sub{margin:0 0 10px}
.access-view dl.levels{display:flex;flex-direction:column;margin:0;padding:0;border:1px solid var(--border);border-radius:10px;overflow:hidden}
.access-view dl.levels > .lvrow{position:relative;display:grid;grid-template-columns:32px minmax(0,1fr) 16px;grid-template-areas:"ic n ck" "ic d ck";column-gap:12px;row-gap:1px;align-items:center;min-height:56px;padding:10px 14px;margin:0;border-top:1px solid var(--border-soft)}
.access-view dl.levels > .lvrow:first-child{border-top:0}
.access-view .levels-block.pick dl.levels > .lvrow{cursor:pointer}
.access-view .levels-block.pick dl.levels > .lvrow:hover{background:var(--hover)}
.access-view dl.levels > .lvrow.on,.access-view dl.levels > .lvrow.on:hover{background:var(--accent-wash)}
.access-view dl.levels > .lvrow > dt{display:contents}
.access-view dl.levels .lv-ic{grid-area:ic;display:inline-grid;place-items:center;width:32px;height:32px;border-radius:8px;background:var(--neutral-soft);color:var(--text-2)}
.access-view dl.levels .lvrow.on .lv-ic{background:var(--accent-soft);color:var(--accent-text)}
.access-view dl.levels .lv-n{grid-area:n;font:600 14px/20px var(--sans);color:var(--text)}
.access-view dl.levels .lv-b{position:absolute;inset:0;width:auto;height:auto;min-height:0;padding:0;margin:0;border:0;border-radius:0;background:transparent;box-shadow:none;cursor:pointer}
.access-view dl.levels .lv-b:hover:not(:disabled){background:transparent}
.access-view dl.levels .lv-b:focus-visible{outline:var(--focus-outline);outline-offset:-2px}
.access-view dl.levels > .lvrow > dd{grid-area:d;margin:0;font-size:13px;line-height:18px;color:var(--text-2)}
.access-view dl.levels .lv-ck{grid-area:ck;display:inline-flex;color:var(--accent-text)}
.access-view > h3.sub{margin:24px 0 8px;display:flex;align-items:center;gap:8px}
.access-view h3.sub > .count{display:inline-flex;align-items:center}
.access-view ul.people{margin:0}
.access-view .person .you{color:var(--text);font-weight:400}
.access-view .person .prole{background:var(--neutral-soft);color:var(--text)}
.access-view .person .pm{color:var(--text-2)}
.access-view p.lvl-note{margin:16px 0 0;padding:0;font-size:13px;line-height:18px;color:var(--text-2)}
@media (max-width:700px){
  .access-view .share-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .access-view .share-row > label.su{grid-column:1 / -1}
  .access-view .share-row > label.su input,.access-view .share-row > label.sl select{width:100%;height:40px;min-height:40px}
  .access-view .share-row > button{height:40px;min-height:40px}
}

/* ---- C6 one select style: the toolbar pickers (the files' and the screen's bot, the activity's filter) are select
   pills, the form select's border, radius and chevron at 32 px; on a phone 40 px ---- */
:is(.cbar,.fbar,.scrbar) select.ghost.chipsel,.gk .gk-panel :is(.cbar,.fbar,.scrbar) select.ghost.chipsel,.gk .gk-panel .flist > .fbar select.ghost.chipsel{height:32px;min-height:32px;margin:0;padding:0 30px 0 10px;
  border:1px solid var(--border);border-radius:var(--r-md);background:transparent var(--chev) no-repeat right 8px center/16px;font:500 13px/30px var(--sans);color:var(--text)}
:is(.cbar,.fbar,.scrbar) select.ghost.chipsel:hover:not(:disabled){background-color:var(--hover);border-color:var(--border-strong)}
@media (max-width:700px){:is(.cbar,.fbar,.scrbar) select.ghost.chipsel,.gk .gk-panel :is(.cbar,.fbar,.scrbar) select.ghost.chipsel{height:36px;min-height:36px;font-size:14px;line-height:34px}}
.scrbar .scrof{font-size:13px;color:var(--text-2);margin-right:8px}
/* ---- V-Grok activity: the header row over a hairline; markers on the quiet surface with a strong edge; a 1.5 px
   rail; code chips as the chat's file chip (bordered, mono, 22 px) ---- */
.cbar{min-height:48px;margin:0 -16px 8px;padding:0 16px;border-bottom:1px solid var(--border)}
.crow .ci,.crow:is(.k-tool,.k-ok,.k-end,.k-say,.k-start) .ci{background:var(--surface-2);border-color:var(--border-strong)}
:is(.crow,.cgh:not(:first-child),.clive)::before,.console > .cgh:first-child::before{width:1.5px;left:19.75px}
.crow:is(.k-tool,.k-ok) .d{display:inline-flex;align-items:center;height:22px;margin:3px 0 0;padding:0 7px;border:1px solid var(--border);border-radius:6px;background:var(--surface-2);font:400 12.5px/20px var(--mono);color:var(--text)}

/* ---- V-Overview (K6): every node card the same anatomy (the capacity once in a header line, three meters in a row,
   0 shown as an empty track with values in the secondary text; the by-state track); one status chip in the page head;
   the Health table under the cards ---- */
.cluster-node .cap-h{display:flex;align-items:baseline;gap:6px;margin:4px 0 -6px;font-size:13px;line-height:18px;color:var(--text-2)}
.cluster-node .cap-h > span:first-child{font-weight:500;color:var(--text)}
.cluster-node .cap-h .sep{color:var(--text-2)}
.cluster-node .usage{border-top:0;padding-top:0}
.cluster-node .usage.zero .uv b{color:var(--text-2)}
.cluster .stchip{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 2px 0 10px;border:1px solid var(--border);border-radius:999px;font-size:13px;color:var(--text-2);white-space:nowrap}
.cluster .stchip > .ic{color:var(--ok);flex:none}
.cluster .stchip.warn > .ic{color:var(--warn)}
.cluster .stchip > .sc-t{color:var(--text);font-weight:500}
.cluster .stchip > .sep{color:var(--text-2)}
.cluster .stchip > .ib.refresh{width:24px;height:24px;min-height:24px;border-radius:50%;opacity:1}
.cluster .stchip > .ib.refresh .ic{width:14px;height:14px}
.health-sec{display:flex;flex-direction:column;gap:12px;margin-top:32px}
.card.health{padding:0;overflow:hidden}
.card.health .hlrow{display:grid;grid-template-columns:minmax(120px,1.2fr) repeat(2,minmax(0,1fr)) minmax(0,.9fr) minmax(0,.9fr) minmax(0,.8fr);align-items:center;column-gap:16px;min-height:48px;padding:0 20px;border-top:1px solid var(--border-soft);font-size:14px;color:var(--text)}
.card.health .hlrow.hhead{min-height:40px;border-top:0;background:var(--surface-2);font-size:13px;font-weight:600;color:var(--text-2)}
.card.health .hn{font-weight:600}
.card.health .hc{display:inline-flex;align-items:center;gap:6px;color:var(--text)}
.card.health .hc > .ic{flex:none;color:var(--ok)}
.card.health .hc.warn > .ic{color:var(--warn)}.card.health .hc.bad > .ic{color:var(--bad)}
.card.health .hf{font-variant-numeric:tabular-nums}
.card.health .hf.bad{color:var(--bad);font-weight:600}
.card.health .hu{color:var(--text-2);font-variant-numeric:tabular-nums}
@media (max-width:700px){
  .health-sec{margin-top:24px}
  .card.health .hhead{display:none}
  .card.health .hlrow{grid-template-columns:minmax(0,1fr) auto auto auto;column-gap:12px;min-height:52px;padding:0 16px}
  .card.health .hlrow > :is(.hf,.hu){display:none}
  .card.health .hc .hl{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .card.health .ha .tag{height:22px}
}

/* ---- V-Instance classic: the bots rail as Grok's (8 px inset, radius 8, the amber selection with a 2 px bar inside,
   the last message's time at the right); the chat head's tools as one bordered group: Stream (icon and label, pressed
   when the pane is open) | settings, administration, ⋯ ---- */
@media (min-width:901px){
  .side .brow{margin:1px 8px;padding:6px 10px 6px 8px;border-radius:8px}
  .side .brow.on,.side .brow.on:hover{background:var(--selected);box-shadow:none}
  .side .brow.on::before{content:"";position:absolute;left:0;top:12px;bottom:12px;width:2px;border-radius:2px;background:var(--accent)}
  .side .brow > .tm{flex:none;align-self:flex-start;margin-top:2px;font-size:13px;color:var(--text-2);font-variant-numeric:tabular-nums}
}
@media (max-width:900px){.side .brow > .tm{display:none}}
.chat .ch button.quiet.stream{height:32px;min-height:32px;padding:0 10px 0 8px;gap:6px;border:1px solid var(--border);border-radius:var(--r-md);color:var(--text)}
.chat .ch button.quiet.stream .ic{color:var(--text-2)}
.chat .ch button.quiet.stream.on,.chat .ch button.quiet.stream.on:hover:not(:disabled){background:var(--selected);border-color:var(--accent-border);box-shadow:none}
.chat .ch button.quiet.stream.on .ic{color:var(--accent-text)}
.chat .ch .bot-acts{display:inline-flex;gap:0;margin-left:8px;border:1px solid var(--border);border-radius:var(--r-md);overflow:hidden}
.chat .ch .bot-acts > button.ib,.chat .ch .bot-acts .menu > button.ib{width:32px;height:30px;min-height:30px;border-radius:0}
.chat .ch .bot-acts > :not(:first-child){border-left:1px solid var(--border)}
.chat .ch .bot-acts > .menu{display:inline-flex}
.chat .ch > .vr,.chat .ch .vr{display:none}
:root:has(.app-page.scoped){--header-h:0px}

/* the phone's bot chips: the open bot in the amber selection; Stream a labelled chip at the row's end */
@media (max-width:900px){
  .side .brow.on,.side .brow.on:hover{background:var(--accent-wash);border-color:var(--accent);box-shadow:inset 0 0 0 .5px var(--accent)}
}
button.ib.stream-ic .sl{display:none}

/* ---- V-History: the toolbar a row of its own (two equal segments, the count; Filters at the right); the table in a
   1080 px card, the head on the quiet surface, columns sized to what they hold (By and Time together at the right end);
   targets unadorned until the row is hovered; icons in 28 px tiles; the end a divider caption ---- */
.history-view .card.hcard,.history-view > .card,.history-view .history-main > .card{max-width:1080px}
.history-view{max-width:1080px}
.hcols,.hrow.optab{grid-template-columns:minmax(220px,1.1fr) minmax(240px,1.4fr) 160px 96px}
.hcols{background:var(--surface-2);font-size:13px;font-weight:600;color:var(--text-2)}
.hcols > span:last-child,.hrow.optab > .hr-t{justify-self:end;text-align:right}
.hrow.optab > .hr-t{font-size:13px;color:var(--text-2);font-variant-numeric:tabular-nums}
.hrow.optab .hop .kic,.hrow.optab .hop .kic:is(.k-new,.k-ck,.k-msg,.k-life){display:inline-grid;place-items:center;width:28px;height:28px;flex:none;border-radius:8px;background:var(--neutral-soft);color:var(--text-2)}
.hrow.optab .hop .kic .ic{width:16px;height:16px}
.hrow.optab .hop .kic.k-egress{background:var(--warn-soft);color:var(--warn)}
.hrow.optab.failed .hop .kic,.hrow.optab.failed .hop .kic:is(.k-new,.k-ck,.k-msg,.k-life,.k-egress){background:var(--bad-soft);color:var(--bad)}
.hrow.optab .hbt :is(.nm,button.link.elink){color:var(--text)}
.hrow.optab .htgt button.link.elink{text-decoration:none}
.hrow.optab .hin button.link.elink{font-weight:500}
.hrow.optab .hbt button.link.elink{font-weight:400}
.hrow.optab:is(:hover,:focus-within) .htgt button.link.elink{text-decoration:underline;text-decoration-color:var(--border-strong);text-underline-offset:3px}
.hrow.optab .htgt button.link.elink:hover{text-decoration-color:currentColor}
@media (max-width:700px){
  .history-view{max-width:none}
  .hrow.optab{grid-template-columns:minmax(0,1fr) auto}
}

/* the drawer's action row: the reason it waits (an info glyph, the secondary text) at the left, Cancel and the primary
   at the right; on a phone the reason over Cancel (1 part) and the primary (2 parts) */
.drawer .db > form > .row:last-child > .fnote{display:flex;align-items:center;gap:6px}
@media (max-width:700px){
  .drawer .db > form > .row:last-child:last-child{flex-direction:row;flex-wrap:wrap}
  .drawer .db > form > .row:last-child > .fnote{order:0;flex:1 1 100%;margin:0}
  .drawer .db > form > .row:last-child > button{order:1;flex:1 1 0;height:40px;min-height:40px}
  .drawer .db > form > .row:last-child > button.go{order:2;flex:2 1 0}
  .drawer .db > form > .row:last-child:has(> button:nth-of-type(2)):has(> button.go){grid-template-columns:1fr 2fr;direction:ltr}
  .drawer .db > form > .row:last-child:has(> button:nth-of-type(2)):has(> button.go) > button:not(.go){order:1}
  .drawer .db > form > .row:last-child:has(> button:nth-of-type(2)):has(> button.go) > button.go{order:2}
}

/* ---- §4 polish: one icon weight (2 at 14 px), tabular figures on counts and times, a border step on hovered cards
   that open something, the policy sentence's selects one width on one baseline ---- */
svg.ic[width="14"]{stroke-width:2}
svg.ic[width="12"]{stroke-width:2.2}
:is(.count,.badge,.slots,.tm,.uv,.pc,.fcount,.cn,.ap-t,.hr-t,.upd,time){font-variant-numeric:tabular-nums}
.card.cluster-node.linked{transition:border-color var(--dur-1) var(--ease)}
.card.cluster-node.linked:hover{border-color:var(--border-strong)}
.fgrid.pchange{display:flex;flex-wrap:wrap;align-items:center;column-gap:10px;row-gap:8px}
.fgrid.pchange > label.f{display:inline-flex;align-items:center;gap:10px;margin:0;font-size:14px;line-height:36px;color:var(--text)}
.fgrid.pchange > label.f > :is(select,input){width:200px;height:36px;margin:0}
.fgrid.pchange > .hint{flex:1 1 100%;margin:4px 0 0}
@media (max-width:700px){.fgrid.pchange > label.f{flex:1 1 100%}.fgrid.pchange > label.f > :is(select,input){flex:1;width:auto}}
/* the node's and an instance's tools on a phone: the button at the title row's right (32 px), the pill under the title */

.card.o-convo-c > .convo-row > button.disc-btn > .d-t > b{font-weight:600}

/* ---- r13 refinement: one disabled primary, one neutral selection, content-height empty regions ---- */

.side .brow.on::before,.gk:not(.side-rail) .gk-side .gk-row.on::before{display:none}
.side .brow.on,.side .brow.on:hover,.gk .gk-side .gk-row.on,.gk .gk-side .gk-row.on:hover:not(:disabled){background:var(--selected);border-color:transparent;box-shadow:none}
@media (max-width:700px){.side .brow.on,.side .brow.on:hover{background:var(--selected);border-color:var(--border-strong);box-shadow:none}}

/* instance and bot pages open with the same heading block as a node's pages */
.adminview > .pg-head > .ihead.page{margin:0}
.adminview > .pg-head + .attn-band{margin-top:-4px}
.terminal-page > .pg-head{margin:0 0 20px}

/* ---- Images: the list (or its empty state) sized to its content, top-aligned beside the form ---- */
.imgws{align-items:start}
.imgws > .ws-main > .sec,.imgws > .ws-main > .sec > .sec-b{flex:none;display:block}
.imgws .card.imgs,.imgws .card.imgs.is-empty{flex:none;display:block;min-height:0}

.register .cf{flex-wrap:nowrap;align-items:center}
.register .cf > .why{flex:1 1 auto;min-width:0}

.register > .howin > h3.props-h{margin:0 0 10px}
.register > details.howm{margin:16px calc(-1 * var(--card-px)) calc(-1 * var(--card-py));border-top:1px solid var(--border-soft)}
.register > details.howm > summary{min-height:48px;padding:12px var(--card-px)}
.register > details.howm > summary > .d-t > b{font:500 14px/20px var(--sans)}
.register > details.howm > .d-b{margin:0;padding:0 var(--card-px) var(--card-py)}
@media (max-width:700px){.register .cf{flex-wrap:nowrap;flex-direction:column}}

/* the one-row empty state (a small icon tile, the title and its line), where a card has nothing yet */
.empty-state.es-row{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:12px;margin:0}

.empty-state.es-row .es-t{align-items:flex-start;margin:0;gap:1px}

.empty-state.es-row .es-t > span{max-width:none}

/* ---- Access: a read-only legend of the roles, the audit note pinned at the sheet's foot ---- */
.drawer .db:has(> .access-view){display:flex;flex-direction:column}
.drawer .db > .access-view{flex:1 0 auto}
.access-view .levels-block.legend dl.levels{border:0;border-radius:0;background:none;gap:0}
.access-view .levels-block.legend dl.levels > .lvrow{grid-template-columns:28px minmax(0,1fr);grid-template-areas:"ic n" "ic d";min-height:0;padding:8px 0;border-top:0;align-items:start;cursor:default;background:none}
.access-view .levels-block.legend dl.levels .lv-ic{width:28px;height:28px;border-radius:7px;margin-top:1px}
.access-view .levels-block.legend dl.levels > .lvrow > dd{font-size:13px;line-height:18px}
.access-view h3.sub + ul.people{margin-top:4px}
ul.people .person > .tag.role{margin-left:auto}
ul.people .pm .you{color:var(--text);font-weight:500}
.access-view p.lvl-note{margin:auto calc(-1 * var(--drawer-px,24px)) calc(-1 * var(--sp-6));padding:14px var(--drawer-px,24px);border-top:1px solid var(--border-soft);font-size:13px;line-height:18px;color:var(--text-2)}

/* ---- Checkpoints: how they work folds into the actions card's foot ---- */
.card.ckform > details.ckhow-d{margin-top:0}
.card.ckform > form > footer.cf + * {margin-top:0}
ul.ckhow-l{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px;font-size:13px;line-height:19px;color:var(--text-2)}
ul.ckhow-l b{font-weight:600;color:var(--text)}
.drawer .db{--drawer-px:24px}
@media (max-width:700px){.drawer .db{--drawer-px:16px}}

/* ---- Egress and memory: two labelled fields (the setting, its new value) on one row, the current value under them ---- */
.policy-bare .fgrid.pchange,.fgrid.pchange{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;align-items:start;margin:0;max-width:560px}
.policy-bare .fgrid.pchange > label.f,.fgrid.pchange > label.f{display:block;margin:0;font-size:13.5px;line-height:20px;color:var(--text)}
.policy-bare .fgrid.pchange > label.f > :is(select,input),.fgrid.pchange > label.f > :is(select,input){display:block;width:100%;min-width:0;height:36px;margin:6px 0 0}
.policy-bare .fgrid.pchange > :is(.hint,.fgrid),.fgrid.pchange > :is(.hint,.fgrid){grid-column:1 / -1;margin:0}
.policy-bare .fgrid.pchange > .fgrid.three{max-width:none}
@media (max-width:700px){.policy-bare .fgrid.pchange,.fgrid.pchange{grid-template-columns:minmax(0,1fr)}.policy-bare .fgrid.pchange > label.f > :is(select,input){height:40px}}

.imgws > .ws-main > .sec{flex:none;display:flex;flex-direction:column}
.terminal-page > .pg-head{margin:0}
.card.ckform:has(> details.ckhow-d) > form > footer.cf{margin-bottom:0}
.card.ckform > details.ckhow-d.foot{margin-top:0}
:is(.ws-main,.ck-list) .ckr .manifest-t{color:var(--text);text-decoration:none}
:is(.ws-main,.ck-list) .ckr .manifest-t:hover:not(:disabled){text-decoration:underline;text-decoration-color:currentColor}

/* the waiting requests: one fixed place at the bar's end, beside Live, as in the Grok view */
.ih-acct > .ih-wait{display:inline-flex;align-items:center}
.ih-acct > .ih-wait > button.tag.waiting{height:28px;min-height:28px;padding:0 10px 0 8px;gap:5px;border-radius:var(--r-pill);font-weight:600;cursor:pointer;box-shadow:none}
.ih-acct > .ih-wait > button.tag.waiting .wl{font-weight:400}
.ih-acct > .ih-wait > button.tag.waiting:hover:not(:disabled){background:var(--warn-soft);border-color:var(--warn);color:var(--warn)}
@media (max-width:700px){
  .ih-acct{display:contents}
  .ih-acct > .ih-wait{order:1;margin:0 4px}
  .ih-acct > .ih-wait > button.tag.waiting{padding:0 9px}
  .ih-acct > .ih-wait > button.tag.waiting .wl{display:none}
  .ih-acct > :not(.ih-wait){order:3}
  .ih-acct > :last-child{margin-right:10px}
}

/* the classic chat's Stream: a neutral bordered toggle; pressed (the pane open) is a neutral fill, never amber */
.chat .ch button.quiet.stream.on,.chat .ch button.quiet.stream.on:hover:not(:disabled){background:var(--selected);border-color:var(--border-strong);box-shadow:none}
.chat .ch button.quiet.stream.on .ic{color:var(--text)}

/* ---- Computer: the two ways to use the screen sit right under it on a phone too (no pinned foot over a void);
   the line under them gives way to About sharing while that is open ---- */
@media (max-width:700px){
  .gk-panel .pb > .scr{flex:none}
  .scr > .scrfoot{order:0;position:static;flex-direction:column;gap:10px;margin:0;padding:0;border-top:0;background:none}
}
.scr:has(> details.scrabout[open]) p.scrcaps{display:none}

.flist button.frow .cv.cv-f{opacity:0;transition:opacity var(--dur-1) var(--ease)}
.flist button.frow:is(:hover,:focus-visible) .cv.cv-f{opacity:1}
.flist button.frow .sz{text-align:right;justify-self:end}

/* ---- Tools: one row anatomy (icon, title over its line, the status pill, the action) and auto-width actions;
   on a phone the pill and the action share a row under the text ---- */

/* ids in property lists read as plain mono values (a click still copies them) */
dl.props .pr.pm-id .idchip{height:auto}
dl.props .pr.pm-id .idchip:hover:not(:disabled){text-decoration:underline;text-underline-offset:3px}

/* the typed-confirm footer: the field fills the row, the commit at its right, the reason under both (phones too) */
.cf:has(> label.f.confirm){grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"l l" "i b" "w w"}
@media (min-width:701px){.ws-main .cf:has(> label.f.confirm) > label.f.confirm > input{max-width:none}}
@media (max-width:700px){.cf:has(> label.f.confirm){grid-template-columns:minmax(0,1fr);grid-template-areas:"l" "i" "b" "w"}}

/* ---- Overview: a meter's value and share on its label row; the health table without the cards' Reachable; an idle
   node on a phone is one line, not four empty meters ---- */
.cluster-node .use{grid-template-columns:auto minmax(0,1fr);grid-template-areas:"k k" "v p" "m m";column-gap:0;row-gap:6px}
.cluster-node .use > .pc{text-align:left;justify-self:start}
.cluster-node .use > .pc::before{content:"·";margin:0 6px;color:var(--text-2)}
.cluster-node .use > .meter{margin-top:2px}
.card.health .hlrow{grid-template-columns:minmax(120px,1.2fr) minmax(0,1.2fr) minmax(0,.9fr) minmax(0,.9fr) minmax(0,.8fr)}
.cluster-node .idle-l{display:none}
@media (max-width:700px){
  .cluster-node .use{grid-template-columns:minmax(0,1fr) auto auto;grid-template-areas:"k v p" "m m m";row-gap:8px}
  .cluster-node .use > .uv{justify-self:end}
  .cluster-node :is(.usage,.bystate).zero{display:none}
  .cluster-node .idle-l{display:flex;align-items:center;gap:8px;margin:0;font-size:14px;line-height:20px;color:var(--text-2)}
  .cluster-node .idle-l > .ic{flex:none;color:var(--ok)}
  .card.health .hlrow{grid-template-columns:minmax(0,1fr) auto auto}
  .card.health .hc .hl{position:static;width:auto;height:auto;overflow:visible;clip-path:none;font-size:13px;color:var(--text-2)}
}

/* property lists keep two columns on a phone (a 108 px key), as on a desktop */
@media (max-width:700px){
  dl.props:not(.inline):not(.stack) > .pr:not(.wide){row-gap:0}
  
  
  
}
.card.o-convo-c > .convo-row > .convo-t{padding:12px var(--card-px)}
@media (max-width:700px){section.card.railx > details.disc > summary{padding:14px var(--card-px)}section.card.railx > details.disc > .d-b{padding:0 var(--card-px) var(--card-px)}}

/* ---- History: the table as wide as every other page's content; By narrow, Target wider; every kind's icon in its tile ---- */
.history-view,.history-view .card.hcard,.history-view > .card,.history-view .history-main > .card{max-width:none}
@media (min-width:701px){.hcols,.hrow.optab{grid-template-columns:minmax(240px,1.2fr) minmax(260px,1.8fr) 132px 96px}}
.hrow.optab .hop .kic.k-egress{display:inline-grid;place-items:center;width:28px;height:28px;flex:none;border-radius:8px;background:var(--warn-soft);color:var(--warn)}

/* ---- New instance: group titles a step above the field labels; the profile's resources a plain stat row ---- */
.drawer form.newinst fieldset.grp > legend{margin:0 0 16px;font:600 16px/22px var(--sans);text-transform:none;letter-spacing:-.01em;color:var(--text)}
.drawer form.newinst fieldset.grp label.f{font-size:13.5px;font-weight:400}

/* ---- Home: add a bot is a small round + (its name stays for assistive technology); the bots waiting say so ---- */
.ipanel .ip-bots > button.addbot{width:28px;padding:0;justify-content:center;gap:0;border:1px solid var(--border);border-radius:50%}
.ipanel .ip-bots > button.addbot > .lt{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.ipanel .ip-bots > button.addbot:hover:not(:disabled){border-color:var(--border-strong);background:var(--hover)}
.ipanel .ip-bk .ip-wn{font-weight:400;color:var(--warn)}

/* ---- phones: a checkpoint's ⋯ centred on its two lines; a request row's reason on its own line (no dangling ·)
   and its chevron the same bordered box as Deny; the page tabs a little tighter ---- */
@media (max-width:700px){
  :is(.ws-main,.ck-list) .ckr{grid-template-areas:"l m" "s m"}
  :is(.ws-main,.ck-list) .ck-m{grid-area:m;align-self:center}
  .apr-l2.mline > .apr-q{flex-basis:100%;white-space:normal}
  .apr-l2.mline > :has(+ .apr-q)::after{content:none}
  .apr-a > .apr-more{border:1px solid var(--border-strong);border-radius:var(--r-md);background:var(--btn-bg);color:var(--text)}
  .ihx .subnav{gap:18px}
}

@media (max-width:700px){.hrow.optab .hmeta{padding-left:40px}}

/* ==== r14: one bar, one selection, one disabled primary, one commit footer, one disclosure; content-height regions ==== */

/* ---- C10 one instance bar for the classic pages and the Grok view: 52 px. ‹, the mark, the node, / the instance and
   its state, its pages as tabs on the bar's bottom edge; then the waiting requests, ⋯, a hairline, Live, the account ---- */
@media (min-width:701px){.ihead.ihx{padding:0 16px 0 12px}}
.ihx .ih-row{min-height:52px;gap:8px}
@media (min-width:1101px){.ihx .subnav{margin:0 0 0 20px;gap:22px}.ihx .subnav .stab{min-height:52px}}
.ihx .ih-acts{gap:4px;height:32px}
.ihx .ih-gap{flex:1}
.ihx .ih-acts > .menu > button.ib.more{width:32px;height:32px;min-height:32px}
.ih-wait{display:inline-flex;align-items:center;margin:0 4px}
.ih-wait > button.tag.waiting{height:28px;min-height:28px;padding:0 10px 0 8px;gap:5px;border:0;border-radius:var(--r-pill);background:var(--warn-soft);color:var(--warn);font:600 13px/1 var(--sans);font-variant-numeric:tabular-nums;cursor:pointer;box-shadow:none}
.ih-wait > button.tag.waiting .wl{font-weight:400}
.ih-wait > button.tag.waiting:hover:not(:disabled){background:var(--warn-soft);box-shadow:inset 0 0 0 1px var(--warn-border);color:var(--warn)}
.ih-wait > button.tag.waiting::before{content:none}
.ih-acct{display:flex;align-items:center;gap:12px;height:20px;margin-left:6px;padding-left:14px;border-left:1px solid var(--border)}
/* the Grok view's bar is the same bar */
.gk .gk-bar.ihx{display:block;height:auto;padding:0 16px 0 12px;background:var(--bg);border-bottom:1px solid var(--border)}
.gk .gk-bar.ihx .gk-nodem{display:inline-flex}
.gk .gk-bar.ihx .gk-mbtn{width:auto;height:32px;min-height:32px}
.gk .gk-bar.ihx .gk-menu-btn,.gk .gk-bar.ihx .gk-acctm-btn{width:32px;padding:0}
.gk-bar .gk-menu .grp.m-acct,.gk .gk-bar .gk-menu .grp.m-acct{display:none}
.ihx .ih-acct .gk-acctm-btn{width:32px;height:32px;min-height:32px;padding:0;border:0;border-radius:50%;background:transparent}
@media (max-width:1100px) and (min-width:701px){.gk .gk-bar.ihx .ih-row{flex-wrap:nowrap}.gk .gk-bar.ihx .subnav{display:none}}
@media (max-width:700px){
  .ihx .ih-row{column-gap:2px}
  .ihx .ih-t{height:52px}
  .ihx .ih-acts{order:2;gap:0;height:auto}
  .ih-wait{margin:0 2px}
  .ih-wait > button.tag.waiting{height:28px;min-height:28px;padding:0 9px}
  .ih-wait > button.tag.waiting .wl{display:none}
  .ih-acct{display:flex;order:3;gap:6px;height:auto;margin:0 8px 0 2px;padding:0;border:0}
  .ih-acct > :last-child{margin-right:0}
  .ihx .ih-acct .gk-acctm-btn{width:40px;height:40px;min-height:40px}
  .gk .gk-bar.ihx{padding:0;border-bottom:0}
  .gk .gk-bar.ihx .subnav{display:none}
  .gk .gk-bar.ihx .gk-menu-btn{width:40px;height:40px;min-height:40px}
}

/* ---- C2 one selection language: choice cards in a row (four wrap two by two in a narrow column), a list on a phone;
   the chosen one an amber edge (1.5 px, no jump), a faint wash and an amber dot ---- */

/* the selected bot chip on a phone: the amber edge and wash */
@media (max-width:700px){.side .brow.on,.side .brow.on:hover{background:var(--surface-2);border-color:var(--border-strong);box-shadow:inset 0 0 0 .5px var(--border-strong)}}

/* ---- C4 one commit footer: the card's only divider, a tinted strip; a typed confirm is the label, then the field and
   the commit on one row, then the reason ---- */
.card footer.cf,.card .cf{background:transparent;border-top:1px solid var(--border);padding:14px var(--card-px);margin-top:20px}
.cf:has(> label.f.confirm){column-gap:8px;row-gap:8px}
.cf > label.f.confirm > .cf-l{font-size:13.5px}
.cf > .why,.cf > .cf-note{font-size:13px;line-height:18px}
@media (max-width:700px){.card footer.cf,.card .cf{padding:14px var(--card-px) 16px}}

/* ---- C3 inputs: a 1 px border that warms and a soft 3 px ring, never an alarm-orange edge ---- */
.drawer :is(input:not([type]),input[type=text],input[type=number],select,textarea):is(:focus,:focus-visible){border-color:var(--focus-border);box-shadow:var(--focus-ring)}
label.drop:focus-within{border-color:var(--focus-border)}

/* ---- C8 hierarchy: plain counts, the one eyebrow for property groups, a higher floor for muted text ---- */
.sec-tt > h2 > .count,.access-view h3.sub > .count,.card > .ch .count,:is(h3.sub,.eyebrow) .count{display:inline;font-variant-numeric:tabular-nums}
.props-h,.gk-panel .gk-dh,.gk-dh.props-h{margin:24px 0 8px;font:600 13px/18px var(--sans);letter-spacing:.04em;text-transform:uppercase;color:var(--text-2)}
.props-h:first-child,.gk-panel .gk-dh:first-child{margin-top:0}

/* status chips: one spec (22 px, a 6 px dot, sentence case, a soft tint, no border) */
.tag,.istate{height:22px;border:0}
/* inline code: one chip */
:is(.cf-l,.fhelp,.gk-step,.tl-d,.crow) code.idchip,.cf-l code.idchip{height:auto;padding:1px 6px;border-radius:6px;background:var(--code-bg);box-shadow:inset 0 0 0 1px var(--border-soft);color:var(--text);font:400 12.5px/18px var(--mono)}

/* ---- C13 page titles: state pills inline with the H1, wrapping only when they must ---- */
@media (max-width:700px){
  .ihead.page .ttl > .tl{flex-direction:row;align-items:center;flex-wrap:wrap;gap:8px 10px}
  .ihead.page .ttl h2{font-size:24px;line-height:30px;font-weight:700}
  .ihead.page .sub{margin-top:4px}
}

/* ---- C14 one disclosure row: 56 px, the title 14/600, an optional muted line, the chevron in a 32 px box ---- */
details.disc > summary{min-height:56px;padding:12px 0}
details.disc > summary > .d-t > b,button.disc-btn > .d-t > b{font:600 14px/20px var(--sans)}
details.disc > summary > .d-t > .d-s,button.disc-btn > .d-t > .d-s{font-size:13px;line-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
details.disc > summary > .d-ch,button.disc-btn > .d-ch{box-sizing:content-box;padding:8px;margin:-8px;border-radius:8px}
details.disc[open] > summary{border-bottom:1px solid var(--border-soft);border-radius:var(--r-sm) var(--r-sm) 0 0}
details.disc[open] > .d-b{padding-top:16px}
details.disc > summary > .d-ic{display:inline-grid;place-items:center;width:32px;height:32px;border-radius:8px;background:var(--neutral-soft);color:var(--text-2)}
details.disc.hasic > summary{grid-template-columns:32px minmax(0,1fr) auto 16px}
details.disc.hasic > .d-b{padding-left:44px}

/* ---- C9 danger zones: one compact row (the title over one line, the danger button at the right) ---- */
.dzrow{display:flex;align-items:center;gap:16px;padding:16px var(--card-px,20px);border:1px solid color-mix(in srgb,var(--bad) 32%,transparent);border-radius:var(--r-lg);background:transparent}
.dzrow > .dz-t{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.dzrow > .dz-t > b{font:600 14px/20px var(--sans);color:var(--text)}
.dzrow > .dz-t > span{font-size:13px;line-height:18px;color:var(--text-2)}
.dzrow > button.danger{flex:none;height:32px;min-height:32px;padding:0 14px}
.dzrow > .dz-pick{flex:none;margin:0}
.dzrow > .dz-pick > button.danger{height:32px;min-height:32px;padding:0 14px}
@media (max-width:700px){.dzrow{flex-direction:column;align-items:stretch;gap:12px;padding:16px}.dzrow > button.danger,.dzrow > .dz-pick > button.danger{height:40px;min-height:40px;width:100%}.dzrow > .dz-pick{width:100%}}

/* ---- meters: a semantic fill (ok, warn from 75 %, bad above 90 %) on a visible track ---- */

/* ---- P2: aligned numerals, balanced headings, thin themed scrollbars, wide-screen restraint, row hovers ---- */
:is(.statstrip-c,.meter,table,.hrow,.flist,.ckr,.uv,.pc,.sz,.tm,.ts,.count,.cn,dl.props dd,dl.kv dd){font-variant-numeric:tabular-nums}
:is(h1,h2,h3,.es-t b){text-wrap:balance}
:is(.gk-panel .pb,.drawer .db,.gk-sheet,.pop-scroll,.gk-side){scrollbar-width:thin;scrollbar-color:var(--border-strong) transparent}
@media (min-width:1441px){.app-page > :is(.adminview,.images-view,.history-view,.node-view,.home-view,.cluster-view){max-width:1240px;margin-inline:auto}}

/* ---- C11 one egress request on every surface: Allow (the primary) first, Deny, then More (a reason for the agent and
   the ids, in a small popover) ---- */
details.ap-more{position:relative;flex:none}
details.ap-more[open]{flex-basis:auto}
details.ap-more > summary{height:32px;min-height:32px;padding:0 8px 0 10px;gap:4px;color:var(--text);font-weight:500;font-size:13px}
details.ap-more > .apm{position:absolute;left:0;top:calc(100% + 6px);z-index:var(--z-menu);width:max-content;min-width:240px;max-width:min(360px,calc(100vw - 48px));display:flex;flex-direction:column;align-items:flex-start;gap:6px;
  padding:10px 12px 12px;border:1px solid var(--menu-edge);border-radius:var(--r-lg);background:var(--raised);box-shadow:var(--shadow-3);font-size:13px;color:var(--text-2)}
details.ap-more > .apm > .apm-h{margin:4px 0 0;font:600 13px/18px var(--sans);letter-spacing:.04em;text-transform:uppercase;color:var(--text-2)}
details.ap-more > .apm > .apm-h:first-child{margin-top:0}
details.ap-more > .apm > p{margin:0;display:flex;align-items:center;flex-wrap:wrap;gap:4px 6px}
details.ap-more > .apm > button.addwhy{margin:0 0 2px -8px;height:32px;min-height:32px;padding:0 8px;background:transparent;border-color:transparent;color:var(--text);font-weight:500}
section.approvals.waitreq,section.approvals.card.attn{overflow:visible}
.apr-a > button.apr-more{height:32px;min-height:32px;padding:0 6px 0 10px;gap:4px;color:var(--text);font-weight:500}
.apr-a > button.apr-more .ic{color:var(--text-2)}
.apr-a{gap:8px}
@media (max-width:700px){
  :is(.approval-actions,.gk-egress .acts):has(> .ap-main){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 40px;gap:8px}
  :is(.approval-actions,.gk-egress .acts) > .ap-main{display:contents}
  :is(.approval-actions,.gk-egress .acts) > details.ap-more{position:static}
  :is(.approval-actions,.gk-egress .acts) > details.ap-more > summary{width:40px;height:40px;min-height:40px;padding:0;justify-content:center;border:1px solid var(--border-strong);border-radius:var(--r-md)}
  :is(.approval-actions,.gk-egress .acts) > details.ap-more > summary > .lt{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  :is(.approval,.gk-egress):has(details.ap-more){position:relative}
  :is(.approval-actions,.gk-egress .acts) > details.ap-more > .apm{left:12px;right:12px;top:auto;width:auto;min-width:0;max-width:none;margin-top:6px}
  .apr-a{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 40px;gap:8px;width:100%}
  .apr-a > button{height:40px;min-height:40px}
  .apr-a > button.apr-more{width:40px;padding:0;justify-content:center;border:1px solid var(--border-strong);border-radius:var(--r-md)}
  .apr-a > button.apr-more > .lt{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
}

/* ---- instance administration: the policy fields fill the row; the tools as one row anatomy ---- */
.policy-bare .fgrid.pchange,.fgrid.pchange{max-width:none}

/* ---- documentation cards (how registration works, how checkpoints work): numbered or bulleted steps beside the form ---- */
.card.howcard > .hc-h{margin:0 0 14px;font:600 14px/20px var(--sans);color:var(--text)}

.card.howcard ul.ckhow-l{gap:10px;font-size:13px;line-height:19px}
.card.howcard.railx{padding:0}
.card.howcard.railx > details.disc > .d-b{padding-left:0}
/* images: the list (or its one-row empty state) and how it works at the left, the form at the right; nothing after its footer */
.imgws > .ws-main{display:flex;flex-direction:column;gap:24px}
.imgws .card.imgs.is-empty{padding:0}

.register > form > footer.cf{margin-bottom:calc(-1 * var(--card-py))}
.register > form > footer.cf > .why{flex:1 1 auto}
@media (max-width:700px){.register .cf{flex-direction:column;align-items:stretch}.imgws > .ws-main{gap:16px}}
.imgws > .ws-rail > .sec > .sec-b > .card.register > .opstate:empty{display:none}
/* checkpoints: the table across the page, then the action form and how it works side by side */
.checkpoint-view > .sec.ck-list{margin:0 0 32px}
.checkpoint-view > .ws.ck{align-items:start}
.card.ckform > form > footer.cf{margin-bottom:calc(-1 * var(--card-py))}
.card.ckform > form > .fgrid{column-gap:16px}

@media (max-width:700px){.checkpoint-view > .sec.ck-list{margin-bottom:20px}.card.ckform > form > .fgrid{grid-template-columns:minmax(0,1fr)}}

/* ---- the access drawer: invite (one row, a helper under it), the people as a list card, then a read-only legend ---- */

.overlay{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}
:root[data-theme="light"] .overlay{background:rgba(28,24,18,.48)}
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]) .overlay{background:rgba(28,24,18,.48)}}
.drawer .db > .access-view{flex:none;display:flex;flex-direction:column}
.access-view form.share{margin:0}
.access-view form.share > h3.sub{margin:0 0 10px}
.access-view .share-row{display:grid;grid-template-columns:minmax(0,1fr) 128px auto;gap:8px;align-items:center}
.access-view .share-row > label.f{margin:0}
.access-view .share-row :is(input,select){height:36px;min-height:36px;margin:0;width:100%}
.access-view .share-row > button{height:36px;min-height:36px;margin:0;padding:0 16px}
.access-view p.share-help{margin:8px 0 0;font-size:13px;line-height:18px;color:var(--text-2)}
.access-view > h3.sub{margin:28px 0 10px;font:600 14px/20px var(--sans);color:var(--text)}
.access-view > form.share + h3.sub{margin-top:28px}
.access-view > h3.sub:first-child{margin-top:0}
.access-view ul.people{list-style:none;margin:0;padding:0;border:1px solid var(--border);border-radius:10px;overflow:hidden;background:transparent}
.access-view ul.people > li.person{display:flex;align-items:center;gap:12px;min-height:56px;margin:0;padding:10px 14px;border:0;border-top:1px solid var(--border-soft);border-radius:0;background:none;transition:background var(--dur-1) var(--ease)}
.access-view ul.people > li.person:first-child{border-top:0}
.access-view ul.people > li.person:hover{background:var(--hover)}
.access-view ul.people .pav{width:32px;height:32px;flex:none}
.access-view ul.people .pw{display:flex;flex-direction:column;gap:1px;min-width:0;flex:1}
.access-view ul.people .pw > b{font:500 14px/20px var(--sans);color:var(--text)}
.access-view ul.people .pm{font-size:13px;line-height:18px;color:var(--text-2)}
.access-view p.lvl-note{margin:10px 0 0;padding:0;border:0;font-size:13px;line-height:18px;color:var(--text-2)}
.access-view .levels-block.legend{margin:28px 0 0;padding:0;border:0}
.access-view .levels-block.legend > h3.sub{margin:0 0 8px;font:600 13px/18px var(--sans);color:var(--text)}
.access-view .levels-block.legend dl.levels{display:flex;flex-direction:column;gap:8px;margin:0;padding:12px 14px;border:0;border-radius:10px;background:var(--surface-2)}
.access-view .levels-block.legend dl.levels > .lvrow{display:grid;grid-template-columns:72px minmax(0,1fr);grid-template-areas:none;column-gap:12px;align-items:baseline;min-height:0;padding:0;border:0;background:none;cursor:default}
.access-view .levels-block.legend dl.levels > .lvrow > dt{display:block;grid-area:auto;margin:0;font:600 13px/19px var(--sans);color:var(--text)}
.access-view .levels-block.legend dl.levels > .lvrow > dd{grid-area:auto;margin:0;font-size:13px;line-height:19px;color:var(--text-2)}
@media (max-width:700px){
  .access-view .share-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .access-view .share-row > label.su{grid-column:1 / -1}
  .access-view .share-row :is(input,select),.access-view .share-row > button{height:40px;min-height:40px}
}

.card.register .cf,.card.register footer.cf{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:12px}
.card.register .cf > .why{flex:1 1 auto;min-width:0}
.card.register .cf > button{margin:0;flex:none}
@media (max-width:700px){.card.register .cf,.card.register footer.cf{flex-direction:column;align-items:stretch}}
:is(.ws-main,.ck-list) .ckr .manifest-t,:is(.ws-main,.ck-list) .ckr .manifest-t:hover:not(:disabled),.ckr .manifest-t{text-decoration:none;color:var(--text)}
.ckr .manifest-t:hover:not(:disabled){text-decoration:underline;text-decoration-style:solid;text-decoration-color:currentColor;text-underline-offset:3px}
.ckr .manifest-t > span{text-decoration:none;border:0}
.checkpoint-view > .sec.ck-list{margin-bottom:12px}
@media (max-width:700px){.checkpoint-view > .sec.ck-list{margin-bottom:4px}}

/* ---- Computer: the window's title sits inside the frame's bottom row between Live and full screen (frosted chips on a
   gradient); Use screen and Take over are two equal secondary buttons; About sharing is a closed disclosure ---- */
.scrframe > .scrstate{gap:8px;align-items:center;min-height:52px;padding:12px 10px 10px;justify-content:flex-start}
.scrframe > .scrstate .tag.scrctl{flex:none;height:28px}
.scrframe > .scrstate > .scrtitle{display:flex;flex:1 1 auto;flex-direction:row;align-items:center;gap:6px;min-width:0;margin:0;padding:0 2px;color:#fff;pointer-events:auto}
.scrframe > .scrstate > .scrtitle > .scrlbl{flex:none;font:400 13px/18px var(--sans);color:rgba(255,255,255,.72)}
.scrframe > .scrstate > .scrtitle > .scrname{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:500 13px/18px var(--sans);color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.5)}
.scrframe > .scrstate button.ib.full{flex:none;margin-left:auto}
.scrframe{border-radius:12px}

.scr{gap:16px}
ul.scr-how{margin:0;padding:0 0 0 16px;display:flex;flex-direction:column;gap:6px}
ul.scr-how b{color:var(--text);font-weight:600}

/* ---- the classic chat on a phone: the shell is the window's height (the composer pinned, no page overflow); the bot
   chips, + and Stream all 36 px (Stream an icon chip, its name kept for assistive technology) ---- */
@media (max-width:700px){
  .app-page:has(> .iview){height:100vh;height:100dvh;min-height:0;display:flex;flex-direction:column;padding-bottom:0;overflow:hidden}
  .app-page > .iview{flex:1 1 auto;display:flex;flex-direction:column;min-height:0}
  .app-page > .iview > .ibody,.app-page > .iview > .ibody.pane,.app-page > .iview.streaming > .ibody{flex:1 1 auto;height:auto;min-height:0}
  .side .brow{min-height:36px;height:36px}
  .side .add{width:36px;min-width:36px;height:36px;min-height:36px}
  .side-x > button.ib.stream-ic,.side button.ib.stream-ic{width:36px;height:36px;min-height:36px;padding:0;justify-content:center;border-radius:50%}
  .side button.ib.stream-ic .sl{display:none}
  .ihx .subnav.ovf{-webkit-mask-image:linear-gradient(90deg,#000 85%,transparent);mask-image:linear-gradient(90deg,#000 85%,transparent)}
}

/* ---- overview: idle nodes say so in one line (no four empty tracks); Health columns fixed, the daemon a pill; one pill
   per node on a phone ---- */
.cluster-node .idle-l{display:flex;align-items:center;gap:8px;margin:0;font-size:14px;line-height:20px;color:var(--text-2)}
.cluster-node .idle-l > .ic{flex:none;color:var(--ok)}
.cluster-node :is(.usage,.bystate).zero{display:none}
.card.health .hlrow{grid-template-columns:20% 24% 20% 16% 20%;column-gap:0;padding:0 20px}
.card.health .hlrow > *{padding-right:12px;min-width:0}
.card.health .hlrow > :is(.hf,.hu),.card.health .hlrow.hhead > :nth-child(4),.card.health .hlrow.hhead > :nth-child(5){text-align:right;justify-self:end}
.card.health .hc .tag{height:22px}
.card.health .hc .hl{position:static;width:auto;height:auto;overflow:visible;clip-path:none;font-size:13px;color:inherit}
.card.health .hsum{display:none}
@media (max-width:700px){
  .card.health .hlrow{grid-template-columns:minmax(0,1fr) auto;padding:0 16px}
  .card.health .hlrow > :is(.hc,.ha,.hf,.hu){display:none}
  .card.health .hsum{display:inline-flex;justify-self:end}
}

/* ---- history: every kind's icon in a 28 px tile tinted by its kind; the time on the title's line on a phone ---- */
.hrow.optab .hop .kic.kic{width:28px;height:28px;border-radius:8px;background:var(--neutral-soft);color:var(--text-2)}
.hrow.optab .hop .kic.k-new{background:var(--ok-soft);color:var(--ok)}
.hrow.optab .hop .kic.k-egress{background:var(--warn-soft);color:var(--warn)}
.hrow.optab .hop .kic.k-bad{background:var(--bad-soft);color:var(--bad)}
.hrow.optab .hop .kic.k-msg{background:var(--info-soft);color:var(--info)}
.hrow.optab .hop .kic .ic{width:14px;height:14px}

/* ---- home: Suspend and Resume quiet at the card's foot, Open the bordered way in; a released memory a plain track ---- */

.ipanel .usage.rel .meter{margin:0}
.ipanel .usage.rel .rel-v{color:var(--text-2)}
.ipanel .act{display:grid;grid-template-columns:16px minmax(0,1fr) 64px;align-items:center;column-gap:8px}
.ipanel .act > .w{justify-self:end;text-align:right}
.ipanel .act > .x{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ipanel .act > .x > .t{font-weight:500}

/* ---- new instance: section titles over a hairline; what the profile includes on one quiet strip (one line on wide
   screens, two by two on a phone, the label over the value); helpers a step quieter ---- */
.drawer form.newinst fieldset.grp > legend{margin:0 0 12px;font:600 15px/22px var(--sans)}
.drawer form.newinst fieldset.grp + fieldset.grp{margin-top:28px;padding-top:24px;border-top:1px solid var(--border-soft)}
.drawer form.newinst p.fhelp{font-size:13px;line-height:18px}

/* ---- the activity timeline: one heavier rail through every node's centre ---- */
:is(.crow,.cgh:not(:first-child),.clive)::before{width:1.5px;left:19.25px}

/* ---- history's end: a centred caption, no rules ---- */

/* ---- tools: one row anatomy, a 32 px icon tile, the status pill beside a fixed-width action column (buttons in one column) ---- */

.node-view > .nres{margin-bottom:4px}

/* ---- the state pill's warn tone (a bot that needs approval), the same pill as Ready; a phone's bot bar keeps its word ---- */
.istate.warn{background:var(--warn-soft);color:var(--warn)}
.istate.warn .dot{background:var(--warn-dot)}
@media (max-width:700px){
  .ihx.bot .ih-title > .istate{height:22px;padding:0 8px 0 7px}
  .ihx.bot .ih-title > .istate.warn{background:var(--warn-soft)}
  .ihx.bot .ih-title > .istate > span:not(.dot):not(.vh){position:static;width:auto;height:auto;overflow:visible;clip-path:none}
  .ihx.bot .ih-t{flex-direction:row;align-items:center;justify-content:flex-start}
  .ihx.bot .ih-sub{display:none}
}

/* ---- the classic chat on wide screens: a 240 px bots column; the three column heads one 56 px band on one rule; Stream
   the first segment of the chat header's toolbar ---- */
@media (min-width:1101px){
  .ibody{grid-template-columns:240px minmax(0,1fr)}
  .ibody.pane{grid-template-columns:240px minmax(0,1fr) 360px}
  .ibody.pane.wide{grid-template-columns:240px minmax(0,1fr) minmax(480px,56%)}
}
@media (min-width:701px){
  .side .h,.chat .ch,.rpane .ph{box-sizing:border-box;height:56px;min-height:56px;max-height:56px;border-bottom:1px solid var(--border)}
  .chat > .ch > button.stream,.chat > .ch > button.stream.on{height:32px;min-height:32px;margin-left:auto;padding:0 12px 0 10px;border:1px solid var(--border);border-right:0;border-radius:var(--r-md) 0 0 var(--r-md);background:transparent;color:var(--text-2);font-size:13px;font-weight:500}
  .chat > .ch > button.stream:hover:not(:disabled){background:var(--hover);color:var(--text)}
  .chat > .ch > button.stream.on{background:var(--selected);color:var(--text)}
  .chat > .ch > button.stream + .bot-acts{margin-left:0;padding-left:0;border-left:1px solid var(--border);border-radius:0 var(--r-md) var(--r-md) 0}
  .chat .ch .bot-acts > :is(button,.menu > button){height:30px;min-height:30px}
}

/* ---- home on a phone: the node's committed memory a compact card like the instance cards ---- */
.home-view > button.capline,button.capline{height:auto;min-height:52px;margin:0 0 16px;padding:10px 12px 10px 14px;border:1px solid var(--border);border-radius:12px;background:var(--surface-1);box-shadow:var(--shadow-card)}
button.capline:hover:not(:disabled){background:var(--surface-1)}

/* ---- C7 cards end where their content ends: no footer pushed to a neighbour's height ---- */
.inventory > .card-foot,.inventory > .ckpt + .card-foot{margin-top:var(--sp-4)}
.regband > .card.register > form > footer.cf{margin-top:20px}

/* ==== r14 end ==== */

/* ==== r14r: one disabled button, one neutral selection, one chat shell ==== */

@media (max-width:1100px){.chat > .botbar .brow.on,.chat > .botbar .brow.on:hover,.side .brow.on,.side .brow.on:hover{background:var(--surface-2);border-color:var(--border-strong);box-shadow:inset 0 0 0 .5px var(--border-strong)}}
.access-view dl.levels > .lvrow.on,.access-view dl.levels > .lvrow.on:hover{background:var(--selected)}
.access-view dl.levels .lvrow.on .lv-ic{background:var(--neutral-soft);color:var(--text)}

/* the Grok view's bar shows the instance's pages as tabs at every width, as the classic bar does (a second row below
   1100 px); on a phone one rule under the tab row, none above */
@media (max-width:1100px){.gk .gk-bar.ihx .ih-row{flex-wrap:wrap}.gk .gk-bar.ihx .subnav{display:flex}}
@media (max-width:700px){
  .ihx .subnav{border-top:0}
  .gk .gk-bar.ihx .subnav{border-bottom:1px solid var(--border)}
}

/* the classic bots column is the Grok sidebar's width */
@media (min-width:1101px){
  .ibody{grid-template-columns:264px minmax(0,1fr)}
  .ibody.pane{grid-template-columns:264px minmax(0,1fr) 360px}
  .ibody.pane.wide{grid-template-columns:264px minmax(0,1fr) minmax(480px,56%)}
}

/* a phone's bot bar: the bot (its state as a dot, as the instance's), the instance under it */
@media (max-width:700px){
  .ihx.bot .ih-t{flex-direction:column;align-items:flex-start;justify-content:center;gap:0}
  .ihx.bot .ih-sub{display:block;margin:0 0 0 34px;font-size:13px;line-height:16px;color:var(--text-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:calc(100% - 34px)}
  .ihx.bot .ih-title > .istate,.ihx.bot .ih-title > .istate.warn{height:auto;padding:0;background:none}
  .ihx.bot .ih-title > .istate > span:not(.dot):not(.vh){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
}

.access-view h3.sub,.access-view form.share h3.sub,.access-view .levels-block.legend > h3.sub{font:600 14px/20px var(--sans);letter-spacing:0;text-transform:none;color:var(--text)}
.access-view .share-row :is(input,select){height:36px;min-height:36px;line-height:20px;padding-top:7px;padding-bottom:7px;box-sizing:border-box}
.access-view .share-row select{padding-top:0;padding-bottom:0;line-height:34px}

/* ---- per-view refinements ---- */
/* Last change: what changed, then when, on its own muted line (no orphan separator) */
.chg-t{display:block}
.chg-m{display:block;margin-top:2px;font-size:13px;line-height:18px;color:var(--text-2)}
/* a property group's overline sits closer to its rows than to the group above */
.props-h,.gk-panel .gk-dh,.gk-dh.props-h{margin:28px 0 8px}
.props-h:first-child,.gk-panel .gk-dh:first-child{margin-top:0}
/* the overview: an idle node's free capacity fills its card's spare height, centred, so both cards end together;
   Health sized to its content (the pills in fixed columns, the number and the time right-aligned) */
@media (min-width:701px){
  .cluster-node .idle-l{flex:1 1 auto;flex-direction:column;justify-content:center;align-items:center;gap:6px;min-height:72px;margin:0;padding:16px;border-radius:10px;background:var(--neutral-soft);text-align:center;font-size:13.5px}
  .cluster-node .idle-l > .ic{width:18px;height:18px}
  .card.health .hlrow{grid-template-columns:minmax(0,1fr) 190px 150px 150px 140px}
}
/* help beside a form is a muted note, not a second card: Images' and Checkpoints' "How … works" */
@media (min-width:701px){
  .card.howcard:not(.railx){padding:4px 4px 0;border:0;border-radius:0;background:none;box-shadow:none}
  .card.howcard:not(.railx) > :is(.hc-h,h3,h2){margin:0 0 12px;font:600 14px/20px var(--sans);color:var(--text)}
  
  
}
/* node host facts: the identifiers in mono at the values' size and colour */

/* Checkpoints: the name at most 40 %, the other columns sharing the rest */
@media (min-width:701px){:is(.ws-main,.ck-list) .ckcols,:is(.ws-main,.ck-list) .ckr{grid-template-columns:minmax(0,4fr) minmax(0,2fr) minmax(0,2fr) minmax(0,2fr) 40px}}
/* History: the end line left-aligned with the rows */

/* every disclosure's chevron sits on its row's middle; a phone's tool rows share the disclosures' icon column */
.toolscard.tools2 .tool.fold > details > summary{align-items:center}
.toolscard.tools2 .tool.fold > details > summary > .ic:last-child,details.disc > summary > .d-ch{align-self:center}

/* a phone's four choice cards: two by two */

/* the overview's idle panel: a faint well; Images' note on the card edge */
@media (min-width:701px){.cluster-node .idle-l{background:color-mix(in srgb,var(--surface-2) 60%,transparent)}.card.howcard:not(.railx){padding:4px 0 0}}

/* an instance card's lifecycle action: a hairline secondary button beside the stronger Open */
.ipanel .acts > button.quiet.lc{margin-left:-2px}

/* the activity's tool chips: the chat's chip padding; the screen's window caption takes what Live and full screen leave */
.crow:is(.k-tool,.k-ok) .d{padding:0 8px}
.scrframe > .scrstate > .scrtitle{flex:1 1 0}

/* node administration on a phone: the title, what the page is for, then the admissions pill */
@media (max-width:700px){
  .node-view .ihead.page .ttl{display:flex;flex-direction:column;align-items:flex-start}
  .node-view .ihead.page .ttl > .tl{display:contents}
  .node-view .ihead.page .ttl > .sub{order:2}
  .node-view .ihead.page .ttl > .tl > .pills{order:3;margin:10px 0 0}
}

/* the overview's status chip under the heading on the narrowest phones */
@media (max-width:400px){.cluster > .ihead.page > .hlinks.upd-w{grid-column:1 / -1;grid-row:auto;justify-self:start;align-self:start;margin:12px 0 0 -2px}}

/* ==== r14r end ==== */

/* ==== r15 ==== */
/* ---- C1 one disabled look for every button kind: outlined, unfilled, a readable label, no hue (a disabled primary
   loses its amber, a danger its red); borderless controls (icon buttons, tabs, radios, menu items, chips) keep theirs ---- */

a.go[aria-disabled=true]{opacity:1;background:var(--off-bg);border:1px solid var(--off-border);color:var(--off-fg);box-shadow:none;cursor:not-allowed;transform:none;font-weight:500}
:is(button,.gk .gk-btn):disabled:not(.quiet,.ib,.link,.it,.gk-icon) .ic{color:inherit}
/* the composers' send: a transparent circle with the hairline ring and the muted arrow */
.composer button.go.send:disabled,.composer button.go.send:disabled:hover,.gk .gk-send:disabled,.gk .gk-send:disabled:hover{opacity:1;background:var(--go-off-bg);border:1px solid var(--go-off-border);box-shadow:none;color:var(--go-off-fg);cursor:not-allowed}
:is(button.ib,.gk .gk-icon):disabled{opacity:.45;cursor:not-allowed}
/* the reason a commit is off is a status beside it: the info icon and 13/500 secondary text */
p.why{display:flex;align-items:center;gap:6px;margin:0;font-size:13px;line-height:18px;font-weight:500;color:var(--text-2)}
p.why > .ic{flex:none;width:14px;height:14px;color:var(--text-2)}
p.why:empty{display:none}

/* ---- C2 one selection language: neutral. A choice tile chosen: a 1.5 px mid-grey edge (no layout jump), the second
   surface and a filled dot in the text colour; the others a strong hairline ---- */

/* a bot row chosen in either sidebar: the selected fill and a 3 × 20 px accent bar inset 4 px; hover is only the fill */
.side .brow,.gk .gk-side .gk-row{position:relative}
@media (min-width:701px){
  .side .brow.on,.side .brow.on:hover,.gk .gk-side .gk-row.on,.gk .gk-side .gk-row.on:hover:not(:disabled){background:var(--selected);border-color:transparent;box-shadow:none}
  .side .brow.on::before,.gk:not(.side-rail) .gk-side .gk-row.on::before{content:"";display:block;position:absolute;left:4px;top:50%;width:3px;height:20px;margin-top:-10px;border-radius:2px;background:var(--accent)}
}
/* the classic phone chips: chosen is the wash with an accent hairline, the others a quiet fill with no border */
@media (max-width:1100px){
  .chat > .botbar .brow,.side .brow{background:var(--surface-2);border-color:transparent;box-shadow:none}
  .chat > .botbar .brow.on,.chat > .botbar .brow.on:hover,.side .brow.on,.side .brow.on:hover{background:var(--surface-2);border-color:var(--border-strong);box-shadow:none}
}

/* ---- C3 tonal: recommended but not committing (an accent-soft fill, accent text) ---- */
:is(button,.btn,.gk .gk-btn).tonal{background:var(--tonal-bg);border:1px solid transparent;color:var(--tonal-fg);font-weight:600}
:is(button,.btn,.gk .gk-btn).tonal:hover:not(:disabled){background:var(--tonal-bg-hover);border-color:transparent;color:var(--tonal-fg)}

/* ---- C10 a count after a heading: one pill ---- */
.sec-tt > h2 > .count,.access-view h3.sub > .count,.card > .ch .count,:is(h3.sub,.eyebrow) .count,.cpill{display:inline-flex;align-items:center;justify-content:center;height:20px;min-width:20px;margin-left:8px;padding:0 7px;border-radius:var(--r-pill);background:var(--neutral-soft);font:600 13px/1 var(--sans);color:var(--text-2);vertical-align:2px;font-variant-numeric:tabular-nums;letter-spacing:0}
.sec-tt > h2{display:flex;align-items:center}

/* ---- C-opt one "Optional" marker ---- */
label.f > .opt,label.f .opt{display:inline-flex;align-items:center;height:18px;margin-left:6px;padding:0 6px;border-radius:var(--r-pill);background:var(--neutral-soft);font:600 13px/1 var(--sans);color:var(--text-2);vertical-align:1px;letter-spacing:0}

/* ---- C-mono one mono chip; in fact lists and tables the same type with no chip ---- */
code.idchip:not(button),.cf-l code.idchip,:is(.cf-l,.fhelp,.gk-step,.tl-d,.crow,.gk-file,.ap-hw,.tsc-l) code,button.idchip{padding:1px 6px;border-radius:6px;background:var(--code-bg);box-shadow:inset 0 0 0 1px var(--border-soft);border:0;color:var(--text);font:400 12.5px/20px var(--mono);height:auto}
dl.props dd code.pid,dl.props dd > .pv > code,dl.props dd .pv > button.idchip,dl.kv dd code.pid{padding:0;background:none;box-shadow:none;font:400 13px/20px var(--mono);color:var(--text)}

/* ---- C4 the waiting requests outside chat: one compact notice under the page's heading (Review opens the sheet) ---- */
.attn-band:has(> .ap-notice),.home-view > .ap-notice{margin:16px 0 24px}
.adminview > .pg-head + .attn-band:has(> .ap-notice){margin-top:0;margin-bottom:8px}
.ap-notice{display:flex;align-items:center;gap:12px;min-height:56px;padding:12px 12px 12px 16px;border:1px solid var(--warn-border);border-radius:var(--r-lg);background:var(--surface-1);box-shadow:var(--shadow-card)}
.ap-notice > .ap-n-ic{display:inline-grid;place-items:center;flex:none;width:32px;height:32px;border-radius:8px;background:var(--warn-soft);color:var(--warn)}
.ap-notice > .ap-n-t{display:flex;flex-direction:row;align-items:baseline;gap:4px 12px;flex:1;min-width:0;font-size:14px;line-height:20px}
.ap-notice .ap-n-l1{flex:none;font-weight:500;color:var(--text);white-space:nowrap}
.ap-notice .ap-n-l1 b{font-weight:600}
.ap-notice .ap-n-l1 code.host{padding:0;background:none;box-shadow:none;font:400 13.5px/20px var(--mono);color:var(--text)}

.ap-notice > button.ap-n-go,.ap-notice > button.ap-n-go.sm{flex:none;gap:4px}

@media (max-width:700px){
  .ap-notice{min-height:64px;padding:12px}
  .ap-notice > .ap-n-t{flex-direction:column;align-items:flex-start;gap:2px}
  .ap-notice .ap-n-l1{white-space:normal}
  
  
}

/* ---- C11 one overlay system: one scrim, no blur. Drawers are right sheets on wide screens; on a phone every panel and
   form is a full-screen sheet (a sticky header with the close, a scrolling body, a sticky footer) and only menus are
   content-height action sheets ---- */
.overlay,.gk-scrim{-webkit-backdrop-filter:none;backdrop-filter:none;background:var(--scrim)}
@media (max-width:700px){
  .overlay,.overlay:has(> .drawer .access-view){align-items:stretch;justify-content:stretch;padding:0}
  .overlay > .drawer{position:fixed;inset:0;width:100%;max-width:none;height:100vh;height:100dvh;min-height:0;max-height:none;margin:0;padding-top:env(safe-area-inset-top);border:0;border-radius:0;box-shadow:none;animation:sheet-up var(--dur-3) var(--ease-out)}
  .overlay > .drawer > .dh{position:sticky;top:0;z-index:2;min-height:56px}
  .overlay > .drawer::before{content:none}
}
@keyframes sheet-up{from{transform:translateY(24px)}}
/* the sticky footer of a drawer: a hairline and a soft upward shadow, so what scrolls under it reads as passing under */
.drawer .db > form > .row:last-child,.drawer .db > .row.dfoot{border-top:1px solid var(--border);box-shadow:0 -8px 16px -12px rgba(0,0,0,.45)}
:root[data-theme="light"] .drawer .db > form > .row:last-child,:root[data-theme="light"] .drawer .db > .row.dfoot{box-shadow:0 -8px 16px -12px rgba(31,27,23,.18)}
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]) .drawer .db > form > .row:last-child,:root:not([data-theme="dark"]) .drawer .db > .row.dfoot{box-shadow:0 -8px 16px -12px rgba(31,27,23,.18)}}
.drawer .db > form > .row:last-child > .fnote,.drawer .db > .row.dfoot > .fnote{font-size:13px;font-weight:500;color:var(--text-2)}
.drawer .db > form > .row:last-child > .fnote > .ic,.drawer .db > .row.dfoot > .fnote > .ic{color:var(--text-2)}

/* ---- the new-instance drawer: the header, Basics and Environment as sections over hairlines, the profile's resources as
   chips under it, Resource overrides and Charter as disclosure rows; the footer clear of the last field ---- */
@media (min-width:701px){.drawer .dh{padding:20px 12px 16px 24px}}
@media (max-width:700px){.drawer .dh{padding:6px 6px 6px 16px}}
.drawer .dh .dtt{font:650 18px/24px var(--sans)}
.drawer .dh .dsub{font-size:13px;line-height:18px}
.drawer .dh > button.ib{align-self:center}
.drawer form.newinst fieldset.grp > legend{margin:0 0 12px;font:600 15px/22px var(--sans);color:var(--text)}
.drawer form.newinst fieldset.grp + fieldset.grp{margin-top:24px;padding-top:24px;border-top:1px solid var(--border-soft)}
.drawer form.newinst p.fhelp,.drawer form.newinst p.hint{font-size:13px;line-height:18px}
.drawer form.newinst .fgrid.imgs{margin-top:16px}
.specchips{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 0}
.specchips > .spc{display:inline-flex;align-items:center;gap:4px;height:24px;padding:0 9px;border-radius:var(--r-pill);background:var(--neutral-soft);font:500 13px/1 var(--sans);color:var(--text);white-space:nowrap;font-variant-numeric:tabular-nums}
.specchips > .spc b{font-weight:650}
.drawer form.newinst .grp-rows{margin:24px 0 0;border-top:1px solid var(--border-soft)}
.drawer form.newinst .grp-rows > button.disclose.drow{display:grid;grid-template-columns:36px minmax(0,1fr) 16px;align-items:center;column-gap:12px;width:100%;height:auto;min-height:64px;margin:0;padding:12px 0;border:0;border-bottom:1px solid var(--border-soft);border-radius:0;background:transparent;box-shadow:none;text-align:left;color:var(--text)}
.drawer form.newinst .grp-rows > button.disclose.drow:hover:not(:disabled){background:transparent}
.drawer form.newinst .grp-rows > button.disclose.drow .dz-t{display:flex;flex-direction:column;gap:1px;min-width:0}
.drawer form.newinst .grp-rows > button.disclose.drow .dz-t > .lt{font:600 14px/20px var(--sans);color:var(--text)}
.drawer form.newinst .grp-rows > button.disclose.drow .dz-h{font:400 13px/18px var(--sans);color:var(--text-2)}
.drawer form.newinst .grp-rows > button.disclose.drow > .ic:last-child,.drawer form.newinst .grp-rows > details.disc.drow > summary > .d-ch{box-sizing:border-box;width:16px;height:16px;margin:0;padding:0;color:var(--text-2);transition:transform var(--dur-1) var(--ease)}
.drawer form.newinst .grp-rows > button.disclose.drow[aria-expanded="true"] > .ic:last-child{transform:rotate(180deg)}
.drawer form.newinst .grp-rows > .overrides{padding:12px 0 16px 48px;border-bottom:1px solid var(--border-soft)}
.drawer form.newinst .grp-rows > details.disc.drow{border-top:0;border-bottom:1px solid var(--border-soft)}
.drawer form.newinst .grp-rows > details.disc.drow > summary{min-height:64px}
.drawer form.newinst .grp-rows > details.disc.drow > .d-b{padding:4px 0 16px 48px}

/* ---- C16 disclosure rows: a 36 px icon tile, the title 14/600 over a 13 px summary, a chevron centred in a 32 px box ---- */
details.disc.hasic > summary{grid-template-columns:36px minmax(0,1fr) auto 16px;align-items:center}
details.disc > summary > .d-ic,button.disclose.drow > .d-ic{display:inline-grid;place-items:center;width:36px;height:36px;border-radius:10px;background:var(--surface-2);color:var(--text-2)}
details.disc.hasic > .d-b{padding-left:48px}
details.disc > summary > .d-ch{transition:transform var(--dur-1) var(--ease)}
details.disc[open] > summary > .d-ch{transform:rotate(180deg)}

/* ---- Access: a 480 px share dialog with a header, a body and a footer (the audit note and Done); a full-screen sheet on
   a phone. The invite row's three controls share one 36 px line; the roles are a plain definition list ---- */

.drawer .db > .access-view{padding-bottom:24px}
.access-view .share-row{grid-template-columns:minmax(0,1fr) 120px auto}
.access-view .share-row :is(input,select),.access-view .share-row > button{height:36px;min-height:36px;box-sizing:border-box;line-height:20px}
.access-view .share-row > button{padding:0 18px}
.access-view p.share-help{font-size:13px}
.access-view ul.people > li.person .tag.role.prole{height:24px;padding:0 9px;border:1px solid var(--border);border-radius:var(--r-pill);background:transparent;color:var(--text);font-weight:500}
.access-view .levels-block.legend dl.levels{gap:0;padding:0;border-radius:0;background:none}
.access-view .levels-block.legend dl.levels > .lvrow{grid-template-columns:96px minmax(0,1fr);padding:10px 0;border-top:1px solid var(--border-soft)}
.access-view .levels-block.legend dl.levels > .lvrow:first-child{border-top:0}
.access-view .levels-block.legend dl.levels > .lvrow > dt{font:600 14px/20px var(--sans);color:var(--text)}
.access-view .levels-block.legend dl.levels > .lvrow > dd{font-size:13.5px;line-height:20px;color:var(--text-2)}
@media (max-width:700px){
  .access-view .share-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .access-view .share-row :is(input,select),.access-view .share-row > button{height:44px;min-height:44px}
  
  
}

/* ---- C12 a phone's instance chrome: all five tabs fit at 390 (spread across, 8 px label padding); one rule under the
   row; the classic bot row with Stream as a labelled pill ---- */
@media (max-width:700px){
  .ihx .subnav{justify-content:flex-start;gap:4px;padding:0 12px;scroll-padding-inline:12px}
  .ihx .subnav:has(> .stab:nth-child(5)){justify-content:space-between;gap:0}
  .ihx .subnav::after{content:none}
  .ihx .subnav .stab{padding:0 8px;font:500 14px/20px var(--sans)}
  .ihx .subnav .stab.on{font-weight:600}
  .ihx .subnav.ovf{-webkit-mask-image:none;mask-image:none}
}
@media (max-width:360px){
  .ihx .subnav{justify-content:flex-start}
  .ihx .subnav.ovf{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 24px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 24px),transparent)}
}

/* ---- C15 stat strips: every cell the same anatomy (the label, the value with its unit, a 20 px foot that always holds a
   meter or a stacked bar and a right-aligned label), so the baselines and weights line up ---- */
.statstrip-c .sc{grid-template-rows:18px 30px 20px;row-gap:6px}
.statstrip-c .sk{font:500 13px/18px var(--sans);color:var(--text-2)}
.statstrip-c .sv{font-weight:700}
.statstrip-c .sf{margin-top:2px}
.statstrip-c .sf:has(> .meter){grid-template-columns:minmax(0,1fr) 56px;column-gap:10px}
.statstrip-c .sf:has(> .meter) > span:last-child{text-align:right;color:var(--text-2)}
.meter.stack{display:flex;overflow:hidden}
.meter.stack > i{flex:none}

@media (max-width:700px){.statstrip-c .sc{grid-template-rows:18px 28px 20px}.statstrip-c .sf:has(> .meter){grid-template-columns:minmax(0,1fr) 52px;column-gap:8px}}

/* ---- C16 empty states: a light dashed slot, the 36 px tile, a title and a line; never a card competing with a form ---- */
.empty-state.es-slot{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;margin:16px}
.empty-state.es-slot .es-ic{display:inline-grid;place-items:center}
.empty-state.es-slot .es-t{display:flex;flex-direction:column;align-items:center;gap:2px;margin:0}

@media (max-width:700px){
  .empty-state.es-slot{flex-direction:row;justify-content:flex-start;margin:12px}
  .empty-state.es-slot .es-t{align-items:flex-start}
}

/* ---- C14 two-column pages end together: the rail sticky at the top; the danger zone a full-width row under both ---- */
@media (min-width:1100px){.ws > .ws-rail{position:sticky;top:16px;align-self:start}}
.adminview > .dzrow,.adminview > .sec.danger{margin-top:32px}
.dzrow{padding:14px 20px;border:1px solid var(--bad-border);border-radius:var(--r-lg);background:var(--surface-1);box-shadow:var(--shadow-card)}
.dzrow > .dz-t > b{font:600 14px/20px var(--sans);color:var(--text)}
.dzrow > .dz-t > span{font-size:13px;line-height:18px;color:var(--text-2)}
.dzrow :is(button.danger,.dz-pick > button.danger){height:32px;min-height:32px;padding:0 14px;border:1px solid var(--bad-border);background:transparent;color:var(--bad);box-shadow:none}

@media (max-width:700px){
  .adminview > .dzrow{margin-top:24px}
  .dzrow{flex-direction:column;align-items:stretch;gap:12px;padding:16px}
  .dzrow > :is(button.danger,.dz-pick){align-self:flex-end;width:auto}
  .dzrow > button.danger,.dzrow > .dz-pick > button.danger{width:auto;height:40px;min-height:40px}
}
/* a page's own action on a phone sits at the end of its title row */
@media (max-width:700px){
  .adminview > .pg-head > .ihead.page:has(> .hlinks){display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;align-items:start}
  .adminview > .pg-head > .ihead.page > .hlinks{grid-column:2;grid-row:1;margin:0;align-self:start}
}
/* every page ends with its content: no dead space after the last card */
@media (max-width:700px){
  .app-page:has(> :is(.node-view,.images-view,.instance-admin,.checkpoint-view,.bot-admin-view,.history-view,.home-view,.cluster)){padding-bottom:calc(32px + env(safe-area-inset-bottom))}
  :is(.node-view,.images-view,.instance-admin,.checkpoint-view,.bot-admin-view,.history-view,.home-view,.cluster) > :last-child,.ws > .ws-main > :last-child,.ws > .ws-rail > :last-child{margin-bottom:0}
}

/* ---- tools: one row anatomy (the 36 px tile, the title over a line, a fixed 96 px status slot, a trailing secondary
   button at least 88 px wide; never a chevron) ---- */

/* ---- images: the list card (a header row; empty, the dashed slot), How registration works in three columns, the form
   in the sticky rail ---- */
.card.imgs{padding:0;overflow:hidden}
.card.imgs > .imcols,.card.imgs .imrow{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,.8fr) minmax(0,2fr) minmax(0,1fr);column-gap:16px;align-items:center;padding:0 20px}
.card.imgs > .imcols{height:40px;border-bottom:1px solid var(--border-soft);background:var(--foot-bg);font:600 13px/1 var(--sans);color:var(--text-2)}
.card.imgs .imrow{min-height:56px;padding-top:10px;padding-bottom:10px;border-top:1px solid var(--border-soft)}
.card.imgs .imrow:first-child{border-top:0}
.card.imgs .imrow .im-n{display:flex;flex-direction:column;min-width:0}
.card.imgs .imrow .im-n b{font:600 14px/20px var(--sans);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.card.imgs .imrow .im-n .ver,.card.imgs .imrow .im-r .meta{font-size:13px;line-height:18px;color:var(--text-2)}
.card.imgs .imrow .im-p{display:flex;flex-direction:column;min-width:0}
.card.imgs .imrow .im-p code{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:400 12.5px/18px var(--mono);color:var(--text)}
.card.imgs .imrow .im-p code.sha{color:var(--text-2)}
.card.imgs .imrow .im-r{display:flex;flex-direction:column;font-size:13px;line-height:18px;color:var(--text-2)}
.card.imgs.is-empty > .empty-state.es-slot{margin:16px 20px 20px}
.card.howcard.how3{padding:20px;border:1px solid var(--border);border-radius:var(--r-lg);background:var(--surface-1);box-shadow:var(--shadow-card)}
.card.howcard.how3 > .hc-h{margin:0 0 16px;font:600 14px/20px var(--sans);color:var(--text)}

.imgws > .ws-rail .card.register :is(input,select){height:36px;min-height:36px}
.imgws > .ws-rail .card.register .fgrid.one{row-gap:16px}
.imgws > .ws-rail .card.register .fgrid.one > :is(label.f,.fld){margin:0}
.imgws > .ws-rail .card.register .fgrid.one .fld > label.f{margin:0}
.imgws > .ws-rail .card.register p.fhelp{margin:4px 0 0;font-size:13px;line-height:18px}
.card.register .cf{min-height:56px;padding:12px 20px}
.rg-srow > .sec-h{display:none}
.card.register > .rg-h{display:flex;align-items:center;gap:12px;margin:0 0 16px}
.card.register > .rg-h > .rg-ic{display:inline-grid;place-items:center;width:36px;height:36px;border-radius:10px;background:var(--surface-2);color:var(--text-2)}
.card.register > .rg-h > b{font:600 15px/22px var(--sans);color:var(--text)}
@media (max-width:700px){
  .card.imgs > .imcols{display:none}
  .card.imgs .imrow{grid-template-columns:minmax(0,1fr) auto;row-gap:4px}
  .card.imgs .imrow .im-p,.card.imgs .imrow .im-r{grid-column:1 / -1}
  .imgws > .ws-rail .card.register :is(input,select){height:44px;min-height:44px}
  .images-view .imgws > .ws-rail{gap:16px}
}

/* ---- checkpoints: a fixed-layout table (52 px rows, the actions centred), the action card beside How checkpoints work
   as three icon rows ---- */
@media (min-width:701px){
  :is(.ws-main,.ck-list) .ckcols,:is(.ws-main,.ck-list) .ckr{grid-template-columns:minmax(0,1fr) 160px 140px 120px 56px;column-gap:16px}
  :is(.ws-main,.ck-list) .ckcols > :nth-child(4){text-align:right}
  .ck-list .ckr{min-height:52px;align-items:center}
  .ck-list .ckr > .ck-s{display:contents}
  .ck-list .ckr .manifest-t{justify-self:end}
  .ck-list .ckr > .ck-m{display:flex;align-items:center;justify-content:center;height:100%}
}
.ck-list .ckpt:hover{background:var(--hover)}
.card.ckform .fgrid > .kindhelp{grid-column:1 / -1;margin:-8px 0 0}

@media (min-width:701px){
  .checkpoint-view .ws-rail .card.howcard:not(.railx){padding:20px;border:1px solid var(--border);border-radius:var(--r-lg);background:var(--surface-1);box-shadow:var(--shadow-card)}
}
@media (max-width:700px){
  .ck-list .ckr{min-height:64px}
}

/* ---- bot administration: the crumb is the instance and the bot with its state as a dot (the word is the H1's pill);
   Conversation a disclosure row with its icon tile ---- */
@media (min-width:701px){
  .ihx.bot .ih-title > .gk-av{display:none}
  .ihx.bot .ih-title > .ih-crumb{max-width:160px}
  .ihx.bot .ih-title > .istate{height:auto;padding:0;background:none}
  .ihx.bot .ih-title > .istate > .dot{width:8px;height:8px;margin:0 0 0 2px}
  .ihx.bot .ih-title > .istate > span:not(.dot):not(.vh){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
}
.card.o-convo-c > .convo-row > button.disc-btn,.card.o-convo-c > .convo-row > button.disc-btn:has(> .d-ic){grid-template-columns:36px minmax(0,1fr) 16px;column-gap:12px;min-height:64px;padding:12px 16px 12px 20px}
.card.o-convo-c > .convo-row > button.disc-btn > .d-ic{display:inline-grid;place-items:center;width:36px;height:36px;border-radius:10px;background:var(--surface-2);color:var(--text-2)}
.card.o-convo-c > .convo-row > button.disc-btn > .d-t > b{font:600 14px/20px var(--sans)}
.card.o-convo-c > .convo-row > button.disc-btn > .d-t > .d-s{font-size:13px;line-height:18px;white-space:normal}
.card.o-convo-c > .convo-row > button.disc-btn.on > .d-ch{transform:rotate(180deg)}
@media (min-width:701px){.bot-admin-view .card.o-ck > .empty-state.es-slot{margin:0}}

@media (max-width:700px){.bot-admin-view .card.o-ck > .empty-state.es-slot{margin:0}.card.o-convo-c > .convo-row > button.disc-btn,.card.o-convo-c > .convo-row > button.disc-btn:has(> .d-ic){padding:12px 16px}}
.card.ckform .fgrid > .kindhelp{margin:-8px 0 4px}
@media (max-width:700px){.card.ckform .fgrid > *{order:2}.card.ckform .fgrid > .fld:first-child{order:0}.card.ckform .fgrid > .kindhelp{order:1;margin:-8px 0 8px}}
.card.register .cf > button,.card.register footer.cf > button{margin-left:auto}

.meter.stack > i{position:static;top:auto;bottom:auto;left:auto}
/* ---- node administration: the drain's fields in one row (the target's "Now" in its label row), the host's facts as
   key and value columns, CPU pools as 56 px rows (the ranges in the sans, tabular) ---- */
label.f.lrow > .lr{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
label.f.lrow > .lr > .lnow{font-size:13px;font-weight:400;color:var(--text-2);font-variant-numeric:tabular-nums;white-space:nowrap}
label.f.lrow::first-letter{text-transform:none}
.node-view .nactions .fgrid.nact{grid-template-columns:repeat(3,minmax(0,1fr));column-gap:16px}
.node-view .nactions .fgrid.nact .fld,.node-view .nactions .fgrid.nact .fld > label.f{margin:0}
.node-view .nactions .fgrid.nact .fld.unitf > .unit{top:auto;bottom:0;height:36px}
.node-view .nactions .fgrid.nact .fld.unitf input{padding-right:44px}
.node-view .hostcard dl.props.inline > .pr,.node-view .hostcard dl.props.inline > .pr:first-child,.node-view .hostcard dl.props.inline > .pr:last-child{align-items:center}
.node-view .hostcard dl.props.inline dd{justify-content:flex-start;text-align:left}

.node-view .poolcard ul.pools > li{min-height:56px}
.node-view .poolcard ul.pools .pn{font:600 14px/20px var(--sans)}
.node-view .poolcard ul.pools .pm{font-size:13px;line-height:18px;color:var(--text-2);font-variant-numeric:tabular-nums}
@media (max-width:700px){
  .node-view .nactions .fgrid.nact{grid-template-columns:minmax(0,1fr)}
  
}

/* ---- the overview: every node card the same skeleton (an idle one its meters at zero and a sub-line); the status a
   neutral chip with a separate refresh ---- */
.cluster-node .idle-l,.cluster-node .idle-l.idle-l{display:block;flex:none;min-height:0;margin:-6px 0 0;padding:0;border-radius:0;background:none;text-align:left;font-size:13px;line-height:18px;color:var(--text-2)}
.cluster-node :is(.usage,.bystate).zero{display:grid}
.cluster-node .bystate.zero .sbar{background:var(--track)}
.cluster .hlinks.upd-w{display:flex;align-items:center;gap:8px}
.cluster .stchip{height:28px;padding:0 12px 0 10px;border:0;background:var(--neutral-soft);color:var(--text-2)}
.cluster .stchip > .sc-t{color:var(--text-2);font-weight:500}
.cluster .hlinks.upd-w > .ib.refresh{width:32px;height:32px;min-height:32px;border-radius:8px;opacity:1}
@media (min-width:701px){
  .card.health .hlrow{grid-template-columns:28% 20% 20% 16% 16%}
  .card.health .hlrow > :is(.hc,.ha){justify-self:start}
}

/* ---- home: instance cards with one footer weight order (Suspend and Resume ghost, Open the bordered way in), a
   released memory as a dashed line, a 28 px dashed + chip; a phone's card compact (memory and bots one line each) ---- */
.ipanel .acts > button.quiet.lc,.ipanel .acts > button.quiet.lc.sm{margin-left:-8px;gap:6px}

.ipanel .acts > button.go2.open{gap:4px}

.ipanel .usage.rel .meter{border-top:1px dashed var(--border-strong);margin:3px 0 2px}
.ipanel .ip-bots .chip.bot{height:28px}
.ipanel .ip-bots > button.addbot{width:28px;height:28px;min-height:28px;padding:0;border:1px dashed var(--border-strong);border-radius:50%;background:transparent;color:var(--text-2);justify-content:center}
.ipanel .ip-bots > button.addbot:hover:not(:disabled){background:var(--hover);color:var(--text)}
.ipanel .act > .x > .t{font-weight:600;color:var(--text)}
.ipanel .act > .w{font-size:13px;color:var(--text-2);font-variant-numeric:tabular-nums}
.ipanel .ip-bots > .m-only{display:none}
@media (max-width:700px){
  .ipanel .usage{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;column-gap:12px}
  .ipanel .usage > .uh{display:contents}
  .ipanel .usage > .uh > .ip-k{order:1}
  .ipanel .usage > .meter{order:2;margin:0}
  .ipanel .usage > .uh > :last-child{order:3}
  .ipanel .ip-bk{display:none}
  .ipanel .ip-bots{flex-wrap:wrap;align-items:center}
  .ipanel .ip-bots > .m-only{display:inline-flex}
  .ipanel .ip-bots > .ip-slots{margin-left:auto;font-size:13px;color:var(--text-2);font-variant-numeric:tabular-nums}
  .ipanel .act > .x{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .ipanel .act{align-items:start}
}

/* ---- history: one 32 px toolbar line, fixed columns (By 140, Time 110 right-aligned), the day a sticky band, neutral
   24 px kind tiles (tinted only for egress and destructive kinds), the end centred over a hairline ---- */
@media (min-width:701px){
  .hcols,.hrow.optab{grid-template-columns:34% minmax(0,1fr) 140px 110px}
  .hcols > span:nth-child(4){text-align:right}
  .hrow.optab .hr-t{justify-self:end;text-align:right;font-size:13px;color:var(--text-2)}
  .hrow.optab{min-height:44px}
}
.hrow.optab:hover{background:var(--hover)}
.history-records .hday{position:sticky;top:0;z-index:1;display:flex;align-items:center;height:36px;min-height:36px;padding:0 var(--card-px);background:var(--surface-2);font:600 12.5px/1 var(--sans);color:var(--text)}
:root[data-theme="light"] .history-records .hday{background:var(--foot-bg)}
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]) .history-records .hday{background:var(--foot-bg)}}
.hrow.optab .hop .kic.kic,.hrow.optab .hop .kic.k-new,.hrow.optab .hop .kic.k-msg{width:24px;height:24px;border-radius:6px;background:var(--surface-2);color:var(--text-2)}
.hrow.optab .hop .kic.k-egress{background:var(--warn-soft);color:var(--warn)}
.hrow.optab .hop .kic.k-bad{background:var(--bad-soft);color:var(--bad)}
.hrow.optab .hop .kic .ic{width:14px;height:14px}
@media (max-width:700px){
  .hrow.optab{min-height:64px}
  .hrow.optab .kind{font-size:15px;font-weight:500}
  .hrow.optab .hr-t{font-size:13px;font-weight:400;color:var(--text-2);font-variant-numeric:tabular-nums}
  .hrow.optab .hmeta .htgt,.hrow.optab .hmeta .htgt :is(button,span,a,b,code){color:var(--text)}
}

/* ---- C18 one choice group: tiles on wide screens, a segmented control on a phone (the chosen one's line under it) ---- */

/* ---- C-menu-button: selects used as navigation (Screen of, the Files bot, All bots, All nodes) are quiet menu buttons:
   32 px, transparent, a soft hairline, the label 13.5/500, a 16 px chevron ---- */
select.ghost.chipsel,:is(.cbar,.fbar,.scrbar) select.ghost.chipsel,.gk .gk-panel :is(.cbar,.fbar,.scrbar) select.ghost.chipsel,.gk .gk-panel .flist > .fbar select.ghost.chipsel,.gk .gk-panel .scrbar select.ghost{height:32px;min-height:32px;margin:0;padding:0 28px 0 10px;border:1px solid var(--border-soft);border-radius:8px;background-color:transparent;background-size:16px 16px;background-position:right 8px center;font:500 13.5px/30px var(--sans);color:var(--text)}
select.ghost.chipsel:hover:not(:disabled),:is(.cbar,.fbar,.scrbar) select.ghost.chipsel:hover:not(:disabled){background-color:var(--hover);border-color:var(--border-strong)}
@media (max-width:700px){select.ghost.chipsel,:is(.cbar,.fbar,.scrbar) select.ghost.chipsel,.gk .gk-panel :is(.cbar,.fbar,.scrbar) select.ghost.chipsel{height:36px;min-height:36px;line-height:34px;font-size:14px}}
.access-view .share-row select.ghost.chipsel{border:1px solid var(--border-input);background-color:var(--sunken);font-weight:400}

/* ---- C-confirm: one confirm-by-typing component (a label row with the name as a mono chip, the field with the name as
   its placeholder and the commit on one row; a phone stacks the commit under the field at full width) ---- */
.cf:has(> label.f.confirm){display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"l b" "w w";align-items:end;column-gap:8px;row-gap:8px}
.cf:has(> label.f.confirm) > label.f.confirm{grid-area:l;display:flex;flex-direction:column;gap:8px;margin:0}
.cf:has(> label.f.confirm) > label.f.confirm > .cf-l{font-size:13.5px;line-height:20px;color:var(--text)}
.cf:has(> label.f.confirm) > label.f.confirm > input{height:36px;min-height:36px;width:100%}
.cf:has(> label.f.confirm) > :is(button,.row){grid-area:b;align-self:end}
.cf:has(> label.f.confirm) > :is(button,.row > button){height:36px;min-height:36px}
.cf:has(> label.f.confirm) > :is(.why,.cf-note){grid-area:w}
@media (max-width:700px){
  .cf:has(> label.f.confirm){grid-template-columns:minmax(0,1fr);grid-template-areas:"l" "b" "w"}
  .cf:has(> label.f.confirm) > :is(button,.row){width:100%}
  .cf:has(> label.f.confirm) > :is(button,.row > button){width:100%;height:44px;min-height:44px}
  .cf:has(> label.f.confirm) > label.f.confirm > input{height:44px;min-height:44px}
}
.ipanel .ip-bots > .ip-wt{height:24px;margin:0;align-self:center;font-size:13px}

/* the overview on a phone: each card says its health (so the Health table is the wide screens'), committed memory as the
   one meter, in use and disk as text */
.cluster-node .nhealth{display:none}
@media (max-width:700px){
  .cluster-node .nhealth{display:flex;align-items:center;gap:8px;margin:0;font-size:13px;line-height:18px;color:var(--text-2)}
  .cluster-node .nhealth > .dot{margin:0;width:8px;height:8px}
  .cluster-node .nhealth > .dot.warn{background:var(--warn-dot)}
  .cluster > .health-sec{display:none}
  .cluster-node .usage{grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:16px;row-gap:12px}
  .cluster-node .usage > .use:first-child{grid-column:1 / -1}
  .cluster-node .usage > .use:not(:first-child) .meter{display:none}
  .cluster-node .usage > .use:not(:first-child){display:block}
  .cluster-node .usage > .use:not(:first-child) > .uk{display:block;margin-bottom:2px}
  .cluster-node .usage > .use:not(:first-child) > :is(.uv,.pc){display:inline}
}

/* ---- C9 one card footer: the card's own surface over a hairline, 56 px, the reason or consequence at the left, the commit at the right ---- */
.card footer.cf,.card .cf{min-height:56px;padding:12px 20px;background:transparent;border-top:1px solid var(--border)}
.card .cf:not(:has(> label.f.confirm)){display:flex;align-items:center;justify-content:space-between;gap:12px}
.card .cf:not(:has(> label.f.confirm)) > :is(button,.row){margin-left:auto}
.card .cf > .cf-note{margin:0;font-size:13px;line-height:18px;color:var(--text-2)}
@media (max-width:700px){
  .card footer.cf,.card .cf{padding:12px 16px}
  .card .cf:not(:has(> label.f.confirm)){flex-direction:column;align-items:stretch}
  .card .cf:not(:has(> label.f.confirm)) > :is(button,.row){width:100%;margin-left:0}
  .card .cf:not(:has(> label.f.confirm)) > button{height:44px;min-height:44px}
}
/* the last change on one line: what changed (cut with an ellipsis), then when, muted */
dl.props dd > .pv:has(> .chg-t){display:flex;align-items:baseline;gap:6px;white-space:nowrap}
dl.props dd > .pv > .chg-t{display:block;overflow:hidden;text-overflow:ellipsis}
dl.props dd > .pv > .chg-m{display:inline;flex:none;margin:0}
dl.props dd > .pv > .chg-m::before{content:"·";margin-right:6px}

.statstrip-c .sf .lc{text-transform:lowercase}
.statstrip-c .sf .sct > b{font-weight:400;color:inherit}
.statstrip-c .sf .sct.bad{color:var(--bad)}
/* the classic stream pane on a phone: a full-screen sheet like the Grok panel (its tab row and close at the top) */
@media (max-width:700px){
  .iview.streaming .ibody > .rpane,.iview.streaming .ibody > .rpane.rpane{top:0;bottom:0;height:100vh;height:100dvh;min-height:0;max-height:none;padding-top:env(safe-area-inset-top);border:0;border-radius:0;box-shadow:none}
  .iview.streaming .rpane .ph{min-height:56px;padding:0 6px 0 12px}
  .iview.streaming .ibody > .rpane::before,.iview.streaming .ibody > .rpane > .grab{content:none;display:none}
}
/* ---- C8 the type floor: secondary text, hints and timestamps at 13 px ---- */
.cf > p.why,.cf > .cf-note,dl.props.stack dt,.access-view p.lvl-note,.side .brow > .tm,.gk-row .tm,.drawer form.newinst p.fhelp{font-size:13px;line-height:18px}
@media (max-width:700px){.ihx.bot .ih-sub{font-size:13px;line-height:18px}}
/* ==== r15 end ==== */

/* ==== r16 ==== */
/* ---- type: one scale; balanced titles, pretty paragraphs, tabular figures, mono never tracked ---- */
:is(h1,h2,.ihead.page h2,.sec-tt > h2){text-wrap:balance}
:is(time,.ts,.tm,.count,.cpill,.uv,.pc,.sv,.fcount,.cn,.du,.mt,.sz,.hr-t,.slots,.ip-slots){font-variant-numeric:tabular-nums}
:is(code,kbd,samp,pre,.mono,.pid,.idchip,input.mono,label.f.confirm input){letter-spacing:0}
.ihead.page h2{font:700 28px/34px var(--sans);letter-spacing:-.015em}
.ihead.page .sub{font-size:14px;line-height:20px;color:var(--text-2)}
@media (max-width:700px){.ihead.page h2{font-size:26px;line-height:32px}}
p.fhelp,.fld > p.fhelp,label.f + p.fhelp{margin:6px 0 0;font-size:13px;line-height:18px;color:var(--text-2)}
p.fhelp code{padding:0 4px;border-radius:4px;background:var(--code-bg);font:400 12.5px/18px var(--mono);color:var(--text)}
label.f > .opt,label.f .opt{display:inline;height:auto;margin:0;padding:0;border-radius:0;background:none;font:400 13px/inherit var(--sans);color:var(--text-2);vertical-align:baseline;letter-spacing:0}
.eyebrow,h3.props-h,.gk-dh.props-h{font:600 12px/16px var(--sans);letter-spacing:.06em;text-transform:uppercase;color:var(--text-2)}

/* ---- buttons: one primary, one dimmed primary, a neutral secondary, a danger ---- */
:is(button,.btn,.gk .gk-btn).go:disabled:not(.send,.gk-send),:is(button,.btn,.gk .gk-btn).go:disabled:not(.send,.gk-send):hover,a.go[aria-disabled=true]{opacity:1;background:var(--go-off-bg);border:1px solid var(--go-off-border);color:var(--go-off-fg);box-shadow:none;cursor:not-allowed;transform:none;font-weight:600}

/* ---- inputs: the strong hairline, a neutral focus (a darker edge and a soft wash), never amber ---- */
:is(input:not([type]),input[type=text],input[type=password],input[type=number],input[type=search],input[type=email],input[type=url],select,textarea):not(.gk-pillbox textarea,.composer textarea){border-color:var(--border-strong)}
:is(input:not([type]),input[type=text],input[type=password],input[type=number],input[type=search],input[type=email],input[type=url],select,textarea):not(.gk-pillbox textarea,.composer textarea):is(:focus,:focus-visible){outline:none;border-color:var(--border-focus);box-shadow:0 0 0 3px var(--focus-wash)}
:is(input,textarea)::placeholder{color:var(--placeholder);opacity:1}
.gk-pillbox,.composer{border-color:var(--border-strong)}
.gk-pillbox:hover,.composer:hover{border-color:var(--border-strong)}
.gk-pillbox:focus-within,.composer:focus-within{border-color:var(--border-focus);box-shadow:0 0 0 3px var(--focus-wash)}
.gk .gk-pillbox textarea:focus-visible,.composer textarea:focus-visible{outline:none;box-shadow:0 0 0 3px var(--focus-wash);border-radius:6px}

/* ---- the phone choice: a segmented control, the chosen segment raised in its well; four as two by two ---- */

:root[data-theme="light"]{--seg-raise:#fff}
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]){--seg-raise:#fff}}

/* ---- one count badge, one status pill, one tag ---- */
.sec-tt > h2 > .count,.access-view h3.sub > .count,.card > .ch .count,:is(h3.sub,.eyebrow) .count,.cpill{display:inline-flex;align-items:center;justify-content:center;height:20px;min-width:20px;margin-left:8px;padding:0 7px;border-radius:var(--r-pill);background:var(--count-bg);font:600 13px/1 var(--sans);color:var(--text-2);letter-spacing:0;text-transform:none;vertical-align:1px;font-variant-numeric:tabular-nums}
:root{--count-bg:var(--surface-3)}
:root[data-theme="light"]{--count-bg:#e9e4da}
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]){--count-bg:#e9e4da}}
.tag.ok,.tag.warn,.tag.bad,.tag.info,.istate,.gk-state{font-weight:600}

/* ---- the avatar dot: a ring in the row's colour, never clipped ---- */
.gk-av,.brow .bav,.chip .gk-av{overflow:visible}
:is(.gk-av,.bav) > :is(.dot,.st,.sdot),.gk-av > .gk-dot,.brow .bav > .dot{box-shadow:0 0 0 2px var(--dot-ring)}
:is(.side .brow,.gk .gk-side .gk-row){--dot-ring:var(--side-surface)}
:is(.side .brow,.gk .gk-side .gk-row):hover{--dot-ring:color-mix(in srgb,var(--side-surface) 94%,var(--text))}
:is(.side .brow.on,.gk .gk-side .gk-row.on){--dot-ring:color-mix(in srgb,var(--side-surface) 92%,var(--text))}

/* ---- one empty state: a dashed slot, a 40 px circle, a title, a line ---- */
.empty-state.empty-state.empty-state.empty-state.es-slot.es-slot,.empty-state.empty-state.es-card,.empty-state.es-fill{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;margin:0}
.empty-state:is(.es-slot,.es-card,.es-fill) > .es-ic{display:inline-grid;place-items:center;flex:none;margin:0}

.empty-state:is(.es-slot,.es-card,.es-fill) > .es-t{display:flex;flex-direction:column;align-items:center;gap:4px;max-width:46ch}

.empty-state:is(.es-slot,.es-card,.es-fill) > .es-t > span{max-width:46ch}

/* ---- one disclosure row: the title 14/600, a summary that wraps, the chevron on the title line ---- */
details.disc > summary,details.disc.hasic > summary{align-items:start}
details.disc > summary > .d-ch,details.disc > summary > .ic:last-child{align-self:start;margin-top:2px;color:var(--text-2)}
details.disc > summary .d-t > b{font:600 14px/20px var(--sans);color:var(--text)}
details.disc > summary .d-s,details.disc > summary > .d-t > .d-s{font-size:13px;line-height:18px;color:var(--text-2);white-space:normal;overflow:visible;text-overflow:clip}
section.card.railx > details.disc > summary{padding:16px}

/* ---- the action row (tools): the 32 px tile, the text, the button; on a phone the button under the text ---- */

/* ---- two-column pages: the columns are stacks that end on one line (the last card grows) ---- */
@media (min-width:1100px){
  .ws{grid-template-columns:minmax(0,1fr) 360px;align-items:stretch}
  .ws > .ws-rail{position:static;align-self:stretch}
  .ws > :is(.ws-main,.ws-rail) > :last-child:not(.dzrow),.ws > .ws-main:has(> .dzrow:last-child) > :nth-last-child(2){flex:1 1 auto}
  .ws > :is(.ws-main,.ws-rail) > :is(:last-child:not(.dzrow),.ws-main:has(> .dzrow:last-child) > :nth-last-child(2)).sec{display:flex;flex-direction:column}
  .ws > :is(.ws-main,.ws-rail) > .sec:is(:last-child,:nth-last-child(2)) > .sec-b{flex:1 1 auto}
  .ws > .ws-rail > .sec:last-child > .sec-b > .card:last-child,.ws > .ws-main > .sec:last-child > .sec-b > .card:last-child,.ws > .ws-main:has(> .dzrow:last-child) > .sec:nth-last-child(2) > .sec-b > .card:last-child{flex:1 1 auto}
}
/* the danger zone: the main column's last card, a red hairline, the trash in a soft red circle */
.dzrow{display:flex;align-items:center;gap:14px;margin:0;padding:16px 20px;border:1px solid var(--bad-border);border-radius:var(--r-lg);background:var(--surface-1);box-shadow:var(--shadow-card)}
.dzrow > .dz-ic{display:inline-grid;place-items:center;flex:none;width:32px;height:32px;border-radius:50%;background:var(--bad-soft);color:var(--bad)}
.dzrow > .dz-t{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.dzrow > :is(button.danger,.dz-pick){margin-left:auto;flex:none}
.adminview > .dzrow,.ws-main > .dzrow{margin-top:0}
@media (max-width:700px){
  .dzrow{display:grid;grid-template-columns:32px minmax(0,1fr);align-items:start;gap:12px;padding:16px}
  .dzrow > :is(button.danger,.dz-pick){grid-column:1 / -1;width:100%;margin:0}
  .dzrow > .dz-pick > button.danger,.dzrow > button.danger{width:100%;height:40px;min-height:40px}
}

/* ---- the node home's approval notice: a tinted banner, the shield in a circle, who wants what, its meta, the reason ---- */
.ap-notice{display:grid;grid-template-columns:32px minmax(0,1fr) auto;grid-template-areas:"ic t go";align-items:center;column-gap:14px;padding:14px 16px;border:1px solid var(--warn-border);border-radius:12px;background:var(--warn-soft);box-shadow:none}
.ap-notice > .ap-n-ic{grid-area:ic;align-self:start;width:32px;height:32px;border-radius:50%;background:color-mix(in srgb,var(--warn) 16%,transparent);color:var(--warn)}
.ap-notice > .ap-n-t{grid-area:t;display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0}
.ap-notice .ap-n-l1{font:400 14px/20px var(--sans);color:var(--text);white-space:normal}
.ap-notice .ap-n-l1 b{font-weight:600}
.ap-notice .ap-n-l1 code.host{font:400 14px/20px var(--mono);color:var(--text)}

.ap-notice > button.ap-n-go,.ap-notice > button.ap-n-go.sm{grid-area:go}
@media (max-width:700px){
  .ap-notice{grid-template-areas:"ic t" "go go";grid-template-columns:32px minmax(0,1fr);row-gap:12px;padding:14px}
  .ap-notice > button.ap-n-go,.ap-notice > button.ap-n-go.sm{width:100%}
  
}

/* ---- the chat dock card: a neutral card (the shield its only warm element), a 10 px gap to the composer ---- */
:is(.gk-dock .gk-card.gk-egress,.chat .transcript > .appr-dock .chat-appr > .approval).pending{border:1px solid var(--border-strong);border-radius:12px;background:var(--surface-1);box-shadow:var(--shadow-card)}
.gk-dock,.chat .transcript > .appr-dock{padding-bottom:0}
.gk-dock + .gk-compose,.chat .transcript > .appr-dock + .compose{padding-top:10px}

/* ---- full-screen sheets on a phone: one header (title, subtitle, a 40 px filled close), safe-area foot ---- */
@media (max-width:700px){
  .overlay > .drawer > .dh{display:flex;align-items:center;min-height:60px;padding:10px 8px 10px 16px}
  .overlay > .drawer > .dh > button.ib,.gk-ph > button.gk-icon.x,.gk-panel .gk-ph > :is(button.ib,button.gk-icon):last-child{width:40px;height:40px;min-height:40px;border-radius:10px;background:var(--surface-2);color:var(--text)}
  .overlay > .drawer > .db{padding-bottom:calc(24px + env(safe-area-inset-bottom))}
  .overlay > .drawer .dh .dtt{font:650 17px/22px var(--sans)}
}
:root{--scrim:rgba(0,0,0,.66)}
:root[data-theme="light"]{--scrim:rgba(28,24,18,.48)}
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]){--scrim:rgba(28,24,18,.48)}}
.overlay,.gk-scrim{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}
@media (max-width:700px){.gk-menu .gk-menu-scrim{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}}

/* ---- the terminal: one dark window filling the page; before a session the start gate inside it ---- */
.app-page:has(> .terminal-page){display:flex;flex-direction:column;min-height:calc(100dvh - var(--header-h));padding-bottom:24px}
.app-page > .terminal-page{flex:1 1 auto;display:flex;flex-direction:column;min-height:0}
.terminal-page > .pg-head{margin:0 0 20px}
.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 > *{margin:0}
.terminal-page .tframe,.terminal-page .tframe:not(.s-idle){--term-bg:#141413;position:relative;display:flex;flex-direction:column;flex:1 1 auto;height:auto;min-height:max(480px,calc(100dvh - var(--header-h) - 190px));margin:0;border:1px solid #2e2d2a;border-radius:12px;overflow:hidden;background:var(--term-bg)}
:root[data-theme="light"] .terminal-page .tframe{border-color:var(--border);box-shadow:var(--shadow-2)}
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]) .terminal-page .tframe{border-color:var(--border);box-shadow:var(--shadow-2)}}
.terminal-page .tframe > .tbar{position:static;display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;width:auto;height:auto;min-height:40px;margin:0;padding:4px 8px 4px 14px;overflow:visible;clip-path:none;white-space:normal;background:#1a1917;border:0;border-bottom:1px solid #2e2d2a}
.terminal-page .tframe > .tbar > .tb-t{font:400 13px/18px var(--mono);letter-spacing:0;color:#d4cfc6;font-variant-ligatures:none}
.terminal-page .tframe > .tbar > .tb-s{display:inline-flex;align-items:center;gap:7px;margin-left:auto;padding-right:6px;font-size:13px;line-height:18px;color:#b9b4aa}
.terminal-page .tframe > .tbar > .tb-s > .dot{width:7px;height:7px;margin:0;border-radius:50%;background:#807b72}
.terminal-page .tframe > .tbar > .tstatus{margin:0 0 0 auto;font-size:13px;color:#b9b4aa}
.terminal-page .tframe > .tbar > .tb-t > .at{margin:0 1.5px}
@media (max-width:700px){
  .app-page:has(> .terminal-page){padding-bottom:calc(16px + env(safe-area-inset-bottom))}
  .terminal-page .tframe,.terminal-page .tframe:not(.s-idle){min-height:max(520px,calc(100dvh - 210px))}
}

/* ---- Access: the right drawer (a full-screen sheet on a phone); Invite one row, People a bordered list, the roles as
   definition rows; Done at the foot ---- */
@media (min-width:701px){
  .overlay:has(> .drawer .access-view){justify-content:flex-end;align-items:stretch;padding:0}
  
}
.access-view .share-row{display:grid;grid-template-columns:minmax(0,1fr) 120px auto;gap:8px;align-items:center}
.access-view .share-row :is(input,select),.access-view .share-row > button{height:32px;min-height:32px}
.access-view h3.sub,.access-view form.share h3.sub,.access-view .levels-block.legend > h3.sub{font:600 15px/22px var(--sans);color:var(--text)}
.access-view > h3.sub{margin:28px 0 10px}
.access-view ul.people > li.person .tag.role.prole{height:20px;padding:0 8px;border:0;border-radius:999px;background:var(--count-bg);color:var(--text);font:500 13px/1 var(--sans)}
.access-view .levels-block.legend{margin:28px 0 0}
.access-view .levels-block.legend dl.levels{display:flex;flex-direction:column;gap:0;padding:0;border:0;background:none}
.access-view .levels-block.legend dl.levels > .lvrow{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:12px 0;border-top:1px solid var(--border)}
.access-view .levels-block.legend dl.levels > .lvrow:first-child{border-top:0;padding-top:4px}
.access-view .levels-block.legend dl.levels > .lvrow > dt{display:inline-flex;align-items:center;height:20px;padding:0 8px;border-radius:999px;background:var(--count-bg);font:500 13px/1 var(--sans);color:var(--text)}
.access-view .levels-block.legend dl.levels > .lvrow > dd{margin:0;font-size:13px;line-height:19px;color:var(--text-2)}

@media (max-width:700px){
  .access-view .share-row{grid-template-columns:minmax(0,1fr) auto}
  .access-view .share-row > label.su{grid-column:1 / -1}
  .access-view .share-row :is(input,select),.access-view .share-row > button{height:40px;min-height:40px}
  
  
}
/* every drawer footer: the drawer's surface over a hairline, no band */
.drawer .db > form > .row:last-child,.drawer .db > .row.dfoot{background:var(--surface-1)}

/* ---- the overview: one pill for the status and refresh; node cards with one primary meter, two small ones, the
   instances by state, and the health line ---- */
.cluster .hlinks.upd-w > .stchip{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 2px 0 12px;border:1px solid var(--border);border-radius:999px;background:var(--surface-1);font-size:13px;color:var(--text-2)}
.cluster .hlinks.upd-w > .stchip > .ic{color:var(--ok)}
.cluster .hlinks.upd-w > .stchip.warn > .ic{color:var(--warn)}
.cluster .hlinks.upd-w > .stchip > .stsep{width:1px;height:18px;margin:0 2px 0 6px;background:var(--border)}
.cluster .hlinks.upd-w > .stchip > .ib.refresh{width:28px;height:28px;min-height:28px;border-radius:50%;color:var(--text-2)}
.cluster-node .nmeta{display:flex;flex-direction:column;gap:2px;margin-top:-6px}
.cluster-node .nmeta > .url{display:flex;flex-wrap:wrap;gap:0;align-items:baseline;margin:0;font-size:13px;line-height:18px;color:var(--text-2)}
.cluster-node .nmeta > .url .rl{color:var(--text-2)}
.cluster-node .nmeta > .url .rl::before{content:"·";margin:0 6px}
.cluster-node .nmeta > .cap-h{display:flex;gap:6px;margin:0;font-size:13px;line-height:18px;color:var(--text-2)}
.cluster-node .nmeta > .cap-h > span{color:var(--text-2);font-weight:400}
.cluster-node .bystate > .sbar{display:flex;width:100%;height:6px;margin:0;border-radius:999px;overflow:hidden;background:var(--track)}
.cluster-node .bystate > .sbar > i{display:block;height:100%}
.cluster-node .bystate > .states{display:flex;flex-wrap:wrap;gap:4px 0;font-size:13px;color:var(--text-2)}
.cluster-node .nmain{display:flex;flex-direction:column;gap:6px;margin-top:6px}
.cluster-node .nmain > .nm-h{display:flex;justify-content:space-between;align-items:baseline;gap:8px;font-size:13px;line-height:18px;color:var(--text-2)}
.cluster-node .nmain > .nm-h .uv{color:var(--text-2)}
.cluster-node .nmain > .nm-h .uv b{font-weight:600;color:var(--text)}
.cluster-node .nmain > .nm-h .uv .sep{margin:0 6px}

.cluster-node .usage.two,.cluster-node .usage.two.two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:20px;row-gap:0}
.cluster-node .usage.two > .use,.cluster-node .usage.two.two > .use.use:not(:first-child),.cluster-node .usage.two.two > .use.use:first-child{grid-column:auto;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"k v" "m m";row-gap:6px;column-gap:8px;align-items:baseline}
.cluster-node .usage.two > .use > .uk{grid-area:k;font-size:13px;line-height:18px;color:var(--text-2)}
.cluster-node .usage.two > .use > .uv{grid-area:v;font-size:13px;color:var(--text-2)}
.cluster-node .usage.two > .use > .uv b{font-weight:600;color:var(--text)}
.cluster-node .usage.two > .use > .pc{display:none}
.cluster-node .usage.two > .use > .meter,.cluster-node .usage.two.two > .use.use:not(:first-child) > .meter{grid-area:m;display:block;width:100%;margin:0}
.cluster-node .usage.two.two > .use.use > :is(.uk,.uv){display:block;margin:0}
.cluster-node .bystate{display:flex;flex-direction:column;gap:6px}
.cluster-node .bystate > .uk{font-size:13px;line-height:18px;color:var(--text-2)}
.cluster-node .bystate.zero > .states.none{font-size:13px;line-height:18px;color:var(--text-2)}
.cluster-node .nhealth,.cluster-node .nhealth.nhealth{display:flex;align-items:center;gap:8px;margin:0;padding-top:12px;border-top:1px solid var(--border);font-size:13px;line-height:18px;color:var(--text-2)}
.cluster-node .nhealth > .dot{flex:none;width:8px;height:8px;margin:0}
.cluster-node .nhealth > .dot.warn{background:var(--warn-dot)}
@media (max-width:700px){
  .cluster-node .usage.two > .use:not(:first-child) .meter,.cluster-node .usage.two > .use .meter{display:block}
  .cluster-node .usage.two{column-gap:16px}
}

/* ---- node administration: one Host card (facts, then the CPU pools under an overline) ---- */
.node-view .hostcard .hc-pools{margin:16px 0 0;padding:16px 0 0;border-top:1px solid var(--border)}
.node-view .hostcard .hc-pools > h3.eyebrow{display:flex;align-items:center;margin:0 0 4px}
.node-view .hostcard ul.pools{margin:0;padding:0;list-style:none}
.node-view .hostcard ul.pools > li{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"n p" "m p";align-items:center;column-gap:12px;min-height:52px;padding:8px 0;border-top:1px solid var(--border-soft)}
.node-view .hostcard ul.pools > li:first-child{border-top:0}
.node-view .hostcard ul.pools .pn{grid-area:n;font:600 14px/20px var(--sans);color:var(--text)}
.node-view .hostcard ul.pools .pm{grid-area:m;display:flex;gap:0;font-size:13px;line-height:18px;color:var(--text-2)}
.node-view .hostcard ul.pools > li > .tag{grid-area:p}

.node-view .nactions .fgrid.nact{align-items:start}
.node-view .nactions .fgrid.nact .fld.unitf{position:relative}
.node-view .nactions .fgrid.nact .fld.unitf > .unit{position:absolute;right:12px;top:26px;bottom:auto;height:36px;margin:0;float:none}
@media (max-width:700px){
  .node-view .nactions .fgrid.nact .fld.unitf > .unit{top:26px;height:44px}
  .node-view .hostcard.railx .hc-pools{margin-top:12px}
  .node-view .nactions details.nmore{margin:4px -16px 0;padding:0;border:0;border-top:1px solid var(--border);border-radius:0;background:none;box-shadow:none}
  .node-view .nactions details.nmore > summary{padding:14px 16px}
  .node-view .nactions details.nmore > .d-b{padding:0 16px 16px}
  .node-view .nactions form:has(details.nmore) > footer.cf{margin-top:0}
}

/* ---- instance administration: one caption under the lifecycle choice on a phone ---- */
.policy-bare .pol-f .pol-l{margin:0 0 6px}
.card .policy-bare footer.cf{margin-inline:0;padding-inline:0}

/* ---- bot administration: Conversation the Details card's last row ---- */
.card.o-ov > .convo-row.o-convo{margin:16px calc(-1 * var(--card-px)) calc(-1 * var(--card-py));border-top:1px solid var(--border)}
.card.o-ov > .convo-row.o-convo > button.disc-btn{display:grid;grid-template-columns:minmax(0,1fr) 16px;column-gap:12px;align-items:start;width:100%;min-height:64px;margin:0;padding:14px var(--card-px);border:0;border-radius:0 0 12px 12px;background:transparent;box-shadow:none;text-align:left;color:var(--text)}
.card.o-ov > .convo-row.o-convo > button.disc-btn:hover:not(:disabled){background:var(--hover)}
.card.o-ov > .convo-row.o-convo > button.disc-btn > .d-t{display:flex;flex-direction:column;gap:2px;min-width:0}
.card.o-ov > .convo-row.o-convo > button.disc-btn > .d-t > b{font:600 14px/20px var(--sans)}
.card.o-ov > .convo-row.o-convo > button.disc-btn > .d-t > .d-s{font-size:13px;line-height:18px;color:var(--text-2);white-space:normal}
.card.o-ov > .convo-row.o-convo > button.disc-btn > .d-ch{margin-top:2px;color:var(--text-2);transition:transform var(--dur-1) var(--ease)}
.card.o-ov > .convo-row.o-convo > button.disc-btn.on > .d-ch{transform:rotate(180deg)}
.card.o-ov > .convo-row.o-convo > .convo{padding:0 var(--card-px) var(--card-py)}
.card.o-ov.railx > .convo-row.o-convo{margin:0;border-top:1px solid var(--border)}
.card.o-ov.railx > .convo-row.o-convo > button.disc-btn{padding:14px 16px}
@media (min-width:701px){
  .ihx.bot .ih-title > .istate{height:22px;padding:0 8px;background:var(--ok-soft)}
  .ihx.bot .ih-title > .istate > span:not(.dot):not(.vh){position:static;width:auto;height:auto;overflow:visible;clip-path:none}
}

/* ---- checkpoints: a fixed table (the actions a 48 px column), a quiet explainer ---- */
@media (min-width:701px){
  :is(.ws-main,.ck-list) .ckcols,:is(.ws-main,.ck-list) .ckr{grid-template-columns:minmax(0,1fr) 160px 140px 96px 48px;column-gap:16px}
  .ck-list .ckcols > :nth-child(4),.ck-list .ckr .manifest-t{justify-self:end;text-align:right}
}

@media (min-width:701px){
  .checkpoint-view .ws-rail .card.howcard:not(.railx){box-shadow:none;background:var(--surface-1)}
  :root:not([data-theme="light"]) .checkpoint-view .ws-rail .card.howcard:not(.railx){background:transparent}
}
@media (min-width:701px) and (prefers-color-scheme:light){:root:not([data-theme="dark"]) .checkpoint-view .ws-rail .card.howcard:not(.railx){background:var(--surface-1)}}

/* ---- history: 32 px toolbar, 36 px rows, HH:MM (a repeated minute quieter), the end outside the card ---- */
@media (min-width:701px){
  .hcols,.hrow.optab{grid-template-columns:minmax(0,1.1fr) minmax(0,1.3fr) 160px 96px}
  .hrow.optab{min-height:36px;padding-top:6px;padding-bottom:6px}
  .hrow.optab .hr-t{justify-self:end;text-align:right}
}
.hrow.optab .hr-t .ts{color:var(--text)}
.hrow.optab .hr-t .ts.rep{color:var(--text-2)}
.hrow.optab .hop .kic.kic,.hrow.optab .hop .kic.k-new,.hrow.optab .hop .kic.k-msg{width:16px;height:16px;border-radius:0;background:none;color:var(--text-2)}
.hrow.optab .hop .kic.k-egress{background:none;color:var(--warn)}
.hrow.optab .hop .kic.k-bad{background:none;color:var(--bad)}
.hrow.optab .hop .kic .ic{width:16px;height:16px}
.history-records .hday,:root[data-theme="light"] .history-records .hday{height:32px;min-height:32px;border-top:1px solid var(--border);border-bottom:1px solid var(--border);background:var(--surface-2);font:600 12px/16px var(--sans);letter-spacing:.06em;text-transform:uppercase;color:var(--text-2)}
.history-records .hday .dd{text-transform:uppercase}
.history-main > .hend,.history-view .history-main > .hend{display:flex;align-items:center;gap:16px;margin:16px 0 0;padding:0;border:0;font-size:13px;line-height:18px;color:var(--text-2);text-align:center}
.history-main > .hend::before,.history-main > .hend::after{content:"";display:block;flex:1;height:1px;background:var(--border)}
@media (max-width:700px){
  .hrow.optab .kind{font-size:15px;font-weight:500}
  .hrow.optab .hmeta .actor{display:inline-flex;align-items:center;height:20px;margin-left:8px;padding:0 8px;border-radius:999px;background:var(--count-bg);font-size:13px;color:var(--text)}
  .hrow.optab .hmeta .actor::before{content:none}
  .hrow.optab .hmeta .actor .aav{display:none}
}

/* ---- home: a released meter is an empty track; 26 px chips (a waiting bot's shield); the path a mono chip ---- */
.ipanel .usage.rel .meter{margin:0}
.ipanel .usage.rel .meter > i{display:none}
.ipanel .ip-bots .chip.bot{height:26px;padding:0 10px 0 8px;gap:6px}
.ipanel .ip-bots .chip.bot.needs{background:var(--warn-soft);color:var(--text)}
.ipanel .ip-bots .chip.bot.needs > .chip-sh{flex:none;color:var(--warn)}
.ipanel .ip-bots > button.addbot{width:26px;height:26px;min-height:26px}
.ipanel .act > .x code.apath{padding:0 5px;border-radius:5px;background:var(--code-bg);box-shadow:inset 0 0 0 1px var(--border-soft);font:400 12.5px/18px var(--mono);color:var(--text)}
.ipanel .act > .x{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.ipanel .acts > button.quiet.lc,.ipanel .acts > button.quiet.lc.sm{margin-left:-8px}

@media (max-width:700px){
  
  .ipanel .act > .x{display:block;-webkit-line-clamp:unset;white-space:nowrap}
}

/* ---- new instance: section overlines, full-width fields, the profile's resources as text, disclosure rows ---- */
.drawer form.newinst fieldset.grp > legend{margin:0 0 12px;font:600 13px/18px var(--sans);letter-spacing:.06em;text-transform:uppercase;color:var(--text-2)}
.drawer form.newinst fieldset.grp + fieldset.grp{margin-top:24px;padding-top:24px;border-top:1px solid var(--border)}
.drawer form.newinst .grp-rows > button.disclose.drow{grid-template-columns:minmax(0,1fr) 16px;align-items:start}
.drawer form.newinst .grp-rows > button.disclose.drow > .d-ic{display:none}
.drawer form.newinst .grp-rows > button.disclose.drow > .ic:last-child{margin-top:2px}
.drawer .dh{align-items:center}
.drawer .dh > button.ib{align-self:center}
@media (max-width:700px){
  .drawer .db > form > .row:last-child{flex-wrap:wrap;row-gap:8px}
  .drawer .db > form > .row:last-child > .fnote{flex:1 1 100%;order:9}
}

/* ---- the Grok panel: Screen as one window (a title bar over the stream), the ways to use it as an action list ---- */
.scr > .scrwin{display:flex;flex-direction:column;border:1px solid var(--border);border-radius:12px;overflow:hidden;background:var(--surface-1);box-shadow:var(--shadow-card)}
.scr > .scrwin > .scrbar{display:flex;flex-wrap:nowrap;align-items:center;gap:10px;min-height:40px;margin:0;padding:4px 6px 4px 6px;border-bottom:1px solid var(--border);background:var(--surface-1)}
.scr > .scrwin > .scrbar select.ghost.chipsel{flex:none;height:28px;min-height:28px;line-height:26px;border-color:var(--border);font-size:13px}
.scr > .scrwin > .scrbar > .scrname{flex:1 1 auto;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:13px;line-height:18px;color:var(--text-2)}
.scr > .scrwin > .scrbar > .scrstate{position:static;display:inline-flex;align-items:center;gap:4px;flex:none;min-height:0;margin:0;padding:0;background:none}
.scr > .scrwin > .scrbar > .scrstate .tag.scrctl{height:22px;padding:0 8px;border-radius:999px;background:var(--neutral-soft);color:var(--text-2);font:600 13px/1 var(--sans)}
.scr > .scrwin > .scrbar > .scrstate .tag.scrctl.ok{background:var(--ok-soft);color:var(--ok)}
.scr > .scrwin > .scrbar > .scrstate .tag.scrctl.ok::before{content:"";width:6px;height:6px;margin-right:6px;border-radius:50%;background:currentColor}
.scr > .scrwin > .scrbar > .scrstate button.ib.full{position:static;width:28px;height:28px;min-height:28px;border:0;border-radius:6px;background:transparent;color:var(--text-2)}
.scr > .scrwin > .scrbar > .scrstate button.ib.full:hover{background:var(--hover);color:var(--text)}
@media (max-width:400px){
  .scr > .scrwin > .scrbar{flex-wrap:wrap}
  .scr > .scrwin > .scrbar > .scrstate{max-width:100%;margin-left:auto}
  .scr > .scrwin > .scrbar > .scrstate .tag.scrctl{height:auto;min-height:22px;white-space:normal;line-height:16px}
}
.scr > .scrwin > .scrframe{margin:0;border:0;border-radius:0}
.scr > .scrwin > .scrframe > .scrbox{border:0;border-radius:0}

.scr > .scrabout-l{display:flex;flex-direction:column;gap:12px;padding:2px 4px 8px}
.scr > .scrabout-l > h4.scrh{margin:0;font:600 13px/18px var(--sans);letter-spacing:.06em;text-transform:uppercase;color:var(--text-2)}
.scr > .scrabout-l ul.scr-how{display:flex;flex-direction:column;gap:12px;margin:0;padding:0;list-style:none}
.scr > .scrabout-l ul.scr-how > li{display:grid;grid-template-columns:16px minmax(0,1fr);column-gap:12px;align-items:start}
.scr > .scrabout-l ul.scr-how > li > .ic{margin-top:2px;color:var(--text-2)}

.scr > .scrabout-l .about-body{font-size:13px;line-height:19px;color:var(--text-2)}

/* ---- Files: a crumb row (the bot pill › home), a list card filling the panel with its upload strip docked at its foot ---- */
.gk-panel .fview > .flist > .fbar,.fview > .flist > .fbar{display:flex;align-items:center;gap:6px;height:44px;min-height:44px;margin:0;padding:0 4px 0 8px;border-bottom:1px solid var(--border)}
.fview > .flist > .fbar select.ghost.chipsel{height:28px;min-height:28px;line-height:26px;font-size:13px;border-color:var(--border)}
.fview > .flist > .fbar > .cs.fsep,.fview > .flist > .fbar .crumbs .cs{color:var(--text-2);margin:0 2px}
.fview > .flist > .fbar .crumbs button.link{font:600 14px/20px var(--sans);color:var(--text)}
.fview > .flist > .fbar .crumbs button.link.root .ic{display:none}
.fview > .flist > .fbar > .fcount{margin-left:auto;font-size:13px;color:var(--text-2)}
.fview > .flist > .fbar > .ib.fref{width:32px;height:32px;min-height:32px;border:0;border-radius:8px;background:transparent;color:var(--text-2)}
.fview > .flist > .fbar > .ib.fref:hover:not(:disabled){background:var(--hover);color:var(--text)}
.gk-panel .fview,.rpane .fview{display:flex;flex-direction:column;min-height:0}
.gk-panel .fview > .flist,.rpane .fview > .flist{display:flex;flex-direction:column;margin:0;border:1px solid var(--border);border-radius:12px;background:var(--surface-1);box-shadow:var(--shadow-card);overflow:hidden}
.gk-panel .fview:not(:has(.fpreview)) > .flist,.rpane .fview:not(:has(.fpreview)) > .flist{flex:1 1 auto}
.ftree .fview > .flist > .fhead,.ftree .fview > .flist button.frow{grid-template-columns:16px minmax(0,1fr) 96px 72px 40px;column-gap:10px;min-height:44px;padding-left:12px;padding-right:4px}
.ftree .fview > .flist button.frow + button.frow::before{left:12px;right:12px}
.ftree .fview > .flist > .fhead > span:nth-child(3),.ftree .fview > .flist > .fhead > span:nth-child(4),.ftree .fview > .flist button.frow > :is(.mt,.sz){text-align:right;justify-self:end}
.ftree .fview > .flist button.frow > .cv{display:inline-grid;place-items:center;justify-self:center;width:32px;height:32px;border-radius:8px;opacity:1;color:var(--text-2)}
.ftree .fview > .flist button.frow > .cv .ic{width:16px;height:16px}
.ftree .fview > .flist button.frow:hover > .cv{background:var(--hover);color:var(--text)}
.fview > .flist > form.upfoot.updrop.updrop,.fview > .flist > form.upfoot.updrop{position:static;order:0;flex:none;display:flex;flex-direction:column;gap:12px;min-height:64px;margin:auto 0 0;padding:12px 12px 12px 16px;border:0;border-top:1px dashed var(--border-strong);border-radius:0;background:transparent;box-shadow:none}
.fview > .flist > form.updrop > .uf-row{display:grid;grid-template-columns:20px minmax(0,1fr) auto;grid-template-rows:auto;align-items:center;column-gap:12px;min-height:40px;text-align:left}
.fview > .flist > form.updrop .uf-ic{display:inline-flex;grid-row:1;width:auto;height:auto;background:none;color:var(--text-2)}
.fview > .flist > form.updrop .uf-ic .ic{width:18px;height:18px}
.fview > .flist > form.updrop .uf-hint{display:block;grid-column:2;grid-row:1;align-self:center;min-width:0;font:400 13px/18px var(--sans);color:var(--text)}
.fview > .flist > form.updrop .uf-hint > span{white-space:normal}
.fview > .flist > form.updrop .uf-hint > span > b{white-space:nowrap}
.fview > .flist > form.updrop .uf-hint b{font-weight:600}
.fview > .flist > form.updrop .uf-lim{display:none}
.fview > .flist > form.updrop label.upbtn{grid-column:3;grid-row:1;align-self:center;flex:none;width:auto;height:32px;margin:0;padding:0 12px;border:1px solid var(--border-strong);border-radius:8px;background:var(--btn-bg);color:var(--text);font-weight:500}
@media (max-width:700px){
  .ftree .fview > .flist > .fhead{display:none}
  .ftree .fview > .flist button.frow{grid-template-columns:16px minmax(0,1fr) auto auto 36px;grid-template-areas:"ic n m s cv";min-height:48px;column-gap:0}
  .ftree .fview > .flist button.frow > .nm{margin:0 10px}
  .ftree .fview > .flist button.frow > .ic:first-child{grid-area:ic}
  .ftree .fview > .flist button.frow > .nm{grid-area:n;font-size:14px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .ftree .fview > .flist button.frow > .mt{grid-area:m;display:inline;font-size:13px;color:var(--text-2)}
  .ftree .fview > .flist button.frow > .sz{grid-area:s;display:inline;font-size:13px;color:var(--text-2)}
  .ftree .fview > .flist button.frow:not(.d) > .sz::before{content:"·";margin:0 6px}
  .ftree .fview > .flist button.frow > .cv{margin-left:6px}
  .ftree .fview > .flist button.frow > .cv{grid-area:cv;width:36px;height:36px}
  .gk-panel .fview > .flist{border:0;border-radius:0;box-shadow:none;background:transparent}
  .gk-panel .fview > .flist > form.upfoot.updrop.updrop,.fview > .flist > form.upfoot.updrop{position:sticky;bottom:0;margin:auto 0 0;padding:12px 0 calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--border);background:var(--panel-bg,var(--surface-1))}
  .ftree .fview > .flist button.frow{padding-left:4px;padding-right:0}
  .ftree .fview > .flist button.frow + button.frow::before{left:4px;right:0}
  .ftree .fview > .flist button.frow > :is(.ic:first-child,.nm,.mt,.sz,.cv){grid-row:1}
  .fview > .flist > form.updrop > .uf-row{grid-template-columns:minmax(0,1fr) auto;column-gap:12px}
  .fview > .flist > form.updrop .uf-ic,.fview > .flist > form.updrop .uf-hint{display:none}
  .fview > .flist > form.updrop label.upbtn{grid-column:1;width:100%;height:44px;justify-content:center}
  .fview > .flist > form.updrop .uf-lim{display:block;grid-column:2;grid-row:1;font-size:13px;color:var(--text-2)}
}

/* ---- Activity: one rail through the 24 px markers, the duration on the title line, the status docked at the foot ---- */
.cwrap{display:flex;flex-direction:column;min-height:100%}
.cwrap > .cbar{display:flex;align-items:center;gap:8px;height:44px;min-height:44px;margin:0 -16px;padding:0 16px 0 12px;border-bottom:1px solid var(--border)}
.cwrap > .clive::before{content:none;display:none}
.cwrap > .cbar > select.ghost.chipsel{height:28px;min-height:28px;line-height:26px;font-size:13px;border-color:var(--border)}
.cwrap > .cbar > .cn{margin-left:auto;font-size:13px;color:var(--text-2)}
.cwrap > .console{flex:1 1 auto;padding-top:8px}
.console > :is(.crow,.cgh){position:relative}
.console > :is(.crow,.cgh)::before{content:"";position:absolute;left:19px;top:0;bottom:0;width:2px;background:var(--border-strong);z-index:0}
.console > .cgh:first-child::before{top:50%}
.console > .crow:last-child::before{bottom:auto;height:18px}
.console > .cgh{display:flex;align-items:center;gap:10px;min-height:40px;margin:0;padding:8px 8px 4px}
.console > .cgh > .gk-av{position:relative;z-index:1;width:24px;height:24px;flex:none;font-size:11px;box-shadow:0 0 0 3px var(--panel-bg,var(--surface-1))}
.console > .cgh > b{font:600 14px/20px var(--sans);color:var(--text)}
.console > .cgh > .ts{margin-left:auto;font-size:13px;color:var(--text-2)}
.console > .crow{display:grid;grid-template-columns:24px minmax(0,1fr);column-gap:12px;align-items:start;margin:0;padding:6px 8px 8px}
.console > .crow .ci,.console > .crow.k-tool .ci,.console > .crow.k-ok .ci,.console > .crow.k-end .ci{position:relative;z-index:1;display:inline-grid;place-items:center;width:24px;height:24px;border:1px solid var(--border-strong);border-radius:50%;background:var(--marker-bg);color:var(--text)}
:root{--marker-bg:var(--surface-3)}
:root[data-theme="light"]{--marker-bg:#efeae1}
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]){--marker-bg:#efeae1}}
.console > .crow.bad .ci{color:var(--bad);border-color:var(--bad-border)}
.console > .crow .ci .ic{width:14px;height:14px}
.console > .crow .cm{display:flex;flex-direction:column;gap:4px;min-width:0}
.console > .crow .cm > .ct{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;align-items:baseline}
.console > .crow .cm > .ct > .t{font:500 14px/24px var(--sans);color:var(--text)}
.console > .crow .cm > .ct > .du{font-size:13px;line-height:24px;color:var(--text-2);font-variant-numeric:tabular-nums}
.console > .crow .cm > .d2{display:block}
.console > .crow .cm > .d2 > .d{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:top}
.console > .crow:is(.k-tool,.k-ok) .cm > .d2 > .d{padding:1px 6px;border-radius:6px;background:var(--code-bg);box-shadow:inset 0 0 0 1px var(--border-soft);font:400 12.5px/20px var(--mono);color:var(--text)}
.cwrap > .clive{position:sticky;bottom:0;display:flex;align-items:center;gap:8px;min-height:40px;margin:auto -16px 0;padding:0 16px calc(env(safe-area-inset-bottom));border-top:1px solid var(--border);background:var(--panel-bg,var(--surface-1));font-size:13px;color:var(--text-2)}
.cwrap > .clive > .ic{color:var(--text-2)}

/* ---- Details: 36 px rows, the trailing 40 px column (copy, change) on every row ---- */
.gk-panel dl.props.gk-facts > .pr,.gk-panel dl.props.gk-facts > .pr:first-child,.gk-panel dl.props.gk-facts > .pr:last-child{align-items:center}
.gk-panel dl.props.gk-facts dd,.gk-panel dl.props.gk-facts > .pr.act dd{display:grid;align-items:center;justify-content:stretch}
.gk-panel dl.props.gk-facts dd > .pv{grid-column:1}
.gk-panel dl.props.gk-facts dd > :is(button.ib.cpy,button.chg){grid-column:2;justify-self:end;height:32px;margin:-6px 0}
.gk .gk-panel dl.props.gk-facts dd > .chg,.gk .gk-panel dl.props.gk-facts dd > .chg:hover:not(:disabled){height:32px;margin:-6px 0}

.gk-panel dl.props.gk-facts dd > :is(button.ib.cpy,button.chg) .ic{height:16px}

.gk-panel .gk-details .gk-dh.props-h,.gk-panel .gk-dh.props-h,.gk-tasks > .gk-dh.props-h{margin:28px 0 6px;padding-top:20px;border-top:1px solid var(--border);font:600 13px/18px var(--sans);letter-spacing:.06em}
.gk-panel .gk-details > .gk-dh.props-h:first-child{margin-top:0;padding-top:0;border-top:0}
.gk-panel .gk-details{padding-bottom:calc(24px + env(safe-area-inset-bottom))}
@media (max-width:700px){.gk-panel dl.props.gk-facts{--pk:112px}}

/* ---- the settings menu: under its trigger, right edges aligned; the trigger pressed while open; overline groups ---- */
@media (min-width:701px){
  .gk-menu.gk-instm{position:relative}
  .gk-instm .gk-sheet{position:absolute;top:calc(100% + 8px);right:0;left:auto;width:280px;max-height:calc(100dvh - 72px);border:1px solid var(--border-strong);box-shadow:var(--shadow-3)}
  .gk-instm .sh-h{display:none}
}
.gk-instm > .gk-mbtn.on,.gk-instm > .gk-mbtn[aria-expanded="true"]{background:var(--surface-3);box-shadow:inset 0 0 0 1px var(--border-strong);color:var(--text)}
.gk-menu .sec,.gk-menu .grp > .sec{display:flex;flex-direction:row;justify-content:flex-start;text-align:left;align-items:center;gap:8px;min-height:28px;padding:6px 10px 2px;font:600 12px/16px var(--sans);letter-spacing:.06em;text-transform:uppercase;color:var(--text-2)}
.gk-menu .sec > b,.gk-menu .grp > .sec > b{font:500 13px/16px var(--sans);letter-spacing:0;text-transform:none;color:var(--text)}
.gk-menu .sec > b::before{content:none}
.gk-menu .it{min-height:36px}
.gk-menu .it > .ic{width:16px;height:16px;color:var(--text-2)}
.gk-menu .grp + .grp{margin-top:6px;padding-top:6px;border-top:1px solid var(--border)}
.gk-menu .grp.dz{padding-top:6px;background:none}
@media (max-width:700px){
  .gk-menu .sh-h b .sht{font:650 17px/22px var(--sans)}
  .gk-menu .it{min-height:44px}
  .gk-menu .it > .ic{width:18px;height:18px;color:var(--text)}
  .gk-menu .gk-sheet{padding-top:16px;padding-bottom:calc(16px + env(safe-area-inset-bottom))}
  .gk-menu .gk-sheet::before{content:"";position:absolute;top:6px;left:50%;width:36px;height:4px;margin-left:-18px;border-radius:2px;background:var(--border-strong)}
}

/* ---- the chats: the transcript starts at the top; the waiting card follows it, sticky at the scroller's foot (r17) ---- */
.gk-scroll > .gk-transcript,.chat > .transcript{display:flex;flex-direction:column}
.gk-scroll{display:flex;flex-direction:column}
.gk-scroll > .gk-transcript{flex:0 0 auto;width:100%;min-height:0}
/* the sidebars' sections: Groups the same header as Bots, its + a 28 px ghost */
.gk-groups .gk-gh .gk-gadd{width:28px;height:28px;min-height:28px;border:0;border-radius:8px;background:transparent;color:var(--text-2)}
.gk-groups .gk-gh .gk-gadd:hover:not(:disabled){background:var(--hover);color:var(--text)}
.gk-groups .gk-gnone{padding:8px 12px;font-size:13px;color:var(--text-2)}
/* the bar's controls on a phone: 32 px, radius 8, one centre line */
@media (max-width:700px){
  .gk .gk-chead .r > .gk-icon,.gk .gk-chead .l > .gk-icon{width:32px;height:32px;min-height:32px;border-radius:8px}
  .gk .gk-chead > .gk-threads{height:32px}
  .gk .gk-chead > .gk-threads > :is(.gk-thread-pick,.gk-thread-new){height:30px;min-height:30px}
}
/* ---- a phone's instance tabs: all five fit at 390 (spread, 8 px label padding); a fade only when they overflow ---- */
@media (max-width:700px){
  .ihx .subnav.subnav{justify-content:flex-start;gap:4px;padding:0 8px;scroll-padding-inline:8px}
  .ihx .subnav.subnav:has(> .stab:nth-child(5)){justify-content:space-between;gap:0;padding:0 6px}
  .ihx .subnav.subnav .stab{padding:0 8px;font:500 14px/20px var(--sans)}
  .ihx .subnav.subnav .stab.on{font-weight:600}
}
@media (max-width:370px){.ihx .subnav.subnav{justify-content:flex-start}}
/* ---- the chat headers' right cluster: one bordered segment of 32 px icon buttons (Grok: computer and panel; classic:
   the bot's ⋯ and the stream) ---- */
.gk .gk-chead > .r,.chat .ch .ch-acts{display:inline-flex;align-items:center;gap:0;padding:0;border:1px solid var(--border);border-radius:9px;background:transparent}
.gk .gk-chead > .r > .gk-icon,.chat .ch .ch-acts :is(.bot-acts .menu > button.ib,button.stream-h){width:32px;height:30px;min-height:30px;border:0;border-radius:8px}
.gk .gk-chead > .r > .gk-icon + .gk-icon,.chat .ch .ch-acts > * + *{box-shadow:-1px 0 0 var(--border)}
.gk .gk-chead > .r > .gk-icon.on,.gk .gk-chead > .r > .gk-icon[aria-pressed="true"]{box-shadow:none;background:var(--selected)}
.gk .gk-chead > .r > .gk-icon + .gk-icon{border-radius:0 8px 8px 0}
.gk .gk-chead > .r > .gk-icon:first-child:not(:last-child){border-radius:8px 0 0 8px}
@media (max-width:700px){.gk .gk-chead > .r > .gk-icon,.chat .ch .ch-acts :is(.bot-acts .menu > button.ib,button.stream-h){width:34px;height:30px;min-height:30px}}
/* ---- the classic bots list: a quiet closing row to the chat view; a phone's strip of 32 px chips and icon buttons ---- */
@media (min-width:1101px){.ibody > nav.side{display:flex;flex-direction:column}}

@media (max-width:700px){
  .chat > .botbar > .side .brow,.chat > .botbar > .side .brow.on{height:32px;min-height:32px;padding:0 12px 0 4px;gap:6px;border:1px solid var(--border);border-radius:999px;background:transparent;box-shadow:none}
  .chat > .botbar > .side .brow.on,.chat > .botbar > .side .brow.on:hover{background:var(--surface-2);border-color:var(--border-strong)}
  .chat > .botbar > .side .brow .gk-av{--sz:22px;width:22px;height:22px;font-size:11px}
  .chat > .botbar > .side .brow .n{font-size:14px;font-weight:600}
  .chat > .botbar > .side > button.add{width:32px;height:32px;min-height:32px;padding:0;justify-content:center;border:1px solid var(--border);border-radius:50%}
  .chat > .botbar > .side > button.add > .pl{width:auto;height:auto;background:none}
  .chat > .botbar .side-x > button.ib.stream-ic{width:32px;height:32px;min-height:32px;padding:0;border:1px solid var(--border);border-radius:50%;background:transparent;color:var(--text-2)}
  .chat > .botbar .side-x > button.ib.stream-ic.on{background:var(--surface-2);border-color:var(--border-strong);color:var(--text)}
  .chat > .botbar .side-x > button.ib.stream-ic .sl{display:none}
}
/* ---- one switch row: the label and its line at the left, the switch at the right ---- */

/* ---- new instance: the profile's resources as one helper line, the values in the text colour ---- */
.drawer form.newinst p.fhelp.specline b{font-weight:600;color:var(--text)}
.drawer form.newinst fieldset.grp > .fld + .fld,.drawer form.newinst fieldset.grp > p.fhelp + .fld{margin-top:16px}
.drawer form.newinst .grp-rows > details.disc.drow > summary{grid-template-columns:minmax(0,1fr) 16px;align-items:start;min-height:0;padding:14px 0}
.drawer form.newinst .grp-rows > button.disclose.drow{min-height:0;padding:14px 0}
.drawer form.newinst .grp-rows > details.disc.drow > .d-b,.drawer form.newinst .grp-rows > .overrides{padding-left:0}
.access-view .levels-block.legend dl.levels > .lvrow > dt .lv-n{font:500 13px/1 var(--sans);color:var(--text)}
/* the bot pages' crumb keeps its instance's status pill */
.ihx.bot .ih-title > .crumb-pill{display:inline-flex;align-items:center;margin:0 0 0 8px}
@media (max-width:700px){.ihx.bot .ih-title > .crumb-pill{display:none}}
/* ---- clickable cards lift a pixel; panels, drawers and transcripts scroll on thin themed bars ---- */
.card.ipanel,.card.cluster-node.linked{transition:transform var(--dur-1) var(--ease),box-shadow var(--dur-1) var(--ease),border-color var(--dur-1) var(--ease)}
.card.ipanel:hover,.card.cluster-node.linked:hover{transform:translateY(-1px);box-shadow:var(--shadow-2);border-color:var(--border-strong)}
@media (prefers-reduced-motion:reduce){.card.ipanel:hover,.card.cluster-node.linked:hover{transform:none}}
:is(.gk-panel .pb,.rpane .pb,.drawer .db,.gk-scroll,.chat > .transcript,.gk-side,nav.side,.gk-sheet){scrollbar-width:thin;scrollbar-color:var(--border-strong) transparent}
/* ---- a turn's work line: a clear disclosure (13/500 text, the chevron in a 20 px ghost circle, a hover fill) ---- */
.gk .gk-work > button.gk-workh,.chat .work > .wh{display:inline-flex;align-items:center;gap:6px;height:28px;min-height:28px;margin-left:-6px;padding:0 8px 0 6px;border:0;border-radius:8px;background:transparent;font:500 13px/18px var(--sans);color:var(--text);cursor:pointer}
.gk .gk-work > button.gk-workh:hover,.chat .work > .wh:hover{background:var(--hover)}
.gk .gk-work > button.gk-workh > .car,.chat .work > .wh > .car{order:9;display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;color:var(--text-2)}
/* ==== r16 end ==== */

/* ==== r16r ==== */
/* ---- light count badge: a fill that reads on the page as well as on a card ---- */
:root[data-theme="light"]{--count-bg:#ddd6c9}
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]){--count-bg:#ddd6c9}}

/* ---- one empty state: no dashed box; a muted icon and the copy straight on the surface ---- */

.bot-admin-view .card.o-ck > .empty-state.empty-state.empty-state.empty-state.es-slot.es-slot{flex-direction:row;align-items:center;justify-content:flex-start;gap:12px;margin:0}

.bot-admin-view .card.o-ck > .empty-state.es-slot > .es-t{display:grid;row-gap:2px;justify-items:start;max-width:none}

/* ---- drawers and sheets: a 16 px header inset, one ghost close, the footer pinned to the bottom over a hairline ---- */
.drawer > .dh > button.ib,.gk-sheet > .sh-h > button.gk-icon.x,.gk .gk-panel .gk-ph > :is(button.ib,button.gk-icon):last-child{border:0;border-radius:8px;background:transparent;box-shadow:none;color:var(--text-2)}
.drawer > .dh > button.ib:hover:not(:disabled),.gk-sheet > .sh-h > button.gk-icon.x:hover:not(:disabled),.gk .gk-panel .gk-ph > :is(button.ib,button.gk-icon):last-child:hover:not(:disabled){background:var(--hover);color:var(--text)}
@media (min-width:701px){.drawer > .dh > button.ib{width:32px;height:32px;min-height:32px}}
@media (max-width:700px){
  .overlay > .drawer > .dh.dh{align-items:flex-start;min-height:0;padding:16px 8px 12px 16px}
  .overlay > .drawer > .dh > button.ib,.gk-sheet > .sh-h > button.gk-icon.x,.gk .gk-panel .gk-ph > :is(button.ib,button.gk-icon):last-child{width:40px;height:40px;min-height:40px;margin-top:-8px;border-radius:10px;background:transparent}
  .gk .gk-panel .gk-ph > :is(button.ib,button.gk-icon):last-child{margin-top:0}
  .overlay > .drawer > .db.db{padding-bottom:0}
  .overlay > .drawer .db > form > .row:last-child,.overlay > .drawer .db > .row.dfoot{position:sticky;bottom:0;z-index:2;margin:auto -16px 0;padding:12px 16px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--border);background:var(--surface-1)}
  .overlay > .drawer .db > form{flex:1 0 auto;display:flex;flex-direction:column}
  .drawer .db > .access-view{padding-bottom:24px}
}
/* the access legend: the role names as words, so they do not read as more people */
.access-view .levels-block.legend dl.levels > .lvrow > dt{height:auto;padding:0;border-radius:0;background:none;font:600 14px/20px var(--sans);color:var(--text)}
/* new instance: the last field of a section sits 24 px over the next rule, like the others */
.drawer form.newinst fieldset.grp{margin-bottom:0;padding-bottom:0}
.drawer form.newinst fieldset.grp > :last-child,.drawer form.newinst fieldset.grp > :last-child > :last-child{margin-bottom:0}

/* ---- the side panel: flat on the panel, one 16 px gutter on every tab ---- */

.gk .gk-panel .scr > p.scrabout-l.scrnote{display:flex;flex-direction:row;align-items:flex-start;gap:10px;margin:0;padding:0;font-size:13px;line-height:18px;color:var(--text-2)}
.gk .gk-panel .scr > p.scrabout-l.scrnote > .ic{flex:none;margin-top:1px;color:var(--text-2)}
/* the screen's title bar: the live state is a dot on the pill, which leaves the window title its room */
.scr > .scrwin > .scrbar > .scrname{color:var(--text)}
/* activity: the filter and the rail start on the same 16 px edge */
.gk .gk-panel .cwrap > .cbar{padding:0 16px}
.gk .gk-panel .cwrap > .cbar > select.ghost.chipsel{margin-left:0}
.gk .gk-panel .cwrap > .console > :is(.cgh,.crow){padding-left:0;padding-right:0}
/* files: the list flat on the panel (no inset card), the upload strip the panel's footer */
@media (min-width:701px){
  .gk .gk-panel .ftree,.gk .gk-panel .ftree > .fview{display:flex;flex-direction:column;flex:1 1 auto;min-height:0}
  .gk .gk-panel .ftree > .fview > .flist{display:flex;flex-direction:column;flex:1 1 auto}
}
.gk .gk-panel .ftree > .fview > .flist{margin:0 -16px;border:0;border-radius:0;background:transparent;box-shadow:none}
.gk .gk-panel .ftree > .fview > .flist > :is(.fbar,.fhead,button.frow,.fempty){padding-left:16px;padding-right:12px}
.gk .gk-panel .ftree > .fview > .flist > .fbar{padding-right:12px}
.gk .gk-panel .ftree > .fview > .flist > .fbar > label.fbot{margin-left:0}
@media (min-width:701px){.gk .gk-panel .ftree > .fview > .flist > form.upfoot{margin-top:auto;padding-left:16px;padding-right:16px;border-radius:0}}
@media (max-width:700px){
  .gk .gk-panel .ftree > .fview > .flist > :is(.fbar,button.frow,.fempty){padding-left:16px;padding-right:12px}
  /* fixed meta cells, so dates line up whether or not a size follows */
  .gk .gk-panel .ftree button.frow > span.mt{flex:none;width:40px;margin-left:auto;text-align:right}
  .gk .gk-panel .ftree button.frow > span.sz{flex:none;width:52px;text-align:right}
  .gk .gk-panel .ftree .fview > .flist button.frow:not(.d) > span.sz::before{content:none}
}

/* ---- rail cards keep their own height; no dead band under the last row ---- */
:is(.instance-admin-view,.bot-admin-view,.adminview) .ws-rail > :is(.card,section){align-self:start}
:is(.instance-admin-view,.bot-admin-view,.adminview) .ws-rail{align-self:start}

/* ---- metadata that wraps keeps each segment whole; the separator travels with the segment after it ---- */
.mline > *{white-space:nowrap}
.mline > :not(:last-child)::after{content:none}
.mline > * + *::before{content:"·";margin:0 6px;color:var(--text-2)}
@media (max-width:700px){.apr-l2.mline > .apr-q::before{content:none}}

/* ---- the node home's approval banner: the attention amber of the bar's chip, not an error salmon ---- */
:root[data-theme="light"] .ap-notice{border-color:#e8cf9f;background:#fbf2df}
:root[data-theme="light"] .ap-notice > .ap-n-ic{background:rgba(240,169,46,.22);color:#7f4900}
@media (prefers-color-scheme:light){
  :root:not([data-theme="dark"]) .ap-notice{border-color:#e8cf9f;background:#fbf2df}
  :root:not([data-theme="dark"]) .ap-notice > .ap-n-ic{background:rgba(240,169,46,.22);color:#7f4900}
}

/* ---- the chat's approval card: the verb before the host, as in the banner ---- */
.ap-hw > .ap-l1{display:block;font:400 14px/20px var(--sans);color:var(--text);overflow-wrap:anywhere}
.ap-hw > .ap-l1 > .ap-verb{color:var(--text)}
.ap-hw > .ap-l1 > .host{display:inline;font:500 13.5px/20px var(--mono)}

/* ---- home card footer: Suspend and Resume read as (quiet, outlined) buttons beside Open ---- */
.ipanel .acts > button.quiet.lc.lc,.ipanel .acts > button.quiet.lc.sm.lc{margin-left:0}

/* ---- the home banner on a phone: "whole instance" goes (every grant is), so the meta keeps to one line ---- */

/* ==== r16r end ==== */

/* ==== r17 ==== */
:root{--edge-shade:rgba(0,0,0,.42)}
:root[data-theme="light"]{--edge-shade:rgba(31,27,23,.09)}
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]){--edge-shade:rgba(31,27,23,.09)}}
/* ---- C11 drawers and sheets: a header, a scroller, a solid footer outside the scroller. The scroller shows a soft
   shade at an edge only while more lies past it (background-attachment local over scroll) ---- */
.overlay > .drawer > .db:is(:has(> .dscroll),:has(> :is(form,.dwrap) > .dscroll)){display:flex;flex-direction:column;flex:1 1 auto;min-height:0;overflow:hidden;padding:0}
.overlay > .drawer > .db > :is(form,.dwrap):has(> .dscroll){display:flex;flex-direction:column;flex:1 1 auto;min-height:0;margin:0;padding:0}
.overlay > .drawer > .db > .dscroll,.overlay > .drawer > .db > :is(form,.dwrap) > .dscroll{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;margin:0;padding:20px 24px 24px;overflow:auto;overscroll-behavior:contain;
  scrollbar-width:thin;scrollbar-color:var(--border-strong) transparent;
  background:linear-gradient(var(--surface-1) 30%,transparent) top / 100% 24px no-repeat local,linear-gradient(transparent,var(--surface-1) 70%) bottom / 100% 24px no-repeat local,
    linear-gradient(var(--edge-shade),transparent) top / 100% 8px no-repeat scroll,linear-gradient(transparent,var(--edge-shade)) bottom / 100% 8px no-repeat scroll,var(--surface-1)}
.overlay > .drawer > .db > :is(.dscroll,:is(form,.dwrap) > .dscroll) > *{flex:none}
.drawer .dscroll > p{font-size:14px;line-height:21px;color:var(--text-2)}
.drawer .dscroll > p b{color:var(--text)}
.overlay > .drawer > .db > :is(form,.dwrap) > .dscroll + .row.row,.overlay > .drawer > .db > .dscroll ~ .row.dfoot.dfoot{position:static;z-index:auto;flex:none;display:flex;direction:ltr;flex-direction:row-reverse;flex-wrap:wrap;justify-content:flex-start;align-items:center;gap:8px 12px;
  margin:0;padding:12px 24px;border-top:1px solid var(--border);background:var(--surface-1);box-shadow:none}
.overlay > .drawer > .db > :is(form,.dwrap) > .dscroll + .row.row > button,.overlay > .drawer > .db > .dscroll ~ .row.dfoot.dfoot > button{flex:none;height:36px;min-height:36px;padding:0 16px;margin:0}
.overlay > .drawer > .db > :is(form,.dwrap) > .dscroll + .row.row > :is(.go,.danger,button[type=submit]){min-width:104px}
.overlay > .drawer > .db > :is(form,.dwrap) > .dscroll + .row.row > :is(.fnote,.muted),.overlay > .drawer > .db > .dscroll ~ .row.dfoot.dfoot > :is(.fnote,.muted){order:0;flex:1 1 0;min-width:0;margin:0 auto 0 0;display:inline-flex;align-items:center;gap:8px;font:400 13px/19px var(--sans);color:var(--text-2)}
.overlay > .drawer > .db > :is(form,.dwrap) > .dscroll + .row.row > .fnote > .ic{flex:none;width:16px;height:16px;color:var(--text-2)}
.overlay > .drawer > .db > .dscroll ~ .row.dfoot.dfoot > button{order:-1}
@media (max-width:700px){
  .overlay > .drawer > .db > .dscroll,.overlay > .drawer > .db > :is(form,.dwrap) > .dscroll{padding:16px 16px 24px}
  .overlay > .drawer > .db > :is(form,.dwrap) > .dscroll + .row.row,.overlay > .drawer > .db > .dscroll ~ .row.dfoot.dfoot{padding:12px 16px calc(12px + env(safe-area-inset-bottom))}
  .overlay > .drawer > .db > :is(form,.dwrap) > .dscroll + .row.row > button,.overlay > .drawer > .db > .dscroll ~ .row.dfoot.dfoot > button{height:44px;min-height:44px}
  .overlay > .drawer > .db > :is(form,.dwrap) > .dscroll + .row.row{flex-direction:row}
  .overlay > .drawer > .db > :is(form,.dwrap) > .dscroll + .row.row > button{flex:1 1 0;order:1;min-width:0}
  .overlay > .drawer > .db > :is(form,.dwrap) > .dscroll + .row.row > :is(.go,.danger,button[type=submit]){flex:2 1 0;order:2}
  .overlay > .drawer > .db > :is(form,.dwrap) > .dscroll + .row.row > :is(.fnote,.muted){flex:1 1 100%;order:0}
  .overlay > .drawer > .dh.dh{align-items:flex-start;min-height:0;padding:16px 8px 12px 16px}
  .overlay > .drawer > .dh .dtt{font:600 18px/24px var(--sans)}
  .overlay > .drawer > .dh > button.ib.ib{width:40px;height:40px;min-height:40px;margin-top:-8px;border-radius:10px}
}
/* new instance: 480 px; sections under sentence-case headings with a hairline between; image and kernel full width */
@media (min-width:701px){.overlay > .drawer:has(form.newinst){width:min(480px,100vw)}}
.drawer form.newinst fieldset.grp.grp > legend{float:left;width:100%;margin:0 0 12px;padding:0;font:600 15px/22px var(--sans);letter-spacing:0;text-transform:none;color:var(--text)}
.drawer form.newinst fieldset.grp.grp + fieldset.grp{margin-top:24px;padding-top:24px;border-top:1px solid var(--border-soft)}
.drawer form.newinst .fstack.imgs{display:flex;flex-direction:column;gap:16px;margin-top:16px}
.drawer form.newinst .fstack.imgs > label.f{margin:0}
.drawer form.newinst .fstack.imgs > label.f + p.fhelp{margin:-10px 0 0}
.drawer form.newinst fieldset.grp.adv .grp-rows{margin:0;border-top:0}
.drawer form.newinst fieldset.grp.adv .grp-rows > :is(button.disclose.drow,details.disc.drow){border-top:0;border-bottom:1px solid var(--border-soft)}
.drawer form.newinst fieldset.grp.adv .grp-rows > :is(button.disclose.drow,details.disc.drow):first-child{border-top:1px solid var(--border-soft)}
.drawer form.newinst fieldset.grp.adv .grp-rows > button.disclose.drow,.drawer form.newinst fieldset.grp.adv .grp-rows > details.disc.drow > summary{min-height:56px;padding:10px 0;align-items:center}
.drawer form.newinst fieldset.grp.adv .grp-rows > button.disclose.drow > .ic:last-child{margin-top:0}
.drawer form.newinst .grp-rows .dz-h,.drawer form.newinst .grp-rows details.disc > summary .d-s{font:400 13px/18px var(--sans);color:var(--text-2)}
.drawer form.newinst p.owner-note{margin:16px 0 0;font-size:13px;line-height:19px;color:var(--text-2)}
.drawer form.newinst p.owner-note b{color:var(--text);font-weight:600}
@media (max-width:700px){
  .drawer form.newinst p.fhelp.specline{display:grid;grid-template-columns:1fr 1fr;gap:4px 12px;font-size:14px;line-height:20px;color:var(--text-2)}
  .drawer form.newinst p.fhelp.specline > .sep{display:none}
}
/* access: Invite as two labelled rows (the username; the role with Share at its foot), the roles as name over line */
.access-view form.share.share{display:flex;flex-direction:column;gap:16px;margin:0}
.access-view form.share.share > h3.sub{margin:0 0 -4px}
.access-view form.share label.f.su,.access-view form.share .share-row label.f.sl{display:flex;flex-direction:column;gap:6px;margin:0;font:500 14px/20px var(--sans);color:var(--text)}
.access-view form.share label.f.su > input{width:100%;height:36px;min-height:36px}
.access-view form.share .share-row.share-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px}
.access-view form.share .share-row.share-row > label.f.sl > select{width:100%;height:36px;min-height:36px}
.access-view form.share .share-row.share-row > button{height:36px;min-height:36px;padding:0 20px}
.access-view > h3.sub.sub{margin:28px 0 10px}
.access-view .levels-block.legend dl.levels > .lvrow{gap:2px;padding:12px 0}
.access-view .levels-block.legend dl.levels > .lvrow > dt .lv-n.lv-n{font:600 14px/20px var(--sans);color:var(--text)}
.access-view .levels-block.legend dl.levels > .lvrow > dd{font-size:13px;line-height:20px;color:var(--text-2)}
.access-view ul.people > li.person .tag.role.prole.prole{height:24px;padding:0 10px;border:0;border-radius:var(--r-pill);background:var(--neutral-soft);color:var(--text);font:500 13px/1 var(--sans)}
@media (max-width:700px){
  .access-view form.share label.f.su > input,.access-view form.share .share-row.share-row > label.f.sl > select,.access-view form.share .share-row.share-row > button{height:44px;min-height:44px}
}
/* classic: the bots list closes on a bounded callout to the chat view; a phone's Stream a labelled 36 px pill */

@media (max-width:700px){
  .chat > .botbar .side-x > button.ib.stream-ic.stream-ic{width:auto;height:36px;min-height:36px;padding:0 12px 0 10px;gap:6px;border-radius:999px}
  .chat > .botbar .side-x > button.ib.stream-ic.stream-ic .sl{display:inline;font:500 14px/1 var(--sans)}
}
/* ---- the terminal's page head on phones ---- */
@media (max-width:700px){
  .terminal-page > .pg-head{margin-bottom:16px}
}
/* ---- 2.5 home: a two-line approval banner; 76 px stat tiles (a phone: 2 x 2); instance cards of ~196 px (memory
   and bots one row each), Open the bordered way in, Suspend and Resume quiet ---- */
.home-view .ap-notice.ap-notice{grid-template-columns:28px minmax(0,1fr) auto;grid-template-areas:"ic t go";align-items:center;column-gap:12px;min-height:64px;padding:12px 12px 12px 16px}
.home-view .ap-notice.ap-notice > .ap-n-ic{align-self:center;width:28px;height:28px}
.home-view .ap-notice.ap-notice > .ap-n-t{gap:2px}
.home-view .ap-notice.ap-notice .ap-n-l1{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.home-view .ap-notice.ap-notice .ap-n-l1 code.host{font-size:13.5px}

.home-view .ap-notice.ap-notice > button.ap-n-go{grid-area:go;width:auto}
@media (max-width:700px){
  .home-view .ap-notice.ap-notice{grid-template-columns:28px minmax(0,1fr) auto;grid-template-areas:"ic l1 go" "m m m";row-gap:6px;padding:12px}
  .home-view .ap-notice.ap-notice > .ap-n-t{display:contents}
  .home-view .ap-notice.ap-notice .ap-n-l1{grid-area:l1;align-self:center;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
  
  
  .home-view .ap-notice.ap-notice > button.ap-n-go{width:auto}
}
.home-view > .ihead.page{margin:0 0 24px}
.home-view > .ap-notice,.home-view > .attn-band{margin-top:0}
.statstrip-c > .sc.sc{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto auto;grid-template-areas:"k cap" "v v" "m m";align-items:center;align-content:start;row-gap:4px;min-height:76px;padding:12px 16px}
.statstrip-c > .sc.sc > .sk{grid-area:k;font:500 13px/18px var(--sans);color:var(--text-2)}
.statstrip-c > .sc.sc > .sv{grid-area:v;font:650 22px/28px var(--sans);font-variant-numeric:tabular-nums;color:var(--text)}
.statstrip-c > .sc.sc > .sv > .of{margin-left:6px;font:400 13px/18px var(--sans);color:var(--text-2)}
.statstrip-c > .sc.sc > .sf{display:contents}
.statstrip-c > .sc.sc > .sf > .meter{grid-area:m;width:100%;margin:2px 0 0}
.statstrip-c > .sc.sc > .sf > .dot{display:none}
.statstrip-c > .sc.sc > .sf > span:not(.meter){grid-area:cap;font:400 13px/18px var(--sans);color:var(--text-2);font-variant-numeric:tabular-nums;white-space:nowrap}
@media (max-width:700px){
  .statstrip-c.statstrip-c{display:grid;grid-template-columns:1fr 1fr}
  .home-view > .ihead.page{margin:8px 0 20px}
  .statstrip-c > .sc.sc{grid-template-columns:auto minmax(0,1fr);grid-template-rows:18px 24px auto;grid-template-areas:"k k" "v cap" "m m";align-items:baseline;min-height:0;padding:10px 12px;row-gap:2px;column-gap:8px}
  .statstrip-c > .sc.sc > .sk{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .statstrip-c > .sc.sc > .sv{font-size:18px;line-height:24px}
  .statstrip-c > .sc.sc > .sf > span:not(.meter){justify-self:stretch;min-width:0;overflow:hidden;text-overflow:ellipsis;text-align:right}
  .statstrip-c > .sc.sc:not(:has(.meter)){grid-template-columns:minmax(0,1fr);grid-template-rows:18px 24px auto;grid-template-areas:"k" "v" "cap"}
  .statstrip-c > .sc.sc:not(:has(.meter)) > .sf > span:not(.meter){text-align:left}
  .statstrip-c > .sc.sc > .sf > .meter{align-self:center;margin:6px 0 0}
  .statstrip-c > .sc.sc > .sv > .of{display:none}
}
.home-view .card.ipanel.ipanel{gap:10px;padding:16px 20px 0}
.home-view .ipanel .ip-h .ip-n{font:600 16px/22px var(--sans)}
.home-view .ipanel .ip-h .specs{font-size:13px;line-height:18px;color:var(--text-2)}
.home-view .ipanel .usage.usage{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;column-gap:12px;margin:0}
.home-view .ipanel .usage > .uh{display:contents}
.home-view .ipanel .usage > .uh > .ip-k{order:1;font-size:13px;color:var(--text-2)}
.home-view .ipanel .usage > .meter{order:2;margin:0}
.home-view .ipanel .usage > .uh > :last-child{order:3;font-size:13px;color:var(--text-2);font-variant-numeric:tabular-nums}
.home-view .ipanel .usage > .uh > :last-child b{color:var(--text);font-weight:600}
.home-view .ipanel .ip-bk{display:none}
.home-view .ipanel .ip-bots.ip-bots{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0}
.home-view .ipanel .ip-bots > .ip-slots.m-only{display:inline-flex !important;margin-left:auto;font-size:13px;color:var(--text-2);font-variant-numeric:tabular-nums}
.home-view .ipanel .ip-bots.ip-bots{min-height:26px}
.home-view .ipanel .ip-bots .chip.bot{height:26px;min-height:26px;font-size:13px}
.home-view .ipanel .ip-bots > button.addbot{width:26px;height:26px;min-height:26px}
.home-view .ipanel .act{margin:0;font-size:13px;line-height:18px}
.home-view .ipanel .acts.acts{min-height:46px;margin:2px -20px 0;padding:6px 12px 6px 20px;border-top:1px solid var(--border-soft)}
.home-view .ipanel .acts > button.quiet.lc.lc.lc{margin-left:-8px}

@media (max-width:700px){
  .home-view .card.ipanel.ipanel{padding:14px 16px 0}
  .home-view .ipanel .acts.acts{margin:0 -16px;padding:6px 8px 6px 16px}
  
  .home-view .ipanel .act.act:has(> .x > .xd){display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"ic t w" "d d d";column-gap:8px;row-gap:2px;align-items:center}
  .home-view .ipanel .act.act > .x:has(> .xd){display:contents}
  .home-view .ipanel .act.act > .a-ic{grid-area:ic}
  .home-view .ipanel .act.act > .x > .t{grid-area:t;font-size:13px;color:var(--text-2);font-weight:600}
  .home-view .ipanel .act.act > .x > .xd{grid-area:d;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:13px;color:var(--text)}
  .home-view .ipanel .act.act > .w{grid-area:w}
}
/* ---- C3 one spacing rhythm: 28 px between sections (a phone 24), 10 px from a heading to its card ---- */
.ws > .ws-main,.ws > .ws-rail{gap:var(--sec-gap)}
.ws{column-gap:24px}
.sec.sec{gap:10px}
.sec-h:not(:has(> .sec-a)){min-height:0}
/* a heading with an action keeps the heading's 24 px line, so a main column's and a rail's headings align */
.sec-h:has(> .sec-a){min-height:24px;align-items:center}
.sec-h > .sec-a{height:24px}
.adminview.adminview{gap:24px}
.adminview > .pg-head .ihead.page .sub,.ihead.page > .sub,.ihead.page .ttl > .sub{margin-top:6px}
@media (max-width:700px){
  :root{--sec-gap:24px;--card-pad:16px}
  .adminview.adminview{gap:20px}
  .ihead.page h2,.ihead.page .ttl h2,.adminview .pg-head h1,.adminview .pg-head h2{font-size:26px;line-height:32px}
}
/* rail cards keep their own height: a short rail ends where its content does, never on a dead band */
@media (min-width:1100px){.ws > .ws-rail.ws-rail > .sec > .sec-b > .card.card{flex:0 0 auto}}
/* ---- D4 a chosen tile: the accent border and wash, the radio's dot in the accent ---- */

/* ---- C6 one row action: 32 px, transparent at rest, a hairline and a fill on hover; a phone 40 px on a fill ---- */
button.ib.rowact,button.ib.sm.rowact{width:32px;height:32px;min-height:32px;padding:0;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--text-2)}
button.ib.rowact:hover:not(:disabled){border-color:var(--border);background:var(--hover);color:var(--text)}
/* ---- C8/D9 key-value lists: 112 px keys, values wrap; a two-part value stacks ---- */

dl.props dd{overflow-wrap:anywhere}
dl.props dd > .pv:has(> .chg-t){display:grid;row-gap:2px;white-space:normal}
dl.props dd > .pv > .chg-t{white-space:normal;overflow:visible}
dl.props dd > .pv > .chg-m{display:block}
dl.props dd > .pv > .chg-m::before{content:none}
h3.props-h,.card h3.props-h{margin:16px 0 4px;font:600 13px/18px var(--sans);letter-spacing:0;text-transform:none;color:var(--text)}
h3.props-h:first-child{margin-top:0}
/* ---- D10 one empty state: the icon left of a title over its line, never dashed ---- */
.empty-state.empty-state{display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-start;gap:12px}

.empty-state.empty-state > .es-ic{flex:none;display:inline-flex;margin-top:1px}

.empty-state.empty-state > .es-t{display:grid;row-gap:2px;justify-items:start}

/* ---- D11 one disclosure row: title 14/600 over a 13 px summary, the chevron in a 24 px column, 52 px, a hover fill ---- */
details.disc > summary{min-height:52px;transition:background-color var(--dur-1) var(--ease)}
details.disc > summary .d-t > b.lt{font:600 14px/20px var(--sans);color:var(--text)}
details.disc > summary .d-t > .d-s{font:400 13px/18px var(--sans);color:var(--text-2)}
details.disc > summary > .d-ch{transition:transform var(--dur-2) var(--ease)}
/* ---- 2.6 the policy form's idle foot: what happens before a change; the memory helper on two lines ---- */
.policy-bare .pol-f p.hint > .hl{display:block}
/* ---- C13 the instance bar: a hairline between who it is (back, node, name, state) and its pages; the name truncates ---- */
@media (min-width:1101px){
  .ihx .ih-row > nav.subnav.subnav{position:relative;margin-left:12px;padding-left:16px}
  .ihx .ih-row > nav.subnav.subnav::before{content:"";position:absolute;left:0;top:50%;width:1px;height:20px;margin-top:-10px;background:var(--border)}
  .ihx .ih-row .ih-name{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
/* ---- D12 a phone's instance chrome: a 48 px bar, 40 px tabs, a 44 px bot bar (132 px in all) ---- */
@media (max-width:700px){
  .ihx .ih-row.ih-row{row-gap:0}
  .ihx:not(.bot) .ih-row > .ih-t.ih-t{height:48px}
  .ihx .ih-row > button.ib.back.m-back{margin-top:4px;margin-bottom:4px}
  .ihx .ih-row > nav.subnav.subnav{height:40px;min-height:40px;overflow-y:hidden}
  .ihx .ih-row > nav.subnav.subnav .stab{min-height:40px;height:40px}
  .gk .gk-chead.gk-chead{min-height:44px;height:44px}
  .chat > .botbar > nav.side.side{padding-top:4px;padding-bottom:4px}
}
/* ---- C7/D8 a phone's touch targets: controls 44 px, icon-only actions a visible 40 px tile (44 px hit area) ---- */
@media (max-width:700px){
  
  
  
  
  
  
  :is(.adminview,.node-view,.images-view,.history-view) :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select):not(.chipsel){height:44px;min-height:44px}
  
  
  .home-view .ipanel .acts.acts{padding-top:4px;padding-bottom:4px}
  .home-view .ihead.page .hlinks .go.go,.cluster .ihead.page .hlinks :is(button,.btn){height:44px;min-height:44px}
  .ipanel .ip-bots > button.addbot{position:relative}
  .ipanel .ip-bots > button.addbot::after{content:"";position:absolute;inset:-9px}
  header.top button.ws.hstat{min-height:40px}
  header.top .gk-acctm-btn,.ihx .ih-acct .gk-acctm-btn{width:40px;height:40px;min-height:40px}
  .ihx .ih-acts > .more-menu > button.ib.more,.ihx .ih-acts button.ib.more{width:40px;height:40px;min-height:40px}
  .ihx .ih-title button.tag.waiting.waiting{height:32px;min-height:32px;position:relative}
  .ihx .ih-title button.tag.waiting.waiting::after{content:"";position:absolute;inset:-6px -2px}
  .cluster .card.cluster-node a.cardlink.btn{height:44px;min-height:44px;padding:0 16px}
  .cluster .ihead.page button.ib.refresh{width:40px;height:40px;min-height:40px}
}
/* ---- 2.6 instance administration on a wide screen: Tools full width, then the Danger zone as one inline row (as bot
   administration's) ---- */

@media (min-width:1200px){
  .app-page:has(> .instance-admin){padding-bottom:32px}
  .instance-admin .toolscard.tools2 > .tool.fold > details > summary{padding-top:12px;padding-bottom:12px}
  .instance-admin #ia-lifecycle > form > footer.cf{padding-top:10px;padding-bottom:10px}
  .instance-admin .ws > .ws-main.ws-main{gap:24px;row-gap:24px}
  
  
}
@media (max-width:700px){
  .dzrow > .dz-pick > button.danger.danger,.dzrow > button.danger.danger{height:44px;min-height:44px}
  /* "Tools and details": the tools and the instance's facts read as one card, the facts its last row */
  .instance-admin .ws-more > .sec-b{gap:0}
  .instance-admin .ws-more > .sec-b > .card.o-tools:has(+ .card.ia-ov){margin-bottom:0;border-bottom:0;border-bottom-left-radius:0;border-bottom-right-radius:0}
  .instance-admin .ws-more > .sec-b > .card.o-tools + .card.ia-ov.ia-ov{margin-top:0;border-top:0;border-top-left-radius:0;border-top-right-radius:0;
    background-image:linear-gradient(var(--border-soft),var(--border-soft));background-size:calc(100% - 32px) 1px;background-position:16px 0;background-repeat:no-repeat}
}
/* ---- 2.7 images: the form wider (460 px); nothing registered is the one empty state over the three steps in a row
   under a hairline (a phone: behind "How registration works"); the form asks for the path and hash first ---- */
@media (min-width:1100px){.images-view > .ws.imgws{grid-template-columns:minmax(0,1fr) 460px;align-items:start}}
.imgws > .ws-main > .sec{align-self:start}
.imgws .card.imgs.is-empty.is-empty{display:block;flex:none;height:auto;min-height:0;padding:0}
.imgws .card.imgs.is-empty > .empty-state.im-empty.im-empty{display:flex;flex-direction:row;align-items:flex-start;gap:12px;margin:0}
.imgws .card.imgs.is-empty > .empty-state.im-empty > .es-ic{flex:none;margin-top:0}
.imgws .card.imgs.is-empty > .empty-state.im-empty > .es-t{display:grid;row-gap:2px;max-width:none;margin:0}
.imgws .card.imgs.is-empty > .empty-state.im-empty > .es-t > *{margin:0}

.imgws .card.imgs.is-empty > details.disc.im-how{margin:0;border-top:1px solid var(--border-soft)}
.imgws .card.imgs.is-empty > details.disc.im-how > summary{padding:12px 16px}

.imgws > .ws-rail .card.register .fgrid.one{row-gap:16px}
.imgws > .ws-rail .card.register :is(input,select){height:36px;min-height:36px}
.imgws > .ws-rail .card.register footer.cf{gap:16px;padding:12px 20px}
.imgws > .ws-rail .card.register footer.cf > p.why{display:inline-flex;align-items:center;gap:8px;min-width:0;margin:0;font:400 13px/18px var(--sans);color:var(--text-2)}
.imgws > .ws-rail .card.register footer.cf > p.why > .ic{flex:none;width:16px;height:16px}
@media (max-width:700px){
  
  .imgws > .ws-rail .card.register :is(input,select){height:44px;min-height:44px}
  .imgws > .ws-rail .card.register footer.cf{flex-direction:column;align-items:stretch;padding:12px 16px}
  .imgws > .ws-rail .card.register footer.cf > button.go{width:100%;height:44px;min-height:44px;margin:0}
}
/* a grid's gap spaces its fields: a field's label carries no margin of its own there */
.fgrid > .fld > label.f:last-child{margin-bottom:0}
/* ---- D7 placeholders: upright, the input's size; mono for technical values ---- */
:is(input,textarea)::placeholder{font-style:normal}
input.mono::placeholder{font-family:var(--mono);font-size:13px}
@media (max-width:700px){input.mono::placeholder{font-size:14px}}
.imgws .card.imgs.is-empty > .empty-state.im-empty > .es-t > span{max-width:60ch}
/* the whole card opens the instance: its name reads as the link on hover */
.home-view .card.ipanel:hover .ip-h .ip-n{text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}

/* ---- 2.9 node administration: the strip one section gap above the actions; Drain's target and deadline side by
   side over a full-width reason; the Host card's pools as name-over-line rows; one tools row pattern on a phone ---- */
.node-view > section.nres.nres{margin:0 0 calc(var(--sec-gap) - 20px)}
.node-view > section.nres + .ws.ws{margin-top:0}
@media (min-width:701px){
  .node-view .nactions .fgrid.nact.nact{grid-template-columns:minmax(0,1fr) minmax(0,1fr);justify-content:stretch;column-gap:16px;row-gap:16px}
    .node-view .nactions .fgrid.nact > .fld > p.fhelp{margin:6px 0 0}
}
.node-view .hostcard dl.props{--pk:112px}
.node-view .hostcard .hc-pools > h3.eyebrow{display:flex;align-items:center;gap:8px;margin:0 0 4px;font:600 14px/20px var(--sans);letter-spacing:0;text-transform:none;color:var(--text)}
.node-view .hostcard ul.pools > li{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"n tag" "m tag";align-items:center;row-gap:2px;column-gap:12px;padding:10px 0}
.node-view .hostcard ul.pools > li > .pn{grid-area:n;font:600 14px/20px var(--sans);color:var(--text)}
.node-view .hostcard ul.pools > li > .pm{grid-area:m;font:400 13px/18px var(--sans);color:var(--text-2)}
.node-view .hostcard ul.pools > li > .tag{grid-area:tag;justify-self:end}
@media (max-width:700px){
  
  
  
  
  .node-view .hostcard details.disc > summary .d-s .mline{display:block}
  .node-view .hostcard details.disc > summary .d-s2{display:block;font:400 13px/18px var(--sans);color:var(--text-2)}
}
/* ---- 2.10 the overview's node cards: the same rows in every card (the memory meter, in use and disk, the
   instances as a segmented composition bar, an empty track when there are none), the health as three dotted labels
   pinned with the footer to the card's foot; a phone folds in use and disk into one line ---- */
.cluster-nodes > .card.cluster-node.cluster-node{display:flex;flex-direction:column}
.cluster-node .bystate.bystate,.cluster-node .bystate.zero{display:flex;flex-direction:column;align-items:stretch;gap:6px}
.cluster-node .bystate > .sbar.sbar{display:flex;gap:2px;width:100%;height:8px;border-radius:999px;overflow:hidden;background:none}
.cluster-node .bystate > .sbar.sbar > i{flex:0 1 auto;min-width:4px;height:100%;border-radius:2px}
.cluster-node .bystate > .sbar.sbar > i:first-child{border-top-left-radius:999px;border-bottom-left-radius:999px}
.cluster-node .bystate > .sbar.sbar > i:last-child{border-top-right-radius:999px;border-bottom-right-radius:999px}
.cluster-node .bystate > .sbar.sb0{background:var(--track)}
.cluster-node .bystate.zero > .states.none{display:block;margin:0;text-align:left}
.cluster-node > p.nhealth.hl3{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;margin-top:auto}
.cluster-node > p.nhealth.hl3 > .hl{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;color:var(--text-2)}
.cluster-node > p.nhealth.hl3 > .hl > .dot{flex:none;width:8px;height:8px;margin:0}
.cluster-node > p.nhealth.hl3 > .hl > .dot.warn{background:var(--warn-dot,var(--warn))}
.cluster-node > .uline{display:none}
@media (max-width:700px){
  .cluster-node > .usage.two.two{display:none}
  .cluster-node > .uline{display:flex;flex-wrap:wrap;gap:0 6px;margin:0;font:400 13px/18px var(--sans);color:var(--text-2)}
  .cluster-node > .uline b{font-weight:600;color:var(--text)}
}
/* ---- 2.11 history: the toolbar above the table, outside its card; four columns sized to their content; who acted
   by name (a bot with a bot glyph), no avatars; a phone's row: what and when, then the target with who at its end ---- */
.history-main .ch.hh{display:flex;align-items:center;gap:12px;min-height:0;margin:0 0 -4px;padding:0;border:0;background:none}
.history-main > .card.history-records.history-records{padding-top:0;overflow:clip}
.history-main > .card.history-records > form.hfilters + *{margin-top:0}
.history-main > .ch.hh > .segmented.seg{height:36px;padding:3px;border:0;border-radius:9px;background:var(--seg-well);box-shadow:inset 0 0 0 1px var(--border-soft)}
.history-main > .ch.hh > .segmented.seg > button{height:30px;min-height:30px;line-height:30px;padding:0 14px;border-radius:7px;font:500 14px/1 var(--sans)}
.history-main > .ch.hh > .count{font-variant-numeric:tabular-nums;white-space:nowrap}
.history-main > .ch.hh > .acts{display:flex;align-items:center;gap:8px;margin-left:auto}
.history-main > .ch.hh > .acts > button.ftoggle{height:32px;min-height:32px;padding:0 12px;gap:6px}
.history-main > .ch.hh > .acts > button.ib.refresh{width:32px;height:32px;min-height:32px}
.history-main .hrow.optab .actor{display:inline-flex;align-items:center;gap:6px;min-width:0;margin:0;padding:0;border-radius:0;background:none;font:400 14px/20px var(--sans);color:var(--text)}
.history-main .hrow.optab .actor::before{content:none}
.history-main .hrow.optab .actor > .ic{flex:none;width:14px;height:14px;color:var(--text-2)}
.history-main .hrow.optab .actor .an{color:inherit}
.history-main .hrow.optab .htgt .hin :is(button.link,.nm,.none){font-weight:500;color:var(--text)}
.history-main .hrow.optab .htgt .hsep{color:var(--text-2)}
.history-main .hrow.optab .htgt .hbt :is(button.link,.nm){font-weight:400;color:var(--text)}
@media (min-width:701px){
  .history-main .hcols.hcols,.history-main .hrow.optab.optab{grid-template-columns:minmax(200px,1fr) minmax(240px,1.3fr) 150px 72px}
  .history-main .hcols.hcols{min-height:40px;font:600 13px/18px var(--sans);letter-spacing:0;text-transform:none;color:var(--text-2)}
  .history-main .hrow.optab.optab{min-height:44px}
  .history-main .hrow.optab .kind{font:400 14px/20px var(--sans)}
}
@media (max-width:700px){
  .history-main > .ch.hh{gap:8px}
  .history-main > .ch.hh > .segmented.seg{flex:1;height:44px}
  .history-main > .ch.hh > .segmented.seg > button{height:38px;min-height:38px;line-height:38px}
  .history-main > .ch.hh > .count{display:none}
  .history-main > .ch.hh > .acts > button.ftoggle{height:44px;min-height:44px}
  .history-main > .ch.hh > .acts > button.ib.refresh{width:44px;height:44px;min-height:44px}
  .history-main .hrow.optab .hmeta .actor.actor{display:inline-flex;order:3;flex:none;margin-left:auto;padding-left:12px;max-width:40%;font-size:13px;color:var(--text-2)}
  .history-main .hrow.optab .hmeta .actor.actor > .ic{width:13px;height:13px}
  .history-main .hrow.optab .hmeta.by-bot .actor.actor{display:inline-flex}
  .history-main .hrow.optab > .hmeta.hmeta{padding-left:28px}
}
/* ---- 2.12 checkpoints: columns sized to their values, the row's ⋯ a 32 px row action (a phone: a 40 px tile);
   "How checkpoints work" three short items ---- */
@media (min-width:701px){
  :is(.ws-main,.ck-list) .ckcols.ckcols,:is(.ws-main,.ck-list) .ckr.ckr{grid-template-columns:minmax(0,3fr) minmax(0,2fr) minmax(0,2fr) minmax(0,1fr) 48px;column-gap:16px}
  :is(.ws-main,.ck-list) .ckcols.ckcols{font:600 13px/18px var(--sans);letter-spacing:0;text-transform:none;color:var(--text-2)}
}
.ckr.ckr > .ck-m .menu > button.ib.more{width:32px;height:32px;min-height:32px;padding:0;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--text-2)}
.ckr.ckr > .ck-m .menu > button.ib.more:hover:not(:disabled){border-color:var(--border);background:var(--hover);color:var(--text)}

@media (max-width:700px){
  .ckr.ckr > .ck-m .menu > button.ib.more{width:36px;height:36px;min-height:36px;margin-right:-6px;border:0;border-radius:8px;background:transparent;color:var(--text-2)}
  .checkpoint-view > .sec.ck-list.ck-list{margin-bottom:0}
  
  .card.ckform > form > .fgrid.fgrid{row-gap:16px}
  .card.ckform > form > footer.cf.cf{margin-top:16px}
}
/* ---- 2.13 / D9 key columns: 112 px wherever a card lists properties ---- */

/* ---- an admin's card of another user's instance: the home card's grammar, its owner and privacy on their own row ---- */
.home-view .ipanel.private .pv-who{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;min-width:0;font:400 13px/18px var(--sans);color:var(--text-2)}
.home-view .ipanel.private .pv-who > .ic{flex:none;color:var(--text-2)}
.home-view .ipanel.private .pv-who b{font-weight:600;color:var(--text)}
.home-view .ipanel.private .pv-who > .tag{height:22px;font-size:13px}
.home-view .ipanel.private .ip-bots .chip .tag.sp{height:20px;margin-left:6px;font-size:12.5px}

/* the home page's quiet "no egress requests" row: the one empty state (icon left of a title over its line) */
section.approvals.card.slim{align-items:flex-start;gap:12px;padding:16px 16px 16px 20px}
section.approvals.card.slim > .es-ic{margin-top:1px}
section.approvals.card.slim > .sl-t > h2.sec.sec{display:block;margin:0;padding:0;text-align:left;font:600 14px/20px var(--sans);letter-spacing:0;color:var(--text)}
section.approvals.card.slim > .sl-t > span{font:400 13px/19px var(--sans);color:var(--text-2)}
.home-view .ipanel.private .act.pv-act.pv-act{display:flex;align-items:center;gap:8px;grid-template-columns:none}
.home-view .ipanel.private .act.pv-act > .x{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;color:var(--text-2)}
@media (max-width:700px){.home-view .ipanel.private .act.pv-act > .x{white-space:normal}}
/* ---- requests to open: the owner's card reads like the waiting-request banner (a key tile, who asks for what,
   the reason and when, what approving does; Approve and Deny at its end; a phone: the buttons under the text) ---- */
section.open-requests{display:grid;gap:8px;margin:0 0 24px}
.gk-banners > section.open-requests{margin:8px 16px}
section.open-requests > .banner.open-request{display:grid;grid-template-columns:28px minmax(0,1fr) auto auto;align-items:center;column-gap:12px;row-gap:12px;margin:0;padding:12px 12px 12px 16px;
  border:1px solid var(--warn-border);border-radius:var(--r-lg);background:var(--surface-1);color:var(--text)}
section.open-requests > .banner.open-request::before{content:none}
section.open-requests > .banner.open-request > .or-ic{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--warn-soft);color:var(--warn)}
section.open-requests > .banner.open-request > .fill{display:grid;row-gap:2px;min-width:0}
section.open-requests > .banner.open-request .or-l1{font:400 14px/20px var(--sans);color:var(--text)}
section.open-requests > .banner.open-request .or-l1 b{font-weight:600}
section.open-requests > .banner.open-request :is(.or-m,.or-x){font:400 13px/19px var(--sans);color:var(--text-2);overflow-wrap:anywhere}
section.open-requests > .banner.open-request > button{height:32px;min-height:32px;margin:0;padding:0 14px;font:500 13px/1 var(--sans)}
section.open-requests > .banner.open-request > button.go{font-weight:600}
@media (max-width:700px){
  section.open-requests{margin:0 0 20px}
  section.open-requests > .banner.open-request{grid-template-columns:28px minmax(0,1fr) minmax(0,1fr);grid-template-areas:"ic t t" ". a d";align-items:start;padding:12px}
  section.open-requests > .banner.open-request > .or-ic{grid-area:ic}
  section.open-requests > .banner.open-request > .fill{grid-area:t}
  section.open-requests > .banner.open-request > button{height:44px;min-height:44px}
  section.open-requests > .banner.open-request > button.go{grid-area:a}
  section.open-requests > .banner.open-request > button:not(.go){grid-area:d}
}
.drawer .callout.warn.or-wait{margin:0 0 16px;padding:12px 14px;border-radius:10px}
.drawer .callout.warn.or-wait p{font:400 14px/21px var(--sans);color:var(--text)}
.drawer .callout.warn.or-wait p b{font-weight:600}
.drawer .open-request-state .dscroll > p.hint{margin:0;font-size:13px;line-height:19px;color:var(--text-2)}
/* ==== r17 end ==== */

/* ==== r17r ==== */
/* ---- one neutral selection (the tokens): the chosen card a text-coloured border, a grey wash and dot; amber stays
   the primary action's ---- */

/* ---- the choices that do not apply now: one quiet line under the cards (their names, then why); still choosable ---- */
/* a phone: the choices that apply are one segmented row (never a wrapped grid), the others the quiet line under it */

/* ---- the composers (both chats): one hairline at rest and focused alike; focus only darkens it (the Grok composer
   takes the focus on load, so a halo there read as a permanent state) ---- */
.gk-pillbox:focus-within,.composer:focus-within{border-color:var(--border-focus);box-shadow:var(--shadow-1)}
/* ---- the classic chat: the signed-in sender is not repeated over their own message (kept for assistive technology,
   as in the Grok view) ---- */
.chat .msg.user > .who > .actor.me{position:absolute;width:1px;height:1px;margin:0;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
/* ---- the activity rail runs through the markers' centres in the Grok panel too (its rows have no side padding) ---- */
.gk .gk-panel .cwrap > .console > :is(.crow,.cgh)::before{left:11px}
/* ---- a phone's classic bot chips: one 36 px height for the chips, + and Stream; the avatar's status dot sits outside
   the initial, ringed in the chip's own colour ---- */
@media (max-width:700px){
  .chat > .botbar > .side .brow.brow,.chat > .botbar > .side .brow.brow.on{height:36px;min-height:36px;padding:0 12px 0 6px}
  .chat > .botbar > .side .brow .gk-av{--sz:24px;width:24px;height:24px;font-size:11.5px}
  .chat > .botbar > .side .brow .gk-av .b{right:-3px;bottom:-3px;width:8px;height:8px;box-shadow:0 0 0 2px var(--av-ring,var(--bg))}
  .chat > .botbar > .side .brow.on .gk-av .b{--av-ring:var(--surface-2)}
  .chat > .botbar > .side > button.add.add{width:36px;height:36px;min-height:36px}
  .chat > .botbar .side-x > button.ib.stream-ic.stream-ic{height:36px;min-height:36px}
}
/* ---- a home card's activity line: paths in the mono face, unboxed, so trailing punctuation sits flush ---- */
.ipanel .act > .x code.apath,.home-view .ipanel .act.act > .x > .xd code.apath{padding:0;border-radius:0;background:none;box-shadow:none;font:400 12.5px/18px var(--mono);color:var(--text)}
/* ---- meters measure capacity, not health: a neutral fill, amber from 75 %, red above 90 % (a state composition keeps
   its state colours) ---- */

/* ---- one stat cell everywhere (overview, home, node admin; wide and phone): the key, the value with its "of N", one
   muted hint under it, and a capacity's meter at the cell's foot ---- */
.statstrip-c.kpis > .sc.sc.sc{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0;min-height:0;padding:14px 16px 16px}
.statstrip-c.kpis > .sc.sc > .sk{font:500 13px/18px var(--sans);color:var(--text-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.statstrip-c.kpis > .sc.sc > .sv{display:flex;align-items:baseline;flex-wrap:wrap;column-gap:6px;margin:4px 0 0;font:650 22px/28px var(--sans);font-variant-numeric:tabular-nums;color:var(--text);white-space:nowrap}
.statstrip-c.kpis > .sc.sc > .sv > .of{display:inline;margin:0;font:400 13px/18px var(--sans);color:var(--text-2)}
.statstrip-c.kpis > .sc.sc > .sh{display:block;margin:2px 0 0;font:400 13px/18px var(--sans);color:var(--text-2);font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.statstrip-c.kpis > .sc.sc > .sh.bad,.statstrip-c.kpis > .sc.sc > .sh .sct.bad{color:var(--bad)}
.statstrip-c.kpis > .sc.sc > .sh .sct > b{font-weight:600;color:inherit}
.statstrip-c.kpis > .sc.sc > .meter.sm{position:relative;display:block;width:100%;margin:auto 0 0;overflow:hidden}
.statstrip-c.kpis > .sc.sc.hasm > .sh{margin-bottom:10px}
@media (max-width:700px){
  .statstrip-c.kpis > .sc.sc.sc{padding:12px}
  .statstrip-c.kpis > .sc.sc > .sv{margin-top:2px;font-size:18px;line-height:24px}
  .statstrip-c.kpis > .sc.sc > .sv > .of{display:inline}
  .statstrip-c.kpis > .sc.sc > .sh{white-space:normal;text-wrap:pretty}
  .statstrip-c.kpis > .sc.sc.hasm > .sh{margin-bottom:8px}
}
/* ---- home: the card's footer keeps the card's padding on both sides; the request banner's facts wrap on a phone
   (never cut: the instance and the time are what an operator needs); the phone's New a 36 px button ---- */
.home-view .ipanel .acts.acts{padding-right:20px}
@media (max-width:700px){
  .home-view .ipanel .acts.acts{padding-right:16px}
  
  
  
  .home-view .ihead.page .hlinks > button.go{height:36px;min-height:36px;padding:0 14px 0 12px;font-size:14px}
}
/* ---- one group label for every property list (instance admin's Configuration, bot admin's Details, the Grok
   Details panel): 12 px caps in the secondary text, 24 px above it, 4 px to the first row ---- */
h3.props-h.props-h,.card h3.props-h.props-h{margin:24px 0 4px;font:600 12px/16px var(--sans);letter-spacing:.04em;text-transform:uppercase;color:var(--text-2)}
h3.props-h.props-h:first-child{margin-top:0}
/* ---- helper and subtitle lines balance their last line (no one-word orphans) ---- */
/* ---- the Danger zone (instance and bot administration): one inline row on a wide screen, the button at the right ---- */
@media (min-width:701px){
  .dzrow > .dz-t{flex:1 1 auto;min-width:0}
  .dzrow > button.danger,.dzrow > .dz-pick{flex:none;margin-left:auto}
}
/* ---- a drawer's pinned footer: while its scroller has more below, a 24 px fade over the last fields says so ---- */
.overlay > .drawer > .db > :is(form,.dwrap) > .dscroll + .row.row,.overlay > .drawer > .db > .dscroll ~ .row.dfoot.dfoot{position:relative}
.overlay > .drawer > .db > :is(form,.dwrap) > .dscroll.can-more + .row.row::before,.overlay > .drawer > .db > .dscroll.can-more ~ .row.dfoot.dfoot::before{content:"";position:absolute;left:0;right:0;bottom:calc(100% + 1px);height:28px;background:linear-gradient(to bottom,transparent,var(--surface-1));pointer-events:none}
/* ---- new instance on a phone: the profile's resources one wrapping line as on a wide screen; Cancel sized to its
   label, Create taking the rest ---- */
@media (max-width:700px){
  .drawer form.newinst p.fhelp.specline{display:block;font-size:13px;line-height:20px}
  .drawer form.newinst p.fhelp.specline > .sp{white-space:nowrap}
  .drawer form.newinst p.fhelp.specline > .sep{display:inline}
  .overlay > .drawer > .db > :is(form,.dwrap) > .dscroll + .row.row > button:not(.go,.danger,[type=submit]){flex:0 0 auto;padding:0 20px}
  .overlay > .drawer > .db > :is(form,.dwrap) > .dscroll + .row.row > :is(.go,.danger,button[type=submit]){flex:1 1 auto}
}
/* ---- a phone: four or more segments share the row by their labels' widths (Checkpoint is wider than Move) ---- */

/* ---- a phone's bot bar: the bot and its instance on one line ("lead · audit-…"), the instance bar's height ---- */
@media (max-width:700px){
  .ihx.bot .ih-row > .ih-t{display:flex;flex-direction:row;align-items:center;gap:6px;min-width:0}
  .ihx.bot .ih-row > .ih-t > .ih-title{flex:none;min-width:0;max-width:60%}
  .ihx.bot .ih-row > .ih-t > .ih-sub.ih-sub{display:block;flex:0 1 auto;min-width:0;max-width:none;margin:0;font:400 14px/20px var(--sans);color:var(--text-2)}
  .ihx.bot .ih-row > .ih-t > .ih-sub.ih-sub::before{content:"·";margin-right:6px}
}
/* ---- history: the day row untinted under the tinted column heads (an eyebrow over a hairline); columns closer to
   their values; on a phone the count stays (a line under the toolbar) and the target reads as the secondary line ---- */
.history-records .hday.hday,:root[data-theme="light"] .history-records .hday.hday{border-top:0;background:var(--surface-1);color:var(--text-2)}
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]) .history-records .hday.hday{border-top:0;background:var(--surface-1);color:var(--text-2)}}
@media (min-width:701px){
  .history-main .hcols.hcols,.history-main .hrow.optab.optab{grid-template-columns:minmax(0,3fr) minmax(0,3.2fr) minmax(0,2fr) 72px}
}
@media (max-width:700px){
  .history-main > .ch.hh{flex-wrap:wrap}
  .history-main > .ch.hh > .count.count{display:block;order:9;flex:1 1 100%}
  .history-main .hrow.optab .htgt .hin :is(button.link,.nm,.none),.history-main .hrow.optab .htgt .hbt :is(button.link,.nm){font-weight:400;color:var(--text-2)}
}
/* ---- the access drawer: the chosen role's line under the invite; the three roles behind one row disclosure ---- */
.drawer form.share > p.fhelp.lvl-help{margin:-10px 0 0;font:400 13px/19px var(--sans);color:var(--text-2)}
.drawer .levels-block.legend{margin-top:20px}
.drawer .levels-block.legend > details.disc.lv-disc{margin:0;padding:0;border:0;border-top:1px solid var(--border);border-radius:0;background:none;box-shadow:none}
.drawer .levels-block.legend > details.disc.lv-disc > summary{min-height:0;padding:14px 0}
.drawer .levels-block.legend > details.disc.lv-disc > .d-b{padding:0 0 4px}
/* ---- one "you are here": the page tabs keep the accent underline (a deeper amber on light paper, which the pale
   one barely marked); a panel's tabs underline in the text colour ---- */
:root{--tab-line:var(--accent)}
:root[data-theme="light"]{--tab-line:var(--accent-active)}
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]){--tab-line:var(--accent-active)}}
header.top .hnav .tab.on,header.top .hnav .tab.on:hover:not(:disabled),.subnav .stab.on,.subnav .stab.on:hover:not(:disabled){box-shadow:inset 0 -2px 0 var(--tab-line)}
:is(.ptabs > .ptab,.gk .gk-tabs > .gk-tab).on.on::after{background:var(--text)}
/* ---- light paper: the bars (the node's pages, an instance's) on the card surface, so they read apart from the page ---- */
:root[data-theme="light"] :is(header.top,.ihead.ihx:not(.gk-bar),.gk .gk-bar.ihx){background:var(--surface-1)}
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]) :is(header.top,.ihead.ihx:not(.gk-bar),.gk .gk-bar.ihx){background:var(--surface-1)}}
/* ---- the overview's node card: an empty node has no composition bar, only its line; the health row one line ---- */
.cluster .bystate.zero > .sbar.sb0{display:none}
.cluster p.nhealth .hl{white-space:nowrap}
.cluster p.nhealth .dot.neutral{background:var(--text-2)}
/* ---- a phone's panel: the context strip only where nothing else names the bot (Files and Computer pick it in their
   own toolbars) ---- */
@media (max-width:700px){.gk-panel:is(.t-files,.t-screen) > .gk-pctx{display:none}}
/* ---- Files: a folder's Size cell a muted dash on a wide panel (the column reads as intentional), nothing on a phone ---- */
.flist button.frow > .sz > .sz-d{color:var(--text-2)}
@media (max-width:700px){.flist button.frow > .sz > .sz-d{display:none}}
/* ---- the classic bots list: the pointer to the chat view a quiet line right under the list (no card, no gap) ---- */
/* ---- the settings sheet on a phone: groups 12 px apart under their labels, an end cap over the safe area ---- */
@media (max-width:700px){
  .gk-menu .grp > .sec.sec{padding-top:16px}
  .gk-menu .grp + .grp{margin-top:8px;padding-top:4px}
  .gk-menu .pop-scroll{padding-bottom:calc(16px + env(safe-area-inset-bottom))}
}

.statstrip-c.kpis > .sc.sc > .sh .lc{text-transform:lowercase}
.statstrip-c.kpis > .sc.sc > .sh .sct > b{font-weight:400}
/* ---- the activity timeline: a turn's start and end are bookkeeping (secondary text); the work between reads first ---- */
.console > .crow:is(.k-start,.k-end):not(.bad) .cm > .ct > .t{font-weight:400;color:var(--text-2)}
.console > .crow:is(.k-start,.k-end):not(.bad) .ci{color:var(--text-2)}
/* ---- a phone's "Tools and details": "Instance and resources" on the tool rows' grid (32 px tile, 12 px gap, the
   chevron in the same 32 px column) ---- */
@media (max-width:700px){
  .instance-admin .ia-ov.railx > details.disc.hasic > summary{grid-template-columns:32px minmax(0,1fr) 32px;column-gap:12px;padding:12px 16px}
  .instance-admin .ia-ov.railx > details.disc.hasic > summary > .d-ic{width:32px;height:32px;border-radius:8px}
  .instance-admin .ia-ov.railx > details.disc.hasic > summary > .d-ch{grid-column:3;justify-self:center;align-self:center;margin:0}
}

@media (max-width:700px){
  .home-view .ihead.page.tr .ttl > .hlinks > button.go.go{height:36px;min-height:36px;padding:0 14px 0 12px;font-size:14px}
  
  
}
.drawer .levels-block.legend > details.disc.lv-disc > summary > .d-ch{align-self:center;margin-top:0;margin-bottom:0}
/* ---- new instance: the section heads a clear step over the field labels ---- */
.drawer form.newinst fieldset.grp.grp > legend{margin-bottom:14px;font:600 16px/22px var(--sans);letter-spacing:-.005em}
/* ==== r17r end ==== */

/* ==== r18 ==== */
/* ---- F6/§1.1 tokens: a lighter paper, cards that separate, one raised overlay surface, ink meters, an amber focus ---- */
:root{
  --surface-1:#1c1b19; --border:#3d3b36; --raised:#2d2b28; --menu-edge:#4d4a44; --scrim:rgba(0,0,0,.58); --scrim-sheet:var(--scrim);
  --track:#34322e; --meter-fill:#d9d4cb; --toast-bg:var(--raised);
  --sel-border:var(--accent); --sel-bg:transparent; --sel-dot:var(--accent);
  --focus-line:var(--accent); --focus-border:var(--accent); --focus-outline:2px solid var(--focus);
  --focus-ring:0 0 0 3px color-mix(in srgb,var(--accent) 22%,transparent);
  --bubble-mine:#2a2721; --bubble-mine-border:#2a2721;
  --row-hover:var(--hover); --sel-row:#2c2a26; --kv-key:120px;
  --switch-off:#4a4741; --switch-off-edge:transparent;
  --off-bg:var(--surface-2); --off-border:transparent; --off-fg:var(--text-disabled);
}
:root[data-theme="light"]{
  --bg:#f2efe9; --surface-1:#fffefb; --surface-2:#f6f3ee; --surface-3:#ebe6dd; --sunken:#fffefb; --border:#ddd5c8; --border-soft:#ebe5da; --border-strong:#c4baa9;
  --shadow-card:0 1px 2px rgba(60,44,24,.06),0 1px 1px rgba(60,44,24,.03);
  --raised:#ffffff; --shadow-3:0 16px 40px rgba(40,28,14,.16),0 3px 8px rgba(40,28,14,.08); --scrim:rgba(28,22,14,.36); --scrim-sheet:var(--scrim);
  --toast-bg:#ffffff; --track:#e4ded3; --meter-fill:#4a443b; --menu-edge:var(--border-strong);
  --ok-soft:#e3f1e7; --info-soft:#e6eef9; --warn-soft:#fdeee2; --bad-soft:#fbe7e5; --code-bg:#f1ede6;
  --bubble-mine:#efe8dc; --bubble-mine-border:#efe8dc; --chat-canvas:#fffefb; --side-surface:#f8f6f1; --foot-bg:#f8f6f1;
  --sel-row:#e7e1d6; --switch-off:#d6cfc3; --switch-off-edge:var(--border-strong); --seg-well:#ebe6dd; --count-bg:#ebe6dd;
  --off-bg:var(--surface-2); --off-border:transparent; --off-fg:var(--text-disabled);
}
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]){
  --bg:#f2efe9; --surface-1:#fffefb; --surface-2:#f6f3ee; --surface-3:#ebe6dd; --sunken:#fffefb; --border:#ddd5c8; --border-soft:#ebe5da; --border-strong:#c4baa9;
  --shadow-card:0 1px 2px rgba(60,44,24,.06),0 1px 1px rgba(60,44,24,.03);
  --raised:#ffffff; --shadow-3:0 16px 40px rgba(40,28,14,.16),0 3px 8px rgba(40,28,14,.08); --scrim:rgba(28,22,14,.36); --scrim-sheet:var(--scrim);
  --toast-bg:#ffffff; --track:#e4ded3; --meter-fill:#4a443b; --menu-edge:var(--border-strong);
  --ok-soft:#e3f1e7; --info-soft:#e6eef9; --warn-soft:#fdeee2; --bad-soft:#fbe7e5; --code-bg:#f1ede6;
  --bubble-mine:#efe8dc; --bubble-mine-border:#efe8dc; --chat-canvas:#fffefb; --side-surface:#f8f6f1; --foot-bg:#f8f6f1;
  --sel-row:#e7e1d6; --switch-off:#d6cfc3; --switch-off-edge:var(--border-strong); --seg-well:#ebe6dd; --count-bg:#ebe6dd;
  --off-bg:var(--surface-2); --off-border:transparent; --off-fg:var(--text-disabled);
}}
/* no backdrop blur anywhere: a plain scrim */
:root :is(.overlay,.scrim,.gk-scrim,.gk-pscrim,.rscrim,.gk-menu-scrim,.menu-scrim){-webkit-backdrop-filter:none !important;backdrop-filter:none !important}

/* ---- §1.5 type: tabular numbers, quiet fallback tracking, pretty wrapping ---- */
body{letter-spacing:-.005em}
h1,h2,h3,.ihead h2,.sec-h h2{letter-spacing:-.015em}
:is(.ts,time,.count,.sv,.of,.uv,.slots,.fcount,.cn,.du,.sz,.mt,.hr-t,.ck-t,.pc,.sct b,.fsz){font-variant-numeric:tabular-nums}

:is(h1,h2,h3,.es-t b,.dtt){text-wrap:balance}
/* inline mono inside prose sits on the sans x-height */

/* ---- §1.1 focus: one accent ring; fields an accent edge with a soft wash ---- */
:root :is(button,a[href],summary,[role=tab],[role=radio],[role=menuitem],[tabindex]:not([tabindex="-1"])):focus-visible{outline:2px solid var(--focus);outline-offset:2px}
:root :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea):not(.gk-pillbox textarea,.composer textarea):is(:focus,:focus-visible){outline:none;border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 22%,transparent)}

/* ---- §1.2 buttons: kinds by risk, three disabled looks ---- */
:root button.cf-go{font-weight:600}
:root button.cf-go .ic{color:var(--text-2)}
:root :is(button,.btn).go:disabled,:root :is(button,.btn).go:disabled:hover,:root .gk .gk-btn.go:disabled,:root a.go[aria-disabled=true]{opacity:1;background:var(--go-off-bg);border-color:var(--go-off-border);color:var(--go-off-fg);box-shadow:none;cursor:not-allowed}

:root button.danger .ic{color:inherit}

/* in a confirm drawer the armed delete fills */

/* ghost buttons: never underlined, a hover fill */
:root button.quiet{text-decoration:none}

/* ---- §1.3 icon buttons: 32 px ghosts (40 px on a phone), radius 8, a 16 px glyph ---- */
:root button.ib:not(.sm):not(.stream-ic){width:32px;height:32px;min-height:32px;padding:0;border:0;border-radius:8px;background:transparent;color:var(--text-2)}
:root button.ib:not(.sm):not(.stream-ic) > .ic{width:16px;height:16px}
:root button.ib:hover:not(:disabled){background:var(--hover);color:var(--text)}
:root button.ib:is(.on,[aria-pressed="true"],[aria-expanded="true"]){background:var(--selected);border-color:transparent;color:var(--text);box-shadow:none}
:root button.ib.sm{width:28px;height:28px;min-height:28px;border:0;border-radius:8px;color:var(--text-2)}
@media (max-width:700px){
  :root button.ib:not(.sm):not(.stream-ic){width:40px;height:40px;min-height:40px}
  :root button.ib:not(.sm):not(.stream-ic) > .ic{width:18px;height:18px}
}

/* ---- §1.1 meters: an ink fill on a quiet track, warn from 75 %, bad above 90 % ---- */
:root .meter{overflow:hidden}
:root .meter > i{display:block}

:root .sbar > i.sb-ok{background:var(--ok)}
:root .sbar > i.sb-susp{background:var(--info)}
:root .sbar > i.sb-warn{background:var(--text-2)}

/* ---- §1.1 status tones: ready and open ok, suspended and frozen blue (paused), stopped and closed a neutral outline ---- */
:root .istate:has(> :is(.st-SUSPENDED,.st-FROZEN)),:root .tag.info{background:var(--info-soft);color:var(--info)}
:root .istate:has(> :is(.st-SUSPENDED,.st-FROZEN)) > .dot{background:var(--info)}
:root .istate:has(> :is(.st-STOPPED,.st-ARCHIVED,.st-DELETED,.st-DELETING)){background:transparent;box-shadow:inset 0 0 0 1px var(--border-strong);color:var(--text-2)}
:root .istate:has(> :is(.st-STOPPED,.st-ARCHIVED,.st-DELETED,.st-DELETING)) > .dot{background:transparent;box-shadow:inset 0 0 0 1.5px var(--text-2)}
:root .tag.neutral{background:transparent;box-shadow:inset 0 0 0 1px var(--border-strong);color:var(--text-2)}
:root .tag.neutral::before{background:transparent;box-shadow:inset 0 0 0 1.5px var(--text-2)}
.dot.hollow{display:inline-block;width:8px;height:8px;border-radius:50%;background:transparent;box-shadow:inset 0 0 0 1.5px var(--text-2)}

/* ---- F8 the eyebrow: groups inside a card, panel or drawer ---- */
.eyebrow,h3.eyebrow,p.eyebrow{margin:20px 0 8px;font:600 12px/16px var(--sans);letter-spacing:var(--ls-eyebrow);text-transform:uppercase;color:var(--text-2)}
.eyebrow:first-child{margin-top:0}
:root h3.props-h.props-h{margin:20px 0 8px;font:600 12px/16px var(--sans);letter-spacing:var(--ls-eyebrow);text-transform:uppercase;color:var(--text-2)}
:root h3.props-h.props-h:first-child{margin-top:0}

/* ---- §1.6 one key/value list: no dividers inside a group, 7 px rows, the action right after the value ---- */
:root dl.props:not(.stack) > .pr.pr{display:grid;align-items:baseline}

:root dl.props > .pr > dd{display:flex;align-items:baseline;gap:4px;margin:0}

:root dl.props > .pr > dd > :is(button.ib,button.chg){flex:none;height:28px;margin:-4px 0;opacity:1}
.mlines > .ml2{font-size:13px;line-height:18px;color:var(--text-2)}

/* ---- §1.7 one disclosure row: a 48 px row, the chevron on the title's line ---- */
:root details.disc > summary{min-height:48px;align-items:flex-start}
:root details.disc > summary > .d-ch{align-self:flex-start;flex:none;width:16px;height:16px;margin-top:2px;color:var(--text-2);transition:transform var(--dur-2) var(--ease)}
:root details.disc[open] > summary > .d-ch{transform:rotate(180deg)}
:root details.disc > summary > .d-t > b{font:600 14px/20px var(--sans)}
:root details.disc > summary > .d-t > .d-s{font:400 13px/18px var(--sans);color:var(--text-2)}

/* ---- §1.8 flat empty states and help: one quiet row on the canvas ---- */
:root .empty-state.flat{display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-start;gap:12px;margin:0}
:root .empty-state.flat > .es-ic{flex:none;display:inline-grid;place-items:center;margin-top:0}
:root .empty-state.flat > .es-t{display:flex;flex-direction:column;align-items:flex-start;gap:2px;max-width:none}

/* help blocks: flat lists, numbered steps in accent-soft circles */
.howflat{margin:0;padding:0;border:0;background:none;box-shadow:none}

.howflat details.disc{margin:0;padding:0;border:0;border-top:1px solid var(--border);border-radius:0;background:none;box-shadow:none}
.howflat details.disc > summary{padding:12px 0}
.howflat details.disc > .d-b{padding:4px 0 8px}

/* ---- §1.12 the confirm field: the expected value in inline mono, no chip; a check once it matches ---- */
:root label.f.confirm > .cf-l{font:400 14px/20px var(--sans);color:var(--text)}
:root label.f.confirm > .cf-l code.idchip{display:inline;height:auto;padding:0;border:0;border-radius:0;background:none;box-shadow:none;font:500 .9em/1 var(--mono);letter-spacing:-.01em;color:var(--text)}
:root label.f.confirm > input{font-family:var(--mono)}
:root label.f.confirm > input::placeholder{font:400 13px/20px var(--mono);color:var(--placeholder)}
:root label.f.confirm.ok > input{border-color:var(--ok-border)}
@media (max-width:700px){:root label.f.confirm > input::placeholder{font-size:14px}}
/* mono placeholders never louder than the sans ones */
:root input.mono::placeholder{font:400 13px/20px var(--mono);color:var(--placeholder)}
@media (max-width:700px){:root input.mono::placeholder{font-size:14px}}

/* ---- §1.4 Verbs: the group is laid out by its card (the cards first, the unavailable verbs over the footer) ---- */

:root .card.ckform > form > :is(.err,[role=alert]){order:55}

/* the unavailable verbs: one row of chips with their reasons, over the footer */

/* the chosen verb's sentence leads the footer */
:root .card footer.cf{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:16px;row-gap:10px}
:root .card footer.cf > :not(button):not(.row){grid-column:1}
:root .card footer.cf > :is(button,.row){grid-column:2;grid-row:1 / span 4;align-self:end;margin:0}
:root .card footer.cf > .cf-note{margin:0;font:400 13px/18px var(--sans);color:var(--text-2)}
:root .card footer.cf > p.why{margin:0;display:flex;align-items:center;gap:8px;font:400 13px/18px var(--sans);color:var(--text-2)}
:root .card footer.cf > p.why:empty{display:none}
:root .card footer.cf > label.f.confirm{display:flex;flex-direction:column;gap:6px;margin:0;max-width:420px}
:root .card footer.cf > :is(button,.row > button){min-width:96px}
@media (max-width:700px){
  :root .card footer.cf{grid-template-columns:minmax(0,1fr)}
  :root .card footer.cf > :is(button,.row){grid-column:1;grid-row:auto;width:100%}
  :root .card footer.cf > button,:root .card footer.cf > .row > button{height:44px;min-height:44px;font-size:15px;font-weight:600}
  :root .card footer.cf > .row{display:flex;gap:8px}
  :root .card footer.cf > .row > button{flex:1 1 0}
  :root .card footer.cf > label.f.confirm{max-width:none}
}
/* a phone: three verbs or fewer a segmented control; four a 2 x 2 grid of compact cards */

/* ---- §1.13 the danger zone: a neutral card, one sentence and its consequence, the red outline button ---- */
:root section.dzrow{display:flex;align-items:center;gap:16px;width:100%;padding:16px 20px;border:1px solid var(--border);border-radius:12px;background:var(--surface-1);box-shadow:var(--shadow-card)}
:root section.dzrow > .dz-ic{display:none}
:root section.dzrow > .dz-t{display:flex;flex-direction:column;gap:2px;flex:1 1 auto;min-width:0}
:root section.dzrow > .dz-t > .dz-l{font:400 14px/20px var(--sans);color:var(--text)}
:root section.dzrow > .dz-t > span:not(.dz-l){font:400 13px/18px var(--sans);color:var(--text-2)}
:root section.dzrow button.danger{flex:none;height:32px;min-height:32px;padding:0 12px;gap:6px}
@media (max-width:700px){
  :root section.dzrow{flex-direction:column;align-items:stretch;gap:12px;padding:16px}
  :root section.dzrow button.danger,:root section.dzrow > .dz-pick > button{width:100%;height:44px;min-height:44px;justify-content:center}
  :root section.dzrow > .dz-pick{display:flex}
}

/* ---- §1.14 the stat strip: one cell anatomy; every cell keeps the meter's slot ---- */
:root .statstrip-c.kpis > .sc.sc > .meter.sm{margin-top:auto}
:root .statstrip-c.kpis > .sc.sc > .sv{font-weight:700}
@media (max-width:700px){
  :root .statstrip-c.kpis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;padding:0;overflow:hidden}
  :root .statstrip-c.kpis > .sc.sc.sc{position:relative;justify-content:center;min-height:64px;padding:10px 12px 12px;border:0}
  :root .statstrip-c.kpis > .sc.sc:nth-child(2n){border-left:1px solid var(--border-soft)}
  :root .statstrip-c.kpis > .sc.sc:nth-child(n+3){border-top:1px solid var(--border-soft)}
  :root .statstrip-c.kpis > .sc.sc > .sh{display:none}
  :root .statstrip-c.kpis > .sc.sc > .sv{margin-top:2px;font-size:18px;line-height:24px}
  :root .statstrip-c.kpis > .sc.sc > .meter.sm{position:absolute;left:12px;right:12px;bottom:0;width:auto;margin:0}
}

/* ---- §1.15 page rhythm: 96 px under the last card on a desktop (toasts never cover it); sticky rails ---- */
@media (min-width:701px){
  .app-page{padding-bottom:96px}
}
@media (min-width:1100px){
  :root .ws > .ws-rail{position:sticky;top:calc(var(--header-h,56px) + 16px);align-self:start}
}
@media (max-width:700px){
  :root .ihead.page h2,:root .pg-head .ihead.page h2{font-size:24px;line-height:30px;letter-spacing:-.02em}
}

/* ---- §1.10 overlays: one raised surface for menus, sheets, drawers and toasts ---- */
:root .gk-menu .gk-sheet,:root .menu > .items{background:var(--raised);border:1px solid var(--menu-edge);box-shadow:var(--shadow-3)}

/* ---- §1.10 drawers: a 20/600 title, its subtitle 4 px under it; the body ends 32 px over a footer that says when more
   lies below (a fade, and a shadow while it can still scroll) ---- */
:root .overlay > .drawer > .dh.dh{align-items:flex-start;padding:16px 12px 16px 24px}
:root .overlay > .drawer > .dh .dt{display:flex;flex-direction:column;gap:4px;min-width:0}
:root .overlay > .drawer > .dh .dtt{font:600 20px/26px var(--sans);letter-spacing:-.015em;color:var(--text)}
:root .overlay > .drawer > .dh .dsub{font:400 13px/18px var(--sans);color:var(--text-2)}
:root .overlay > .drawer > .dh > button.ib.ib{width:36px;height:36px;min-height:36px;margin:-4px 0 0;border-radius:8px}
:root .overlay > .drawer > .db > .dscroll,:root .overlay > .drawer > .db > :is(form,.dwrap) > .dscroll{padding-bottom:32px;background:var(--surface-1)}
:root .overlay > .drawer > .db > :is(form,.dwrap) > .dscroll + .row.row,:root .overlay > .drawer > .db > .dscroll ~ .row.dfoot.dfoot{position:relative;flex-direction:row;justify-content:flex-end;border-top:1px solid var(--border);background:var(--surface-1);transition:box-shadow var(--dur-2) var(--ease)}
:root .overlay > .drawer > .db > :is(form,.dwrap) > .dscroll + .row.row::before,:root .overlay > .drawer > .db > .dscroll ~ .row.dfoot.dfoot::before{content:"";position:absolute;left:0;right:0;bottom:calc(100% + 1px);height:24px;background:linear-gradient(to bottom,color-mix(in srgb,var(--surface-1) 0%,transparent),var(--surface-1));pointer-events:none}
:root .overlay > .drawer > .db > :is(form,.dwrap) > .dscroll.can-more + .row.row,:root .overlay > .drawer > .db > .dscroll.can-more ~ .row.dfoot.dfoot{box-shadow:0 -8px 16px -10px rgba(0,0,0,.45)}
:root[data-theme="light"] .overlay > .drawer > .db > :is(form,.dwrap) > .dscroll.can-more + .row.row,:root[data-theme="light"] .overlay > .drawer > .db > .dscroll.can-more ~ .row.dfoot.dfoot{box-shadow:0 -8px 16px -10px rgba(40,28,14,.18)}
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]) .overlay > .drawer > .db > :is(form,.dwrap) > .dscroll.can-more + .row.row,:root:not([data-theme="dark"]) .overlay > .drawer > .db > .dscroll.can-more ~ .row.dfoot.dfoot{box-shadow:0 -8px 16px -10px rgba(40,28,14,.18)}}
/* the footer's order: a note at the left, then Cancel (secondary), the commit last */
:root .overlay > .drawer > .db > :is(form,.dwrap) > .dscroll + .row.row > button,:root .overlay > .drawer > .db > .dscroll ~ .row.dfoot.dfoot > button{order:2;min-width:96px;height:36px;min-height:36px;padding:0 16px}
:root .overlay > .drawer > .db > :is(form,.dwrap) > .dscroll + .row.row > :is(.go,.danger,button[type=submit]),:root .overlay > .drawer > .db > .dscroll ~ .row.dfoot.dfoot > :is(.go,button[type=submit]){order:3}
:root .overlay > .drawer > .db > :is(form,.dwrap) > .dscroll + .row.row > :is(.fnote,.muted,span),:root .overlay > .drawer > .db > .dscroll ~ .row.dfoot.dfoot > :is(.fnote,.muted,span){order:1;flex:1 1 auto;margin:0 auto 0 0;font:400 13px/18px var(--sans);color:var(--text-2)}
:root .overlay > .drawer .row > button[type=submit] > .ic,:root .overlay > .drawer .row > button.danger > .ic{width:16px;height:16px}
.drawer .dscroll > .fld{display:flex;flex-direction:column;gap:6px;margin:0}
.drawer .dscroll > .fld > label.f{margin:0}
.drawer .dscroll > .fld > p.fhelp{margin:0;font:400 13px/18px var(--sans);color:var(--text-2)}
.drawer .dscroll > :is(.fld,label.f,label.check,.callout,p,.err) + :is(.fld,label.f,label.check,.callout,p,.err){margin-top:16px}
.drawer .dscroll > p.dpara{margin:0;font:400 14px/21px var(--sans);color:var(--text-2)}
.drawer .dscroll > p.dpara b{color:var(--text);font-weight:600}
/* F7 a phone: every drawer a bottom sheet (a sliver of dimmed page, 16 px corners, the grab handle) */
@media (max-width:700px){
  :root .overlay > .drawer{top:12px;bottom:0;left:0;right:0;width:100%;max-width:none;height:auto;border:0;border-top:1px solid var(--menu-edge);border-radius:16px 16px 0 0;background:var(--surface-1);box-shadow:var(--shadow-3)}
  :root .overlay > .drawer::before{content:"";position:absolute;top:6px;left:50%;width:36px;height:4px;margin-left:-18px;border-radius:2px;background:var(--border-strong);z-index:3}
  :root .overlay > .drawer > .dh.dh{padding:22px 8px 12px 16px}
  :root .overlay > .drawer > .dh .dtt{font-size:18px;line-height:24px}
  :root .overlay > .drawer > .dh > button.ib.ib{width:40px;height:40px;min-height:40px;margin:-6px 0 0}
  :root .overlay > .drawer > .db > :is(form,.dwrap) > .dscroll + .row.row,:root .overlay > .drawer > .db > .dscroll ~ .row.dfoot.dfoot{flex-wrap:wrap}
  :root .overlay > .drawer > .db > :is(form,.dwrap) > .dscroll + .row.row > button,:root .overlay > .drawer > .db > .dscroll ~ .row.dfoot.dfoot > button{flex:1 1 0;min-width:0;height:44px;min-height:44px;font-size:15px;font-weight:600}
  :root .overlay > .drawer > .db > :is(form,.dwrap) > .dscroll + .row.row > :is(.fnote,.muted,span),:root .overlay > .drawer > .db > .dscroll ~ .row.dfoot.dfoot > :is(.fnote,.muted,span){flex:1 1 100%}
}

/* ---- verbs: the cards stand 20 px over the fields under them ---- */

:root .statstrip-c.kpis > .sc.sc > .meter.sm.split{display:flex;gap:2px}
:root .cluster-node.cluster-node .bystate > .sbar.sbar > i.sb-susp{background:var(--info)}
:root .cluster-node.cluster-node .bystate > .sbar.sbar > i.sb-warn{background:var(--text-2)}
:root .sct:has(> .st-SUSPENDED) > .dot,:root .sct:has(> .st-FROZEN) > .dot{background:var(--info)}
/* tool rows: the phone's short line only on a phone */

/* ---- §1.9 one switch: 36 x 20 (44 x 26 on a phone); off a quiet track, on the accent ---- */

/* a Pin row: the label and its line at the left, the switch centred on them; no hairline over it */

/* ---- §2.9 instance admin: the policy card's temporary access; tools in a fixed action column ---- */
:root .policy-bare p.eyebrow.pg-eb{margin:20px 0 10px;padding-top:20px;border-top:1px solid var(--border-soft)}

:root .policy-bare .pol-f > p.hint{margin-top:6px;font:400 13px/18px var(--sans);color:var(--text-2)}

/* node admin: the host's pools under an eyebrow with their count */
:root .node-view .hostcard .hc-pools > h3.eyebrow.eyebrow{display:flex;align-items:center;gap:0;margin:0 0 8px;font:600 12px/16px var(--sans);letter-spacing:var(--ls-eyebrow);text-transform:uppercase;color:var(--text-2)}

:root .hostcard .hc-pools > h3.eyebrow > .count::before{content:"·"}
:root .hostcard ul.pools > li{border:0;padding:7px 0}
:root .hostcard ul.pools > li > .pn{font:600 14px/20px var(--sans)}
:root .hostcard ul.pools > li > .pm{font:400 13px/18px var(--sans);color:var(--text-2)}
:root .node-view .nactions .fld > p.fhelp{margin:6px 0 0}

/* ---- §2.13 checkpoints: a fixed table, the kinds' tags; ⋯ a 32 px ghost ---- */
@media (min-width:701px){
  :root .card.inventory > .ckcols.ckcols,:root .card.inventory > article.ckpt > .ckr.ckr{display:grid;grid-template-columns:minmax(0,1fr) 140px 120px 96px 48px;column-gap:16px;align-items:center}
  :root .card.inventory > article.ckpt > .ckr > .ck-s{display:contents}
  :root .card.inventory > article.ckpt > .ckr > .ck-s > .ck-id{display:none}
  :root .card.inventory > .ckcols > span:nth-child(4),:root .card.inventory > article.ckpt > .ckr > .ck-s > .manifest-t{justify-self:end;text-align:right}
  :root .card.inventory > article.ckpt > .ckr > .ck-m{justify-self:end}
}
:root .ckpt .chip.k-disk{background:var(--surface-2);color:var(--text-2)}
:root .ckpt .chip.k-full{background:var(--info-soft);color:var(--info)}
:root .ckpt .chip:is(.k-disk,.k-full){height:22px;padding:0 8px;border:0;border-radius:999px;font:500 12px/22px var(--sans)}
:root article.ckpt:hover{background:var(--hover)}
@media (max-width:700px){
  :root .ck-list.ck-ph .sec-h h2{font:400 13px/18px var(--sans);letter-spacing:0;color:var(--text-2)}
}

/* ---- §2.14 bot admin: the conversation an eyebrow group of Details ---- */
:root .bot-admin-view .card.o-ov > .convo-row{margin:20px 0 0;padding:0;border:0}
:root .bot-admin-view .card.o-ov > .convo-row > h3.props-h{margin:0 0 4px}
:root .bot-admin-view .card.o-ov > .convo-row > button.convo-t{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;width:100%;min-height:48px;margin:0;padding:8px 0;border:0;border-radius:0;background:none;text-align:left}
:root .bot-admin-view .card.o-ov > .convo-row > button.convo-t:hover:not(:disabled){background:none}
:root .bot-admin-view .card.o-ov > .convo-row > button.convo-t > .d-t{display:flex;flex-direction:column;gap:2px}
:root .bot-admin-view .card.o-ov > .convo-row > button.convo-t > .d-t > b{font:600 14px/20px var(--sans);color:var(--text)}
:root .bot-admin-view .card.o-ov > .convo-row > button.convo-t > .d-t > .d-s{font:400 13px/18px var(--sans);color:var(--text-2)}
:root .bot-admin-view .card.o-ov > .convo-row > button.convo-t > .d-ch{flex:none;margin-top:2px;color:var(--text-2)}
:root .bot-admin-view .card.o-ov > .convo-row > button.convo-t.on > .d-ch{transform:rotate(180deg)}

/* ---- §2.8 images: the list full width, then the form and a flat stepper in two columns ---- */
:root .images-view .imgws.ws{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:24px;margin-top:28px}
:root .images-view .imgws > .ws-main,:root .images-view .imgws > .ws-rail{display:flex;flex-direction:column;gap:24px;min-width:0}
:root .images-view .imgws .card.register{width:100%;max-width:none}
:root .images-view .imgws .card.register .fgrid.one{display:grid;grid-template-columns:minmax(0,1fr);row-gap:16px;max-width:none}
:root .images-view .imgws .card.register :is(input,select){width:100%;height:36px;min-height:36px}
@media (min-width:701px){:root .images-view .imgws .card.register footer.cf{display:grid;grid-template-columns:minmax(0,1fr) auto}}
:root .images-view .card.imgs.is-empty{padding:0 4px;border:0;background:none;box-shadow:none}

:root .fhelp code,:root .hint code{padding:0;border:0;background:none;box-shadow:none;font:500 .92em/1 var(--mono);color:var(--text)}
@media (max-width:1099px){:root .images-view .imgws.ws{grid-template-columns:minmax(0,1fr)}}
@media (max-width:700px){
  :root .images-view .imgws.ws{gap:16px;margin-top:24px}
  :root .images-view .imgws .card.register :is(input,select){height:44px;min-height:44px;font-size:15px}
  :root .images-view .howflat{margin-top:0}
}

/* ---- §2.11 home: one memory grid (aligned bars), chips at one height, ghost lifecycle buttons ---- */
:root .home-view .ipanel .usage{display:grid;grid-template-columns:64px minmax(0,1fr) 128px;grid-template-areas:"k bar v";align-items:center;column-gap:12px}
:root .home-view .ipanel .usage > .uh{display:contents}
:root .home-view .ipanel .usage > .uh > .ip-k{grid-area:k;font:400 13px/18px var(--sans);color:var(--text-2)}
:root .home-view .ipanel .usage > .uh > span:not(.ip-k){grid-area:v;justify-self:end;font:400 13px/18px var(--sans);color:var(--text-2);font-variant-numeric:tabular-nums;white-space:nowrap}
:root .home-view .ipanel .usage > .uh > span:not(.ip-k) > b{font-weight:600;color:var(--text)}
:root .home-view .ipanel .usage > .meter{grid-area:bar;width:100%;margin:0}
:root .home-view .ipanel .usage.rel > .uh > .rel-v{grid-column:2 / -1;justify-self:start;color:var(--text-2)}
:root .home-view .ipanel .act.none{display:block;padding-left:0}
:root .home-view .ipanel .act.none > .x{margin:0;font:400 13px/18px var(--sans);color:var(--text-2)}
:root .home-view .ipanel .ip-bots .chip.bot{height:28px;padding:0 10px 0 8px;border:1px solid transparent;border-radius:999px;background:var(--surface-2);font:500 13px/1 var(--sans);color:var(--text)}
:root .home-view .ipanel .ip-bots button.addbot{display:inline-flex;align-items:center;justify-content:center;gap:6px;width:28px;height:28px;min-height:28px;padding:0;border:1px solid var(--border);border-style:solid;border-radius:999px;background:transparent;color:var(--text-2)}
:root .home-view .ipanel .ip-bots button.addbot:hover:not(:disabled){background:var(--hover);color:var(--text)}
:root .home-view .ipanel .ip-bots button.addbot > .lt{display:none}
:root .home-view .ipanel .ip-bots button.addbot.labelled{width:auto;padding:0 12px 0 9px}
:root .home-view .ipanel .ip-bots button.addbot.labelled > .lt{display:inline-block;position:static;width:auto;height:auto;clip-path:none;font:500 13px/1 var(--sans);color:inherit}
:root .home-view .ipanel .acts > button.quiet.lc{gap:6px;text-decoration:none}

/* the attention banner: a lighter tint in dark, the shield tile on line 1, Review a tonal accent */
:root .ap-notice.ap-notice{border-color:var(--warn-border)}
:root:not([data-theme="light"]) .ap-notice.ap-notice{background:color-mix(in srgb,var(--warn) 8%,transparent);border-color:color-mix(in srgb,var(--warn) 30%,transparent)}
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]) .ap-notice.ap-notice{background:var(--warn-soft);border-color:var(--warn-border)}}
:root .ap-notice.ap-notice button:not(.ib){background:var(--tonal-bg);border-color:transparent;color:var(--tonal-fg);font-weight:600}
:root .ap-notice.ap-notice button:not(.ib):hover:not(:disabled){background:var(--tonal-bg-hover);color:var(--tonal-fg)}
:root .ap-notice.ap-notice button:not(.ib) .ic{color:inherit}

/* ---- §2.12 overview: quiet freshness, one health summary, a meter row, the by-state bar ---- */
:root .cluster .upd-w > .stchip.fresh{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0;border:0;border-radius:0;background:none;box-shadow:none;font:400 13px/18px var(--sans);color:var(--text-2)}
:root .cluster .upd-w > .stchip.fresh > .ic{color:var(--ok)}
:root .cluster .upd-w > .stchip.fresh.warn > .ic{color:var(--warn)}
:root .cluster .upd-w > .stchip.fresh > .sc-t{color:var(--text-2)}
:root .cluster .upd-w > .stchip.fresh > .sep{color:var(--text-2)}
:root .cluster .upd-w > .stchip.fresh > button.ib{margin-left:6px}
:root header.top.cp .node-switch select{border-color:transparent;background-color:transparent}
:root header.top.cp .node-switch select:hover{background-color:var(--hover)}
:root .cluster-node.cluster-node{display:flex;flex-direction:column;gap:0;padding:20px 20px 0}
:root .cluster-node.cluster-node > .cluster-title{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:24px;margin:0;padding:0;border:0}
:root .cluster-node.cluster-node > .cluster-title > .ct-l{display:flex;align-items:center;gap:10px;min-width:0}
:root .cluster-node.cluster-node > .cluster-title > .ct-l > b{font:600 16px/22px var(--sans)}
:root .cluster-node.cluster-node > .cluster-title > .nhealth{display:inline-flex;align-items:center;gap:6px;margin:0;padding:0;border:0;font:400 13px/18px var(--sans);color:var(--text-2)}
:root .cluster-node.cluster-node > .cluster-title > .nhealth > .hl{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
:root .cluster-node.cluster-node > .cluster-title > .nhealth .dot{width:8px;height:8px;margin:0}
:root .cluster-node.cluster-node > .nmeta{display:flex;flex-wrap:wrap;align-items:center;gap:0;margin:6px 0 0;font:400 13px/18px var(--sans);color:var(--text-2)}
:root .cluster-node.cluster-node > .nmeta > *{display:inline;margin:0;padding:0;border:0;background:none;font:inherit;color:inherit}
:root .cluster-node.cluster-node > .nmeta > * + *::before{content:"·";margin:0 8px}
:root .cluster-node.cluster-node > .nmain{display:flex;flex-direction:column;gap:6px;margin:20px 0 0;padding:0;border:0}
:root .cluster-node.cluster-node > .nmain > .nm-h{display:grid;grid-template-columns:136px minmax(0,1fr) 150px;grid-template-areas:"k bar v";align-items:center;column-gap:12px}
:root .cluster-node.cluster-node > .nmain > .nm-h > .uk{grid-area:k;font:400 13px/18px var(--sans);color:var(--text-2)}
:root .cluster-node.cluster-node > .nmain > .nm-h > .meter{grid-area:bar;width:100%;margin:0}
:root .cluster-node.cluster-node > .nmain > .nm-h > .uv{grid-area:v;justify-self:end;font:400 13px/18px var(--sans);color:var(--text-2);white-space:nowrap}
:root .cluster-node.cluster-node > .nmain > .nm-h > .uv > b{font-weight:600;color:var(--text)}
:root .cluster-node.cluster-node > .nmain > .nm-h > .uv > .sep{margin:0 6px}
:root .cluster-node.cluster-node > .nmain > p.uline{display:flex;flex-wrap:wrap;gap:0;margin:0 0 0 148px;font:400 13px/18px var(--sans);color:var(--text-2)}
:root .cluster-node.cluster-node > .nmain > p.uline > .sep{margin:0 8px}
:root .cluster-node.cluster-node > .nmain > p.uline b{font-weight:600;color:var(--text)}
:root .cluster-node.cluster-node > .bystate{display:grid;grid-template-columns:136px minmax(0,1fr);grid-template-areas:"k b" ". s";align-items:center;column-gap:12px;row-gap:6px;margin:16px 0 0;padding:0;border:0}
:root .cluster-node.cluster-node > .bystate > .uk{grid-area:k;font:400 13px/18px var(--sans);color:var(--text-2)}
:root .cluster-node.cluster-node > .bystate > .sbar.sbar{grid-area:b;display:flex;height:6px;border-radius:999px;background:var(--track)}
:root .cluster-node.cluster-node > .bystate.zero > .sbar.sb0{display:flex}
:root .cluster-node.cluster-node > .bystate > .states{grid-area:s;justify-self:start;font:400 13px/18px var(--sans);color:var(--text-2)}
:root .cluster-node.cluster-node > .counts{display:flex;align-items:center;gap:0;min-height:56px;margin:20px -20px 0;padding:12px 20px;border-top:1px solid var(--border);font:400 13px/18px var(--sans);color:var(--text-2)}
:root .cluster-node.cluster-node > .counts > .sep{margin:0 8px}
:root .cluster-node.cluster-node > .counts > span > b{font-weight:600;color:var(--text)}
:root .cluster-node.cluster-node > .counts > a.cardlink{margin-left:auto}
@media (max-width:700px){
  :root .cluster-node.cluster-node{padding:16px 16px 0}
  :root .cluster-node.cluster-node > .nmain > .nm-h{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"k v" "bar bar";row-gap:8px}
  :root .cluster-node.cluster-node > .nmain > p.uline{margin-left:0}
  :root .cluster-node.cluster-node > .bystate{grid-template-columns:minmax(0,1fr);grid-template-areas:"k" "b" "s"}
  :root .cluster-node.cluster-node > .counts{margin:16px -16px 0;padding:12px 16px}
  :root .cluster .upd-w{width:100%}
}

/* ---- §2.16 history: a toolbar (the segmented control on a track, the count), fixed columns, repeats hidden ---- */
:root .history-main > .ch.hh{display:flex;align-items:center;gap:12px;flex-wrap:nowrap;margin:0 0 10px}
:root .history-main > .ch.hh > .count.count{order:0}
:root .history-main > .ch.hh > .acts{margin-left:auto;display:flex;align-items:center;gap:8px}
:root .history-main .history-actions.seg{display:inline-flex;gap:3px;height:36px;padding:3px;border:0;border-radius:10px;background:var(--seg-well)}
:root .history-main .history-actions.seg > button{height:30px;min-height:30px;padding:0 14px;border:1.5px solid transparent;border-radius:8px;background:transparent;box-shadow:none;font:500 14px/1 var(--sans);color:var(--text-2)}
:root .history-main .history-actions.seg > button.on{border-color:var(--accent);background:var(--surface-1);color:var(--text);font-weight:600}
@media (min-width:701px){
  :root .history-main .hcols.hcols,:root .history-main .hrow.optab.optab{grid-template-columns:260px minmax(0,1fr) 140px 72px}
}
:root .history-main .hrow.optab{min-height:40px}
:root .history-main .hrow.optab:hover{background:var(--hover)}
:root .history-main .hrow.optab .hr-t .ts{font-weight:400;color:var(--text-2)}
:root .history-main .hrow.optab :is(.ts.rep,.actor.rep){visibility:hidden}
:root .history-main .hrow.optab:is(:hover,:focus-within) :is(.ts.rep,.actor.rep){visibility:visible}
:root .history-main .actor{display:inline-flex;align-items:center;gap:8px;min-width:0}
:root .history-main .actor > .aav{flex:none;display:inline-grid;place-items:center;width:18px;height:18px;border-radius:50%;background:hsl(var(--h) var(--av-s) var(--av-l));color:hsl(var(--h) 40% var(--av-fl));font:700 10px/1 var(--sans)}
:root .history-main .actor > .an{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:400 14px/20px var(--sans);color:var(--text)}
:root .history-main .hrow.optab .kic{color:var(--text-2)}
:root .history-main .hrow.optab .kic.warn,:root .history-main .hrow.optab .kic.egress{color:var(--warn)}
:root .history-main .hday.hday{display:flex;align-items:center;height:32px;min-height:32px;padding:0 16px;font:600 12px/16px var(--sans);letter-spacing:var(--ls-eyebrow);text-transform:uppercase;color:var(--text-2);background:var(--surface-2)}
:root .history-main .hday.hday > .dd{margin-left:4px}
:root .history-main .hend{display:flex;align-items:center;justify-content:center;height:44px;margin:0;padding:0;border-top:1px solid var(--border-soft);font:400 13px/18px var(--sans);color:var(--text-2)}
:root .history-main .hend::before,:root .history-main .hend::after{content:none}

/* ---- §2.7 access: invite in two columns, flat people rows, the role as text; Share in the footer ---- */
.drawer .access-view form.share .share-grid{display:grid;grid-template-columns:minmax(0,1fr) 160px;gap:12px;align-items:start}
.drawer .access-view form.share .share-grid > label.f.su{display:flex;flex-direction:column;gap:6px;margin:0}
.drawer .access-view form.share .share-grid > .sl-f{display:flex;flex-direction:column;gap:6px;margin:0}
.drawer .access-view form.share .share-grid > .sl-f > label.f.sl{display:flex;flex-direction:column;gap:6px;margin:0;font:500 14px/20px var(--sans);color:var(--text)}
.drawer .access-view form.share .share-grid > .sl-f > label.f.sl > select{width:100%;height:36px;min-height:36px}
.drawer .access-view form.share .share-grid > .sl-f > p.fhelp.lvl-help{margin:0;font:400 13px/18px var(--sans);color:var(--text-2)}
.drawer .access-view form.share .share-grid > label.f.su > input{height:36px;min-height:36px}
.drawer .access-view h3.sub{margin:28px 0 8px;font:600 12px/16px var(--sans);letter-spacing:var(--ls-eyebrow);text-transform:uppercase;color:var(--text-2)}
.drawer .access-view h3.sub:first-child,.drawer .access-view form.share > h3.sub{margin-top:0}
.drawer .access-view h3.sub > .sub-n{text-transform:none;letter-spacing:0}
.drawer .access-view ul.people{margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none}
.drawer .access-view ul.people > li.person{display:flex;align-items:center;gap:12px;min-height:52px;padding:8px 0;border:0;border-radius:0;background:none}
.drawer .access-view ul.people > li.person > .pav{flex:none;width:32px;height:32px;font-size:13px}
.drawer .access-view ul.people > li.person > .pw{flex:1 1 auto;display:flex;flex-direction:column;gap:2px;min-width:0}
.drawer .access-view ul.people > li.person > .pw > b{font:600 14px/20px var(--sans)}
.drawer .access-view ul.people > li.person > .pw > .pm{font:400 13px/18px var(--sans);color:var(--text-2)}
.drawer .access-view ul.people > li.person > .prole{flex:none;height:auto;padding:0;border:0;background:none;box-shadow:none;font:400 13px/18px var(--sans);color:var(--text-2)}
.drawer .levels-block.legend{margin-top:24px}
.drawer .levels-block.legend dl.levels > .lvrow{padding:10px 0;border:0}
.drawer .levels-block.legend dl.levels > .lvrow + .lvrow{border-top:0}
:root .overlay > .drawer > .db > .dscroll ~ .row.dfoot.acc-foot{flex-wrap:nowrap}
:root .overlay > .drawer > .db > .dscroll ~ .row.dfoot.acc-foot > .fnote{flex:1 1 0;min-width:0}
@media (max-width:700px){
  .drawer .access-view form.share .share-grid{grid-template-columns:minmax(0,1fr)}
  .drawer .access-view form.share .share-grid :is(input,select){height:44px;min-height:44px;font-size:15px}
  :root .overlay > .drawer > .db > .dscroll ~ .row.dfoot.acc-foot{flex-wrap:wrap}
}

/* ---- §2.1 new instance: eyebrow legends, a spec grid, the images side by side ---- */
:root .drawer form.newinst fieldset.grp.grp > legend{float:left;width:100%;margin:24px 0 12px;padding:0;font:600 12px/16px var(--sans);letter-spacing:var(--ls-eyebrow);text-transform:uppercase;color:var(--text-2)}
:root .drawer form.newinst fieldset.grp.grp:first-of-type > legend{margin-top:4px}
:root .drawer form.newinst fieldset.grp.grp + fieldset.grp{margin-top:0;padding-top:0;border-top:0}
:root .drawer form.newinst p.fhelp.specline{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin:8px 0 0;padding:10px 12px;border-radius:8px;background:var(--surface-2);font:400 12px/16px var(--sans);color:var(--text-2)}
:root .drawer form.newinst p.fhelp.specline > .sep{display:none}
:root .drawer form.newinst p.fhelp.specline > .sp{display:flex;flex-direction:column;gap:2px;min-width:0;white-space:nowrap}
:root .drawer form.newinst p.fhelp.specline > .sp > b{font:600 14px/20px var(--sans);color:var(--text)}
@media (min-width:701px){
  :root .drawer form.newinst .fstack.imgs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 12px;margin-top:16px}
  :root .drawer form.newinst .fstack.imgs > p.fhelp{grid-column:1 / -1;margin:0}
}
:root .drawer form.newinst p.owner-note{margin:24px 0 0;font:400 13px/18px var(--sans);color:var(--text-2)}
:root .drawer form.newinst .grp-rows > :is(button.disclose.drow,details.disc.drow){border-color:var(--border-soft)}

/* ---- §2.18 the delete drawers' callout, the request drawer, the owner's request banner ---- */
.drawer .callout.dz-call{display:grid;grid-template-columns:16px minmax(0,1fr);column-gap:10px;padding:12px 14px;border:1px solid var(--bad-border);border-radius:10px;background:color-mix(in srgb,var(--bad) 7%,transparent);color:var(--text)}
.drawer .callout.dz-call > .ic{margin-top:2px;color:var(--bad)}
.drawer .callout.dz-call p.dc-t{margin:0;font:600 14px/20px var(--sans);color:var(--text)}
.drawer .callout.dz-call ul.dc-l{margin:6px 0 0;padding:0 0 0 16px;font:400 13px/19px var(--sans);color:var(--text-2)}
.drawer .callout.dz-call ul.dc-l > li + li{margin-top:2px}
.drawer .callout.dz-call ul.dc-l b{color:var(--text)}
.drawer .callout.info{border-color:var(--info-border);background:var(--info-soft);color:var(--text)}
.drawer .callout.info > .ic{color:var(--info)}
:root .open-requests.notices{display:flex;flex-direction:column;gap:16px;margin:0 0 20px}
:root .open-requests .banner.open-request{display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:start;column-gap:12px;padding:14px 16px;border-radius:12px}
:root .open-requests .banner.open-request > .or-ic{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:8px;background:color-mix(in srgb,var(--warn) 14%,transparent);color:var(--warn)}
:root .open-requests .banner.open-request > .fill{display:flex;flex-direction:column;gap:2px;min-width:0}
:root .open-requests .banner.open-request > .fill > .or-l1{font:400 14px/20px var(--sans);color:var(--text)}
:root .open-requests .banner.open-request > .fill > :is(.or-m,.or-x){font:400 13px/18px var(--sans);color:var(--text-2)}
:root .open-requests .banner.open-request > .or-acts{display:flex;gap:8px;align-self:start}
:root .open-requests .banner.open-request > .or-acts > button{height:32px;min-height:32px;min-width:84px}
:root:not([data-theme="light"]) .open-requests .banner.open-request{background:color-mix(in srgb,var(--warn) 8%,transparent);border-color:color-mix(in srgb,var(--warn) 30%,transparent)}
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]) .open-requests .banner.open-request{background:var(--warn-soft);border-color:var(--warn-border)}}
@media (max-width:700px){
  :root .open-requests .banner.open-request{grid-template-columns:28px minmax(0,1fr)}
  :root .open-requests .banner.open-request > .or-acts{grid-column:1 / -1;margin-top:12px}
  :root .open-requests .banner.open-request > .or-acts > button{flex:1 1 0;height:40px;min-height:40px}
}
/* the admin's private card: delete a quiet danger ghost at the left */
:root .ipanel.private .acts > button.quiet.danger{height:32px;min-height:32px;padding:0 10px;border:0;background:transparent;color:var(--bad)}

:root .ipanel.private .pv-who{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font:400 13px/18px var(--sans);color:var(--text-2)}
:root .ipanel.private .pv-who > .tag:not(.bad,.amber,.warn){background:transparent;box-shadow:inset 0 0 0 1px var(--border-strong);color:var(--text-2)}

/* ---- §2.3 the menus: 300 px, group heads that name what they act on, single-line rows, one danger group last ---- */
:root .gk-menu .gk-sheet{width:300px;padding:0;border-radius:12px}
:root .gk-menu .pop-scroll{padding:6px}
:root .gk-menu .grp > .sec.sec{display:flex;align-items:baseline;justify-content:space-between;gap:12px;min-height:0;padding:8px 10px 4px;font:600 12px/16px var(--sans);letter-spacing:var(--ls-eyebrow);text-transform:uppercase;color:var(--text-2)}
:root .gk-menu .grp > .sec.sec > .sec-k{flex:none}
:root .gk-menu .grp > .sec.sec > .sec-v{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:400 12px/16px var(--mono);letter-spacing:0;text-transform:none;color:var(--text-2)}
:root .gk-menu .grp + .grp{margin-top:6px;padding-top:6px;border-top:1px solid var(--border)}
:root .gk-menu .grp.dz{margin-top:10px;padding-top:10px}
:root .gk-menu .it{min-height:36px;padding:0 10px;gap:10px;font:400 14px/20px var(--sans)}
:root .gk-menu .it > .ic{width:16px;height:16px;flex:none;color:var(--text-2)}
:root .gk-menu .it > .l{flex:1 1 auto;min-width:0}
:root .gk-menu .it > .r{flex:none;max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:400 12px/16px var(--mono);color:var(--text-2)}
:root .gk-menu .it > .r::first-letter{text-transform:none}
:root .gk-menu .it.danger > .r{color:var(--text-2)}
:root .gk-menu .gview .it .lt{color:var(--text-2)}
:root .gk-menu .gk-mbtn.gk-menu-btn{width:32px;height:32px;min-height:32px;padding:0;border:0;border-radius:8px;background:transparent;color:var(--text-2)}
:root .gk-menu .gk-mbtn.gk-menu-btn:hover,:root .gk-menu .gk-mbtn.gk-menu-btn.on{background:var(--selected);color:var(--text)}
@media (max-width:700px){
  :root .gk-menu .gk-sheet{width:100vw;border-radius:16px 16px 0 0}
  :root .gk-menu .it{min-height:48px;font-size:15px}
}
/* the classic ⋯ menu: the same group heads and rows */
:root .menu > .items .mgl{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:8px 10px 4px;font:600 12px/16px var(--sans);letter-spacing:var(--ls-eyebrow);text-transform:uppercase;color:var(--text-2)}
:root .menu > .items .mgl > .sec-v{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:400 12px/16px var(--mono);letter-spacing:0;text-transform:none}
:root .menu > .items > button{min-height:36px;gap:10px;font-size:14px}
:root .menu > .items > button > .r{margin-left:auto;padding-left:12px;max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:400 12px/16px var(--mono);color:var(--text-2)}
:root .menu > .items > .mgl:not(.mgh){margin-top:4px;padding-top:12px;border-top:1px solid var(--border)}
@media (max-width:700px){:root .menu > .items > button{min-height:48px;font-size:15px}}

/* ---- §2.4/§2.5 F1 the chats: anchored to the bottom, one start line, the identity in the header ---- */
.chat > .transcript{display:flex;flex-direction:column}
.chat > .transcript::before{content:"";flex:1 1 auto}

:root :is(.gk-pillbox,.composer) textarea:is(:focus,:focus-visible){border-color:transparent;box-shadow:none;outline:none}

:root .chat > .ch .cht > .meta > .bstat.persona{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-2)}

/* ---- §3 rows: a hover fill on every list ---- */

:root button.frow:hover:not(:disabled){background:var(--hover)}

/* ---- fixes: phones (verbs, tabs, bars), the history toolbar, the overview's facts, panel toolbars ---- */
@media (max-width:700px){
  
  
  
  
  
  
  
  
  /* the page tabs: 14/500, 10 px insets from a 16 px start, so five fit (History never clips) */
  :root .subnav{gap:0;padding:0 6px}
  :root .subnav > .stab.stab{padding:0 10px;font:500 14px/40px var(--sans)}
  /* a bot's phone bar: the name left after ‹, the instance muted after it; no avatar */
  :root .ihx.bot .ih-row > .ih-t > .ih-title > .gk-av{display:none}
  :root .ihx.bot .ih-row > .ih-t{justify-content:flex-start;margin-left:0}
  /* the signing status under its title, on the text's edge */
  
  /* the home banner's Review: a full-width row under the text */
  :root .home-view .ap-notice.ap-notice{flex-wrap:wrap}
  :root .home-view .ap-notice.ap-notice > button:not(.ib){order:9;flex:1 1 100%;width:100%;height:40px;min-height:40px;margin:12px 0 0}
}
:root .history-main .history-actions.seg{flex:0 0 auto}
:root .history-main .history-actions.seg > button{display:inline-block;flex:none;width:auto;text-align:center;line-height:27px}
:root .history-main > .ch.hh > .count.count + .acts,:root .history-main > .ch.hh > .acts{margin-left:auto}
:root .history-main > .ch.hh > .acts > button.ib.refresh{display:inline-flex}
@media (max-width:700px){
  :root .history-main > .ch.hh{flex-wrap:wrap}
  :root .history-main .history-actions.seg{flex:1 1 auto;min-width:0;height:40px}
  :root .history-main .history-actions.seg > button{flex:1 1 0;height:34px;min-height:34px;line-height:31px}
  :root .history-main > .ch.hh > .acts{margin-left:0}
  :root .history-main > .ch.hh > .count.count{order:9;flex:1 1 100%}
}
:root .cluster-node.cluster-node > .nmeta{flex-direction:row;justify-content:flex-start;align-items:center;text-align:left}
:root .cluster-node.cluster-node > .nmeta > *{white-space:nowrap}
:root .statstrip-c.kpis > .sc.sc{min-width:0}
/* panel toolbars run edge to edge over the body's 16 px inset */
.gk .gk-panel > .pb > .cwrap > .cbar,.gk .gk-panel > .pb > .ftree .flist > .fbar,.gk .gk-panel > .pb > .scr > .scrtool{margin:-16px -16px 0;padding:0 16px 0 8px}
.gk .gk-panel > .pb > .cwrap{justify-content:flex-start}
.gk .gk-panel > .pb > .cwrap > .console{flex:none}
/* the images form card takes its column */
:root .images-view .imgws > .ws-main > .sec{width:100%}
:root .images-view .imgws > .ws-main > .sec > .sec-b{width:100%}
:root .images-view .imgws > .ws-main .card.register{width:100%;max-width:none;box-sizing:border-box}
/* the access drawer: Invite reads as the other group heads; a phone's note on its own line */
.drawer .access-view form.share.share > h3.sub{margin:0 0 4px;font:600 12px/16px var(--sans);letter-spacing:var(--ls-eyebrow);text-transform:uppercase;color:var(--text-2)}
@media (max-width:700px){:root .overlay > .drawer > .db > .dscroll ~ .row.dfoot.acc-foot > .fnote{flex:1 1 100%}}

:root .images-view .imgws .card.register .fgrid.one > *{margin:0}
:root .images-view .imgws .card.register .fgrid.one > .fld{display:flex;flex-direction:column;gap:6px}
:root .images-view .imgws .card.register .fgrid.one > .fld > :is(label.f,p.fhelp){margin:0}
:root .images-view .imgws .card.register label.f > :is(input,select){display:block;margin-top:6px}

/* the classic stream pane's activity: the live line follows the events */
.cwrap{justify-content:flex-start}
.cwrap > .console{flex:none}
.rpane .cwrap > .clive{position:static;display:flex;align-items:center;gap:10px;margin:2px 0 16px;padding:0 0 0 46px;border:0;background:none;box-shadow:none;font:400 13px/18px var(--sans);color:var(--text-2)}
.rpane .cwrap > .clive > .dot.live{width:6px;height:6px;margin:0;background:var(--ok)}
/* an empty composer's send: a quiet circle, amber only once there is text */

:root .chat > .ch button.ib.stream-h{border:0}
:root .chat > .transcript > .appr-dock.appr-dock{border-top:0}

/* home on a desktop: the whole first screen (heading, the request, the strip, two rows of cards) ends clear of a
   bottom-right toast */
@media (min-width:701px){
  :root .home-view > .ihead.page{margin:0 0 20px}
  :root .home-view > .ap-notice.ap-notice{margin:0 0 20px}
  :root .home-view > .statstrip-c.homecap{margin:0 0 20px}
  :root .home-view .statstrip-c.kpis > .sc.sc.sc{padding:10px 16px 12px}
  :root .home-view > .ap-notice.ap-notice.ap-notice{min-height:0;padding-top:10px;padding-bottom:10px}
  :root .home-view .statstrip-c.kpis > .sc.sc.hasm > .sh{margin-bottom:8px}
  :root .home-view .card.ipanel.ipanel{gap:8px;padding-top:16px}
  :root .home-view .card.ipanel > .acts.acts{min-height:48px;margin-top:0;padding-top:4px;padding-bottom:4px}
}

:root .empty-state.flat.flat > .es-t,:root .empty-state.flat.flat > .es-t > b,:root .empty-state.flat.flat > .es-t > span{margin:0}
:root .empty-state.flat.flat > .es-ic{margin:0;align-self:flex-start}

:root .empty-state.flat.flat{align-items:flex-start}
/* no fields between the verbs and the unavailable ones: the cards' own margin is the gap */

@media (min-width:701px){:root .drawer form.newinst .fstack.imgs{row-gap:8px}}

@media (max-width:700px){
  :root .home-view .ap-notice.ap-notice.ap-notice{display:grid;grid-template-columns:28px minmax(0,1fr);column-gap:12px;row-gap:12px;align-items:start}
  :root .home-view .ap-notice.ap-notice > .ap-n-ic{grid-column:1;grid-row:1;align-self:start;margin-top:0}
  :root .home-view .ap-notice.ap-notice > .ap-n-t{grid-column:2;grid-row:1;display:flex;flex-direction:column;gap:4px;min-width:0}
  :root .home-view .ap-notice.ap-notice > .ap-n-go{grid-column:1 / -1;grid-row:2;order:0;width:100%;margin:0;justify-content:center}
}

/* confirm drawers: one 16 px rhythm; a switch's line 6 px under it */
.drawer .dscroll > .callout{margin:0}
.drawer .dscroll > .callout + *{margin-top:20px}

.drawer .dscroll > p.hint + label.f.confirm,.drawer .dscroll > .fld + label.f.confirm{margin-top:20px}

.drawer .callout.or-wait p{font-weight:400;color:var(--text)}
.drawer .callout.or-wait p b{font-weight:600}
/* a drawer's non-commit danger (Withdraw request): the quiet red outline */
:root .overlay > .drawer .row > button.danger[type=button]{background:transparent;border-color:var(--bad-border);color:var(--bad)}

/* ==== r18 end ==== */

/* ==== r18r ==== */

/* ---- the stat strip on a phone: two by two, the hint back, the meter inside the cell's padding ---- */
@media (max-width:700px){
  :root .statstrip-c.kpis > .sc.sc.sc{justify-content:flex-start;min-height:0;padding:12px 14px 14px}
  :root .statstrip-c.kpis > .sc.sc > .sh{display:block;margin:2px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  :root .statstrip-c.kpis > .sc.sc > .meter.sm{position:relative;left:auto;right:auto;bottom:auto;width:100%;margin:10px 0 0}
  :root .statstrip-c.kpis > .sc.sc.hasm > .sh{margin-bottom:0}
  :root .home-view .statstrip-c.kpis > .sc.sc.hasm > .sh{margin-bottom:0}
}
:root .statstrip-c.kpis > .sc.sc > .meter.sm.none{visibility:hidden}

:root .cluster-node.cluster-node > .nmeta > *{padding-left:18px}
:root .cluster-node.cluster-node > .nmeta > *::before,:root .cluster-node.cluster-node > .nmeta > * + *::before{content:"·";display:inline-block;width:18px;margin:0 0 0 -18px;text-align:center}

/* ---- inline mono sits on the sans: 0.9 em wherever it runs in a sentence ---- */
:root :is(.ap-n-l1,.ap-l1,.apr-l1,.ap-hw,.vg-l1,.cf-l,.dpara,.hint,.fhelp,.sub,.desc,.callout,.act,.d-s,.gk-file,.ip-act) :is(code,.host:not(button),.mono:not(input)){font-size:.9em;letter-spacing:-.01em}
:root :is(.ap-n-l1,.ap-l1,.apr-l1,.ap-hw) .host .port{font-size:1em}
/* the scope of an egress grant is part of the decision: in the ink, not the muted meta */

/* ---- empty inventories: one compact row inside the section's card ---- */
:root .card.is-empty:has(> .empty-state.flat),:root .card.inventory:has(> .empty-state.flat:only-child),:root .images-view .card.imgs.is-empty{padding:0;border:1px solid var(--border);border-radius:12px;background:var(--surface-1);box-shadow:var(--shadow-card)}
:root .card:has(> .empty-state.flat) > .empty-state.flat.flat,:root .images-view .card.imgs.is-empty > .empty-state.flat.flat{align-items:center;gap:14px}
:root .card:has(> .empty-state.flat) > .empty-state.flat.flat > .es-ic,:root .images-view .card.imgs.is-empty > .empty-state.flat > .es-ic{align-self:center}

/* ---- one help aside: a card, a 16 px sentence-case title, an icon or step list (a phone: the disclosure row) ---- */
@media (min-width:701px){
  :root .images-view .howflat,:root .ws-rail .howflat,:root .sec .howflat{padding:20px;border:1px solid var(--border);border-radius:12px;background:var(--surface-1);box-shadow:var(--shadow-card)}
}
@media (max-width:700px){
  :root .howflat:has(> details.disc){padding:0 16px;border:1px solid var(--border);border-radius:12px;background:var(--surface-1);box-shadow:var(--shadow-card)}
  :root .howflat > details.disc{border-top:0}
}
:root label.f.confirm > input::placeholder{font-family:var(--sans)}

@media (min-width:701px){
  :root .images-view .imgws .card.register footer.cf > p.why{grid-column:1;grid-row:1;align-self:center}
  :root .images-view .imgws .card.register footer.cf > button.go{grid-column:2;grid-row:1;align-self:center}
}

/* ---- the bot's Details on a phone: Conversation is the card's second disclosure row, on the same inset ---- */
@media (max-width:700px){
  :root .bot-admin-view .card.o-ov.railx > .convo-row{margin:0;padding:0 16px;border-top:1px solid var(--border-soft)}
  :root .bot-admin-view .card.o-ov.railx > .convo-row > h3.props-h{display:none}
  :root .bot-admin-view .card.o-ov.railx > .convo-row > button.convo-t{align-items:center;min-height:64px;padding:12px 0}
  :root .bot-admin-view .card.o-ov.railx > .convo-row > button.convo-t > .d-ch{margin-top:0}
  :root .bot-admin-view .card.o-ov.railx > .convo-row > .convo{margin:0 -16px;border-top:1px solid var(--border-soft)}
}

/* ---- history: every row says when and who, the repeats in the muted ink ---- */
:root .history-main .hrow.optab :is(.ts.rep,.actor.rep){visibility:visible}
:root .history-main .hrow.optab .ts.rep{color:var(--text-2)}
:root .history-main .hrow.optab .actor.rep > .an{color:var(--text-2)}
@media (min-width:701px){
  :root .history-main .hcols.hcols,:root .history-main .hrow.optab.optab{grid-template-columns:minmax(220px,1.1fr) minmax(0,1.4fr) 160px 72px}
}
:root .history-main .hday.hday{background:transparent;border-top:1px solid var(--border-soft);border-bottom:1px solid var(--border-soft)}
@media (max-width:700px){
  :root .history-main > .ch.hh.hh{flex-wrap:wrap;row-gap:10px;margin-bottom:12px}
  :root .history-main > .ch.hh > .history-actions.seg.seg{flex:1 1 auto}
  :root .history-main > .ch.hh > .count.count{order:9;flex:1 1 100%}
}

/* ---- checkpoints: the name sized to its content, Created beside it ---- */
@media (min-width:701px){
  :root .card.inventory > .ckcols.ckcols,:root .card.inventory > article.ckpt > .ckr.ckr{grid-template-columns:minmax(200px,1.4fr) minmax(120px,1fr) minmax(100px,1fr) 80px 40px}
}
@media (max-width:700px){
  :root .ck-list.ck-ph .sec-h h2{font:600 18px/24px var(--sans);letter-spacing:-.01em;color:var(--text)}
}

/* ---- the overview: the reachable pill alone says it is well; problems as pills; no empty track ---- */
:root .cluster-node.cluster-node > .bystate.zero{grid-template-areas:"k s";grid-template-columns:136px minmax(0,1fr)}
:root .cluster-node.cluster-node > .bystate.zero > .sbar.sb0{display:none}
@media (max-width:700px){:root .cluster-node.cluster-node > .bystate.zero{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"k s"}}

:root .home-view .ipanel .act.none > .x,:root .home-view .ipanel .act.none{color:var(--text-2)}
@media (max-width:700px){:root .home-view .ipanel .usage{grid-template-columns:56px minmax(0,1fr) auto}}

/* ---- images: kind and label side by side, then the path and the hash ---- */
@media (max-width:700px){:root .images-view .imgws.ws{margin-top:8px}}
@media (min-width:701px){
  :root .images-view .imgws .card.register .fgrid.one{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:16px}
  :root .images-view .imgws .card.register .fgrid.one > label.f:first-child{order:1}
  :root .images-view .imgws .card.register .fgrid.one > label.f:last-child{order:2}
  :root .images-view .imgws .card.register .fgrid.one > .fld{order:3;grid-column:1 / -1}
  :root .images-view .imgws .card.register .fgrid.one > label.f:not(:first-child):not(:last-child){order:4;grid-column:1 / -1}
}

/* ---- drawers: one 480 px width on a desktop; a phone sheet's body never ends sliced under its footer ---- */
@media (min-width:701px){:root .overlay > .drawer{width:min(480px,100vw)}}
@media (max-width:700px){:root .overlay > .drawer > .db > .dscroll,:root .overlay > .drawer > .db > :is(form,.dwrap) > .dscroll{padding-bottom:40px}}
:root .drawer form.newinst .fstack.imgs > p.fhelp{margin-top:2px}

/* ---- the node's tools on a phone: the signing status on the title's edge ---- */
@media (max-width:700px){
  
  
  :root .node-view details.nmore{margin:4px 0 0}
  :root .node-view details.nmore > summary,:root .node-view details.nmore > .d-b{padding-left:0;padding-right:0}
}

/* ---- the chats: the composer a hairline until focused ---- */
:root :is(.gk-pillbox,.composer){border-color:var(--border-input)}
:root :is(.gk-pillbox,.composer):focus-within{border-color:var(--border-strong);box-shadow:none}


/* ---- the phone's actions sheet: group rules on the content's inset ---- */
:root .gk-menu .grp + .grp{position:relative;border-top:0}
:root .gk-menu .grp + .grp::before{content:"";position:absolute;top:0;left:10px;right:10px;height:1px;background:var(--border)}
/* ==== r18r end ==== */
} /* end @layer legacy */

@layer r19{
/* ==== r19 system ==== */
/* The r19 system: unlayered, so it wins over the legacy layer without specificity escalation. Binding decisions
   (B1–B12 in the r19 plan): an amber disabled primary, accent selection, hollow neutral dots, three text levels, one
   label idiom per level, one code chip, one action picker, one sheet, top-anchored chats, phone tab strips that fit. */

/* ---- tokens: dark ---- */
:root{
  --bg:#0f0f0e; --surface-1:#1d1c1a; --surface-2:#252320; --surface-3:#2e2c28; --raised:#2d2b28;
  --border:#3d3b36; --border-soft:#2e2d29; --border-strong:#57534c;
  --text:#edebe6; --text-2:#c2bdb4; --text-3:#a29d94;
  --go-off-bg:#33291a; --go-off-border:#5c4520; --go-off-fg:#d6a556;
  --off-bg:var(--surface-2); --off-border:var(--border-soft); --off-fg:var(--text-3);
  --sel-border:var(--accent); --sel-dot:var(--accent); --sel-wash:rgba(245,165,36,.07); --sel-row:#2c2a26;
  --dot-neutral:#8f8a80; --code-bg:#2a2825; --sheet-bg:var(--surface-1);
  --seg-well:#141413; --seg-thumb:#34322e;
  --count-bg:var(--surface-3); --hover:rgba(255,255,255,.05);
  --scrim:rgba(0,0,0,.6); --scrim-sheet:rgba(0,0,0,.6);
  --bad-ink:#ff8f8f; --warn-ink:#ff9a6b; --info-ink:#8fbcf3;
  --r19-row:44px;
}
:root[data-theme="light"]{
  --bg:#f2efe9; --surface-1:#fffefb; --surface-2:#f6f3ee; --surface-3:#ebe6dd; --raised:#ffffff;
  --border:#ddd5c8; --border-soft:#ebe5da; --border-strong:#c4baa9;
  --text:#1d1a16; --text-2:#4a453d; --text-3:#655e52;
  --go-off-bg:#fbe8c8; --go-off-border:#ebc98c; --go-off-fg:#8a5a12;
  --off-bg:var(--surface-2); --off-border:var(--border-soft); --off-fg:var(--text-3);
  --sel-wash:#fdf5e6; --sel-row:#ece6db;
  --dot-neutral:#9b9283; --code-bg:#efeae1; --sheet-bg:var(--surface-1);
  --seg-well:#ebe6dd; --seg-thumb:#ffffff;
  --count-bg:#ebe6dd; --hover:rgba(31,27,23,.04);
  --scrim:rgba(28,22,14,.42); --scrim-sheet:rgba(28,22,14,.42);
  --bad-ink:#b42318; --warn-ink:#a1460d; --info-ink:#1f5fae;
}
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]){
  --bg:#f2efe9; --surface-1:#fffefb; --surface-2:#f6f3ee; --surface-3:#ebe6dd; --raised:#ffffff;
  --border:#ddd5c8; --border-soft:#ebe5da; --border-strong:#c4baa9;
  --text:#1d1a16; --text-2:#4a453d; --text-3:#655e52;
  --go-off-bg:#fbe8c8; --go-off-border:#ebc98c; --go-off-fg:#8a5a12;
  --off-bg:var(--surface-2); --off-border:var(--border-soft); --off-fg:var(--text-3);
  --sel-wash:#fdf5e6; --sel-row:#ece6db;
  --dot-neutral:#9b9283; --code-bg:#efeae1; --sheet-bg:var(--surface-1);
  --seg-well:#ebe6dd; --seg-thumb:#ffffff;
  --count-bg:#ebe6dd; --hover:rgba(31,27,23,.04);
  --scrim:rgba(28,22,14,.42); --scrim-sheet:rgba(28,22,14,.42);
  --bad-ink:#b42318; --warn-ink:#a1460d; --info-ink:#1f5fae;
}}

/* ---- B1/B2 one disabled primary: an amber tint with a readable amber label, never grey ---- */
:is(button,.btn).go:disabled,:is(button,.btn).go:disabled:hover,button.cf-go:disabled,button.cf-go:disabled:hover,a.go[aria-disabled=true],
.gk .gk-btn.go:disabled,.drawer .dfoot button[type=submit]:not(.danger):disabled,.drawer button.go[type=submit]:disabled{
  background:var(--go-off-bg);border:1px solid var(--go-off-border);color:var(--go-off-fg);opacity:1;box-shadow:none;cursor:not-allowed;font-weight:600;transform:none}

button.cf-go:not(:disabled){font-weight:600}

/* the hint beside a disabled commit: the sentence stays readable, only the button dims */
footer.cf > p.why{font:400 13px/18px var(--sans);color:var(--text-2)}
footer.cf > p.why > .ic{color:var(--text-3)}

/* ---- B3 selection is the accent: choice cards, phone segments, the history control ---- */

/* unavailable: the same card, a dashed edge, a lock in the dot's slot, the reason as its line */

/* ---- B4 status: one dot; neutral is a hollow grey ring ---- */
.dot{background:var(--dot-neutral)}
.dot:not(.ok,.bad,.amber,.blink,.warn,.info,.live),.dot.hollow{background:transparent;box-shadow:inset 0 0 0 1.5px var(--dot-neutral)}
.dot.ok{background:var(--ok);box-shadow:none}.dot.bad{background:var(--bad);box-shadow:none}.dot.warn{background:var(--warn-dot);box-shadow:none}
.dot.info{background:var(--info);box-shadow:none}.dot.amber,.dot.blink{background:var(--accent);box-shadow:none}
.dot.live{background:var(--ok)}
.tag.neutral{background:var(--surface-2);box-shadow:inset 0 0 0 1px var(--border-soft);color:var(--text-2)}
.tag.neutral::before{content:"";width:7px;height:7px;border-radius:50%;background:transparent;box-shadow:inset 0 0 0 1.5px var(--dot-neutral);flex:none}
.tag.ok::before,.tag.warn::before,.tag.bad::before,.tag.info::before{background:currentColor}
:root[data-theme="light"] :is(.tag.warn){color:var(--warn-ink)}
:root[data-theme="light"] :is(.tag.info){color:var(--info-ink)}
:root[data-theme="light"] :is(.tag.bad){color:var(--bad-ink)}
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]) .tag.warn{color:var(--warn-ink)}:root:not([data-theme="dark"]) .tag.info{color:var(--info-ink)}:root:not([data-theme="dark"]) .tag.bad{color:var(--bad-ink)}}
.istate:has(> :is(.st-STOPPED,.st-ARCHIVED,.st-DELETED,.st-DELETING)){background:var(--surface-2);box-shadow:inset 0 0 0 1px var(--border-soft);color:var(--text-2)}

/* ---- B6 labels: the eyebrow (a group inside a card, panel, drawer or menu) and the count pill ---- */
.eyebrow,h3.eyebrow,.props-h,h3.props-h,.sec-k,.mgl,.dsec-h,.fsec > legend{font:600 11.5px/16px var(--sans);letter-spacing:.08em;text-transform:uppercase;color:var(--text-3)}
.count-pill,.sec-h h2 > .count,.eyebrow > .count,h3.props-h > .count{display:inline-flex;align-items:center;justify-content:center;text-transform:none;font-variant-numeric:tabular-nums}
.eyebrow > .count::before,.sec-h h2 > .count::before{content:none}

/* ---- B7 mono: inline in a sentence with no fill; the code chip only for standalone literals ---- */
.code-chip{display:inline-flex;align-items:center;max-width:100%;padding:1px 6px;border:1px solid var(--border-soft);border-radius:6px;background:var(--code-bg);font:400 12.5px/20px var(--mono);color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
:is(p,.hint,.fhelp,.cf-l,.callout,.dpara,.d-s,.sub,.desc) code:not(.code-chip){padding:0;border:0;background:none;box-shadow:none;font-size:.9em}
input::placeholder,textarea::placeholder{font-family:var(--sans);color:var(--placeholder)}

/* ---- B11 the phone's instance tab strip fits ---- */
@media (max-width:700px){
  .ihx .subnav,.ihead .subnav{justify-content:flex-start;gap:0;height:40px;min-height:40px;padding:0 0 0 3px;overflow-x:auto;scrollbar-width:none;scroll-padding-inline:12px;-webkit-mask-image:none;mask-image:none}
  .ihx .subnav::-webkit-scrollbar{display:none}
  .ihx .subnav > .stab,.ihead .subnav > .stab{flex:0 0 auto;height:40px;min-height:40px;margin:0;padding:0 9px;font-size:14px}
  .ihx .subnav.ovf,.ihead .subnav.ovf{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 24px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 24px),transparent)}
}

/* ---- §1.16 the bars: a ready instance or bot is a dot after its name (its state in the title); "fake" names the
   node on node pages only; the bot crumb reads instance (500, muted) / bot (600) ---- */
.ihx .ih-title > .istate.ok{gap:0;width:auto;min-width:0;height:20px;padding:0 2px;margin-left:2px;border:0;background:transparent;box-shadow:none}
.ihx .ih-title > .istate.ok > .dot{width:8px;height:8px;margin:0}
.ihx .ih-title > .istate.ok > span:not(.dot){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
:is(.ihead.ihx,.gk-bar.ihx) .gk-nodem .gk-mbtn .chip{display:none}
.ihx .ih-title > a.ih-crumb{font-weight:500;color:var(--text-2)}
.ihx .ih-title > a.ih-crumb:hover{color:var(--text)}
.ihx .ih-title > .ih-sl{color:var(--text-3)}

/* ---- §1.13 icon buttons: 32 px boxes on a desktop, 40 px on a phone ---- */
button.ib:not(.sm):not(.stream-ic){min-width:32px;min-height:32px}
@media (max-width:700px){button.ib:not(.stream-ic),button.ib.sm{min-width:40px;min-height:40px}}


/* ---- §1.18 text links are ink with a chevron, never amber ---- */
button.thist,.terminal-page button.thist,a.tlink,button.tlink{color:var(--text);font-weight:600}
button.thist:hover,button.tlink:hover{text-decoration:underline;text-underline-offset:3px}

/* ---- §1.8 one sheet surface ---- */
.overlay > .drawer,.drawer{background:var(--sheet-bg)}
.overlay > .drawer > .db > .dscroll,.overlay > .drawer > .db > :is(form,.dwrap) > .dscroll,
.overlay > .drawer > .db > :is(form,.dwrap) > .dscroll + .row.row,.overlay > .drawer > .db > .dscroll ~ .row.dfoot.dfoot{background:var(--sheet-bg)}
.overlay > .drawer > .db > .dscroll,.overlay > .drawer > .db > :is(form,.dwrap) > .dscroll{padding-bottom:24px}
.overlay > .drawer > .db > :is(form,.dwrap) > .dscroll + .row.row::before,.overlay > .drawer > .db > .dscroll ~ .row.dfoot.dfoot::before{background:linear-gradient(to bottom,transparent,var(--sheet-bg))}
.overlay{background:var(--scrim)}
/* a phone: every drawer a content-height bottom sheet; its body scrolls, its footer stays pinned inside it */
@media (max-width:700px){
  .overlay > .drawer{top:auto;bottom:0;height:auto;max-height:calc(100dvh - 24px);display:flex;flex-direction:column;border:0;border-top:1px solid var(--border-strong);border-radius:16px 16px 0 0}
  .overlay > .drawer > .dh.dh{flex:none;min-height:56px;padding:24px 8px 12px 16px}
  .overlay > .drawer > .db{flex:0 1 auto;min-height:0;display:flex;flex-direction:column;overflow:auto}
  .overlay > .drawer > .db > :is(form,.dwrap){flex:0 1 auto;min-height:0;display:flex;flex-direction:column}
  .overlay > .drawer > .db > .dscroll,.overlay > .drawer > .db > :is(form,.dwrap) > .dscroll{flex:0 1 auto;min-height:0;overflow:auto;padding-left:16px;padding-right:16px}
  .overlay > .drawer > .db > :is(form,.dwrap) > .dscroll + .row.row,.overlay > .drawer > .db > .dscroll ~ .row.dfoot.dfoot{flex:none;padding:12px 16px calc(16px + env(safe-area-inset-bottom))}
}

/* ---- §1.8/§2 the access drawer: eyebrows with a count pill, roles always listed, one commit for owners ---- */
.drawer .access-view h3.sub.eyebrow{display:flex;align-items:center;margin:28px 0 8px;padding-top:20px;border-top:1px solid var(--border-soft);font:600 11.5px/16px var(--sans);letter-spacing:.08em;text-transform:uppercase;color:var(--text-3)}
.drawer .access-view form.share > h3.sub.eyebrow,.drawer .access-view > h3.sub.eyebrow:first-child{margin:0 0 12px;padding-top:0;border-top:0}
.drawer .access-view form.share > h3.sub.eyebrow{margin-bottom:-4px}

.drawer .access-view form.share .share-grid{grid-template-columns:minmax(0,1fr) 200px;margin-top:0}
.drawer .access-view form.share .share-grid > .sl-f > p.fhelp.lvl-help{margin:0}
.drawer .access-view ul.people > li.person > .prole{display:inline-flex;align-items:center;height:22px;padding:0 9px;border-radius:999px;background:var(--surface-2);box-shadow:inset 0 0 0 1px var(--border-soft);font:500 12.5px/18px var(--sans);color:var(--text-2);text-transform:capitalize}
.drawer .levels-block.legend.roles{margin-top:0}
.drawer .levels-block.legend.roles > h3.sub.eyebrow{margin-top:24px}
.drawer .levels-block.legend.roles dl.levels{display:flex;flex-direction:column;gap:12px;margin:0}
.drawer .levels-block.legend.roles dl.levels > .lvrow{display:grid;grid-template-columns:76px minmax(0,1fr);align-items:start;gap:12px;padding:0;border:0}
.drawer .levels-block.legend.roles dl.levels > .lvrow > dt{margin:0}
.drawer .levels-block.legend.roles dl.levels > .lvrow > dt > .lv-n{display:inline-flex;align-items:center;height:22px;padding:0 9px;border-radius:999px;background:var(--surface-2);box-shadow:inset 0 0 0 1px var(--border-soft);font:500 12.5px/18px var(--sans);color:var(--text-2);text-transform:none}
.drawer .levels-block.legend.roles dl.levels > .lvrow > dd{margin:0;padding-top:1px;font:400 13px/19px var(--sans);color:var(--text-2)}
@media (max-width:700px){
  .drawer .access-view form.share .share-grid{grid-template-columns:minmax(0,1fr);gap:16px}
  .drawer .access-view form.share .share-grid :is(input,select){height:44px;min-height:44px}
  .overlay > .drawer > .db > .dscroll ~ .row.dfoot.acc-foot.owns > button{flex:1 1 100%}
}

/* ---- §1.5 menus: group heads name what they act on (left, muted), one danger group last ---- */
.gk-menu .grp > .sec{display:flex;align-items:baseline;justify-content:flex-start;gap:6px;padding:10px 10px 6px;font:600 11.5px/16px var(--sans);letter-spacing:.08em;text-transform:uppercase;color:var(--text-3)}
.gk-menu .grp > .sec > .sec-v,.menu > .items .mgl > .sec-v{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:400 12.5px/16px var(--sans);letter-spacing:0;text-transform:none;color:var(--text-3)}
.menu > .items .mgl{justify-content:flex-start;gap:6px;font:600 11.5px/16px var(--sans);letter-spacing:.08em;color:var(--text-3)}
.gk-menu .grp + .grp{margin-top:8px;padding-top:6px;border-top:0}
.gk-menu .grp + .grp::before{top:-2px;left:6px;right:6px}
.gk-menu .grp.dz > .sec,.gk-menu .grp.dz > .sec > .sec-k{color:var(--bad-ink)}
.gk-menu .it.danger,.gk-menu .it.danger > .ic,.menu > .items > button.danger,.menu > .items > button.danger > .ic{color:var(--bad-ink)}

.gk-menu .it{gap:12px}
.gk-menu .gview .it .lt{color:var(--text)}
.gk-menu .sh-h > b{display:flex;flex-direction:column;gap:2px;min-width:0}
.gk-menu .sh-h .shs{font:400 13px/18px var(--sans);color:var(--text-2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (min-width:701px){.gk-menu .sh-h .shs{display:none}.gk-instm .gk-sheet{right:-12px}}
@media (max-width:700px){
  .gk-menu .gk-sheet,.gk-nodem .gk-sheet,.gk-acctm .gk-sheet{left:0;right:0;width:100vw;max-height:calc(100dvh - 24px);padding:0 0 calc(12px + env(safe-area-inset-bottom));border:0;border-top:1px solid var(--border-strong);border-radius:16px 16px 0 0;background:var(--sheet-bg)}
  .gk-menu .gk-sheet > .sh-h{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;min-height:64px;padding:24px 8px 10px 16px;border-bottom:1px solid var(--border-soft)}
  .gk-menu .gk-sheet > .sh-h > b{font:650 18px/24px var(--sans);color:var(--text)}
  .gk-menu .gk-sheet > .sh-h > button.gk-icon.x{margin:-8px 0 0}
  .gk-menu .pop-scroll{padding:4px 6px 8px}
  .gk-menu .grp > .sec{padding:12px 10px 4px}
  .gk-menu .it{min-height:44px;padding:0 10px;font-size:15px}
  .gk-menu .grp + .grp{margin-top:6px;padding-top:4px}
}

/* ---- §1.21 the danger zone: one sentence, the outlined danger button at the right ---- */
.dzrow > .dz-t > .dz-l{font:400 14px/20px var(--sans);color:var(--text)}

/* ---- §1.14 card footers: two ghosts of one height (the lifecycle action left, Open › right); cards that repeat
   align their footers ---- */
.home-view .ipanel .acts > button.go2.open,.cluster-node .counts > a.cardlink{display:inline-flex;align-items:center;gap:4px;height:32px;min-height:32px;padding:0 8px 0 10px;border:0;border-radius:8px;background:transparent;box-shadow:none;color:var(--text);font:600 14px/20px var(--sans);text-decoration:none}
.home-view .ipanel .acts > button.go2.open:hover:not(:disabled),.cluster-node .counts > a.cardlink:hover{background:var(--hover);color:var(--text)}
.home-view .ipanel .acts > button.go2.open > .ic,.cluster-node .counts > a.cardlink > .ic{color:var(--text-2)}
.home-view .ipanel .acts > button.quiet.lc{gap:6px}

.home-view .ipanel,.cluster-node.linked{transition:border-color var(--dur-1) var(--ease)}
.home-view .ipanel:hover,.cluster-node.linked:hover{border-color:var(--border-strong)}
.cluster-node.linked{position:relative;display:flex;flex-direction:column}
.cluster-node.linked > .counts{margin-top:auto}
.cluster-node.linked > :nth-last-child(2){margin-bottom:20px}
.cluster-node > .bystate.zero > .sbar.sb0{display:flex}
.cluster-node.linked > .counts > a.cardlink::after{content:"";position:absolute;inset:0;border-radius:inherit}
.cluster-node.linked > .counts > a.cardlink{position:static}
.cluster-node.linked :is(.tag,.nhealth,.ell){position:relative;z-index:1}
.cluster-nodes{align-items:stretch}
@media (max-width:700px){
  .home-view .ipanel .acts > :is(button.quiet.lc,button.go2.open),.cluster-node .counts > a.cardlink{height:44px;min-height:44px}
}
/* home: the memory row's track (dashed and empty while nothing is in use), chips with the dot first */
.home-view .ipanel .usage{grid-template-columns:64px minmax(0,1fr) 168px}
.home-view .ipanel .usage > .meter.idle{grid-area:bar;align-self:center;width:100%;margin:0;padding:0;box-sizing:border-box}
.home-view .ipanel .usage.rel > .uh > .rel-v{grid-area:v;justify-self:end;white-space:nowrap}
.home-view .ipanel > .acts{margin-top:auto}
.home-view .ipanel .act.none{display:flex;align-items:center;gap:8px}
@media (max-width:700px){.home-view .ipanel .usage{grid-template-columns:56px minmax(0,1fr) auto}}
.home-view .ipanel .chip.bot > .chip-sh{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;margin-left:2px;border-radius:50%;background:var(--warn-soft);color:var(--warn-ink)}
.home-view .ipanel .chip.bot > .chip-sh > .ic{width:11px;height:11px}
.home-view .ipanel .chip.bot.needs{background:var(--surface-2);box-shadow:inset 0 0 0 1px var(--border-soft);color:var(--text)}
.home-view .ipanel .act.none > .a-ic{color:var(--text-3)}
.home-view .ipanel .act.none > .x.none{color:var(--text-3)}
/* the waiting-request banner: a warn edge, a warn icon tile, the host as a code chip, Review tonal */
.ap-notice{background:linear-gradient(var(--warn),var(--warn)) left 0 top 10px / 3px calc(100% - 20px) no-repeat,var(--surface-1);border:1px solid var(--border)}
.ap-notice > .ap-n-ic{background:var(--warn-soft);color:var(--warn-ink)}
.ap-notice code.host.code-chip{font-size:13px}

/* ---- overview: Needs attention closes the page ---- */
.cluster > .attn-sec{margin-top:32px}
.cluster > .attn-sec .attn-card{padding:0}
.cluster > .attn-sec .attn-card > .empty-state.flat{margin:0}

.cluster > .attn-sec .attn-card > .erow{display:flex;align-items:center;gap:12px;min-height:56px;padding:10px 16px 10px 20px}
.cluster > .attn-sec .attn-card > .erow + .erow{border-top:1px solid var(--border-soft)}
.cluster > .attn-sec .attn-card > .erow > .er-ic{flex:none;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:8px;background:var(--warn-soft);color:var(--warn-ink)}
.cluster > .attn-sec .attn-card > .erow.bad > .er-ic{background:var(--bad-soft);color:var(--bad-ink)}
.cluster > .attn-sec .attn-card > .erow > .er-t{flex:1 1 auto;display:flex;flex-direction:column;min-width:0}
.cluster > .attn-sec .attn-card > .erow > .er-t > b{font:600 14px/20px var(--sans);color:var(--text)}
.cluster > .attn-sec .attn-card > .erow > .er-t > span{font:400 13px/18px var(--sans);color:var(--text-2)}
a.tlink{display:inline-flex;align-items:center;gap:4px;font:600 14px/20px var(--sans);text-decoration:none}
a.tlink:hover{text-decoration:underline;text-underline-offset:3px}

/* ---- §1.20 the details panel: eyebrow heads that carry the name, 28 px rows, a copy right after its value ---- */
.gk-details > .gk-dhrow{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:24px 0 6px;padding-top:16px;border-top:1px solid var(--border-soft)}
.gk-details > .gk-dhrow:first-child{margin-top:4px;padding-top:0;border-top:0}
.gk-details > .gk-dhrow > h4.gk-dh.props-h{display:flex;align-items:baseline;gap:8px;min-width:0;margin:0;padding:0;border:0;font:600 11.5px/16px var(--sans);letter-spacing:.08em;text-transform:uppercase;color:var(--text-3)}
.gk-details > .gk-dhrow > h4.gk-dh > .dh-n{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:500 13px/16px var(--sans);letter-spacing:0;text-transform:none;color:var(--text-2)}
.gk-details > .gk-dhrow > button.tlink.dh-edit{flex:none;height:28px;min-height:28px;margin:-6px -8px -6px 0;padding:0 8px;border:0;border-radius:8px;background:transparent;box-shadow:none;color:var(--text);font:600 13px/18px var(--sans)}
.gk-details > .gk-dhrow > button.tlink.dh-edit:hover{background:var(--hover);text-decoration:none}

.gk-panel dl.props.gk-facts dd,.gk-panel dl.props.gk-facts > .pr.act dd{display:flex;align-items:center;justify-content:flex-start;gap:4px}
.gk-panel dl.props.gk-facts dd > button.ib.cpy{flex:none;height:28px;margin:-4px 0}
@media (max-width:899px){.gk-panel dl.props.gk-facts dd > button.ib.cpy{height:40px;margin:-10px 0}}

/* ---- §1.11 Rule A: two columns of natural height (no stretched card fakes equal height); the rail sticks ---- */
@media (min-width:701px){
  .ws:has(> .ws-main){align-items:start}
  .ws > :is(.ws-main,.ws-rail) > *,.ws > :is(.ws-main,.ws-rail) > .sec > .sec-b,.ws > :is(.ws-main,.ws-rail) > .sec > .sec-b > .card{flex:0 0 auto}
  .imgws > .ws-main > .sec,.imgws > .ws-main > .sec > .sec-b{flex:0 0 auto}
  .ws > .ws-rail{position:sticky;top:72px;align-self:start}
}

/* ==== per view ==== */
.images-view > .imgws.ws{margin-top:0}

/* ---- new instance: the profile's spec strip (label over value, four equal cells), the images' shared note above
   the pair ---- */
.drawer form.newinst p.fhelp.specline{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin:8px 0 0;padding:0;border:1px solid var(--border);border-radius:10px;background:var(--sheet-bg);box-shadow:none;overflow:hidden}
.drawer form.newinst p.fhelp.specline > .sep{display:none}
.drawer form.newinst p.fhelp.specline > .sp{display:flex;flex-direction:column-reverse;justify-content:flex-end;gap:2px;min-width:0;padding:10px 12px;font:400 12.5px/16px var(--sans);color:var(--text-3)}
.drawer form.newinst p.fhelp.specline > .sp ~ .sp{border-left:1px solid var(--border-soft)}
.drawer form.newinst p.fhelp.specline > .sp > b{font:600 15px/20px var(--sans);color:var(--text);white-space:nowrap;font-variant-numeric:tabular-nums}
.drawer form.newinst .fstack.imgs > p.fhelp.imgs-d{margin:0 0 4px}
/* checkpoints: the row's ⋯ a 32 px bordered icon button */
.ckpt .ck-m .menu > button{width:32px;height:32px;min-width:32px;min-height:32px;padding:0;border:1px solid var(--border);border-radius:8px;background:transparent}
.ckpt .ck-m .menu > button:hover{border-color:var(--border-strong);background:var(--hover)}

/* ---- unit suffixes (MiB, s) read as an addon: a hairline divider inside the field's right edge ---- */
.fld.unitf > .unit{right:1px;padding:0 12px 0 11px;border-left:1px solid var(--border-soft);font:500 13px/18px var(--sans);color:var(--text-2)}
.fld.unitf > label.f > input{padding-right:56px}

/* ---- the Pin row (checkpoints, bot admin): a settings row, the switch first, beside its label ---- */

/* ---- bot admin: the Details rail at 28 px rows, so the two columns end together ---- */

.bot-admin-view .ws-rail h3.props-h{margin-top:20px}
.bot-admin-view .ws-rail h3.props-h:first-child{margin-top:0}

/* ---- node admin (phone): a tool's button spans the card's content width, under the icon and the text ---- */

/* ---- history: the count rides in its segment; the header, then tinted day bands; a repeated actor is its avatar ---- */
.history-main .history-actions.seg > button > .count{display:inline-flex;align-items:center;justify-content:center;font-variant-numeric:tabular-nums}
.history-main .history-actions.seg > button{flex:1 1 auto;width:auto;min-width:0;display:inline-flex;align-items:center;justify-content:center}

.history-main .hcols.hcols{background:var(--surface-1);border-bottom:1px solid var(--border);font:600 12.5px/18px var(--sans);letter-spacing:0;text-transform:none;color:var(--text-2)}
.history-main .hday.hday{height:32px;min-height:32px;padding:0 16px;border-top:0;border-bottom:1px solid var(--border-soft);background:var(--surface-2);font:600 11.5px/16px var(--sans);letter-spacing:.08em;text-transform:uppercase;color:var(--text-3)}
.history-main .hday.hday > .dd{color:var(--text-3)}
.history-main .hrow.optab .actor.rep > .an{display:none}
.history-main .hrow.optab .actor.rep > .aav{opacity:.6}
.history-main .hrow.optab .hr-t .ts,.history-main .hrow.optab .ts.rep{color:var(--text-3);font-variant-numeric:tabular-nums}
.history-main .hrow.optab .htgt .hsep{color:var(--text-3);margin:0 6px}
@media (min-width:701px){
  .history-main .hcols.hcols,.history-main .hrow.optab.optab{grid-template-columns:minmax(240px,1.2fr) minmax(0,1.6fr) 140px 72px}
}

/* ---- instance admin: the two columns balance (Lifecycle and Egress | Configuration); Tools and the danger zone
   run the full width under them ---- */
.instance-admin > .ws-wide{display:flex;flex-direction:column;gap:28px;margin-top:28px}
.instance-admin > .ws-wide > .sec{margin:0}

/* the typed-confirm label's name: plain mono, no chip */
.cf-l code.idchip{padding:0;border:0;background:none;box-shadow:none;font:400 .9em var(--mono);color:var(--text)}
/* ==== r19 system end ==== */

/* ==== r19r: neutral disabled primaries, neutral selection, one action picker at every width ==== */
/* ---- the access drawer: Username and Role on one top line; the Roles list marks the role being given ---- */
.drawer .access-view form.share .share-grid{align-items:start}
.drawer .access-view form.share .share-grid > :is(label.f,.fld) {margin:0}
.drawer .access-view form.share .share-grid > .sl-f > label.f{margin:0}
.drawer .access-view form.share .share-grid :is(input,select){margin:0}
.drawer .levels-block.legend.roles dl.levels > .lvrow.sel > dt > .lv-n{background:var(--seg-thumb);box-shadow:inset 0 0 0 1px var(--border-strong);color:var(--text);font-weight:600}
.drawer .levels-block.legend.roles dl.levels > .lvrow.sel > dd{color:var(--text)}
.drawer .levels-block.legend.roles > h3.sub.eyebrow{margin-bottom:12px}

/* ---- the request banner and cards: the meta at one weight; Review a neutral secondary (the warn edge and tile carry
   the attention); on a phone a compact card: Review beside the first line, the reason on one line, then the facts ---- */

@media (max-width:700px){
  .home-view .ap-notice.ap-notice.ap-notice{display:grid;grid-template-columns:28px minmax(0,1fr) auto;column-gap:12px;row-gap:6px;align-items:start;padding:14px 14px 14px 16px}
  .home-view .ap-notice.ap-notice > .ap-n-ic{grid-column:1;grid-row:1 / span 2;width:28px;height:28px;margin:0}
  .home-view .ap-notice.ap-notice > .ap-n-t{display:contents}
  .home-view .ap-notice.ap-notice > .ap-n-t > .ap-n-l1{grid-column:2;grid-row:1;align-self:center;min-width:0;font:400 14px/22px var(--sans)}
  
  
  
  .home-view .ap-notice.ap-notice > button.ap-n-go{grid-column:3;grid-row:1;align-self:start;width:auto;margin:0;justify-content:center}
}
/* ---- the phone's Actions sheet: one 16 px edge for the title, the group heads, the rows and the rules; the group
   heads carry the names, so no subtitle; no scroll-shadow cover band behind the last row ---- */
@media (max-width:700px){
  .gk-menu .gk-sheet .pop,.gk-menu .gk-sheet .pop-scroll{background:none}
  .gk-menu .gk-sheet > .sh-h .shs{display:none}
  .gk-menu .gk-sheet > .sh-h{align-items:center;min-height:60px;padding:20px 8px 8px 16px}
  .gk-menu .gk-sheet .pop-scroll{padding:4px 0 8px}
  .gk-menu .gk-sheet .grp{padding-left:0;padding-right:0}
  .gk-menu .gk-sheet .grp > .sec{padding:12px 16px 4px}
  .gk-menu .gk-sheet .it{margin:0;padding:0 16px;border-radius:0}
  .gk-menu .gk-sheet .grp + .grp::before{left:16px;right:16px}
}
/* ---- New instance: the profile's facts a quiet filled strip (not an input group), sentence-case labels; the images'
   note under the pair it explains ---- */
.drawer form.newinst p.fhelp.specline{border:0;background:var(--surface-2)}
.drawer form.newinst p.fhelp.specline > .sp ~ .sp{border-left:1px solid var(--border-soft)}
.drawer form.newinst p.fhelp.specline > .sp{color:var(--text-2)}
.drawer form.newinst .fstack.imgs > p.fhelp.imgs-d{margin:0}
@media (max-width:700px){.drawer form.newinst .fstack.imgs > p.fhelp.imgs-d{margin-top:-10px}}
/* ---- history: every row names its actor (muted when it repeats the row above); the day line is an untinted
   eyebrow over a hairline; the kind control and Filters share one height ---- */
.history-main .hrow.optab .actor.rep > .an{display:inline}
.history-main .hrow.optab .actor.rep > .aav{opacity:1}
.history-main .hrow.optab .actor > .an{color:var(--text-2)}
.history-main .hday.hday{background:none}
.history-main button.ftoggle{height:32px;min-height:32px}
@media (max-width:700px){
  .history-main .history-actions.seg{height:40px}
  .history-main .history-actions.seg > button{height:34px;min-height:34px}
  .history-main button.ftoggle{height:40px;min-height:40px}
  .history-main .hrow.optab .hmeta .actor .an,.history-main .hrow.optab .actor > .an{color:var(--text-3)}
}
/* ---- the details panel: Edit settings a small secondary button with its pencil ---- */
.gk-details > .gk-dhrow > button.tlink.dh-edit{display:inline-flex;align-items:center;gap:6px;height:28px;min-height:28px;margin:-6px 0;padding:0 10px;border:1px solid var(--border);border-radius:8px;background:transparent;color:var(--text);font:500 13px/18px var(--sans)}
.gk-details > .gk-dhrow > button.tlink.dh-edit:hover{background:var(--hover);border-color:var(--border-strong);text-decoration:none}
.gk-details > .gk-dhrow > button.tlink.dh-edit > .ic{color:var(--text-2)}
.gk-details > .gk-dhrow{align-items:center}
/* ---- empty states and rail values use the width they have ---- */
.empty-state .es-t,.empty-state .es-t > span{max-width:none}
.ws-rail dl.props > .pr > dd{padding-right:4px;overflow-wrap:anywhere}
/* ---- the overview: the storage pool its own meter row; a phone keeps "updated" in the title row and stacks an
   empty node's by-state row like a busy one ---- */
.cluster-node.cluster-node > .nmain.nstore{margin-top:16px}
@media (max-width:700px){
  .cluster > .ihead.page{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:8px;row-gap:8px}
  .cluster > .ihead.page > .ttl{display:contents}
  .cluster > .ihead.page > .ttl > h2{grid-column:1;grid-row:1;margin:0}
  .cluster > .ihead.page > .ttl > .sub{grid-column:1 / -1;grid-row:2;margin:0}
  .cluster > .ihead.page > .hlinks{grid-column:2;grid-row:1;margin:0;padding:0}
  .cluster-node.cluster-node > .bystate.zero{grid-template-columns:minmax(0,1fr);grid-template-areas:"k" "b" "s"}
  .cluster-node.cluster-node > .bystate.zero > .sbar.sb0{display:flex}
  .cluster-node.cluster-node > .bystate.zero > .states{justify-self:start}
}
/* ---- path and hash fields read as what they will hold ---- */
input.mono::placeholder{font-family:var(--mono);font-size:.94em}
:is(p,.hint,.fhelp) code:not(.code-chip){font-weight:400;color:var(--text)}

/* ---- small parity fixes: a drawer body that scrolls fades under its footer ---- */

.overlay > .drawer > .db > :is(form,.dwrap) > .dscroll + .row.row,.overlay > .drawer > .db > .dscroll ~ .row.dfoot.dfoot{position:relative}
.overlay > .drawer > .db > :is(form,.dwrap) > .dscroll + .row.row::before,.overlay > .drawer > .db > .dscroll ~ .row.dfoot.dfoot::before{content:"";position:absolute;left:0;right:0;top:-25px;height:24px;pointer-events:none;background:linear-gradient(to bottom,transparent,var(--sheet-bg))}

/* ==== r19r end ==== */
} /* end @layer r19 */

@layer late{
/* ==== r20 ==== */
/* r20 (unlayered, after the legacy and r19 layers): the binding decisions D1–D14 of the r20 plan. One dimmed-accent
   disabled primary, radio cards for every action picker, tabs only for views, requests in the message flow, no help
   rail shorter than its column, filled neutral dots, one elevation ramp, one sub-header, one app shell. */

/* ---- tokens: dark ---- */
:root{
  --text:#eeebe5; --text-2:#c4bfb6; --text-3:#a39e95;
  --raised:#252321; --sheet-bg:var(--raised);
  --dot-neutral:#8f8a80;
  --scrim:rgba(0,0,0,.66); --scrim-sheet:rgba(0,0,0,.66);
  --top-hl:inset 0 1px 0 rgba(255,255,255,.04);
}
:root[data-theme="light"]{
  --text:#1d1a16; --text-2:#47423a; --text-3:#625b50;
  --raised:#fffefb; --sheet-bg:var(--raised);
  --dot-neutral:#a1988a;
  --scrim:rgba(28,22,14,.48); --scrim-sheet:rgba(28,22,14,.48);
  --top-hl:0 0 0 0 transparent;
}
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]){
  --text:#1d1a16; --text-2:#47423a; --text-3:#625b50;
  --raised:#fffefb; --sheet-bg:var(--raised);
  --dot-neutral:#a1988a;
  --scrim:rgba(28,22,14,.48); --scrim-sheet:rgba(28,22,14,.48);
  --top-hl:0 0 0 0 transparent;
}}

/* the reason beside (desktop) or under (phone) its commit: one sentence, no icon */
footer.cf > p.why{font:400 13.5px/20px var(--sans);color:var(--text-2)}
footer.cf > p.why > .ic{display:none}

/* ---- §1.4 D2: one action picker, radio cards at every width ---- */

/* the footer under the cards: the chosen verb's sentence at the left, the commit at the right */
footer.cf > p.cf-note{font:400 13.5px/20px var(--sans);color:var(--text-2)}

/* ---- §1.4 D3: History's Operations | Events are underline tabs ---- */
.history-main .history-actions.htabs{display:flex;align-items:stretch;gap:4px;height:40px;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none}
.history-main .history-actions.htabs > button{position:relative;display:inline-flex;align-items:center;gap:0;height:40px;min-height:40px;margin:0;padding:0 10px;border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--text-2);font:500 14px/20px var(--sans);text-transform:capitalize}
.history-main .history-actions.htabs > button:hover{color:var(--text);background:transparent}
.history-main .history-actions.htabs > button.on{color:var(--text);font-weight:600}
.history-main .history-actions.htabs > button.on::after{content:"";position:absolute;left:10px;right:10px;bottom:-1px;height:2px;border-radius:2px 2px 0 0;background:var(--accent)}
.history-main .history-actions.htabs > button > .count{display:inline-flex;align-items:center;justify-content:center;font-variant-numeric:tabular-nums}
.history-main .history-actions.htabs > button:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}

/* ---- §1.2 D4: a waiting request follows the last message (sticky at the foot of a long thread) ---- */
.gk-chat .gk-scroll > .gk-dock,.chat > .transcript > .appr-dock,.chat > .transcript > .appr-dock.appr-dock{margin-top:0}

/* ---- §1.6 D6: dots are filled; neutral is a mid grey ---- */
.dot,.dot:not(.ok,.bad,.amber,.blink,.warn,.info,.live),.dot.hollow{background:var(--dot-neutral);box-shadow:none}
.dot.ok,.dot.live{background:var(--ok)}.dot.bad{background:var(--bad)}.dot.warn{background:var(--warn-dot)}.dot.info{background:var(--info)}.dot.amber,.dot.blink{background:var(--accent)}
.tag.neutral::before{background:var(--dot-neutral);box-shadow:none}

/* ---- §1.5 the phone's tab strips: one 40 px row, evenly spread to 16 px from each edge, an underline only ---- */
@media (max-width:700px){
  .ihx .subnav,.ihead .subnav{justify-content:flex-start;gap:4px;height:40px;min-height:40px;padding:0 6px;overflow-x:auto;scrollbar-width:none;scroll-snap-type:x proximity;-webkit-mask-image:none;mask-image:none}
  .ihx .subnav > .stab,.ihead .subnav > .stab{flex:0 0 auto;height:40px;min-height:40px;margin:0;padding:0 10px;font-size:14px;scroll-snap-align:start}
  .ihx .subnav.ovf,.ihead .subnav.ovf{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 24px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 24px),transparent)}
  header.top .hnav > .tab.on,header.top .hnav > .tab.on:hover{background:transparent}
  .ihx .subnav:has(> .stab:nth-child(5)),.ihead .subnav:has(> .stab:nth-child(5)){justify-content:space-between;gap:0}
}

/* ---- §1.3 Rule A: the facts strip replaces the help rail (images, checkpoints, terminal) ---- */
.imgcol,.ckcol{display:flex;flex-direction:column;gap:32px;margin:0}
:is(.imgcol,.ckcol,.terminal-page .tidle) > .sec{margin:0}
/* ---- §3 one notice (info, warn, bad): a 20 px icon, a bold lead-in, a soft fill and a 30 % semantic edge ---- */
.notice{display:flex;align-items:flex-start;gap:12px;margin:0;padding:12px 14px;border:1px solid var(--info-border);border-radius:10px;background:var(--info-soft);color:var(--text);font:400 14px/20px var(--sans)}
.notice.warn{border-color:color-mix(in srgb,var(--warn) 30%,transparent);background:color-mix(in srgb,var(--warn) 8%,var(--surface-1))}
.notice.bad{border-color:color-mix(in srgb,var(--bad) 30%,transparent);background:var(--bad-soft)}
.notice > .ic{flex:none;width:20px;height:20px;margin:0;color:var(--info)}
.notice.warn > .ic{color:var(--warn)}
:root[data-theme="light"] .notice.warn > .ic{color:var(--warn-ink)}
.notice.bad > .ic{color:var(--bad)}
.notice b{display:inline;margin:0;font:600 14px/20px var(--sans);color:var(--text)}

/* ---- §1.3 Rule D: one empty state; dashed when it stands in for a list ---- */
.empty-state.dashed,.card.is-empty > .empty-state.dashed{display:flex;align-items:center;gap:14px;margin:0}

.empty-state.dashed > .es-ic,.empty-state.flat > .es-ic{flex:none;display:inline-grid;place-items:center;margin:0}
.empty-state.dashed > .es-t{display:flex;flex-direction:column;gap:2px}

/* ---- images: two columns of fields; the footer on the fields' edge ---- */
.images-view .register .fgrid.imfields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 24px}
.images-view .register .fgrid.imfields > .fld{margin:0}
@media (max-width:700px){.images-view .register .fgrid.imfields{grid-template-columns:minmax(0,1fr);gap:18px}}

.empty-state.dashed > .es-t,.empty-state.dashed > .es-t > span{display:flex;flex-direction:column;align-items:flex-start;max-width:none;margin:0}
.empty-state.dashed > .es-t > span{display:block}
.images-view .card.imgs.is-empty,.images-view .card.imgs.is-empty > .empty-state{max-width:none;width:auto}
/* a form under its radio cards: 20 px apart; the fields use the card's width */

:is(.instance-admin,.checkpoint-view,.bot-admin-view) .card > .fgrid,:is(.instance-admin,.checkpoint-view,.bot-admin-view) .card > form > .fgrid{max-width:none}

/* ---- meters: a status split keeps its semantic colours ---- */

/* ---- §1.7 unit suffixes: muted text inside the field's right edge, no boxed add-on ---- */
.fld.unitf{position:relative}
.fld.unitf > .unit,.node-view .nactions .fgrid.nact .fld.unitf > .unit{position:absolute;right:12px;top:var(--unit-top,26px);bottom:auto;display:flex;align-items:center;height:var(--h-input,36px);margin:0;padding:0;border:0;background:none;font:400 13.5px/20px var(--sans);color:var(--text-3);pointer-events:none;transform:none}
.fld.unitf > label.f > input,.node-view .nactions .fgrid.nact .fld.unitf input{padding-right:48px}

/* ---- node admin: two fields per row, More options as a row under them; the host's groups as eyebrows ---- */
.node-view .nactions .fgrid.nact > .disc.nmore{grid-column:1 / -1;margin:0;border-top:1px solid var(--border-soft)}
.node-view .hostcard > h3.eyebrow{margin:20px 0 6px}
.node-view .hostcard > h3.eyebrow:first-child{margin-top:0}
.node-view .hostcard > .hc-pools{margin-top:20px;padding-top:16px;border-top:1px solid var(--border-soft)}

@media (max-width:700px){
  .node-view .nactions .fgrid.nact{grid-template-columns:minmax(0,1fr);gap:18px}
}

/* ---- checkpoints: one list row each (a layers tile, the label over one meta line, files, ⋯) ---- */
.card.inventory:has(> .ckpt){padding:0;overflow:visible}
.ckpt > .ckr{display:grid;grid-template-columns:32px minmax(0,1fr) auto auto;grid-template-areas:none;align-items:center;column-gap:12px;min-height:64px;margin:0;padding:12px 12px 12px 20px;border:0}
.ckpt + .ckpt{border-top:1px solid var(--border-soft)}
.ckpt > .ckr > .ck-ic{grid-area:auto;grid-row:1;grid-column:1;display:inline-grid;place-items:center;width:32px;height:32px;border-radius:8px;background:var(--surface-2);color:var(--text-2)}
.ckpt > .ckr > .ck-l{grid-area:auto;grid-row:1;grid-column:2;display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0}
.ckpt > .ckr > .ck-l > h3.sec{margin:0;padding:0;border:0;font:600 14px/20px var(--sans);letter-spacing:0;text-transform:none;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.ckpt > .ckr > .ck-l > .ck-meta{display:flex;flex-wrap:wrap;align-items:center;column-gap:0;row-gap:2px;font:400 13px/18px var(--sans);color:var(--text-3)}
.ckpt > .ckr > .ck-l > .ck-meta > *{flex:none;display:inline-flex;align-items:center;gap:4px;font:inherit;color:inherit}
.ckpt > .ckr > .ck-l > .ck-meta > :first-child::before,.ckpt > .ckr > .ck-l > .ck-meta > .chip::before{content:none;display:none}
.ckpt > .ckr > .ck-l > .ck-meta > * + *::before{content:"·";margin:0 6px;color:var(--text-3)}
.ckpt > .ckr > .ck-l > .ck-meta > .chip{height:auto;min-height:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;color:var(--text-2);font-weight:500}
.ckpt > .ckr > .ck-l > .ck-meta .ts{font:inherit;color:inherit}
.ckpt > .ckr > .ck-l > .ck-meta > .ret.keep{color:var(--text-2)}
.ckpt > .ckr > .ck-l > .ck-meta > .ret > .lt::first-letter{text-transform:uppercase}
.ckpt > .ckr > .ck-s{grid-area:auto;grid-row:1;grid-column:3;display:flex;align-items:center;margin:0}
.ckpt > .ckr > .ck-s > button.manifest-t{display:inline-flex;align-items:center;gap:4px;height:32px;min-height:32px;padding:0 8px;border:0;border-radius:8px;background:transparent;box-shadow:none;color:var(--text-2);font:500 13.5px/20px var(--sans);text-decoration:none}
.ckpt > .ckr > .ck-s > button.manifest-t:hover{background:var(--hover);color:var(--text)}
.ckpt > .ckr > .ck-s > button.manifest-t > .ic{color:var(--text-3)}
.ckpt.open > .ckr > .ck-s > button.manifest-t > .ic{transform:rotate(180deg)}
.ckpt > .ckr > .ck-m{grid-area:auto;grid-row:1;grid-column:4;display:flex;align-items:center}
.ckpt > .ckr > .ck-m .menu > button.ib.more,.ckpt .ck-m .menu > button{width:32px;height:32px;min-width:32px;min-height:32px;padding:0;border:0;border-radius:8px;background:transparent;color:var(--text-2)}
.ckpt > .ckr > .ck-m .menu > button.ib.more:hover,.ckpt .ck-m .menu > button:hover{background:var(--hover);color:var(--text)}
.ckpt > .manifest,.ckpt > .ckbot{margin:0 20px 0 64px}
.ckpt > .manifest{padding:0 0 16px}
@media (max-width:700px){
  .ckpt > .ckr{grid-template-columns:32px minmax(0,1fr) auto;column-gap:12px;padding:12px 4px 12px 16px}
  .ckpt > .ckr > .ck-ic{grid-row:1 / span 2;align-self:start;margin-top:2px}
  .ckpt > .ckr > .ck-s{grid-column:2;grid-row:2;margin-top:2px}
  .ckpt > .ckr > .ck-s > button.manifest-t{height:28px;min-height:28px;margin-left:-8px}
  .ckpt > .ckr > .ck-m{grid-column:3;grid-row:1 / span 2}
  .ckpt > .ckr > .ck-m .menu > button.ib.more,.ckpt .ck-m .menu > button{width:44px;height:44px;min-width:44px;min-height:44px}
  .ckpt > .manifest,.ckpt > .ckbot{margin:0 16px 0 60px}
}

/* ---- checkpoints, bot admin: the Pin switch on the fields' edge; Label and Pin share a row (bot admin) ---- */

/* ---- bot admin: the retained conversation a plain disclosure row over a hairline ---- */
@media (min-width:701px){.bot-admin-view .card.o-ov > .convo-row{margin:16px -20px -20px;padding:0 20px;border-top:1px solid var(--border-soft)}}
.bot-admin-view .card.o-ov > .convo-row > button.convo-t{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:60px;margin:0;padding:12px 0;border:0;background:none;box-shadow:none;text-align:left}
.bot-admin-view .card.o-ov > .convo-row > button.convo-t .d-t{display:flex;flex-direction:column;gap:2px}
.bot-admin-view .card.o-ov > .convo-row > button.convo-t .d-t > b{font:500 14px/20px var(--sans);color:var(--text)}
.bot-admin-view .card.o-ov > .convo-row > button.convo-t .d-t > .d-s{font:400 13px/18px var(--sans);color:var(--text-2)}
.bot-admin-view .card.o-ov > .convo-row > button.convo-t > .d-ch{flex:none;color:var(--text-3)}

/* ---- §1.3 Rule C: section rhythm 32 px, the danger zone included; its button soft-filled red ---- */
.ws-wide{margin-top:32px}
.instance-admin > .ws-wide{gap:32px;margin-top:32px}

/* ---- tool rows on a phone: the button compact, under the text on its edge (not a full-width slab) ---- */

/* ---- home: the request banner without a stripe (the warn tint in its tile); one chip indicator; slots after the
   chips; the empty memory track plain; Open a secondary button ---- */
.home-view .ipanel .ip-bots{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.home-view .ipanel .ip-bots > .ip-slots{display:inline-flex;align-items:center;margin:0 0 0 4px;font:400 13px/18px var(--sans);color:var(--text-3);font-variant-numeric:tabular-nums}
.home-view .ipanel .chip.bot{height:28px;min-height:28px}
.home-view .ipanel .chip.bot.needs{background:var(--warn-soft);box-shadow:none;color:var(--text)}
.home-view .ipanel .chip.bot.needs > .dot{background:var(--warn-dot)}

@media (max-width:700px){
  
  .statstrip-c.kpis.homecap{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
  .statstrip-c.kpis.homecap > .sc.pool{display:none}
  .statstrip-c.kpis.homecap > .sc.sc{min-height:64px;padding:12px}
  .statstrip-c.kpis.homecap > .sc.sc > .meter{display:none}
  .statstrip-c.kpis.homecap > .sc.sc > .sv{font-size:18px;line-height:24px}
  .statstrip-c.kpis.homecap > .sc.sc > .sv{display:flex;flex-direction:column;align-items:flex-start}
  .statstrip-c.kpis.homecap > .sc.sc > .sv > .of{display:block;margin:2px 0 0;font:400 13px/18px var(--sans);color:var(--text-3)}
  .statstrip-c.kpis.homecap > .sc.sc > .sh{display:none}
  .statstrip-c.kpis.homecap > .sc.sc + .sc{border-left:1px solid var(--border-soft);border-top:0}
  .statstrip-c.kpis.homecap > .sc.sc > .sk{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}

/* ---- history: tabs and Filters on one row over one hairline; the kind in a tinted 24 px tile ---- */
.history-main .ch.hh{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 16px;padding:0;border-bottom:1px solid var(--border-soft)}
.history-main .ch.hh button.ftoggle{margin-bottom:4px}
.history-main .hrow.optab .hr-t{font:400 13px/18px var(--sans);color:var(--text-2);font-variant-numeric:tabular-nums}

.statstrip-c .sc > .sk > .sk-m{display:none}
@media (max-width:700px){.statstrip-c .sc > .sk:has(> .sk-m) > .sk-d{display:none}.statstrip-c .sc > .sk > .sk-m{display:inline}}

/* ---- access: Username, the role as radio cards, then Share inline with its reason; the people under it ---- */
.drawer .access-view form.share{display:flex;flex-direction:column;gap:16px;margin:0}
.drawer .access-view form.share > h3.sub.eyebrow{margin:0}
.drawer .access-view form.share > label.f.su{margin:0}

.drawer .access-view form.share > .share-foot{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:4px 0 0}
.drawer .access-view form.share > .share-foot > p.why{margin:0;font:400 13.5px/20px var(--sans);color:var(--text-2)}
.drawer .access-view form.share > .share-foot > button.go{flex:none;min-width:104px;height:36px;min-height:36px;justify-content:center}
.drawer .access-view form.share + h3.sub.eyebrow{margin-top:28px}
@media (max-width:700px){
  .drawer .access-view form.share > .share-foot{flex-direction:column-reverse;align-items:stretch;gap:8px}
  .drawer .access-view form.share > .share-foot > p.why{justify-content:center;text-align:center;font-size:13px}
  .drawer .access-view form.share > .share-foot > button.go{width:100%;height:44px;min-height:44px}
  
}

/* ---- overview: Needs attention leads (one flat row when nothing does); the summary without meters ---- */
.cluster > .attn-ok-row{display:flex;align-items:center;gap:10px;min-height:48px;margin:0 0 20px;padding:0 16px;border:1px solid var(--border);border-radius:12px;background:var(--surface-1);box-shadow:var(--top-hl);font:400 14px/20px var(--sans);color:var(--text-2)}
.cluster > .attn-ok-row > .es-ic{flex:none;display:inline-grid;place-items:center}
.cluster > .attn-ok-row > b{font:600 14px/20px var(--sans);color:var(--text)}
.cluster > .attn-ok-row > .ao-s{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cluster > .attn-ok-row > .ao-s::before{content:"·";margin-right:8px;color:var(--text-3)}
.cluster > .attn-sec{margin:0 0 28px}
.statstrip-c.kpis.clsum > .sc > .meter{display:none}
.cluster-node > .bystate.zero > .sbar.sb0{display:none}
@media (max-width:700px){
  .cluster > .attn-ok-row{align-items:flex-start;flex-wrap:wrap;padding:12px 16px;row-gap:2px}
  .cluster > .attn-ok-row > .ao-s{flex-basis:100%;padding-left:34px;white-space:normal;font-size:13.5px}
  .cluster > .attn-ok-row > .ao-s::before{content:none}
}

/* ---- §1.5 D12 one app shell: a 52 px bar on a desktop, 48 + a 40 px tab row on a phone, node pages included;
   the page title 32 px under the bar (desktop) ---- */
@media (min-width:901px){
  :root{--header-h:52px}
  header.top.node .hnav{align-self:stretch}
  header.top.node .hnav > .tab{height:52px;min-height:52px}
  :is(.home-view,.node-view,.images-view,.history-view,section.cluster){padding-top:9px}
}
@media (max-width:700px){:is(.node-view,.images-view,.history-view){padding-top:4px}}
@media (max-width:900px){
  :root:has(header.top.node){--header-h:89px}
  :root:has(header.top.node.scoped){--header-h:49px}
  header.top .brand{height:48px}
  header.top .hnav{height:40px}
  header.top .hnav .tab{height:40px;min-height:40px}
}
@media (max-width:700px){
  .ihx .ih-row{min-height:48px}
  .ihx .ih-row > :not(nav.subnav){max-height:48px}
}

.history-main .hrow.optab .htgt button.link,.history-main .hrow.optab .htgt button.link.elink{color:var(--text);font-weight:400;text-decoration:none}
.history-main .hrow.optab .htgt button.link:hover{text-decoration:underline;text-underline-offset:3px}
.history-main .hrow.optab .htgt .hsep{color:var(--text-3)}
.history-main .hend{margin:0;padding:16px;border:0;font:400 13px/18px var(--sans);color:var(--text-3);text-align:center}
.history-main .hrow.optab .htgt .hbt button.link,.history-main .hrow.optab .htgt .hbt .nm{color:var(--text-2)}

.instance-admin > .ws{margin-bottom:0}
.instance-admin > .ws-wide{margin-top:32px}
.instance-admin > .ws-wide > .sec{margin:0}
.images-view .imgcol > .sec,.images-view .imgcol > .sec > .sec-b,.images-view .imgcol .card.imgs,.images-view .imgcol .card.imgs > .empty-state{width:auto;max-width:none}
.images-view .imgcol .card.imgs.is-empty{display:block}

/* ---- §1.1 a phone: the commit full width, its reason centred under it as its caption ---- */
@media (max-width:700px){
  footer.cf{display:flex;flex-direction:column;align-items:stretch}
  footer.cf > p.cf-note,footer.cf > label.f.confirm{order:1}
  footer.cf > :is(button,.btn){order:2}
  footer.cf > p.why{order:3;justify-content:center;margin:0;text-align:center;font-size:13px;line-height:18px}
  footer.cf > p.why:empty{display:none}
}
/* ==== r20 end ==== */

/* ==== r20r ==== */
/* r20r (unlayered, after r20): a disabled commit is the primary at half strength; a choice is selected in neutral ink
   (amber stays for actions, focus and live state); usage meters neutral until they need attention; one column of
   compact choice rows on a phone; meta lines that wrap without orphaned separators; a mono face with a two-storey a. */
:root{
  --mono:ui-monospace,"SF Mono",SFMono-Regular,Menlo,"Cascadia Mono","Segoe UI Mono",Consolas,"Liberation Mono","Space Mono",monospace;
  --scrim:rgba(0,0,0,.62); --scrim-sheet:rgba(0,0,0,.62);
}
:root[data-theme="light"]{
  --scrim:rgba(28,22,14,.34); --scrim-sheet:rgba(28,22,14,.34);
}
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]){
  --scrim:rgba(28,22,14,.34); --scrim-sheet:rgba(28,22,14,.34);
}}
/* the scrim is there from the first frame (a fading scrim reads as no scrim) */
.overlay{animation:none;background:var(--scrim)}

/* ---- meta lines: items that wrap whole; the separator belongs to the item after it and is clipped at a line start ---- */
.ckpt > .ckr > .ck-l > .ck-meta{column-gap:13px;overflow:hidden}
.ckpt > .ckr > .ck-l > .ck-meta > *{position:relative;overflow:visible}
.ckpt > .ckr > .ck-l > .ck-meta > * + *::before{content:"·";position:absolute;left:-9px;margin:0;color:var(--text-3)}
/* ⋯ on the title's line */
.ckpt > .ckr > .ck-m{align-self:start}
@media (max-width:700px){.ckpt > .ckr > .ck-m{align-self:start;margin-top:-6px}}
@media (min-width:701px){.ckpt > .ckr > .ck-m,.ckpt > .ckr > .ck-s{align-self:center}}

/* ---- the classic instance view fills the window under its own bar ---- */
@media (min-width:901px){.app-page.scoped:has(> .iview){height:100vh;height:100dvh}}

/* ---- the phone's instance tabs: start-aligned with even gaps, the strip ending short of the edge ---- */
@media (max-width:700px){
  .ihx .subnav:has(> .stab:nth-child(5)),.ihead .subnav:has(> .stab:nth-child(5)){justify-content:flex-start;gap:0}
}

/* ---- a phone: drawers are full-height sheets (no peek of the dimmed bar), their footer's reason above the commit;
   Cancel a quiet text button beside the wider Create ---- */
@media (max-width:700px){
  .overlay > .drawer{top:0;bottom:0;height:100vh;height:100dvh;max-height:none;border:0;border-radius:0}
  :root .overlay > .drawer::before{content:none;display:none}
  .overlay > .drawer > .db{flex:1 1 auto;display:flex;flex-direction:column;min-height:0}
  .overlay > .drawer > .db > :is(form,.dwrap){flex:1 1 auto;display:flex;flex-direction:column;min-height:0}
  .overlay > .drawer > .db > .dscroll,.overlay > .drawer > .db > :is(form,.dwrap) > .dscroll{flex:1 1 auto}
  footer.cf > p.why{order:1;justify-content:flex-start;text-align:left}
  footer.cf > :is(button,.btn){order:2}
  .drawer .access-view form.share > .share-foot{flex-direction:column}
  .drawer .access-view form.share > .share-foot > p.why{justify-content:flex-start;text-align:left}
}
/* ---- instance admin, egress and memory: how a change applies, as the card's footer line; the grant stacks on a phone ---- */
.policy-bare form > p.pol-idle{margin:20px -20px -20px;padding:14px 20px;border-top:1px solid var(--border-soft);font:400 13.5px/20px var(--sans);color:var(--text-2)}
@media (max-width:700px){
  .policy-bare form > p.pol-idle{margin:16px -16px -16px;padding:12px 16px}
  
  
}

/* ---- home: a waiting bot's chip stays neutral; the warn dot alone says it needs you ---- */
.home-view .ipanel .chip.bot.needs,.home-view .ipanel .ip-bots .chip.bot.needs{background:var(--surface-2);box-shadow:none;color:var(--text)}
/* ---- menus: Stop names a consequence, not a danger: neutral words, a warn icon ---- */
.gk-menu .it.stopi{color:var(--text)}
.gk-menu .it.stopi > .ic{color:var(--warn-ink)}
/* ---- form rhythm: the grid's gap is the only space between fields (no helper margins on top of it) ---- */
:is(.images-view,.checkpoint-view,.bot-admin-view,.node-view,.instance-admin) .fgrid > .fld > p.fhelp,:is(.images-view,.checkpoint-view,.bot-admin-view,.node-view,.instance-admin) .fgrid > .fld{margin-bottom:0}
:is(.images-view,.checkpoint-view,.bot-admin-view) .fgrid > label.f{margin-bottom:0}
.images-view .register .fgrid.imfields{row-gap:20px}
@media (max-width:700px){.images-view .register .fgrid.imfields{row-gap:20px}}
/* bot admin: Label, then Pin under it (as on Checkpoints) */
/* bot admin: Label and Pin side by side, their titles on one line (a phone stacks them) */
/* an empty state's icon sits with its title when the text wraps */
.empty-state.dashed,.card.is-empty > .empty-state.dashed{align-items:flex-start}
.empty-state.dashed > .es-ic{margin-top:2px}
@media (min-width:701px){.empty-state.dashed,.card.is-empty > .empty-state.dashed{align-items:center}.empty-state.dashed > .es-ic{margin-top:0}}
/* disclosure rows: one title weight */
.bot-admin-view .card.o-ov > .convo-row > button.convo-t .d-t > b{font-weight:600}
/* ---- history: the tabs drive the table, so it sits close under them; one neutral kind tile (red only for a
   failure); a phone row's second line on its title's edge ---- */
.history-main .ch.hh{margin-bottom:0}
/* ---- overview: the refresh beside its time; the node switch a quiet button at every width ---- */
.cluster .upd-w .stchip{gap:4px}
/* ---- home on a phone: a figure and its scale as one block, 2 px apart ---- */
@media (max-width:700px){
  .statstrip-c.kpis.homecap > .sc.sc > .sv{line-height:22px}
  .statstrip-c.kpis.homecap > .sc.sc > .sv > .of{margin-top:0}
}
/* ---- access: a role is a filled neutral pill (no outline); the empty list says what will appear ---- */
.drawer .access-view .person > .prole,.access-view .person > .prole{display:inline-flex;align-items:center;height:22px;margin-right:2px;padding:0 9px;border:0;border-radius:999px;background:color-mix(in srgb,var(--text) 8%,transparent);box-shadow:none;font:500 12.5px/18px var(--sans);color:var(--text-2)}
.access-view p.nobody{margin:4px 0 0;font:400 13.5px/20px var(--sans);color:var(--text-2)}
:root .gk-menu .it.stopi,:root .gk-menu .gk-sheet .it.stopi{color:var(--text)}
:root .gk-menu .it.stopi > .ic{color:var(--warn-ink)}
/* ---- one section rhythm on every admin page: 28 px between a card and the next section's heading ---- */
.ws > :is(.ws-main,.ws-rail){display:flex;flex-direction:column;gap:28px}
.ws > :is(.ws-main,.ws-rail) > .sec{margin:0}
.imgcol,.ckcol{gap:28px}
.checkpoint-view > .sec.ck-list{margin-bottom:0}
.checkpoint-view > .ckcol{margin-top:4px}
.instance-admin > .ws-wide,.instance-admin > .ws-wide.ws-wide{margin-top:4px}
.instance-admin > .ws-wide > .sec,.instance-admin > .ws-wide > .sec.dz-sec{margin:0}
@media (max-width:700px){.ws > :is(.ws-main,.ws-rail){gap:24px}.imgcol,.ckcol{gap:24px}.checkpoint-view > .ckcol{margin-top:4px}}
/* ---- one inline-code chip: the name to type in a confirm label looks like every other code chip ---- */
label.f.confirm > .cf-l > code.idchip{display:inline-flex;align-items:center;height:22px;margin:0 2px;padding:0 6px;border:1px solid var(--border-soft);border-radius:6px;background:var(--code-bg);font:400 12.5px/20px var(--mono);color:var(--text)}
/* the terminal's page head: the page's gap spaces it */
.terminal-page > .pg-head{margin-bottom:0}
/* ==== r20r end ==== */

/* ==== r21 ==== */
/* r21 (unlayered, last): a neutral filled slab for every disabled commit; accent selection drawn inside the edge with
   real radios; amber meters on a visible track; one step stronger meta text and lines; one component per job. */

/* ---- tokens ---- */
:root{
  --bg:#0f0f0e; --surface-1:#201f1c; --surface-2:#282623; --surface-3:#312f2b; --raised:#2b2926; --sheet-bg:var(--raised);
  --border:#3a3833; --border-soft:#2f2d29; --border-strong:#57534c; --menu-edge:#4a463f;
  --text-2:#c9c4bb; --text-3:#aaa49a;
  --go-off-bg:#34322e; --go-off-border:transparent; --go-off-fg:#aea89d;
  --sel-edge:#e0a23c; --sel-fill:#2e2618; --sel-wash:#2e2618;
  --meter-fill:#d99a35; --meter:#d99a35; --meter-track:#35322d; --track:#35322d;
  --count-bg:var(--surface-3);
  --toast-bg:#2b2926; --toast-border:#4a463f; --toast-fg:var(--text); --toast-fg2:var(--text-2);
  --toast-shadow:0 2px 6px rgba(0,0,0,.4),0 20px 50px rgba(0,0,0,.6);
  --scrim:rgba(0,0,0,.66); --scrim-sheet:rgba(0,0,0,.66);
  --top-hl:inset 0 1px 0 rgba(255,255,255,.04);
  --switch-off:#312f2b; --switch-off-edge:#57534c; --switch-knob-off:#d9d4cb;
}
:root[data-theme="light"]{
  --bg:#f2efe9; --surface-1:#fffefb; --surface-2:#f6f3ee; --surface-3:#ebe6dd; --raised:#fffefb; --sheet-bg:var(--raised);
  --border:#ddd5c8; --border-soft:#ebe5da; --border-strong:#c4baa9; --menu-edge:#ddd5c8;
  --text-3:#5d564b;
  --go-off-bg:#e7e3dc; --go-off-border:transparent; --go-off-fg:#5f584d;
  --sel-edge:#c27c0e; --sel-fill:#fdf5e6; --sel-wash:#fdf5e6;
  --meter-fill:#b97a14; --meter:#b97a14; --meter-track:#e4ddd1; --track:#e4ddd1;
  --count-bg:var(--surface-3);
  --toast-bg:#fffefb; --toast-border:#ddd5c8; --toast-fg:var(--text); --toast-fg2:var(--text-2);
  --toast-shadow:0 12px 32px rgba(28,22,14,.16),0 2px 6px rgba(28,22,14,.06);
  --scrim:rgba(28,22,14,.42); --scrim-sheet:rgba(28,22,14,.42);
  --switch-off:#ebe6dd; --switch-off-edge:#c4baa9; --switch-knob-off:#ffffff;
}
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]){
  --bg:#f2efe9; --surface-1:#fffefb; --surface-2:#f6f3ee; --surface-3:#ebe6dd; --raised:#fffefb; --sheet-bg:var(--raised);
  --border:#ddd5c8; --border-soft:#ebe5da; --border-strong:#c4baa9; --menu-edge:#ddd5c8;
  --text-3:#5d564b;
  --go-off-bg:#e7e3dc; --go-off-border:transparent; --go-off-fg:#5f584d;
  --sel-edge:#c27c0e; --sel-fill:#fdf5e6; --sel-wash:#fdf5e6;
  --meter-fill:#b97a14; --meter:#b97a14; --meter-track:#e4ddd1; --track:#e4ddd1;
  --count-bg:var(--surface-3);
  --toast-bg:#fffefb; --toast-border:#ddd5c8; --toast-fg:var(--text); --toast-fg2:var(--text-2);
  --toast-shadow:0 12px 32px rgba(28,22,14,.16),0 2px 6px rgba(28,22,14,.06);
  --scrim:rgba(28,22,14,.42); --scrim-sheet:rgba(28,22,14,.42);
  --switch-off:#ebe6dd; --switch-off-edge:#c4baa9; --switch-knob-off:#ffffff;
}}

/* ---- §1.3 meters: a 6 px track, the accent fill; committed and in use as one two-tone bar ---- */
.meter{position:relative;display:block;overflow:hidden}
.meter > i{position:absolute;top:0;bottom:0;left:0;display:block}

/* ---- overview: one grid for every node row (label | bar | value); Open a secondary button ---- */
.cluster-node > .nrows{display:flex;flex-direction:column;gap:16px;margin:20px 0 24px}
.cluster-node .nrow{display:grid;grid-template-columns:140px minmax(0,1fr) 200px;align-items:center;column-gap:16px;min-height:20px}
.cluster-node .nrow > .uk{font:400 14px/20px var(--sans);color:var(--text-2)}
.cluster-node .nrow > .uv{display:flex;justify-content:flex-end;align-items:baseline;flex-wrap:nowrap;gap:0;min-width:0;font:400 13.5px/20px var(--sans);color:var(--text-2);text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.cluster-node .nrow > .uv > b{margin-right:4px;font-weight:600;color:var(--text)}
.cluster-node .nrow > .uv > .sep{margin:0 6px;color:var(--text-3)}
.cluster-node .nrow > .uv.states{gap:0}
.cluster-node .nrow > .uv.states > .sct{display:inline-flex;align-items:center;gap:5px;color:var(--text-2)}
.cluster-node .nrow > .uv.states > .sct > b{font-weight:600;color:var(--text)}
.cluster-node .nrow > .uv.states > .sct > .dot{width:7px;height:7px}
.cluster-node .nrow > .uv.states > .sct + .sct{margin-left:6px}
.cluster-node .nrow > .uv.states > .sct + .sct::before{content:"·";margin:0 2px 0 0;color:var(--text-3)}
.cluster-node .nrow > .uv.states > .sct > span[class^="st-"]{text-transform:lowercase}
.cluster-node .nrow > .uv.none{color:var(--text-2)}
.cluster-node .sct:has(> .st-SUSPENDED) > .dot{background:var(--info)}
.cluster-node .counts a.cardlink{display:inline-flex;align-items:center;gap:4px;height:32px;min-height:32px;padding:0 8px 0 12px;border:1px solid var(--border);border-radius:8px;background:transparent;box-shadow:none;color:var(--text);font:600 14px/20px var(--sans);text-decoration:none}
.cluster-node .counts a.cardlink:hover{border-color:var(--border-strong);background:var(--hover)}
.cluster-node .counts a.cardlink > .ic{color:var(--text-2)}
@media (max-width:700px){
  .cluster-node > .nrows{gap:14px}
  .cluster-node .nrow{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"k v" "m m";row-gap:8px;column-gap:12px}
  .cluster-node .nrow > .uk{grid-area:k}.cluster-node .nrow > .uv{grid-area:v}.cluster-node .nrow > .meter{grid-area:m}
  .cluster-node .counts a.cardlink{height:40px;min-height:40px}
}

/* ---- §1.5 danger buttons: an outline, red text, a soft red fill on hover ---- */
:root{--danger-ink:#f28b82}
:root[data-theme="light"]{--danger-ink:#b42318}
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]){--danger-ink:#b42318}}
section.dzrow button.danger:not(:disabled),.dz-sec button.danger:not(:disabled){height:32px;min-height:32px;padding:0 12px;border-radius:8px;font:600 14px/20px var(--sans)}

section.dzrow button.danger > .ic{color:inherit}
@media (max-width:700px){section.dzrow button.danger:not(:disabled),.dz-sec button.danger:not(:disabled){height:40px;min-height:40px}}

/* ---- §1.5 the Pin switch: a field (its label above, the control on the inputs' line) on a desktop grid; a settings
   row (words left, switch right) on a phone ---- */

/* ---- §1.8 how it works: a quiet disclosure row (an info icon, a hairline above, no box) ---- */

/* ---- §1.5 one empty state: a solid soft card, a 32 px tile, a title and a sentence ---- */
.empty-state.solid{display:flex;flex-direction:column;gap:20px;margin:0}
.empty-state.solid > .es-h{display:flex;align-items:center;gap:12px}
.empty-state.solid > .es-h > .es-ic,.empty-state.flat > .es-ic{flex:none;display:inline-grid;place-items:center;margin:0}

.empty-state.solid > .es-h > .es-t{display:flex;flex-direction:column;align-items:flex-start;gap:2px;max-width:none;margin:0}

.images-view .card.imgs.is-empty{padding:0;border:0;background:none;box-shadow:none}
@media (max-width:700px){.empty-state.solid{gap:16px}}

/* ---- images: Host path | SHA-256, then Image kind | Label ---- */
.images-view .register .fgrid.imfields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 24px;align-items:start}
.images-view .register .fgrid.imfields > .fld > label.f{margin-bottom:0}
@media (max-width:700px){.images-view .register .fgrid.imfields{grid-template-columns:minmax(0,1fr);gap:20px}}
@media (max-width:700px){footer.cf{padding-left:16px;padding-right:16px}}
input.mono::placeholder,textarea.mono::placeholder{font-family:var(--sans)}

/* ---- checkpoints: Kind | Label | Pin on one row; the row's trailing cluster ---- */
@media (min-width:701px){
  .checkpoint-view .ckform .fgrid.ck3{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr);gap:20px 24px;align-items:start}
  .checkpoint-view .ckform .fgrid.ck3 > *{grid-column:auto;margin:0}
}
.ckpt > .ckr > .ck-s,.ckpt > .ckr > .ck-m{align-self:center}
.ckpt > .ckr > .ck-s > button.manifest-t{height:32px;min-height:32px;padding:0 8px;color:var(--text-2)}
.ckpt > .ckr > .ck-s > button.manifest-t > .ic{color:var(--text-2)}
.ckpt > .ckr{column-gap:4px}
.ckpt > .ckr > .ck-l{margin-left:8px}
@media (max-width:700px){
  .ckpt > .ckr{grid-template-columns:32px minmax(0,1fr) auto auto;column-gap:4px;padding:12px 8px 12px 16px}
  .ckpt > .ckr > .ck-ic{grid-row:1;align-self:center;margin:0}
  .ckpt > .ckr > .ck-s{grid-column:3;grid-row:1;margin:0;align-self:center}
  .ckpt > .ckr > .ck-s > button.manifest-t{height:40px;min-height:40px;margin:0}
  .ckpt > .ckr > .ck-m{grid-column:4;grid-row:1;align-self:center;margin:0}
  .ckpt > .ckr > .ck-m .menu > button.ib.more,.ckpt .ck-m .menu > button{width:40px;height:40px;min-width:40px;min-height:40px}
  .checkpoint-view .sec-h h2{font-size:17px;line-height:24px}
}

/* ---- bot admin: Label | Pin on one row, the switch on the input's line ---- */
.bot-admin-view .o-act .fgrid.lp{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:20px 24px}
@media (max-width:700px){.bot-admin-view .o-act .fgrid.lp{grid-template-columns:minmax(0,1fr);gap:16px}}

/* ---- history: 36 px rows, bare tinted glyphs, a 20 px avatar, End of history under the card ---- */
.history-main .hrow.optab .hop .kic,.history-main .hrow.optab .hop .kic.kic{display:inline-flex;align-items:center;justify-content:center;flex:none;width:16px;height:16px;margin:0;border:0;border-radius:0;background:none;box-shadow:none;color:var(--text-2)}
.history-main .hrow.optab .hop .kic .ic{width:16px;height:16px}
.history-main .hrow.optab .hop .kic.k-egress{color:var(--warn-ink)}
.history-main .hrow.optab .hop .kic.k-life{color:var(--info-ink)}
.history-main .hrow.optab .hop .kic.k-bad{color:var(--bad-ink)}
.history-main .hrow.optab .actor > .aav{width:20px;height:20px;min-width:20px;border-radius:50%;font:600 11px/20px var(--sans)}
.history-main .hrow.optab .actor.k-bot > .aav{border-radius:6px}
.history-main .hrow.optab .actor > .an{color:var(--text-2)}
.history-main .hrow.optab .hr-t,.history-main .hrow.optab .hr-t .ts{font:400 13px/20px var(--sans);color:var(--text-2);font-variant-numeric:tabular-nums}
.history-main .hend{margin:12px 0 0;padding:0;border:0;font:400 13px/18px var(--sans);color:var(--text-3);text-align:center}
.history-main .ch.hh{height:auto;min-height:40px;flex-wrap:wrap;row-gap:0;margin:0 0 16px}
.history-main .ch.hh button.ftoggle{height:32px;min-height:32px;margin:0 0 4px;padding:0 10px;border:0;border-radius:8px;background:transparent;box-shadow:none;color:var(--text-2);font:500 14px/20px var(--sans)}
.history-main .ch.hh button.ftoggle:hover,.history-main .ch.hh button.ftoggle.on{background:var(--hover);color:var(--text)}
.history-main .ch.hh button.ftoggle > .ic{color:var(--text-2)}
@media (min-width:701px){
  .history-main .hcols.hcols,.history-main .hrow.optab.optab{grid-template-columns:minmax(220px,1.1fr) minmax(0,1.6fr) 150px 96px}
  .history-main .hcols.hcols{min-height:36px;height:36px;padding-top:0;padding-bottom:0;align-items:center}
  .history-main .hrow.optab.optab{min-height:36px;padding-top:0;padding-bottom:0;align-items:center}
  .history-main .hrow.optab .hop{gap:12px}
  .history-main .hday.hday{height:32px;min-height:32px}
  .history-main .hrow.optab .hr-t,.history-main .hcols.hcols > span:nth-child(4){text-align:right;justify-self:end}
}

/* ---- pages end 24 px under their last section (desktop) ---- */
@media (min-width:701px){.app-page:has(:is(.history-view,.node-view,.instance-admin,.bot-admin-view,.checkpoint-view,.images-view,.terminal-page,.home-view,section.cluster)){padding-bottom:24px}}
.history-main{display:flex;flex-direction:column;gap:16px}
.history-main > .ch.hh{margin:0}
.history-main > .hend{height:auto;min-height:0;margin:-4px 0 0;line-height:18px}

/* ---- KPI strips: compact cells, the 6 px meter at the foot ---- */
.statstrip-c.kpis > .sc.sc.sc{padding:12px 16px 14px}
.statstrip-c.kpis > .sc.sc > .sk{font:500 13px/18px var(--sans);color:var(--text-2)}
.statstrip-c.kpis > .sc.sc > .sv{margin:2px 0 0;font:650 22px/26px var(--sans)}
.statstrip-c.kpis > .sc.sc > .sv > .of{font:400 13px/18px var(--sans);color:var(--text-2)}
.statstrip-c.kpis > .sc.sc > .sh{margin:2px 0 0;font:400 13px/18px var(--sans);color:var(--text-2)}
.statstrip-c.kpis > .sc.sc.hasm > .sh{margin-bottom:10px}
.statstrip-c.kpis > .sc.sc > .meter.sm,.statstrip-c.kpis > .sc.sc > .meter{margin:auto 0 0}

@media (max-width:700px){.statstrip-c.kpis > .sc.sc.sc{padding:12px}.statstrip-c.kpis > .sc.sc > .sv{font-size:18px;line-height:24px}}

/* ---- node admin: Target | Deadline | Reason on one row; tools with their status beside the title; the Host rail's
   status and pools as plain rows ---- */
@media (min-width:701px){
  .node-view .nactions .fgrid.nact{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 20px;max-width:none;align-items:start}
  .node-view .nactions .fgrid.nact > .fld,.node-view .nactions .fgrid.nact > .fld.rsn{grid-column:auto;margin:0}
  .node-view .nactions .fgrid.nact > .fld > p.fhelp{margin:6px 0 0;font:400 13px/18px var(--sans);color:var(--text-2)}
  .node-view .ws-rail{position:sticky;top:68px;align-self:start}
}

.node-view .hostcard .stv{display:inline-flex;align-items:center;gap:8px;font:400 14px/20px var(--sans);color:var(--text)}
.node-view .hostcard .stv > .dot{width:7px;height:7px}
.node-view .hostcard ul.pools{margin:0;padding:0;list-style:none}
.node-view .hostcard ul.pools > li{display:grid;grid-template-columns:72px minmax(0,1fr) auto;grid-template-areas:"n m s";align-items:center;column-gap:12px;min-height:32px;padding:0}
.node-view .hostcard ul.pools > li > .pn{grid-area:n;font:400 14px/20px var(--sans);color:var(--text-2)}
.node-view .hostcard ul.pools > li > .pm{grid-area:m;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:400 13.5px/20px var(--sans);color:var(--text)}
.node-view .hostcard ul.pools > li > .ps{grid-area:s;display:inline-flex;align-items:center;gap:6px;font:400 13.5px/20px var(--sans);color:var(--text-2)}
.node-view .hostcard ul.pools > li > .ps > .dot{width:7px;height:7px}
.node-view .hostcard > .hc-pools{margin-top:16px;padding-top:14px}
.statstrip-c .sc .sh .stv{display:inline-flex;align-items:center;gap:6px;color:var(--text-2)}
.statstrip-c .sc .sh .stv > .dot{width:7px;height:7px}

/* ---- the admin rails: 28 px rows; instance admin's rail holds Configuration and the danger zone ---- */
@media (min-width:701px){
  
  .instance-admin .ws-rail section.dzrow{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:14px 20px}
  .instance-admin .ws-rail section.dzrow > .dz-t{font:400 13.5px/20px var(--sans);color:var(--text-2)}
  .instance-admin .ws-rail section.dzrow > .dz-t > .dz-l{font:inherit;color:inherit}
  .instance-admin .ws-rail{position:sticky;top:68px;align-self:start}
}

.app-page.scoped:has(> .adminview){padding-bottom:0}
.app-page.scoped > .adminview{padding-bottom:24px;box-sizing:border-box}
@media (min-width:701px){.instance-admin .ws-rail section.dzrow > button{margin:0;align-self:flex-start}}

@media (min-width:701px){
  .ws > :is(.ws-main,.ws-rail){gap:24px}
  .instance-admin .toolscard.tools2 > .tool.fold > details > summary{padding-top:8px;padding-bottom:8px}
  .instance-admin .ws-rail details.cfg-more > summary{padding-top:10px;padding-bottom:10px}
  .instance-admin .ws-rail .ia-ov > h3.props-h + dl.props + h3.props-h{margin-top:14px}
}

/* ---- new instance: the profile's facts one quiet line; eyebrows without rules; the reason, Cancel and Create ---- */
.drawer form.newinst p.fhelp.specline{display:flex;flex-wrap:wrap;gap:0;margin:8px 0 0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;overflow:visible;font:400 13.5px/20px var(--sans);color:var(--text-2)}
.drawer form.newinst p.fhelp.specline > .sp{display:inline;padding:0;border:0;font:inherit;color:inherit;white-space:nowrap}
.drawer form.newinst p.fhelp.specline > .sp + .sp::before{content:"·";margin:0 6px;color:var(--text-3)}
.drawer form.newinst fieldset.grp + fieldset.grp{margin-top:28px;padding-top:0;border-top:0}
.drawer form.newinst fieldset.grp > legend{float:left;width:100%;margin:0 0 12px;padding:0;font:600 11.5px/16px var(--sans);letter-spacing:.06em;text-transform:uppercase;color:var(--text-3)}
.drawer form.newinst fieldset.grp > legend + *{clear:both}

/* ---- access: compact role rows; the people count as plain text ---- */

.access-view h3.sub.eyebrow > .ecount{font-weight:600;color:var(--text-3)}
.access-view .person{align-items:center}
.access-view .person > .prole{align-self:center}

/* ---- bot admin: the retained conversation a row like the facts above it (an icon, the label, its chevron) ---- */
.bot-admin-view .card.o-ov > .convo-row > button.convo-t{display:flex;align-items:center;justify-content:flex-start;gap:12px;min-height:56px;padding:10px 0}
.bot-admin-view .card.o-ov > .convo-row > button.convo-t > .d-ic{flex:none;display:inline-grid;place-items:center;width:16px;height:16px;color:var(--text-2)}
.bot-admin-view .card.o-ov > .convo-row > button.convo-t > .d-t{flex:0 1 auto;min-width:0}
.bot-admin-view .card.o-ov > .convo-row > button.convo-t > .d-t > b{font:600 14px/20px var(--sans);color:var(--text)}
.bot-admin-view .card.o-ov > .convo-row > button.convo-t > .d-t > .d-s{font:400 13px/18px var(--sans);color:var(--text-2)}
.bot-admin-view .card.o-ov > .convo-row > button.convo-t > .d-ch{flex:none;margin-left:auto;color:var(--text-2)}
.bot-admin-view .card.o-ov > .convo-row > button.convo-t:hover > .d-t > b{text-decoration:underline;text-underline-offset:3px}

.bot-admin-view .card.o-ov details.disc > summary > .d-ic{display:inline-grid;place-items:center;width:16px;height:16px;margin:0;border-radius:0;background:none;color:var(--text-2)}
.bot-admin-view .card.o-ov details.disc > summary > .d-ic .ic{width:16px;height:16px}
.bot-admin-view .card.o-ov details.disc > summary{column-gap:12px;gap:12px}

/* ---- history on a phone: the title and its time on one line; the target and who did it on the second ---- */
@media (max-width:700px){
  .history-main .hrow.optab.optab{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"op t" "meta meta";align-items:baseline;column-gap:12px;row-gap:2px;min-height:56px;padding:10px 16px}
  .history-main .hrow.optab > .hop{grid-area:op;min-width:0;align-self:center}
  .history-main .hrow.optab > .hr-t{grid-area:t;align-self:center;text-align:right}
  .history-main .hrow.optab > .hmeta{grid-area:meta;display:flex;flex-wrap:wrap;align-items:baseline;gap:0;margin:0;padding:0 0 0 28px;min-width:0}
  .history-main .hrow.optab > .hmeta > .htgt{display:inline-flex;align-items:baseline;flex-wrap:wrap;margin:0;font:400 14px/20px var(--sans)}
  .history-main .hrow.optab > .hmeta > .actor{display:inline-flex;align-items:baseline;gap:0;margin:0;padding:0;font:400 14px/20px var(--sans)}
  .history-main .hrow.optab > .hmeta > .actor::before{content:"·";margin:0 6px;color:var(--text-3)}
  .history-main .hrow.optab > .hmeta > .actor > .aav{display:none}
  .history-main .hrow.optab > .hmeta > .actor > .an,.history-main .hrow.optab > .hmeta > .actor.rep > .an{display:inline;color:var(--text-2)}
  .history-main .hrow.optab > button.go-op{display:none}
}
/* tool rows on a phone: the button 8 px under the words */

/* helpers: 13.5/20 (14 on a phone) in the secondary text */
:is(.card,.drawer) :is(p.fhelp,p.hint):not(.specline){font-size:13.5px;line-height:20px;color:var(--text-2)}
@media (max-width:700px){:is(.card,.drawer) :is(p.fhelp,p.hint):not(.specline){font-size:14px}}

@media (max-width:700px){.history-main .hrow.optab > .hmeta.by-bot > .actor{display:none}}

/* ---- §1.10 the phone's tab strip: 15 px labels ---- */
@media (max-width:700px){header.top .hnav .tab{font-size:15px}.ihx .subnav:not(:has(> .stab:nth-child(5))) > .stab{font-size:15px}}

/* ==== r21 end ==== */

/* ==== r21r ==== */
/* r21r (unlayered, last): neutral selection in action pickers; unavailable verbs as one compact row under the grid;
   phone toasts in a slot under the bar; one disclosure row; the terminal's no-session line; home cards at their own
   height; overview cards with Open in the title row. */

/* the egress and memory card: its footer the card's full-width band, as every action card's */
.card.o-policy:has(> .policy-bare){--pol-x:20px;padding-left:0;padding-right:0}
.card.o-policy > .policy-bare > form > *{margin-left:var(--pol-x);margin-right:var(--pol-x)}
.card.o-policy > .policy-bare > form > footer.cf,.card .policy-bare footer.cf{margin-left:0;margin-right:0;padding-left:var(--pol-x,20px);padding-right:var(--pol-x,20px)}
@media (max-width:700px){.card.o-policy:has(> .policy-bare){--pol-x:16px}}

/* ---- one disclosure row: a 32 px icon tile, the title over its line, the chevron at the right edge ---- */
details.disc.hasic > summary > .d-ic,.convo-row > button.convo-t > .d-ic,.bot-admin-view .card.o-ov details.disc > summary > .d-ic,.bot-admin-view .card.o-ov > .convo-row > button.convo-t > .d-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)}
details.disc.hasic > summary > .d-ic .ic,.convo-row > button.convo-t > .d-ic .ic{width:16px;height:16px}
details.disc > summary > .d-ch,.convo-row > button.convo-t > .d-ch{flex:none;margin-left:auto;color:var(--text-2)}
.bot-admin-view .card.o-ov details.disc > summary,.bot-admin-view .card.o-ov > .convo-row > button.convo-t{display:flex;align-items:center;gap:12px;min-height:60px;padding:12px 0;margin:0}
.bot-admin-view .card.o-ov details.disc > summary > .d-t,.bot-admin-view .card.o-ov > .convo-row > button.convo-t > .d-t{display:flex;flex-direction:column;gap:2px;flex:1 1 auto;min-width:0;margin:0;padding:0;text-align:left}
.bot-admin-view .card.o-ov details.disc > summary > .d-t > b,.bot-admin-view .card.o-ov > .convo-row > button.convo-t > .d-t > b{font:600 14px/20px var(--sans);color:var(--text)}
.bot-admin-view .card.o-ov details.disc > summary > .d-t > .d-s,.bot-admin-view .card.o-ov > .convo-row > button.convo-t > .d-t > .d-s{font:400 13px/18px var(--sans);color:var(--text-2)}
@media (max-width:700px){.bot-admin-view .card.o-ov.railx > details.disc > summary{padding:12px 16px}}
/* how it works: the same row, in a card of its own */

/* ---- overview: Open in the card's title row (the card stays one link); memory committed and in use as two rows ---- */
:root .cluster-node.cluster-node > .cluster-title > a.cardlink{position:static;display:inline-flex;align-items:center;gap:4px;width:auto;min-width:0;max-width:none;height:32px;min-height:32px;margin:-4px 0 -4px auto;padding:0 8px 0 12px;border:1px solid var(--border);border-radius:8px;background:transparent;box-shadow:none;color:var(--text);font:600 14px/20px var(--sans);text-decoration:none}
:root .cluster-node.cluster-node > .cluster-title > a.cardlink:hover{border-color:var(--border-strong);background:var(--hover)}
:root .cluster-node.cluster-node > .cluster-title > a.cardlink > .ic{color:var(--text-2)}
.cluster-node.linked{position:relative}
.cluster-node.linked > .cluster-title > a.cardlink::after{content:"";position:absolute;inset:0;border-radius:inherit}
:root .cluster-node.cluster-node > .cluster-title > a.cardlink > .lt{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto;clip-path:none;white-space:nowrap;text-transform:capitalize}
:root .cluster-node.cluster-node{padding-bottom:20px}
:root .cluster-node.cluster-node > .nmeta{margin-bottom:0}
:root .cluster-node.cluster-node > .nrows{margin:20px 0 0}
.cluster-node .nrow > .uv.states.none{grid-column:2 / -1;justify-content:flex-start;text-align:left}
@media (max-width:700px){
  :root .cluster-node.cluster-node{padding-bottom:16px}
  :root .cluster-node.cluster-node > .nrows{margin-top:16px}
  :root .cluster-node.cluster-node > .cluster-title > a.cardlink{height:40px;min-height:40px;margin:-8px 0 -8px auto}
  .cluster-node .nrow > .uv.states.none{grid-area:v;justify-content:flex-end;text-align:right}
}

/* ---- history: avatars are circles for people and bots; By sits closer to the target ---- */
.history-main .hrow.optab .actor.k-bot > .aav{border-radius:50%}
@media (min-width:701px){
  .history-main .hcols.hcols,.history-main .hrow.optab.optab{grid-template-columns:minmax(240px,1fr) minmax(0,1fr) 200px 96px}
}

@media (max-width:700px){
  .history-main .hrow.optab > .hmeta > .actor::before{content:"·";margin:0 4px;color:var(--text-3)}
}

/* ---- the teaching steps: 32 px number tiles, so their words start on the title's line ---- */

/* ---- the overview's node switch: the same bordered chip as the node pages' switch, at every width ---- */
:root header.top.cp .node-switch select{height:32px;min-height:32px;border:1px solid var(--border);border-radius:8px;background-color:transparent}
:root header.top.cp .node-switch select:hover{border-color:var(--border-strong);background-color:var(--hover)}
@media (max-width:700px){:root:root header.top.cp .node-switch select{height:36px;min-height:36px;border:1px solid var(--border)}}

/* ---- images: paths and hashes are code, their placeholders too ---- */
input.mono::placeholder,textarea.mono::placeholder{font-family:var(--mono);font-size:13px}

/* ==== r21r end ==== */

/* ==== r22 ==== */
/* r22 (unlayered, last): the disabled primary as the primary at rest (tonal amber); amber selection in pickers with
   the unavailable options as muted cards in the same grid (one line on a phone); toasts float; one drawer grammar;
   three text steps; one count, one eyebrow, one danger zone; pages on a main + rail grid. */

/* ---- tokens (dark, then light twice: the media query and the explicit theme) ---- */
:root{
  --text:#edebe6; --text-2:#c9c4bb; --text-3:#a39d93;
  --go-off-bg:#352c1d; --go-off-border:rgba(245,165,36,.38); --go-off-fg:#e2b56b;
  --bad-off-bg:#3a2222; --bad-off-border:rgba(255,123,123,.35); --bad-off-fg:#f2a29b;
  --pick-edge:#d99a35; --pick-fill:#29231a;
  --surface-quiet:#171715;
  --scrim:rgba(0,0,0,.62); --scrim-sheet:rgba(0,0,0,.62);
  --toast-bg:#34312d; --toast-border:#57524a; --toast-fg:var(--text); --toast-fg2:#d3cec5;
  --toast-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 0 0 1px rgba(0,0,0,.45),0 20px 48px rgba(0,0,0,.62),0 4px 12px rgba(0,0,0,.42);
  --toast-shadow-sm:inset 0 1px 0 rgba(255,255,255,.06),0 0 0 1px rgba(0,0,0,.4),0 10px 24px rgba(0,0,0,.45),0 2px 6px rgba(0,0,0,.3);
  --pop-shadow:0 12px 32px rgba(0,0,0,.5),0 2px 6px rgba(0,0,0,.35);
  --switch-off:#3a3833; --switch-off-edge:#55524b; --switch-knob-off:#8f897f;
  --live:var(--ok);
  --count-bg:#34322d;
  --work-shadow:none;
  --notice-bg:var(--surface-2);
  --req-bg:#2a2217; --req-edge:rgba(255,139,87,.34); --req-tile:rgba(255,139,87,.18);
  --bubble-user:#2a2824; --bubble-user-edge:#36332e;
}
:root[data-theme="light"]{
  --bg:#ece8e0; --surface-1:#fffdf9; --border:#d3cbbd;
  --text:#1f1c17; --text-2:#4a443b; --text-3:#645d51;
  --go-off-bg:#fbf0dc; --go-off-border:rgba(194,124,14,.40); --go-off-fg:#8a5a12;
  --bad-off-bg:#fbe9e7; --bad-off-border:rgba(180,35,24,.35); --bad-off-fg:#9a2a1f;
  --pick-edge:#b97a14; --pick-fill:#fdf6e9;
  --surface-quiet:#f6f3ed;
  --scrim:rgba(30,26,20,.40); --scrim-sheet:rgba(30,26,20,.40);
  --toast-bg:#ffffff; --toast-border:#d3cabb; --toast-fg2:#4a443b;
  --toast-shadow:0 14px 34px -8px rgba(40,30,10,.22),0 4px 10px rgba(40,30,10,.08),0 1px 2px rgba(40,30,10,.06);
  --toast-shadow-sm:0 8px 20px -6px rgba(40,30,10,.18),0 2px 4px rgba(40,30,10,.06);
  --pop-shadow:0 12px 32px rgba(40,30,10,.16),0 2px 6px rgba(40,30,10,.08);
  --switch-off:#d9d2c6; --switch-off-edge:transparent; --switch-knob-off:#ffffff;
  --work-shadow:0 1px 2px rgba(40,30,10,.05);
  --req-bg:#fdf3e2; --req-edge:rgba(194,124,14,.36); --req-tile:#f9e3bf;
  --bubble-user:#ebe4d8; --bubble-user-edge:#e0d8ca;
  --count-bg:#e0d9cd;
}
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]){
  --bg:#ece8e0; --surface-1:#fffdf9; --border:#d3cbbd;
  --text:#1f1c17; --text-2:#4a443b; --text-3:#645d51;
  --go-off-bg:#fbf0dc; --go-off-border:rgba(194,124,14,.40); --go-off-fg:#8a5a12;
  --bad-off-bg:#fbe9e7; --bad-off-border:rgba(180,35,24,.35); --bad-off-fg:#9a2a1f;
  --pick-edge:#b97a14; --pick-fill:#fdf6e9;
  --surface-quiet:#f6f3ed;
  --scrim:rgba(30,26,20,.40); --scrim-sheet:rgba(30,26,20,.40);
  --toast-bg:#ffffff; --toast-border:#d3cabb; --toast-fg2:#4a443b;
  --toast-shadow:0 14px 34px -8px rgba(40,30,10,.22),0 4px 10px rgba(40,30,10,.08),0 1px 2px rgba(40,30,10,.06);
  --toast-shadow-sm:0 8px 20px -6px rgba(40,30,10,.18),0 2px 4px rgba(40,30,10,.06);
  --pop-shadow:0 12px 32px rgba(40,30,10,.16),0 2px 6px rgba(40,30,10,.08);
  --switch-off:#d9d2c6; --switch-off-edge:transparent; --switch-knob-off:#ffffff;
  --work-shadow:0 1px 2px rgba(40,30,10,.05);
  --req-bg:#fdf3e2; --req-edge:rgba(194,124,14,.36); --req-tile:#f9e3bf;
  --bubble-user:#ebe4d8; --bubble-user-edge:#e0d8ca;
  --count-bg:#e0d9cd;
}}

/* ---- §1.1 the disabled primary: the primary at rest (a faint amber tint, a hairline amber edge, an amber-brown
   label); the danger submits the same in red ---- */
:is(button,.btn).go:disabled,:is(button,.btn).go:disabled:hover,button.cf-go:disabled,button.cf-go:disabled:hover,a.go[aria-disabled=true],
.gk .gk-btn.go:disabled,.drawer .dfoot button[type=submit]:disabled,.drawer button.go[type=submit]:disabled,
.drawer button[type=submit]:not(.quiet):not(.sec):not(.danger):disabled{
  background:var(--go-off-bg);border:1px solid var(--go-off-border);color:var(--go-off-fg);opacity:1;box-shadow:none;cursor:not-allowed;font-weight:600;transform:none;filter:none}
button.danger:disabled,button.danger:disabled:hover,.drawer button[type=submit].danger:disabled{font-weight:600;transform:none}

.gk .gk-send:disabled,.gk .gk-send:disabled:hover,.composer button.go.send:disabled,.composer button.go.send:disabled:hover{background:var(--go-off-bg);border:1px solid var(--go-off-border);color:var(--go-off-fg);box-shadow:none;opacity:1}
.gk .gk-send:disabled .ic,.composer button.go.send:disabled .ic{color:inherit}

/* ---- §1.2 action pickers: amber selection inside the edge; the unavailable options muted cards in the same grid ---- */

/* the access drawer's roles: the same selection */

@media (min-width:701px){footer.cf > p.cf-note{display:block}}
/* a phone: one flat list inside the section's card (no inner frame), hairlines between rows; the unavailable options
   collapse into one line under it */
@media (max-width:700px){
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  footer.cf > p.cf-note{display:none}
  /* the access drawer has no card around its roles: a grouped list with its own edge */
  
}


/* ---- §1.4 the scrim and one drawer grammar: header (title 20/28, subtitle, a close square on the title's line), a
   scrolling body that fades over the footer, a sticky footer (the reason left, Cancel and the commit right) ---- */
.overlay{background:var(--scrim)}
.overlay > .drawer > .dh{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;min-height:0;height:auto;margin:0;padding:20px 20px 16px 24px;border-bottom:1px solid var(--border-soft)}
.overlay > .drawer > .dh > .dt{display:flex;flex-direction:column;gap:2px;min-width:0}
.overlay > .drawer > .dh > .dt > .dtt{font:650 20px/28px var(--sans);letter-spacing:-.01em;color:var(--text)}
.overlay > .drawer > .dh > .dt > .dsub{font:400 13px/18px var(--sans);color:var(--text-2)}
.overlay > .drawer > .dh > button.ib{flex:none;width:32px;height:32px;min-width:32px;min-height:32px;margin:-2px -4px 0 0;padding:0;border:0;border-radius:8px;background:transparent;color:var(--text-2)}
.overlay > .drawer > .dh > button.ib:hover{background:var(--hover);color:var(--text)}
.overlay > .drawer > .db > :is(form,.dwrap) > .dscroll,.overlay > .drawer > .db > .dscroll{padding:24px 24px 24px}
.overlay > .drawer > .db > :is(form,.dwrap) > .dscroll.can-more,.overlay > .drawer > .db > .dscroll.can-more{-webkit-mask-image:linear-gradient(to bottom,#000 calc(100% - 16px),transparent);mask-image:linear-gradient(to bottom,#000 calc(100% - 16px),transparent)}
.overlay > .drawer > .db > :is(form,.dwrap) > .dscroll + .row,.overlay > .drawer > .db > .dscroll ~ .row.dfoot,.overlay > .drawer > .db > .dscroll + .row{
  display:flex;flex-wrap:nowrap;align-items:center;justify-content:flex-end;gap:8px;margin:0;padding:12px 24px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--border-soft);background:var(--sheet-bg,var(--surface-1));box-shadow:none}
.overlay > .drawer > .db :is(.dscroll + .row,.row.dfoot)::before{content:none;display:none}
.overlay > .drawer > .db :is(.dscroll + .row,.row.dfoot) > :is(.fnote,p.why,.muted){order:0;flex:1 1 auto;min-width:0;margin:0 auto 0 0;font:400 13px/18px var(--sans);color:var(--text-2);text-align:left}
.overlay > .drawer > .db :is(.dscroll + .row,.row.dfoot) > p.why > .ic{display:none}
.overlay > .drawer > .db :is(.dscroll + .row,.row.dfoot) > button{flex:none;height:36px;min-height:36px;margin:0;justify-content:center}
.overlay > .drawer > .db :is(.dscroll + .row,.row.dfoot) > button:not(.go):not(.danger):not([type=submit]){order:1;padding:0 14px;border:1px solid var(--border);background:transparent;color:var(--text)}
.overlay > .drawer > .db :is(.dscroll + .row,.row.dfoot) > button:not(.go):not(.danger):not([type=submit]):hover{border-color:var(--border-strong);background:var(--hover)}
.overlay > .drawer > .db :is(.dscroll + .row,.row.dfoot) > button:is(.go,.danger,[type=submit]){order:2;min-width:96px;padding:0 16px}
/* phones: a full-screen sheet (no peek, no radius), a 56 px header with a 40 px close; Cancel 1fr and the commit 2fr */
@media (max-width:700px){
  .overlay > .drawer{top:0;bottom:0;left:0;right:0;width:100vw;max-width:none;height:auto;max-height:none;border:0;border-radius:0;overflow:hidden}
  .overlay > .drawer > .dh{align-items:center;min-height:56px;padding:8px 8px 8px 16px}
  .overlay > .drawer > .dh > .dt > .dtt{font-size:18px;line-height:24px}
  .overlay > .drawer > .dh > button.ib{width:40px;height:40px;min-width:40px;min-height:40px;margin:0}
  .overlay > .drawer > .db > :is(form,.dwrap) > .dscroll,.overlay > .drawer > .db > .dscroll{padding:20px 16px 24px}
  .overlay > .drawer > .db > :is(form,.dwrap) > .dscroll + .row,.overlay > .drawer > .db > .dscroll ~ .row.dfoot,.overlay > .drawer > .db > .dscroll + .row{
    display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);grid-auto-flow:row dense;gap:8px;padding:12px 16px calc(12px + env(safe-area-inset-bottom))}
  .overlay > .drawer > .db :is(.dscroll + .row,.row.dfoot) > :is(.fnote,p.why,.muted){grid-column:1 / -1;order:0}
  .overlay > .drawer > .db :is(.dscroll + .row,.row.dfoot) > button{width:100%;height:44px;min-height:44px}
  .overlay > .drawer > .db :is(.dscroll + .row,.row.dfoot) > button:not(.go):not(.danger):not([type=submit]){grid-column:1}
  .overlay > .drawer > .db :is(.dscroll + .row,.row.dfoot) > button:is(.go,.danger,[type=submit]){grid-column:2}
  .overlay > .drawer > .db :is(.dscroll + .row,.row.dfoot) > button:only-of-type{grid-column:1 / -1}
}

/* ---- §1.5 one count pill ---- */
.count,:is(h1,h2,h3,h4) > .count,.sec-tt .count,.gk-side .count{display:inline-flex;align-items:center;justify-content:center;text-transform:none;font-variant-numeric:tabular-nums}

/* ---- §1.5 one eyebrow ---- */
.eyebrow,h3.sub.eyebrow,.drawer form fieldset.grp > legend,.gk-details > p.gk-eb,h3.props-h{font:600 11.5px/16px var(--sans);letter-spacing:.06em;text-transform:uppercase;color:var(--text-2)}

/* ---- §1.5 the switch: a visible off track ---- */

/* ---- §1.7 helper text: one style ---- */
:is(.card,.drawer) :is(p.fhelp,p.hint):not(.specline){margin-top:6px;font:400 13px/18px var(--sans);color:var(--text-3)}
:is(.card,.drawer) p.fhelp code,:is(.card,.drawer) p.hint code{font-size:12.5px}
@media (max-width:700px){:is(.card,.drawer) :is(p.fhelp,p.hint):not(.specline){font-size:13px}}

/* ---- §1.5 tabs never shift: one weight, the active one in the text colour over the amber underline ---- */
header.top .hnav .tab,header.top .hnav .tab.on,header.top .hnav .tab[aria-current],.ihx .subnav > .stab,.ihx .subnav > .stab.on,.ihx .subnav > .stab[aria-current],.gk .gk-tabs > .gk-tab,.gk .gk-tabs > .gk-tab.on,.gk .gk-tabs > .gk-tab[aria-selected=true]{font-weight:500}
header.top .hnav .tab:is(.on,[aria-current]),.ihx .subnav > .stab:is(.on,[aria-current]),.gk .gk-tabs > .gk-tab:is(.on,[aria-selected=true]){color:var(--text)}

/* ---- §1.8 one page grid: main and a 360 px rail (sticky), the rail under the main column below 1100 px ---- */
.pg2{display:grid;grid-template-columns:minmax(0,1fr);gap:24px;align-items:start;min-width:0}
.pg2 > .pg-main,.pg2 > .pg-rail{display:flex;flex-direction:column;gap:24px;min-width:0}
.pg2 > .pg-main > *,.pg2 > .pg-rail > *{margin:0}
@media (min-width:1100px){
  .pg2{grid-template-columns:minmax(0,1fr) 360px}
  .pg2 > .pg-rail{position:sticky;top:72px}
  .ws{grid-template-columns:minmax(0,1fr) 360px}
}
@media (max-width:700px){.pg2,.pg2 > .pg-main,.pg2 > .pg-rail{gap:24px}}

/* ---- §1.7 two card tiers: reference content on a quiet card ---- */
.card.quiet,section.card.quiet{border:1px solid var(--border-soft);background:var(--surface-quiet);box-shadow:none}
:root[data-theme="light"] .card:not(.quiet):not(.ipanel.dim),:root[data-theme="light"] section.card:not(.quiet){box-shadow:var(--work-shadow)}
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]) .card:not(.quiet),:root:not([data-theme="dark"]) section.card:not(.quiet){box-shadow:var(--work-shadow)}}

/* ---- the "how it works" rails (images, checkpoints): an open card on a wide screen, numbered or icon steps ---- */

/* ---- images: Kind | Label, then the path and the hash at full width; an empty list as one row ---- */
.images-view .register .fgrid.imfields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 24px;align-items:start}
.images-view .register .fgrid.imfields > .fld{margin:0}
.images-view .register .fgrid.imfields > .fld.wide{grid-column:1 / -1}
@media (max-width:700px){.images-view .register .fgrid.imfields{grid-template-columns:minmax(0,1fr);gap:20px}}
.images-view .card.imgs.is-empty{padding:0;border:0;background:none;box-shadow:none}

input.mono::placeholder,textarea.mono::placeholder{font-family:var(--mono);font-size:13.5px;color:var(--placeholder)}

/* ---- checkpoints: a columnar row (tile, name over its age, kind, retention, files, ⋯) ---- */
@media (min-width:701px){
  .checkpoint-view .ckpt > .ckr,.checkpoint-view :is(.ws-main,.ck-list) .ckpt > .ckr{display:grid;grid-template-columns:32px minmax(0,1fr) auto auto auto 32px;grid-template-areas:"ic nm k r s m" "ic t k r s m";align-items:center;column-gap:12px;row-gap:0;min-height:64px;padding:12px 16px}
  .checkpoint-view .ckpt > .ckr > .ck-ic{grid-area:ic;margin:0}
  .checkpoint-view .ckpt > .ckr > .ck-l,.checkpoint-view .ckpt > .ckr > .ck-l > .ck-meta{display:contents}
  .checkpoint-view .ckpt > .ckr > .ck-l > h3{grid-area:nm;align-self:end;margin:0;font:600 14px/20px var(--sans);color:var(--text)}
  .checkpoint-view .ckpt > .ckr > .ck-l > .ck-meta > .ck-t{grid-area:t;align-self:start;margin:0;padding:0;font:400 13px/18px var(--sans);color:var(--text-3)}
  .checkpoint-view .ckpt > .ckr > .ck-l > .ck-meta > *::before{content:none;display:none}
  .checkpoint-view .ckpt > .ckr > .ck-l > .ck-meta > .chip{grid-area:k;display:inline-flex;align-items:center;height:22px;margin:0;padding:0 8px;border:0;border-radius:999px;background:var(--neutral-soft);color:var(--text-2);font:500 12.5px/18px var(--sans)}
  .checkpoint-view .ckpt > .ckr > .ck-l > .ck-meta > .ret{grid-area:r;display:inline-flex;align-items:center;gap:4px;height:22px;margin:0;padding:0 8px;border-radius:999px;background:var(--neutral-soft);color:var(--text-2);font:500 12.5px/18px var(--sans)}
  .checkpoint-view .ckpt > .ckr > .ck-l > .ck-meta > .ret.keep{background:var(--accent-soft);color:var(--accent-text)}
  .checkpoint-view .ckpt > .ckr > .ck-l > .ck-meta > .ret .lt::first-letter{text-transform:uppercase}
  .checkpoint-view .ckpt > .ckr > .ck-s{grid-area:s;margin:0 0 0 4px}
  .checkpoint-view .ckpt > .ckr > .ck-s > button.manifest-t{display:inline-flex;align-items:center;gap:4px;height:32px;min-height:32px;margin:0;padding:0 8px 0 10px;border:1px solid var(--border);border-radius:8px;background:transparent;color:var(--text);font:500 13px/18px var(--sans);text-decoration:none}
  .checkpoint-view .ckpt > .ckr > .ck-s > button.manifest-t:hover{border-color:var(--border-strong);background:var(--hover)}
  .checkpoint-view .ckpt > .ckr > .ck-m{grid-area:m;margin:0}
}
.checkpoint-view .ckpt > .ckr > .ck-m .menu > button.ib.more{width:32px;height:32px;min-width:32px;min-height:32px;border:0;border-radius:8px;background:transparent;color:var(--text-2)}
.checkpoint-view .ckpt > .ckr > .ck-m .menu > button.ib.more:hover{background:var(--hover);color:var(--text)}

/* ---- §1.5 the Pin field: its label above, a box the inputs' height holding the switch and its words ---- */

/* ---- §1.6 the home request banner: the same request component (tint, tile, title, reason, meta) and an urgent
   tonal Review ---- */
:root:root .home-view .ap-notice.ap-notice.ap-notice,:root:root .ap-notice.ap-notice{display:grid;grid-template-columns:32px minmax(0,1fr) auto;column-gap:14px;row-gap:0;align-items:center;min-height:0;padding:14px 16px;border:1px solid var(--req-edge);border-radius:12px;background:var(--req-bg);box-shadow:none}
:root:root .ap-notice.ap-notice > .ap-n-ic{grid-column:1;grid-row:1;align-self:center;display:inline-grid;place-items:center;width:32px;height:32px;margin:0;border-radius:8px;background:var(--req-tile);color:var(--warn-ink,var(--warn))}
:root:root .ap-notice.ap-notice > .ap-n-t{grid-column:2;grid-row:1;display:flex;flex-direction:column;gap:2px;min-width:0}
:root:root .ap-notice.ap-notice > .ap-n-t > .ap-n-l1{display:block;min-width:0;font:400 14px/22px var(--sans);color:var(--text)}
:root:root .ap-notice.ap-notice > .ap-n-t > .ap-n-l1 > b{font-weight:600}
:root:root .ap-notice.ap-notice > .ap-n-t > .ap-n-l1 > code.host{display:inline;height:auto;padding:1px 6px;border:1px solid var(--border-soft);border-radius:6px;background:var(--code-bg);font:400 12.5px/18px var(--mono);color:var(--text);white-space:nowrap}
:root:root .ap-notice.ap-notice > .ap-n-t > .ap-n-l1 > code.host > .port{color:var(--text-2)}

:root:root .ap-notice.ap-notice > button.ap-n-go{grid-column:3;grid-row:1;align-self:center;display:inline-flex;align-items:center;gap:2px;width:auto;margin:0}

@media (max-width:700px){
  :root:root .home-view .ap-notice.ap-notice.ap-notice,:root:root .ap-notice.ap-notice{column-gap:12px;padding:12px 12px 12px 14px}
  :root:root .ap-notice.ap-notice > .ap-n-t > .ap-n-l1{font-size:14px;line-height:20px}
  
  
  
  :root:root .ap-notice.ap-notice > button.ap-n-go{align-self:center}
}

/* ---- home cards: one height per row, footers aligned; memory on the shared 64 | 1fr | 140 grid (a released card keeps
   the empty track); Suspend and Open the same secondary button ---- */
.home-view .igrid{align-items:stretch}
.home-view .igrid > .card.ipanel{display:flex;flex-direction:column;height:auto}
.home-view .igrid > .card.ipanel > .acts{margin-top:auto}
.home-view .ipanel > .usage,.home-view .ipanel > .usage.rel{display:grid;grid-template-columns:64px minmax(0,1fr) 140px;align-items:center;column-gap:12px;min-height:20px;margin:0}
.home-view .ipanel > .usage > .ip-k{font:400 13.5px/20px var(--sans);color:var(--text-2)}
.home-view .ipanel > .usage > .meter{grid-column:2}
.home-view .ipanel > .usage > .uv,.home-view .ipanel > .usage.rel > .uv.rel-v{grid-column:3;justify-self:end;font:400 13.5px/20px var(--sans);color:var(--text-2);white-space:nowrap;font-variant-numeric:tabular-nums}
.home-view .ipanel > .usage > .uv > b{font-weight:600;color:var(--text)}
.home-view .ipanel .ip-bk{display:none}
.home-view .ipanel .ip-bots{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-height:28px}
.home-view .ipanel .ip-bots > .chip.bot{height:28px}
.home-view .ipanel .ip-bots > .x{font:400 13px/20px var(--sans);color:var(--text-3)}
:root .home-view .ipanel .ip-bots button.addbot,:root .home-view .ipanel .ip-bots button.addbot.labelled{display:inline-grid;place-items:center;width:28px;height:28px;min-width:28px;min-height:28px;margin:0;padding:0;border:1px solid var(--border);border-radius:50%;background:transparent;color:var(--text-2)}
:root .home-view .ipanel .ip-bots button.addbot:hover:not(:disabled){border-color:var(--border-strong);background:var(--hover);color:var(--text)}
.home-view .ipanel .specs > .ip-sl{font-variant-numeric:tabular-nums}
.home-view .ipanel .acts > :is(button.quiet.lc,button.go2.open),:root .home-view .ipanel .acts > :is(button.quiet.lc,button.go2.open){display:inline-flex;align-items:center;gap:6px;margin:0}

@media (max-width:700px){
  .home-view .ipanel > .usage,.home-view .ipanel > .usage.rel{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"k v" "m m";row-gap:8px}
  .home-view .ipanel > .usage > .ip-k{grid-area:k}
  .home-view .ipanel > .usage > .meter{grid-area:m;grid-column:1 / -1}
  .home-view .ipanel > .usage > .uv,.home-view .ipanel > .usage.rel > .uv.rel-v{grid-area:v;grid-column:2}
  
}

/* ---- §1.5 one code chip ---- */
:is(.console .d2 > .d,.ipanel .act > .x > .xd,.home-view .ipanel .act.act > .x > .xd) code.apath{display:inline;padding:1px 6px;border:1px solid var(--border-soft);border-radius:6px;background:var(--code-bg);box-shadow:none;font:400 12.5px/18px var(--mono);color:var(--text)}

/* ---- access: the people first, then Invite; the role cards with the shared selection ---- */
.drawer .access-view > form.share.share{margin:32px 0 0;padding:0;border:0}
.drawer .access-view > ul.people{margin:0}
.access-view h3.sub.eyebrow{display:flex;align-items:center;margin:0 0 8px}

.access-view .person{display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;column-gap:12px}
.access-view .person > .pav{width:32px;height:32px}
.access-view .person > .prole{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:999px;background:var(--neutral-soft);color:var(--text-2);font:500 12px/18px var(--sans)}
.access-view .person > .prole .lt::first-letter{text-transform:uppercase}

/* ---- §1.5 one danger zone: the last card of the rail (instance and bot admin), the copy then the outline button at
   the right; full width on a phone ---- */
.ws-rail section.dzrow,.ws-rail .dz-sec section.dzrow,.ws-main .dz-sec section.dzrow,.ws-main section.dzrow{display:flex;flex-direction:column;align-items:stretch;gap:12px;margin:0;padding:16px 20px}
:is(.ws-rail,.ws-main) section.dzrow > .dz-t,:is(.ws-rail,.ws-main) section.dzrow > .dz-t > .dz-l{margin:0;font:400 14px/20px var(--sans);color:var(--text-2)}
:is(.ws-rail,.ws-main) section.dzrow > button,:is(.ws-rail,.ws-main) section.dzrow > .row.dz-pick{align-self:flex-end;margin:0}

@media (max-width:700px){
  :is(.ws-rail,.ws-main) section.dzrow{padding:16px}
  :is(.ws-rail,.ws-main) section.dzrow > button,:is(.ws-rail,.ws-main) section.dzrow > .row.dz-pick{align-self:stretch}
  :is(.ws-rail,.ws-main) section.dzrow > button{width:100%;height:44px;min-height:44px;justify-content:center}
}

/* ---- KPI strips: dots in the state legend, segment meters (pools), an ok meter (nodes online) ---- */
.statstrip-c .sc .sh .stx{display:inline-flex;flex-wrap:wrap;align-items:center;gap:0}
.statstrip-c .sc .sh .stx > .sep{margin:0 6px;color:var(--text-3)}
.statstrip-c .sc .sh .stx .sct{display:inline-flex;align-items:center;gap:5px}
.statstrip-c .sc .sh .stx .sct > .dot{width:7px;height:7px}
.statstrip-c .sc .sh .stx .sct > .dot.info{background:var(--info)}
.statstrip-c .sc .sh .stx .sct > b{font-weight:600;color:var(--text)}
.statstrip-c .sc .sh .stx .lc{text-transform:lowercase}

.statstrip-c.kpis .sc .sv{font-variant-numeric:tabular-nums}

/* ---- overview: the "updated" stamp and refresh one ghost button on the title's centre line; node rows on one grid
   (label | bar | value), the state legend under its bar; an idle node a deliberate idle body ---- */
.cluster > .ihead.page{align-items:center}
.cluster .upd-w{align-self:center}
.cluster .upd-w > .stchip{display:inline-flex;align-items:center;gap:2px;height:32px;margin:0;padding:0 0 0 10px;border:1px solid var(--border);border-radius:8px;background:transparent;font:400 13px/18px var(--sans);color:var(--text-2)}
.cluster .upd-w > .stchip > .upd{color:var(--text-2)}
.cluster .upd-w > .stchip > button.ib.refresh{width:30px;height:30px;min-width:30px;min-height:30px;margin:0;border:0;border-radius:7px;background:transparent;color:var(--text-2)}
.cluster .upd-w > .stchip > button.ib.refresh:hover{background:var(--hover);color:var(--text)}
.cluster-nodes{align-items:stretch}
.cluster-nodes > .card.cluster-node{display:flex;flex-direction:column}
.cluster-node .nrow{grid-template-columns:150px minmax(0,1fr) 140px}
.cluster-node .nrow.nr-state{align-items:start}
.cluster-node .nrow.nr-state > .uk,.cluster-node .nrow.nr-state > .uv{line-height:20px;margin-top:-7px}
.cluster-node .nrow.nr-state > .nr-m{display:flex;flex-direction:column;gap:10px;min-width:0}
.cluster-node .nrow.nr-state > .nr-m > .meter{margin:0}
.cluster-node .nrow.nr-state > .nr-m > .states{display:flex;flex-wrap:wrap;gap:4px 14px;font:400 13px/18px var(--sans);color:var(--text-2)}
.cluster-node .nrow.nr-state > .nr-m > .states > .sct{display:inline-flex;align-items:center;gap:6px}
.cluster-node .nrow.nr-state > .nr-m > .states > .sct > .dot{width:8px;height:8px}
.cluster-node .nrow.nr-state > .nr-m > .states > .sct > b{font-weight:600;color:var(--text)}
.cluster-node .nrow.nr-state > .nr-m > .states > .sct > span[class^="st-"]{text-transform:lowercase}
.cluster-node .nrow.nr-state > .nr-m > .states > .sct + .sct::before{content:none}
.cluster-node .sct:has(> .st-SUSPENDED) > .dot{background:var(--info)}
.cluster-node > .nidle{flex:1 1 auto;display:flex;align-items:center;gap:12px;margin:20px 0 0;padding:16px;border-radius:10px;background:var(--surface-2)}
.cluster-node > .nidle > .ni-ic{flex:none;display:inline-grid;place-items:center;width:32px;height:32px;border-radius:8px;background:var(--surface-3);color:var(--text-2)}
.cluster-node > .nidle > .ni-t{display:flex;flex-direction:column;gap:2px;min-width:0}
.cluster-node > .nidle > .ni-t > b{font:600 14px/20px var(--sans);color:var(--text)}
.cluster-node > .nidle > .ni-t > span{font:400 13px/18px var(--sans);color:var(--text-2)}
.cluster-node > .nmeta > .rl.tag{height:22px;padding:0 8px;background:var(--neutral-soft);color:var(--text-2);font:500 12px/18px var(--sans)}
.cluster-node > .nmeta > .rl.tag .lt::first-letter{text-transform:uppercase}
@media (max-width:700px){
  .cluster-node .nrow{grid-template-columns:minmax(0,1fr) auto}
  .cluster-node .nrow.nr-state{grid-template-areas:"k v" "m m"}
  .cluster-node .nrow.nr-state > .uk,.cluster-node .nrow.nr-state > .uv{margin-top:0}
  .cluster-node .nrow.nr-state > .nr-m{grid-area:m}
  .cluster-node > .nidle{margin-top:16px}
}

/* ---- node admin: the Host rail on one 120 px label column; pools on the same grid; tools with their status pill
   after the title ---- */
.node-view .hostcard dl.props.inline > .pr{display:grid;align-items:center}

.node-view .hostcard dl.props.inline > .pr > dd{justify-self:start;text-align:left}
.node-view .hostcard ul.pools > li{grid-template-columns:120px minmax(0,1fr) 72px;column-gap:12px;min-height:32px}
.node-view .hostcard ul.pools > li > .pn{font:500 14px/20px var(--sans);color:var(--text)}
.node-view .hostcard ul.pools > li > .pm{color:var(--text-2)}
.node-view .hostcard ul.pools > li > .ps{justify-self:start}
.node-view .hostcard h3.eyebrow{display:flex;align-items:center;margin:0 0 6px}

.node-view .hostcard > h3.eyebrow ~ h3.eyebrow,.node-view .hostcard > .hc-pools{margin-top:20px}
.node-view .hostcard .stv > .dot{width:8px;height:8px}

/* ---- history: compact By and Time on the right; muted seconds; one weight on the kind tabs; Filters bordered ---- */
@media (min-width:701px){
  .history-main .hcols.hcols,.history-main .hrow.optab.optab{grid-template-columns:minmax(220px,1fr) minmax(260px,1.4fr) 150px 88px}
}
.history-main .hrow.optab .hr-t .ts{color:var(--text-2);font-variant-numeric:tabular-nums}
.history-main .hrow.optab .hr-t .ts > .ts-s{color:var(--text-3)}
.history-main .hrow.optab .actor > .an{color:var(--text)}
.history-main .hrow.optab .actor.rep > .an{color:var(--text-2)}
.history-main .hday.hday{font:600 11.5px/16px var(--sans);letter-spacing:.06em;text-transform:uppercase;color:var(--text-2);background:var(--surface-2);border-top:1px solid var(--border-soft);border-bottom:1px solid var(--border-soft)}
.history-main .hcols.hcols > span{font:600 12.5px/18px var(--sans);letter-spacing:0;text-transform:none;color:var(--text-2)}
:root .history-main .htabs > button,:root .history-main .htabs > button.on,:root .history-main .htabs > button[aria-pressed=true]{font-weight:500}
.history-main .htabs > button.on{color:var(--text)}
.history-main .ch.hh button.ftoggle{border:1px solid var(--border);background:transparent;color:var(--text)}
.history-main .ch.hh button.ftoggle:hover,.history-main .ch.hh button.ftoggle.on{border-color:var(--border-strong);background:var(--hover)}

/* ---- phone stat cells: the state legend stacked without a dangling separator ---- */
@media (max-width:700px){
  .statstrip-c .sc .sh .stx{flex-direction:column;align-items:flex-start;gap:2px}
  .statstrip-c .sc .sh .stx > .sep{display:none}
  
}
.cluster-node > .nmeta > .rl.tag{margin-left:8px}
:root .cluster-node .nrow.nr-state > .nr-m > .states{justify-content:flex-start;margin:0;text-align:left}
.images-view .card.imgs.is-empty,:root[data-theme="light"] .images-view .card.imgs.is-empty{box-shadow:none}
:root .images-view .card.imgs.is-empty > .empty-state.solid{max-width:none;box-sizing:border-box;align-self:stretch}

/* ---- new instance: Golden image and Guest kernel stacked, one helper for the pair ---- */
.drawer form.newinst .fstack.imgs{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;margin-top:20px}
.drawer form.newinst .fstack.imgs > p.fhelp{margin:-14px 0 0}

/* ---- instance admin: Last change on one line; the egress grant a subsection with its button at the right ---- */
.instance-admin .ws-rail dl.props > .pr .chg-t{display:inline}
.instance-admin .ws-rail dl.props > .pr .chg-m{display:block;margin:2px 0 0}
.card .policy-bare .pol-grant:not(.open){display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:16px;padding-top:14px;border-top:1px solid var(--border-soft)}

@media (max-width:700px){
  .card .policy-bare .pol-grant:not(.open){flex-direction:column;align-items:stretch;gap:12px}
  
}

/* ---- focus: one ring for buttons and cards; inputs a hairline accent edge with a soft halo ---- */
:is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),select,textarea):focus-visible:not(.gk-pillbox *):not(.composer *):not(.gk-compose *){border-color:var(--accent-border);box-shadow:0 0 0 3px var(--focus-soft);outline:none}

/* ---- motion: drawers slide, popovers settle (none under reduced motion: the tail sets the durations) ---- */
.overlay > .drawer{animation:r22-drawer-in 200ms cubic-bezier(.2,.8,.2,1)}
@keyframes r22-drawer-in{from{transform:translateX(24px);opacity:.6}to{transform:none;opacity:1}}
@media (max-width:700px){@keyframes r22-drawer-in{from{transform:translateY(24px);opacity:.6}to{transform:none;opacity:1}}}
.gk-menu .gk-sheet{animation:r22-pop-in 120ms ease-out;transform-origin:top right}
@keyframes r22-pop-in{from{transform:scale(.98);opacity:0}to{transform:none;opacity:1}}

/* ---- numerals that stack or change ---- */
.statstrip-c .sv,.statstrip-c .of,.uv,.meter + .uv,.count,.fcount,.ts,time{font-variant-numeric:tabular-nums}

@media (min-width:701px){
  
  :root:root .instance-admin .toolscard.tools2 > .tool.fold > details > summary{min-height:0;padding-top:5px;padding-bottom:5px}
  :root :is(.ws-rail,.ws-main) section.dzrow > button,:root :is(.ws-rail,.ws-main) section.dzrow > .row.dz-pick{align-self:flex-end}
}
@media (min-width:701px){
  :root .instance-admin .ws-rail section.dzrow{gap:10px;padding:14px 20px}
  :root .instance-admin .ws-rail details.cfg-more > summary{padding-top:8px;padding-bottom:8px}
}

.statstrip-c.kpis.clsum > .sc > .meter{display:block}

:root .cluster-node.cluster-node > .nmeta > .rl.tag{padding:0 8px;margin-left:10px}
:root .cluster-node.cluster-node > .nmeta > .rl.tag::before{content:none;display:none}

/* ---- node admin: pools fit the rail; tools' buttons full width on a phone at the card's content edge ---- */
.node-view .hostcard ul.pools > li{grid-template-columns:72px minmax(0,1fr) auto}
.node-view .hostcard ul.pools > li > .pm{font-size:13px}
.node-view .hostcard .stv{gap:6px}

/* ---- history on a phone: the kind tabs a segmented control under the node tabs ---- */
@media (max-width:700px){
  .history-main .history-actions.htabs{display:inline-flex;gap:2px;height:36px;padding:2px;border:1px solid var(--border);border-radius:9px;background:var(--surface-2)}
  .history-main .history-actions.htabs > button{height:30px;min-height:30px;padding:0 12px;border:0;border-radius:7px;background:transparent;color:var(--text-2)}
  .history-main .history-actions.htabs > button.on{background:var(--surface-1);box-shadow:0 1px 2px rgba(0,0,0,.18);color:var(--text)}
  .history-main .history-actions.htabs > button.on::after{content:none;display:none}
  
  .history-main .hrow.optab .hr-t .ts > .ts-s{color:var(--text-3)}
  .history-main .ch.hh button.ftoggle{height:36px;min-height:36px;margin:0}
}

/* ---- checkpoints on a phone: the name and ⋯, the meta line, then the files as a full-width disclosure row ---- */
@media (max-width:700px){
  :root .checkpoint-view .ckpt > .ckr{display:grid;grid-template-columns:32px minmax(0,1fr) 40px;grid-template-areas:"ic l m" "s s s";align-items:start;column-gap:12px;row-gap:0;padding:12px 8px 0 16px}
  :root .checkpoint-view .ckpt > .ckr > .ck-ic{grid-area:ic;grid-row:1;align-self:start;margin:2px 0 0}
  :root .checkpoint-view .ckpt > .ckr > .ck-l{grid-area:l;margin:0;min-width:0}
  :root .checkpoint-view .ckpt > .ckr > .ck-l > .ck-meta{display:block;margin:2px 0 0;clip-path:none;font:400 13px/18px var(--sans);color:var(--text-3)}
  :root .checkpoint-view .ckpt > .ckr > .ck-l > .ck-meta > *{display:inline;margin:0;padding:0;background:none;color:inherit;font:inherit;height:auto;border:0;white-space:nowrap}
  :root .checkpoint-view .ckpt > .ckr > .ck-l > .ck-meta > *::before{content:none}
  :root .checkpoint-view .ckpt > .ckr > .ck-l > .ck-meta > * + *::before{content:"·";display:inline;width:auto;margin:0 6px;color:var(--text-3)}
  :root .checkpoint-view .ckpt > .ckr > .ck-l > .ck-meta > .ret .ic{display:none}
  :root .checkpoint-view .ckpt > .ckr > .ck-l > .ck-meta > .ret .lt::first-letter{text-transform:uppercase}
  :root .checkpoint-view .ckpt > .ckr > .ck-m{grid-area:m;grid-column:3;grid-row:1;align-self:start;margin:-4px 0 0}
  :root .checkpoint-view .ckpt > .ckr > .ck-s{grid-area:s;grid-column:1 / -1;grid-row:2;margin:12px -8px 0 -16px;border-top:1px solid var(--border-soft)}
  :root .checkpoint-view .ckpt > .ckr > .ck-s > button.manifest-t{display:flex;align-items:center;justify-content:space-between;width:100%;height:44px;min-height:44px;margin:0;padding:0 16px;border:0;border-radius:0;background:transparent;color:var(--text);font:500 14px/20px var(--sans)}
}

/* ---- a bot's phone header: the bot as the title, "in audit-…" under it ---- */
@media (max-width:700px){
  :root .ihx.bot .ih-row > .ih-t{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:0;min-width:0}
  :root .ihx.bot .ih-row > .ih-t > .ih-title .ih-name{font:600 16px/20px var(--sans)}
  :root .ihx.bot .ih-row > .ih-t > .ih-sub.ih-sub{display:block;max-width:100%;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:400 13px/16px var(--sans);color:var(--text-2)}
  :root .ihx.bot .ih-row > .ih-t > .ih-sub.ih-sub::before{content:"in ";margin:0}
}

/* ---- one body size for page and section copy ---- */
.ihead.page .sub,.ihead.page .sub > *,.ihx ~ .app-page .ihead .sub{font:400 14px/20px var(--sans);color:var(--text-2)}
.sec-tt > p{font:400 14px/20px var(--sans);color:var(--text-2)}
/* ==== r22 end ==== */

/* ==== r22r ==== */
/* r22r (unlayered, last): the disabled primary is the primary dimmed (no third button style); unavailable verbs are one
   muted line under the real choices at every width; compact one-line choices on a phone; a plain switch row; one
   card surface for rails; the critics' per-view fixes. */
:root{
  --go-off-bg:#5f461d; --go-off-border:#5f461d; --go-off-fg:#2a1f0b;
  --send-off-bg:#2e2c28; --send-off-fg:#8f897f;
  --text-3:#aca69c; --border:#403d37; --border-soft:#312f2b;
}
:root[data-theme="light"]{
  --go-off-bg:#f6dcae; --go-off-border:#f6dcae; --go-off-fg:#a68a5e;
  --send-off-bg:#e7e1d6; --send-off-fg:#8d877c;
}
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]){
  --go-off-bg:#f6dcae; --go-off-border:#f6dcae; --go-off-fg:#a68a5e;
  --send-off-bg:#e7e1d6; --send-off-fg:#8d877c;
}}
.gk .gk-send:disabled,.gk .gk-send:disabled:hover,.composer button.go.send:disabled,.composer button.go.send:disabled:hover{background:var(--send-off-bg);border:0;color:var(--send-off-fg);box-shadow:none;opacity:1}

/* ---- unavailable verbs: one muted line under the grid, the names still radios ---- */

/* ---- a phone: compact one-line choices (name, then its line), the commit's consequence back in the footer ---- */
@media (max-width:700px){
  
  
  
  
  
  footer.cf > p.cf-note{display:block;margin:0 0 4px;font:400 13px/18px var(--sans);color:var(--text-3)}
}

/* ---- the Pin switch: a plain switch row on the inputs' line, its helper under the words ---- */

/* ---- checkpoints on a phone: the meta line's items wrap with their separators in flow ---- */
@media (max-width:700px){
  :root .checkpoint-view .ckpt > .ckr > .ck-l{grid-column:2 / -1;grid-row:1}
  :root .checkpoint-view .ckpt > .ckr > .ck-l > h3{padding-right:40px}
  :root .checkpoint-view .ckpt > .ckr > .ck-m{z-index:1}
  :root .checkpoint-view .ckpt > .ckr > .ck-l > .ck-meta{display:flex;flex-wrap:wrap;align-items:center;column-gap:0;row-gap:2px;overflow:visible}
  :root .checkpoint-view .ckpt > .ckr > .ck-l > .ck-meta > *{position:static;display:inline-flex;align-items:center}
  :root .checkpoint-view .ckpt > .ckr > .ck-l > .ck-meta > * + *::before{position:static;left:auto;display:inline;content:"·";margin:0 6px;color:var(--text-3)}
}

/* ---- home: rows as tall as their own cards; every card has an activity line; the title row holds the name and the
   state, the meta line the card's width; Open the card's one bordered action ---- */
@media (min-width:701px){.home-view .grid.igrid{grid-auto-rows:auto}}
.home-view .ipanel .ip-h{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"n p" "s s";align-items:center;column-gap:12px;row-gap:2px}
.home-view .ipanel .ip-h > .ip-nw{display:contents}
.home-view .ipanel .ip-h > .ip-nw > .ip-n{grid-area:n;min-width:0}
.home-view .ipanel .ip-h > .ip-nw > .specs{grid-area:s;min-width:0}
.home-view .ipanel .ip-h > :is(.tag,.pill,.state-pill,span:last-child:not(.ip-nw)){grid-area:p;justify-self:end;margin:0}
.home-view .ipanel .act.none{display:flex;align-items:center;gap:8px;font:400 13px/18px var(--sans);color:var(--text-3)}
.home-view .ipanel .act.none > .x{color:var(--text-3)}
.home-view .ipanel .acts > button.quiet.lc,:root .home-view .ipanel .acts > button.quiet.lc{margin-left:-8px}

/* ---- home on a phone: the stat strip a 2 × 2 grid with its meters; the request banner's Review under the text ---- */
@media (max-width:700px){
  :root .statstrip-c.kpis.homecap{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  :root .statstrip-c.kpis.homecap > .sc.pool{display:flex}
  :root .statstrip-c.kpis.homecap > .sc.sc.sc{justify-content:flex-start;min-height:0;padding:12px;border:0}
  :root .statstrip-c.kpis.homecap > .sc.sc:nth-child(2n){border-left:1px solid var(--border-soft)}
  :root .statstrip-c.kpis.homecap > .sc.sc:nth-child(n+3){border-top:1px solid var(--border-soft)}
  :root .statstrip-c.kpis.homecap > .sc.sc > .sv{flex-direction:row;align-items:baseline;flex-wrap:wrap;column-gap:6px;font-size:18px;line-height:24px}
  :root .statstrip-c.kpis.homecap > .sc.sc > .sv > .of{display:inline;margin:0;color:var(--text-2)}
  :root .statstrip-c.kpis.homecap > .sc.sc > .sh{display:block;margin:2px 0 10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--text-2)}
  :root .statstrip-c.kpis.homecap > .sc.sc > .meter{display:block;margin-top:auto}
  :root:root .home-view .ap-notice.ap-notice.ap-notice,:root:root .ap-notice.ap-notice{grid-template-columns:32px minmax(0,1fr);row-gap:12px;align-items:start;padding:14px 16px 16px}
  :root:root .ap-notice.ap-notice > .ap-n-ic{align-self:start}
  
  
  
  :root:root .ap-notice.ap-notice > button.ap-n-go{grid-column:1 / -1;grid-row:2;justify-self:stretch;justify-content:center}
}

/* a desktop: a home page dense enough that a toast in the corner clears its last card */
@media (min-width:701px){
  :root:root .home-view > :is(.ihead,.ap-notice,.statstrip-c){margin-bottom:16px}
  :root:root .home-view > :is(.ap-notice,.statstrip-c,.instances){margin-top:0}
  :root:root .home-view .ap-notice.ap-notice.ap-notice{padding-top:12px;padding-bottom:12px}
  :root .home-view .statstrip-c.kpis > .sc.sc > .sv{margin-top:0}
  :root .home-view .statstrip-c.kpis > .sc.sc.hasm > .sh{margin-bottom:8px}
  .home-view .igrid > .card.ipanel{gap:6px}
}

/* ---- home: Suspend a quiet bordered button of Open's height; a released card's memory a dashed rule, not an empty
   meter; the request banner's Review the standard secondary button. On a phone: the stat cells without their
   footnote, no empty activity line, and Review a compact button under the request ---- */
:root:root .home-view .ipanel .acts > button.quiet.lc{margin-left:0}

:root:root .home-view .ipanel > .usage.rel > .meter{margin:0;border-top:1.5px dashed var(--border-strong)}
:root:root .home-view .ipanel > .usage.rel > .meter > i{display:none}

@media (max-width:700px){
  :root .statstrip-c.kpis.homecap > .sc.sc > .sh{display:none}
  :root .statstrip-c.kpis.homecap > .sc.sc > .sv{margin-bottom:10px}
  .home-view .ipanel > .act.none{display:none}
  /* the request beside the icon; the reason, the meta line and Review under both at the full width */
  :root:root:root .home-view .ap-notice.ap-notice{grid-template-columns:32px minmax(0,1fr);column-gap:12px;row-gap:0;align-items:center;padding:14px 16px 16px}
  :root:root:root .home-view .ap-notice.ap-notice > .ap-n-ic{grid-column:1;grid-row:1;align-self:center}
  :root:root:root .home-view .ap-notice.ap-notice > .ap-n-t{display:contents}
  :root:root:root .home-view .ap-notice.ap-notice > .ap-n-t > .ap-n-l1{grid-column:2;grid-row:1;align-self:center}
  
  
  
  :root:root:root .home-view .ap-notice.ap-notice > button.ap-n-go{grid-column:1 / -1;grid-row:4;justify-self:start;margin-top:12px}
}

/* ---- rails: the same card surface as the main column; a rail beside the main column starts at its first card;
   numbered steps neutral ---- */
.card.quiet,section.card.quiet{border:1px solid var(--border);background:var(--surface-1);box-shadow:var(--work-shadow)}
@media (min-width:1100px){.pg2 > .pg-rail{margin-top:34px}}

/* ---- history: one toolbar (the kind as tabs; refresh and Filters), then one table card: a tinted kind tile, the
   operation, its target (instance / bot), who, the status (a glyph and its word), how long it took, the time to the
   second. The column head is the card's tinted band (as on checkpoints); each day a plain caption row; the end of the
   log the card's last quiet row. A phone keeps the same tabs and shows two-line rows: the tile, the operation and its
   time, then the target and who beside the outcome. Only the history markup (hx-*) uses these. ---- */
.history-view .history-main{--hx-new:var(--info);--hx-new-bg:var(--info-soft);--hx-msg:#b9a4f6;--hx-msg-bg:rgba(185,164,246,.15);
  --hx-ck:#5ec6bc;--hx-ck-bg:rgba(94,198,188,.14);--hx-egress:var(--warn);--hx-egress-bg:var(--warn-soft);--hx-bad:var(--bad);--hx-bad-bg:var(--bad-soft);
  --hx-life:#d6d1c8;--hx-life-bg:rgba(255,255,255,.08);--hx-band:var(--surface-2);--hx-line:var(--border-soft);--hx-edge:var(--border);
  display:flex;flex-direction:column;gap:16px}
:root[data-theme="light"] .history-view .history-main{--hx-new:var(--info-ink);--hx-new-bg:rgba(31,95,174,.12);--hx-msg:#5f45b8;--hx-msg-bg:rgba(95,69,184,.12);
  --hx-ck:#0d7268;--hx-ck-bg:rgba(13,114,104,.12);--hx-egress:var(--warn-ink);--hx-egress-bg:rgba(161,70,13,.12);--hx-bad:var(--bad-ink);--hx-bad-bg:rgba(180,35,24,.10);
  --hx-life:#3d3933;--hx-life-bg:rgba(31,27,23,.085);--hx-band:#f5f2ec;--hx-line:#ece6dc;--hx-edge:#d2c9ba}
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]) .history-view .history-main{--hx-new:var(--info-ink);--hx-new-bg:rgba(31,95,174,.12);--hx-msg:#5f45b8;--hx-msg-bg:rgba(95,69,184,.12);
  --hx-ck:#0d7268;--hx-ck-bg:rgba(13,114,104,.12);--hx-egress:var(--warn-ink);--hx-egress-bg:rgba(161,70,13,.12);--hx-bad:var(--bad-ink);--hx-bad-bg:rgba(180,35,24,.10);
  --hx-life:#3d3933;--hx-life-bg:rgba(31,27,23,.085);--hx-band:#f5f2ec;--hx-line:#ece6dc;--hx-edge:#d2c9ba}}
.history-view > .ihead.page{margin-bottom:0}

/* toolbar: the tabs on the hairline; refresh and Filters, one pair of bordered buttons, centred on the tabs' line */
.history-main > .hx-bar{display:flex;align-items:center;gap:12px;min-height:40px;margin:0;padding:0;border-bottom:1px solid var(--border)}
.history-main .hx-tabs{display:flex;align-items:stretch;align-self:stretch;gap:4px;margin:0 0 -1px;padding:0}
.history-main .hx-tabs > button{position:relative;display:inline-flex;align-items:center;gap:8px;height:40px;min-height:40px;margin:0;padding:0 10px;border:0;border-radius:0;background:transparent;box-shadow:none;
  font:500 14px/20px var(--sans);color:var(--text-2);text-transform:capitalize}
.history-main .hx-tabs > button:first-child{margin-left:-10px}
.history-main .hx-tabs > button:hover:not(:disabled){background:transparent;color:var(--text)}
.history-main .hx-tabs > button.on{color:var(--text)}
.history-main .hx-tabs > button.on::after{content:"";position:absolute;left:10px;right:10px;bottom:0;height:2px;border-radius:2px 2px 0 0;background:var(--accent)}
.history-main .hx-tabs > button:focus-visible{outline:2px solid var(--focus-line);outline-offset:-4px;border-radius:8px}
.history-main .hx-tabs > button > .count{display:inline-flex;align-items:center;justify-content:center;font-variant-numeric:tabular-nums}
.history-main .hx-acts{display:flex;align-items:center;gap:8px;margin-left:auto}
.history-main .hx-acts > button:is(.hx-rf,.hx-fbtn),.history-main .hx-acts > button.hx-rf:not(.spin){display:inline-flex;align-items:center;justify-content:center;height:32px;min-height:32px;margin:0;
  border:1px solid var(--border);border-radius:8px;background:transparent;box-shadow:none;opacity:1;font:500 14px/20px var(--sans);color:var(--text)}
.history-main .hx-acts > button.hx-rf{width:32px;padding:0;color:var(--text-2)}
.history-main .hx-acts > button.hx-fbtn{gap:6px}

.history-main .hx-acts > button.hx-rf:disabled{opacity:.6}

.history-main .hx-acts > button.hx-fbtn .fn{font-variant-numeric:tabular-nums}

/* the card: rows run edge to edge; the filter band and notes keep the card's inset */
.history-main > .card.hx-card{padding:0 var(--card-px);overflow:clip;border-color:var(--hx-edge)}
.history-main > .card.hx-card > form.hfilters{margin:var(--card-px) 0}
.history-main > .card.hx-card > p:is(.err,.hint,.empty){margin:16px 0;font-size:13px}
.history-main > .card.hx-card > .skel{padding:16px 0}
.history-main > .card.hx-card.ev > .hrow:first-of-type{border-top:0}

/* the table: the tile, Operation, Target, By, Status, Duration, Time */
.history-main .hx-cols,.history-main .hx-row{display:grid;grid-template-columns:24px minmax(0,1fr) minmax(0,1.4fr) minmax(0,.6fr) 116px 72px 72px;grid-template-rows:minmax(40px,auto);column-gap:16px;align-items:center}
.history-main .hx-cols{grid-template-rows:38px;margin:0 calc(-1 * var(--card-px));border-bottom:1px solid var(--hx-line)}
.history-main .hx-cols > .c-op{grid-column:1 / 3}

.history-main .hx-day{display:flex;align-items:baseline;gap:8px;min-height:0;margin:0 calc(-1 * var(--card-px));padding:14px var(--card-px) 6px;border:0;background:none;
  font:400 13px/18px var(--sans);color:var(--text-2)}
.history-main .hx-day > b{font-weight:600;color:var(--text)}
.history-main .hx-row + .hx-day{border-top:1px solid var(--hx-line);padding-top:16px}
.history-main .hx-row{position:relative;min-height:0;margin:0 calc(-1 * var(--card-px));padding:0 var(--card-px);border-top:1px solid var(--hx-line);transition:background var(--dur-1) var(--ease)}
.history-main .hx-day + .hx-row,.history-main .hx-cols + .hx-row{border-top:0}
.history-main .hx-row:hover{background:var(--hover)}
.history-main .hx-row.sel{background:var(--sel-row,var(--selected))}
.history-main .hx-ic{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:6px;background:var(--hx-life-bg);color:var(--hx-life)}
.history-main .hx-ic > .ic{width:16px;height:16px;stroke-width:2}
.history-main .hx-ic.k-new{background:var(--hx-new-bg);color:var(--hx-new)}
.history-main .hx-ic.k-msg{background:var(--hx-msg-bg);color:var(--hx-msg)}
.history-main .hx-ic.k-ck{background:var(--hx-ck-bg);color:var(--hx-ck)}
.history-main .hx-ic.k-egress{background:var(--hx-egress-bg);color:var(--hx-egress)}
.history-main .hx-ic.k-bad{background:var(--hx-bad-bg);color:var(--hx-bad)}
.history-main .hx-op{display:flex;align-items:center;gap:8px;min-width:0}
.history-main .hx-op > .kind{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:500 14px/20px var(--sans);letter-spacing:0;color:var(--text)}
.history-main .hx-meta{display:contents}
.history-main .hx-tgt{display:flex;align-items:baseline;min-width:0;white-space:nowrap;font:400 14px/20px var(--sans)}
.history-main .hx-tgt :is(.hin,.hbt){display:inline-flex;min-width:0}
.history-main .hx-tgt .hin{flex:0 1 auto}
.history-main .hx-tgt .hbt{flex:0 2 auto}
.history-main .hx-tgt :is(button.link,.nm,.none){position:relative;z-index:1;min-width:0;height:auto;min-height:0;padding:0;border:0;background:none;box-shadow:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  font:inherit;color:var(--text);text-decoration:none}
.history-main .hx-tgt .hbt :is(button.link,.nm),.history-main .hx-tgt span.none{color:var(--text-2)}
.history-main .hx-tgt button.link:hover:not(:disabled){background:none;color:var(--text);text-decoration:underline;text-decoration-color:var(--text-2);text-underline-offset:3px}
.history-main .hx-sep{flex:none;margin:0 5px;color:var(--text-3)}
.history-main .hx-by{display:flex;min-width:0}
.history-main .hx-who{display:inline-flex;align-items:center;gap:8px;min-width:0;font:400 14px/20px var(--sans);color:var(--text-2)}
.history-main .hx-who > .hx-av{flex:none;display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;background:hsl(var(--h,40) var(--av-s) var(--av-l));color:hsl(var(--h,40) 40% var(--av-fl));font:600 10.5px/1 var(--sans)}
.history-main .hx-who > .an{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* the status: a glyph and its word (a check, a cross, a clock); then the duration */
.history-main .hx-res{display:contents}
.history-main .hx-st{display:inline-flex;align-items:center;gap:6px;min-width:0;font:400 14px/20px var(--sans);color:var(--text-2);white-space:nowrap}
.history-main .hx-st > .ic{flex:none;width:16px;height:16px;stroke-width:2;color:var(--text-2)}
.history-main .s-succeeded .hx-st > .ic{color:var(--ok)}
.history-main .s-failed .hx-st > .ic{color:var(--bad)}
.history-main .s-failed .hx-st > .rs{font-weight:500;color:var(--bad-ink,var(--bad))}
.history-main .s-running .hx-st > .ic{color:var(--accent-text)}
.history-main .s-running .hx-st > .rs{color:var(--text)}
.history-main .hx-res > .rd{font:400 14px/20px var(--sans);color:var(--text-2);text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.history-main .hx-t{font:400 14px/20px var(--sans);color:var(--text);text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.history-main .hx-t .ts{font:inherit;color:inherit}
.history-main .hx-t .ts > .ts-s{color:var(--text-2)}
/* the whole row opens the operation: the button covers the row under its links; its chevron sits in the gutter */
.history-main .hx-row > .hx-go{position:absolute;inset:0;z-index:0;display:flex;align-items:center;justify-content:flex-end;width:auto;height:auto;min-height:0;margin:0;padding:0 2px 0 0;
  border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--text-2);cursor:pointer}
.history-main .hx-row > .hx-go:hover:not(:disabled){background:transparent;border:0;color:var(--text)}
.history-main .hx-row > .hx-go > .ic{opacity:0;transition:opacity var(--dur-1) var(--ease)}
.history-main .hx-row:hover > .hx-go > .ic,.history-main .hx-row > .hx-go:focus-visible > .ic,.history-main .hx-row.sel > .hx-go > .ic{opacity:1}
.history-main .hx-row > .hx-go:focus-visible{outline:2px solid var(--focus-line);outline-offset:-2px}
.history-main .hx-row :is(details,.hr-x button,.hr-x a){position:relative;z-index:1}
.history-main .hx-row > .hr-x{grid-column:2 / -1;margin-top:-6px;padding:0 0 10px}
.history-main .hx-row > .hr-x p{margin:0;font-size:13px}
.history-main .hx-end{display:flex;align-items:center;justify-content:center;min-height:40px;margin:0 calc(-1 * var(--card-px));padding:0 var(--card-px);border-top:1px solid var(--hx-line);background:none;
  font:400 13px/18px var(--sans);color:var(--text-2)}
.history-main .hx-card > .hfoot{border-top:1px solid var(--hx-line)}
@media (max-width:1100px) and (min-width:701px){
  .history-main .hx-cols,.history-main .hx-row{grid-template-columns:24px minmax(0,1fr) minmax(0,1.2fr) minmax(0,.7fr) 104px 64px 68px;column-gap:12px}
}

/* phone: the same tabs with refresh and Filters at their end; two-line rows */
@media (max-width:700px){
  .history-view > .ihead.page .ttl{gap:4px}
  .history-main{gap:12px}
  .history-main > .hx-bar{gap:8px;min-height:44px}
  .history-main .hx-tabs{gap:2px}
  .history-main .hx-tabs > button{height:44px;min-height:44px}
  .history-main .hx-acts{gap:8px}
  .history-main .hx-acts > button:is(.hx-rf,.hx-fbtn),.history-main .hx-acts > button.hx-rf:not(.spin){height:36px;min-height:36px;border-radius:8px}
  .history-main .hx-acts > button.hx-rf{width:36px}
  .history-main > .card.hx-card{--card-px:16px}
  .history-main .hx-cols{display:none}
  .history-main .hx-day{padding:12px var(--card-px) 4px}
  .history-main .hx-row + .hx-day{padding-top:14px}
  .history-main .hx-row{grid-template-columns:32px minmax(0,1fr) auto;grid-template-rows:auto auto;grid-template-areas:"ic op t" "ic meta res";column-gap:12px;row-gap:2px;min-height:0;padding:10px var(--card-px)}
  .history-main .hx-row > .hx-ic{grid-area:ic;align-self:center;width:32px;height:32px;border-radius:8px}
  .history-main .hx-row > .hx-ic > .ic{width:17px;height:17px}
  .history-main .hx-row > .hx-op{grid-area:op}
  .history-main .hx-op > .kind{font:600 15px/20px var(--sans)}
  .history-main .hx-row > .hx-t{grid-area:t;align-self:baseline;font-size:13px;color:var(--text-2)}
  .history-main .hx-row > .hx-t .ts > .ts-s{color:inherit}
  .history-main .hx-row > .hx-res{grid-area:res;justify-self:end;align-self:center;display:inline-flex;align-items:center;gap:6px;font:400 13px/18px var(--sans);color:var(--text-2);white-space:nowrap}
  .history-main .hx-res > .hx-st{gap:4px;font:inherit}
  .history-main .hx-res > .hx-st > .ic{width:14px;height:14px}
  .history-main .s-succeeded .hx-res > .hx-st > .rs{display:none}
  .history-main .hx-res > .rd{font:inherit}
  .history-main .hx-res > .rd.none{display:none}
  .history-main .hx-row > .hx-meta{grid-area:meta;display:flex;align-items:center;gap:12px;min-width:0;white-space:nowrap}
  .history-main .hx-meta > .hx-tgt{flex:0 1 auto;font:400 13px/18px var(--sans)}
  .history-main .hx-meta > .hx-by{flex:0 4 auto;display:inline-flex;align-items:center;min-width:16px}
  .history-main .hx-meta .hx-who{gap:5px;font:400 13px/18px var(--sans)}
  .history-main .hx-meta .hx-who > .hx-av{width:16px;height:16px;font-size:9px}
  .history-main .hx-row > .hx-go > .ic{display:none}
  .history-main .hx-row > .hr-x{grid-column:2 / -1;grid-row:3;margin-top:0;padding:4px 0 0}
}
@media (max-width:380px){
  .history-main .hx-acts{flex:none;gap:6px}
  .history-main .hx-tabs > button{min-width:0;padding:0 8px}
  .history-main .hx-tabs > button:first-child{margin-left:-8px}
  .history-main .hx-tabs > button.on::after{left:8px;right:8px}
  .history-main .hx-acts > button.hx-fbtn{width:36px}
  .history-main .hx-acts > button.hx-fbtn > :is(.lt,.fn){position:absolute;width:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .history-main .hx-meta .hx-who > .an{display:none}
}

/* ---- overview: an idle node's body one short row, not a nested box ---- */
.cluster-node .nidle,:root .cluster-node .nidle{flex:none;min-height:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;justify-content:flex-start}

/* ---- one secondary button spec in tool rows: a 600 label with its icon ---- */

/* ---- drawers: a taller fade while the form continues under the footer; a lifted light drawer; muted profile facts ---- */
.overlay > .drawer > .db > :is(form,.dwrap) > .dscroll.can-more,.overlay > .drawer > .db > .dscroll.can-more{-webkit-mask-image:linear-gradient(to bottom,#000 calc(100% - 44px),transparent);mask-image:linear-gradient(to bottom,#000 calc(100% - 44px),transparent)}
:root[data-theme="light"] .overlay > .drawer{box-shadow:0 0 0 1px rgba(40,30,10,.06),-16px 0 48px rgba(40,30,10,.14)}
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]) .overlay > .drawer{box-shadow:0 0 0 1px rgba(40,30,10,.06),-16px 0 48px rgba(40,30,10,.14)}}
.drawer .newinst .fhelp.specline,.drawer .newinst .fhelp.specline .sp{color:var(--text-3)}

/* ---- the classic chat header: the status words plain beside their dot, as in the chat view ---- */
.ccol .bstat.warn{color:var(--text-2)}

/* ---- node Host: the pools on the facts' label column and rhythm ---- */
@media (min-width:701px){.node-view .hostcard ul.pools > li{grid-template-columns:120px minmax(0,1fr) auto;column-gap:12px;min-height:28px}}

/* ---- phone inputs: mono placeholders at the sans placeholders' size ---- */
@media (max-width:700px){input.mono::placeholder,textarea.mono::placeholder{font-size:15px}}

/* ==== r22r end ==== */

/* ==== node admin (sprint) ==== */
/* the lifecycle picker: the unavailable verb a muted card in the same grid, its reason as its line */
.node-view{--na-fill:var(--sunken)}
:root[data-theme="light"] .node-view{--na-fill:var(--surface-2)}
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]) .node-view{--na-fill:var(--surface-2)}}

/* the drain fields: one row, helpers one line each */
.node-view .nactions .fgrid.nact .fhelp{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* the disabled commit: neutral, its label readable; the hint beside it says what is missing */
:root .node-view .nactions button.cf-go:disabled,:root .node-view .nactions button.cf-go:disabled:hover{font-weight:600}

/* Host: one value size; the pools on the facts' columns, the state over the CPUs */
:root .node-view .hostcard dl.props.inline > .pr > dd .stv.admissions{display:inline-flex;align-items:center;gap:8px}
:root .node-view .hostcard dl.props.inline > .pr > dd .stv.admissions > .dot{height:7px;margin:0}
:root .node-view .hostcard .hc-pools > h3.eyebrow > .count.count{display:inline}
:root .node-view .hostcard .hc-pools > h3.eyebrow > .count.count::before{content:"·"}
:root .node-view .hostcard > .hc-pools{border-top:0;padding-top:0}
:root .node-view .hostcard ul.pools > li{display:grid;grid-template-columns:120px minmax(0,1fr);grid-template-rows:auto;align-items:start;column-gap:12px;min-height:0;padding:8px 0;border:0}
:root .node-view .hostcard ul.pools > li > .pn{grid-column:1;grid-row:1;font:400 13.5px/20px var(--sans);color:var(--text-2)}
:root .node-view .hostcard ul.pools > li > .pv{grid-column:2;grid-row:1;display:flex;flex-direction:column;min-width:0}
:root .node-view .hostcard ul.pools > li .ps{display:inline-flex;align-items:center;gap:8px;font:400 14px/20px var(--sans);color:var(--text)}
:root .node-view .hostcard ul.pools > li .ps > .dot{width:7px;height:7px;margin:0}
:root .node-view .hostcard ul.pools > li .pm{grid-row:auto;font:400 13px/18px var(--sans);color:var(--text-2);white-space:normal}
/* Tools: each row's title and line are grid items, so a status sits on the title's line, right after it */

/* the capacity strip: the instances' bar a segment per instance, like the pools' */

/* the unavailable verb: a lock in the radio's place */

/* the commit footer's hint: muted, with its icon */
:root .node-view .nactions footer.cf > p.why:not(:empty){display:flex;align-items:center;gap:8px;margin:0;color:var(--text-2)}
:root .node-view .nactions footer.cf > p.why > .ic{display:inline-block;flex:none;width:15px;height:15px;color:var(--text-2)}
/* Host: the label column to its longest label */
@media (min-width:701px){:root .node-view .hostcard dl.props.inline > .pr,:root .node-view .hostcard ul.pools > li{grid-template-columns:112px minmax(0,1fr)}}
/* room under the last card */
.node-view{padding-bottom:16px}
/* identifiers in mono at the values' optical size */

/* the radios a clear ring in both themes */

/* desktop: the two columns end on one line (the shorter column's last card grows) */
@media (min-width:701px){
  .node-view > .ws{align-items:stretch}
  .node-view > .ws > :is(.ws-main,.ws-rail) > .sec:last-child{flex:1 1 auto;display:flex;flex-direction:column}
  .node-view > .ws > :is(.ws-main,.ws-rail) > .sec:last-child > .sec-b{flex:1 1 auto;display:flex;flex-direction:column}
  .node-view > .ws > :is(.ws-main,.ws-rail) > .sec:last-child > .sec-b > .card:last-child{flex:1 1 auto}
  /* the grown Tools card shares its height between its rows, each centred */
  
  
  
  
  
}
/* a phone: the host's facts right after the actions, the tools last */
@media (max-width:700px){
  .node-view > .ws > .ws-main{display:contents}
  .node-view > .ws > .ws-main > .sec{order:3}
  .node-view > .ws > .ws-main > .sec:first-child{order:1}
  .node-view > .ws > .ws-rail{order:2}
}
/* light: the cards lifted a step off the paper; the chosen card white with a firm amber edge */
:root[data-theme="light"] .node-view .card{border-color:#c9bfae;box-shadow:0 1px 2px rgba(40,30,10,.07),0 2px 8px rgba(40,30,10,.05)}

@media (prefers-color-scheme:light){
  :root:not([data-theme="dark"]) .node-view .card{border-color:#c9bfae;box-shadow:0 1px 2px rgba(40,30,10,.07),0 2px 8px rgba(40,30,10,.05)}
  
}
/* a phone's chosen row: a clear tint (no edge; the rows share the card's) */

@media (max-width:700px){
  :root .node-view .ws-rail .card.hostcard{padding:16px}
  :root .node-view .hostcard dl.props.inline > .pr,:root .node-view .hostcard ul.pools > li{grid-template-columns:110px minmax(0,1fr)}
  /* the capacity legends on one line */
  :root .node-view .statstrip-c .sc .sh .stx{flex-direction:row;flex-wrap:wrap;align-items:center;column-gap:0;row-gap:2px}
  :root .node-view .statstrip-c .sc .sh .stx > .sep{display:inline;margin:0 5px}
  :root .node-view .statstrip-c .sc .sh .stx .sct{gap:4px}
  :root .node-view .statstrip-c .sc .sh .stx .sct > .dot{display:none}
  :root .node-view .statstrip-c .sc .sh .stx .sct:has(> .dot.ok) > b{color:var(--ok)}
  :root .node-view .statstrip-c .sc .sh .stx .sct:has(> .dot.info) > b{color:var(--info)}
  /* the verbs: the name over its line */
  
  
  
  
  /* the optional fields' disclosure: one line, its marker by the chevron */
  :root .node-view .nactions .fgrid.nact > details.disc.nmore{margin:4px -16px 0;border-top:1px solid var(--border)}
  :root .node-view .nactions .fgrid.nact > details.disc.nmore > summary{align-items:center;padding:14px 16px}
  :root .node-view .nactions details.nmore > summary > .d-ch{align-self:center;margin:-8px -8px -8px 0}
  :root .node-view .nactions .fgrid.nact > details.disc.nmore > .d-b{padding:0 16px 16px}
  :root .node-view .nactions details.nmore > summary > .d-t{display:flex;flex-direction:row;align-items:baseline;justify-content:space-between;gap:12px;flex:1 1 auto;min-width:0}
  :root .node-view .nactions details.nmore > summary > .d-t > .d-s{margin:0;font:400 13px/18px var(--sans);color:var(--text-2)}
  /* the commit: its hint and the button on one row while it waits for the target */
  :root .node-view .nactions footer.cf:not(:has(> label.confirm)):has(> p.why:not(:empty)){display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:12px}
  :root .node-view .nactions footer.cf:not(:has(> label.confirm)) > p.why:not(:empty){order:0;flex:1 1 auto;min-width:0;justify-content:flex-start;text-align:left;font:400 13.5px/19px var(--sans)}
  :root .node-view .nactions footer.cf:not(:has(> label.confirm)):has(> p.why:not(:empty)) > button.cf-go{order:1;flex:none;width:auto;min-width:0;height:40px;min-height:40px;margin:0;padding:0 16px}
  /* Tools: no icon tile; the title (its status right after it) over its line, then a compact button */
  
  
  
  
  
  .node-view{padding-bottom:0}
}

/* ==== new instance drawer (sprint) ==== */
/* The essentials are one column of fields (name, profile, mode, egress); the optional choices are an Advanced list of
   disclosure rows (images, resource overrides, charter), so the form fits above its footer. Where it runs and who owns
   it are the header's context lines. Every rule is scoped to the drawer that holds form.newinst. */
:root:root .overlay:has(> .drawer > .db > form.newinst){--ni-pad:24px;background:rgba(0,0,0,.7)}
:root:root[data-theme="light"] .overlay:has(> .drawer > .db > form.newinst){background:rgba(28,22,14,.44)}
@media (prefers-color-scheme:light){:root:root:not([data-theme="dark"]) .overlay:has(> .drawer > .db > form.newinst){background:rgba(28,22,14,.44)}}
:root:root .overlay > .drawer:has(> .db > form.newinst) > .dh.dh{align-items:flex-start;gap:16px;min-height:0;padding:20px 16px 18px var(--ni-pad);border-bottom:1px solid var(--border-soft)}
:root:root .overlay > .drawer:has(> .db > form.newinst) > .dh > .dt{gap:4px}
:root:root .overlay > .drawer:has(> .db > form.newinst) > .dh .dtt{font:600 20px/28px var(--sans);letter-spacing:-.015em}
:root:root .overlay > .drawer:has(> .db > form.newinst) > .dh .dsub{display:flex;flex-direction:column;gap:2px;overflow:visible;white-space:normal;font:400 13px/18px var(--sans);color:var(--text-2)}
:root:root .overlay > .drawer:has(> .db > form.newinst) > .dh .dsub > span{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}

:root:root .overlay > .drawer:has(> .db > form.newinst) > .dh > button.ib.ib{align-self:flex-start;width:32px;height:32px;min-width:32px;min-height:32px;margin:-2px 0 0;border:1px solid var(--border-soft);border-radius:8px;background:color-mix(in srgb,var(--text) 4%,transparent);color:var(--text-2)}
:root:root .overlay > .drawer:has(> .db > form.newinst) > .dh > button.ib.ib:hover{border-color:var(--border);background:color-mix(in srgb,var(--text) 8%,transparent);color:var(--text)}
:root:root .overlay > .drawer > .db > form.newinst > .dscroll{padding:24px var(--ni-pad) 28px;-webkit-mask-image:none;mask-image:none}
:root:root .overlay > .drawer > .db > form.newinst fieldset.ni-sec{min-width:0;margin:0;padding:0;border:0}
:root:root .overlay > .drawer > .db > form.newinst .ni-f{display:flex;flex-direction:column;gap:6px;margin:0}
:root:root .overlay > .drawer > .db > form.newinst .ni-f + .ni-f{margin-top:20px}
:root:root .overlay > .drawer > .db > form.newinst .ni-f > label.f{display:block;margin:0;font:500 14px/20px var(--sans);color:var(--text)}
:root:root .overlay > .drawer > .db > form.newinst .ni-f > label.f > :is(input,select){display:block;box-sizing:border-box;width:100%;height:38px;min-height:38px;margin:6px 0 0;font-size:14px}
:root:root .overlay > .drawer > .db > form.newinst :is(.ni-f,.ni-adv,.d-b) > :is(p.fhelp,p.hint){margin:0;font:400 13px/18px var(--sans);color:var(--text-2);text-wrap:pretty}
/* the profile's facts read as data: a row of quiet chips, figure in the primary text, unit in the helper tone */

/* fields: a crisp focus edge with a faint halo; placeholders lighter than values, so an empty field reads empty */
:root:root .overlay > .drawer > .db > form.newinst.newinst :is(input,select,textarea):focus:focus-visible{border-color:var(--focus);outline:0;box-shadow:0 0 0 1px var(--focus)}
:root:root .overlay > .drawer > .db > form.newinst :is(input,textarea)::placeholder{color:color-mix(in srgb,var(--text-2) 78%,transparent);opacity:1}
/* Advanced: its own section under a hairline, an eyebrow over one bordered list of disclosure rows */
:root:root .overlay > .drawer > .db > form.newinst fieldset.ni-adv{margin-top:24px;padding-top:20px;border-top:1px solid var(--border)}
:root:root[data-theme="light"] .overlay > .drawer > .db > form.newinst fieldset.ni-adv{border-top-color:var(--border-soft)}
@media (prefers-color-scheme:light){:root:root:not([data-theme="dark"]) .overlay > .drawer > .db > form.newinst fieldset.ni-adv{border-top-color:var(--border-soft)}}
:root:root .overlay > .drawer > .db > form.newinst fieldset.ni-adv > legend{float:left;width:100%;margin:0 0 12px;padding:0;font:600 12px/16px var(--sans);letter-spacing:var(--ls-eyebrow);text-transform:uppercase;color:var(--text-2)}
:root:root .overlay > .drawer > .db > form.newinst fieldset.ni-adv > legend + *{clear:both}
:root:root .overlay > .drawer > .db > form.newinst .ni-rows{margin:0;border:1px solid var(--border);border-radius:var(--r-lg);background:color-mix(in srgb,var(--text) 2.5%,transparent);overflow:hidden}
:root:root .overlay > .drawer > .db > form.newinst .ni-rows > * + *{border-top:1px solid var(--border)}
:root:root[data-theme="light"] .overlay > .drawer > .db > form.newinst .ni-rows > * + *{border-top-color:var(--border-soft)}
@media (prefers-color-scheme:light){:root:root:not([data-theme="dark"]) .overlay > .drawer > .db > form.newinst .ni-rows > * + *{border-top-color:var(--border-soft)}}
:root:root .overlay > .drawer > .db > form.newinst .ni-rows > details.ni-row{margin:0;padding:0;border-left:0;border-right:0;border-bottom:0;border-radius:0;background:transparent;box-shadow:none}
:root:root .overlay > .drawer > .db > form.newinst .ni-rows > details.ni-row:first-child{border-top:0}
:root:root .overlay > .drawer > .db > form.newinst .ni-rows > button.ni-row,:root:root .overlay > .drawer > .db > form.newinst .ni-rows > details.ni-row > summary{display:grid;grid-template-columns:18px minmax(0,1fr) 16px;align-items:center;column-gap:14px;box-sizing:border-box;width:100%;height:auto;min-height:60px;margin:0;padding:10px 16px;border-left:0;border-right:0;border-bottom:0;border-radius:0;background:transparent;box-shadow:none;text-align:left;color:var(--text);font:inherit;cursor:pointer;list-style:none;transition:background-color var(--dur-1) var(--ease)}
:root:root .overlay > .drawer > .db > form.newinst .ni-rows > button.ni-row:first-child{border-top:0}
:root:root .overlay > .drawer > .db > form.newinst .ni-rows > details.ni-row > summary::-webkit-details-marker{display:none}
:root:root .overlay > .drawer > .db > form.newinst .ni-rows > button.ni-row:hover:not(:disabled),:root:root .overlay > .drawer > .db > form.newinst .ni-rows > details.ni-row > summary:hover{background:var(--hover)}
:root:root .overlay > .drawer > .db > form.newinst .ni-rows > button.ni-row:focus-visible,:root:root .overlay > .drawer > .db > form.newinst .ni-rows > details.ni-row > summary:focus-visible{outline:2px solid var(--focus-line);outline-offset:-2px;box-shadow:none}
:root:root .overlay > .drawer > .db > form.newinst .ni-rows :is(button.ni-row,summary) > .d-ic{display:inline-grid;place-items:center;align-self:start;box-sizing:border-box;width:18px;height:20px;margin:0;padding:0;border:0;border-radius:0;background:none;color:var(--text-2)}
:root:root .overlay > .drawer > .db > form.newinst .ni-rows :is(button.ni-row,summary) > .d-ic > .ic{width:17px;height:17px}
:root:root .overlay > .drawer > .db > form.newinst .ni-rows :is(.dz-t,.d-t){display:flex;flex-direction:column;gap:1px;min-width:0}
:root:root .overlay > .drawer > .db > form.newinst .ni-rows :is(.dz-t > .lt,.d-t > b){font:500 14px/20px var(--sans);letter-spacing:0;text-transform:none;color:var(--text)}
:root:root .overlay > .drawer > .db > form.newinst .ni-rows :is(.dz-h,.d-s){overflow:hidden;font:400 13px/18px var(--sans);color:var(--text-2);white-space:nowrap;text-overflow:ellipsis}
:root:root .overlay > .drawer > .db > form.newinst .ni-rows :is(button.ni-row > .ic:last-child,summary > .d-ch){box-sizing:content-box;background:none;align-self:center;justify-self:end;width:16px;height:16px;margin:0;padding:0;border-radius:0;color:var(--text-2);transition:transform var(--dur-1) var(--ease)}
:root:root .overlay > .drawer > .db > form.newinst .ni-rows > button.ni-row[aria-expanded="true"] > .ic:last-child,:root:root .overlay > .drawer > .db > form.newinst .ni-rows > details.ni-row[open] > summary > .d-ch{transform:rotate(180deg)}
:root:root .overlay > .drawer > .db > form.newinst .ni-rows > details.ni-row > .d-b{display:flex;flex-direction:column;gap:12px;margin:0;padding:4px 16px 16px 48px;border:0}
:root:root .overlay > .drawer > .db > form.newinst .ni-rows > .overrides{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0;padding:12px 16px 16px 48px;border:0;border-top:1px solid var(--border-soft);border-radius:0;background:transparent;box-shadow:none}
:root:root .overlay > .drawer > .db > form.newinst .ni-rows > .overrides > p.hint{grid-column:1 / -1;margin:0;font:400 13px/18px var(--sans);color:var(--text-2)}
:root:root .overlay > .drawer > .db > form.newinst :is(.ni-imgs,.overrides,.d-b) label.f{display:block;min-width:0;margin:0;font:500 13px/18px var(--sans);color:var(--text)}
:root:root .overlay > .drawer > .db > form.newinst :is(.ni-imgs,.overrides,.d-b) label.f > :is(input,select,textarea){display:block;box-sizing:border-box;width:100%;margin:6px 0 0}
:root:root .overlay > .drawer > .db > form.newinst .ni-imgs{display:grid;grid-template-columns:1fr 1fr;gap:12px}
:root:root .overlay > .drawer > .db > form.newinst fieldset.ni-adv > :is(p.hint,p.err){margin:12px 0 0}
:root:root .overlay > .drawer > .db > form.newinst > .dscroll > :is(p.err,div.err){margin:16px 0 0}
/* the footer shares the sheet's surface under a soft hairline (a soft shadow while the form continues under it); a
   disabled Create is a neutral, plainly inactive button whose label stays legible */
:root:root .overlay > .drawer > .db > form.newinst > .dscroll + .row.row{padding:16px var(--ni-pad);gap:8px;justify-content:flex-end;border-top:1px solid var(--border-soft);background:var(--sheet-bg,var(--surface-1));box-shadow:none}
:root:root .overlay > .drawer > .db > form.newinst > .dscroll + .row.row::before{content:none}
:root:root .overlay > .drawer > .db > form.newinst > .dscroll.can-more + .row.row{box-shadow:0 -8px 16px -10px rgba(0,0,0,.55)}
:root:root[data-theme="light"] .overlay > .drawer > .db > form.newinst > .dscroll.can-more + .row.row{box-shadow:0 -8px 16px -10px rgba(40,28,14,.18)}

@media (max-width:700px){
  :root:root .overlay:has(> .drawer > .db > form.newinst){--ni-pad:16px}
  :root:root .overlay > .drawer:has(> .db > form.newinst){top:0;border-radius:0;box-shadow:none}
  :root:root .overlay > .drawer:has(> .db > form.newinst) > .dh.dh{align-items:flex-start;padding:14px 12px 12px var(--ni-pad);background:transparent}
  :root:root .overlay > .drawer:has(> .db > form.newinst) > .dh .dtt{font-size:18px;line-height:24px}
  :root:root .overlay > .drawer:has(> .db > form.newinst) > .dh > button.ib.ib{align-self:flex-start;width:36px;height:36px;min-width:36px;min-height:36px;margin:-6px 0 0}
  :root:root .overlay > .drawer > .db > form.newinst > .dscroll{padding:20px var(--ni-pad) 16px}
  :root:root .overlay > .drawer > .db > form.newinst .ni-f{gap:4px}
  :root:root .overlay > .drawer > .db > form.newinst .ni-f + .ni-f{margin-top:16px}
  :root:root .overlay > .drawer > .db > form.newinst .ni-f > label.f > :is(input,select){height:42px;min-height:42px;margin-top:6px;font-size:16px}
  :root:root .overlay > .drawer > .db > form.newinst fieldset.ni-adv{margin-top:24px;padding-top:16px}
  :root:root .overlay > .drawer > .db > form.newinst fieldset.ni-adv > legend{margin-bottom:10px}
  :root:root .overlay > .drawer > .db > form.newinst .ni-rows > button.ni-row,:root:root .overlay > .drawer > .db > form.newinst .ni-rows > details.ni-row > summary{min-height:50px;padding:6px 12px}
  :root:root .overlay > .drawer > .db > form.newinst .ni-rows > details.ni-row > .d-b,:root:root .overlay > .drawer > .db > form.newinst .ni-rows > .overrides{padding:4px 12px 16px}
  :root:root .overlay > .drawer > .db > form.newinst .ni-imgs{grid-template-columns:1fr}
  :root:root .overlay > .drawer > .db > form.newinst > .dscroll + .row.row{flex-wrap:nowrap;padding:12px var(--ni-pad) calc(12px + env(safe-area-inset-bottom))}
  :root:root .overlay > .drawer > .db > form.newinst > .dscroll + .row.row > button{flex:1 1 0;height:44px;min-height:44px}
  :root:root .overlay > .drawer > .db > form.newinst > .dscroll + .row.row > button.go{flex:2 1 0}
}
/* ==== new instance drawer (sprint) end ==== */

/* ==== instance admin (sprint) ==== */
/* One page of cards on one rhythm: 20 px card padding (16 on a phone), full-bleed commit footers, tool-style rows. */
.instance-admin{--ia-px:20px;--ia-line:var(--border);--ia-tray:color-mix(in srgb,var(--text) 4%,transparent)}
@media (max-width:700px){.instance-admin{--ia-px:16px}}
/* lifecycle: the choosable verbs as cards; the unavailable ones in one quiet tray under them, on the cards' columns,
   each a lock and its name over why not (the lock on the radio's axis, the name on the titles') */

/* the commit footers: one band, one height, a visible edge in both themes */
:root:root .instance-admin :is(.o-manage,.pol-cards > .card) footer.cf{min-height:60px;margin:20px calc(-1 * var(--ia-px)) calc(-1 * var(--ia-px));padding:12px var(--ia-px);border-top:1px solid var(--ia-line)}

/* a disabled commit is the quiet outline of a button, plainly inactive, its label legible */
:root:root .instance-admin .card footer.cf > button:is(.go,.cf-go):disabled,:root:root .instance-admin .card footer.cf > button:is(.go,.cf-go):disabled:hover{font-weight:500}

/* egress and memory: the settings card, then the temporary grant as its own card */
.instance-admin .o-policy.pol-stack,.instance-admin .o-policy > .policy-bare,.instance-admin form.pol-cards{margin:0;padding:0;border:0;background:none;box-shadow:none}
.instance-admin form.pol-cards{display:flex;flex-direction:column;gap:12px}
:root:root .instance-admin .pol-cards > .card{margin:0;padding:var(--ia-px)}
:root:root .instance-admin .pol-cards > .card > .pol-fields{margin:0}
:root:root .instance-admin .pol-cards > .pol-grant-c:not(.open){padding:0 var(--ia-px)}
:root:root .instance-admin .pol-grant-c > .pol-grant:not(.open){display:grid;grid-template-columns:32px minmax(0,1fr) auto;grid-template-areas:"ic t b";align-items:center;column-gap:14px;min-height:68px;margin:0;padding:12px 0;border:0}

:root:root .instance-admin .o-tools .tool.fold > details > summary .ft > b{font:600 15px/22px var(--sans);color:var(--text)}
:root:root .instance-admin .o-tools .tool.fold > details > summary .ft > span{font:400 13.5px/20px var(--sans);color:var(--text-2);white-space:normal}

/* the rows' buttons: one secondary button, one width */

/* the open grant: its fields, then its own commit footer */
:root:root .instance-admin .pol-grant-c.open > .pol-grant.open{margin:0;padding:0;border:0}
/* tools: the same row as the grant (icon tile, title over line, button) */
:root:root .instance-admin .card.o-tools{padding:0 var(--ia-px)}
:root:root .instance-admin .o-tools > .tool.fold{margin:0;border-top:1px solid var(--ia-line)}
:root:root .instance-admin .o-tools > .tool.fold:first-child{border-top:0}
:root:root .instance-admin .o-tools > .tool.fold > details[open] > summary{background:none;box-shadow:none}

@media (min-width:701px){
  
  
  :root:root .instance-admin .o-tools .tool.fold > details > summary .ft{display:flex;flex-direction:column;gap:0;min-width:0}
}
/* configuration: readable keys and firm values; room between its groups; the second line of a value in the helper size */
:root:root .instance-admin .ia-ov h3.props-h{margin:0 0 10px;font:600 12px/16px var(--sans);letter-spacing:var(--ls-eyebrow,.06em);text-transform:uppercase;color:var(--text-2)}

:root:root .instance-admin .ia-ov dl.props + h3.props-h{margin-top:20px}
:root:root .instance-admin .ia-ov .chg-m{display:block;font:400 13px/18px var(--sans);color:var(--text-3)}
:root:root .instance-admin .ia-ov details.cfg-more{margin-top:20px;border-top-color:var(--ia-line)}
/* configuration: the resources first, as figures (a label over its value) in a grid of soft tiles; the ID a code chip */

:root:root .instance-admin .ia-ov dl.props .pr.pm-id dd button.idchip{height:24px}
:root:root .instance-admin .ia-ov dl.props .pr.pm-id dd button.idchip:hover:not(:disabled){border-color:var(--border-strong);text-decoration:none}
:root:root .instance-admin .ia-ov dl.props .pr.pm-id{align-items:center}
/* danger zone: the button under its sentence, at the text's start */
:root:root .instance-admin section.dzrow{display:flex;flex-direction:column;align-items:flex-start;gap:14px;padding:var(--ia-px)}
:root:root .instance-admin section.dzrow > button.danger{align-self:flex-start;margin:0;height:34px;min-height:34px;padding:0 14px}
:root:root .instance-admin section.dzrow > .dz-t,:root:root .instance-admin section.dzrow > .dz-t > .dz-l{font:400 14px/20px var(--sans);color:var(--text-2)}
/* light: the cards lifted a step off the paper, as node administration; the chosen card a soft tint in a firm edge */
:root[data-theme="light"] .instance-admin :is(.card,section.dzrow){border-color:#c9bfae;box-shadow:0 1px 2px rgba(40,30,10,.07),0 2px 8px rgba(40,30,10,.05)}

@media (prefers-color-scheme:light){
  :root:not([data-theme="dark"]) .instance-admin :is(.card,section.dzrow){border-color:#c9bfae;box-shadow:0 1px 2px rgba(40,30,10,.07),0 2px 8px rgba(40,30,10,.05)}
  
}
/* a phone */
@media (max-width:700px){
  .instance-admin .ws{margin-top:8px}
  /* the verbs: a list of rows, the name over its line; the chosen row an amber edge; the unavailable rows under a hairline */
  
  
  
  
  
  /* the unavailable verbs fold into one quiet row under the list (a lock, "Not available now", their names); open,
     a row each: the name, and why not at the right */
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  /* the grant: a row like the tools' (an icon tile, a title over its line, a chevron), the whole row its button */
  :root:root .instance-admin .pol-grant-c:not(.open){position:relative}
  :root:root .instance-admin .pol-grant-c > .pol-grant:not(.open){grid-template-columns:32px minmax(0,1fr) 32px;grid-template-areas:"ic t ch";column-gap:12px;min-height:68px;padding:12px 0}
  
  
  
  
  
  /* inputs at 16 px (no zoom on focus), the full-width commits one size */
  :root:root .instance-admin .pol-fields :is(select,input){font-size:16px}
  :root:root .instance-admin .card footer.cf > button:is(.go,.cf-go,.danger),:root:root .instance-admin section.dzrow > button.danger{font-size:15px}
  /* configuration: four key facts in a two-by-two grid, every other fact behind More details */
  :root:root .instance-admin .card.ia-ov.ia-ov-m{padding:16px 16px 0}
  
  
  
  
  :root:root .instance-admin .ia-ov-m details.cfg-more{margin:16px -16px 0;border-top:1px solid var(--ia-line)}
  :root:root .instance-admin .ia-ov-m details.cfg-more > summary{padding:14px 16px}
  :root:root .instance-admin .ia-ov-m details.cfg-more > .d-b{padding:4px 16px 16px}
  
  :root:root .instance-admin section.dzrow{align-items:stretch}
  :root:root .instance-admin section.dzrow > button.danger{align-self:stretch;width:100%;height:44px;min-height:44px}
}
/* ==== instance admin (sprint) end ==== */

/* ==== images (sprint) ==== */
/* one column of sections; the list, then the register card with its guide beside it */
:root .images-view{--im-pad:28px;--im-help:13.5px}
:root .images-view > .imgpg{display:flex;flex-direction:column;gap:32px;min-width:0}
:root .images-view > .imgpg > .sec{margin:0}
/* both cards: a firmer edge than the default card so they hold against the light paper */
:root:root .images-view :is(.card.imgs,.card.register.imreg){border:1px solid var(--border);border-radius:var(--r-lg);background:var(--surface-1);box-shadow:var(--shadow-card)}
:root:root[data-theme="light"] .images-view :is(.card.imgs,.card.register.imreg){border-color:color-mix(in srgb,var(--border) 70%,var(--border-strong));box-shadow:0 1px 3px rgba(41,33,17,.07),0 1px 1px rgba(41,33,17,.04)}
@media (prefers-color-scheme:light){:root:root:not([data-theme="dark"]) .images-view :is(.card.imgs,.card.register.imreg){border-color:color-mix(in srgb,var(--border) 70%,var(--border-strong));box-shadow:0 1px 3px rgba(41,33,17,.07),0 1px 1px rgba(41,33,17,.04)}}
/* an empty inventory: one compact row (icon, title, a line that points at the form below) */
:root:root .images-view .card.imgs.is-empty{display:block;min-height:0;padding:0;overflow:hidden}

/* the register row: the card, and on a wide screen the guide beside it on the page */
:root .images-view .imreg-row{display:block;min-width:0}
@media (min-width:1100px){:root .images-view .imreg-row.wide{display:grid;grid-template-columns:minmax(0,1fr) 320px;column-gap:48px;align-items:start}}
:root:root .images-view .card.register.imreg{display:block;width:auto;max-width:none;margin:0;padding:0;overflow:hidden}
:root .images-view .card.register.imreg > form{display:flex;flex-direction:column;margin:0}
:root .images-view .imreg .im-body{display:block;min-width:0}
:root:root .images-view .imreg .fgrid.imfields{display:grid;grid-template-columns:minmax(0,1fr);gap:24px;margin:0;padding:var(--im-pad)}
:root:root .images-view .imreg .fgrid.imfields > .fld{margin:0;grid-column:auto}
:root:root .images-view .imreg .fgrid.imfields > .fld > label.f{margin:0;font:500 14px/20px var(--sans);color:var(--text)}
:root:root .images-view .imreg .fgrid.imfields > .fld > label.f > .opt{margin-left:0;font:400 13.5px/20px var(--sans);color:var(--text-2)}
:root:root .images-view .imreg .fgrid.imfields > .fld > label.f > :is(input,select){margin-top:8px;font-weight:400}
:root:root .images-view .imreg .fgrid.imfields > .fld > p.fhelp{margin:8px 0 0;font:400 var(--im-help)/20px var(--sans);color:var(--text-2);text-wrap:pretty}
:root:root .images-view .imreg .fgrid.imfields > .fld > p.fhelp > code{display:inline;padding:1px 4px;margin:0;border:0;border-radius:5px;background:var(--surface-2);font:400 12.5px/18px var(--mono);color:var(--text);white-space:nowrap}
:root .images-view .imreg input.mono{font-family:var(--mono)}
:root:root .images-view .imreg input.mono::placeholder{font:inherit;color:var(--placeholder);opacity:1}
/* the guide (wide): quiet numbered steps on a thin rail, on the page beside the card */

/* the guide below the wide breakpoint: one disclosure row atop the card, on the card's own surface */

/* the footer: the hint beside the commit, both at the right */
:root:root .images-view .card.register.imreg > form > footer.cf{display:flex;flex-direction:row;align-items:center;justify-content:flex-end;gap:16px;min-height:64px;margin:0;padding:12px var(--im-pad);border-top:1px solid var(--border-soft);border-radius:0;background:var(--surface-quiet)}
:root:root .images-view .card.register.imreg > form > footer.cf > p.why{flex:0 1 auto;min-width:0;margin:0;display:flex;align-items:center;gap:8px;font:400 13.5px/20px var(--sans);color:var(--text-2)}
:root:root .images-view .card.register.imreg > form > footer.cf > p.why:empty{display:none}
:root:root .images-view .card.register.imreg > form > footer.cf > p.why > .ic{display:inline-block;flex:none;width:15px;height:15px;margin:0;color:var(--text-2)}
:root:root .images-view .card.register.imreg > form > footer.cf > button.go{flex:none;display:inline-flex;align-items:center;justify-content:center;gap:6px;margin:0;min-width:148px;padding:0 16px}
:root:root .images-view .card.register.imreg > form > footer.cf > button.go > .ic{flex:none;width:15px;height:15px;margin:0}
:root:root .images-view .card.register.imreg > form > p.err{margin:0 var(--im-pad) 16px}
:root:root .images-view .card.register.imreg > .opstate{margin:0;padding:12px var(--im-pad) 16px;border:0;border-top:1px solid var(--border-soft);border-radius:0;background:var(--surface-quiet);box-shadow:none}
:root:root .images-view .card.register.imreg > .opstate:empty{display:none}
/* a disabled commit: a neutral bordered button with a legible label, plainly not ready */
:root:root .images-view .card.register footer.cf > button.go:disabled,:root:root .images-view .card.register footer.cf > button.go:disabled:hover{font-weight:600}
/* a populated inventory: one table of rows under the column header */
:root:root .images-view .card.imgs > .image-list{display:block;margin:0;padding:0}
:root:root .images-view .card.imgs > .imcols{padding:0 20px}
:root:root .images-view .card.imgs .image.imrow{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,.8fr) minmax(0,2fr) minmax(0,1fr);column-gap:16px;align-items:center;min-height:60px;margin:0;padding:10px 20px;border:0;border-top:1px solid var(--border-soft);border-radius:0;background:none;box-shadow:none}
:root:root .images-view .card.imgs .image.imrow:first-child{border-top:0}
:root:root .images-view .card.imgs .image.imrow > .im-k{display:flex;align-items:center;min-width:0}
:root:root .images-view .card.imgs .image.imrow .im-p{gap:2px}
:root:root .images-view .card.imgs .image.imrow .im-p code{max-width:100%;margin:0;padding:0;border:0;background:none;font:400 12.5px/18px var(--mono)}
@media (max-width:700px){
  :root .images-view{--im-pad:16px;--im-help:14px}
  :root .images-view > .imgpg{gap:24px}
  
  :root:root .images-view .imreg .fgrid.imfields{padding:18px 16px 20px;gap:18px}
  :root:root .images-view .imreg .fgrid.imfields > .fld > label.f > :is(input,select){margin-top:6px}
  :root:root .images-view .imreg .fgrid.imfields > .fld > p.fhelp{margin-top:6px}
  :root:root .images-view .imreg input.mono{font-size:15px}
  
  
  :root:root .images-view .card.register.imreg > form > footer.cf{flex-direction:column;align-items:stretch;gap:12px;padding:14px 16px 16px}
  :root:root .images-view .card.register.imreg > form > footer.cf > p.why{justify-content:center}
  :root:root .images-view .card.register.imreg > form > footer.cf > button.go{width:100%;margin:0}
  :root:root .images-view .card.register.imreg > form > p.err{margin:0 16px 12px}
  :root:root .images-view .card.imgs .image.imrow{grid-template-columns:minmax(0,1fr) auto;row-gap:6px;padding:14px 16px}
  :root:root .images-view .card.imgs .image.imrow > :is(.im-p,.im-r){grid-column:1 / -1}
  :root:root .images-view .card.imgs .image.imrow > .im-r{flex-direction:row;flex-wrap:wrap;column-gap:6px}
  :root:root .images-view .card.imgs .image.imrow > .im-r > .meta::before{content:"·";margin-right:6px;color:var(--text-3)}
}
/* ==== images (sprint) end ==== */

/* ==== terminal (sprint) ==== */
/* The terminal page before a session: the page heading, then one terminal window filling the rest of the page. Its
   title bar names the shell (root@instance) and says it is not connected; its body is the recessed well where the shell
   will run, holding the start step as one flat card: header, the recording notice, the typed confirm with Start beside
   it, and History as the footer caption. The xterm host stays laid out but hidden under it (xterm needs its width).
   Once a session exists the window is the dark .tframe. Phones drop the card chrome: the window body is the card. */

/* the start card: flat (border, hairline shadow), so it reads as the window's content rather than a dialog over it */

/* the typed confirm and Start as one row: the label line over the input, Start level with the input */

/* locked until the name matches: a borderless neutral fill (no edge, unlike a secondary button), the label readable */

/* footer: History as a quiet caption */

@media (max-width:700px){
  
  
  
  
  
  /* the window's foot (Start over the History caption, 116 px) is one tinted action bar under a hairline */
  
  
  
  /* Start drops to the bottom of the window, over the History caption: the action sits in thumb reach */
  
  
  
  
  
  
}
/* ==== terminal (sprint) end ==== */

/* ==== bot admin (sprint) ==== */
/* The instance administration grammar for one bot: 20 px cards (16 on a phone), the unavailable verbs in a quiet
   tray, full-bleed commit footers, the rail's facts on 32 px rows, the danger zone closing the main column. */
.bot-admin-view{--ba-px:20px;--ba-gap:12px;--ba-line:var(--border);--ba-tray:color-mix(in srgb,var(--text) 4%,transparent);--ba-fill:color-mix(in srgb,var(--text) 5%,transparent);--ba-fill-h:color-mix(in srgb,var(--text) 8%,transparent);--ba-na:color-mix(in srgb,var(--text) 3%,transparent);--ba-pick:color-mix(in srgb,var(--accent) 11%,transparent)}
:root[data-theme="light"] .bot-admin-view{--switch-off:#cdc4b5;--switch-off-edge:#ab9f8b;--ba-fill:color-mix(in srgb,var(--text) 5%,transparent);--ba-na:color-mix(in srgb,var(--text) 2.5%,transparent);--ba-fill-h:color-mix(in srgb,var(--text) 7%,transparent);--ba-pick:color-mix(in srgb,var(--accent) 17%,transparent)}
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]) .bot-admin-view{--switch-off:#cdc4b5;--switch-off-edge:#ab9f8b;--ba-fill:color-mix(in srgb,var(--text) 5%,transparent);--ba-na:color-mix(in srgb,var(--text) 2.5%,transparent);--ba-fill-h:color-mix(in srgb,var(--text) 7%,transparent);--ba-pick:color-mix(in srgb,var(--accent) 17%,transparent)}}
@media (max-width:700px){.bot-admin-view{--ba-px:16px}}
:root:root .bot-admin-view .ws-main,:root:root .bot-admin-view .ws-rail{gap:32px}
:root:root .bot-admin-view .card:is(.o-act,.o-ov,.o-ck){padding:var(--ba-px)}
/* checkpoints: an empty inventory is one compact row on the shared card surface */
:root:root .bot-admin-view .card.o-ck.is-empty{padding:0}
:root:root .bot-admin-view .card.o-ck.is-empty > .empty-state{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:14px;margin:0}
:root:root .bot-admin-view .card.o-ck.is-empty > .empty-state > .es-ic{flex:none;display:inline-grid;place-items:center;margin:0}

:root:root .bot-admin-view .card.o-ck.is-empty > .empty-state > .es-t{display:flex;flex-direction:column;align-items:flex-start;gap:0;margin:0}
:root:root .bot-admin-view .card.o-ck.is-empty > .empty-state > .es-t > b{margin:0}
:root:root .bot-admin-view .card.o-ck.is-empty > .empty-state > .es-t > span{margin:0;max-width:none}
/* the verbs: one radio group of soft filled tiles (two by two with four), no edges of their own; the chosen tile an
   amber tint in an amber edge; an unavailable one an empty tile with a dimmed radio, its lock leading its reason */

/* unavailable: the same tile one step quieter (a fainter fill, a dimmed solid radio, a 500-weight name), its lock
   (the radio slot's icon) moved to lead the reason */

/* the checkpoint form: two fields on one grid (a label over its control over its hint, both columns on one baseline) */
:root:root .bot-admin-view .o-act .fgrid.lp{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px var(--ba-gap);align-items:start;max-width:none;margin:20px 0 0;padding:0}
:root:root .bot-admin-view .o-act .fgrid.lp > label.f.ba-lbl{display:block;min-width:0;margin:0;font:500 14px/20px var(--sans);color:var(--text)}
:root:root .bot-admin-view .o-act .fgrid.lp > label.f.ba-lbl > .opt{font-weight:400;color:var(--text-2)}
:root:root .bot-admin-view .o-act .fgrid.lp > label.f.ba-lbl > input{display:block;box-sizing:border-box;width:100%;height:40px;min-height:40px;margin:8px 0 0}
:root:root .bot-admin-view .o-act .fgrid.lp .hint{display:block;margin:8px 0 0;font:400 13px/18px var(--sans);color:var(--text-2)}

/* the other verbs' fields: one grid with 16 px rows; a switch's hint tucked under it */
:root:root .bot-admin-view .o-act > .fgrid:not(.lp){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px var(--ba-gap);align-items:start;max-width:none;margin:20px 0 0;padding:0}
:root:root .bot-admin-view .o-act > .fgrid:not(.lp) > .span2{grid-column:1 / -1}
:root:root .bot-admin-view .o-act > .fgrid:not(.lp) > :is(label,p){margin:0}
:root:root .bot-admin-view .o-act > .fgrid:not(.lp) .hint{display:block;margin:6px 0 0;font:400 13px/18px var(--sans);color:var(--text-2)}
:root:root .bot-admin-view .o-act > .fgrid:not(.lp) > label.check + p.hint{margin-top:-8px}
/* delete chosen: the actions card's closing line, spaced like a footer note */
:root:root .bot-admin-view .o-act > p.cf-note{margin:16px 0 0;font:400 14px/20px var(--sans);color:var(--text-2)}

/* the commit footer: one full-bleed band; a disabled commit the quiet outline of a button, its label legible */
:root:root .bot-admin-view .o-act > footer.cf{min-height:60px;margin:20px calc(-1 * var(--ba-px)) calc(-1 * var(--ba-px));padding:12px var(--ba-px);border-top:1px solid var(--ba-line);background:transparent}
:root:root .bot-admin-view .o-act > footer.cf > .cf-note{font:400 13.5px/20px var(--sans);color:var(--text-2)}
:root:root .bot-admin-view .card footer.cf button:is(.go,.cf-go):disabled,:root:root .bot-admin-view .card footer.cf button:is(.go,.cf-go):disabled:hover{font-weight:500}
/* details (the rail): readable keys and firm values on 32 px rows; the conversation a closing footer row */
:root:root .bot-admin-view .card.o-ov{display:flex;flex-direction:column}
/* with no checkpoints and the checkpoint form chosen the two columns are near one height: the rail stretches to the
   main column's bottom and the conversation row closes it there (longer main columns keep the sticky rail) */
@media (min-width:701px){
  :root:root .bot-admin-view .ws.ba:has(.o-ck.is-empty):has(.o-act .fgrid.lp){align-items:stretch}
  :root:root .bot-admin-view .ws.ba:has(.o-ck.is-empty):has(.o-act .fgrid.lp) > .ws-rail{position:static;align-self:stretch}
  :root:root .bot-admin-view .ws.ba:has(.o-ck.is-empty):has(.o-act .fgrid.lp) > .ws-rail > .sec:last-child,:root:root .bot-admin-view .ws.ba:has(.o-ck.is-empty):has(.o-act .fgrid.lp) > .ws-rail > .sec:last-child > .sec-b{display:flex;flex-direction:column;flex:1 1 auto}
  :root:root .bot-admin-view .ws.ba:has(.o-ck.is-empty):has(.o-act .fgrid.lp) > .ws-rail > .sec:last-child > .sec-b > .card.o-ov{flex:1 1 auto}
}
:root:root .bot-admin-view .o-ov h3.props-h{margin:0 0 6px;font:600 12px/16px var(--sans);letter-spacing:var(--ls-eyebrow,.06em);text-transform:uppercase;color:var(--text-3)}

:root:root .bot-admin-view .o-ov dl.props + h3.props-h{margin:14px calc(-1 * var(--ba-px)) 6px}
:root:root .bot-admin-view .o-ov dl.props .pr.pm-id{align-items:center}
:root:root .bot-admin-view .o-ov dl.props .pr.pm-id dd button.idchip{height:24px}
:root:root .bot-admin-view .o-ov dl.props .pr.pm-id dd button.idchip:hover:not(:disabled){border-color:var(--border-strong);text-decoration:none}
:root:root .bot-admin-view .o-ov dl.props dd button.link.elink{text-decoration:underline;text-decoration-color:var(--border-strong);text-underline-offset:3px}
:root:root .bot-admin-view .o-ov dl.props dd button.link.elink:hover{text-decoration-color:currentColor}
:root:root .bot-admin-view .card.o-ov > .convo-row{margin:auto calc(-1 * var(--ba-px)) calc(-1 * var(--ba-px));padding:0;border-top:1px solid var(--ba-line)}
:root:root .bot-admin-view .card.o-ov:not(.ba-ov-m) > :is(.props-h,dl,details):has(+ .convo-row){margin-bottom:18px}
:root:root .bot-admin-view .card.o-ov > :is(.props-h,dl,details) + .convo-row{margin-top:auto}
:root:root .bot-admin-view .card.o-ov > .convo-row > button.convo-t{display:flex;align-items:center;gap:12px;width:100%;min-height:0;margin:0;padding:12px 12px 12px var(--ba-px);border:0;border-radius:0 0 calc(var(--r-lg) - 1px) calc(var(--r-lg) - 1px);background:none;box-shadow:none;text-align:left}
:root:root .bot-admin-view .card.o-ov > .convo-row > button.convo-t.on{border-radius:0}
:root:root .bot-admin-view .card.o-ov > .convo-row > button.convo-t:hover:not(:disabled){background:var(--hover)}
:root:root .bot-admin-view .card.o-ov > .convo-row > button.convo-t:hover > .d-t > b{text-decoration:none}
:root:root .bot-admin-view .card.o-ov > .convo-row > button.convo-t:focus-visible{outline:var(--focus-outline);outline-offset:-2px}
:root:root .bot-admin-view .card.o-ov > .convo-row > button.convo-t > .d-t{display:flex;flex-direction:column;gap:0;flex:1 1 auto;min-width:0}
:root:root .bot-admin-view .card.o-ov > .convo-row > button.convo-t > .d-t > b{font:600 14px/20px var(--sans);color:var(--text)}
:root:root .bot-admin-view .card.o-ov > .convo-row > button.convo-t > .d-t > .d-s{font:400 13px/18px var(--sans);color:var(--text-3)}
:root:root .bot-admin-view .card.o-ov > .convo-row > button.convo-t > .d-ch{flex:none;box-sizing:border-box;width:32px;height:32px;padding:8px;margin:0;color:var(--text-2);transition:transform var(--dur-2) var(--ease)}
:root:root .bot-admin-view .card.o-ov > .convo-row > button.convo-t.on > .d-ch{transform:rotate(180deg)}
:root:root .bot-admin-view .card.o-ov > .convo-row > .convo{margin:0;padding:0 var(--ba-px) var(--ba-px)}
/* the danger zone: the main column's last card, one row (why at the start, the button at the end) */
:root:root .bot-admin-view section.dzrow{display:flex;flex-direction:row;align-items:center;gap:16px;padding:16px var(--ba-px)}
:root:root .bot-admin-view section.dzrow > .dz-t{display:flex;flex-direction:column;gap:2px;flex:1 1 auto;min-width:0}
:root:root .bot-admin-view section.dzrow > .dz-t > .dz-h{font:600 14px/20px var(--sans);color:var(--text)}
:root:root .bot-admin-view section.dzrow > .dz-t > .dz-l{font:400 13.5px/20px var(--sans);color:var(--text-2)}
:root:root .bot-admin-view section.dzrow > .dz-pick{flex:none;margin:0 0 0 auto;width:auto}
:root:root .bot-admin-view section.dzrow > .dz-pick > button.danger{height:34px;min-height:34px;width:auto;padding:0 14px}
/* light: the cards lifted a step off the paper, as instance administration */
:root[data-theme="light"] .bot-admin-view :is(.card,section.dzrow){border-color:#c9bfae;box-shadow:0 1px 2px rgba(40,30,10,.07),0 2px 8px rgba(40,30,10,.05)}
@media (prefers-color-scheme:light){
  :root:not([data-theme="dark"]) .bot-admin-view :is(.card,section.dzrow){border-color:#c9bfae;box-shadow:0 1px 2px rgba(40,30,10,.07),0 2px 8px rgba(40,30,10,.05)}
}
/* a phone */
@media (max-width:700px){
  /* one 20 px rhythm: the page head to the first section and section to section */
  :root:root .bot-admin-view .ws{margin-top:0}
  :root:root .bot-admin-view .ws-main{gap:20px}
  
  /* the bar: the bot and its instance on one line, the instance bar's height */
  :root:root .bot-admin-view .ihx.bot .ih-row > .ih-t{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;align-self:center;gap:6px;height:auto;min-width:0;margin:0}
  :root:root .bot-admin-view .ihx.bot .ih-row > .ih-t > .ih-title{flex:none;min-width:0;max-width:55%}
  :root:root .bot-admin-view .ihx.bot .ih-row > .ih-t > .ih-sub.ih-sub{display:block;flex:0 1 auto;min-width:0;max-width:none;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:400 14px/20px var(--sans);color:var(--text-2)}
  :root:root .bot-admin-view .ihx.bot .ih-row > .ih-t > .ih-sub.ih-sub::before{content:"in ";margin:0}
  /* the verbs: the same tiles two by two, compact; each line under its radio and name */
  
  
  
  
  :root:root .bot-admin-view .o-act .fgrid.lp{grid-template-columns:minmax(0,1fr);gap:14px;margin-top:16px}
  :root:root .bot-admin-view .o-act > .fgrid:not(.lp){grid-template-columns:minmax(0,1fr);margin-top:16px}
  :root:root .bot-admin-view .o-act > .fgrid :is(input:not([type=checkbox]),select){height:44px;min-height:44px;font-size:16px}
  :root:root .bot-admin-view .o-act .fgrid.lp > label.f.ba-lbl > input{height:44px;min-height:44px;font-size:16px}
  
  
  
  :root:root .bot-admin-view .o-act > footer.cf{margin-top:16px}
  :root:root .bot-admin-view .o-act > footer.cf > p.cf-note + .why:empty + .row,:root:root .bot-admin-view .o-act > footer.cf > p.cf-note + .row{margin-top:-4px}
  :root:root .bot-admin-view .card footer.cf button:is(.go,.cf-go,.danger),:root:root .bot-admin-view section.dzrow > .dz-pick > button.danger{font-size:15px}
  /* details: four key facts on the rail's label/value rows, every other fact behind More details, then the conversation row */
  :root:root .bot-admin-view .card.o-ov.ba-ov-m{padding:10px 16px 0}
  
  
  
  
  :root:root .bot-admin-view .ba-ov-m > details.ba-more{margin:10px -16px 0;border-top:1px solid var(--ba-line)}
  :root:root .bot-admin-view .ba-ov-m > details.ba-more > summary{display:flex;align-items:center;gap:12px;min-height:0;padding:12px 12px 12px 16px;margin:0}
  :root:root .bot-admin-view .ba-ov-m > details.ba-more > summary > .d-ch{box-sizing:border-box;width:32px;height:32px;margin:0;padding:8px}
  :root:root .bot-admin-view .ba-ov-m > details.ba-more > summary > .d-t{display:flex;flex-direction:column;gap:0;flex:1 1 auto;min-width:0}
  :root:root .bot-admin-view .ba-ov-m > details.ba-more > summary > .d-t > b{font:600 14px/20px var(--sans);color:var(--text)}
  :root:root .bot-admin-view .ba-ov-m > details.ba-more > summary > .d-t > .d-s{font:400 13px/18px var(--sans);color:var(--text-3)}
  :root:root .bot-admin-view .ba-ov-m > details.ba-more > .d-b{padding:8px 16px 16px;margin:0}
  
  
  :root:root .bot-admin-view .card.o-ov.ba-ov-m > .convo-row{margin:0 -16px}
  :root:root .bot-admin-view section.dzrow{flex-direction:column;align-items:stretch;gap:14px;padding:16px}
  :root:root .bot-admin-view section.dzrow > .dz-pick{width:100%;margin:0}
  :root:root .bot-admin-view section.dzrow > .dz-pick > button.danger{width:100%;height:44px;min-height:44px}
}
/* ==== bot admin (sprint) end ==== */

/* ==== home (sprint) ==== */
/* the request banner: the request and its reason on one line, the meta under it, Review centred on both */
@media (min-width:701px){
  :root:root:root:root .home-view .ap-notice.ap-notice{column-gap:16px;padding:12px 16px 12px 20px}
  :root:root:root:root .home-view .ap-notice:not(.many) > .ap-n-t{flex-direction:row;flex-wrap:wrap;align-items:baseline;column-gap:12px;row-gap:2px}
  :root:root:root:root .home-view .ap-notice:not(.many) > .ap-n-t > .ap-n-l1{flex:0 1 auto;min-width:0}
  
  
}
/* the capacity strip: the cards' 20 px inset */
@media (min-width:701px){
  :root:root:root:root .home-view .statstrip-c.kpis.homecap > .sc.sc{padding:12px 20px 14px}
  :root:root:root:root .home-view .statstrip-c.kpis.homecap > .sc.sc > .sh{display:none}
  :root:root:root:root .home-view .statstrip-c.kpis.homecap > .sc.sc > .sv{margin:2px 0 12px}
}
/* the instance cards: identity (name, state, the meta line), memory as one line (label, value, the meter after
   them), the bots, the newest activity in a quiet well, then the footer; no empty activity rows */
:root:root:root:root .home-view .igrid > .card.ipanel{gap:8px;padding:16px 20px 0}
:root:root:root:root .home-view .ipanel .ip-h{row-gap:4px;margin-bottom:4px}
:root:root:root:root .home-view .ipanel .ip-h .specs{font-size:13px;line-height:18px;color:var(--text-2)}
:root:root:root:root .home-view .ipanel > .usage,:root:root:root:root .home-view .ipanel > .usage.rel{display:grid;grid-template-columns:auto auto minmax(48px,1fr);grid-template-areas:none;align-items:center;column-gap:12px;row-gap:0;min-height:20px}
:root:root:root:root .home-view .ipanel > .usage > .ip-k{grid-area:auto;grid-column:1;grid-row:1;font:400 13.5px/20px var(--sans);color:var(--text-2)}
:root:root:root:root .home-view .ipanel > .usage > .uv,:root:root:root:root .home-view .ipanel > .usage.rel > .uv.rel-v{grid-area:auto;grid-column:2;grid-row:1;justify-self:start;font:400 13.5px/20px var(--sans);color:var(--text-2)}
:root:root:root:root .home-view .ipanel > .usage > .meter{grid-area:auto;grid-column:3;grid-row:1;width:100%;margin:0}
:root:root:root:root .home-view .ipanel > .usage.rel > .meter{display:none}
:root:root:root:root .home-view .ipanel > .act.none{display:none}
:root:root:root:root .home-view .ipanel .ip-bots{gap:8px}
:root:root:root:root .home-view .ipanel .ip-bots button.addbot{display:inline-flex;align-items:center;justify-content:center;gap:4px;width:auto;height:28px;min-width:0;min-height:28px;padding:0 11px 0 8px;border:1px dashed var(--border-strong);border-radius:999px;background:transparent;color:var(--text-2);font:500 13px/18px var(--sans)}
:root:root:root:root .home-view .ipanel .ip-bots button.addbot:hover:not(:disabled){border-style:solid;border-color:var(--border-strong);background:var(--hover);color:var(--text)}
:root:root:root:root .home-view .ipanel .ip-bots button.addbot > .ab-l{display:inline}
:root:root:root:root .home-view .ipanel > .act:not(.none){display:grid;grid-template-columns:16px minmax(0,1fr) auto;align-items:start;column-gap:8px;margin:0;padding:6px 10px;border-radius:8px;background:var(--act-well);font:400 13px/20px var(--sans)}
:root:root:root:root .home-view .ipanel > .act:not(.none) > .a-ic{display:inline-grid;place-items:center;height:20px;color:var(--text-2)}
:root:root:root:root .home-view .ipanel > .act:not(.none) > .x{display:block;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--text-2)}
:root:root:root:root .home-view .ipanel > .act:not(.none) > .x > .t{font-weight:600;color:var(--text)}
:root:root:root:root .home-view .ipanel > .act:not(.none) > .x > .xd{display:inline;color:var(--text-2)}
:root:root:root:root .home-view .ipanel > .act:not(.none) > .x > .xd code.apath{padding:0 3px;border:0;border-radius:4px;background:var(--act-code);font:400 12px/18px var(--mono);color:var(--text)}
:root:root:root:root .home-view .ipanel > .act:not(.none) > time.w{font:400 12.5px/20px var(--sans);color:var(--text-2);white-space:nowrap}
:root:root:root:root .home-view .ipanel > .acts{margin-top:auto;padding:8px 20px;border-top:1px solid var(--border-soft)}

.home-view{--act-well:rgba(255,255,255,.035);--act-code:rgba(255,255,255,.07)}
:root[data-theme="light"] .home-view{--act-well:rgba(60,45,20,.045);--act-code:rgba(60,45,20,.07)}
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]) .home-view{--act-well:rgba(60,45,20,.045);--act-code:rgba(60,45,20,.07)}}
/* a phone: a balanced lead, the request beside its icon with Review at its right, the full capacity labels in a
   tighter 2 × 2, cards on 16 px insets with 40 px footer actions */
@media (max-width:700px){
  :root:root:root:root .home-view .ihead .sub > span{text-wrap:balance}
  :root:root:root:root .home-view > :is(.ihead,.ap-notice,.statstrip-c){margin-bottom:16px}
  :root:root:root:root .home-view .grid.igrid{row-gap:16px}
  :root:root:root:root .home-view .ap-notice.ap-notice{grid-template-columns:32px minmax(0,1fr) auto;column-gap:12px;align-items:center;padding:14px 14px 14px 16px}
  :root:root:root:root .home-view .ap-notice.ap-notice > .ap-n-t > .ap-n-l1{grid-column:2;grid-row:1;align-self:center;line-height:20px}
  :root:root:root:root .home-view .ap-notice.ap-notice > button.ap-n-go{grid-column:3;grid-row:1;align-self:center;justify-self:end;margin:0}
  
  
  :root:root:root:root .home-view .statstrip-c.kpis.homecap > .sc.sc > .sk > .sk-d{display:inline}
  :root:root:root:root .home-view .statstrip-c.kpis.homecap > .sc.sc > .sk > .sk-m{display:none}
  :root:root:root:root .home-view .statstrip-c.kpis.homecap > .sc.sc{padding:12px 16px 14px}
  :root:root:root:root .home-view .statstrip-c.kpis.homecap > .sc.sc > .sv{margin:2px 0 10px}
  :root:root:root:root .home-view .igrid > .card.ipanel{padding:16px 16px 0}
  :root:root:root:root .home-view .ipanel > .acts{padding:10px 16px;margin:0 -16px}
  
  :root:root:root:root .home-view .ipanel .ip-bots > .chip.bot{height:32px}
  :root:root:root:root .home-view .ipanel .ip-bots button.addbot{height:32px;min-height:32px}
  :root:root:root:root .home-view .ipanel > .act:not(.none) > .x{white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}
  :root:root:root:root .home-view .ipanel > .act:not(.none) > .x > :is(.t,.xd){display:inline;margin:0;white-space:normal}
}
/* a phone's node tabs: the row spread between the page's 16 px gutters, the active line as wide as its label */
@media (max-width:700px){
  :root:root:root:root header.top .hnav{justify-content:space-between;gap:0;padding:0 6px}
  :root:root:root:root header.top .hnav > .tab:is(.on,[aria-current]),:root:root:root:root header.top .hnav > .tab:is(.on,[aria-current]):hover{box-shadow:none;background:linear-gradient(var(--tab-line,var(--accent)),var(--tab-line,var(--accent))) center bottom / calc(100% - 20px) 2px no-repeat}
}
/* a released (suspended) card keeps the memory row's shape: a dashed, empty track after "Released" */
:root:root:root:root .home-view .ipanel > .usage.rel > .meter{display:block;margin:0;border-top:1px dashed var(--border-strong)}
:root:root:root:root .home-view .ipanel > .usage.rel > .meter > i{display:none}
/* the request's icon tile and host chip, tinted with the request's own colour so both read on it */
:root:root:root:root .home-view .ap-notice.ap-notice > .ap-n-ic{background:var(--home-req-tile);color:var(--warn-ink,var(--warn))}
:root:root:root:root .home-view .ap-notice code.host.code-chip{border:0;background:var(--home-req-chip)}
.home-view{--home-req-tile:rgba(255,139,87,.24);--home-req-chip:rgba(255,139,87,.12)}
:root[data-theme="light"] .home-view{--home-req-tile:#f6d7a6;--home-req-chip:rgba(194,124,14,.13)}
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]) .home-view{--home-req-tile:#f6d7a6;--home-req-chip:rgba(194,124,14,.13)}}
/* wide screens, a card at least 440 px wide: the newest activity is the footer's left half (lifecycle and Open grouped at its right), so every
   card has the same rows and none keeps an empty band; a card without activity says so there, quietly */
:root:root:root:root .home-view .igrid > .card.ipanel{position:relative;container-type:inline-size}
@media (min-width:701px){@container (min-width:440px){
  :root:root:root:root .home-view .ipanel:not(:has(> .acts > .slots)) > .acts > .sp{order:-1}
  :root:root:root:root .home-view .ipanel:not(:has(> .acts > .slots)) > .act{position:absolute;left:20px;right:212px;bottom:0;display:grid;grid-template-columns:16px minmax(0,max-content) auto;grid-template-rows:none;row-gap:0;justify-content:start;align-items:center;column-gap:8px;height:52px;margin:0;padding:0;border-radius:0;background:none;font:400 13px/20px var(--sans)}
  :root:root:root:root .home-view .ipanel:not(:has(> .acts > .slots)) > .act.none{display:grid}
  :root:root:root:root .home-view .ipanel:not(:has(> .acts > .slots)) > .act > .a-ic{display:inline-grid;place-items:center;height:20px;color:var(--text-2)}
  :root:root:root:root .home-view .ipanel:not(:has(> .acts > .slots)) > .act > .x{display:block;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--text-2)}
  :root:root:root:root .home-view .ipanel:not(:has(> .acts > .slots)) > .act > time.w{font:400 12.5px/20px var(--sans);color:var(--text-2)}
  :root:root:root:root .home-view .ipanel:not(:has(> .acts > .slots)) > .act > .x > .xd code.apath{background:var(--act-code)}}
}
/* wide: a calmer rhythm — 20 px between the page's blocks and between cards, 12 px between a card's rows */
@media (min-width:701px){
  :root:root:root:root .home-view > :is(.ihead,.ap-notice,.statstrip-c){margin-bottom:20px}
  :root:root:root:root .home-view .grid.igrid{gap:20px}
  :root:root:root:root .home-view .igrid > .card.ipanel{gap:12px;padding:20px 20px 0}
  :root:root:root:root .home-view .ipanel .ip-h{margin-bottom:0}
  :root:root:root:root .home-view .ipanel > .acts{margin-top:auto;padding:10px 20px}
}
/* a narrower card keeps the activity as a one-line well over the footer */
:root:root:root:root .home-view .ipanel > .act:not(.none){align-items:center;min-height:0}
/* a phone: a tighter capacity grid, 36 px footer actions on a 56 px footer, left-aligned 14 px node tabs that
   end well inside the gutter (nothing reads as cut off) */
@media (max-width:700px){
  :root:root:root:root .home-view .statstrip-c.kpis.homecap > .sc.sc{padding:10px 14px 12px}
  :root:root:root:root .home-view .statstrip-c.kpis.homecap > .sc.sc > .sv{margin:0 0 8px}
  :root:root:root:root .home-view .ipanel > .acts{padding:10px 16px}
  
  :root:root:root:root .home-view .ipanel .ip-bots{gap:6px}
  :root:root:root:root header.top .hnav{justify-content:flex-start;padding:0 6px}
  :root:root:root:root header.top .hnav > .tab{padding:0 10px;font-size:14px}
}
/* a phone's activity: who and when on the first line, what under it (up to two lines) */
@media (max-width:700px){
  :root:root:root:root .home-view .ipanel > .act:not(.none){grid-template-columns:16px minmax(0,1fr) auto;grid-template-rows:auto auto;row-gap:2px;padding:8px 12px}
  :root:root:root:root .home-view .ipanel > .act:not(.none) > .x{display:contents}
  :root:root:root:root .home-view .ipanel > .act:not(.none) > .x > .t{grid-column:2;grid-row:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
  :root:root:root:root .home-view .ipanel > .act:not(.none) > time.w{grid-column:3;grid-row:1}
  :root:root:root:root .home-view .ipanel > .act:not(.none) > .x > .xd{grid-column:2 / -1;grid-row:2;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;white-space:normal}
}
/* pass 2: a footer hierarchy (Open the raised secondary, Suspend/Resume a quieter tonal button of the same
   height), memory meters on one column across cards, a plain mono path in the activity, a firmer light theme */

:root:root:root:root .home-view .ipanel > .usage,:root:root:root:root .home-view .ipanel > .usage.rel{grid-template-columns:auto minmax(104px,auto) minmax(48px,1fr)}
:root:root:root:root .home-view .ipanel > .act > .x > .xd code.apath,:root:root:root:root .home-view .ipanel:not(:has(> .acts > .slots)) > .act > .x > .xd code.apath{padding:0;border:0;background:none;font:400 12.5px/20px var(--mono);color:var(--text)}
.home-view{--home-tonal:rgba(255,255,255,.045);--home-raised:var(--surface-2);--home-raised-shadow:none}
:root[data-theme="light"] .home-view{--home-tonal:rgba(60,45,20,.055);--home-raised:#fff;--home-raised-shadow:0 1px 1px rgba(60,45,20,.06);--req-bg:#fcecd2;--req-edge:rgba(194,124,14,.42)}
:root[data-theme="light"] .home-view :is(.igrid > .card.ipanel,.statstrip-c.kpis.homecap){border-color:#d0c7b8;box-shadow:0 1px 2px rgba(60,45,20,.06)}
@media (prefers-color-scheme:light){
  :root:not([data-theme="dark"]) .home-view{--home-tonal:rgba(60,45,20,.055);--home-raised:#fff;--home-raised-shadow:0 1px 1px rgba(60,45,20,.06);--req-bg:#fcecd2;--req-edge:rgba(194,124,14,.42)}
  :root:not([data-theme="dark"]) .home-view :is(.igrid > .card.ipanel,.statstrip-c.kpis.homecap){border-color:#d0c7b8;box-shadow:0 1px 2px rgba(60,45,20,.06)}
}
/* pass 2, a phone: the full "New instance" label; the request as a title ("lead wants to reach") over its host,
   Review centred beside both, the reason and meta on the text column under them */
@media (max-width:700px){
  :root:root:root:root .home-view .ihead.page .hlinks .go .nl-full{position:static;width:auto;height:auto;overflow:visible;clip-path:none}
  :root:root:root:root .home-view .ihead.page .hlinks .go .nl-short{display:none}
  :root:root:root:root .home-view .ap-notice.ap-notice{grid-template-columns:32px minmax(0,1fr) auto;column-gap:12px;row-gap:0;padding:14px 14px 14px 14px}
  :root:root:root:root .home-view .ap-notice.ap-notice > .ap-n-ic{grid-column:1;grid-row:1;align-self:center}
  :root:root:root:root .home-view .ap-notice.ap-notice > .ap-n-t > .ap-n-l1{display:block;-webkit-line-clamp:none;white-space:normal;overflow:visible}
  :root:root:root:root .home-view .ap-notice.ap-notice > .ap-n-t > .ap-n-l1 > code.host{display:block;width:fit-content;max-width:100%;margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
/* ==== home (sprint) end ==== */

/* ==== access drawer (sprint) ==== */
/* Access is a share dialog: a centred card as tall as its content on desktop, a bottom sheet with a grab handle on a
   phone, so its action sits right under the form. Scoped by the dialog's label, so it holds from the first frame.
   Amber marks only the action, keyboard focus and the chosen role's radio; the chosen card itself is neutral. */
:root:root .overlay:has(> .drawer[aria-label^="access ·"]){--ac-pad:24px;--ac-foot:color-mix(in srgb,#000 16%,var(--surface-1));--ac-pick:var(--accent);--ac-radio:color-mix(in srgb,var(--text-2) 58%,transparent);--ac-sel:color-mix(in srgb,var(--text) 5%,var(--surface-1));--ac-sel-bd:color-mix(in srgb,var(--text) 40%,var(--surface-1));--ac-chip:color-mix(in srgb,var(--text) 8%,var(--surface-1));align-items:center;justify-content:center;padding:64px 24px 24px;background:rgba(0,0,0,.68)}
:root:root[data-theme="light"] .overlay:has(> .drawer[aria-label^="access ·"]){--ac-foot:color-mix(in srgb,var(--text) 3.5%,var(--surface-1));--ac-pick:var(--accent-active);--ac-radio:color-mix(in srgb,var(--text-2) 52%,transparent);--ac-sel:color-mix(in srgb,var(--text) 3%,var(--surface-1));--ac-sel-bd:color-mix(in srgb,var(--text) 48%,var(--surface-1));--ac-chip:color-mix(in srgb,var(--text) 6.5%,var(--surface-1));background:rgba(28,22,14,.52)}
@media (prefers-color-scheme:light){:root:root:not([data-theme="dark"]) .overlay:has(> .drawer[aria-label^="access ·"]){--ac-foot:color-mix(in srgb,var(--text) 3.5%,var(--surface-1));--ac-pick:var(--accent-active);--ac-radio:color-mix(in srgb,var(--text-2) 52%,transparent);--ac-sel:color-mix(in srgb,var(--text) 3%,var(--surface-1));--ac-sel-bd:color-mix(in srgb,var(--text) 48%,var(--surface-1));--ac-chip:color-mix(in srgb,var(--text) 6.5%,var(--surface-1));background:rgba(28,22,14,.52)}}
:root:root .overlay > .drawer[aria-label^="access ·"]{position:relative;box-sizing:border-box;width:min(500px,calc(100vw - 48px));height:auto;min-height:0;max-height:calc(100dvh - 48px);margin:0;padding:0;border:1px solid var(--border);border-radius:16px;background:var(--surface-1);box-shadow:0 2px 8px rgba(0,0,0,.35),0 28px 72px rgba(0,0,0,.55);animation:pop-in var(--dur-3) var(--ease-out)}
:root:root[data-theme="light"] .overlay > .drawer[aria-label^="access ·"]{border-color:var(--border-soft);box-shadow:0 2px 6px rgba(40,28,14,.08),0 24px 64px rgba(40,28,14,.22)}
@media (prefers-color-scheme:light){:root:root:not([data-theme="dark"]) .overlay > .drawer[aria-label^="access ·"]{border-color:var(--border-soft);box-shadow:0 2px 6px rgba(40,28,14,.08),0 24px 64px rgba(40,28,14,.22)}}
:root:root .overlay > .drawer[aria-label^="access ·"] > .dh.dh{align-items:flex-start;gap:16px;min-height:0;padding:20px 16px 18px var(--ac-pad);border-bottom:1px solid var(--border-soft);background:transparent}
:root:root .overlay > .drawer[aria-label^="access ·"] > .dh > .dt{gap:4px}
:root:root .overlay > .drawer[aria-label^="access ·"] > .dh .dtt{font:600 18px/26px var(--sans);letter-spacing:-.012em}
:root:root .overlay > .drawer[aria-label^="access ·"] > .dh .dsub{font:400 13.5px/19px var(--sans);color:var(--text-2)}
:root:root .overlay > .drawer[aria-label^="access ·"] > .dh > button.ib.ib{align-self:flex-start;width:32px;height:32px;min-width:32px;min-height:32px;margin:-2px 0 0;border:1px solid var(--border-soft);border-radius:8px;background:color-mix(in srgb,var(--text) 4%,transparent);color:var(--text-2)}
:root:root .overlay > .drawer[aria-label^="access ·"] > .dh > button.ib.ib:hover{border-color:var(--border);background:color-mix(in srgb,var(--text) 8%,transparent);color:var(--text)}
:root:root .overlay > .drawer[aria-label^="access ·"] > .db.db{flex:0 1 auto;min-height:0;padding:0;overflow:hidden}
:root:root .overlay > .drawer[aria-label^="access ·"] > .db > .dscroll{flex:0 1 auto;min-height:0;padding:20px var(--ac-pad) 20px;background:transparent;-webkit-mask-image:none;mask-image:none}
:root:root .overlay > .drawer[aria-label^="access ·"] .access-view.access-view{display:flex;flex-direction:column;gap:0;padding:0}
/* section labels: the sheet eyebrow, its count plain beside it */
:root:root .overlay > .drawer[aria-label^="access ·"] .access-view h3.sub.eyebrow{display:flex;align-items:baseline;gap:6px;margin:0 0 6px;font:600 12px/16px var(--sans);letter-spacing:var(--ls-eyebrow);text-transform:uppercase;color:var(--text-2)}
:root:root .overlay > .drawer[aria-label^="access ·"] .access-view h3.sub.eyebrow > .count{display:inline;font-variant-numeric:tabular-nums}
:root:root .overlay > .drawer[aria-label^="access ·"] .access-view h3.sub.eyebrow > .count::before{content:"·";margin-right:6px}
/* people: avatar, then the name with its role chip on one line over how they came by it */
:root:root .overlay > .drawer[aria-label^="access ·"] .access-view ul.people{margin:0}
:root:root .overlay > .drawer[aria-label^="access ·"] .access-view ul.people > .person{display:flex;flex-wrap:nowrap;align-items:center;gap:12px;min-height:56px;padding:8px 0;border:0}
:root:root .overlay > .drawer[aria-label^="access ·"] .access-view ul.people > .person + .person{border-top:1px solid var(--border-soft)}
:root:root .overlay > .drawer[aria-label^="access ·"] .access-view ul.people .pav{width:36px;height:36px;font:600 14px/1 var(--sans)}
:root:root .overlay > .drawer[aria-label^="access ·"] .access-view ul.people .pw{flex:1 1 auto;min-width:0;gap:1px}
:root:root .overlay > .drawer[aria-label^="access ·"] .access-view ul.people .pw > .pn{display:flex;align-items:center;gap:8px;min-width:0}
:root:root .overlay > .drawer[aria-label^="access ·"] .access-view ul.people .pw b{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:600 14px/20px var(--sans);color:var(--text)}
:root:root .overlay > .drawer[aria-label^="access ·"] .access-view ul.people .pm{font:400 14px/20px var(--sans);color:var(--text-2)}
:root:root .overlay > .drawer[aria-label^="access ·"] .access-view ul.people .pm > .you{font-weight:500;color:var(--text)}
:root:root .overlay > .drawer[aria-label^="access ·"] .access-view ul.people .pn > .prole{flex:none;display:inline-flex;align-items:center;box-sizing:border-box;height:20px;margin:0;padding:0 8px;border:0;border-radius:6px;background:var(--ac-chip);font:500 12px/1 var(--sans);color:var(--text)}
:root:root .overlay > .drawer[aria-label^="access ·"] .access-view ul.people .pn > .prole > .lt::first-letter{text-transform:uppercase}
:root:root .overlay > .drawer[aria-label^="access ·"] .access-view ul.people > .person > select{flex:none;width:108px;height:32px;min-height:32px;margin:0;font-size:13px}
:root:root .overlay > .drawer[aria-label^="access ·"] .access-view ul.people > .person > button.ib{flex:none;width:32px;height:32px;min-width:32px;min-height:32px;margin:0 -6px 0 -4px;color:var(--text-2)}
:root:root .overlay > .drawer[aria-label^="access ·"] .access-view ul.people > .person > button.ib:hover:not(:disabled){color:var(--bad);background:var(--bad-soft)}
:root:root .overlay > .drawer[aria-label^="access ·"] .access-view p.nobody{margin:4px 0 0;font:400 13px/18px var(--sans);color:var(--text-2)}
/* someone who may not change it: the note, then the roles as one quiet list */
:root:root .overlay > .drawer[aria-label^="access ·"] .access-view p.lvl-note{margin:12px 0 0;padding:12px 14px;border-radius:10px;background:color-mix(in srgb,var(--text) 4%,transparent);font:400 13.5px/19px var(--sans);color:var(--text-2)}
:root:root .overlay > .drawer[aria-label^="access ·"] .access-view .levels-block{margin:20px 0 0;padding:20px 0 0;border:0;border-top:1px solid var(--border-soft)}
:root:root .overlay > .drawer[aria-label^="access ·"] .access-view .levels-block > h3.sub.eyebrow{margin:0 0 12px;padding:0;border:0}
:root:root .overlay > .drawer[aria-label^="access ·"] .access-view dl.levels{display:flex;flex-direction:column;gap:0;margin:0;padding:0;border:1px solid var(--border);border-radius:12px;overflow:hidden;background:color-mix(in srgb,var(--text) 2%,transparent)}
:root:root .overlay > .drawer[aria-label^="access ·"] .access-view dl.levels > .lvrow.lvrow{display:flex;flex-direction:column;gap:1px;min-height:0;margin:0;padding:11px 16px;border:0}
:root:root .overlay > .drawer[aria-label^="access ·"] .access-view dl.levels > .lvrow.lvrow + .lvrow{border-top:1px solid var(--border-soft)}
:root:root .overlay > .drawer[aria-label^="access ·"] .access-view dl.levels > .lvrow > dt{display:block;margin:0}
:root:root .overlay > .drawer[aria-label^="access ·"] .access-view dl.levels > .lvrow > dt > .lv-n{display:inline;height:auto;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;font:600 14px/20px var(--sans);color:var(--text)}
:root:root .overlay > .drawer[aria-label^="access ·"] .access-view dl.levels > .lvrow > dd{margin:0;font:400 13.5px/19px var(--sans);color:var(--text-2)}
/* invite: its own section under a hairline */
:root:root .overlay > .drawer[aria-label^="access ·"] .access-view form.share{display:flex;flex-direction:column;gap:0;margin:12px 0 0;padding:20px 0 0;border:0;border-top:1px solid var(--border-soft);border-radius:0;background:none}
:root:root .overlay > .drawer[aria-label^="access ·"] .access-view form.share > h3.sub.eyebrow{margin:0 0 14px}
:root:root .overlay > .drawer[aria-label^="access ·"] .access-view form.share > label.f.su{display:block;margin:0;font:500 14px/20px var(--sans);color:var(--text)}
:root:root .overlay > .drawer[aria-label^="access ·"] .access-view form.share > label.f.su > input{display:block;box-sizing:border-box;width:100%;height:40px;min-height:40px;margin:6px 0 0;padding:0 12px;font-size:14px;background-image:none}
:root:root .overlay > .drawer[aria-label^="access ·"] .access-view form.share > label.f.su > input:focus:focus-visible{border-color:color-mix(in srgb,var(--focus) 85%,var(--surface-1));outline:0;box-shadow:0 0 0 3px color-mix(in srgb,var(--focus) 16%,transparent)}
:root:root .overlay > .drawer[aria-label^="access ·"] .access-view form.share > label.f.su > input::placeholder{color:color-mix(in srgb,var(--text-2) 80%,transparent);opacity:1}

/* the role choice: separate cards; the chosen one a firmer neutral edge over a faint tint, its amber radio filled */

:root:root .overlay > .drawer[aria-label^="access ·"] .access-view form.share > :is(.callout,p.why){margin:12px 0 0}
/* the audit note closes the form, right above the actions */
:root:root .overlay > .drawer[aria-label^="access ·"] .access-view form.share > p.acc-note{display:flex;align-items:center;gap:8px;margin:14px 0 0;font:400 13px/18px var(--sans);color:var(--text-2)}
:root:root .overlay > .drawer[aria-label^="access ·"] .access-view form.share > p.acc-note > .ic{flex:none;width:14px;height:14px;color:var(--text-2)}
:root:root .overlay > .drawer[aria-label^="access ·"] .access-view > .err,:root:root .overlay > .drawer[aria-label^="access ·"] .dscroll > .err{margin:16px 0 0}
/* the footer: a quiet recessed band, Cancel and Share at its end */
:root:root .overlay > .drawer[aria-label^="access ·"] > .db > .dscroll ~ .row.dfoot.dfoot{position:relative;flex-direction:row;flex-wrap:nowrap;justify-content:flex-end;align-items:center;gap:8px;margin:0;padding:14px var(--ac-pad);border-top:1px solid var(--border-soft);background:var(--ac-foot);box-shadow:none}
:root:root .overlay > .drawer[aria-label^="access ·"] > .db > .dscroll ~ .row.dfoot.dfoot::before{content:none}
:root:root .overlay > .drawer[aria-label^="access ·"] > .db > .dscroll.can-more ~ .row.dfoot.dfoot{box-shadow:0 -8px 16px -10px rgba(0,0,0,.5)}
:root:root .overlay > .drawer[aria-label^="access ·"] > .db > .dscroll ~ .row.dfoot.dfoot > .fnote{order:0;flex:1 1 auto;min-width:0;margin:0 auto 0 0;display:inline-flex;align-items:center;gap:7px;font:400 13px/18px var(--sans);color:var(--text-2)}
:root:root .overlay > .drawer[aria-label^="access ·"] > .db > .dscroll ~ .row.dfoot.dfoot > button{order:1;flex:none;height:36px;min-height:36px;min-width:0;margin:0;padding:0 16px}
:root:root .overlay > .drawer[aria-label^="access ·"] > .db > .dscroll ~ .row.dfoot.dfoot > button.go{order:2;min-width:96px}
/* disabled only while busy, offline or an owner give-away is unconfirmed: a neutral, legible pill */

@media (max-width:700px){
  :root:root .overlay:has(> .drawer[aria-label^="access ·"]){--ac-pad:16px;align-items:flex-end;padding:24px 0 0;background:rgba(0,0,0,.74)}
  :root:root[data-theme="light"] .overlay:has(> .drawer[aria-label^="access ·"]){background:rgba(28,22,14,.58)}
  :root:root .overlay > .drawer[aria-label^="access ·"]{width:100vw;min-height:0;max-height:calc(100dvh - 24px);border:0;border-top:1px solid var(--border-strong);border-radius:var(--sheet-r) var(--sheet-r) 0 0;padding:0;box-shadow:0 -12px 40px rgba(0,0,0,.4);animation:sheet-up var(--dur-3) var(--ease-out)}
  :root:root[data-theme="light"] .overlay > .drawer[aria-label^="access ·"]{border-top-color:var(--border-soft);box-shadow:0 -12px 40px rgba(40,28,14,.16)}
}
@media (max-width:700px) and (prefers-color-scheme:light){
  :root:root:not([data-theme="dark"]) .overlay:has(> .drawer[aria-label^="access ·"]){background:rgba(28,22,14,.58)}
  :root:root:not([data-theme="dark"]) .overlay > .drawer[aria-label^="access ·"]{border-top-color:var(--border-soft);box-shadow:0 -12px 40px rgba(40,28,14,.16)}
}
@media (max-width:700px){
  :root:root .overlay > .drawer[aria-label^="access ·"] .access-view ul.people > .person{min-height:56px}
  :root:root .overlay > .drawer[aria-label^="access ·"] .access-view form.share{margin-top:12px;padding-top:18px}
  :root:root .overlay > .drawer[aria-label^="access ·"] .access-view form.share > h3.sub.eyebrow{margin-bottom:12px}
  
  :root:root .overlay > .drawer[aria-label^="access ·"]::before{content:"";display:block;z-index:3;position:absolute;top:8px;left:50%;width:36px;height:4px;margin-left:-18px;border-radius:var(--r-pill);background:var(--border-input)}
  :root:root .overlay > .drawer[aria-label^="access ·"] > .dh.dh{padding:22px 12px 14px var(--ac-pad)}
  :root:root .overlay > .drawer[aria-label^="access ·"] > .dh > button.ib.ib{width:36px;height:36px;min-width:36px;min-height:36px;margin:-4px 0 0}
  :root:root .overlay > .drawer[aria-label^="access ·"] > .db.db{flex:0 1 auto;display:flex;flex-direction:column}
  :root:root .overlay > .drawer[aria-label^="access ·"] > .db > .dscroll{padding:16px var(--ac-pad) 18px}
  :root:root .overlay > .drawer[aria-label^="access ·"] .access-view form.share > label.f.su > input{height:44px;min-height:44px;font-size:16px}
  
  :root:root .overlay > .drawer[aria-label^="access ·"] .access-view ul.people .pm{font-size:13.5px;line-height:19px}
  :root:root .overlay > .drawer[aria-label^="access ·"] > .db > .dscroll ~ .row.dfoot.dfoot{flex-wrap:wrap;gap:12px 8px;padding:14px var(--ac-pad) calc(24px + env(safe-area-inset-bottom))}
  :root:root .overlay > .drawer[aria-label^="access ·"] > .db > .dscroll ~ .row.dfoot.dfoot > .fnote{flex:1 1 100%;justify-content:center}
  :root:root .overlay > .drawer[aria-label^="access ·"] > .db > .dscroll ~ .row.dfoot.dfoot > button{flex:1 1 0;height:44px;min-height:44px}
  :root:root .overlay > .drawer[aria-label^="access ·"] > .db > .dscroll ~ .row.dfoot.dfoot > button.go{flex:2 1 0}
  :root:root .overlay > .drawer[aria-label^="access ·"] > .db > .dscroll ~ .row.dfoot.dfoot > button:only-of-type{flex:1 1 100%;grid-column:1 / -1}
}
/* ==== access drawer (sprint) end ==== */

/* ==== overview (sprint) ==== */
/* The overview: the heading with a quiet "updated" line, the cluster's four figures as four small cards, a "Nodes"
   section heading, then one full-width card per node. Every node card has the same anatomy: identity (name, state,
   address and your role) with the node's facts at the right, then four figures on columns that line up with the
   summary's cards (a label and its share, a value, a meter). Meters are neutral while healthy; warn and bad only
   past 75 % and 90 %. */
:root .cluster.ov{--ov-fill:#c4beb3;--ov-track:#3b3934;--ov-div:var(--border-soft);--ov-gap:16px;--ov-px:20px}
:root:root:root:root .cluster.ov{gap:0}
:root[data-theme="light"] .cluster.ov{--ov-fill:#6e665a;--ov-track:#e3dccf;--ov-div:#e9e2d6}
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]) .cluster.ov{--ov-fill:#6e665a;--ov-track:#e3dccf;--ov-div:#e9e2d6}}
:root:root:root:root .cluster.ov > .ihead.page{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px 16px;margin:0 0 24px}
:root:root:root:root .cluster.ov > .ihead.page > .ttl{display:contents}
:root:root:root:root .cluster.ov > .ihead.page > .ttl > h2{grid-column:1;grid-row:1;margin:0}
:root:root:root:root .cluster.ov > .ihead.page > .ttl > .sub{grid-column:1 / -1;grid-row:2;margin:0}
:root:root:root:root .cluster.ov > .ihead.page > .hlinks{grid-column:2;grid-row:1;margin:0;padding:0}
:root:root:root:root .cluster.ov > .ihead.page .sub{font:400 14px/20px var(--sans);color:var(--text-2)}
/* updated: a meta line and an icon refresh, no frame */
:root:root:root:root .cluster.ov .upd-w{align-self:center;justify-self:end;margin:0}
:root:root:root:root .cluster.ov .upd-w > .stchip{display:inline-flex;align-items:center;gap:4px;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)}
:root:root:root:root .cluster.ov .upd-w > .stchip > .upd{color:var(--text-2);white-space:nowrap}
:root:root:root:root .cluster.ov .upd-w > .stchip > button.ib.refresh{width:32px;height:32px;min-width:32px;min-height:32px;margin:0 -6px 0 0;border:0;border-radius:8px;background:transparent;color:var(--text-2)}
:root:root:root:root .cluster.ov .upd-w > .stchip > button.ib.refresh:hover{background:var(--hover);color:var(--text)}

/* the summary: four cards in the node cards' own style, a number each (the node cards carry the meters) */
:root:root:root:root .cluster.ov > .statstrip-c.kpis.clsum{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--ov-gap);margin:0 0 32px;padding:0;border:0;border-radius:0;background:none;box-shadow:none;overflow:visible}
:root:root:root:root .cluster.ov > .statstrip-c.kpis.clsum > .sc.sc{display:flex;flex-direction:column;align-items:flex-start;gap:0;min-width:0;min-height:0;margin:0;padding:16px var(--ov-px) 18px;border:1px solid var(--border);border-radius:var(--r-lg);background:var(--surface-1);box-shadow:var(--shadow-card)}
:root:root:root:root .cluster.ov > .statstrip-c.kpis.clsum > .sc.sc > .sk{margin:0;font:400 14px/20px var(--sans);letter-spacing:0;text-transform:none;color:var(--text-2)}
:root:root:root:root .cluster.ov > .statstrip-c.kpis.clsum > .sc.sc > .sv{display:flex;flex-direction:row;align-items:baseline;gap:6px;margin:6px 0 0;font:600 26px/32px var(--sans);letter-spacing:-0.02em;color:var(--text);font-variant-numeric:tabular-nums}
:root:root:root:root .cluster.ov > .statstrip-c.kpis.clsum > .sc.sc > .sv > .of{display:inline;margin:0;font:400 13px/18px var(--sans);letter-spacing:0;color:var(--text-2)}
:root:root:root:root .cluster.ov > .statstrip-c.kpis.clsum > .sc.sc > .sh{display:block;margin:6px 0 0;font:400 13px/18px var(--sans);color:var(--text-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
:root:root:root:root .cluster.ov > .statstrip-c.kpis.clsum > .sc.sc > .sh.bad{color:var(--bad)}
:root:root:root:root .cluster.ov > .statstrip-c.kpis.clsum > .sc.sc > .meter{display:none}
:root:root:root:root .cluster.ov > .statstrip-c.kpis.clsum .stx{display:inline-flex;flex-wrap:wrap;align-items:center;gap:2px 14px}
:root:root:root:root .cluster.ov > .statstrip-c.kpis.clsum .stx > .sep{display:none}

/* the nodes' heading: the name and a count, as every section heading */
:root:root:root:root .cluster.ov > .sec-h.ov-sh{display:flex;align-items:center;min-height:0;margin:0 0 12px;padding:0;border:0}
:root:root:root:root .cluster.ov > .sec-h.ov-sh h3{display:inline-flex;align-items:center;margin:0;font:600 15px/22px var(--sans);letter-spacing:-0.005em;color:var(--text)}

/* the node cards: one column, so their figures share columns down the page */
:root:root:root:root .cluster.ov > .cluster-nodes,:root:root:root:root .cluster.ov > .cluster-nodes:has(> :only-child){display:grid;grid-template-columns:minmax(0,1fr);gap:var(--ov-gap);align-items:stretch}
:root:root:root:root .cluster.ov .card.cluster-node.cluster-node{position:relative;display:flex;flex-direction:column;gap:0;padding:0;overflow:hidden;font:400 13px/18px var(--sans);color:var(--text-2);transition:border-color var(--dur-2) var(--ease),background-color var(--dur-2) var(--ease)}
:root:root:root:root .cluster.ov .card.cluster-node.cluster-node.linked:hover{border-color:var(--border-strong)}
:root:root:root:root .cluster.ov .card.cluster-node.cluster-node.none{border-style:dashed;background:transparent}
:root:root:root:root .cluster.ov .card.cluster-node.cluster-node.down{border-color:var(--bad-border)}
/* identity: an icon tile; the name with its state and admissions; the address and your role. Then the facts. */
:root:root:root:root .cluster.ov .cluster-node > .ov-nh{display:flex;align-items:center;gap:14px;margin:0;padding:18px var(--ov-px)}
:root:root:root:root .cluster.ov .cluster-node .ov-ic{flex:none;display:inline-grid;place-items:center;width:40px;height:40px;border:1px solid var(--border-soft);border-radius:10px;background:var(--surface-2);color:var(--text-2)}
:root:root:root:root .cluster.ov .cluster-node .ov-ic.bad{border-color:var(--bad-border);background:var(--bad-soft);color:var(--bad)}
:root:root:root:root .cluster.ov .cluster-node .ov-ic.warn{border-color:var(--warn-border);background:var(--warn-soft);color:var(--warn)}
:root:root:root:root .cluster.ov .cluster-node .ov-id{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}
:root:root:root:root .cluster.ov .cluster-node .ov-nl{display:flex;align-items:center;flex-wrap:wrap;gap:6px 8px;min-width:0}
:root:root:root:root .cluster.ov .cluster-node .ov-name{margin-right:6px;font:600 17px/22px var(--sans);letter-spacing:-0.012em;color:var(--text);overflow-wrap:anywhere}
:root:root:root:root .cluster.ov .cluster-node .ov-nl > .tag{display:inline-flex;align-items:center;gap:6px;height:22px;margin:0;padding:0 9px 0 8px;border:0;border-radius:999px;box-shadow:none;font:500 12px/16px var(--sans);letter-spacing:0;text-transform:none;white-space:nowrap}
:root:root:root:root .cluster.ov .cluster-node .ov-nl > .tag::before{content:"";flex:none;width:6px;height:6px;margin:0;border-radius:50%;background:currentColor}
:root:root:root:root .cluster.ov .cluster-node .ov-nl > .tag.ov-adm.neutral{background:var(--neutral-soft);color:var(--text-2)}
:root:root:root:root .cluster.ov .cluster-node .ov-nl > .tag.ov-adm.neutral::before{background:var(--ok)}
:root:root:root:root .cluster.ov .cluster-node .ov-nl > .tag .lt{display:inline}
:root:root:root:root .cluster.ov .cluster-node .ov-nl > .tag .lt::first-letter{text-transform:uppercase}

/* the node's facts: label over value, at the identity's right */
:root:root:root:root .cluster.ov .cluster-node dl.ov-facts{flex:none;display:flex;align-items:flex-start;gap:32px;margin:0 8px 0 0;padding:0}
:root:root:root:root .cluster.ov .cluster-node dl.ov-facts > .ov-f{display:flex;flex-direction:column;gap:4px;min-width:0;margin:0;padding:0;border:0}
:root:root:root:root .cluster.ov .cluster-node dl.ov-facts dt{margin:0;padding:0;font:400 12px/22px var(--sans);color:var(--text-2);white-space:nowrap}
:root:root:root:root .cluster.ov .cluster-node dl.ov-facts dd{margin:0;padding:0;font:500 13px/18px var(--sans);color:var(--text);white-space:nowrap;font-variant-numeric:tabular-nums}
:root:root:root:root .cluster.ov .cluster-node a.cardlink.ov-go{position:static;flex:none;display:inline-grid;place-items:center;width:32px;height:32px;min-width:32px;min-height:32px;margin:0 -6px 0 0;padding:0;border:0;border-radius:8px;background:transparent;box-shadow:none;color:var(--text-2)}
:root:root:root:root .cluster.ov .cluster-node a.cardlink.ov-go > .lt{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
:root:root:root:root .cluster.ov .cluster-node a.cardlink.ov-go > .ic{color:inherit}
:root:root:root:root .cluster.ov .cluster-node.linked a.cardlink.ov-go::after{content:"";position:absolute;inset:0;z-index:1;border-radius:inherit}
:root:root:root:root .cluster.ov .cluster-node.linked:hover a.cardlink.ov-go{background:var(--hover);color:var(--text)}
/* the figures: memory committed, memory in use, storage, instances; a label and its share, a value, a meter.
   Their columns start where the summary's cards' contents do: gap = the summary's gap + both paddings. */
:root:root:root:root .cluster.ov .cluster-node > .ov-ms{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px calc(var(--ov-gap) + 2 * var(--ov-px));margin:0;padding:18px var(--ov-px) 20px;border-top:1px solid var(--ov-div)}

:root:root:root:root .cluster.ov .cluster-node .ov-kl{min-width:0;overflow:hidden;text-overflow:ellipsis}
:root:root:root:root .cluster.ov .cluster-node .ov-ax{flex:none;font:400 13px/20px var(--sans);color:var(--text-2);font-variant-numeric:tabular-nums}

:root:root:root:root .cluster.ov .cluster-node .ov-of{min-width:0;font:400 13px/18px var(--sans);color:var(--text-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
:root:root:root:root .cluster.ov .cluster-node .meter.ov-bar{position:relative;display:flex;width:100%;margin:auto 0 0;overflow:hidden}
:root:root:root:root .cluster.ov .cluster-node .meter.ov-bar > i{position:static;display:block;min-width:0}

:root:root:root:root .cluster.ov .cluster-node .meter.ov-bar.split{gap:2px}

:root:root:root:root .cluster.ov .cluster-node .meter.ov-bar.split > i{flex:none;min-width:4px}
:root:root:root:root .cluster.ov .cluster-node .meter.ov-bar.split > i:first-child{border-top-left-radius:999px;border-bottom-left-radius:999px}
:root:root:root:root .cluster.ov .cluster-node .meter.ov-bar.split > i:last-child{border-top-right-radius:999px;border-bottom-right-radius:999px}

/* the instances' legend: in the value's line, where the others say "of …" */

:root:root:root:root .cluster.ov .cluster-node > .ov-down{display:flex;align-items:center;gap:10px;margin:0 var(--ov-px) 20px;padding:12px 14px;border-radius:10px;background:var(--surface-2);font:400 13px/18px var(--sans);color:var(--text-2)}
:root:root:root:root .cluster.ov .cluster-node > .ov-down > .ov-down-ic{align-self:flex-start;display:inline-flex;margin-top:1px;color:var(--bad)}
:root:root:root:root .cluster.ov .cluster-node > .ov-down > .ov-down-t{display:flex;flex-direction:column;gap:2px;min-width:0}
:root:root:root:root .cluster.ov .cluster-node > .ov-down > .ov-down-t > b{font:600 13px/18px var(--sans);color:var(--text)}
:root:root:root:root .cluster.ov .cluster-node > .ov-down > .ov-down-t > .err-t{font:400 12.5px/18px var(--mono);color:var(--text-2);overflow-wrap:anywhere}
/* the foot: where a node leads, and how fresh the figures are */
:root:root:root:root .cluster.ov > .ov-foot{display:flex;align-items:center;justify-content:center;gap:8px;margin:28px 0 0;padding:0;font:400 13px/18px var(--sans);color:var(--text-2);text-align:center}
:root:root:root:root .cluster.ov > .ov-foot > .ic{flex:none;color:var(--text-2)}
/* the breadcrumb: cardbot a step up, so the mark, the trail and the switch read as one header */
:root:root:root header.top.cp h1 .sys{color:var(--text);font-weight:500}
/* light: the cards lifted a step off the paper, as on a node's pages */
:root[data-theme="light"] .cluster.ov :is(.card.cluster-node,.statstrip-c.kpis.clsum > .sc.sc){border-color:#d3cabb;background:#fffefb;box-shadow:0 1px 2px rgba(60,45,20,.06)}
:root[data-theme="light"] .cluster.ov .card.cluster-node.linked:hover{border-color:#bcb3a2}
@media (prefers-color-scheme:light){
  :root:not([data-theme="dark"]) .cluster.ov :is(.card.cluster-node,.statstrip-c.kpis.clsum > .sc.sc){border-color:#d3cabb;background:#fffefb;box-shadow:0 1px 2px rgba(60,45,20,.06)}
  :root:not([data-theme="dark"]) .cluster.ov .card.cluster-node.linked:hover{border-color:#bcb3a2}
}
/* a phone: the summary two by two. A node card: the name line with the chevron, the address and role, the four
   figures two by two, then the node's facts as a quiet foot. */
@media (max-width:700px){
  :root .cluster.ov{--ov-gap:12px;--ov-px:16px}
  :root:root:root:root .cluster.ov > .ihead.page{margin-bottom:20px}
  /* the overview's node switch: a quiet select beside the breadcrumb */
  :root:root:root header.top.cp .node-switch select{border-color:transparent;background-color:transparent}
  :root:root:root header.top.cp .node-switch select:hover{border-color:transparent;background-color:var(--hover)}
  :root:root:root header.top.cp .node-switch select{padding-left:6px;padding-right:24px;color:var(--text-2)}
  /* the breadcrumb keeps the control plane's name beside the mark (the mark stands for cardbot) */
  :root:root:root header.top.cp h1{min-width:0}
  :root:root:root header.top.cp .brand{min-width:0;overflow:hidden}
  :root:root:root header.top.cp h1 .nm{position:static;width:auto;height:auto;overflow:visible;clip-path:none}
  :root:root:root header.top.cp h1 .sys{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  :root:root:root header.top.cp h1 .nm{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  :root:root:root:root .cluster.ov .upd-w > .stchip > button.ib.refresh{width:40px;height:40px;min-width:40px;min-height:40px;margin:-4px -8px 0 0}
  :root:root:root:root .cluster.ov > .statstrip-c.kpis.clsum{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:28px}
  :root:root:root:root .cluster.ov > .statstrip-c.kpis.clsum > .sc.sc{padding:12px 14px 14px}
  :root:root:root:root .cluster.ov > .statstrip-c.kpis.clsum > .sc.sc > .sv{margin-top:2px;font-size:22px;line-height:28px}
  :root:root:root:root .cluster.ov > .statstrip-c.kpis.clsum > .sc.sc > .sh{margin-top:4px;font-size:12px}
  :root:root:root:root .cluster.ov > .statstrip-c.kpis.clsum .stx{display:inline-flex;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:0 8px}
  
  
  
  :root:root:root:root .cluster.ov > .statstrip-c.kpis.clsum .stx .sct + .sct::before{content:none}
  
  /* the card as a grid: the header's parts become its cells, so the facts can close the card */
  :root:root:root:root .cluster.ov .card.cluster-node.cluster-node{display:grid;grid-template-columns:minmax(0,1fr) auto;align-content:start}
  :root:root:root:root .cluster.ov .cluster-node > .ov-nh,:root:root:root:root .cluster.ov .cluster-node .ov-id{display:contents}
  :root:root:root:root .cluster.ov .cluster-node .ov-ic{display:none}
  :root:root:root:root .cluster.ov .cluster-node .ov-nl{grid-column:1;grid-row:1;padding:16px 0 0 var(--ov-px)}
  
  :root:root:root:root .cluster.ov .cluster-node a.cardlink.ov-go{grid-column:2;grid-row:1;align-self:start;width:40px;height:40px;min-width:40px;min-height:40px;margin:7px 6px -9px 4px}
  :root:root:root:root .cluster.ov .cluster-node > .ov-ms{grid-column:1 / -1;grid-row:3;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 18px;padding:16px var(--ov-px)}
  
  :root:root:root:root .cluster.ov .cluster-node .ov-ax{font-size:12px;line-height:18px}
  
  
  :root:root:root:root .cluster.ov .cluster-node .ov-of{font-size:12px}
  
  :root:root:root:root .cluster.ov .cluster-node dl.ov-facts{grid-column:1 / -1;grid-row:4;display:grid;grid-template-columns:auto auto auto;justify-content:space-between;gap:12px;margin:0;padding:12px var(--ov-px) 14px;border-top:1px solid var(--ov-div)}
  :root:root:root:root .cluster.ov .cluster-node > .ov-down{grid-column:1 / -1;grid-row:3;margin:0 var(--ov-px) var(--ov-px)}
  :root:root:root:root .cluster.ov > .ov-foot{margin-top:20px;padding:0 8px}
  :root:root:root:root .cluster.ov > .ov-foot > .ic{display:none}
  :root:root:root:root .cluster.ov > .ov-foot > span > span{display:block}
}
/* ==== overview (sprint) end ==== */

/* ==== checkpoints (sprint) ==== */
/* The list a table on a wide screen (name over its ID, kind, created, retention, files, ⋯) and a three-line row on a
   phone (name and ⋯; kind and age; retention and files); Kind, Label and Retention three equal fields on one row; the
   rail a section headed like the main column's, its card ending with the main column; on a phone the actions a
   segmented control and "How checkpoints work" a quiet inline disclosure under the page title. */

:root:root:root:root .checkpoint-view .card.inventory{padding:0;overflow:visible}
:root:root:root:root .checkpoint-view .card.inventory > .ck-th{display:none}
:root:root:root:root .checkpoint-view .card.inventory > article.ckpt{margin:0;padding:0;border:0;border-top:1px solid var(--border-soft);border-radius:0;background:none}
:root:root:root:root .checkpoint-view .card.inventory > article.ckpt:first-child,:root:root:root:root .checkpoint-view .card.inventory > .ck-th + article.ckpt{border-top:0}
:root:root:root:root .checkpoint-view .card.inventory > article.ckpt:last-child{border-radius:0 0 11px 11px}
:root:root:root:root .checkpoint-view .card.inventory > article.ckpt:first-child:last-child{border-radius:11px}
:root:root:root:root .checkpoint-view .card.inventory > article.ckpt:hover{background:var(--hover)}
:root:root:root:root .checkpoint-view .ckpt > .ckr{display:grid;margin:0;border:0;row-gap:0}
:root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-ic{display:inline-grid;place-items:center;width:32px;height:32px;margin:0;border-radius:8px;background:var(--surface-2);color:var(--text-2)}
:root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-l > h3.sec{min-width:0;margin:0;padding:0;border:0;letter-spacing:0;text-transform:none;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
:root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-l > .ck-meta > *,:root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-l > .ret{position:static;display:inline-flex;align-items:center;gap:5px;min-width:0;height:auto;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;white-space:nowrap}
:root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-l > .ck-meta > *::before,:root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-l > .ret::before{content:none;display:none}
:root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-l > .ret .lt::first-letter{text-transform:uppercase}
:root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-l > .ret > .ic{flex:none;width:13px;height:13px;color:var(--text-2)}
:root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-l > .ret.keep > .ic{color:inherit}
:root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-l > .ck-meta .ts{font:inherit;color:inherit}
:root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-s > button.manifest-t{display:inline-flex;align-items:center;gap:4px;width:auto;margin:0 0 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);text-decoration:none}
:root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-s > button.manifest-t:hover:not(:disabled){background:var(--hover);color:var(--text);text-decoration:none}
:root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-s > button.manifest-t > .ic{width:14px;height:14px;color:var(--text-2);transform:none;transition:transform var(--dur-2) var(--ease)}
:root:root:root:root .checkpoint-view .ckpt.open > .ckr > .ck-s > button.manifest-t > .ic{transform:rotate(180deg)}
:root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-m{display:flex;align-items:center;justify-content:flex-end;margin:0}
:root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-m .menu > button.ib.more{width:32px;height:32px;min-width:32px;min-height:32px;margin:0;padding:0;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--text-2)}
:root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-m .menu > button.ib.more:hover:not(:disabled){border-color:var(--border);background:var(--hover);color:var(--text)}
:root:root:root:root .checkpoint-view .ckpt > .manifest{margin:0 16px 0 64px;padding:2px 0 16px}
:root:root:root:root .checkpoint-view .ckpt > .ckbot{margin:-4px 16px 0 64px;padding:0 0 12px;font:400 13px/18px var(--sans);color:var(--text-2)}
@media (min-width:701px){
  :root:root:root:root .checkpoint-view .card.inventory > .ck-th,:root:root:root:root .checkpoint-view .ckpt > .ckr{grid-template-columns:32px minmax(0,1fr) 72px 112px 148px 96px 32px;column-gap:20px}
  :root:root:root:root .checkpoint-view .card.inventory > .ck-th{display:grid;align-items:center;border-bottom:1px solid var(--border)}
  :root:root:root:root .checkpoint-view .ckpt > .ckr{grid-template-rows:auto auto;align-items:center;min-height:68px;padding:13px 14px 13px 16px}
  :root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-ic{grid-column:1;grid-row:1 / span 2}
  :root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-l,:root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-l > .ck-meta{display:contents}
  :root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-l > h3.sec{grid-column:2;grid-row:1;align-self:end;display:block;font:600 14.5px/20px var(--sans)}
  :root:root:root:root .checkpoint-view .ckpt > .ckr:not(:has(.ck-cid)) > .ck-l > h3.sec{grid-row:1 / span 2;align-self:center}
  :root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-l > .ck-cid{grid-column:2;grid-row:2;align-self:start;justify-self:start;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:2px 0 0;padding:0;border:0;border-radius:0;background:none;font:400 12.5px/18px var(--mono);color:var(--text-2)}
  :root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-l > .ck-meta > *,:root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-l > .ret{grid-row:1 / span 2;align-self:center;justify-self:start;font:400 14px/20px var(--sans);color:var(--text-2)}
  :root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-l > .ck-meta > .chip{grid-column:3;font-weight:500;color:var(--text)}
  :root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-l > .ck-meta > .ck-t{grid-column:4}
  :root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-l > .ck-meta > .ck-t > .ck-tl{display:none}
  :root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-l > .ret{grid-column:5}
  :root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-l > .ret.keep{height:24px;padding:0 9px 0 8px;border-radius:999px;background:var(--accent-soft);color:var(--accent-text);font:500 13px/18px var(--sans)}
  :root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-l > .ret.keep > .ic{width:12px;height:12px}
  :root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-s{grid-column:6;grid-row:1 / span 2;display:flex;align-items:center;margin:0}
  :root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-s > button.manifest-t{height:32px;min-height:32px}
  :root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-m{grid-column:7;grid-row:1 / span 2}
}
@media (max-width:700px){
  :root:root:root:root .checkpoint-view .ckpt > .ckr{grid-template-columns:32px auto minmax(0,1fr) auto;grid-template-rows:auto auto auto;grid-template-areas:none;column-gap:12px;align-items:center;min-height:0;padding:14px 12px 10px 16px}
  :root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-ic{grid-column:1;grid-row:1;align-self:center;margin:0}
  :root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-l{display:contents}
  :root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-l > h3.sec{grid-column:2 / 4;grid-row:1;align-self:center;display:block;padding:0;font:600 15px/20px var(--sans)}
  :root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-l > .ck-cid{display:none}
  :root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-l > .ck-meta{grid-column:2 / -1;grid-row:2;display:flex;flex-wrap:wrap;align-items:center;gap:0;margin:2px 0 0;padding:0;overflow:visible;clip-path:none;font:400 13.5px/20px var(--sans);color:var(--text-2)}
  :root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-l > .ck-meta > *{gap:0;font:inherit;color:inherit}
  :root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-l > .ck-meta > .ck-t > .ck-tl{margin-right:.25em}
  :root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-l > .ck-meta > * + *::before{content:"·";display:inline;position:static;margin:0 7px;color:var(--text-2)}
  :root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-l > .ck-meta > .chip{font-weight:500;color:var(--text)}
  :root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-l > .ret{grid-column:2;grid-row:3;justify-self:start;align-self:center;margin:2px 0 0;font:400 13.5px/20px var(--sans);color:var(--text-2)}
  :root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-l > .ret.keep{height:24px;padding:0 9px 0 8px;border-radius:999px;background:var(--accent-soft);color:var(--accent-text);font:500 13px/18px var(--sans)}
  :root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-l > .ret.keep > .ic{width:12px;height:12px}
  :root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-s{grid-column:3 / -1;grid-row:3;justify-self:start;align-self:center;display:flex;align-items:center;gap:0;margin:2px 0 0 -12px;padding:0;border:0}
  :root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-s::before{content:"·";margin:0 1px 0 7px;font:400 13.5px/20px var(--sans);color:var(--text-2)}
  :root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-s > button.manifest-t{height:32px;min-height:32px;margin:0;padding:0 6px;border:0;font:500 13.5px/20px var(--sans)}
  :root:root:root:root .checkpoint-view .ckpt > .ckr > .ck-m{grid-column:4;grid-row:1;align-self:center;margin:0}
  :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-color:var(--border)}
  :root:root:root:root .checkpoint-view .ckpt > .manifest{margin:0 12px 0 16px}
  :root:root:root:root .checkpoint-view .ckpt > .ckbot{margin:-2px 12px 0 60px}
}

/* the form: Kind, Label and Retention three fields on one row, each a caption over a 36 px line; Retention's line an
   unboxed switch beside "Keep until deleted" over its helper */
:root:root:root:root .checkpoint-view .card.ckform .fgrid.ck3 > *{grid-column:auto;margin:0}
:root:root:root:root .checkpoint-view .card.ckform .fgrid > p.fhelp.span2{margin:-8px 0 4px}

@media (min-width:701px){
  :root:root:root:root .checkpoint-view .card.ckform .fgrid.ck3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 20px;align-items:start}
  :root:root:root:root .checkpoint-view .card.ckform .fgrid label.f{font-size:14px;line-height:20px}
  :root:root:root:root .checkpoint-view .card.ckform footer.cf > .cf-note{font:400 14px/20px var(--sans);color:var(--text-2)}
  :root:root:root:root .checkpoint-view .card.ckform footer.cf > button[type=submit]{height:36px;min-height:36px;padding:0 16px;font-size:14px}
}
@media (max-width:700px){
  :root:root:root:root .checkpoint-view .card.ckform .fgrid.ck3{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
  :root:root:root:root .checkpoint-view{padding-bottom:calc(40px + env(safe-area-inset-bottom,0px))}
  :root:root:root:root .checkpoint-view .card.ckform > form > .fgrid,:root:root:root:root .checkpoint-view .card.ckform > .fgrid{margin-top:16px}
  :root:root:root:root .checkpoint-view .card.ckform footer.cf{row-gap:10px}
  :root:root:root:root .checkpoint-view .card.ckform footer.cf > .cf-note{margin:0}
  
  
  
  
  
  
  /* the three actions a segmented control (History's well and raised segment), hairlines between unselected ones */
  
  
  
  
  
  
  
  
  
  
}

/* how checkpoints work: on a wide screen a rail section headed like the main column's, its quiet card ending on the
   main column's bottom; elsewhere a quiet inline disclosure under the page title, its body a card when open */
@media (min-width:1100px){
  :root:root:root:root .checkpoint-view .pg2.ckpg > .pg-rail{margin-top:0}
  :root:root:root:root .checkpoint-view .pg2.ckpg:has(.fgrid.ck3):has(.inventory > article.ckpt:only-of-type):not(:has(.ckpt.open)){align-items:stretch}
  :root:root:root:root .checkpoint-view .pg2.ckpg > .pg-rail > .sec.ck-how{display:flex;flex:1 1 auto;flex-direction:column}
  :root:root:root:root .checkpoint-view .pg-rail > .sec.ck-how > .sec-b{display:flex;flex:1 1 auto;flex-direction:column}
  
  
  
  
  
  
  
}

/* ==== checkpoints (sprint) end ==== */

/* ==== sign in (sprint) ==== */
/* Split screen: the brand panel bleeds to the left, top and bottom edges (the lockup, the tagline, three lines and a
   still preview of an instance with a request waiting); the page beside it carries the form on the panel's axis and
   the caption at its foot. On a phone the form leads, right under the lockup, and the panel follows as a full-bleed
   band to the bottom of the screen. */
.center.au{--au-page:var(--bg);--au-panel:#171614;--au-panel-edge:#2a2824;--au-card:#201f1c;--au-card-edge:#38362f;--au-div:#312f2a;--au-glow:rgba(245,165,36,.045);--au-chip:#2c2b27;
  --au-shadow:0 1px 2px rgba(0,0,0,.3),0 10px 24px -14px rgba(0,0,0,.6);
  display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);place-items:stretch;gap:0;padding:0;background:var(--au-page);overflow:auto}
:root[data-theme="light"] .center.au{--au-page:#f9f7f3;--au-panel:#efeae0;--au-panel-edge:#e0d8ca;--au-card:#fffefb;--au-card-edge:#dcd4c5;--au-div:#e6dfd2;--au-glow:transparent;--au-chip:#f3efe7;
  --au-shadow:0 1px 2px rgba(41,33,17,.05),0 8px 20px -14px rgba(41,33,17,.18)}
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]) .center.au{--au-page:#f9f7f3;--au-panel:#efeae0;--au-panel-edge:#e0d8ca;--au-card:#fffefb;--au-card-edge:#dcd4c5;--au-div:#e6dfd2;--au-glow:transparent;--au-chip:#f3efe7;
  --au-shadow:0 1px 2px rgba(41,33,17,.05),0 8px 20px -14px rgba(41,33,17,.18)}}
.center.au p,.center.au ul,.center.au h1,.center.au dl,.center.au dd{margin:0}

/* the brand panel: lockup at the top, the pitch on the panel's centre */
.center.au > .au-show{position:relative;display:flex;flex-direction:column;min-width:0;padding:40px 64px;border-right:1px solid var(--au-panel-edge);
  background:radial-gradient(60% 50% at 40% 70%,var(--au-glow),transparent 72%),var(--au-panel)}
.center.au .au-lock{display:flex;align-items:center;gap:12px;height:32px}
.center.au .au-lock > .mark-s{zoom:1.6;margin:0}
.center.au .au-lock > b{font:700 18px/24px var(--sans);letter-spacing:-.015em;color:var(--text)}
.center.au .au-lock > .au-prod{padding-left:12px;border-left:1px solid var(--border);font:400 15px/20px var(--sans);color:var(--text-2)}
.center.au .au-pitch{display:flex;flex-direction:column;width:100%;max-width:540px;margin:auto 0;padding:32px 0 72px}
.center.au .au-tag{font:700 40px/1.12 var(--sans);letter-spacing:-.025em;color:var(--text);text-wrap:balance}
.center.au .au-feats{display:flex;flex-direction:column;gap:14px;margin-top:28px;padding:0;list-style:none}
.center.au .au-feats > li{display:flex;align-items:center;gap:14px;font:400 16px/24px var(--sans);color:var(--text)}
.center.au .au-fi{display:inline-grid;place-items:center;flex:none;width:32px;height:32px;border-radius:9px;background:var(--accent-soft);color:var(--accent-text)}
.center.au .au-fi > .ic{width:16px;height:16px;stroke-width:2}

/* the still preview: an instance card with its request docked at the foot */
.center.au .au-pv{margin-top:40px;overflow:hidden;border:1px solid var(--au-card-edge);border-radius:14px;background:var(--au-card);box-shadow:var(--au-shadow)}
.center.au .pv-body{display:flex;flex-direction:column;gap:16px;padding:18px 20px}
.center.au .pv-h{display:flex;align-items:center;justify-content:space-between;gap:12px}
.center.au .pv-n{display:flex;flex-direction:column;gap:2px;min-width:0}
.center.au .pv-n > b{font:600 15px/22px var(--sans);color:var(--text)}
.center.au .pv-n > span{font:400 14px/20px var(--sans);color:var(--text-2)}
.center.au :is(.pv-ok,.pv-need){display:inline-flex;align-items:center;gap:6px;flex:none;height:26px;padding:0 10px;border-radius:999px;font:600 13px/1 var(--sans)}
.center.au .pv-ok{background:var(--ok-soft);color:var(--ok)}
.center.au .pv-need{background:var(--warn-soft);color:var(--warn-ink,var(--warn))}
.center.au .pv-ok > i{width:6px;height:6px;border-radius:50%;background:currentColor}
.center.au .pv-bots{display:flex;gap:8px}
.center.au .pv-bots > span{display:inline-flex;align-items:center;gap:7px;height:28px;padding:0 12px;border-radius:999px;background:var(--au-chip);font:400 14px/1 var(--sans);color:var(--text)}
.center.au .pv-bots i{width:7px;height:7px;border-radius:50%;background:var(--ok)}
.center.au .pv-bots i.w{background:var(--warn-dot,var(--warn))}
.center.au .pv-req{display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:12px;padding:16px 20px;border-top:1px solid var(--au-div)}
.center.au .pv-ic{display:inline-grid;place-items:center;width:36px;height:36px;border-radius:10px;background:var(--warn-soft);color:var(--warn-ink,var(--warn))}
.center.au .pv-ic > .ic{stroke-width:2}
.center.au .pv-t{display:flex;flex-direction:column;gap:2px;min-width:0}
.center.au .pv-l{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font:400 14px/22px var(--sans);color:var(--text)}
.center.au .pv-t b{font-weight:600}
.center.au .pv-t code{padding:1px 5px;border-radius:5px;background:var(--code-bg);font:400 13px/18px var(--mono);color:var(--text)}
.center.au .pv-t code > span{color:var(--text-2)}
.center.au .pv-s{font:400 13.5px/20px var(--sans);color:var(--text-2)}

/* the page: the form on the panel's axis, the caption at the foot */
.center.au > .au-side{display:flex;flex-direction:column;align-items:center;min-width:0;padding:40px 48px}
.center.au .au-form{display:flex;flex-direction:column;width:min(360px,100%);margin:auto 0}
.center.au .au-form > h1{font:700 30px/36px var(--sans);letter-spacing:-.022em;color:var(--text)}
.center.au .au-lede{margin-top:10px;font:400 15px/23px var(--sans);color:var(--text-2)}
.center.au button.au-go{width:100%;height:44px;min-height:44px;margin-top:28px;padding:0 16px;border-radius:10px;font:600 15px/20px var(--sans)}
.center.au details.au-more{position:relative;margin-top:16px;padding-top:16px;border-top:1px solid var(--border-soft)}
.center.au details.au-more > summary{display:flex;align-items:center;gap:10px;height:40px;margin:0 -12px;padding:0 12px;border-radius:10px;list-style:none;cursor:pointer;font:500 14px/20px var(--sans);color:var(--text);transition:background var(--dur-1) var(--ease)}
.center.au details.au-more > summary::-webkit-details-marker{display:none}
.center.au details.au-more > summary:hover,.center.au details.au-more[open] > summary{background:var(--hover)}
.center.au details.au-more > summary:focus-visible{outline:var(--focus-outline);outline-offset:2px}
.center.au details.au-more > summary > .ic{flex:none;color:var(--text-2)}
.center.au details.au-more > summary > .ic:last-child{margin-left:auto;transition:transform var(--dur-2) var(--ease)}
.center.au details.au-more[open] > summary > .ic:last-child{transform:rotate(180deg)}
.center.au .au-pop{position:absolute;left:-12px;right:-12px;top:calc(100% + 6px);z-index:2;padding:16px;border:1px solid var(--border-strong);border-radius:12px;background:var(--raised);box-shadow:var(--shadow-3);text-align:left}
.center.au .au-pop > p{margin-bottom:12px;font:400 13.5px/20px var(--sans);color:var(--text-2)}
.center.au .au-pop dl{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px 16px;font:400 13.5px/20px var(--sans)}
.center.au .au-pop dl > div{display:contents}
.center.au .au-pop dt{color:var(--text-2)}
.center.au .au-pop dd{min-width:0;overflow-wrap:anywhere;color:var(--text)}
.center.au .au-pop code{padding:0;background:none;font:400 13px/20px var(--mono);color:var(--text)}
.center.au .au-pop code > .v{color:var(--text-2)}
.center.au .au-foot{display:flex;align-items:center;justify-content:center;gap:8px;height:32px;font:400 13.5px/20px var(--sans);color:var(--text-2)}
.center.au .au-foot > .ic{flex:none;width:16px;height:16px}

@media (max-width:1099px) and (min-width:900px){.center.au .au-pv{display:none}.center.au > .au-show{padding:40px 48px}}
/* phone: lockup, then the form, then the panel as a full-bleed band carrying the pitch and the caption */
@media (max-width:899px){
  .center.au{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;padding:0}
  .center.au > .au-show,.center.au > .au-side{display:contents}
  .center.au .au-lock{order:1;flex:none;gap:10px;padding:20px 24px 0;height:auto}
  .center.au .au-lock > b{font-size:17px}
  .center.au .au-lock > .au-prod{padding-left:10px;font-size:14px}
  .center.au .au-form{order:2;flex:none;width:auto;margin:0;padding:40px 24px 28px}
  .center.au .au-form > h1{font-size:28px;line-height:34px;letter-spacing:-.02em}
  .center.au .au-lede{margin-top:8px;font-size:15px;line-height:22px}
  .center.au button.au-go{height:48px;min-height:48px;margin-top:24px}
  .center.au details.au-more{margin-top:20px;padding-top:12px}
  .center.au details.au-more > summary{height:44px}
  .center.au .au-pop{position:static;margin:8px -12px 0;border-color:var(--border);background:var(--surface-1);box-shadow:none}
  .center.au .au-pitch{order:3;flex:1 0 auto;justify-content:flex-start;max-width:none;width:auto;margin:0;padding:28px 24px 8px;border-top:1px solid var(--au-panel-edge);
    background:radial-gradient(80% 45% at 70% 80%,var(--au-glow),transparent 72%),var(--au-panel)}
  .center.au .au-tag{font-size:20px;line-height:26px;letter-spacing:-.018em}
  .center.au .au-feats{gap:10px;margin-top:16px}
  .center.au .au-feats > li{gap:12px;font-size:15px;line-height:22px}
  .center.au .au-fi{width:28px;height:28px;border-radius:8px}
  .center.au .au-pv{margin-top:20px}
  .center.au .pv-body{gap:12px;padding:14px 16px}
  .center.au .pv-req{grid-template-columns:auto minmax(0,1fr);gap:8px 10px;padding:12px 16px 14px}
  .center.au .pv-ic{display:none}
  .center.au .pv-t{display:contents}
  .center.au .pv-l{grid-column:1/-1;white-space:normal}
  .center.au .pv-need{grid-row:2;grid-column:1}
  .center.au .pv-s{grid-row:2;grid-column:2}
  .center.au .au-foot{order:4;flex:none;height:auto;padding:12px 24px 20px;background:var(--au-panel);font-size:13px}
}
@media (max-width:899px) and (max-height:760px){.center.au .au-pv{display:none}.center.au .au-pitch{justify-content:center;padding-bottom:28px}}
/* ==== sign in (sprint) end ==== */

} /* end @layer late */

/* ---- reduced motion: last, so it wins ---- */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important;scroll-behavior:auto !important}
  .overlay,.gk-scrim{-webkit-backdrop-filter:none;backdrop-filter:none}
}
@media (prefers-reduced-transparency:reduce){.overlay,.gk-scrim,.gk-menu .gk-menu-scrim{-webkit-backdrop-filter:none;backdrop-filter:none}}
