/* elvatis-app-shell 2.11.2 */
/*
   ============================================================
   ELVATIS APP SHELL - the signed-in application chrome, shared by every
   product dashboard (Portal, Atlas, Shield, Defense, Awareness, Intelligence,
   Trust). ds.css is the LANDING stylesheet and styles bare elements (section,
   footer, p, h1); this file is its application counterpart and styles nothing
   but its own `ev-` classes, so it can sit next to a product's own CSS without
   fighting it.

   What it fixes, in one place: the logo header, the font stack, the type
   scale, the brand accent, the spacing of the dashboard grid.

   Brand basis: BDR-001 (Fraunces + Inter, self-hosted, no monospace, no CDN),
   BDR-003 (colour). The raw `--c-*` palette below is a COPY of ds.css and is
   held equal to it by tools/app-shell.mjs --check-tokens, so the two files
   cannot disagree about what a colour is. Everything an application should
   reference is the `--ev-*` layer under it.

   This file is a vendored artifact: change it in elvatis-design-system, never
   in a product. Publication: app-shell.manifest.json (generated) and
   docs/app-shell.md (adoption).

   TWO THEMES, DARK THE DEFAULT. Every backend renders the same dark theme
   unless the user chose light with the theme switch (cookie elvatis-theme,
   html[data-theme]). The light palette is the --cl-* block at the end of the
   theme layer (owner decision 2026-10-03, elvatis/elvatis-design-system#78).

   2.0.0 IS A MAJOR: THE LAYOUT CONTRACT CHANGED. The shell is now a page FRAME
   (.ev-frame): a slim topbar across the top, a collapsible navigation on the
   left, the content filling the page width right of it (2.9.0; a reading column is the opt-in .ev-main--narrow). Navigation is never at the
   top and never on the right, in any product. The topbar has a fixed order:
   navigation toggle, logo mark + product name, product switcher, then (right)
   theme switch and language switch (and, in 2.0 to 2.2, a user menu: gone in 2.3.0). 1.x classes that no longer exist are listed in
   docs/app-shell.md ("Migrating from 1.x"). The optional behaviour (collapse,
   dropdowns, product switcher) is app-shell.js, vanilla, no dependency.

   2.2.0 CHANGES THE FRAME'S SHAPE (owner decision 2026-10-03: Shield's collapsible
   navigation is the model for every backend). The sidebar is FULL HEIGHT and carries
   the logo header and the collapse arrow (in 2.2.0 one row expanded, a centred column in the
   5rem rail; since 2.3.0 ONE row in both states, logo and name only, with the arrow a handle on the sidebar's
   right edge); the topbar starts at the sidebar's edge in both states and holds the
   product switcher, the theme switch, the ONE language switch (and the user menu, until
   2.3.0). The hamburger in a full-width topbar is gone from the desktop; it remains on the phone,
   where the sidebar is a drawer. The sign-in page carries the language switch too.
   The geometry is measured, not described: docs/app-shell.md "The frame" has the
   numbers and tools/app-shell-conformance.js proves them in a real browser.

   2.3.0 (owner findings from live products on 2.2.0, 2026-10-03): the topbar at the right
   holds ONLY the theme switch and the language switch, the product switcher stays at the
   left, and there is NO user menu; the SIGN-OUT control is the sidebar foot (an icon and
   the word expanded, the icon alone in the rail; no role badge); the navigation has a 1rem
   top inset under the head's divider in both states (in the rail the first icon touched the
   line); a closed phone drawer paints nothing (its shadow belongs to the open state).

   2.3.1 (owner finding on live 2.3.0, 2026-10-04: two steps in the header strip, a logo off the topbar's centre line, a round handle on
   the sidebar edge): ONE HEADER BAND across the whole page. The sidebar head and the topbar are the same height (--ev-topbar-h, 56px =
   7 x 8) and their bottom rules are one continuous line; everything in the band (mark, name, collapse control, product switcher, theme
   switch, language switch) shares ONE centre line, y = 28; the mark is 24px and the name one step smaller (--ev-fs-sm); the collapse
   control sits INSIDE the sidebar head. Every number comes from the 8px grid and is derived in docs/app-shell.md "The header band".

   2.4.0 (owner decision 2026-10-04: "Wieso baust du die Navigation eigentlich nicht einmal anstaendig?"): THE NAVIGATION, DESIGNED ONCE, so
   that all six products look and measure the same. The product switcher LEAVES the topbar and becomes the sidebar head (the mark, the name
   and a chevron are ONE button; the popover lists the user's products); the topbar at the right holds ONLY the theme switch and the language
   switch, at the left at most a quiet breadcrumb; the sidebar foot is a PROFILE CARD (initials circle, name, the role as plain muted text, a
   sign-out icon button); in the rail the head mark, every navigation icon and the sign-out button share ONE vertical axis. Every distance is a
   multiple of the 4px grid (--ev-space-1) and is derived in docs/app-shell.md "The navigation, derived". A product carries NO frame CSS of its
   own: tools/verify-app-shell-assets.mjs --product-css fails on a rule for the frame or on a redefined frame token.

   2.4.1 (owner findings on live 2.4.0, 2026-10-04: expanded the collapse arrow sat in the header band, collapsed it sat BELOW the band next to the
   navigation; and, on the first fix, "the mark slides too far left" in the rail): the collapse control is the ROUND EDGE HANDLE of 2.3.0 again, at the
   height 2.3.0 got wrong. A 24px circle with a 1px border in the sidebar's border colour on the sidebar's background, the 16px chevron centred in it,
   horizontally centred ON the sidebar's right edge in both states (it straddles it and follows it while the width animates) and vertically centred on the
   band's centre line, y = 28, in both states: it never changes height. It paints above the topbar. The head holds nothing else: expanded the switcher button
   (mark, name, chevron) as in 2.4.0; in the rail the mark ALONE, the switcher's button, centred on the rail axis x 39.5 at y 28, not a pair. The first
   navigation item is 40px under the band in both states (--ev-nav-rail-inset 2.5rem in the rail; 8px of inset plus the heading's 32px expanded), so nothing sits
   below the band any more. Also: a print stylesheet for the frame (the chrome is not printed, the content uses the page; products add no print rules of their own).

   2.6.0 (owner approval 2026-10-06, Visualisierung 2.6, elvatis/elvatis-design-system#80): ONE SEVERITY RAMP for all products and the parts that draw it. The tokens --ev-sev-<level> (graphics, the same in both
   themes), --ev-sev-<level>-text (text, darker in light) and --ev-sev-<level>-bg, from the raw --cs-* and --cl-sev-*-text; the status chip (colour, shape, word), the KPI tile tone, the score ring, the stacked
   severity bar, the donut with its legend, the sparkline and the product score row, all SVG with their numbers as attributes (no chart library, no inline style, they print). Grey is "no data", never "good".
   docs/visualisation.md is the contract; tools/severity-check.mjs holds this file, app-shell-severity.json, the module and the PDF tokens equal. No frame number moves.

   2.6.1 (owner direction 2026-10-06, WCAG 1.4.11 strictly): every filled severity graphic has a CONTOUR in the light theme, 1px in the level's TEXT tone (--ev-sev-<level>-contour, the light --cl-sev-<level>-text),
   so the boundary of the part against the surface reaches 3:1 in every level and nothing is a listed exception any more. The FILL colours do not move and stay identical in both themes; the contour is the
   only thing the light theme adds, and the dark theme draws none. .ev-table-wrap is now the containing block of what it holds (an absolutely positioned .ev-sr-only word in a far column no longer widens the page).
   ============================================================ */

/* --- Cascade layers (1.1.0). Unlayered CSS beats EVERY layered rule whatever
   its specificity, and Tailwind 4 puts its utilities in `@layer utilities`. In
   1.0.0 this file was unlayered, so `margin:0` on .ev-h1 beat `mb-2` on the
   same element and the utility silently did nothing. Now every rule sits in a
   layer with Tailwind's own names, in Tailwind's own order:

     theme       the tokens (lowest: any product override of a token wins)
     base        Tailwind's preflight: below the shell, so a bare `h1` reset
                 cannot undo .ev-h1
     components  the ev- classes
     utilities   the product's own utilities: above the shell, so mb-2, p-8,
                 space-y-4 on an element that also carries an ev- class win

   The order is DECLARED here, first, so it does not depend on whether this
   file or Tailwind's stylesheet loads first; declaring the same four names
   again, as Tailwind does, changes nothing. A product with unlayered CSS (or
   Tailwind 3, whose utilities are unlayered) beats the shell outright.
   tools/app-shell.mjs holds this: an unlayered rule in this file is red, and a
   cascade model asserts the utility margin wins in both load orders. --- */
@layer theme, base, components, utilities;

/* --- Fonts: self-hosted, no external request (GDPR). Each weight is split per script and carries its `unicode-range`, so the browser downloads a file only when the page uses a code point in it:
   -latin is the file that always shipped (a Latin-only page downloads exactly what it did before), -latin-ext (Latin Extended, Vietnamese), -cyrillic and -greek (Inter only) are fetched on demand.
   Fraunces has no Cyrillic and no Greek: --ev-font-display falls back to Inter for those. The ranges are disjoint; tools/app-shell.mjs holds that and tools/build-web-fonts.py rebuilds the files. --- */
@font-face{font-family:'Fraunces';font-style:normal;font-weight:400;font-display:swap;src:url('fonts/fraunces-400.woff2') format('woff2');unicode-range:U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+2002, U+2009, U+200B, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+2032-2033, U+2039-203A, U+2044, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:400;font-display:swap;src:url('fonts/fraunces-400-latin-ext.woff2') format('woff2');unicode-range:U+0100-0130, U+0132-0151, U+0154-02BA, U+02BD-02C5, U+02C7-02D9, U+02DB, U+02DD-02FF, U+0302, U+0305-0307, U+030A-0322, U+0324-036F, U+1D00-1DBF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:500;font-display:swap;src:url('fonts/fraunces-500.woff2') format('woff2');unicode-range:U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+2002, U+2009, U+200B, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+2032-2033, U+2039-203A, U+2044, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:500;font-display:swap;src:url('fonts/fraunces-500-latin-ext.woff2') format('woff2');unicode-range:U+0100-0130, U+0132-0151, U+0154-02BA, U+02BD-02C5, U+02C7-02D9, U+02DB, U+02DD-02FF, U+0302, U+0305-0307, U+030A-0322, U+0324-036F, U+1D00-1DBF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:600;font-display:swap;src:url('fonts/fraunces-600.woff2') format('woff2');unicode-range:U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+2002, U+2009, U+200B, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+2032-2033, U+2039-203A, U+2044, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:600;font-display:swap;src:url('fonts/fraunces-600-latin-ext.woff2') format('woff2');unicode-range:U+0100-0130, U+0132-0151, U+0154-02BA, U+02BD-02C5, U+02C7-02D9, U+02DB, U+02DD-02FF, U+0302, U+0305-0307, U+030A-0322, U+0324-036F, U+1D00-1DBF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:700;font-display:swap;src:url('fonts/fraunces-700.woff2') format('woff2');unicode-range:U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+2002, U+2009, U+200B, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+2032-2033, U+2039-203A, U+2044, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:700;font-display:swap;src:url('fonts/fraunces-700-latin-ext.woff2') format('woff2');unicode-range:U+0100-0130, U+0132-0151, U+0154-02BA, U+02BD-02C5, U+02C7-02D9, U+02DB, U+02DD-02FF, U+0302, U+0305-0307, U+030A-0322, U+0324-036F, U+1D00-1DBF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('fonts/inter-400.woff2') format('woff2');unicode-range:U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+2002, U+2009, U+200B, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+2032-2033, U+2039-203A, U+2044, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF}
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('fonts/inter-400-latin-ext.woff2') format('woff2');unicode-range:U+0100-0130, U+0132-0151, U+0154-02BA, U+02BD-02C5, U+02C7-02D9, U+02DB, U+02DD-02FF, U+0302, U+0305-0307, U+030A-0322, U+0324-036F, U+1D00-1DBF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('fonts/inter-400-cyrillic.woff2') format('woff2');unicode-range:U+0400-052F, U+1C80-1C8F, U+2116, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F}
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('fonts/inter-400-greek.woff2') format('woff2');unicode-range:U+0370-03FF}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url('fonts/inter-500.woff2') format('woff2');unicode-range:U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+2002, U+2009, U+200B, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+2032-2033, U+2039-203A, U+2044, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url('fonts/inter-500-latin-ext.woff2') format('woff2');unicode-range:U+0100-0130, U+0132-0151, U+0154-02BA, U+02BD-02C5, U+02C7-02D9, U+02DB, U+02DD-02FF, U+0302, U+0305-0307, U+030A-0322, U+0324-036F, U+1D00-1DBF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url('fonts/inter-500-cyrillic.woff2') format('woff2');unicode-range:U+0400-052F, U+1C80-1C8F, U+2116, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url('fonts/inter-500-greek.woff2') format('woff2');unicode-range:U+0370-03FF}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('fonts/inter-600.woff2') format('woff2');unicode-range:U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+2002, U+2009, U+200B, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+2032-2033, U+2039-203A, U+2044, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('fonts/inter-600-latin-ext.woff2') format('woff2');unicode-range:U+0100-0130, U+0132-0151, U+0154-02BA, U+02BD-02C5, U+02C7-02D9, U+02DB, U+02DD-02FF, U+0302, U+0305-0307, U+030A-0322, U+0324-036F, U+1D00-1DBF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('fonts/inter-600-cyrillic.woff2') format('woff2');unicode-range:U+0400-052F, U+1C80-1C8F, U+2116, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('fonts/inter-600-greek.woff2') format('woff2');unicode-range:U+0370-03FF}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url('fonts/inter-700.woff2') format('woff2');unicode-range:U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+2002, U+2009, U+200B, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+2032-2033, U+2039-203A, U+2044, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url('fonts/inter-700-latin-ext.woff2') format('woff2');unicode-range:U+0100-0130, U+0132-0151, U+0154-02BA, U+02BD-02C5, U+02C7-02D9, U+02DB, U+02DD-02FF, U+0302, U+0305-0307, U+030A-0322, U+0324-036F, U+1D00-1DBF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url('fonts/inter-700-cyrillic.woff2') format('woff2');unicode-range:U+0400-052F, U+1C80-1C8F, U+2116, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url('fonts/inter-700-greek.woff2') format('woff2');unicode-range:U+0370-03FF}

