/* ==========================================================================
   cinqstack design system
   One stylesheet for the whole console. Every module uses these tokens and
   components; nothing defines its own palette, font or radius.
   Rules (from the console styleguide):
   - colours, radii, shadows and fonts come from the tokens below only;
   - one action colour, one accent blue, three status colours;
   - sentence case; "cinqstack" always lower case; technical values in .mono;
   - Font Awesome icons only.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../vendor/inter/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* The display face: page titles, widget and section titles, big numbers (the wordmark's family). Self-hosted. */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../vendor/plus-jakarta-sans/PlusJakartaSans-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../vendor/plus-jakarta-sans/PlusJakartaSans-latin-ext.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* IBM Plex Mono (OFL, vendor/ibm-plex-mono): eyebrows, section labels and numbers that line up */
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../vendor/ibm-plex-mono/IBMPlexMono-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../vendor/ibm-plex-mono/IBMPlexMono-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../vendor/ibm-plex-mono/IBMPlexMono-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../vendor/ibm-plex-mono/IBMPlexMono-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../vendor/ibm-plex-mono/IBMPlexMono-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../vendor/ibm-plex-mono/IBMPlexMono-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;

  /* Surfaces & text */
  --bg: #ffffff;
  --canvas: #fafafa;
  --surface: #ffffff;
  --surface-2: #f6f8fa;
  --surface-3: #eef1f5;
  --elevated: #ffffff;
  --tip-bg: #1b2028;  --tip-fg: #f1f5f9;  --tip-line: transparent;
  --sidebar: #080D17;
  --side-text: #C3CDDB; --side-title: #F4F7FB; --side-label: #8794A9; --side-icon: #8794A9; --side-faint: #6F7D93;
  --side-line: rgba(255, 255, 255, .08); --side-hover: rgba(255, 255, 255, .06); --side-active: rgba(30, 144, 255, .14);
  --brand-gradient: linear-gradient(90deg, #00E5FF, #1E90FF);         /* the logo's gradient: marker, top strip, progress bars; never buttons, cards or charts */
  --border: #e4e7ec;
  --border-strong: #d0d5dd;
  --title: #161616;
  --text: #525252;
  --text-2: #334155;
  --muted: #6b7b8c;
  --faint: #94a3b8;

  /* Action & accent */
  --action: #1565E0;                 /* the logo blue: 5.4:1 on white */
  --action-hover: #0F4FB4;
  --action-text: #ffffff;
  --accent: #1565E0;
  --accent-hover: #0F4FB4;
  --accent-soft: color-mix(in srgb, #1565E0 10%, #fff);
  --soft-btn-bg: color-mix(in srgb, #1565E0 8%, #fff);
  --soft-btn-bg-hover: color-mix(in srgb, #1565E0 14%, #fff);
  --soft-btn-text: #1565E0;
  --btn-fill: #f5f6f8;
  --btn-fill-hover: #eaecef;
  --btn-text: #3f3f46;
  --nav-hover: #eff4fa;
  --nav-active: #f3f4f6;

  /* Status: the only greens, ambers and reds in the product */
  --success: #16a34a;  --success-soft: #f0fdf4;  --success-text: #15803d;
  --warn: #d97706;     --warn-soft: #fff4e6;     --warn-text: #c2410c;
  --danger: #dc2626;   --danger-soft: #fef2f2;   --danger-text: #b91c1c;
  --info: #2563eb;     --info-soft: #eff6ff;     --info-text: #1d4ed8;
  --neutral-soft: #f1f3f6; --neutral-text: #475569;
  --edition-pro: var(--accent); --edition-enterprise: #0F3E8C;     /* edition badges and locked-feature chips: the deep brand blue, no violet */

  /* Brand ribbon: the logo gradient, for progress and loading bars only, never for text, buttons, cards or charts */
  --brand-ribbon: var(--brand-gradient);

  /* Shape & depth */
  /* squared: one 2 px radius on cards, widgets, panels, buttons, inputs, chips, badges, menus and tooltips;
     0 on sidebar items, list rows, table cells and the fact strip. Structure comes from neutral bands and 1 px rules. */
  --radius-lg: 2px;
  --radius: 2px;
  --radius-sm: 2px;
  --radius-badge: 2px;
  --pill: 2px;
  --band: #F7F8FA;                 /* the title band on widgets and panel sections */
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .04);
  --shadow-md: 0 4px 12px rgba(16, 24, 40, .08), 0 2px 4px rgba(16, 24, 40, .04);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .12), 0 4px 8px rgba(16, 24, 40, .05);
  --focus-ring: 0 0 0 3px rgba(21, 101, 224, .22);

  /* Shell */
  --sidebar-w: 248px;
  --sidebar-w-collapsed: 60px;
  --bar-h: 52px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0D1422;                      /* the brand navy family, not grey-black */
  --canvas: #080D17;
  --surface: #0D1422;
  --surface-2: #131B2B;
  --surface-3: #1A2436;
  --elevated: #131B2B;
  --tip-bg: #1A2436;  --tip-fg: #eef2f7;  --tip-line: rgba(216, 225, 234, .12);
  --sidebar: #080D17;
  --border: rgba(216, 225, 234, .12);
  --border-strong: rgba(216, 225, 234, .22);
  --title: #eef1f5;
  --text: #b6bcc6;
  --text-2: #c3c9d3;
  --muted: #8a94a3;
  --faint: #64707e;
  --action: #1E6FE0;                  /* white text on it: 4.6:1 */
  --action-hover: #3DA0FF;
  --accent: #3DA0FF;                  /* the brand blue lifted for the dark surfaces: 7:1 on #0D1422 */
  --accent-hover: #6AB7FF;
  --accent-soft: rgba(61, 160, 255, .16);
  --band: #111A2B;
  --soft-btn-bg: color-mix(in srgb, #3DA0FF 16%, #0D1422);
  --soft-btn-bg-hover: color-mix(in srgb, #3DA0FF 24%, #0D1422);
  --soft-btn-text: #6AB7FF;
  --btn-fill: #131B2B;
  --btn-fill-hover: #1A2436;
  --btn-text: #d7dbe1;
  --nav-hover: #131B2B;
  --nav-active: #1A2436;
  --success-soft: rgba(22, 163, 74, .16);  --success-text: #4ade80;
  --warn-soft: rgba(217, 119, 6, .16);     --warn-text: #fbbf24;
  --danger-soft: rgba(220, 38, 38, .18);   --danger-text: #f87171;
  --info-soft: rgba(37, 99, 235, .16);     --info-text: #93c5fd;
  --neutral-soft: rgba(148, 163, 184, .14); --neutral-text: #c3c9d3;
  --edition-pro: var(--accent); --edition-enterprise: #8FBEF5;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5), 0 1px 3px rgba(0, 0, 0, .35);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, .45), 0 2px 4px rgba(0, 0, 0, .3);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, .55), 0 4px 8px rgba(0, 0, 0, .35);
  --focus-ring: 0 0 0 3px rgba(61, 160, 255, .28);
}

/* -- Base ----------------------------------------------------------------- */
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--canvas); }
body {
  font: 14px/1.5 var(--font-sans);
  font-feature-settings: "cv05", "cv11";
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
/* The NetBox mark (c7's standard, 2026-11-23; Jon: "one recognisable button / link to the asset in netbox"): a small
   standalone arrow icon after the name of what it opens is THE link into NetBox (_nb.html, csPanel.nb). Quiet at rest
   (the muted text colour, a little faded, about 0.72em), clear on intent: hover and keyboard focus turn it NetBox teal
   at full strength, with the focus ring; its hit area reaches past the small icon. A link to another website is blue
   text ending in the arrow, so the two read apart. Its whole look is this block: change it here and every mark changes.
   Inline, and held to the name's last character (.nb-tail, or a word joiner after a linked name): it never wraps onto
   a line of its own. (The "nb" badge tried first on 23 Nov read as clutter, Jon: "icon has to be the way?") */
:root { --nb-badge: #0f766e; }
:root[data-theme="dark"] { --nb-badge: #2dd4bf; }
.nb-mark { position: relative; display: inline; flex: none; color: var(--muted); opacity: .72; font-size: .72em; line-height: 1; white-space: nowrap;
  text-decoration: none; transition: color .12s ease, opacity .12s ease; }
.nb-mark > i { font-size: 1em; vertical-align: .08em; }
a.nb-mark[href] { margin-left: .4em; color: var(--muted); text-decoration: none; cursor: pointer; border-radius: 2px; }
a.nb-mark[href]::after { content: ""; position: absolute; inset: -7px -6px; }          /* a comfortable hit area round the small icon */
a.nb-mark[href]:hover, a.nb-mark[href]:focus-visible, a.nb-btn:hover .nb-mark, a.nb-btn:focus-visible .nb-mark { color: var(--nb-badge); opacity: 1; text-decoration: none; }
a.nb-mark[href]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.nb-name > a { color: var(--accent); }
.nb-tail { white-space: nowrap; }
/* Density (Jon, 2026-11-23, a panel's 53 interface rows each with marks: "even more ridiculous"). In a row (a table row, a
   list row, a panel's details row or breadcrumb segment, a key-value value) the marks wait at opacity 0 and show while the
   row is hovered or holds the keyboard focus: still in the tab order and read out, their space kept, so nothing moves.
   A device that cannot hover (a phone) shows them, muted. A mark outside any row (after a heading, in running text, in
   a chip on its own) and the button always show. */
@media (hover: hover) {
  :is(tr, li, .sp-dl-row, .sp-path-seg, .sp-kv > dd) a.nb-mark[href]:not(:hover):not(:focus-visible) { opacity: 0; }
  :is(tr, li, .sp-dl-row, .sp-path-seg, .sp-kv > dd):is(:hover, :focus-within) a.nb-mark[href]:not(:hover):not(:focus-visible) { opacity: .72; }
}
/* the button form: the NetBox name and the arrow in the secondary hairline button, accent tint on hover; 32 px in a panel's
   action group or a page head, 24 px small. The brand name comes from the macro, never a logo. */
a.nb-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  color: var(--title); font-size: 12.5px; font-weight: 600; line-height: 1; white-space: nowrap; text-decoration: none; transition: background-color .14s ease, border-color .14s ease, color .14s ease; }
a.nb-btn .nb-mark { font-size: 11px; opacity: 1; }
a.nb-btn.nb-btn-sm .nb-mark { font-size: 10px; }
a.nb-btn:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); background: var(--accent-soft); color: var(--accent); text-decoration: none; }
a.nb-btn.nb-btn-sm { height: 24px; padding: 0 7px; gap: 6px; font-size: 11.5px; vertical-align: middle; }
:root[data-theme="dark"] a.nb-btn { background: var(--surface-2); }
a.nb-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-radius: var(--radius); }
h1, h2, h3, h4 { color: var(--title); font-weight: 600; letter-spacing: -.01em; }
/* the display face: page titles, widget and section titles, big numbers; Inter stays for body and tables */
h1, h2, .ws-head h1, .page-head h1, .wg-title, .sp-name, .kpi-num, .big, .ch-num, .wg-stats b, .ov-top h1 { font-family: var(--font-display); }
/* eyebrows and section labels: mono caps, 11 px, .08em; the same voice everywhere (sidebar groups, panel sections, card heads, menus) */
.eyebrow, .sp-eyebrow, .sp-section-head h3, .nav-section, .card-head, .wg-menu-label, .runs-head, .rail-title, .dp-kv dt, .dp-h, .au-day-h, .section-title,
.findings-table tr.sev-group td, .au-table tr.au-group td, .ch-sub, .wg-menu-label {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
/* numbers that line up: legend values, counts in tables, addresses */
.num:not(th), td.num, .ch-legend b, .sp-count, .rp-count, .kpi-num, .ch-num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.kpi-num, .ch-num { font-family: var(--font-display); }
h1, .ws-head h1, .page-head h1, .ov-top h1, .kpi-num, .big, .ch-num { font-weight: 700; }
h1 { font-size: 20px; margin: 0 0 4px; }
h2 { font-size: 15px; margin: 24px 0 10px; }
h3 { font-size: 14px; margin: 0 0 6px; }
p { margin: 0 0 10px; }
code, pre, kbd, .mono { font-family: var(--font-mono); font-size: .925em; }
code { color: var(--text-2); }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.strong { font-weight: 600; color: var(--title); }
.nowrap { white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-radius: 2px; }
::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); }
::-webkit-scrollbar-track { background: transparent; }

/* -- Shell ---------------------------------------------------------------- */
.shell { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; transition: grid-template-columns .26s cubic-bezier(.2, .7, .2, 1); }
.shell.collapsed { grid-template-columns: var(--sidebar-w-collapsed) 1fr; }
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  background: var(--sidebar); color: var(--side-text); border-right: 1px solid var(--side-line); overflow: hidden;
}
.sidebar::before { content: ""; display: block; height: 3px; flex: none; background: var(--brand-gradient); }   /* the strip along the very top */
/* The brand in the app sidebar: the wordmark alone when expanded (its left edge on the nav icons' left edge, its
   x-height on their size), the icon mark alone when collapsed, and a cross-fade between the two on collapse and
   expand. The sign-in page, emails, website and brand kit keep the full lockup. The sidebar is midnight in both
   themes, so the white variants are the ones it shows. */
.brand { position: relative; display: block; height: var(--bar-h); flex-shrink: 0; }
.brand img { position: absolute; top: 50%; width: auto; opacity: 0; transition: opacity .18s ease; pointer-events: none; }
.brand .wordmark { left: 20px; height: 22px; transform: translateY(-50%); }
.brand .icon { left: 50%; height: 26px; transform: translate(-50%, -50%); }
.brand .brand-light { display: none; }
.shell:not(.collapsed) .brand .wordmark.brand-dark, .shell.collapsed .brand .icon.brand-dark { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .brand img { transition: none; } }
.focus-brand .brand-dark { display: none; }
:root[data-theme="dark"] .focus-brand .brand-light { display: none; }
:root[data-theme="dark"] .focus-brand .brand-dark { display: inline; }

.nav { flex: 1; overflow-y: auto; padding: 6px 0 10px; }
/* a window too short for the whole menu: a fade at the foot of the nav says there is more below; it goes once the
   nav is scrolled to its end (shell.js sets nav-more) */
.nav::after { content: ""; position: sticky; bottom: -10px; display: block; height: 40px; margin-top: -40px; pointer-events: none; opacity: 0; transition: opacity .15s;
  background: linear-gradient(to bottom, transparent, var(--sidebar) 80%); }
.nav.nav-more::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .nav::after { transition: none; } }
.nav-section { color: var(--side-label); padding: 14px 20px 6px; }
.nav a {
  display: flex; align-items: center; gap: 10px; padding: 8px 20px; margin: 0; border-radius: 0;
  color: var(--text); font-size: 14px; text-decoration: none; white-space: nowrap;
}
.nav a { position: relative; color: var(--side-text); }
.nav a i { width: 16px; text-align: center; color: var(--side-icon); font-size: 14px; }
/* the cinqstack icon set (web/icons.py, _icons.svg): a symbol in currentColor, sized by its width/height attributes */
/* the sprite itself never takes room, also where a strict CSP drops inline styles (the Field pages, 3c's fresh-eyes pass) */
svg.cs-sprite { display: none !important; }
.cs-i { display: inline-block; width: 1em; height: 1em; vertical-align: -.15em; flex: none; fill: none; }
.nav a .cs-i { width: 16px; height: 16px; color: var(--side-icon); }
.nav a:hover .cs-i { color: var(--side-text); }
.nav a.active .cs-i { color: var(--side-title); }
.nav .soon .cs-i { color: var(--side-faint); }
.nav a:hover { background: var(--side-hover); color: var(--side-title); }
.nav a:hover i { color: var(--side-text); }
.nav a.active { background: var(--side-active); color: var(--side-title); font-weight: 600; }
.nav a.active i { color: var(--side-title); }
.nav a.active::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; border-radius: 0; background: linear-gradient(180deg, #00E5FF, #1E90FF); }   /* the only other place the gradient lives */
.shell.collapsed .nav a span, .shell.collapsed .nav-section, .shell.collapsed .sidebar-footer .who { display: none; }
.shell.collapsed .nav a { justify-content: center; padding: 8px 0; }
/* edition, NetBox version and build: embedded at the foot of the nav rather than as chips in the top bar */
.sidebar-meta { display: flex; flex-wrap: wrap; gap: 0 6px; padding: 6px 16px 10px; font-size: 11px; color: var(--side-faint); white-space: nowrap; }
.sidebar-meta span:not(:last-child)::after { content: "·"; margin-left: 6px; }   /* the dot ends a line, never starts one */
.shell.collapsed .sidebar-meta { display: none; }
.shell.collapsed .sidebar-footer { flex-direction: column; justify-content: center; gap: 6px; padding: 10px 6px; }   /* rail: avatar above sign out, nothing clipped */
.sidebar-footer { border-top: 1px solid var(--side-line); padding: 10px; display: flex; align-items: center; gap: 8px; color: var(--side-text); }
.sidebar-footer .muted, .sidebar-footer small, .sidebar-footer .small { color: var(--side-faint); }
.sidebar-footer .avatar { background: var(--side-hover); color: var(--side-title); }
.sidebar-footer .icon-btn { color: var(--side-label); }
.sidebar-footer .icon-btn:hover { color: var(--side-title); background: var(--side-hover); }
.nav a.locked { color: var(--side-label); }
.nav a.locked i { color: var(--side-faint); }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--surface-3); color: var(--title); display: grid; place-items: center; font-weight: 600; font-size: 12px; flex-shrink: 0; }
.who { min-width: 0; flex: 1; line-height: 1.2; }
.who .name { color: var(--side-title); font-weight: 500; overflow: hidden; text-overflow: ellipsis; }   /* on the midnight sidebar */
.who .role { font-size: 11.5px; color: var(--side-faint); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; height: var(--bar-h); display: flex; align-items: center; gap: 12px;
  padding: 0 20px; background: color-mix(in srgb, var(--canvas) 88%, transparent); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
/* -- The top bar is responsive on its own width (container queries: the sidebar open or collapsed changes it, the
   viewport does not tell). Nothing wraps or overlaps: every text item is one line with an ellipsis and a tooltip, the
   theme button and the actions never shrink. As room goes, items drop in a fixed order: the licence line (also in the
   sidebar footer), then the tenant name (the logo mark stays), then the site picker's label shortens to the pin and
   the first word, then the page title. -- */
.topbar { container-type: inline-size; container-name: topbar; }
.topbar > * { min-width: 0; }
.topbar .crumbs { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; min-width: 0; flex: 0 1 auto; overflow: hidden; white-space: nowrap; }
.topbar .crumbs > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.topbar .crumbs strong { color: var(--title); font-weight: 600; }
.topbar .spacer { flex: 1 1 0; min-width: 8px; }
.topbar .icon-btn, .topbar .menu, .topbar .run-pill, .topbar .ed-badge, .topbar .ed-buy, .topbar .scope-menu { flex: none; }
.topbar .tenant { display: flex; align-items: center; gap: 8px; padding-left: 12px; border-left: 1px solid var(--border); color: var(--title); font-weight: 500; min-width: 0; flex: 0 4 auto; white-space: nowrap; }   /* gives way four times faster than the page title */
.topbar .tenant > span:not(.ed-badge) { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.topbar .tenant > .tenant-name { max-width: 220px; }
.topbar .licensed-to { max-width: 360px; overflow: hidden; text-overflow: ellipsis; }    /* a demo licence name fits; a longer one drops (shell.js), never ends in "…" */
.topbar .tb-alert { flex: 0 1 auto; min-width: 0; }
.topbar .tb-alert > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scope-btn { max-width: 380px; }   /* a long site name fits at desktop widths (ee-6); the bar drops to the code when tight */
.scope-btn > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scope-btn .scope-short { display: none; }
@container topbar (max-width: 1100px) { .topbar .licensed-to { display: none; } }
/* the same drop order by measurement (shell.js): a long page title or tenant name cuts before the bar is narrow */
.topbar.tb-tight-1 .licensed-to { display: none; }
.topbar.tb-tight-2 .tenant > .tenant-name { display: none; }
.topbar.tb-tight-3 .scope-btn .scope-full { display: none; } .topbar.tb-tight-3 .scope-btn .scope-short { display: inline; }
@container topbar (max-width: 900px) {
  .topbar .tenant > .tenant-name { display: none; }
  .topbar .tenant:not(:has(img)):not(:has(.ed-badge)) { display: none; }   /* nothing left to show: the block goes; the edition badge always stays */
  .topbar .tenant { border-left: 0; padding-left: 0; }
}
@container topbar (max-width: 720px) {
  .topbar { gap: 8px; padding: 0 12px; }
  .scope-btn .scope-full { display: none; }
  .scope-btn .scope-short { display: inline; }
  .topbar .tb-alert > span:last-child { display: none; }
}
@container topbar (max-width: 480px) { .topbar .crumbs { display: none; } }
/* a phone (b7, 2026-11-12: at 390 px with a site chosen and jobs running, the bar ran off the right edge and cut the
   edition badge): the run pill keeps its mark (the count is in its tooltip), the company logo goes, the site picker is
   the item that gives way (its label ends in an ellipsis), and the edition badge stays whole */
@container topbar (max-width: 480px) {
  .topbar .run-pill .runs-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }   /* the mark and the number */
  .runs-ind > button.run-pill { gap: 6px; padding: 0 8px; }
  .topbar .tenant img { display: none !important; }
  .topbar .scope-menu { flex: 0 1 auto; min-width: 0; }
  .topbar .scope-btn { max-width: 100%; min-width: 0; }
  .topbar .tenant { flex: none; }
}
/* the edition badge on a narrow bar (ee's visitor walk, 2026-11-12: it collapsed to a blank box): the tier mark alone,
   the licence line dropped, the tenant block kept at its own width */
@container topbar (max-width: 720px) {
  .topbar .tenant { flex: none; }
  .topbar .licensed-to { display: none; }
  .topbar .ed-badge .tier-name { display: none; }
  .topbar .ed-badge { padding: 0 5px; }
}
.topbar .tenant img { height: 24px; width: auto; max-width: 120px; object-fit: contain; }
.topbar .tenant img.is-dark { display: none; }
[data-theme="dark"] .topbar .tenant.has-dark-logo img.tenant-logo:not(.is-dark) { display: none; }
[data-theme="dark"] .topbar .tenant.has-dark-logo img.is-dark { display: block; }
.icon-btn {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-sm);
  border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 0;
}
.icon-btn:hover { background: var(--accent-soft); color: var(--accent); }
.content { padding: 22px 24px 48px; }
/* Page kinds (Jon's rule, 2026-11-10): a data page (tables, charts, runs, jobs, connectors: the default) takes the
   content width up to 1760 px, left-aligned with its title; text and forms (class "text": settings, edit forms,
   wizards, licence) stay at 1040 px; a workspace (list + drawer) or a canvas (class "canvas") takes everything.
   The kind is a class on the layout's page element (block main_class), never per-page CSS. */
.page { max-width: 1760px; margin: 0; }
.page.wide { max-width: 1760px; }
/* a text page's content stays at 1040 px, but its head spans the page, so the head's buttons (Job history, the module
   links on connection pages) sit at the far right as on every other page, not at x=1000 (sweep 4.22, 2026-11-14).
   :where() keeps these at no specificity: a narrower child (.job-form, 780 px) keeps its own width. */
.page.text { max-width: 1760px; }
:where(.page.text) > :where(:not(.page-head)) { max-width: 1040px; }
.page.canvas, .page:has(> .ws) { max-width: none; }
.narrow { max-width: 600px; margin: 0 auto; }

/* Focus layout (sign-in, setup) */
.focus-shell { min-height: 100vh; display: grid; place-items: start center; padding: 56px 16px; background:
  radial-gradient(1200px 400px at 50% -120px, color-mix(in srgb, var(--accent) 10%, transparent), transparent), var(--canvas); }
.focus-shell .focus-brand { display: flex; justify-content: center; margin-bottom: 24px; }
.focus-shell .focus-brand img { height: 40px; }
.focus-shell .focus-card { width: min(560px, 100%); }
.focus-shell .focus-card.wide { width: min(1040px, 100%); }     /* a table step (the schema) gets the text width */
.schema-summary { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; font-size: 14px; }
.schema-summary .names { color: var(--muted); font-size: 13px; flex: 1 1 260px; min-width: 0; white-space: normal; }   /* the missing fields' list wraps (it pushed a phone to 1,112 px) */
/* a phone: each requirement a short card (what it is, its kind and module, its status, the field to map it), so the
   status and the mapping box are not behind a sideways swipe (3c's basics audit, 2026-11-14) */
@media (max-width: 640px) {
  .table-wrap:has(> .schema-table) { overflow: visible; }
  .schema-table, .schema-table tbody { display: block; width: 100%; }
  .schema-table thead { display: none; }
  .schema-table tr { display: grid; grid-template-columns: auto auto 1fr; gap: 6px 10px; align-items: center; padding: 12px 10px; border-bottom: 1px solid var(--border); }
  .schema-table td { display: block; padding: 0; border: 0; min-width: 0; }
  .schema-table td:first-child, .schema-table td:last-child { grid-column: 1 / -1; }
  .schema-table td:nth-child(2), .schema-table td:nth-child(3) { color: var(--muted); font-size: 12.5px; }
  .schema-table td:last-child input { width: 100%; }
  .schema-table td:last-child::before { content: "Use existing NetBox object"; display: block; margin-bottom: 4px; font-size: 12px; color: var(--muted); }
}
details.schema-detail > summary { cursor: pointer; color: var(--accent); font-size: 13px; margin-bottom: 10px; }
.focus-shell footer { text-align: center; color: var(--faint); font-size: 12px; margin-top: 18px; }

/* -- Page header ---------------------------------------------------------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head .lead { color: var(--muted); margin: 2px 0 0; max-width: 72ch; }

/* -- Layout helpers ------------------------------------------------------- */
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
form.row > :is(button, .button), form .row > :is(button, .button) { align-self: flex-end; }   /* beside captioned fields the button sits on the fields' line, not the row's middle (Jon, 2026-11-10: the Filter and Route buttons) */
.row.spread, .spread { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.inline { display: inline; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: 4px 0; }

/* -- Cards ---------------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card.dim, tr.dim { opacity: .55; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: -14px -16px 12px; padding: 10px 16px;
  background: var(--band); border-bottom: 1px solid var(--border); color: var(--muted); border-radius: var(--radius) var(--radius) 0 0; }

/* KPI tiles */
/* a page's fact strip: the panel's .sp-fact cells in a framed row (Firewall policy Overview); a linked cell takes the area hover */
.row > label.grow { flex: 2 1 240px; min-width: 0; } .row > label.grow > input { width: 100%; box-sizing: border-box; }   /* a filter form's search box takes the room that is left */
/* a card form's row (Path's From / To / Service, Relay's new edge, the Data flows filter) stacks on a narrow window */
@media (max-width: 640px) {
  form.card.row { flex-direction: column; align-items: stretch; }
  form.card.row > label { flex: none !important; width: 100%; min-width: 0; }
  form.card.row > label > input, form.card.row > label > select { width: 100%; box-sizing: border-box; }
  form.card.row > button, form.card.row > .button { align-self: flex-start; }
}
.pg-facts { display: flex; flex-wrap: wrap; margin-bottom: 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.pg-facts .sp-fact { flex: 1 1 auto; justify-content: center; min-height: 38px; color: var(--text); font-size: 13px; }
.pg-facts .sp-fact b { color: var(--title); font-weight: 600; font-variant-numeric: tabular-nums; margin-right: 1px; }
.pg-facts .sp-fact .cs-signed { display: inline-flex; }
.pg-facts a.sp-fact { transition: background-color .15s ease; }
.pg-facts a.sp-fact:hover, .pg-facts a.sp-fact:focus-visible { background: color-mix(in srgb, var(--accent) 6%, var(--surface)); text-decoration: none; }
.pg-facts .sp-fact.bad b { color: var(--danger-text); } .pg-facts .sp-fact.warn b { color: var(--warn-text); }
.grid.stats { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.grid.stats .card { position: relative; padding: 12px 14px; overflow: hidden; color: var(--muted); font-size: 12.5px; }
.big { font-size: 24px; font-weight: 600; color: var(--title); letter-spacing: -.02em; line-height: 1.2; font-variant-numeric: tabular-nums; }

/* -- Forms ---------------------------------------------------------------- */
label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 500; color: var(--title); }
label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; color: var(--text); }
label .muted { font-weight: 400; }
/* fields side by side line up (sweep 4.29, 2026-11-14): the labels' tops align, not their middles (a select is shorter
   than an input, so centred labels sat at different heights), and an empty hint takes no line */
form .row:has(> label:not(.check)):not(:has(> label.check)) { align-items: flex-start; }
label > .muted:empty { display: none; }
input, select, textarea {
  font: inherit; font-size: 13.5px; color: var(--title); background: var(--surface); width: 100%;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 7px 10px; transition: border-color .15s, box-shadow .15s;
  line-height: 20px;
}
/* a select beside an input is the same height (ee's sweep 4.29: it stood 2 px shorter). Chromium sizes a select from the
   font, not line-height, so it takes one more pixel of padding top and bottom: 36 px like the inputs. */
select:not([multiple]):not([size]) { padding-top: 8px; padding-bottom: 8px; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus-ring); }
input[type=checkbox], input[type=radio] { width: 15px; height: 15px; accent-color: var(--accent); padding: 0; }
input[type=color] { width: 4rem; height: 2.25rem; padding: 2px; }
input[type=file] { padding: 5px; }
.narrow-input { width: 5.5rem; }
fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; margin: 0; }
legend { padding: 0 6px; font-weight: 600; color: var(--title); font-size: 13px; }
.inline-label { flex-direction: row; align-items: center; gap: 6px; font-weight: 400; }
.inline-label input { width: auto; }

/* -- Buttons -------------------------------------------------------------- */
/* One button, five variants, the action colour is the brand blue everywhere (green stays for "healthy"):
   secondary (the default, FortiManager's toolbar style: outlined, icon and label in the accent), primary (filled, at most
   one per view), tertiary/.link (text only), danger (outlined red; filled red only inside a confirm dialog, .danger.primary),
   disabled (same shape at 45%, not-allowed, a title says why when we know). Hover: a soft blue fill, primary one step
   darker; pressed one step more; focus ring in blue. Toolbars always carry an icon with the label. */
