/* =====================================================================
   Lanbrogio — design system. No external dependencies, no build step.
   Index:
     1. Tokens (light/dark colors, spacing, radii, typography, elevation, z-index)
     2. Base, reset and accessibility
     3. Layout (shell, sidebar, topbar, page)
     4. Utilities
     5. Components: buttons · forms · messages · badges and signals · tooltips · severity bars ·
        KPIs · cards · tables · pagination · empty/loading states · dialog/drawer · toasts · filters
     6. Pages: projects · finding detail · finding list · scope · settings · assets/inventory ·
        audit · diff/trend/charts · account · plans/notifications · lifecycle
     7. Responsive (900 / 640 px) · reduced motion · print
   Rule: new colors only as tokens; in the pages use the classes, not inline style="".
   ===================================================================== */

/* ---------- 1. token ---------- */
/* @font-face of Inter and JetBrains Mono: app/static/fonts.css (also used by the HTML reports) */

/* Palette (110:D5): built from the logo M1 — navy (#24345f → #0d1424) as the primary, gold (#ffe08a → #f2b631) only as a
   sparing highlight (brand mark, current navigation item, focus inside the navy sidebar, loading bar, report
   covers). Gold never carries text on a light surface. Neutrals lean slightly towards the navy hue. Severity colours
   are unchanged (PKG-09 phase 1). Every pair is checked in both themes by tests/test_ui_contrast.py. */
:root {
  color-scheme: light;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* brand scale (the same in both themes) */
  --navy-950: #0d1424; --navy-900: #121c36; --navy-800: #1a2645; --navy-700: #24345f; --navy-600: #2f4fb3;
  --navy-500: #4766cc; --navy-300: #8aa2ff; --navy-200: #b4c4ff; --navy-100: #dfe6fb; --navy-50: #eef2fc;
  --gold: #f2b631; --gold-light: #ffe08a;

  /* surfaces and text */
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-2: #f2f5f9;
  --surface-3: #e5e9f0;
  --border: #e0e5ec;
  --border-strong: #c8cfda;
  --text: #0f1729;
  --text-2: #344054;
  --muted: #586378;          /* ≥ 4.5:1 on --bg, --surface and --surface-2 */
  --faint: #606a7d;          /* lightest text token: ≥ 4.5:1 on --surface-2 as well (tests/test_ui_contrast.py) */
  --control-border: #7e8697; /* boundary of form fields: ≥ 3:1 on every surface (WCAG 1.4.11) */
  --accent: #2f4fb3;
  --accent-hover: #263f91;
  --accent-text: #ffffff;
  --accent-soft: #e9eefb;
  --focus: #2f4fb3;
  --overlay: rgba(10, 16, 32, .42);
  --tip-bg: #121c36;
  --tip-text: #eef2fc;

  /* navigation sidebar: navy in both themes (the ground of the logo) */
  --nav-bg: #111a32; --nav-bg-2: #19243f; --nav-bg-3: #233052; --nav-border: #26335a; --nav-border-strong: #3a4a76;
  --nav-text: #f3f5fa; --nav-text-2: #c9d1e3; --nav-muted: #9aa6c2; --nav-accent: #b4c4ff; --nav-accent-soft: #24335c;

  /* semantics */
  --sev-critical: #c4262e;
  --sev-high: #b8460a;      /* WCAG AA: text and badges ≥ 4.5:1 on --surface, --surface-2 and --bg */
  --sev-medium: #855f00;
  --sev-low: #2366b0;
  --sev-info: #656f7f;
  --ok: #18804a;
  --warn: #946000;
  --err: #c4262e;
  --run: #2f4fb3;
  --kev: #b4194a;
  --exploit: #a12a8a;       /* magenta: told apart from --sev-high (F-154); the badge also carries a flame icon */
  --eol: #7546b8;
  --check: #0f7a8a;
  --on-err: #ffffff;         /* text on a solid --err fill (.btn.danger-solid) */
  /* alert titles: the semantic colour pulled towards --text, AA on the tinted alert background */
  --alert-ok-text: color-mix(in srgb, var(--ok) 85%, var(--text));
  --alert-warn-text: color-mix(in srgb, var(--warn) 85%, var(--text));
  --alert-err-text: color-mix(in srgb, var(--err) 85%, var(--text));
  /* chart fills (F-093, F-154): lighter tints of the severity colours for areas and bars, the line keeps the full
     colour; a stacked area reads as bands, not as a wall of colour */
  --sev-critical-fill: color-mix(in srgb, var(--sev-critical) 62%, var(--surface));
  --sev-high-fill: color-mix(in srgb, var(--sev-high) 52%, var(--surface));
  --sev-medium-fill: color-mix(in srgb, var(--sev-medium) 42%, var(--surface));
  --sev-low-fill: color-mix(in srgb, var(--sev-low) 40%, var(--surface));
  --sev-info-fill: color-mix(in srgb, var(--sev-info) 30%, var(--surface));

  /* spacing (4 px scale) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px; --s-8: 32px;
  /* radii: three sizes plus the pill */
  --r-xs: 4px; --r-sm: 6px; --r: 8px; --r-lg: 12px; --r-pill: 999px;
  /* type scale (F-051): body 14 px; card titles 15, page titles 24, KPI figures 28 */
  --fs-2xs: 11px; --fs-xs: 12px; --fs-sm: 13px; --fs-base: 14px; --fs-card: 15px; --fs-md: 16px; --fs-lg: 18px;
  --fs-xl: 24px; --fs-2xl: 28px;
  --fw-medium: 500; --fw-semi: 600; --fw-bold: 650;
  --lh: 1.5; --lh-tight: 1.25;
  /* elevation */
  --shadow-sm: 0 1px 2px rgba(15, 23, 41, .05);
  --shadow: 0 1px 2px rgba(15, 23, 41, .04), 0 4px 12px rgba(15, 23, 41, .06);
  --shadow-lg: 0 12px 40px rgba(15, 23, 41, .18);
  /* layers */
  --z-sticky: 20; --z-drawer-overlay: 60; --z-drawer: 61; --z-nav-overlay: 65; --z-sidebar: 70; --z-toast: 90; --z-tip: 95; --z-loadbar: 100; --z-skip: 110;
  /* layout */
  --sidebar-w: 240px;
  --topbar-h: 52px;
  --control-h: 34px;
  --btn-h: 32px;
  --btn-h-sm: 26px;
  --content-max: 1600px;
}

/* Dark: same values in two selectors (system preference · explicit choice). Keep them aligned. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0a0e17; --surface: #111827; --surface-2: #172033; --surface-3: #1f2a40;
    --border: #232e45; --border-strong: #34405a; --text: #e8ecf4; --text-2: #c3cad7; --muted: #98a2b6; --faint: #868fa3; --control-border: #6c7690;
    --accent: #8aa2ff; --accent-hover: #9db1ff; --accent-text: #0a0e17; --accent-soft: #1c2747; --focus: #9db1ff;
    --nav-bg: #0d1424; --nav-bg-2: #151e35; --nav-bg-3: #1e2944; --nav-border: #1f2a44; --nav-border-strong: #34426a;
    --shadow-sm: none; --shadow: 0 1px 0 rgba(255,255,255,.02); --shadow-lg: 0 16px 48px rgba(0,0,0,.55);
    --overlay: rgba(0, 0, 0, .55); --tip-bg: #e8ecf4; --tip-text: #0f1729;
    --sev-critical: #f2555d; --sev-high: #ff8a42; --sev-medium: #e8b93c; --sev-low: #5aa7ff; --sev-info: #96a0b0;
    --ok: #3ccf7f; --warn: #e8b93c; --err: #f2555d; --run: #8aa2ff; --kev: #ff5c8a;
    --exploit: #f07ad8; --eol: #b794f6; --check: #4fd1e0; --on-err: #0f1729;
    --sev-critical-fill: color-mix(in srgb, var(--sev-critical) 70%, var(--surface));
    --sev-high-fill: color-mix(in srgb, var(--sev-high) 60%, var(--surface));
    --sev-medium-fill: color-mix(in srgb, var(--sev-medium) 52%, var(--surface));
    --sev-low-fill: color-mix(in srgb, var(--sev-low) 48%, var(--surface));
    --sev-info-fill: color-mix(in srgb, var(--sev-info) 36%, var(--surface));
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0e17; --surface: #111827; --surface-2: #172033; --surface-3: #1f2a40;
  --border: #232e45; --border-strong: #34405a; --text: #e8ecf4; --text-2: #c3cad7; --muted: #98a2b6; --faint: #868fa3; --control-border: #6c7690;
  --accent: #8aa2ff; --accent-hover: #9db1ff; --accent-text: #0a0e17; --accent-soft: #1c2747; --focus: #9db1ff;
  --nav-bg: #0d1424; --nav-bg-2: #151e35; --nav-bg-3: #1e2944; --nav-border: #1f2a44; --nav-border-strong: #34426a;
  --shadow-sm: none; --shadow: 0 1px 0 rgba(255,255,255,.02); --shadow-lg: 0 16px 48px rgba(0,0,0,.55);
  --overlay: rgba(0, 0, 0, .55); --tip-bg: #e8ecf4; --tip-text: #0f1729;
  --sev-critical: #f2555d; --sev-high: #ff8a42; --sev-medium: #e8b93c; --sev-low: #5aa7ff; --sev-info: #96a0b0;
  --ok: #3ccf7f; --warn: #e8b93c; --err: #f2555d; --run: #8aa2ff; --kev: #ff5c8a;
  --exploit: #f07ad8; --eol: #b794f6; --check: #4fd1e0; --on-err: #0f1729;
  --sev-critical-fill: color-mix(in srgb, var(--sev-critical) 70%, var(--surface));
  --sev-high-fill: color-mix(in srgb, var(--sev-high) 60%, var(--surface));
  --sev-medium-fill: color-mix(in srgb, var(--sev-medium) 52%, var(--surface));
  --sev-low-fill: color-mix(in srgb, var(--sev-low) 48%, var(--surface));
  --sev-info-fill: color-mix(in srgb, var(--sev-info) 36%, var(--surface));
}

/* The sidebar is navy in both themes: inside it the components (nav links, switchers, badges, menus) take a dark set
   of tokens, so they need no rules of their own. The semantic colours are the dark-theme ones (AA on navy). */
.sidebar {
  color-scheme: dark;
  --bg: var(--nav-bg); --surface: var(--nav-bg); --surface-2: var(--nav-bg-2); --surface-3: var(--nav-bg-3);
  --border: var(--nav-border); --border-strong: var(--nav-border-strong); --control-border: #7d89a8;
  --text: var(--nav-text); --text-2: var(--nav-text-2); --muted: var(--nav-muted); --faint: var(--nav-muted);
  --accent: var(--nav-accent); --accent-hover: #c9d5ff; --accent-text: #0d1424; --accent-soft: var(--nav-accent-soft);
  --focus: var(--gold);
  --sev-critical: #f2555d; --sev-high: #ff8a42; --sev-medium: #e8b93c; --sev-low: #5aa7ff; --sev-info: #96a0b0;
  --ok: #3ccf7f; --warn: #e8b93c; --err: #f2555d; --run: #8aa2ff; --kev: #ff5c8a;
  --exploit: #f07ad8; --eol: #b794f6; --check: #4fd1e0; --on-err: #0f1729;
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, .5);
}

/* ---------- 2. base, reset, accessibility ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: var(--fs-base)/var(--lh) var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto; text-rendering: optimizeLegibility;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
/* links inside running text are underlined, not told apart by colour only (WCAG 1.4.1, F-056). Specificity (0,0,2):
   above `a`, below every component rule, so buttons, chips, rows and nav links keep their own look. */
main :where(p, li, dd, .alert .grow, .help-box, .help, .hint, .sub, .tt, .small, .muted, .ux-note, .conf-box, .empty,
            .vulnact, .list-foot, .eula-text) a:where(:not(.btn, .hostlink, .row-link, .ux-action, .chip, .badge, .kpi,
            .trend-card, .tab, .cve, .ref-link, .colmenu-item, .sev-tile, .diff-cell, .rh-preset-link)) {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px;
  text-decoration-color: color-mix(in srgb, currentColor 55%, transparent);
}
main :where(p, li, dd, .alert .grow, .help-box, .help, .hint, .sub, .tt, .small, .muted, .ux-note, .conf-box, .empty,
            .vulnact, .list-foot, .eula-text) a:where(:not(.btn, .hostlink, .row-link, .ux-action, .chip, .badge, .kpi,
            .trend-card, .tab, .cve, .ref-link, .colmenu-item, .sev-tile, .diff-cell, .rh-preset-link)):hover { text-decoration-color: currentColor; }
/* JetBrains Mono is larger on the em than Inter: .9em keeps the x-heights together (no ligatures for addresses) */
code, pre, kbd, .mono { font-family: var(--mono); font-size: .9em; font-variant-ligatures: none; }
/* type hierarchy (F-051): page title 24/650, section 18/600, card title 15/600, body 14/400 */
h1, h2, h3, h4 { margin: 0; font-weight: var(--fw-semi); letter-spacing: -.011em; line-height: var(--lh-tight); }
h1 { font-size: var(--fs-xl); font-weight: var(--fw-bold); letter-spacing: -.02em; }
h2 { font-size: var(--fs-lg); }
h3 { font-size: var(--fs-base); }
p { margin: 0 0 .6em; }
hr { border: 0; border-top: 1px solid var(--border); margin: var(--s-4) 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-xs); }
main:focus { outline: none; }
/* R-146 (1.7.0, cause 5): an anchor never lands under the sticky top bar (the settings keep their own, taller) */
main [id] { scroll-margin-top: calc(var(--topbar-h) + 12px); }
#plans:empty { min-height: 240px; overflow-anchor: none; }
svg.i { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 2;
        stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
svg.i.sm { width: 14px; height: 14px; vertical-align: -2px; }
svg.i.lg { width: 22px; height: 22px; }
/* screen-reader only text: one definition for the three names in use (F-159) */
.sr, .sr-only, .visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: var(--s-3); top: var(--s-3); z-index: var(--z-skip); padding: 8px 14px; border-radius: var(--r);
             background: var(--accent); color: var(--accent-text); font-weight: var(--fw-semi); transform: translateY(-200%); }
/* the shadow only while visible: off screen its 40 px blur left a grey smudge in the top-left corner (F-048) */
.skip-link:focus { transform: none; text-decoration: none; box-shadow: var(--shadow-lg); }
kbd { font-size: var(--fs-2xs); border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: var(--r-xs);
      padding: 0 4px; background: var(--surface); color: var(--text-2); }

/* ---------- 3. layout ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: var(--surface); border-right: 1px solid var(--border); color: var(--text);
  display: flex; flex-direction: column; padding: var(--s-3) 10px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; font-weight: var(--fw-bold); font-size: var(--fs-md);
         letter-spacing: -.01em; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 28px; height: 28px; border-radius: var(--r); display: grid; place-items: center; background: var(--accent); color: var(--accent-text); }
.brand-mark svg.i { width: 15px; height: 15px; }
img.brand-mark { background: none; border-radius: 0; flex: none; }  /* Lanbrogio mark (app/static/brand) */
.nav-label { font-size: var(--fs-2xs); font-weight: var(--fw-semi); text-transform: uppercase; letter-spacing: .06em;
             color: var(--muted); padding: 14px 10px 6px; display: flex; justify-content: space-between; align-items: center; }
.nav a {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: var(--r-sm);
  color: var(--text-2); font-weight: var(--fw-medium); min-height: 32px;
}
.nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
/* current page: a lighter navy ground, white text and the gold marker of the logo (110:D5) */
.nav a.active { background: var(--surface-3); color: var(--text); font-weight: var(--fw-semi); }
.nav a.active::before { content: ""; position: absolute; left: -10px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 2px 2px 0;
                        background: var(--gold); }