@layer theme {
:root {
  /* --- Raw palette: IDENTICAL to ds.css (held equal by --check-tokens) --- */
  --c-bg-0:#050B16; --c-bg-1:#07111F; --c-bg-2:#0A1729; --c-bg-3:#0D1C33; --c-bg-4:#112340;
  --c-primary:#22B4FF; --c-primary-700:#1A8FD4;
  --c-violet:#9B86FF; --c-mint:#00FF9C; --c-copper:#FF8A3D; --c-copper-700:#E0701F;
  --c-amber:#F5B83D; --c-coral:#FF6F91; --c-cyan:#22D3EE; --c-teal:#14C8B0;
  --c-emerald:#1FD18A;
  --c-ink:#F5FAFF; --c-body:#C7D4E8; --c-muted:#8FA0BD;
  --c-line-base:#8FD5EC;
  --c-line:color-mix(in srgb, var(--c-line-base) 14%, transparent);
  --c-line-2:color-mix(in srgb, var(--c-line-base) 28%, transparent);
  --c-card:rgba(255,255,255,0.035);
  --c-copper-400:color-mix(in srgb, var(--c-ink) 15%, var(--c-copper));
  --c-primary-200:color-mix(in srgb, var(--c-ink) 70%, var(--c-primary));
  --c-emerald-300:color-mix(in srgb, var(--c-ink) 40%, var(--c-emerald));
  --c-coral-300:color-mix(in srgb, var(--c-ink) 40%, var(--c-coral));
  --c-amber-300:color-mix(in srgb, var(--c-ink) 40%, var(--c-amber));
  /* Default product accent = the brand blue, as in ds.css. Overridden per
     product with [data-product="..."] below, and only ever for decoration. */
  --product-accent:var(--c-primary);

  /* --- Fonts. Fraunces for page and section titles, Inter for everything a
     person operates. There is NO monospace face in the brand (BDR-001): ids,
     hashes and numbers use Inter with tabular figures, see .ev-mono. The names
     are --ev-font-*, not --font-sans, on purpose: Tailwind v4 owns --font-sans
     as a theme variable and a plain stylesheet redefining it is order
     dependent. A Tailwind product maps these in with `@theme inline`, see
     docs/app-shell.md. --- */
  --ev-font-sans:'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ev-font-display:'Fraunces', 'Inter', Georgia, serif;
  --ev-font-mono:var(--ev-font-sans);

  /* --- Type scale. rem, so a product that raises the root size on 4K (Shield
     does) scales the whole shell with it. The values equal Tailwind's default
     scale, xs to 4xl, so a Tailwind product's text-sm is already this sm and
     adoption changes the FACE, not the SIZES, where it already used the default. */
  --ev-fs-xs:0.75rem;   --ev-lh-xs:1rem;
  --ev-fs-sm:0.875rem;  --ev-lh-sm:1.25rem;
  --ev-fs-base:1rem;    --ev-lh-base:1.5rem;
  --ev-fs-lg:1.125rem;  --ev-lh-lg:1.75rem;
  --ev-fs-xl:1.25rem;   --ev-lh-xl:1.75rem;
  --ev-fs-2xl:1.5rem;   --ev-lh-2xl:2rem;
  --ev-fs-3xl:1.875rem; --ev-lh-3xl:2.25rem;
  --ev-fs-4xl:2.25rem;  --ev-lh-4xl:2.5rem;

  /* --- Spacing. The step number is the Tailwind spacing number, so
     --ev-space-4 is p-4 (1rem). Only the steps a dashboard uses exist. --- */
  --ev-space-1:0.25rem; --ev-space-2:0.5rem; --ev-space-3:0.75rem; --ev-space-4:1rem; --ev-space-5:1.25rem;
  --ev-space-6:1.5rem;  --ev-space-8:2rem;   --ev-space-12:3rem;   --ev-space-16:4rem;

  /* --- Shell geometry --- */
  --ev-topbar-h:3.5rem;
  --ev-nav-rail-inset:2.5rem;
  --ev-sidebar-w:16rem;
  --ev-sidebar-w-collapsed:5rem;
  --ev-content-max:72rem;
  --ev-gutter:clamp(var(--ev-space-6), 2vw + 0.5rem, var(--ev-space-12));
  --ev-grid-gap:var(--ev-space-4);
  --ev-card-pad:1.25rem;
  --ev-radius-card:0.625rem;
  --ev-radius-control:0.4375rem;
  --ev-mark-size:1.5rem;
  --ev-collapse-size:1.5rem;
  /* 2.4.0: the navigation's grid. Every value is a multiple of --ev-space-1 (4px): the glyph slot (mark and navigation icon, 24px), the
     switcher button in the head (40px), the section heading box (32px), the profile avatar and the sign-out button (32px), the gap between items (4px). */
  --ev-slot:1.5rem;
  --ev-head-btn-h:2.5rem;
  --ev-heading-h:2rem;
  --ev-nav-gap:0.25rem;
  --ev-avatar-size:2rem;
  --ev-signout-size:2rem;
  --ev-foot-pad-y:0.75rem;
  --ev-mark-size-lg:4rem;
  --ev-nav-item-h:2.5rem;
  --ev-menu-item-h:2.5rem;
  --ev-radius-nav:0.5rem;
  --ev-radius-panel:0.75rem;
  /* Icon scale: four steps. 1rem inline and chevrons, 1.25rem UI default (navigation,
     buttons), 1.5rem feature, 2rem empty state. The collapsed rail keeps 1.25rem. */
  --ev-icon-sm:1rem; --ev-icon-md:1.25rem; --ev-icon-lg:1.5rem; --ev-icon-xl:2rem;
  /* The default icon size, the one every .ev-icon without a modifier uses. A product that
     wants a different default sets THIS, not four sizes. */
  --ev-icon-size:var(--ev-icon-md);
  --ev-overlay:color-mix(in srgb, var(--c-bg-0) 70%, transparent);
  --ev-shadow-pop:0 12px 32px color-mix(in srgb, var(--c-bg-0) 60%, transparent);

  /* --- Semantic colour. Applications use THESE. --- */
  --ev-bg:var(--c-bg-1);
  --ev-bg-chrome:var(--c-bg-0);
  --ev-surface:var(--c-bg-2);
  --ev-surface-raised:var(--c-bg-3);
  --ev-surface-hover:var(--c-bg-4);
  --ev-border:var(--c-line);
  --ev-border-strong:var(--c-line-2);
  --ev-text:var(--c-ink);
  --ev-text-body:var(--c-body);
  --ev-text-muted:var(--c-muted);
  /* THE brand accent: one blue, the logo blue (BDR-003). Links, focus, the
     active navigation entry, selection. Per-product accents never replace it. */
  --ev-brand:var(--c-primary);
  --ev-brand-strong:var(--c-primary-700);
  --ev-brand-soft:var(--c-primary-200);
  /* The one call-to-action colour (BDR-003): copper, on primary actions only. */
  --ev-cta:var(--c-copper);
  --ev-cta-hover:var(--c-copper-400);
  /* ungoverned #1B0E03: a near-black tuned to sit ON copper, the same value
     ds.css hard-codes in .btn-cta. */
  --ev-on-cta:#1B0E03;
  /* Text on a FILLED brand-blue surface (a switch that is on, a selected chip): the dark
     chrome colour, 8.48:1. White on the brand blue is 2.32:1 and is never used. */
  --ev-on-brand:var(--c-bg-0);
  --ev-focus:var(--c-primary);
  /* State. Reuses brand colours (emerald is Trust's "valid", amber its
     "expired", coral its "revoked") and invents none. State is never carried by
     colour alone: a tag always has a word, see .ev-tag. */
  --ev-ok:var(--c-emerald);       --ev-ok-text:var(--c-emerald-300);
  --ev-warn:var(--c-amber);       --ev-warn-text:var(--c-amber-300);
  --ev-danger:var(--c-coral);     --ev-danger-text:var(--c-coral-300);
  --ev-info:var(--c-primary);     --ev-info-text:var(--c-primary-200);
}

/* From 2560px (Shield's 3xl breakpoint) the sidebar is 18rem and a navigation item 3rem tall with
   1rem text. The media query is in rem on purpose: it reads the browser default, not a product's
   raised root size, which is what the 2560px breakpoint means. */
@media (min-width:160rem){
  :root{--ev-sidebar-w:18rem;--ev-nav-item-h:3rem}
}

/* Per-product accent. The brand defines these (ds.css .pc-*); they are used
   for decoration only: the product eyebrow, the top rule of a product tile.
   Never for a link, a focus ring, a button or a state. Awareness (coral) and
   Shield (mint) sit close to the danger and ok colours, which is exactly why. */
[data-product="atlas"]{--product-accent:var(--c-primary)}
[data-product="shield"]{--product-accent:var(--c-mint)}
[data-product="defense"]{--product-accent:var(--c-violet)}
[data-product="portal"]{--product-accent:var(--c-amber)}
[data-product="awareness"]{--product-accent:var(--c-coral)}
[data-product="intelligence"]{--product-accent:var(--c-cyan)}
[data-product="trust"]{--product-accent:var(--c-teal)}

/* 2.6.2: THE EYEBROW TONE IS A TOKEN. --ev-eyebrow is the colour of 12px product-name text (.ev-eyebrow). It is declared where --product-accent is, so a card that carries its own
   data-product (.ev-card[data-product]) re-evaluates it. Dark: the accent itself. Light: the pale accents (mint, amber, cyan) cannot carry 12px text on white, so the accent is
   mixed 60 percent toward the ink. It is NOT a severity colour and the probe knows it (app-shell-severity.json, "nonSeverity"): see docs/visualisation.md, record sev-from-tokens. */
:root,[data-product]{--ev-eyebrow:var(--product-accent)}
html[data-theme="light"],html[data-theme="light"] [data-product]{--ev-eyebrow:color-mix(in srgb, var(--ev-text) 60%, var(--product-accent))}

/* ============================================================================
   THE SEVERITY RAMP (2.6.0, Visualisierung 2.6, owner approval 2026-10-06, elvatis/elvatis-design-system#80). ONE ramp for every product, replacing the three each
   product invented (Atlas, Shield and Defense). Four levels and grey: critical, high, medium, low (good) and "no data". A level is a colour, a shape and a word, never a colour alone.
   The raw values are --cs-* ("colour, severity"): new brand values decided by the owner here, held by tools/severity-check.mjs against app-shell-severity.json and
   report/report-tokens.json, so the stylesheet, the module and the PDF cannot disagree. --cl-sev-* below is the light theme's text tone.
     --ev-sev-<level>          the GRAPHIC colour (ring, bar, dot, stripe, sparkline): IDENTICAL in both themes
     --ev-sev-<level>-text     TEXT on the surface (a chip, a value, a score): the same hue, darker only in light where 4.5:1 needs it
     --ev-sev-<level>-bg       the tint behind a chip
   Grey (none) is "no data", never "good". Product accents (mint, coral, ...) stay decoration and never carry a level.
   ============================================================================ */
:root{
  --cs-crit:#E5484D; --cs-high:#F2701E; --cs-med:#E8B21C; --cs-low:#2BB673; --cs-none:#7A889E;
  --cs-crit-text:#FF6B70; --cs-high-text:#FF8A47; --cs-med-text:#F2C44A; --cs-low-text:#4CD38F;
  --ev-sev-crit:var(--cs-crit); --ev-sev-high:var(--cs-high); --ev-sev-med:var(--cs-med); --ev-sev-low:var(--cs-low); --ev-sev-none:var(--cs-none);
  --ev-sev-crit-text:var(--cs-crit-text); --ev-sev-high-text:var(--cs-high-text); --ev-sev-med-text:var(--cs-med-text); --ev-sev-low-text:var(--cs-low-text);
  --ev-sev-none-text:var(--ev-text-muted);
  --ev-sev-crit-bg:color-mix(in srgb, var(--cs-crit) 16%, transparent);
  --ev-sev-high-bg:color-mix(in srgb, var(--cs-high) 16%, transparent);
  --ev-sev-med-bg:color-mix(in srgb, var(--cs-med) 16%, transparent);
  --ev-sev-low-bg:color-mix(in srgb, var(--cs-low) 16%, transparent);
  --ev-sev-none-bg:transparent;
  /* 2.6.1: the contour of a filled graphic. None in dark (the fills are >= 3:1 there); in light the level's text tone (see html[data-theme="light"]). Grey needs none: it is 3.34:1 as it is. */
  --ev-sev-crit-contour:transparent; --ev-sev-high-contour:transparent; --ev-sev-med-contour:transparent; --ev-sev-low-contour:transparent; --ev-sev-none-contour:transparent;
}

/* ============================================================================
   THE LIGHT THEME (2.1.0, owner decision 2026-10-03: "Dunkel + hell waehlbar").
   Dark stays the default and the first thing every page renders. Light is a
   user choice, kept in the cookie elvatis-theme=dark|light on .elvatis.com and
   applied as html[data-theme="light"]. It overrides ONLY the semantic --ev-*
   layer, so no component rule knows which theme it is in.

   The raw light values are --cl-* ("colour, light"). They are new brand values,
   decided by the owner here, and they are held by tools/app-shell.mjs
   --check-tokens: every text pair is measured at 4.5:1 or better on every light
   surface, exactly as the dark pairs are. The brand blue #22B4FF is 2.3:1 on a
   white surface, so on light the interactive blue is the darker --cl-brand; the
   logo mark keeps #22B4FF (a logotype is exempt from contrast and is shown on a
   light plate in logo.html). Copper with its dark label is unchanged.
   ============================================================================ */
:root{
  --cl-bg:#F3F7FB; --cl-chrome:#FFFFFF; --cl-surface:#FFFFFF; --cl-raised:#EAF0F7; --cl-hover:#E1EAF4;
  --cl-body:#2A3A52; --cl-muted:#566780;
  --cl-brand:#075E96; --cl-brand-strong:#054A78;
  --cl-ok-text:#0A6B47; --cl-warn-text:#7A4F00; --cl-danger-text:#A81C44;
  --cl-white:#FFFFFF;
  --cl-sev-crit-text:#B4232A; --cl-sev-high-text:#B54A0B; --cl-sev-med-text:#8A6400; --cl-sev-low-text:#167A4A;
}
html[data-theme="light"]{
  --ev-bg:var(--cl-bg);
  --ev-bg-chrome:var(--cl-chrome);
  --ev-surface:var(--cl-surface);
  --ev-surface-raised:var(--cl-raised);
  --ev-surface-hover:var(--cl-hover);
  --ev-border:color-mix(in srgb, var(--c-bg-1) 12%, transparent);
  --ev-border-strong:color-mix(in srgb, var(--c-bg-1) 24%, transparent);
  --ev-text:var(--c-bg-1);
  --ev-text-body:var(--cl-body);
  --ev-text-muted:var(--cl-muted);
  --ev-brand:var(--cl-brand);
  --ev-brand-strong:var(--cl-brand-strong);
  --ev-brand-soft:var(--cl-brand-strong);
  --ev-focus:var(--cl-brand);
  --ev-on-brand:var(--cl-white);
  --ev-ok-text:var(--cl-ok-text);
  --ev-warn-text:var(--cl-warn-text);
  --ev-danger-text:var(--cl-danger-text);
  --ev-info:var(--cl-brand);
  --ev-info-text:var(--cl-brand);
  /* The severity ramp in light (2.6.0): the graphic colours are NOT here, they are the same as in dark. Only the text tone and the tint change. */
  --ev-sev-crit-text:var(--cl-sev-crit-text);
  --ev-sev-high-text:var(--cl-sev-high-text);
  --ev-sev-med-text:var(--cl-sev-med-text);
  --ev-sev-low-text:var(--cl-sev-low-text);
  --ev-sev-crit-bg:color-mix(in srgb, var(--cs-crit) 14%, transparent);
  --ev-sev-high-bg:color-mix(in srgb, var(--cs-high) 14%, transparent);
  --ev-sev-med-bg:color-mix(in srgb, var(--cs-med) 18%, transparent);
  --ev-sev-low-bg:color-mix(in srgb, var(--cs-low) 14%, transparent);
  /* 2.6.1: the contour of every filled graphic in light is the level's text tone, which is at least 4.5:1 on white (WCAG 1.4.11 asks 3:1 of the boundary of a graphic). The fills above are untouched. */
  --ev-sev-crit-contour:var(--cl-sev-crit-text);
  --ev-sev-high-contour:var(--cl-sev-high-text);
  --ev-sev-med-contour:var(--cl-sev-med-text);
  --ev-sev-low-contour:var(--cl-sev-low-text);
  --ev-overlay:color-mix(in srgb, var(--c-bg-1) 45%, transparent);
  --ev-shadow-pop:0 12px 32px color-mix(in srgb, var(--c-bg-1) 18%, transparent);
}

}

