/*! @r-d/design-system v2.14.0 - EINES Vision Systems - icons: Lucide (ISC) */
/* EINES — generated from tokens.json. Do not edit. */
@font-face { font-family: "Filson Pro"; font-weight: 350; font-style: normal; font-display: swap; src: local("Filson Pro Book"), url("assets/fonts/FilsonPro-Book.db72e3a7d36c.woff2") format("woff2"); }
@font-face { font-family: "Filson Pro"; font-weight: 400; font-style: normal; font-display: swap; src: local("Filson Pro Regular"), url("assets/fonts/FilsonPro-Regular.1ae2fc5320f4.woff2") format("woff2"); }
@font-face { font-family: "Filson Pro"; font-weight: 500; font-style: normal; font-display: swap; src: local("Filson Pro Medium"), url("assets/fonts/FilsonPro-Medium.07217ce9eeb2.woff2") format("woff2"); }
@font-face { font-family: "Filson Pro"; font-weight: 700; font-style: normal; font-display: swap; src: local("Filson Pro Bold"), url("assets/fonts/FilsonPro-Bold.05e7ea72004e.woff2") format("woff2"); }
@font-face { font-family: "Filson Pro"; font-weight: 400; font-style: italic; font-display: swap; src: local("Filson Pro Regular Italic"), url("assets/fonts/FilsonPro-RegularItalic.8e8dff400dd9.woff2") format("woff2"); }
@font-face { font-family: "Aptos"; font-weight: 300; font-style: normal; font-display: swap; src: local("Aptos Light"), url("assets/fonts/Aptos-Light.d244c023c0d2.woff2") format("woff2"); }
@font-face { font-family: "Aptos"; font-weight: 400; font-style: normal; font-display: swap; src: local("Aptos"), url("assets/fonts/Aptos.abdbaaee4dc4.woff2") format("woff2"); }
@font-face { font-family: "Aptos"; font-weight: 400; font-style: italic; font-display: swap; src: local("Aptos Italic"), url("assets/fonts/Aptos-Italic.7b36639f3355.woff2") format("woff2"); }
@font-face { font-family: "Aptos"; font-weight: 600; font-style: normal; font-display: swap; src: local("Aptos SemiBold"), url("assets/fonts/Aptos-SemiBold.07575608d67e.woff2") format("woff2"); }
@font-face { font-family: "Aptos"; font-weight: 700; font-style: normal; font-display: swap; src: local("Aptos Bold"), url("assets/fonts/Aptos-Bold.dcca8d4b7c85.woff2") format("woff2"); }
@font-face { font-family: "Aptos Mono"; font-weight: 400; font-style: normal; font-display: swap; src: local("Aptos Mono"), url("assets/fonts/Aptos-Mono.638a4bce27a8.woff2") format("woff2"); }
@font-face { font-family: "Aptos Mono"; font-weight: 700; font-style: normal; font-display: swap; src: local("Aptos Mono Bold"), url("assets/fonts/Aptos-Mono-Bold.40fc484d6d16.woff2") format("woff2"); }
:root, [data-theme="light"] {
  --green: #c1dc00;
  --light-grey: #e8e7e7;
  --white: #ffffff;
  --dark-gray: #222223;
  --green-50: #f8fbe0;
  --green-100: #eef6b8;
  --green-200: #e1ef80;
  --green-300: #d2e640;
  --green-500: #aac200;
  --green-600: #8fa300;
  --green-700: #6b7a00;
  --green-800: #56620a;
  --green-900: #333a00;
  --neutral-0: #ffffff;
  --neutral-50: #f6f6f6;
  --neutral-100: #efeeee;
  --neutral-150: #e8e7e7;
  --neutral-200: #d9d8d8;
  --neutral-300: #bdbcbe;
  --neutral-400: #9d9c9f;
  --neutral-500: #8c8b8e;
  --neutral-600: #5d5c5f;
  --neutral-700: #454447;
  --neutral-750: #3a3a3c;
  --neutral-800: #2c2c2e;
  --neutral-900: #222223;
  --neutral-950: #1a1a1b;
  --ok: #6cae51;
  --nok: #e7392d;
  --amber: #f2a900;
  --blue: #2b74c9;
  --bg: var(--neutral-50);
  --surface: var(--white);
  --surface-raised: var(--white);
  --surface-sunken: var(--neutral-100);
  --surface-alt: var(--light-grey);
  --surface-hover: rgba(34, 34, 35, 0.05);
  --surface-pressed: rgba(34, 34, 35, 0.10);
  --surface-selected: var(--green-50);
  --selected-surface: var(--white);
  --on-selected: var(--dark-gray);
  --selected-track: var(--neutral-150);
  --scrim: rgba(26, 26, 27, 0.32);
  --heading: var(--dark-gray);
  --text: var(--dark-gray);
  --text-secondary: var(--neutral-600);
  --text-disabled: var(--neutral-400);
  --text-link: var(--green-800);
  --text-inverse: var(--white);
  --kicker: var(--dark-gray);
  --border: #cfcecf;
  --border-strong: var(--neutral-500);
  --rule: var(--dark-gray);
  --rule-subtle: var(--light-grey);
  --highlight: var(--light-grey);
  --primary: var(--green);
  --primary-hover: var(--green-500);
  --primary-pressed: var(--green-600);
  --on-primary: var(--dark-gray);
  --primary-border: var(--green-700);
  --inverse: var(--dark-gray);
  --inverse-hover: #3a3a3c;
  --tonal: var(--neutral-150);
  --tonal-hover: var(--neutral-200);
  --focus-ring: var(--dark-gray);
  --success-fg: #2f7a1f;
  --success-bg: #e8f4e2;
  --success-solid: #2d8338;
  --danger-fg: #c42b20;
  --danger-bg: #fdeceb;
  --danger-solid: #d62e22;
  --danger-hover: #bf271c;
  --danger-pressed: #a8221a;
  --on-danger: var(--white);
  --on-success: var(--white);
  --on-info: var(--white);
  --on-warning: var(--dark-gray);
  --warning-fg: #a35f00;
  --warning-bg: #fff4dc;
  --warning-solid: var(--amber);
  --info-fg: #1f63b3;
  --info-bg: #e6f0fb;
  --info-solid: var(--blue);
  --on-status: var(--dark-gray);
  --viewer-bg: #0d0f12;
  --viewer-fg: #ebedf0;
  --overlay-nok: #ff4d3f;
  --overlay-warning: #ffb800;
  --overlay-ok: #7fc463;
  --overlay-info: #5aa9ff;
  --overlay-selected: var(--green);
  --overlay-halo: rgba(0, 0, 0, 0.65);
  --viewer-scrim: rgba(26, 26, 27, 0.8);
  --viewer-scrim-strong: rgba(26, 26, 27, 0.9);
  --viewer-scrim-soft: rgba(26, 26, 27, 0.55);
  --viewer-hover: rgba(255, 255, 255, 0.1);
  --viewer-pressed: rgba(255, 255, 255, 0.16);
  --viewer-faint: rgba(255, 255, 255, 0.05);
  --viewer-line: rgba(255, 255, 255, 0.08);
  --viewer-line-strong: rgba(255, 255, 255, 0.18);
  --viewer-muted: rgba(235, 237, 240, 0.7);
  --viewer-disabled: rgba(235, 237, 240, 0.35);
  --on-overlay: #141415;
  --overlay-ok-text: #a8e08f;
  --chart-1: #2a78d6;
  --chart-2: #eb6834;
  --chart-3: #1baf7a;
  --chart-4: #eda100;
  --chart-5: #e87ba4;
  --chart-6: #008300;
  --chart-7: #6250d6;
  --chart-8: #e34948;
  --on-chart-1: #000000;
  --on-chart-2: var(--dark-gray);
  --on-chart-3: var(--dark-gray);
  --on-chart-4: var(--dark-gray);
  --on-chart-5: var(--dark-gray);
  --on-chart-6: var(--white);
  --on-chart-7: var(--white);
  --on-chart-8: #000000;
  --chart-neutral: #8c8b8e;
  --chart-accent: var(--green-700);
  --chart-ok: var(--chart-neutral);
  --chart-check: #eda100;
  --chart-nok: #d62e22;
  --chart-grid: var(--neutral-100);
  --chart-axis: var(--neutral-200);
  --chart-limit: #c42b20;
  --chart-target: var(--dark-gray);
  --seq-100: #cde2fb;
  --seq-200: #9ec5f4;
  --seq-300: #6da7ec;
  --seq-400: #3987e5;
  --seq-500: #256abf;
  --seq-600: #184f95;
  --seq-700: #0d366b;
  --accent: var(--green);
  --on-accent: var(--dark-gray);
  --accent-text: var(--dark-gray);
  --footer-bar: var(--dark-gray);
  --on-footer: var(--white);
  --shadow-xs: 0 1px 1px rgba(34, 34, 35, 0.06);
  --shadow-sm: 0 1px 3px rgba(34, 34, 35, 0.10), 0 1px 2px rgba(34, 34, 35, 0.06);
  --shadow-md: 0 4px 12px rgba(34, 34, 35, 0.10), 0 1px 3px rgba(34, 34, 35, 0.06);
  --shadow-lg: 0 16px 40px rgba(34, 34, 35, 0.16), 0 4px 12px rgba(34, 34, 35, 0.08);
}
[data-theme="dark"] {
  --bg: #04070a;
  --surface: #0c1115;
  --surface-raised: #0f151a;
  --surface-sunken: #101418;
  --surface-alt: rgba(232, 231, 231, 0.08);
  --surface-hover: #12171b;
  --surface-pressed: rgba(255, 255, 255, 0.10);
  --surface-selected: rgba(193, 220, 0, 0.12);
  --selected-surface: var(--neutral-100);
  --on-selected: var(--dark-gray);
  --selected-track: #04070a;
  --scrim: rgba(0, 0, 0, 0.64);
  --heading: var(--white);
  --text: #e5e8eb;
  --text-secondary: #a1a6ac;
  --text-disabled: #696c72;
  --text-link: var(--green);
  --text-inverse: var(--dark-gray);
  --kicker: var(--light-grey);
  --border: #272c31;
  --border-strong: #7d8086;
  --rule: var(--light-grey);
  --rule-subtle: rgba(232, 231, 231, 0.2);
  --highlight: rgba(232, 231, 231, 0.12);
  --primary-hover: var(--green-300);
  --primary-pressed: var(--green-500);
  --primary-border: var(--green);
  --inverse: #e5e8eb;
  --inverse-hover: var(--white);
  --tonal: #373a41;
  --tonal-hover: #44484e;
  --focus-ring: var(--green);
  --success-fg: #7fc463;
  --success-bg: rgba(108, 174, 81, 0.14);
  --danger-fg: #ff7a6e;
  --danger-bg: rgba(231, 57, 45, 0.14);
  --danger-solid: #d62e22;
  --warning-fg: #ffc24a;
  --warning-bg: rgba(242, 169, 0, 0.13);
  --info-fg: #6eaaf0;
  --info-bg: rgba(43, 116, 201, 0.16);
  --chart-1: #3987e5;
  --chart-2: #d95926;
  --chart-3: #199e70;
  --chart-4: #c98500;
  --chart-5: #d55181;
  --chart-6: #008300;
  --chart-7: #9085e9;
  --chart-8: #e66767;
  --on-chart-1: #000000;
  --on-chart-2: #000000;
  --on-chart-3: var(--dark-gray);
  --on-chart-4: var(--dark-gray);
  --on-chart-5: #000000;
  --on-chart-6: var(--white);
  --on-chart-7: var(--dark-gray);
  --on-chart-8: var(--dark-gray);
  --chart-neutral: #696c72;
  --chart-accent: var(--green);
  --chart-grid: #2d2f35;
  --chart-axis: #3b3d43;
  --chart-limit: #ff7a6e;
  --chart-target: var(--white);
  --seq-100: #0d366b;
  --seq-200: #184f95;
  --seq-300: #256abf;
  --seq-400: #3987e5;
  --seq-500: #6da7ec;
  --seq-600: #9ec5f4;
  --seq-700: #cde2fb;
  --accent-text: var(--green);
  --shadow-xs: 0 1px 1px rgba(0, 0, 0, 0.30);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.60);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.55);
}
@media (prefers-color-scheme: dark) {
  [data-theme="system"] {
    --bg: #04070a;
    --surface: #0c1115;
    --surface-raised: #0f151a;
    --surface-sunken: #101418;
    --surface-alt: rgba(232, 231, 231, 0.08);
    --surface-hover: #12171b;
    --surface-pressed: rgba(255, 255, 255, 0.10);
    --surface-selected: rgba(193, 220, 0, 0.12);
    --selected-surface: var(--neutral-100);
    --on-selected: var(--dark-gray);
    --selected-track: #04070a;
    --scrim: rgba(0, 0, 0, 0.64);
    --heading: var(--white);
    --text: #e5e8eb;
    --text-secondary: #a1a6ac;
    --text-disabled: #696c72;
    --text-link: var(--green);
    --text-inverse: var(--dark-gray);
    --kicker: var(--light-grey);
    --border: #272c31;
    --border-strong: #7d8086;
    --rule: var(--light-grey);
    --rule-subtle: rgba(232, 231, 231, 0.2);
    --highlight: rgba(232, 231, 231, 0.12);
    --primary-hover: var(--green-300);
    --primary-pressed: var(--green-500);
    --primary-border: var(--green);
    --inverse: #e5e8eb;
    --inverse-hover: var(--white);
    --tonal: #373a41;
    --tonal-hover: #44484e;
    --focus-ring: var(--green);
    --success-fg: #7fc463;
    --success-bg: rgba(108, 174, 81, 0.14);
    --danger-fg: #ff7a6e;
    --danger-bg: rgba(231, 57, 45, 0.14);
    --danger-solid: #d62e22;
    --warning-fg: #ffc24a;
    --warning-bg: rgba(242, 169, 0, 0.13);
    --info-fg: #6eaaf0;
    --info-bg: rgba(43, 116, 201, 0.16);
    --chart-1: #3987e5;
    --chart-2: #d95926;
    --chart-3: #199e70;
    --chart-4: #c98500;
    --chart-5: #d55181;
    --chart-6: #008300;
    --chart-7: #9085e9;
    --chart-8: #e66767;
    --on-chart-1: #000000;
    --on-chart-2: #000000;
    --on-chart-3: var(--dark-gray);
    --on-chart-4: var(--dark-gray);
    --on-chart-5: #000000;
    --on-chart-6: var(--white);
    --on-chart-7: var(--dark-gray);
    --on-chart-8: var(--dark-gray);
    --chart-neutral: #696c72;
    --chart-accent: var(--green);
    --chart-grid: #2d2f35;
    --chart-axis: #3b3d43;
    --chart-limit: #ff7a6e;
    --chart-target: var(--white);
    --seq-100: #0d366b;
    --seq-200: #184f95;
    --seq-300: #256abf;
    --seq-400: #3987e5;
    --seq-500: #6da7ec;
    --seq-600: #9ec5f4;
    --seq-700: #cde2fb;
    --accent-text: var(--green);
    --shadow-xs: 0 1px 1px rgba(0, 0, 0, 0.30);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.60);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.55);
  }
}
:root {
  --space-0-5: 2px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --page-margin: 59px;
  --style-line: 66px;
  --footer-height: 31px;
  --radius-none: 0px;
  --radius-control: 6px;
  --radius-container: 10px;
  --radius-mark: 2px;
  --radius-xs: 6px;
  --radius-sm: 6px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-xl: 10px;
  --radius-full: 999px;
  --radius-band: 7px;
  --radius-disc: 50%;
  --stroke-rule: 1px;
  --stroke-line: 2px;
  --stroke-indicator: 3px;
  --duration-1: 80ms;
  --duration-2: 120ms;
  --duration-3: 180ms;
  --duration-4: 240ms;
  --duration-5: 320ms;
  --duration-6: 480ms;
  --duration-blink: 1000ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-enter: cubic-bezier(0, 0, 0.2, 1);
  --ease-exit: cubic-bezier(0.4, 0, 1, 1);
  --ease-emphasized: cubic-bezier(0.05, 0.7, 0.1, 1);
  --ease-linear: linear;
  --z-sticky: 100;
  --z-dropdown: 1000;
  --z-overlay: 1100;
  --z-toast: 1200;
  --z-tooltip: 1300;
  --control-sm: 32px;
  --control-md: 40px;
  --control-lg: 48px;
  --touch-target: 44px;
  --icon-sm: 16px;
  --icon-md: 20px;
  --icon-lg: 24px;
  --sidebar-width: 248px;
  --sidebar-collapsed: 64px;
  --topbar-height: 56px;
  --overlay-fill-opacity: 0.34;
  --overlay-brush-opacity: 0.55;
  --text-2xs: 11px;
  --text-xs: 12px;
  --text-sm: 14px;
  --text-md: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 28px;
  --text-4xl: 32px;
  --leading-xs: 16px;
  --leading-sm: 20px;
  --leading-md: 24px;
  --leading-lg: 28px;
  --leading-xl: 32px;
  --leading-2xl: 36px;
  --font-display: "Filson Pro", "Segoe UI", system-ui, "Yu Gothic UI", "Meiryo UI", Meiryo, "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --font-body: Aptos, "Segoe UI", system-ui, "Yu Gothic UI", "Meiryo UI", Meiryo, "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --font-mono: "Aptos Mono", "Cascadia Mono", Consolas, ui-monospace, "Segoe UI", system-ui, "MS Gothic", "Yu Gothic UI", "Meiryo UI", "Microsoft YaHei UI", "Microsoft YaHei", monospace;
}
:lang(zh) {
  --font-display: "Filson Pro", "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  --font-body: Aptos, "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  --font-mono: "Aptos Mono", "Cascadia Mono", Consolas, ui-monospace, "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans Mono CJK SC", monospace;
}
.numeral { font-family: var(--font-display); font-size: 53px; line-height: 53px; font-weight: 700; }
.statement { font-family: var(--font-display); font-size: 48px; line-height: 52px; font-weight: 350; }
.section-heading { font-family: var(--font-display); font-size: 36px; line-height: 40px; font-weight: 350; }
.page-title { font-family: var(--font-display); font-size: 33px; line-height: 36px; font-weight: 700; }
.page-subtitle { font-family: var(--font-display); font-size: 31px; line-height: 36px; font-weight: 350; }
.subhead { font-family: var(--font-display); font-size: 20px; line-height: 24px; font-weight: 700; }
.kicker { font-family: var(--font-display); font-size: 12px; line-height: 16px; font-weight: 350; }
.note { font-family: var(--font-display); font-size: 13px; line-height: 18px; font-weight: 400; font-style: italic; }
.lead { font-family: var(--font-body); font-size: 21px; line-height: 29px; font-weight: 400; }
.value { font-family: var(--font-body); font-size: 21px; line-height: 29px; font-weight: 300; }
.body { font-family: var(--font-body); font-size: 17px; line-height: 22px; font-weight: 400; }
.body-strong { font-family: var(--font-body); font-size: 17px; line-height: 22px; font-weight: 700; }
.caption { font-family: var(--font-body); font-size: 12px; line-height: 16px; font-weight: 400; }
.app-title { font-family: var(--font-display); font-size: 24px; line-height: 32px; font-weight: 700; }
.app-heading { font-family: var(--font-display); font-size: 18px; line-height: 24px; font-weight: 700; }
.subsection-heading { font-family: var(--font-display); font-size: 16px; line-height: 24px; font-weight: 700; }
.ui-body-lg { font-family: var(--font-body); font-size: 16px; line-height: 24px; font-weight: 400; }
.ui-body { font-family: var(--font-body); font-size: 14px; line-height: 20px; font-weight: 400; }
.ui-label { font-family: var(--font-body); font-size: 14px; line-height: 20px; font-weight: 600; }
.ui-caption { font-family: var(--font-body); font-size: 12px; line-height: 16px; font-weight: 400; }
.ui-overline { font-family: var(--font-body); font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.data-mono { font-family: var(--font-mono); font-size: 14px; line-height: 20px; font-weight: 400; }
.data-kpi { font-family: var(--font-display); font-size: 32px; line-height: 40px; font-weight: 700; }

/* EINES — component styles. Every value comes from tokens.css (var(--…)).
   Use with React (window.Eines) or as plain HTML classes. */

/* ---------- base ---------- */
.ein-app{font-family:var(--font-body);font-size:var(--text-sm);line-height:var(--leading-sm);color:var(--text);background:var(--bg);-webkit-font-smoothing:antialiased;font-variant-numeric:tabular-nums}
/* the theme tells the browser too: native scrollbars, date pickers and selects follow it */
[data-theme="light"]{color-scheme:light}[data-theme="dark"]{color-scheme:dark}[data-theme="system"]{color-scheme:light dark}
/* thin scrollbars in the theme colours, no arrows (no wide grey Windows bars); the thumb darkens under the pointer.
   Chromium (Edge, Chrome) draws them with ::-webkit-scrollbar; Firefox, which has no such pseudo-elements, with scrollbar-width / scrollbar-color */
[data-theme]::-webkit-scrollbar,[data-theme] ::-webkit-scrollbar,.ein-app ::-webkit-scrollbar{width:var(--space-3);height:var(--space-3)}
[data-theme]::-webkit-scrollbar-track,[data-theme] ::-webkit-scrollbar-track,.ein-app ::-webkit-scrollbar-track,[data-theme] ::-webkit-scrollbar-corner,.ein-app ::-webkit-scrollbar-corner{background:transparent}
[data-theme]::-webkit-scrollbar-thumb,[data-theme] ::-webkit-scrollbar-thumb,.ein-app ::-webkit-scrollbar-thumb{background-color:var(--border-strong);background-clip:padding-box;border:var(--space-0-5) solid transparent;border-radius:var(--radius-full);min-height:var(--space-8)}
[data-theme]::-webkit-scrollbar-thumb:hover,[data-theme] ::-webkit-scrollbar-thumb:hover,.ein-app ::-webkit-scrollbar-thumb:hover{background-color:var(--text-secondary)}
[data-theme]::-webkit-scrollbar-button,[data-theme] ::-webkit-scrollbar-button,.ein-app ::-webkit-scrollbar-button{display:none;width:0;height:0}
.ein-viewer ::-webkit-scrollbar-thumb,.ein-lightbox ::-webkit-scrollbar-thumb,.ein-cover ::-webkit-scrollbar-thumb{background-color:var(--neutral-500)}
@supports not selector(::-webkit-scrollbar){
  [data-theme],.ein-app *,[class*="ein-"]{scrollbar-width:thin;scrollbar-color:var(--border-strong) transparent}
  .ein-viewer,.ein-viewer *,.ein-lightbox,.ein-lightbox *,.ein-cover,.ein-cover *{scrollbar-color:var(--neutral-500) transparent}
}
.ein-app *,.ein-app *::before,.ein-app *::after{box-sizing:border-box}
/* Every package component measures the same with or without AppShell (a loose page, a portal, a dialog): its own boxes and what is drawn inside it.
   :where() keeps it at zero specificity, so any rule of the app still wins. Before 2.12.0 a TextField outside AppShell was 42 px next to a 40 px Button. */
:where([class^="ein-"],[class*=" ein-"]),:where([class^="ein-"],[class*=" ein-"])::before,:where([class^="ein-"],[class*=" ein-"])::after,:where([class^="ein-"],[class*=" ein-"]) *,:where([class^="ein-"],[class*=" ein-"]) *::before,:where([class^="ein-"],[class*=" ein-"]) *::after{box-sizing:border-box}
.ein-icon{width:var(--icon-md);height:var(--icon-md);flex:none;display:inline-block;vertical-align:middle}
.ein-icon--sm{width:var(--icon-sm);height:var(--icon-sm)}
.ein-icon--lg{width:var(--icon-lg);height:var(--icon-lg)}
.ein-visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
:where(.ein-button,.ein-input,.ein-select select,.ein-check input,.ein-switch input,.ein-segmented button,.ein-tab,.ein-nav-item,.ein-menu__item,.ein-card--interactive):focus-visible{outline:var(--stroke-line) solid var(--focus-ring);outline-offset:2px}

/* ---------- button ---------- */
.ein-button{--_bg:transparent;--_fg:var(--text);--_bd:transparent;--_bg-h:var(--surface-hover);--_bg-p:var(--surface-pressed);
  position:relative;display:inline-flex;align-items:center;justify-content:center;gap:var(--space-2);
  min-height:var(--control-md);max-width:100%;padding:calc((var(--control-md) - 20px - 2 * var(--stroke-rule)) / 2) var(--space-4);border:var(--stroke-rule) solid var(--_bd);border-radius:var(--radius-control);
  background:var(--_bg);color:var(--_fg);font:600 var(--text-sm)/var(--leading-sm) var(--font-body);white-space:nowrap;cursor:pointer;user-select:none;text-decoration:none;
  transition:background-color var(--duration-1) var(--ease-standard),border-color var(--duration-1) var(--ease-standard),color var(--duration-1) var(--ease-standard),transform var(--duration-1) var(--ease-standard)}
.ein-button:hover{background:var(--_bg-h)}
.ein-button:active{background:var(--_bg-p);transform:scale(.98)}
.ein-button--primary{--_bg:var(--primary);--_fg:var(--on-primary);--_bg-h:var(--primary-hover);--_bg-p:var(--primary-pressed)}
.ein-button--strong{--_bg:var(--inverse);--_fg:var(--text-inverse);--_bg-h:var(--inverse-hover);--_bg-p:var(--inverse-hover)}
.ein-button--secondary{--_bd:var(--border);--_bg:var(--surface);box-shadow:var(--shadow-xs)}
.ein-button--secondary:disabled,.ein-button--secondary[aria-disabled="true"]{box-shadow:none}
.ein-button--tonal{--_bg:var(--tonal);--_bg-h:var(--tonal-hover);--_bg-p:var(--tonal-hover)}
.ein-button--ghost{--_bg:transparent}
.ein-button--danger{--_bg:var(--danger-solid);--_fg:var(--on-danger);--_bg-h:var(--danger-hover);--_bg-p:var(--danger-pressed)}
.ein-button--danger-ghost{--_fg:var(--text-secondary);--_bg-h:var(--danger-bg);--_bg-p:var(--danger-bg)}
.ein-button--danger-ghost:hover:not(:disabled),.ein-button--danger-ghost:focus-visible{--_fg:var(--danger-fg)}
.ein-toolbar .ein-button--ghost.ein-button--icon,.ein-gallery__bar .ein-button--ghost.ein-button--icon{--_bg:var(--surface-hover);--_bg-h:var(--surface-pressed)}
.ein-button--sm{min-height:var(--control-sm);padding:calc((var(--control-sm) - 20px - 2 * var(--stroke-rule)) / 2) var(--space-3);border-radius:var(--radius-control);gap:6px}
.ein-button--lg{min-height:var(--control-lg);padding:calc((var(--control-lg) - 24px - 2 * var(--stroke-rule)) / 2) var(--space-6);font-size:var(--text-md);line-height:var(--leading-md)}
.ein-button--icon{width:var(--control-md);height:var(--control-md);padding:0}
.ein-button>span{min-width:0;white-space:normal;overflow-wrap:anywhere;text-align:center}   /* a long label wraps onto more lines (the button grows taller) and never leaves its container */
.ein-button--icon.ein-button--sm{width:var(--control-sm);height:var(--control-sm)}
.ein-button--icon.ein-button--lg{width:var(--control-lg);height:var(--control-lg)}
.ein-button--block{display:flex;width:100%}
.ein-button:disabled,.ein-button[aria-disabled="true"]:not([aria-busy="true"]){cursor:not-allowed;transform:none;--_bg:var(--tonal);--_bg-h:var(--tonal);--_bg-p:var(--tonal);--_fg:var(--text-disabled);--_bd:transparent}
.ein-button--ghost:disabled,.ein-button--danger-ghost:disabled{--_bg:transparent;--_bg-h:transparent;--_bg-p:transparent}
.ein-button[aria-busy="true"]{cursor:progress;pointer-events:none}
/* loading: the spinner stays to the left of the label, which turns grey (solid buttons keep their fill and dim the label) */
.ein-button[aria-busy="true"]:not(.ein-button--primary):not(.ein-button--danger):not(.ein-button--strong){--_fg:var(--text-secondary)}
.ein-button--primary[aria-busy="true"]>span,.ein-button--danger[aria-busy="true"]>span,.ein-button--strong[aria-busy="true"]>span{opacity:.7}
.ein-button[aria-busy="true"]>.ein-spinner{order:-1}

/* ---------- spinner / progress / skeleton ---------- */
.ein-spinner{width:var(--icon-md);height:var(--icon-md);border-radius:50%;border:2px solid currentColor;border-right-color:transparent;animation:ein-spin 700ms var(--ease-linear) infinite;flex:none}
.ein-spinner--sm{width:var(--icon-sm);height:var(--icon-sm)}
.ein-spinner--lg{width:32px;height:32px;border-width:3px}
/* language selector (flags are data colours: the official flag colours) */
.ein-flag{display:block;flex:none;width:var(--space-4);height:var(--space-3);border-radius:var(--radius-mark);box-shadow:0 0 0 var(--stroke-rule) var(--border-strong);overflow:hidden}
.ein-langbtn{gap:var(--space-2);padding:0 var(--space-2);font-weight:600}
.ein-langbtn__code{font-family:var(--font-mono);letter-spacing:.04em}
.ein-langfield{display:flex;align-items:center;gap:var(--space-3);width:100%;text-align:left;cursor:pointer}
.ein-langfield__name{flex:1;min-width:0}
.ein-langitem{display:flex;align-items:center;gap:var(--space-3);min-width:calc(var(--space-16) * 2.5)}
.ein-langitem__name{flex:1}
.ein-langitem__code{font:400 var(--text-xs)/var(--leading-xs) var(--font-mono);color:var(--text-secondary)}
.ein-langitem__check{color:var(--text)}

/* official logos (<Logo>): ink follows the theme unless a tone forces it */
.ein-logo{--_ink:var(--dark-gray);display:inline-block;width:auto;flex:none;vertical-align:middle;overflow:visible}
[data-theme="dark"] .ein-logo{--_ink:var(--white)}
@media (prefers-color-scheme: dark){[data-theme="system"] .ein-logo{--_ink:var(--white)}}
.ein-logo.ein-logo--positive{--_ink:var(--dark-gray)}
.ein-logo.ein-logo--negative{--_ink:var(--white)}
.ein-logo .is-ink{fill:var(--_ink)}
.ein-logo .is-brand{fill:var(--green)}
.ein-logo .is-onbrand{fill:var(--dark-gray)}
.ein-logo .is-white{fill:var(--white)}
/* brand loaders: EINES imagotype (Spinner variant="brand" | "pulse") and LoadingScreen */
.ein-spinner-brand{display:inline-grid;place-items:center;flex:none;color:var(--primary)}
.ein-spinner-brand--sm{width:var(--icon-lg);height:var(--icon-lg)}
.ein-spinner-brand--md{width:calc(var(--space-10));height:calc(var(--space-10))}
.ein-spinner-brand--lg{width:calc(var(--space-16) + var(--space-2));height:calc(var(--space-16) + var(--space-2))}
.ein-brandmark{display:block;width:100%;height:100%;overflow:visible}
.ein-brandmark path{fill:var(--primary)}
.ein-brandmark--brand path{fill-opacity:0;stroke:var(--primary);stroke-width:6;stroke-linejoin:round;stroke-dasharray:1;stroke-dashoffset:1;animation:ein-brand-draw 2400ms var(--ease-standard) infinite}
.ein-brandmark--pulse path{transform-box:fill-box;transform-origin:center;animation:ein-brand-pulse 1400ms var(--ease-standard) infinite}
@keyframes ein-brand-draw{0%{stroke-dashoffset:1;fill-opacity:0}45%{stroke-dashoffset:0;fill-opacity:0}60%{fill-opacity:1}85%{stroke-dashoffset:0;fill-opacity:1}100%{stroke-dashoffset:-1;fill-opacity:0}}
@keyframes ein-brand-pulse{0%,100%{opacity:.35;transform:scale(.92)}50%{opacity:1;transform:scale(1)}}
.ein-loading{display:grid;justify-items:center;align-content:center;gap:var(--space-5);width:100%;min-height:calc(var(--space-16) * 4);padding:var(--space-10) var(--space-6);box-sizing:border-box;
  border-radius:var(--radius-container);background:var(--viewer-bg);color:var(--viewer-fg)}
.ein-loading--overlay{position:fixed;inset:0;z-index:var(--z-overlay);min-height:0;border-radius:0}
/* overlay="blur": the page stays visible behind, blurred and darkened (it is still there, only busy) */
.ein-loading--blur{background:var(--viewer-scrim);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.ein-loading__mark{width:calc(var(--space-16) + var(--space-2));height:calc(var(--space-16) + var(--space-2))}
.ein-loading__word{display:block;height:var(--space-8);width:auto}
.ein-loading__word path{fill:var(--viewer-fg)}
.ein-loading__bar{position:relative;width:min(100%,calc(var(--space-16) * 4));height:var(--space-1);border-radius:var(--radius-full);background:var(--viewer-hover);overflow:hidden}
.ein-loading__bar>span{display:block;width:100%;height:100%;border-radius:inherit;background:var(--primary);transition:transform var(--duration-4) var(--ease-standard)}
.ein-loading__bar.is-indeterminate::after{content:"";position:absolute;inset:0;width:40%;border-radius:inherit;background:var(--primary);animation:ein-loading-bar 1300ms var(--ease-standard) infinite}
@keyframes ein-loading-bar{from{transform:translateX(-100%)}to{transform:translateX(250%)}}
/* tunnel loader (Spinner variant="tunnel", LoadingScreen visual="tunnel") */
.ein-spinner-tunnel{display:inline-block;flex:none}
.ein-spinner-tunnel--sm{width:calc(var(--space-16) * 2)}.ein-spinner-tunnel--md{width:calc(var(--space-16) * 3.25)}.ein-spinner-tunnel--lg{width:calc(var(--space-16) * 5)}
.ein-tunnel{--_car-fill:var(--surface-raised);--_car-line:var(--heading);--_ground:var(--border-strong);--_shell:var(--neutral-950);display:block;width:100%;height:auto;overflow:hidden}
.ein-tunnel__inside{fill:var(--neutral-800)}
.ein-tunnel__shell{fill:none;stroke:var(--_shell);stroke-width:12;stroke-linejoin:round}
.ein-tunnel__seam{stroke:var(--neutral-750);stroke-width:2}
.ein-tunnel__logo{fill:var(--primary)}
.ein-tunnel__lamp{fill:var(--neutral-500);animation:ein-tunnel-lamp 3200ms var(--ease-linear) infinite}
.ein-tunnel__car{animation:ein-tunnel-car 3200ms cubic-bezier(.4,0,.6,1) infinite}
.ein-tunnel__body{fill:var(--_car-fill);stroke:var(--_car-line);stroke-width:2.5;stroke-linejoin:round}
.ein-tunnel__glass{fill:var(--neutral-500);opacity:.5}
.ein-tunnel__wheel{fill:var(--_car-line)}
.ein-tunnel__cab{fill:var(--neutral-50);stroke:var(--neutral-300);stroke-width:1.5}
.ein-tunnel__pole{stroke:var(--neutral-600);stroke-width:2}
.ein-tunnel__sig.is-red{fill:var(--nok);opacity:.35}.ein-tunnel__sig.is-amber{fill:var(--amber);opacity:.35}
.ein-tunnel__sig.is-green{fill:var(--ok);animation:ein-tunnel-sig 3200ms steps(1,end) infinite}
.ein-tunnel__ground{stroke:var(--_ground);stroke-width:2}
@keyframes ein-tunnel-car{from{transform:translateX(-150px)}to{transform:translateX(400px)}}
@keyframes ein-tunnel-lamp{0%,22%{fill:var(--neutral-500);filter:none}38%,62%{fill:var(--white);filter:drop-shadow(0 0 4px var(--white))}78%,100%{fill:var(--neutral-500);filter:none}}
@keyframes ein-tunnel-sig{0%,74%{opacity:.35}75%,100%{opacity:1}}
.ein-loading__tunnel{width:min(100%,calc(var(--space-16) * 5.5));--_car-fill:var(--neutral-700);--_car-line:var(--viewer-fg);--_ground:var(--viewer-line-strong);--_shell:var(--neutral-600)}
.ein-loading__message{font:400 var(--text-sm)/var(--leading-sm) var(--font-body);opacity:.8;text-align:center}
@keyframes ein-spin{to{transform:rotate(360deg)}}
.ein-progress{display:grid;gap:6px}
.ein-progress__head{display:flex;justify-content:space-between;font-size:var(--text-xs);line-height:var(--leading-xs);color:var(--text-secondary)}
.ein-progress__track{height:6px;border-radius:var(--radius-full);background:var(--tonal);overflow:hidden}
.ein-progress__bar{width:100%;height:100%;border-radius:inherit;background:var(--primary);transition:transform var(--duration-4) var(--ease-standard)}
.ein-progress--ok .ein-progress__bar{background:var(--success-solid)}
.ein-progress--nok .ein-progress__bar{background:var(--danger-solid)}
.ein-progress--warning .ein-progress__bar{background:var(--warning-solid)}
.ein-progress--info .ein-progress__bar{background:var(--info-solid)}
.ein-progress--indeterminate .ein-progress__bar{width:40%;animation:ein-indet 2400ms var(--ease-standard) infinite}
@keyframes ein-indet{0%{transform:translateX(-110%)}100%{transform:translateX(320%)}}
.ein-skeleton{display:block;position:relative;overflow:hidden;border-radius:var(--radius-control);background:var(--tonal)}
.ein-skeleton::after{content:"";position:absolute;inset:0;transform:translateX(-100%);background:linear-gradient(90deg,transparent 0%,var(--surface-raised) 50%,transparent 100%);opacity:.7;animation:ein-shimmer 1400ms var(--ease-standard) infinite}
@keyframes ein-shimmer{to{transform:translateX(100%)}}
@keyframes ein-pulse-soft{0%,100%{opacity:1}50%{opacity:.45}}

/* ---------- form fields ---------- */
.ein-field{display:grid;grid-template-columns:minmax(0,1fr);align-content:start;gap:6px;min-width:0}   /* align-content: in a taller row (a neighbour with a hint) the label stays on the box instead of the extra height opening a gap between them */
.ein-field__label{font:600 var(--text-sm)/var(--leading-sm) var(--font-body);color:var(--text)}
.ein-field__label .ein-req{color:var(--danger-fg);margin-left:2px}
.ein-field__hint{font-size:var(--text-xs);line-height:var(--leading-xs);color:var(--text-secondary)}
.ein-field__error{display:flex;gap:4px;align-items:center;font-size:var(--text-xs);line-height:var(--leading-xs);color:var(--danger-fg)}
.ein-control{position:relative;display:flex;align-items:center}
.ein-control>.ein-icon{position:absolute;left:var(--space-3);color:var(--text-secondary);pointer-events:none}
.ein-control>.ein-icon~.ein-input{padding-left:40px}
.ein-input,.ein-select select{width:100%;height:var(--control-md);padding:0 var(--space-3);border:var(--stroke-rule) solid var(--border-strong);border-radius:var(--radius-control);
  background:var(--surface);color:var(--text);font:400 var(--text-sm)/var(--leading-sm) var(--font-body);appearance:none;
  transition:border-color var(--duration-1) var(--ease-standard),box-shadow var(--duration-1) var(--ease-standard)}
.ein-input::placeholder{color:var(--text-secondary);opacity:1}
.ein-input:hover,.ein-select select:hover{border-color:var(--text-secondary)}
.ein-input:focus-visible,.ein-select select:focus-visible{border-color:var(--primary-border);outline-offset:0}
.ein-input[aria-invalid="true"],.ein-select select[aria-invalid="true"]{border-color:var(--danger-fg)}
.ein-input:disabled,.ein-select select:disabled{background:var(--surface-sunken);color:var(--text-disabled);border-color:var(--border);cursor:not-allowed}
.ein-input[readonly]{background:transparent;border-style:dotted;border-color:var(--border-strong)}
.ein-input--sm,.ein-select--sm select{height:var(--control-sm);border-radius:var(--radius-control)}
.ein-input--lg,.ein-select--lg select{height:var(--control-lg);font-size:var(--text-md)}
.ein-input--mono{font-family:var(--font-mono)}
/* TextArea: same look as TextField, grows in height */
.ein-input.ein-textarea{height:auto;min-height:var(--control-md);padding:var(--space-2) var(--space-3);resize:vertical;display:block}
.ein-input.ein-textarea.ein-input--sm{min-height:var(--control-sm);padding:var(--space-1) var(--space-3)}
.ein-input.ein-textarea.ein-input--lg{min-height:var(--control-lg);line-height:var(--leading-md)}
.ein-input.ein-textarea.is-autosize{resize:none;overflow:hidden}
.ein-field__foot{display:flex;justify-content:space-between;align-items:flex-start;gap:var(--space-3)}
.ein-field__counter{margin-left:auto;font:400 var(--text-xs)/var(--leading-xs) var(--font-mono);color:var(--text-secondary);white-space:nowrap}
.ein-field__counter.is-full{color:var(--warning-fg)}
/* ColorPicker: preview chip + hex + swatches (the colour is DATA, applied as --_c) */
.ein-colorpicker{gap:var(--space-2)}
.ein-colorpicker__swatches{display:flex;flex-wrap:wrap;gap:var(--space-2);max-width:calc(var(--space-16) * 9)}
.ein-cswatch{display:grid;justify-items:center;padding:var(--space-1);border:var(--stroke-rule) solid transparent;border-radius:var(--radius-control);background:none;color:var(--text);
  cursor:pointer;font:400 var(--text-xs)/var(--leading-xs) var(--font-body);transition:background-color var(--duration-2) var(--ease-standard),border-color var(--duration-2) var(--ease-standard)}
.ein-cswatch:hover:not(:disabled){background:var(--surface-hover)}
.ein-cswatch:focus-visible{outline:var(--stroke-line) solid var(--focus-ring);outline-offset:1px}
.ein-cswatch[aria-checked="true"]{background:none}
.ein-cswatch:disabled{cursor:not-allowed;opacity:.5}
.ein-cswatch__chip{display:grid;place-items:center;width:var(--control-md);height:var(--control-md);border-radius:var(--radius-control);background:var(--_c);color:var(--_on,var(--white));
  box-shadow:inset 0 0 0 var(--stroke-rule) rgba(0,0,0,.18);transition:transform var(--duration-2) var(--ease-standard)}
.ein-cswatch:hover:not(:disabled) .ein-cswatch__chip{transform:scale(1.05)}
.ein-cswatch[aria-checked="true"] .ein-cswatch__chip{outline:var(--stroke-indicator) solid var(--heading);outline-offset:2px}
.ein-cswatch__chip.is-custom{background:conic-gradient(#e7392d,#f2a900,#6cae51,#00a3a3,#3987e5,#9085e9,#d55181,#e7392d);color:var(--white)}
.ein-colorpicker__hex{font-family:var(--font-mono)}
.ein-colorpicker__panel{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:var(--space-4);max-width:calc(var(--space-16) * 9);padding:var(--space-4);border:var(--stroke-rule) solid var(--border);border-radius:var(--radius-container);background:var(--surface);
  animation:ein-pop-in var(--duration-3) var(--ease-enter) both}
.ein-colorpicker__pick{display:grid;gap:var(--space-3);min-width:0}
.ein-colorpicker__sv{position:relative;height:calc(var(--space-16) * 2.5);border-radius:var(--radius-control);cursor:crosshair;touch-action:none;
  background:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,transparent),var(--_hue)}
.ein-colorpicker__hue{position:relative;height:var(--space-4);border-radius:var(--radius-full);cursor:pointer;touch-action:none;background:linear-gradient(to right,#f00,#ff0,#0f0,#0ff,#00f,#f0f,#f00)}
.ein-colorpicker__sv:focus-visible,.ein-colorpicker__hue:focus-visible{outline:var(--stroke-line) solid var(--focus-ring);outline-offset:2px}
.ein-colorpicker__knob{position:absolute;width:var(--space-5);height:var(--space-5);border-radius:var(--radius-disc);background:var(--_c);border:var(--stroke-line) solid var(--white);
  box-shadow:0 0 0 var(--stroke-rule) rgba(0,0,0,.45),var(--shadow-sm);transform:translate(-50%,-50%);pointer-events:none}
.ein-colorpicker__hue .ein-colorpicker__knob{top:50%}
.ein-colorpicker__recent{display:grid;gap:var(--space-1)}
.ein-colorpicker__recent>div{display:flex;flex-wrap:wrap;gap:var(--space-1)}
.ein-colorpicker__mini{width:var(--space-6);height:var(--space-6);padding:0;border:0;border-radius:var(--radius-control);background:var(--_c);cursor:pointer;box-shadow:inset 0 0 0 var(--stroke-rule) rgba(0,0,0,.18)}
.ein-colorpicker__mini:focus-visible{outline:var(--stroke-line) solid var(--focus-ring);outline-offset:2px}
.ein-colorpicker__side{display:grid;gap:var(--space-3);align-content:start;width:calc(var(--space-16) * 2)}
.ein-colorpicker__chip{width:100%;height:var(--control-lg);border-radius:var(--radius-control);border:var(--stroke-rule) solid var(--border-strong);background:var(--_c,var(--surface))}
.ein-colorpicker__chip[data-empty]{background:repeating-conic-gradient(var(--tonal) 0 25%,var(--surface) 0 50%) 50%/12px 12px}
.ein-colorpicker__result{display:flex;align-items:center;gap:var(--space-3);flex-wrap:wrap}
.ein-colorpicker__preview{position:relative;flex:none;width:calc(var(--space-16) * 2.5);height:calc(var(--space-16) * 1.25);border-radius:var(--radius-control);overflow:hidden;background:var(--viewer-bg) center/cover no-repeat}
.ein-colorpicker__preview i{position:absolute;left:22%;top:32%;width:46%;height:46%;border:var(--stroke-line) solid var(--_c);background:color-mix(in srgb,var(--_c) 28%,transparent)}
.ein-colorpicker__preview b{position:absolute;left:22%;top:calc(32% - var(--leading-xs));padding:0 var(--space-1);background:var(--_c);color:var(--_on,var(--white));font:600 var(--text-xs)/var(--leading-xs) var(--font-body)}
.ein-colorpicker__value{display:inline-flex;align-items:baseline;gap:var(--space-2)}
.ein-colorpicker__hexlabel{font:400 var(--text-xs)/var(--leading-xs) var(--font-mono);color:var(--text-secondary)}
.ein-swatch{--_c:var(--chart-neutral);display:grid;place-items:center;width:var(--control-sm);height:var(--control-sm);padding:0;border:var(--stroke-rule) solid var(--overlay-halo);border-radius:var(--radius-control);background:var(--_c);color:var(--_on,var(--dark-gray));cursor:pointer}
.ein-swatch:hover{box-shadow:0 0 0 var(--stroke-line) var(--text-secondary)}
.ein-swatch:focus-visible{outline:var(--stroke-line) solid var(--focus-ring);outline-offset:2px}
.ein-swatch.is-selected{outline:var(--stroke-indicator) solid var(--text);outline-offset:2px}
.ein-swatch:disabled{opacity:.4;cursor:not-allowed}
.ein-select{position:relative;min-width:0}
.ein-select select{padding-right:40px;cursor:pointer}
.ein-select>.ein-icon{position:absolute;right:var(--space-3);top:50%;transform:translateY(-50%);color:var(--text-secondary);pointer-events:none}

/* custom select (listbox) */
.ein-select--custom{position:relative}
.ein-select__trigger{display:flex;align-items:center;gap:var(--space-2);text-align:left;cursor:pointer;padding-right:var(--space-3)}
.ein-select__trigger>.ein-icon{position:static;transform:none;color:var(--text-secondary)}
.ein-select__value{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ein-select__trigger.is-placeholder .ein-select__value{color:var(--text-secondary)}
.ein-select__chevron{transition:transform var(--duration-2) var(--ease-standard)}
.ein-select.is-open .ein-select__trigger{border-color:var(--primary-border)}
.ein-select.is-open .ein-select__chevron{transform:rotate(180deg)}
.ein-select__trigger:disabled{cursor:not-allowed}
.ein-select__trigger:disabled .ein-select__value{color:var(--text-disabled)}
.ein-listbox{position:absolute;left:0;right:0;top:calc(100% + 4px);z-index:var(--z-dropdown);margin:0;padding:var(--space-1);list-style:none;
  min-width:100%;max-height:288px;overflow-y:auto;overscroll-behavior:contain;border-radius:var(--radius-container);background:var(--surface-raised);
  border:var(--stroke-rule) solid var(--border);box-shadow:var(--shadow-md);transform-origin:top center;
  animation:ein-list-in var(--duration-4) var(--ease-enter) both}
.ein-listbox--up{top:auto;bottom:calc(100% + 4px);transform-origin:bottom center;animation-name:ein-list-in-up}
.ein-listbox[data-leaving]{animation:ein-fade-out var(--duration-2) var(--ease-exit) both}
.ein-option{display:flex;align-items:center;gap:var(--space-2);min-height:36px;padding:var(--space-2) var(--space-3);border-radius:var(--radius-control);
  color:var(--text);font:400 var(--text-sm)/var(--leading-sm) var(--font-body);cursor:pointer;user-select:none}
.ein-select--lg .ein-option{min-height:44px;font-size:var(--text-md);line-height:var(--leading-md)}
.ein-option>.ein-icon{color:var(--text-secondary)}
.ein-option[data-active]{background:var(--surface-hover)}
.ein-option[aria-selected="true"]{font-weight:600}
.ein-option[aria-selected="true"]>.ein-icon:first-child{color:var(--text)}
.ein-option__text{flex:1;min-width:0}
.ein-option__text small{display:block;font-size:var(--text-xs);line-height:var(--leading-xs);font-weight:400;color:var(--text-secondary)}
.ein-option__check{color:var(--text)}
.ein-option[aria-disabled="true"]{color:var(--text-disabled);cursor:not-allowed;background:none}
.ein-option.is-empty{color:var(--text-secondary);cursor:default}
.ein-option--mono{font-family:var(--font-mono)}
@keyframes ein-list-in{from{opacity:0;transform:scaleY(.96) translateY(-4px)}to{opacity:1;transform:none}}
@keyframes ein-list-in-up{from{opacity:0;transform:scaleY(.96) translateY(4px)}to{opacity:1;transform:none}}

/* checkbox & radio */
.ein-check{display:inline-flex;align-items:flex-start;gap:var(--space-2);cursor:pointer;font-size:var(--text-sm);line-height:var(--leading-sm);color:var(--text)}
.ein-check{--_box:var(--icon-md)}
.ein-check input{appearance:none;margin:var(--stroke-rule) 0 0;width:var(--_box);height:var(--_box);flex:none;border:var(--stroke-line) solid var(--border-strong);border-radius:var(--radius-control);background:var(--surface);display:grid;place-content:center;cursor:pointer;
  transition:background-color var(--duration-2) var(--ease-standard),border-color var(--duration-2) var(--ease-standard)}
.ein-check input[type=radio]{border-radius:50%}
.ein-check input[type=radio]:checked{border-color:var(--primary-border)}
.ein-check input::after{content:"";width:calc(var(--_box) / 2);height:calc(var(--_box) / 4);border:var(--stroke-line) solid var(--on-primary);border-top:0;border-right:0;transform:translateY(-1px) rotate(-45deg) scale(0);transition:transform var(--duration-2) var(--ease-standard)}
.ein-check input[type=radio]::after{width:calc(var(--_box) / 3);height:calc(var(--_box) / 3);border:0;border-radius:50%;background:var(--on-primary);transform:scale(0)}
.ein-check input:checked{background:var(--primary);border-color:var(--primary-border)}
.ein-check input:checked::after{transform:translateY(-1px) rotate(-45deg) scale(1)}
.ein-check input[type=radio]:checked::after{transform:scale(1)}
.ein-check input[type=checkbox]:indeterminate{background:var(--primary);border-color:var(--primary-border)}
.ein-check input[type=checkbox]:indeterminate::after{width:calc(var(--_box) * .4);height:0;border-width:0 0 var(--stroke-line);transform:none}
.ein-check input:disabled{border-color:var(--border);background:var(--surface-sunken);cursor:not-allowed}
.ein-check input:checked:disabled,.ein-check input[type=checkbox]:indeterminate:disabled{background:var(--tonal);border-color:var(--border-strong)}   /* locked but chosen: the mark stays visible (>= 3:1 in both themes) */
.ein-check input:checked:disabled::after,.ein-check input[type=checkbox]:indeterminate:disabled::after{border-color:var(--text)}
.ein-check input[type=radio]:checked:disabled::after{background:var(--text)}
.ein-check:has(input:disabled){color:var(--text-disabled);cursor:not-allowed}
.ein-check__text small{display:block;margin-top:var(--space-0-5);font-size:var(--text-xs);line-height:var(--leading-xs);color:var(--text-secondary)}

/* switch */
.ein-switch{display:inline-flex;align-items:center;gap:var(--space-3);cursor:pointer;font-size:var(--text-sm);line-height:var(--leading-sm)}
.ein-switch{--_w:calc(var(--space-8) + var(--space-1));--_h:var(--icon-md);--_thumb:var(--icon-sm);--_off:var(--space-0-5)}   /* 36 x 20, thumb 16, 2 px from the edge */
.ein-switch input{appearance:none;margin:0;position:relative;width:var(--_w);height:var(--_h);flex:none;border-radius:var(--radius-full);background:var(--neutral-300);box-shadow:inset 0 0 0 var(--stroke-rule) var(--border-strong);cursor:pointer;   /* off: the edge of the track (border-strong, >= 3:1 on the surface in both themes) says it is a control */

  transition:background-color var(--duration-4) var(--ease-standard),box-shadow var(--duration-4) var(--ease-standard)}
.ein-switch input::after{content:"";position:absolute;top:var(--_off);left:var(--_off);width:var(--_thumb);height:var(--_thumb);border-radius:50%;background:var(--white);box-shadow:var(--shadow-sm);
  transition:transform var(--duration-5) var(--ease-emphasized),width var(--duration-3) var(--ease-standard),background-color var(--duration-4) var(--ease-standard)}
.ein-switch input:not(:disabled):active::after{width:var(--_h)}
.ein-switch input:checked{background:var(--primary);box-shadow:inset 0 0 0 1px var(--primary-border)}
.ein-switch input:checked::after{transform:translateX(calc(var(--_w) - var(--_thumb) - 2 * var(--_off)))}
[data-theme="dark"] .ein-switch input:not(:checked){background:var(--neutral-700)}
@media (prefers-color-scheme: dark){[data-theme="system"] .ein-switch input:not(:checked){background:var(--neutral-700)}}
.ein-switch input:checked:not(:disabled):active::after{transform:translateX(calc(var(--_w) - var(--_h) - var(--_off)))}
.ein-switch input:disabled{opacity:.4;cursor:not-allowed}
.ein-switch input:checked:disabled{opacity:1;background:var(--tonal);box-shadow:inset 0 0 0 var(--stroke-rule) var(--border-strong)}   /* locked but on: thumb on the right and dark, readable */
.ein-switch input:checked:disabled::after{background:var(--text);box-shadow:none}
.ein-switch:has(input:disabled){color:var(--text-disabled);cursor:not-allowed}

/* segmented control: see components-options.css */

/* ---------- status ---------- */
.ein-badge{--_fg:var(--text-secondary);--_bg:var(--tonal);display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 10px 0 8px;border-radius:var(--radius-full);background:var(--_bg);color:var(--_fg);font:600 var(--text-xs)/var(--leading-xs) var(--font-body);white-space:nowrap}
.ein-badge>.ein-icon{width:14px;height:14px}
.ein-badge__dot{width:8px;height:8px;border-radius:50%;background:currentColor;flex:none}
.ein-badge--ok{--_fg:var(--success-fg);--_bg:var(--success-bg)}
.ein-badge--nok{--_fg:var(--danger-fg);--_bg:var(--danger-bg)}
.ein-badge--warning{--_fg:var(--warning-fg);--_bg:var(--warning-bg)}
.ein-badge--info{--_fg:var(--info-fg);--_bg:var(--info-bg)}
.ein-badge--running .ein-badge__dot{animation:ein-pulse 1600ms var(--ease-standard) infinite}
.ein-badge--solid.ein-badge--ok{--_bg:var(--success-solid);--_fg:var(--on-success)}
.ein-badge--solid.ein-badge--nok{--_bg:var(--danger-solid);--_fg:var(--on-danger)}
.ein-badge--solid.ein-badge--warning{--_bg:var(--warning-solid);--_fg:var(--on-warning)}
.ein-badge--solid.ein-badge--info{--_bg:var(--info-solid);--_fg:var(--on-danger)}
.ein-badge--lg{height:32px;padding:0 14px 0 10px;font-size:var(--text-sm);line-height:var(--leading-sm)}
@keyframes ein-pulse{0%,100%{opacity:1}50%{opacity:.35}}
.ein-blink{animation:ein-blink var(--duration-blink) steps(1,end) infinite}
@keyframes ein-blink{50%{opacity:.25}}

/* inspection result */
.ein-result{--_bg:var(--success-solid);--_fg:var(--on-success);display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:var(--space-2) var(--space-4);padding:var(--space-4) var(--space-6);border-radius:var(--radius-container);background:var(--_bg);color:var(--_fg)}
.ein-result__icon{width:48px;height:48px;grid-row:span 2}
.ein-result__verdict{font:700 var(--text-4xl)/var(--leading-2xl) var(--font-display);letter-spacing:.02em}
.ein-result__meta{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:400 var(--text-xs)/var(--leading-xs) var(--font-mono);opacity:.9}
.ein-result--nok{--_bg:var(--danger-solid);--_fg:var(--on-danger)}
.ein-result--warning{--_bg:var(--warning-solid);--_fg:var(--on-warning)}
.ein-result--pending{--_bg:var(--tonal);--_fg:var(--text)}

/* alert */
.ein-alert{--_fg:var(--info-fg);--_bg:var(--info-bg);display:grid;grid-template-columns:auto 1fr auto;gap:var(--space-3);align-items:start;padding:var(--space-3) var(--space-4);border-radius:var(--radius-container);background:var(--_bg);color:var(--text)}
.ein-alert>.ein-icon{color:var(--_fg);margin-top:0}
.ein-alert__title{font-weight:600;color:var(--_fg)}
.ein-alert__body{color:var(--text)}
.ein-alert__actions{display:flex;gap:var(--space-2);margin-top:var(--space-2)}
.ein-alert--ok{--_fg:var(--success-fg);--_bg:var(--success-bg)}
.ein-alert--nok{--_fg:var(--danger-fg);--_bg:var(--danger-bg)}
.ein-alert--warning{--_fg:var(--warning-fg);--_bg:var(--warning-bg)}
.ein-alert .ein-button--icon{margin:-6px -8px -6px 0}

/* toast */
.ein-toaster{font:400 var(--text-sm)/var(--leading-sm) var(--font-body);color:var(--text);-webkit-font-smoothing:antialiased;position:fixed;right:var(--space-6);bottom:var(--space-6);z-index:var(--z-toast);display:grid;gap:var(--space-2);width:min(380px,calc(100vw - 32px))}
.ein-toast{display:grid;grid-template-columns:auto 1fr auto;gap:var(--space-3);align-items:start;padding:var(--space-3) var(--space-4);border-radius:var(--radius-container);background:var(--inverse);color:var(--text-inverse);box-shadow:var(--shadow-md);
  animation:ein-toast-in var(--duration-4) var(--ease-enter) both}
.ein-toast[data-leaving]{animation:ein-toast-out var(--duration-3) var(--ease-exit) both}
.ein-toast__title{font-weight:600}
.ein-toast__body{opacity:.85}
.ein-toast>.ein-icon{margin-top:0}
.ein-toast--ok{--_c:var(--ok)} .ein-toast--nok{--_c:var(--nok)} .ein-toast--warning{--_c:var(--amber)} .ein-toast--info{--_c:var(--blue)}
.ein-toast>.ein-icon{color:var(--_c)}
.ein-toaster--top-right,.ein-toaster--top-left,.ein-toaster--top-center{top:var(--space-6);bottom:auto}
.ein-toaster--top-left,.ein-toaster--bottom-left{left:var(--space-6);right:auto}
.ein-toaster--top-center,.ein-toaster--bottom-center{left:50%;right:auto;transform:translateX(-50%)}
.ein-toaster--top-right .ein-toast,.ein-toaster--top-left .ein-toast,.ein-toaster--top-center .ein-toast{animation-name:ein-toast-in-top}
@keyframes ein-toast-in-top{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}
.ein-toast .ein-button{--_fg:var(--text-inverse);margin:-6px -8px -6px 0}
@keyframes ein-toast-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes ein-toast-out{from{opacity:1}to{opacity:0;transform:translateY(4px)}}

/* ---------- navigation ---------- */
.ein-tabs{display:flex;gap:var(--space-1);box-shadow:inset 0 calc(var(--stroke-rule) * -1) 0 var(--border);overflow-x:auto;scrollbar-width:none;max-width:100%}
.ein-tabs::-webkit-scrollbar{display:none}
.ein-tab{position:relative;flex:none;display:inline-flex;align-items:center;gap:var(--space-2);height:var(--control-md);padding:0 var(--space-3);border:0;background:none;color:var(--text-secondary);font:600 var(--text-sm)/var(--leading-sm) var(--font-body);cursor:pointer;border-radius:var(--radius-control) var(--radius-control) 0 0;
  transition:color var(--duration-2) var(--ease-standard),background-color var(--duration-2) var(--ease-standard)}
.ein-tab:hover{color:var(--text);background:var(--surface-hover)}
.ein-tab::after{content:"";position:absolute;left:0;right:0;bottom:0;height:var(--stroke-line);border-radius:var(--radius-mark) var(--radius-mark) 0 0;background:var(--primary);transform:scaleX(0);transition:transform var(--duration-2) var(--ease-standard)}
.ein-tab[aria-selected="true"]{color:var(--text);font-weight:700}
.ein-tab[aria-selected="true"]::after{transform:scaleX(1)}
.ein-tab__count{flex:none;color:var(--text-secondary);font:400 var(--text-xs)/var(--leading-xs) var(--font-mono);font-variant-numeric:tabular-nums}

.ein-shell{display:grid;grid-template-columns:var(--sidebar-width) minmax(0,1fr);grid-template-rows:var(--topbar-height) 1fr;min-height:100%;max-width:100%;overflow-x:clip;background:var(--bg)}
.ein-shell--collapsed{grid-template-columns:var(--sidebar-collapsed) minmax(0,1fr)}
.ein-sidebar{grid-row:1 / span 2;display:flex;flex-direction:column;gap:var(--space-1);padding:var(--space-3);position:sticky;top:0;align-self:start;height:100vh;height:100dvh;max-height:100%;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;background:var(--bg);border-right:var(--stroke-rule) solid var(--border)}
.ein-sidebar__brand{display:flex;align-items:center;height:calc(var(--topbar-height) - var(--space-3));padding:0 var(--space-2);margin-bottom:var(--space-2)}
.ein-sidebar__brand img{height:20px;display:block}
.ein-sidebar__section{padding:var(--space-4) var(--space-3) var(--space-1);font:400 var(--text-xs)/var(--leading-xs) var(--font-body);color:var(--text-secondary)}
.ein-sidebar__footer{margin-top:auto}
.ein-nav-item{position:relative;display:flex;align-items:center;gap:var(--space-3);height:var(--control-md);padding:0 var(--space-3);border-radius:var(--radius-control);color:var(--text-secondary);font:600 var(--text-sm)/var(--leading-sm) var(--font-body);text-decoration:none;cursor:pointer;border:0;background:none;width:100%;text-align:left;
  transition:background-color var(--duration-1) var(--ease-standard),color var(--duration-1) var(--ease-standard)}
.ein-nav-item:hover{background:var(--surface-hover);color:var(--text)}
.ein-nav-item[aria-current="page"]{background:var(--surface-hover);color:var(--heading);font-weight:700}
.ein-nav-item[aria-current="page"]::before,.ein-nav-item[aria-pressed="true"]::before{content:"";position:absolute;left:calc(var(--space-3) * -1);top:var(--space-2);bottom:var(--space-2);width:var(--stroke-indicator);border-radius:0 var(--radius-mark) var(--radius-mark) 0;background:var(--primary)}
.ein-nav-item[aria-current="page"]>.ein-icon{color:var(--heading)}
.ein-shell--collapsed .ein-nav-item[aria-current="page"]::before,.ein-shell--collapsed .ein-nav-item[aria-pressed="true"]::before{left:calc(var(--space-2) * -1)}
.ein-nav-item .ein-badge{margin-left:auto;height:20px;padding:0 6px}
/* count over the icon: a dot (no text) or a number in a danger pill */
.ein-nav-item__count{position:absolute;top:calc(50% - var(--icon-md) / 2 - var(--space-1));left:calc(var(--space-3) + var(--icon-md) - var(--space-3));display:inline-grid;place-items:center;min-width:var(--space-4);height:var(--space-4);padding:0 var(--space-1);border-radius:var(--radius-full);background:var(--danger-solid);color:var(--on-danger);box-shadow:0 0 0 var(--stroke-line) var(--bg);font:600 var(--text-xs)/1 var(--font-mono);font-variant-numeric:tabular-nums}
.ein-nav-item__count.is-dot{min-width:var(--space-2);width:var(--space-2);height:var(--space-2);padding:0;top:calc(50% - var(--icon-md) / 2);left:calc(var(--space-3) + var(--icon-md) - var(--space-2))}
/* lg = 48 px touch target (own `size`, or the surrounding ControlSize) */
.ein-nav-item--lg{height:var(--control-lg)}
/* badge tone: colour AND shape. nok = round (default); warning and info = square corners for a number, triangle / diamond for a dot. The word is read aloud too. */
.ein-nav-item__count[data-tone="warning"]{background:var(--warning-solid);color:var(--on-warning);border-radius:var(--radius-mark)}
.ein-nav-item__count[data-tone="info"]{background:var(--info-solid);color:var(--on-info);border-radius:var(--radius-mark)}
.ein-nav-item__count.is-dot:is([data-tone="warning"],[data-tone="info"]){min-width:var(--space-3);width:var(--space-3);height:var(--space-3);top:calc(50% - var(--icon-md) / 2 - var(--space-1));border-radius:0;box-shadow:none;background:var(--bg)}
.ein-nav-item__count.is-dot[data-tone="warning"]{clip-path:polygon(50% 0,100% 100%,0 100%)}
.ein-nav-item__count.is-dot[data-tone="info"]{clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%)}
.ein-nav-item__count.is-dot:is([data-tone="warning"],[data-tone="info"])::after{content:"";position:absolute;inset:var(--stroke-line);clip-path:inherit}
.ein-nav-item__count.is-dot[data-tone="warning"]::after{inset:calc(var(--stroke-line) * 2) var(--stroke-line) var(--stroke-line);background:var(--warning-solid)}
.ein-nav-item__count.is-dot[data-tone="info"]::after{background:var(--info-solid)}
.ein-shell--collapsed .ein-nav-item{justify-content:center;padding:0}
.ein-shell--collapsed .ein-nav-item>span:not(.ein-nav-item__count),.ein-shell--collapsed .ein-sidebar__section,.ein-shell--collapsed .ein-nav-item .ein-badge{display:none}
.ein-shell--collapsed .ein-nav-item__count{left:calc(50% + var(--space-1))}
.ein-shell--collapsed .ein-nav-item__count.is-dot{left:calc(50% + var(--space-2))}
.ein-topbar{display:flex;align-items:center;gap:var(--space-3);padding:0 var(--space-6);height:var(--topbar-height);background:var(--bg);border-bottom:var(--stroke-rule) solid var(--border);position:sticky;top:0;z-index:var(--z-sticky)}
.ein-topbar__title{font:700 var(--text-lg)/var(--leading-md) var(--font-display);color:var(--heading);margin:0;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ein-topbar__actions{display:flex;align-items:center;gap:var(--space-2);flex:none}
.ein-topbar__menu{display:none!important}
.ein-sidebar__brand .is-compact{display:none}
.ein-shell__scrim{display:none}
.ein-shell--collapsed .ein-sidebar{padding:var(--space-3) var(--space-2)}
.ein-shell--collapsed .ein-sidebar__brand{justify-content:center;padding:0}
.ein-shell--collapsed .ein-sidebar__brand .is-full{display:none}
.ein-shell--collapsed .ein-sidebar__brand .is-compact{display:block;height:28px}
.ein-topbar__spacer{flex:1}
.ein-main{padding:var(--space-6);min-width:0;max-width:100%}
.ein-main:focus{outline:none}
/* skip link: out of sight until it gets focus (first Tab stop of the page) */
.ein-skip{position:fixed;top:var(--space-2);left:var(--space-2);z-index:calc(var(--z-overlay) + 1);padding:var(--space-2) var(--space-4);border-radius:var(--radius-control);background:var(--surface-raised);color:var(--text);font:600 var(--text-sm)/var(--leading-sm) var(--font-body);box-shadow:var(--shadow-md);text-decoration:none;transform:translateY(calc(-100% - var(--space-4)))}
.ein-skip:focus-visible{transform:none;outline:var(--stroke-line) solid var(--focus-ring);outline-offset:2px}

/* menu */
.ein-menu{position:relative;display:inline-block}
.ein-menu__list{position:fixed;z-index:var(--z-toast);min-width:200px;max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);overflow-y:auto;padding:var(--space-1);border-radius:var(--radius-container);background:var(--surface-raised);border:var(--stroke-rule) solid var(--border);box-shadow:var(--shadow-md);
  transform-origin:top right;animation:ein-pop-in var(--duration-4) var(--ease-enter) both}
.ein-menu__list--context{transform-origin:top left}
.ein-menu__trigger{width:var(--control-sm);height:var(--control-sm);min-height:var(--control-sm)}
.ein-menu__trigger:hover,.ein-menu__trigger[aria-expanded="true"]{background:var(--surface-hover)}
.ein-menu__item{display:flex;align-items:center;gap:var(--space-2);width:100%;height:36px;padding:0 var(--space-3);border:0;border-radius:var(--radius-control);background:none;color:var(--text);font:400 var(--text-sm)/var(--leading-sm) var(--font-body);text-align:left;cursor:pointer}
.ein-menu__item:hover,.ein-menu__item:focus-visible{background:var(--surface-hover)}
.ein-menu__item>.ein-icon{color:var(--text-secondary);width:16px;height:16px}
.ein-menu__grow{flex:1;min-width:0}
.ein-viewer__swatch{--_c:var(--overlay-info);flex:none;width:var(--space-3);height:var(--space-3);border-radius:50%;background:var(--_c);box-shadow:0 0 0 var(--stroke-rule) var(--overlay-halo)}
.ein-menu__item--danger,.ein-menu__item--danger>.ein-icon{color:var(--danger-fg)}
.ein-menu__sep{height:0;margin:var(--space-1) 0;border-top:var(--stroke-rule) solid var(--border)}
@keyframes ein-pop-in{from{opacity:0;transform:scale(.96) translateY(-4px)}to{opacity:1;transform:none}}

/* tooltip */
.ein-tooltip{position:relative;display:inline-flex}
.ein-tooltip--block{display:flex;width:100%}

/* ---------- containers & data ---------- */
.ein-card{display:flex;flex-direction:column;border-radius:var(--radius-container);background:var(--surface);border:var(--stroke-rule) solid var(--border);box-shadow:var(--shadow-sm);min-width:0}
.ein-card__header{display:flex;align-items:flex-start;flex-wrap:wrap;gap:var(--space-3);padding:var(--space-4) var(--space-6) 0}
.ein-card__heading{flex:1 1 10em;min-width:0}
.ein-card__actions{display:flex;flex-wrap:wrap-reverse;align-items:center;justify-content:flex-end;gap:var(--space-2);min-width:0;max-width:100%;margin-left:auto}   /* narrow card: the actions move together under the title; if they still do not fit, the last one (usually the button) stays on top and the badges go below */
.ein-card__title{flex:1;min-width:0;overflow-wrap:break-word;margin:0;font:700 var(--text-lg)/var(--leading-md) var(--font-display);color:var(--heading)}
.ein-card__subtitle{overflow-wrap:break-word;margin:2px 0 0;font-size:var(--text-xs);line-height:var(--leading-xs);color:var(--text-secondary);font-family:var(--font-body);font-weight:400}
.ein-card__body{min-width:0;overflow-wrap:anywhere;padding:var(--space-4) var(--space-6)}
.ein-card__footer{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:var(--space-2);padding:var(--space-3) var(--space-6);border-top:var(--stroke-rule) solid var(--border)}
.ein-card--interactive{cursor:pointer;transition:border-color var(--duration-1) var(--ease-standard),box-shadow var(--duration-2) var(--ease-standard),transform var(--duration-2) var(--ease-standard)}
.ein-card--interactive:hover{border-color:var(--border-strong);box-shadow:var(--shadow-md)}

.ein-kpi-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,calc(var(--space-16) * 3.5)),1fr));grid-auto-rows:1fr;gap:var(--space-4);align-items:stretch}
.ein-kpi{display:grid;grid-template-rows:auto auto 1fr;align-content:start;gap:var(--space-1);min-width:0;height:100%;box-sizing:border-box;padding:var(--space-4) var(--space-6);border-radius:var(--radius-container);background:var(--surface);border:var(--stroke-rule) solid var(--border);box-shadow:var(--shadow-sm)}
.ein-kpi__label{display:flex;align-items:center;gap:var(--space-2);min-width:0;font-size:var(--text-xs);line-height:var(--leading-xs);color:var(--text-secondary)}
.ein-kpi__value{font:700 clamp(var(--text-2xl),2.4vw + 8px,var(--text-4xl))/1.25 var(--font-display);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--heading);font-variant-numeric:tabular-nums}
.ein-kpi__unit{font:400 var(--text-md)/var(--leading-md) var(--font-body);color:var(--text-secondary);margin-left:4px}
.ein-kpi__delta{display:inline-flex;align-items:baseline;gap:2px;min-width:0;font:600 var(--text-xs)/var(--leading-xs) var(--font-body)}
.ein-kpi__delta--good{color:var(--success-fg)} .ein-kpi__delta--bad{color:var(--danger-fg)} .ein-kpi__delta--flat{color:var(--text-secondary)}

.ein-datatable{width:100%;overflow:auto;border-radius:var(--radius-container);border:var(--stroke-rule) solid var(--border);background:var(--surface)}
.ein-datatable table{width:100%;border-collapse:separate;border-spacing:0;font-size:var(--text-sm);line-height:var(--leading-sm)}
.ein-datatable th{position:sticky;top:0;z-index:1;height:var(--control-md);padding:0 var(--space-4);background:var(--surface-sunken);color:var(--text-secondary);font:700 var(--text-xs)/var(--leading-xs) var(--font-body);letter-spacing:.06em;text-transform:uppercase;text-align:left;border-bottom:var(--stroke-rule) solid var(--border);white-space:nowrap}
.ein-datatable td{height:48px;padding:0 var(--space-4);border-bottom:var(--stroke-rule) solid var(--border);color:var(--text);white-space:nowrap}
.ein-datatable--compact td{height:36px}
.ein-datatable tbody tr{transition:background-color var(--duration-1) var(--ease-standard)}
.ein-datatable tbody tr:hover{background:var(--surface-hover)}
.ein-datatable tbody tr[aria-selected="true"]{background:var(--surface-selected);box-shadow:inset 0 var(--stroke-rule) 0 var(--border-strong),inset 0 calc(var(--stroke-rule) * -1) 0 var(--border-strong)}
.ein-datatable tbody tr:last-child td{border-bottom:0}
.ein-datatable .is-num{text-align:right;font-family:var(--font-mono)}
.ein-datatable .is-mono{font-family:var(--font-mono)}
.ein-datatable .is-actions{width:1%;text-align:right;padding-right:var(--space-2)}
.ein-datatable .is-check{width:1%;padding-right:0}
.ein-datatable tbody tr .is-actions .ein-button{opacity:.0;transition:opacity var(--duration-1) var(--ease-standard)}
.ein-datatable tbody tr:hover .is-actions .ein-button,.ein-datatable tbody tr:focus-within .is-actions .ein-button,.ein-datatable tbody tr .is-actions .ein-button[aria-expanded="true"]{opacity:1}
@media (hover:none),(any-pointer:coarse){.ein-datatable tbody tr .is-actions .ein-button{opacity:1}}

.ein-empty{display:grid;grid-template-columns:minmax(0,1fr);min-width:0;justify-items:center;gap:var(--space-2);padding:var(--space-12) var(--space-6);text-align:center}
.ein-empty__icon{display:grid;place-items:center;width:56px;height:56px;border-radius:50%;background:var(--tonal);color:var(--text-secondary);margin-bottom:var(--space-2)}
.ein-empty__title{overflow-wrap:anywhere;max-width:100%;margin:0;font:700 var(--text-lg)/var(--leading-md) var(--font-display);color:var(--heading)}
.ein-empty__body{margin:0;overflow-wrap:anywhere;max-width:min(360px,100%);color:var(--text-secondary)}
.ein-empty__actions{display:flex;gap:var(--space-2);margin-top:var(--space-3)}

/* dialog */
.ein-dialog-layer{position:fixed;inset:0;z-index:var(--z-overlay);display:grid;place-items:center;padding:var(--space-6);background:var(--scrim);animation:ein-fade-in var(--duration-4) var(--ease-standard) both}
.ein-dialog{display:flex;flex-direction:column;width:min(480px,100%);max-height:calc(100vh - 48px);overflow:hidden;border-radius:var(--radius-container);background:var(--surface-raised);color:var(--text);box-shadow:var(--shadow-lg);
  animation:ein-dialog-in var(--duration-5) var(--ease-emphasized) both}
.ein-dialog--lg{width:min(720px,100%)}
.ein-dialog__header{flex:none;display:flex;align-items:flex-start;gap:var(--space-3);padding:var(--space-6) var(--space-6) 0}
.ein-dialog__title{flex:1;margin:0;font:700 var(--text-lg)/var(--leading-md) var(--font-display);color:var(--heading)}
.ein-dialog__body{flex:0 1 auto;min-height:0;overflow:auto;padding:var(--space-3) var(--space-6) var(--space-6);color:var(--text-secondary);font-size:var(--text-sm);line-height:var(--leading-sm)}
.ein-dialog__footer{flex:none;display:flex;justify-content:flex-end;gap:var(--space-2);padding:var(--space-4) var(--space-6);border-top:var(--stroke-rule) solid var(--border)}
.ein-dialog-layer[data-leaving]{animation:ein-fade-out var(--duration-3) var(--ease-exit) both}
.ein-dialog-layer[data-leaving] .ein-dialog{animation:ein-dialog-out var(--duration-3) var(--ease-exit) both}
@keyframes ein-fade-in{from{opacity:0}to{opacity:1}}
@keyframes ein-fade-out{from{opacity:1}to{opacity:0}}
@keyframes ein-dialog-in{from{opacity:0;transform:translateY(16px) scale(.98)}to{opacity:1;transform:none}}
@keyframes ein-dialog-out{from{opacity:1;transform:none}to{opacity:0;transform:translateY(8px) scale(.98)}}

/* ---------- number field ---------- */
.ein-number{position:relative;display:flex;align-items:center}
.ein-number__input{padding-right:var(--_pr,calc(2 * var(--control-sm) + var(--space-3) + var(--icon-md)))}
.ein-number__unit{position:absolute;right:calc(2 * var(--control-sm) + var(--space-3));color:var(--text-secondary);font-size:var(--text-sm);pointer-events:none}
.ein-number__steps{position:absolute;right:var(--space-1);top:var(--space-1);bottom:var(--space-1);display:flex;gap:var(--space-0-5)}
.ein-number__steps button{display:grid;place-items:center;width:var(--control-sm);border:0;border-radius:var(--radius-control);background:transparent;color:var(--text-secondary);cursor:pointer;transition:background-color var(--duration-1) var(--ease-standard),color var(--duration-1) var(--ease-standard)}
.ein-number__steps button:hover:not(:disabled){background:var(--surface-hover);color:var(--text)}
.ein-number__steps button:active{background:var(--surface-pressed)}
.ein-number__steps button:disabled{color:var(--text-disabled);cursor:not-allowed}
.ein-number--sm .ein-number__steps{top:calc(var(--space-1) - var(--stroke-rule));bottom:calc(var(--space-1) - var(--stroke-rule))}.ein-number--sm .ein-number__steps button{width:calc(var(--control-sm) - var(--space-1) - var(--space-0-5))}
.ein-number--lg .ein-number__steps button{width:var(--control-md)}
.ein-number--lg .ein-number__unit{right:calc(2 * var(--control-md) + var(--space-3))}
.ein-number:not(:has(.ein-number__steps)) .ein-number__unit{right:var(--space-3)}
.ein-number:not(:has(.ein-number__steps)) .ein-number__input{--_pr:var(--control-lg)}

/* ---------- combobox ---------- */
.ein-combobox{position:relative}
.ein-combobox__input{padding-right:44px}
.ein-combobox__end{position:absolute;right:6px;display:flex;align-items:center;color:var(--text-secondary)}
.ein-combobox__end>.ein-icon{margin-right:6px}
.ein-combobox.is-open .ein-combobox__input{border-color:var(--primary-border)}
.ein-mark{background:none;color:var(--heading);font-weight:700;text-decoration:underline;text-decoration-color:var(--primary);text-decoration-thickness:var(--stroke-indicator);text-underline-offset:3px;text-decoration-skip-ink:none}

/* ---------- popover (shared) ---------- */
.ein-popover{position:absolute;left:0;top:calc(100% + 4px);z-index:var(--z-dropdown);padding:var(--space-2);border-radius:var(--radius-container);background:var(--surface-raised);color:var(--text);
  border:var(--stroke-rule) solid var(--border);box-shadow:var(--shadow-md);transform-origin:top left;animation:ein-pop-in var(--duration-4) var(--ease-enter) both}
.ein-popover--up{top:auto;bottom:calc(100% + 4px);transform-origin:bottom left}
.ein-popover--right{left:auto;right:0;transform-origin:top right}

/* ---------- date range picker ---------- */
.ein-datepicker{position:relative}
.ein-datepicker__pop{padding:0;width:max-content;max-width:calc(100vw - var(--space-8))}
.ein-datepicker__body{display:flex}
.ein-datepicker__presets{display:flex;flex-direction:column;gap:var(--space-0-5);padding:var(--space-3) var(--space-2);border-right:var(--stroke-rule) solid var(--border);min-width:calc(3 * var(--control-lg))}
.ein-datepicker__preset{height:var(--control-sm);padding:0 var(--space-3);border:0;border-radius:var(--radius-control);background:none;color:var(--text);font:400 var(--text-sm)/var(--leading-sm) var(--font-body);text-align:left;cursor:pointer;white-space:nowrap}
.ein-datepicker__preset:hover{background:var(--surface-hover)}
.ein-datepicker__preset:focus-visible{outline:var(--stroke-line) solid var(--focus-ring);outline-offset:-2px}
.ein-cal{position:relative;padding:var(--space-3) var(--space-4) var(--space-4)}
.ein-cal__nav{position:absolute;left:var(--space-3);right:var(--space-3);top:var(--space-3);display:flex;justify-content:space-between;pointer-events:none}
.ein-cal__nav .ein-button{pointer-events:auto}
.ein-cal__months{display:flex;gap:var(--space-6)}
.ein-cal__title{height:var(--control-sm);display:flex;align-items:center;justify-content:center;font:600 var(--text-sm)/var(--leading-sm) var(--font-body);color:var(--heading);text-transform:capitalize;margin-bottom:var(--space-2)}
.ein-cal__grid{border-collapse:collapse}
.ein-cal__grid th{width:calc(var(--control-sm) + var(--space-1));height:calc(var(--control-sm) - var(--space-1));font:700 var(--text-xs)/var(--leading-xs) var(--font-body);color:var(--text-secondary);text-transform:uppercase}
.ein-cal__grid td{padding:var(--stroke-rule) 0;text-align:center}
.ein-cal__day{position:relative;width:calc(var(--control-sm) + var(--space-1));height:calc(var(--control-sm) + var(--space-1));border:0;border-radius:var(--radius-control);background:none;color:var(--text);font:400 var(--text-sm)/var(--leading-sm) var(--font-body);font-variant-numeric:tabular-nums;cursor:pointer;
  transition:background-color var(--duration-1) var(--ease-standard)}
.ein-cal__day:hover{background:var(--surface-hover)}
.ein-cal__day:focus-visible{outline:var(--stroke-line) solid var(--focus-ring);outline-offset:0;z-index:1}
.ein-cal__day.is-out{display:inline-grid;place-items:center;color:var(--text-disabled);opacity:.5;cursor:default}
.ein-cal__day.is-today{font-weight:700;box-shadow:inset 0 calc(var(--stroke-line) * -1) 0 var(--primary-border)}
.ein-cal__day.is-range{background:var(--surface-selected);border-radius:0}
.ein-cal__day.is-start,.ein-cal__day.is-end{background:var(--primary);color:var(--on-primary);font-weight:600;border-radius:var(--radius-control)}
.ein-cal__day.is-start.is-range:not(.is-end){border-radius:var(--radius-control) 0 0 var(--radius-control)}
.ein-cal__day.is-end.is-range:not(.is-start){border-radius:0 var(--radius-control) var(--radius-control) 0}
.ein-cal__day:disabled{color:var(--text-disabled);cursor:not-allowed;background:none}
.ein-datepicker__foot{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:var(--space-3);padding:var(--space-3) var(--space-4);border-top:var(--stroke-rule) solid var(--border)}
.ein-datepicker__summary{display:flex;align-items:center;gap:var(--space-4);font-size:var(--text-sm);color:var(--text-secondary);font-variant-numeric:tabular-nums}
.ein-datepicker__actions{display:flex;gap:var(--space-2);margin-left:auto}

/* ---------- drawer ---------- */
.ein-drawer-layer{position:fixed;inset:0;z-index:var(--z-overlay);background:var(--scrim);animation:ein-fade-in var(--duration-4) var(--ease-standard) both}
.ein-drawer{position:absolute;top:0;bottom:0;display:flex;flex-direction:column;width:min(var(--_w,560px),100%);background:var(--surface-raised);color:var(--text);box-shadow:var(--shadow-lg)}
.ein-drawer--right{right:0;border-radius:var(--radius-container) 0 0 var(--radius-container);animation:ein-drawer-in-r var(--duration-5) var(--ease-emphasized) both}
.ein-drawer--left{left:0;border-radius:0 var(--radius-container) var(--radius-container) 0;animation:ein-drawer-in-l var(--duration-5) var(--ease-emphasized) both}
.ein-drawer--sm{--_w:400px}.ein-drawer--md{--_w:560px}.ein-drawer--lg{--_w:800px}
.ein-drawer__header{display:flex;align-items:flex-start;gap:var(--space-3);padding:var(--space-4) var(--space-6);border-bottom:var(--stroke-rule) solid var(--border)}
.ein-drawer__title{margin:0;font:700 var(--text-lg)/var(--leading-md) var(--font-display);color:var(--heading)}
.ein-drawer__subtitle{margin:2px 0 0;font-size:var(--text-xs);line-height:var(--leading-xs);color:var(--text-secondary)}
.ein-drawer__body{flex:1;overflow-y:auto;padding:var(--space-6)}
.ein-drawer__footer{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:var(--space-2);padding:var(--space-4) var(--space-6);border-top:var(--stroke-rule) solid var(--border)}
.ein-drawer-layer[data-leaving]{animation:ein-fade-out var(--duration-4) var(--ease-exit) both}
.ein-drawer-layer[data-leaving] .ein-drawer--right{animation:ein-drawer-out-r var(--duration-4) var(--ease-exit) both}
.ein-drawer-layer[data-leaving] .ein-drawer--left{animation:ein-drawer-out-l var(--duration-4) var(--ease-exit) both}
@keyframes ein-drawer-in-r{from{transform:translateX(100%)}to{transform:none}}
@keyframes ein-drawer-out-r{from{transform:none}to{transform:translateX(100%)}}
@keyframes ein-drawer-in-l{from{transform:translateX(-100%)}to{transform:none}}
@keyframes ein-drawer-out-l{from{transform:none}to{transform:translateX(-100%)}}

/* ---------- pagination ---------- */
.ein-pagination{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:var(--space-3);font-size:var(--text-sm);color:var(--text-secondary);font-variant-numeric:tabular-nums}
.ein-pagination__info{display:flex;align-items:center;gap:var(--space-4);flex-wrap:wrap}
.ein-pagination__range{color:var(--text-secondary)}
.ein-pagination__size{display:flex;align-items:center;gap:var(--space-2)}
.ein-pagination__size .ein-field{width:88px}
.ein-pagination__pages{display:flex;align-items:center;gap:2px}
.ein-pagination__page{min-width:32px;height:32px;padding:0 6px;border:0;border-radius:var(--radius-control);background:none;color:var(--text);font:400 var(--text-sm)/var(--leading-sm) var(--font-body);cursor:pointer;
  transition:background-color var(--duration-1) var(--ease-standard)}
.ein-pagination__page:hover{background:var(--surface-hover)}
.ein-pagination__page[aria-current="page"]{background:var(--selected-surface);color:var(--on-selected);font-weight:700;box-shadow:inset 0 0 0 var(--stroke-rule) var(--border),var(--shadow-sm)}
.ein-pagination__page:focus-visible{outline:var(--stroke-line) solid var(--focus-ring);outline-offset:2px}
.ein-pagination__gap{min-width:24px;text-align:center}
.ein-pagination__compact{display:none;padding:0 var(--space-2);color:var(--text)}

/* ---------- filter bar & chips ---------- */
.ein-filterbar{display:grid;gap:var(--space-2);--_h:var(--control-md);--_w:calc(var(--space-16) * 2.5)}
.ein-filterbar--lg{--_h:var(--control-lg)}
.ein-filterbar__row{display:flex;align-items:center;gap:var(--space-2);min-width:0}
.ein-filterbar__row>*{flex:none}
.ein-filterbar__row .ein-button,.ein-filterbar__row .ein-input,.ein-filterbar__row .ein-select select{height:var(--_h)}
.ein-filterbar__search{flex:1 1 auto;min-width:0;max-width:calc(var(--space-16) * 7)}
.ein-filterbar__search .ein-input{width:100%}
.ein-filterbar__badge{display:inline-grid;margin-left:var(--space-2);place-items:center;min-width:var(--space-5);height:var(--space-5);padding:0 var(--space-1);border-radius:var(--radius-full);background:var(--primary);color:var(--on-primary);font:600 var(--text-xs)/1 var(--font-body);font-variant-numeric:tabular-nums}
/* "Clear all" reads as a link, not as a button */
.ein-filterbar__clearall{--_fg:var(--text-link);--_bg-h:transparent;--_bg-p:transparent;min-height:0;padding:0 var(--space-1);font-weight:400;text-decoration:underline;text-underline-offset:2px}
.ein-filterbar__clearall:hover{text-decoration-thickness:var(--stroke-line)}
.ein-filterbar__count{margin-left:auto;font-size:var(--text-xs);line-height:var(--leading-xs);color:var(--text-secondary);font-variant-numeric:tabular-nums;white-space:nowrap}
.ein-filterbar__applied{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2)}
.ein-fbchip{display:inline-flex;align-items:center;gap:var(--space-1);max-width:calc(var(--_w) * 2);height:var(--control-sm);padding:0 var(--space-1) 0 var(--space-3);border-radius:var(--radius-full);background:var(--surface-selected);color:var(--text);font:400 var(--text-sm)/var(--leading-sm) var(--font-body)}
.ein-fbchip__text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ein-fbchip b{font-weight:600}
.ein-fbchip__x{position:relative;display:grid;place-items:center;width:var(--space-6);height:var(--space-6);border:0;border-radius:var(--radius-full);background:none;color:var(--text);cursor:pointer}
.ein-fbchip__x:hover{background:var(--surface-pressed)}
.ein-fbchip__x:focus-visible{outline:var(--stroke-line) solid var(--focus-ring);outline-offset:2px}
.ein-fbpanel--pop{padding:var(--space-3)}
.ein-fbpanel__grid{display:grid;grid-template-columns:repeat(auto-fill,var(--_w,calc(var(--space-16) * 2.5)));gap:var(--space-4) var(--space-5)}
.ein-fbpanel--pop .ein-fbpanel__grid{grid-template-columns:repeat(var(--_cols,3),calc(var(--space-16) * 2.5));max-width:calc(100vw - var(--space-8))}
.ein-fbpanel__group{min-width:0;margin:0;padding:0;border:0}
.ein-fbpanel__legend{display:flex;align-items:center;gap:var(--space-1);width:100%;margin-bottom:var(--space-2);padding:0;font:600 var(--text-sm)/var(--leading-sm) var(--font-body);color:var(--text)}
.ein-fbpanel__legend>span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ein-fbpanel__clear{border:0;background:none;padding:0;color:var(--text-secondary);font:400 var(--text-xs)/var(--leading-xs) var(--font-body);cursor:pointer;text-decoration:underline}
.ein-fbpanel__clear:focus-visible{outline:var(--stroke-line) solid var(--focus-ring);outline-offset:2px}
.ein-fbpanel__opts{display:grid;gap:var(--space-1);max-height:calc(var(--space-16) * 4);overflow-y:auto}
.ein-fbpanel__opts .ein-check{min-width:0}
.ein-fbpanel__foot{display:flex;justify-content:flex-end;gap:var(--space-2);margin-top:var(--space-3);padding-top:var(--space-3);border-top:var(--stroke-rule) solid var(--border)}

/* ---------- file upload ---------- */
.ein-dropzone{display:grid;justify-items:center;gap:var(--space-1);padding:var(--space-6) var(--space-4);border:var(--stroke-line) dashed var(--border-strong);border-radius:var(--radius-container);
  background:var(--surface);text-align:center;cursor:pointer;transition:background-color var(--duration-2) var(--ease-standard),border-color var(--duration-2) var(--ease-standard)}
.ein-dropzone:hover{background:var(--surface-hover)}
.ein-dropzone:focus-visible{outline:var(--stroke-line) solid var(--focus-ring);outline-offset:2px}
.ein-dropzone.is-over{border-color:var(--primary-border);background:var(--surface-sunken)}
.ein-dropzone.is-disabled{cursor:not-allowed;opacity:.5}
.ein-dropzone__icon{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--tonal);color:var(--text);margin-bottom:var(--space-1);transition:transform var(--duration-2) var(--ease-standard)}
.ein-dropzone.is-over .ein-dropzone__icon{transform:translateY(-2px);background:var(--primary);color:var(--on-primary)}
.ein-dropzone__text{color:var(--text)}
.ein-dropzone__text b{font-weight:600}
.ein-dropzone__link{color:var(--text-link);text-decoration:underline;font-weight:600}
.ein-dropzone__hint{font-size:var(--text-xs);line-height:var(--leading-xs);color:var(--text-secondary)}
.ein-filelist{list-style:none;margin:var(--space-2) 0 0;padding:0;display:grid;gap:var(--space-2)}
.ein-file{display:flex;align-items:center;gap:var(--space-3);padding:var(--space-2) var(--space-2) var(--space-2) var(--space-3);border:var(--stroke-rule) solid var(--border);border-radius:var(--radius-control);background:var(--surface)}
.ein-file__icon{display:grid;place-items:center;width:32px;height:32px;border-radius:var(--radius-control);background:var(--tonal);color:var(--text-secondary);flex:none}
.ein-file.is-error .ein-file__icon{background:transparent;color:var(--danger-fg)}
.ein-file.is-error .ein-file__name{color:var(--danger-fg)}
.ein-file__main{flex:1;min-width:0;display:grid;gap:4px}
.ein-file__row{display:flex;gap:var(--space-2);justify-content:space-between;align-items:baseline}
.ein-file__name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ein-file__size{flex:none;font-size:var(--text-xs);color:var(--text-secondary);font-variant-numeric:tabular-nums}
.ein-file__error{font-size:var(--text-xs);line-height:var(--leading-xs);color:var(--danger-fg)}
.ein-file .ein-progress__track{height:4px}

@media (max-width:599px){
  .ein-datepicker__body{flex-direction:column}
  .ein-datepicker__presets{flex-direction:row;overflow-x:auto;border-right:0;border-bottom:var(--stroke-rule) solid var(--border);min-width:0;padding:var(--space-2)}
  .ein-datepicker__preset{flex:none;border:var(--stroke-rule) solid var(--border);border-radius:var(--radius-full)}
  .ein-cal{padding:var(--space-3)}
  .ein-cal__day,.ein-cal__grid th{width:var(--control-md)}.ein-cal__day{height:var(--control-md)}
  .ein-datepicker__pop{position:fixed;left:var(--space-3);right:var(--space-3);top:auto;bottom:var(--space-3);width:auto;max-width:none;transform-origin:bottom center}
  .ein-drawer,.ein-drawer--right,.ein-drawer--left{width:100%;border-radius:0}
  .ein-drawer__header{padding:var(--space-4)}.ein-drawer__body{padding:var(--space-4)}.ein-drawer__footer{padding:var(--space-3) var(--space-4)}
  .ein-drawer__footer .ein-button{flex:1}
  .ein-pagination__page,.ein-pagination__gap{display:none}
  .ein-pagination__compact{display:inline}
  .ein-filterbar__row{flex-wrap:wrap}
  .ein-filterbar__search{flex-basis:100%;max-width:none}
}
@media (any-pointer:coarse){
  .ein-pagination__page{min-width:44px;height:44px}
  .ein-number__steps button{width:var(--touch-target)}
  .ein-number__unit{right:calc(2 * var(--touch-target) + var(--space-3))}
}

/* ================= machine vision ================= */
/* image viewer */
.ein-viewer{position:relative;margin:0;display:flex;flex-direction:column;min-height:0;border-radius:var(--radius-container);overflow:hidden;background:var(--viewer-bg);color:var(--viewer-fg)}
.ein-viewer__stage{position:relative;flex:1;min-height:0;overflow:hidden;cursor:grab;touch-action:none;outline:none;
  background-color:var(--viewer-bg);background-image:radial-gradient(var(--viewer-faint) 1px,transparent 1px);background-size:16px 16px}
.ein-viewer__stage:focus-visible{box-shadow:inset 0 0 0 2px var(--green)}
.ein-viewer__stage.is-dragging{cursor:grabbing}
.ein-viewer__canvas{position:absolute;left:0;top:0;transform-origin:0 0}   /* no will-change: a promoted layer is painted once at its first scale and then stretched, so zoom looked blurry */
.ein-viewer__canvas.is-animated{transition:transform var(--duration-4) var(--ease-standard)}
.ein-viewer__canvas img{display:block;width:100%;height:100%;user-select:none;-webkit-user-drag:none}
.ein-viewer__loading,.ein-viewer__error{position:absolute;inset:0;display:grid;place-items:center;align-content:center;gap:var(--space-2);color:var(--viewer-muted)}
/* No photo («Foto no guardada», 2.13.0): the place of a photo that does not exist. Not an error: dashed frame, crossed-out image icon, always on viewer-bg. */
.ein-nophoto{position:absolute;inset:0;display:grid;place-content:center;justify-items:center;gap:var(--space-2);padding:var(--space-3);background:var(--viewer-bg);color:var(--viewer-muted);text-align:center;font:400 var(--text-sm)/var(--leading-sm) var(--font-body)}
.ein-nophoto::before{content:"";position:absolute;inset:var(--space-2);border:var(--stroke-line) dashed var(--viewer-line-strong);border-radius:var(--radius-control);pointer-events:none}
.ein-nophoto__text{max-width:28ch}
.ein-nophoto:not(.is-small)>.ein-icon{width:calc(var(--icon-lg) * 1.5);height:calc(var(--icon-lg) * 1.5)}
.ein-nophoto.is-small{gap:var(--space-1);padding:var(--space-1);font-size:var(--text-xs);line-height:var(--leading-xs)}
.ein-nophoto.is-small::before{inset:var(--space-1)}
.ein-nophoto.is-icon .ein-nophoto__text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.ein-viewer__stage.is-empty{cursor:default}
.ein-thumb__img,.ein-film__img{position:relative}
.ein-viewer__loading .ein-skeleton{background:var(--viewer-faint)}
.ein-viewer__defect{--_c:var(--overlay-nok);--_on:var(--on-overlay);position:absolute;padding:0;margin:0;background:transparent;cursor:pointer;
  border:calc(2px / var(--s,1)) solid var(--_c);border-radius:calc(2px / var(--s,1));
  box-shadow:0 0 0 calc(1px / var(--s,1)) var(--overlay-halo),inset 0 0 0 calc(1px / var(--s,1)) var(--overlay-halo);
  transition:border-color var(--duration-1) var(--ease-standard),background-color var(--duration-1) var(--ease-standard)}
.ein-viewer__defect.is-warning{--_c:var(--overlay-warning)}
.ein-viewer__defect.is-info{--_c:var(--overlay-info);border-style:dashed}
.ein-viewer__defect:hover{background:color-mix(in srgb,var(--_c) 8%,transparent)}
.ein-viewer__defect.is-selected{--_c:var(--overlay-selected);border-width:calc(3px / var(--s,1));background:transparent;z-index:2}
.ein-viewer__defect:focus-visible{outline:calc(2px / var(--s,1)) solid var(--overlay-selected);outline-offset:calc(3px / var(--s,1))}
.ein-viewer__tag{position:absolute;left:calc(-2px / var(--s,1));bottom:100%;transform:translateY(calc(var(--_dy,0px) / var(--s,1) * -1)) scale(calc(1 / var(--s,1)));transform-origin:0 100%;margin-bottom:2px;
  padding:1px 6px;border-radius:var(--radius-control);background:var(--_c);color:var(--_on,var(--on-overlay));font:600 var(--text-xs)/var(--leading-xs) var(--font-body);white-space:nowrap;box-shadow:0 0 0 1px var(--overlay-halo);pointer-events:none}
/* places chosen by placeLabels: end = anchored to the right edge of the mark, down = under the mark */
.ein-viewer__tag[data-fx="end"]{left:auto;right:calc(-2px / var(--s,1));transform-origin:100% 100%}
.ein-viewer__tag[data-fy="down"]{bottom:auto;top:100%;margin:2px 0 0;transform-origin:0 0}
.ein-viewer__tag[data-fx="end"][data-fy="down"]{transform-origin:100% 0}
.ein-viewer__toolbar{position:absolute;left:50%;bottom:var(--space-3);transform:translateX(-50%);display:flex;align-items:center;gap:2px;padding:4px;border-radius:var(--radius-control);
  background:var(--viewer-scrim-strong);backdrop-filter:blur(8px);box-shadow:var(--shadow-lg);color:var(--viewer-fg)}
.ein-viewer__toolbar .ein-button{--_fg:var(--viewer-fg);--_bg-h:var(--viewer-hover);--_bg-p:var(--viewer-pressed)}
.ein-viewer__toolbar .ein-button:disabled{--_fg:var(--viewer-disabled);--_bg:transparent;--_bg-h:transparent}
.ein-viewer__zoom{min-width:56px;height:32px;padding:0 6px;border:0;border-radius:var(--radius-control);background:none;color:var(--viewer-fg);font:600 var(--text-xs)/var(--leading-xs) var(--font-mono);cursor:pointer}
.ein-viewer__zoom:hover{background:var(--viewer-hover)}
.ein-viewer__sep{width:1px;height:20px;margin:0 4px;background:var(--viewer-line-strong)}
.ein-viewer__ovtoggle{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 8px;border:0;border-radius:var(--radius-control);background:none;color:var(--viewer-muted);cursor:pointer;font:600 var(--text-xs)/var(--leading-xs) var(--font-body)}
.ein-viewer__ovtoggle[aria-pressed="true"]{color:var(--viewer-fg);background:var(--viewer-hover)}
.ein-viewer__ovtoggle b{display:inline-grid;place-items:center;min-width:16px;height:16px;padding:0 4px;border-radius:var(--radius-full);margin-left:2px;color:var(--on-overlay);font-size:var(--text-xs)}
.ein-viewer__ovtoggle b.is-nok{background:var(--overlay-nok)}.ein-viewer__ovtoggle b.is-warning{background:var(--overlay-warning)}
.ein-viewer__ovtoggle[aria-pressed="false"] b{opacity:.45}
.ein-viewer__toolbar :focus-visible{outline:2px solid var(--green);outline-offset:1px}
.ein-viewer__coords{position:absolute;right:var(--space-3);top:var(--space-3);padding:2px 8px;border-radius:var(--radius-control);background:var(--viewer-scrim);color:var(--viewer-fg);font:400 var(--text-xs)/var(--leading-xs) var(--font-mono);pointer-events:none}
.ein-viewer__caption{padding:var(--space-2) var(--space-4);font-size:var(--text-xs);line-height:var(--leading-xs);color:var(--viewer-muted);border-top:1px solid var(--viewer-line)}
/* image viewer: drawing layer, tags, slots, brush */
.ein-viewer__layer{position:absolute;left:0;top:0;overflow:visible;pointer-events:none}
.ein-viewer__layer :is(path,line,circle,polyline,polygon,rect,ellipse){vector-effect:non-scaling-stroke}
.ein-viewer__stroke{fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:var(--overlay-brush-opacity)}
.ein-viewer__stroke.is-paint{stroke:var(--overlay-info)}
.ein-viewer__stroke.is-erase{stroke:var(--overlay-nok)}
.ein-viewer__ring-halo{fill:none;stroke:var(--overlay-halo);stroke-width:calc(var(--stroke-line) * 2)}
.ein-viewer__ring{fill:none;stroke:var(--viewer-fg);stroke-width:var(--stroke-line)}
.ein-shape{--_c:var(--overlay-info);fill:var(--_c);fill-opacity:var(--overlay-fill-opacity);stroke:var(--_c);stroke-width:var(--stroke-line);stroke-linejoin:round;fill-rule:evenodd}
.ein-shape.is-warning{--_c:var(--overlay-warning)}
.ein-shape.is-ok{--_c:var(--overlay-ok)}
.ein-shape.is-nok{--_c:var(--overlay-nok)}
.ein-shape.is-selected{--_c:var(--overlay-selected);stroke-width:var(--stroke-indicator)}
.ein-shape.is-outline{fill:none}
.ein-shape.is-dashed{stroke-dasharray:var(--space-2) var(--space-1)}
.ein-shape-halo{fill:none;stroke:var(--overlay-halo);stroke-width:calc(var(--stroke-line) * 2);stroke-linejoin:round;stroke-linecap:round}
.ein-viewer__note{--_c:var(--overlay-info);position:absolute;transform:translate(-50%,0) scale(calc(1 / var(--s,1)));transform-origin:50% 0;padding:2px var(--space-2);border-radius:var(--radius-control);
  border:var(--stroke-rule) solid var(--_c);background:var(--overlay-halo);color:var(--viewer-fg);font:600 var(--text-xs)/var(--leading-xs) var(--font-body);white-space:nowrap;pointer-events:none}
.ein-viewer__note.is-warning{--_c:var(--overlay-warning)}
.ein-viewer__note.is-ok{--_c:var(--overlay-ok)}
.ein-viewer__note.is-nok{--_c:var(--overlay-nok)}
.ein-viewer__note.is-selected{--_c:var(--overlay-selected)}
.ein-viewer__slot{position:absolute;left:var(--space-3);right:var(--space-3);z-index:3;display:flex;gap:var(--space-2);pointer-events:none}
.ein-viewer__slot>*{pointer-events:auto}
.ein-viewer__slot.is-top{top:var(--space-3);flex-direction:column;align-items:flex-start}
.ein-viewer__slot.is-top.has-coords{padding-right:calc(var(--space-16) * 2)}
.ein-viewer__slot.is-bottom{bottom:var(--space-3);align-items:flex-end}
.ein-viewer__slot.is-bottom.has-toolbar{bottom:calc(var(--space-3) + var(--control-sm) + var(--space-4))}
.ein-viewer__slot .ein-alert{background:var(--surface-raised);box-shadow:var(--shadow-md)}
.ein-viewer__legend{display:flex;flex-direction:column;gap:var(--space-1);width:fit-content;max-width:100%;margin:0;padding:var(--space-2) var(--space-3);list-style:none;border-radius:var(--radius-container);background:var(--overlay-halo);color:var(--viewer-fg);font:600 var(--text-xs)/var(--leading-xs) var(--font-body)}
.ein-viewer__legend li{display:inline-flex;align-items:center;gap:var(--space-2)}
.ein-viewer__legend i{--_c:var(--overlay-info);display:inline-block;width:var(--space-4);height:var(--space-2);border-radius:var(--radius-control);border:var(--stroke-line) solid var(--_c);background:var(--_c);background-clip:padding-box}
.ein-viewer__legend i.is-warning{--_c:var(--overlay-warning)}.ein-viewer__legend i.is-ok{--_c:var(--overlay-ok)}.ein-viewer__legend i.is-nok{--_c:var(--overlay-nok)}.ein-viewer__legend i.is-selected{--_c:var(--overlay-selected)}
.ein-viewer__hint{width:fit-content;max-width:100%;padding:var(--space-1) var(--space-3);border-radius:var(--radius-full);background:var(--overlay-halo);color:var(--viewer-fg);font:600 var(--text-xs)/var(--leading-xs) var(--font-body)}

/* defect list */
.ein-defects{list-style:none;margin:0;padding:0;display:grid;gap:var(--space-1)}
.ein-defects.is-empty{display:flex;align-items:center;gap:var(--space-2);padding:var(--space-4);color:var(--success-fg)}
.ein-defect{display:flex;align-items:center;gap:var(--space-3);width:100%;padding:var(--space-2) var(--space-3);border:var(--stroke-rule) solid transparent;border-radius:var(--radius-control);background:none;color:var(--text);text-align:left;cursor:pointer;
  transition:background-color var(--duration-1) var(--ease-standard),border-color var(--duration-1) var(--ease-standard)}
.ein-defect:hover{background:var(--surface-hover)}
.ein-defect.is-selected{background:var(--surface-selected)}
.ein-defect:focus-visible{outline:var(--stroke-line) solid var(--focus-ring);outline-offset:2px}
.ein-defect__num{display:grid;place-items:center;width:24px;height:24px;flex:none;border-radius:var(--radius-control);font:700 var(--text-xs)/var(--leading-xs) var(--font-body);color:var(--_on,var(--on-overlay));background:var(--_c,var(--overlay-nok))}
.ein-defect__num.is-warning{background:var(--_c,var(--overlay-warning))}.ein-defect__num.is-info{background:var(--_c,var(--overlay-info))}
.ein-defect__main{flex:1;min-width:0;display:grid}
.ein-defect__label{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ein-defect__detail{font-size:var(--text-xs);line-height:var(--leading-xs);color:var(--text-secondary);font-family:var(--font-mono)}
.ein-defect__score{font:400 var(--text-xs)/var(--leading-xs) var(--font-mono);color:var(--text-secondary)}

/* image compare */
.ein-compare{margin:0;display:flex;flex-direction:column;border-radius:var(--radius-container);overflow:hidden;background:var(--viewer-bg);color:var(--viewer-fg)}
.ein-compare__bar{display:flex;justify-content:flex-end;padding:var(--space-2);background:var(--viewer-faint)}
.ein-compare__stage{--_pos:50%;position:relative;flex:1;min-height:0;overflow:hidden;cursor:ew-resize;touch-action:pan-y;user-select:none}
.ein-compare__stage img,.ein-compare__after img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;-webkit-user-drag:none}
.ein-compare__after{position:absolute;inset:0;clip-path:inset(0 0 0 var(--_pos));will-change:clip-path}
.ein-compare__stage.is-easing .ein-compare__after{transition:clip-path var(--duration-3) var(--ease-standard)}
.ein-compare__stage.is-easing .ein-compare__handle{transition:left var(--duration-3) var(--ease-standard)}
.ein-compare__label{position:absolute;top:var(--space-3);padding:2px 8px;border-radius:var(--radius-control);background:var(--viewer-scrim);font:600 var(--text-xs)/var(--leading-xs) var(--font-body);pointer-events:none}
.ein-compare__label.is-left{left:var(--space-3)}.ein-compare__label.is-right{right:var(--space-3)}
.ein-compare__handle{position:absolute;top:0;bottom:0;left:var(--_pos);width:var(--stroke-line);margin-left:calc(var(--stroke-line) / -2);will-change:left;background:var(--white);box-shadow:0 0 0 1px var(--overlay-halo);cursor:ew-resize;outline:none}
.ein-compare__grip{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;width:var(--control-sm);height:var(--control-sm);border-radius:50%;background:var(--white);border:var(--stroke-rule) solid var(--border-strong);color:var(--dark-gray);box-shadow:var(--shadow-sm);transition:transform var(--duration-2) var(--ease-standard)}
.ein-compare__stage:active .ein-compare__grip{transform:translate(-50%,-50%) scale(1.08)}
.ein-compare__handle:focus-visible .ein-compare__grip{outline:var(--stroke-line) solid var(--green);outline-offset:2px}
.ein-compare__side{flex:1;min-height:0;display:grid;grid-template-columns:1fr 1fr;gap:2px;background:var(--viewer-hover)}
.ein-compare__side figure{position:relative;margin:0;background:var(--viewer-bg);min-height:0}
.ein-compare__side img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.ein-compare__side figcaption{position:absolute;left:var(--space-3);top:var(--space-3);padding:2px 8px;border-radius:var(--radius-control);background:var(--viewer-scrim);font:600 var(--text-xs)/var(--leading-xs) var(--font-body)}

/* gallery */
.ein-gallery-wrap{display:grid;gap:var(--space-3);min-width:0}
.ein-gallery__bar{position:sticky;top:0;z-index:var(--z-sticky);display:flex;align-items:center;gap:var(--space-3);flex-wrap:wrap;min-height:var(--control-lg);padding:var(--space-2) var(--space-3);
  border:var(--stroke-rule) solid var(--border);border-radius:var(--radius-container);background:var(--surface);transition:background-color var(--duration-3) var(--ease-standard),border-color var(--duration-3) var(--ease-standard)}
.ein-gallery__bar.is-active{background:var(--surface-raised);border-color:var(--border);box-shadow:var(--shadow-md)}
.ein-gallery__count{font:600 var(--text-sm)/var(--leading-sm) var(--font-body);color:var(--heading)}
.ein-gallery__spacer{flex:1}
.ein-gallery__actions{display:flex;align-items:center;gap:var(--space-2);flex-wrap:wrap;animation:ein-pop-in var(--duration-3) var(--ease-enter) both}
.ein-gallery{--_min:calc(var(--space-16) * 3);list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,var(--_min)),1fr));gap:var(--space-3)}
.ein-gallery--sm{--_min:calc(var(--space-16) * 2);gap:var(--space-2)}.ein-gallery--lg{--_min:calc(var(--space-16) * 4.5);gap:var(--space-4)}
.ein-thumb{position:relative;min-width:0;border-radius:var(--radius-control);overflow:hidden;background:var(--viewer-bg);outline:var(--stroke-line) solid transparent;outline-offset:2px;
  transition:outline-color var(--duration-2) var(--ease-standard),transform var(--duration-3) var(--ease-standard),box-shadow var(--duration-3) var(--ease-standard)}
.ein-thumb:hover{transform:translateY(-1px);box-shadow:var(--shadow-md)}
.ein-thumb.is-nok{box-shadow:inset 0 0 0 var(--stroke-line) var(--overlay-nok)}
.ein-thumb.is-selected{outline-color:var(--primary)}
.ein-thumb__open{display:block;width:100%;padding:0;border:0;background:none;color:inherit;text-align:left;cursor:zoom-in}
.ein-gallery.has-selection .ein-thumb__open{cursor:pointer}
.ein-thumb__open:focus-visible{outline:var(--stroke-line) solid var(--focus-ring);outline-offset:-2px}
.ein-thumb__img{display:block;aspect-ratio:4 / 3;overflow:hidden}
.ein-thumb__img img{width:100%;height:100%;object-fit:cover;display:block;transition:transform var(--duration-5) var(--ease-standard),opacity var(--duration-3) var(--ease-standard)}
.ein-thumb:hover .ein-thumb__img img{transform:scale(1.03)}
.ein-thumb.is-selected .ein-thumb__img img{opacity:.82}
.ein-thumb__info{position:absolute;left:0;right:0;bottom:0;display:grid;gap:var(--space-0-5);padding:var(--space-6) var(--space-3) var(--space-2);color:var(--viewer-fg);
  background:linear-gradient(to top,var(--viewer-scrim-strong),transparent);pointer-events:none}
.ein-thumb__title{font:600 var(--text-sm)/var(--leading-sm) var(--font-body);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ein-thumb__more{display:grid;max-height:0;opacity:0;overflow:hidden;transition:max-height var(--duration-4) var(--ease-standard),opacity var(--duration-3) var(--ease-standard)}
.ein-thumb:hover .ein-thumb__more,.ein-thumb:focus-within .ein-thumb__more{max-height:calc(var(--space-16) * 1.25);opacity:1}
.ein-thumb__sub,.ein-thumb__meta{font:400 var(--text-xs)/var(--leading-xs) var(--font-mono);opacity:.88;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ein-gallery--sm .ein-thumb__info{display:none}
.ein-thumb__badges{position:absolute;right:var(--space-2);top:var(--space-2);z-index:3;display:flex;align-items:center;gap:var(--space-1);pointer-events:none}
.ein-thumb__badges .ein-badge:not(.ein-badge--solid){background:var(--viewer-scrim);color:var(--overlay-ok-text)}
.ein-thumb__defects{display:grid;place-items:center;min-width:var(--icon-md);height:var(--icon-md);padding:0 var(--space-1);border-radius:var(--radius-full);background:var(--overlay-nok);color:var(--dark-gray);font:700 var(--text-xs)/1 var(--font-body)}
.ein-thumb__check{position:absolute;left:var(--space-2);top:var(--space-2);z-index:3;display:grid;place-items:center;width:var(--control-sm);height:var(--control-sm);padding:0;border:0;border-radius:var(--radius-control);
  background:var(--viewer-scrim-soft);color:var(--viewer-fg);cursor:pointer;opacity:0;transition:opacity var(--duration-2) var(--ease-standard)}
.ein-thumb__check>span{display:grid;place-items:center;width:var(--icon-md);height:var(--icon-md);border-radius:var(--radius-control);border:var(--stroke-line) solid var(--viewer-fg)}
.ein-thumb:hover .ein-thumb__check,.ein-thumb:focus-within .ein-thumb__check,.ein-gallery.has-selection .ein-thumb__check{opacity:1}
.ein-thumb.is-selected .ein-thumb__check>span{background:var(--primary);border-color:var(--primary);color:var(--on-primary)}
.ein-thumb__check:focus-visible{outline:var(--stroke-line) solid var(--focus-ring);outline-offset:1px}
@media (hover:none),(any-pointer:coarse){.ein-thumb__check{opacity:1}.ein-thumb__more{max-height:none;opacity:1}}

/* lightbox */
.ein-lightbox{position:fixed;inset:0;z-index:var(--z-overlay);display:flex;flex-direction:column;background:var(--viewer-bg);color:var(--viewer-fg);animation:ein-fade-in var(--duration-4) var(--ease-standard) both}
.ein-lightbox[data-leaving]{animation:ein-fade-out var(--duration-3) var(--ease-exit) both}
.ein-lightbox__bar{display:flex;align-items:center;gap:var(--space-3);height:var(--topbar-height);padding:0 var(--space-2) 0 var(--space-4);border-bottom:1px solid var(--viewer-line)}
.ein-lightbox__title{display:grid;min-width:0}.ein-lightbox__title b{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ein-lightbox__title span{font-size:var(--text-xs);line-height:var(--leading-xs);color:var(--viewer-muted);font-family:var(--font-mono)}
.ein-lightbox__count{font:400 var(--text-xs)/var(--leading-xs) var(--font-mono);color:var(--text-secondary)}
.ein-lightbox__body{position:relative;flex:1;min-height:0;display:flex}
.ein-lightbox__body>.ein-viewer{flex:1;border-radius:0}
.ein-lightbox__nav{--_bg:color-mix(in srgb,var(--viewer-bg) 55%,transparent);--_bg-h:color-mix(in srgb,var(--viewer-bg) 75%,transparent);--_fg:var(--viewer-fg);position:absolute!important;top:50%;transform:translateY(-50%);z-index:3;backdrop-filter:blur(4px)}
.ein-lightbox__nav.is-prev{left:var(--space-3)}.ein-lightbox__nav.is-next{right:var(--space-3)}
.ein-lightbox__body:has(.ein-lightbox__side) .ein-lightbox__nav.is-next{right:calc(320px + var(--space-3))}
.ein-lightbox__side{width:320px;flex:none;overflow-y:auto;padding:var(--space-3);border-left:1px solid var(--viewer-line);background:var(--surface)}

/* cameras */
.ein-camgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,var(--_min,240px)),1fr));gap:var(--space-4)}
.ein-camera{display:flex;flex-direction:column;min-width:0;border-radius:var(--radius-container);overflow:hidden;background:var(--surface);border:var(--stroke-rule) solid var(--border)}
.ein-camera.is-selected{border-color:var(--primary-border);box-shadow:0 0 0 var(--stroke-line) var(--primary-border)}
.ein-camera.is-offline{border-color:color-mix(in srgb,var(--danger-fg) 55%,var(--border))}
.ein-camera__feed{position:relative;display:block;width:100%;padding:0;border:0;background:var(--viewer-bg);overflow:hidden;color:var(--viewer-fg)}
button.ein-camera__feed{cursor:pointer}
button.ein-camera__feed:focus-visible{outline:var(--stroke-line) solid var(--focus-ring);outline-offset:-2px}
.ein-camera__feed img,.ein-camera__feed video,.ein-camera__feed canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.ein-camera.is-offline .ein-camera__feed img{filter:grayscale(1) brightness(.35)}
.ein-camera.is-paused .ein-camera__feed img{filter:grayscale(.6) brightness(.7)}
.ein-camera__nosignal{position:absolute;inset:0;display:grid;place-items:center;align-content:center;gap:var(--space-1);color:var(--overlay-nok);font-weight:600}
.ein-camera__rec{position:absolute;left:var(--space-2);top:var(--space-2);display:inline-flex;align-items:center;gap:var(--space-1);padding:1px var(--space-2) 1px var(--space-1);border-radius:var(--radius-full);background:var(--viewer-scrim);color:var(--viewer-fg);font:600 var(--text-xs)/var(--leading-xs) var(--font-body)}
.ein-camera__rec>i{width:8px;height:8px;border-radius:var(--radius-full);background:var(--overlay-nok);animation:ein-pulse 1600ms var(--ease-standard) infinite}
.ein-camera__overlay{position:absolute;right:var(--space-2);top:var(--space-2);display:flex;gap:4px;flex-wrap:wrap;justify-content:flex-end}
.ein-camera__overlay span,.ein-camera__time{padding:1px 6px;border-radius:var(--radius-control);background:var(--viewer-scrim);font:400 var(--text-xs)/var(--leading-xs) var(--font-mono);color:var(--viewer-fg)}
.ein-camera__overlay .is-hot{background:var(--overlay-warning);color:var(--on-overlay);font-weight:600}
.ein-camera__time{position:absolute;left:var(--space-2);bottom:var(--space-2)}
.ein-camera__meta{display:flex;align-items:center;gap:var(--space-2);padding:var(--space-2) var(--space-2) var(--space-2) var(--space-3);min-height:44px}
.ein-camera__text{flex:1;min-width:0;display:grid}
.ein-camera__name{min-width:0;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ein-camera__sub{min-width:0;font:400 var(--text-xs)/var(--leading-xs) var(--font-body);color:var(--text-secondary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* alarms */
.ein-alarms{border-radius:var(--radius-container);background:var(--surface);border:var(--stroke-rule) solid var(--border);overflow:hidden}
.ein-alarms__head{display:flex;align-items:center;flex-wrap:wrap;gap:var(--space-2);min-height:var(--control-lg);padding:var(--space-2) var(--space-2) var(--space-2) var(--space-4);border-bottom:var(--stroke-rule) solid var(--border)}
.ein-alarms__title{display:flex;align-items:center;gap:var(--space-2);margin:0 var(--space-2) 0 0;font:700 var(--text-md)/var(--leading-md) var(--font-display);color:var(--heading)}
.ein-alarms__empty{display:flex;align-items:center;gap:var(--space-2);padding:var(--space-6) var(--space-4);color:var(--success-fg)}
.ein-alarms__list{list-style:none;margin:0;padding:0}
.ein-alarm{display:flex;align-items:center;gap:var(--space-3);padding:var(--space-3) var(--space-4);border-bottom:var(--stroke-rule) solid var(--border);border-left:4px solid transparent}
.ein-alarm:last-child{border-bottom:0}
.ein-alarm.is-p1.is-unack{border-left-color:var(--danger-solid);background:var(--danger-bg)}
.ein-alarm.is-p2.is-unack{border-left-color:var(--amber)}
.ein-alarm.is-p3.is-unack{border-left-color:var(--blue)}
.ein-alarm__prio{display:grid;place-items:center;width:28px;height:28px;flex:none;border-radius:var(--radius-control);font:700 var(--text-sm)/var(--leading-sm) var(--font-body)}
.ein-alarm.is-p1 .ein-alarm__prio{background:var(--danger-solid);color:var(--on-danger)}
.ein-alarm.is-p2 .ein-alarm__prio{background:var(--warning-solid);color:var(--on-warning);clip-path:polygon(50% 0,100% 100%,0 100%);padding-top:6px;border-radius:0}
.ein-alarm.is-p3 .ein-alarm__prio{background:var(--info-solid);color:var(--on-danger);border-radius:50%}
.ein-alarm.is-ack .ein-alarm__prio{background:var(--tonal);color:var(--text-secondary)}
.ein-alarm__main{flex:1;min-width:0}
.ein-alarm__row{display:flex;gap:var(--space-3);align-items:baseline;justify-content:space-between}
.ein-alarm__title{font-weight:600;color:var(--text)}
.ein-alarm.is-ack .ein-alarm__title{font-weight:400;color:var(--text-secondary)}
.ein-alarm.is-cleared .ein-alarm__title{text-decoration:line-through}
.ein-alarm__time{flex:none;font:400 var(--text-xs)/var(--leading-xs) var(--font-mono);color:var(--text-secondary)}
.ein-alarm__msg{font-size:var(--text-xs);line-height:var(--leading-xs);color:var(--text-secondary)}
.ein-alarm__msg b{font-weight:600;color:var(--text)}
.ein-alarm__acked{display:inline-flex;align-items:center;gap:4px;font-size:var(--text-xs);color:var(--text-secondary)}
.ein-alarms--compact .ein-alarm{padding:var(--space-2) var(--space-3)}

@media (max-width:599px){
  .ein-lightbox__side{display:none}
  .ein-lightbox__body:has(.ein-lightbox__side) .ein-lightbox__nav.is-next{right:var(--space-3)}
  .ein-compare__side{grid-template-columns:1fr;grid-template-rows:1fr 1fr}
  .ein-alarm{flex-wrap:wrap;align-items:flex-start}
  .ein-alarm__main{flex:1 1 calc(100% - 48px)}
  .ein-alarm .ein-button,.ein-alarm__acked{margin-left:40px}
  .ein-viewer__coords{display:none}
}

/* ================= charts ================= */
.ein-kpi__foot{display:flex;align-items:flex-end;justify-content:space-between;gap:var(--space-2);min-width:0;min-height:var(--leading-md)}
.ein-kpi__chart{flex:none;line-height:0}
.ein-chart{margin:0;display:grid;grid-template-columns:minmax(0,1fr);gap:var(--space-3);min-width:0;font-variant-numeric:tabular-nums}
.ein-chart__head{display:flex;align-items:flex-start;gap:var(--space-3)}
.ein-chart__titles{flex:1;min-width:0}
.ein-chart__title{font:700 var(--text-md)/var(--leading-md) var(--font-display);color:var(--heading)}
.ein-chart__subtitle{font-size:var(--text-xs);line-height:var(--leading-xs);color:var(--text-secondary)}
.ein-legend{display:flex;flex-wrap:wrap;gap:var(--space-1) var(--space-4);margin:0;padding:0;list-style:none;font-size:var(--text-xs);line-height:var(--leading-xs);color:var(--text-secondary)}
.ein-legend li{display:inline-flex;align-items:center;gap:6px}
.ein-legend__key{display:inline-block;width:10px;height:10px;border-radius:var(--radius-mark);background:var(--_c);flex:none}
.ein-legend__key.is-line{width:16px;height:3px;border-radius:var(--radius-mark)}
.ein-legend__key.is-dot{border-radius:50%}
/* interactive legend (LineChart, BarChart, PolarChart with several series): the entry is a toggle; hidden = hollow key and secondary text */
.ein-legend:has(.ein-legend__btn){gap:var(--space-1) var(--space-2);align-items:center}
.ein-legend__btn{display:inline-flex;align-items:center;gap:6px;margin:0;padding:var(--space-1) var(--space-2);border:0;border-radius:var(--radius-control);background:transparent;color:var(--text);font-family:var(--font-body);font-size:inherit;line-height:inherit;cursor:pointer;transition:background var(--duration-1) var(--ease-standard),color var(--duration-1) var(--ease-standard)}
.ein-legend__btn:hover,.ein-legend__btn.is-hot{background:var(--surface-hover)}
.ein-legend__btn:focus-visible{outline:var(--stroke-line) solid var(--focus-ring);outline-offset:1px}
.ein-legend__btn.is-off{color:var(--text-secondary)}
.ein-legend__key.is-off{background:transparent;box-shadow:inset 0 0 0 var(--stroke-line) var(--_c)}
.ein-legend__key.is-line.is-off{height:6px;box-shadow:inset 0 0 0 var(--stroke-rule) var(--_c)}
.ein-chart__plot{position:relative;width:100%;min-width:0;outline:none}
.ein-chart__plot:focus-visible{box-shadow:0 0 0 2px var(--focus-ring);border-radius:var(--radius-control)}
.ein-chart__plot svg{display:block;overflow:visible}
.ein-chart__grid{stroke:var(--chart-grid);stroke-width:1;shape-rendering:crispEdges}
.ein-chart__zero{stroke:var(--chart-axis);stroke-width:1;shape-rendering:crispEdges}
.ein-chart__tick{fill:var(--text-secondary);font:400 var(--text-xs)/1 var(--font-body)}
.ein-chart__tick.is-cat{fill:var(--text)}
.ein-chart__val{fill:var(--text);font:600 var(--text-xs)/1 var(--font-body)}
.ein-chart__endlabel{fill:var(--text);font:600 var(--text-xs)/1 var(--font-body)}
.ein-chart__endvalue{fill:var(--heading);font:700 var(--text-md)/1 var(--font-mono);font-variant-numeric:tabular-nums}
.ein-chart__endunit{fill:var(--text-secondary);font:400 var(--text-xs)/1 var(--font-body)}
.ein-chart__endname{fill:var(--text-secondary);font:400 var(--text-xs)/1 var(--font-body)}
.ein-chart__grid.is-dotted{stroke-dasharray:2 4;shape-rendering:auto}
.ein-chart__pts{opacity:.35}
.ein-chart__ring{stroke:var(--surface);stroke-width:2}
.ein-chart__cross{stroke:var(--border-strong);stroke-width:1;shape-rendering:crispEdges}
.ein-chart__bar{transition:opacity var(--duration-1) var(--ease-standard)}
.ein-chart__ref line{stroke-width:1.5;shape-rendering:crispEdges}
.ein-chart__ref.is-limit line{stroke:var(--chart-limit)}
.ein-chart__ref.is-target line{stroke:var(--chart-target)}
.ein-chart__ref text{font:600 var(--text-xs)/1 var(--font-body);paint-order:stroke;stroke:var(--surface);stroke-width:3px}
.ein-chart__ref.is-limit text{fill:var(--chart-limit)}.ein-chart__ref.is-target text{fill:var(--chart-target)}
.ein-chart__tip{position:absolute;z-index:var(--z-tooltip);min-width:160px;max-width:260px;padding:var(--space-2) var(--space-3);border-radius:var(--radius-control);background:var(--surface-raised);border:var(--stroke-rule) solid var(--border);box-shadow:var(--shadow-md);
  font-size:var(--text-xs);line-height:var(--leading-xs);color:var(--text);pointer-events:none;animation:ein-fade-in var(--duration-2) var(--ease-enter) both}
.ein-chart__tiphead{margin-bottom:4px;color:var(--text-secondary);font-family:var(--font-mono)}
.ein-chart__tiprow{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:6px;padding:1px 0}
.ein-chart__tiprow b{font-weight:600;font-variant-numeric:tabular-nums}
.ein-chart__tiprow.is-active span:nth-child(2){font-weight:600}
.ein-chart__tiprow.is-total{border-top:var(--stroke-rule) solid var(--border);margin-top:4px;padding-top:4px}
.ein-chart__table{overflow:auto;border:var(--stroke-rule) solid var(--border);border-radius:var(--radius-control)}
.ein-chart__table table{width:100%;border-collapse:collapse;font-size:var(--text-sm)}
.ein-chart__table th{position:sticky;top:0;background:var(--surface-sunken);text-align:left;padding:var(--space-1) var(--space-2);font:700 var(--text-xs)/var(--leading-xs) var(--font-body);letter-spacing:.06em;text-transform:uppercase;color:var(--text-secondary)}
.ein-chart__table td{padding:6px 10px;border-top:var(--stroke-rule) solid var(--border)}
.ein-chart__table td.is-num{text-align:right;font-family:var(--font-mono)}
.ein-sparkline{display:block;overflow:visible}

/* meter */
.ein-meter{display:grid;gap:6px;min-width:0}
.ein-meter__head{display:flex;justify-content:space-between;align-items:baseline;gap:var(--space-2)}
.ein-meter__label{font-size:var(--text-xs);line-height:var(--leading-xs);color:var(--text-secondary)}
.ein-meter__value{display:inline-flex;align-items:center;gap:6px;font:700 var(--text-xl)/var(--leading-md) var(--font-display);color:var(--heading);font-variant-numeric:tabular-nums}
.ein-meter__value small{font:400 var(--text-xs)/var(--leading-xs) var(--font-body);color:var(--text-secondary);margin-left:2px}
.ein-meter__value .ein-icon{color:var(--text-secondary)}
.ein-meter.is-warning .ein-meter__value .ein-icon{color:var(--warning-fg)}
.ein-meter.is-nok .ein-meter__value .ein-icon{color:var(--danger-fg)}
.ein-meter__track{position:relative;height:10px;border-radius:var(--radius-full);background:var(--tonal);overflow:hidden}
.ein-meter__fill{position:absolute;left:0;top:0;bottom:0;width:100%;border-radius:var(--radius-full);background:var(--chart-neutral);transition:transform var(--duration-4) var(--ease-standard)}
.ein-meter.is-warning .ein-meter__fill{background:var(--chart-check)}
.ein-meter.is-nok .ein-meter__fill{background:var(--chart-nok)}
.ein-meter__target{position:absolute;top:-2px;bottom:-2px;width:2px;margin-left:-1px;background:var(--chart-target)}
.ein-meter__scale{position:relative;display:flex;justify-content:space-between;font:400 var(--text-xs)/var(--leading-xs) var(--font-mono);color:var(--text-secondary)}
.ein-meter__targetlabel{position:absolute;white-space:nowrap;color:var(--text)}

/* heatmap */
.ein-heatmap{display:grid;gap:2px;align-items:center;overflow-x:auto;font-variant-numeric:tabular-nums}
.ein-heatmap__col{font-size:var(--text-xs);line-height:var(--leading-xs);color:var(--text-secondary);text-align:center;padding-bottom:4px;white-space:nowrap}
.ein-heatmap__row{font-size:var(--text-xs);line-height:var(--leading-xs);color:var(--text);padding-right:var(--space-3);white-space:nowrap}
.ein-heatmap__cell{display:grid;place-items:center;height:var(--_cell);border-radius:var(--radius-control);background:var(--seq-100);color:var(--dark-gray);font:600 var(--text-xs)/1 var(--font-body);cursor:default;
  transition:box-shadow var(--duration-1) var(--ease-standard)}
.ein-heatmap__cell.is-dark{color:var(--white)}
[data-theme="dark"] .ein-heatmap__cell{color:var(--white)}
[data-theme="dark"] .ein-heatmap__cell.is-dark{color:var(--dark-gray)}
/* the middle step of the scale (seq-400, the same blue in both themes): neither white nor dark-gray reaches 4.5:1 on it, the darkest ink does */
.ein-heatmap .ein-heatmap__cell.is-dark[style*="--seq-400"]{color:var(--neutral-950)}
.ein-heatmap__cell.is-empty{background:repeating-linear-gradient(45deg,var(--tonal) 0 4px,transparent 4px 8px)}
.ein-heatmap__cell.is-active,.ein-heatmap__cell:hover{box-shadow:0 0 0 2px var(--surface),0 0 0 4px var(--text)}
.ein-heatmap__scale{display:flex;align-items:center;gap:2px;font-size:var(--text-xs);color:var(--text-secondary)}
.ein-heatmap__scale i{width:20px;height:8px;border-radius:var(--radius-mark)}
.ein-heatmap__scale span{padding:0 6px;font-family:var(--font-mono)}

/* ---------- stepper ---------- */
.ein-stepper{background:var(--surface);border-bottom:var(--stroke-rule) solid var(--border);overflow-x:auto;scrollbar-width:none}
.ein-stepper__list{display:flex;align-items:center;gap:var(--space-1);list-style:none;margin:0;padding:0 var(--space-4);min-width:max-content}
.ein-stepper__item{display:flex;align-items:center;gap:var(--space-1)}
.ein-stepper__sep{flex:none;width:var(--space-6);height:0;margin:0 var(--space-1);border-top:var(--stroke-rule) solid var(--border)}
.ein-stepper__item:has(.is-done)>.ein-stepper__sep{border-color:var(--success-fg)}
.ein-step{position:relative;display:inline-flex;align-items:center;gap:var(--space-3);min-height:var(--control-lg);padding:var(--space-2) var(--space-4);border:0;border-radius:var(--radius-control);background:none;color:var(--text-secondary);
  font:600 var(--text-sm)/var(--leading-sm) var(--font-body);white-space:nowrap;cursor:default;transition:background-color var(--duration-1) var(--ease-standard)}
.ein-step.is-clickable{cursor:pointer;color:var(--text)}
.ein-step.is-clickable:hover{background:var(--surface-hover)}
.ein-step.is-clickable:focus-visible{outline:var(--stroke-line) solid var(--focus-ring);outline-offset:-2px}
.ein-step.is-current{color:var(--heading);font-weight:700}
.ein-step.is-current::after{content:"";position:absolute;left:var(--space-2);right:var(--space-2);bottom:0;height:var(--stroke-indicator);border-radius:var(--radius-mark) var(--radius-mark) 0 0;background:var(--primary)}
.ein-step__num{display:inline-grid;place-items:center;flex:none;width:var(--icon-lg);height:var(--icon-lg);border:var(--stroke-line) solid var(--border-strong);border-radius:var(--radius-disc);color:inherit;font:700 var(--text-xs)/var(--leading-xs) var(--font-mono)}
.ein-step.is-current .ein-step__num{background:var(--primary);border-color:var(--primary);color:var(--on-primary)}
.ein-step.is-done .ein-step__num{border-color:transparent;color:var(--success-fg)}
.ein-step.is-warning .ein-step__num{border-color:transparent;color:var(--warning-fg)}
.ein-step.is-warning .ein-step__label{color:var(--text)}

/* ---------- action bar ---------- */
.ein-actionbar{display:flex;align-items:center;gap:var(--space-3);min-height:var(--space-16);padding:var(--space-3) var(--space-4);background:var(--surface);border-top:var(--stroke-rule) solid var(--border);box-shadow:0 calc(var(--space-1) * -1) var(--space-2) rgba(0,0,0,.08)}
.ein-actionbar.is-sticky{position:sticky;bottom:0;z-index:var(--z-sticky)}
.ein-actionbar__start,.ein-actionbar__actions{display:flex;align-items:center;gap:var(--space-3);flex:none}
.ein-actionbar__start+.ein-actionbar__status{margin-left:var(--space-2)}
.ein-actionbar__status{display:flex;flex:1;align-items:center;gap:var(--space-2);min-width:0;color:var(--text-secondary);font:400 var(--text-sm)/var(--leading-sm) var(--font-body)}

/* ---------- tool palette ---------- */
.ein-toolpalette{display:flex;flex-direction:column;gap:var(--space-1);align-self:start;padding:var(--space-2);border:var(--stroke-rule) solid var(--border);border-radius:var(--radius-container);background:var(--surface)}
.ein-toolpalette.is-horizontal{flex-direction:row;align-items:center}
.ein-toolpalette__sep{height:var(--stroke-rule);margin:var(--space-1) var(--space-2);background:var(--border)}
.ein-toolpalette.is-horizontal .ein-toolpalette__sep{width:var(--stroke-rule);height:auto;align-self:stretch;margin:var(--space-2) var(--space-1)}
.ein-tool{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-0-5);min-width:calc(var(--control-lg) + var(--space-3));min-height:calc(var(--control-lg) + var(--space-2));padding:var(--space-1);
  border:0;border-radius:var(--radius-control);background:none;color:var(--text);font:600 var(--text-xs)/var(--leading-xs) var(--font-body);cursor:pointer;
  transition:background-color var(--duration-1) var(--ease-standard)}
.ein-tool:hover:not(:disabled){background:var(--surface-hover)}
.ein-tool:active:not(:disabled){background:var(--surface-pressed)}
.ein-tool:disabled{color:var(--text-disabled);cursor:not-allowed}
.ein-tool:focus-visible{outline:var(--stroke-line) solid var(--focus-ring);outline-offset:2px}
.ein-tool.ein-tool[aria-pressed="true"]{background:var(--surface-selected);color:var(--heading);font-weight:700}
.ein-tool__key{font:400 var(--text-2xs)/var(--leading-xs) var(--font-mono);color:var(--text-secondary)}
.ein-toolpalette.is-compact .ein-tool{min-width:var(--control-md);min-height:var(--control-md)}
.ein-toolpalette.is-compact .ein-tool__key{display:none}

/* ---------- slider ---------- */
.ein-slider{gap:var(--space-1)}
.ein-slider__head{display:flex;align-items:baseline;justify-content:space-between;gap:var(--space-3)}
.ein-slider__value{font:600 var(--text-sm)/var(--leading-sm) var(--font-mono);color:var(--heading);font-variant-numeric:tabular-nums}
.ein-slider__value small{margin-left:var(--space-1);font:400 var(--text-xs)/var(--leading-xs) var(--font-body);color:var(--text-secondary)}
.ein-slider__input{--_thumb:calc(var(--icon-md) - var(--space-0-5));--_fill:var(--primary);--_rail:var(--border-strong);-webkit-appearance:none;appearance:none;display:block;width:100%;height:var(--control-md);margin:0;background:transparent;cursor:pointer}
.ein-slider--lg .ein-slider__input{height:var(--control-lg)}
.ein-slider__input:focus-visible{outline:none}
.ein-slider__input::-webkit-slider-runnable-track{height:var(--space-1);border-radius:var(--radius-full);background:linear-gradient(to right,var(--_fill) var(--_pct),var(--_rail) var(--_pct))}
.ein-slider__input::-moz-range-track{height:var(--space-1);border-radius:var(--radius-full);background:linear-gradient(to right,var(--_fill) var(--_pct),var(--_rail) var(--_pct))}
.ein-slider__input::-webkit-slider-thumb{-webkit-appearance:none;box-sizing:border-box;width:var(--_thumb);height:var(--_thumb);margin-top:calc((var(--space-1) - var(--_thumb)) / 2);border:var(--stroke-line) solid var(--primary-border);border-radius:var(--radius-disc);background:var(--white);box-shadow:var(--shadow-sm)}
.ein-slider__input::-moz-range-thumb{box-sizing:border-box;width:var(--_thumb);height:var(--_thumb);border:var(--stroke-line) solid var(--primary-border);border-radius:var(--radius-disc);background:var(--white);box-shadow:var(--shadow-sm)}
.ein-slider__input:focus-visible::-webkit-slider-thumb{outline:var(--stroke-line) solid var(--focus-ring);outline-offset:2px}
.ein-slider__input:focus-visible::-moz-range-thumb{outline:var(--stroke-line) solid var(--focus-ring);outline-offset:2px}
.ein-slider__input:disabled{--_fill:var(--border-strong);--_rail:var(--border);cursor:not-allowed}
.ein-slider__input:disabled::-webkit-slider-thumb{border-color:var(--border-strong);background:var(--surface-sunken);box-shadow:none}
.ein-slider__input:disabled::-moz-range-thumb{border-color:var(--border-strong);background:var(--surface-sunken);box-shadow:none}
.ein-slider__limits{display:flex;justify-content:space-between;font:400 var(--text-xs)/var(--leading-xs) var(--font-mono);color:var(--text-secondary)}

/* ---------- stat tile ---------- */
.ein-stat{--_ic:var(--text-secondary);display:flex;align-items:center;gap:var(--space-3);min-width:0;padding:var(--space-3) var(--space-4);border:var(--stroke-rule) solid var(--border);border-radius:var(--radius-container);background:var(--surface);box-shadow:var(--shadow-sm)}
.ein-stat__icon{flex:none;color:var(--_ic)}
.ein-stat--ok{--_ic:var(--success-fg)}
.ein-stat--warning{--_ic:var(--warning-fg);border-color:var(--warning-fg);background:var(--warning-bg)}
.ein-stat--nok{--_ic:var(--danger-fg);border-color:var(--danger-fg);background:var(--danger-bg)}
.ein-stat--info{--_ic:var(--info-fg);border-color:var(--info-fg);background:var(--info-bg)}
.ein-stat__body{min-width:0}
.ein-stat__label{font:400 var(--text-xs)/var(--leading-xs) var(--font-body);color:var(--text-secondary);overflow-wrap:anywhere}
.ein-stat__value{font:700 var(--text-lg)/var(--leading-md) var(--font-mono);color:var(--heading);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.ein-stat__value small{margin-left:var(--space-1);font:400 var(--text-xs)/var(--leading-xs) var(--font-body);color:var(--text-secondary)}
.ein-stat__sub{font:400 var(--text-xs)/var(--leading-xs) var(--font-body);color:var(--text-secondary)}

/* ---------- disclosure ---------- */
.ein-disclosure{border:var(--stroke-rule) solid var(--border);border-radius:var(--radius-container);background:var(--surface)}
.ein-disclosure__head{display:flex;align-items:center;gap:var(--space-3);width:100%;min-height:var(--control-lg);padding:0 var(--space-4);border:0;border-radius:var(--radius-container);background:none;color:var(--heading);
  font:600 var(--text-sm)/var(--leading-sm) var(--font-body);text-align:left;cursor:pointer;transition:background-color var(--duration-1) var(--ease-standard)}
.ein-disclosure__head:hover{background:var(--surface-hover)}
.ein-disclosure__head:focus-visible{outline:var(--stroke-line) solid var(--focus-ring);outline-offset:-2px}
.ein-disclosure__title{flex:1;min-width:0}
.ein-disclosure__summary{color:var(--text-secondary);font:400 var(--text-sm)/var(--leading-sm) var(--font-body)}
.ein-disclosure__chevron{color:var(--text-secondary);transition:transform var(--duration-3) var(--ease-standard)}
.ein-disclosure.is-open .ein-disclosure__chevron{transform:rotate(180deg)}
.ein-disclosure__panel[hidden]{display:none}
.ein-disclosure__inner{padding:var(--space-4)}

@media (max-width:599px){
  .ein-step:not(.is-current) .ein-step__label{display:none}
  .ein-step{padding:var(--space-2)}
  .ein-actionbar{flex-wrap:wrap}
  .ein-actionbar__status{order:-1;flex-basis:100%}
  .ein-actionbar__actions{margin-left:auto}
}

/* ---------- responsive ----------
   compact  < 600 px  · phones, small panels
   medium   600–1023  · tablets, 1024×768 HMIs, split screens
   expanded ≥ 1024 px · desktop, 1280+ HMIs                     */
@media (max-width:1023px){
  .ein-shell{grid-template-columns:var(--sidebar-collapsed) minmax(0,1fr)}
  .ein-shell .ein-nav-item{justify-content:center;padding:0}
  .ein-shell .ein-nav-item>span:not(.ein-nav-item__count),.ein-shell .ein-sidebar__section,.ein-shell .ein-nav-item .ein-badge{display:none}
  .ein-shell .ein-nav-item__count{left:calc(50% + var(--space-1))}
  .ein-shell .ein-nav-item__count.is-dot{left:calc(50% + var(--space-2))}
  .ein-shell .ein-sidebar{padding:var(--space-3) var(--space-2)}
  .ein-shell .ein-nav-item[aria-current="page"]::before,.ein-shell .ein-nav-item[aria-pressed="true"]::before{left:calc(var(--space-2) * -1)}
  .ein-shell .ein-sidebar__brand{justify-content:center;padding:0}
  .ein-shell .ein-sidebar__brand .is-full{display:none}
  .ein-shell .ein-sidebar__brand .is-compact{display:block;height:28px}
  .ein-main{padding:var(--space-5)}
}
@media (max-width:599px){
  .ein-shell{grid-template-columns:minmax(0,1fr);grid-template-rows:var(--topbar-height) 1fr}
  .ein-shell .ein-sidebar{position:fixed;top:0;bottom:0;left:0;height:auto;align-self:auto;width:min(var(--sidebar-width),85vw);z-index:var(--z-overlay);padding:var(--space-3);
    transform:translateX(-105%);visibility:hidden;transition:transform var(--duration-4) var(--ease-exit),visibility 0s linear var(--duration-4);overflow-y:auto}   /* closed: out of the tab order and of the reading order */
  .ein-shell[data-nav-open] .ein-sidebar{transform:none;visibility:visible;box-shadow:var(--shadow-lg);transition:transform var(--duration-5) var(--ease-emphasized)}
  .ein-shell .ein-nav-item{justify-content:flex-start;padding:0 var(--space-3);height:var(--control-lg)}
  .ein-shell .ein-nav-item[aria-current="page"]::before,.ein-shell .ein-nav-item[aria-pressed="true"]::before{left:calc(var(--space-3) * -1)}
  .ein-shell .ein-nav-item>span:not(.ein-nav-item__count){display:inline}
  .ein-shell .ein-sidebar__section{display:block}
  .ein-shell .ein-nav-item .ein-badge{display:inline-flex}
  .ein-shell .ein-nav-item__count{left:calc(var(--space-3) + var(--icon-md) - var(--space-3))}
  .ein-shell .ein-nav-item__count.is-dot{left:calc(var(--space-3) + var(--icon-md) - var(--space-2))}
  .ein-shell .ein-sidebar__brand{justify-content:flex-start;padding:0 var(--space-2)}
  .ein-shell .ein-sidebar__brand .is-full{display:block}
  .ein-shell .ein-sidebar__brand .is-compact{display:none}
  .ein-shell[data-nav-open] .ein-shell__scrim{display:block;position:fixed;inset:0;z-index:calc(var(--z-overlay) - 1);background:var(--scrim);animation:ein-fade-in var(--duration-4) var(--ease-standard) both}
  .ein-topbar{padding:0 var(--space-2) 0 var(--space-2);gap:var(--space-2)}
  .ein-topbar__menu{display:inline-flex!important}
  .ein-topbar__actions .ein-button:not(.ein-button--icon)>span{display:none}
  .ein-topbar__actions .ein-button:not(.ein-button--icon){width:var(--control-sm);padding:0}
  .ein-topbar__actions .ein-badge{display:none}
  .ein-main{padding:var(--space-4)}
  .ein-card__header{padding:var(--space-4) var(--space-4) 0}
  .ein-card__body{padding:var(--space-3) var(--space-4)}
  .ein-card__footer{padding:var(--space-3) var(--space-4)}
  .ein-card__footer .ein-button{flex:1 1 auto}
  .ein-kpi{padding:var(--space-3) var(--space-4)}
  .ein-result{padding:var(--space-4);gap:var(--space-1) var(--space-3)}
  .ein-result__verdict{font-size:var(--text-2xl);line-height:var(--leading-lg)}
  .ein-result__icon{width:36px;height:36px}
  .ein-alert{padding:var(--space-3)}
  .ein-empty{padding:var(--space-10) var(--space-4)}
  .ein-toaster{left:var(--space-4);right:var(--space-4);bottom:var(--space-4);width:auto;transform:none}
  .ein-toaster--top-right,.ein-toaster--top-left,.ein-toaster--top-center{top:var(--space-4);bottom:auto}
  .ein-dialog-layer{padding:var(--space-3);align-items:end}
  .ein-dialog{border-radius:var(--radius-container);max-height:calc(100vh - 24px)}
  .ein-dialog__header{padding:var(--space-4) var(--space-4) 0}
  .ein-dialog__body{padding:var(--space-3) var(--space-4) var(--space-4)}
  .ein-dialog__footer{flex-direction:column-reverse;padding:var(--space-3) var(--space-4)}
  .ein-dialog__footer .ein-button{width:100%}
  .ein-input,.ein-select select,.ein-select__trigger{font-size:var(--text-md)}  /* avoids zoom-on-focus on iOS */
}
@media (any-pointer:coarse){
  .ein-button{min-height:44px}
  .ein-button--icon{min-width:44px}
  .ein-input,.ein-select select,.ein-select__trigger{height:var(--control-lg)}
  .ein-option,.ein-menu__item{min-height:44px}
  .ein-swatch{width:44px;height:44px}
  .ein-tab{height:calc(var(--control-lg) - var(--space-1))}
  .ein-nav-item{height:var(--control-lg)}
  .ein-check input{margin-top:0}
  .ein-datatable tbody tr .is-actions .ein-button{opacity:1}
}

/* ---------- linked dashboards: chart selection, motion, selection chips ---------- */
.ein-chart__line,.ein-chart__area,.ein-chart__bar{transition:opacity var(--duration-3) var(--ease-standard),fill var(--duration-3) var(--ease-standard)}
/* the shape morphs only with `animate` (interpolating `d` runs on the main thread: a live chart must not do it) */
.ein-chart__line.is-animated,.ein-chart__area.is-animated,.ein-chart__bar.is-animated{transition:d var(--duration-6) var(--ease-emphasized),opacity var(--duration-3) var(--ease-standard),fill var(--duration-3) var(--ease-standard)}
.ein-chart__bar.is-dim{opacity:.32}
/* the series the legend entry under the pointer does not belong to makes way for it */
.ein-chart__pts,.ein-chart__end,.ein-chart__val{transition:opacity var(--duration-3) var(--ease-standard)}
.ein-chart__line.is-faded,.ein-chart__area.is-faded,.ein-chart__bar.is-faded,.ein-chart__end.is-faded,.ein-chart__val.is-faded{opacity:.25}
.ein-chart__pts.is-faded{opacity:.09}
.ein-chart__hit.is-selectable,.ein-chart__plot.is-selectable,.ein-heatmap__cell.is-selectable{cursor:pointer}
.ein-chart__hit:focus-visible{outline:none}
.ein-chart__hit.is-selectable:focus-visible{fill:var(--focus-ring);fill-opacity:.12;stroke:var(--focus-ring);stroke-width:var(--stroke-line);vector-effect:non-scaling-stroke}
.ein-chart__tick.is-cat.is-selected{fill:var(--heading);font-weight:700}
.ein-chart__selband{fill:var(--primary);opacity:.16;pointer-events:none}
.ein-heatmap__cell{transition:background-color var(--duration-5) var(--ease-standard),opacity var(--duration-3) var(--ease-standard),box-shadow var(--duration-2) var(--ease-standard)}
.ein-heatmap__cell.is-dim{opacity:.28}
.ein-heatmap__cell.is-selected{box-shadow:inset 0 0 0 var(--stroke-indicator) var(--primary)}
.ein-heatmap__cell.is-selectable:focus-visible{outline:var(--stroke-line) solid var(--focus-ring);outline-offset:1px}
.ein-selchips{display:flex;align-items:center;gap:var(--space-2);flex-wrap:wrap;min-height:var(--control-sm)}
.ein-selchips__empty{color:var(--text-secondary);font:400 var(--text-xs)/var(--leading-xs) var(--font-body)}
.ein-selchip button{display:grid;place-items:center;width:var(--icon-lg);height:var(--icon-lg);padding:0;border:0;border-radius:var(--radius-full);background:none;color:inherit;cursor:pointer}
.ein-selchip button:hover{background:var(--surface-hover)}
.ein-selchip button:focus-visible{outline:var(--stroke-line) solid var(--focus-ring)}
.ein-animnum{font-variant-numeric:tabular-nums}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce){
  .ein-app *,.ein-app *::before,.ein-app *::after,[class*="ein-"],[class*="ein-"]::before,[class*="ein-"]::after,.ein-toast,.ein-dialog,.ein-dialog-layer,.ein-menu__list,.ein-listbox,.ein-popover,.ein-drawer,.ein-drawer-layer,.ein-lightbox,.ein-viewer__canvas,.ein-tooltip__bubble{animation-duration:1ms!important;animation-iteration-count:1!important;transition-duration:1ms!important;transition-delay:0ms!important}
  .ein-spinner,.ein-progress--indeterminate .ein-progress__bar,.ein-brandmark path,.ein-loading__bar::after,.ein-tunnel__car,.ein-tunnel__lamp,.ein-tunnel__sig{animation-duration:3200ms!important;animation-iteration-count:infinite!important}
  .ein-skeleton::after{animation:none;display:none}
  .ein-button:active{transform:none}
  .ein-blink{animation:ein-blink var(--duration-blink) steps(1,end) infinite!important}
}

/* ================= documents & slides (brand print styles) ================= */
/* Editable boxes (ImageViewer boxMode): label and handles keep their screen size when zooming */
.ein-viewer__boxlabel{--_c:var(--overlay-info);--_tx:0;--_ty:-100%;--_ox:0;--_oy:100%;position:absolute;transform:translate(var(--_tx),calc(var(--_ty) - var(--_dy,0px) / var(--s,1))) scale(calc(1 / var(--s,1)));transform-origin:var(--_ox) var(--_oy);margin-top:calc(-2px / var(--s,1));
  padding:1px 6px;border-radius:var(--radius-control);background:var(--_c);color:var(--_on,var(--on-overlay));font:600 var(--text-xs)/var(--leading-xs) var(--font-body);white-space:nowrap;box-shadow:0 0 0 1px var(--overlay-halo);pointer-events:none}
.ein-viewer__boxlabel[data-fx="end"]{--_tx:-100%;--_ox:100%;margin-left:var(--_bw,0px)}
.ein-viewer__boxlabel[data-fy="down"]{--_ty:0;--_oy:0;margin-top:calc(var(--_bh,0px) + 2px / var(--s,1))}
.ein-viewer__handle{--_c:var(--overlay-selected);position:absolute;width:10px;height:10px;transform:translate(-50%,-50%) scale(calc(1 / var(--s,1)));border-radius:var(--radius-mark);background:var(--_c);box-shadow:0 0 0 1px var(--overlay-halo);pointer-events:none;z-index:3}
.ein-viewer__handle.is-side{width:8px;height:8px}
.ein-viewer__handle.is-rotate{width:12px;height:12px;border-radius:50%}
.ein-viewer__handle.is-first{width:14px;height:14px;border-radius:50%;box-shadow:0 0 0 2px var(--overlay-halo)}
.ein-viewer__rotline{stroke:var(--overlay-selected);stroke-width:var(--stroke-rule);fill:none}

/* EINES 1.9.0 — additions: Button `pressed` (toggle), StatusBadge size="sm". Tokens only. */

/* Button pressed: see components-options.css */

/* ---------- StatusBadge small ---------- */
.ein-badge--sm{gap:var(--space-1);height:var(--space-5);padding:0 var(--space-2) 0 var(--space-1);font-size:var(--text-xs);line-height:var(--leading-xs)}
.ein-badge--sm>.ein-icon{width:var(--space-3);height:var(--space-3)}
.ein-badge--sm .ein-badge__dot{width:var(--space-1);height:var(--space-1)}

/* EINES 2.13.0 — StatusBadge with onClick: a notice the user can press (AppShell actions). Pale state fill, border in the state colour
   (the text colour, so >= 3:1 against the page in both themes), control height like a Button, 44 px on touch screens. Tokens only. */
.ein-badge--action{box-sizing:border-box;min-height:var(--control-md);height:auto;max-width:min(100%,calc(var(--space-16) * 5));padding:0 var(--space-3);gap:var(--space-2);
  border:var(--stroke-line) solid var(--_fg);border-radius:var(--radius-control);background:var(--_bg);color:var(--_fg);
  font:700 var(--text-sm)/var(--leading-sm) var(--font-body);cursor:pointer;flex-shrink:1;min-width:0;
  transition:box-shadow var(--duration-2) var(--ease-standard)}
.ein-badge--action>.ein-icon{width:var(--icon-md);height:var(--icon-md);flex:none}
.ein-badge--action>.ein-badge__go{width:var(--icon-sm);height:var(--icon-sm);margin-right:calc(var(--space-1) * -1)}
.ein-badge--neutral.ein-badge--action,.ein-badge--running.ein-badge--action{--_bg:var(--surface);border-color:var(--border-strong)}
.ein-badge--action:hover{box-shadow:var(--shadow-sm)}
.ein-badge--action:active{box-shadow:none}
.ein-badge--action:focus-visible{outline:var(--stroke-line) solid var(--focus-ring);outline-offset:2px}
.ein-badge--action-sm{min-height:var(--control-sm);padding:0 var(--space-2);font-size:var(--text-xs);line-height:var(--leading-xs)}
.ein-badge--action-sm>.ein-icon{width:var(--icon-sm);height:var(--icon-sm)}
.ein-badge--action-lg{min-height:var(--control-lg);padding:0 var(--space-4)}
@media (any-pointer:coarse){.ein-badge--action{min-height:max(var(--ein-touch),var(--control-md))}.ein-badge--action-lg{min-height:var(--control-lg)}}
@media (prefers-reduced-motion:reduce){.ein-badge--action{transition:none}}
@media (forced-colors:active){.ein-badge--action{border-color:ButtonText}}

/* EINES 1.8.0 — charts 2: PolarChart, StatusMatrix, plus tolerance band (LineChart), segments (ProgressBar) and range (Meter). Tokens only. */

/* ---------- tolerance band (LineChart, PolarChart) ---------- */
.ein-chart__bandfill{fill:var(--success-solid);opacity:.14;pointer-events:none}
.ein-chart__bandedge{stroke:var(--chart-limit);stroke-width:var(--stroke-rule);stroke-dasharray:var(--space-1) var(--space-1);pointer-events:none}
.ein-chart__bandlabel{fill:var(--success-fg);font:600 var(--text-xs)/1 var(--font-body);paint-order:stroke;stroke:var(--surface);stroke-width:3px;pointer-events:none}
.ein-chart__out{fill:var(--chart-nok);stroke:var(--surface);stroke-width:var(--stroke-line);pointer-events:none}
.ein-chart__tipflag{display:flex;align-items:center;gap:var(--space-1);margin-top:var(--space-1);padding-top:var(--space-1);border-top:var(--stroke-rule) solid var(--border);color:var(--danger-fg);font-weight:600}
.ein-chart__tiprow.is-band b{color:var(--success-fg)}

/* ---------- PolarChart ---------- */
.ein-polar{user-select:none}
.ein-polar__line,.ein-polar__mark{transition:opacity var(--duration-3) var(--ease-standard)}
.ein-polar__line.is-faded,.ein-polar__mark.is-faded{opacity:.25}
.ein-polar__line{stroke-width:var(--stroke-line);stroke-linejoin:round;stroke-linecap:round;pointer-events:none}
.ein-polar__out{fill:var(--chart-nok);stroke:var(--surface);stroke-width:var(--stroke-line);pointer-events:none}
.ein-polar__warn{fill:var(--chart-check);stroke:var(--surface);stroke-width:var(--stroke-line);stroke-linejoin:round;pointer-events:none}
.ein-polar__sel{fill:none;stroke:var(--primary);stroke-width:var(--stroke-indicator);pointer-events:none}
.ein-polar__ringtick{paint-order:stroke;stroke:var(--surface);stroke-width:3px}
.ein-chart__ref circle{stroke-width:1.5px}
.ein-chart__ref.is-limit circle{stroke:var(--chart-limit)}
.ein-chart__ref.is-target circle{stroke:var(--chart-target)}
.ein-polar__refring{stroke-dasharray:var(--space-2) var(--space-1)}
.ein-polar__keys{display:flex;flex-wrap:wrap;gap:var(--space-1) var(--space-4);margin:var(--space-2) 0 0;padding:0;list-style:none;font:600 var(--text-xs)/var(--leading-xs) var(--font-body);color:var(--text)}
.ein-polar__keys li{display:inline-flex;align-items:center;gap:var(--space-1)}
.ein-polar__keys svg{flex:none}

/* ---------- ProgressBar: segments ---------- */
.ein-progress--segments .ein-progress__track{display:flex;gap:var(--space-0-5)}
.ein-progress__seg{flex:none;height:100%;min-width:var(--space-1);transition:width var(--duration-4) var(--ease-standard)}
.ein-progress__seg.is-ok,.ein-progress__key.is-ok{background:var(--success-solid)}
.ein-progress__seg.is-nok,.ein-progress__key.is-nok{background:var(--danger-solid)}
.ein-progress__seg.is-warning,.ein-progress__key.is-warning{background:var(--warning-solid)}
.ein-progress__seg.is-info,.ein-progress__key.is-info{background:var(--info-solid)}
.ein-progress__seg.is-neutral,.ein-progress__key.is-neutral{background:var(--border-strong)}
.ein-progress__legend{display:flex;flex-wrap:wrap;gap:var(--space-1) var(--space-4);margin:0;padding:0;list-style:none;font:400 var(--text-xs)/var(--leading-xs) var(--font-body);color:var(--text-secondary)}
.ein-progress__legend li{display:inline-flex;align-items:center;gap:var(--space-1)}
.ein-progress__legend b{color:var(--text);font-weight:600;font-variant-numeric:tabular-nums}
.ein-progress__key{display:inline-block;width:var(--space-2);height:var(--space-2);border-radius:var(--radius-control);flex:none}

/* ---------- Meter: range variant ---------- */
.ein-meter__rangetrack{position:relative;height:var(--space-3);margin:var(--space-1) 0;border-radius:var(--radius-full);background:var(--tonal)}
.ein-meter__accept{position:absolute;top:0;bottom:0;background:var(--success-bg);border-inline:var(--stroke-line) solid var(--success-fg)}
.ein-meter__marker{position:absolute;top:calc(var(--space-1) * -1);bottom:calc(var(--space-1) * -1);width:var(--stroke-indicator);margin-left:calc(var(--stroke-indicator) / -2);border-radius:var(--radius-control);
  background:var(--text);box-shadow:0 0 0 var(--stroke-rule) var(--surface);transition:left var(--duration-4) var(--ease-standard)}
.ein-meter.is-range.is-warning .ein-meter__marker{background:var(--warning-solid)}
.ein-meter.is-range.is-nok .ein-meter__marker{background:var(--danger-solid)}
.ein-meter__rangescale{position:relative;height:var(--leading-xs);font:400 var(--text-xs)/var(--leading-xs) var(--font-mono);color:var(--text-secondary)}
.ein-meter__edge{position:absolute;top:0;white-space:nowrap;color:var(--text)}
.ein-meter__edge.is-end{color:var(--text-secondary)}

/* ---------- StatusMatrix ---------- */
.ein-statusmatrix{--_cell:var(--space-8);position:relative}
.ein-statusmatrix.is-compact{--_cell:var(--space-5)}
.ein-statusmatrix.is-touch{--_cell:var(--space-12)}
.ein-statusmatrix__scroll{overflow:auto;padding:var(--space-1)}
.ein-statusmatrix__grid{border-collapse:separate;border-spacing:var(--space-0-5);font-variant-numeric:tabular-nums}
.ein-statusmatrix__col{padding:0 var(--space-1) var(--space-1);font:400 var(--text-xs)/var(--leading-xs) var(--font-body);color:var(--text-secondary);text-align:center;white-space:nowrap;vertical-align:bottom}
.ein-statusmatrix__row{padding:0 var(--space-3) 0 0;font:400 var(--text-xs)/var(--leading-xs) var(--font-body);color:var(--text);text-align:left;white-space:nowrap}
.ein-statusmatrix.is-md .ein-statusmatrix__row,.ein-statusmatrix.is-touch .ein-statusmatrix__row{font-size:var(--text-sm);line-height:var(--leading-sm)}
.ein-statusmatrix__col.is-sum,.ein-statusmatrix__row.is-sum{color:var(--text-secondary);font-weight:600}
.ein-statusmatrix__col.is-selected,.ein-statusmatrix__row.is-selected{color:var(--heading);font-weight:700}
.ein-statusmatrix__col.is-selected,.ein-statusmatrix__row.is-selected{background:var(--surface-selected);border-radius:var(--radius-control);box-shadow:inset 0 0 0 var(--stroke-rule) var(--border-strong)}
.ein-statusmatrix__row.is-selected{padding-left:var(--space-2)}
.ein-statusmatrix__hbtn{margin:0;padding:0;min-height:var(--_cell);min-width:var(--_cell);border:0;background:none;color:inherit;font:inherit;text-align:inherit;white-space:inherit;cursor:pointer}
.ein-statusmatrix__row .ein-statusmatrix__hbtn{min-width:0}
.ein-statusmatrix__col .ein-statusmatrix__hbtn{min-height:0}
.ein-statusmatrix__hbtn:focus-visible{outline:var(--stroke-line) solid var(--focus-ring);outline-offset:2px;border-radius:var(--radius-control)}
.ein-statusmatrix__cell,.ein-statusmatrix__key{--_bg:var(--tonal);--_fg:var(--text-secondary)}
/* OK is the calm state (ISA-101): soft green with the tick in success-fg; warning / NOK stay solid so they stand out */
.ein-statusmatrix__cell.is-ok,.ein-statusmatrix__key.is-ok{--_bg:var(--success-bg);--_fg:var(--success-fg)}
.ein-statusmatrix__cell.is-warning,.ein-statusmatrix__key.is-warning{--_bg:var(--warning-solid);--_fg:var(--on-warning)}
.ein-statusmatrix__cell.is-nok,.ein-statusmatrix__key.is-nok{--_bg:var(--danger-solid);--_fg:var(--on-danger)}
.ein-statusmatrix__cell.is-info,.ein-statusmatrix__key.is-info{--_bg:var(--info-solid);--_fg:var(--on-danger)}
.ein-statusmatrix__cell,.ein-statusmatrix__key{background:var(--_bg);color:var(--_fg)}
.ein-statusmatrix__cell.is-empty,.ein-statusmatrix__key.is-empty{background:repeating-linear-gradient(45deg,var(--tonal) 0 var(--space-1),transparent var(--space-1) var(--space-2))}
.ein-statusmatrix__cell{width:var(--_cell);min-width:var(--_cell);height:var(--_cell);padding:0;border-radius:var(--radius-control);text-align:center;vertical-align:middle;line-height:0;outline:none;
  transition:opacity var(--duration-3) var(--ease-standard),box-shadow var(--duration-2) var(--ease-standard)}
.ein-statusmatrix.is-compact .ein-statusmatrix__cell{border-radius:var(--radius-control)}
.ein-statusmatrix.is-compact .ein-statusmatrix__cell .ein-icon{width:var(--space-3);height:var(--space-3)}
.ein-statusmatrix__cell.is-selectable{cursor:pointer}
.ein-statusmatrix__cell.is-dim{opacity:.4}
.ein-statusmatrix__cell.is-active,.ein-statusmatrix__cell:hover,.ein-statusmatrix__cell:focus-visible{box-shadow:0 0 0 var(--stroke-line) var(--surface),0 0 0 calc(var(--stroke-line) * 2) var(--text)}
.ein-statusmatrix__cell.is-selected{box-shadow:inset 0 0 0 var(--stroke-indicator) var(--primary),0 0 0 var(--stroke-rule) var(--heading)}
.ein-statusmatrix__cell:focus-visible{outline:var(--stroke-line) solid var(--focus-ring);outline-offset:var(--space-0-5)}
.ein-statusmatrix__sum{padding:0 0 0 var(--space-2);text-align:left;white-space:nowrap}
.ein-statusmatrix__none{color:var(--text-disabled)}
.ein-statusmatrix__chip{display:inline-flex;align-items:center;gap:var(--space-1);padding:0 var(--space-2);border-radius:var(--radius-full);background:var(--tonal);color:var(--text-secondary);font:600 var(--text-xs)/var(--leading-xs) var(--font-body)}
.ein-statusmatrix__chip.is-ok{background:var(--success-bg);color:var(--success-fg)}
.ein-statusmatrix__chip.is-nok{background:var(--danger-bg);color:var(--danger-fg)}
.ein-statusmatrix__chip.is-warning{background:var(--warning-bg);color:var(--warning-fg)}
.ein-statusmatrix__chip.is-info{background:var(--info-bg);color:var(--info-fg)}
.ein-statusmatrix__key{display:inline-grid;place-items:center;width:var(--space-4);height:var(--space-4);border-radius:var(--radius-control);line-height:0;flex:none}
.ein-statusmatrix__key .ein-icon{width:var(--space-3);height:var(--space-3)}
.ein-statusmatrix__legend{margin-top:var(--space-3)}
.ein-statusmatrix__tip{min-width:0}
.ein-statusmatrix__tipstatus{display:flex;align-items:center;gap:var(--space-2)}
.ein-statusmatrix__tipnote{margin-top:var(--space-1);color:var(--text-secondary)}
.ein-chart__tipat{margin:-1px 0 2px;text-align:right;font:var(--text-xs)/var(--leading-xs) var(--font-mono);color:var(--text-secondary)}
.ein-heatmap__line{display:contents}

/* EINES 2.13.0 — ChoiceGrid: cards with a photo for choosing ONE item. The chosen card is marked by shape (border + thin ring, raised
   shadow, heavier code, the selection tick of Card selectable), never by colour alone. Tokens only. */
.ein-choicegrid{--_min:calc(var(--space-16) * 3);display:grid;gap:var(--space-4);align-content:start;grid-template-columns:repeat(auto-fill,minmax(min(100%,var(--_min)),1fr))}
.ein-choicegrid--sm{--_min:calc(var(--space-16) * 2.5)}
.ein-choicegrid--lg{--_min:calc(var(--space-16) * 4)}
.ein-choice{position:relative;display:flex;flex-direction:column;min-width:0;margin:0;padding:0;text-align:left;cursor:pointer;
  background:var(--surface);color:var(--text);font:inherit;
  border:var(--stroke-line) solid var(--border);border-radius:var(--radius-container);overflow:hidden;
  transition:box-shadow var(--duration-2) var(--ease-standard),border-color var(--duration-2) var(--ease-standard)}
.ein-choice__media{display:block}
.ein-choice__media>.ein-thumbnail{display:flex;width:100%;border:0;border-bottom:var(--stroke-rule) solid var(--border);border-radius:0}
.ein-choice__body{display:grid;gap:var(--space-0-5);min-width:0;padding:var(--space-3)}
.ein-choice__title{font:600 var(--text-md)/var(--leading-md) var(--font-mono);color:var(--heading);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ein-choice__sub{font:400 var(--text-sm)/var(--leading-sm) var(--font-body);color:var(--text-secondary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ein-choice__tag{display:flex;min-width:0;margin-top:var(--space-1)}
.ein-choice:hover:not([aria-disabled="true"]){border-color:var(--border-strong);box-shadow:var(--shadow-sm)}
.ein-choice:focus-visible{outline:var(--stroke-line) solid var(--focus-ring);outline-offset:2px}
.ein-choice[aria-checked="true"],.ein-choice[aria-checked="true"]:hover{border-color:var(--primary-border);box-shadow:0 0 0 var(--stroke-rule) var(--primary-border),var(--shadow-md)}
.ein-choice[aria-checked="true"] .ein-choice__title{font-weight:800}
.ein-choice[aria-checked="true"] .ein-choice__sub{color:var(--text)}
.ein-choice__check{position:absolute;top:var(--space-2);right:var(--space-2);display:grid;place-items:center;width:var(--space-6);height:var(--space-6);border-radius:var(--radius-full);
  background:var(--primary);color:var(--on-primary);box-shadow:0 0 0 var(--stroke-line) var(--surface),var(--shadow-sm);pointer-events:none}
.ein-choice[aria-disabled="true"]{cursor:not-allowed;opacity:.55}
/* Thumbnail `fallback`: the text of the empty plate (a part code) instead of initials */
.ein-thumbnail__none.is-text{box-sizing:border-box;padding:var(--space-3);font:600 var(--text-md)/var(--leading-md) var(--font-mono);letter-spacing:0;text-align:center;overflow-wrap:anywhere}
.ein-thumbnail--sm .ein-thumbnail__none.is-text{padding:var(--space-1);font-size:var(--text-xs);line-height:var(--leading-xs)}
@media (prefers-reduced-motion:reduce){.ein-choice{transition:none}}
@media (forced-colors:active){.ein-choice[aria-checked="true"]{outline:var(--stroke-indicator) solid Highlight}}

/* EINES — content kit (1.9.0): Breadcrumb, KeyValueList, CodeBlock, and the new options of Card and MenuItem. Tokens only. */

/* ---------- Menu item: hint and disabled ---------- */
.ein-menu__label{flex:1 1 auto;min-width:0;text-align:left;white-space:nowrap}
.ein-menu__hint{flex:none;margin-left:auto;padding-left:var(--space-4);font:400 var(--text-xs)/var(--leading-xs) var(--font-body);color:var(--text-secondary);white-space:nowrap}
.ein-menu__item[aria-disabled="true"]{color:var(--text-disabled);cursor:not-allowed}
.ein-menu__item[aria-disabled="true"]:hover{background:none}
.ein-menu__item[aria-disabled="true"]>.ein-icon,.ein-menu__item[aria-disabled="true"] .ein-menu__hint{color:var(--text-disabled)}

/* ---------- Card: selected, tone, media ---------- */
.ein-card.is-selected{background:var(--surface-selected);border-color:var(--heading);box-shadow:0 0 0 var(--stroke-rule) var(--heading),var(--shadow-sm)}
.ein-card__tone{flex:none;margin-top:var(--space-0-5)}
.ein-card--ok{--_tone-fg:var(--success-fg);--_tone-bg:var(--success-bg);--_tone-line:var(--success-solid)}
.ein-card--warning{--_tone-fg:var(--warning-fg);--_tone-bg:var(--warning-bg);--_tone-line:var(--warning-solid)}
.ein-card--nok{--_tone-fg:var(--danger-fg);--_tone-bg:var(--danger-bg);--_tone-line:var(--danger-solid)}
.ein-card--info{--_tone-fg:var(--info-fg);--_tone-bg:var(--info-bg);--_tone-line:var(--info-solid)}
:is(.ein-card--ok,.ein-card--warning,.ein-card--nok,.ein-card--info){border-color:var(--_tone-line)}
:is(.ein-card--ok,.ein-card--warning,.ein-card--nok,.ein-card--info) .ein-card__header{padding-bottom:var(--space-3);background:var(--_tone-bg);border-radius:calc(var(--radius-container) - var(--stroke-rule)) calc(var(--radius-container) - var(--stroke-rule)) 0 0}
:is(.ein-card--ok,.ein-card--warning,.ein-card--nok,.ein-card--info) .ein-card__tone{color:var(--_tone-fg)}
:is(.ein-card--ok,.ein-card--warning,.ein-card--nok,.ein-card--info) .ein-card__body{padding-top:var(--space-4)}
.ein-card__media{overflow:hidden;border-radius:calc(var(--radius-container) - var(--stroke-rule)) calc(var(--radius-container) - var(--stroke-rule)) 0 0}
.ein-card__media+.ein-card__header{padding-top:var(--space-4)}
.ein-card__media+.ein-card__header,.ein-card--ok .ein-card__media+.ein-card__header{border-radius:0}
.ein-card__media.is-photo{aspect-ratio:16/9;background:var(--viewer-bg)}
.ein-card__media.is-photo img{display:block;width:100%;height:100%;object-fit:contain}
.ein-card__media>:is(img,svg,canvas,video){display:block;max-width:100%}

/* ---------- Breadcrumb ---------- */
.ein-breadcrumb{min-width:0;font:400 var(--text-sm)/var(--leading-sm) var(--font-body)}
.ein-breadcrumb__list{display:flex;align-items:center;flex-wrap:nowrap;margin:0;padding:0;list-style:none;min-width:0}
.ein-breadcrumb__item{display:flex;align-items:center;flex:none;min-width:0}
.ein-breadcrumb__item.is-current{flex:0 1 auto}
.ein-breadcrumb__link{display:inline-flex;align-items:center;gap:var(--space-1);min-width:0;padding:var(--space-1) var(--space-2);border-radius:var(--radius-control);color:var(--text-secondary);text-decoration:none}
a.ein-breadcrumb__link:hover{background:var(--surface-hover);color:var(--heading);text-decoration:underline}
a.ein-breadcrumb__link:focus-visible{outline:var(--stroke-line) solid var(--focus-ring);outline-offset:2px}
.ein-breadcrumb__item.is-current .ein-breadcrumb__link{color:var(--heading);font-weight:700}
.ein-breadcrumb__text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ein-breadcrumb__sep{display:inline-flex;flex:none;color:var(--text-disabled)}
.ein-breadcrumb__sep .ein-icon{width:12px;height:12px}
.ein-breadcrumb__more{flex:none}
.ein-breadcrumb__more .ein-menu{display:inline-flex}
@media (any-pointer:coarse){.ein-breadcrumb__link{min-height:var(--control-lg);padding:0 var(--space-2)}}

/* ---------- KeyValueList ---------- */
.ein-kv{display:grid;width:100%;grid-template-columns:repeat(var(--ein-kv-cols,1),minmax(0,1fr));column-gap:var(--space-8);margin:0;font:400 var(--text-sm)/var(--leading-sm) var(--font-body);color:var(--text)}
.ein-kv__row{min-width:0;padding:var(--space-2) 0;break-inside:avoid}
.ein-kv--compact .ein-kv__row{padding:var(--space-1) 0}
.ein-kv__label{margin:0;color:var(--text-secondary);overflow-wrap:break-word}
.ein-kv__value{display:flex;align-items:center;flex-wrap:wrap;gap:var(--space-1) var(--space-2);min-width:0;margin:0;color:var(--heading)}
.ein-kv__data{min-width:0;overflow-wrap:anywhere;font-weight:600}
.ein-kv__data.is-mono{font-family:var(--font-mono);font-weight:500;font-variant-numeric:tabular-nums}
.ein-kv__unit{margin-left:var(--space-1);font-family:var(--font-body);font-weight:400;color:var(--text-secondary)}
.ein-kv__empty{color:var(--text-disabled);font-weight:400}
.ein-kv__hint{font-size:var(--text-xs);line-height:var(--leading-xs);color:var(--text-secondary)}
.ein-kv__status{display:inline-flex;align-items:center;gap:var(--space-1);font-size:var(--text-xs);line-height:var(--leading-xs);font-weight:600;color:var(--text-secondary)}
.ein-kv__status>.ein-icon{width:14px;height:14px}
.ein-kv__dot{width:8px;height:8px;border-radius:var(--radius-full);background:currentColor;flex:none}
.ein-kv__status--ok{color:var(--success-fg)}
.ein-kv__status--warning{color:var(--warning-fg)}
.ein-kv__status--nok{color:var(--danger-fg)}
.ein-kv__status--info{color:var(--info-fg)}
.ein-kv__copy{flex:none;opacity:0;transition:opacity var(--duration-1) var(--ease-standard)}
.ein-kv__row:hover .ein-kv__copy,.ein-kv__copy:focus-visible,.ein-kv__copy.is-copied{opacity:1}
@media (hover:none),(any-pointer:coarse){.ein-kv__copy{opacity:1}}
@media (any-pointer:coarse){.ein-kv__copy{width:var(--control-lg);height:var(--control-lg)}}
/* inline: label left, value right (signal lists); stacked: label above the value (data sheets) */
.ein-kv--inline .ein-kv__row{display:flex;align-items:center;justify-content:space-between;gap:var(--space-4);border-bottom:var(--stroke-rule) solid var(--rule-subtle)}
.ein-kv--inline .ein-kv__label{flex:1 1 40%;min-width:min(8em,40%)}   /* a long value never squeezes the label to one letter per line */
.ein-kv--inline .ein-kv__value{flex:1 1 60%;justify-content:flex-end;text-align:right}
.ein-kv--inline .ein-kv__status{min-width:calc(var(--space-16) * 1.25)}
.ein-kv--stacked .ein-kv__label{font-size:var(--text-xs);line-height:var(--leading-xs)}
.ein-kv--stacked .ein-kv__value{margin-top:2px}
.ein-kv--stacked .ein-kv__row{padding:var(--space-2) 0 var(--space-3)}
.ein-kv--stacked.ein-kv--compact .ein-kv__row{padding:var(--space-1) 0 var(--space-2)}
/* inside a printed report: no buttons, nothing cut, colours kept */
.ein-report .ein-kv{-webkit-print-color-adjust:exact;print-color-adjust:exact}
.ein-report .ein-kv__copy{display:none}
.ein-report .ein-kv__row{break-inside:avoid}

/* ---------- CodeBlock ---------- */
.ein-code{position:relative;width:100%;border:var(--stroke-rule) solid var(--border);border-radius:var(--radius-control);background:var(--surface-sunken);color:var(--text);min-width:0;overflow:hidden}
.ein-code__head{display:flex;align-items:center;gap:var(--space-2);min-height:var(--control-sm);padding:var(--space-1) var(--space-1) var(--space-1) var(--space-3);border-bottom:var(--stroke-rule) solid var(--border);font:600 var(--text-xs)/var(--leading-xs) var(--font-body);color:var(--text-secondary)}
.ein-code__title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--heading)}
.ein-code__lang{flex:none;padding:0 var(--space-2);border-radius:var(--radius-full);background:var(--tonal);font-family:var(--font-mono);font-weight:500;text-transform:lowercase}
.ein-code__spacer{flex:1}
.ein-code:not(.has-head) .ein-code__head{position:absolute;top:var(--space-1);right:var(--space-1);z-index:1;min-height:0;padding:0;border:0}
.ein-code:not(.has-head) .ein-code__copy{background:var(--surface-sunken)}
.ein-code__scroll{margin:0;padding:var(--space-3) 0;overflow:auto;font:400 var(--text-sm)/var(--leading-sm) var(--font-mono);tab-size:2}
.ein-code__scroll:focus-visible{outline:var(--stroke-line) solid var(--focus-ring);outline-offset:-2px}
.ein-code__scroll code{display:block;min-width:max-content;font:inherit;counter-reset:ein-line}
.ein-code__line{display:block;padding:0 var(--space-4);white-space:pre}
.ein-code.has-lines .ein-code__line{display:grid;grid-template-columns:calc(var(--ein-code-digits,2) * 1ch) minmax(0,1fr);column-gap:var(--space-4);counter-increment:ein-line}
.ein-code.has-lines .ein-code__line::before{content:counter(ein-line);text-align:right;color:var(--text-secondary);user-select:none;-webkit-user-select:none}
.ein-code.is-wrap .ein-code__scroll{overflow-x:hidden}
.ein-code.is-wrap .ein-code__scroll code{min-width:0}
.ein-code.is-wrap .ein-code__line,.ein-code.is-wrap .ein-code__text{white-space:pre-wrap;overflow-wrap:anywhere}
.ein-code__t-key{color:var(--info-fg)}
.ein-code__t-num{color:var(--warning-fg)}
.ein-code__t-lit{color:var(--text-secondary);font-weight:700}
.ein-code__t-time,.ein-code__t-dim{color:var(--text-secondary)}
.ein-code__t-err{color:var(--danger-fg);font-weight:700}
.ein-code__t-warn{color:var(--warning-fg);font-weight:700}
.ein-code__t-info{color:var(--info-fg);font-weight:700}
@media print{
  .ein-code{break-inside:auto;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .ein-code__copy,.ein-code:not(.has-head) .ein-code__head{display:none}
  .ein-code__scroll{max-height:none!important;overflow:visible}
  .ein-code__line,.ein-code__text{white-space:pre-wrap;overflow-wrap:anywhere}
  .ein-code__line{break-inside:avoid}
}

/* EINES — controls: Tabs (disabled, live, vertical), SegmentedControl multiple, floating ToolPalette. Tokens only. */

/* ---------- Tabs ---------- */
.ein-tab[aria-disabled="true"]{color:var(--text-disabled);cursor:not-allowed;background:none}
.ein-tab__live{flex:none;width:var(--space-2);height:var(--space-2);border-radius:var(--radius-disc);background:var(--info-fg);animation:ein-pulse 1600ms var(--ease-standard) infinite}
.ein-tabs--vertical{flex-direction:column;overflow-x:visible;overflow-y:auto;box-shadow:inset var(--stroke-rule) 0 0 var(--border)}
.ein-tabs--vertical .ein-tab{justify-content:flex-start;text-align:left;border-radius:0 var(--radius-control) var(--radius-control) 0}
.ein-tabs--vertical .ein-tab::after{left:0;right:auto;top:var(--space-2);bottom:var(--space-2);width:var(--stroke-indicator);height:auto;border-radius:0 var(--radius-mark) var(--radius-mark) 0;transform:scaleY(0)}
.ein-tabs--vertical .ein-tab[aria-selected="true"]{background:var(--surface-selected)}
.ein-tabs--vertical .ein-tab[aria-selected="true"]::after{transform:scaleY(1)}
.ein-tabs--vertical .ein-tab .ein-tab__count{margin-left:auto}

/* ---------- floating ToolPalette ---------- */
.ein-toolfloat{box-sizing:border-box;position:absolute;max-height:100%;z-index:var(--z-sticky);display:flex;flex-direction:column;max-width:100%;border:var(--stroke-rule) solid var(--border);border-radius:var(--radius-container);background:var(--surface-raised);color:var(--text);box-shadow:var(--shadow-lg)}
.ein-toolfloat__header{display:flex;align-items:center;justify-content:space-between;gap:var(--space-2);min-height:var(--control-lg);padding:0 var(--space-2) 0 var(--space-3);border-bottom:var(--stroke-rule) solid var(--border);border-radius:var(--radius-container) var(--radius-container) 0 0;background:var(--surface-alt);cursor:grab;touch-action:none;user-select:none}
.ein-toolfloat__header:focus-visible{outline:var(--stroke-line) solid var(--focus-ring);outline-offset:calc(var(--stroke-line) * -1)}
.ein-toolfloat.is-dragging .ein-toolfloat__header{cursor:grabbing}
.ein-toolfloat.is-collapsed .ein-toolfloat__header{border-bottom-width:0;border-radius:var(--radius-container)}
.ein-toolfloat__grip{flex:none;color:var(--text-secondary)}
.ein-toolfloat__actions{display:flex;flex:none;gap:var(--space-0-5);margin-left:auto}
.ein-toolfloat>.ein-toolpalette{align-self:stretch;min-height:0;overflow:auto;border:0;border-radius:0 0 var(--radius-container) var(--radius-container);background:none}
.ein-toolfloat>.ein-toolpalette[hidden]{display:none}

@media (prefers-reduced-motion:reduce){
  .ein-tab__live{animation:none}
}

/* EINES 1.7.0 — data and state: FilterChip, ChipGroup, StatTile (interactive), Timeline. Tokens only. */

/* ---------- FilterChip / ChipGroup ---------- */
.ein-chipgroup{display:flex;flex-wrap:wrap;gap:var(--space-2)}
.ein-chip{--_c:var(--text-secondary);position:relative;display:inline-flex;align-items:center;gap:var(--space-2);min-width:0;min-height:var(--control-lg);padding:0 var(--space-4);
  border:var(--stroke-rule) solid var(--border-strong);border-radius:var(--radius-full);background:var(--surface);color:var(--text);overflow:hidden;
  font:600 var(--text-sm)/var(--leading-sm) var(--font-body);white-space:nowrap;cursor:pointer;
  transition:background-color var(--duration-1) var(--ease-standard),border-color var(--duration-1) var(--ease-standard)}
.ein-chip--md{min-height:var(--control-md);padding:0 var(--space-3)}
.ein-chip:hover:not(:disabled):not(.is-tag){background:var(--surface-hover)}
.ein-chip:active:not(:disabled):not(.is-tag){background:var(--surface-pressed)}
.ein-chip:focus-visible{outline:var(--stroke-line) solid var(--focus-ring);outline-offset:2px}
.ein-chip:disabled{cursor:not-allowed}
.ein-chip__swatch{flex:none;width:8px;height:8px;border-radius:var(--radius-full);background:var(--_c)}
.ein-chip__mark{flex:none;display:inline-flex;color:var(--_c)}
.ein-chip__label{min-width:0;overflow:hidden;text-overflow:ellipsis}
.ein-chip__count{flex:none;color:var(--text-secondary);font:400 var(--text-xs)/var(--leading-xs) var(--font-mono);font-variant-numeric:tabular-nums;text-align:center}
.ein-chip.is-tag{min-height:var(--space-6);padding:0 var(--space-2);gap:var(--space-1);border-color:transparent;background:var(--tonal);color:var(--text-secondary);
  font-size:var(--text-xs);line-height:var(--leading-xs);cursor:default}


/* ---------- StatTile: button, selection, shortcut, progress ---------- */
.ein-stat__body,.ein-stat__label,.ein-stat__value,.ein-stat__sub{display:block}
.ein-stat.is-interactive,.ein-stat.has-progress{position:relative}
.ein-stat.is-interactive{appearance:none;width:100%;min-height:var(--control-lg);overflow:hidden;font:inherit;color:inherit;text-align:left;cursor:pointer;
  transition:background-color var(--duration-1) var(--ease-standard),box-shadow var(--duration-1) var(--ease-standard)}
.ein-stat.is-interactive:hover:not(:disabled){box-shadow:var(--shadow-sm)}
.ein-stat.is-interactive:active:not(:disabled){box-shadow:none}
.ein-stat.is-interactive:focus-visible{outline:var(--stroke-line) solid var(--focus-ring);outline-offset:2px}
.ein-stat.has-progress{overflow:hidden}
.ein-stat.is-selected,.ein-stat.is-interactive.is-selected:hover:not(:disabled){border-color:var(--heading);box-shadow:0 0 0 var(--stroke-rule) var(--heading),var(--shadow-sm)}
.ein-stat--neutral.is-selected{background:var(--surface-selected)}
.ein-stat.is-disabled{--_ic:var(--text-disabled);cursor:not-allowed;box-shadow:none}
.ein-stat.is-disabled .ein-stat__value,.ein-stat.is-disabled .ein-stat__label,.ein-stat.is-disabled .ein-stat__sub{color:var(--text-disabled)}
.ein-stat__key{position:absolute;top:var(--space-1);right:var(--space-2);font:400 var(--text-2xs)/var(--leading-xs) var(--font-mono);color:var(--text-secondary)}
.ein-stat__progress{position:absolute;left:0;right:0;bottom:0;height:var(--space-1);background:var(--tonal);overflow:hidden}
.ein-stat__progress>span{display:block;width:100%;height:100%;background:var(--primary);transition:transform var(--duration-4) var(--ease-standard)}

/* ---------- Timeline ---------- */
.ein-timeline{--_lw:calc(var(--space-16) * 2.75);--_vw:calc(var(--space-16) * 1.25);--_rh:var(--control-md);position:relative;min-width:0}
.ein-timeline.is-lg{--_rh:var(--control-lg)}
.ein-timeline__head,.ein-timeline__grid{display:grid;grid-template-columns:var(--_lw) minmax(0,1fr)}
.ein-timeline.has-values .ein-timeline__head,.ein-timeline.has-values .ein-timeline__grid{grid-template-columns:var(--_lw) minmax(0,1fr) var(--_vw)}
.ein-timeline__grid{grid-auto-rows:var(--_rh)}
.ein-timeline__ruler{position:relative;padding-top:var(--space-6);border-bottom:var(--stroke-rule) solid var(--border)}
.ein-timeline__tick{position:absolute;top:0;transform:translateX(-50%);font:400 var(--text-xs)/var(--space-6) var(--font-mono);color:var(--text-secondary);font-variant-numeric:tabular-nums;white-space:nowrap}
.ein-timeline__tick.is-start{transform:none}
.ein-timeline__tick.is-end{transform:translateX(-100%)}
.ein-timeline__marktag.is-start{transform:none}
.ein-timeline__marktag.is-end{transform:translateX(-100%)}
.ein-timeline__markrow{position:relative;height:var(--space-6)}
.ein-timeline__marktag{position:absolute;top:0;transform:translateX(-50%);padding:0 var(--space-2);border-radius:var(--radius-full);background:var(--_c);color:var(--_on);
  font:600 var(--text-xs)/var(--leading-xs) var(--font-body);white-space:nowrap}
.ein-timeline__body{overflow-x:hidden;overflow-y:auto;touch-action:pan-y}
.ein-timeline__overlay{grid-column:2;position:relative;pointer-events:none}
.ein-timeline__gridline{position:absolute;top:0;bottom:0;width:0;border-left:var(--stroke-rule) solid var(--chart-grid)}
.ein-timeline__vline{position:absolute;top:0;bottom:0;width:0;border-left:var(--stroke-line) dashed var(--_c)}
.ein-timeline__label,.ein-timeline__track,.ein-timeline__value{border-bottom:var(--stroke-rule) solid var(--chart-grid)}
.ein-timeline__label{position:relative;grid-column:1;display:flex;flex-direction:column;justify-content:center;min-width:0;margin:0;padding:0 var(--space-3);border-top:0;border-left:0;border-right:0;
  background:none;color:var(--text);text-align:left;font:400 var(--text-xs)/var(--leading-xs) var(--font-body)}
button.ein-timeline__label{cursor:pointer;transition:background-color var(--duration-1) var(--ease-standard)}
button.ein-timeline__label:hover{background:var(--surface-hover)}
button.ein-timeline__label:focus-visible{outline:var(--stroke-line) solid var(--focus-ring);outline-offset:calc(var(--space-1) * -1)}
.ein-timeline__label.is-active{font-weight:600;color:var(--heading)}
.ein-timeline__label.is-selected{background:var(--surface-selected);font-weight:700;color:var(--heading);box-shadow:inset 0 0 0 var(--stroke-rule) var(--border-strong)}
.ein-timeline__label.is-sub{color:var(--text-secondary)}
.ein-timeline__label.is-heading{font:400 var(--text-xs)/var(--leading-xs) var(--font-body);color:var(--text-secondary);background:var(--surface-alt)}
.ein-timeline__labeltext{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ein-timeline__sub{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--text-xs);color:var(--text-secondary)}
.ein-timeline__track{position:relative;grid-column:2;overflow:hidden}
.ein-timeline__track.is-heading,.ein-timeline__value.is-heading{background:var(--surface-alt)}
.ein-timeline.is-zoomed .ein-timeline__track{cursor:grab}
.ein-timeline__value{grid-column:3;display:flex;align-items:center;justify-content:flex-end;padding:0 var(--space-3);font:400 var(--text-xs)/var(--leading-xs) var(--font-mono);font-variant-numeric:tabular-nums;color:var(--text-secondary);white-space:nowrap}

/* tones, shared by bars, marks, lines and tags */
.ein-timeline .is-neutral{--_c:var(--text-secondary);--_on:var(--text-inverse)}
.ein-timeline .is-ok{--_c:var(--success-solid);--_on:var(--on-success)}
.ein-timeline .is-warning{--_c:var(--warning-solid);--_on:var(--on-warning)}
.ein-timeline .is-nok{--_c:var(--danger-solid);--_on:var(--on-danger)}
.ein-timeline .is-info{--_c:var(--info-solid);--_on:var(--white)}

.ein-timeline__bar{position:absolute;top:var(--space-2);bottom:var(--space-2);min-width:var(--space-1);display:flex;align-items:center;gap:var(--space-1);margin:0;padding:0 var(--space-2);border:0;border-radius:var(--radius-control);
  background:var(--_c,var(--chart-neutral));color:var(--_on,var(--white));font:600 var(--text-xs)/var(--leading-xs) var(--font-body);white-space:nowrap;overflow:hidden;cursor:default}
.ein-timeline.is-selectable .ein-timeline__bar,.ein-timeline.is-selectable .ein-timeline__mark{cursor:pointer}
.ein-timeline__bartext{min-width:0;overflow:hidden;text-overflow:ellipsis}
.ein-timeline__bar.is-nolabel .ein-timeline__bartext{display:none}
.ein-timeline__bar .ein-icon{flex:none}
.ein-timeline__bar:hover{box-shadow:0 0 0 var(--stroke-rule) var(--heading)}
.ein-timeline__bar:focus-visible,.ein-timeline__mark:focus-visible{outline:var(--stroke-line) solid var(--focus-ring);outline-offset:2px;z-index:2}
.ein-timeline__bar.is-selected{box-shadow:0 0 0 var(--stroke-indicator) var(--primary);z-index:1}
.ein-timeline__mark{position:absolute;top:0;bottom:0;z-index:1;width:var(--control-md);margin:0 0 0 calc(var(--control-md) / -2);padding:0;display:grid;place-items:center;border:0;background:none;cursor:default}
.ein-timeline__diamond{width:var(--space-3);height:var(--space-3);transform:rotate(45deg);background:var(--_c,var(--heading));border:var(--stroke-rule) solid var(--surface)}
.ein-timeline__mark:hover .ein-timeline__diamond{box-shadow:0 0 0 var(--stroke-rule) var(--heading)}
.ein-timeline__mark.is-selected .ein-timeline__diamond{box-shadow:0 0 0 var(--stroke-indicator) var(--primary)}
.ein-timeline__tip{transform:translateY(-100%)}
.ein-timeline__tiptimes{font-family:var(--font-mono);color:var(--text-secondary)}
.ein-timeline__tipnote{margin-top:var(--space-1);color:var(--text)}
.ein-timeline__zoom{display:inline-flex;gap:var(--space-1)}

/* EINES — values that look right without thinking (2.1.0): soft StatusBadge in tables and lists, StatTile with text, the Tooltip bubble in a portal,
   printed InspectionResult, ReportFigureGrid, Card media fit, EmptyState kinds, compact Timeline. Tokens only. */

/* ---------- StatusBadge soft: icon + coloured text, no fill. Default inside DataTable, DefectList, KeyValueList and AlarmList ---------- */
.ein-badge--soft{--_bg:transparent;padding-inline:0}
.ein-badge--soft.ein-badge--sm{padding-inline:0}
.ein-badge--soft.ein-badge--lg{padding-inline:0}

/* ---------- StatTile: text never cut with an ellipsis; a text value uses a smaller body and may take two lines ---------- */
.ein-stat{align-self:stretch}
.ein-stat.is-text .ein-stat__value{font:700 var(--text-md)/var(--leading-sm) var(--font-body);font-variant-numeric:normal;overflow-wrap:break-word;text-wrap:balance}
.ein-stat__sub{overflow-wrap:anywhere}

/* ---------- Tooltip bubble: in a portal on <body>, so no panel with overflow clips it ---------- */
.ein-tip{position:fixed;z-index:var(--z-tooltip);max-width:min(320px,calc(100vw - var(--space-4)));padding:calc(var(--space-1) + var(--space-0-5)) calc(var(--space-2) + var(--space-0-5));border-radius:var(--radius-control);background:var(--inverse);color:var(--text-inverse);
  font:400 var(--text-xs)/var(--leading-xs) var(--font-body);overflow-wrap:anywhere;pointer-events:none;animation:ein-fade-in var(--duration-3) var(--ease-enter) both}

/* ---------- InspectionResult on a printed sheet: outline + coloured text, no solid block ---------- */
.ein-result--print{--_c:var(--success-fg);border:var(--stroke-indicator) solid var(--_c);background:transparent;color:var(--_c)}
.ein-result--print.ein-result--nok{--_c:var(--danger-fg)}
.ein-result--print.ein-result--warning{--_c:var(--warning-fg)}
.ein-result--print.ein-result--pending{--_c:var(--text)}
.ein-result--print .ein-result__meta{color:var(--text-secondary);opacity:1}

/* ---------- ReportFigureGrid ---------- */
.ein-report__grid{display:grid;grid-template-columns:repeat(var(--_cols,2),minmax(0,1fr));gap:var(--space-4);align-items:start}
.ein-report__frame.is-cover img{object-fit:cover}

/* ---------- Card media: fit ---------- */
.ein-card__media.has-ratio{background:var(--viewer-bg)}
.ein-card__media.has-ratio>:is(img,video,canvas){width:100%;height:100%;object-fit:contain}
.ein-card__media.is-cover.is-photo img,.ein-card__media.is-cover.has-ratio>:is(img,video,canvas){object-fit:cover}
.ein-card__media.is-contain.is-photo img{object-fit:contain}

/* ---------- EmptyState kinds ---------- */
.ein-empty--loading .ein-empty__icon .ein-icon{animation:ein-spin 1200ms var(--ease-linear) infinite}
.ein-empty--unavailable .ein-empty__icon{color:var(--warning-fg);background:var(--warning-bg)}

/* ---------- Timeline compact (narrow panels): a list of phases ---------- */
.ein-timeline__compact{display:flex;flex-direction:column}
.ein-timeline__chead{padding:var(--space-2) var(--space-3);background:var(--surface-alt);font:700 var(--text-xs)/var(--leading-xs) var(--font-body);letter-spacing:.06em;text-transform:uppercase;color:var(--text-secondary)}
.ein-timeline__cline{position:relative;display:grid;grid-template-columns:var(--space-5) minmax(0,1fr) auto;align-items:center;gap:var(--space-2);width:100%;min-height:var(--control-md);margin:0;padding:var(--space-1) var(--space-3);border:0;border-bottom:var(--stroke-rule) solid var(--chart-grid);background:none;
  font:400 var(--text-sm)/var(--leading-sm) var(--font-body);color:var(--text);text-align:left}
.ein-timeline__cline.is-indent{padding-left:calc(var(--space-3) + var(--space-5))}
.ein-timeline__cline.is-button{cursor:pointer;transition:background-color var(--duration-1) var(--ease-standard)}
.ein-timeline__cline.is-button:hover{background:var(--surface-hover)}
.ein-timeline__cline.is-button:focus-visible{outline:var(--stroke-line) solid var(--focus-ring);outline-offset:calc(var(--space-1) * -1)}
.ein-timeline__cline.is-selected{background:var(--surface-selected);font-weight:700;color:var(--heading);box-shadow:inset 0 0 0 var(--stroke-rule) var(--border-strong)}
.ein-timeline__cline.is-active{font-weight:600;color:var(--heading)}
.ein-timeline__cmark{display:grid;place-items:center;color:var(--_c,var(--text-secondary))}
.ein-timeline__cmark>i{width:var(--space-2);height:var(--space-2);border-radius:var(--radius-control);background:var(--_c,var(--chart-neutral))}
.ein-timeline__cline.is-ok{--_c:var(--success-fg)}
.ein-timeline__cline.is-warning{--_c:var(--warning-fg)}
.ein-timeline__cline.is-nok{--_c:var(--danger-fg)}
.ein-timeline__cline.is-info{--_c:var(--info-fg)}
.ein-timeline__cline.is-neutral{--_c:var(--text-secondary)}
.ein-timeline__ctext{min-width:0;overflow-wrap:anywhere}
.ein-timeline__ctext small{display:block;font-size:var(--text-xs);line-height:var(--leading-xs);color:var(--text-secondary)}
.ein-timeline__cdur{font:400 var(--text-xs)/var(--leading-xs) var(--font-mono);font-variant-numeric:tabular-nums;color:var(--text-secondary);white-space:nowrap}

/* ---------- Never leave the container (2.1.0): long text, narrow frames. A cut text always has its full text in a title (tooltip) ---------- */
/* KpiCard: the number takes what the unit leaves; the unit gives way first */
.ein-kpi__value{display:flex;align-items:baseline;min-width:0;white-space:nowrap}
.ein-kpi__num{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}
.ein-kpi__unit{flex:0 8 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}
/* Alert: the text column may shrink and wrap; the bar form wraps its actions */
.ein-alert{grid-template-columns:auto minmax(0,1fr) auto}
.ein-alert--meta{grid-template-columns:auto minmax(0,1fr) auto auto}
.ein-alert__main{min-width:0}
.ein-alert__title,.ein-alert__body{overflow-wrap:anywhere}
.ein-alert__actions{flex-wrap:wrap}
/* Chips of the filter bar never exceed the bar */
.ein-fbchip{max-width:min(100%,calc(var(--_w) * 2))}
/* Breadcrumb: once every middle item is folded into the "…" menu, the rest shrinks with an ellipsis (the full text is in the title) */
.ein-breadcrumb__list.is-squeezed .ein-breadcrumb__item{flex:0 1 auto}
/* Tabs and Stepper scroll inside their own box (see strip.tsx); a very long label is cut, with its title */
.ein-sscroll{position:relative;display:flex;min-width:0;max-width:100%;overflow:hidden}   /* overflow: so a grid or flex parent can shrink it (a scroll box has no content-based minimum) */
.ein-strip__scroller{flex:1 1 auto;min-width:0}
.ein-sscroll:has(>.ein-tabs){width:fit-content}   /* the track of Tabs is as wide as its tabs, never stretched */
.ein-sscroll.has-start>.ein-strip__scroller{-webkit-mask-image:linear-gradient(to right,transparent 0,black var(--space-10));mask-image:linear-gradient(to right,transparent 0,black var(--space-10))}
.ein-sscroll.has-end>.ein-strip__scroller{-webkit-mask-image:linear-gradient(to left,transparent 0,black var(--space-10));mask-image:linear-gradient(to left,transparent 0,black var(--space-10))}
.ein-sscroll.has-start.has-end>.ein-strip__scroller{-webkit-mask-image:linear-gradient(to right,transparent 0,black var(--space-10),black calc(100% - var(--space-10)),transparent 100%);mask-image:linear-gradient(to right,transparent 0,black var(--space-10),black calc(100% - var(--space-10)),transparent 100%)}
.ein-strip__btn{position:absolute;top:50%;z-index:1;display:grid;place-items:center;width:var(--space-6);height:var(--space-6);padding:0;border:var(--stroke-rule) solid var(--border);border-radius:var(--radius-full);background:var(--surface-raised);color:var(--text);box-shadow:var(--shadow-sm);cursor:pointer;transform:translateY(-50%);transition:background-color var(--duration-1) var(--ease-standard)}
.ein-strip__btn:hover{background:var(--surface-hover)}
.ein-strip__btn.is-start{left:var(--space-1)}
.ein-strip__btn.is-end{right:var(--space-1)}
.ein-tab{max-width:min(100%,calc(var(--space-16) * 5))}
.ein-tab__label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ein-step__label{max-width:calc(var(--space-16) * 3.5);overflow:hidden;text-overflow:ellipsis}
/* StatusBadge: a tag, one line; a sentence is cut at the container's edge (the full text is in the title) */
.ein-badge{max-width:100%}
.ein-badge__text{min-width:0;overflow:hidden;text-overflow:ellipsis}
.ein-breadcrumb{width:100%;max-width:100%;contain:inline-size}   /* its width comes from the parent (it fills it), never from its own text: the list folds / shrinks to fit instead of widening the parent, and in a shrink-to-fit parent (a flex row) it no longer collapses to zero width */
/* FilterBar: the row wraps when it does not fit (search first, then the filter button and the count) */
.ein-filterbar__row{flex-wrap:wrap}
.ein-filterbar{min-width:0;grid-template-columns:minmax(0,1fr)}

/* EINES 2.13.0 — FilterBar: applied chips grouped under their title, and the filter panel in sections (groups). */
.ein-filterbar__chiptitle{font:600 var(--text-xs)/var(--leading-xs) var(--font-body);color:var(--text-secondary);white-space:nowrap}
.ein-filterbar__sep{align-self:center;width:var(--stroke-line);height:var(--space-5);background:var(--border)}
.ein-fbpanel__sections{display:grid;gap:var(--space-5);color:var(--text)}
.ein-fbpanel__sec{display:grid;gap:var(--space-3);min-width:0;padding-bottom:var(--space-5);border-bottom:var(--stroke-rule) solid var(--border)}
.ein-fbpanel__sec:last-child{padding-bottom:0;border-bottom:0}
.ein-fbpanel__sechead{display:flex;align-items:center;gap:var(--space-2);color:var(--heading)}
.ein-fbpanel__sectitle{margin:0;font:700 var(--text-md)/var(--leading-md) var(--font-display);color:var(--heading)}
.ein-fbpanel__sechint{margin:calc(var(--space-2) * -1) 0 0;font-size:var(--text-xs);line-height:var(--leading-xs);color:var(--text-secondary)}
.ein-fbpanel__hint{display:block;margin-bottom:var(--space-2)}
.ein-fbpanel__fams{display:grid;gap:var(--space-2)}
.ein-fbpanel__fam{display:grid;grid-template-columns:calc(var(--space-16) * 1.75) minmax(0,1fr);align-items:center;gap:var(--space-3)}
.ein-fbpanel__famname{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:600 var(--text-sm)/var(--leading-sm) var(--font-body);color:var(--text)}
.ein-fbpanel__opts .ein-fbpanel__famname{margin-top:var(--space-2)}
.ein-fbpanel__opts .ein-fbpanel__famname:first-child{margin-top:0}
.ein-fbpanel__spacer{flex:1}
.ein-fbpanel__group:disabled .ein-fbpanel__legend{color:var(--text-disabled)}
@media (max-width:599px){.ein-fbpanel__fam{grid-template-columns:minmax(0,1fr);gap:var(--space-1)}}

/* ---------- FormGrid · Field span · Stack · Toolbar (2.12.0) ---------- */
/* Up to --_n columns of at least 240 px; with less room, fewer columns (one on a phone). Every cell starts at the top, so a neighbour with a hint or an error never moves the others. */
.ein-formgrid{--_n:2;--_gap:var(--space-4);container-type:inline-size;display:grid;grid-template-columns:repeat(auto-fill,minmax(max(min(100%,calc(var(--space-16) * 3.75)),calc((100% - (var(--_n) - 1) * var(--_gap)) / var(--_n))),1fr));column-gap:var(--_gap);row-gap:var(--space-5);align-items:start;min-width:0}
.ein-formgrid>*{min-width:0}
.ein-field--span-2{grid-column:span 2}
.ein-field--span-3{grid-column:span 3}
.ein-field--span-full{grid-column:1 / -1}
/* a span never asks for more columns than fit at this width: then it takes the whole row (2 columns need 496 px, 3 need 752 px) */
@container (max-width:495px){.ein-field--span-2,.ein-field--span-3{grid-column:1 / -1}}
@container (max-width:751px){.ein-field--span-3{grid-column:1 / -1}}
/* controls without a box of their own keep their natural height in the cell (no stretched segmented control) */
.ein-field>.ein-segmented,.ein-field>.ein-weekdays,.ein-field>.ein-chipgroup,.ein-field>.ein-btngroup{justify-self:start;max-width:100%}
/* a time fills its column like the other boxes; a time range shares the row between its two boxes and keeps the duration on the same line while it fits */
.ein-formgrid .ein-timefield:not(.ein-timerange) .ein-timebox{width:100%}
.ein-formgrid .ein-timerange .ein-timebox{flex:1 1 0;width:auto;min-width:max-content}

/* Field align="control": a control without a box (Switch, Checkbox, a button) next to labelled fields drops to the line of their boxes and is centred on it */
.ein-field--align-control{--_ctl:var(--control-md);padding-top:calc(var(--leading-sm) + 6px);grid-template-rows:var(--_ctl);align-items:center}
.ein-field--ctl-sm{--_ctl:var(--control-sm)}
.ein-field--ctl-lg{--_ctl:var(--control-lg)}
.ein-field--align-control>:first-child{justify-self:start}

.ein-stack{display:grid;grid-template-columns:minmax(0,1fr);align-content:start;min-width:0}
.ein-stack--sm{gap:var(--space-2)}
.ein-stack--md{gap:var(--space-4)}
.ein-stack--lg{gap:var(--space-6)}
/* direction="row": a row that wraps (actions, chips), items centred on one line; justify="end" pushes it to the right */
.ein-stack--row{display:flex;flex-wrap:wrap;align-items:center}
.ein-stack--row>*{min-width:0}
.ein-stack--end{justify-content:flex-end}

/* One row, every control at the height of the surrounding ControlSize; boxes aligned at the bottom so a stray label does not lift them. */
.ein-toolbar{display:flex;flex-wrap:wrap;align-items:flex-end;gap:var(--space-3);min-width:0}
.ein-toolbar__start{display:flex;flex-wrap:wrap;align-items:flex-end;gap:var(--space-3);flex:1 1 calc(var(--space-16) * 5);min-width:0}
.ein-toolbar__start>:first-child{flex:1 1 calc(var(--space-16) * 3.5);min-width:min(100%,calc(var(--space-16) * 3))}
.ein-toolbar__start>*,.ein-toolbar__end>*{min-width:0}
.ein-toolbar__end{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:flex-end;gap:var(--space-3);margin-left:auto}

/* EINES 2.1.0 — screen patterns: Workspace, ViewerFrame, SidebarPage, EmbedFrame, Thumbnail. Tokens only. */

/* ---------- Workspace: main content + detail panel (bottom or right), resizable ---------- */
.ein-ws{display:flex;flex-direction:column;width:100%;height:100%;min-width:0;min-height:0;contain:inline-size}   /* the width comes from the container, never from the panel: otherwise a grid or flex parent grows with the panel and the panel never goes below */
.ein-ws[data-side="right"]{flex-direction:row}
.ein-ws__main{flex:1 1 0;display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden}
.ein-ws__main>*{flex:1 1 0;min-width:0;min-height:0}
.ein-ws__handle{position:relative;flex:none;display:flex;align-items:center;justify-content:center;touch-action:none;outline:none}
.ein-ws[data-side="bottom"]>.ein-ws__handle{height:12px;cursor:row-resize}
.ein-ws[data-side="right"]>.ein-ws__handle{width:12px;cursor:col-resize}
/* the visible bar is thin; the zone that answers to the pointer is 44 px */
.ein-ws__handle::before{content:"";position:absolute}
.ein-ws[data-side="bottom"]>.ein-ws__handle::before{left:0;right:0;top:calc(var(--space-4) * -1);bottom:calc(var(--space-4) * -1)}
.ein-ws[data-side="right"]>.ein-ws__handle::before{top:0;bottom:0;left:calc(var(--space-4) * -1);right:calc(var(--space-4) * -1)}
.ein-ws__grip{border-radius:var(--radius-full);background:var(--border-strong);transition:background-color var(--duration-2) var(--ease-standard)}
.ein-ws[data-side="bottom"] .ein-ws__grip{width:var(--space-8);height:var(--space-1)}
.ein-ws[data-side="right"] .ein-ws__grip{width:var(--space-1);height:var(--space-8)}
.ein-ws__grip{opacity:0}
.ein-ws__handle:hover .ein-ws__grip,.ein-ws__handle:focus-visible .ein-ws__grip,.ein-ws[data-dragging] .ein-ws__grip{opacity:1}
@media (hover:none),(any-pointer:coarse){.ein-ws__grip{opacity:1}}
.ein-ws__handle:hover .ein-ws__grip{background:var(--border-strong)}
.ein-ws[data-dragging] .ein-ws__grip{background:var(--text)}
.ein-ws__handle:focus-visible .ein-ws__grip{background:var(--text);outline:var(--stroke-line) solid var(--focus-ring);outline-offset:var(--space-1)}
.ein-ws[data-dragging]{user-select:none}
.ein-ws[data-dragging] iframe,.ein-ws[data-dragging] canvas{pointer-events:none}
.ein-ws__panel{flex:0 0 auto;display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden;
  background:var(--surface);border:var(--stroke-rule) solid var(--border);border-radius:var(--radius-container)}
.ein-ws__head{flex:none;display:flex;align-items:center;gap:var(--space-2);min-height:var(--control-lg);padding:0 var(--space-2) 0 var(--space-4);border-bottom:var(--stroke-rule) solid var(--border)}
.ein-ws__title{flex:1;min-width:0;margin:0;font:700 var(--text-md)/var(--leading-md) var(--font-display);color:var(--heading);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ein-ws__actions{display:flex;align-items:center;gap:var(--space-2);margin-left:auto;min-width:0}
.ein-ws__head:not(:has(.ein-ws__title)) .ein-ws__actions{flex:1;justify-content:flex-start}
.ein-ws__body{flex:1 1 0;min-height:0;padding:var(--space-4);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}
.ein-ws__body[hidden]{display:none}
.ein-ws__body>*{min-width:0;max-width:100%;overflow-wrap:anywhere}
.ein-ws__body :where(img,video,canvas,svg,table){max-width:100%}
/* folded: bottom = only its header; right = a narrow strip with the unfold button */
.ein-ws__panel.is-collapsed .ein-ws__head{border-bottom:0}
.ein-ws__panel.is-collapsed .ein-ws__actions,.ein-ws__panel.is-collapsed .ein-ws__head>.ein-button:not([aria-expanded]){display:none}
.ein-ws[data-side="right"] .ein-ws__panel.is-collapsed{flex:0 0 var(--control-lg)}
.ein-ws[data-side="right"] .ein-ws__panel.is-collapsed .ein-ws__head{flex-direction:column;justify-content:flex-start;padding:var(--space-2) 0;height:100%}
.ein-ws[data-side="right"] .ein-ws__panel.is-collapsed .ein-ws__title{display:none}
.ein-ws[data-collapsed][data-side="bottom"]>.ein-ws__handle{display:none}
@media (any-pointer:coarse){
  .ein-ws__head .ein-button--icon{width:var(--touch-target);height:var(--touch-target)}
}

/* ---------- ViewerFrame: dark frame for any visual content; tools live in strips of their own, so they never cover it ---------- */
.ein-vframe{position:relative;display:flex;flex-direction:column;width:100%;height:100%;min-width:0;min-height:0;overflow:hidden;
  background:var(--viewer-bg);color:var(--viewer-fg);border:var(--stroke-rule) solid var(--border);border-radius:var(--radius-container)}
.ein-vframe__content{position:relative;flex:1 1 0;display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden}
.ein-vframe__content>*{flex:1 1 auto;min-width:0;min-height:0}
.ein-vframe__content>:is(canvas,video,img,svg){display:block;width:100%;height:100%;object-fit:contain}
.ein-vframe__content>.ein-viewer{height:100%;border-radius:0}
.ein-vframe__strip{flex:none;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--space-2) var(--space-3);padding:var(--space-2) var(--space-3)}
.ein-vframe__strip--top{border-bottom:var(--stroke-rule) solid var(--neutral-800)}
.ein-vframe__strip--bottom{border-top:var(--stroke-rule) solid var(--neutral-800)}
/* the two slots share the strip: when they cannot fit side by side the right one goes to its own line (long text wraps inside its slot, never over the other one) */
.ein-vframe__slot{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2);min-width:0;max-width:100%;overflow-wrap:anywhere}
.ein-vframe__slot.is-end{justify-content:flex-end;margin-left:auto}
.ein-vframe__slot:empty{display:none}
.ein-vframe__strip .ein-button{--_fg:var(--viewer-fg);--_bg-h:var(--neutral-800);--_bg-p:var(--neutral-750)}
.ein-vframe__strip .ein-button:disabled{--_fg:var(--neutral-400);--_bg:transparent;--_bg-h:transparent}
.ein-vframe__strip :focus-visible,.ein-vframe__status :focus-visible{outline:var(--stroke-line) solid var(--green);outline-offset:var(--space-0-5)}
.ein-vframe__status{flex:none;display:flex;flex-wrap:wrap;align-items:center;gap:0 var(--space-4);padding:var(--space-1) var(--space-3);border-top:var(--stroke-rule) solid var(--neutral-800);
  font:400 var(--text-xs)/var(--leading-xs) var(--font-mono);color:var(--neutral-300)}
.ein-vframe__state{position:absolute;inset:0;display:grid;place-content:center;justify-items:center;gap:var(--space-3);padding:var(--space-6);text-align:center;color:var(--neutral-300)}
.ein-vframe__state p{margin:0;max-width:calc(var(--space-16) * 5);font:400 var(--text-sm)/var(--leading-sm) var(--font-body)}
.ein-vframe__state--veil{background:var(--viewer-bg);color:var(--viewer-fg)}

/* ---------- SidebarPage: sticky index + content, one scroll (the page's); tabs when narrow ---------- */
.ein-sbp{--_top:var(--space-4);--_stick:0px;--_index:calc(var(--space-16) * 3.5);--_offset:var(--_top);display:grid;grid-template-columns:var(--_index) minmax(0,1fr);gap:var(--space-8);align-items:start;width:100%;min-width:0}
.ein-shell .ein-sbp{--_top:calc(var(--topbar-height) + var(--space-4));--_stick:var(--topbar-height)}
.ein-sbp.is-narrow{display:block;--_offset:calc(var(--_stick) + var(--control-md) + var(--space-4))}
.ein-sbp__index{position:sticky;top:var(--_top);align-self:start;max-height:calc(100vh - var(--_top) - var(--space-4));overflow-y:auto;overscroll-behavior:contain;min-width:0}
.ein-sbp__index ul{list-style:none;margin:0;padding:0;display:grid;gap:var(--space-1)}
.ein-sbp__link{position:relative;display:flex;align-items:center;gap:var(--space-2);min-height:var(--control-md);padding:0 var(--space-3);border-radius:var(--radius-control);
  color:var(--text-secondary);font:600 var(--text-sm)/var(--leading-sm) var(--font-body);text-decoration:none;
  transition:background-color var(--duration-1) var(--ease-standard),color var(--duration-1) var(--ease-standard)}
.ein-sbp__link:hover{background:var(--surface-hover);color:var(--text)}
.ein-sbp__link:focus-visible{outline:var(--stroke-line) solid var(--focus-ring);outline-offset:var(--space-0-5)}
.ein-sbp__link[aria-current="location"]{background:var(--selected-surface);color:var(--on-selected);font-weight:700;box-shadow:inset 0 0 0 var(--stroke-rule) var(--border),var(--shadow-sm)}
.ein-sbp__label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ein-sbp__link .ein-badge{margin-left:auto}
.ein-sbp__tabs{position:sticky;top:var(--_stick);z-index:calc(var(--z-sticky) - 1);margin:0 0 var(--space-4);background:var(--bg)}
.ein-sbp__content{display:grid;gap:var(--space-10);min-width:0}
.ein-sbp__section{min-width:0;scroll-margin-top:var(--_offset)}
.ein-sbp__title{margin:0 0 var(--space-4);font:700 var(--text-lg)/var(--leading-md) var(--font-display);color:var(--heading);outline:none}
@media (any-pointer:coarse){
  .ein-sbp__link{min-height:var(--touch-target)}
}

/* ---------- EmbedFrame: iframe with loading / unavailable / error states ---------- */
.ein-embed{position:relative;width:100%;min-width:0;overflow:hidden;background:var(--surface);border:var(--stroke-rule) solid var(--border);border-radius:var(--radius-container)}
.ein-embed__frame{display:block;width:100%;height:100%;border:0;background:var(--surface)}
.ein-embed.is-loading .ein-embed__frame,.ein-embed.is-error .ein-embed__frame{visibility:hidden}
.ein-embed.is-unavailable .ein-embed__frame{visibility:hidden}
.ein-embed__state{position:absolute;inset:0;display:grid;place-items:center;background:var(--surface)}
.ein-embed__state .ein-skeleton{position:absolute;inset:0;width:100%;height:100%}
.ein-embed__msg{position:relative;display:grid;justify-items:center;gap:var(--space-3);max-width:calc(var(--space-16) * 6);padding:var(--space-6);text-align:center;color:var(--text-secondary)}
.ein-embed__msg p{margin:0;font:400 var(--text-sm)/var(--leading-sm) var(--font-body)}
.ein-embed__msg .ein-embed__head{font:700 var(--text-md)/var(--leading-md) var(--font-display);color:var(--heading)}
.ein-embed__icon{color:var(--text-secondary)}
.ein-embed.is-error .ein-embed__icon{color:var(--danger-fg)}
.ein-embed.is-unavailable .ein-embed__icon{color:var(--warning-fg)}
.ein-embed.is-loading .ein-embed__msg{background:var(--surface);border-radius:var(--radius-container)}

/* ---------- Thumbnail: logo / thumbnail on a uniform plate ---------- */
.ein-thumbnail{--_w:calc(var(--space-16) * 1.5);--_pad:var(--space-3);position:relative;display:inline-flex;flex:none;align-items:center;justify-content:center;width:var(--_w);max-width:100%;overflow:hidden;
  background:var(--_plate);color:var(--_ink);border:var(--stroke-rule) solid var(--border);border-radius:var(--radius-control);vertical-align:middle}
.ein-thumbnail--sm{--_w:var(--space-16);--_pad:var(--space-2)}
.ein-thumbnail--lg{--_w:calc(var(--space-16) * 2.5);--_pad:var(--space-4)}
/* the plate does not change with the theme: a logo is drawn for a light (or a dark) background, not for the app's */
.ein-thumbnail.is-light{--_plate:var(--light-grey);--_ink:var(--neutral-600)}
.ein-thumbnail.is-dark{--_plate:var(--viewer-bg);--_ink:var(--neutral-300)}
.ein-thumbnail>img{display:block;width:100%;height:100%;object-fit:contain}
.ein-thumbnail.is-padded>img{padding:var(--_pad)}
.ein-thumbnail__none{display:grid;place-items:center;width:100%;height:100%;font:700 var(--text-lg)/var(--leading-md) var(--font-display);letter-spacing:.04em;user-select:none}
.ein-thumbnail--sm .ein-thumbnail__none{font-size:var(--text-sm)}
.ein-thumbnail--lg .ein-thumbnail__none{font-size:calc(var(--text-lg) * 1.5)}

/* WeekdayPicker, NumericKeypad, CopyButton (2.8.0). Only tokens. */

/* ---------- WeekdayPicker ---------- */
.ein-weekdays{--_s:var(--control-md);display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2) var(--space-3);max-width:100%}
.ein-weekdays--sm{--_s:var(--control-sm)}
.ein-weekdays--lg{--_s:var(--control-lg)}
@media (any-pointer:coarse){.ein-weekdays{--_s:var(--control-lg)}}   /* fingers: 48 px whatever the size */
.ein-weekdays__days{display:flex;flex-wrap:wrap;gap:var(--space-1);max-width:100%}
.ein-weekdays__day{flex:none;min-width:var(--_s);height:var(--_s);padding:0 var(--space-2);border:var(--stroke-rule) solid transparent;border-radius:var(--radius-control);
  background:var(--selected-track);color:var(--text);font:600 var(--text-sm)/var(--leading-sm) var(--font-body);white-space:nowrap;cursor:pointer;user-select:none;
  display:inline-flex;align-items:center;justify-content:center;
  transition:background-color var(--duration-2) var(--ease-standard),color var(--duration-2) var(--ease-standard),box-shadow var(--duration-2) var(--ease-standard),border-color var(--duration-2) var(--ease-standard)}
.ein-weekdays__day>span::after{content:attr(data-text);display:block;height:0;overflow:hidden;visibility:hidden;font-weight:700;pointer-events:none}   /* reserves the bold width: no jump on selection */
.ein-weekdays__day:hover:not(:disabled){background:var(--tonal-hover)}
.ein-weekdays__day:active:not(:disabled){background:var(--tonal-hover)}
.ein-weekdays__day:focus-visible{outline:var(--stroke-line) solid var(--focus-ring);outline-offset:2px}
.ein-weekdays__day[aria-pressed="true"]{border-color:var(--border-strong);background:var(--selected-surface);color:var(--on-selected);font-weight:700;box-shadow:var(--shadow-sm)}
.ein-weekdays__day[aria-pressed="true"]:hover:not(:disabled){background:var(--selected-surface)}
.ein-weekdays__day:disabled{border-color:var(--border);background:transparent;color:var(--text-disabled);box-shadow:none;cursor:not-allowed}
.ein-weekdays__day[aria-pressed="true"]:disabled{border-color:var(--border-strong);background:var(--tonal);color:var(--text);font-weight:700;box-shadow:none}   /* locked but chosen: still reads as selected (shape + fill + bold) */
.ein-weekdays--fill{display:flex;width:100%}
.ein-weekdays--fill .ein-weekdays__days{flex:1 1 auto;flex-wrap:nowrap}
.ein-weekdays--fill .ein-weekdays__day{flex:1 1 0;min-width:0}
.ein-weekdays__all{color:var(--text-secondary);font:400 var(--text-sm)/var(--leading-sm) var(--font-body)}
@media (forced-colors:active){.ein-weekdays__day[aria-pressed="true"]{outline:var(--stroke-line) solid Highlight}}

/* ---------- NumericKeypad ---------- */
.ein-keypad{--_k:var(--control-lg);display:grid;grid-template-columns:repeat(3,minmax(var(--_k),1fr));gap:var(--space-2);width:100%;max-width:calc(var(--_k) * 5)}
.ein-keypad--lg{--_k:calc(var(--control-lg) + var(--space-4))}   /* 64 px keys for gloves and kiosks */
.ein-keypad .ein-keypad__key{min-height:var(--_k);padding:0;font:500 var(--text-xl)/1 var(--font-mono);font-variant-numeric:tabular-nums}

/* ---------- CopyButton ---------- */
.ein-copybutton.is-copied{--_fg:var(--success-fg)}
.ein-copybutton.is-failed{--_fg:var(--danger-fg)}

/* ---------- TimeField / TimeRangeField ---------- */
.ein-timebox{--_h:var(--control-md);--_f:var(--text-md);position:relative;display:inline-flex;align-items:center;gap:var(--space-0-5);height:var(--_h);padding:0 var(--space-3);width:max-content;max-width:100%;
  border:var(--stroke-rule) solid var(--border-strong);border-radius:var(--radius-control);background:var(--surface);color:var(--text);
  font:600 var(--_f)/1 var(--font-mono);font-variant-numeric:tabular-nums;transition:border-color var(--duration-1) var(--ease-standard),box-shadow var(--duration-1) var(--ease-standard)}
.ein-timebox--lg{--_h:var(--control-lg);--_f:var(--text-lg);padding:0 var(--space-4)}   /* md is the base (the class is only added for sm / lg) */
.ein-timebox--sm{--_h:var(--control-sm);--_f:var(--text-sm);padding:0 var(--space-2)}
.ein-timebox>.ein-icon{flex:none;color:var(--text-secondary);margin-right:var(--space-2)}
.ein-timebox>i{font-style:normal;color:var(--text-secondary)}
.ein-timebox:focus-within{outline:var(--stroke-line) solid var(--focus-ring);outline-offset:2px}
.ein-timebox__seg{align-self:stretch;width:2.4ch;min-width:0;padding:var(--space-0-5) var(--space-0-5);border:0;border-radius:var(--radius-mark);background:transparent;color:inherit;font:inherit;text-align:center;caret-color:transparent;outline:0;cursor:text}
.ein-timebox__seg:focus{background:var(--surface-selected);box-shadow:0 0 0 var(--stroke-rule) var(--primary-border)}
.ein-timebox__seg::selection{background:transparent}
.ein-timebox>em{position:absolute;top:calc(var(--space-2) * -1);right:calc(var(--space-2) * -1);padding:var(--space-0-5) var(--space-1);border:var(--stroke-rule) solid var(--info-fg);border-radius:var(--radius-full);background:var(--surface);color:var(--info-fg);font:700 var(--text-2xs)/1 var(--font-body);font-style:normal;white-space:nowrap}
.ein-timebox.is-invalid{border-color:var(--danger-fg);box-shadow:0 0 0 var(--stroke-rule) var(--danger-fg)}
.ein-timebox.is-disabled{background:var(--surface-sunken);border-color:var(--border);color:var(--text-disabled)}
.ein-timebox.is-disabled .ein-timebox__seg{cursor:not-allowed}
.ein-timerange__row{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2)}
.ein-timerange__arrow{color:var(--text-secondary)}
.ein-timerange__dur{margin-left:var(--space-2);padding:var(--space-1) var(--space-3);border-radius:var(--radius-full);background:var(--surface-sunken);color:var(--text);font:600 var(--text-sm)/var(--leading-sm) var(--font-mono);font-variant-numeric:tabular-nums;white-space:nowrap}
.ein-timerange__dur.is-off{color:var(--text-disabled)}
@media (any-pointer:coarse){.ein-timebox{--_h:var(--control-lg)}}   /* fingers: 48 px */

/* ---- media (1.7.0): ImageViewer loupe, crop thumbnails, FilmStrip, CoverflowCarousel ---- */

/* ImageViewer: tone of the label follows the box tone */
.ein-viewer__boxlabel.is-warning{--_c:var(--overlay-warning)}
.ein-viewer__boxlabel.is-ok{--_c:var(--overlay-ok)}
.ein-viewer__boxlabel.is-nok{--_c:var(--overlay-nok)}

/* ImageViewer: loupe (a circle that follows the mouse; position and content are written by script, no re-render per pixel) */
.ein-viewer__loupe{position:absolute;left:0;top:0;z-index:4;box-sizing:border-box;width:var(--_size);height:var(--_size);border:var(--stroke-indicator) solid var(--viewer-fg);border-radius:var(--radius-full);overflow:hidden;background:var(--viewer-bg);
  box-shadow:0 0 0 var(--stroke-line) var(--overlay-halo),var(--shadow-lg);pointer-events:none;will-change:transform;opacity:0;visibility:hidden}
.ein-viewer__loupe[data-show]{opacity:1;visibility:visible}
.ein-viewer__loupe-view{position:absolute;left:0;top:0;transform-origin:0 0;will-change:transform}
.ein-viewer__loupe-view>img{display:block;width:100%;height:100%;user-select:none}
.ein-viewer__loupe-view .ein-viewer__defect{pointer-events:none}
.ein-viewer__loupe-cross{position:absolute;left:50%;top:50%;width:var(--space-8);height:var(--space-8);transform:translate(-50%,-50%);
  -webkit-mask:radial-gradient(circle at center,transparent var(--space-1),black calc(var(--space-1) + 1px));mask:radial-gradient(circle at center,transparent var(--space-1),black calc(var(--space-1) + 1px))}
.ein-viewer__loupe-cross::before,.ein-viewer__loupe-cross::after{content:"";position:absolute;background:var(--viewer-fg);box-shadow:0 0 0 var(--stroke-rule) var(--overlay-halo)}
.ein-viewer__loupe-cross::before{left:50%;top:0;bottom:0;width:var(--stroke-line);margin-left:calc(var(--stroke-line) / -2)}
.ein-viewer__loupe-cross::after{top:50%;left:0;right:0;height:var(--stroke-line);margin-top:calc(var(--stroke-line) / -2)}
.ein-viewer__stage.has-loupe:has(.ein-viewer__loupe[data-show]),.ein-viewer__stage.has-loupe:has(.ein-viewer__loupe[data-show]) *{cursor:none}

/* Gallery / FilmStrip: thumbnail showing only a rectangle of the photo */
.ein-crop{position:relative;display:block;width:100%;height:100%}
.ein-crop .ein-crop__probe{position:absolute;left:0;top:0;width:1px;height:1px;opacity:0;pointer-events:none}
.ein-crop__svg{display:block;width:100%;height:100%;transition:transform var(--duration-5) var(--ease-standard),opacity var(--duration-3) var(--ease-standard)}
.ein-thumb:hover .ein-thumb__img .ein-crop__svg{transform:scale(1.03)}
.ein-thumb.is-selected .ein-thumb__img .ein-crop__svg{opacity:.82}

/* FilmStrip */
.ein-film{--_h:calc(var(--space-16) * 1);display:flex;align-items:center;gap:var(--space-2);min-width:0}
.ein-film--sm{--_h:var(--space-12)}
.ein-film--lg{--_h:calc(var(--space-16) * 1.5)}
.ein-film.is-fit .ein-film__nav{display:none}
.ein-film__nav{flex:none}
.ein-film__track{position:relative;flex:1;min-width:0;display:flex;gap:var(--space-2);padding:var(--space-1);overflow-x:auto;overscroll-behavior-x:contain;}
.ein-film__item{position:relative;flex:none;height:var(--_h);aspect-ratio:4 / 3;padding:0;border:0;border-radius:var(--radius-control);overflow:hidden;background:var(--viewer-bg);color:var(--viewer-fg);cursor:pointer;opacity:.72;
  transition:opacity var(--duration-2) var(--ease-standard)}
.ein-film__item:hover,.ein-film__item.is-current{opacity:1}
.ein-film__item:focus-visible{outline:var(--stroke-line) solid var(--focus-ring);outline-offset:2px}
.ein-film__item::after{content:"";position:absolute;inset:0;border:var(--stroke-line) solid var(--primary);border-radius:inherit;opacity:0;pointer-events:none;transition:opacity var(--duration-2) var(--ease-standard)}
.ein-film__item.is-current::after{opacity:1}
.ein-film__img{display:block;width:100%;height:100%}
.ein-film__img img{display:block;width:100%;height:100%;object-fit:cover;user-select:none}
.ein-film__num{position:absolute;left:var(--space-1);top:var(--space-1);width:fit-content;max-width:calc(100% - var(--space-2) - var(--space-4));overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 var(--space-1);border-radius:var(--radius-control);background:var(--overlay-halo);color:var(--viewer-fg);font:600 var(--text-xs)/var(--leading-xs) var(--font-mono);pointer-events:none}
.ein-film__status{position:absolute;right:var(--space-1);top:var(--space-1);width:10px;height:10px;border-radius:var(--radius-full);background:var(--overlay-info);box-shadow:0 0 0 var(--stroke-rule) var(--overlay-halo);pointer-events:none}
.ein-film__status.is-ok{background:var(--overlay-ok)}
.ein-film__status.is-nok{background:var(--overlay-nok)}
.ein-film__status.is-warning{background:var(--overlay-warning)}

/* CoverflowCarousel: card transforms are written per frame by script */
.ein-cover{position:relative;margin:0;display:flex;flex-direction:column;min-height:0;border-radius:var(--radius-container);overflow:hidden;background:var(--viewer-bg);color:var(--viewer-fg)}
.ein-cover__stage{position:relative;flex:1;min-height:0;overflow:hidden;cursor:grab;touch-action:pan-y;user-select:none;outline:none}
.ein-cover__stage:focus-visible{box-shadow:inset 0 0 0 var(--stroke-indicator) var(--focus-ring)}
.ein-cover__stage.is-dragging{cursor:grabbing}
.ein-cover__card{position:absolute;left:50%;top:50%;margin:0;transform:translate(-50%,-50%);will-change:transform;backface-visibility:hidden;border-radius:var(--radius-control);box-shadow:var(--shadow-lg);background:var(--viewer-bg)}
.ein-cover__card>img{display:block;width:100%;height:100%;border-radius:inherit;pointer-events:none;-webkit-user-drag:none}
.ein-cover__card::after{content:"";position:absolute;inset:0;border-radius:inherit;background:var(--viewer-bg);opacity:var(--_dim,0);pointer-events:none}
.ein-cover__layer{position:absolute;left:0;top:0;width:100%;height:100%;overflow:visible;clip-path:inset(-3px);pointer-events:none}   /* strokes at the edge may bleed 3 px; a box outside the photo never paints over the page */
.ein-cover__layer :is(rect,polygon){vector-effect:non-scaling-stroke}
.ein-cover__tag{--_c:var(--overlay-info);--_tx:0;--_ty:-100%;position:absolute;left:var(--_x);top:var(--_y);transform:translate(var(--_tx),calc(var(--_ty) - var(--_dy,0px)));padding:0 var(--space-1);border-radius:var(--radius-control);background:var(--_c);color:var(--_on,var(--dark-gray));
  font:600 var(--text-xs)/var(--leading-xs) var(--font-body);white-space:nowrap;box-shadow:0 0 0 var(--stroke-rule) var(--overlay-halo);opacity:0;pointer-events:none}
.ein-cover__tag[data-fx="end"]{--_tx:-100%;left:calc(var(--_x) + var(--_bw))}
.ein-cover__tag[data-fy="down"]{--_ty:0;top:calc(var(--_y) + var(--_bh))}
.ein-cover__tag.is-warning{--_c:var(--overlay-warning)}
.ein-cover__tag.is-ok{--_c:var(--overlay-ok)}
.ein-cover__tag.is-nok{--_c:var(--overlay-nok)}
.ein-cover__card[data-center] .ein-cover__tag{opacity:1}
.ein-cover__expand{--_fg:var(--viewer-fg);--_bg:var(--overlay-halo);--_bg-h:color-mix(in srgb,var(--viewer-fg) 16%,transparent);--_bg-p:color-mix(in srgb,var(--viewer-fg) 24%,transparent);position:absolute!important;right:var(--space-3);top:var(--space-3);z-index:300}
.ein-cover__expand:focus-visible{outline:var(--stroke-line) solid var(--focus-ring);outline-offset:1px}
.ein-cover__caption{position:absolute;left:0;right:0;bottom:0;z-index:300;display:flex;align-items:center;justify-content:center;gap:var(--space-3);padding:var(--space-6) var(--space-4) var(--space-3);
  background:linear-gradient(to top,var(--overlay-halo),transparent);pointer-events:none}
.ein-cover__title{font:600 var(--text-sm)/var(--leading-sm) var(--font-body);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ein-cover__sub,.ein-cover__count{font:400 var(--text-xs)/var(--leading-xs) var(--font-mono);opacity:.88;white-space:nowrap}
/* CoverflowCarousel: clickable boxes (only the central photo) */
.ein-cover__hit{position:absolute;padding:0;margin:0;border:0;background:transparent;pointer-events:none;cursor:pointer}
.ein-cover__card[data-center] .ein-cover__hit{pointer-events:auto}
.ein-cover__hit:hover{background:color-mix(in srgb,var(--overlay-selected) 12%,transparent)}
.ein-cover__hit:focus-visible{outline:var(--stroke-indicator) solid var(--overlay-selected);outline-offset:var(--stroke-line)}
@media (prefers-reduced-motion: reduce){
  .ein-film__item,.ein-film__item::after,.ein-crop__svg{transition-duration:1ms!important}
}

/* EINES 2.2.0 — option controls. SegmentedControl, ChipGroup / FilterChip, toggle Button, ButtonGroup and StatusGrid share ONE way of showing the choice:
   a light relief (selected-surface) with bold text. In SegmentedControl it slides to the chosen option. No coloured underline. Tokens only. */

/* ---------- SegmentedControl ---------- */
.ein-segmented{--_track:var(--selected-track);--_thumb:var(--selected-surface);--_on:var(--on-selected);--_off:var(--text-secondary);--_hover:var(--text);--_shadow:var(--shadow-sm);
  --_h:var(--control-md);--_pad:var(--space-0-5);--_r:var(--radius-control);
  position:relative;box-sizing:border-box;display:inline-flex;max-width:100%;overflow-x:auto;scrollbar-width:none;padding:var(--_pad);gap:var(--_pad);border-radius:var(--_r);background:var(--_track)}
.ein-segmented--sm{--_h:var(--control-sm);--_r:var(--radius-control)}
.ein-segmented--lg{--_h:var(--control-lg);--_r:var(--radius-control)}
.ein-segmented button{position:relative;z-index:1;flex:none;display:inline-flex;align-items:center;justify-content:center;gap:calc(var(--space-1) + var(--space-0-5));
  height:calc(var(--_h) - 2 * var(--_pad));padding:0 var(--space-3);border:0;border-radius:calc(var(--_r) - var(--_pad));background:transparent;color:var(--_off);
  font:600 var(--text-sm)/var(--leading-sm) var(--font-body);cursor:pointer;transition:color var(--duration-2) var(--ease-standard),background-color var(--duration-2) var(--ease-standard),box-shadow var(--duration-2) var(--ease-standard)}
.ein-segmented--lg button{padding:0 var(--space-4);font-size:var(--text-md);line-height:var(--leading-md)}
.ein-segmented button:hover{color:var(--_hover)}
.ein-segmented button:focus-visible{outline-offset:calc(var(--stroke-line) * -1)}
.ein-segmented button[aria-checked="true"],.ein-segmented button[aria-pressed="true"]{color:var(--_on);font-weight:700}
/* bold text is wider: reserve its width so the segments never change size when the choice moves */
.ein-segmented__text{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ein-segmented__text::after,.ein-chip__label[data-text]::after,.ein-button:not(.ein-button--primary):not(.ein-button--danger)>span[data-text]::after{content:attr(data-text);display:block;height:0;overflow:hidden;visibility:hidden;font-weight:700;pointer-events:none}
.ein-segmented__thumb{position:absolute;z-index:0;top:var(--_pad);bottom:var(--_pad);left:0;width:var(--_w,0);transform:translateX(var(--_x,0));border-radius:calc(var(--_r) - var(--_pad));
  background:var(--_thumb);box-shadow:var(--_shadow);opacity:0;pointer-events:none}
.ein-segmented[data-placed] .ein-segmented__thumb{opacity:1}
.ein-segmented[data-anim] .ein-segmented__thumb{transition:transform var(--duration-3) var(--ease-standard),width var(--duration-3) var(--ease-standard)}
/* locked: the label dims; the chosen one keeps its relief and stays readable (locked but chosen) */
.ein-segmented button:disabled{color:var(--text-disabled);cursor:not-allowed}
.ein-segmented button:disabled:hover{color:var(--text-disabled)}
.ein-segmented button[aria-checked="true"]:disabled,.ein-segmented button[aria-pressed="true"]:disabled{color:var(--_on)}
/* several active at once: every active segment carries its own relief (no sliding) */
.ein-segmented--multiple button[aria-pressed="true"]{background:var(--_thumb);box-shadow:var(--_shadow)}
/* fill: equal segments that take the whole row */
.ein-segmented--fill{display:flex;width:100%;overflow:visible}
.ein-segmented--fill button{flex:1 1 0;min-width:0;padding:0 var(--space-2)}
/* on the dark bars of the viewers */
.ein-vframe__strip .ein-segmented,.ein-compare__bar .ein-segmented{--_track:var(--neutral-800);--_thumb:var(--neutral-700);--_on:var(--viewer-fg);--_off:var(--neutral-300);--_hover:var(--viewer-fg);--_shadow:none}
@media (forced-colors:active){.ein-segmented__thumb{border:var(--stroke-line) solid Highlight}.ein-segmented--multiple button[aria-pressed="true"]{outline:var(--stroke-line) solid Highlight}}

/* ---------- FilterChip / ChipGroup ---------- */
.ein-chipgroup--nowrap{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
.ein-chipgroup--nowrap .ein-chip{flex:none}
.ein-chipgroup--fill{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)}
.ein-chipgroup--fill .ein-chip{justify-content:center;min-width:0}
.ein-chip--sm{min-height:var(--control-sm);padding:0 var(--space-3)}
.ein-chip:not(.is-tag){border-color:transparent;background:var(--selected-track);color:var(--text);
  transition:background-color var(--duration-2) var(--ease-standard),color var(--duration-2) var(--ease-standard),box-shadow var(--duration-2) var(--ease-standard),border-color var(--duration-2) var(--ease-standard)}
.ein-chip:hover:not(:disabled):not(.is-tag){background:var(--tonal-hover)}
.ein-chip:active:not(:disabled):not(.is-tag){background:var(--tonal-hover)}
.ein-chip[aria-pressed="true"]{border-color:var(--border-strong);background:var(--selected-surface);color:var(--on-selected);font-weight:700;box-shadow:var(--shadow-sm)}
.ein-chip[aria-pressed="true"]:hover:not(:disabled){background:var(--selected-surface)}
.ein-chip[aria-pressed="true"] .ein-chip__count{color:var(--text-secondary)}
.ein-chip:disabled{border-color:var(--border);background:transparent;color:var(--text-disabled);box-shadow:none}
.ein-chip[aria-pressed="true"]:disabled{border-color:var(--border-strong);background:var(--tonal);color:var(--text);font-weight:700}   /* locked but chosen: still reads as selected */

/* ---------- Button pressed (toggle) ---------- */
.ein-button.is-pressed:not(.ein-button--primary):not(.ein-button--danger){--_bg:var(--selected-surface);--_bg-h:var(--selected-surface);--_bg-p:var(--selected-surface);--_bd:var(--border-strong);--_fg:var(--on-selected);font-weight:700;box-shadow:var(--shadow-sm)}
.ein-button.is-pressed:disabled:not(.ein-button--primary):not(.ein-button--danger){--_bg:var(--selected-track);--_bg-h:var(--selected-track);--_bg-p:var(--selected-track);--_bd:var(--border);--_fg:var(--text-disabled);box-shadow:none}

/* ---------- ButtonGroup ---------- */
.ein-btngroup{--_h:var(--control-md);box-sizing:border-box;display:flex;width:100%;max-width:100%;border:var(--stroke-rule) solid var(--border-strong);border-radius:var(--radius-control);overflow:hidden}
.ein-btngroup--sm{--_h:var(--control-sm);border-radius:var(--radius-control)}
.ein-btngroup--lg{--_h:var(--control-lg);border-radius:var(--radius-control)}
.ein-btngroup--hug{display:inline-flex;width:auto}
.ein-btngroup>.ein-button{flex:1 1 0;min-width:0;min-height:calc(var(--_h) - 2 * var(--stroke-rule));border:0;border-radius:0;box-shadow:none}
.ein-btngroup>.ein-button{padding-inline:var(--space-2);gap:var(--space-1)}
.ein-btngroup>.ein-button>span{overflow-wrap:break-word}
.ein-btngroup--hug>.ein-button{flex:1 1 auto}
.ein-btngroup>.ein-button+.ein-button{border-left:var(--stroke-rule) solid var(--border-strong)}
.ein-btngroup>.ein-button:focus-visible{outline-offset:calc(var(--stroke-line) * -1)}

/* ---------- StatusGrid ---------- */
.ein-statusgrid{display:grid;grid-template-columns:repeat(var(--ein-sg-cols,2),minmax(0,1fr));gap:var(--space-2)}
.ein-statusgrid>.ein-badge{box-sizing:border-box;width:100%;min-width:0;justify-content:flex-start}
.ein-statusgrid>.ein-badge .ein-badge__text{min-width:0;overflow:hidden;text-overflow:ellipsis}

/* toggle buttons on the dark bars of the viewers */
.ein-vframe__strip .ein-button.is-pressed:not(.ein-button--primary):not(.ein-button--danger),.ein-viewer__toolbar .ein-button.is-pressed:not(.ein-button--primary):not(.ein-button--danger){--_bg:var(--neutral-700);--_bg-h:var(--neutral-700);--_bg-p:var(--neutral-700);--_bd:var(--neutral-600);--_fg:var(--viewer-fg);box-shadow:none}

/* EINES 2.8.0 — ProcessStepper (live process with parallel lanes) and ViewerHotspot (inspection point over a 3D viewer) */

/* ---------- ProcessStepper ---------- */
.ein-pstepper{background:var(--surface);border:var(--stroke-rule) solid var(--border);border-radius:var(--radius-container);padding:var(--space-4) var(--space-5);color:var(--text)}
.ein-pstepper__row{display:flex;align-items:center;list-style:none;margin:0;padding:0;min-width:max-content}
.ein-pstage{display:flex;align-items:center;flex:none}
.ein-pstage:has(>.ein-pstepper__cn){flex:1 1 auto}
.ein-pstepper__cn{flex:1;min-width:var(--space-6);height:0;border-top:var(--stroke-line) solid var(--border)}
.ein-pstepper__cn.is-done{border-color:var(--success-fg)}
.ein-pstepper__total{display:flex;flex-direction:column;gap:var(--space-0-5);flex:none;margin-left:var(--space-5);padding-left:var(--space-5);border-left:var(--stroke-rule) solid var(--border)}
.ein-pstepper__total span{font-size:var(--text-xs);line-height:var(--leading-xs);color:var(--text-secondary)}
.ein-pstepper__total b{font:700 var(--text-xl)/1 var(--font-mono);font-variant-numeric:tabular-nums;color:var(--heading)}

/* a step: dot, label (+ reason) and time under it. The same text is repeated invisibly ABOVE the dot, so the dot sits at the exact centre of the step and every line meets it */
.ein-pstep{position:relative;display:flex;flex-direction:column;align-items:center;gap:var(--space-1);min-width:calc(var(--space-16) * 1.5);border-radius:var(--radius-container)}
.ein-pstep:focus-visible{outline:var(--stroke-line) solid var(--focus-ring);outline-offset:var(--space-0-5)}
.ein-pstep__dot{position:relative;display:grid;place-items:center;flex:none;width:calc(var(--icon-lg) + var(--space-1));height:calc(var(--icon-lg) + var(--space-1));border:var(--stroke-line) solid var(--border-strong);border-radius:var(--radius-disc);background:var(--surface);color:var(--text-secondary);font:700 var(--text-xs)/1 var(--font-mono)}
.ein-pstep__under{display:flex;flex-direction:column;align-items:center;gap:var(--space-1);max-width:calc(var(--space-16) * 2.5)}
.ein-pstep__under.is-ghost{visibility:hidden;pointer-events:none}
.ein-pstep__lbl{display:flex;flex-direction:column;align-items:center;max-width:100%;font-size:var(--text-sm);line-height:var(--leading-sm);color:var(--text-secondary)}
.ein-pstep__name,.ein-pstep__lbl small{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ein-pstep__lbl small{font-size:var(--text-xs);line-height:var(--leading-xs);font-weight:400}
.ein-pstep__tm{min-height:var(--leading-xs);font:600 var(--text-xs)/var(--leading-xs) var(--font-mono);font-variant-numeric:tabular-nums;color:var(--text-secondary)}
.ein-pstep.is-done .ein-pstep__dot{background:var(--success-bg);border-color:transparent;color:var(--success-fg)}
.ein-pstep.is-done .ein-pstep__lbl{color:var(--text)}
.ein-pstep.is-current .ein-pstep__dot{border-color:var(--info-fg);background:var(--info-bg)}
.ein-pstep.is-current .ein-pstep__dot i{width:calc(var(--space-2) + var(--space-0-5));height:calc(var(--space-2) + var(--space-0-5));border-radius:var(--radius-disc);background:var(--info-fg)}
.ein-pstep.is-current .ein-pstep__dot{box-shadow:0 0 0 calc(var(--space-1) + var(--space-0-5) + 1px) var(--info-bg);animation:ein-pstep-pulse calc(var(--duration-blink) * 1.6) ease-in-out infinite}
.ein-pstep.is-current .ein-pstep__lbl{color:var(--heading);font-weight:700}
.ein-pstep.is-current .ein-pstep__tm{color:var(--info-fg)}
.ein-pstep.is-waiting .ein-pstep__dot{border-style:dashed;border-color:var(--warning-fg);background:var(--warning-bg);color:var(--warning-fg)}
.ein-pstep.is-waiting .ein-pstep__lbl{color:var(--heading);font-weight:700}
.ein-pstep.is-waiting .ein-pstep__lbl small{color:var(--warning-fg);font-weight:600}
.ein-pstep.is-warning .ein-pstep__dot{background:var(--warning-bg);border-color:transparent;color:var(--warning-fg)}
.ein-pstep.is-warning .ein-pstep__lbl{color:var(--heading);font-weight:700}
.ein-pstep.is-warning .ein-pstep__lbl small{color:var(--warning-fg)}
.ein-pstep.is-error .ein-pstep__dot{background:var(--danger-bg);border-color:transparent;color:var(--danger-fg)}
.ein-pstep.is-error .ein-pstep__lbl{color:var(--heading);font-weight:700}
.ein-pstep.is-error .ein-pstep__lbl small{color:var(--danger-fg)}
.ein-pstep.is-pending .ein-pstep__lbl{color:var(--text-secondary)}
@keyframes ein-pstep-pulse{0%,100%{box-shadow:0 0 0 var(--space-1) var(--info-bg)}50%{box-shadow:0 0 0 calc(var(--space-2) + var(--space-1)) transparent}}

/* parallel lanes: each lane draws its own branch from the centre of its row to the trunk (in on the left, out on the right), so the branches meet whatever the number of lanes and their height */
.ein-pfork{--_b:var(--space-6);--_g:var(--space-2);display:grid;gap:var(--_g);list-style:none;margin:0;padding:0 var(--_b)}
.ein-plane{--_in:var(--border);--_out:var(--border);position:relative;min-width:calc(var(--space-16) * 3.5);background:var(--surface-sunken);border:var(--stroke-rule) solid var(--border);border-radius:var(--radius-container)}
.ein-plane.is-in-done{--_in:var(--success-fg)}
.ein-plane.is-out-done{--_out:var(--success-fg)}
.ein-pstep--lane{flex-direction:row;justify-content:flex-start;gap:var(--space-2);min-width:0;min-height:var(--touch-target);padding:0 var(--space-3);border-radius:inherit}
.ein-pstep--lane:focus-visible{outline-offset:calc(var(--space-0-5) * -1)}
.ein-pstep--lane .ein-pstep__under{flex-direction:row;flex:1;min-width:0;max-width:none;gap:var(--space-2)}
.ein-pstep--lane .ein-pstep__lbl{flex-direction:row;align-items:baseline;gap:var(--space-2);min-width:0;max-width:none}
.ein-pstep--lane .ein-pstep__name{flex:0 1 auto;min-width:0}
.ein-pstep--lane .ein-pstep__tm{margin-left:auto}
.ein-plane::before,.ein-plane::after{content:"";position:absolute;width:var(--_b);border:0 solid var(--_in);pointer-events:none}
.ein-plane::before{right:100%}
.ein-plane::after{left:100%;border-color:var(--_out)}
.ein-plane:first-child::before{top:50%;bottom:calc(var(--_g) / -2 - 1px);border-top-width:var(--stroke-line);border-left-width:var(--stroke-line);border-top-left-radius:var(--radius-container)}
.ein-plane:last-child::before{bottom:50%;top:calc(var(--_g) / -2 - 1px);border-bottom-width:var(--stroke-line);border-left-width:var(--stroke-line);border-bottom-left-radius:var(--radius-container)}
.ein-plane:first-child::after{top:50%;bottom:calc(var(--_g) / -2 - 1px);border-top-width:var(--stroke-line);border-right-width:var(--stroke-line);border-top-right-radius:var(--radius-container)}
.ein-plane:last-child::after{bottom:50%;top:calc(var(--_g) / -2 - 1px);border-bottom-width:var(--stroke-line);border-right-width:var(--stroke-line);border-bottom-right-radius:var(--radius-container)}
/* middle lanes (3 or more): the trunk goes straight through and a straight branch leaves it at the centre of the row */
.ein-plane:not(:first-child):not(:last-child)::before{top:calc(var(--_g) / -2 - 1px);bottom:calc(var(--_g) / -2 - 1px);border-left-width:var(--stroke-line);background:linear-gradient(var(--_in),var(--_in)) 0 50% / 100% var(--stroke-line) no-repeat}
.ein-plane:not(:first-child):not(:last-child)::after{top:calc(var(--_g) / -2 - 1px);bottom:calc(var(--_g) / -2 - 1px);border-right-width:var(--stroke-line);background:linear-gradient(var(--_out),var(--_out)) 100% 50% / 100% var(--stroke-line) no-repeat}

/* tooltip card (portal on body) */
.ein-pstep__tip{position:fixed;z-index:var(--z-tooltip);width:min(calc(var(--space-16) * 4.5),calc(100vw - var(--space-4)));display:grid;gap:var(--space-2);padding:var(--space-3) var(--space-4);background:var(--surface-raised);border:var(--stroke-rule) solid var(--border);border-radius:var(--radius-container);box-shadow:var(--shadow-lg);color:var(--text);pointer-events:none}
.ein-pstep__tk{font:700 var(--text-xs)/var(--leading-xs) var(--font-display);color:var(--heading);overflow-wrap:anywhere}
.ein-pstep__tx{font-size:var(--text-xs);line-height:var(--leading-xs);color:var(--text);overflow-wrap:anywhere}
.ein-pstep__sg{display:flex;flex-wrap:wrap;gap:var(--space-1)}
.ein-pstep__sg span{padding:var(--space-0-5) calc(var(--space-1) + var(--space-0-5));border:var(--stroke-rule) solid var(--border);border-radius:var(--radius-mark);background:var(--surface-sunken);font:500 var(--text-2xs)/var(--leading-xs) var(--font-mono);color:var(--text-secondary);overflow-wrap:anywhere}

/* ---------- ViewerHotspot ---------- */
/* public class for plain HTML / model-viewer slots: <button class="ein-hotspot is-nok" slot="hotspot-3"><span class="ein-hotspot__disc">3</span><span class="ein-hotspot__label">Text</span></button>
   states: is-ok, is-nok, is-warning, is-pending, is-selected, is-square, has-label (label always visible). The button centres itself on its anchor point and is 44 px to press whatever the disc looks like. */
.ein-hotspot{--_d:calc(var(--space-8) - var(--space-1));position:relative;display:inline-grid;place-items:center;width:var(--touch-target);height:var(--touch-target);margin:calc(var(--touch-target) / -2) 0 0 calc(var(--touch-target) / -2);padding:0;border:0;background:none;
  color:var(--dark-gray);font:700 var(--text-xs)/1 var(--font-mono);cursor:pointer;-webkit-tap-highlight-color:transparent}
.ein-hotspot.is-selected{--_d:calc(var(--space-8) + var(--stroke-line));z-index:1}
.ein-hotspot[data-visibility-attribute]:not([data-visible]){opacity:.15;pointer-events:none}
.ein-hotspot__disc{position:relative;isolation:isolate;display:grid;place-items:center;box-sizing:border-box;width:var(--_d);height:var(--_d);border-radius:var(--radius-disc);background:var(--_bg,var(--overlay-info));color:var(--_fg,var(--dark-gray));
  box-shadow:0 0 0 var(--stroke-indicator) var(--overlay-halo);transition:transform var(--duration-3) var(--ease-standard)}
.ein-hotspot.is-square .ein-hotspot__disc{border-radius:var(--radius-control)}
.ein-hotspot:hover .ein-hotspot__disc{transform:scale(1.1)}
.ein-hotspot:focus-visible{outline:none}
.ein-hotspot:focus-visible .ein-hotspot__disc{outline:var(--stroke-line) solid var(--focus-ring);outline-offset:calc(var(--stroke-indicator) * 3 + var(--stroke-line))}
.ein-hotspot.is-ok{--_bg:var(--overlay-ok)}
.ein-hotspot.is-warning{--_bg:var(--overlay-warning)}
.ein-hotspot.is-nok{--_bg:var(--overlay-nok)}
.ein-hotspot.is-pending{--_bg:var(--viewer-bg);--_fg:var(--viewer-fg)}
.ein-hotspot.is-pending .ein-hotspot__disc{border:var(--stroke-line) solid var(--viewer-fg)}
.ein-hotspot.is-selected .ein-hotspot__disc{box-shadow:0 0 0 var(--stroke-indicator) var(--overlay-halo),0 0 0 calc(var(--stroke-indicator) * 2) var(--overlay-selected),0 0 0 calc(var(--stroke-indicator) * 3) var(--overlay-halo)}
/* NOK: a ring that beats */
.ein-hotspot.is-nok .ein-hotspot__disc::after{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;outline:calc(var(--stroke-indicator) * 2) solid color-mix(in srgb,var(--overlay-nok) 30%,transparent);outline-offset:var(--stroke-indicator);animation:ein-hotspot-beat calc(var(--duration-blink) * 1.6) ease-in-out infinite}
@keyframes ein-hotspot-beat{0%,100%{transform:scale(1);opacity:1}55%{transform:scale(1.35);opacity:.25}}
.ein-hotspot__label{position:absolute;left:calc(50% + var(--_d) / 2 + var(--space-3));top:50%;transform:translateY(-50%);max-width:calc(var(--space-16) * 4);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  padding:calc(var(--space-1) + var(--stroke-line)) calc(var(--space-2) + var(--space-0-5));border-radius:var(--radius-control);background:var(--overlay-halo);color:var(--viewer-fg);font:600 var(--text-xs)/1 var(--font-body);
  opacity:0;pointer-events:none;transition:opacity var(--duration-2) var(--ease-standard)}
.ein-hotspot.is-selected .ein-hotspot__label,.ein-hotspot.has-label .ein-hotspot__label,.ein-hotspot:hover .ein-hotspot__label,.ein-hotspot:focus-visible .ein-hotspot__label{opacity:1}
.ein-hotspot:hover,.ein-hotspot:focus-visible{z-index:2}

@media (prefers-reduced-motion: reduce){
  .ein-pstep.is-current .ein-pstep__dot{animation:none}
  .ein-hotspot.is-nok .ein-hotspot__disc::after{animation:none;transform:none;opacity:1}
  .ein-hotspot:hover .ein-hotspot__disc{transform:none}
}

/* RadioGroup (2.8.1) and the error / hint / required states of Checkbox, Radio and Switch. Only tokens. */

/* ---------- RadioGroup: fieldset + legend ---------- */
.ein-radiogroup{margin:0;padding:0;border:0;min-width:0;display:flex;flex-direction:column;gap:var(--space-2)}
.ein-radiogroup>legend{padding:0;margin-bottom:var(--space-1)}
.ein-radiogroup__items{display:flex;flex-direction:column;gap:var(--space-2)}
.ein-radiogroup--h .ein-radiogroup__items{flex-direction:row;flex-wrap:wrap;gap:var(--space-2) var(--space-6)}
@media (any-pointer:coarse){.ein-radiogroup__items{gap:0}}   /* every radio already brings its 44 px of padding */

/* ---------- message under Checkbox / Radio / Switch ---------- */
.ein-check-field{display:inline-flex;flex-direction:column;gap:var(--space-1);max-width:100%}
.ein-check-field>.ein-check-msg,.ein-radiogroup>.ein-check-msg{margin-left:calc(var(--icon-md) + var(--space-2))}
.ein-radiogroup>.ein-check-msg{margin-left:0}
.ein-check .ein-req,.ein-switch .ein-req{color:var(--danger-fg);margin-left:var(--space-0-5)}

/* ---------- error: the box / track takes the danger colour (still a shape too: the message has an icon) ---------- */
.ein-check input[aria-invalid="true"]:not(:disabled){border-color:var(--danger-fg);box-shadow:0 0 0 var(--stroke-rule) var(--danger-fg)}
.ein-switch input[aria-invalid="true"]:not(:disabled){box-shadow:inset 0 0 0 var(--stroke-line) var(--danger-fg)}
.ein-switch input[aria-invalid="true"]:checked:not(:disabled){box-shadow:inset 0 0 0 var(--stroke-line) var(--danger-fg)}

/* EINES — report kit and DataTable options (1.8.0): ReportSheet, ReportSection, ReportFigure; DataTable sort, editable cells, footer row, print.
   Tokens only (paper sizes are physical units). The sheet always uses the light theme. */

:where(.ein-datatable__sort,.ein-datatable__edit):focus-visible{outline:var(--stroke-line) solid var(--focus-ring);outline-offset:calc(var(--stroke-line) * -1)}

/* ======================= DataTable: sort ======================= */
.ein-datatable__sort{display:inline-flex;align-items:center;gap:var(--space-1);max-width:100%;min-height:var(--control-sm);margin:0 calc(var(--space-2) * -1);padding:0 var(--space-2);border:0;border-radius:var(--radius-control);background:none;color:inherit;font:inherit;letter-spacing:inherit;text-transform:inherit;text-align:inherit;white-space:inherit}
button.ein-datatable__sort{cursor:pointer}
button.ein-datatable__sort:hover{background:var(--surface-hover);color:var(--text)}
.ein-datatable__sort.is-end{flex-direction:row-reverse}
.ein-datatable__sort.is-sorted{color:var(--heading)}
.ein-datatable__mark{flex:none;width:var(--icon-sm);height:var(--icon-sm);opacity:.4}
.ein-datatable__sort.is-sorted .ein-datatable__mark{opacity:1}
.ein-datatable__mark.is-desc{transform:rotate(180deg)}

/* ======================= DataTable: editable cells ======================= */
.ein-datatable td.is-editable{padding:0;position:relative}
.ein-datatable__edit{display:flex;align-items:center;gap:var(--space-2);width:100%;min-height:48px;padding:0 var(--space-4);border:0;background:none;color:inherit;font:inherit;text-align:inherit;cursor:text}
.ein-datatable--compact .ein-datatable__edit{min-height:36px}
.ein-datatable .is-num .ein-datatable__edit{justify-content:flex-end}
.ein-datatable__edit:hover{background:var(--surface-hover)}
.ein-datatable__editvalue{border-bottom:var(--stroke-rule) dashed var(--border-strong);min-width:var(--space-6)}
.ein-datatable__pencil{flex:none;color:var(--text-secondary);opacity:0;transition:opacity var(--duration-1) var(--ease-standard)}
.ein-datatable .is-num .ein-datatable__pencil{order:-1}
.ein-datatable__edit:hover .ein-datatable__pencil,.ein-datatable__edit:focus-visible .ein-datatable__pencil{opacity:1}
@media (hover:none),(any-pointer:coarse){.ein-datatable__pencil{opacity:1}}
.ein-datatable__editor{position:relative;padding:var(--space-1) var(--space-2)}
.ein-datatable__editor .ein-input{width:100%}
.ein-datatable__cellerr{position:absolute;z-index:2;left:var(--space-2);bottom:calc(100% - var(--space-1));max-width:calc(var(--space-16) * 5);padding:var(--space-1) var(--space-2);border:var(--stroke-rule) solid var(--danger-fg);border-radius:var(--radius-control);background:var(--danger-bg);color:var(--danger-fg);font:600 var(--text-xs)/var(--leading-xs) var(--font-body);white-space:normal;box-shadow:var(--shadow-sm)}

/* ======================= DataTable: density and footer row ======================= */
.ein-datatable--compact th{height:32px}
.ein-datatable tfoot td{position:sticky;bottom:0;z-index:1;height:48px;padding:0 var(--space-4);border-top:var(--stroke-line) solid var(--border-strong);border-bottom:0;background:var(--surface-sunken);color:var(--heading);font-weight:700;white-space:nowrap}
.ein-datatable--compact tfoot td{height:36px}

/* ======================= DataTable: paper =======================
   `print` and any table inside a ReportSheet: no inner scroll, no hover, header repeated on every page, rows never cut, totals once at the end. */
:is(.ein-datatable--print,.ein-report .ein-datatable){overflow:visible;border-radius:0;background:none;-webkit-print-color-adjust:exact;print-color-adjust:exact}
:is(.ein-datatable--print,.ein-report .ein-datatable) th{position:static;height:auto;padding:var(--space-2) var(--space-3);white-space:normal}
:is(.ein-datatable--print,.ein-report .ein-datatable) td{height:auto;padding:var(--space-2) var(--space-3);white-space:normal;vertical-align:top}
:is(.ein-datatable--print,.ein-report .ein-datatable) thead{display:table-header-group}
:is(.ein-datatable--print,.ein-report .ein-datatable) tfoot{display:table-row-group}
:is(.ein-datatable--print,.ein-report .ein-datatable) tfoot td{position:static;height:auto;padding:var(--space-2) var(--space-3)}
:is(.ein-datatable--print,.ein-report .ein-datatable) tr{break-inside:avoid}
:is(.ein-datatable--print,.ein-report .ein-datatable) tbody tr:hover{background:none}
:is(.ein-datatable--print,.ein-report .ein-datatable) tbody tr[aria-selected="true"]{background:none;box-shadow:none}
:is(.ein-datatable--print,.ein-report .ein-datatable) :is(.is-check,.is-actions){display:none}
:is(.ein-datatable--print,.ein-report .ein-datatable) td.is-editable{padding:var(--space-2) var(--space-3)}
:is(.ein-datatable--print,.ein-report .ein-datatable) .ein-datatable__edit{min-height:0;padding:0;pointer-events:none}
:is(.ein-datatable--print,.ein-report .ein-datatable) .ein-datatable__editvalue{border-bottom:0}
:is(.ein-datatable--print,.ein-report .ein-datatable) .ein-datatable__pencil{display:none}
:is(.ein-datatable--print,.ein-report .ein-datatable) .ein-datatable__sort{min-height:0;margin:0;padding:0;pointer-events:none}

/* ======================= ReportSheet ======================= */
.ein-report-wrap{display:flex;flex-direction:column;align-items:center;gap:var(--space-4);min-width:0;padding:var(--space-6) var(--space-4)}
.ein-report__actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:var(--space-2);width:min(var(--_w,210mm),100%)}
.ein-report-wrap:has(.ein-report--landscape) .ein-report__actions{--_w:297mm}
.ein-report.ein-app{--_w:210mm;--_h:297mm;display:flex;flex-direction:column;width:min(var(--_w),100%);min-height:var(--_h);padding:min(15mm,5vw);border-radius:var(--radius-control);background:var(--surface);color:var(--text);box-shadow:var(--shadow-lg);-webkit-print-color-adjust:exact;print-color-adjust:exact;counter-reset:ein-fig}
.ein-report--landscape.ein-app{--_w:297mm;--_h:210mm}
.ein-report__head{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:var(--space-4) var(--space-6);padding-bottom:var(--space-4);border-bottom:var(--stroke-line) solid var(--heading)}
.ein-report__id{min-width:0;margin-left:auto;text-align:right}
.ein-report__kicker{font:700 var(--text-sm)/var(--leading-sm) var(--font-body);letter-spacing:.06em;text-transform:uppercase;color:var(--kicker)}
.ein-report__title{margin:0;font:700 var(--text-3xl)/var(--leading-xl) var(--font-display);color:var(--heading);overflow-wrap:anywhere}
.ein-report__subtitle{margin-top:var(--space-1);color:var(--text-secondary)}
.ein-report__meta{display:grid;grid-template-columns:repeat(auto-fit,minmax(40mm,1fr));gap:var(--space-3) var(--space-6);margin:0;padding:var(--space-4) 0;border-bottom:var(--stroke-rule) solid var(--rule-subtle)}
.ein-report__field{min-width:0;break-inside:avoid}
.ein-report__field dt{font:400 var(--text-xs)/var(--leading-xs) var(--font-body);color:var(--text-secondary)}
.ein-report__field dd{margin:0;font-weight:600;color:var(--heading);overflow-wrap:anywhere}
.ein-report__content{flex:1;margin-top:var(--space-6)}
.ein-report__content>*+*{margin-top:var(--space-6)}
.ein-report__foot{display:flex;flex-wrap:wrap;justify-content:space-between;gap:var(--space-2);margin-top:var(--space-8);padding-top:var(--space-3);border-top:var(--stroke-rule) solid var(--rule-subtle);font:400 var(--text-xs)/var(--leading-xs) var(--font-body);color:var(--text-secondary)}
.ein-report .ein-result{break-inside:avoid}

/* ======================= ReportSection ======================= */
.ein-report__section{break-inside:avoid}
.ein-report__section.is-split{break-inside:auto}
.ein-report__section.is-break{break-before:page}
.ein-report__h2{margin:0 0 var(--space-3);padding-bottom:var(--space-1);border-bottom:var(--stroke-rule) solid var(--rule);font:700 var(--text-md)/var(--leading-md) var(--font-display);letter-spacing:.02em;text-transform:uppercase;color:var(--heading);break-after:avoid}

/* ======================= ReportFigure ======================= */
.ein-report__figure{margin:0;break-inside:avoid}
.ein-report__figure[data-numbered]{counter-increment:ein-fig}
.ein-report__frame{display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:var(--radius-control)}
.ein-report__frame.is-photo{background:var(--viewer-bg)}
.ein-report__frame img{display:block;max-width:100%;max-height:150mm;object-fit:contain}
.ein-report__frame.has-ratio>*{width:100%;height:100%}
.ein-report__frame.has-ratio img{max-height:none}
.ein-report__caption{margin-top:var(--space-2);font:400 var(--text-xs)/var(--leading-xs) var(--font-body);color:var(--text-secondary)}
.ein-report__fignum{font-weight:700;color:var(--heading)}
.ein-report__fignum::after{content:counter(ein-fig) ". "}

/* ======================= Paper ======================= */
@page ein-report-portrait{size:A4 portrait;margin:20mm 14mm 18mm}
@page ein-report-landscape{size:A4 landscape;margin:20mm 14mm 18mm}
/* Text of the page margins (the content itself is written by ReportSheet, which knows the texts) */
@page{
  @top-left{vertical-align:middle}
  @top-right{vertical-align:middle;font:400 8pt var(--font-body);color:var(--neutral-600)}
  @bottom-left{vertical-align:middle;font:400 8pt var(--font-body);color:var(--neutral-600)}
  @bottom-center{vertical-align:middle;font:400 8pt var(--font-body);color:var(--neutral-600)}
  @bottom-right{vertical-align:middle;font:400 8pt var(--font-body);color:var(--neutral-600)}
}

@media print{
  :root:has(.ein-report),:root:has(.ein-report) body{background:var(--white)}
  .ein-report-wrap{display:block;padding:0}
  .ein-report__actions,.ein-report__foot,.ein-report .ein-chart__toggle{display:none}
  .ein-report.ein-app{display:block;width:auto;min-height:0;padding:0;border-radius:0;background:none;box-shadow:none}
  .ein-report--portrait{page:ein-report-portrait}
  .ein-report--landscape{page:ein-report-landscape}
}

/* DataTable virtual: only the visible rows are drawn; fixed row height (--ein-rh), spacer rows keep the scroll length */
.ein-datatable.ein-datatable--virtual:focus-visible{outline:var(--stroke-line) solid var(--focus-ring);outline-offset:calc(var(--stroke-line) * -1)}
.ein-datatable.ein-datatable--virtual td{height:calc(var(--ein-rh) - var(--stroke-rule))}
.ein-datatable.ein-datatable--virtual td:not(.is-editable){overflow:hidden;text-overflow:ellipsis}
.ein-datatable.ein-datatable--virtual .ein-datatable__edit{min-height:calc(var(--ein-rh) - var(--stroke-rule))}
.ein-datatable.ein-datatable--virtual tbody tr.ein-datatable__spacer{pointer-events:none;background:none}
.ein-datatable.ein-datatable--virtual tbody tr.ein-datatable__spacer td{height:auto;padding:0;border:0}

/* ---------- density (ControlSize density): compact 32 px, comfortable 40 px, touch 48 px ---------- */
.ein-card--d-compact .ein-card__header{padding:var(--space-3) var(--space-4) 0}
.ein-card--d-compact .ein-card__body{padding:var(--space-3) var(--space-4)}
.ein-card--d-compact .ein-card__footer{padding:var(--space-2) var(--space-4)}
.ein-card--d-comfortable .ein-card__header{padding:var(--space-4) var(--space-5) 0}
.ein-card--d-comfortable .ein-card__body{padding:var(--space-4) var(--space-5)}
.ein-card--d-comfortable .ein-card__footer{padding:var(--space-3) var(--space-5)}
.ein-datatable--d-compact :is(td,th){height:var(--control-sm)}
.ein-datatable--d-comfortable :is(td,th){height:var(--control-md)}
.ein-datatable--d-touch :is(td,th){height:var(--control-lg)}
.ein-datatable--d-compact tfoot td{height:var(--control-sm)}
.ein-datatable--d-comfortable tfoot td{height:var(--control-md)}
.ein-datatable--d-touch tfoot td{height:var(--control-lg)}

/* EINES — SelectableList: rows with an id box coloured by state, title, subtitle, actions and state icon; filter chips with counters. Selected = selected fill + thin primary border + bold title (no 3 px bar). Tokens only. */
.ein-sl{display:flex;flex-direction:column;min-width:0;border:var(--stroke-rule) solid var(--border);border-radius:var(--radius-container);overflow:hidden;background:var(--surface);font-size:var(--text-sm);line-height:var(--leading-sm);color:var(--text)}
.ein-sl__head{flex:none;display:flex;flex-wrap:wrap;gap:var(--space-2);padding:var(--space-3);border-bottom:var(--stroke-rule) solid var(--border)}
.ein-sl__chip{display:inline-flex;align-items:center;gap:var(--space-1);height:var(--control-sm);padding:0 var(--space-3);border:var(--stroke-rule) solid var(--border);border-radius:var(--radius-full);background:none;color:var(--text-secondary);font:inherit;font-size:var(--text-xs);cursor:pointer}
.ein-sl__chip b{font-family:var(--font-mono);font-weight:700;font-variant-numeric:tabular-nums}
.ein-sl__chip:hover{background:var(--surface-hover);color:var(--text)}
.ein-sl__chip.is-on{background:var(--surface-selected);border-color:var(--primary-border);color:var(--heading);font-weight:700}
.ein-sl__chip:focus-visible,.ein-sl__main:focus-visible{outline:var(--stroke-line) solid var(--focus-ring);outline-offset:calc(var(--stroke-line) * -1)}
@media (any-pointer:coarse){.ein-sl__chip{min-height:var(--ein-touch)}}
.ein-sl__scroll{flex:1;min-height:0;overflow:auto}
.ein-sl__list{list-style:none;margin:0;padding:0}
.ein-sl__item{position:relative;display:block;padding-block:var(--space-0-5);padding-inline:var(--space-2);box-sizing:border-box}
.ein-sl__row{position:relative;display:flex;align-items:center;gap:var(--space-3);height:100%;padding:0 var(--space-3);border:var(--stroke-rule) solid transparent;border-radius:var(--radius-control);box-sizing:border-box}
.ein-sl__item:hover .ein-sl__row{background:var(--surface-hover)}
.ein-sl__item.is-selected .ein-sl__row{background:var(--surface-selected);border-color:var(--primary-border)}
.ein-sl__item.is-selected .ein-sl__text b{font-weight:700;color:var(--heading)}
.ein-sl__main{position:absolute;inset:0;z-index:0;margin:0;padding:0;border:0;border-radius:inherit;background:none;cursor:pointer}
.ein-sl__id{flex:none;display:grid;place-items:center;min-width:var(--control-md);height:var(--control-md);padding:0 var(--space-1);box-sizing:border-box;border-radius:var(--radius-control);border:var(--stroke-rule) solid var(--border);background:var(--surface-sunken);color:var(--text-secondary);font:700 var(--text-sm)/1 var(--font-mono)}
.is-ok .ein-sl__id{color:var(--success-fg);background:var(--success-bg);border-color:var(--success-fg)}
.is-nok .ein-sl__id{color:var(--danger-fg);background:var(--danger-bg);border-color:var(--danger-fg)}
.is-warning .ein-sl__id{color:var(--warning-fg);background:var(--warning-bg);border-color:var(--warning-fg)}
.ein-sl__text{flex:1;min-width:0;display:grid}
.ein-sl__text b{font-weight:500;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ein-sl__text small{font-size:var(--text-xs);line-height:var(--leading-xs);color:var(--text-secondary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.is-pending:not(.is-selected) .ein-sl__text b{color:var(--text-secondary)}
.ein-sl__state{flex:none;display:grid;place-items:center;color:var(--text-secondary)}
.is-ok .ein-sl__state{color:var(--success-fg)}
.is-nok .ein-sl__state{color:var(--danger-fg)}
.is-warning .ein-sl__state{color:var(--warning-fg)}
.ein-sl__acts{position:relative;z-index:1;flex:none;display:flex;gap:var(--space-0-5);opacity:0;transition:opacity var(--duration-1) var(--ease-standard)}
.ein-sl__item:is(:hover,:focus-within,.is-selected) .ein-sl__acts{opacity:1}
@media (hover:none),(any-pointer:coarse){.ein-sl__acts{opacity:1}}
.ein-sl__none{margin:0;padding:var(--space-6) var(--space-4);text-align:center;color:var(--text-secondary)}
@media (prefers-reduced-motion:reduce){.ein-sl__acts{transition:none}}

/* EINES 1.9.0 — sliders: RangeSlider and the `reference` mark of Slider. Tokens only. */

/* ---------- Slider: reference mark ---------- */
.ein-slider__track{--_thumb:calc(var(--icon-md) - var(--space-0-5));position:relative}
.ein-slider__track .ein-slider__input{position:relative}
.ein-slider__ref{position:absolute;left:calc(var(--_thumb) / 2 + (100% - var(--_thumb)) * var(--_ref) / 100);top:50%;width:var(--stroke-rule);height:var(--space-4);transform:translate(-50%,-50%);
  border-radius:var(--radius-mark);background:var(--text-secondary);box-shadow:0 0 0 var(--stroke-rule) var(--surface);pointer-events:none}
.ein-slider__reffoot{display:flex;align-items:center;gap:var(--space-2);min-width:0;font:400 var(--text-xs)/var(--leading-xs) var(--font-body);color:var(--text-secondary)}
.ein-slider__refkey{flex:none;width:var(--stroke-rule);height:var(--space-3);border-radius:var(--radius-mark);background:var(--text-secondary)}
.ein-slider__reftext{min-width:0}
.ein-slider__reftext b{color:var(--text);font:600 var(--text-xs)/var(--leading-xs) var(--font-mono);font-variant-numeric:tabular-nums}
.ein-slider__reftext small{margin-left:var(--space-1);font:400 var(--text-xs)/var(--leading-xs) var(--font-body);color:var(--text-secondary)}
.ein-slider__reset{display:inline-flex;align-items:center;gap:var(--space-1);flex:none;margin:0 0 0 auto;min-height:var(--control-md);padding:0 var(--space-3);border:0;border-radius:var(--radius-control);
  background:var(--tonal);color:var(--text);font:600 var(--text-xs)/var(--leading-xs) var(--font-body);cursor:pointer}
.ein-slider__reset:hover:not(:disabled){background:var(--tonal-hover)}
.ein-slider__reset:focus-visible{outline:var(--stroke-line) solid var(--focus-ring);outline-offset:2px}
.ein-slider__reset:disabled{background:transparent;color:var(--text-disabled);cursor:default}
.ein-slider--lg .ein-slider__reset,.ein-rslider.is-lg .ein-slider__reset{min-height:var(--control-lg)}

/* ---------- RangeSlider ---------- */
.ein-rslider{--_thumb:calc(var(--icon-md) - var(--space-0-5));--_pad:calc(var(--_thumb) / 2);--_h:var(--control-md);--_fill:var(--primary);--_rail:var(--border-strong)}
.ein-rslider.is-lg{--_h:var(--control-lg)}
.ein-rslider.is-disabled{--_fill:var(--border-strong);--_rail:var(--border)}
.ein-rslider__track{position:relative;height:var(--_h);cursor:pointer;touch-action:none;user-select:none}
.ein-rslider__track.has-marks{margin-bottom:var(--space-5)}
.ein-rslider.is-disabled .ein-rslider__track{cursor:not-allowed}
.ein-rslider__rail{position:absolute;left:var(--_pad);right:var(--_pad);top:50%;height:var(--space-1);margin-top:calc(var(--space-1) / -2);border-radius:var(--radius-full);
  background:var(--_rail)}   /* the rail is a graphical object: >= 3:1 on the surface (1.4.11) */
.ein-rslider__fill{position:absolute;top:0;bottom:0;border-radius:var(--radius-full);background:var(--_fill)}
.ein-rslider__refband{position:absolute;bottom:calc(100% + var(--space-2));height:var(--space-1);border-radius:var(--radius-full);background:var(--text-secondary);pointer-events:none}
.ein-rslider__mark{position:absolute;top:calc(100% + var(--space-2));width:var(--stroke-rule);height:var(--space-1);margin-left:calc(var(--stroke-rule) / -2);background:var(--text-secondary);pointer-events:none}
.ein-rslider__mark span{position:absolute;top:100%;left:50%;transform:translateX(-50%);margin-top:var(--space-0-5);white-space:nowrap;font:400 var(--text-xs)/var(--leading-xs) var(--font-mono);color:var(--text-secondary)}
.ein-rslider__thumb{position:absolute;top:50%;z-index:1;width:var(--_h);height:var(--_h);transform:translate(-50%,-50%);border-radius:var(--radius-disc);outline:none;cursor:grab}
.ein-rslider__thumb:active{cursor:grabbing}
.ein-rslider__thumb::after{content:"";position:absolute;left:50%;top:50%;box-sizing:border-box;width:var(--_thumb);height:var(--_thumb);transform:translate(-50%,-50%);
  border:var(--stroke-line) solid var(--primary-border);border-radius:var(--radius-disc);background:var(--white);box-shadow:var(--shadow-sm)}
.ein-rslider__thumb:focus-visible::after{outline:var(--stroke-line) solid var(--focus-ring);outline-offset:2px}
.ein-rslider.is-disabled .ein-rslider__thumb{cursor:not-allowed}
.ein-rslider.is-disabled .ein-rslider__thumb::after{border-color:var(--border-strong);background:var(--surface-sunken);box-shadow:none}
.ein-rslider__limits{padding-inline:var(--_pad)}
.ein-rslider__fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-3)}

/* EINES — structure and dialogs (1.7.0): Dialog sizes / severity, Drawer non-modal and bottom, Alert bar, NavItem pressed / action,
   TextField reveal, Popover, Kbd, ShortcutList, FloatingPanel, UserBadge, StatusStrip. Tokens only. */

:where(.ein-strip__chip,.ein-fp__header,.ein-popover-panel,.ein-userbadge__main):focus-visible{outline:var(--stroke-line) solid var(--focus-ring);outline-offset:2px}

/* ---------- Dialog: sizes, kicker, severity ---------- */
.ein-dialog--xl{width:min(1040px,100%)}
.ein-dialog--full{display:flex;flex-direction:column;width:calc(100vw - var(--space-12));max-height:calc(100vh - var(--space-12));overflow:hidden}   /* as wide as the window, as tall as its content up to the window height: a short content does not stretch */
.ein-dialog--full .ein-dialog__body{flex:0 1 auto;min-height:0;overflow:auto}
.ein-dialog--full .ein-dialog__header,.ein-dialog--full .ein-dialog__footer{flex:none}
.ein-dialog__heading{flex:1;min-width:0}
.ein-dialog__heading .ein-dialog__title{margin:0}
.ein-dialog__kicker{margin-bottom:var(--space-0-5);font:600 var(--text-xs)/var(--leading-xs) var(--font-body);color:var(--_fg,var(--kicker))}
.ein-dialog__icon{flex:none;margin-top:var(--space-0-5);color:var(--_fg)}
.ein-dialog__message{color:var(--text)}
.ein-dialog__field{margin-top:var(--space-4)}
.ein-dialog--ok{--_fg:var(--success-fg);--_bg:var(--success-bg)}
.ein-dialog--warning{--_fg:var(--warning-fg);--_bg:var(--warning-bg)}
.ein-dialog--nok{--_fg:var(--danger-fg);--_bg:var(--danger-bg)}
.ein-dialog--info{--_fg:var(--info-fg);--_bg:var(--info-bg)}
:where(.ein-dialog--ok,.ein-dialog--warning,.ein-dialog--nok,.ein-dialog--info){border:var(--stroke-line) solid var(--_fg)}
:where(.ein-dialog--ok,.ein-dialog--warning,.ein-dialog--nok,.ein-dialog--info) .ein-dialog__header{padding-bottom:var(--space-4);background:var(--_bg)}
:where(.ein-dialog--ok,.ein-dialog--warning,.ein-dialog--nok,.ein-dialog--info) .ein-dialog__body{padding-top:var(--space-4)}
@media (max-width:599px){
  .ein-dialog--full{width:100%;max-height:calc(100vh - var(--space-6))}
}

/* ---------- Drawer: bottom, non-modal ---------- */
.ein-drawer--inline{z-index:var(--z-sticky);box-shadow:var(--shadow-md);border:var(--stroke-rule) solid var(--border)}
.ein-drawer--bottom{top:auto;left:0;right:0;bottom:0;width:auto;height:min(var(--_h,360px),100%);border-radius:var(--radius-container) var(--radius-container) 0 0;animation:ein-drawer-in-b var(--duration-5) var(--ease-emphasized) both}
.ein-drawer--bottom.ein-drawer--sm{--_h:240px}.ein-drawer--bottom.ein-drawer--md{--_h:360px}.ein-drawer--bottom.ein-drawer--lg{--_h:520px}
.ein-drawer--inline.ein-drawer--bottom{border-width:var(--stroke-rule) 0 0}
.ein-drawer--inline.ein-drawer--right{border-right-width:0}
.ein-drawer--inline.ein-drawer--left{border-left-width:0}
.ein-drawer-layer[data-leaving] .ein-drawer--bottom{animation:ein-drawer-out-b var(--duration-4) var(--ease-exit) both}
.ein-drawer--inline[data-leaving].ein-drawer--bottom{animation:ein-drawer-out-b var(--duration-4) var(--ease-exit) both}
.ein-drawer--inline[data-leaving].ein-drawer--right{animation:ein-drawer-out-r var(--duration-4) var(--ease-exit) both}
.ein-drawer--inline[data-leaving].ein-drawer--left{animation:ein-drawer-out-l var(--duration-4) var(--ease-exit) both}
@keyframes ein-drawer-in-b{from{transform:translateY(100%)}to{transform:none}}
@keyframes ein-drawer-out-b{from{transform:none}to{transform:translateY(100%)}}
@media (max-width:599px){
  .ein-drawer--bottom{width:auto;border-radius:var(--radius-container) var(--radius-container) 0 0}
}

/* ---------- Alert: bar, meta ---------- */
.ein-alert--meta{grid-template-columns:auto minmax(0,1fr) auto auto}
.ein-alert__meta{align-self:center;color:var(--text-secondary);font-size:var(--text-xs);line-height:var(--leading-xs);white-space:nowrap;font-variant-numeric:tabular-nums}
/* a narrow alert (under 480 px): the date and time go on two lines instead of squeezing the text */
.ein-alert--meta{container-type:inline-size}
@container (max-width:480px){.ein-alert>.ein-alert__meta{white-space:normal;max-width:11ch;text-align:right}}
/* bar: one line; the action button shrinks with an ellipsis instead of squeezing to one letter per line */
.ein-alert--bar .ein-alert__actions{flex:0 1 auto;flex-wrap:nowrap;min-width:0;max-width:50%}
.ein-alert--bar .ein-alert__actions>*{min-width:0;max-width:100%}
.ein-alert--bar .ein-alert__actions .ein-button>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* a narrow bar (under 480 px) gives up the single line: title and text take a full row each (two lines at most) and the button goes below, so none is cut to a few letters */
.ein-alert--bar{container-type:inline-size}
@container (max-width:480px){
  .ein-alert.ein-alert--bar>.ein-alert__main{flex-wrap:wrap;padding:var(--space-2) 0}
  .ein-alert--bar>.ein-alert__main>:is(.ein-alert__title,.ein-alert__body){flex:1 1 100%;white-space:normal;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}
  .ein-alert--bar>.ein-alert__main>.ein-alert__actions{max-width:100%}
}
.ein-alert--bar{align-items:center;padding:var(--space-2) var(--space-4);border-radius:var(--radius-none);border-bottom:var(--stroke-rule) solid var(--_fg)}
.ein-alert--bar>.ein-icon{margin-top:0}
.ein-alert--bar .ein-alert__main{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-1) var(--space-3)}
.ein-alert--bar .ein-alert__actions{margin-top:0}

/* ---------- NavItem: pressed, disabled, action ---------- */
.ein-nav-item[aria-pressed="true"]{background:var(--surface-hover);color:var(--heading);font-weight:700}
.ein-nav-item[aria-pressed="true"]>.ein-icon{color:var(--heading)}
.ein-nav-item--action{color:var(--text)}
.ein-nav-item--pulse>.ein-icon{color:var(--info-fg);animation:ein-pulse 1600ms var(--ease-standard) infinite}
.ein-nav-item:disabled,.ein-nav-item[aria-disabled="true"],.ein-nav-item:disabled:hover{background:none;color:var(--text-disabled);cursor:not-allowed}

/* ---------- TextField: reveal password ---------- */
.ein-control--action .ein-input{padding-right:calc(var(--control-sm) + var(--space-2))}
.ein-control__action{position:absolute;right:var(--space-1)}

/* ---------- Popover ---------- */
.ein-popover-anchor{display:inline-flex}
.ein-popover-panel{box-sizing:border-box;position:fixed;z-index:var(--z-toast);min-width:var(--space-16);overflow:auto;padding:var(--space-3);border-radius:var(--radius-container);background:var(--surface-raised);color:var(--text);
  border:var(--stroke-rule) solid var(--border);box-shadow:var(--shadow-md);transform-origin:top left;animation:ein-pop-in var(--duration-4) var(--ease-enter) both}
.ein-popover-panel.is-up{transform-origin:bottom left}

/* ---------- Kbd, ShortcutList ---------- */
.ein-kbd{display:inline-flex;align-items:center;justify-content:center;min-width:var(--space-6);height:var(--space-6);padding:0 var(--space-2);border-radius:var(--radius-control);
  border:var(--stroke-rule) solid var(--border-strong);border-bottom-width:var(--stroke-line);background:var(--surface);color:var(--heading);font:600 var(--text-xs)/var(--leading-xs) var(--font-mono);white-space:nowrap}
.ein-kbd--sm{min-width:var(--space-5);height:var(--space-5);padding:0 var(--space-1);font-size:var(--text-2xs)}
.ein-shortcuts{display:grid;grid-template-columns:repeat(var(--_cols,1),minmax(0,1fr));gap:var(--space-6) var(--space-8)}
.ein-shortcuts__title{margin:0 0 var(--space-2);font:400 var(--text-xs)/var(--leading-xs) var(--font-body);color:var(--text-secondary)}
.ein-shortcuts__list{display:grid;margin:0}
.ein-shortcuts__row{display:flex;align-items:center;justify-content:space-between;gap:var(--space-4);padding:var(--space-2) 0;border-bottom:var(--stroke-rule) solid var(--border)}
.ein-shortcuts__row dt{min-width:0;color:var(--text)}
.ein-shortcuts__row dd{display:inline-flex;flex:none;align-items:center;gap:var(--space-1);margin:0}
.ein-shortcuts__plus{color:var(--text-secondary);font-size:var(--text-xs)}
@media (max-width:599px){.ein-shortcuts{grid-template-columns:minmax(0,1fr)}}

/* ---------- FloatingPanel ---------- */
.ein-fp{box-sizing:border-box;position:fixed;z-index:var(--z-sticky);display:flex;flex-direction:column;width:min(var(--_w,320px),calc(100vw - var(--space-4)));overflow:hidden;border-radius:var(--radius-container);
  background:var(--surface-raised);color:var(--text);border:var(--stroke-rule) solid var(--border);box-shadow:var(--shadow-lg)}
.ein-fp.is-docked{width:var(--_w,320px);border-radius:var(--radius-none);box-shadow:var(--shadow-md)}
.ein-fp.is-left{border-width:0 var(--stroke-rule) 0 0}
.ein-fp.is-right{border-width:0 0 0 var(--stroke-rule)}
.ein-fp__header{display:flex;flex:none;align-items:center;gap:var(--space-2);min-height:var(--control-lg);padding:0 var(--space-2) 0 var(--space-4);border-bottom:var(--stroke-rule) solid var(--border);background:var(--surface-alt);cursor:grab;touch-action:none;user-select:none}
.ein-fp__header:focus-visible{outline-offset:calc(var(--stroke-line) * -1)}
.ein-fp.is-collapsed .ein-fp__header{border-bottom-width:0}
.ein-fp.is-dragging .ein-fp__header{cursor:grabbing}
.ein-fp__grip{flex:none;color:var(--text-secondary)}
.ein-fp__title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:700 var(--text-md)/var(--leading-md) var(--font-display);color:var(--heading)}
.ein-fp__actions{display:flex;flex:none;gap:var(--space-0-5)}
.ein-fp__actions .ein-button{--_fg:var(--text-secondary)}
.ein-fp__actions .ein-button:hover{--_fg:var(--text)}
.ein-fp__body{flex:1;min-height:0;overflow:auto;padding:var(--space-4)}
.ein-fp__footer{display:flex;flex:none;flex-wrap:wrap;justify-content:flex-end;gap:var(--space-2);padding:var(--space-3) var(--space-4);border-top:var(--stroke-rule) solid var(--border)}
.ein-fp__snap{position:fixed;z-index:calc(var(--z-sticky) - 1);background:var(--surface-selected);border:var(--stroke-line) dashed var(--border-strong);opacity:.8;pointer-events:none}

/* ---------- UserBadge ---------- */
.ein-userbadge{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--space-2);min-width:0}
.ein-userbadge__row{display:flex;align-items:center;gap:var(--space-3);min-width:0}
.ein-userbadge__avatar{display:grid;flex:none;place-items:center;width:var(--control-md);height:var(--control-md);overflow:hidden;border-radius:var(--radius-disc);background:var(--tonal);color:var(--heading);font:700 var(--text-sm)/1 var(--font-display)}
.ein-userbadge__avatar img{width:100%;height:100%;object-fit:cover}
.ein-userbadge--lg .ein-userbadge__avatar{width:var(--control-lg);height:var(--control-lg);font-size:var(--text-md)}
.ein-userbadge__text{flex:1;min-width:0}
.ein-userbadge__name,.ein-userbadge__role{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ein-userbadge__name{font-weight:600;color:var(--heading)}
.ein-userbadge__role{font-size:var(--text-xs);line-height:var(--leading-xs);color:var(--text-secondary)}
.ein-userbadge__logout{flex:none}
/* onClick: avatar + name become one button (opens the profile), sibling of the exit button */
.ein-userbadge__main{display:flex;flex:1;align-items:center;gap:var(--space-3);min-width:0;min-height:var(--control-md);margin:calc(var(--space-1) * -1);padding:var(--space-1);border:0;border-radius:var(--radius-control);background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}
.ein-userbadge__main:hover{background:var(--surface-hover)}
.ein-userbadge__main:active{background:var(--surface-pressed)}
.ein-userbadge--lg .ein-userbadge__main{min-height:var(--control-lg)}
.ein-userbadge__elev{display:inline-flex;align-self:flex-start;align-items:center;gap:var(--space-1);height:var(--space-5);padding:0 var(--space-2);cursor:default;border-radius:var(--radius-full);background:var(--warning-bg);color:var(--warning-fg);font:600 var(--text-xs)/var(--leading-xs) var(--font-body)}
.ein-userbadge__elev.is-urgent{background:var(--danger-bg);color:var(--danger-fg)}
.ein-userbadge__elev>.ein-icon{flex:none}
.ein-userbadge__elev-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ein-userbadge__time{font-family:var(--font-mono);font-variant-numeric:tabular-nums}
/* compact: only avatar, countdown and exit (explicit prop, or the collapsed / rail sidebar) */
.ein-userbadge--compact .ein-userbadge__row,.ein-shell--collapsed .ein-userbadge .ein-userbadge__row{flex-direction:column;gap:var(--space-2)}
.ein-userbadge--compact .ein-userbadge__main,.ein-shell--collapsed .ein-userbadge .ein-userbadge__main{flex:none;justify-content:center;margin:0}
.ein-userbadge--compact .ein-userbadge__text,.ein-shell--collapsed .ein-userbadge .ein-userbadge__text,
.ein-userbadge--compact .ein-userbadge__elev-label,.ein-shell--collapsed .ein-userbadge .ein-userbadge__elev-label{display:none}
.ein-userbadge--compact .ein-userbadge__elev,.ein-shell--collapsed .ein-userbadge .ein-userbadge__elev{flex-direction:column;gap:0;justify-content:center;padding:var(--space-1);border-radius:var(--radius-container)}
.ein-userbadge--compact .ein-userbadge__time,.ein-shell--collapsed .ein-userbadge .ein-userbadge__time{margin-left:0;font-size:var(--text-xs);line-height:var(--leading-xs)}
@media (min-width:600px) and (max-width:1023px){
  .ein-shell .ein-userbadge .ein-userbadge__row{flex-direction:column;gap:var(--space-2)}
  .ein-shell .ein-userbadge .ein-userbadge__main{flex:none;justify-content:center;margin:0}
  .ein-shell .ein-userbadge .ein-userbadge__text,.ein-shell .ein-userbadge .ein-userbadge__elev-label{display:none}
  .ein-shell .ein-userbadge .ein-userbadge__elev{flex-direction:column;gap:0;justify-content:center;padding:var(--space-1);border-radius:var(--radius-container)}
  .ein-shell .ein-userbadge .ein-userbadge__time{margin-left:0;font-size:var(--text-xs);line-height:var(--leading-xs)}
}

/* ---------- StatusStrip ---------- */
.ein-strip{display:flex;align-items:center;gap:var(--space-3);padding:var(--space-1) var(--space-3);background:var(--surface-raised);border-top:var(--stroke-rule) solid var(--border);color:var(--text)}
.ein-strip__items{display:flex;flex:1;flex-wrap:wrap;align-items:center;gap:var(--space-1);min-width:0}
.ein-strip__end{display:flex;flex:none;align-items:center;gap:var(--space-2);margin-left:auto;color:var(--text-secondary)}
.ein-strip__chip{--_dot:var(--text-disabled);display:inline-flex;align-items:center;gap:var(--space-2);height:var(--control-sm);padding:0 var(--space-3);border:0;border-radius:var(--radius-full);background:none;color:var(--text);font:600 var(--text-xs)/var(--leading-xs) var(--font-body);white-space:nowrap}
button.ein-strip__chip{cursor:pointer}
button.ein-strip__chip:hover{background:var(--surface-hover)}
button.ein-strip__chip:active,button.ein-strip__chip[aria-expanded="true"]{background:var(--surface-pressed)}
.ein-strip__chip[data-status="ok"]{--_dot:var(--ok)}
.ein-strip__chip[data-status="warning"]{--_dot:var(--amber)}
.ein-strip__chip[data-status="nok"]{--_dot:var(--nok)}
.ein-strip__chip[data-status="info"]{--_dot:var(--blue)}
.ein-strip__dot{flex:none;width:var(--space-2);height:var(--space-2);border-radius:var(--radius-disc);background:var(--_dot)}
.ein-strip__chip[data-status="nok"] .ein-strip__dot{border-radius:var(--radius-control)}
.ein-strip__chip[data-status="warning"] .ein-strip__dot{border-radius:var(--radius-control);transform:rotate(45deg)}
.ein-strip__value{font-family:var(--font-mono);font-weight:400;color:var(--text-secondary)}
.ein-strip--lg .ein-strip__chip{height:var(--control-lg);padding:0 var(--space-4);font-size:var(--text-sm);line-height:var(--leading-sm)}
.ein-strip--lg .ein-strip__dot{width:var(--space-3);height:var(--space-3)}
@media (max-width:599px){.ein-strip{padding:var(--space-1) var(--space-2)}}

@media (prefers-reduced-motion:reduce){
  .ein-popover-panel,.ein-fp,.ein-drawer--bottom,.ein-nav-item--pulse>.ein-icon{animation-duration:1ms!important;animation-iteration-count:1!important}
}

/* Alert bar solid (2.13.0): a full-width band in the saturated state colour, for a condition that must not be missed (machine stopped, part held).
   Amber takes dark text (on-warning, 7.9:1); the others white; `color` (data) gets the readable ink for it. Every text inherits the ink (the bar's own
   secondary colours would vanish on the fill). Buttons inside keep their own surface. --_alt is the text of the "off" half of the blink, on the page surface. */
.ein-alert.ein-alert--solid{--_bg:var(--info-solid);--_on:var(--on-info);--_alt:var(--info-fg);background:var(--_bg);border-bottom-color:var(--_bg);color:var(--_on)}
.ein-alert.ein-alert--solid.ein-alert--ok{--_bg:var(--success-solid);--_on:var(--on-success);--_alt:var(--success-fg)}
.ein-alert.ein-alert--solid.ein-alert--nok{--_bg:var(--danger-solid);--_on:var(--on-danger);--_alt:var(--danger-fg)}
.ein-alert.ein-alert--solid.ein-alert--warning{--_bg:var(--warning-solid);--_on:var(--on-warning);--_alt:var(--warning-fg)}
.ein-alert.ein-alert--solid>.ein-icon,.ein-alert.ein-alert--solid .ein-alert__main,.ein-alert.ein-alert--solid .ein-alert__title,.ein-alert.ein-alert--solid .ein-alert__body,.ein-alert.ein-alert--solid .ein-alert__meta,.ein-alert.ein-alert--solid>.ein-button--icon{color:inherit}
.ein-alert--solid>.ein-button--icon:hover{background:color-mix(in srgb,currentColor 14%,transparent)}
/* blink: 1 Hz like an unacknowledged alarm, between the solid band and the same band on the page surface (text stays readable in both halves);
   kept under reduced motion, as alarms are (ISA-101) */
.ein-alert.ein-alert--blink{animation:ein-alert-blink var(--duration-blink) steps(1,end) infinite}
@keyframes ein-alert-blink{50%{background-color:var(--surface);color:var(--_alt)}}
@media (prefers-reduced-motion:reduce){.ein-alert.ein-alert--blink{animation:ein-alert-blink var(--duration-blink) steps(1,end) infinite!important}}

/* EINES 2.2.0 — calmer look, second pass: state, feedback and data. Tokens only.
   Rule of the pass: the colour of a state lives in the icon and in a thin border; titles in `heading`, body in `text`; no large state fills
   (only the verdict of InspectionResult, and warning / NOK / info cells of a StatusMatrix). Loaded after the base rules (name order). */

/* ---------- StatusBadge: soft (icon + text) is the default; tinted and solid only when asked for ---------- */
.ein-badge--soft{--_bg:transparent;padding-inline:0}
.ein-statusgrid>.ein-badge--soft,.ein-popover-panel .ein-badge--soft,.ein-fp__body .ein-badge--soft{color:var(--text);font-weight:400}
:is(.ein-statusgrid,.ein-popover-panel,.ein-fp__body)>.ein-badge--soft>.ein-icon{color:var(--_fg)}
:is(.ein-statusgrid,.ein-popover-panel,.ein-fp__body)>.ein-badge--soft .ein-badge__dot{color:var(--_fg)}

/* ---------- InspectionResult: solid verdict, readable from a distance; pending on a surface; optional tinted ---------- */
.ein-result__meta{font:400 var(--text-md)/var(--leading-md) var(--font-mono);opacity:.92;white-space:normal;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}   /* the reason of a NOK: two lines (full text on hover); on touch it wraps entirely (components-touch.css) */
.ein-result--pending{--_bg:var(--surface);--_fg:var(--text);box-shadow:inset 0 0 0 var(--stroke-rule) var(--border-strong)}
.ein-result--tinted{--_c:var(--success-fg);--_line:var(--success-solid);--_bg:var(--success-bg);--_fg:var(--heading);box-shadow:inset 0 0 0 var(--stroke-rule) var(--_line)}
.ein-result--tinted.ein-result--nok{--_c:var(--danger-fg);--_line:var(--danger-solid)}
.ein-result--tinted.ein-result--warning{--_c:var(--warning-fg);--_line:var(--warning-solid)}
.ein-result--tinted .ein-result__icon{color:var(--_c)}
.ein-result--tinted .ein-result__meta{color:var(--text-secondary);opacity:1}
.ein-result--tinted.ein-result--nok{--_bg:var(--danger-bg)}
.ein-result--tinted.ein-result--warning{--_bg:var(--warning-bg)}
.ein-result--print{box-shadow:none}

/* ---------- Alert: surface + thin border, coloured icon, title in heading ---------- */
.ein-alert{width:100%;box-sizing:border-box;background:var(--surface);border:var(--stroke-rule) solid var(--border);color:var(--text)}
.ein-alert__title{color:var(--heading)}
.ein-alert--bar{min-height:var(--control-md);padding:0 var(--space-4);border-width:0 0 var(--stroke-rule);border-radius:var(--radius-none);border-bottom-color:var(--border);overflow:hidden}
.ein-alert--bar .ein-alert__main{flex-wrap:nowrap;min-width:0;overflow:hidden}
.ein-alert--bar :is(.ein-alert__title,.ein-alert__body){flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;overflow-wrap:normal}
.ein-alert--bar .ein-alert__body{color:var(--text-secondary)}
.ein-alert--bar .ein-button--icon{margin-block:0}
.ein-alert__meta{font-family:var(--font-mono);font-variant-numeric:tabular-nums}

/* ---------- Toast: raised surface + shadow, coloured icon, no bar and no gradient; 360 px wide ---------- */
.ein-toaster{width:min(360px,calc(100vw - var(--space-8)))}
.ein-toast{--_c:var(--info-fg);box-sizing:border-box;width:360px;max-width:100%;background:var(--surface-raised);color:var(--text);border:var(--stroke-rule) solid var(--border);box-shadow:var(--shadow-md)}
.ein-toast--ok{--_c:var(--success-fg)} .ein-toast--nok{--_c:var(--danger-fg)} .ein-toast--warning{--_c:var(--warning-fg)} .ein-toast--info{--_c:var(--info-fg)}
.ein-toast__title{color:var(--heading)}
.ein-toast__body{opacity:1;color:var(--text-secondary)}
.ein-toast .ein-button{--_fg:var(--text-secondary)}
.ein-toast__actions{display:flex;flex-wrap:wrap;gap:var(--space-2);margin-top:var(--space-2)}
.ein-toast .ein-toast__actions .ein-button{--_fg:var(--text)}
@media (max-width:599px){.ein-toast{width:auto}}

/* ---------- ProgressBar: label and percentage never touch, tabular figures, finished = primary ---------- */
.ein-progress__head{align-items:baseline;gap:var(--space-3)}
.ein-progress__head>span:first-child{min-width:0;overflow-wrap:anywhere}
.ein-progress__head>span:last-child:not(:first-child){flex:none;margin-left:auto;font-variant-numeric:tabular-nums}
.ein-progress__track{background:var(--tonal)}

/* ---------- LoadingScreen / Spinner ---------- */
.ein-loading__bar{height:var(--stroke-line);background:var(--neutral-700)}
.ein-loading__message{color:var(--neutral-400);opacity:1}
.ein-loading__tunnel{--_ground:var(--neutral-600);--_shell:var(--neutral-600)}
.ein-tunnel__seam,.ein-tunnel__ground{stroke:var(--neutral-600)}
.ein-loading__tunnel .ein-tunnel__ground{stroke:var(--neutral-600)}

/* ---------- Skeleton: ready-made compositions with the real radii ---------- */
.ein-skeleton-text{display:grid;gap:var(--space-2);width:100%;min-width:0}
.ein-skeleton-text>.ein-skeleton{height:var(--space-3)}
.ein-skeleton.is-short{width:60%}
.ein-skeleton-row{display:flex;align-items:center;gap:var(--space-3);width:100%;min-width:0}
.ein-skeleton.is-disc{flex:none;width:var(--space-10);height:var(--space-10);border-radius:var(--radius-full)}
.ein-skeleton-card{display:grid;gap:var(--space-4);width:100%;min-width:0;padding-bottom:var(--space-4);overflow:hidden;border:var(--stroke-rule) solid var(--border);border-radius:var(--radius-container);background:var(--surface)}
.ein-skeleton-card>.ein-skeleton-text{padding-inline:var(--space-4);box-sizing:border-box}
.ein-skeleton.is-media{height:auto;aspect-ratio:16/9;border-radius:0}

/* ---------- EmptyState: bare icon, app-heading title, minimum height ---------- */
.ein-empty{align-content:center;min-height:calc(var(--space-16) * 3)}
.ein-empty__icon{width:auto;height:auto;border-radius:0;background:none;color:var(--text-secondary);margin-bottom:var(--space-1)}
.ein-empty__icon .ein-icon{width:var(--space-8);height:var(--space-8)}
.ein-empty--unavailable .ein-empty__icon{background:none;color:var(--warning-fg)}

/* ---------- EmbedFrame: centred spinner on a sunken surface; unavailable / error with EmptyState ---------- */
.ein-embed__state{background:var(--surface-sunken)}
.ein-embed__state .ein-empty{min-height:0;padding-block:var(--space-6)}

/* ---------- StatusStrip: figures in data-mono ---------- */
.ein-strip__value,.ein-strip__end{font-family:var(--font-mono);font-variant-numeric:tabular-nums}
.ein-strip__value{font-size:var(--text-xs);color:var(--text)}

/* ---------- Card: selected = primary border + check; tone = icon and border only; caption footer ---------- */
.ein-card{position:relative}
.ein-card--interactive:hover{border-color:var(--border);box-shadow:var(--shadow-md)}
/* interactive card: a transparent button over the whole card takes the click and the focus; anything pressable inside sits above it */
.ein-card__hit{position:absolute;inset:0;z-index:0;margin:0;padding:0;border:0;border-radius:inherit;background:transparent;cursor:pointer;-webkit-tap-highlight-color:transparent}
.ein-card__hit:focus-visible{outline:var(--stroke-line) solid var(--focus-ring);outline-offset:2px}
:where(.ein-card--interactive :is(a,button,input,select,textarea,summary,[tabindex]):not(.ein-card__hit)){position:relative;z-index:1}
.ein-card.is-selected,.ein-card--interactive.is-selected:hover{background:var(--surface);border-color:var(--primary-border);box-shadow:0 0 0 var(--stroke-rule) var(--primary-border),var(--shadow-sm)}
.ein-card__check{position:absolute;top:var(--space-3);right:var(--space-3);z-index:1;display:grid;place-items:center;width:var(--space-5);height:var(--space-5);border-radius:var(--radius-full);background:var(--primary);color:var(--on-primary);pointer-events:none}
.ein-card__check .ein-icon{width:var(--space-3);height:var(--space-3)}
.ein-card.is-selected>.ein-card__header{padding-right:calc(var(--space-5) + var(--space-6))}
:is(.ein-card--ok,.ein-card--warning,.ein-card--nok,.ein-card--info) .ein-card__header{padding-bottom:0;background:none;border-radius:0}
:is(.ein-card--ok,.ein-card--warning,.ein-card--nok,.ein-card--info) .ein-card__body{padding-top:var(--space-4)}
.ein-card__footer{font:400 var(--text-xs)/var(--leading-xs) var(--font-body);color:var(--text-secondary)}

/* ---------- KpiCard: tabular figures, one-line change, sparkline beside the value ---------- */
.ein-kpi__main{display:flex;align-items:flex-end;justify-content:space-between;gap:var(--space-3);min-width:0}
.ein-kpi__main>.ein-kpi__value{flex:1 1 auto;min-width:0;font-variant-numeric:tabular-nums}
.ein-kpi__main>.ein-kpi__chart{flex:none;align-self:flex-end;line-height:0}
.ein-kpi__foot{display:block;min-width:0;min-height:var(--leading-xs)}
.ein-kpi__delta{display:flex;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}

/* ---------- StatTile: surface and thin border, the state only in the icon; two lines at most ---------- */
.ein-stat--warning,.ein-stat--nok,.ein-stat--info{border-color:var(--border);background:var(--surface)}
.ein-stat__label{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}
.ein-stat.is-text .ein-stat__value{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}

/* ---------- DataTable: quiet header, 40 / 32 px rows, selected row filled (no bar) ---------- */
.ein-datatable th{background:var(--surface);border-bottom-color:var(--border-strong);height:var(--control-md)}
.ein-datatable td{height:var(--control-md)}
.ein-datatable--compact td,.ein-datatable--compact th{height:var(--control-sm)}
.ein-datatable--compact tfoot td{height:var(--control-sm)}
.ein-datatable__edit{min-height:var(--control-md)}
.ein-datatable--compact .ein-datatable__edit{min-height:var(--control-sm)}
.ein-datatable .is-num{font-variant-numeric:tabular-nums}
.ein-datatable tbody tr[aria-selected="true"]{background:var(--surface-selected);box-shadow:none}

/* ---------- KeyValueList: label in caption, value in body semibold ---------- */
.ein-kv:not(.ein-kv--inline) .ein-kv__label{font:400 var(--text-xs)/var(--leading-xs) var(--font-body)}
.ein-kv:not(.ein-kv--inline) .ein-kv__value{margin-top:var(--space-0-5)}
.ein-kv__data{color:var(--heading);font-weight:600}

/* ---------- CodeBlock: syntax with chart tokens (mixed toward the text colour for AA), log levels in *-fg, never bold ---------- */
.ein-code__t-key{color:color-mix(in srgb,var(--chart-1) 55%,var(--heading))}
.ein-code__t-num{color:color-mix(in srgb,var(--chart-2) 55%,var(--heading))}
.ein-code__t-lit{color:color-mix(in srgb,var(--chart-7) 55%,var(--heading));font-weight:400}
.ein-code__t-time,.ein-code__t-dim{color:var(--text-secondary)}
.ein-code__t-err{color:var(--danger-fg);font-weight:400}
.ein-code__t-warn{color:var(--warning-fg);font-weight:400}
.ein-code__t-info{color:var(--info-fg);font-weight:400}

/* ---------- SelectionChips: neutral tag chips and a link to clear them ---------- */
.ein-selchip{animation:ein-pop-in var(--duration-3) var(--ease-enter) both}
.ein-selchip.is-tag{padding-right:var(--space-1);color:var(--text)}
.ein-linkbtn{appearance:none;display:inline-flex;align-items:center;min-height:var(--control-sm);margin:0;padding:0 var(--space-2);border:0;border-radius:var(--radius-control);background:none;color:var(--text-link);font:600 var(--text-xs)/var(--leading-xs) var(--font-body);text-decoration:underline;text-underline-offset:var(--space-0-5);cursor:pointer}
.ein-linkbtn:hover{color:var(--heading)}
.ein-linkbtn:focus-visible{outline:var(--stroke-line) solid var(--focus-ring);outline-offset:2px}

/* ---------- Charts: Meter, Heatmap, PolarChart, StatusMatrix, Timeline ---------- */
.ein-meter__track{background:var(--tonal)}
.ein-meter__limit{position:absolute;top:0;bottom:0;z-index:1;width:var(--stroke-rule);margin-left:calc(var(--stroke-rule) / -2);background:var(--border-strong);pointer-events:none}
.ein-meter__accept{background:var(--border);border-inline:var(--stroke-rule) solid var(--border-strong)}
.ein-heatmap{gap:var(--space-0-5)}
.ein-heatmap__cell{border-radius:var(--radius-mark)}
.ein-polar .ein-chart__bandfill{opacity:.08}
.ein-statusmatrix__cell.is-ok,.ein-statusmatrix__key.is-ok{--_bg:transparent;--_fg:var(--success-fg)}
.ein-statusmatrix__cell.is-info,.ein-statusmatrix__key.is-info{--_fg:var(--on-info)}
.ein-statusmatrix__chip.is-ok{background:none;padding-inline:0}
.ein-timeline__bar{top:50%;bottom:auto;height:var(--space-4);transform:translateY(-50%);padding:0 var(--space-0-5);border-radius:calc(var(--radius-mark) * 1.5);overflow:hidden}
.ein-timeline__bar>.ein-timeline__bartext{display:none}
.ein-timeline__bar>.ein-icon{width:var(--space-3);height:var(--space-3)}
.ein-timeline__marktag{padding:0;border-radius:0;background:none;color:var(--text-secondary);display:inline-flex;align-items:center;gap:var(--space-1)}
.ein-timeline__marktag::before{content:"";flex:none;width:calc(var(--space-1) + var(--space-0-5));height:calc(var(--space-1) + var(--space-0-5));border-radius:var(--radius-full);background:var(--_c)}

/* ---------- AlarmList: no coloured left border, only the unacknowledged high one has a fill ---------- */
.ein-alarm{border-left:0}
.ein-alarm.is-p1.is-unack,.ein-alarm.is-p2.is-unack,.ein-alarm.is-p3.is-unack{border-left-color:transparent}
.ein-alarm.is-p2.is-unack,.ein-alarm.is-p3.is-unack{background:none}
.ein-alarm__time{font-variant-numeric:tabular-nums}

/* ---------- ReportSheet: figures in data-mono; the verdict reads without colour (icon + word + outline) ---------- */
.ein-report__field dd{font-family:var(--font-mono);font-variant-numeric:tabular-nums}
.ein-report .ein-kpi__num,.ein-report .ein-stat__value{font-family:var(--font-mono)}
.ein-report .ein-result--print .ein-result__verdict{letter-spacing:.04em}

/* ---------- KpiCard row: four cards fit in a ~900 px container (minimum ~208 px, was 224) ---------- */
.ein-kpi-row{grid-template-columns:repeat(auto-fit,minmax(min(100%,calc(var(--space-16) * 3.25)),1fr))}
.ein-datatable tbody tr[tabindex]:focus-visible{outline:var(--stroke-line) solid var(--focus-ring);outline-offset:calc(var(--stroke-line) * -1)}
.ein-chip:hover:not(:disabled):not(.is-tag) .ein-chip__count,.ein-chip:active:not(:disabled):not(.is-tag) .ein-chip__count{color:var(--text)}

/* EINES — DataTable cells with Checkbox / Switch / Radio and the "all" checkbox of a column header. Tokens only. */
.ein-datatable :is(th,td).is-control{text-align:center;padding-inline:var(--space-2)}
.ein-datatable :is(th,td).is-control.is-left{text-align:left;padding-inline:var(--space-4)}
.ein-datatable :is(th,td).is-control.is-right{text-align:right;padding-inline:var(--space-4)}
.ein-datatable td.is-control{overflow:visible!important;padding-block:0}
.ein-datatable td.is-control :is(.ein-check,.ein-switch){gap:0;align-items:center;justify-content:center;min-height:var(--control-md);min-width:var(--control-md)}
.ein-datatable td.is-control.is-left :is(.ein-check,.ein-switch){justify-content:flex-start}
.ein-datatable td.is-control.is-right :is(.ein-check,.ein-switch){justify-content:flex-end}
.ein-datatable td.is-control .ein-check input{margin:0}
.ein-datatable--compact td.is-control :is(.ein-check,.ein-switch),.ein-datatable--d-compact td.is-control :is(.ein-check,.ein-switch){min-height:var(--control-sm)}
.ein-datatable--d-touch td.is-control :is(.ein-check,.ein-switch){min-height:var(--control-lg);min-width:var(--control-lg)}
.ein-datatable.ein-datatable--virtual td.is-control :is(.ein-check,.ein-switch){min-height:calc(var(--ein-rh) - var(--stroke-rule))}
@media (any-pointer:coarse){.ein-datatable td.is-control :is(.ein-check,.ein-switch){min-height:var(--ein-touch);min-width:var(--ein-touch)}}

/* header: column name + "all" checkbox */
.ein-datatable__colhead{display:inline-flex;align-items:center;gap:var(--space-2);max-width:100%}
.ein-datatable th.is-control.is-left .ein-datatable__colhead{justify-content:flex-start}
.ein-datatable__colhead>.ein-check{gap:0;min-height:var(--control-sm);min-width:var(--control-sm);align-items:center;justify-content:center}
.ein-datatable__colhead>.ein-check input{margin:0}
@media (any-pointer:coarse){.ein-datatable__colhead>.ein-check{min-height:var(--ein-touch);min-width:var(--ein-touch)}}

/* paper: a mark, not a control */
.ein-datatable__mark-cell{display:inline-flex;align-items:center;justify-content:center;min-width:var(--space-4);color:var(--text)}
.ein-datatable__mark-cell:not(.is-on){color:var(--text-secondary)}
:is(.ein-datatable--print,.ein-report .ein-datatable) td.is-control{padding:var(--space-2) var(--space-3);overflow:visible}

/* EINES 1.10.0 — touch screens: every control the operator taps reaches 44 px of tappable area when the browser reports a coarse pointer
   (`any-pointer: coarse`, detected automatically; a touch screen next to a mouse counts too; a desktop without touch screen is unchanged). Where the drawing must not change, the zone grows with an
   invisible pseudo-element; where the control is a row or a button in a bar, its real size grows. Tokens only. */
@media (any-pointer:coarse){
  :root{--ein-touch:var(--touch-target)}

  /* number field: the − / + buttons (also at size sm and lg, and inside RangeSlider fields) */
  .ein-number__steps button,.ein-number--sm .ein-number__steps button,.ein-number--lg .ein-number__steps button{position:relative;width:var(--ein-touch)}
  .ein-number__steps button::before{content:"";position:absolute;top:calc(var(--space-2) * -1);bottom:calc(var(--space-2) * -1);left:calc(var(--stroke-rule) * -1);right:calc(var(--stroke-rule) * -1)}

  .ein-legend__btn{min-height:var(--ein-touch)}   /* interactive chart legend: 44 px with a finger */
  .ein-colorpicker__mini{width:var(--ein-touch);height:var(--ein-touch)}   /* recent swatches: 44 px with a finger (2.5.8) */

  /* sliders */
  .ein-slider__input{height:var(--control-lg)}
  .ein-rslider,.ein-rslider.is-lg{--_h:var(--control-lg)}
  .ein-colorpicker__hue::before{content:"";position:absolute;left:0;right:0;top:calc(var(--space-3) * -1 - var(--space-0-5));bottom:calc(var(--space-3) * -1 - var(--space-0-5))}

  /* image viewer: zoom, layers, defect list, defect boxes (the zone is at least 44 screen px whatever the zoom) */
  .ein-viewer__zoom,.ein-viewer__ovtoggle{height:var(--ein-touch);min-width:var(--ein-touch)}
  .ein-viewer__zoom{min-width:var(--ein-touch)}
  .ein-defect{min-height:var(--ein-touch)}
  .ein-viewer__defect::after,.ein-cover__hit::after{content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
    width:max(100%,calc(var(--ein-touch) / var(--s,1)));height:max(100%,calc(var(--ein-touch) / var(--s,1)))}

  /* data table: sort button and checkboxes */
  .ein-datatable th,.ein-datatable--compact th{height:var(--ein-touch)}
  button.ein-datatable__sort{min-height:var(--ein-touch)}
  .ein-datatable .is-check{padding-left:var(--space-2)}
  .ein-datatable .is-check .ein-check{min-width:var(--ein-touch);justify-content:center}

  /* checkbox, radio, switch: the label is the target */
  .ein-check{padding-block:calc((var(--ein-touch) - var(--icon-md)) / 2)}
  .ein-switch{min-height:var(--ein-touch)}

  /* chips, charts, segmented control, strip, galleries */
  .ein-fbchip__x::before{content:"";position:absolute;inset:calc(var(--space-2) * -1 - var(--space-0-5))}
  .ein-chart__toggle{position:relative;z-index:1}
  .ein-chart__toggle::before{content:"";position:absolute;left:calc(var(--space-1) * -1);right:calc(var(--space-1) * -1);top:calc(var(--space-2) * -1);bottom:calc(var(--space-2) * -1)}
  .ein-segmented button{min-height:var(--ein-touch);min-width:var(--ein-touch)}
  .ein-chip:not(.is-tag),.ein-btngroup>.ein-button{min-height:var(--ein-touch)}
  .ein-strip__chip{height:var(--ein-touch)}
  .ein-thumb__check{width:var(--ein-touch);height:var(--ein-touch)}
  .ein-heatmap__cell.is-selectable{min-height:var(--ein-touch)}
  .ein-timeline__grid{grid-auto-rows:max(var(--_rh),var(--ein-touch))}

  /* date range picker: days, weekday heads, shortcuts and month title reach 44 px (the calendar grows; it already fits the screen) */
  .ein-datepicker__preset{height:var(--ein-touch)}
  .ein-cal__title{height:var(--ein-touch)}
  .ein-cal__grid th,.ein-cal__day{width:var(--ein-touch)}
  .ein-cal__day{height:var(--ein-touch)}
}
@media (any-pointer:coarse) and (max-width:359px){
  .ein-cal__grid{width:100%;table-layout:fixed}                                  /* very narrow phones: the columns shrink, the 44 px height stays */
  .ein-cal__grid th,.ein-cal__day{width:100%;min-width:0}
}

/* Critical text is never cut where there is no hover to read it in full: the reason of a NOK and the text of a bar Alert wrap entirely */
@media (any-pointer:coarse){
  .ein-result__meta{display:block;overflow:visible;-webkit-line-clamp:unset}
  .ein-alert--bar{min-height:var(--control-md);height:auto;padding-block:var(--space-2)}
  .ein-alert--bar .ein-alert__main{flex-wrap:wrap;overflow:visible}
  .ein-alert--bar :is(.ein-alert__title,.ein-alert__body){flex:1 1 auto;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
}

/* EINES — TreeView: folding nodes, counter, state icon, selection by form (relief + thin border + bold; no 3 px bar, that is for navigation). Tokens only. */
.ein-tree{--_h:var(--control-md);list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--space-0-5);font-size:var(--text-sm);line-height:var(--leading-sm);color:var(--text)}
.ein-tree--sm{--_h:var(--control-sm)}
.ein-tree--lg{--_h:var(--control-lg)}
@media (any-pointer:coarse){.ein-tree{--_h:max(var(--_h),var(--ein-touch))}}
.ein-tree__row{display:flex;align-items:center;gap:var(--space-2);min-height:var(--_h);padding-block:0;padding-inline:calc(var(--space-2) + var(--ein-lvl,0) * var(--space-5)) var(--space-3);border:var(--stroke-rule) solid transparent;border-radius:var(--radius-control);background:none;color:var(--text);cursor:pointer;outline:none;user-select:none}
/* the treeitem is the row's main part; the `actions` sit beside it, outside the treeitem, so their buttons are real, reachable controls */
.ein-tree__item{flex:1;min-width:0;align-self:stretch;display:flex;align-items:center;gap:var(--space-2);outline:none}
.ein-tree__row:hover{background:var(--surface-hover)}
.ein-tree__row:has(>.ein-tree__item:focus-visible){outline:var(--stroke-line) solid var(--focus-ring);outline-offset:calc(var(--stroke-line) * -1)}
.ein-tree__chev{flex:none;display:inline-flex;align-items:center;justify-content:center;width:var(--space-6);height:var(--space-6);margin-inline-start:calc(var(--space-1) * -1);color:var(--text-secondary);border-radius:var(--radius-control)}
.ein-tree__row.is-branch .ein-tree__chev:hover{background:var(--surface-hover);color:var(--text)}
.ein-tree__chev .ein-icon{transition:transform var(--duration-1) var(--ease-standard)}
.ein-tree__item[aria-expanded="true"]>.ein-tree__chev .ein-icon{transform:rotate(90deg)}
.ein-tree__icon{flex:none;color:var(--text-secondary)}
.ein-tree__label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ein-tree__status{flex:none;display:inline-flex;color:var(--text-secondary)}
.ein-tree__row[data-status="ok"] .ein-tree__status{color:var(--success-fg)}
.ein-tree__row[data-status="nok"] .ein-tree__status{color:var(--danger-fg)}
.ein-tree__row[data-status="warning"] .ein-tree__status{color:var(--warning-fg)}
.ein-tree__count{flex:none;min-width:var(--space-6);padding:0 var(--space-2);border-radius:var(--radius-full);background:var(--tonal);color:var(--text-secondary);font-family:var(--font-mono);font-size:var(--text-xs);line-height:var(--leading-xs);text-align:center;font-variant-numeric:tabular-nums}
.ein-tree__actions{flex:none;display:inline-flex;align-items:center;gap:var(--space-1)}
/* selected: light relief + thin border + bold (the mark is the shape, not the colour). Inside it the state icon keeps its own shape and takes the text colour, readable on the relief in both themes. */
.ein-tree__row.is-selected{background:var(--selected-surface);color:var(--on-selected);border-color:var(--border-strong);font-weight:700;box-shadow:var(--shadow-sm)}
.ein-tree__row.is-selected :is(.ein-tree__status,.ein-tree__icon,.ein-tree__chev){color:var(--on-selected)}
.ein-tree__row.is-selected .ein-tree__count{background:var(--selected-track);color:var(--on-selected)}
.ein-tree__row.is-disabled{color:var(--text-disabled);cursor:not-allowed}
.ein-tree__row.is-disabled:hover{background:none}
@media (prefers-reduced-motion:reduce){.ein-tree__chev .ein-icon{transition:none}}

.ein-header{display:flex;flex-direction:column;gap:6px}
.ein-header::before{content:"";display:block;width:var(--style-line);height:var(--stroke-line);background:var(--rule);margin-bottom:10px}
.ein-header--right{align-items:flex-end;text-align:right}
.ein-kicker{font-family:var(--font-display);font-size:12px;line-height:16px;font-weight:350;text-transform:uppercase;letter-spacing:.02em;color:var(--text);margin:0}
.ein-title{font-family:var(--font-display);font-size:33px;line-height:36px;font-weight:700;text-transform:uppercase;color:var(--heading);margin:0}
.ein-title small{font-size:31px;font-weight:350;text-transform:none;margin-left:.3em}
.ein-topic{font-family:var(--font-body);font-size:11px;letter-spacing:.35em;text-transform:uppercase;color:var(--text);margin:0}
.ein-slide-title{font-family:var(--font-body);font-size:40px;line-height:44px;letter-spacing:.06em;font-weight:400;color:var(--heading);margin:0}

.ein-footer{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);column-gap:var(--space-4);align-items:center;height:var(--footer-height);padding:0 24px;background:var(--footer-bar);color:var(--on-footer);font-family:var(--font-display);font-size:12px;font-weight:350}
.ein-footer img{height:15px;display:block}
.ein-footer>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ein-footer__right{justify-self:end;text-align:right;max-width:100%;font-family:var(--font-body);font-size:11px;letter-spacing:.3em;text-transform:uppercase}

.ein-table{border-collapse:collapse;width:100%;font-family:var(--font-body);font-size:15px;line-height:20px;color:var(--text)}
.ein-table th{font-weight:700;font-size:17px;color:var(--heading);text-align:center;padding:10px 12px;border-bottom:var(--stroke-rule) solid var(--rule)}
.ein-table td{padding:10px 12px;vertical-align:top;border-bottom:var(--stroke-rule) solid var(--rule)}
.ein-table td:first-child{font-weight:700;color:var(--heading)}
.ein-table .is-highlight{background:var(--highlight);border-left:var(--stroke-rule) solid var(--rule);border-right:var(--stroke-rule) solid var(--rule)}
.ein-table thead .is-highlight{border-top:var(--stroke-rule) solid var(--rule)}

.ein-box{background:var(--accent);color:var(--on-accent);padding:var(--space-6);font-family:var(--font-body);font-size:15px;line-height:21px}
.ein-box__title{font-family:var(--font-body);font-weight:700;font-size:15px;text-transform:uppercase;margin:0 0 var(--space-4)}
.ein-bar{background:var(--accent);color:var(--on-accent);font-family:var(--font-body);font-weight:700;font-size:15px;text-transform:uppercase;padding:2px 6px;margin:0 0 var(--space-4)}


.ein-disc{display:flex;flex-direction:column;align-items:center;gap:var(--space-2);width:150px;text-align:center}
.ein-disc__icon{width:72px;height:72px;border-radius:var(--radius-disc);background:var(--accent);color:var(--on-accent);display:grid;place-items:center}
.ein-disc__label{font-family:var(--font-body);font-weight:700;font-size:11px;line-height:14px;text-transform:uppercase;color:var(--heading)}

.ein-doc{position:relative;width:340px;max-width:100%;height:440px;background:var(--white);border:1px solid var(--rule-subtle);overflow:hidden;font-family:var(--font-body)}
.ein-doc__band{height:150px;background:var(--dark-gray);padding:24px 22px;text-align:right}
.ein-doc__title{color:var(--white);font-family:var(--font-display);font-weight:700;font-size:20px;margin:0}
.ein-doc__subtitle{color:var(--green);font-weight:700;font-size:12px;margin:4px 0 0}
.ein-doc__mark{position:absolute;left:30px;top:52px;width:72px;opacity:.35}
.ein-doc__summary{position:absolute;left:130px;top:100px;width:170px;min-height:130px;background:var(--green);color:var(--dark-gray);padding:14px;font-size:9px;line-height:12px}
.ein-doc__summary b{display:block;text-align:center;font-size:9px;margin-bottom:6px;text-transform:uppercase}
.ein-doc__data{position:absolute;left:30px;bottom:24px;font-size:8px;line-height:11px;color:var(--dark-gray)}

.ein-sig{font-family:var(--font-body);color:var(--dark-gray);font-size:14px;line-height:19px}
.ein-sig__greet{font-weight:700;font-size:16px;margin:0 0 14px}
.ein-sig__name{font-weight:700;font-size:18px;letter-spacing:-.02em;color:var(--dark-gray);margin:0}
.ein-sig__legal{text-align:center;font-size:10px;line-height:13px;font-style:italic;margin-top:14px}
.ein-sig__legal b{display:block;font-style:italic}
.ein-banner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;background:var(--dark-gray);color:var(--white);padding:14px 18px;margin-top:12px;font-family:var(--font-display)}
.ein-banner img{height:13px;display:block;margin-bottom:8px}
.ein-banner strong{display:block;font-weight:700;font-size:17px;text-transform:uppercase}
.ein-banner span{font-size:13px;font-weight:350}
.ein-table-wrap{overflow-x:auto;max-width:100%}
.ein-table-wrap .ein-table{min-width:560px}
@media (max-width:559px){
  .ein-footer{grid-template-columns:auto minmax(0,1fr);padding:0 var(--space-4)}
  .ein-footer>span:first-child{display:none}
  .ein-title{font-size:26px;line-height:30px}
  .ein-title small{font-size:22px;display:block;margin:4px 0 0}
  .ein-slide-title{font-size:30px;line-height:36px}
}