.nav a.active svg.i { color: var(--gold); }
.nav a .count { margin-left: auto; font-size: var(--fs-xs); color: var(--muted); font-variant-numeric: tabular-nums; }
.nav a .dot { margin-left: auto; }
.nav .sub a { padding-left: 14px; }
.sidebar-foot { margin-top: auto; padding-top: var(--s-3); border-top: 1px solid var(--border); display: flex; gap: 6px; align-items: center; }
.sidebar-foot .who { font-size: var(--fs-sm); color: var(--muted); flex: 1; padding-left: 6px; }
.sidebar-foot a.who:hover { color: var(--text); text-decoration: none; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: var(--z-sticky); height: var(--topbar-h);
  display: flex; align-items: center; gap: var(--s-3); padding: 0 var(--s-6);
  background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.crumbs { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: var(--fs-sm); color: var(--muted); flex: 1; }
.crumbs a { color: var(--muted); white-space: nowrap; }
.crumbs a:hover { color: var(--text); text-decoration: none; }
.crumbs .sep { color: var(--faint); display: inline-flex; }
.crumbs .cur { color: var(--text); font-weight: var(--fw-semi); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* R-145 (1.7.0, cause 4): the path stays in its room; the upper levels shrink first (each with its title), the
   current page keeps up to 60 % and never shrinks to «G…»; base.html folds the middle of paths of 5+ levels */
.crumbs { overflow: hidden; }
.crumbs a { flex: 0 1000 auto; min-width: 3ch; overflow: hidden; text-overflow: ellipsis; }   /* the ancestors give way first */
.crumbs .sep { flex: none; }
/* the current page shrinks last, with its own «…» (never cut by the path without dots, review-p13 B1) */
.crumbs .cur { flex: 0 1 auto; min-width: 6ch; max-width: 60%; }
.crumbs .crumb-gap, .crumbs .crumb-lead { flex: none; min-width: 0; cursor: help; }
.crumbs .crumb-lead { display: none; }
/* below 1180 px (the path has ~200 px between the menu and the search): «… › parent › current», the whole path in the
   title of «…» */
@media (max-width: 1179.98px) {
  .crumbs { gap: 4px; }
  .crumbs a { min-width: 2ch; }
  .crumbs .crumb-up { display: none; }
  .crumbs .crumb-lead { display: inline-flex; }
}
/* 2.3.2 (u1, A13 B9 232:C9 232:D11): the path starts from the page inside the project or the organization (the selector of the
   sidebar says which); the current page is never cut: it keeps its whole width (the search field gives way first),
   the levels in the middle give way, then the first one. No size containment (it made the path 0 wide while the
   search field kept its 300 px). What overflows is the start of the path (flex-end with the margin of the current
   page), never its end; nav.js then folds the path into «… › current» (the whole path in the title of «…»), and
   only a current page longer than the whole room goes on two lines (as on the phone) */
.crumbs { flex: 1 1 auto; container-type: normal; justify-content: flex-end; }   /* the width of the path, not 0 */
.crumbs .cur { flex: 0 0 auto; min-width: 0; max-width: none; margin-right: auto; text-overflow: clip; }
.crumbs > a:first-of-type { flex-shrink: 1; }   /* the first level gives way after the middle ones */
.crumbs.is-tight > a, .crumbs.is-tight > .sep:not(.crumb-lead), .crumbs.is-tight > .crumb-gap { display: none; }
.crumbs.is-tight > .crumb-lead { display: inline-flex; }
.crumbs.is-wrap > .cur { max-width: 100%; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
                         line-height: 1.25; overflow-wrap: anywhere; text-overflow: ellipsis; }
.topbar-actions { display: flex; gap: 6px; align-items: center; }
.menu-btn { display: none; }
.gsearch { flex: 0 1 300px; margin-left: auto; }
/* 2.3.2 (u1, 232:C9): the search field gives way before the path (down to 150 px); the buttons of the bar keep their size */
.gsearch { flex-shrink: 1000; min-width: 150px; }
.topbar > .btn { flex: none; }
.gsearch .input { height: var(--btn-h); }
/* wide screens (F-150): the page grows to 1600 px and is centred in the space beside the sidebar */
.content { padding: var(--s-6) var(--s-6) 48px; max-width: var(--content-max); width: 100%; margin: 0 auto; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-5); flex-wrap: wrap; }
.page-head .sub { color: var(--muted); margin-top: var(--s-1); }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* htmx loading bar */
#loadbar { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--gold); z-index: var(--z-loadbar); opacity: 0;
           transition: width .4s ease, opacity .3s; }
body.loading #loadbar { width: 70%; opacity: 1; transition: width 2s cubic-bezier(.1,.6,.3,1); }

/* ---------- 4. utility ---------- */
.grid { display: grid; gap: var(--s-4); }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.dash { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: start; }
.stack { display: flex; flex-direction: column; gap: var(--s-4); }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.strong { color: var(--text); font-weight: var(--fw-semi); }
.small { font-size: var(--fs-sm); }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.right { text-align: right; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
span.truncate.mw-200, span.truncate.mw-180 { display: block; }
/* utilities (F-159: they replace the style="" attributes of the templates, hence !important like the inline style they replace) */
.mw-180 { max-width: 180px !important; } .mw-200 { max-width: 200px !important; } .mw-420 { max-width: 420px !important; }
.m0 { margin: 0 !important; } .mt { margin-top: var(--s-3) !important; } .mt-sm { margin-top: var(--s-2) !important; } .mt-xs { margin-top: var(--s-1) !important; }
.mb { margin-bottom: var(--s-4) !important; } .pt-0 { padding-top: 0 !important; } .pb-0 { padding-bottom: 0 !important; }
.gap-5 { gap: 5px !important; } .gap-6 { gap: 6px !important; } .gap-8 { gap: var(--s-2) !important; } .gap-12 { gap: var(--s-3) !important; }
.wrap { flex-wrap: wrap !important; } .ai-center { align-items: center !important; } .ai-start { align-items: start !important; } .ai-end { align-items: flex-end !important; }
.ws-normal { white-space: normal !important; }
/* R-134 (1.7.0, cause 2): a cell of running text wraps (.wrap is the flex utility above, not this) */
.wrap-text { white-space: normal; overflow-wrap: anywhere; }
/* 2.3 (M5): the configuration checks of the host page sit in the narrow column: title, id and what was read wrap */
#host-checks .t td.wrap-text { white-space: normal; overflow-wrap: anywhere; }
.t td.err-text, .t td.prose { white-space: normal; overflow-wrap: anywhere; min-width: 18em; max-width: 48em; }
/* 2.1 License page: long licensees, periods and upload dates wrap in their cell (no minimum: it fits a phone) */
.t td.lic-wrap { white-space: normal; overflow-wrap: break-word; min-width: 8em; }
.src-table td.wrap { white-space: normal; overflow-wrap: anywhere; } .break-all { word-break: break-all !important; }
.t td.break-all { white-space: normal; }   /* gate 11 of 2.4 (defect 6): a fingerprint cell wraps, .t td nowrap made break-all useless */ .minw-0 { min-width: 0 !important; } .inline { display: inline !important; }
.mw-160 { max-width: 160px !important; } .mw-220 { max-width: 220px !important; } .mw-260 { max-width: 260px !important; } .mw-320 { max-width: 320px !important; }
.pad { padding: var(--s-3) var(--s-4) 0; }
.w-date { max-width: 200px; }
.c-critical { color: var(--sev-critical); } .c-high { color: var(--sev-high); } .c-medium { color: var(--sev-medium); }
.c-low { color: var(--sev-low); } .c-info { color: var(--sev-info); } .c-kev { color: var(--kev); } .c-err { color: var(--err); }

/* ---------- 5. components ---------- */

/* bottoni */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: var(--btn-h); padding: 0 var(--s-3);
  border-radius: var(--r-sm); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font: inherit; font-weight: var(--fw-semi); cursor: pointer; white-space: nowrap; text-decoration: none; box-shadow: var(--shadow-sm);
  transition: background .12s, border-color .12s, color .12s;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--text-2); }
.btn.ghost:hover { background: var(--surface-2); color: var(--text); }
.btn.danger, .btn.ghost.danger { color: var(--err); }
.btn.ghost.danger:hover { background: color-mix(in srgb, var(--err) 10%, transparent); }
.btn.danger-solid { background: var(--err); border-color: var(--err); color: var(--on-err); }
.btn.danger-solid:hover { background: color-mix(in srgb, var(--err) 88%, #000); }
.btn.icon { width: var(--btn-h); padding: 0; }
.btn.sm { height: var(--btn-h-sm); padding: 0 9px; font-size: var(--fs-sm); }
.btn.sm.icon { width: var(--btn-h-sm); padding: 0; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn .spin { display: none; }
.htmx-request .btn .spin, .btn.htmx-request .spin { display: inline-block; animation: spin .8s linear infinite; }
.htmx-request .btn .spin + svg, .btn.htmx-request .spin + svg { display: none; }
svg.i.spin-always { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.theme-toggle svg.i { display: none; }
.theme-toggle[data-mode="auto"] svg.m-auto, .theme-toggle:not([data-mode]) svg.m-auto,
.theme-toggle[data-mode="light"] svg.m-light, .theme-toggle[data-mode="dark"] svg.m-dark { display: inline-block; }
/* «copy» button (icon via mask: no SVG repeated in every row) */
.copy-btn { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin: -2px 0 -2px 1px; padding: 0;
            border: 0; border-radius: var(--r-xs); background: transparent; color: var(--faint); cursor: pointer; vertical-align: middle;
            opacity: 0; transition: opacity .12s; }
.copy-btn.ic-copy::before { content: ""; width: 14px; height: 14px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='14' height='14' x='8' y='8' rx='2'/%3E%3Cpath d='M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='14' height='14' x='8' y='8' rx='2'/%3E%3Cpath d='M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2'/%3E%3C/svg%3E") center / contain no-repeat; }
tr:hover .copy-btn, .copy-btn:focus-visible, .copy-btn.copied, .copy-btn.copy-fail { opacity: 1; }
@media (hover: none) { .copy-btn { opacity: .7; } }
.copy-btn:hover { background: var(--surface-3); color: var(--text); }
.copy-btn.copied { color: var(--ok); } .copy-btn.copy-fail { color: var(--err); }

/* form */
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; min-width: 0; }
.field:last-child { margin-bottom: 0; }
.field > label, .label { font-weight: var(--fw-semi); font-size: var(--fs-sm); color: var(--text-2); }
.field .help { font-size: var(--fs-xs); color: var(--muted); }
.ferr { font-size: var(--fs-sm); color: var(--err); display: flex; gap: 6px; align-items: flex-start; }
.ferr svg { margin-top: 2px; flex: none; }
.auth-alt .ferr, form + .ferr { margin-top: 6px; text-align: left; }   /* R-079: outside a .field too */
.input, .select, .textarea {
  width: 100%; min-height: var(--control-h); padding: 6px 10px; border-radius: var(--r-sm);
  border: 1px solid var(--control-border); background: var(--surface); color: var(--text);
  font: inherit; transition: border-color .12s, box-shadow .12s;
}
.textarea { font-family: var(--mono); font-size: var(--fs-sm); line-height: 1.55; resize: vertical; min-height: 120px; }
.textarea.prose { font-family: var(--font); font-size: var(--fs-base); min-height: 70px; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 22%, transparent); }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.invalid .input, .invalid .textarea, .invalid .select, .input.invalid { border-color: var(--err); }
.input-icon { position: relative; }
.input-icon svg.i { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.input-icon .input { padding-left: 31px; }
.select { appearance: none; padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center; }
.select.sm, .input.sm { min-height: 0; height: 28px; font-size: var(--fs-sm); padding-top: 0; padding-bottom: 0; width: auto; }
.rem-search input[type="search"] { width: 28em; max-width: 100%; }   /* the whole placeholder of the actions search, every language */
/* a select as wide as its longest option (a long site name) stays inside its box */
.select { max-width: 100%; text-overflow: ellipsis; }
/* 2.0 200:P24/200:P25: the guided «where» field (_where.html, static/where.js): kind → site → host or network with a search,
   the chosen items as chips above (the .rem-list of the template keeps only its reset here), the results as a list */
fieldset.where { border: 1px solid var(--border); border-radius: var(--r); padding: 6px var(--s-3) var(--s-3); margin: 0 0 14px;
                 min-width: 0; background: var(--surface); }
fieldset.where.invalid { border-color: var(--err); }
fieldset.where > legend { padding: 0 6px; font-weight: var(--fw-semi); font-size: var(--fs-sm); color: var(--text-2); }
fieldset.where .where-pick { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12em), 1fr)); gap: 0 14px; }
fieldset.where .where-pick > .field, fieldset.where > .field { margin-bottom: 10px; }
.where-chosen.rem-list { margin: 4px 0 10px; }
.where-chosen.rem-list > li.chip { padding: 1px 2px 1px 8px; border: 1px solid var(--border); border-radius: var(--r-xs);
                                   font-family: var(--font); gap: 2px; max-width: 100%; flex-wrap: nowrap; }
.where-chosen > li.chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.where-chosen > li.chip > .btn { min-height: 0; height: 22px; padding: 0 4px; }
fieldset.where select[data-where-results] { height: auto; min-height: 7.5em; padding: 4px; background-image: none; }
fieldset.where [data-where-status]:empty { display: none; }
fieldset.where [data-where-status] { margin-bottom: 8px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-row > .field { margin-bottom: 14px; }
.check { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; user-select: none; }
.check input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }

/* messages */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 10px var(--s-3); border-radius: var(--r);
         border: 1px solid; font-size: var(--fs-sm); line-height: 1.45; }
.alert svg.i { margin-top: 1px; }
.alert .grow { flex: 1; min-width: 0; }
.alert strong { font-weight: var(--fw-semi); }
.alert.error { color: var(--alert-err-text); border-color: color-mix(in srgb, var(--err) 35%, transparent); background: color-mix(in srgb, var(--err) 8%, var(--surface)); }
.alert.warn { color: var(--alert-warn-text); border-color: color-mix(in srgb, var(--warn) 40%, transparent); background: color-mix(in srgb, var(--warn) 9%, var(--surface)); }
.alert.ok { color: var(--alert-ok-text); border-color: color-mix(in srgb, var(--ok) 35%, transparent); background: color-mix(in srgb, var(--ok) 8%, var(--surface)); }
.alert.info { color: var(--text-2); border-color: var(--border); background: var(--surface-2); }
.alert .grow > :where(:not(.btn)) { color: var(--text-2); }   /* a button keeps its colours (Copy of R-081) */
.alert .grow > strong:first-child { color: inherit; }
/* action of a banner (m.alert(…, action=…)): inside the alert, on the right; it wraps under the text when narrow (F-049) */
.alert { flex-wrap: wrap; }
.alert .grow { flex: 1 1 240px; }
.alert .alert-act { flex: none; align-self: center; margin-left: auto; }
.banner { margin-bottom: var(--s-4); }
.banner + .banner { margin-top: calc(-1 * var(--s-2)); }
.inline-msg { font-size: var(--fs-sm); display: inline-flex; gap: 6px; align-items: center; }
.inline-msg.ok { color: var(--ok); } .inline-msg.error { color: var(--err); } .inline-msg.warn { color: var(--warn); }
.help-box { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r); padding: var(--s-3) 14px; font-size: var(--fs-sm); color: var(--text-2); }
.help-box ul { margin: 6px 0 0; padding-left: 18px; }
.help-box li { margin: 3px 0; }
.help-box code { background: var(--surface); border: 1px solid var(--border); padding: 0 4px; border-radius: var(--r-xs); }

/* badges: --c is the semantic color; the text is darkened/lightened towards --text to stay AA on the tinted background */
.badge {
  --c: var(--sev-info);
  display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px; border-radius: var(--r-xs);
  font-size: var(--fs-xs); font-weight: var(--fw-semi); white-space: nowrap; line-height: 1; letter-spacing: 0; text-transform: none;
  color: color-mix(in srgb, var(--c) 78%, var(--text)); background: color-mix(in srgb, var(--c) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 24%, transparent);
  max-width: 100%;   /* R-144/R-133 (1.7.0, cause 1): never wider than its cell or button */
}
.badge.sq { border-radius: var(--r-xs); }
/* states (scans, jobs, agents: the badge with the dot) keep the pill: a state, not a tag */
.badge:has(> .d), .badge.pill { border-radius: var(--r-pill); padding: 0 8px; }
.badge.sm { height: 18px; padding: 0 6px; font-size: var(--fs-2xs); gap: 4px; }
/* where a badge carries a phrase (an action of the audit log, a permission, a role, a stacked table cell, the
   Signals column) it wraps inside its container instead of overflowing onto the next column */
.badge.wrap, .findings-t td.c-sig .badge, .audit-t td.c-act .badge, .umenu-who .badge,
.t td.prose .badge, .t td.wrap-text .badge {
  white-space: normal; height: auto; min-height: 20px; padding-block: 2px; line-height: 1.2; text-align: left; }
.badge.sm.wrap, .umenu-who .badge.sm, .t td .badge.sm:where(.wrap) { min-height: 18px; }
/* in a table cell a one-line badge keeps its whole width in the cell's minimum (a percentage max-width counted as 0
   there and let the elastic title column squeeze the cell under the badge): the table grows instead */