@layer components {
/* ============================== ROOT ============================== */
.ev-app{
  box-sizing:border-box;
  margin:0;
  min-height:100vh;
  background:var(--ev-bg);
  color:var(--ev-text-body);
  font-family:var(--ev-font-sans);
  font-size:var(--ev-fs-base);
  line-height:var(--ev-lh-base);
  color-scheme:dark;
  -webkit-font-smoothing:antialiased;
}
html[data-theme="light"] .ev-app{color-scheme:light}
.ev-app *,.ev-app *::before,.ev-app *::after{box-sizing:border-box}
.ev-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.ev-app :focus-visible{outline:2px solid var(--ev-focus);outline-offset:2px}
.ev-skip{position:absolute;left:var(--ev-space-3);top:-4rem;z-index:100;padding:var(--ev-space-2) var(--ev-space-4);background:var(--ev-surface-raised);color:var(--ev-text);border-radius:var(--ev-radius-control)}
.ev-skip:focus{top:var(--ev-space-3)}

/* ============================== ICONS ============================== */
/* One icon set: the Lucide geometry (24 grid, 2px stroke, round caps), as the
   self-hosted sprite icons/app-shell-icons.svg for the chrome, and lucide for
   anything product-specific. An icon is never the only carrier of meaning:
   it sits next to a word or carries aria-label. Sizes are tokens, four steps. */
.ev-icon{display:inline-block;flex:none;width:var(--ev-icon-size);height:var(--ev-icon-size);fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}
.ev-icon--sm{width:var(--ev-icon-sm);height:var(--ev-icon-sm)}
.ev-icon--lg{width:var(--ev-icon-lg);height:var(--ev-icon-lg)}
.ev-icon--xl{width:var(--ev-icon-xl);height:var(--ev-icon-xl)}

/* ============================== TYPE ============================== */
.ev-eyebrow{
  display:block;font-family:var(--ev-font-sans);font-size:var(--ev-fs-xs);line-height:var(--ev-lh-xs);
  font-weight:600;letter-spacing:0.16em;text-transform:uppercase;color:var(--ev-eyebrow);
}
/* The light mix lives in the token --ev-eyebrow (2.6.2, see the theme layer); the 2px tile rule keeps the pure accent (decoration, not text). */
.ev-h1,.ev-h2{font-family:var(--ev-font-display);font-weight:600;color:var(--ev-text);letter-spacing:-0.01em;margin:0}
.ev-h1{font-size:var(--ev-fs-2xl);line-height:var(--ev-lh-2xl)}
.ev-h2{font-size:var(--ev-fs-xl);line-height:var(--ev-lh-xl)}
.ev-h3{font-family:var(--ev-font-sans);font-size:var(--ev-fs-lg);line-height:var(--ev-lh-lg);font-weight:600;color:var(--ev-text);margin:0}
.ev-lede{font-size:var(--ev-fs-sm);line-height:var(--ev-lh-sm);color:var(--ev-text-muted);margin:var(--ev-space-1) 0 0}
.ev-text-sm{font-size:var(--ev-fs-sm);line-height:var(--ev-lh-sm)}
.ev-text-xs{font-size:var(--ev-fs-xs);line-height:var(--ev-lh-xs)}
.ev-muted{color:var(--ev-text-muted)}
/* Ids, hashes, counts: Inter with tabular figures, never a monospace face. */
.ev-mono{font-family:var(--ev-font-mono);font-variant-numeric:tabular-nums;letter-spacing:0.01em;overflow-wrap:anywhere}
.ev-link{color:var(--ev-brand);text-decoration:none}
.ev-link:hover{color:var(--ev-brand-soft);text-decoration:underline}

/* ============================== FRAME ============================== */
/* THE page frame (2.2.0, the Shield navigation): a FULL-HEIGHT sidebar on the left that
   carries the logo header and the collapse arrow, and a topbar that starts at the sidebar's
   edge, in both states. The content fills the width right of the
   sidebar (2.9.0); .ev-main--narrow opts into a column of at most --ev-content-max. Navigation is never at the top and never on the right.
   State lives in two attributes and nothing else:
     html[data-sidebar="collapsed"]   desktop: icon-only rail (persisted by app-shell.js)
     .ev-frame[data-drawer="open"]    below 768px: the navigation as an overlay drawer
   The topbar is fixed (it follows the sidebar's width through the same attribute, 200 ms like
   the sidebar); a grid item cannot stick outside its own grid area, so it is not a grid item. */
.ev-frame{
  display:grid;min-height:100vh;
  grid-template-columns:var(--ev-sidebar-w) minmax(0, 1fr);
  grid-template-areas:"side main";
  transition:grid-template-columns .2s;
}
html[data-sidebar="collapsed"] .ev-frame{grid-template-columns:var(--ev-sidebar-w-collapsed) minmax(0, 1fr)}

.ev-topbar{
  position:fixed;top:0;right:0;left:var(--ev-sidebar-w);z-index:30;display:flex;align-items:center;gap:var(--ev-space-3);
  height:var(--ev-topbar-h);padding:1px var(--ev-space-6) 0;
  background:var(--ev-surface);border-bottom:1px solid var(--ev-border);transition:left .2s;
}
html[data-sidebar="collapsed"] .ev-topbar{left:var(--ev-sidebar-w-collapsed)}
.ev-topbar__spacer{margin-left:auto}
.ev-topbar > .ev-menu,.ev-topbar > .ev-icon-btn{flex:none}
.ev-topbar__group{display:flex;align-items:center;gap:var(--ev-space-2)}
/* The quiet breadcrumb at the left (2.4.0): section / page as muted text, no controls. The product switcher is not here any more: it is the sidebar head. */
.ev-topbar__crumb{display:flex;align-items:center;gap:var(--ev-space-2);flex:0 1 auto;min-width:0;margin:0;overflow:hidden;white-space:nowrap;font-size:var(--ev-fs-sm);line-height:var(--ev-lh-sm);color:var(--ev-text-muted)}
.ev-topbar__crumb > span{min-width:0;overflow:hidden;text-overflow:ellipsis}
.ev-topbar__crumb > [aria-current="page"]{color:var(--ev-text-body)}
.ev-topbar__sep{flex:none;color:var(--ev-border-strong)}
/* The compact brand and the navigation toggle exist for the phone, where the sidebar is a drawer. */
.ev-topbar [data-ev-sidebar-toggle],.ev-topbar [data-ev="brand-compact"]{display:none}

.ev-sidebar{
  grid-area:side;position:sticky;top:0;align-self:start;z-index:40;display:flex;flex-direction:column;
  height:100vh;height:100dvh;
  background:var(--ev-surface);border-right:1px solid var(--ev-border);
}
.ev-main{grid-area:main;min-width:0;width:100%;margin:var(--ev-topbar-h) 0 0;padding:var(--ev-space-8) var(--ev-gutter)}
.ev-main--narrow{max-width:var(--ev-content-max);margin-left:auto;margin-right:auto}
/* Deprecated since 2.9.0: the default is full width now, so this class has no effect. It stays so that product markup keeps working. */
.ev-main--wide{max-width:none}
.ev-overlay{display:none}

/* Below 768px the navigation is a drawer over the page; the rail never shows. */
@media (max-width:767.98px){
  .ev-frame,html[data-sidebar="collapsed"] .ev-frame{grid-template-columns:minmax(0, 1fr);grid-template-areas:"main"}
  .ev-topbar,html[data-sidebar="collapsed"] .ev-topbar{left:0;padding:1px var(--ev-space-3) 0;gap:var(--ev-space-2)}
  .ev-topbar [data-ev-sidebar-toggle]{display:inline-flex}
  .ev-topbar [data-ev="brand-compact"]{display:inline-flex;flex:0 1 auto;min-width:0}
  .ev-topbar [data-ev="brand-compact"] .ev-brand__product{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
  .ev-sidebar{position:fixed;top:0;bottom:0;left:0;align-self:stretch;width:min(var(--ev-sidebar-w), 85vw);height:auto;transform:translateX(-100%);transition:transform .2s,box-shadow .2s}
  /* The shadow belongs to the OPEN drawer only (2.3.0): a closed drawer is translated off the page, but a blurred shadow
     reaches back over its edge and drew a strip along the left of the page (elvatis/elvatis-design-system#94). */
  .ev-frame[data-drawer="open"] .ev-sidebar{transform:none;box-shadow:var(--ev-shadow-pop)}
  .ev-frame[data-drawer="open"] .ev-overlay{display:block;position:fixed;inset:0;z-index:35;background:var(--ev-overlay)}
  .ev-hide-sm{display:none}
  /* Five parts have to fit 390px: the switches keep their size (flex:none), only the brand name gives way. The breadcrumb is a desktop part. */
  .ev-topbar__crumb{display:none}
  .ev-topbar .ev-lang a,.ev-topbar .ev-theme a{padding-left:var(--ev-space-2);padding-right:var(--ev-space-2)}
  .ev-topbar [data-ev="brand-compact"]{min-width:var(--ev-mark-size)}
}
/* Under 480px the compact brand is the mark alone (the product name would be clipped to nothing). Measured to fit from 360px. */
@media (max-width:479.98px){
  .ev-topbar [data-ev="brand-compact"] .ev-brand__product{display:none}
}
@media (min-width:768px){
  .ev-h1{font-size:var(--ev-fs-3xl);line-height:var(--ev-lh-3xl)}
}

/* --- Brand: the MARK is a picture, never the word "Elvatis" in a font. --- */
.ev-brand{flex:none;display:inline-flex;align-items:center;gap:var(--ev-space-2);text-decoration:none;color:var(--ev-text)}
.ev-brand__mark{display:block;width:var(--ev-mark-size);height:var(--ev-mark-size);object-fit:contain;flex:none}
.ev-brand__product{font-family:var(--ev-font-sans);font-size:var(--ev-fs-sm);line-height:var(--ev-lh-sm);font-weight:600;color:var(--ev-text)}
.ev-brand--lg{flex-direction:column;gap:var(--ev-space-3)}
.ev-brand--lg .ev-brand__mark{width:var(--ev-mark-size-lg);height:var(--ev-mark-size-lg)}
.ev-brand--lg .ev-brand__product{font-family:var(--ev-font-display);font-size:var(--ev-fs-2xl);line-height:var(--ev-lh-2xl)}

/* ============================== SIDEBAR PATTERNS ============================== */
/* THE NAVIGATION, DESIGNED ONCE (2.4.0). A sticky head, a navigation that scrolls between, a sticky foot. Every distance is a multiple of
   the 4px grid (--ev-space-1) and docs/app-shell.md "The navigation, derived" lists each one with its derivation. A product does not restyle
   any of it: tools/verify-app-shell-assets.mjs --product-css fails on a product rule that touches the frame.

   The glyph slot. The head's mark and every navigation icon sit in a 24px slot (--ev-slot): the 24px mark fills it, the 20px icon is centred in it
   (2px each side). Items start at x 16 (the navigation's inset) and carry 8px of padding, so the slot's centre is x 36 for the mark and for every icon;
   in the rail the same glyphs are centred on the rail's axis (x 39.5) instead. */
.ev-sidebar__head{
  flex:none;display:flex;align-items:center;justify-content:space-between;gap:var(--ev-space-2);
  height:var(--ev-topbar-h);padding:1px var(--ev-space-4) 0;border-bottom:1px solid var(--ev-border);
}
/* THE HEADER BAND (2.3.1). The head is exactly as tall as the topbar (--ev-topbar-h, one token, 56px) and both draw their bottom rule
   as a 1px border inside that height, so the two rules are ONE line at y = 55..56 across the page, in both states and both themes.
   The 1px of top padding balances the 1px rule: the content box is 54px tall, so its centre is y = 28 exactly, and align-items:center
   puts the switcher button on that centre line. Horizontally the head has the navigation's own inset (--ev-space-4, 16px): the switcher button starts
   where the navigation items start (x 16). It gives way to the handle: its right end stays 8px clear of the handle's left edge (max-width 100% less 4px: 235 of 243.5).
   THE COLLAPSE HANDLE (2.4.1, the round handle of 2.3.0 at the right height): a 24px circle (--ev-collapse-size), 1px border in --ev-border, background --ev-surface,
   the 16px chevron centred in it, centred ON the sidebar's right edge (the border line: x 255.5 of 256 expanded, 79.5 of 80 in the rail) and on the band's centre line
   (top = (56 - 24) / 2 = 16, centre y 28). Out of the head's flow, so it is the same box in both states except for x, which follows the edge while the width animates.
   .ev-sidebar is the positioned parent and does not clip (no overflow on it); the sidebar (z-index 40) is above the topbar (30), so the half that lies over the topbar
   is painted above it and receives the pointer. The topbar's own content starts 24px in (the breadcrumb at x 280), 12.5px clear of the handle. */
.ev-sidebar__head .ev-collapse{
  position:absolute;z-index:1;top:calc((var(--ev-topbar-h) - var(--ev-collapse-size)) / 2);right:calc(var(--ev-collapse-size) / -2 - 0.5px);
  width:var(--ev-collapse-size);height:var(--ev-collapse-size);border:1px solid var(--ev-border);border-radius:999px;background:var(--ev-surface);
}
.ev-sidebar__head .ev-collapse:hover{border-color:var(--ev-border-strong);background:var(--ev-surface-hover)}
/* The collapse arrow shows the direction it will move: left to fold, right to unfold. */
.ev-collapse [data-ev-when="collapsed"]{display:none}
html[data-sidebar="collapsed"] .ev-collapse [data-ev-when="collapsed"]{display:inline-block}
html[data-sidebar="collapsed"] .ev-collapse [data-ev-when="expanded"]{display:none}

/* THE PRODUCT SWITCHER IS THE HEAD (2.4.0). The mark, the product name and a small chevron are ONE button (40px, 8px padding, so the mark sits in the
   glyph slot); it opens a popover listing the products the user is entitled to. The wrapper is not positioned, so the popover is placed against the
   sidebar itself and can leave it to the right in the rail. */
.ev-sidebar .ev-switcher{position:static;flex:0 1 auto;min-width:0;max-width:calc(100% - var(--ev-space-1))}
.ev-sidebar .ev-switcher__trigger{
  display:flex;align-items:center;gap:var(--ev-space-2);max-width:100%;height:var(--ev-head-btn-h);margin:0;padding:0 var(--ev-space-2);
  border:0;border-radius:var(--ev-radius-nav);background:transparent;color:var(--ev-text);cursor:pointer;
  font:inherit;font-size:var(--ev-fs-sm);line-height:var(--ev-lh-sm);font-weight:600;transition:background-color .15s;
}
.ev-sidebar .ev-switcher__trigger:hover,.ev-sidebar .ev-switcher__trigger[aria-expanded="true"]{background:var(--ev-surface-hover);border:0}
.ev-switcher__trigger .ev-brand__mark{flex:none}
.ev-switcher__name{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ev-switcher__trigger .ev-switcher__chevron{flex:none;margin-left:var(--ev-space-1)}
/* The popover: as wide as the navigation column (the sidebar's inner width less the 16px inset on both sides), 4px under the band, 4px of padding,
   40px entries on the 8px radius, the 12px panel radius. */
.ev-sidebar .ev-switcher__panel{
  top:calc(var(--ev-topbar-h) + var(--ev-space-1));left:var(--ev-space-4);right:var(--ev-space-4);
  min-width:0;max-width:none;padding:var(--ev-space-1);border-radius:var(--ev-radius-panel);
}
.ev-switcher__panel .ev-menu__label{padding:var(--ev-space-2) var(--ev-space-2) var(--ev-space-1)}
.ev-switcher__panel .ev-menu__item{gap:var(--ev-space-2);padding:0 var(--ev-space-2);border-radius:var(--ev-radius-nav);transition:background-color .15s,color .15s}
.ev-switcher__panel .ev-menu__item[aria-current="true"]{background:color-mix(in srgb, var(--ev-brand) 10%, transparent)}
.ev-switcher__mark{display:block;flex:none;width:var(--ev-slot);height:var(--ev-slot);object-fit:contain}
.ev-menu__text{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.ev-sidebar nav{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:var(--ev-space-2) var(--ev-space-4) var(--ev-space-4);scrollbar-width:thin;scrollbar-color:var(--ev-border-strong) transparent}

.ev-nav-list{display:flex;flex-direction:column;gap:var(--ev-nav-gap);margin:0;padding:0;list-style:none}
.ev-nav-item,.ev-lang a{
  font-family:var(--ev-font-sans);font-size:var(--ev-fs-sm);line-height:var(--ev-lh-sm);font-weight:500;letter-spacing:normal;text-transform:none;
}
/* An item: 40px tall, 8px padding, the glyph slot, 8px, the label, a count at the right. The current page has a background AND a 4px indicator on the left edge. */
.ev-nav-item{
  position:relative;display:flex;align-items:center;gap:var(--ev-space-2);height:var(--ev-nav-item-h);padding:0 var(--ev-space-2);
  border-radius:var(--ev-radius-nav);
  color:var(--ev-text-muted);text-decoration:none;white-space:nowrap;transition:color .15s,background-color .15s;
}
.ev-nav-item .ev-icon{margin:0 calc((var(--ev-slot) - var(--ev-icon-size)) / 2)}
.ev-nav-item:hover{color:var(--ev-text);background:var(--ev-surface-hover)}
.ev-nav-item:active{background:var(--ev-surface-raised)}
.ev-nav-item[aria-current="page"]{color:var(--ev-brand);background:color-mix(in srgb, var(--ev-brand) 10%, transparent)}
.ev-nav-item[aria-current="page"]::before{content:"";position:absolute;left:0;top:50%;width:var(--ev-space-1);height:var(--ev-icon-size);margin-top:calc(var(--ev-icon-size) / -2);border-radius:0 var(--ev-space-1) var(--ev-space-1) 0;background:var(--ev-brand)}
.ev-nav-item__label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
/* A section: a collapsible heading, a 32px box (the 12px label centred, 8px above and below), 16px between sections. The first item sits 8 + 32 = 40px under the band
   (2.4.1: the navigation's top inset is 8px, so the first item is where 2.3.1 had it and where the rail's first icon is, --ev-nav-rail-inset). */
.ev-nav-section + .ev-nav-section{margin-top:var(--ev-space-4)}
.ev-nav-section__title{
  display:flex;align-items:center;justify-content:space-between;width:100%;height:var(--ev-heading-h);margin:0;padding:0 var(--ev-space-2);
  background:none;border:0;border-radius:var(--ev-radius-nav);cursor:pointer;font:inherit;font-size:var(--ev-fs-xs);line-height:var(--ev-lh-xs);font-weight:600;
  letter-spacing:0.05em;text-transform:uppercase;color:var(--ev-text-muted);text-align:left;
}
.ev-nav-section__title:hover{color:var(--ev-text)}
.ev-nav-section__title .ev-icon{width:var(--ev-icon-sm);height:var(--ev-icon-sm);transition:transform .2s}
.ev-nav-section__title[aria-expanded="false"] .ev-icon{transform:rotate(-90deg)}
.ev-nav-section__title[aria-expanded="false"] + .ev-nav-list{display:none}

/* THE FOOT IS A PROFILE CARD (2.4.0): the initials circle, the user's name, the role as plain muted text under it (not a badge, not an initial),
   and the sign-out icon button at the right. 12px above and below the card, 16px at its sides, 8px of padding inside it; the card is 52px tall
   (8 + the 36px text block + 8), the avatar and the button 32px, centred on the card's middle. The sign-out control is a button in a POST
   form (the product's CSRF token inside) or a link to the product's logout route: one class for both. */
.ev-sidebar__foot{flex:none;padding:var(--ev-foot-pad-y) var(--ev-space-4);border-top:1px solid var(--ev-border)}
.ev-profile{display:flex;align-items:center;gap:var(--ev-space-2);padding:var(--ev-space-2);background:var(--ev-surface-raised);border-radius:var(--ev-radius-nav)}
.ev-profile__text{display:flex;flex:1;flex-direction:column;min-width:0}
.ev-sidebar__user,.ev-sidebar__role{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ev-sidebar__user{font-size:var(--ev-fs-sm);line-height:var(--ev-lh-sm);font-weight:500;color:var(--ev-text)}
.ev-sidebar__role{font-size:var(--ev-fs-xs);line-height:var(--ev-lh-xs);font-weight:400;color:var(--ev-text-muted)}
.ev-signout-form{flex:none;margin:0;padding:0}
.ev-signout{
  position:relative;display:inline-flex;align-items:center;justify-content:center;flex:none;width:var(--ev-signout-size);height:var(--ev-signout-size);margin:0;padding:0;
  background:none;border:0;border-radius:var(--ev-radius-nav);font:inherit;color:var(--ev-text-muted);text-decoration:none;cursor:pointer;transition:color .15s,background-color .15s;
}
.ev-signout:hover{color:var(--ev-text);background:var(--ev-surface-hover)}
.ev-signout:active{background:var(--ev-surface)}
/* The word is the control's accessible name and its tooltip (app-shell.js copies it to title); it is never drawn. */
.ev-signout__label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}

/* THE RAIL (desktop only: below 768px the sidebar is a drawer and always shows full labels). Items fill the 47px column and centre their glyph, so the head's mark,
   every navigation icon and the sign-out button share ONE vertical axis, x 39.5 (the 79px inside the rule, halved). No scrollbar is drawn: a bar takes width from one side
   of a 5rem column and moves every icon off the axis. The head holds the mark ALONE (2.4.1, as 2.4.0; the 2.3.1 pair put it 20px left of the axis and the owner rejected it):
   the switcher's button, 32px square (slot 24 + 4 each side), centred on the axis at y 28. The collapse handle is the same circle as expanded, on the rail's edge (x 79.5), 12px
   clear of the button. The popover opens to the right of the rail, clear of the handle. The navigation starts --ev-nav-rail-inset (2.5rem, 40px) under the band, so the
   first icon is where the first item is expanded (8 + the heading's 32) and no icon moves up or down when the rail opens and closes. */
@media (min-width:768px){
  html[data-sidebar="collapsed"] .ev-sidebar__head{justify-content:center;padding-left:0;padding-right:0}
  html[data-sidebar="collapsed"] .ev-sidebar .ev-switcher{flex:none}
  html[data-sidebar="collapsed"] .ev-sidebar .ev-switcher__trigger{justify-content:center;width:calc(var(--ev-slot) + 2 * var(--ev-space-1));max-width:none;height:calc(var(--ev-slot) + 2 * var(--ev-space-1));margin:0;padding:0}
  html[data-sidebar="collapsed"] .ev-switcher__name,html[data-sidebar="collapsed"] .ev-switcher__chevron{display:none}
  /* The popover opens to the RIGHT of the rail, 16px clear of its edge (the handle reaches 12px past it), level with the mark button (12px under the top: the head's content centre, y 28, less half of 32). */
  html[data-sidebar="collapsed"] .ev-switcher__panel{top:var(--ev-space-3);left:calc(100% + 1px + var(--ev-space-4));right:auto;width:calc(var(--ev-sidebar-w) - 1px - 2 * var(--ev-space-4))}
  html[data-sidebar="collapsed"] .ev-sidebar nav{padding-top:var(--ev-nav-rail-inset);scrollbar-width:none}
  html[data-sidebar="collapsed"] .ev-sidebar nav::-webkit-scrollbar{display:none}
  html[data-sidebar="collapsed"] .ev-nav-item{justify-content:center;width:100%;padding:0}
  /* The label leaves the layout but not the accessibility tree: the rail's links keep their names. */
  html[data-sidebar="collapsed"] .ev-nav-item__label{position:absolute;width:1px;height:1px;flex:none;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
  /* A count becomes a dot on the icon's corner. */
  html[data-sidebar="collapsed"] .ev-nav-item .ev-badge{position:absolute;top:var(--ev-space-1);right:var(--ev-space-1);min-width:0;width:0.5rem;height:0.5rem;padding:0;font-size:0;overflow:hidden}
  html[data-sidebar="collapsed"] .ev-nav-section__title{display:none}
  html[data-sidebar="collapsed"] .ev-nav-section{margin-top:var(--ev-space-2);padding-top:var(--ev-space-2);border-top:1px solid color-mix(in srgb, var(--ev-border) 60%, transparent)}
  html[data-sidebar="collapsed"] .ev-nav-section:first-child{border-top:0;padding-top:0;margin-top:0}
  html[data-sidebar="collapsed"] .ev-nav-section__title[aria-expanded="false"] + .ev-nav-list{display:flex}
  /* The foot: the sign-out button alone, as wide as a navigation item (47px), its icon on the axis. */
  html[data-sidebar="collapsed"] .ev-profile{display:block;padding:0;background:none;border-radius:0}
  html[data-sidebar="collapsed"] .ev-avatar,html[data-sidebar="collapsed"] .ev-profile__text{display:none}
  html[data-sidebar="collapsed"] .ev-signout-form{width:100%}
  html[data-sidebar="collapsed"] .ev-signout{width:100%;height:var(--ev-nav-item-h)}
}

/* From 2560px (Shield's 3xl): the sidebar is 18rem, items are 1rem text on 3rem. */
@media (min-width:160rem){
  .ev-nav-item,.ev-lang a{font-size:var(--ev-fs-base);line-height:var(--ev-lh-base)}
}
/* On the mobile drawer the collapse control is not shown: the drawer always has the full head and foot, whatever the desktop preference. */
@media (max-width:767.98px){
  .ev-sidebar__head .ev-collapse{display:none}
}

/* ============================== TOPBAR PATTERNS ============================== */
.ev-icon-btn{
  display:inline-flex;align-items:center;justify-content:center;width:2.25rem;height:2.25rem;padding:0;flex:none;
  border:0;border-radius:var(--ev-radius-control);background:transparent;color:var(--ev-text-muted);cursor:pointer;
  transition:color .15s,background-color .15s;
}
.ev-icon-btn--sm{width:1.75rem;height:1.75rem;border-radius:var(--ev-radius-nav)}
.ev-icon-btn:hover{color:var(--ev-text);background:var(--ev-surface-hover)}
.ev-icon-btn:active{background:var(--ev-surface-raised)}
@media (max-width:767.98px){.ev-icon-btn{width:2.75rem;height:2.75rem}}

/* Dropdown (product switcher, user menu): a button and a panel, opened by app-shell.js. */
.ev-menu{position:relative}
.ev-menu__trigger{
  display:inline-flex;align-items:center;gap:var(--ev-space-2);height:2.25rem;padding:0 var(--ev-space-3);
  border:1px solid transparent;border-radius:var(--ev-radius-control);background:transparent;color:var(--ev-text);cursor:pointer;
  font:inherit;font-size:var(--ev-fs-sm);line-height:var(--ev-lh-sm);font-weight:500;
  transition:border-color .15s,background-color .15s;
}
.ev-menu__trigger:hover{background:var(--ev-surface-hover)}
.ev-menu__trigger[aria-expanded="true"]{border-color:var(--ev-border-strong);background:var(--ev-surface)}
.ev-menu__trigger .ev-icon--sm{color:var(--ev-text-muted);transition:transform .15s}
.ev-menu__trigger[aria-expanded="true"] .ev-icon--sm{transform:rotate(180deg)}
.ev-menu__panel{
  position:absolute;top:calc(100% + var(--ev-space-1));left:0;z-index:60;min-width:14rem;max-width:20rem;margin:0;padding:var(--ev-space-1);list-style:none;
  background:var(--ev-surface);border:1px solid var(--ev-border-strong);border-radius:var(--ev-radius-card);box-shadow:var(--ev-shadow-pop);
}
.ev-menu__panel[hidden]{display:none}
.ev-menu--end .ev-menu__panel{left:auto;right:0}
.ev-menu__label{padding:var(--ev-space-2) var(--ev-space-3);font-size:var(--ev-fs-xs);line-height:var(--ev-lh-xs);font-weight:600;letter-spacing:0.08em;text-transform:uppercase;color:var(--ev-text-muted)}
.ev-menu__item{
  display:flex;align-items:center;gap:var(--ev-space-3);width:100%;height:var(--ev-menu-item-h);padding:0 var(--ev-space-3);
  border:0;border-radius:var(--ev-radius-control);background:transparent;color:var(--ev-text-body);cursor:pointer;text-align:left;text-decoration:none;
  font:inherit;font-size:var(--ev-fs-sm);line-height:var(--ev-lh-sm);font-weight:500;
}
.ev-menu__item:hover,.ev-menu__item:focus-visible{background:var(--ev-surface-hover);color:var(--ev-text)}
.ev-menu__item[aria-current="true"]{color:var(--ev-brand)}
.ev-menu__item .ev-icon--sm{margin-left:auto;flex:none;color:var(--ev-text-muted)}
.ev-menu__item--current{cursor:default}
.ev-menu__item--current .ev-icon--sm{color:var(--ev-brand)}
.ev-menu__item[aria-disabled="true"]{opacity:.5;cursor:not-allowed}
.ev-menu__item--danger:hover{color:var(--ev-danger-text)}
.ev-menu__sep{height:1px;margin:var(--ev-space-1) 0;background:var(--ev-border);border:0}
.ev-avatar{display:inline-flex;align-items:center;justify-content:center;flex:none;width:var(--ev-avatar-size);height:var(--ev-avatar-size);border-radius:999px;background:color-mix(in srgb, var(--ev-brand) 20%, transparent);color:var(--ev-brand);font-size:var(--ev-fs-xs);line-height:var(--ev-lh-xs);font-weight:600;letter-spacing:0.02em;text-transform:uppercase;user-select:none}
/* Language switch: two links in one group, the current one marked aria-current. */
.ev-lang,.ev-theme{display:inline-flex;flex:none;border:1px solid var(--ev-border-strong);border-radius:var(--ev-radius-control);overflow:hidden}
.ev-lang a,.ev-lang button,.ev-theme a,.ev-theme button{display:inline-flex;align-items:center;padding:0.25rem var(--ev-space-3);border:0;background:transparent;color:var(--ev-text-muted);text-decoration:none;cursor:pointer}
.ev-lang button,.ev-theme a,.ev-theme button{font:inherit;font-size:var(--ev-fs-xs);line-height:var(--ev-lh-xs);font-weight:600;letter-spacing:0.06em}
.ev-lang a:hover,.ev-lang button:hover,.ev-theme a:hover,.ev-theme button:hover{color:var(--ev-text);background:var(--ev-surface-hover)}
.ev-lang [aria-current="true"],.ev-theme [aria-current="true"]{background:color-mix(in srgb, var(--ev-brand) 14%, transparent);color:var(--ev-brand)}

/* ============================== PAGE ============================== */
.ev-page-header{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:var(--ev-space-4);margin-bottom:var(--ev-space-8)}
.ev-page-header .ev-eyebrow{margin-bottom:var(--ev-space-1)}
.ev-breadcrumb{display:flex;flex-wrap:wrap;align-items:center;gap:var(--ev-space-2);margin:0 0 var(--ev-space-4);padding:0;list-style:none;font-size:var(--ev-fs-sm);line-height:var(--ev-lh-sm);color:var(--ev-text-muted)}
.ev-breadcrumb a{color:var(--ev-text-muted);text-decoration:none}
.ev-breadcrumb a:hover{color:var(--ev-text)}
.ev-breadcrumb li + li::before{content:"/";margin-right:var(--ev-space-2);color:var(--ev-border-strong)}
.ev-breadcrumb [aria-current="page"]{color:var(--ev-text)}
.ev-stack{display:flex;flex-direction:column;gap:var(--ev-space-8)}
.ev-row{display:flex;flex-wrap:wrap;align-items:center;gap:var(--ev-space-3)}

/* Dashboard grid. ONE gap (--ev-grid-gap, 1rem). KPI rows go 2 then 4 columns, product
   tiles 1 then 3, panels 1 then 2. */
.ev-grid{display:grid;gap:var(--ev-grid-gap);grid-template-columns:repeat(auto-fill, minmax(min(100%, 16rem), 1fr))}
.ev-grid--kpi{grid-template-columns:repeat(2, minmax(0, 1fr))}
.ev-grid--tiles,.ev-grid--panels{grid-template-columns:minmax(0, 1fr)}
@media (min-width:768px){
  .ev-grid--kpi{grid-template-columns:repeat(4, minmax(0, 1fr))}
  .ev-grid--tiles{grid-template-columns:repeat(3, minmax(0, 1fr))}
  .ev-grid--panels{grid-template-columns:repeat(2, minmax(0, 1fr))}
}

/* ============================== CARD, KPI, TILE ============================== */
.ev-card{
  display:flex;flex-direction:column;gap:var(--ev-space-3);min-width:0;
  padding:var(--ev-card-pad);background:var(--ev-surface);
  border:1px solid var(--ev-border);border-radius:var(--ev-radius-card);
  color:var(--ev-text-body);text-decoration:none;transition:border-color .15s,background-color .15s;
}
a.ev-card:hover{border-color:var(--ev-border-strong);background:var(--ev-surface-raised)}
.ev-card[data-product]{border-top:2px solid var(--product-accent)}
.ev-card__head{display:flex;align-items:center;justify-content:space-between;gap:var(--ev-space-3)}
.ev-kpi__label{font-size:var(--ev-fs-xs);line-height:var(--ev-lh-xs);font-weight:600;letter-spacing:0.08em;text-transform:uppercase;color:var(--ev-text-muted)}
.ev-kpi__value{font-size:var(--ev-fs-3xl);line-height:var(--ev-lh-3xl);font-weight:600;color:var(--ev-text);font-variant-numeric:tabular-nums}
.ev-kpi__delta{font-size:var(--ev-fs-xs);line-height:var(--ev-lh-xs);color:var(--ev-text-muted)}

/* ============================== BUTTONS ============================== */
/* Four variants. Primary (copper) is the ONE call to action on a page; secondary is the
   default; ghost is for toolbars and tertiary actions; danger confirms a destructive act.
   Every variant has hover, active, focus-visible and disabled, and the same 2.25rem height. */
.ev-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:var(--ev-space-2);cursor:pointer;
  min-height:2.25rem;padding:0.4375rem var(--ev-space-4);border:1px solid var(--ev-border-strong);border-radius:var(--ev-radius-control);
  background:var(--ev-surface-raised);color:var(--ev-text);font:inherit;font-size:var(--ev-fs-sm);line-height:var(--ev-lh-sm);font-weight:600;
  text-decoration:none;transition:border-color .15s,background-color .15s,color .15s;
  /* 2.4.3: a label may wrap (a German compound on a phone), so the button grows in height instead of leaving its box; one line is still exactly 2.25rem. */
  max-width:100%;text-align:center;overflow-wrap:anywhere;
}
.ev-btn:hover{border-color:var(--ev-brand);background:var(--ev-surface-hover)}
.ev-btn:active{background:var(--ev-surface)}
.ev-btn--primary{background:var(--ev-cta);border-color:transparent;color:var(--ev-on-cta)}
.ev-btn--primary:hover{background:var(--ev-cta-hover);border-color:transparent}
.ev-btn--primary:active{background:var(--c-copper-700)}
.ev-btn--ghost{background:transparent;border-color:transparent;color:var(--ev-text-body)}
.ev-btn--ghost:hover{background:var(--ev-surface-hover);border-color:transparent;color:var(--ev-text)}
.ev-btn--danger{background:transparent;border-color:color-mix(in srgb, var(--ev-danger) 50%, transparent);color:var(--ev-danger-text)}
.ev-btn--danger:hover{background:color-mix(in srgb, var(--ev-danger) 14%, transparent);border-color:var(--ev-danger)}
/* The sign-in call to action: the brand blue with the dark label (8.48:1; white on the brand blue is 2.32:1 and is never used). */
.ev-btn--brand{background:var(--ev-brand);border-color:var(--ev-brand);color:var(--ev-on-brand)}
.ev-btn--brand:hover{background:var(--ev-brand-strong);border-color:var(--ev-brand-strong)}
.ev-btn--brand:active{background:var(--ev-brand-strong)}
.ev-btn--lg{min-height:2.625rem;gap:var(--ev-space-3);font-weight:500;border-radius:var(--ev-radius-nav)}
.ev-btn--block{width:100%}
.ev-btn:disabled,.ev-btn[aria-disabled="true"]{opacity:.5;cursor:not-allowed;pointer-events:none}

/* ============================== FORMS ============================== */
.ev-field{display:flex;flex-direction:column;gap:var(--ev-space-1)}
.ev-label{font-size:var(--ev-fs-sm);line-height:var(--ev-lh-sm);font-weight:500;color:var(--ev-text)}
.ev-help{font-size:var(--ev-fs-xs);line-height:var(--ev-lh-xs);color:var(--ev-text-muted)}
.ev-error{font-size:var(--ev-fs-xs);line-height:var(--ev-lh-xs);color:var(--ev-danger-text)}
.ev-input,.ev-select,.ev-textarea{
  width:100%;height:2.25rem;padding:0 var(--ev-space-3);background:var(--ev-bg);color:var(--ev-text);
  border:1px solid var(--ev-border-strong);border-radius:var(--ev-radius-control);
  font:inherit;font-size:var(--ev-fs-sm);line-height:var(--ev-lh-sm);transition:border-color .15s;
}
.ev-textarea{height:auto;min-height:6rem;padding:var(--ev-space-2) var(--ev-space-3)}
.ev-input::placeholder,.ev-textarea::placeholder{color:var(--ev-text-muted)}
.ev-input:hover,.ev-select:hover,.ev-textarea:hover{border-color:var(--ev-text-muted)}
.ev-input:focus-visible,.ev-select:focus-visible,.ev-textarea:focus-visible{border-color:var(--ev-focus)}
.ev-input[aria-invalid="true"],.ev-select[aria-invalid="true"],.ev-textarea[aria-invalid="true"]{border-color:var(--ev-danger)}
.ev-input:disabled,.ev-select:disabled,.ev-textarea:disabled{opacity:.5;cursor:not-allowed}
.ev-check{display:inline-flex;align-items:center;gap:var(--ev-space-2);font-size:var(--ev-fs-sm);line-height:var(--ev-lh-sm);color:var(--ev-text-body);cursor:pointer}
.ev-check input{width:1rem;height:1rem;margin:0;accent-color:var(--c-primary)}

/* ============================== TABLE ============================== */
.ev-table-wrap{
  overflow-x:auto;position:relative; /* 2.6.1: the containing block of what it holds. An absolutely positioned .ev-sr-only word in a far column was positioned against the page and widened it at 402 and 360px. */border:1px solid var(--ev-border);border-radius:var(--ev-radius-card);
  /* 2.4.3: a table wider than the screen scrolls INSIDE this box, and the box shows it: a brand-coloured fade at an edge that has more behind it.
     The two surface-coloured covers are attached to the content (local), so they scroll away and uncover the fade only while there is more to see. */
  background:
    linear-gradient(to right, var(--ev-surface) 30%, transparent) left center / 2rem 100% no-repeat local,
    linear-gradient(to left, var(--ev-surface) 30%, transparent) right center / 2rem 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, color-mix(in srgb, var(--ev-brand) 45%, transparent), transparent) left center / 0.75rem 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, color-mix(in srgb, var(--ev-brand) 45%, transparent), transparent) right center / 0.75rem 100% no-repeat scroll,
    var(--ev-surface);
}
/* A bare .ev-table (no wrapper) must not push the page either: it scrolls in itself. Wrap it in .ev-table-wrap to keep a real table and the cue above. */
:where(:not(.ev-table-wrap)) > .ev-table{display:block;max-width:100%;overflow-x:auto}
:where(:not(.ev-table-wrap)) > .ev-table{position:relative} /* 2.6.1: the same containing block as the wrapper's */
.ev-table{width:100%;border-collapse:collapse;font-size:var(--ev-fs-sm);line-height:var(--ev-lh-sm)}
.ev-table th{padding:var(--ev-space-2) var(--ev-space-3);text-align:left;font-size:var(--ev-fs-xs);line-height:var(--ev-lh-xs);font-weight:600;letter-spacing:0.08em;text-transform:uppercase;color:var(--ev-text-muted);border-bottom:1px solid var(--ev-border-strong);white-space:nowrap}
/* 2.4.3: a cell wraps a long token but never narrower than 6rem; below that the table is wider than the screen and scrolls in its wrapper instead of stacking one character per line (an .ev-mono id breaks anywhere). */
.ev-table td{min-width:6rem;padding:var(--ev-space-3);color:var(--ev-text-body);border-bottom:1px solid var(--ev-border)}
.ev-table tbody tr:last-child td{border-bottom:0}
.ev-table tbody tr:hover td{background:var(--ev-surface-hover)}
.ev-table a{color:var(--ev-brand);text-decoration:none}
.ev-table a:hover{text-decoration:underline}
.ev-table .ev-num{text-align:right;font-variant-numeric:tabular-nums}
/* 2.5.1: inside a table a tag, a badge, an example mark and a button never break inside a word. The 2.4.3 rule (overflow-wrap:anywhere on the tag) keeps a tag on the screen, but a table
   wrapper already handles width: it scrolls and shows a fade. So the cell grows to the label and the wrapper scrolls, instead of "Credenti / al / expired". A bare .ev-table scrolls in itself, the same.
   Long free text in a cell still wraps (td keeps min-width:6rem); only the labels of these four parts hold together. Outside a table the 2.4.3 rules stay. */
:is(.ev-table-wrap, .ev-table) :is(.ev-tag, .ev-badge, .ev-example-badge, .ev-btn){white-space:nowrap;overflow-wrap:normal;max-width:none}
.ev-pager{display:flex;align-items:center;justify-content:space-between;gap:var(--ev-space-3);margin-top:var(--ev-space-4);font-size:var(--ev-fs-sm);color:var(--ev-text-muted)}
/* 2.4.3: the label column is a fixed 12rem, or 35 percent of a narrow card, and the value column may shrink (minmax 0) so a UUID wraps instead of widening the card. */
.ev-dl{display:grid;grid-template-columns:min(12rem, 35%) minmax(0, 1fr);gap:var(--ev-space-3) var(--ev-space-4);margin:0;font-size:var(--ev-fs-sm);line-height:var(--ev-lh-sm)}
.ev-dl dt{color:var(--ev-text-muted)}
.ev-dl dd{margin:0;color:var(--ev-text)}

/* ============================== TAG, BADGE ============================== */
.ev-tag{
  display:inline-flex;align-items:center;gap:var(--ev-space-1);padding:0.125rem var(--ev-space-2);border-radius:999px;
  font-size:var(--ev-fs-xs);line-height:var(--ev-lh-xs);font-weight:600;
  background:color-mix(in srgb, var(--ev-text-muted) 14%, transparent);color:var(--ev-text-body);
  /* 2.4.3: a long label wraps inside the pill instead of standing over the edge. */
  max-width:100%;overflow-wrap:anywhere;
}
.ev-tag--ok{background:color-mix(in srgb, var(--ev-ok) 14%, transparent);color:var(--ev-ok-text)}
.ev-tag--warn{background:color-mix(in srgb, var(--ev-warn) 14%, transparent);color:var(--ev-warn-text)}
.ev-tag--danger{background:color-mix(in srgb, var(--ev-danger) 14%, transparent);color:var(--ev-danger-text)}
.ev-tag--info{background:color-mix(in srgb, var(--ev-info) 14%, transparent);color:var(--ev-info-text)}
/* Badge: a count on a navigation item. */
.ev-badge{display:inline-flex;align-items:center;justify-content:center;min-width:1.25rem;height:1.25rem;padding:0 0.375rem;border-radius:999px;background:var(--ev-surface-raised);color:var(--ev-text);font-size:var(--ev-fs-xs);line-height:1;font-weight:600;font-variant-numeric:tabular-nums}
.ev-badge--attn{background:color-mix(in srgb, var(--ev-danger) 20%, transparent);color:var(--ev-danger-text)}

/* ============================== BANNER, EMPTY ============================== */
/* A banner is a sentence the page owes the user: it has an icon, a title, a body and,
   when it can go away, a dismiss button. role="alert" for errors, role="status" otherwise. */
.ev-banner{
  display:flex;align-items:flex-start;gap:var(--ev-space-3);padding:var(--ev-space-3) var(--ev-space-4);
  border:1px solid var(--ev-border-strong);border-left-width:3px;border-radius:var(--ev-radius-control);
  background:var(--ev-surface);color:var(--ev-text-body);font-size:var(--ev-fs-sm);line-height:var(--ev-lh-sm);
}
.ev-banner__body{flex:1;min-width:0}
.ev-banner__title{display:block;font-weight:600;color:var(--ev-text)}
.ev-banner--info{border-left-color:var(--ev-info)}
.ev-banner--ok{border-left-color:var(--ev-ok)}
.ev-banner--warn{border-left-color:var(--ev-warn)}
.ev-banner--danger{border-left-color:var(--ev-danger)}
.ev-banner--info > .ev-icon{color:var(--ev-info-text)}
.ev-banner--ok > .ev-icon{color:var(--ev-ok-text)}
.ev-banner--warn > .ev-icon{color:var(--ev-warn-text)}
.ev-banner--danger > .ev-icon{color:var(--ev-danger-text)}
.ev-empty{display:flex;flex-direction:column;align-items:center;gap:var(--ev-space-3);padding:var(--ev-space-12) var(--ev-space-6);text-align:center;border:1px dashed var(--ev-border-strong);border-radius:var(--ev-radius-card)}
.ev-empty .ev-icon{color:var(--ev-text-muted)}
.ev-empty p{margin:0;max-width:40ch;color:var(--ev-text-muted);font-size:var(--ev-fs-sm);line-height:var(--ev-lh-sm)}

/* ============================== DASHBOARD AND HELP PARTS (2.5.0) ============================== */
/* Produktvorlage 2.5 (owner approval 2026-10-05; docs/dashboard.md, docs/help.md). Content area only: no frame number moves. Every part wraps its text, so the three content
   records of 2.4.3 stay green at 360, 390, 402 and 1280. No literal colour, no inline style: a bar's width is the value of a <progress>, which a strict style-src allows. */
/* KPI tile without a measurement: "No data yet" in words, never a 0. */
.ev-kpi__value--none{font-family:var(--ev-font-sans);font-size:var(--ev-fs-base);line-height:var(--ev-lh-base);font-weight:500;color:var(--ev-text-muted);padding-block:var(--ev-space-2)}
a.ev-card:focus-visible{outline:2px solid var(--ev-focus);outline-offset:2px}
/* "To do": the most urgent items, each with its severity. A row is a link and a tag. */
.ev-todo{display:flex;flex-direction:column;margin:0;padding:0;list-style:none}
.ev-todo__item{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--ev-space-3);padding:var(--ev-space-3) 0;border-bottom:1px solid var(--ev-border);font-size:var(--ev-fs-sm);line-height:var(--ev-lh-sm)}
.ev-todo__item:first-child{padding-top:0}
.ev-todo__item:last-child{padding-bottom:0;border-bottom:0}
.ev-todo__item > :first-child{flex:1 1 auto;min-width:0}
.ev-todo__item > .ev-tag{flex:none;max-width:45%}
.ev-todo__link{color:var(--ev-text-body);text-decoration:none}
.ev-todo__link:hover{color:var(--ev-text);text-decoration:underline}
.ev-todo__link:focus-visible{outline:2px solid var(--ev-focus);outline-offset:2px;border-radius:2px}
/* The simple picture: horizontal bars, one row each. <progress> keeps it accessible and free of inline style; a row's colour is a state, never decoration. */
.ev-bars{display:flex;flex-direction:column;gap:var(--ev-space-3);margin:0;padding:0;list-style:none;font-size:var(--ev-fs-sm);line-height:var(--ev-lh-sm)}
.ev-bar{display:grid;grid-template-columns:minmax(0, 7rem) minmax(0, 1fr) minmax(2.5rem, auto);align-items:center;gap:var(--ev-space-3);color:var(--ev-text-body)}
.ev-bar > :last-child{text-align:right;font-variant-numeric:tabular-nums;color:var(--ev-text)}
.ev-bar--ok{--ev-bar-color:var(--ev-ok)}
.ev-bar--warn{--ev-bar-color:var(--ev-warn)}
.ev-bar--danger{--ev-bar-color:var(--ev-danger)}
.ev-bar--info{--ev-bar-color:var(--ev-info)}
.ev-bar__progress{appearance:none;-webkit-appearance:none;display:block;width:100%;height:0.5rem;border:0;border-radius:999px;overflow:hidden;background:var(--ev-surface-raised);color:var(--ev-bar-color, var(--ev-brand))}
.ev-bar__progress::-webkit-progress-bar{background:var(--ev-surface-raised);border-radius:999px}
.ev-bar__progress::-webkit-progress-value{background:var(--ev-bar-color, var(--ev-brand));border-radius:999px}
.ev-bar__progress::-moz-progress-bar{background:var(--ev-bar-color, var(--ev-brand));border-radius:999px}
/* The welcome card: a new customer without data. It replaces "To do" and the picture until the first real data exists. */
.ev-welcome{display:grid;grid-template-columns:minmax(0, 1fr);gap:var(--ev-space-4);align-items:center;padding:var(--ev-space-6);background:var(--ev-surface);border:1px dashed var(--ev-border-strong);border-radius:var(--ev-radius-card)}
.ev-welcome__title{margin:0}
.ev-welcome__text{margin:var(--ev-space-1) 0 0;color:var(--ev-text-muted);font-size:var(--ev-fs-sm);line-height:var(--ev-lh-sm)}
.ev-welcome__actions{display:flex;flex-direction:column;gap:var(--ev-space-2)}
.ev-steps{display:grid;grid-template-columns:minmax(0, 1fr);gap:var(--ev-space-3);margin:var(--ev-space-4) 0 0;padding:0;list-style:none}
.ev-step{min-width:0;padding:var(--ev-space-3);background:var(--ev-surface-raised);border-radius:var(--ev-radius-control);font-size:var(--ev-fs-xs);line-height:var(--ev-lh-xs);color:var(--ev-text-body)}
.ev-step__title{display:block;margin-bottom:var(--ev-space-1);font-size:var(--ev-fs-sm);line-height:var(--ev-lh-sm);font-weight:600;color:var(--ev-text)}
/* "To do" and the picture sit side by side; when one of them has no content and falls away, the other takes the row. */
.ev-grid--panels > [data-ev-block]:only-child{grid-column:1 / -1}
@media (min-width:768px){
  .ev-welcome{grid-template-columns:minmax(0, 1fr) auto}
  .ev-steps{grid-template-columns:repeat(3, minmax(0, 1fr))}
}
/* The example mark: every example carries it, everywhere it is shown. Outlined in the warning state, so it reads as "not real" and never as a status. */
.ev-example-badge{display:inline-flex;align-items:center;padding:0.0625rem var(--ev-space-2);border:1px solid var(--ev-warn);border-radius:var(--ev-radius-control);color:var(--ev-warn-text);font-size:var(--ev-fs-xs);line-height:var(--ev-lh-xs);font-weight:600;max-width:100%;overflow-wrap:anywhere}
/* The help page: first steps and questions on the left, the one-click example on the right. */
.ev-guide{display:grid;grid-template-columns:minmax(0, 1fr);gap:var(--ev-grid-gap);align-items:start}
@media (min-width:768px){.ev-guide{grid-template-columns:minmax(0, 1.3fr) minmax(0, 1fr)}}
.ev-first-steps{display:flex;flex-direction:column;margin:0;padding:0;list-style:none;counter-reset:ev-first-step}
.ev-first-steps__item{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--ev-space-3);padding:var(--ev-space-3) 0;border-bottom:1px solid var(--ev-border);font-size:var(--ev-fs-sm);line-height:var(--ev-lh-sm);color:var(--ev-text-body);counter-increment:ev-first-step}
.ev-first-steps__item:last-child{border-bottom:0}
.ev-first-steps__item > :first-child{flex:1 1 auto;min-width:0}
.ev-first-steps__item > :first-child::before{content:counter(ev-first-step) ". ";font-weight:600;color:var(--ev-text)}
.ev-first-steps__item > a{flex:none;max-width:45%}
.ev-faq{display:flex;flex-direction:column;margin:0}
.ev-faq details{border-bottom:1px solid var(--ev-border);font-size:var(--ev-fs-sm);line-height:var(--ev-lh-sm)}
.ev-faq summary{display:block;padding:var(--ev-space-3) 0;color:var(--ev-text);font-weight:500;cursor:pointer}
.ev-faq summary:focus-visible{outline:2px solid var(--ev-focus);outline-offset:2px;border-radius:2px}
.ev-faq details > :not(summary){margin:0 0 var(--ev-space-3);color:var(--ev-text-muted)}
.ev-example-box{display:flex;flex-direction:column;align-items:flex-start;gap:var(--ev-space-3);min-width:0;padding:var(--ev-card-pad);background:color-mix(in srgb, var(--ev-warn) 7%, transparent);border:1px solid color-mix(in srgb, var(--ev-warn) 55%, transparent);border-radius:var(--ev-radius-card)}
.ev-example-box > *{max-width:100%}
.ev-example-box p{margin:0;color:var(--ev-text-body);font-size:var(--ev-fs-sm);line-height:var(--ev-lh-sm)}
.ev-example-box .ev-help{margin:0}