button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; font: inherit; font-size: 13.5px; font-weight: 500;
  min-height: 34px; padding: 6px 13px; border-radius: var(--radius); border: 1px solid var(--accent); cursor: pointer; line-height: 1.25;
  background: var(--surface); color: var(--accent); text-decoration: none; transition: background .15s, color .15s, border-color .15s;
}
button i, a.button i { font-size: 13px; line-height: 1; }
button:hover, a.button:hover { background: var(--accent-soft); color: var(--accent); text-decoration: none; }
button:active, a.button:active { background: color-mix(in srgb, var(--accent) 20%, var(--surface)); }
button:focus-visible, a.button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button.secondary, a.button.secondary, button.soft, a.button.soft { background: var(--surface); border-color: var(--accent); color: var(--accent); }
button.secondary:hover, a.button.secondary:hover, button.soft:hover, a.button.soft:hover { background: var(--accent-soft); }
button.primary, a.button.primary { background: var(--action); border-color: var(--action); color: var(--action-text); }
button.primary:hover, a.button.primary:hover { background: var(--action-hover); border-color: var(--action-hover); color: var(--action-text); }
button.primary:active, a.button.primary:active { background: color-mix(in srgb, var(--action-hover) 85%, #000); border-color: color-mix(in srgb, var(--action-hover) 85%, #000); }
button.link, a.button.link, button.tertiary, a.button.tertiary { background: none; border-color: transparent; padding: 4px 6px; min-height: 0; color: var(--accent); font-weight: 500; }
button.link:hover, a.button.link:hover, button.tertiary:hover, a.button.tertiary:hover { background: var(--accent-soft); color: var(--accent); }
button.danger, a.button.danger { background: var(--surface); border-color: var(--danger); color: var(--danger-text); }
button.danger:hover, a.button.danger:hover { background: var(--danger-soft); color: var(--danger-text); }
button.danger.primary, a.button.danger.primary { background: var(--danger); border-color: var(--danger); color: #fff; }
/* the native file picker's button reads as a secondary button in both themes, not the browser's grey (ee-8) */
input[type=file] { color: var(--text-2); font: inherit; font-size: 13px; }
input[type=file]::file-selector-button { margin-right: 10px; padding: 5px 12px; border: 1px solid var(--accent); border-radius: var(--radius);
  background: var(--surface); color: var(--accent); font: inherit; font-weight: 500; cursor: pointer; }
input[type=file]::file-selector-button:hover { background: var(--accent-soft); }
/* Branding: the logo in use beside its upload; the dark-mode logo on the dark top bar's colour */
/* upload with preview (_file_pick.html, file_pick.js; c7 from Jon, 2026-11-14): a fixed tile, the picture contained
   and padded on the background it is meant for, whatever the page's theme; the button and the file's name beside it */
.fp { display: flex; align-items: flex-start; gap: 14px; }
.fp-tile { flex: none; display: grid; place-items: center; width: 220px; height: 76px; padding: 10px 14px; box-sizing: border-box;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.fp-tile.fp-light { background: #FFFFFF; border-color: #D6DCE4; }
.fp-tile.fp-dark { background: #0D1422; border-color: #2A3546; }
/* inside the tile's padding, contained: an SVG without a width or height (no natural size) fits like any picture (a
   percentage height on a grid item fell back to the SVG's default size and was cut) */
.fp-tile { position: relative; }
.fp-tile .fp-img { position: absolute; top: 10px; right: 14px; bottom: 10px; left: 14px; width: calc(100% - 28px); height: calc(100% - 20px); object-fit: contain; }
.fp-tile .fp-empty { color: #6B7785; }
.fp-tile.fp-dark .fp-empty { color: #9AA7B6; }
.fp.is-removing .fp-tile { border-style: dashed; }
.fp-side { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fp-label { font-weight: 600; }
.fp-pick { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.fp-pick label.button { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; white-space: nowrap; cursor: pointer; margin: 0; }
.fp-name { overflow-wrap: anywhere; }
.fp-remove { align-self: flex-start; padding: 0; border: 0; background: none; color: var(--danger-text); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.fp-remove[aria-pressed="true"] { color: var(--accent-text, var(--accent)); }
.fp-msg:empty { display: none; }
.fp-msg.bad { color: var(--danger-text); }
.br-logos { display: grid; gap: 16px; }
.dp-upload-form .fp-tile { width: 100%; height: 110px; }
.dp-upload-form .fp { flex-direction: column; gap: 8px; }
@media (max-width: 640px) { .fp { flex-direction: column; gap: 8px; } .fp-tile { width: 100%; } }
.br-logo-row { display: flex; align-items: flex-end; gap: 12px; }
.br-logo-row > label { flex: 1 1 auto; min-width: 0; }
.br-logo-preview { flex: none; display: grid; place-items: center; width: 132px; height: 44px; padding: 5px 8px; box-sizing: border-box;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
.br-logo-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.br-logo-preview.is-dark { background: #0D1422; border-color: #0D1422; }
@media (max-width: 640px) { .br-logo-preview { width: 96px; } }
/* the one confirm dialog (shell.js, data-confirm): squared, the theme's surface and rules, light and dark */
dialog.cs-confirm { padding: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text);
  box-shadow: var(--shadow-lg); width: min(440px, calc(100vw - 32px)); }
dialog.cs-confirm::backdrop { background: rgba(10, 16, 28, .45); }
.cs-confirm-box { margin: 0; padding: 20px 20px 16px; }
.cs-confirm-title { margin: 0 0 8px; font-size: 16px; line-height: 1.35; font-weight: 600; color: var(--heading, var(--text)); }
.cs-confirm-body { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.cs-confirm-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--border); }
@media (prefers-reduced-motion: no-preference) {
  dialog.cs-confirm[open] { animation: cs-confirm-in .14s ease-out; }
  @keyframes cs-confirm-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}
button:disabled, .button[aria-disabled="true"], .button.is-disabled { opacity: .45; cursor: not-allowed; }
button:disabled:hover, .button[aria-disabled="true"]:hover, .button.is-disabled:hover { background: var(--surface); box-shadow: none; transform: none; border-color: var(--accent); }
button.primary:disabled:hover { background: var(--action); }

/* -- A locked control in a view-only page (Community topology): it opens the upgrade page */
a.button.is-locked { color: var(--muted); gap: 6px; }
.phys-bar [hidden] { display: none !important; }      /* toolbar buttons styled inline-flex */
a.button.is-locked .ed-badge { font-size: 10px; padding: 0 6px; }
a.button.is-locked:hover { color: var(--text-2); text-decoration: none; }

/* -- Demo company switcher (in the demo banner and on the sign-in card) ----- */
.demo-bar { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-left: 12px; }
.demo-bar a { font-weight: 600; white-space: nowrap; }
.demo-sep { color: var(--muted); }
.banner.focus-demo { margin: 0 0 14px; border-radius: var(--radius-sm); justify-content: center; text-align: center; }
.banner.focus-demo .demo-bar { margin-left: 0; justify-content: center; }

/* -- Power chain (side panels of the physical and logical views) ---------- */
.pw-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; font-size: 12.5px; }
.pw-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; padding: 8px 10px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--surface); }
.pw-port { font-weight: 650; margin-right: 2px; }
.pw-hop { display: inline-flex; align-items: center; gap: 5px; }
.pw-hop > i { color: var(--muted); font-size: 11px; }
.pw-hop.feed > i { color: var(--warn); }
.pw-arrow { color: var(--muted); font-size: 10px; }
.pw-none { color: var(--muted); }   /* "Not cabled", "upstream not recorded": a note, not a warning (Jon via c7, 2026-11-14) */
.pw-find { width: 28px; height: 28px; }
@media (pointer: coarse) { .pw-find { width: 40px; height: 40px; } }
.pw-issue { margin: 6px 0; padding: 8px 10px; border-radius: var(--radius); font-size: 12.5px; font-weight: 600; --c: var(--warn);
  border: 1px solid color-mix(in srgb, var(--c) 28%, var(--border)); background: color-mix(in srgb, var(--c) 7%, var(--surface)); color: var(--warn-text); }
.pw-issue.bad { --c: var(--danger); color: var(--danger-text); }
.pw-issue .small { font-weight: 400; color: var(--text); margin-top: 2px; }

/* -- Alerts (flash) ------------------------------------------------------- */
.flash { display: block; position: relative; padding: 10px 14px 10px 36px; margin-bottom: 14px; border-radius: var(--radius-sm);
  --c: var(--info); border: 1px solid color-mix(in srgb, var(--c) 28%, var(--border)); background: color-mix(in srgb, var(--c) 7%, var(--surface)); color: var(--title); }
/* the sign beside flowing text: the same squared ISO-style drawings as the pills, never a generic tick */
.flash::before { content: ""; position: absolute; left: 13px; top: 11px; width: 14px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 16 16%22%3E%3Ccircle cx=%228%22 cy=%228%22 r=%226.4%22 fill=%22none%22 stroke=%22%236b7b8c%22 stroke-width=%221.3%22/%3E%3Cpath d=%22M8 7v4.3%22 stroke=%22%236b7b8c%22 stroke-width=%221.6%22 stroke-linecap=%22square%22/%3E%3Cpath d=%22M8 4.3v1.3%22 stroke=%22%236b7b8c%22 stroke-width=%221.6%22 stroke-linecap=%22square%22/%3E%3C/svg%3E") center / contain no-repeat; }
.flash.success { --c: var(--success); }
.flash.success::before { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 16 16%22%3E%3Crect x=%221%22 y=%221%22 width=%2214%22 height=%2214%22 fill=%22%2316a34a%22/%3E%3Cpath d=%22M4 8.3 L6.9 11.1 L12.2 5.3%22 fill=%22none%22 stroke=%22%23fff%22 stroke-width=%221.8%22 stroke-linecap=%22square%22/%3E%3C/svg%3E"); }
.flash.error { --c: var(--danger); }
.flash.error::before { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 16 16%22%3E%3Ccircle cx=%228%22 cy=%228%22 r=%226.4%22 fill=%22%23fff%22 stroke=%22%23dc2626%22 stroke-width=%222%22/%3E%3Cpath d=%22M3.9 3.9 L12.1 12.1%22 stroke=%22%23dc2626%22 stroke-width=%222%22/%3E%3C/svg%3E"); }
.flash.warning::before, .flash.warn::before { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 16 16%22%3E%3Cpath d=%22M8 1.6 L15.1 14.4 H.9 Z%22 fill=%22%23F2B300%22 stroke=%22%231D2230%22 stroke-width=%221%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M8 5.6v4.3%22 stroke=%22%231D2230%22 stroke-width=%221.6%22 stroke-linecap=%22square%22/%3E%3Cpath d=%22M8 11.6v1.3%22 stroke=%22%231D2230%22 stroke-width=%221.6%22 stroke-linecap=%22square%22/%3E%3C/svg%3E"); }
:root[data-theme="dark"] .flash::before { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 16 16%22%3E%3Ccircle cx=%228%22 cy=%228%22 r=%226.4%22 fill=%22none%22 stroke=%22%238a94a3%22 stroke-width=%221.3%22/%3E%3Cpath d=%22M8 7v4.3%22 stroke=%22%238a94a3%22 stroke-width=%221.6%22 stroke-linecap=%22square%22/%3E%3Cpath d=%22M8 4.3v1.3%22 stroke=%22%238a94a3%22 stroke-width=%221.6%22 stroke-linecap=%22square%22/%3E%3C/svg%3E"); }
:root[data-theme="dark"] .flash.success::before { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 16 16%22%3E%3Crect x=%221%22 y=%221%22 width=%2214%22 height=%2214%22 fill=%22%2316a34a%22/%3E%3Cpath d=%22M4 8.3 L6.9 11.1 L12.2 5.3%22 fill=%22none%22 stroke=%22%23fff%22 stroke-width=%221.8%22 stroke-linecap=%22square%22/%3E%3C/svg%3E"); }
:root[data-theme="dark"] .flash.error::before { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 16 16%22%3E%3Ccircle cx=%228%22 cy=%228%22 r=%226.4%22 fill=%22%230D1422%22 stroke=%22%23dc2626%22 stroke-width=%222%22/%3E%3Cpath d=%22M3.9 3.9 L12.1 12.1%22 stroke=%22%23dc2626%22 stroke-width=%222%22/%3E%3C/svg%3E"); }
:root[data-theme="dark"] .flash.warning::before, :root[data-theme="dark"] .flash.warn::before { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 16 16%22%3E%3Cpath d=%22M8 1.6 L15.1 14.4 H.9 Z%22 fill=%22%23F5C342%22 stroke=%22%230B1020%22 stroke-width=%221%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M8 5.6v4.3%22 stroke=%22%230B1020%22 stroke-width=%221.6%22 stroke-linecap=%22square%22/%3E%3Cpath d=%22M8 11.6v1.3%22 stroke=%22%230B1020%22 stroke-width=%221.6%22 stroke-linecap=%22square%22/%3E%3C/svg%3E"); }
.flash.info { --c: var(--info); }
/* the running line of an immediate action (form[data-async]): a soft block with a sweeping bar, under the page head */
.busy-line { position: relative; display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 10px 14px 14px; border-radius: var(--radius-sm);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border)); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); color: var(--text); font-size: 13.5px; }
.busy-line > i { color: var(--accent); }
.mon-cycles-h { margin: 24px 0 8px; font-size: 15px; }
.mon-cycles td { vertical-align: middle; }
/* the running mark in place of the old spinners: inline in a busy line and on a busy button */
.rn-mark.rn-line { --s: 16px; } .rn-mark.rn-btn { --s: 14px; vertical-align: -2px; }
button .rn-mark.rn-btn i, .button .rn-mark.rn-btn i { background: currentColor; }
.is-busy > i.fa-rotate { opacity: .45; }
.busy-line .run-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 0; background: transparent; }
button.is-busy, .button.is-busy { opacity: .85; cursor: progress; }
.flash.warning, .flash.warn { --c: var(--warn); }
.banner { padding: 8px 20px; text-align: center; font-size: 13px; }
.banner.warn { background: var(--warn-soft); color: var(--warn-text); }
.banner.error { background: var(--danger-soft); color: var(--danger-text); }
.banner.info { background: var(--info-soft); color: var(--info-text); }
@media (max-width: 600px) { .ro-banner .ro-more { display: none; } }        /* a phone: "Read-only mode. Nothing is written to NetBox." */
.ro-apply { align-items: center; gap: 12px; }
.ro-apply > span > .fa-lock { color: var(--muted); margin-right: 2px; }
/* -- the demo sign-in page (Jon, 2026-11-09): centred, one segmented company switch with tier marks, two equal role cards
   (a card that is coming soon is muted with a chip and not clickable), a quiet note, the administrator sign-in below -- */
.demo-enter { display: grid; gap: 16px; justify-items: center; text-align: center; }
.demo-enter h1 { margin: 0; }
.demo-enter .demo-companies { margin: 2px 0 4px; }
.demo-enter .demo-companies .tier { margin-left: 6px; gap: 4px; } .demo-enter .demo-companies .tier-name { font-size: 10px; }
.demo-roles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; text-align: left; }
.demo-roles form { margin: 0; display: contents; }
.demo-role { display: grid; gap: 6px; justify-items: start; align-content: start; width: 100%; min-height: 100%; height: auto; padding: 16px 16px 18px;
  border: 1px solid var(--accent); border-radius: var(--radius); background: var(--surface); color: var(--text); text-align: left; font: inherit; line-height: 1.35; }
.demo-role i { font-size: 20px; color: var(--accent); margin-bottom: 4px; }
.demo-role strong { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--title); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.demo-role span:not(.chip) { font-size: 13px; color: var(--muted); }
.demo-role.is-soon { border-color: var(--border); background: var(--surface-2); cursor: not-allowed; }
.demo-role.is-soon i, .demo-role.is-soon strong { color: var(--muted); }
.chip.soon { padding: 1px 7px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); color: var(--muted);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; }
.demo-note { margin: 2px 0 0; font-size: 13px; color: var(--muted); max-width: 46ch; }
.demo-admin { width: 100%; }
.demo-admin > summary { cursor: pointer; font-size: 13px; color: var(--muted); list-style: none; text-align: center; padding: 4px; }
.demo-admin > summary::-webkit-details-marker { display: none; }
.demo-admin > summary:hover { color: var(--accent); }
.demo-admin[open] > summary { margin-bottom: 10px; }
.demo-admin .card { text-align: left; }
.demo-gate .card { width: 100%; text-align: left; }        /* the email gate: the same page, the form instead of the roles */
.demo-gate .demo-note { max-width: 54ch; }
.err-page .eyebrow { margin-bottom: 6px; }
.err-page h1 { margin-top: 0; }
.sso-or { margin: 14px 0 6px; }
@media (max-width: 520px) {
  .demo-roles { grid-template-columns: 1fr; }
  /* the company switch stacks on a phone: one company per row, still one joined piece (radii and divider turned) */
  .demo-enter .btn-group.demo-companies { flex-direction: column; width: 100%; height: auto; align-items: stretch; }
  .demo-enter .btn-group.demo-companies > :is(a, span) { justify-content: center; border-radius: 0; min-height: var(--grp-h); }
  .demo-enter .btn-group.demo-companies > :first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .demo-enter .btn-group.demo-companies > :last-child { border-radius: 0 0 var(--radius) var(--radius); }
  .demo-enter .btn-group.demo-companies > :not(:first-child) { --div: 0 -1px 0 var(--grp-line); }
  .banner .demo-banner-more { display: none; }     /* the demo banner keeps its first sentence and the company switch on a phone */
}
/* the sidebar entry of a feature that is coming soon: shown, muted, not a link */
.nav span.soon { display: flex; align-items: center; gap: 10px; padding: 8px 20px; color: var(--side-label); cursor: default; }
.nav span.soon i { width: 16px; text-align: center; color: var(--side-faint); font-size: 14px; }
.nav span.soon .nav-soon { margin-left: auto; font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--side-faint);
  border: 1px solid color-mix(in srgb, var(--side-faint) 50%, transparent); border-radius: var(--radius); padding: 0 5px; }
.shell.collapsed .nav span.soon .nav-soon, .shell.collapsed .nav span.soon > span:not(.nav-soon) { display: none; }

/* -- Tables --------------------------------------------------------------- */
.table-wrap { position: relative; overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }   /* positioned: an sr-only label in a header cell stays inside the scroll box */
table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.table-wrap table { border: 0; }
/* a phone (ee-19, 2026-11-13): a data table scrolls sideways instead of squeezing to one word a line; every cell keeps
   room for a few words, headings stay on one line. The workspace lists stack as cards instead (.dev-table, below). */
@media (max-width: 640px) {
  .table-wrap > table:not(.dev-table) :is(td, th) { min-width: 7.5em; }
  .table-wrap > table:not(.dev-table) th { white-space: nowrap; }
  .table-wrap > table:not(.dev-table) :is(td, th):empty, .table-wrap > table:not(.dev-table) :is(td, th).num { min-width: 0; }
}
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 500; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
td strong { color: var(--title); font-weight: 600; }

/* -- Status pills: direction B, the hairline, with our state marks (Jon's pick, 2026-11-10) ----------------------------
   A 1 px border in the tone over a 4 % tint, the words in the title colour, the colour on the mark. The mark is the
   ISO-style sign for a check or health state (ok, warn, fail, info: the image rules further down), the NetBox
   lifecycle square (st-<status>), the sync layers (sync-<state>), the run state's icon (has-icon, run_pill) or the
   severity glyph (high, medium, low). --t is the tone; a category pill (na, a level, a vendor) keeps a small square. */
.pill, .badge { --t: var(--muted); display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px 0 6px; border-radius: var(--radius-badge);
  font-size: 12px; font-weight: 550; line-height: 1; color: var(--title); white-space: nowrap; box-sizing: border-box; max-width: 100%; font-variant-numeric: tabular-nums;
  border: 1px solid color-mix(in srgb, var(--t) 38%, var(--border)); background: color-mix(in srgb, var(--t) 4%, var(--surface)); }
.pill::before { content: ""; flex: none; width: 12px; height: 12px; background: var(--t); --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Crect x='3' y='3' width='6' height='6'/%3E%3C/svg%3E");
  -webkit-mask: var(--mark) center / contain no-repeat; mask: var(--mark) center / contain no-repeat; }
.pill:is(.na, .not_measured, .queued, .running, .relay, .hypervisor, [class*="level-"]):has(> i, > svg)::before { content: none; }   /* a category pill with its own icon shows that, not the square as well; status pills keep their sign */
.pill.sm { height: 18px; padding: 0 6px 0 5px; font-size: 11px; gap: 5px; }   /* the marks stay 12 px */
a.pill:hover { text-decoration: none; border-color: color-mix(in srgb, var(--t) 75%, var(--border)); background: color-mix(in srgb, var(--t) 10%, var(--surface)); }
.pill.present, .pill.mapped, .pill.valid, .pill.ok, .pill.analysed, .pill.ready, .pill.pass, .pill.accepted, .pill.completed, .pill.applied, .pill.acknowledged,
.pill.st-active, .pill.sync-insync { --t: var(--success); }
.pill.missing, .pill.grace, .pill.warn, .pill.interrupted, .pill.medium, .pill.partial, .pill.changes, .pill.new, .pill.skipped,
.pill.st-decommissioning, .pill.sync-changes { --t: var(--warn); }
.pill.incompatible, .pill.error, .pill.high, .pill.unmatched, .pill.invalid, .pill.expired, .pill.fail, .pill.failed, .pill.apply_failed,
.pill.st-failed, .pill.sync-failed { --t: var(--danger); }
.pill.queued, .pill.running, .pill.relay, .pill.leased, .pill.pending, .pill.uploaded, .pill.low, .pill.apply_queued, .pill.applying, .pill.community, .pill.info,
.pill.st-planned, .pill.st-staged { --t: var(--info); }
.pill.na, .pill.not_measured, .pill.st-offline, .pill.st-inventory, .pill.st-unknown, .pill.sync-never, .pill.sync-skipped, .pill.sync-passive { --t: var(--muted); color: var(--muted); border-color: var(--border-strong); background: transparent; }
:root[data-theme="dark"] .pill { border-color: color-mix(in srgb, var(--t) 48%, var(--border)); background: color-mix(in srgb, var(--t) 9%, var(--surface)); }
:root[data-theme="dark"] :is(.pill.na, .pill.not_measured, .pill.st-offline, .pill.st-inventory, .pill.st-unknown, .pill.sync-never, .pill.sync-skipped, .pill.sync-passive) { border-color: var(--border-strong); background: transparent; }
/* the NetBox lifecycle as the fill of the square and sync as the mark's layers (the same drawings as _icons.svg cs-st-*) */
.pill.st-planned::before { --mark: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%223%22 stroke-linejoin=%22miter%22 stroke-linecap=%22square%22%3E%3Crect x=%224%22 y=%224%22 width=%2216%22 height=%2216%22 stroke-dasharray=%224.5 2.5%22/%3E%3C/svg%3E"); }
.pill.st-staged::before { --mark: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%223%22 stroke-linejoin=%22miter%22 stroke-linecap=%22square%22%3E%3Crect x=%224%22 y=%224%22 width=%2216%22 height=%2216%22/%3E%3Crect x=%224%22 y=%2212%22 width=%2216%22 height=%228%22 fill=%22%23000%22 stroke=%22none%22/%3E%3C/svg%3E"); }
.pill.st-active::before { --mark: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22%23000%22 stroke=%22%23000%22 stroke-width=%223%22 stroke-linejoin=%22miter%22 stroke-linecap=%22square%22%3E%3Crect x=%224%22 y=%224%22 width=%2216%22 height=%2216%22/%3E%3C/svg%3E"); }
.pill.st-decommissioning::before { --mark: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22%23000%22 stroke=%22%23000%22 stroke-width=%223%22 stroke-linejoin=%22miter%22 stroke-linecap=%22square%22%3E%3Cpath d=%22M4 4h9v6h7v10H4z%22/%3E%3C/svg%3E"); }
.pill.st-offline::before { --mark: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%223%22 stroke-linejoin=%22miter%22 stroke-linecap=%22square%22%3E%3Crect x=%224%22 y=%224%22 width=%2216%22 height=%2216%22/%3E%3C/svg%3E"); }
.pill.st-failed::before { --mark: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%223%22 stroke-linejoin=%22miter%22 stroke-linecap=%22square%22%3E%3Crect x=%224%22 y=%224%22 width=%2216%22 height=%2216%22/%3E%3Cpath d=%22M8.5 8.5l7 7M15.5 8.5l-7 7%22/%3E%3C/svg%3E"); }
.pill.st-inventory::before { --mark: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%223%22 stroke-linejoin=%22miter%22 stroke-linecap=%22square%22%3E%3Crect x=%227%22 y=%224%22 width=%2210%22 height=%2210%22/%3E%3Cpath d=%22M3 20h18%22/%3E%3C/svg%3E"); }
.pill.sync-insync::before { --mark: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%223%22 stroke-linejoin=%22miter%22 stroke-linecap=%22square%22%3E%3Cpath d=%22M12 4 L19.5 8 L12 12 L4.5 8 Z%22/%3E%3Cpath d=%22M4.5 13 L12 17 L19.5 13 L19.5 16 L12 20 L4.5 16 Z%22/%3E%3C/svg%3E"); }
.pill.sync-changes::before { --mark: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%223%22 stroke-linejoin=%22miter%22 stroke-linecap=%22square%22%3E%3Cpath d=%22M14.5 4 L22 8 L14.5 12 L7 8 Z%22/%3E%3Cpath d=%22M2 13 L9.5 17 L17 13 L17 16 L9.5 20 L2 16 Z%22/%3E%3C/svg%3E"); }
.pill.sync-never::before { --mark: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%223%22 stroke-linejoin=%22miter%22 stroke-linecap=%22square%22%3E%3Cpath d=%22M12 8 L19.5 12 L12 16 L4.5 12 Z%22 stroke-dasharray=%223.5 2%22/%3E%3C/svg%3E"); }
.pill.sync-skipped::before { --mark: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%223%22 stroke-linejoin=%22miter%22 stroke-linecap=%22square%22%3E%3Cpath d=%22M12 8 L19.5 12 L12 16 L4.5 12 Z%22/%3E%3Cpath d=%22M3 20h18%22 stroke-dasharray=%223.5 2%22/%3E%3C/svg%3E"); }
.pill.sync-failed::before { --mark: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%223%22 stroke-linejoin=%22miter%22 stroke-linecap=%22square%22%3E%3Crect x=%224%22 y=%224%22 width=%2216%22 height=%2216%22/%3E%3Cpath d=%22M8.5 8.5l7 7M15.5 8.5l-7 7%22/%3E%3C/svg%3E"); }

.score { display: inline-block; min-width: 2.6rem; text-align: center; font-weight: 700; padding: 1px 8px; border-radius: var(--radius-badge); font-variant-numeric: tabular-nums; }
.score.good { background: var(--success-soft); color: var(--success-text); }
.score.mid { background: var(--warn-soft); color: var(--warn-text); }
.score.bad { background: var(--danger-soft); color: var(--danger-text); }
.score.fair { background: var(--warn-soft); color: var(--warn-text); } .score.poor { background: var(--danger-soft); color: var(--danger-text); }
/* a score resting on fewer than five measured controls: shown, never coloured as a verdict (c7, 2026-11-14) */
.score.provisional { background: var(--surface-2, transparent); color: var(--muted); box-shadow: inset 0 0 0 1px var(--border); }
.score-standing { display: inline-flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.sc-meta { font-size: .78rem; color: var(--muted); font-weight: 400; font-family: var(--font-sans); }
.sc-high { font-size: .78rem; color: var(--danger-text); font-weight: 600; }
.sc-prov { font-size: .78rem; font-family: var(--font-sans); color: var(--muted); font-weight: 400; }
.sg-controls .sev-glyph { margin-right: 4px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 0; margin-right: 3px; background: var(--border-strong); }
.dot.pass, .dot.accepted { background: var(--success); }
.dot.warn { background: var(--warn); }
.dot.fail { background: var(--danger); }
.add { color: var(--success-text); }
.del { color: var(--danger-text); }
.bad { color: var(--danger-text); }

/* -- Tabs, steps, details -------------------------------------------------- */
.tabs { display: flex; flex-wrap: wrap; gap: 2px; margin: 0 0 16px; border-bottom: 1px solid var(--border); }
.tabs a { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; font-size: 13px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500; }   /* the panel tabs' size (38 px, 13 px) */
.tabs a:hover { color: var(--title); text-decoration: none; }
.tabs a.active { color: var(--title); border-color: var(--accent); }
.steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 20px; font-size: 12px; flex-wrap: wrap; }
.steps li { --t: var(--muted); display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px 0 6px; border-radius: var(--radius); font-weight: 550; color: var(--muted);
  border: 1px solid var(--border-strong); background: transparent; }   /* the pills' hairline family: a step to come is a hollow square */
.steps li::before { content: ""; flex: none; width: 12px; height: 12px; background: var(--t); --mark: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%223%22 stroke-linejoin=%22miter%22 stroke-linecap=%22square%22%3E%3Crect x=%224%22 y=%224%22 width=%2216%22 height=%2216%22/%3E%3C/svg%3E"); -webkit-mask: var(--mark) center / contain no-repeat; mask: var(--mark) center / contain no-repeat; }
.setup-alt { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.setup-choice h2 { margin: 0; font-size: 15px; }
.setup-choice p { margin: 0; }
.setup-or { display: flex; align-items: center; gap: 10px; margin: 18px 0; color: var(--faint); font-size: 12px; }
.setup-or::before, .setup-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
@media (max-width: 600px) {   /* six steps do not fit: show where you are, "2/6 Licence" */
  .steps li:not(.current) { display: none; }
  .steps li.current::after { content: "\00a0\00a0" attr(data-n); opacity: .7; }
}
.steps li.current { --t: var(--accent); color: var(--title); border-color: color-mix(in srgb, var(--t) 75%, var(--border)); background: color-mix(in srgb, var(--t) 10%, var(--surface)); }
.steps li.current::before { --mark: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22%23000%22 stroke=%22%23000%22 stroke-width=%223%22 stroke-linejoin=%22miter%22 stroke-linecap=%22square%22%3E%3Crect x=%224%22 y=%224%22 width=%2216%22 height=%2216%22/%3E%3C/svg%3E"); }     /* this step: the solid square in the accent */
.steps li.done { --t: var(--success); color: var(--title); border-color: color-mix(in srgb, var(--t) 38%, var(--border)); background: color-mix(in srgb, var(--t) 4%, var(--surface)); }
.steps li.done::before { --mark: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22%23000%22%3E%3Crect x=%223%22 y=%223%22 width=%2218%22 height=%2218%22/%3E%3Cpath d=%22M7 12.5 L10.5 16 L17 8.5%22 fill=%22none%22 stroke=%22%23fff%22 stroke-width=%222.4%22 stroke-linecap=%22square%22/%3E%3C/svg%3E"); }   /* done: the safe-condition square with its check */
details.device { margin: 8px 0; }
details > summary { cursor: pointer; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { font-family: "Font Awesome 6 Free"; font-weight: 900; content: "\f054"; font-size: 10px; color: var(--muted); margin-right: 8px; display: inline-block; transition: transform .15s; }
details[open] > summary::before { transform: rotate(90deg); }
table.changes { margin: 6px 0 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); }

/* -- Code ----------------------------------------------------------------- */
.code-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
pre { margin: 0; padding: 12px 14px; max-width: 100%; overflow-x: auto; font-size: 12.5px; line-height: 1.5; color: var(--text-2); }
pre.diff .add { display: inline-block; width: 100%; background: var(--success-soft); }
pre.diff .del { display: inline-block; width: 100%; background: var(--danger-soft); }
pre.diff .hunk { color: var(--accent); }

/* -- Admin sub-navigation ------------------------------------------------- */
.admin { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; }   /* minmax: a long line (Backup's command examples) scrolls in its box instead of widening the page (sweep 4.35) */
.admin > section pre { overflow-x: auto; }
/* Settings (admin/_layout.html, page kind "settings"; Jon on the lab, 2026-11-24: "also why is this audit log page so thin?",
   then "we need more space dont we? things are getting very cluttered"). The menu and the section are no longer the
   capped child of a text page (the 1040 px held the menu too, so a table got 816 px of a 2,549 px window): the section
   takes the page's width, and inside it the content decides. A table, its scroll wrap, or a list or form that is a table
   (Modules, NetBox schema) takes the section's width; anything else (a form card, even one with a small table inside such
   as Sign-in's group mapping, a card, a note) stays at 1040 px, about 220 px
   more than before; prose keeps a reading width. Zero specificity (:where), so a page's own narrower rule still wins;
   the module pages that extend the layout (Sign-in, Notifications, Monitoring, Backup) follow as they are. */
:where(.admin > section) > :where(*) { max-width: 1040px; }
:where(.admin > section) > :where(.page-head, .table-wrap, :not(form.card):has(table)) { max-width: none; }
:where(.admin > section) > :where(p) { max-width: 72ch; }
:where(.admin > section) :where(td) :where(input:not([type=checkbox]):not([type=radio]), select) { max-width: 420px; }   /* a field in a wide table keeps a field's measure (IP addresses' owner) */
.audit-table .au-act strong, .audit-table .au-act .small { white-space: nowrap; }   /* an action's name and its area on one line each; Detail takes the room */
.admin aside { display: flex; flex-direction: column; gap: 2px; }
.admin aside a { padding: 7px 10px; border-radius: var(--radius-sm); color: var(--text); }
.admin aside a:hover { background: var(--nav-hover); text-decoration: none; }
.admin aside a.active { background: var(--nav-active); color: var(--title); font-weight: 600; }
.admin aside a.locked { display: flex; align-items: center; gap: 8px; color: var(--muted); }   /* a page the licence lacks: lock + edition, as in the sidebar */
.admin aside a .nav-lock { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; font-size: 10px; color: var(--faint); }

/* -- Empty state, upgrade ------------------------------------------------- */
.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty i { font-size: 26px; color: var(--faint); margin-bottom: 10px; display: block; }
.upgrade { text-align: center; padding: 40px 20px; }
.upgrade .seal { width: 52px; height: 52px; margin: 0 auto 14px; border-radius: var(--radius); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 22px; }
.cs-toast { position: fixed; right: 20px; bottom: 20px; z-index: 95; max-width: min(440px, calc(100vw - 40px)); margin: 0; box-shadow: var(--shadow-md); }
.upgrade-points { list-style: none; margin: 18px auto; padding: 0; max-width: 460px; text-align: left; display: grid; gap: 9px; }
.upgrade-points li { display: flex; gap: 10px; align-items: baseline; }
.upgrade-points i { color: var(--success); font-size: 12px; flex: none; }
a.ed-badge.ed-addon { cursor: pointer; }
.upgrade-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

/* Edition: a soft tinted pill (header badge, locked menu entries, the upgrade page) */
.topbar .ed-buy { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 2px 10px;
  border-radius: var(--pill); color: var(--accent); background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border)); white-space: nowrap; }
.topbar .ed-buy:hover { text-decoration: none; background: color-mix(in srgb, var(--accent) 18%, transparent); }
.topbar .ed-buy i { font-size: 10.5px; }
.rp-credit { margin: 8px 0 0; text-align: right; }
.topbar .licensed-to { font-size: 12px; font-weight: 400; color: var(--muted); white-space: nowrap; }
@media (max-width: 860px) { .topbar .licensed-to { display: none; } }
.sidebar-meta .licensed-to-m { display: none; }
@media (max-width: 860px) { .sidebar-meta .licensed-to-m { display: inline; } }   /* the header hides it there */
.nav a.locked { color: var(--muted); }
.nav a.locked i { color: var(--faint); }
.nav a.locked .ed-badge { margin-left: auto; font-size: 10px; padding: 0 6px; }
/* collapsed sidebar: the edition chip is hidden with the label, so a small lock marks the icon instead */
@media (min-width: 861px) {
  .shell.collapsed .nav a.locked { position: relative; }
  .shell.collapsed .nav a.locked::after { content: "\f023"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute;
    right: 9px; bottom: 5px; font-size: 8px; line-height: 1; color: var(--muted); }
}

/* -- Menus ---------------------------------------------------------------- */
/* tooltip for title= hints (shell.js): dark slate in light mode, a lifted surface in dark */
.cs-tip { position: fixed; z-index: 1200; max-width: 280px; padding: 5px 9px; border-radius: var(--radius); font-size: 12px; line-height: 1.4; font-weight: 500;
  color: var(--tip-fg); background: var(--tip-bg); border: 1px solid var(--tip-line); box-shadow: 0 6px 20px rgba(0, 0, 0, .18); pointer-events: none;
  opacity: 0; transform: translateY(2px); transition: opacity .12s ease, transform .12s ease; }
.cs-tip.right { transform: translateX(-2px); }
.cs-tip.on { opacity: 1; transform: none; }
.menu { position: relative; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 6px); min-width: 180px; padding: 6px; display: none; z-index: 50;
  background: var(--elevated); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.menu.open .menu-panel { display: block; }
.menu-panel.is-lifted { position: fixed; inset: auto; margin: 0; overflow: visible; color: var(--text); }   /* in the top layer when its box would cut it off (shell.js lift) */
.page-head:has(.menu.open), .vt-head:has(.menu.open) { position: relative; z-index: 60; }   /* above a canvas stage or a side panel */
:is(.btn-group, .seg, .split, .sp-actions):has(.menu.open) { z-index: 60; }   /* a joined group is isolated (one piece): with its menu open it rises above the groups of the rows after it */
/* An open top-bar menu always sits above drawers, side panes and floating windows. The bar is its own
   stacking context, so the bar itself is lifted, not only the panel. */
.topbar.menu-raised, .topbar:has(.menu.open) { z-index: 1000; }

/* Theme button: a sun that turns into a crescent moon; a small dot when it follows the system setting. */
.tb-alert { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 500; color: var(--warn-text); padding: 3px 4px; border-radius: var(--radius-sm); }
a.tb-alert:hover { text-decoration: none; background: var(--warn-soft); }
.theme-btn i { font-size: 15px; }
/* the Horizon theme icons (Jon's pick, 2026-11-15): the button shows the one its data-pref names; the menu shows each beside its label */
.theme-btn .th-ico { display: none; } .theme-btn[data-pref=light] .th-light, .theme-btn[data-pref=dark] .th-dark, .theme-btn[data-pref=system] .th-system { display: block; }
.th-ico { width: 16px; height: 16px; } .theme-btn .th-ico { width: 18px; height: 18px; }
.theme-panel .th-ico { flex: none; vertical-align: -3px; margin-right: 2px; }
/* One menu style, every dropdown: the theme menu, the site picker, Export ▾, a widget's "…", Toggle widgets and the
   canvas right-click menu share the panel (.menu-panel, .wg-menu-list, .topo-menu) and the item rules below. An item is
   a plain row: 7 px 10 px, 13 px text, a muted 16 px icon, the hover tint, no border of its own (the base button rule
   does not apply inside a menu), the selected one in accent with a check, secondary text muted and right-aligned. */
.menu-panel, .wg-menu-list, .topo-menu { padding: 6px; background: var(--elevated); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
:is(.menu-panel, .wg-menu-list, .topo-menu) :is(button, a, .ov-toggle-row) {
  display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; width: 100%; min-height: 0; margin: 0; padding: 6px 9px; border: 1px solid transparent; border-radius: var(--radius-sm);
  background: none; box-shadow: none; color: var(--text); font: inherit; font-size: 13px; font-weight: 400; line-height: 1.3; text-align: left; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease; }       /* a row is an object: at rest no box; on hover the tint fills it and the 1 px accent line fades in */
:is(.menu-panel, .wg-menu-list, .topo-menu) :is(button, a, .ov-toggle-row) > i:first-child { width: 16px; flex: none; text-align: center; color: var(--muted); font-size: 13px; transition: color .15s ease; }
:is(.menu-panel, .wg-menu-list, .topo-menu) :is(button, a, .ov-toggle-row):is(:hover, :focus-visible) { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); border-color: var(--accent); color: var(--title); text-decoration: none; transform: none; box-shadow: none; outline: none; }
:is(.menu-panel, .wg-menu-list, .topo-menu) :is(button, a, .ov-toggle-row):is(:hover, :focus-visible) > i:first-child { color: var(--accent); }
:is(.menu-panel, .wg-menu-list, .topo-menu) :is(button, a):active { transform: none; background: color-mix(in srgb, var(--accent) 14%, var(--surface)); }
:is(.menu-panel, .wg-menu-list, .topo-menu) :is(button, a):disabled { opacity: .45; cursor: not-allowed; background: none; color: var(--text); }
:is(.menu-panel, .wg-menu-list, .topo-menu) :is(.menu-sep, .wg-menu-sep, hr) { height: 1px; margin: 6px 4px; border: 0; background: var(--border); }
:is(.menu-panel, .wg-menu-list, .topo-menu) .menu-head, .wg-menu-list .wg-size-label { padding: 6px 10px 2px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
:is(.menu-panel, .wg-menu-list, .topo-menu) .is-active { color: var(--accent); font-weight: 600; background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }   /* the current object: a faint tint stays */
:is(.menu-panel, .wg-menu-list, .topo-menu) .is-active > i:first-child { color: var(--accent); }
:is(.menu-panel, .wg-menu-list, .topo-menu) .is-active::after { font-family: "Font Awesome 6 Free"; font-weight: 900; content: "\f00c"; margin-left: auto; color: var(--accent); font-size: 11px; }
:is(.menu-panel, .wg-menu-list, .topo-menu) :is(.muted, .small, .menu-aside) { color: var(--muted); font-size: 12px; margin-left: auto; white-space: nowrap; }
/* menu items with a hint (the Export menus): icon, label, one muted line; a divider between kinds */
.menu-panel .mi { align-items: flex-start; padding: 7px 9px; }       /* a two-line row (label and hint): the same object hover as the rows above */
.menu-panel .mi > i { margin-top: 2px; }
.menu-panel .mi strong { display: block; font-weight: 500; color: var(--title); }
.menu-panel .mi small { display: block; font-size: 12px; color: var(--muted); white-space: normal; }
.menu-panel .mi:is(:hover, :focus-visible) strong { color: var(--accent); }
.menu-sep { height: 1px; background: var(--border); margin: 6px 4px; }
.export-panel { min-width: 380px; }   /* the longest hint on one line */
.export-menu .caret { font-size: 10px; margin-left: -2px; }

/* -- Diagram host (topology) --------------------------------------------- */
.diagram-wrap { overflow: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); max-height: 80vh; }
.diagram-wrap svg { display: block; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 8px 0; font-size: 12.5px; color: var(--muted); }
.swatch { display: inline-block; width: 1.4rem; height: 3px; vertical-align: middle; margin-right: 6px; border-radius: 2px; }
.swatch.dashed { height: 0; border-top: 2px dashed; }

/* Phone and small tablet: the sidebar becomes a drawer opened from the menu button. */
.nav-backdrop { display: none; }
/* the phone drawer's own close button (3c's 390 sweep, 2026-11-14: the Menu button lies under the open drawer, so
   only a tap outside closed it); the header's icon buttons are a full 40 px tap target on a touch screen */
.nav-close { display: none; }
@media (max-width: 860px) {
  .sidebar .nav-close { display: inline-grid; position: absolute; top: 10px; right: 8px; z-index: 2; width: 40px; height: 40px; color: var(--side-text); }
  .sidebar .nav-close:hover { background: var(--side-hover); color: var(--side-title); }
}
@media (pointer: coarse) {
  .topbar .icon-btn { width: 40px; height: 40px; }
  .split.split { --grp-h: 40px; }                             /* Run now and its "More run options" caret (32 x 34); */
  .split .split-caret.split-caret { width: 40px; min-width: 40px; }   /* doubled classes: these outrank the rules further down */
  form button[name="action"][value="move"] { min-height: 40px; }   /* the classification rules' Move (70 x 34) */
}
/* one column on a phone: a widget's width in columns means nothing there, and its 1-4 buttons were 29 x 26 */
@media (max-width: 640px) { .wg-menu-list .wg-size, .wg-menu-list .wg-menu-label:has(+ .wg-size) { display: none; } }
@media (max-width: 860px) {
  .shell, .shell.collapsed { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 60; width: min(300px, 86vw); height: 100dvh;
    transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--shadow-lg); }
  .shell.nav-open .sidebar { transform: none; }
  .nav-backdrop { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(15, 18, 24, .42);
    opacity: 0; pointer-events: none; transition: opacity .2s ease; }
  .shell.nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }
  /* the drawer always shows the full menu, whatever the desktop collapse setting */
  .shell.collapsed .nav a span, .shell.collapsed .nav-section, .shell.collapsed .sidebar-footer .who { display: revert; }
  .shell.collapsed .nav a { justify-content: flex-start; }
  .shell.collapsed .sidebar-footer { flex-direction: row; gap: 8px; padding: 10px; }
  .shell.collapsed .brand .wordmark.brand-dark { opacity: 1; }      /* the drawer: the wordmark on phones too */
  .shell.collapsed .brand .icon { opacity: 0 !important; }
  .topbar { padding: 0 12px; gap: 8px; }
  .topbar .tb-alert span:last-child, .topbar .tenant > span:not(.ed-badge) { display: none; }   /* the tenant's names; the badge keeps its mark (ee, 2026-11-12) */
  .topbar .tenant { border-left: 0; padding-left: 0; }
  .topbar .crumbs { overflow: hidden; white-space: nowrap; }
  .topbar .crumbs > * { overflow: hidden; text-overflow: ellipsis; }
  .content { padding: 16px 16px 40px; }
  .admin { grid-template-columns: minmax(0, 1fr); }
  .admin aside { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 520px) { .scope-btn { max-width: 46vw; } }

/* -- home dashboard ------------------------------------------------------------------------- */
.dash-head h1 { font-size: 26px; letter-spacing: -.01em; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin: 4px 0 22px; }
.kpi { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); color: var(--title);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04); transition: transform .12s ease, box-shadow .12s ease; overflow: hidden; }
a.kpi:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(16, 24, 40, .08); }
.kpi.good { --kpi: var(--success); } .kpi.warn { --kpi: var(--warn); } .kpi.bad { --kpi: var(--danger); } .kpi.neutral { --kpi: var(--border-strong); }
.kpi-icon { grid-row: span 2; width: 40px; height: 40px; border-radius: var(--radius); display: grid; place-items: center; font-size: 17px;
  background: color-mix(in srgb, var(--kpi, var(--accent)) 12%, transparent); color: var(--kpi, var(--accent)); }
.kpi-num { font-size: 28px; font-weight: 700; line-height: 1.05; letter-spacing: -.02em; }
.kpi-num small { font-size: 16px; font-weight: 600; margin-left: 1px; color: var(--muted); }
.kpi-label { font-size: 12.5px; color: var(--muted); }
.kpi-label strong { color: var(--danger-text); }
.section-title { margin: 6px 0 12px; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.site-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-bottom: 22px; }
.site-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.site-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.site-name { font-weight: 650; font-size: 15.5px; color: var(--title); }
.reach { display: grid; gap: 6px; }
.reach-bar { height: 8px; border-radius: var(--radius); background: color-mix(in srgb, var(--danger) 22%, var(--surface-3)); overflow: hidden; }
.reach-bar span { display: block; height: 100%; border-radius: var(--radius); background: var(--success); }
/* the index card's footer: one fixed layout on every card. The stats row (pills, counts) takes the room that is left
   and shrinks with an ellipsis (its tooltip has the full text); the call to action keeps its place on the right. */
.site-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-top: auto; }
.site-foot > .site-stats { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.9; }
.site-foot > .site-stats > * { vertical-align: middle; margin-right: 4px; }
.site-foot > .site-cta { margin-left: 0; justify-self: end; white-space: nowrap; }
.site-foot > .site-links { justify-self: end; }
.site-links { margin-left: auto; display: flex; gap: 4px; }
.site-links a { width: 30px; height: 30px; border-radius: var(--radius); display: grid; place-items: center; color: var(--muted); }
.site-links a:hover { background: var(--surface-2); color: var(--accent); text-decoration: none; }
.dash-cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; margin-bottom: 18px; }
@media (max-width: 1100px) { .dash-cols { grid-template-columns: 1fr; } }
.list-row { display: flex; gap: 10px; align-items: flex-start; padding: 9px 4px; border-top: 1px solid var(--border); color: var(--text, var(--title)); }
.list-row:first-of-type { border-top: 0; }
a.list-row:hover { background: var(--surface-2); text-decoration: none; border-radius: var(--radius); }
.list-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.list-row .pill { flex: none; margin-top: 1px; }
.modules-strip summary { cursor: pointer; list-style: none; display: flex; gap: 12px; align-items: baseline; }
.modules-strip summary::-webkit-details-marker { display: none; }
.modules-strip[open] .module-grid { margin-top: 12px; }

/* Findings */
.kpi.is-on { box-shadow: 0 0 0 2px var(--kpi, var(--accent)); }
.kpi .sev-word { color: var(--title); text-transform: capitalize; }
.source-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.source-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--pill); border: 1px solid var(--border);
  background: var(--surface); color: var(--text-2); font-size: 13px; text-decoration: none; }
.source-chip:hover { text-decoration: none; border-color: var(--border-strong); background: var(--surface-2); }
.source-chip i { color: var(--muted); }
.source-chip strong { color: var(--title); }
.source-chip.is-on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.source-chip.clear { color: var(--muted); border-style: dashed; }
.findings-table tr.sev-group td { background: var(--surface-2); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--title); padding: 7px 12px; }
.findings-table tr.sev-high { --sev: var(--danger); } .findings-table tr.sev-medium { --sev: var(--warn); }
.findings-table tr.sev-low { --sev: var(--info); } .findings-table tr.sev-info { --sev: var(--border-strong); }
/* the group row's sign (in the template) marks the severity; no square bullet beside it */
.nowrap { white-space: nowrap; }

/* Purdue level chips (shared: firewall policy, segmentation) */
/* One level colour set, the website's (--l1 .. --l4 in website/site.css); the light theme uses darker shades of the same
   hues so text passes on white. --lcN is the soft fill, --ltN the text, both derived, so every badge, band and chip follows. */
:root { --l1: #D94B4B; --l2: #2669C7; --l3: #1E7F4E; --l35: #9A6A0E; --l4: #5A6BD8; --l5: #475569; --l0: #7A5A4A;
  --lc5: color-mix(in srgb, var(--l5) 14%, #fff); --lt5: var(--l5); --lc4: color-mix(in srgb, var(--l4) 14%, #fff); --lt4: var(--l4);
  --lc35: color-mix(in srgb, var(--l35) 16%, #fff); --lt35: var(--l35); --lc3: color-mix(in srgb, var(--l3) 14%, #fff); --lt3: var(--l3);
  --lc2: color-mix(in srgb, var(--l2) 14%, #fff); --lt2: var(--l2); --lc1: color-mix(in srgb, var(--l1) 14%, #fff); --lt1: var(--l1);
  --lc0: color-mix(in srgb, var(--l0) 14%, #fff); --lt0: var(--l0); }
:root[data-theme="dark"] { --l1: #ff7a7a; --l2: #5ea8ff; --l3: #4fd18b; --l35: #f2b84b; --l4: #8fa2ff; --l5: #94a3b8; --l0: #d0b8a8;
  --lc5: color-mix(in srgb, var(--l5) 24%, #0D1422); --lt5: var(--l5); --lc4: color-mix(in srgb, var(--l4) 26%, #0D1422); --lt4: var(--l4);
  --lc35: color-mix(in srgb, var(--l35) 26%, #0D1422); --lt35: var(--l35); --lc3: color-mix(in srgb, var(--l3) 24%, #0D1422); --lt3: var(--l3);
  --lc2: color-mix(in srgb, var(--l2) 26%, #0D1422); --lt2: var(--l2); --lc1: color-mix(in srgb, var(--l1) 26%, #0D1422); --lt1: var(--l1);
  --lc0: color-mix(in srgb, var(--l0) 24%, #0D1422); --lt0: var(--l0); }
.lvchips { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 4px; }
.lvchip { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: var(--radius-badge); background: var(--surface-3); color: var(--text-2); }
.lvchip.lv5 { background: var(--lc5); color: var(--lt5); } .lvchip.lv4 { background: var(--lc4); color: var(--lt4); }
.lvchip.lv35 { background: var(--lc35); color: var(--lt35); } .lvchip.lv3 { background: var(--lc3); color: var(--lt3); }
.lvchip.lv2 { background: var(--lc2); color: var(--lt2); } .lvchip.lv1 { background: var(--lc1); color: var(--lt1); }
.lvchip.lv0 { background: var(--lc0); color: var(--lt0); }
/* an endpoint under a rule (Jon, 2026-11-10): line 2 starts with the level slot, a fixed width, so the chips line up down the column; an empty slot keeps the width */
.ep-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.ep-lv { flex: none; min-width: 34px; display: inline-flex; gap: 3px; }
.ep-lv:empty::before { content: "\2013"; color: var(--faint); }
.flow-table .flow-svc { position: relative; }
.flow-arrow { color: var(--faint); margin-right: 8px; }
.flow-table tr.sev-high { --sev: var(--danger); } .flow-table tr.sev-medium { --sev: var(--warn); }
a.site-card.is-link { color: inherit; text-decoration: none; transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; }
a.site-card.is-link:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.site-cta { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--accent); }
a.site-card.is-link:hover .site-cta i { transform: translateX(2px); }
.site-cta i { transition: transform .12s ease; margin-left: 4px; }

/* -- runs: progress bar, live console, top bar indicator, split run button ------------------ */
.run-bar { position: relative; height: 4px; border-radius: var(--pill); background: var(--surface-3); overflow: hidden; }
.run-bar > span { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: var(--brand-ribbon); transition: width .5s ease; }
.run-console.is-live .run-bar > span, .run-bar.mini > span {
  background-image: linear-gradient(135deg, rgba(255,255,255,.35) 25%, transparent 25% 50%, rgba(255,255,255,.35) 50% 75%, transparent 75%), var(--brand-ribbon);
  background-size: 16px 16px, 100% 100%; animation: run-stripes .8s linear infinite; }
.run-bar.indeterminate > span { width: 30% !important; animation: run-sweep 1.4s ease-in-out infinite; }
.run-bar.done > span { background: var(--success); }
.run-console[data-status="failed"] .run-bar > span { background: var(--danger); }
@keyframes run-stripes { to { background-position: 16px 0, 0 0; } }
@keyframes run-sweep { 0% { left: -30%; } 100% { left: 100%; } }
@keyframes run-pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } 70% { box-shadow: 0 0 0 7px transparent; } }

.run-console { display: block; margin: 14px 0 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden; }
details.run-console > summary.rc-summary { list-style: none; cursor: pointer; padding: 11px 14px; display: flex; align-items: center; gap: 9px; color: var(--title); font-weight: 600; }
details.run-console > summary::-webkit-details-marker { display: none; }
details.run-console > summary .muted { font-weight: 400; }
details.run-console:not([open]) > :not(summary) { display: none; }
details.run-console[open] > summary { border-bottom: 1px solid var(--border); }
.rc-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 14px; flex-wrap: wrap; }
.rc-head .spacer { flex: 1; }
.rc-head .icon-btn.done { color: var(--success); }
.rc-dot { width: 9px; height: 9px; border-radius: 0; background: var(--success); flex: none; }
.run-console.is-live .rc-dot { background: var(--accent); animation: run-pulse 1.6s infinite; }
.run-console[data-status="failed"] .rc-dot { background: var(--danger); }
.run-console[data-status="waiting"] .rc-dot { background: var(--warn); }
.rc-phase { color: var(--title); }
.rc-elapsed { font-family: var(--font-mono); font-size: 12px; font-variant-numeric: tabular-nums; }
.rc-filters { display: inline-flex; gap: 4px; }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 30px; box-sizing: border-box; padding: 0 10px; border-radius: var(--pill); font-size: 12px; font-weight: 500; background: var(--btn-fill); color: var(--btn-text); border: 1px solid transparent; }   /* one chip height: the filter rail's row (30 px) */
.chip:hover { background: var(--btn-fill-hover); }
.chip.is-active { background: var(--accent-soft); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.chip b { font-weight: 650; margin-left: 2px; }
.run-console > .run-bar { border-radius: 0; height: 3px; }
.rc-log { --log-bg: #0f1419; --log-text: #c9d1d9; --log-muted: #6e7681;
  background: var(--log-bg); color: var(--log-text); font: 12.5px/1.65 var(--font-mono); padding: 10px 0; height: 300px; overflow: auto; }
.run-console.expanded .rc-log { height: 68vh; }
.rc-empty { color: var(--log-muted); padding: 4px 14px; }
.run-console.is-live .rc-empty::after { content: ""; display: inline-block; width: 7px; height: 13px; margin-left: 4px; vertical-align: -2px; background: var(--log-text); animation: rc-blink 1s steps(1) infinite; }
@keyframes rc-blink { 50% { opacity: 0; } }
.rc-line { display: grid; grid-template-columns: 74px 52px 1fr; padding: 0 14px; animation: rc-in .25s ease-out; }
.rc-line:hover { background: rgba(255,255,255,.04); }
@keyframes rc-in { from { opacity: 0; transform: translateY(2px); } }
.rc-time { color: var(--log-muted); }
.rc-lv { font-weight: 600; font-size: 11px; letter-spacing: .03em; padding-top: 1px; color: #58a6ff; }
.lv-success .rc-lv { color: #3fb950; } .lv-warn .rc-lv { color: #d29922; } .lv-error .rc-lv { color: #f85149; } .lv-debug .rc-lv { color: #a371f7; }
.lv-error .rc-msg { color: #ffa198; } .lv-debug .rc-msg { color: #8b949e; }
.rc-msg { white-space: pre-wrap; word-break: break-word; }
.has-detail .rc-msg { cursor: pointer; }
.has-detail .rc-msg::before { content: "\25B8  "; color: var(--log-muted); }
.has-detail.open .rc-msg::before { content: "\25BE  "; }
.rc-detail { display: none; grid-column: 3; margin: 4px 0 8px; padding: 8px 10px; max-height: 340px; overflow: auto; border-left: 2px solid #30363d;
  background: rgba(255,255,255,.03); color: #8b949e; font: inherit; white-space: pre; }
.has-detail.open .rc-detail { display: block; }
.run-console[data-filter="warn"] .rc-line:not(.lv-warn), .run-console[data-filter="error"] .rc-line:not(.lv-error),
.run-console[data-filter="debug"] .rc-line:not(.lv-debug) { display: none; }
.run-console.finishing .rc-phase::after { content: " · loading results"; color: var(--muted); font-weight: 400; }

.runs-ind { margin-right: 4px; }
.runs-ind[hidden] { display: none; }
/* the running indicator (the sample sheet, Jon 2026-11-10 "running yes"): the tinted pill, squared, with the mark's three
   layers stacking slow and small instead of a ring; the popover a row per job: name, step and count, elapsed in words, a bar */
.runs-ind > button.run-pill { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 11px 0 9px; border-radius: var(--radius); font-size: 12.5px; font-weight: 600;
  background: var(--info-soft); color: var(--info-text); border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border)); }
.rn-mark { --s: 12px; position: relative; display: inline-block; width: var(--s); height: var(--s); flex: none; }
.rn-mark i { position: absolute; left: 10%; width: 80%; height: 40%; background: var(--accent); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); opacity: 0; animation: rn-stack 2.4s ease-in-out infinite; }
.rn-mark i:nth-child(1) { top: 50%; animation-delay: 0s; } .rn-mark i:nth-child(2) { top: 30%; animation-delay: .4s; } .rn-mark i:nth-child(3) { top: 10%; animation-delay: .8s; }
@keyframes rn-stack { 0% { opacity: 0; transform: translateY(-25%); } 20%, 70% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
.runs-ind { position: relative; }
.runs-ind .menu-panel { width: min(360px, calc(100vw - 32px)); min-width: 0; right: 0; padding: 6px; }
.runs-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 4px 10px 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.runs-note { text-transform: none; letter-spacing: 0; font-weight: 400; }
.runs-ind .menu-panel .rn-row { display: grid; gap: 5px; padding: 8px 10px 10px; border: 0; border-radius: var(--radius); color: var(--text); text-decoration: none; min-width: 0; }   /* over the menu's one-line item rule */
.runs-ind .menu-panel .rn-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }   /* the run link by keyboard: a ring, not only the faint tint (ee, 2026-11-12) */
.runs-ind .menu-panel .rn-row:hover { background: var(--nav-hover); text-decoration: none; } .rn-row:hover .rn-name { color: var(--accent); }
.rn-name { font-weight: 600; color: var(--title); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rn-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted); min-width: 0; }
.rn-step { display: inline-flex; align-items: center; gap: 5px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rn-step b { font-weight: 500; color: var(--text); }
.rn-elapsed { flex: none; color: var(--text-2); font-variant-numeric: tabular-nums; }
.rn-bar { position: relative; display: block; height: 4px; background: var(--surface-3); overflow: hidden; }
.rn-bar > span { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--brand-ribbon, var(--accent)); transition: width .5s ease; }
.rn-bar.indeterminate > span { width: 30%; animation: run-sweep 1.4s ease-in-out infinite; }
/* a determinate bar is alive too (Jon, 2026-11-11: a 4-device run read as dead): a soft shine runs along the filled part */
.rn-bar.live > span::after, .run-bar.live > span::after, .run-console.is-live .run-bar:not(.indeterminate) > span::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent); animation: run-shine 1.6s ease-in-out infinite; }
.rn-bar.live > span, .run-bar.live > span { min-width: 6px; }
@keyframes run-shine { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.rn-waiting .rn-bar > span { width: 100%; background: color-mix(in srgb, var(--info) 35%, var(--surface-3)); animation: none; }
.rn-waiting .rn-step { color: var(--info-text); }

.split > .menu { display: flex; align-items: stretch; }
.split .split-caret { padding: 0 9px; height: 100%; }
.split .menu-panel { min-width: 250px; }
.split .menu-panel button { color: var(--title); }
.menu-note { padding: 2px 10px 6px 32px; font-size: 12px; color: var(--muted); white-space: normal; }
@media (prefers-reduced-motion: reduce) { .run-bar > span, .rc-dot, .rn-mark i, .rn-bar > span, .rn-bar > span::after, .run-bar > span::after, .rc-line { animation: none !important; }
  .rn-mark i { opacity: 1; } .rn-bar.indeterminate > span { width: 100%; opacity: .5; } }

/* -- workspace: filter rail + list + detail drawer (Sites, Devices; reusable by any list) ---- */
.content:has(.ws) { padding: 0; }
.ws { --rail-w: 244px; --drawer-w: min(620px, 46vw); display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr); min-height: calc(100vh - 56px); position: relative; }
.ws.rail-hidden { grid-template-columns: 0 minmax(0, 1fr); }
.ws.rail-hidden .ws-rail { visibility: hidden; }
.ws-rail { position: sticky; top: 56px; align-self: start; height: calc(100vh - 56px); overflow: auto; border-right: 1px solid var(--border);
  background: var(--surface); padding: 12px 12px 18px; display: flex; flex-direction: column; gap: 4px; }
.rail-head { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 6px; color: var(--title); }
.rail-search { position: relative; margin-bottom: 8px; }
.rail-search i { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--faint); font-size: 12px; }
.rail-search input { width: 100%; padding-left: 30px; background: var(--surface-2); }
.rail-group { padding: 8px 0 6px; border-top: 1px solid var(--border); }
.rail-group:first-of-type { border-top: 0; }
.rail-title { font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 2px 8px 6px; }
.rail-find { width: 100%; margin: 0 0 4px; padding: 5px 8px; font-size: 12.5px; }
.rail-item { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: var(--radius); color: var(--text-2); font-size: 13.5px; }
.rail-item > span:not(.pill-dot) { flex: 1; min-width: 0; white-space: normal; overflow-wrap: anywhere; line-height: 1.3; }   /* long site names wrap, never cut (ee-6) */
.rail-item b { font-weight: 500; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.rail-item:hover { background: var(--nav-hover); color: var(--title); text-decoration: none; }
.rail-item.is-on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.rail-item.is-on b { color: var(--accent); }
.rail-item[hidden] { display: none; }
/* Tag filter: several can be ticked, so each tag has a check box tinted with its NetBox colour. */
.rail-hint { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--faint); margin-left: 4px; }
.rail-item > span.tag-box { flex: none; width: 15px; height: 15px; border-radius: var(--radius); display: grid; place-items: center;
  border: 1.5px solid color-mix(in srgb, var(--c) 70%, var(--border)); background: color-mix(in srgb, var(--c) 14%, transparent); }
.tag-box i { font-size: 9px; color: #fff; opacity: 0; }
.tag-item.is-on .tag-box { background: var(--c); border-color: var(--c); }
.tag-item.is-on .tag-box i { opacity: 1; }
.tag-item.no-tag .tag-box { border-style: dashed; background: transparent; }
.tag-item.no-tag.is-on .tag-box { background: var(--muted); border-style: solid; }
.tag-item.is-on { background: transparent; color: var(--title); }
.tag-item.is-on b { color: var(--title); }
.tag-item.is-on:hover { background: var(--nav-hover); }
.rail-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.rail-foot a { color: var(--muted); padding: 2px 8px; }
.rail-foot a:hover { color: var(--accent); }
.pill-dot { width: 8px; height: 8px; border-radius: 0; flex: none; background: var(--faint); display: inline-block; }
.pill-dot.ok { background: var(--success); } .pill-dot.changes { background: var(--warn); } .pill-dot.failed { background: var(--danger); }
.pill-dot.info { background: var(--info); } .pill-dot.na { background: var(--faint); }
.ws-main { min-width: 0; padding: 18px 24px 40px; transition: margin-right .2s ease; }
.ws.drawer-open .ws-main { margin-right: var(--drawer-w); }
.ws-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.ws-head h1 { margin: 0; font-size: 20px; }
.ws-head .spacer { flex: 1; }
.ws-head .chip i { margin-left: 3px; font-size: 10px; }
.ws-head .button, .ws-head button, .page-head .button, .page-head button { white-space: nowrap; }
.rail-open { display: none; }
.ws.rail-hidden .rail-open { display: inline-grid; }
.dev-table td { vertical-align: middle; }
/* the workspace lists on a phone (ee's visitor walk, 2026-11-12: columns ran off-screen, pills broke a few letters a
   line): each row a short card, the first cell across the top, the rest wrapping under it at their natural width */
@media (max-width: 600px) {
  .ws-table .dev-table thead { display: none; }
  .ws-table .dev-table, .ws-table .dev-table tbody { display: block; width: 100%; }
  .ws-table .dev-table tr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
  .ws-table .dev-table td { display: block; padding: 0; border: 0; min-width: 0; max-width: 100%; }
  .ws-table .dev-table td:first-child { flex: 1 1 100%; }
  .ws-table .dev-table td:empty { display: none; }          /* an empty cell (no risk, no site) takes no gap, so every card lines up (c7) */
  .ws-table .dev-table td.cg-site, .ws-table .dev-table td.small { white-space: normal; overflow: visible; text-overflow: clip; }
  .ws-table .dev-table .pill { max-width: none; }
  .ws-table .dev-table .dev-cell, .ws-table .dev-table .dev-cell > * { min-width: 0; max-width: 100%; }
  .ws-table .dev-table .oc, .ws-table .dev-table .oc-main { min-width: 0; max-width: 100%; }
  .ws-table .dev-table .oc-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
.dev-table tbody tr { cursor: pointer; }
.dev-table tbody tr.is-open td { background: var(--accent-soft); }
.dev-table tbody tr.is-cursor td { background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.dev-table tbody tr.is-cursor { outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: -2px; }
.dev-table .actions { width: 1%; text-align: right; }
.dev-cell { display: flex; align-items: center; gap: 12px; }
/* the device's front (NetBox front image, else the pack faceplate), letterboxed in one box: never stretched (jon-1) */
.dev-thumb { flex: none; width: 88px; height: 32px; padding: 3px; box-sizing: border-box; display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); border: 1px solid var(--border); }
.ws.drawer-open .dev-thumb { display: none; }
.dev-thumb img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
/* no picture: a small generic device icon, the same box as a picture (ee-sweep-14-35) */
.dev-thumb .dev-thumb-ph { display: none; font-size: 15px; color: var(--faint); }
.dev-thumb:not(:has(img)) .dev-thumb-ph { display: block; }
.dev-name { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; color: var(--title); }
.site-chip { font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: var(--radius-badge); background: var(--neutral-soft); color: var(--neutral-text); }
.role-dot { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; background: var(--c, #9e9e9e); vertical-align: 0; }
.reach-dot { width: 8px; height: 8px; border-radius: 0; background: var(--faint); }
.reach-dot.up { background: var(--success); box-shadow: 0 0 0 3px var(--success-soft); }
.reach-dot.down { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.mono { font-family: var(--font-mono); font-size: 12.5px; }
/* long card grids (shell.js data-grid, _site_card.html grid_tools) */
.grid-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 12px; }
.grid-find { position: relative; display: inline-flex; flex-direction: row; align-items: center; margin: 0; flex: 0 1 320px; min-width: 0; }
.grid-find i { position: absolute; left: 10px; color: var(--muted); font-size: 13px; pointer-events: none; }
.grid-find input { width: 100%; padding-left: 32px; }
.grid-count { font-size: 13px; }
.site-grid > [hidden] { display: none !important; }
.grid-more { display: flex; margin: 16px auto 0; }
.grid-more[hidden], .grid-none[hidden] { display: none; }
.grid-none { margin: 8px 0 0; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 10px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.pager .icon-only { width: 34px; height: 34px; padding: 0; display: inline-grid; place-items: center; }
.pager span.icon-only[aria-disabled] { opacity: .4; pointer-events: none; }
.pager label { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; margin: 0; font-weight: 400; color: var(--muted); white-space: nowrap; }
.pager-jump input { width: 64px; height: 34px; text-align: center; margin: 0; }
.pager-size select { height: 34px; width: auto; margin: 0; }
.pager-total { margin-left: 6px; }
.pager-go { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }   /* Enter in the page box submits; no-JS too */

.drawer { position: fixed; top: 56px; right: 0; bottom: 0; width: var(--drawer-w, min(620px, 46vw)); background: var(--surface); border-left: 1px solid var(--border);
  box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .22s ease, visibility 0s linear .22s; z-index: 30; display: flex; flex-direction: column;
  visibility: hidden; }
/* closed, the panel leaves the page once it has slid out: hidden, so Tab no longer walks its links off-screen and nothing
   reads it as still open (ee's re-walk, 2026-11-12: after Esc its tabs still measured as on the page) */
.drawer.open { transform: none; visibility: visible; transition: transform .22s ease, visibility 0s; }
.drawer-body { flex: 1; overflow: auto; }
.drawer.loading .drawer-body { opacity: .55; transition: opacity .15s; }
.drawer > .cs-loader { top: 52px; }                                      /* the panel loader, under the drawer's head */
.drawer.loading::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 40%; background: var(--brand-ribbon); animation: run-sweep 1s ease-in-out infinite; }

/* device panel (drawer and page) */
.dp-head { display: flex; align-items: flex-start; gap: 10px; padding: 16px 18px 10px; }
.dp-title { flex: 1; min-width: 0; }
.dp-title h2 { margin: 0 0 4px; font-size: 19px; color: var(--title); word-break: break-word; }
.dp-sub { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.dp-actions { display: flex; gap: 2px; }
.dp-tabs { display: flex; gap: 2px; padding: 0 12px; border-bottom: 1px solid var(--border); overflow-x: auto; position: sticky; top: 0; background: var(--surface); z-index: 1; }
.dp-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 10px 9px; color: var(--muted); border-bottom: 2px solid transparent; font-size: 13px; white-space: nowrap; }
.dp-tabs a:hover { color: var(--title); text-decoration: none; }
.dp-tabs a.active { color: var(--title); border-color: var(--accent); font-weight: 600; }
.dp-tabs a.active i { color: var(--accent); }
.dp-tabs b { font-size: 11px; font-weight: 650; background: var(--neutral-soft); color: var(--neutral-text); border-radius: var(--pill); padding: 0 6px; }
.dp-body { padding: 16px 18px 28px; }
.dp-image { margin: 0 0 14px; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); text-align: center; }
.dp-image img { display: block; margin: 0 auto; max-width: 100%; height: auto; object-fit: contain; }
.dp-image.wide img { max-height: 96px; }
/* upload a device photo (Jon via c7, 2026-11-14): a quiet line under the picture, opened when wanted */
.dp-upload { margin: -6px 0 14px; }
.dp-upload > summary { cursor: pointer; color: var(--accent-text, var(--accent)); list-style: none; }
.dp-upload > summary::-webkit-details-marker { display: none; }
.dp-upload-form { display: grid; gap: 8px; margin-top: 8px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.dp-upload-form .dp-upload-pick { justify-self: start; cursor: pointer; }
.dp-upload-side { gap: 14px; }
.dp-upload-form .dp-upload-go { justify-self: start; }
.dp-upload-msg:empty { display: none; }
.dp-upload-msg.ok { color: var(--success-text); } .dp-upload-msg.bad { color: var(--danger-text); }
.dp-upload.compact { margin: 4px 0 0; }
.dp-upload.compact .dp-upload-form { max-width: 360px; }
.dp-image.tall img { max-height: 140px; }
.dp-image figcaption { margin-top: 8px; }
.dp-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.dp-tile { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 12px 14px; color: var(--muted); font-size: 12.5px; }
.dp-tile strong { display: block; font-size: 24px; line-height: 1.1; color: var(--title); font-weight: 650; }
.dp-tile:hover { border-color: var(--accent); text-decoration: none; }
.dp-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 12px 14px; margin-bottom: 14px; }
.dp-card p { margin: 6px 0 2px; }
.dp-card-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--title); }
.dp-card-head > i { color: var(--muted); }
.dp-sync { --c: var(--border-strong); border-color: color-mix(in srgb, var(--c) 30%, var(--border)); background: color-mix(in srgb, var(--c) 6%, var(--surface)); }
.dp-sync.state-insync { --c: var(--success); } .dp-sync.state-changes { --c: var(--warn); } .dp-sync.state-failed { --c: var(--danger); }
.dp-kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px; margin: 4px 0 16px; }
.dp-kv > div.wide { grid-column: 1 / -1; }
.dp-kv dt { font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; margin-bottom: 3px; }
.dp-kv dd { margin: 0; color: var(--title); word-break: break-word; }
.tag { display: inline-block; font-size: 11.5px; padding: 1px 7px; margin: 0 4px 4px 0; border-radius: var(--pill); background: var(--accent-soft); color: var(--accent); }
.dp-jump { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 12px; border-top: 1px solid var(--border); }
.dp-jump a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: var(--radius); border: 1px solid transparent; color: var(--accent); font-size: 13px; font-weight: 500; }
.dp-jump a:hover { background: var(--accent-soft); text-decoration: none; color: var(--accent); }
.dp-filter input { width: 100%; margin-bottom: 10px; }
.dp-table { width: 100%; border: 1px solid var(--border); border-radius: var(--radius); }
.dp-table td { vertical-align: top; }
/* a capped panel table: the first 50 rows until "Show all" or a filter (panel.js) */
.dp-table.is-capped:not(.is-all):not(.is-filtering) tr.dp-more { display: none; }
/* the interface a link asked for (?iface=, cable discovery's port links): picked out, never folded away */
.dp-table tr.is-target { background: color-mix(in srgb, var(--accent) 12%, transparent); outline: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: -1px; }
.dp-show-all { margin: 6px 0 0; }
/* the interfaces table on a phone: each interface a card (c7 from 88's basics sweep, 2026-11-14: Speed and Connected to
   ran past the screen at 390) */
@media (max-width: 640px) {
  .dp-table.is-capped, .dp-table:has(td[data-label]) { display: block; }
  .dp-table:has(td[data-label]) thead { display: none; }
  .dp-table:has(td[data-label]) tbody, .dp-table:has(td[data-label]) tr, .dp-table:has(td[data-label]) td { display: block; width: 100%; }
  .dp-table:has(td[data-label]) tr { padding: 8px 0; border-bottom: 1px solid var(--border); }
  .dp-table:has(td[data-label]) td { border: 0; padding: 1px 0; text-align: left; white-space: normal; overflow-wrap: anywhere; }
  .dp-table:has(td[data-label]) td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); }
  .dp-table.is-capped:not(.is-all):not(.is-filtering) tr.dp-more { display: none; }
}
/* a phone (3c's 390 sweep, 2026-11-14: a device's Interfaces tab pushed the page to 486 px with "Connected to"): long
   names wrap at their spaces and hyphens, and anything still wider scrolls inside the table, never the page */
@media (max-width: 640px) {
  .dp-table { display: block; max-width: 100%; overflow-x: auto; }
  .dp-table td { overflow-wrap: break-word; }
}
.if-dot { display: inline-block; width: 7px; height: 7px; border-radius: 0; margin-right: 7px; background: var(--faint); vertical-align: 1px; }
.if-dot.on { background: var(--success); }
/* The Interfaces tab of a host vCenter knows (Jon, 2026-11-23: "the interface alone doesnt really tell a full story for physical
   servers"). In the list a NIC carries its vCenter name and its virtual switch as chips (.if-vsw); a VLAN its switch
   port lacks stays on a line under the NIC's row (tr.dp-under: no rule between the two, and it starts under the
   interface's name, past the 14 px status dot). Below the list the switching is drawn (.vsd), and the same follows as
   tables in a closed disclosure (.vsd-tbl). */
.if-vsw { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 6px; margin-top: 3px; font-size: 11.5px; color: var(--muted); }
.dp-table tr:has(+ tr.dp-under) > td { border-bottom: 0; padding-bottom: 3px; }
.dp-table tr.dp-under > td { padding-top: 0; padding-left: 26px; color: var(--text); }
.if-vsw-flag { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.dp-vsw-h { margin-top: 18px; }
.dp-vsw .dp-card-head .pill { margin-left: 2px; }
.dp-vsw > p { margin: 6px 0 8px; }
.dp-vsw-groups { width: 100%; border: 1px solid var(--border); border-radius: var(--radius); }
.dp-vsw-groups + .dp-vsw-groups { margin-top: 8px; }
.dp-vsw-groups td { vertical-align: top; }
.dp-vsw-groups td .pill { margin-left: 4px; vertical-align: 1px; }
.dp-vsw-groups th.num, .dp-vsw-groups td.num { text-align: right; }
.dp-vsw-src { margin-top: 10px; }
.vsd-tbl { margin-top: 10px; }
.vsd-tbl > summary { color: var(--muted); }
.vsd-tbl[open] > summary { margin-bottom: 8px; }
@media (max-width: 640px) {
  .dp-table:has(td[data-label]) tr:has(+ tr.dp-under) { border-bottom: 0; padding-bottom: 2px; }
  .dp-table:has(td[data-label]) tr.dp-under { padding-top: 0; }
  .dp-table tr.dp-under > td { padding-left: 0; }
}
/* The drawing (Jon, 2026-11-23: "if it is just text in tables view its not going to be very premium"), read left to
   right as the traffic goes: VMs (a dot each, in its level's colour), port groups, the virtual switch (a bar under
   its name plate, as vSphere draws one), its uplinks, and the switch port each is cabled to with the VLANs that port
   carries. The boxes are HTML in one grid per switch, so the columns line up down the figure; panel.js draws the
   wires (svg.vsd-wires) at the boxes' real places and lights a path under the pointer or the focus. The app's own
   tokens only: the level colours, pills, level chips, 2 px corners, Plex Mono for the small labels. */
.vsd { position: relative; margin: 2px 0 0; container-type: inline-size; --vsd-left: 42%; --vsd-mid: 36px; --vsd-vms: 80px; --vsd-nic: 120px;
  --vsd-wire: color-mix(in srgb, var(--muted) 72%, transparent); --vsd-bus: color-mix(in srgb, var(--title) 58%, var(--surface)); }
.vsd .lv5 { --lv: var(--l5); } .vsd .lv4 { --lv: var(--l4); } .vsd .lv35 { --lv: var(--l35); } .vsd .lv3 { --lv: var(--l3); }
.vsd .lv2 { --lv: var(--l2); } .vsd .lv1 { --lv: var(--l1); } .vsd .lv0 { --lv: var(--l0); } .vsd .lvn { --lv: var(--faint); }
.vsd ul { list-style: none; margin: 0; padding: 0; display: grid; row-gap: 7px; }
/* a host drawn from NetBox alone (vswitches.from_netbox): where it comes from, what only vCenter adds, what NetBox lacks */
.vsd-src { margin: 0 0 10px; padding: 8px 10px; background: var(--band); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.vsd-src p { margin: 0; }
.vsd-from { font: 500 10.5px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.vsd-notes { margin: 6px 0 0; padding-left: 18px; }
.vsd-notes li + li { margin-top: 2px; }
.vsd p { margin: 0; }
.vsd-heads, .vsd-sw { display: grid; grid-template-columns: var(--vsd-left) var(--vsd-mid) minmax(0, 1fr); }
.vsd-heads { font: 500 10px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.vsd-heads > span { display: grid; column-gap: 8px; }
.vsd-heads > span:first-child { grid-template-columns: var(--vsd-vms) minmax(0, 1fr); }
.vsd-heads > span:last-child { grid-template-columns: var(--vsd-nic) minmax(0, 1fr); column-gap: 16px; }
.vsd-sw { position: relative; z-index: 1; grid-template-rows: auto auto; row-gap: 0; align-items: center; margin-top: 12px; }
.vsd-sw + .vsd-sw { margin-top: 20px; }
/* the switch: its name plate sits on the bar, wider than the bar's own column and centred on it */
.vsd-plate { grid-column: 2; grid-row: 1; justify-self: center; display: flex; align-items: center; gap: 7px; width: max-content; max-width: 90cqw;
  padding: 4px 9px; border: 1px solid var(--vsd-bus); border-radius: var(--radius); background: var(--surface); color: var(--title);
  font-size: 12.5px; white-space: nowrap; transition: opacity .12s; }
.vsd-plate > i { color: var(--muted); font-size: 11px; }
.vsd-plate > strong { overflow: hidden; text-overflow: ellipsis; }
.vsd-left { grid-column: 1; grid-row: 2; padding: 9px 0; }
.vsd-mid { grid-column: 2; grid-row: 2; align-self: stretch; display: flex; justify-content: center; min-height: 38px; }
.vsd-right { grid-column: 3; grid-row: 2; padding: 9px 0; }
.vsd-bar { width: 6px; background: var(--vsd-bus); border-radius: 0 0 2px 2px; transition: opacity .12s; }
.vsd-sub { font: 400 10.5px var(--font-mono); color: var(--muted); white-space: nowrap; }
.vsd-quiet, .vsd-idle, .vsd-stub { font-size: 11.5px; color: var(--muted); }
.vsd .vsd-idle { margin-top: 7px; padding-left: calc(var(--vsd-vms) + 8px); }
/* the port groups with no VM on this host: a disclosure under the others; open, they are muted pills with no dots */
button.vsd-idle { display: flex; align-items: center; gap: 6px; min-height: 26px; padding-top: 0; padding-bottom: 0; padding-right: 6px; border: 0; background: none;
  font: inherit; font-size: 11.5px; color: var(--muted); text-align: left; cursor: pointer; border-radius: var(--radius); }
button.vsd-idle > i { font-size: 9px; width: 10px; transition: transform .12s; }
button.vsd-idle[aria-expanded="true"] > i { transform: rotate(90deg); }
button.vsd-idle:hover { color: var(--title); }
.vsd button.vsd-idle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.vsd .vsd-idles { margin-top: 7px; }
.vsd .vsd-idles[hidden] { display: none; }
.vsd-pg.is-idle .vsd-pgp { border-color: var(--border); background: none; color: var(--muted); }
.vsd-pg.is-idle .lvchip { opacity: .7; }
.vsd-over { margin-top: 5px; padding-left: calc(var(--vsd-vms) + 8px); }
.vsd-right > .vsd-stub { padding-left: 4px; }
.vsd-loose .vsd-left > .vsd-stub { text-align: right; }
/* a port group: its VMs, then its pill with the VLAN in the level's colour */
.vsd-pg { display: grid; grid-template-columns: var(--vsd-vms) minmax(0, 1fr); column-gap: 8px; align-items: center; min-height: 26px; transition: opacity .12s; }
.vsd-vms { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px 3px; }
.vsd-vm { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--lv); transition: opacity .12s, transform .12s; }
.vsd-vm.off { background: none; box-shadow: inset 0 0 0 1.5px var(--lv); }
a.vsd-vm:hover, a.vsd-vm:focus-visible { transform: scale(1.35); }
.vsd a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.vsd-plus { font: 600 10px/10px var(--font-mono); color: var(--muted); text-decoration: none; }
a.vsd-plus:hover { color: var(--accent); }
.vsd-vmk { display: grid; grid-template-columns: auto auto; column-gap: 5px; align-items: center; justify-content: end; font-size: 11px; color: var(--text-2); line-height: 1.25; }
.vsd-vmk > i { width: 8px; height: 8px; background: var(--muted); border-radius: 1px; }
.vsd-vmk > .vsd-sub { grid-column: 1 / -1; text-align: right; font-size: 10.5px; }
.vsd-pgp { display: inline-flex; align-items: center; gap: 7px; width: fit-content; max-width: 100%; min-height: 24px; box-sizing: border-box; padding: 2px 3px 2px 8px;
  border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface-2); color: var(--title); font-size: 12px; line-height: 1.25; text-decoration: none; }
a.vsd-pgp:hover { border-color: var(--accent); color: var(--title); text-decoration: none; }
.vsd-pgn { min-width: 0; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }   /* a long name: two lines, whole in the tooltip and the table */
.vsd-pgp .lvchip { flex: none; font-family: var(--font-mono); }
.vsd-pg.is-bad .vsd-pgp { border-color: color-mix(in srgb, var(--warn) 70%, var(--border)); }
/* an uplink: the port mark (solid: active; dashed: standby), the NetBox interface it is, then the far end of its cable */
.vsd-up { display: grid; grid-template-columns: var(--vsd-nic) minmax(0, 1fr); column-gap: 16px; row-gap: 4px; align-items: center; transition: opacity .12s; }
.vsd-nic { grid-column: 1; grid-row: 1; display: flex; align-items: center; gap: 7px; width: fit-content; max-width: 100%; min-height: 32px; }
.vsd-port { flex: none; width: 10px; height: 10px; box-sizing: border-box; border-radius: 2px; background: var(--vsd-bus); }
.vsd-up.is-standby .vsd-port { background: none; border: 1.5px dashed var(--muted); }
.vsd-up.is-bad .vsd-port { background: var(--warn); border-color: var(--warn); }
.vsd-up.is-bad.is-standby .vsd-port { background: none; }
.vsd-nic-t { display: grid; min-width: 0; font-size: 12.5px; line-height: 1.3; color: var(--title); }
.vsd-nic-t > a, .vsd-nic-t > .mono { font-weight: 600; overflow-wrap: anywhere; }
/* the far end: the switch as a chip on the uplink's own line, so the cable runs straight; its VLANs under it */
.vsd-far { display: contents; }
.vsd-nofar { grid-column: 2; grid-row: 1; }
.vsd-dev { grid-column: 2; grid-row: 1; justify-self: start; display: inline-flex; align-items: center; gap: 7px; max-width: 100%; min-height: 32px; box-sizing: border-box; padding: 3px 8px 3px 4px;
  border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); color: var(--title); text-decoration: none; }
a.vsd-dev:hover { border-color: var(--accent); color: var(--title); text-decoration: none; }
.vsd-thumb { flex: none; width: 36px; height: 18px; display: flex; align-items: center; justify-content: center; background: var(--surface-2); border-radius: 2px; overflow: hidden; }
.vsd-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.vsd-thumb > i { font-size: 11px; color: var(--faint); }
.vsd-thumb:has(img) > i { display: none; }
.vsd-dev-t { display: grid; min-width: 0; font-size: 12px; line-height: 1.25; }
.vsd-dev-t > strong { font-weight: 600; overflow-wrap: break-word; }
.vsd-dev-t > .mono { font-size: 11px; color: var(--muted); }
.vsd-vlans { grid-column: 2; grid-row: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 3px; min-width: 0; }
.vsd-vlans .lvchip { font-family: var(--font-mono); }
.vsd-vlans .pill { font-family: var(--font-mono); }
/* the wires: grey by default; dashed for a standby uplink; short dashes where nothing is known; the warning colour
   along the whole way from a port group to the uplink whose port lacks its VLAN */
.vsd-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.vsd-wires .w { fill: none; stroke: var(--vsd-wire); stroke-width: 1.5; stroke-linecap: round; transition: opacity .12s, stroke .12s; }
.vsd-wires .w.dash { stroke-dasharray: 5 4; }
.vsd-wires .w.unk { stroke-dasharray: 1.5 4; }
.vsd-wires .w.bad { stroke: var(--warn); stroke-width: 2; }
.vsd-wires .w.bus { stroke-width: 6; stroke-linecap: butt; }
.vsd-wires .w.idle { stroke: color-mix(in srgb, var(--muted) 38%, transparent); stroke-width: 1; }
/* a path under the pointer or the focus: it stays, the rest steps back */
.vsd.is-focus .vsd-pg:not(.is-lit), .vsd.is-focus .vsd-up:not(.is-lit), .vsd.is-focus .vsd-plate:not(.is-lit), .vsd.is-focus .vsd-bar:not(.is-lit),
.vsd.is-focus .vsd-stub:not(.is-lit), .vsd.is-focus .vsd-idle, .vsd.is-focus .vsd-pg.vm-focus .vsd-vm:not(.is-lit) { opacity: .28; }
.vsd.is-focus .vsd-wires .w:not(.is-lit) { opacity: .16; }
.vsd-wires .w.is-lit:not(.bad) { stroke: var(--accent); stroke-width: 2; }
.vsd-wires .w.is-lit.bad:not(.bus) { stroke-width: 2.5; }
.vsd-wires .w.is-lit.is-fine { stroke: var(--accent); stroke-width: 2; }
.vsd .is-lit > .vsd-pgp, .vsd .is-lit .vsd-dev { border-color: var(--accent); }
.vsd .vsd-plate.is-lit { border-color: var(--accent); }
/* what the marks mean, for the marks this drawing has */
.vsd .vsd-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; font-size: 11px; color: var(--muted); }
.vsd-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.vsd-legend i.k { width: 8px; height: 8px; background: var(--muted); border-radius: 1px; }
.vsd-legend i.ln { width: 18px; height: 0; border-top: 1.5px solid var(--vsd-wire); }
.vsd-legend i.ln.dash { border-top-style: dashed; }
.vsd-legend i.ln.unk { border-top-style: dotted; }
.vsd-legend i.ln.bad { border-top: 2px solid var(--warn); }
.vsd.is-focus .vsd-legend { opacity: .5; }
/* first draw: the wires run out from the VMs' side to the switch ports, once; a redraw (a resize, the tab shown again)
   is still, and so is everything under reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .vsd.is-drawing .vsd-wires .w:not(.dash):not(.unk) { stroke-dasharray: 1; animation: vsd-draw 380ms ease-in-out calc(var(--d) * 1ms) both; }
  .vsd.is-drawing .vsd-wires .w.dash, .vsd.is-drawing .vsd-wires .w.unk { animation: vsd-fade 320ms ease-out calc(var(--d) * 1ms) both; }
  .vsd.is-drawing .vsd-bar { transform-origin: top; animation: vsd-grow 300ms ease-out 140ms both; }
}
@keyframes vsd-draw { 0% { stroke-dashoffset: 1; opacity: 0; } 2% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 1; } }
@keyframes vsd-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes vsd-grow { from { transform: scaleY(0); } to { transform: none; } }
/* room to spare (the device's own page): the left side stops growing, so the far ends get the width */
@container (min-width: 760px) {
  .vsd-heads, .vsd-sw { --vsd-left: 348px; --vsd-nic: 150px; --vsd-mid: 64px; }
  .vsd-heads > span:last-child, .vsd-up { column-gap: 28px; }
  .vsd-up { grid-template-columns: var(--vsd-nic) auto minmax(0, 1fr); }
  .vsd-vlans { grid-column: 3; grid-row: 1; margin-left: -16px; }
}
/* a phone: each switch as a stack (port groups, the bar lying across, uplinks); no wires to follow */
@container (max-width: 520px) {
  .vsd-heads, .vsd-wires { display: none; }
  .vsd-sw { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
  .vsd-plate { grid-column: 1; grid-row: auto; justify-self: start; max-width: 100%; flex-wrap: wrap; white-space: normal; }
  .vsd-left, .vsd-mid, .vsd-right { grid-column: 1; grid-row: auto; }
  .vsd-mid { min-height: 0; display: block; }
  .vsd-bar { display: block; width: 100%; height: 5px; border-radius: 2px; }
  .vsd-mid:empty { display: none; }
  .vsd-pg { grid-template-columns: minmax(0, 1fr) auto; }
  .vsd-pg > .vsd-vms { order: 2; }
  .vsd-up { grid-template-columns: minmax(0, 1fr); row-gap: 4px; }
  .vsd-nic, .vsd-dev, .vsd-vlans, .vsd-nofar { grid-column: 1; grid-row: auto; }
  .vsd-dev, .vsd-vlans, .vsd-nofar { margin-left: 17px; }
  .vsd .vsd-idle, .vsd-over { padding-left: 0; }
  .vsd-loose .vsd-left > .vsd-stub { text-align: left; }
}
/* Connections: every row shares one set of columns (subgrid), so ports, wires, peers and cables line up
   down the list whatever their length. Peer names stay on one line; the port shrinks first, full text on hover.
   The same card is Physical's cable path (csPanel.link, physical.js pathCard); its rows are the list's own children,
   so a list inside a card (a path's hops) keeps its own look. */
.dp-links { list-style: none; margin: 0; padding: 0; display: grid; row-gap: 6px; column-gap: 12px;
  grid-template-columns: max-content 44px minmax(0, 1fr) max-content; container-type: inline-size; }
.dp-links > li { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; min-height: 40px;
  padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius); }
.dp-links > li:hover { background: var(--nav-hover); }
.dp-port { font-family: var(--font-mono); font-size: 12.5px; color: var(--title); white-space: nowrap; }
.dp-peer { display: flex; align-items: baseline; gap: 8px; min-width: 0; white-space: nowrap; }
.dp-peer strong { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.dp-peer span { flex: 0 1000 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.dp-peer.none { color: var(--muted); }
.dp-peer > a { flex: 0 1 auto; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }   /* a long port group or
   VLAN name links and shrinks like plain text: no sideways scroll on a phone (ee-15) */
.dp-peer > a strong { display: block; overflow: hidden; text-overflow: ellipsis; }
.dp-cable { justify-self: end; white-space: nowrap; font-size: 12px; }
@container (max-width: 520px) {             /* narrow drawer: peer port under the name, on every row alike */
  .dp-peer:not(.none) { flex-direction: column; align-items: flex-start; gap: 1px; }
  .dp-peer strong, .dp-peer span { max-width: 100%; }
}
@container (max-width: 420px) {             /* a phone: the addresses get a line of their own and wrap (ee-15, 2026-11-13) */
  .dp-links { grid-template-columns: max-content 24px minmax(0, 1fr); }
  .dp-links li { row-gap: 2px; }
  .dp-cable { grid-column: 1 / -1; justify-self: start; white-space: normal; overflow-wrap: anywhere; min-width: 0; }
}
.dp-wire { height: 2px; background: var(--success); position: relative; border-radius: 2px; }
.dp-wire::before, .dp-wire::after { content: ""; position: absolute; top: -3px; width: 8px; height: 8px; border-radius: 0; background: var(--success); }
.dp-wire::before { left: -2px; } .dp-wire::after { right: -2px; }
.dp-wire.off, .dp-wire.off::before, .dp-wire.off::after { background: var(--faint); }
.dp-peer span { color: var(--muted); font-family: var(--font-mono); font-size: 12.5px; }
.dp-wire { width: 100%; }
.dp-h { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 6px 0 8px; }
.dp-changes { list-style: none; padding: 0; margin: 0; }
.dp-changes li { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); }
.dp-changes li a { display: flex; gap: 10px; align-items: center; }
.add { color: var(--success-text); }
.changes td.add, .changes td.del { font-family: var(--font-mono); font-size: 12px; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.timeline li { display: grid; grid-template-columns: 32px 1fr; gap: 10px; padding: 0 0 14px; position: relative; }
.tl-icon { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--border); color: var(--muted); font-size: 12px; z-index: 1; }
.st-insync .tl-icon { border-color: var(--success); color: var(--success); }
.st-changes .tl-icon { border-color: var(--warn); color: var(--warn); }
.st-failed .tl-icon { border-color: var(--danger); color: var(--danger); }
.st-info .tl-icon { border-color: var(--info); color: var(--info); }
.tl-body { padding-top: 5px; min-width: 0; }
.tl-top { display: flex; justify-content: space-between; gap: 10px; color: var(--title); }
.tl-diff summary { cursor: pointer; color: var(--accent); margin: 4px 0; }
.device-page { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); max-width: 1100px; }
.site-card.is-scope { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.site-card a.site-name { color: var(--title); }
/* the whole site card opens the site's devices: the name's link stretches over the card, the pills and icons sit above it */
.site-grid .site-card { position: relative; transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; }
.site-grid .site-card a.site-name::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 0; }
.site-grid .site-card a.site-name:hover, .site-grid .site-card a.site-name:focus { text-decoration: none; }
.site-grid .site-card a:not(.site-name), .site-grid .site-card .ch-ring { position: relative; z-index: 1; }
.site-grid .site-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.site-grid .site-card.is-scope:hover { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow-md); }
.site-grid .site-card:hover a.site-name { color: var(--accent); }
.site-grid .site-card:has(a.site-name:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.site-grid .site-card a.site-name:focus-visible { outline: none; }
.site-foot a.pill:hover, a.site-stat:hover { text-decoration: none; filter: brightness(.96); }
a.site-stat:hover { color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .site-grid .site-card { transition: none; } .site-grid .site-card:hover { transform: none; } }
.site-stat { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-weight: 600; margin-right: 4px; }

/* site scope picker */
.scope-menu { margin-right: 6px; }
.scope-btn { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: var(--radius); border: 1px solid var(--accent); background: var(--surface); color: var(--accent); font-weight: 500; font-size: 13px; }
.scope-btn:hover { background: var(--accent-soft); text-decoration: none; }
.scope-btn i:first-child { color: var(--accent); }
.scope-panel { left: 0; right: auto; min-width: 320px; max-width: min(560px, 92vw); max-height: 60vh; overflow: auto; }   /* wide enough for most site names; the rest carry the full name as a tooltip */
/* Fixed columns (name | region | check) so every row lines up, whichever row is active or has no region. */
.scope-panel a { display: grid; grid-template-columns: minmax(0, 1fr) auto 12px; column-gap: 12px; align-items: center; }
.scope-panel .scope-name { grid-column: 1; white-space: normal; overflow-wrap: anywhere; line-height: 1.3; }   /* ee-6 */
.scope-panel .scope-name i { width: 14px; margin-right: 6px; text-align: center; }
.scope-panel .scope-region { grid-column: 2; white-space: nowrap; text-align: right; }
.scope-panel a.is-active::after { grid-column: 3; margin-left: 0; }
.scope-panel a.is-active:hover { color: var(--accent); }
.scope-panel a[hidden] { display: none; }
.scope-find { width: 100%; margin-bottom: 4px; }
@media (max-width: 1000px) {
  .ws, .ws.rail-hidden { grid-template-columns: minmax(0, 1fr); }      /* the rail is gone here: one column, or the main lands in the rail's 0 px column */
  .ws-rail { display: none; }
  .ws.drawer-open .ws-main { margin-right: 0; }
  .drawer { width: 100%; }
  .dp-kv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* With the drawer open the table keeps the columns that identify a device. */
.ws.drawer-open .dev-table th:nth-child(2), .ws.drawer-open .dev-table td:nth-child(2),
.ws.drawer-open .dev-table th:nth-child(3), .ws.drawer-open .dev-table td:nth-child(3) { display: none; }
.ws.drawer-open .dev-table .site-chip { display: none; }
.ws.drawer-open .findings-table th:nth-child(2), .ws.drawer-open .findings-table td:nth-child(2) { display: table-cell; }   /* Findings keeps Site / object; Source is the column that goes */
/* Six tabs fit a 620px drawer: icons only on the chosen tab. */
.dp-tabs { gap: 0; }
.dp-tabs a { padding: 10px 9px 9px; }
.dp-tabs a:not(.active) i { display: none; }

/* -- run report: issues grouped by kind, each with its fix --------------------------------- */
.tone-bad { --c: var(--danger); } .tone-warn { --c: var(--warn); } .tone-review { --c: var(--accent); }
.tone-info { --c: var(--info); } .tone-ok { --c: var(--success); }
.button.small, button.small { padding: 5px 10px; font-size: 12.5px; }
.rp { margin: 18px 0 22px; }
.rp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.rp-head h2 { margin: 0; }
.rp-tally { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rp-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: var(--radius); font-size: 12px;
  border: 1px solid color-mix(in srgb, var(--c) 28%, var(--border)); background: color-mix(in srgb, var(--c) 8%, var(--surface)); color: var(--c); }
.rp-chip b { font-weight: 700; }
.rp-group { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); margin-bottom: 8px; transition: border-color .15s; }
.rp-group[open] { border-color: color-mix(in srgb, var(--c) 30%, var(--border)); }
.rp-group > summary { list-style: none; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto 14px; gap: 12px; align-items: center;
  padding: 11px 14px; cursor: pointer; border-radius: var(--radius); }
.rp-group > summary::-webkit-details-marker { display: none; }
.rp-group > summary:hover { background: color-mix(in srgb, var(--c) 4%, var(--surface)); }
.rp-group[open] > summary { background: color-mix(in srgb, var(--c) 6%, var(--surface)); border-radius: var(--radius) var(--radius) 0 0; }
.rp-ico { width: 36px; height: 36px; border-radius: var(--radius); display: grid; place-items: center; font-size: 15px;
  background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); }
.rp-title { display: grid; gap: 2px; min-width: 0; }
.rp-title strong { color: var(--title); font-size: 14px; }
.rp-why { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.rp-group:not([open]) .rp-why { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-count { font-size: 12px; font-weight: 600; color: var(--c); white-space: nowrap; }
.rp-caret { color: var(--faint); font-size: 11px; transition: transform .15s; }
.rp-group[open] .rp-caret { transform: rotate(180deg); }
.rp-body { padding: 10px 14px 12px 62px; border-top: 1px solid color-mix(in srgb, var(--c) 18%, var(--border)); }
/* a passing group is quiet (Jon, 2026-11-10: "a lot of green boxes"): a plain card, the small green sign, no tint; the tint stays for what is to fix */
.rp-group.tone-ok[open] { border-color: var(--border); }
.rp-group.tone-ok > summary:hover, .rp-group.tone-ok[open] > summary { background: var(--surface-2); }
.rp-ico.quiet { background: var(--neutral-soft); color: var(--neutral-text); }
.rp-group.tone-ok .rp-count { color: var(--muted); }
.rp-group.tone-ok .rp-body { border-top-color: var(--border); }
.rp-fixes { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; margin: 10px 0 0; }   /* the control's action area: after the detail, on the right (Jon, 2026-11-10) */
.rp-fixes form.inline { display: inline; margin: 0; }
/* a control's findings as a compact table (Jon, 2026-11-11): typed cells, group headers, a quiet row menu, show all and a filter */
.rp-tablewrap { overflow-x: auto; }
.rp-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.rp-table th { text-align: left; padding: 4px 8px 6px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--border); white-space: nowrap; }
.rp-table td { padding: 5px 8px; border-top: 1px solid var(--border); vertical-align: top; }
.rp-table tbody tr:first-child td { border-top: 0; }
.rp-table tr.rp-grp td { background: var(--surface-2); font-weight: 600; color: var(--title); padding: 6px 8px; }
.rp-table tr.rp-under td:first-child { padding-left: 20px; }
.rp-table .lvchip { vertical-align: middle; }
.rp-table .rp-act { width: 34px; text-align: right; padding-top: 2px; padding-bottom: 2px; }
.rp-table .rp-act .icon-btn { width: 26px; height: 26px; }
.rp-table .rp-act .menu-panel { min-width: 240px; }
/* a phone (3c's 390 sweep, 2026-11-14: a control's table on Segmentation cut its header and rows, "Plant bus: 8 devices
   at Leve…", and a tall cell left a screen of blank space beside its neighbours): each row stacks its cells and wraps,
   a group heading reads in full, a collapsed reason takes two lines, and the row's actions are a tap target. Rows the
   "Show all" button reveals keep their [hidden] */
@media (max-width: 640px) {
  .rp-tablewrap { overflow-x: visible; }
  .rp-table, .rp-table > tbody { display: block; width: 100%; }
  .rp-table > thead { display: none; }
  .rp-table > tbody > tr:not([hidden]) { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 7px 8px; border-top: 1px solid var(--border); }
  .rp-table > tbody > tr:first-child { border-top: 0; }
  .rp-table > tbody > tr:not([hidden]) > td { display: block; padding: 0; border: 0; min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
  .rp-table > tbody > tr.rp-grp:not([hidden]), .rp-table > tbody > tr.rp-raw:not([hidden]) { display: block; }
  .rp-table > tbody > tr.rp-grp:not([hidden]) { background: var(--surface-2); }
  .rp-table > tbody > tr.rp-under:not([hidden]) { padding-left: 20px; }
  .rp-table tr.rp-under td:first-child { padding-left: 0; }
  .rp-table > tbody > tr > td.rp-act { margin-left: auto; width: auto; padding: 0; }
  .rp-group:not([open]) .rp-why { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}
@media (pointer: coarse) { .rp-table .rp-act .icon-btn { width: 40px; height: 40px; } }
.rp-tools { display: flex; justify-content: flex-end; margin-bottom: 6px; }
.rp-filter { width: 240px; max-width: 100%; font-size: 12.5px; padding: 5px 8px; }
.rp-more { margin-top: 8px; }
/* the one results component (Jon, 2026-11-12): sortable headers, a row that opens its object, a quiet diff pair, the raw text under a row, one empty state */
.rp-table th[data-sort] { cursor: pointer; user-select: none; }
.rp-table th[data-sort]::after { content: ""; display: inline-block; width: 0; height: 0; margin-left: 5px; border: 4px solid transparent; border-top-color: var(--faint); vertical-align: 1px; }
.rp-table th[aria-sort="ascending"]::after { border-top-color: transparent; border-bottom-color: var(--accent); vertical-align: 4px; }
.rp-table th[aria-sort="descending"]::after { border-top-color: var(--accent); }
/* Config checks rules (Jon via c7, 2026-11-14): the name reads as a link, Edit and an On/Off switch on each row, a rule
   that is off looks off */
.cc-rules a.cc-name { font-weight: 600; color: var(--accent-text, var(--accent)); text-decoration: none; }
.cc-rules a.cc-name:hover, .cc-rules a.cc-name:focus-visible { text-decoration: underline; text-underline-offset: 2px; }
.cc-rules tr.is-off > td:not(.cc-acts) { opacity: .55; }
.cc-rules tr.is-off a.cc-name { color: var(--text-2); }
.cc-acts { width: 1%; white-space: nowrap; text-align: right; vertical-align: top; }
.cc-acts-in, .cc-acts-in form { display: flex; flex-wrap: nowrap; gap: 8px; align-items: center; justify-content: flex-end; }
.cc-switch { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--text-2); font-size: 12px; cursor: pointer; min-height: 28px; }
.cc-switch .cc-knob { position: relative; width: 28px; height: 16px; border-radius: 999px; background: var(--surface-3); transition: background .15s; }
.cc-switch .cc-knob::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,.3); transition: left .15s; }
.cc-switch.is-on { color: var(--text); }
.cc-switch.is-on .cc-knob { background: var(--success, #2e7d32); }
.cc-switch.is-on .cc-knob::after { left: 14px; }
.rp-table tr.row-link { cursor: pointer; }
.rp-table tr.row-link:hover td, .rp-table tr.row-link:focus-within td { background: var(--surface-2); }
.rp-table a.rp-link { color: var(--accent); font-weight: 500; text-decoration: none; }   /* the link carries its weight in colour, not boldness (c7, 2026-11-12) */
.rp-table a.rp-link:hover { text-decoration: underline; }
.rp-table a.rp-link > i { color: var(--muted); }
.rp-del { color: var(--danger-text); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--danger) 55%, transparent); }
.rp-add { color: var(--success-text); font-weight: 600; }
.rp-table tr.rp-raw td { border-top: 0; padding: 0 8px 6px; }
.rp-table tr.rp-raw summary { color: var(--muted); cursor: pointer; }
.rp-table tr.rp-raw pre { margin: 4px 0 0; white-space: pre-wrap; }
.rp-empty { margin: 2px 0; }
.rp.hide-ok .rp-group.tone-ok { display: none; }                 /* the Needs attention filter */
.rp-tally .seg.small { --grp-h: 28px; margin-right: 6px; }
/* a group with nothing under its header: the header line alone, no chevron (a passing control's sentence) */
.rp-group.rp-bare .rp-head-line { display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.rp-group.rp-bare .rp-title { flex: 1 1 auto; }
.rp-fixes.rp-fixes-inline { margin: 0; flex: none; }
.rp-name { font-weight: 500; color: var(--title); }
.rp-note { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-2, var(--muted)); }
.rp-detail-head { margin-top: 26px; }
/* -- Joined buttons are ONE piece (Jon, 2026-11-09). One rule for .btn-group (view switchers, Refresh | time, the panel's
   "Open in" bar), .seg (segmented controls), .split (a primary with its menu caret) and the panel header's .sp-actions.
   The group carries the single 1px outline (--grp-line) and the 2px radius on its outer corners; the members have no border
   and sit 1px apart over the group's surface, each member after the first painting the one divider into that gap as a
   1px box-shadow (so forms, disabled members and translucent tints keep it). Hover, pressed and the focus ring
   belong to the member (the ring inside the outline); the glow sits on the group's outline while an enabled member is
   hovered. A disabled member fades its content, never the divider. Only related options are joined: unrelated actions
   stand apart in a .row with its 8px gap. -- */
.btn-group, .seg, .split, .sp-actions { --grp-h: 34px; --grp-line: var(--accent);
  display: inline-flex; align-items: stretch; gap: 1px; vertical-align: middle; box-sizing: border-box; height: var(--grp-h);
  position: relative; border: 0; border-radius: var(--radius); background: var(--surface); isolation: isolate; transition: box-shadow .15s ease; }
/* the group's 1 px line is an overlay (::after) above the members, not the group's border: the members fill the whole
   box and the line, snapped to device pixels like any border, lies over their edge. With a real border the members sat
   inside it and at 125 % or 150 % display scale a half-pixel seam showed between them and the line, top and bottom. */
:is(.btn-group, .seg, .split, .sp-actions)::after { content: ""; position: absolute; inset: 0; z-index: 2; border: 1px solid var(--grp-line); border-radius: inherit; pointer-events: none; transition: border-color .15s ease; }
.btn-group.small, .sp-open .btn-group { --grp-h: 30px; }
:is(.btn-group, .seg, .split, .sp-actions) > form { display: contents; }
:is(.btn-group, .seg, .split, .sp-actions) :is(button, .button, a, .sp-btn):not(.menu-panel *) {
  height: auto; min-height: 0; align-self: stretch; box-sizing: border-box; border: 0; border-radius: 0; box-shadow: var(--div, none); transform: none; }
:is(.btn-group, .seg, .split, .sp-actions) :is(button, .button, a, .sp-btn):not(.menu-panel *):hover,
:is(.btn-group, .seg, .split, .sp-actions) :is(button, .button, a, .sp-btn):not(.menu-panel *):active { box-shadow: var(--div, none); transform: none; }
:is(.btn-group, .seg, .split, .sp-actions) > :is(button, .button, a, .sp-btn, .menu):not(:first-child),
:is(.btn-group, .seg, .split, .sp-actions) > form:not(:first-child) > :is(button, .button) { --div: -1px 0 0 var(--grp-line); }
.split > .menu { box-shadow: var(--div, none); }
:is(.btn-group, .seg, .split, .sp-actions) > :is(button, .button, a, .sp-btn, .menu):first-child,
:is(.btn-group, .seg, .split, .sp-actions) > form:first-child > :is(button, .button) { border-radius: var(--radius) 0 0 var(--radius); }
:is(.btn-group, .seg, .split, .sp-actions) > :is(button, .button, a, .sp-btn, .menu):last-child,
:is(.btn-group, .seg, .split, .sp-actions) > form:last-child > :is(button, .button) { border-radius: 0 var(--radius) var(--radius) 0; }
:is(.btn-group, .seg, .split, .sp-actions) :is(button, .button, a, .sp-btn):not(.menu-panel *):focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }   /* the ring sits inside the group's line */
:is(.btn-group, .seg, .split, .sp-actions):has(:is(button, .button, a, .sp-btn):not(.menu-panel *, :disabled, .is-disabled, .snap-time):hover) { box-shadow: var(--glow); }
:is(.btn-group, .seg, .split, .sp-actions):has(:is(button, .button, a, .sp-btn):not(.menu-panel *, :disabled, .is-disabled, .snap-time):hover)::after { border-color: var(--accent-hover); }
:is(.btn-group, .seg, .split, .sp-actions) :is(button:disabled, .button.is-disabled, .button[aria-disabled="true"]) { opacity: 1; background: var(--surface); cursor: not-allowed; }
:is(.btn-group, .seg, .split, .sp-actions) :is(button:disabled, .button.is-disabled, .button[aria-disabled="true"]) > * { opacity: .45; }   /* the standard 45%, on the content so the divider stays */
:is(.btn-group, .sp-actions) :is(button, .button):not(.snap-time):has(> i:only-child) { width: var(--grp-h); min-width: var(--grp-h); padding: 0; justify-content: center; }   /* icon-only: a lone icon; these groups keep labels in <span>, a .seg may carry a bare text label beside its icon */
/* the canvas pages' shared header pieces (_head.html: view_switch and snap_split), used by the logical, physical and virtual pages */
.view-switch .button.is-active, .btn-group > .button.is-active, .btn-group > .is-active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }   /* the current member of a joined group */
.view-switch .button .tier { margin-left: 2px; }
.snap-split .snap-time { min-width: 158px; justify-content: center; white-space: nowrap; font-family: var(--font-mono); font-size: 12px; color: var(--muted); background: var(--surface); cursor: default; padding: 0 10px; }   /* one width in every state: it fits "Reading NetBox…" */
.snap-split .snap-time:hover { background: var(--surface); color: var(--muted); }
.snap-split .snap-time.is-stale, .snap-split .snap-time.is-busy { color: var(--accent); }
.seg a { display: inline-flex; align-items: center; padding: 0 12px; font-size: 12.5px; color: var(--muted); background: var(--surface); }
.seg a.is-on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.seg a b { font-weight: 600; color: var(--title); margin-left: 5px; font-variant-numeric: tabular-nums; }   /* a count beside the label (gap kinds) */
.seg a.is-on b { color: inherit; }
.seg a:hover { text-decoration: none; color: var(--title); background: var(--accent-soft); }

/* -- job history ------------------------------------------------------------------------------ */
.hs-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; color: var(--muted); font-size: 13px; }
.hs-facts i { color: var(--faint); margin-right: 3px; }
.hs-card { padding: 14px 16px 10px; margin-bottom: 18px; }
.hs-card-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; color: var(--title); }
.hs-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.hs-strip { position: relative; height: 96px; margin: 0 10px; }          /* a timeline: each run at its moment across the whole width */
.hs-strip::after { content: ""; position: absolute; left: -10px; right: -10px; bottom: -1px; border-top: 1px solid var(--border); }
.hs-bar { --w: max(1px, min(var(--bar, 20px), calc(100% / var(--gaps, 1) - 2px)));   /* at phone width a bar narrows to keep a 2 px gap */
  position: absolute; bottom: 0; left: calc(var(--x, 50) * 1%); width: var(--w); margin-left: calc(var(--w) / -2); height: 100%; display: flex; align-items: flex-end; border-radius: var(--radius); }
.hs-bar:hover { background: var(--surface-2); text-decoration: none; }
.hs-stack { width: 100%; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; min-height: 6px; }
.hs-seg { min-height: 2px; background: var(--c); }
.hs-seg.tone-ok { background: color-mix(in srgb, var(--success) 70%, var(--surface)); }
.hs-empty { height: 6px; background: var(--border-strong); }
/* a failed run is hatched dark grey, not red: red is "high" in the same chart (ee-sweep-14-37) */
.hs-bar.status-failed, .hs-part.status-failed { --fail-hatch: repeating-linear-gradient(135deg, var(--muted) 0 2px, transparent 2px 4px); }
.hs-bar.status-failed .hs-stack { outline: 2px dashed var(--muted); outline-offset: 1px; }
.hs-bar.status-failed .hs-empty { background: var(--fail-hatch); height: 100%; box-shadow: inset 0 0 0 1px var(--muted); }
.hs-axis { display: flex; justify-content: space-between; margin-top: 6px; }
/* run history controls (_history.html): the range group, the captioned filters with their button on the fields' line,
   the "#N" jump on the right; the pager under the table */
.hs-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 16px; margin: 0 0 14px; }
.hs-filter-form, .hs-jump { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 10px; margin: 0; }
.hs-filter-form label, .hs-jump label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); }
.hs-filter-form input[type=date] { width: 150px; }
.hs-jump input { width: 90px; }
.hs-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.hs-note { color: var(--muted); }
.hs-runs-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 16px; }
.hs-runs-head h2 { margin-bottom: 8px; }
.hs-runs-head .hs-jump { margin: 0 0 8px; }
/* a folded stretch of quiet runs: one quiet row that expands in place */
.hs-table tr.hs-fold td { background: var(--surface-2); padding-top: 8px; padding-bottom: 8px; }
.hs-fold-btn { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; color: var(--text); margin-right: 10px; }
.hs-fold-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hs-fold-btn i { transition: transform .15s ease; width: 10px; }
.hs-fold-btn[aria-expanded="true"] i { transform: rotate(90deg); }
.hs-fold-parts { display: inline-flex; margin-left: 10px; vertical-align: middle; }
.hs-parts { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.hs-part { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--text-2, var(--muted)); white-space: nowrap; }
.hs-dot { width: 8px; height: 8px; border-radius: 0; background: var(--c, var(--danger)); }
.hs-part.status-failed .hs-dot { background: var(--fail-hatch); box-shadow: inset 0 0 0 1px var(--muted); }
.hs-table td { vertical-align: top; }
.hs-table .run-bar.mini { margin-top: 6px; max-width: 160px; }
td[data-run-key] .run-bar.mini, tr[data-run-key] .run-bar.mini { margin-top: 6px; max-width: 180px; }

/* -- config changes workspace ---------------------------------------------------------------- */
.cg-lead { margin: -6px 0 12px; }
.cg-table .cg-cell > input[type=checkbox] { flex: none; margin: 0; }
/* a row's picture (Jon, 2026-11-23: "we cannot just have a changes page where everything is text"): the Devices list's
   thumbnail with the device's front in it; a VM, or a device with no picture, shows its mark in the same box. Beside an
   open panel the list keeps its pictures while it has the room (the Devices list drops them); squeezed under 560 px by
   the panel, a row falls back to its mark alone, as it was. */
.cg-wrap { container-type: inline-size; }
.cg-cell .cg-what { min-width: 0; flex: 1 1 auto; }
.cg-thumb:has(img) .cg-type { display: none; }
.ws.drawer-open .cg-table .cg-thumb { display: flex; }
@container (max-width: 560px) {
  .ws.drawer-open .cg-table .cg-thumb { width: auto; height: auto; padding: 0; border: 0; background: none; }
  .ws.drawer-open .cg-table .cg-thumb img { display: none; }
  .ws.drawer-open .cg-table .cg-thumb:has(img) .cg-type { display: inline-grid; }
}
.cg-bulk { position: sticky; bottom: 14px; z-index: 3; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border)); border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 6%, var(--surface)); box-shadow: 0 8px 24px rgba(16, 24, 40, .12); }
.cg-bulk[hidden] { display: none; }
.cg-bulk input:not([type=hidden]) { flex: 1 1 160px; min-width: 0; }
.cg-acked { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cg-acked-note { color: var(--text-2, var(--muted)); }
.cg-journal { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin-top: 2px; font-size: 12.5px; color: var(--text-2, var(--muted)); }
.cg-journal > i { color: var(--c, var(--muted)); }
.cg-journal[data-journal=pending] > i { color: var(--muted); }
.cg-journal[data-journal=failed] > i, .cg-journal[data-journal=skipped] > i { color: var(--warn); }
.cg-journal a { white-space: nowrap; }
.cg-journal-retry { display: inline; margin: 0; }
.cg-journal-retry button.link { font-size: inherit; color: var(--accent); }
.cg-ack-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.cg-ack-row input { flex: 1 1 160px; min-width: 0; }
.dp-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 18px 0 8px; color: var(--title); }
.dp-body .code-wrap pre.diff { max-height: 52vh; }
.rp-group > summary::before { content: none; display: none; }
.hs-strip { justify-content: flex-end; }

/* -- findings workspace ----------------------------------------------------------------------- */
/* Findings: the severity row under the head, one chip per severity with its sign and count; the active one filters */
.fd-sev { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.fd-sev-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px 0 8px; font-size: 12.5px; }   /* one chip height (30 px) */
.fd-sev-chip b { font-family: var(--font-display); font-weight: 650; color: var(--title); }
.fd-sev-chip.is-zero { color: var(--muted); } .fd-sev-chip.is-zero b { color: var(--muted); }
.fd-sev-chip.is-active b { color: inherit; }
.kpi.is-on { border-color: color-mix(in srgb, var(--kpi, var(--accent)) 45%, var(--border)); background: color-mix(in srgb, var(--kpi, var(--accent)) 6%, var(--surface)); }
.findings-table .dev-name { gap: 8px; }
.findings-table .dev-name strong { white-space: normal; }
/* one row shape (sweep 1.30, 2026-11-14): the title always on its own line under the box and the severity, never beside
   the badge when it happens to be short; the Source column breaks only between its parts ("Vulnerability · 14 h ago") */
.findings-table .dev-name strong { flex-basis: 100%; }
.findings-table .fd-src { min-width: 150px; }
.fd-line { margin-top: 3px; max-width: 72ch; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }   /* two lines, the rest in its tooltip (c7, 2026-11-14) */
.fd-detail { margin: 0 0 12px; line-height: 1.55; }
.fd-fix { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; margin-bottom: 12px; border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--c) 26%, var(--border)); background: color-mix(in srgb, var(--c) 6%, var(--surface)); }
.fd-fix .rp-ico { flex: none; }
.fd-fix p { margin: 3px 0 0; line-height: 1.5; }
.fd-act textarea { width: 100%; resize: vertical; }
.fd-act-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.fd-act-row .spacer { flex: 1; }
.fd-mute { margin-top: 10px; }
.fd-mute > summary { color: var(--title); font-weight: 600; cursor: pointer; font-size: 13px; }
.fd-mute form { margin-top: 10px; }
.fd-evidence { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.sp-foot .fd-act textarea { width: 100%; resize: vertical; box-sizing: border-box; }
.dp-head > .rp-ico { flex: none; margin-top: 2px; }


/* -- schedules and automation ----------------------------------------------------------------- */
.level-report { --c: #64748b; } .level-review { --c: var(--info); }
.level-safe { --c: var(--success); } .level-full { --c: #7c3aed; }
:root[data-theme="dark"] .level-report { --c: #94a3b8; } :root[data-theme="dark"] .level-full { --c: #a78bfa; }
.pill[class*="level-"] { --t: var(--c); }
.pill[class*="level-"]::before { display: none; }
.au-ico[class*="level-"] { background: color-mix(in srgb, var(--c) 15%, transparent); color: var(--c); }
.au-set { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px 12px; margin: 6px 0 4px; }
.au-set legend { padding: 0 6px; font-weight: 650; color: var(--title); }
.au-set legend i { color: var(--muted); margin-right: 4px; }
.au-kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-bottom: 12px; }
.au-card, .au-step { position: relative; display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: var(--radius); cursor: pointer; background: var(--surface); transition: border-color .12s, background .12s; }
.au-card input, .au-step input { position: absolute; opacity: 0; pointer-events: none; }
.au-card:hover, .au-step:hover { border-color: var(--border-strong); }
.au-card:has(input:checked) { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.au-card:has(input:focus-visible), .au-step:has(input:focus-visible) { box-shadow: var(--focus-ring); }
.au-card strong, .au-step strong { display: block; color: var(--title); font-size: 13.5px; }
.au-card small, .au-step small { display: block; color: var(--muted); font-size: 12px; line-height: 1.4; margin-top: 2px; }
.au-ico { width: 32px; height: 32px; flex: none; border-radius: var(--radius); display: grid; place-items: center; font-size: 14px;
  background: color-mix(in srgb, var(--c, var(--accent)) 13%, transparent); color: var(--c, var(--accent)); }
.au-ico.sm { width: 26px; height: 26px; border-radius: var(--radius); font-size: 12px; }
.au-card .au-ico { --c: var(--accent); }
.au-panel { display: grid; gap: 8px; padding: 4px 2px 6px; }
.au-panel[hidden] { display: none; }
.au-inline { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.au-inline[hidden] { display: none; }
.au-inline input[type=number] { width: 100px; } .au-inline input[type=time] { width: 120px; }
.au-presets, .au-days { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.au-day { position: relative; }
.au-day input { position: absolute; opacity: 0; }
.au-day span { display: inline-block; min-width: 44px; text-align: center; padding: 5px 8px; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; font-size: 12.5px; }
.au-day input:checked + span { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.au-day input:focus-visible + span { box-shadow: var(--focus-ring); }
.au-tz { margin: 6px 0 0; }
.au-ladder { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; margin-bottom: 10px; }
.au-step:has(input:checked) { border-color: color-mix(in srgb, var(--c) 55%, var(--border)); background: color-mix(in srgb, var(--c) 7%, var(--surface)); }
.au-guard { display: grid; gap: 4px; margin-top: 8px; }
/* -- Automation page: workspace rail, KPIs, jobs table and a side column ---------------------- */
.au-ws .ws-head h1 { font-size: 22px; }
.au-lead { margin: -8px 0 16px; }
.au-state { align-self: center; }   /* the on/paused status pill beside the title */
.au-sign { display: inline-flex; width: 12px; flex: none; }   /* a job's state sign; never-run rows keep the room */
.au-pause-panel { width: 340px; padding: 14px; }
.au-pause-panel strong { display: block; color: var(--title); }
.au-pause-panel p { margin: 4px 0 10px; line-height: 1.45; }
.au-pause-panel form { display: flex; gap: 6px; }
.au-pause-panel input { flex: 1; min-width: 0; }
.au-pause-panel .primary { width: auto; justify-content: center; color: #fff; }
.au-paused { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 16px; border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--danger) 28%, var(--border)); background: color-mix(in srgb, var(--danger) 6%, var(--surface)); }
.au-paused strong { color: var(--title); }
.au-paused > div { flex: 1; } .au-paused form { margin: 0; }
.au-rail-ico { width: 15px; text-align: center; color: var(--faint); font-size: 12px; }
.cs-i.au-rail-ico { height: 13px; }
.rail-item.is-on .au-rail-ico { color: var(--accent); }
.au-ico.xs { width: 20px; height: 20px; border-radius: var(--radius); font-size: 10px; }
.rail-item > span.au-ico { flex: none; }

.kpi.info { --kpi: var(--info); }
.au-ws .pg-facts { margin-bottom: 18px; }
@media (max-width: 1100px) { .au-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.au-body { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; align-items: start; }
@media (max-width: 1560px) {
  .au-body { grid-template-columns: minmax(0, 1fr); }
  .au-side { position: static; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
}
.au-table { font-size: 13.5px; }
.au-table td { vertical-align: middle; padding-top: 11px; padding-bottom: 11px; }
.au-table .c-job { width: 24%; } .au-table .c-sched { width: 26%; } .au-table .c-level { width: 18%; } .au-table .c-last { width: 22%; }
.au-table td:first-child { min-width: 170px; }
.au-table .c-act { width: 1%; }
.au-table tr.au-group td { background: var(--surface-2); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  color: var(--title); padding: 7px 12px; }
.au-table tr.au-group i { color: var(--muted); margin-right: 8px; width: 14px; text-align: center; }
.au-table tr.au-group .cs-i { color: var(--muted); margin-right: 8px; width: 14px; height: 14px; vertical-align: -3px; }
.au-group-n { margin-left: 8px; padding: 0 7px; border-radius: var(--pill); background: var(--surface); border: 1px solid var(--border);
  color: var(--muted); font-weight: 600; letter-spacing: 0; }
.au-job { display: flex; align-items: center; gap: 9px; min-width: 0; }
.au-job a { font-weight: 600; color: var(--title); }
.au-job a:hover { color: var(--accent); }
.au-sched { white-space: nowrap; } .au-sched i { color: var(--faint); margin-right: 3px; }
.au-table .au-sched { display: flex; align-items: center; gap: 7px; color: var(--title); }
.au-table .au-sched i { width: 14px; text-align: center; margin: 0; }
.au-table .au-sched.is-manual { color: var(--muted); }
.au-sub { margin-top: 3px; font-size: 12px; color: var(--muted); }
.au-table .au-sub { padding-left: 21px; white-space: nowrap; }
.au-table td:nth-child(3) .au-sub, .au-table td:nth-child(4) .au-sub { padding-left: 0; }
.au-last { display: flex; align-items: center; gap: 8px; }
.au-last a { font-size: 12.5px; font-variant-numeric: tabular-nums; }
.au-cta { margin-left: auto; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.au-cta i { font-size: 10px; margin-left: 2px; transition: transform .12s ease; }
.au-cta:hover i { transform: translateX(2px); }
.au-cta.is-bad { color: var(--danger-text); }
.au-table .run-bar.mini { margin-top: 6px; max-width: 180px; }
.au-acts { display: grid; grid-template-columns: 30px 30px auto; gap: 4px; align-items: center; justify-content: end; }
.au-acts form { margin: 0; display: contents; }
.au-acts .split { justify-self: end; }
.au-acts .rb-ico { display: none; }
.au-jobs { container-type: inline-size; }
@container (max-width: 1080px) {
  .au-acts .rb-ico { display: inline; }
  .au-acts .rb-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .au-table .au-sub { white-space: normal; }
  .au-table td { padding-left: 10px; padding-right: 10px; }
  .au-cta { margin-left: 0; }
  .au-last { flex-wrap: wrap; row-gap: 2px; }
}

/* every connector's Jobs table on a phone (3c's Enterprise basics audit, 2026-11-14: Firewall policy's Source column
   squeezed to 40 px behind the pinned Run now): each job a short card, name and buttons on top, the rest in full */
@media (max-width: 640px) {
  .table-wrap:has(> .sx-jobs) { overflow: visible; }
  .sx-jobs, .sx-jobs tbody { display: block; width: 100%; }
  .sx-jobs thead { display: none; }
  .sx-jobs tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 12px; border-bottom: 1px solid var(--border); }
  .sx-jobs tr > td { display: block; padding: 0; border: 0; min-width: 0; }
  .sx-jobs tr > td:first-child { grid-column: 1; grid-row: 1; }
  .sx-jobs.sx-jobs tr > td.sx-act { grid-column: 2; grid-row: 1; position: static; box-shadow: none; background: none; }
  .sx-jobs tr > td:nth-child(n+2):not(.sx-act), .sx-jobs tr > td[colspan] { grid-column: 1 / -1; }
}
/* a phone (3c's 390 sweep, 2026-11-14: the schedule, the key fact, was cut to "Weekd" / "Next M" behind the pinned
   buttons): each job a short card, its name and buttons on the top line, then schedule, level and last run in full */
@media (max-width: 640px) {
  .au-jobs.table-wrap { overflow: visible; }
  .au-table, .au-table tbody { display: block; width: 100%; }
  .au-table colgroup, .au-table thead { display: none; }
  .au-table tr.au-group, .au-table tr.au-group td { display: block; }
  .au-table tr.au-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 12px; border-bottom: 1px solid var(--border); }
  .au-table tr.au-row > td { display: block; padding: 0; border: 0; min-width: 0; }
  .au-table tr.au-row > td:first-child { grid-column: 1; grid-row: 1; align-self: center; }
  .au-table.au-table tr.au-row > td.actions { grid-column: 2; grid-row: 1; position: static; box-shadow: none; background: none; }
  .au-table tr.au-row > td:nth-child(n+2):not(.actions) { grid-column: 1 / -1; }
  .au-table .au-sched, .au-table .au-sub { white-space: normal; }
}
.au-side { display: grid; gap: 14px; position: sticky; top: 72px; }
.au-card-side { padding: 14px 16px; }
.au-side-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; color: var(--title); }
.au-day-h { font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 0 4px; }
.au-day-h:first-of-type { padding-top: 2px; }
.au-up { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 8px; margin: 0 -8px;
  border-radius: var(--radius); color: var(--text); }
.au-up:hover { background: var(--surface-2); text-decoration: none; }
.au-up:hover b { color: var(--accent); }
.au-up-time { font-weight: 700; color: var(--title); font-variant-numeric: tabular-nums; }
.au-up-what { min-width: 0; }
.au-up-what b, .au-up-what small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.au-up-what b { font-weight: 600; color: var(--title); font-size: 13px; }
.au-up-what small { color: var(--muted); font-size: 12px; }
.au-up-what small i { color: var(--faint); font-size: 10.5px; margin-right: 2px; }
.au-up-what small .cs-i { color: var(--faint); width: 11px; height: 11px; margin-right: 2px; vertical-align: -1px; }
.au-empty { padding: 18px 8px; font-size: 13px; }
.au-lvl { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 8px; margin: 0 -8px;
  border-radius: var(--radius); color: var(--text); }
.au-lvl:hover { background: var(--surface-2); text-decoration: none; }
.au-lvl.is-on { background: var(--accent-soft); }
.au-lvl b { display: block; color: var(--title); font-size: 13px; font-weight: 600; }
.au-lvl small { display: block; color: var(--muted); font-size: 12px; line-height: 1.4; margin-top: 1px; }
.au-lvl-n { min-width: 24px; text-align: center; font-size: 12px; font-weight: 650; color: var(--muted); padding: 1px 6px;
  border-radius: var(--pill); background: var(--surface-2); font-variant-numeric: tabular-nums; }
.au-tz-form { display: flex; gap: 6px; }
.au-tz-form select { flex: 1; min-width: 0; }
.au-card-side > p { margin: 8px 0 0; }
.au-tz-note { padding: 2px 8px; }
.au-tz-note i { margin-right: 4px; }
.au-ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .au-ladder { grid-template-columns: 1fr; } }

/* -- phone-width fixes ---------------------------------------------------------------------- */
.cp-flow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, auto) minmax(0, 1fr); gap: 14px; align-items: start; margin-top: 14px; }
.cp-flow .card { min-width: 0; overflow-wrap: anywhere; }
.cp-flow .card:nth-child(2) { text-align: center; }
.cp-flow h3.eyebrow { margin: 0 0 8px; }
.cp-details { padding-top: 10px; padding-bottom: 6px; }
.cp-source { margin: 0 0 12px; }   /* the Firewall tabs' policy-source picker keeps its distance from the period switch or filter below */
@media (max-width: 720px) {
  .cp-flow { grid-template-columns: minmax(0, 1fr); }
  .cp-flow .card:nth-child(2) .fa-arrow-right-long { transform: rotate(90deg); }
  table.changes { display: block; overflow-x: auto; }
}

/* -- job forms -------------------------------------------------------------------------------- */
.job-form { max-width: 780px; }
.rule-form { margin-top: 10px; }                     /* the add-a-rule form sits under the rules table */
.row > label.f1 { flex: 1 1 120px; min-width: 0; } .row > label.f2 { flex: 2 1 200px; min-width: 0; } .row > label.f3 { flex: 3 1 240px; min-width: 0; }   /* shares of a form row, instead of inline flex */
.row > :is(label.f1, label.f2, label.f3) > :is(input, select) { width: 100%; box-sizing: border-box; }
.row > span.f1 { flex: 1 1 120px; }                   /* an empty share: keeps a lone field at half the row */
/* Relay: the enrolment code is a soft tinted block (no edge accent); the two small forms keep a fixed width under their tables */
.rl-code { border-color: color-mix(in srgb, var(--accent) 28%, var(--border)); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.rl-code h3.eyebrow { margin: 0; }
.rl-form { max-width: 640px; margin-top: 10px; } .rl-form.wide { max-width: 720px; }
.danger-zone { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; padding: 12px 16px; border-radius: var(--radius); --c: var(--danger);
  border: 1px solid color-mix(in srgb, var(--c) 24%, var(--border)); background: color-mix(in srgb, var(--c) 5%, var(--surface)); }
.danger-zone > div { flex: 1; min-width: 220px; display: grid; gap: 2px; }
.danger-zone strong { color: var(--title); }
.split { white-space: nowrap; flex-shrink: 0; }
.split > button, td .button, td button { white-space: nowrap; }
/* a lone submit button in a stacked form keeps its own width */
.stack > button, .stack > a.button { justify-self: start; align-self: flex-start; }

/* -- audit log --------------------------------------------------------------------------------- */
.au-filter { margin-bottom: 12px; }
.au-act { display: inline-flex; align-items: center; gap: 10px; }
.au-act > span:last-child { display: grid; line-height: 1.25; }
.au-act strong { color: var(--title); font-weight: 600; font-size: 13px; }
.au-ico.is-warn { --c: var(--warn); }
.nowrap { white-space: nowrap; }

/* -- segmentation site score -------------------------------------------------------------------- */
.sg-score { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; --c: var(--success);
  border: 6px solid color-mix(in srgb, var(--c) 70%, transparent); background: color-mix(in srgb, var(--c) 8%, var(--surface)); }
.sg-score.mid { --c: var(--warn); } .sg-score.bad { --c: var(--danger); } .sg-score.provisional { --c: var(--muted); }
.sg-score b { font-size: 26px; line-height: 1; color: var(--title); font-weight: 700; margin-top: 6px; }
.sg-score span { font-size: 11px; color: var(--muted); margin-top: -10px; }

/* -- sync module main pages ---------------------------------------------------------------------- */
.sx-jobs td { vertical-align: top; }
.sx-jobs td:first-child { min-width: 180px; }
.sx-last { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.sx-act { white-space: nowrap; text-align: right; width: 1%; }
.sx-act > * { vertical-align: middle; }
.sx-act .icon-btn { margin-left: 2px; }
/* compact filter bar (audit log, walk-down review): inputs keep a sensible width, checkbox sits with its label */
form.au-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
form.au-filter > input:not([type=checkbox]), form.au-filter > select { width: auto; flex: 0 1 240px; min-width: 160px; margin: 0; }
form.au-filter > label.check { display: inline-flex; align-items: center; gap: 6px; margin: 0; white-space: nowrap; }
form.au-filter > label.check input { width: auto; min-width: 0; flex: none; margin: 0; }

/* -- advisories -------------------------------------------------------------------------------- */
.big.bad { color: var(--danger-text); }
/* Firmware map: a version is a pill with its count, oldest first; one opens its devices under the row, fetched on
   demand (Jon via c7, 2026-11-14: "what if there is 500 devices") */
.fw-vers { display: flex; flex-wrap: wrap; gap: 6px; }
.fw-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 9px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--text); font-size: 12.5px; line-height: 1.4; text-decoration: none; white-space: nowrap; }
.fw-pill:hover { border-color: var(--accent); text-decoration: none; }
/* status from a full tinted border and the sign, never an edge stripe (3c's review, Jon's standing rule) */
.fw-pill.is-flagged, .fw-chips .oc.is-flagged { border-color: color-mix(in srgb, var(--sign-warn) 45%, var(--border)); background: color-mix(in srgb, var(--sign-warn) 7%, var(--surface)); }
.fw-pill[aria-expanded="true"] { background: var(--accent-soft); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.fw-pill .fw-n { padding: 0 6px; border-left: 1px solid var(--border); color: var(--muted); font-variant-numeric: tabular-nums; }
.fw-pill.is-none .mono { color: var(--muted); font-family: inherit; font-style: italic; }
.fw-panel { margin-top: 8px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2, var(--surface)); }
.fw-panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-bottom: 6px; }
.fw-panel-head .cs-sign { vertical-align: -2px; }
.fw-devlink { white-space: nowrap; }
.fw-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.fw-chips .oc.is-flagged .cs-sign { flex: none; margin-right: 4px; vertical-align: -2px; }
.fw-panel[hidden] { display: none; }
.fw-all { margin-top: 6px; padding: 0; }
.fw-sites { display: grid; gap: 2px; }
.fw-site > summary { cursor: pointer; padding: 3px 0; font-size: 12.5px; }
.fw-site-n { display: inline-block; margin-left: 8px; padding: 0 6px; border: 1px solid var(--border); border-radius: var(--radius); color: var(--muted);
  font-size: 11.5px; font-variant-numeric: tabular-nums; }
.fw-site-flag { margin-left: 8px; color: var(--muted); font-size: 11.5px; }
.fw-site-flag .cs-sign { vertical-align: -2px; }
@media (pointer: coarse) { .fw-pill { min-height: 40px; } .fw-site > summary { min-height: 40px; display: flex; align-items: center; } }
.fw-table th:nth-child(-n+3), .fw-table td:nth-child(-n+3) { width: 1%; white-space: nowrap; }
.fw-flagged-n { display: block; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .fw-flagged-n { display: inline; margin-left: 6px; } }
/* a phone: each model a card, the pills and the open list full width below; no sideways swipe (as .site-table) */
@media (max-width: 600px) {
  .table-wrap > table.fw-table thead { display: none; }
  .table-wrap > table.fw-table, .table-wrap > table.fw-table tbody { display: block; width: 100%; }
  .table-wrap > table.fw-table tbody tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
  .table-wrap > table.fw-table tbody tr:last-child { border-bottom: 0; }
  .table-wrap > table.fw-table tbody td { display: block; width: auto; min-width: 0; max-width: 100%; padding: 0; border: 0; white-space: normal; text-align: left; background: none; }
  .table-wrap > table.fw-table tbody td:first-child { flex: 1 1 100%; }
  .table-wrap > table.fw-table tbody td.fw-cell { flex: 1 1 100%; margin-top: 4px; }
  .table-wrap > table.fw-table tbody td[data-label]::before { content: attr(data-label); margin-right: 6px; color: var(--muted); font-size: 12px; }
}
.fw-site[open] > .fw-chips { padding: 2px 0 8px 14px; }
form.fw-filter { margin-bottom: 14px; } details.fw-none { margin-top: 14px; } .fw-none-list { margin-top: 10px; }
.table-wrap + .table-note { margin-top: 8px; }
.cc-starters { margin-top: 16px; } .cc-fix { margin-top: 8px; }
/* a config check's pattern, behind a disclosure: the rule's words come first (ee's visitor walk, 2026-11-12) */
.cc-pattern { margin-top: 2px; }
.cc-pattern summary { cursor: pointer; color: var(--accent); display: inline-block; list-style: none; }
.cc-pattern summary::-webkit-details-marker { display: none; }
.cc-pattern summary::after { content: " \25BE"; font-size: 10px; }
.cc-pattern[open] summary::after { content: " \25B4"; }
.cc-pattern code { display: block; margin-top: 4px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 2px; background: var(--surface-2);
  white-space: pre-wrap; overflow-wrap: anywhere; }
td.row-act { padding-top: 4px; padding-bottom: 4px; white-space: nowrap; width: 1%; text-align: right; }   /* a row's own button sits level with the row's text */
td.row-act form { display: inline; }
form.dir-test { margin-top: 8px; align-items: flex-end; }
details.nt-channel { margin-bottom: 10px; } .nt-channel-acts { margin-top: 8px; }
/* the channel form is laid out, not flowed (Jon on the lab, 2026-11-24: "things are getting very cluttered"): the events
   in groups under small headings, each group an even grid, so the boxes line up in columns across the groups (one column
   on a phone); a select as wide as its words, not the card's; a label's hint on the label's line */
.nt-group + .nt-group { margin-top: 12px; }
.nt-group-h { margin: 2px 0 6px; color: var(--muted); }
.nt-events { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 8px 24px; }
.nt-form > label.nt-digest > select { width: auto; min-width: 220px; max-width: 100%; align-self: flex-start; }
/* a channel form shows only its own kind's fields (3c's notes via c7, 2026-11-14): both still post, the kind decides */
form:has(select[name="kind"] option[value="email"]:checked) .nt-for-webhook,
form:has(select[name="kind"] option[value="webhook"]:checked) .nt-for-email { display: none; }
/* how often each alert repeats, under its name */
.nt-event { align-items: flex-start; }
/* every box the same 15 px square beside its label's first line, a two-line label too (the lead on 2026-11-24: a box
   beside a wrapped label shrank as a flex item and sat at the block's middle, label.check centring it) */
label.check.nt-event { align-items: flex-start; }
.nt-event > input[type=checkbox] { flex: none; width: 15px; height: 15px; margin: calc((1lh - 15px) / 2) 0 0; }
.nt-event .nt-repeat { display: block; font-size: 11.5px; margin-top: 1px; }
form.bk-now { align-items: flex-end; }
td.md-status { white-space: nowrap; }   /* the status pill stays on one line; the tier mark is one word already */
h3.cd-sub { margin: 18px 0 8px; } details.cd-coverage { margin-top: 14px; }   /* cable discovery's run section */
/* the early-access line wraps with the description; on one line it widened the Module column past the table and cut the
   status pills ("needs Enter", 3c's Halden walk, 2026-11-14) */
.cs-signed.md-early { display: inline; white-space: normal; }
.cs-signed.md-early .cs-sign { vertical-align: -2px; }
td.md-status a.md-buy:hover { text-decoration: none; }
td.md-status a.md-buy:hover .pill { border-color: var(--accent); }

/* -- Config change summary ------------------------------------------------------------------ */
.cs-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-bottom: 14px;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.cs-facts > div { background: var(--surface); padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cs-facts > div > span { font-size: 11.5px; color: var(--muted); }
.cs-facts strong { color: var(--title); font-weight: 600; overflow-wrap: anywhere; }
.cs-facts small { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.cs-blocks { display: flex; flex-direction: column; gap: 10px; }
.cs-block { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.cs-block > header { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.cs-ico { flex: none; width: 30px; height: 30px; border-radius: var(--radius); display: grid; place-items: center; font-size: 13px;
  background: color-mix(in srgb, var(--info) 14%, transparent); color: var(--info-text); }
.cs-ico.added { background: color-mix(in srgb, var(--success) 16%, transparent); color: var(--success-text); }
.cs-ico.removed { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger-text); }
.cs-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cs-title strong { color: var(--title); font-size: 13.5px; }
.cs-peer { color: var(--text-2); display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.cs-peer > i { color: var(--muted); font-size: 11px; }
.cs-risks { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; max-width: 55%; }
.cs-risks .pill i { font-size: 10px; margin-right: 2px; }
.cs-rows { width: 100%; border-collapse: collapse; font-size: 13px; }
.cs-rows th, .cs-rows td { padding: 7px 12px; border-bottom: 0; border-top: 1px solid var(--border); text-align: left; vertical-align: middle; }
.cs-rows tr:first-child th, .cs-rows tr:first-child td { border-top: 0; }
.cs-rows th { width: 34%; font-weight: 500; color: var(--text-2); background: none; font-size: 13px; white-space: normal; }
.cs-rows th code, .cs-rows td code { font-family: var(--font-mono); font-size: 12.5px; color: var(--title); word-break: break-word; background: none; padding: 0; }
.cs-ba { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.cs-ba .cs-v { margin: 0; }
.cs-arrow { color: var(--faint); font-size: 11px; }
.cs-unset { color: var(--faint); font-size: 12px; font-style: italic; }
.cs-v { display: inline-block; font-family: var(--font-mono); font-size: 12.5px; padding: 2px 8px; margin: 2px 4px 2px 0; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface-2); color: var(--title); word-break: break-word; }
.cs-v.new { border-color: color-mix(in srgb, var(--info) 30%, var(--border)); background: var(--info-soft); color: var(--info-text); }
.cs-v.add { border-color: color-mix(in srgb, var(--success) 30%, var(--border)); background: var(--success-soft); color: var(--success-text); }
.cs-v.del { border-color: color-mix(in srgb, var(--danger) 28%, var(--border)); background: var(--danger-soft); color: var(--danger-text); }
.cs-now { margin-top: 2px; font-family: var(--font-mono); }
.cs-kind { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 1px 7px; border-radius: var(--pill); }
.cs-line.added .cs-kind { background: var(--success-soft); color: var(--success-text); }
.cs-line.removed .cs-kind { background: var(--danger-soft); color: var(--danger-text); }
.cs-line.removed code { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--danger) 55%, transparent); }
.cs-impact { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cs-impact li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--radius); border: 1px solid var(--border); }
.cs-impact li > div { flex: 1; min-width: 0; }
.cs-impact li.bad { border-color: color-mix(in srgb, var(--danger) 26%, var(--border)); background: color-mix(in srgb, var(--danger) 5%, var(--surface)); }
.cs-impact li.good { border-color: color-mix(in srgb, var(--success) 26%, var(--border)); background: color-mix(in srgb, var(--success) 5%, var(--surface)); }
.cs-raw { margin-top: 14px; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.cs-raw > summary { cursor: pointer; list-style: none; padding: 10px 12px; display: flex; align-items: center; gap: 0 8px; color: var(--title); font-weight: 600; }
.cs-raw > summary::-webkit-details-marker { display: none; }
.cs-raw .code-wrap { margin: 0 12px 12px; }
.cg-headline { display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: 3px; font-size: 12.5px; color: var(--text-2); }   /* body font: mono is for real config text only (the diff, addresses, raw config) */
.cg-headline span { overflow-wrap: anywhere; max-width: 100%; }
.cs-count { font-weight: 400; margin-left: 6px; }
@media (max-width: 520px) { .cs-facts { grid-template-columns: minmax(0, 1fr); } }

/* -- Whole-row and whole-card click targets ------------------------------------------------ */
/* Table rows: the row's a.row-link is followed from anywhere in the row (shell.js). */
tr:has(a.row-link) { cursor: pointer; }
tbody tr:has(a.row-link):hover td { background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
tr:has(a.row-link):hover a.row-link, tr:has(a.row-link):hover a.row-link strong { color: var(--accent); }
a.row-link:hover { text-decoration: none; }
tbody tr:has(a.row-link:focus-visible) td { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
/* a cell that leads somewhere (td[data-href], the jobs lists' Last run): the same hover and focus as a row (Jon, 2026-11-11) */
td.cell-link { cursor: pointer; }
td.cell-link:hover, td.cell-link:focus-visible { background: color-mix(in srgb, var(--accent) 6%, var(--surface)); outline: none; }
td.cell-link:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
/* Home site cards: same as the Sites page (the name's link stretches over the card). */
.site-grid .site-card a.site-name { color: var(--title); font-weight: 600; }
/* Connection rows: the far-end device's link covers the row; the port and cable links sit above it. */
.dp-links > li { position: relative; transition: border-color .12s ease, box-shadow .12s ease, transform .12s ease; }
.dp-links li a.dp-peer::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.dp-links li .dp-port a, .dp-links li .dp-cable a, .dp-links li .dp-port, .dp-links li .dp-cable { position: relative; z-index: 1; }
.dp-links li:has(a.dp-peer):hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); box-shadow: var(--shadow-sm, 0 1px 3px rgba(16, 24, 40, .08)); transform: translateY(-1px); }
.dp-links li:has(a.dp-peer):hover a.dp-peer strong { color: var(--accent); }
.dp-links li a.dp-peer:hover { text-decoration: none; }
.dp-links li:has(a.dp-peer:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.dp-links li a.dp-peer:focus-visible { outline: none; }
/* Config change summary: a changed port's header opens the device cabled to it. */
.cs-block > header { position: relative; }
.cs-block > header:has(a.cs-peer-link) { cursor: pointer; transition: background .12s ease; }
.cs-block > header a.cs-peer-link::after { content: ""; position: absolute; inset: 0; }
.cs-block > header:has(a.cs-peer-link):hover { background: color-mix(in srgb, var(--accent) 7%, var(--surface-2)); }
.cs-block > header:has(a.cs-peer-link):hover a.cs-peer-link { color: var(--accent); }
.cs-block > header a.cs-peer-link:hover { text-decoration: none; }
.cs-block > header:has(a.cs-peer-link:focus-visible) { outline: 2px solid var(--accent); outline-offset: -2px; }
.cs-block > header a.cs-peer-link:focus-visible { outline: none; }
.cs-block:has(> header a.cs-peer-link):hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
@media (prefers-reduced-motion: reduce) { .dp-links li { transition: none; } .dp-links li:hover { transform: none !important; } }

/* -- Changes list: device config and VM changes together -------------------------------------- */
.cg-type { flex: none; width: 22px; height: 22px; border-radius: var(--radius); display: inline-grid; place-items: center; font-size: 10.5px;
  background: color-mix(in srgb, var(--info) 14%, transparent); color: var(--info-text); }
.cg-type.vm { background: color-mix(in srgb, #8b5cf6 16%, transparent); color: #7c3aed; }
:root[data-theme="dark"] .cg-type.vm { color: #c4b5fd; }
.cg-lines { margin-left: 4px; }
/* the Changes list: fixed columns, so "What changed" (the device and its headline) keeps the room it needs instead of a
   quarter of the row; the hidden Risk and Site columns of the drawer-open workspace scale the rest */
.cg-table { table-layout: fixed; width: 100%; }
.cg-table th:nth-child(1) { width: 46%; } .cg-table th:nth-child(2) { width: 26%; } .cg-table th:nth-child(3) { width: 14%; } .cg-table th:nth-child(4) { width: 14%; }
.cg-table td { overflow-wrap: anywhere; } .cg-table .cg-note { white-space: normal; }
.cg-risks { white-space: normal; }
.cg-risks .pill { height: auto; min-height: 22px; white-space: normal; text-align: left; max-width: 100%; padding-top: 2px; padding-bottom: 2px; line-height: 1.25; margin: 0 4px 4px 0; }   /* a long flag wraps inside its column, never over Site (fc's walk, 2026-11-15: 1440 and 1280) */
td.cg-risks .pill.sm { margin: 0 4px 4px 0; text-align: left; white-space: normal; max-width: 100%; }   /* a risk that still does not fit wraps in its cell */
td.cg-risks .pill.sm > i, td.cg-risks .pill.sm::before { flex: none; }   /* when the text wraps, the icon keeps its size */
.cg-note { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-ico { width: 14px; text-align: center; color: var(--muted); font-size: 11px; }
.cs-i.rail-ico { height: 13px; }
.rail-item.is-on .cs-i.rail-ico { color: var(--accent); }
.vm-facts { margin-top: 0; }
.vm-nics { margin-top: 10px; }
/* Virtual's NetBox VM list: the search and its button on one row, as the other lists' toolbars (3c-3) */
.nb-vms-find { flex-wrap: nowrap; max-width: 640px; }
/* a monitoring scope's place in the checking order: a small badge, not a list number glued to the name (ee-17) */
.scope-order { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; margin-right: 8px;
  border: 1px solid var(--border); border-radius: 2px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); vertical-align: 1px; }
.cg-site { max-width: 190px; white-space: normal; overflow-wrap: anywhere; line-height: 1.3; }   /* ee-6 */
.cg-table .pill.sm { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* -- Topology thumbnails: a small sketch of a site's Purdue diagram on site cards and the Overview ----------- */
.topo-thumb { display: block; min-height: 44px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; padding: 4px; }
.topo-thumb.is-drawn { background: var(--surface); }
.topo-thumb.is-empty { display: none; }
.topo-thumb-svg { display: block; width: 100%; height: auto; max-height: 96px; }
.topo-thumb .tt-band { fill: var(--lcx, var(--surface-3)); fill-opacity: .55; }
.topo-thumb .tt-band.lv5 { fill: var(--lc5); } .topo-thumb .tt-band.lv4 { fill: var(--lc4); } .topo-thumb .tt-band.lv35 { fill: var(--lc35); }
.topo-thumb .tt-band.lv3 { fill: var(--lc3); } .topo-thumb .tt-band.lv2 { fill: var(--lc2); } .topo-thumb .tt-band.lv1 { fill: var(--lc1); } .topo-thumb .tt-band.lv0 { fill: var(--lc0); }
.topo-thumb .tt-band.lvx { fill: var(--surface-3); }
.topo-thumb .tt-link { stroke: var(--faint); stroke-width: 1; stroke-opacity: .7; }
.topo-thumb .tt-link.firewall { stroke: #ea580c; }
.topo-thumb .tt-link.conduit { stroke: #7c3aed; stroke-dasharray: 3 2; }
.topo-thumb .tt-link.crossing { stroke: var(--danger); stroke-width: 1.6; stroke-opacity: 1; }
.topo-thumb .tt-node { fill: var(--surface); stroke: var(--border-strong); stroke-width: .8; }
.topo-thumb .tt-node.fw { stroke: #ea580c; stroke-width: 1.2; }
:root[data-theme="dark"] .topo-thumb .tt-node { fill: rgba(255, 255, 255, .14); stroke: rgba(255, 255, 255, .28); }
.site-card .topo-thumb { margin: -2px 0 0; }

/* -- Approved app-wide (Jon, 2026-11-09, from the Devices trial): FortiManager's "soft glow" hover on buttons. A slightly darker border,
   a soft raised shadow with a hint of the accent, 150 ms; pressed sits down 1 px with the shadow off; the focus ring stays. */
button:not(:disabled), .button:not(.is-disabled), .sp-btn, .icon-btn {
  transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
button:not(:disabled):hover, .button:not(.is-disabled):hover, .sp-btn:hover, .icon-btn:hover { border-color: var(--accent-hover); box-shadow: var(--glow); }
button:not(:disabled):active, .button:not(.is-disabled):active, .sp-btn:active, .icon-btn:active { box-shadow: none; transform: translateY(1px); }
button:focus-visible, .button:focus-visible, .sp-btn:focus-visible, .icon-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
:root { --glow: 0 1px 2px rgba(16, 24, 40, .08), 0 2px 8px rgba(21, 101, 224, .18); }
:root[data-theme="dark"] { --glow: 0 1px 2px rgba(0, 0, 0, .35), 0 2px 10px rgba(61, 160, 255, .28); }

/* -- Approved app-wide (Jon, 2026-11-09, from the Devices trial): a staged first paint, FortiManager-like. The shell is there
   at once; then left to right, top to bottom: the filter rail (0-150 ms, an 8 px slide), the header and toolbar (+60),
   the table head (+120), the rows in a 12 ms stagger (the first 20; the rest with the last batch), all under half a second.
   Only opacity and transform move, so nothing shifts. On a return to a page (a filter, a refresh) only the rows cross-fade.
   Reduced motion shows everything at once. The class comes from an inline script in base.html before paint, per page.
   The fill is backwards, never both or forwards: a finished animation that kept holding its last frame left every row
   (and rail and head) a stacking context of its own for good, and a menu opened in one row was drawn under the next
   row (Jon, 2026-11-24, Automation's Run now menu: "the option comes up behind the button"). The look is the same.
   The Overview keeps its own widget intro (.ov-page) and the canvases keep their diagram arrival: only chrome stages. */
@media (prefers-reduced-motion: no-preference) {
  .ld-first .ws-rail, .ld-first .rail { animation: ld-in .15s ease-out backwards; }
  .ld-first .ws-head, .ld-first .ws-main > .page-head, .ld-first .page > .page-head, .ld-first .vt-head, .ld-first .phys-bar, .ld-first .ws-main > form, .ld-first .ws-main > .row { animation: ld-in .15s ease-out .06s backwards; }
  .ld-first thead th { animation: ld-fade .15s ease-out .12s backwards; }
  .ld-first tbody tr { --ld-i: 20; animation: ld-fade .16s ease-out backwards; animation-delay: calc(110ms + var(--ld-i) * 12ms); }
  .ld-first tbody tr:nth-child(1) { --ld-i: 0; }
  .ld-first tbody tr:nth-child(2) { --ld-i: 1; }
  .ld-first tbody tr:nth-child(3) { --ld-i: 2; }
  .ld-first tbody tr:nth-child(4) { --ld-i: 3; }
  .ld-first tbody tr:nth-child(5) { --ld-i: 4; }
  .ld-first tbody tr:nth-child(6) { --ld-i: 5; }
  .ld-first tbody tr:nth-child(7) { --ld-i: 6; }
  .ld-first tbody tr:nth-child(8) { --ld-i: 7; }
  .ld-first tbody tr:nth-child(9) { --ld-i: 8; }
  .ld-first tbody tr:nth-child(10) { --ld-i: 9; }
  .ld-first tbody tr:nth-child(11) { --ld-i: 10; }
  .ld-first tbody tr:nth-child(12) { --ld-i: 11; }
  .ld-first tbody tr:nth-child(13) { --ld-i: 12; }
  .ld-first tbody tr:nth-child(14) { --ld-i: 13; }
  .ld-first tbody tr:nth-child(15) { --ld-i: 14; }
  .ld-first tbody tr:nth-child(16) { --ld-i: 15; }
  .ld-first tbody tr:nth-child(17) { --ld-i: 16; }
  .ld-first tbody tr:nth-child(18) { --ld-i: 17; }
  .ld-first tbody tr:nth-child(19) { --ld-i: 18; }
  .ld-first tbody tr:nth-child(20) { --ld-i: 19; }
  .ld-first .pager, .ld-first .ws-main > .table-wrap ~ * { animation: ld-fade .15s ease-out .4s backwards; }
  .ld-return tbody tr { animation: ld-fade .12s ease-out backwards; }
  .ov-page tbody tr, .ov-page thead th { animation: none; }
}
@keyframes ld-in { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@keyframes ld-fade { from { opacity: 0; } to { opacity: 1; } }

/* -- signage (web/templates/_signs.html, csPanel.sign): ISO 7010-style marks, so a colour is never the only signal -- */
:root { --sign-warn: #F2B300; --sign-ink: #1D2230; --sign-paper: #fff; }
:root[data-theme="dark"] { --sign-warn: #F5C342; --sign-ink: #0B1020; --sign-paper: #0D1422; }
.cs-sign { display: inline-block; vertical-align: -2px; flex: none; shape-rendering: geometricPrecision; }
.cs-sign-info { color: var(--muted); }
.pill .cs-sign { margin-left: -2px; }
.pill.has-sign::before, .pill.has-icon::before { display: none; }
.pill.has-icon .cs-i { width: 12px; height: 12px; margin-left: -1px; color: var(--t); }
.pill .cs-sign { width: 12px; height: 12px; }
/* -- tier marks (csPanel.tier): the logo's stacked chevron layers, 1 / 2 / 3 for Community / Pro / Enterprise -- */
.tier { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); white-space: nowrap; }
.tier-pro { color: var(--edition-pro); } .tier-enterprise { color: var(--edition-enterprise); }
.tier-mark { display: inline-block; flex: none; }
.tier-name { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }
.ed-badge { --c: var(--muted); display: inline-flex; align-items: center; gap: 6px; height: 20px; padding: 0 7px 0 5px; border-radius: var(--radius); text-decoration: none; white-space: nowrap;
  color: var(--title); border: 1px solid color-mix(in srgb, var(--c) 38%, var(--border)); background: color-mix(in srgb, var(--c) 4%, var(--surface)); }
.ed-badge .tier { color: var(--c); } .ed-badge .tier-name { color: var(--title); }
a.ed-badge:hover { text-decoration: none; color: var(--title); border-color: color-mix(in srgb, var(--c) 75%, var(--border)); background: color-mix(in srgb, var(--c) 10%, var(--surface)); }
:root[data-theme="dark"] .ed-badge { border-color: color-mix(in srgb, var(--c) 48%, var(--border)); background: color-mix(in srgb, var(--c) 9%, var(--surface)); }
.demo-enter .demo-companies .tier { height: 18px; padding: 0 6px 0 4px; border-radius: var(--radius); color: var(--title); border: 1px solid color-mix(in srgb, currentColor 38%, var(--border)); background: color-mix(in srgb, currentColor 6%, var(--surface)); }
.demo-enter .demo-companies .tier .tier-mark { color: var(--edition-pro); } .demo-enter .demo-companies .tier-enterprise .tier-mark { color: var(--edition-enterprise); }
.ed-badge.ed-pro { --c: var(--edition-pro); } .ed-badge.ed-enterprise { --c: var(--edition-enterprise); }
.nav a .nav-lock { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; width: auto; font-size: 10px; color: var(--side-faint); opacity: .85; }
.nav a .nav-lock .tier { color: inherit; }
.shell.collapsed .nav a .nav-lock { display: none; }
.licence-tier { display: inline-flex; align-items: center; gap: 8px; }

/* -- segmented groups: every member one height (34 px, 30 in a .small group), icon-only members square, one border -- */
.split .split-caret { width: 32px; min-width: 32px; padding: 0; justify-content: center; }
/* a sign and its label are one unit: never split across lines */
.cs-signed { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
/* -- The severity glyph (Jon's direction c): the mark's layers in the severity colour. The glyph says how bad a
   thing is; the ISO signs above say what state a thing is in. -- */
.sev-glyph { display: inline-block; vertical-align: -1px; flex: none; shape-rendering: geometricPrecision; }
.sev-glyph.high { color: var(--danger-text); } .sev-glyph.medium { color: var(--warn-text); }
.sev-glyph.low, .sev-glyph.info { color: var(--info-text); } .sev-glyph.ok { color: var(--success-text); }
:root[data-theme="dark"] .sev-glyph.high { color: var(--danger); } :root[data-theme="dark"] .sev-glyph.medium { color: var(--warn); }
:root[data-theme="dark"] .sev-glyph.low, :root[data-theme="dark"] .sev-glyph.info { color: var(--info); } :root[data-theme="dark"] .sev-glyph.ok { color: var(--success); }
/* a severity count on a card or in a strip: glyph, number, word; narrow cards keep the glyph and number only */
.sev-count { display: inline-flex; align-items: center; gap: 5px; margin-right: 8px; font-size: 12.5px; font-weight: 600; color: var(--text-2); white-space: nowrap; text-decoration: none; }
.sev-count b { font-weight: 650; color: var(--title); font-variant-numeric: tabular-nums; }
.sev-count.sev-high { color: var(--danger-text); } .sev-count.sev-medium { color: var(--warn-text); } .sev-count.sev-low { color: var(--info-text); }
.sev-count .word { font-weight: 500; }
a.sev-count:hover { text-decoration: underline; }
.site-card { container-type: inline-size; }
@container (max-width: 340px) { .site-foot .sev-count .word { display: none; } }   /* three cards across a 1440 window are 372 px: the words still fit there */
/* every severity-toned pill draws the glyph in its own colour (a mask on currentColor, so both themes follow);
   state pills (fail, warn, ok, …) keep their ISO sign */
:root .pill.high::before, :root .pill.medium::before, :root .pill.low::before { width: 12px; height: 12px; opacity: 1; background: var(--t) !important;
  -webkit-mask: var(--sev-glyph) center / contain no-repeat; mask: var(--sev-glyph) center / contain no-repeat; }
:root .pill.high::before { --sev-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 .8 11.2 3.4 6 6 .8 3.4Z'/%3E%3Cpath d='M.8 6.2 6 8.8 11.2 6.2v2L6 10.8.8 8.2Z'/%3E%3C/svg%3E"); }
:root .pill.medium::before { --sev-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 .8 11.2 3.4 6 6 .8 3.4Z'/%3E%3Cpath d='M1.3 6.4 6 8.6 10.7 6.4v1.6L6 10.3 1.3 8Z' fill='none' stroke='%23000' stroke-width='1.1' stroke-linejoin='round'/%3E%3C/svg%3E"); }
:root .pill.low::before { --sev-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 1.3 10.4 3.4 6 5.5 1.6 3.4Z' fill='none' stroke='%23000' stroke-width='1.1' stroke-linejoin='round'/%3E%3Cpath d='M1.3 6.4 6 8.6 10.7 6.4v1.6L6 10.3 1.3 8Z' fill='none' stroke='%23000' stroke-width='1.1' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* -- Status signs on every status pill and Needs-you row (Jon approved the sample sheet, 2026-11-09): the pill's square
   becomes the ISO-style sign of its state (the same drawings as _signs.html sign()), light and dark. Category pills
   (na, queued, running, relay, hypervisor, levels) keep their square; an explicit sign (.has-sign) replaces this one. -- */
.pill:not(.na):not(.not_measured)::before { width: 12px; height: 12px; opacity: 1; }   /* sized for a sign; the tone rules paint it */
.wg-dot.tone-bad, .wg-dot.poor, .wg-dot.tone-warn, .wg-dot.fair, .wg-dot.tone-good, .wg-dot.good { width: 12px; height: 12px; margin-top: 5px; background-color: transparent !important; }
:root .pill.fail::before, :root .pill.failed::before, :root .pill.apply_failed::before, :root .pill.error::before, :root .pill.invalid::before, :root .pill.expired::before, :root .pill.incompatible::before, :root .pill.unmatched::before, :root .wg-dot.tone-bad, :root .wg-dot.poor { background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 16 16%22%3E%3Ccircle cx=%228%22 cy=%228%22 r=%226.4%22 fill=%22%23fff%22 stroke=%22%23dc2626%22 stroke-width=%222%22/%3E%3Cpath d=%22M3.9 3.9 L12.1 12.1%22 stroke=%22%23dc2626%22 stroke-width=%222%22/%3E%3C/svg%3E") center / contain no-repeat; -webkit-mask: none; mask: none; }
:root .pill.warn::before, :root .pill.interrupted::before, :root .pill.changes::before, :root .pill.partial::before, :root .pill.missing::before, :root .pill.grace::before, :root .pill.skipped::before, :root .pill.new::before, :root .wg-dot.tone-warn, :root .wg-dot.fair { background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 16 16%22%3E%3Cpath d=%22M8 1.6 L15.1 14.4 H.9 Z%22 fill=%22%23F2B300%22 stroke=%22%231D2230%22 stroke-width=%221%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M8 5.6v4.3%22 stroke=%22%231D2230%22 stroke-width=%221.6%22 stroke-linecap=%22square%22/%3E%3Cpath d=%22M8 11.6v1.3%22 stroke=%22%231D2230%22 stroke-width=%221.6%22 stroke-linecap=%22square%22/%3E%3C/svg%3E") center / contain no-repeat; -webkit-mask: none; mask: none; }
:root .pill.ok::before, :root .pill.applied::before, :root .pill.acknowledged::before, :root .pill.completed::before, :root .pill.accepted::before, :root .pill.pass::before, :root .pill.ready::before, :root .pill.valid::before, :root .pill.mapped::before, :root .pill.present::before, :root .pill.analysed::before, :root .wg-dot.tone-good, :root .wg-dot.good { background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 16 16%22%3E%3Crect x=%221%22 y=%221%22 width=%2214%22 height=%2214%22 fill=%22%2316a34a%22/%3E%3Cpath d=%22M4 8.3 L6.9 11.1 L12.2 5.3%22 fill=%22none%22 stroke=%22%23fff%22 stroke-width=%221.8%22 stroke-linecap=%22square%22/%3E%3C/svg%3E") center / contain no-repeat; -webkit-mask: none; mask: none; }
:root .pill.info::before { background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 16 16%22%3E%3Ccircle cx=%228%22 cy=%228%22 r=%226.4%22 fill=%22none%22 stroke=%22%236b7b8c%22 stroke-width=%221.3%22/%3E%3Cpath d=%22M8 7v4.3%22 stroke=%22%236b7b8c%22 stroke-width=%221.6%22 stroke-linecap=%22square%22/%3E%3Cpath d=%22M8 4.3v1.3%22 stroke=%22%236b7b8c%22 stroke-width=%221.6%22 stroke-linecap=%22square%22/%3E%3C/svg%3E") center / contain no-repeat; -webkit-mask: none; mask: none; }
:root[data-theme="dark"] .pill.fail::before, :root[data-theme="dark"] .pill.failed::before, :root[data-theme="dark"] .pill.apply_failed::before, :root[data-theme="dark"] .pill.error::before, :root[data-theme="dark"] .pill.invalid::before, :root[data-theme="dark"] .pill.expired::before, :root[data-theme="dark"] .pill.incompatible::before, :root[data-theme="dark"] .pill.unmatched::before, :root[data-theme="dark"] .wg-dot.tone-bad, :root[data-theme="dark"] .wg-dot.poor { background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 16 16%22%3E%3Ccircle cx=%228%22 cy=%228%22 r=%226.4%22 fill=%22%230D1422%22 stroke=%22%23dc2626%22 stroke-width=%222%22/%3E%3Cpath d=%22M3.9 3.9 L12.1 12.1%22 stroke=%22%23dc2626%22 stroke-width=%222%22/%3E%3C/svg%3E") center / contain no-repeat; -webkit-mask: none; mask: none; }
:root[data-theme="dark"] .pill.warn::before, :root[data-theme="dark"] .pill.interrupted::before, :root[data-theme="dark"] .pill.changes::before, :root[data-theme="dark"] .pill.partial::before, :root[data-theme="dark"] .pill.missing::before, :root[data-theme="dark"] .pill.grace::before, :root[data-theme="dark"] .pill.skipped::before, :root[data-theme="dark"] .pill.new::before, :root[data-theme="dark"] .wg-dot.tone-warn, :root[data-theme="dark"] .wg-dot.fair { background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 16 16%22%3E%3Cpath d=%22M8 1.6 L15.1 14.4 H.9 Z%22 fill=%22%23F5C342%22 stroke=%22%230B1020%22 stroke-width=%221%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M8 5.6v4.3%22 stroke=%22%230B1020%22 stroke-width=%221.6%22 stroke-linecap=%22square%22/%3E%3Cpath d=%22M8 11.6v1.3%22 stroke=%22%230B1020%22 stroke-width=%221.6%22 stroke-linecap=%22square%22/%3E%3C/svg%3E") center / contain no-repeat; -webkit-mask: none; mask: none; }
:root[data-theme="dark"] .pill.ok::before, :root[data-theme="dark"] .pill.applied::before, :root[data-theme="dark"] .pill.acknowledged::before, :root[data-theme="dark"] .pill.completed::before, :root[data-theme="dark"] .pill.accepted::before, :root[data-theme="dark"] .pill.pass::before, :root[data-theme="dark"] .pill.ready::before, :root[data-theme="dark"] .pill.valid::before, :root[data-theme="dark"] .pill.mapped::before, :root[data-theme="dark"] .pill.present::before, :root[data-theme="dark"] .pill.analysed::before, :root[data-theme="dark"] .wg-dot.tone-good, :root[data-theme="dark"] .wg-dot.good { background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 16 16%22%3E%3Crect x=%221%22 y=%221%22 width=%2214%22 height=%2214%22 fill=%22%2316a34a%22/%3E%3Cpath d=%22M4 8.3 L6.9 11.1 L12.2 5.3%22 fill=%22none%22 stroke=%22%23fff%22 stroke-width=%221.8%22 stroke-linecap=%22square%22/%3E%3C/svg%3E") center / contain no-repeat; -webkit-mask: none; mask: none; }
:root[data-theme="dark"] .pill.info::before { background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 16 16%22%3E%3Ccircle cx=%228%22 cy=%228%22 r=%226.4%22 fill=%22none%22 stroke=%22%238a94a3%22 stroke-width=%221.3%22/%3E%3Cpath d=%22M8 7v4.3%22 stroke=%22%238a94a3%22 stroke-width=%221.6%22 stroke-linecap=%22square%22/%3E%3Cpath d=%22M8 4.3v1.3%22 stroke=%22%238a94a3%22 stroke-width=%221.6%22 stroke-linecap=%22square%22/%3E%3C/svg%3E") center / contain no-repeat; -webkit-mask: none; mask: none; }

/* -- The site signature (Jon's thumbnail direction, 2026-11-10): one full-width band per Purdue level in the level colours,
   the devices as small squares, cables between levels as thin lines, red marks where findings sit, L0-L5 labels, the
   score as a slim bar along the bottom edge. On the Sites cards and the Overview Sites widget; drawn by js/signature.js. -- */
.sig { display: block; position: relative; border-radius: 2px; overflow: hidden; background: var(--surface-2); min-height: 72px; transition: filter .15s ease; }
.sig.is-pending::after { content: "Preparing the sketch\2026"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--muted); }
.wg-sig.is-empty { min-height: 0; background: none; }   /* no levels to draw: one muted line, not an empty grey box (fc's walk, 2026-11-15) */
.wg-sig.is-empty::after { content: "No Purdue levels recorded"; font-size: 12px; color: var(--muted); }
.sig-card:hover .sig, .sig-card:focus-visible .sig, .site-card:hover .sig, a.wg-row:hover .sig, a.sig-link:hover .sig, a.sig-link:focus-visible .sig { filter: brightness(1.06) saturate(1.08); }
.sig svg { display: block; width: 100%; height: auto; shape-rendering: crispEdges; }
.sig .sg-band { fill: var(--band, var(--surface-3)); }
.sig .sg-band.l5 { --band: color-mix(in srgb, var(--l5) 22%, var(--surface)); } .sig .sg-band.l4 { --band: color-mix(in srgb, var(--l4) 20%, var(--surface)); }
.sig .sg-band.l35 { --band: color-mix(in srgb, var(--l35) 24%, var(--surface)); } .sig .sg-band.l3 { --band: color-mix(in srgb, var(--l3) 20%, var(--surface)); }
.sig .sg-band.l2 { --band: color-mix(in srgb, var(--l2) 20%, var(--surface)); } .sig .sg-band.l1 { --band: color-mix(in srgb, var(--l1) 20%, var(--surface)); }
.sig .sg-band.l0 { --band: color-mix(in srgb, var(--l0) 20%, var(--surface)); } .sig .sg-band.lx { --band: var(--surface-3); }
:root[data-theme="dark"] .sig .sg-band.l5 { --band: color-mix(in srgb, var(--l5) 34%, #0D1422); } :root[data-theme="dark"] .sig .sg-band.l4 { --band: color-mix(in srgb, var(--l4) 36%, #0D1422); }
:root[data-theme="dark"] .sig .sg-band.l35 { --band: color-mix(in srgb, var(--l35) 36%, #0D1422); } :root[data-theme="dark"] .sig .sg-band.l3 { --band: color-mix(in srgb, var(--l3) 34%, #0D1422); }
:root[data-theme="dark"] .sig .sg-band.l2 { --band: color-mix(in srgb, var(--l2) 36%, #0D1422); } :root[data-theme="dark"] .sig .sg-band.l1 { --band: color-mix(in srgb, var(--l1) 36%, #0D1422); }
:root[data-theme="dark"] .sig .sg-band.l0 { --band: color-mix(in srgb, var(--l0) 34%, #0D1422); }
.sig .sg-label { font-family: var(--font-mono); font-size: 7px; font-weight: 600; letter-spacing: .04em; fill: var(--lbl, var(--muted)); }
.sig .sg-label.l5 { --lbl: var(--lt5); } .sig .sg-label.l4 { --lbl: var(--lt4); } .sig .sg-label.l35 { --lbl: var(--lt35); } .sig .sg-label.l3 { --lbl: var(--lt3); }
.sig .sg-label.l2 { --lbl: var(--lt2); } .sig .sg-label.l1 { --lbl: var(--lt1); } .sig .sg-label.l0 { --lbl: var(--lt0); }
.sig .sg-mark { fill: color-mix(in srgb, var(--title) 55%, transparent); }
:root[data-theme="dark"] .sig .sg-mark { fill: rgba(255, 255, 255, .72); }
.sig .sg-mark.fw { fill: #ea580c; }
.sig .sg-mark.high { fill: var(--danger); stroke: var(--surface); stroke-width: .9; } .sig .sg-mark.medium { fill: var(--warn); stroke: var(--surface); stroke-width: .9; }   /* ringed, so a red mark still reads on the red L1 band */
:root[data-theme="dark"] .sig .sg-mark.high { fill: var(--danger); stroke: #0D1422; stroke-width: .7; }   /* the dark theme's light mark rule must not win: a dark ring, the mark stays red */
:root[data-theme="dark"] .sig .sg-mark.medium { fill: var(--warn); stroke: #0D1422; stroke-width: .7; }
.sig .sg-cable { stroke: color-mix(in srgb, var(--title) 28%, transparent); stroke-width: .6; fill: none; }
:root[data-theme="dark"] .sig .sg-cable { stroke: rgba(255, 255, 255, .32); }
.sig .sg-cable.crossing { stroke: var(--danger); stroke-width: .9; }
.sig .sg-sep { stroke: var(--surface); stroke-width: .5; }
.sig .sig-strip { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; height: 14px; padding: 0 6px 0 0; background: var(--surface-2); }
.sig .sig-bar { position: relative; height: 3px; background: color-mix(in srgb, var(--title) 12%, transparent); }
.sig .sig-bar > span { position: absolute; left: 0; top: 0; bottom: 0; background: var(--bar, var(--border-strong)); }
.sig .sig-bar.good { --bar: var(--success); } .sig .sig-bar.fair { --bar: var(--warn); } .sig .sig-bar.poor { --bar: var(--danger); }
.sig .sig-score { font-family: var(--font-mono); font-size: 10px; font-weight: 600; line-height: 1; color: var(--title); }
.sig .sig-score.provisional { color: var(--muted); } .sig .sig-score.good { color: var(--success-text, var(--success)); } .sig .sig-score.fair { color: var(--warn-text, var(--warn)); } .sig .sig-score.poor { color: var(--danger-text, var(--danger)); }
@media (prefers-reduced-motion: reduce) { .sig { transition: none; } }
.site-card .sig { margin: -2px 0 0; }
a.sig-link { display: block; }
.wg-row:has(.wg-sig) { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main c" "sig sig"; column-gap: 10px; row-gap: 6px; align-items: start; }
.wg-row:has(.wg-sig) .wg-sig { grid-area: sig; width: 100%; }
.wg-row:has(.wg-sig) .wg-row-main { grid-area: main; }
.wg-row:has(.wg-sig) .wg-row-c { grid-area: c; padding-top: 0; }
.wg-row:has(.wg-sig) .wg-row-a { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.25; }
.wg-sig .sg-label { font-size: 8px; }
.wg-row:has(.wg-sig):has(.wg-row-s) { grid-template-areas: "main c" "sig sig" "s s"; }
.wg-row .wg-row-s { grid-area: s; color: var(--muted); line-height: 1.2; }
.wg-row .wg-row-s .score-num { margin-left: 2px; }

/* -- a plan section with nothing to do (Jon, 2026-11-11): one quiet line that opens to the table ------------------ */
.rp-quiet { margin: 18px 0 8px; }
.rp-quiet > summary { list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 8px 0; }
.rp-quiet > summary::-webkit-details-marker { display: none; }
.rp-quiet > summary::before { content: none; }
.rp-quiet > summary .okq { font-size: 14px; font-weight: 600; color: var(--title); }
.rp-quiet > summary .muted { font-size: 12px; }
.rp-quiet:not([open]) > summary .muted::after { content: " ›"; }
.rp-quiet[open] > summary { margin-bottom: 6px; }
.okq { white-space: nowrap; }
.plan-table td { vertical-align: top; }

/* -- severity speaks the findings glyph everywhere (Jon, 2026-11-11): the pills carry it as the --sev-glyph mask above;
   the Overview widgets' dot and the Findings rail draw the inline glyph (_signs.html sev_glyph); never the prohibition
   circle, which is the health "critical" sign. -- */
.wg-dot.sev-glyph, .rail-item .sev-glyph { flex: none; }
.rail-item .sev-glyph { width: 11px; height: 11px; }

/* -- a run's progress in place on the page that started it (Jon, 2026-11-11: Score now): the popover's mark, bar and step;
   the button works with motion; scores that changed since the previous run light up with their delta -- */
.run-inline { position: relative; display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 10px 14px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); font-size: 13px; }
.run-inline .rn-mark { --s: 14px; }
.run-inline .run-inline-text { color: var(--text); } .run-inline .run-inline-text strong { color: var(--title); }
.run-inline .rn-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; }
button.is-busy, .button.is-busy { opacity: 1; cursor: progress; }
button.is-busy .rn-mark { --s: 12px; margin-right: 2px; } button.is-busy .rn-mark i { background: currentColor; }
.score.is-changed { animation: score-flash 1.8s ease-out; }
@keyframes score-flash { 0% { box-shadow: 0 0 0 4px var(--accent-soft); } 100% { box-shadow: 0 0 0 0 transparent; } }
.score-delta { margin-left: 6px; font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.score-delta.up { color: var(--success-text); } .score-delta.down { color: var(--danger-text); }

/* the Network devices Targets page (Jon, 2026-11-11): the Devices list's rows with the latest run beside them */
.targets-table td { vertical-align: top; }
.why-match code { font-size: 12px; }
.job-scope { margin: -6px 0 12px; }

/* a busy member of a joined group (a connection form's Test button, 2026-11-11) widens to its running label instead of clipping it */
:is(.btn-group, .seg, .split) > button.is-busy { flex: 0 0 auto; width: auto; min-width: max-content; overflow: visible; white-space: nowrap; }

/* -- the segmentation site header's trend (Jon, 2026-11-11): a sparkline on a squared faint band, dots in the band colour, the deltas beside it -- */
.sg-trend { display: inline-flex; align-items: center; gap: 10px; }
.sg-spark { display: block; height: 18px; width: 120px; overflow: visible; }
.sg-spark .band { fill: var(--surface-2); stroke: var(--border); stroke-width: 1; }
.sg-spark polyline { fill: none; stroke: var(--text-2); stroke-width: 1.2; stroke-linejoin: round; }
.sg-spark circle { fill: var(--muted); stroke: var(--surface); stroke-width: 1; }
.sg-spark circle.good { fill: var(--success); } .sg-spark circle.mid { fill: var(--warn); } .sg-spark circle.bad { fill: var(--danger); }
.sg-spark circle.here { r: 3; stroke: var(--title); }
.sg-spark a:hover circle { r: 3.2; }
.sg-delta { font-variant-numeric: tabular-nums; font-weight: 600; }
.sg-delta.good { color: var(--success-text); } .sg-delta.mid { color: var(--warn-text); } .sg-delta.bad { color: var(--danger-text); }
.sg-delta.zero { color: var(--muted); font-weight: 400; }

/* vCenter clusters (jon-6, Jon via c7, 2026-11-13): a compact sortable table in the Devices list's style, not a wall of
   cards; a row opens the cluster on the shared side panel, which pushes the page aside as the Devices drawer does */
.vc-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 22px 0 10px; }
.vc-head h2 { margin: 0; }
.vc-head .spacer { flex: 1; }
.vc-head .vc-find { width: 300px; max-width: 100%; }
.vc-head .vc-sites .button.is-on { background: var(--accent-soft); color: var(--accent); }
.vc-clusters td { vertical-align: top; }
.vc-clusters .vc-name { color: var(--title); }
.vc-clusters td.num b { color: var(--title); font-weight: 600; }
.vc-clusters .vc-feat { white-space: normal; }
.vc-clusters .vc-feat .pill { margin: 0 4px 4px 0; }
.vc-clusters .vc-kept a { color: var(--text); }
.vc-clusters .vc-kept a:hover { color: var(--accent); }
.vc-clusters tbody tr[data-panel] { cursor: pointer; }
.vc-clusters tbody tr[data-panel]:hover td { background: color-mix(in srgb, var(--accent) 4%, var(--surface)); }
.vc-clusters tbody tr.is-open td { background: var(--accent-soft); }
.focus-set tbody tr.is-open td { background: var(--accent-soft); }   /* the object "Choose level…" came from */
.focus-all { gap: 16px; flex-wrap: wrap; } .focus-all label.check { white-space: nowrap; }   /* "Classify these N": select all, set all */
/* on a phone each object stacks, the level select full width: no swiping to reach the control that does the job (3c, 2026-11-14) */
@media (max-width: 640px) {
  .focus-wrap { overflow: visible; }
  .focus-table, .focus-table tbody, .focus-table tr, .focus-table td { display: block; width: 100%; }
  .focus-table thead { display: none; }
  .focus-table tr { padding: 10px 0; border-bottom: 1px solid var(--border); }
  .focus-table td { border: 0; padding: 2px 0; }
  .focus-table td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: .9em; }
  .focus-table td[data-label="Set by hand"]::before { display: block; margin-bottom: 2px; }
  .focus-table select { width: 100%; }
}
.vc-clusters tbody tr.is-cursor { outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: -2px; }
table.cs-sortable th[data-sort] { cursor: pointer; user-select: none; white-space: nowrap; }
table.cs-sortable th[data-sort]::after { content: ""; display: inline-block; width: 0; height: 0; margin-left: 5px; border: 4px solid transparent; border-top-color: var(--faint); vertical-align: 1px; }
table.cs-sortable th[aria-sort="ascending"]::after { border-top-color: transparent; border-bottom-color: var(--accent); vertical-align: 4px; }
table.cs-sortable th[aria-sort="descending"]::after { border-top-color: var(--accent); }
.vc-sub td, .vc-sub th { padding: 6px 10px; }
/* the Sites table (3c's card-wall pass; Jon, 2026-11-13: "card walls go"): a row opens the site panel; the site picked
   in the top bar is marked; with the panel open the columns it repeats step aside */
.site-table td { vertical-align: top; }
@media (min-width: 900px) { .site-table th:first-child, .site-table td:first-child { min-width: 16em; } }   /* names wrapped to 3-4 lines at 1440 (fc's walk, 2026-11-15) */
.site-table .site-name { font-weight: 600; color: var(--title); }
.site-table tbody tr[data-panel] { cursor: pointer; }
.site-table tbody tr[data-panel]:hover td { background: color-mix(in srgb, var(--accent) 4%, var(--surface)); }
.site-table tbody tr.is-open td { background: var(--accent-soft); }
.site-table tbody tr.is-cursor { outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: -2px; }
.site-table td.num, .site-table td.site-st { white-space: nowrap; }   /* not "st": site_thumb.css's .st is display:block, and a block cell's rule stopped short of a wrapped row (ee-sweep-14-4) */
.site-table .site-acts { white-space: nowrap; text-align: right; }
.site-table .site-acts a { display: inline-grid; place-items: center; width: 28px; height: 28px; color: var(--muted); border-radius: var(--radius); }
.site-table .site-acts a:hover { color: var(--accent); background: var(--accent-soft); }
.score-num { font-weight: 600; font-variant-numeric: tabular-nums; }
.score-num.good { color: var(--success-text); } .score-num.fair { color: var(--warn-text); } .score-num.poor { color: var(--danger-text); } .score-num.provisional { color: var(--muted); }
.ws.drawer-open .site-table .opt { display: none; }
/* a phone: each site a card, as the workspace lists (.dev-table) are: the site and its region on top, then status,
   devices, findings and segmentation (each named) wrapping below; no sideways swipe (3c's Halden walk, 2026-11-14) */
@media (max-width: 600px) {
  .table-wrap > table.site-table thead { display: none; }
  .table-wrap > table.site-table, .table-wrap > table.site-table tbody { display: block; width: 100%; }
  .table-wrap > table.site-table tbody tr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
  .table-wrap > table.site-table tbody tr:last-child { border-bottom: 0; }
  .table-wrap > table.site-table tbody td { display: block; min-width: 0; max-width: 100%; padding: 0; border: 0; white-space: normal; text-align: left; background: none; }
  .table-wrap > table.site-table tbody td:first-child { flex: 1 1 100%; }
  .table-wrap > table.site-table tbody td.site-region { flex: 1 1 100%; margin-top: -4px; color: var(--muted); font-size: 12.5px; }
  .table-wrap > table.site-table tbody td[data-label]::before { content: attr(data-label); margin-right: 6px; color: var(--muted); font-size: 12px; }
  .table-wrap > table.site-table tbody td.site-acts { margin-left: auto; }
  .table-wrap > table.site-table tbody tr.is-open { background: var(--accent-soft); }
}
/* Cards or a table on Topology, Physical and Virtual (the same card-wall pass): the switch, and the sites table */
.site-view .button.is-on { background: var(--accent-soft); color: var(--accent); }
.site-view-bar { display: flex; justify-content: flex-end; margin: 0 0 10px; }
.site-index .site-name { font-weight: 600; color: var(--title); }
.site-index td.num { white-space: nowrap; }
/* a run's devices (3c's card-wall pass): hundreds of rows scroll in a frame under a header that stays, so the page stays
   short and the search still reaches every device */
.ds-frame { max-height: min(72vh, 760px); overflow: auto; }
.ds-frame thead th { position: sticky; top: 0; z-index: 1; background: var(--band, var(--surface-2)); }
.ds-devices td { vertical-align: top; }
.ds-devices .vc-name { white-space: nowrap; }
.ds-devices tbody tr[data-panel] { cursor: pointer; }
.ds-devices tbody tr[data-panel]:hover td { background: color-mix(in srgb, var(--accent) 4%, var(--surface)); }
.ds-devices tbody tr.is-open td { background: var(--accent-soft); }
.ds-devices tbody tr.is-cursor { outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: -2px; }
@media (min-width: 1101px) { .ds-ws.drawer-open { margin-right: var(--sp-w, min(620px, 46vw)); } }
.ds-ws.drawer-open .ds-devices :is(th, td):nth-child(n+5) { display: none; }
.vc-sub td.num, .vc-sub th.num, .vc-clusters td.num { white-space: nowrap; }
.vc-clusters .vc-name { white-space: nowrap; }
/* the panel open: the columns it repeats step aside (cores, memory, features, kept by), as on the Devices list */
.vc-ws.drawer-open .vc-clusters :is(th, td):nth-child(n+5) { display: none; }
@media (min-width: 1101px) { .vc-ws.drawer-open { margin-right: var(--sp-w, min(620px, 46vw)); } }
@media (max-width: 640px) { .vc-head .vc-find { width: 100%; } }

/* a long unbroken value (a path, a URL) breaks anywhere rather than widening the page (c7's crawl, 2026-11-11) */
.wrap-any { overflow-wrap: anywhere; word-break: break-word; }

/* an API token is a masked text field, not a password field: browsers' password managers only pair a password input with
   the text field before it, which is how Edge saved "NetBox URL + token" as a sign-in and offered it on the login form
   (Jon, 2026-11-12). The mask is visual only; Firefox shows the characters while typing. */
.secret-input { -webkit-text-security: disc; font-family: var(--font-mono); letter-spacing: .05em; }

/* -- The canvas loader (Jon's demo-polish item 3, 2026-11-12): the site's real structure, not a skeleton. The Purdue planes draw
   in from the bottom in the hero's language (a shallow perspective, the level's tint and rail), device dots land on their
   plane as the data arrives, the status line names what is being read, and the planes crossfade into the drawn graph.
   Shown only after 300 ms (is-shown), so a fast load never flashes. Shared by the Logical, Physical and Virtual views. -- */
/* cs-loader (Jon via c7, 2026-11-12): the running mark scaled (48 px on a canvas, 32 px in a panel), centred, the status
   line under it; shown after 300 ms (canvas_loader.js), a 280 ms fade-out; the canvas paper shows through */
.cs-loader { position: absolute; inset: 0; z-index: 5; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 16px;
  background: transparent; opacity: 0; pointer-events: none; transition: opacity .28s ease; }
.cs-loader.is-shown { opacity: 1; pointer-events: auto; }
.cs-loader.fading { opacity: 0; pointer-events: none; }
.cs-loader.is-panel { gap: 12px; }
.cs-loader-text { max-width: 46ch; text-align: center; font-size: 13px; line-height: 1.45; color: var(--muted); }
.cs-loader.is-error { opacity: 1; pointer-events: auto; }
/* the hand-over: while the loader is shown the graph under it is hidden; after the loader is gone the graph fades in (180 ms) */
.cv-busy > svg, .cv-busy > .topo-dock { opacity: 0 !important; transition: none; }
.cv-reveal > svg, .cv-reveal > .topo-dock { animation: cv-reveal .18s ease-out both; }
@keyframes cv-reveal { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .cs-loader { transition: none; } .rn-mark i { animation: none; opacity: 1; } }

/* advisories: where an advisory came from (3c, the feed ships in the launch, 2026-11-14) */
.adv-origin { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); white-space: nowrap; }
.adv-origin i { font-size: 11px; }
.adv-origin.is-feed { color: var(--text-2); }
.adv-origin.is-edited { color: var(--warn-text); }
.adv-prov { display: flex; flex-direction: column; gap: 4px; margin: 0 0 14px; padding: 9px 12px; font-size: 13px; color: var(--text-2);
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.adv-prov i { width: 14px; color: var(--muted); }
.adv-prov .adv-prov-edit { color: var(--warn-text); }
.adv-prov .adv-prov-edit i { color: inherit; }
.adv-origin-filter { margin: 0 0 10px; }
.adv-origin-filter .button.is-on { background: var(--accent-soft); color: var(--accent); }
.adv-cover { margin: 0 0 14px; padding: 0; }
.adv-cover > summary { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 10px 14px; cursor: pointer; }
.adv-cover > summary h2 { margin: 0; font-size: 15px; }
.adv-cover[open] > summary { border-bottom: 1px solid var(--border); }
.adv-cover .table-wrap { border: 0; border-radius: 0; max-height: 320px; overflow: auto; }
.adv-uncover { font-size: 12.5px; font-weight: 600; color: var(--warn-text); }
.adv-cover-table tr.is-uncovered td:first-child { font-weight: 600; }
.adv-mark-cell { width: 1%; white-space: nowrap; vertical-align: top; }
.adv-mark { position: relative; }
.adv-mark > summary { list-style: none; cursor: pointer; }
.adv-mark > summary::-webkit-details-marker { display: none; }
.adv-mark > summary::before { content: none; }
.adv-mark-form { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; width: 340px; display: grid; gap: 8px; padding: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-md, 0 8px 28px rgba(0,0,0,.18)); white-space: normal; }
.adv-mark-form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 4px; }
.adv-mark-form legend { margin-bottom: 4px; font-weight: 600; color: var(--title); }
.adv-mark-form input[type=text] { width: 100%; margin-top: 4px; }
/* the open "Not right?" form sits above the rows below it (they would paint over it), and on a phone the hits page's
   state tabs wrap rather than push the page sideways */
tr:has(.adv-mark[open]) { position: relative; z-index: 6; }
.adv-mark[open] { z-index: 7; }
@media (max-width: 640px) {
  /* the group grows with its rows (3c's 390 sweep, 2026-11-14: at a fixed height the second row lay over the Vendor
     label) and each button fills its row at a tap height */
  .filter-bar > .btn-group { flex-wrap: wrap; max-width: 100%; height: auto; }
  .filter-bar > .btn-group .button { white-space: nowrap; flex: 1 1 auto; min-height: 40px; justify-content: center; }
  .adv-mark-form { width: min(340px, calc(100vw - 48px)); }
  /* the device is the hit's key column: its name wraps in full, never "hf-rot-hmi-crushing-…" (3c's 390 sweep) */
  .adv-hits td:first-child { min-width: 180px; }
  .adv-hits td:first-child .oc-text { white-space: normal; overflow-wrap: anywhere; }
}
.adv-src-note { margin-top: 3px; font-size: 12px; color: var(--muted); }
.adv-prov .adv-src-note { margin: 0; font-size: 12.5px; color: var(--text-2); }
.adv-cond { font-family: var(--font-sans); letter-spacing: normal; display: inline-flex; gap: 5px; align-items: baseline; font-size: 12px; color: var(--warn-text); white-space: normal; }
.adv-products > summary { cursor: pointer; }
.adv-affected { white-space: nowrap; }      /* "46 in 2 sites" on one line (fc's Halden walk, 2026-11-15) */
.adv-products .table-wrap { margin-top: 8px; }
/* Affected versions, readable (Jon via c7, 2026-11-15): this site's devices first, the list folded into release trains,
   trains with a device of this site open, the rest behind one line, the flat list one click away */
.vl { display: grid; gap: 6px; min-width: 0; }
.vl p { margin: 0; }
.vl-mine .vl-k { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); margin-right: 6px; }
.vl-trains { display: grid; gap: 2px; }
.vl-train > summary, .vl-more > summary, .vl-flat > summary { cursor: pointer; padding: 3px 0; }
.vl-train > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.vl-train .vl-n { padding: 0 6px; border: 1px solid var(--border); border-radius: var(--radius); color: var(--muted);
  font-size: 11.5px; font-variant-numeric: tabular-nums; }
.vl-train .vl-fix { margin-left: auto; font-size: 12px; }
.vl-train.is-mine > summary { font-weight: 600; }
.vl-versions, .vl-flat > p { padding: 4px 0 6px 14px; color: var(--text); overflow-wrap: anywhere; }
.vl-more > .vl-trains { padding-left: 14px; }
.vl-versions .vl-yours { font-weight: 700; color: var(--text); background: var(--accent-soft); padding: 0 3px; border-radius: var(--radius); }
.vl-check { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 2px; }
.vl-check label { display: flex; align-items: center; gap: 8px; margin: 0; }
.vl-check input[name="v"] { width: 14em; max-width: 100%; font-family: var(--font-mono); }
.adv-versions { padding: 12px 14px; }
.adv-versions-h { margin: 0 0 6px; font-size: 14px; }

/* hits at phone width (3c, 2026-11-14): one block per hit, device and advisory side by side, then severity, firmware with
   its condition, and the reasons, so nothing sits off-screen behind a sideways scroll */
@media (max-width: 640px) {
  table.adv-hits thead { display: none; }
  table.adv-hits, table.adv-hits tbody { display: block; }
  table.adv-hits tr { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
  table.adv-hits td { display: block; border: 0; padding: 0 4px; min-width: 0; overflow-wrap: anywhere; }
  table.adv-hits td:nth-child(n+3) { grid-column: 1 / -1; }
}
.adv-pages { gap: 8px 16px; flex-wrap: wrap; align-items: center; margin: 8px 0; }
@media (max-width: 640px) { .adv-mark-form { position: static; width: auto; margin-top: 6px; } }
.adv-same { display: flex; gap: 8px; align-items: baseline; margin: 0 0 10px; color: var(--text-2); }

/* wide tables on a phone (ee-sweep-14-27, 2026-11-14; shell.js marks .is-wide / .at-end): the right edge fades while
   there is more, a one-line note says to swipe, and a last cell of buttons stays pinned at the right edge */
@media (max-width: 640px) {
  .table-wrap.is-wide:not(.at-end):not(:has(tr > td:last-child :is(button, .button))) { -webkit-mask-image: linear-gradient(to left, transparent 0, #000 36px); mask-image: linear-gradient(to left, transparent 0, #000 36px); }
  .table-swipe { margin: 4px 0 6px; font-size: 12px; color: var(--muted); }
  .table-wrap.is-wide > table tr > td:last-child:has(:is(button, .button)),
  .table-wrap.is-wide > table:has(tr > td:last-child :is(button, .button)) tr > th:last-child {
    position: sticky; right: 0; z-index: 1; background: var(--surface); box-shadow: -6px 0 8px -6px rgba(0, 0, 0, .25); min-width: 0; }
  .table-wrap.is-wide > table:has(tr > td:last-child :is(button, .button)) tr > th:last-child { background: var(--surface-2); }
  /* forms: two or three fields on a row stack, so a value is not cut inside a narrow box ("displayNam") */
  form .row > label:not(.check):has(> :is(input:not([type=checkbox]):not([type=radio]), select, textarea)) { flex: 1 1 100% !important; min-width: 100%; }
}

/* a fieldset legend that wraps on a phone ("Which NetBox devices (all filters must match)") sat across the border:
   below 640 px the legend is the fieldset's first line, inside the frame (sweep 2.21 / 4.22, 2026-11-14) */
@media (max-width: 640px) {
  fieldset > legend { float: left; width: 100%; padding: 0; margin: 0 0 8px; }
  fieldset > legend + * { clear: both; }
  .row > span.f1:empty { display: none; }
}

/* a phone: the demo bar's separators go (a wrapped line left a lone "|" at its end); the gap separates the links */
@media (max-width: 640px) { .demo-sep { display: none; } }
/* Findings as cards on a phone (the demo walk, 2026-11-14: source and status sat beside the site on some cards and under it on
   others): the site and object take a line, then the source on the left and the status on the right, the same on every card */
@media (max-width: 600px) {   /* the width at which the rows become cards (.ws-table .dev-table above); at 900 the rules hit table cells and a row stopped opening its panel */
  .ws-table .findings-table td.fd-src { flex: 1 1 auto; }
  .ws-table .findings-table td:last-child { margin-left: auto; text-align: right; }
}
/* a finding's evidence as objects and its fix in place (Jon via c7, 2026-11-14) */
.fd-fix { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 10px; }
.fd-ev { margin: 0 0 6px; }
.fd-ev-table td { padding: 6px 10px; vertical-align: middle; }
.fd-evidence-list { margin: 0; padding-left: 1.2em; }
.fd-assign { font-size: 12px; color: var(--muted); margin: 0 2px 0 0; }
/* a phone: each evidence row stacks (object, then its kind and role), no sideways swipe */
@media (max-width: 640px) {
  /* rows "Show all" reveals keep their [hidden] (3c's lab re-check: all 30 showed with "Show all 30" under them) */
  .fd-ev-table, .fd-ev-table tbody, .fd-ev-table tr:not([hidden]), .fd-ev-table td { display: block; width: auto; }
  .fd-ev-table tr { padding: 6px 0; border-bottom: 1px solid var(--border); }
  .fd-ev-table td { border: 0; padding: 2px 10px; min-width: 0; }
  .fd-ev-table td + td { display: inline-block; color: var(--muted); font-size: 12px; }
}


/* Firewall policy's "Review first" on a phone (3c's Corvane sweep, 2026-11-14: five narrow columns made each rule about
   200 px tall, a word a line): the rule across the top, then from, service and to, each with its label, then why */
@media (max-width: 640px) {
  .table-wrap:has(> .cp-review) { overflow: visible; }
  .cp-review, .cp-review tbody { display: block; width: 100%; }
  .cp-review thead { display: none; }
  .cp-review tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 12px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
  .cp-review td { display: block; padding: 0; border: 0; min-width: 0; overflow-wrap: anywhere; }
  .cp-review td:first-child, .cp-review td:last-child { grid-column: 1 / -1; }
  .cp-review td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; color: var(--muted); }
}
/* run reports on a phone: an object's name wraps in full instead of "cm-aus-dmz-remote-access-01.corvane.loca…" */
@media (max-width: 640px) { .rp-table .oc-text { white-space: normal; overflow-wrap: anywhere; } }
/* touch screens: the Overview widgets' buttons and a report's "Expand all" / "Show all N" are 40 px tall (were 28-34) */
@media (pointer: coarse) {
  .wg-btn { min-width: 40px; min-height: 40px; }
  .hs-jump button { min-width: 44px; min-height: 40px; }            /* the run jump's Go (28 x 34) */
  :is(.rp-more, [data-rp-more], [data-rp-toggle]) { min-height: 40px; }
}

/* a table row hidden by a "Show all", a filter or a fold stays hidden whatever a phone layout makes the rows (flex,
   grid or block outrank the [hidden] attribute's own display: none; 3c's lab re-check, 2026-11-14) */
table tr[hidden] { display: none !important; }

/* The locked field (web/templates/_locked.html, Jon 2026-11-15): a higher edition's field in place, muted, with the
   edition's chip and what it would show; never a value, never a button. */
.lk-chip { display: inline-flex; align-items: center; padding: 0 5px; border: 1px solid currentColor; border-radius: 2px;
  font: 600 10.5px/1.6 var(--font-mono, "IBM Plex Mono", monospace); letter-spacing: .03em; white-space: nowrap; vertical-align: 1px; opacity: .85; }
.lk-chip .tier { display: inline-flex; align-items: center; gap: 4px; }
.lk-chip.lk-pro { color: var(--accent); }
.lk-chip.lk-enterprise { color: #7c3aed; }
:root[data-theme="dark"] .lk-chip.lk-enterprise { color: #b794f6; }
.lk-line { color: var(--muted); font-size: 12.5px; }
.lk-line b { font-weight: 600; color: var(--muted); }
tr.lk-row td { color: var(--muted); background: color-mix(in srgb, var(--muted) 5%, transparent); }
tr.lk-row td.lk-label { white-space: nowrap; }
.sp-fact.lk-fact { color: var(--muted); }
.sp-fact.lk-fact .lk-in { color: var(--muted); }

/* -- change rules (Settings › Change rules, Held for review, an asset's timeline) ------------------------------------ */
.cr-scope { margin: 0 0 12px; align-items: end; }
.cr-note { display: flex; gap: 8px; align-items: baseline; color: var(--text); }
.cr-head { justify-content: space-between; align-items: center; }
.cr-table td { vertical-align: top; }
.cr-table td:nth-child(2) { width: 52%; }
.cr-acts { display: flex; gap: 8px; align-items: center; flex-wrap: nowrap; }
.cr-acts form { margin: 0; }
.cr-table tr.cr-fallback td { background: var(--band); }
.cr-group { margin: 0 0 10px; }
.cr-types { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 4px 0 0; }
.cr-levels { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.cr-unavailable { color: var(--muted); display: flex; gap: 8px; align-items: baseline; }
.cr-preview { border-top: 1px solid var(--border); padding-top: 10px; margin: 0; }
.cr-held-head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.cr-held-head h2 { margin: 0; }
.cr-headline { color: var(--title); }
.cr-timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--border); }
.cr-step { display: grid; grid-template-columns: 150px 1fr auto; gap: 4px 12px; padding: 6px 0 6px 12px; border-bottom: 1px solid var(--border); position: relative; }
.cr-step::before { content: ""; position: absolute; left: -5px; top: 12px; width: 8px; height: 8px; background: var(--surface); border: 2px solid var(--muted); }
.cr-step.cr-decision::before { border-color: var(--accent); background: var(--accent); }
.cr-step:last-child { border-bottom: 0; }
.cr-what { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cr-ba { overflow-wrap: anywhere; }
.cr-timeline.compact .cr-step { grid-template-columns: 120px 1fr auto; padding: 4px 0 4px 10px; }
.cr-entry { margin: 0; padding-left: 18px; }
.cr-decide { align-items: center; }
.cr-routed-list { margin: 0; padding-left: 18px; }
@media (max-width: 640px) { .cr-step, .cr-timeline.compact .cr-step { grid-template-columns: 1fr; } }