.t td .badge:not(.wrap) { max-width: none; }
.badge .d { width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.badge .bn { font-variant-numeric: tabular-nums; padding-left: 4px; margin-left: 1px; border-left: 1px solid color-mix(in srgb, var(--c) 35%, transparent); }
.badge.sev-critical { --c: var(--sev-critical); } .badge.sev-high { --c: var(--sev-high); }
.badge.sev-medium { --c: var(--sev-medium); } .badge.sev-low { --c: var(--sev-low); } .badge.sev-info { --c: var(--sev-info); }
.badge.solid.sev-critical { background: var(--sev-critical); color: var(--on-err); border-color: transparent; }
.badge.st-done { --c: var(--ok); } .badge.st-running { --c: var(--run); } .badge.st-queued, .badge.st-cancelled, .badge.st-waiting, .badge.st-split { --c: var(--muted); }
.badge.st-failed, .badge.st-refused { --c: var(--err); }
.badge.st-running .d { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
/* decision 24 (R-149): one colour, one meaning. The severity colours (unchanged, 110:D5) are only the severity's. The status
   of a finding is a neutral pill with a coloured dot (new blue, confirmed solid, accepted grey with the clock, false
   positive a hollow dot, resolved green); the confidence a dashed outline; the «vulnerable» verdict an outline; KEV
   keeps its raspberry with its own target icon. The table of the colours: docs/colors.md. */
.badge.fs-new, .badge.fs-confirmed, .badge.fs-accepted, .badge.fs-false_positive, .badge.fs-resolved {
  --c: var(--muted); color: var(--text-2); background: var(--surface-2); border-color: var(--border-strong); }
.badge.fs-new { --dot: var(--accent); } .badge.fs-confirmed { --dot: var(--text); } .badge.fs-accepted { --dot: var(--muted); }
.badge.fs-resolved { --dot: var(--ok); }
.badge.fs-new .d, .badge.fs-confirmed .d, .badge.fs-accepted .d, .badge.fs-resolved .d { background: var(--dot); }
.badge.fs-false_positive .d { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }
.badge.fs-accepted .ic-pause { width: 11px; height: 11px; color: var(--muted); }
/* decision 24, integrator row 46: on the rows of the findings every badge that is not the severity is neutral with an
   icon: no vendor fix yet (ban), due dates (clock; overdue: alert and bold), ransomware; --warn and --err stay for the
   messages of the system, never beside a severity. KEV keeps its raspberry and its target. */
.badge.neutral.ico, .badge.due { --c: var(--muted); color: var(--text); background: var(--surface-2); border-color: var(--border-strong); gap: 4px; }
.badge.due.late { font-weight: var(--fw-bold); border-color: var(--text-2); }
.badge > .ic { width: 11px; height: 11px; }
.badge > svg.i { width: 12px; height: 12px; }
.badge.outline { background: transparent; border-color: color-mix(in srgb, var(--c) 70%, transparent); }
.badge.verdict { --c: var(--text-2); color: var(--text); }
.badge.kev { --c: var(--kev); letter-spacing: .02em; gap: 3px; }
.badge.kev .ic { width: 11px; height: 11px; }
/* every KEV badge (counts of lists, portfolio, patches…) carries the target, also where the template has no icon */
.badge.kev:not(:has(> .ic, > svg))::before { content: ""; display: inline-block; flex: none; width: 11px; height: 11px;
  background: currentColor; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.badge.exploit { --c: var(--exploit); gap: 3px; }
.badge.eol { --c: var(--eol); gap: 3px; }
.badge.exploit svg.i, .badge.eol svg.i, .badge.conf-low svg.i { width: 12px; height: 12px; }
/* light icons via mask (used in the badges repeated per row) */
.ic { display: inline-block; width: 12px; height: 12px; flex: none; background: currentColor; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.ic-flame { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.07-2.14-.22-4.05 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.15.43-2.29 1-3a2.5 2.5 0 0 0 2.5 2.5z'/%3E%3C/svg%3E"); }
.ic-ban { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m4.9 4.9 14.2 14.2'/%3E%3C/svg%3E"); }
.ic-pause { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='14' y='4' width='4' height='16' rx='1'/%3E%3Crect x='6' y='4' width='4' height='16' rx='1'/%3E%3C/svg%3E"); }
.ic-alert { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3'/%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E"); }
.ic-target, .badge.kev { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Ccircle cx='12' cy='12' r='6'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3C/svg%3E"); }
.ic-clock { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E"); }
.badge.verified { --c: var(--ok); }
.badge.conf-high, .badge.conf-medium, .badge.conf-low { --c: var(--muted); color: var(--text-2); background: transparent;
  border: 1px dashed color-mix(in srgb, var(--text-2) 55%, transparent); }
.badge.conf-low svg.i { color: var(--text-2); }   /* row 46: neutral, the alert icon says «low» */
.badge.neutral { --c: var(--muted); }
.badge.ok { --c: var(--ok); } .badge.warn { --c: var(--warn); } .badge.err { --c: var(--err); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--faint); flex: none; }
.dot.ok { background: var(--ok); } .dot.warn { background: var(--warn); } .dot.err { background: var(--err); }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: var(--r-xs); background: var(--surface-2);
        border: 1px solid var(--border); font-family: var(--mono); font-size: var(--fs-xs); color: var(--text-2); }
.chip.exclude { color: var(--err); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--err) 50%, transparent); }
/* 2.0 (A-D10): the site next to every address (m.sitechip), with one site too: a long name is cut in the chip (whole
   in its title) and never pushes the cell or the page sideways */
.site-chip { font-family: var(--font); max-width: min(100%, 26ch); min-width: 0; vertical-align: middle; white-space: nowrap; }
.site-chip > svg.i { flex: none; }
.site-chip-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
/* chip of the source of the finding */
.src { --c: var(--muted); display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: var(--r-xs);
       font-size: var(--fs-2xs); font-weight: var(--fw-semi); color: color-mix(in srgb, var(--c) 80%, var(--text));
       border: 1px dashed color-mix(in srgb, var(--c) 45%, transparent); white-space: nowrap; }
.src-version { --c: var(--muted); } .src-nuclei { --c: var(--ok); } .src-pkg { --c: var(--accent); }
.src-eol { --c: var(--eol); } .src-check { --c: var(--check); }
.sigs { display: inline-flex; gap: 4px; align-items: center; flex-wrap: wrap; }
/* 0-100 risk indicator */
.risk { --c: var(--sev-info); display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; cursor: help; }
.risk-n { min-width: 22px; text-align: right; font-weight: var(--fw-bold); color: var(--text); }  /* the bar carries the band colour (F-050) */
.risk-bar { display: inline-block; width: 34px; height: 5px; border-radius: var(--r-pill); background: var(--surface-3); overflow: hidden; }
.risk-bar i { display: block; height: 100%; background: var(--c); border-radius: inherit; }
.risk-bar.lg { width: 100%; height: 7px; }
.risk-critical { --c: var(--sev-critical); } .risk-high { --c: var(--sev-high); } .risk-medium { --c: var(--sev-medium); } .risk-low { --c: var(--sev-low); }
.t td .sigs { flex-wrap: nowrap; }
.risk-none { color: var(--muted); cursor: default; }

/* tooltip (fixed position, see app.js) */
#tip { position: fixed; z-index: var(--z-tip); max-width: 320px; padding: 7px 9px; border-radius: var(--r-sm); background: var(--tip-bg); color: var(--tip-text);
       font-size: var(--fs-xs); line-height: 1.45; box-shadow: var(--shadow-lg); white-space: pre-line; }
[data-tip] { cursor: help; }
/* tooltip triggers are <button class="tip-btn"> (focusable for keyboard users): :where() keeps the reset at zero
   specificity, so the badge/chip/term/risk classes style them exactly like the former <span> */
:where(button.tip-btn) { appearance: none; margin: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit;
  letter-spacing: inherit; text-transform: inherit; text-align: inherit; line-height: inherit; display: inline; cursor: help; }
/* a button is laid out as inline-block: line-height normal puts the dotted border-bottom (.term) where an inline
   span draws it (bottom of the font's content area), and the negative margin keeps it from growing the line */
button.term.tip-btn { line-height: normal; margin-bottom: -1px; }

/* stacked severity bar */
.sevbar { display: flex; height: 6px; border-radius: var(--r-pill); overflow: hidden; background: var(--surface-3); gap: 2px; }
.sevbar span { display: block; height: 100%; min-width: 3px; }
.sevbar.lg { height: 9px; }
.bg-critical { background: var(--sev-critical); } .bg-high { background: var(--sev-high); } .bg-medium { background: var(--sev-medium); }
.bg-low { background: var(--sev-low); } .bg-info { background: var(--sev-info); }
.sevcounts { display: flex; gap: 10px; flex-wrap: wrap; font-size: var(--fs-xs); color: var(--muted); }
.sevcounts span { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
.sevcounts i { width: 8px; height: 8px; border-radius: var(--r-xs); display: inline-block; }
.sevcounts b { color: var(--text); font-weight: var(--fw-semi); }
.sevcounts .zero, .sevcounts .zero b { color: var(--muted); font-weight: var(--fw-medium); }
.sevcounts .zero i { opacity: .45; }

/* KPI */
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s-3); margin-bottom: var(--s-4); }
.kpi { padding: 13px 15px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
a.kpi { color: inherit; text-decoration: none; }
a.kpi:hover { border-color: var(--border-strong); text-decoration: none; }
.kpi .k { font-size: var(--fs-xs); color: var(--muted); font-weight: var(--fw-medium); display: flex; align-items: center; gap: 6px; }
.kpi .v { font-size: var(--fs-2xl); font-weight: var(--fw-bold); letter-spacing: -.025em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.kpi .s { font-size: var(--fs-xs); color: var(--muted); white-space: normal; overflow: hidden; overflow-wrap: anywhere;
           display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }   /* R-148: was one cut line */
.kpi .s.warn-text { color: var(--warn); } .kpi .s.err-text { color: var(--err); } .kpi .s.ok-text { color: var(--ok); }
/* gate 11 of 2.4 (defect 4): a line of the inventory card that is a whole sentence is never cut (the livepatch) */
.kpi .s.s-full { display: block; -webkit-line-clamp: unset; overflow: visible; }
.kpi .ux-noadv.warn-text > summary { color: var(--warn); }
.kpi .v .delta { font-size: var(--fs-sm); margin-left: 4px; letter-spacing: 0; }
.kpi .v .unit { font-size: var(--fs-sm); font-weight: var(--fw-medium); letter-spacing: 0; }
.kpi.wide { grid-column: span 2; }
.kpi.alert-kev .v { color: var(--kev); }
.sev-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.sev-tile { border-radius: var(--r-sm); padding: 6px 8px; background: color-mix(in srgb, var(--c) 9%, transparent);
            border: 1px solid color-mix(in srgb, var(--c) 18%, transparent); color: color-mix(in srgb, var(--c) 80%, var(--text)); }
.sev-tile .n { font-size: var(--fs-lg); font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; line-height: 1.2; }
.sev-tile .l { font-size: var(--fs-2xs); font-weight: var(--fw-semi); overflow-wrap: anywhere; hyphens: auto; }
/* zero: neutral tile with --muted text (an opacity of .55 put the number under 3:1, F-011) */
.sev-tile.zero { color: var(--muted); background: transparent; border-color: var(--border); }
a.sev-tile:hover { text-decoration: none; filter: brightness(1.05); border-color: var(--c); }
.delta { font-size: var(--fs-sm); font-weight: var(--fw-semi); font-variant-numeric: tabular-nums; letter-spacing: 0; }
/* worse in the text colour with its sign, better --ok (decision 24 and row 46: no red of Critical for a count) */
.delta.up { color: var(--text); } .delta.down { color: var(--ok); } .delta.zero { color: var(--muted); }
.delta.up.inv { color: var(--ok); } .delta.down.inv { color: var(--text); }

/* card */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: var(--s-3) var(--s-4);
             border-bottom: 1px solid var(--border); min-height: 46px; flex-wrap: wrap; }
.card-head h2 { display: flex; align-items: center; gap: 8px; font-size: var(--fs-card); letter-spacing: -.01em; }
.card-head .hint { color: var(--muted); font-size: var(--fs-sm); }
.card-body { padding: var(--s-4); }
.card-body.flush { padding: 0; }
.card-foot { padding: 10px var(--s-4); border-top: 1px solid var(--border); display: flex; gap: 10px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.list-foot { display: flex; align-items: center; gap: 8px; padding: 8px var(--s-4); border-top: 1px solid var(--border); flex-wrap: wrap; }
.section-title { font-size: var(--fs-xs); font-weight: var(--fw-semi); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 8px;
                 display: flex; align-items: center; gap: 6px; }

/* tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* R-147 (1.7.0, cause 5): with overflow-x the wrapper is the scroll container of the sticky headers, so in the long
   lists it scrolls itself (one screen high) and the headings stay; only from 1024 px (a second scroll on phones) */
@media (min-width: 1024px) { .table-wrap.tall { max-height: calc(100dvh - var(--topbar-h) - 24px); overflow: auto; } }
.t th { z-index: 1; }
table.t { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); } /* tabular figures: .num (Inter's tnum also widens hyphens) */
.t caption.sr { caption-side: top; }
/* column headings in sentence case (narrower than capitals in every language: German and French fit) */
.t th { text-align: left; font-size: var(--fs-xs); font-weight: var(--fw-semi); color: var(--muted); text-transform: none; letter-spacing: 0;
        padding: 7px var(--s-3); border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap; position: sticky; top: 0; }
.t th.right { text-align: right; }
/* row headers of key/value tables (<th scope="row">): a label cell, not a column heading */
.t th[scope="row"] { text-transform: none; letter-spacing: 0; font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--text);
  background: transparent; white-space: normal; position: static; vertical-align: top; text-align: left; }
.t th[scope="row"] .small { font-weight: 400; }
.t tr:last-child th[scope="row"] { border-bottom: 0; }
.t td { padding: 7px var(--s-3); border-bottom: 1px solid var(--border); vertical-align: middle; white-space: nowrap; line-height: 1.4; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.t tr.clickable { cursor: pointer; }
.t tr.selected td { background: var(--accent-soft) !important; }
.t .sevcell { width: 4px; padding: 0; }
.t .sevcell span { display: block; width: 3px; height: 26px; border-radius: var(--r-xs); margin-left: 6px; }
/* the title column takes the remaining space and is truncated: the numeric columns stay visible */
.t td.title { width: 100%; max-width: 0; min-width: 220px; white-space: normal; }
.t td.title .tt { color: var(--muted); font-size: var(--fs-xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.t .cve { font-family: var(--mono); font-weight: var(--fw-semi); font-size: var(--fs-xs); color: var(--text); }
.t .cvss { font-weight: var(--fw-semi); }
.card .t th:first-child, .card .t td:first-child { padding-left: var(--s-4); }
.card .t th:last-child, .card .t td:last-child { padding-right: var(--s-4); }
.card > .table-wrap:last-child table, .card > table:last-child { border-bottom-left-radius: var(--r-lg); }
.t.compact td { padding: 6px var(--s-3); }
.t .selcell, .t td.pick, .t th.pick { width: 28px; padding-right: 0; }
.t .selcell input, .t td.pick input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; vertical-align: middle; }
/* numeric links (scan #id): a 24 px target instead of 8×17 (WCAG 2.5.8, F-129) */
.t td.num > a:only-child { display: inline-block; min-width: 24px; min-height: 24px; line-height: 24px; text-align: center; }
.t td.actions-cell { width: 1%; padding-top: 2px; padding-bottom: 2px; }
.t tr.kbd-cur { outline: 2px solid var(--focus); outline-offset: -2px; }
.t tr:focus { outline: 2px solid var(--focus); outline-offset: -2px; }
details.data-table > summary { cursor: pointer; list-style: none; border-bottom: 0; }
details.data-table > summary::-webkit-details-marker { display: none; }
details.data-table[open] > summary { border-bottom: 1px solid var(--border); }

/* paginazione */
.pager { display: flex; align-items: center; gap: 8px; justify-content: space-between; flex-wrap: wrap; padding: 10px var(--s-4);
         border-top: 1px solid var(--border); font-size: var(--fs-sm); color: var(--muted); }
.pager-info b { color: var(--text); }
.pager-pages { display: inline-flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.pager .btn.sm { min-width: var(--btn-h-sm); padding: 0 7px; font-variant-numeric: tabular-nums; }
.pager .btn.cur { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--accent); }
.pager-gap { color: var(--faint); padding: 0 2px; }
.per-pick { display: inline-flex; align-items: center; gap: 6px; }

/* empty and loading states */
.empty { text-align: center; padding: 40px 20px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty .ic { width: 42px; height: 42px; border-radius: var(--r-lg); display: grid; place-items: center; background: var(--surface-2);
             color: var(--muted); border: 1px solid var(--border); margin-bottom: 4px; }
.empty h3 { color: var(--text); font-size: var(--fs-base); }
.empty p { max-width: 420px; margin: 0; }
.empty .row { justify-content: center; margin-top: 6px; }
.empty.sm { padding: 22px var(--s-4); }
.skeleton { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.skeleton i { display: block; height: 12px; border-radius: var(--r-xs); background: var(--surface-3); animation: pulse 1.2s infinite; }
.skeleton.row-skel { padding: 6px 0; flex-direction: row; }
.skeleton.row-skel i { flex: 1; height: 10px; }
.findings-results { transition: opacity .15s; }
.findings-results.is-loading { opacity: .55; pointer-events: none; }
.findings-results.is-loading .results-meta::after { content: ""; width: 14px; height: 14px; border: 2px solid var(--border-strong); border-top-color: var(--accent);
  border-radius: 50%; animation: spin .7s linear infinite; }

/* dialog and drawer */
dialog.modal { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 0; background: var(--surface); color: var(--text);
               width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 40px); box-shadow: var(--shadow-lg); }
dialog.modal::backdrop { background: var(--overlay); }
dialog.modal .card-body { max-height: calc(100vh - 170px); overflow-y: auto; }
.drawer-overlay { position: fixed; inset: 0; background: var(--overlay); z-index: var(--z-drawer-overlay); opacity: 0; pointer-events: none; transition: opacity .18s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: var(--z-drawer); width: min(640px, 100vw); background: var(--surface);
          border-left: 1px solid var(--border); box-shadow: var(--shadow-lg); transform: translateX(102%); transition: transform .2s ease, visibility 0s .2s;
          display: flex; flex-direction: column; visibility: hidden; }
body.drawer-open .drawer { transform: none; visibility: visible; transition: transform .2s ease; }
body.drawer-open .drawer-overlay { opacity: 1; pointer-events: auto; }
body.drawer-open { overflow: hidden; }
.drawer-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--border); min-height: 50px; }
.drawer-body { overflow-y: auto; flex: 1; overscroll-behavior: contain; }

/* toast */
#toasts { position: fixed; right: var(--s-4); bottom: var(--s-4); z-index: var(--z-toast); display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100vw - 32px)); }
.toast { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--err); box-shadow: var(--shadow-lg);
         border-radius: var(--r); padding: 10px var(--s-3); font-size: var(--fs-sm); animation: toast-in .18s ease; }
.toast.ok { border-left-color: var(--ok); }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }

/* filters and segmented controls */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--border); }
.filters .field { margin: 0; }
.filters .grow { flex: 1 1 220px; }
.filters-rest { display: contents; }
.filters-toggle { display: none; }
.seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--r-sm); overflow: hidden; height: var(--control-h); background: var(--surface); }
.seg label { display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; cursor: pointer; font-size: var(--fs-sm); font-weight: var(--fw-semi);
             color: var(--muted); border-right: 1px solid var(--border); user-select: none; position: relative; }