/* ============================== CONTENT FITS THE SCREEN (2.4.3) ============================== */
/* Owner finding 2026-10-05, iPhone 17 Pro, 402px: texts stood over the right edge of signed-in pages. Content area only (.ev-main and the parts in it); no frame number moves.
   The rules are the smallest set that makes template-stress-narrow.html pass the three content records of the probe at 360, 402 and 1280. */
/* Text wraps: a token longer than its box (a compound word, an address, a UUID, a URL) breaks inside the box. break-word keeps the box sizing as it was;
   anywhere (on .ev-btn, .ev-tag, .ev-check and .ev-mono) also lowers the min-content width, which a shrink-to-fit box needs before it can get narrower than its token. */
.ev-main{overflow-wrap:break-word}
/* Prose hyphenates (the shell sets lang); ids, hashes and addresses do not. */
.ev-main :is(p,li,.ev-h1,.ev-h2,.ev-h3,.ev-lede,.ev-banner__body,.ev-help,.ev-error){hyphens:auto}
/* 2.5.2: KPI labels, headings and the short titles of the 2.5.0 parts break at a syllable WITH a hyphen (hyphens:auto, the shell sets lang) and inside a word without one only as the last resort (break-word, never anywhere); anywhere stays on the tokens that have no syllables (.ev-mono ids and hashes, .ev-check, the pills of 2.4.3), so "ABSCHLUSSQUOT / E" cannot happen. */
.ev-main :is(.ev-kpi__label,h1,h2,h3,h4,.ev-h1,.ev-h2,.ev-h3,.ev-todo__item > :first-child:not(.ev-mono,.ev-tag,.ev-badge,.ev-btn,.ev-example-badge,.ev-check),.ev-bar > :first-child:not(.ev-mono,.ev-tag,.ev-badge,.ev-btn,.ev-example-badge,.ev-check),.ev-step__title){hyphens:auto;overflow-wrap:break-word}
/* Flex children shrink: min-width:auto would keep each one as wide as its longest token. The page header's title block is one of them, which is also how the actions wrap under a long title. */
.ev-row > *,.ev-page-header > *,.ev-card__head > *,.ev-pager > *,.ev-breadcrumb > *{min-width:0}
/* A centred empty state sizes its children to their content, which a long token makes wider than the box: cap them at the box. */
.ev-empty > *{max-width:100%}
.ev-check{max-width:100%;overflow-wrap:anywhere}
/* Media never wider than the column; the height follows so a width attribute cannot distort the picture. */
.ev-main :is(img,video,canvas,iframe,svg:not(.ev-icon)){max-width:100%}
.ev-main :is(img,video){height:auto}
/* Preformatted text keeps its lines and scrolls inside itself. */
.ev-main pre{max-width:100%;overflow-x:auto}

/* ============================== AUTH PAGES ============================== */
/* Login and logout: no sidebar, no switcher, no user menu (there is no user yet, or any
   more). One centred card on the page background, the large mark, the product name. */
.ev-auth{display:grid;place-items:center;min-height:100vh;padding:var(--ev-space-6) var(--ev-space-4)}
/* The sign-in and sign-out pages are ONE layout in every product (Shield's login is the model, measured 2026-10-03): the page centred,
   the product mark, the product NAME directly under it (Fraunces), a one-line tagline, then a card with ONE full-width button, a muted hint,
   and the footer line "(c) <year> <company>" under the card. The sign-in button is the brand blue in every product (not copper). */
.ev-auth__wrap{width:100%;max-width:28rem}
.ev-auth__head{margin-bottom:var(--ev-space-8);text-align:center}
.ev-auth__title{display:flex;justify-content:center;margin:0}
.ev-auth__tagline{margin:var(--ev-space-2) 0 0;font-size:var(--ev-fs-base);line-height:var(--ev-lh-base);color:var(--ev-text-muted)}
.ev-auth__card{padding:var(--ev-space-8);background:var(--ev-surface);border:1px solid var(--ev-border);border-radius:var(--ev-radius-panel)}
.ev-auth__card > .ev-banner{margin-bottom:var(--ev-space-4)}
.ev-auth__msg{display:flex;flex-direction:column;align-items:center;gap:var(--ev-space-2);margin-bottom:var(--ev-space-6);text-align:center}
.ev-auth__msg .ev-icon{color:var(--ev-ok-text)}
.ev-auth__msg .ev-lede{margin:0}
.ev-auth__hint{margin:var(--ev-space-6) 0 0;text-align:center;font-size:var(--ev-fs-xs);line-height:var(--ev-lh-xs);color:var(--ev-text-muted)}
.ev-auth__foot{margin:var(--ev-space-6) 0 0;text-align:center;font-size:var(--ev-fs-xs);line-height:var(--ev-lh-xs);color:var(--ev-text-muted)}
.ev-auth__bar{position:absolute;top:var(--ev-space-4);right:var(--ev-space-6);display:flex;align-items:center}
@media (max-width:767.98px){.ev-auth__bar{right:var(--ev-space-3)}}