.seg label:last-child { border-right: 0; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label .d { width: 7px; height: 7px; border-radius: var(--r-xs); }
.seg label .n { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: var(--fw-medium); }
.seg label:has(input:checked) { background: var(--accent-soft); color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: -2px; }
.seg.period { height: var(--btn-h); }
.seg.period a { display: inline-flex; align-items: center; padding: 0 var(--s-3); font-size: var(--fs-sm); font-weight: var(--fw-semi); color: var(--muted);
                border-right: 1px solid var(--border); }
.seg.period a:last-child { border-right: 0; }
.seg.period a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.seg.period a.on { background: var(--accent-soft); color: var(--accent); }
.toggle-chip { display: inline-flex; align-items: center; gap: 6px; height: var(--control-h); padding: 0 11px; border: 1px solid var(--border-strong);
               border-radius: var(--r-sm); cursor: pointer; font-size: var(--fs-sm); font-weight: var(--fw-semi); color: var(--muted); background: var(--surface); position: relative; }
.toggle-chip input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-chip:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 1px; }
.toggle-chip:has(input:checked) { color: var(--kev); border-color: color-mix(in srgb, var(--kev) 45%, transparent); background: color-mix(in srgb, var(--kev) 9%, var(--surface)); }
.toggle-chip.chip-new:has(input:checked) { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: var(--accent-soft); }
.results-meta { display: flex; justify-content: space-between; align-items: center; padding: 8px var(--s-4); font-size: var(--fs-sm); color: var(--muted);
                border-bottom: 1px solid var(--border); gap: 10px; flex-wrap: wrap; min-height: 42px; }
.results-meta .export-links .btn { height: var(--btn-h-sm); }
.export-more { position: relative; }
.export-more > summary { list-style: none; } .export-more > summary::-webkit-details-marker { display: none; }
.export-more > .stack { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; gap: 6px; min-width: 11em;
  padding: 8px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); box-shadow: var(--shadow); }

/* ---------- 6. pages ---------- */

/* projects */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.proj { display: flex; flex-direction: column; color: inherit; transition: border-color .12s, box-shadow .12s; }
.proj:hover { border-color: var(--border-strong); box-shadow: var(--shadow); text-decoration: none; }
.proj .top { padding: 14px var(--s-4) 10px; display: flex; flex-direction: column; gap: 3px; }
.proj .name { font-weight: var(--fw-bold); font-size: var(--fs-md); color: var(--text); display: flex; align-items: center; gap: 8px; }
.proj .desc { color: var(--muted); font-size: var(--fs-sm); min-height: 18px; }
.proj .sec { padding: 10px var(--s-4); border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 7px; }
.proj .line { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--text-2); min-width: 0; }
.proj .line svg.i { color: var(--faint); }
.proj .line.err { color: var(--err); } .proj .line.err svg.i { color: var(--err); }
.proj .line.warn { color: var(--warn); } .proj .line.warn svg.i { color: var(--warn); }
.proj .meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.proj.archived { background: var(--surface-2); }
.proj.archived .name { color: var(--text-2); }

/* finding detail (drawer and page) */
.finding-page { max-width: 880px; }
.back-link { gap: 4px; margin-bottom: 10px; }
.fd { padding: 18px 20px 28px; display: flex; flex-direction: column; gap: 18px; }
.fd-title { display: flex; flex-direction: column; gap: 6px; }
.fd-badges { gap: 6px; }
/* 3.0: a badge of the finding's head may carry a phrase (the status of a resolved finding with its reason, «gelöst ·
   gruppiert mit den möglichen CVEs des Banners»): it wraps inside the card on a phone instead of reaching its edge.
   One line looks as before (a radius over half its height draws the pill); the dot and the icons keep their size */
.fd-badges .badge { white-space: normal; height: auto; min-height: 20px; padding-block: 2px; line-height: 1.2; text-align: left; }
.fd-badges .badge.sm { min-height: 18px; }
.fd-badges .badge:has(> .d) { border-radius: var(--r-lg); }
.fd-badges .badge > .d, .fd-badges .badge > .ic, .fd-badges .badge > svg.i { flex: none; }
.fd-title .cve { font-family: var(--mono); font-size: var(--fs-lg); font-weight: var(--fw-bold); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; overflow-wrap: anywhere; }
.fd-title .tt { color: var(--text-2); }
.fd-sec + .fd-sec, .fd > form.card + .fd-sec { border-top: 1px solid var(--border); padding-top: 16px; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.metric { padding: 10px var(--s-3); border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.metric:last-child { border-right: 0; }
.metric .k { font-size: var(--fs-2xs); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: var(--fw-semi); }
.metric .v { font-size: var(--fs-lg); font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; }
.metric .v.v-badge { font-size: var(--fs-md); padding-top: 3px; }
.metric .s { font-size: var(--fs-xs); color: var(--muted); }
.meter { height: 4px; border-radius: var(--r); background: var(--surface-3); overflow: hidden; margin-top: 4px; }
.meter span { display: block; height: 100%; border-radius: var(--r); }
.meter span:not([class*="bg-"]) { background: var(--accent); }   /* R-156: .bg-<severity> wins (CVSS bar) */
.fd-risk { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start;
           padding: var(--s-3) 14px; border-radius: var(--r); border: 1px solid color-mix(in srgb, var(--c) 30%, var(--border));
           background: color-mix(in srgb, var(--c) 6%, var(--surface)); }
.fd-risk-score { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 2px; min-width: 76px; }
.fd-risk-score .n { font-size: var(--fs-2xl); font-weight: var(--fw-bold); line-height: 1; color: color-mix(in srgb, var(--c) 82%, var(--text)); font-variant-numeric: tabular-nums; }
.fd-risk-score .of { color: var(--muted); font-size: var(--fs-sm); }
.fd-risk-score .lbl { grid-column: 1 / -1; font-size: var(--fs-xs); font-weight: var(--fw-semi); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-top: 4px; }
.fd-risk-body { display: flex; flex-direction: column; gap: 8px; padding-top: 6px; }
.fd-reasons { margin: 0; padding-left: 18px; font-size: var(--fs-sm); color: var(--text-2); display: flex; flex-direction: column; gap: 2px; }
.kv { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 7px 14px; font-size: var(--fs-sm); }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
pre.evidence { margin: 0; padding: 10px var(--s-3); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r);
               font-size: var(--fs-xs); line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 260px; overflow-y: auto; }
.refs { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.refs li { display: flex; gap: 6px; align-items: baseline; min-width: 0; }
.refs a { display: inline-flex; gap: 6px; align-items: center; overflow-wrap: anywhere; font-size: var(--fs-sm); }
.ref-link { display: inline-block !important; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ref-link b { font-weight: var(--fw-semi); }
.ref-path { color: var(--muted); }
.xrefs { margin-top: 8px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 2px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px; background: var(--border); }
.timeline li { --c: var(--border-strong); display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 10px; font-size: var(--fs-sm); position: relative; }
.timeline li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); margin-top: 5px; box-shadow: 0 0 0 3px var(--surface); }
.timeline li.tl-new { --c: var(--accent); } .timeline li.tl-confirmed { --c: var(--text); } .timeline li.tl-accepted { --c: var(--muted); }
.timeline li.tl-resolved { --c: var(--ok); } .timeline li.tl-false_positive { --c: var(--muted); }
.status-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.status-pick input { position: absolute; opacity: 0; pointer-events: none; }
.status-pick label { padding: 5px 10px; border: 1px solid var(--border-strong); border-radius: var(--r-pill); cursor: pointer; font-size: var(--fs-sm);
                     font-weight: var(--fw-semi); color: var(--text-2); background: var(--surface); }
.status-pick input:checked + label { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.status-pick input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 1px; }
.accept-until { display: none; }
form:has(input[name="status"][value="accepted"]:checked) .accept-until { display: flex; }
.conf-box { border-radius: var(--r); padding: 10px var(--s-3); font-size: var(--fs-sm); display: flex; gap: 9px; align-items: flex-start;
            background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); }
.conf-box > svg.i { margin-top: 1px; }
.conf-box .grow, .conf-box > div { flex: 1; min-width: 0; }   /* gate 11 of 2.4 (defect 1): the text block never widens the box */
.conf-box.high > svg.i { color: var(--ok); }
.conf-box.low { background: var(--surface-2); border-color: var(--border-strong); border-style: dashed; }
.conf-box.low > svg.i { color: var(--text-2); }
.conf-box.exploit-box { background: color-mix(in srgb, var(--exploit) 8%, var(--surface)); border-color: color-mix(in srgb, var(--exploit) 32%, transparent); }
.conf-box.exploit-box > svg.i { color: var(--exploit); }
.conf-box.eol-box { background: color-mix(in srgb, var(--eol) 8%, var(--surface)); border-color: color-mix(in srgb, var(--eol) 32%, transparent); }
.conf-box.eol-box > svg.i { color: var(--eol); }

/* finding list */
.bulkbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px var(--s-3); padding: 8px var(--s-4); border-bottom: 1px solid var(--border); background: var(--surface-2); }
.bulkbar.active { background: var(--accent-soft); }
.bulkbar .bulk-note { min-width: 220px; }
.bulkbar .bulk-until[hidden] { display: none; }
.t tbody.grp { border-top: 1px solid var(--border); }
.t tr.grp-head { cursor: pointer; background: var(--surface-2); }
/* 3.0: the line under the head of a group (action, owner, due date) wraps: the year of the due date was cut at 390 px */
.t tr.grp-head td.title .tt { white-space: normal; overflow: visible; }
.t tr.grp-head:hover td { background: var(--surface-3); }
.grp-caret { display: inline-flex; margin-right: 4px; color: var(--muted); transition: transform .12s; vertical-align: middle; }
tr.grp-head[aria-expanded="true"] .grp-caret { transform: rotate(90deg); }
.t tr.grp-child td.title { padding-left: 26px; }
.t tr.grp-more td { text-align: center; padding: 6px; }
.kbd-hint { padding: 8px var(--s-4); }
/* Columns of the finding list by priority (F-018). The breakpoints are on the width of the list itself (container
   query), so they hold with the sidebar open or collapsed. Always visible: selection, severity, vulnerability, host,
   risk, signals (KEV/exploit/EOL), status. Then, as the list narrows: Product goes first (it is in the title and in
   the detail), then EPSS (it is part of the risk), then CVSS and Seen; below 760 px the rows become stacked cards. */
.findings-results { container: findings / inline-size; }
.findings-t th .colhead-btn { padding: 8px; }
.findings-t td { padding-left: 8px; padding-right: 8px; }
.findings-t td.title { min-width: 190px; }
.findings-t td.c-host .truncate { max-width: 160px; }
.findings-t td.c-prod .truncate { max-width: 170px; }
.findings-t td.c-sig { white-space: normal; }
.findings-t td.c-sig .sigs { flex-wrap: wrap; min-width: 92px; max-width: 150px; }
/* R-144 (VIS-PRJ-01): a badge longer than the column («Correzione non ancora rilasciata», 209 px) wraps inside it
   instead of overflowing onto the Status column */
.findings-t td.c-sig .badge { white-space: normal; height: auto; min-height: 20px; padding-block: 2px; line-height: 1.2; max-width: 100%; text-align: left; }
@container findings (max-width: 1239.98px) { .findings-t .c-prod { display: none; } }
@container findings (max-width: 1059.98px) { .findings-t .c-epss { display: none; } }
@container findings (max-width: 939.98px) { .findings-t .c-cvss, .findings-t .c-seen { display: none; } }
@container findings (max-width: 759.98px) {
  .findings-t, .findings-t tbody { display: block; }
  .findings-t thead { display: none; }
  .findings-t tr { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto;
                   grid-template-areas: "sel sev title risk" "sel host host st" "sel sig sig cvss"; gap: 4px 10px;
                   padding: 10px var(--s-4); border-bottom: 1px solid var(--border); position: relative; }
  .findings-t td { display: block; padding: 0 !important; border: 0; min-width: 0; }
  .findings-t td.c-prod, .findings-t td.c-epss, .findings-t td.c-seen { display: none; }
  .findings-t td.selcell { grid-area: sel; padding-top: 2px !important; }
  .findings-t td.c-sev { grid-area: sev; }
  .findings-t td.title { grid-area: title; width: auto; max-width: none; min-width: 0; }
  /* 2.1 layout check: the title shrinks with the card, so its badges («4 CVE o comprobaciones») wrap inside it */
  .findings-t td.title .badge { white-space: normal; height: auto; min-height: 20px; padding-block: 2px; line-height: 1.2;
                                text-align: left; max-width: 100%; }
  .findings-t td.c-risk { grid-area: risk; }
  .findings-t td.c-host { grid-area: host; white-space: normal; }
  .findings-t td.c-st { grid-area: st; text-align: right; }
  .findings-t td.c-sig { grid-area: sig; }
  .findings-t td.c-cvss { grid-area: cvss; }
  .findings-t td.c-cvss::before { content: "CVSS "; color: var(--muted); font-size: var(--fs-xs); font-weight: var(--fw-medium); }
  .findings-t tr.grp-child { padding-left: 28px; }
  .findings-t tr.grp-more, .findings-t tr.grp-loading { display: block; }
  .card .findings-t td:first-child, .card .findings-t td:last-child { padding: 0 !important; }
  .findings-t td.c-cvss { display: block; }
  .findings-t td.c-sig .sigs { max-width: none; }
}
/* dashboard «Riskiest findings» and host «Open ports»: narrow cards, the text columns wrap instead of overflowing (F-012) */
.risky-t td.title { min-width: 150px; }
.risky-t td.title .badge.kev { margin-left: 4px; vertical-align: 1px; }
.ports-t td.c-pv { white-space: normal; min-width: 120px; }

/* scope preview */
.pv { border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.pv-head { padding: 7px 10px; background: var(--surface-2); border-bottom: 1px solid var(--border); font-size: var(--fs-xs); color: var(--muted);
           display: flex; gap: var(--s-3); flex-wrap: wrap; }
.pv-head b { color: var(--text); }
.pv-list { max-height: 320px; overflow-y: auto; }
.pv-row { display: grid; grid-template-columns: 28px 104px minmax(0, 1fr) auto; gap: 8px; padding: 5px 10px; font-size: var(--fs-sm);
          border-bottom: 1px solid var(--border); align-items: center; }
.pv-row:last-child { border-bottom: 0; }
.pv-row .ln { color: var(--faint); font-family: var(--mono); font-size: var(--fs-xs); text-align: right; }
.pv-row.bad { background: color-mix(in srgb, var(--err) 6%, transparent); }
/* PKG-08 (F-016, F-047): the readable reason of a blocked entry, and the warnings (skipped addresses, too large) */
.pv-row.warn { background: color-mix(in srgb, var(--warn) 7%, transparent); }
.pv-why { grid-column: 3 / -1; line-height: 1.45; }
.pv-why .i { vertical-align: -2px; }
.pv-foot { padding: 6px 10px; border-top: 1px solid var(--border); }
.c-warn { color: var(--alert-warn-text); }

/* Inventory tabs (1.5, 150:D14, inventory_hub.html): a row of links that wraps on narrow screens; the current one like
   the current tab of the organization settings */
.inv-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 var(--s-4); border-bottom: 1px solid var(--border); }
.inv-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; color: var(--text-2);
              font-weight: var(--fw-medium); border-bottom: 2px solid transparent; border-radius: var(--r-sm) var(--r-sm) 0 0; }
.inv-tabs a:hover { background: var(--surface-2); text-decoration: none; }
.inv-tabs a svg.i { flex: none; color: var(--muted); }
.inv-tabs a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); border-bottom-color: var(--accent); }
.inv-tabs a[aria-current="page"] svg.i { color: currentColor; }

/* settings */
/* sticky section navigation (static/settings-nav.js): a left column from 1100px, a horizontal bar below */
.settings { --settings-bar-h: 0px; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--s-6); align-items: start; }
.settings-side { position: sticky; top: calc(var(--topbar-h) + 20px); display: flex; flex-direction: column; gap: 10px;
                 max-height: calc(100vh - var(--topbar-h) - 40px); overflow-y: auto; scrollbar-width: thin; }
.settings-find .input { width: 100%; }
.settings-nav { display: flex; flex-direction: column; gap: 2px; }
.settings-nav a { padding: 6px 10px; border-radius: var(--r-sm); color: var(--text-2); font-weight: var(--fw-medium);
                  border-left: 2px solid transparent; overflow-wrap: anywhere; }