/* ============================== SEVERITY PARTS (2.6.0) ============================== */
/* Visualisierung 2.6 (owner approval 2026-10-06; docs/visualisation.md). The ramp is the --ev-sev-* tokens; every part below takes its colour from them and from nothing else (record sev-from-tokens).
   No literal colour, no inline style, no chart library: a ring, a bar, a donut and a sparkline are SVG whose numbers are ATTRIBUTES (stroke-dasharray, x and width, points), so they are drawn by a server
   without JavaScript and survive print. app-shell-severity.mjs computes the attributes. A level is a colour, a SHAPE and a WORD (records sev-not-colour-only, sev-from-tokens, sev-same-across-themes,
   donut-centre-size). Graphics use --ev-sev-<level> (the same in both themes); text uses --ev-sev-<level>-text on the surface. Grey means "no data", never "good". */
.ev-sev-chip--crit,.ev-sev-shape--crit,.ev-sev-legend__item--crit,.ev-kpi--crit,.ev-ring--crit,.ev-spark--crit,.ev-prodscore--crit{--ev-sev-fill:var(--ev-sev-crit);--ev-sev-ink:var(--ev-sev-crit-text);--ev-sev-wash:var(--ev-sev-crit-bg);--ev-sev-edge:var(--ev-sev-crit-contour)}
.ev-sev-chip--high,.ev-sev-shape--high,.ev-sev-legend__item--high,.ev-kpi--high,.ev-ring--high,.ev-spark--high,.ev-prodscore--high{--ev-sev-fill:var(--ev-sev-high);--ev-sev-ink:var(--ev-sev-high-text);--ev-sev-wash:var(--ev-sev-high-bg);--ev-sev-edge:var(--ev-sev-high-contour)}
.ev-sev-chip--med,.ev-sev-shape--med,.ev-sev-legend__item--med,.ev-kpi--med,.ev-ring--med,.ev-spark--med,.ev-prodscore--med{--ev-sev-fill:var(--ev-sev-med);--ev-sev-ink:var(--ev-sev-med-text);--ev-sev-wash:var(--ev-sev-med-bg);--ev-sev-edge:var(--ev-sev-med-contour)}
.ev-sev-chip--low,.ev-sev-shape--low,.ev-sev-legend__item--low,.ev-kpi--low,.ev-ring--low,.ev-spark--low,.ev-prodscore--low{--ev-sev-fill:var(--ev-sev-low);--ev-sev-ink:var(--ev-sev-low-text);--ev-sev-wash:var(--ev-sev-low-bg);--ev-sev-edge:var(--ev-sev-low-contour)}
.ev-sev-chip--none,.ev-sev-shape--none,.ev-sev-legend__item--none,.ev-kpi--none,.ev-ring--none,.ev-spark--none,.ev-prodscore--none{--ev-sev-fill:var(--ev-sev-none);--ev-sev-ink:var(--ev-sev-none-text);--ev-sev-wash:var(--ev-sev-none-bg);--ev-sev-edge:var(--ev-sev-none-contour)}
/* The shape: a 12px box, the glyph of each level cut from it. Triangle, diamond, square, circle; a hollow ring for "no data". It is drawn in the colour of the text around it. */
.ev-sev-shape{display:inline-block;flex:none;box-sizing:border-box;width:0.75rem;height:0.75rem;background:currentColor;vertical-align:-0.0625rem;print-color-adjust:exact;-webkit-print-color-adjust:exact}
.ev-sev-shape--crit{clip-path:polygon(50% 8.3%, 91.7% 83.3%, 8.3% 83.3%)}
.ev-sev-shape--high{clip-path:polygon(50% 8.3%, 91.7% 50%, 50% 91.7%, 8.3% 50%)}
.ev-sev-shape--med{clip-path:inset(16.7% round 12.5%)}
.ev-sev-shape--low{clip-path:circle(41.7%)}
.ev-sev-shape--none{background:transparent;border:2px solid currentColor;border-radius:50%}
/* The chip: colour, shape and word. Put it on the surface or the page, not on a hovered or raised surface (docs/visualisation.md section 6 has the measured contrast). */
.ev-sev-chip{
  display:inline-flex;align-items:center;gap:var(--ev-space-1);max-width:100%;padding:0.125rem var(--ev-space-2);border-radius:999px;
  background:var(--ev-sev-wash);color:var(--ev-sev-ink);font-size:var(--ev-fs-xs);line-height:var(--ev-lh-xs);font-weight:700;overflow-wrap:anywhere;
  print-color-adjust:exact;-webkit-print-color-adjust:exact;
}
.ev-todo__item > .ev-sev-chip{flex:none;max-width:45%}
:is(.ev-table-wrap, .ev-table) .ev-sev-chip{white-space:nowrap;overflow-wrap:normal;max-width:none}
/* A KPI tile with a level: a 4px stripe in the graphic colour at the left, and the value in the text tone only for critical and high. Every other level leaves the value in the ink: green and amber digits
   would shout "fine" or "look here" about a number that says neither. */