.settings-nav a:hover { background: var(--surface-2); text-decoration: none; }
.settings-nav a[aria-current="true"] { background: var(--accent-soft); color: var(--accent); border-left-color: var(--accent); }
.settings-nav a[hidden] { display: none; }
.settings-empty { margin: 0; padding: 0 10px; }
/* 2.0 (directives 1, 10): one project in the organization: one settings page in two groups, «Scans and findings»
   and «Organization», each under its own heading (settings.html, org_settings.html) */
.settings-group { margin: 6px 0 -4px; padding: 0 10px; font-size: var(--fs-2xs); font-weight: var(--fw-semi);
                  letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.settings > .settings-nav { position: sticky; top: calc(var(--topbar-h) + 20px); }  /* Help page: nav without the side column */
.settings .stack > [id] { scroll-margin-top: calc(var(--topbar-h) + var(--settings-bar-h) + 16px); }
.settings section { scroll-margin-top: calc(var(--topbar-h) + var(--settings-bar-h) + 16px); }
.settings .stack > [hidden] { display: none; }
.settings .card-foot { justify-content: space-between; }
@media (max-width: 1099.98px) {
  .settings { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
  .settings-side { top: var(--topbar-h); z-index: calc(var(--z-sticky) - 1); max-height: none; overflow: visible;
                   flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 10px;
                   padding: 8px 0;
                   background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px);
                   border-bottom: 1px solid var(--border); }
  .settings-find { flex: 0 1 220px; min-width: 160px; }
  .settings-nav { flex: 1 1 320px; min-width: 0; flex-direction: row; gap: 4px; overflow-x: auto; scrollbar-width: none;
                  overscroll-behavior-x: contain; }
  .settings-nav::-webkit-scrollbar { display: none; }
  .settings-nav[data-fade="end"] { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .settings-nav[data-fade="start"] { -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%); mask-image: linear-gradient(90deg, transparent, #000 12%); }
  .settings-nav[data-fade="both"] { -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
  .settings-nav a { white-space: nowrap; border-left: 0; border-bottom: 2px solid transparent; border-radius: var(--r-sm) var(--r-sm) 0 0; }
  .settings-nav a[aria-current="true"] { border-bottom-color: var(--accent); }
  .settings-empty { flex-basis: 100%; padding: 0; }
  .settings-group { flex: 0 0 auto; margin: 0; padding: 0; }
  .settings > .settings-nav { top: var(--topbar-h); z-index: calc(var(--z-sticky) - 1); padding: 8px 0; background: var(--bg);
                              -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
}

/* assets and package inventory */
.host { overflow: hidden; }
.port { font-family: var(--mono); font-weight: var(--fw-semi); white-space: nowrap; }
.inv-panel { border-top: 1px solid var(--border); padding: 10px var(--s-4) var(--s-3); display: flex; flex-direction: column; gap: 6px; }
.inv-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inv-head svg.i { color: var(--faint); }
.inv-title { font-weight: var(--fw-semi); font-size: var(--fs-sm); }
.inv-actions { display: inline-flex; gap: 6px; flex-wrap: nowrap; }
.inv-upload summary { cursor: pointer; color: var(--muted); }
dialog.modal.inv-dialog { width: min(780px, calc(100vw - 24px)); }
.textarea.inv-script { min-height: 260px; white-space: pre; overflow: auto; font-size: var(--fs-xs); }

/* audit */
.detail-pairs { display: flex; flex-wrap: wrap; gap: 4px var(--s-3); font-size: var(--fs-xs); }
.detail-pairs span { color: var(--muted); }
.detail-pairs code { color: var(--text-2); overflow-wrap: anywhere; white-space: pre-wrap; }
.audit-t td.c-detail { min-width: 240px; white-space: normal; }
.audit-t summary { cursor: pointer; }

/* diff, trend, charts */
.diff-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--border); }
.diff-grid.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.diff-cell { padding: var(--s-3) var(--s-4); border-right: 1px solid var(--border); }
.diff-cell:last-child { border-right: 0; }
.diff-cell .n { font-size: var(--fs-xl); font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; }
.diff-cell .n .delta { font-size: var(--fs-xl); font-weight: var(--fw-bold); }
.diff-cell .l { font-size: var(--fs-xs); color: var(--muted); }
.diff-cell.plus .n { color: var(--text); } .diff-cell.minus .n { color: var(--ok); }
.diff-list { list-style: none; margin: 0; padding: 4px 0; }
.diff-list li { display: flex; gap: 8px; align-items: center; padding: 5px var(--s-4); font-size: var(--fs-sm); min-width: 0; }
.diff-list li.wrap { flex-wrap: wrap; }
.diff-list .sign { font-family: var(--mono); font-weight: var(--fw-bold); width: 12px; text-align: center; }
.diff-list .sign.plus { color: var(--text); } .diff-list .sign.minus { color: var(--ok); } .diff-list .sign.neutral { color: var(--muted); }
.diff-list .change { min-width: 0; overflow-wrap: anywhere; }
.compare-pick { align-items: flex-end; }
.compare-pick .field { min-width: 200px; }
.trend-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.legend { display: flex; flex-wrap: wrap; gap: 4px var(--s-3); font-size: var(--fs-xs); color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 9px; height: 9px; border-radius: var(--r-xs); display: inline-block; }
.chart-wrap { padding: 10px var(--s-3) 6px; }
.trend-grid .chart-wrap { padding: 8px 8px 4px; }
.chart-wrap .only-sm { display: none; }
svg.chart { display: block; width: 100%; height: auto; overflow: visible; }
.ch-grid { stroke: var(--border); stroke-width: 1; }
.ch-grid.base { stroke: var(--border-strong); }
.ch-ax { fill: var(--muted); font-size: var(--fs-xs); font-family: var(--font); font-variant-numeric: tabular-nums; }
/* stacked severity areas: tinted bands with a full-colour top edge (F-093) */
.ch-area { stroke: none; }
.ch-edge { fill: none; stroke-width: 1.75; stroke-linejoin: round; }
.ch-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ch-fill { opacity: .14; }
.ch-sev-critical { fill: var(--sev-critical-fill); stroke: var(--sev-critical); } .ch-sev-high { fill: var(--sev-high-fill); stroke: var(--sev-high); }
.ch-sev-medium { fill: var(--sev-medium-fill); stroke: var(--sev-medium); } .ch-sev-low { fill: var(--sev-low-fill); stroke: var(--sev-low); }
.ch-sev-info { fill: var(--sev-info-fill); stroke: var(--sev-info); }
.ch-edge.ch-sev-critical, .ch-edge.ch-sev-high, .ch-edge.ch-sev-medium, .ch-edge.ch-sev-low, .ch-edge.ch-sev-info { fill: none; }
.ch-c-accent { fill: var(--accent); stroke: var(--accent); } .ch-c-kev { fill: var(--kev); stroke: var(--kev); }
.ch-line.ch-c-accent, .ch-line.ch-c-kev { fill: none; }
.ch-dot { stroke: var(--surface); stroke-width: 2; }
.ch-hit rect { fill: transparent; }
.ch-hit line { stroke: var(--text-2); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; pointer-events: none; }
.ch-hit:hover line, .ch-hit:focus line { opacity: .6; }
.ch-hit:hover rect, .ch-hit:focus rect { fill: color-mix(in srgb, var(--text) 4%, transparent); }
.ch-hit:focus { outline: none; }
.ch-hit:focus-visible line { opacity: 1; }
.hbars { display: flex; flex-direction: column; gap: 8px; }
.hbar { display: grid; grid-template-columns: 120px minmax(0, 1fr) 84px; gap: 10px; align-items: center; font-size: var(--fs-sm); }
.hbar .l { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar .track { height: 12px; background: var(--surface-2); border-radius: var(--r-xs); overflow: hidden; display: block; }
.hbar .fill { display: block; height: 100%; border-radius: 0 3px 3px 0; }
.hbar .stackbar { display: flex; height: 100%; gap: 2px; }
.hbar .stackbar span { display: block; height: 100%; min-width: 3px; }
.hbar .stackbar span:last-child { border-radius: 0 3px 3px 0; }
.hbar .v { text-align: right; white-space: nowrap; }
.trend-card { display: flex; flex-direction: column; gap: 8px; color: inherit; }
.trend-card:hover { text-decoration: none; background: color-mix(in srgb, var(--surface-2) 50%, transparent); }
.trend-card .tc-nums { display: flex; gap: var(--s-6); }
.trend-card .v { font-size: var(--fs-xl); font-weight: var(--fw-bold); letter-spacing: -.02em; }
svg.spark { display: block; width: 100%; height: 48px; }

/* login, account and users */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: var(--s-6) var(--s-4);
             background: radial-gradient(1100px 520px at 50% -12%, color-mix(in srgb, var(--navy-600) 16%, transparent), transparent 70%), var(--bg); }
.auth { width: min(380px, 100%); }
.auth .card-body { padding: 26px 26px 22px; }
/* sign-in, setup, password pages: the card opens with a navy band carrying the mark and the wordmark (110:D5, F-160) */
.auth .card { overflow: hidden; box-shadow: var(--shadow-lg); }
.auth .card-body > .brand:first-child { justify-content: center; margin: -26px -26px 22px; padding: 22px 20px 20px;
  font-size: var(--fs-lg); letter-spacing: -.01em; color: #f3f5fa;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-950)); border-bottom: 2px solid var(--gold); }
.auth .brand-mark { width: 34px; height: 34px; border-radius: var(--r); }
.auth .brand-logo { display: block; height: 36px; width: auto; }
.auth img.brand-mark { border-radius: 0; }
.auth .brand-mark svg.i { width: 19px; height: 19px; }
.auth .lead { text-align: center; color: var(--muted); margin-bottom: 20px; }
.auth .btn { width: 100%; height: 36px; }
.auth.wide { width: min(640px, 100%); }
.eula-title { display: block; font-weight: var(--fw-semi); margin-bottom: 6px; }
.eula-text { max-height: 280px; overflow: auto; margin: 0 0 6px; padding: 10px 14px; overflow-wrap: anywhere;
             font-size: var(--fs-sm); line-height: 1.55; color: var(--text-2);
             background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm); }
.eula-text p { margin: 0 0 10px; }
.eula-text p:last-child { margin-bottom: 0; }
.eula-text strong { color: var(--text); }
.eula-text:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.eula-field .help { margin-bottom: 8px; }
.eula-page { width: min(860px, 100%); }
.eula-page .eula-text { max-height: none; font-size: var(--fs-base); padding: 18px 22px; }
.auth-foot { text-align: center; margin-top: 14px; font-size: var(--fs-xs); color: var(--muted); }
.auth-alt { margin-top: 10px; text-align: center; }
.auth .auth-alt .btn { width: auto; height: var(--btn-h-sm); }
.auth-code { font-family: var(--mono); letter-spacing: .12em; }
.auth-inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0 0; }
.auth-inline .input { flex: 1 1 140px; min-width: 0; }
.auth-inline .select { flex: 1 1 140px; min-width: 0; max-width: 100%; }   /* R-161: a long organization name widened the page */
.auth-inline .input.auth-code { flex: 0 1 120px; }
.auth-details { margin-top: var(--s-3); }
.auth-details summary { cursor: pointer; color: var(--text-2); font-size: var(--fs-sm); }
.auth-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: var(--s-3); }
.auth-qr { margin-top: 8px; display: block; width: fit-content; background: #fff; padding: 6px; border-radius: var(--r); border: 1px solid var(--border); line-height: 0; }
.auth-secret { display: inline-block; padding: 2px 6px; border-radius: var(--r-xs); background: var(--surface-2); border: 1px solid var(--border);
               color: var(--text); user-select: all; overflow-wrap: anywhere; }
.auth-token { display: block; margin-top: 6px; }
.auth-uri { display: block; margin-top: 6px; font-size: var(--fs-xs); color: var(--muted); overflow-wrap: anywhere; user-select: all; }
.auth-once { margin-bottom: var(--s-4); border-color: color-mix(in srgb, var(--warn) 45%, var(--border)); }
.auth-codes { columns: 2; gap: var(--s-6); margin: var(--s-3) 0 0; padding-left: var(--s-6); font-size: var(--fs-base); line-height: 1.9; user-select: all; }
.auth-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.auth-actions form { margin: 0; }
.auth-row3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.auth-row4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.token-scopes { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.token-scopes legend { float: left; margin-right: 6px; padding: 0; }
.auth-grid { align-items: start; }

/* notification rules and scan plans */
.sched-fields { border: 0; margin: 0; padding: 0; min-width: 0; }
.sched-fields[disabled] { opacity: .7; }
/* scan plans (app/plans, _plans_card.html): weekly/monthly fields only for their frequency, no fields without one */
.plan-form .only-weekly, .plan-form .only-monthly { display: none; }
.plan-form:has(#pl-freq option[value="weekly"]:checked) .only-weekly { display: block; }
.plan-form:has(#pl-freq option[value="monthly"]:checked) .only-monthly { display: block; }
.plan-form:has(#pl-freq option[value="none"]:checked) .plan-when { display: none; }
.plan-form-title { margin: 0; font-size: var(--fs-card); }
.plan-group { border: 1px solid var(--border); border-radius: var(--r); padding: 10px var(--s-3) 4px; margin: 0; min-width: 0; }
.plan-group legend { padding: 0 6px; font-weight: var(--fw-semi); font-size: var(--fs-sm); }
.plans-table tr:target, .plans-table tr.plan-hit { background: var(--accent-soft); }
.plans-table .muted-row td { color: var(--muted); }
.plans-table td { white-space: normal; }
.plans-table td:first-child { min-width: 130px; }
.plans-table .actions-cell { white-space: nowrap; }
.plans-table .actions-cell .btn { margin-left: 2px; }
.notify-ch { border: 1px solid var(--border); border-radius: var(--r); padding: 10px var(--s-3); }
.notify-ch .row { flex-wrap: wrap; }
.notify-new .nk { display: none; }
.notify-new:has(#n-kind option[value="email"]:checked) .nk-email,
.notify-new:has(#n-kind option[value="telegram"]:checked) .nk-telegram,
.notify-new:has(#n-kind option[value="webhook"]:checked) .nk-webhook { display: block; }

/* lifecycle: scans, retention, danger zone */
.scan-flash { padding: 10px var(--s-4) 0; }
.scan-flash + .table-wrap, .scan-flash + form + .table-wrap { margin-top: 10px; border-top: 1px solid var(--border); }
.retention-preview { border: 1px solid var(--border); border-radius: var(--r); padding: 10px var(--s-3); background: var(--surface-2); }
.preview-list { margin: 4px 0 0; padding-left: 18px; }
.preview-list li { margin: 2px 0; }
.danger-zone { border-color: color-mix(in srgb, var(--err) 40%, var(--border)); }
.danger-zone .card-head h2 { color: var(--err); }
.danger-form { display: flex; gap: var(--s-3); align-items: flex-end; flex-wrap: wrap; }
.danger-form .field { flex: 1 1 260px; }

/* ---------- 7. responsive ---------- */
@media (max-width: 1200px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid.dash { grid-template-columns: minmax(0, 1fr); }
  .diff-grid.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .diff-grid.six .diff-cell { border-bottom: 1px solid var(--border); }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; z-index: var(--z-sidebar); left: 0; top: 0; bottom: 0; width: 260px; transform: translateX(-102%);
             transition: transform .2s ease, visibility 0s .2s; box-shadow: var(--shadow-lg); visibility: hidden; }
  body.nav-open .sidebar { transform: none; visibility: visible; transition: transform .2s ease; }
  body.nav-open .drawer-overlay { opacity: 1; pointer-events: auto; z-index: var(--z-nav-overlay); }
  .menu-btn { display: inline-flex; }
  .topbar { padding: 0 var(--s-3) 0 8px; gap: 8px; }
  .content { padding: var(--s-4) var(--s-4) 40px; }
  .grid.cols-2, .grid.cols-3 { grid-template-columns: minmax(0, 1fr); }
  .diff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .diff-cell:nth-child(2) { border-right: 0; }
  .diff-cell:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .trend-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-row3, .auth-row4 { grid-template-columns: minmax(0, 1fr); }
  .auth-codes { columns: 1; }
}
@media (max-width: 700px) {
  .chart-wrap .only-lg { display: none; }
  .chart-wrap .only-sm { display: block; }
}
@media (max-width: 640px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi.wide { grid-column: span 2; }
  .form-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .proj-grid { grid-template-columns: minmax(0, 1fr); }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .kv { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .kv dd { margin-bottom: 8px; }
  .hide-sm { display: none !important; }
  .page-head h1 { font-size: var(--fs-lg); }
  .page-head { margin-bottom: var(--s-3); }
  .sev-tiles { gap: 4px; }
  .sev-tile { padding: 5px; }
  .sev-tile .n { font-size: var(--fs-md); }
  .gsearch { flex-basis: 150px; }
  .crumbs > a, .crumbs > .sep, .crumbs > .crumb-lead { display: none; }      /* on mobile only the current page */
  .seg { flex-wrap: wrap; height: auto; max-width: 100%; }
  .seg label { height: 32px; }
  .filters .field { flex: 1 1 140px; }
  .diff-grid.six { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hbar { grid-template-columns: 90px minmax(0, 1fr) auto; }   /* R-161: «0,1 g · 15.913» stays in the card */
  .sev-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .compare-pick .field { min-width: 0; flex: 1 1 140px; }
  .fd { padding: var(--s-4) var(--s-4) var(--s-6); }
  .fd-risk { grid-template-columns: minmax(0, 1fr); }
  .drawer { width: 100vw; }
  dialog.modal { width: 100vw; max-width: 100vw; max-height: 100dvh; margin: auto 0 0; border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .bulkbar .bulk-note { min-width: 0; flex: 1 1 100%; }
  /* banners: compact on phones, stacked ones closer together (F-049) */
  .banner { margin-bottom: var(--s-3); }
  .banner + .banner { margin-top: calc(-1 * var(--s-1) - 2px); }
  .banner .alert { padding: 7px 10px; gap: 8px; font-size: var(--fs-sm); line-height: 1.4; }
  .banner .alert svg.i { width: 14px; height: 14px; }
  .banner .alert .grow { flex-basis: 200px; }
  .bulkbar:not(.active) > :not(label):not(input[type="hidden"]) { display: none; }   /* actions only after a selection */

  /* filters of the finding list: search + «Filters» button that opens the rest */
  .filters-toggle { display: inline-flex; align-self: flex-end; }
  .filters .field.grow { flex: 1 1 0; }
  .filters-rest { display: none; }
  .filters.filters-open .filters-rest { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; }

  /* audit → stacked rows */
  .audit-t, .audit-t tbody { display: block; }
  .audit-t thead { display: none; }
  .audit-t tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "act when" "who proj" "detail detail";
                gap: 4px 10px; padding: 10px var(--s-4); border-bottom: 1px solid var(--border); }
  .audit-t td { display: block; padding: 0 !important; border: 0; min-width: 0; white-space: normal; }
  .audit-t td.c-when { grid-area: when; text-align: right; } .audit-t td.c-act { grid-area: act; }
  .audit-t td.c-who { grid-area: who; } .audit-t td:nth-child(4) { grid-area: proj; text-align: right; }
  .audit-t td.c-detail { grid-area: detail; min-width: 0; }

  /* generic stackable tables */
  table.stack-sm, table.stack-sm tbody { display: block; }
  table.stack-sm thead { display: none; }
  table.stack-sm tr { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; padding: 8px var(--s-3); border-bottom: 1px solid var(--border); }
  table.stack-sm td { display: block; padding: 0 !important; border: 0; white-space: normal; min-width: 0; }

  /* data tables of 4+ columns (tables.js labelize, F-158): one stacked block per row, «column: value» lines, the
     first cell as the title of the block; no sideways scrolling */
  table.t.rt, table.t.rt tbody { display: block; }
  table.t.rt thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.t.rt tr { display: block; padding: 10px var(--s-4); border-bottom: 1px solid var(--border); }
  table.t.rt tr:last-child { border-bottom: 0; }
  /* R-150 (1.7.0, cause 7): the label is absolutely placed on the left and the whole content of the cell flows on
     the right (a grid put the second child back under the label and stretched the badges into bars) */
  table.t.rt td { display: block; position: relative; padding: 2px 0 2px calc(max(84px, 38%) + 8px) !important; border: 0;
                  white-space: normal; min-width: 0; max-width: none; width: auto; overflow-wrap: anywhere; text-align: left; }
  table.t.rt td::before { content: attr(data-label); color: var(--muted); font-size: var(--fs-xs); font-weight: var(--fw-medium);
                          position: absolute; left: 0; top: 4px; width: max(84px, 38%); overflow-wrap: anywhere; }
  table.t.rt td:first-child, table.t.rt td.rt-full, table.t.rt td:not([data-label]), table.t.rt td[data-label=""] { display: block; padding-left: 0 !important; }
  table.t.rt td:first-child::before, table.t.rt td.rt-full::before, table.t.rt td[data-label=""]::before { content: none; }
  table.t.rt td:first-child { font-weight: var(--fw-semi); padding-bottom: 4px !important; }
  table.t.rt td.selcell, table.t.rt td.pick { display: inline-block; }
  table.t.rt td .truncate { white-space: normal; }
  table.t.rt td .nowrap { white-space: normal; }   /* the risk per site of the portfolio, long site names */
  /* 2.0 (200:P25): an address with its site and alias wraps in the stacked row; a small form of a cell (the addressing
     of a network) takes the width of the cell, not 18em */
  table.t.rt td .asset-host { white-space: normal; }
  table.t.rt td > form.form-row { min-width: 0; }
  table.t.rt td > form.form-row > .field { flex: 1 1 9em; min-width: 0; }
  /* review-p13 C2/B2/C3: stacked cells only (rt is on the table at every width): the badges wrap, the elastic title
     column of the desktop gives up its width, the buttons wrap inside the card */
  table.t.rt td .badge { white-space: normal; height: auto; min-height: 20px; padding-block: 2px; line-height: 1.2;
                         text-align: left; max-width: 100%; }
  table.t.rt td.title { width: auto; max-width: none; min-width: 0; }
  table.t.rt td.title .tt { white-space: normal; }
  table.t.rt td .btn { white-space: normal; height: auto; min-height: var(--btn-h-sm); max-width: 100%; text-align: left; }
  .table-wrap:has(> table.t.rt) { overflow-x: visible; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .sidebar, .topbar, .drawer, .drawer-overlay, #toasts, #loadbar, .skip-link, .bulkbar, .filters, .pager, .kbd-hint, .copy-btn { display: none !important; }
  .shell { display: block; }
  .content { padding: 0; max-width: none; }
  .card { box-shadow: none; }
  .t th { position: static; }
}

/* ===== Functional analyst: remediation, exceptions, assets, host events, vault, guide ===== */
.rem-kpis, .kpis.rem-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { .rem-kpis, .kpis.rem-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi .v.err { color: var(--err); } .kpi .v.warn { color: var(--warn); }
.err-text { color: var(--err); } .warn-text { color: var(--warn); } .danger-text { color: var(--err); }
.rem-tabs { display: flex; gap: 4px; flex-wrap: wrap; padding: 10px 12px 0; border-bottom: 1px solid var(--border); }
.rem-tabs .tab { padding: 6px 10px; border-radius: var(--r-sm) 6px 0 0; color: var(--muted); text-decoration: none; font-size: var(--fs-sm); border-bottom: 2px solid transparent; }
.rem-tabs .tab.active { color: var(--text); border-bottom-color: var(--accent); font-weight: var(--fw-semi); }
.rem-tabs .tab .count { font-size: var(--fs-2xs); color: var(--faint); margin-left: 2px; }
tr.overdue td:first-child { box-shadow: inset 3px 0 0 var(--err); }
.rem-detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s-4); align-items: start; }
@media (max-width: 980px) { .rem-detail { grid-template-columns: 1fr; } }
.rem-list, .ev-list { list-style: none; margin: 0; padding: 0; }
.rem-list li, .ev-list li { display: flex; align-items: center; gap: 10px; padding: 9px 16px; border-top: 1px solid var(--border); flex-wrap: wrap; min-width: 0; }
.rem-list li .grow { flex: 1 1 200px; min-width: 0; }
.rem-list li.overdue { box-shadow: inset 3px 0 0 var(--err); }
.ev-list .ev-svc { flex-basis: 100%; padding-left: 2px; }
.badge.ps-open { background: var(--surface-2, transparent); } .badge.ps-in_progress { color: var(--accent, inherit); }
.badge.ps-done { color: var(--ok, inherit); } .badge.ps-postponed { color: var(--muted); }
/* asset criticality (class from the crit_class filter, F-153): same badge as the severities, medium and low neutral */
.badge.crit-critical { --c: var(--sev-critical); } .badge.crit-high { --c: var(--sev-high); }
.badge.crit-medium { --c: var(--muted); } .badge.crit-low { --c: var(--faint); }
.asset-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0 0 8px; }
.asset-dl dt { color: var(--muted); font-size: var(--fs-sm); } .asset-dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.help-page .card-body p { margin: 0 0 10px; } .help-page .card-body table { margin: 6px 0 12px; }
.vault-card details > summary { list-style: none; display: inline-flex; } .vault-card details > summary::-webkit-details-marker { display: none; }
/* ===== end of the analyst block ===== */

/* ===== Clickable table headers: sorting and filtering (colhead.js, tables.js) ===== */
th.colhead { padding: 0; }
.colhead-btn { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 6px; width: 100%;
  padding: 8px 12px; cursor: pointer; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; }
th.right .colhead-btn { justify-content: flex-end; }
.colhead-btn:hover { color: var(--text); background: color-mix(in srgb, var(--surface-3) 60%, transparent); }
.colhead-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; border-radius: var(--r-xs); }
.colhead-ind { font-size: var(--fs-2xs); color: var(--faint); }
th.is-sorted .colhead-ind, th[aria-sort] .colhead-ind, th.is-filtered .colhead-ind { opacity: 1; color: var(--accent); }
th.is-filtered .colhead-btn > span:first-child, th.is-filtered .colhead-btn { color: var(--accent); }
.colmenu { position: absolute; z-index: 1200; min-width: 210px; max-width: 300px; max-height: 60vh; overflow: auto;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-lg);
  box-shadow: 0 12px 32px rgba(0,0,0,.28); padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.colmenu hr { border: 0; border-top: 1px solid var(--border); margin: 4px 0; }
.colmenu-item { all: unset; box-sizing: border-box; padding: 7px 10px; border-radius: var(--r-sm); cursor: pointer; font-size: var(--fs-sm);
  color: var(--text); white-space: normal; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  line-height: 1.25; overflow-wrap: anywhere; }   /* R-154: two lines, the count in front (tables.js) */
.colmenu-item .colmenu-n { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 4px; }
.colmenu-item:hover, .colmenu-item:focus-visible { background: var(--accent-soft); }
.colmenu-item:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }  /* the tint alone was ≈1.1:1 (F-130) */
.colmenu-label { padding: 4px 10px 2px; }
.colmenu-field { display: flex; flex-direction: column; gap: 6px; padding: 6px 8px; }
.table-filter-note { display: flex; align-items: center; gap: 8px; padding: 6px 16px; }

/* ===== Closing reason of the resolved findings ===== */
/* resolved without a fix of ours (already fixed by the distribution, not applicable): a hollow green dot (the dashed
   outline is the confidence's, decision 24) */
.badge.fr-distro_patched .d, .badge.fr-not_applicable .d { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ok); }

/* ===== Compact asset card: two label/value pairs per row on wide screens ===== */
@media (min-width: 900px) {
  .asset-dl { grid-template-columns: max-content minmax(0, 1fr) max-content minmax(0, 1fr); }
  .asset-dl dt:nth-last-of-type(1):nth-of-type(5), .asset-dl dt:nth-of-type(5) + dd { grid-column: span 3; }
}

/* ===== Usability review ===== */
.diff-cell.is-zero .n { color: var(--muted); }
/* long versions in narrow tables (host page, open ports): they wrap instead of overflowing the card */
.t .chip.ux-ver { white-space: normal; overflow-wrap: anywhere; max-width: 100%; display: inline; line-height: 1.6; }
.filters-more { width: 100%; }
.filters-more > summary { cursor: pointer; font-size: var(--fs-sm); color: var(--text-2); padding: 4px 0; list-style: none; display: inline-flex; gap: 6px; align-items: center; }
.filters-more > summary::-webkit-details-marker { display: none; }
.filters-more > summary .count { background: var(--accent-soft); color: var(--accent); border-radius: var(--r-pill); padding: 0 7px; font-size: var(--fs-xs); }
.filters-more[open] > summary { margin-bottom: 8px; }
.filters-more .filters-adv { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; }
.ux-next-list { list-style: none; margin: 0; padding: 0; }
.ux-next-list > li { padding: 10px 16px; border-top: 1px solid var(--border); }
.ux-next-list > li:first-child { border-top: 0; }
.ux-next-list .ux-progress { width: 90px; }
.filters .sort-row { display: flex; gap: 6px; align-items: center; }
.filters .sort-row #f-sort { width: auto; min-width: 210px; }
.filters .sort-row #f-dir { width: 64px; }

/* ===== Language selector ===== */
.lang-switch { display: flex; gap: 2px; padding: 6px 12px; flex-wrap: wrap; }
.lang-switch a { font-size: var(--fs-2xs); font-weight: var(--fw-semi); letter-spacing: .04em; padding: 3px 7px; border-radius: var(--r-sm); color: var(--muted); text-decoration: none; }
.lang-switch a:hover { background: var(--surface-2); color: var(--text); }
.lang-switch a.active { background: var(--accent-soft); color: var(--accent); }
.auth .lang-switch { justify-content: center; margin-top: 10px; }

/* agents list of the Inventory agent card: per-state filter chips (app/templates/_agents_list.html) */
.state-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.state-chips .chip-btn { cursor: pointer; border: 1px solid var(--border); gap: 6px; padding: 3px 8px; font: inherit; font-size: var(--fs-sm); }
.state-chips .chip-btn[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }

/* PKG-08 (F-015): «results not final» banner of the dashboard and the findings page */
.results-state:not(:empty) { margin-bottom: var(--s-4); }
.results-pending .i { flex: none; }
/* PKG-08 (F-016): a refused or failed scan says why and what to do */
.scan-stop .card-head h2 .i { color: var(--err); }
.scan-stop-why { font-size: var(--fs-card); line-height: 1.5; color: var(--text); }
.scan-stop-why p + p { margin-top: 6px; color: var(--text-2); font-size: var(--fs-sm); }
/* gate 11 of 2.4 (defect 7): the notes of a scan, one per line (scan_detail.html), the first one in the list (_scans_list.html) */
.scan-notes { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; overflow-wrap: anywhere; }
.scan-note { overflow-wrap: anywhere; }
/* PKG-08 (F-040): the decision form and the bulk bar show a field only with the status that needs it, every
   control has a visible label, and «required» is written where it applies */
.fp-reason, .req-accept { display: none; }
form:has(input[name="status"][value="false_positive"]:checked) .fp-reason { display: flex; }
form:has(input[name="status"][value="accepted"]:checked) .req-accept { display: inline; }
.req { font-weight: 400; color: var(--muted); font-size: var(--fs-xs); }
.bulkbar { align-items: flex-end; }
.bulkbar .bulk-f { display: flex; flex-direction: column; gap: 3px; }
.bulkbar .bulk-l { font-size: var(--fs-xs); font-weight: var(--fw-semi); color: var(--text-2); }
.bulkbar .bulk-f-fp, .bulkbar .bulk-f-until, .bulkbar .req-accept { display: none; }
.bulkbar:has(select[name="bulk_status"] option[value="false_positive"]:checked) .bulk-f-fp { display: flex; }
.bulkbar:has(select[name="bulk_status"] option[value="accepted"]:checked) .bulk-f-until { display: flex; }
.bulkbar:has(select[name="bulk_status"] option[value="accepted"]:checked) .req-accept { display: inline; }
.bulkbar > label.check { align-self: center; }
.smtp-check { color: var(--alert-ok-text); display: flex; gap: 6px; align-items: center; }
/* PKG-08 (F-046): troubleshooting of an offline node, inside its status cell */
.node-help-row > td { white-space: normal; padding-top: 0; }
tr:has(+ .node-help-row) > td { border-bottom: 0; }
.node-help { max-width: 760px; }
.t td.node-ver { white-space: normal; min-width: 170px; max-width: 280px; }
.t td.node-ver .mono { overflow-wrap: anywhere; }
.t td.node-cell { white-space: normal; min-width: 160px; max-width: 240px; }
/* 3.0 (layout gate): «Save» goes under the field of the labels when the column is narrow */
.node-labels { flex-wrap: wrap; }
.node-labels .input { width: 130px; min-width: 0; }
.node-help summary { cursor: pointer; color: var(--accent); }
.node-help-list { margin: 6px 0; padding-left: 18px; display: grid; gap: 6px; }
/* PKG-08 (F-138): the three inventory methods side by side on the Assets page */
.inv-methods { margin-top: var(--s-4); }
.inv-methods-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s-4); padding: var(--s-4); }
.inv-method { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.inv-method h3 { margin: 0; font-size: var(--fs-base); display: flex; gap: 6px; align-items: center; }
.inv-method p { margin: 0; flex: 1; }
.pv-row .badge { justify-self: start; }

/* Feeds page: the OSV row expands into its local copy per distribution */
.feed-sub-row > td { padding-top: 0; }
.feed-sub > summary { cursor: pointer; color: var(--accent); font-size: var(--fs-sm); }
.feed-sub[open] > summary { margin-bottom: var(--s-2); }

/* ===== 1.7.0 (170:P13): styles of the pages of the waves 1-2 (NOTE-PACCHETTI) and the layout fixes of the review ===== */
/* cards of a page one under the other (System health, …): the gap of a .stack also without the wrapper */
.content > .card + .card, .content > section.card + section.card { margin-top: var(--s-4); }
/* R-051 (cause 3) sticky actions column: removed in 2.3.2 (u2, 232:B1): stuck to the right edge it covered the data
   columns (state, token, coverage) and nobody could tell there was more to scroll to. The tables fit their box
   instead (the rules «2.3.2 (u2)» at the end) and the actions cell wraps its buttons */
/* HOST-V03: a note under a value written with the flex utility .wrap (not a flex box): it wraps like .wrap-text */
.t td > .wrap:not(.row) { white-space: normal; overflow-wrap: anywhere; }
.t td.truncate { max-width: 24em; }   /* R-139: a long URL no longer pushes Delete out of the webhooks table */
.t td.err-text code { white-space: pre-wrap; overflow-wrap: anywhere; }
/* inputs that cannot be used now (the translation fields while the runner reaches the site directly, R-006) */
.input:disabled, .select:disabled, .textarea:disabled { background: var(--surface-2); color: var(--muted); cursor: not-allowed; }
.field:has(> .input:disabled, > .select:disabled) > label { color: var(--muted); }
/* R-006: the fields of a 1:1 translation only once «through a 1:1 translation» is chosen (app.js also disables them) */
form:has(input[name="reach"]):not(:has(input[name="reach"][value="xlat"]:checked)) .form-row:has([name="xlat_real"]) { display: none; }

/* P8 (R-079, R-081): copy and download of the secrets shown once; «Test the connection» with its result */
.auth-once .row .btn, .alert .grow > .btn { vertical-align: middle; }
.alert .grow > .btn.sm { margin-left: 4px; }
.auth-token + .btn, .auth-secret + .btn { margin-left: 6px; }

/* P6: «How does it reach the site?» (a required radio group) and its error */
fieldset.stack { border: 1px solid var(--border); border-radius: var(--r); padding: 10px 12px 12px; margin: 0; min-width: 0; gap: 8px; }
fieldset.stack > legend { padding: 0 6px; font-weight: var(--fw-semi); font-size: var(--fs-sm); color: var(--text-2); }
fieldset.stack > .check, fieldset .check:has(> input[type="radio"]) { align-items: flex-start; }
fieldset.stack > .check > input { margin-top: 1px; flex: none; }
fieldset.stack > .help { margin: -4px 0 0 25px; font-size: var(--fs-xs); color: var(--muted); }
fieldset.invalid { border-color: var(--err); }
fieldset.invalid > legend { color: var(--err); }

/* P1: the summary under «From the scans» wraps on phones; one block per cause of «Other causes» */
.cmp-foot { justify-content: flex-start; }
.cmp-foot > .small { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 479.98px) { .cmp-foot { flex-direction: column; align-items: flex-start; } .cmp-foot .spacer { display: none; } }
details.cmp-cause { border-top: 1px solid var(--border); }
details.cmp-cause > summary { cursor: pointer; list-style: none; border-bottom: 0; min-height: 40px; }
details.cmp-cause > summary::-webkit-details-marker { display: none; }
details.cmp-cause > summary h3 { font-size: var(--fs-sm); font-weight: var(--fw-semi); }
details.cmp-cause[open] > summary { border-bottom: 1px solid var(--border); }
#other-causes > details > summary { cursor: pointer; list-style: none; }
#other-causes > details > summary::-webkit-details-marker { display: none; }
/* R-160/R-017: Compare keeps the version of the package (the host shrinks first) and does not scroll at 390 px */
.diff-list li { flex-wrap: wrap; }
.diff-list .cmp-what { display: inline-flex; flex-wrap: wrap; gap: 0 4px; min-width: 0; flex: 1 1 12em; overflow: hidden; }
.diff-list .cmp-host { min-width: 3ch; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 0 1 auto; }
.diff-list .cmp-ver { flex: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.diff-list .truncate { min-width: 0; flex: 1 1 8em; }

/* 170:P5: six tiles of SLA, ten tabs of Remediation, the text to hand over, the external reference */
.vkpis:has(> :nth-child(5)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 1600px) { .vkpis:has(> :nth-child(6)):not(:has(> :nth-child(7))) { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 900px) { .vkpis:has(> :nth-child(5)) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rem-tabs .tab { white-space: nowrap; }
@media (max-width: 640px) { .rem-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; } }
#rh-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: var(--fs-xs); min-height: 10em; }
.badge.mono { font-family: var(--mono); font-size: var(--fs-2xs); display: inline-block; line-height: 18px; max-width: 16em;
              overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }

/* 170:P4: a proposal waiting for approval, «active verification available», the actions of Exceptions, the bulk bar */
.fd-proposal { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); box-shadow: inset 3px 0 0 var(--accent); }
.fd-proposal .card-head .hint { white-space: normal; }
.verify-box .refs { margin-top: 6px; }
.verify-box .grow { overflow-wrap: anywhere; }
/* the bulk bar and the actions of Exceptions show their fields only once something is selected (like Assets) */
.bulkbar:not(.active) > .bulk-f, .bulkbar:not(.active) > [data-bulk-submit], .bulkbar:not(.active) > .spacer { display: none; }
.card:not(:has(input[form="exc-bulk"]:checked)) #exc-bulk > .field { display: none; }
.card:not(:has(input[form="exc-bulk"]:checked)) #exc-bulk::before { content: attr(data-empty); color: var(--muted); font-size: var(--fs-sm); }
#exc-bulk:not(:has(option[value="extend"]:checked)) .field:has(#exc-until) { display: none; }

/* 170:P9: the second row of a webhook or ticketing system, the filters of the audit log, System health */
.t tr.sub-row > td { padding-top: 0; white-space: normal; }
.t tr:has(+ tr.sub-row) > td { border-bottom: 0; }
.t tr.sub-row details > summary { cursor: pointer; color: var(--accent); }
.t tr.sub-row details[open] { margin-bottom: 6px; }
form.filters[action="/audit"] .field { flex: 1 1 150px; min-width: 0; }
form.filters[action="/audit"] .field .select, form.filters[action="/audit"] .field .input { min-width: 0; max-width: 100%; }

/* 170:P11: Inventory sources (actions, more reasons), Assets (more actions), retirement, vault, exposure, dialogs */
details.src-why > summary { cursor: pointer; list-style: none; display: inline; }
details.src-why > summary::-webkit-details-marker { display: none; }
details.src-why[open] > summary { display: block; margin-bottom: 2px; }
.src-acts { flex-wrap: nowrap; }
details.asset-more > summary, details.retire-d > summary, details.vault-edit > summary, details.exp-hosts > summary { list-style: none; }
details.asset-more > summary::-webkit-details-marker, details.retire-d > summary::-webkit-details-marker,
details.vault-edit > summary::-webkit-details-marker, details.exp-hosts > summary::-webkit-details-marker { display: none; }
.bulkbar > details.asset-more { flex-basis: 100%; }
.bulkbar > details.asset-more:not([open]) { flex-basis: auto; }
details.asset-more > .card-body { padding: var(--s-3) 0 0; }
.asset-inv .bulkbar:not(.has-sel) > details.asset-more { display: none; }
.page-head .actions details.retire-d { position: relative; }
.page-head .actions details.retire-d[open] > form { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: min(360px, calc(100vw - 32px));
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r); box-shadow: var(--shadow-lg); }
details.vault-edit[open] > :not(summary) { white-space: normal; min-width: 22em; margin-top: 6px; }
details.exp-hosts > summary { cursor: pointer; color: var(--accent); }
details.exp-hosts[open] > div { max-width: 28em; margin-top: 4px; }
/* a dialog opened by the server (attribute open, ?dialog=… of R-113) is made modal by app.js; until then it floats */
dialog.modal[open]:not(:modal) { position: fixed; inset: 10vh 0 auto; margin: 0 auto; z-index: var(--z-drawer); }

/* R-165 (cause 11): the finding page uses the width of large screens: «How to fix» on the right, in view while the
   description, risk and references scroll on the left (row-gap 0: the fix spans the rows of the left column) */
@media (min-width: 1280px) {
  .finding-page:has(.fd-fix) { max-width: 1240px; }
  .finding-page .fd:has(> .fd-fix) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); column-gap: var(--s-6);
    row-gap: 0; align-items: start; }
  .finding-page .fd:has(> .fd-fix) > * { grid-column: 1; margin-bottom: 18px; }
  .finding-page .fd:has(> .fd-fix) > .fd-title { grid-column: 1 / -1; }
  .finding-page .fd:has(> .fd-fix) > .fd-fix { grid-column: 2; grid-row: 2 / span 40; position: sticky; top: calc(var(--topbar-h) + 12px);
    border-top: 0; padding: var(--s-3) var(--s-4); border: 1px solid var(--border); border-radius: var(--r); background: var(--surface-2); }
}

/* R-137 (SCAN-24): a button in a two-column form row keeps its own width (it stretched to the column); the
   «system denylist» badge of the scope preview no longer covers the address, which wraps instead of being cut */
.form-row > .btn, .form-row > button.btn { justify-self: start; align-self: end; margin-bottom: 14px; }
.form-row.ai-end > .btn { margin-bottom: 14px; }
.pv-row { grid-template-columns: 28px minmax(104px, max-content) minmax(0, 1fr) auto; }
.pv-row .mono.truncate { white-space: normal; overflow-wrap: anywhere; }
/* R-064 (SCAN-17): the rows of «Networks behind NAT» edit in place: fields and Save on one wrapping line */
.t td > form.form-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 18em; }
.t td > form.form-row .input { flex: 1 1 9em; width: auto; min-width: 0; }
/* 2.3.2 (232:D7): an input inside a .field of such a form (a column): no flex-basis, which there is a height (the days
   field of a dynamic network of a site was 9em = about 116 px tall) */
.t td > form.form-row .field > .input { flex: none; }
.t td > form.form-row > .btn { margin-bottom: 0; }
/* 2.0 (200:P25): site names are long and now everywhere (A-D10). In the tables of agents and scripts the small select
   of a cell («Move to the site») is at most 11em wide and the text cells wrap; below 900 px of card (a 1024 px
   window with the sidebar: 10 columns did not fit, R-P25 DC-4) the secondary columns (system, version, last result:
   .hide-sm, already hidden on phones) give way */
.src-table td .select.sm { max-width: 11em; }
.src-card { container-type: inline-size; }
@container (max-width: 900px) { .src-table .hide-sm { display: none; } }
.src-table td.small:not(.nowrap) { overflow-wrap: break-word; min-width: 7em; }
.src-table td:not(.nowrap), .src-table th { white-space: normal; }   /* ten columns at 1280 px: the cells wrap */
.src-table td > form.row { flex-wrap: wrap; justify-content: flex-end; }   /* «Move to the site»: select, then button */
.src-table td > .small.muted { white-space: normal; overflow-wrap: anywhere; }   /* host name and alias of an agent */
/* the refusal of an agent or a script (_agent_macros.html refusal_line): a readable block, never a sliver */
[data-refusal] { max-width: 30em; }
td:has(> [data-refusal]) { min-width: 10em; }
[data-refusal] .badge { white-space: normal; height: auto; min-height: 20px; }
/* a small form of a cell (the addressing of a network and its days of absence): its parts wrap, the help too */
.t td > form.form-row > div { flex: 1 1 10em; min-width: 0; }
.t td > form.form-row .field { min-width: 0; max-width: 100%; }
.t td > form.form-row .help, .t td > form.form-row .ferr { white-space: normal; }

/* 170:P2 (Today, Central dashboard, project settings): the attention list grouped by organization and project, the
   proposals to approve, the summary «since», the fleet alert of the central dashboard (it wraps), a read-only
   fieldset without its frame */
.ux-att > li.ux-att-org { display: block; padding: 8px 16px 4px; background: var(--surface-2); font-size: var(--fs-sm);
                          font-weight: var(--fw-semi); overflow-wrap: anywhere; }
.ux-att > li.ux-att-org a { color: var(--text); }
.ux-att > li.ux-att-more { display: block; padding: 4px 16px 8px 56px; }
.ux-att-links { display: flex; flex-wrap: wrap; gap: 2px 4px; margin-top: 2px; overflow-wrap: anywhere; }
.ux-att .badge { white-space: normal; height: auto; min-height: 20px; padding-block: 2px; line-height: 1.2; }
ul.list.ux-dec, ul.list.ux-since-list { list-style: none; margin: 0; padding: 0; }
.ux-dec > li, .ux-since-list > li { padding: 10px 16px; border-top: 1px solid var(--border); min-width: 0; overflow-wrap: anywhere; }
.ux-dec > li:first-child, .ux-since-list > li:first-child { border-top: 0; }
.ux-dec .row { flex-wrap: wrap; min-width: 0; }
.ux-since .card-head form, .ux-since form.card-body { margin: 0; }
.ux-since form.card-body { padding-bottom: 0; flex-wrap: wrap; }
.ux-since-list > li > .i { vertical-align: -3px; margin-right: 4px; }
.cd-alert { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; max-width: 100%; white-space: normal; color: var(--warn); }
.cd-alert .badge { white-space: normal; height: auto; min-height: 20px; padding-block: 2px; line-height: 1.2; }
fieldset.fs-plain { border: 0; padding: 0; margin: 0; min-width: 0; }

/* 1.7.0 170:P13, final pass (decision 47): the tiles of the organization overview and the central dashboard (KEV in its
   raspberry with the target, the others neutral with an icon), and the notes of 170:P7 */
.sev-tile.t-kev { --c: var(--kev); }
.sev-tile.t-plain { --c: var(--text-2); }
.sev-tile .l .ic { width: 10px; height: 10px; margin-right: 3px; vertical-align: -1px; }
/* help texts outside a .field look like the ones inside */
:where(.help) { font-size: var(--fs-xs); color: var(--muted); }   /* zero specificity: .small and the components win */
fieldset > p.help { margin: 0 0 8px; }
/* «Client setup» of the organization overview: a folding card */
#client-setup > summary.card-head { cursor: pointer; list-style: none; }
#client-setup > summary.card-head::-webkit-details-marker { display: none; }
#client-setup:not([open]) > summary.card-head { border-bottom: 0; }
#client-setup .ux-steplist ul { margin: 4px 0 0; padding-left: 18px; }
/* the open items of a step are a plain list, not rows of the step list (padding, borders and flex were inherited) */
#client-setup .ux-steplist ul > li { display: list-item; padding: 2px 0; border-top: 0; gap: 0; }
#client-setup .ux-steplist li .btn { flex: none; }
/* Users: the email of a user opens its own small form in the cell */
td:has(> details.auth-email) { white-space: normal; }
details.auth-email > summary { cursor: pointer; color: var(--accent); overflow-wrap: anywhere; }
details.auth-email[open] > form { min-width: 16em; }
/* invitation links just created: the command field on the surface of the warning */
#invite-links .cmd-text { background: var(--surface); }
#invite-links .alert .grow { min-width: 0; }
/* the summary of what the authorization of a new kind of scan covers (the guide, _guide_kind_summary.html) */
#gk-summary { padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface-2); overflow-wrap: anywhere; }
#gk-summary ul { padding-left: 18px; margin: 4px 0; }
/* the filter bars of Projects and Users wrap on phones (their search field had a min-width of 180-200 px inline) */
@media (max-width: 640px) {
  #proj-filters > .field, #users > form[role="search"] > .field { flex: 1 1 100%; min-width: 0 !important; }
  #proj-filters .select, #users > form[role="search"] .select { width: 100%; }
}

/* ===== 2.3.2 (u3): phone layout, form controls and spacing (layout check of 2.3) ===== */
/* 2.3.2 (u3, B6/232:C2): a check box keeps its 18 px when its label wraps (it shrank to about 12 px) */
.check > input { flex: none; }
/* 2.3.2 (u3, B5): blocks of a page one under the other keep the gap of the cards also when one of them is a grid of
   cards or the KPI row of the host page (they touched with 2 px between them) */
.content > :where(.card, .grid, .ux-hostkpis) + :where(.card, .grid, .ux-hostkpis) { margin-top: var(--s-4); }
/* 2.3.2 (u3, A7): the row of the identity questions on Today: padding, a gap before the cards, one line on phones */
.ux-identity-row { padding: 10px var(--s-4); margin-bottom: var(--s-4); flex-wrap: nowrap; color: var(--text); text-decoration: none; }
.ux-identity-row > span:not(.badge) { flex: 1 1 auto; min-width: 0; }
.ux-identity-row > .badge, .ux-identity-row > svg.i { flex: none; }
.ux-identity-row:hover { border-color: var(--border-strong); text-decoration: none; }
/* 2.3.2 (u3, A8): the icon of the status line keeps its distance from the text */
.ux-statusline svg.i { margin-right: 4px; vertical-align: -2px; }
/* 2.3.2 (u3, A11): the figures of a project card wrap as whole pieces (three narrow columns on phones), a wrapped
   piece under the text and not under the icon (the icon hangs in the padding: 14 px + the gap of 8 px) */
.proj .line { flex-wrap: wrap; row-gap: 2px; padding-left: 22px; }
.proj .line > svg.i:first-child { flex: none; margin-left: -22px; }
/* 2.3.2 (u3, C14): an icon of the section navigation of the settings keeps its distance from the label */
.settings-nav a:has(> svg.i) { display: flex; align-items: center; gap: 8px; }
.settings-nav a > svg.i { flex: none; }
/* 2.3.2 (u3, C14): the «?» of a card title stays next to the title, the hint keeps the right edge */
.card-head > h2 + .fhint { margin-right: auto; }
/* 2.3.2 (u3, C14): a legend-like line of a fieldset with its «?» (m.flabel), styled as the legend it replaces */
.flabel > .flegend { font-weight: var(--fw-semi); font-size: var(--fs-sm); color: var(--text-2); }
/* 2.3.2 (u3, C14): «Kritisch» fits its severity tile at 1280 and 1024 (it was hyphenated as «Kri-tisch») */
.sev-tile { padding-inline: 6px; }
/* 2.3.2 (u3, B4): the headers of the configuration checks of the host page wrap like their cells */
#host-checks .t th, #host-checks .t th .colhead-btn { white-space: normal; overflow-wrap: break-word; hyphens: auto; }
/* 2.3.2 (u3, 232:D14): the projects of a new API token are check boxes (a 150 px multiple select cut their names) */
.token-projects { max-height: 12em; overflow-y: auto; }
@media (max-width: 640px) {
  /* 2.3.2 (u3, A3/D9): a search field takes the whole row of its filter bar (it shrank to a few px beside «Show» or
     the button); only beside the «Filters» button of the finding list it shares the row */
  .filters .field.grow { flex: 1 1 100%; min-width: 0; }
  .filters .field.grow:has(+ .filters-toggle) { flex: 1 1 0; }
  /* 2.3.2 (u3, 232:D1/232:D2): the label of a stacked cell floats in the left column instead of being absolutely placed: a
     label on two lines makes the cell taller instead of covering the next one. The width of the label column is one
     custom property (the same for the padding of the cell and the label, in vw: a percentage would mean two
     different widths for the two) */
  table.t.rt { --rt-lw: max(84px, calc(38vw - 24px)); }
  table.t.rt td { display: flow-root; padding-left: calc(var(--rt-lw) + 8px) !important; }
  table.t.rt td::before { position: static; float: left; width: var(--rt-lw); margin-left: calc(-1 * var(--rt-lw) - 8px);
                          padding-top: 2px; font-family: var(--font); hyphens: auto; }
  /* 2.3.2 (u3, A5/C11): a cell with nothing in it leaves no label without a value (empty risk, empty actions) */
  table.t.rt td[data-label]:empty { display: none; }
  /* 2.3.2 (u3, 232:C3): the red bar of an overdue row marks the whole card, not the first cell (it read «|—»); a first
     cell with a figure (the risk of an action without the selection box) keeps its label */
  table.t.rt tr.overdue { box-shadow: inset 3px 0 0 var(--err); }
  table.t.rt tr.overdue td:first-child { box-shadow: none; }
  table.t.rt.rem-table td.num:first-child[data-label]:not([data-label=""]) { display: flow-root; padding-left: calc(var(--rt-lw) + 8px) !important;
                                                                            font-weight: inherit; }
  table.t.rt.rem-table td.num:first-child[data-label]:not([data-label=""])::before { content: attr(data-label); }
  /* 2.3.2 (u3, A5): the severity colour of a row (a 4 px first cell) is a bar along the card, not a row of its own;
     the cell after it is the title of the card */
  table.t.rt tr:has(> td.sevcell:first-child) { position: relative; }
  table.t.rt td.sevcell:first-child { position: absolute; left: 6px; top: 12px; bottom: 12px; width: 3px; padding: 0 !important; }
  table.t.rt td.sevcell:first-child > span:not(.sr) { height: 100%; margin: 0; }
  table.t.rt td.sevcell:first-child + td { padding-left: 0 !important; font-weight: var(--fw-semi); padding-bottom: 4px !important; }
  table.t.rt td.sevcell:first-child + td::before { content: none; }
  /* 2.3.2 (u3, D6): a table that does not become cards (fewer than 4 columns, a column of row headers) wraps its
     cells between words instead of hiding columns behind a sideways scroll */
  table.t:not(.rt):not(.findings-t) td:not(.nowrap), table.t:not(.rt):not(.findings-t) th { white-space: normal; overflow-wrap: break-word; }
  /* 2.3.2 (u3, 232:D13): a step of the organization setup puts its button under the text (one word per line beside it) */
  .ux-steplist li:has(> .grow + .btn) { flex-wrap: wrap; }
  .ux-steplist li > .grow:has(+ .btn) { flex: 1 1 calc(100% - 36px); }
  .ux-steplist li > .grow + .btn { margin-left: 36px; }
}

/* ===== 2.3.2 (u2): tables fit their box at 1280 and 1024 px (A1, A2, A4, 232:B1, B2, B3, C4, 232:D5) =====
   The common cause: cells that never wrap (host + port + site chip, badges, sentences), and a site chip whose
   max-width in % counts as «none» when the table measures its columns (the whole site name widened the column, then
   the chip was cut). Columns of secondary data give way under a width of their table box instead (no fixed columns). */
/* 2.3.2 (u2): every table box is a container: «.cq-N» marks a column shown only when its table box is at least N px
   wide (1280 px window: about 990 px of full-width card; 1024 px: about 735; a settings page: about 770) */
.table-wrap { container: tbl / inline-size; }
@media (min-width: 640.02px) {   /* on phones the rows are stacked cards (table.t.rt): every column has room there */
  @container tbl (max-width: 1099.98px) { .t .cq-1100 { display: none; } }
  @container tbl (max-width: 959.98px) { .t .cq-960 { display: none; } }
}
/* 3.0: the hosts of an action (remediation_detail.html) in a table box under 560 px (a 1024 px window, the form of the
   action beside it: about 380 px): CVSS gives way (.cq-560), the status goes under the title of the finding
   (.rem-st-in), the title of the finding wraps instead of being cut and its cell may shrink to its longest word,
   so Host, Findings, Status and Risk stay in sight without a sideways scroll */
.rem-st-in { display: none; }
/* the title cell of the next findings of a host (the host cell spans their rows) lines up with the first one */
.card .t.rem-hosts td.title:first-child { padding-left: var(--s-3); }
@media (min-width: 640.02px) {
  @container tbl (max-width: 559.98px) {
    .t .cq-560 { display: none; }
    .t .rem-st-in { display: block; margin-top: 3px; }
    .t .rem-st-in .badge { white-space: normal; height: auto; min-height: 20px; padding-block: 2px; line-height: 1.2; text-align: left; }
    .t .rem-st-in .badge:has(> .d) { border-radius: var(--r-lg); }
    .t .rem-st-in .badge > .d { flex: none; }
    .table-wrap .t.rem-hosts td.title { min-width: 0; }
    .t.rem-hosts td.title .tt { white-space: normal; }
    .card .t.rem-hosts td.title:first-child { padding-left: 8px; }
  }
}
/* gate 11 of 2.4 (defect 5): a data table marked .rt-narrow (the SBOM of the host page, in the side column at 1280 px) stacks
   its rows as on phones (table.t.rt, the labels of tables.js) when its box is narrower than 560 px: no column out of
   sight behind a sideways scroll. Phones keep their own rules (the media query of table.t.rt) */
@media (min-width: 640.02px) {
  @container tbl (max-width: 559.98px) {
    table.t.rt.rt-narrow { --rtn-lw: 104px; }
    table.t.rt.rt-narrow, table.t.rt.rt-narrow tbody { display: block; }
    table.t.rt.rt-narrow thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    table.t.rt.rt-narrow tr { display: block; padding: 8px var(--s-4); border-bottom: 1px solid var(--border); }
    table.t.rt.rt-narrow tr:last-child { border-bottom: 0; }
    table.t.rt.rt-narrow td { display: flow-root; padding: 2px 0 2px calc(var(--rtn-lw) + 8px) !important; border: 0;
                              white-space: normal; min-width: 0; overflow-wrap: anywhere; text-align: left; }
    table.t.rt.rt-narrow td::before { content: attr(data-label); float: left; width: var(--rtn-lw);
                                      margin-left: calc(-1 * var(--rtn-lw) - 8px); padding-top: 2px; color: var(--muted);
                                      font-size: var(--fs-xs); font-weight: var(--fw-medium); overflow-wrap: anywhere; }
    table.t.rt.rt-narrow td:first-child { padding-left: 0 !important; padding-bottom: 4px !important; font-weight: var(--fw-semi); }
    table.t.rt.rt-narrow td:first-child::before, table.t.rt.rt-narrow td[data-label=""]::before { content: none; }
    table.t.rt.rt-narrow td[data-label]:empty { display: none; }
  }
}
/* 3.0 (layout gate): a data table marked .rt-960 (the scanner nodes: name, status, labels, sites, version and refusal,
   actions) stacks its rows the same way in a box narrower than 960 px (a 1024 px window), where its columns do not
   fit; from 960 px it is a table whose cells wrap */
@media (min-width: 640.02px) {
  @container tbl (max-width: 959.98px) {
    table.t.rt.rt-960 { --rtn-lw: 128px; }
    table.t.rt.rt-960, table.t.rt.rt-960 tbody { display: block; }
    table.t.rt.rt-960 thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    table.t.rt.rt-960 tr { display: block; padding: 10px var(--s-4); border-bottom: 1px solid var(--border); }
    table.t.rt.rt-960 tr:last-child { border-bottom: 0; }
    table.t.rt.rt-960 td { display: flow-root; padding: 2px 0 2px calc(var(--rtn-lw) + 8px) !important; border: 0;
                           white-space: normal; min-width: 0; max-width: none; width: auto; overflow-wrap: anywhere;
                           text-align: left; }
    table.t.rt.rt-960 td::before { content: attr(data-label); float: left; width: var(--rtn-lw);
                                   margin-left: calc(-1 * var(--rtn-lw) - 8px); padding-top: 2px; color: var(--muted);
                                   font-size: var(--fs-xs); font-weight: var(--fw-medium); overflow-wrap: anywhere; }
    table.t.rt.rt-960 td:first-child, table.t.rt.rt-960 td.rt-full { padding-left: 0 !important; }
    table.t.rt.rt-960 td:first-child { padding-bottom: 4px !important; }
    table.t.rt.rt-960 td:first-child::before, table.t.rt.rt-960 td.rt-full::before,
    table.t.rt.rt-960 td[data-label=""]::before { content: none; }
    table.t.rt.rt-960 td[data-label]:empty { display: none; }
    table.t.rt.rt-960 tr:has(+ .node-help-row) { border-bottom: 0; }
  }
}
/* 2.3.2 (u2): in a table box narrower than 960 px the cells keep 8 px on each side (12 before; the first and the last
   cell of a card keep the card's own padding) */
@container tbl (max-width: 959.98px) {
  .table-wrap .t th:not(.colhead), .table-wrap .t td { padding-left: 8px; padding-right: 8px; }
  .table-wrap .t th.colhead .colhead-btn { padding-left: 8px; padding-right: 8px; }   /* sortable heading (colhead.js) */
  .t:not(.risky-t) td.title { min-width: 180px; }                     /* the elastic column (220 px from 960 px of box) */
  .t td .hostlink.named { max-width: 18ch; }              /* the name of a host, whole in its title */
}
/* 2.3.2 (u2, A2): «Seen» of Findings wraps («21 min / ago») */
.findings-t td.c-seen { white-space: normal; }
/* 2.3.2 (u2, B2): a sortable heading of Sources and Assets wraps between its words; the arrow stays with the last one */
.t th .src-sort { white-space: normal; }
.t th .src-sort > span { white-space: nowrap; }
/* 2.3.2 (u2): the site chip of a table cell: at most 16 characters (the whole name in its title and for screen
   readers), a length in ch and not in %, so the column is measured with the chip as it is drawn */
.t td .site-chip { max-width: 16ch; }
/* 2.3.2 (u2): a cell (or the line in it) that holds a site chip wraps before the chip when the column is narrow:
   address and port stay together, the chip goes on the next line */
.t td:has(.site-chip), .t td :where(span, div):not(.truncate):has(> .site-chip) { white-space: normal; }
/* 2.3.2 (u2): the agent's badges (site, declared IP, roles) and its states wrap in their cell; a badge of several words
   wraps inside itself (never inside a word) instead of widening the column */
.t td.cell-wrap { white-space: normal; }
.t td.cell-wrap > .badge { margin: 1px 0; }
.t td.cell-wrap .badge, .src-table td:not(.nowrap) .badge {
  white-space: normal; height: auto; min-height: 18px; padding-block: 2px; line-height: 1.2; text-align: left; }
/* 2.3.2 (u2, 232:D5): tables of text (feeds, sites of the organization, the firewall list): headings and cells wrap when
   the columns do not fit (a cell marked .nowrap stays on one line) */
.t.t-wrap th, .t.t-wrap td:not(.nowrap) { white-space: normal; }
.t.t-wrap td:not(.nowrap) .badge:not(:has(> .d)) { white-space: normal; height: auto; min-height: 20px; padding-block: 2px; line-height: 1.2; text-align: left; }
.t.t-wrap td.err-text { min-width: 12em; }
/* 2.3.2 (u2, B2): the host names under an address in Inventory sources (cut, whole in the title) */
.src-table .src-hn { max-width: 12em; }
/* 2.3.2 (u2, B3): the Open, Inventory and Source columns of Assets wrap at a smaller width (130 px each before) */
.t.asset-table td.wrap { min-width: 6.5em; }
/* 2.3.2 (u2): sentences under a value (late by…, in verification since…, refusal, outcome of a scan) wrap within a
   readable width instead of widening the column */
.t td.cell-text { white-space: normal; min-width: 8em; }
.t td .note-wrap { white-space: normal; }
/* 2.3.2 (u2, 232:B1/B2): the actions of a row wrap their buttons (one under the other in a narrow column) */
.t td.act-sticky, .t td:has(> .src-acts) { white-space: normal; }
.t td.act-sticky > .btn { margin: 1px 0; }
.src-table td > .src-acts { flex-wrap: wrap; }

/* ===== 2.3.2 (f1): layout, second round (verification of 2.3.2) ===== */
/* 2.3.2 (f1, A11): a line of figures separated by «·» (.dotlist): each piece is whole, the dot is drawn in front of
   it, and a piece that wraps to a new line has its dot outside the list (cut by the clip), so a line never starts
   with «·» */
.dotlist { display: flex; flex-wrap: wrap; row-gap: 2px; flex: 1 1 0; min-width: 0; margin-left: -0.9em; clip-path: inset(0 0 0 0.9em); }
.dotlist > * { padding-left: 0.9em; }
.dotlist > *::before { content: "·"; display: inline-block; width: 0.9em; margin-left: -0.9em; text-align: center; color: var(--muted); }
.proj .line:has(> .dotlist) { align-items: flex-start; }
.proj .line:has(> .dotlist) > svg.i:first-child { margin-top: 3px; }
/* 2.3.2 (f1): «Select a project» of the selector is read whole, on two lines if the sidebar is narrow (a project name
   is cut, whole in the title) */
.psw-name.psw-ph { white-space: normal; overflow-wrap: break-word; line-height: 1.2; }
/* 2.3.2 (f1, 232:C9/232:D11): the path has the room before the search field: the field takes what is left, from 150 to
   300 px, and only with the field at 150 px the levels of the path give way (they shrank together with it: «Defa…»
   with 100 px of field to spare). A path of two levels shows its «…» only when nav.js folds it */
.gsearch { flex: 1000 1 0; min-width: 150px; max-width: 300px; }
.crumbs:not(.is-tight) > .crumb-lead.crumb-tight { display: none; }
/* a current page on two lines leaves the room of its «…» (it took the whole width and pushed the «…» out) */
.crumbs.is-wrap > .cur { flex-shrink: 1; min-width: 0; }
@media (max-width: 640px) { .crumbs.is-tight > .crumb-lead { display: none; } }   /* the phone: the current page alone */
/* 2.3.2 (f1): the site chip of a table cell shows the usual names whole: on up to two lines of 20 characters
   («Sede di / Mönchengladbach…»; one line of 16 cut them to «Sede di Mönc…»), so the column is hardly wider than
   with the 16 characters of u2; the whole name in its title. On the phone, where the cell has the whole row, the
   whole name wraps */
.t td .site-chip { max-width: 20ch; height: auto; white-space: normal; }
.t td .site-chip > .site-chip-t { white-space: normal; overflow-wrap: break-word; line-height: 1.25;
                                  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@media (max-width: 640px) {
  .t td .site-chip { max-width: 100%; }
  .t td .site-chip > .site-chip-t { display: inline; }
}
/* 2.3.2 (f1, D6): the component of a row of the system alerts, as the row header it was */
.t td.ha-comp { font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--text); }
/* 2.3.2 (f1): the current address under the server address field and its «Check» button */
#srv-addr-hint { margin-top: 4px; }
/* 2.3.2 (f1): the icon of the line of the package inventory of Scans keeps its distance from the text (as A8) */
.inv-last > svg.i:first-child { margin-right: 4px; vertical-align: -2px; }
/* 2.3.2 (f1): the MTTR table of SLA fits its half of the page at 1024 px: its headings wrap and a long single word is
   hyphenated («Über-fällig»), the figures stay on one line */
.t.mttr-t th { hyphens: auto; overflow-wrap: break-word; }
/* ===== 3.0 (layout gate): tables that fit their box at 1280 and 1024 px, no column behind a sideways scroll ===== */
/* Remediation: the headings wrap between their words («Entferntes / Risiko»), German included */
.t.rem-table th { white-space: normal; }
/* Exceptions: the reason keeps 220 px, 150 px in a box under 960 px (a 1024 px window) */
.t td.exc-reason { white-space: normal; min-width: 220px; }
@container tbl (max-width: 959.98px) { .t td.exc-reason { min-width: 150px; } }