.ev-kpi--crit,.ev-kpi--high,.ev-kpi--med,.ev-kpi--low,.ev-kpi--none{position:relative;overflow:hidden}
.ev-kpi--crit::before,.ev-kpi--high::before,.ev-kpi--med::before,.ev-kpi--low::before,.ev-kpi--none::before{content:"";position:absolute;top:0;bottom:0;left:0;width:0.25rem;background:var(--ev-sev-fill);print-color-adjust:exact;-webkit-print-color-adjust:exact}
.ev-kpi--crit .ev-kpi__value,.ev-kpi--high .ev-kpi__value{color:var(--ev-sev-ink)}
.ev-kpi__row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--ev-space-2) var(--ev-space-3);min-width:0}
.ev-kpi__main{display:flex;flex-wrap:wrap;align-items:center;gap:var(--ev-space-2) var(--ev-space-3);min-width:0}
.ev-kpi__stack{display:flex;flex-direction:column;align-items:flex-start;gap:var(--ev-space-1);min-width:0}
/* The score ring: a track and a value circle, the value started at the top. The number beside it is the real figure; the ring is its picture. */
.ev-ring{display:block;flex:none;width:4rem;height:4rem}
.ev-ring__track{fill:none;stroke:var(--ev-surface-raised);stroke-width:8}
.ev-ring__value{fill:none;stroke:var(--ev-sev-fill);stroke-width:8;stroke-linecap:round;print-color-adjust:exact;-webkit-print-color-adjust:exact}
/* The stacked severity bar: one rect per level, x and width as attributes in a viewBox of 100. */
.ev-sevbar{display:block;height:0.875rem;margin:0;border-radius:0.4375rem;overflow:hidden;background:var(--ev-surface-raised)}
.ev-sevbar__svg{display:block;width:100%;height:100%}
.ev-sevbar__seg{print-color-adjust:exact;-webkit-print-color-adjust:exact}
.ev-sevbar__seg--crit,.ev-donut__seg--crit{--ev-sev-fill:var(--ev-sev-crit);--ev-sev-edge:var(--ev-sev-crit-contour)}
.ev-sevbar__seg--high,.ev-donut__seg--high{--ev-sev-fill:var(--ev-sev-high);--ev-sev-edge:var(--ev-sev-high-contour)}
.ev-sevbar__seg--med,.ev-donut__seg--med{--ev-sev-fill:var(--ev-sev-med);--ev-sev-edge:var(--ev-sev-med-contour)}
.ev-sevbar__seg--low,.ev-donut__seg--low{--ev-sev-fill:var(--ev-sev-low);--ev-sev-edge:var(--ev-sev-low-contour)}
.ev-sevbar__seg{fill:var(--ev-sev-fill)}
/* The legend of a bar or a donut: the level's SHAPE in the graphic colour, its word and its count. */
.ev-sev-legend{display:flex;flex-wrap:wrap;gap:var(--ev-space-1) var(--ev-space-4);margin:0;padding:0;list-style:none;font-size:var(--ev-fs-xs);line-height:var(--ev-lh-xs);color:var(--ev-text-body)}
.ev-sev-legend__item{display:inline-flex;align-items:center;gap:var(--ev-space-2);min-width:0}
.ev-sev-legend__item .ev-sev-shape{color:var(--ev-sev-fill)}
.ev-sev-legend__count{font-weight:600;color:var(--ev-text);font-variant-numeric:tabular-nums}
/* The donut: a ring of segments with the total in the middle. The centre number is an HTML element at a fixed size (2xl), one step under a key figure (3xl): it never scales with the ring
   (record donut-centre-size). The circumference is 100, so a segment's dash is its share in percent. */
.ev-donut{display:flex;flex-wrap:wrap;align-items:center;gap:var(--ev-space-3) var(--ev-space-5);min-width:0}
.ev-donut__figure{position:relative;flex:none;width:7.5rem;height:7.5rem}
.ev-donut__svg{display:block;width:100%;height:100%}
.ev-donut__track{fill:none;stroke:var(--ev-surface-raised);stroke-width:6}
.ev-donut__seg{fill:none;stroke:var(--ev-sev-fill);stroke-width:6;print-color-adjust:exact;-webkit-print-color-adjust:exact}
.ev-donut__centre{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;max-width:100%;text-align:center;pointer-events:none}
.ev-donut__value{font-size:var(--ev-fs-2xl);line-height:var(--ev-lh-2xl);font-weight:600;color:var(--ev-text);font-variant-numeric:tabular-nums;white-space:nowrap}
.ev-donut__label{max-width:4.5rem;font-size:var(--ev-fs-xs);line-height:var(--ev-lh-xs);color:var(--ev-text-muted);overflow-wrap:anywhere}
.ev-donut .ev-sev-legend{flex-direction:column;flex-wrap:nowrap;gap:var(--ev-space-1)}
/* The sparkline: a polyline of attributes in a viewBox of 120 by 46, stroked 2 CSS pixels whatever the width. */
.ev-spark{display:block;width:100%;height:2.875rem}
.ev-spark__line{fill:none;stroke:var(--ev-sev-fill);stroke-width:2;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke;print-color-adjust:exact;-webkit-print-color-adjust:exact}
/* The product score row: name, a bar in the level's colour, the score with its shape and (visually hidden) its word. A score of 0 still shows a 2 percent sliver, so the bar is never invisible. */
.ev-prodscores{display:flex;flex-direction:column;margin:0;padding:0;list-style:none}
.ev-prodscore{display:grid;grid-template-columns:minmax(0, 6rem) minmax(0, 1fr) minmax(3rem, 7rem);align-items:center;gap:var(--ev-space-3);padding:var(--ev-space-3) 0;border-bottom:1px solid var(--ev-border);font-size:var(--ev-fs-sm);line-height:var(--ev-lh-sm)}
.ev-prodscore:last-child{border-bottom:0;padding-bottom:0}
.ev-prodscore__name{min-width:0;color:var(--ev-brand);font-weight:600;text-decoration:none;overflow-wrap:anywhere}
.ev-prodscore__bar{display:block;width:100%;height:0.625rem;border-radius:999px;overflow:hidden;background:var(--ev-surface-raised)}
.ev-prodscore__fill{fill:var(--ev-sev-fill);print-color-adjust:exact;-webkit-print-color-adjust:exact}
.ev-prodscore__score{display:flex;align-items:center;justify-content:flex-end;gap:var(--ev-space-2);min-width:0;color:var(--ev-sev-ink);font-weight:700;font-variant-numeric:tabular-nums;text-align:right}
.ev-prodscore--none .ev-prodscore__score{font-size:var(--ev-fs-xs);line-height:var(--ev-lh-xs);font-weight:500}

/* THE CONTOUR (2.6.1, owner direction 2026-10-06: WCAG 1.4.11 strictly). On the light surface the orange, the amber and the green fill are below the 3:1 a graphic needs against its ground, and the owner
   approved fills that are IDENTICAL in both themes. So the fill stays exactly as it is and the light theme adds a 1px contour in the level's TEXT tone (--ev-sev-<level>-contour, at least 4.5:1 on white): the
   boundary of the part against the surface is then the contour, and the contour also keeps two adjacent segments apart. The dark theme draws none (its fills are 3:1 or better). Each part draws it with what it
   has, in CSS only, so a product that copied the 2.6.0 markup changes nothing but the stylesheet:
     an arc (ring, donut segment, sparkline): drop-shadow() copies of the part's own silhouette, 1px out. The donut's viewBox is 42 for 120px, so its offset is 1px / 2.857 in user units; the sparkline
       is stretched sideways by its width, so it is contoured above and below only (its height is 46 user units for 46px).
     a bar (stacked bar, product score row): the rect's own stroke, 2px wide and not scaled by the viewBox, so 1px of it shows inside the part and 1px outside; the part's corners are square (2px) in light for the
       same reason (a rounded clip would cut the contour away at the ends); the dark theme keeps its pills.
     the legend shape: the shape is the contour tone and ::before draws the fill, scaled in by 1px.
     the KPI stripe: an inset shadow on its free edge (its other three edges are the tile's own). */
html[data-theme="light"] :is(.ev-ring__value,.ev-donut__seg){filter:drop-shadow(var(--ev-edge-w) 0 0 var(--ev-sev-edge)) drop-shadow(calc(var(--ev-edge-w) * -1) 0 0 var(--ev-sev-edge)) drop-shadow(0 var(--ev-edge-w) 0 var(--ev-sev-edge)) drop-shadow(0 calc(var(--ev-edge-w) * -1) 0 var(--ev-sev-edge))}
html[data-theme="light"] .ev-spark__line{filter:drop-shadow(0 var(--ev-edge-w) 0 var(--ev-sev-edge)) drop-shadow(0 calc(var(--ev-edge-w) * -1) 0 var(--ev-sev-edge))}
.ev-ring__value,.ev-spark__line{--ev-edge-w:1px}
.ev-donut__seg{--ev-edge-w:0.35px}
html[data-theme="light"] :is(.ev-sevbar__seg,.ev-prodscore__fill){stroke:var(--ev-sev-edge);stroke-width:2px;vector-effect:non-scaling-stroke}
html[data-theme="light"] :is(.ev-sevbar,.ev-prodscore__bar){border-radius:0.125rem}
html[data-theme="light"] .ev-sev-legend__item:not(.ev-sev-legend__item--none) .ev-sev-shape{position:relative;color:var(--ev-sev-edge)}
html[data-theme="light"] .ev-sev-legend__item:not(.ev-sev-legend__item--none) .ev-sev-shape::before{content:"";position:absolute;inset:0;background:var(--ev-sev-fill);clip-path:inherit;print-color-adjust:exact;-webkit-print-color-adjust:exact}
html[data-theme="light"] .ev-sev-legend__item .ev-sev-shape--crit::before{transform:scale(0.66);transform-origin:50% 58.8%}
html[data-theme="light"] .ev-sev-legend__item .ev-sev-shape--high::before{transform:scale(0.717)}
html[data-theme="light"] .ev-sev-legend__item .ev-sev-shape--med::before{transform:scale(0.75)}
html[data-theme="light"] .ev-sev-legend__item .ev-sev-shape--low::before{transform:scale(0.8)}
html[data-theme="light"] :is(.ev-kpi--crit,.ev-kpi--high,.ev-kpi--med,.ev-kpi--low)::before{box-shadow:inset -1px 0 0 var(--ev-sev-edge)}

/* PRINT (2.4.1, elvatis/elvatis-design-system#100). The frame is chrome: a printed page carries the content and not the topbar, the sidebar, the drawer overlay or the
   collapse control, and the content uses the whole page width instead of the column beside a sidebar that is not there. The shell does this ONCE for every product: a
   product adds no print rule for a frame selector (tools/verify-app-shell-assets.mjs --product-css fails on it). !important because the chrome must stay out of the
   print whatever display a utility or a later layer gave it (the sidebar is display:flex and the drawer overlay display:block while open). */
@media print{
  .ev-topbar,.ev-sidebar,.ev-overlay,.ev-collapse{display:none !important}
  .ev-frame{display:block !important;min-height:0 !important}
  .ev-main{width:auto !important;max-width:none !important;margin:0 !important;padding:0 !important}
}

@media (prefers-reduced-motion:reduce){
  .ev-frame,.ev-topbar,.ev-sidebar,.ev-nav-item,.ev-card,.ev-btn,.ev-icon-btn,.ev-menu__trigger,.ev-menu__item,.ev-signout,.ev-nav-section__title .ev-icon{transition:none}
}
}
