/* SmartPark by KeyPark – "Night Glass" design system (shared by the site server and the cloud platform).
   Works offline: the fonts are served from /ui/fonts (typography.css → fonts.css), nothing is loaded from the internet.
   Dark is the default theme; [data-theme="light"] switches to light. */
@import url("typography.css");
:root {
  /* KeyPark palette (owner, 30.09.2026): background, sidebar, card, border, primary green / hover / dark, text,
     warning and error are the owner's values; derived shades only where a text colour needs WCAG AA. */
  --bg: #06141c; --panel: #0d2430; --panel-2: #102b38; --panel-3: #0a1d27; --line: #173544; --line-2: #21465a;
  --text: #f1f5f9; --muted: #94afc0; --faint: #849fb0;
  --accent: #22c55e; --accent-ink: #052e16; --accent-soft: rgba(34, 197, 94, .12); --accent-ring: rgba(34, 197, 94, .24);
  --accent-hover: #34d399; --accent-dark: #16a34a; --accent-fill: #22c55e; --accent-fill-ink: #052e16;
  --blue: #4cb8f5; --lime: #34d399;
  --ok: #22c55e; --ok-bg: rgba(34, 197, 94, .13); --warn: #f59e0b; --warn-bg: rgba(245, 158, 11, .13);
  --bad: #f87171; --bad-bg: rgba(248, 113, 113, .10); --info: #4cb8f5; --info-bg: rgba(76, 184, 245, .13);
  --grad: linear-gradient(120deg, #16a34a 0%, #22c55e 50%, #34d399 100%);
  --brand-navy: #06141c;
  --radius: 16px; --radius-sm: 10px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .02) inset, 0 12px 32px -20px rgba(0, 0, 0, .6);
  --overlay: rgba(1, 8, 13, .72);
  color-scheme: dark;
}
:root[data-theme="light"] {
  /* light: the owner's fills; green / amber / red TEXT uses a darker shade of the same colour (AA on white) */
  --bg: #f8fafc; --panel: #ffffff; --panel-2: #f7f9fb; --panel-3: #f8fafc; --line: #d1e7dd; --line-2: #b7d5c6;
  --text: #0f172a; --muted: #64748b; --faint: #5b6b80;
  --accent: #15803d; --accent-ink: #ffffff; --accent-soft: rgba(34, 197, 94, .12); --accent-ring: rgba(22, 163, 74, .25);
  --accent-hover: #34d399; --accent-dark: #16a34a; --accent-fill: #22c55e; --accent-fill-ink: #052e16;
  --blue: #1d6fc2; --lime: #16a34a;
  --ok: #15803d; --ok-bg: #dcfce7; --warn: #b45309; --warn-bg: #fef3c7; --bad: #b91c1c; --bad-bg: #fee2e2; --info: #1a64b0; --info-bg: #e2eefa;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 10px 28px -18px rgba(15, 23, 42, .25);
  --overlay: rgba(15, 23, 42, .45);
  color-scheme: light;
}
/* 2.11 semantic names – aliases of the tokens above, one meaning each. Green = online / healthy, amber = warning,
   red = offline / critical, blue = information / selection, grey = inactive / unknown. State is never shown by colour
   alone: every chip and marker also has a word or an icon. */
:root {
  --surface: var(--panel); --surface-elevated: var(--panel-2); --border: var(--line); --border-strong: var(--line-2);
  --primary: var(--accent); --primary-hover: color-mix(in srgb, var(--accent) 86%, var(--text)); --on-primary: var(--accent-ink);
  --success: var(--ok); --warning: var(--warn); --danger: var(--bad); --selected: var(--info); --neutral: var(--faint);
  --text-primary: var(--text); --text-secondary: var(--muted); --text-muted: var(--faint);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font: var(--text-body); -webkit-font-smoothing: antialiased; }
b, strong, th, dt { font-weight: var(--fw-semibold); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
code, .mono, .tech { font-family: var(--font-mono); font-size: 12.5px; font-weight: var(--fw-regular); }
.tech b, .mono b, code b { font-weight: var(--fw-medium); }
.tech .badge, .tech .chip, .tech button { font-family: var(--font-body); }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.01em; overflow-wrap: break-word; }
h1 { font: 700 22px/1.25 var(--font-display); margin: 0 0 16px; }
h2 { font: var(--text-section-title); margin: 0 0 12px; }
h3 { font: var(--text-card-title); margin: 0 0 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
svg.i { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
svg.i.sm { width: 15px; height: 15px; } svg.i.lg { width: 22px; height: 22px; } svg.i.xs { width: 12px; height: 12px; stroke-width: 2.4; }

/* ------------------------------------------------------------------ shell */
.app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; --side-w: 248px; transition: grid-template-columns .22s cubic-bezier(.2, .7, .2, 1); }
@media (min-width: 901px) { .app.side-folded { --side-w: 68px; } }

/* side menu – "Intelligent Mobility Control Center" (2.12). Own tokens so the menu keeps its navy in dark mode and a
   quiet light surface in light mode; every text colour meets WCAG AA on the menu background (tests/test_v212_sidebar.py). */
:root {
  --sb-bg: #0a1d27; --sb-bg-2: #0b202b; --sb-text: #e2eaf0; --sb-text-2: #94afc0; --sb-head: #849fb0; --sb-icon: #6f8a9b;
  --sb-line: #173544; --sb-active: #0f3a2a; --sb-hover: rgba(226, 234, 240, .05); --sb-accent: var(--accent);
  --sb-glow: rgba(34, 197, 94, .35); --sb-grid: rgba(148, 175, 192, .035);
  --sb-tip-bg: #0d2430; --sb-tip-line: #173544; --sb-tip-text: #f1f5f9;
}
:root[data-theme="light"] {
  --sb-bg: #e2e8f0; --sb-bg-2: #e6ebf2; --sb-text: #0f172a; --sb-text-2: #475569; --sb-head: #475569; --sb-icon: #64748b;
  --sb-line: #cbd5e1; --sb-active: #d5f5e0; --sb-hover: rgba(15, 23, 42, .05); --sb-accent: var(--accent);
  --sb-glow: rgba(22, 163, 74, .22); --sb-grid: rgba(15, 23, 42, .025);
  --sb-tip-bg: #0f172a; --sb-tip-line: #0f172a; --sb-tip-text: #f8fafc;
}
.side { position: sticky; top: 0; height: 100vh; overflow-x: hidden; overflow-y: auto; display: flex; flex-direction: column; gap: 14px;
  padding: 16px 12px 14px; color: var(--sb-text); border-right: 1px solid var(--sb-line); box-shadow: 1px 0 18px -14px rgba(0, 0, 0, .55);
  background-color: var(--sb-bg);
  background-image: linear-gradient(180deg, var(--sb-bg-2), var(--sb-bg) 60%),
    linear-gradient(var(--sb-grid) 1px, transparent 1px), linear-gradient(90deg, var(--sb-grid) 1px, transparent 1px);
  background-size: 100% 100%, 24px 24px, 24px 24px; background-blend-mode: normal;
  scrollbar-width: thin; scrollbar-color: var(--sb-line) transparent; }
.side > * { flex-shrink: 0; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 2px 0 4px; min-height: 40px; color: var(--sb-text); }
.brand img.mark { width: 34px; height: 34px; flex-shrink: 0; }
.brand .bt { min-width: 0; flex: 1; white-space: nowrap; overflow: hidden; }
.brand b { display: block; font-family: var(--display); font-size: 16px; font-weight: 700; line-height: 1.15; }
.brand small { display: block; font-size: 9.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sb-head); }
.side-btn { flex-shrink: 0; width: 30px; height: 30px; padding: 0; display: grid; place-items: center; border-radius: 7px; border: 1px solid transparent;
  background: transparent; color: var(--sb-text-2); transition: color .18s, background-color .18s, border-color .18s; }
.side-btn:hover { color: var(--sb-text); background: var(--sb-hover); border-color: var(--sb-line); }
.side-btn svg.i { width: 17px; height: 17px; stroke-width: 1.6; }
.ctx { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 8px; background: var(--sb-hover); border: 1px solid var(--sb-line); color: var(--sb-text); }
.ctx > svg.i { color: var(--sb-text-2); }
.ctx .t { min-width: 0; flex: 1; display: flex; flex-direction: column; white-space: nowrap; overflow: hidden; }
.ctx .t b { font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.ctx .t span { font-size: 11px; font-weight: 600; color: var(--sb-text-2); }
.ctx .t span.on { color: var(--sb-accent); } .ctx .t span.off { color: var(--warn); }
.nav { display: flex; flex-direction: column; gap: 1px; }
.nav .grp { display: flex; flex-direction: column; gap: 1px; margin-top: 6px; }
.nav .sep { display: flex; align-items: center; gap: 6px; width: 100%; height: 28px; padding: 0 10px 0 13px; border: none; border-radius: 6px; background: transparent;
  font: 600 10.5px/1.4 var(--font-display); text-transform: uppercase; letter-spacing: .08em; color: var(--sb-head); white-space: nowrap; overflow: hidden; cursor: pointer;
  transition: color .18s, background-color .18s, opacity .18s; }
.nav .sep .st { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.nav .sep:hover { color: var(--sb-text-2); background: var(--sb-hover); }
.nav .sep:focus-visible { outline: 2px solid var(--sb-accent); outline-offset: -2px; }
.nav .sep svg.i { width: 14px; height: 14px; stroke-width: 1.8; color: var(--sb-icon); transition: transform .2s cubic-bezier(.2, .7, .2, 1); }
.nav .grp.shut .sep svg.i { transform: rotate(-90deg); }
/* a closed group still shows that something inside needs a look (LIVE, NEW, a count, devices offline) */
.nav .sep .gdot { display: none; width: 6px; height: 6px; border-radius: 99px; background: var(--warn); }
.nav .grp.shut:has(.nb-live) .sep .gdot { display: inline-block; background: var(--sb-accent); }
.nav .grp.shut:has(.nb-new) .sep .gdot { display: inline-block; background: var(--info); }
.nav .grp.shut:has(.nb.warn) .sep .gdot { display: inline-block; background: var(--warn); }
.nav .gi { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .22s cubic-bezier(.2, .7, .2, 1); }
.nav .grp.shut .gi { grid-template-rows: 0fr; }
.nav .gin { min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 1px; }
.nav .gin > * { flex-shrink: 0; }   /* entries slide in at full height while a group opens */
.nav a { position: relative; display: flex; align-items: center; gap: 11px; height: 34px; padding: 0 10px 0 13px; border-radius: 7px; color: var(--sb-text-2);
  font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; transition: color .18s, background-color .18s; }
.nav a svg.i { width: 17px; height: 17px; stroke-width: 1.6; color: var(--sb-icon); transition: color .18s, transform .18s; }
.nav a .lb { min-width: 0; overflow: hidden; text-overflow: ellipsis; transition: opacity .18s, transform .18s; }
.nav a:hover { background: var(--sb-hover); color: var(--sb-text); text-decoration: none; }
.nav a:hover svg.i { color: var(--sb-text-2); }
.nav a:hover .lb { transform: translateX(1px); }
.nav a.active { background: var(--sb-active); color: var(--sb-text); font-weight: 600; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03), 0 1px 2px rgba(0, 0, 0, .18); }
.nav a.active::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--sb-accent); box-shadow: 0 0 8px var(--sb-glow); }
.nav a.active svg.i { color: var(--sb-accent); }
.nav a .nw { margin-left: auto; display: inline-flex; flex-shrink: 0; }
.nav a .nw svg.i { width: 12px; height: 12px; color: var(--sb-head); }
.nav a:focus-visible, .side-btn:focus-visible, .lic-card:focus-visible, .side .foot a:focus-visible { outline: 2px solid var(--sb-accent); outline-offset: -2px; }
/* badges (real data only) */
.nb { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0; height: 18px; padding: 0 6px; border-radius: 99px;
  font-size: 10px; font-weight: 600; letter-spacing: .02em; line-height: 1; font-variant-numeric: tabular-nums;
  color: var(--sb-text); background: var(--sb-hover); border: 1px solid var(--sb-line); }
.nb.warn { color: var(--warn); background: var(--warn-bg); border-color: transparent; }
.nb-live, .nb-new { font-size: 9px; letter-spacing: .1em; }
.nb-live { color: var(--sb-accent); background: var(--accent-soft); border-color: transparent; }
.nb-live .pulse { width: 6px; height: 6px; border-radius: 99px; background: var(--sb-accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.nb-new { color: var(--info); background: var(--info-bg); border-color: transparent; }
.nb-dot { padding: 0; height: auto; border: none; background: none; gap: 5px; color: var(--sb-text-2); }
.nb-dot > i { width: 7px; height: 7px; border-radius: 99px; background: var(--ok); }
.nb-dot.warn { background: none; color: var(--warn); } .nb-dot.warn > i { background: var(--warn); }
.nav a:has(.nb-live) svg.i { color: var(--sb-accent); }
.lic-card { margin-top: auto; padding: 12px; border-radius: 8px; background: var(--sb-hover); border: 1px solid var(--sb-line); display: flex; flex-direction: column; gap: 7px; color: var(--sb-text); }
.lic-card:hover { text-decoration: none; border-color: var(--sb-tip-line); }
.lic-card .k { display: flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--sb-text-2); white-space: nowrap; }
.lic-card .k svg.i { color: var(--sb-accent); }
.lic-card .v { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lic-card .meter { height: 4px; border-radius: 99px; background: var(--sb-line); overflow: hidden; }
.lic-card .meter span { display: block; height: 100%; background: var(--grad); border-radius: 99px; }
.lic-card.warn .meter span { background: var(--warn); } .lic-card.bad .meter span { background: var(--bad); }
.nav + .foot { margin-top: auto; }
.side .foot { display: flex; flex-direction: column; gap: 2px; padding: 10px 4px 0; border-top: 1px solid var(--sb-line); font-size: 10.5px; color: var(--sb-head); white-space: nowrap; }
.side .foot a { color: var(--sb-text-2); }
.side .foot .fv { font-family: var(--mono); font-size: 10px; letter-spacing: .02em; }
/* folded: icons only; labels stay in the page for screen readers */
@media (min-width: 901px) {
  .app.side-folded .side { padding-left: 12px; padding-right: 12px; }
  .app.side-folded .brand { flex-direction: column; gap: 8px; padding: 0; }
  .app.side-folded .brand .bt, .app.side-folded .ctx .t, .app.side-folded .lic-card .v, .app.side-folded .lic-card .meter,
  .app.side-folded .nav a .lb, .app.side-folded .lic-card .k .lb, .app.side-folded .foot .fb {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .app.side-folded .ctx { justify-content: center; padding: 9px 0; }
  .app.side-folded .nav .grp { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--sb-line); }
  .app.side-folded .nav .sep { height: 0; padding: 0; opacity: 0; pointer-events: none; }
  .app.side-folded .nav .grp.shut .gi { grid-template-rows: 1fr; }
  .app.side-folded .nav a { overflow: visible; }
  .app.side-folded .nav a .nw { display: none; }
  .app.side-folded .nav a .nb { position: absolute; margin: 0; left: 31px; top: 2px; height: 14px; min-width: 14px; padding: 0 4px; font-size: 9px; justify-content: center;
    box-shadow: 0 0 0 2px var(--sb-bg); }
  .app.side-folded .nav a .nb > b { display: none; }
  .app.side-folded .nav a .nb-count > b, .app.side-folded .nav a .nb-dot.warn > b { display: inline; }
  .app.side-folded .nav a .nb-live, .app.side-folded .nav a .nb-new, .app.side-folded .nav a .nb-dot:not(.warn) { left: 32px; top: 6px; min-width: 0; width: 8px; height: 8px; padding: 0; border-radius: 99px; }
  .app.side-folded .nav a .nb-live { background: var(--sb-accent); } .app.side-folded .nav a .nb-new { background: var(--info); }
  .app.side-folded .nav a .nb-live .pulse { display: none; }
  .app.side-folded .nav a .nb-dot:not(.warn) > i { width: 8px; height: 8px; }
  .app.side-folded .nav a .nb-dot.warn { background: var(--warn-bg); color: var(--warn); }
  .app.side-folded .nav a .nb-dot.warn > i { display: none; }
  .app.side-folded .nav a.active::before { top: 9px; bottom: 9px; }
  .app.side-folded .lic-card { padding: 10px 0; align-items: center; }
  .app.side-folded .lic-card .k { gap: 0; }
  .app.side-folded .foot { align-items: center; padding: 10px 0 0; }
}
.side-tip { position: fixed; z-index: 60; pointer-events: none; max-width: 260px; padding: 5px 9px; border-radius: 6px; font-size: 11.5px; font-weight: 600; line-height: 1.35;
  color: var(--sb-tip-text); background: var(--sb-tip-bg); border: 1px solid var(--sb-tip-line); box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .55);
  opacity: 0; transform: translateX(-3px); transition: opacity .14s ease-out, transform .14s ease-out; }
.side-tip.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .app, .nav a, .nav a .lb, .nav a svg.i, .side-tip, .side-btn, .nav .gi, .nav .sep, .nav .sep svg.i { transition: none; }
}
.main { min-width: 0; display: flex; flex-direction: column; }
.top { height: 72px; display: flex; align-items: center; gap: 12px; padding: 0 32px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 10; }
.top .title { font: var(--text-page-title); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 0 0 auto; max-width: 42%; }
.top .grow { flex: 1; }
.top > .chip { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 13px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); font-size: 13px; white-space: nowrap; }
.top > .chip svg.i { color: var(--accent); }
.search { display: flex; align-items: center; gap: 10px; flex: 0 1 300px; min-width: 150px; height: 40px; padding: 0 12px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); color: var(--faint); }
.search input { border: none; background: transparent; padding: 0; height: 38px; outline: none; color: var(--text); }
.search input:focus { outline: none; box-shadow: none; }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
.kbd { font-family: var(--font); font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 5px; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.iconbtn { width: 40px; height: 40px; padding: 0; justify-content: center; position: relative; background: var(--panel); }
.iconbtn .dotn { position: absolute; top: 6px; right: 6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--warn); color: #1b1200; font-size: 10px; font-weight: 600; display: grid; place-items: center; }
.iconbtn .dotn:empty { display: none; }
.who { display: flex; align-items: center; gap: 10px; padding: 3px 12px 3px 3px; border-radius: 99px; border: 1px solid transparent; background: transparent; }
.who:hover { border-color: var(--line); }
.avatar { width: 36px; height: 36px; border-radius: 99px; background: var(--grad); color: #06231c; display: grid; place-items: center; font-weight: 600; font-size: 13px; flex-shrink: 0; }
.who .n { display: flex; flex-direction: column; text-align: left; line-height: 1.25; }
.who .n b { font-size: 13px; } .who .n span { font-size: 11.5px; color: var(--faint); }
.menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; padding: 6px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .55); z-index: 40; display: flex; flex-direction: column; }
.menu button { justify-content: flex-start; border: none; background: transparent; padding: 9px 11px; border-radius: 9px; width: 100%; font-weight: 600; }
.menu button:hover { background: var(--panel-2); }
.menu hr { border: none; border-top: 1px solid var(--line); margin: 5px 4px; width: auto; }
.content { padding: 26px 32px 60px; width: 100%; max-width: 1560px; }
.menu-btn { display: none; }
@media (max-width: 1100px) { .search { width: 220px; } .who .n { display: none; } }
@media (max-width: 900px) {
  .app, .app.side-folded { grid-template-columns: 1fr; }
  .side { position: fixed; left: -280px; width: 264px; z-index: 30; transition: left .2s; }
  .side-btn { display: none; }
  .side.open { left: 0; box-shadow: 0 0 0 100vmax var(--overlay); }
  .menu-btn { display: inline-flex; }
  .top { padding: 0 14px; gap: 8px; }
  .top > .chip, .top .search { display: none; }
  .content { padding: 16px; }
}

/* phones: the top bar keeps every control reachable (icons only), no sideways scrolling */
@media (max-width: 600px) {
  .top { height: 60px; padding: 0 10px; gap: 6px; }
  .top .title { flex: 1 1 auto; min-width: 0; max-width: none; font-size: 17px; }
  .top .grow { display: none; }
  .top > button.danger { font-size: 0; gap: 0; width: 40px; height: 40px; padding: 0; justify-content: center; }
  .top .lang-dd .lang-cur, .top .lang-dd svg.chev, .top .who > svg.i { display: none; }
  .top .lang-dd .lang-btn { padding: 0 11px; gap: 0; }
  .top .lang-dd .lang-list { left: auto; right: 0; }
  .top .who { padding: 2px; gap: 0; }
  .content { padding: 14px 12px 40px; }
}

/* page header */
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head > .ch-sub { margin: 0; align-self: center; flex: 1 1 280px; min-width: 0; }
.page-head .h { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.page-head .h h1 { margin: 0; font-size: 24px; }
.page-head .h .sub { color: var(--muted); font-size: 13.5px; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* banners & alerts */
.banner { margin: 16px 32px 0; padding: 11px 16px; border-radius: 12px; font-weight: 600; display: flex; gap: 12px; align-items: center; border: 1px solid transparent; }
.stack > .banner, .card .banner, .modal .banner { margin: 0; }
.banner.warn { background: var(--warn-bg); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.banner.bad { background: var(--bad-bg); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, transparent); }
.banner.info { background: var(--info-bg); color: var(--info); border-color: color-mix(in srgb, var(--info) 35%, transparent); }
.banner.ok { background: var(--ok-bg); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.banner a { color: inherit; font-weight: 600; text-decoration: underline; }
.alert { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; font-size: 13px; background: var(--warn-bg); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); color: var(--text); }
.alert svg.i { color: var(--warn); }
.alert.bad { background: var(--bad-bg); border-color: color-mix(in srgb, var(--bad) 35%, transparent); } .alert.bad svg.i { color: var(--bad); }
.alert a { color: var(--warn); font-weight: 600; } .alert.bad a { color: var(--bad); }
.bad-text { color: var(--bad); }

/* ------------------------------------------------------------------ cards & layout */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; min-width: 0; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; min-height: 24px; }
.card-head h2 { margin: 0; font-size: 15px; }
.card-head .sub { font-size: 12px; color: var(--faint); }
.card-head .end { margin-left: auto; display: flex; gap: 10px; align-items: center; font-size: 13px; font-weight: 600; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
@media (max-width: 1200px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: 1fr 1fr; } .g-main { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 16px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.right { text-align: right; }
.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.hide { display: none !important; }
.small { font-size: 12px; }

/* KPI */
.kpi .label { color: var(--muted); font-size: 13px; font-weight: 600; }
.kpi .value { font: var(--text-metric); letter-spacing: -.01em; margin-top: 8px; font-variant-numeric: tabular-nums; }
.kpi .value small { font-family: var(--font); font-size: 14px; color: var(--muted); font-weight: 600; letter-spacing: 0; margin-left: 6px; }
.kpi .sub { color: var(--faint); font-size: 12.5px; margin-top: 4px; }
.kpi .foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 12px; }
.kpi .trend { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.kpi .trend.up { color: var(--ok); } .kpi .trend.down { color: var(--warn); }
.kpi.ic { display: flex; gap: 14px; align-items: flex-start; }
.kpi.ic .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--panel-2); display: grid; place-items: center; color: var(--accent); flex-shrink: 0; }
.kpi.ic .value { margin-top: 4px; font-size: 28px; }
.kpi.ic .sub { font-weight: 600; }
.kpi.ic .sub.warn { color: var(--warn); } .kpi.ic .sub.bad { color: var(--bad); } .kpi.ic .sub.ok { color: var(--ok); }
svg.spark { display: block; overflow: visible; }

/* ------------------------------------------------------------------ buttons & inputs */
button, .btn { font: var(--text-button); border: 1px solid var(--line); background: var(--panel-2); color: var(--text); padding: 0 14px; height: 38px; border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; transition: border-color .12s, background .12s, filter .12s; }
button:hover, .btn:hover { border-color: var(--line-2); text-decoration: none; }
button.primary, .btn.primary { background: var(--accent-fill); color: var(--accent-fill-ink); border-color: var(--accent-fill); }
button.primary:hover, .btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
button.grad { background: var(--grad); color: var(--accent-fill-ink); border: none; }
button.danger { background: var(--bad); color: #fff; border-color: var(--bad); }
button.ok { background: var(--ok); color: var(--accent-ink); border-color: var(--ok); }
button.ghost { background: transparent; border-color: transparent; }
button.ghost:hover { background: var(--panel-2); }
button.sm, button.small, .btn.small { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
button.xl { height: 54px; padding: 0 18px; border-radius: 12px; font-size: 15.5px; font-weight: 600; flex: 1 1 0; justify-content: center; }
button.xl.cash { background: var(--lime); border-color: var(--lime); color: #0d2403; }
button.xl.card { background: var(--blue); border-color: var(--blue); color: #04192b; }
:root[data-theme="light"] button.xl.cash, :root[data-theme="light"] button.xl.card { color: #fff; }
:root[data-theme="light"] button.xl.cash .kbd, :root[data-theme="light"] button.xl.card .kbd { border-color: rgba(255,255,255,.5) !important; }
button:disabled { opacity: .5; cursor: not-allowed; }
a.btn { text-decoration: none; }
input, select, textarea { font: var(--text-body); color: var(--text); background: var(--panel-3); border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; height: 40px; width: 100%; }
textarea { min-height: 90px; padding: 10px 12px; height: auto; }
input.mono, textarea.mono { font: var(--text-code); }
input.mono::placeholder, textarea.mono::placeholder { font-family: var(--font-body); }   /* hints are words, not values */
select { padding-right: 30px; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--accent); }
input[type=file] { padding: 8px 12px; height: auto; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
label { display: block; font: var(--text-label); color: var(--muted); margin-bottom: 6px; }
.field { margin-bottom: 14px; }
.field .help { font-size: 12px; color: var(--faint); margin-top: 5px; font-weight: 500; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.checks label { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 500; margin: 0; }
.checks input { width: auto; }
.inline { display: flex; gap: 10px; }
.inline > * { flex: 1; }
.row > input, .row > select { width: auto; flex: 1 1 180px; min-width: 0; }
.row > input[type=date] { flex: 0 1 170px; }

/* ------------------------------------------------------------------ tables */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.card .tablewrap { border: none; border-radius: 0; background: transparent; margin: 0 -4px; }
table.t { border-collapse: collapse; width: 100%; }
table.t th { text-align: left; font-size: 11.5px; color: var(--faint); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--panel); position: sticky; top: 0; white-space: nowrap; }
table.t td.tech { font-size: 12.5px; font-variant-numeric: tabular-nums; }
table.t td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: none; }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td { background: var(--panel-2); }
.empty { padding: 32px; text-align: center; color: var(--faint); }

/* ------------------------------------------------------------------ badges, pills, plates */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--panel-2); color: var(--muted); white-space: nowrap; letter-spacing: .01em; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 99px; background: currentColor; opacity: .9; }
.badge.plain::before { display: none; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.info { background: var(--info-bg); color: var(--info); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--faint); flex-shrink: 0; }
.dot.ok { background: var(--ok); } .dot.bad { background: var(--bad); } .dot.warn { background: var(--warn); }
.plate { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px 3px 4px; background: #f4f7f8; color: #0b1b26; border-radius: 6px; font: 500 13px/1.2 var(--mono); letter-spacing: .04em; white-space: nowrap; box-shadow: 0 0 0 1px rgba(11, 27, 38, .25) inset; }
.plate i { font-style: normal; background: #1f4fb8; color: #fff; font-size: 8.5px; padding: 3px 3px; border-radius: 3px; letter-spacing: 0; font-family: var(--font); font-weight: 600; }
.plate.big { align-self: flex-start; font-size: 28px; padding: 6px 14px 6px 6px; border-radius: 9px; gap: 10px; }
.plate.big i { font-size: 11px; padding: 7px 5px; }
.plate.none { background: var(--panel-2); color: var(--faint); box-shadow: none; }
.ichip { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; background: var(--panel-2); color: var(--muted); }
.ichip.ok { background: var(--ok-bg); color: var(--ok); } .ichip.warn { background: var(--warn-bg); color: var(--warn); }
.ichip.bad { background: var(--bad-bg); color: var(--bad); } .ichip.info { background: var(--info-bg); color: var(--info); }

/* ------------------------------------------------------------------ modal, menus, toasts */
.overlay { position: fixed; inset: 0; background: var(--overlay); backdrop-filter: blur(3px); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; width: min(620px, 100%); max-height: 90vh; overflow: auto; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6); }
.modal.wide { width: min(980px, 100%); }
.modal header { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font: var(--text-section-title); position: sticky; top: 0; background: var(--panel); z-index: 1; }
.modal .body { padding: 20px; }
.modal footer { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; position: sticky; bottom: 0; background: var(--panel); }
.toasts { position: fixed; right: 20px; bottom: 20px; display: grid; gap: 10px; z-index: 60; }
.toast { padding: 12px 16px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line-2); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .55); max-width: 440px; font-weight: 600; animation: toast-in .18s ease-out; display: flex; gap: 10px; align-items: flex-start; }
.toast::before { content: ""; width: 4px; align-self: stretch; border-radius: 4px; background: var(--info); flex-shrink: 0; }
.toast.bad::before { background: var(--bad); } .toast.ok::before { background: var(--ok); } .toast.warn::before { background: var(--warn); }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.notif-panel { position: absolute; right: 24px; top: 8px; width: 400px; max-height: 70vh; overflow: auto; z-index: 30; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .55); }

/* ------------------------------------------------------------------ bars / charts / feeds */
.bar { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.bar.warn > span { background: var(--warn); } .bar.bad > span { background: var(--bad); }
.bar.blue > span { background: var(--blue); } .bar.lime > span { background: var(--lime); }
.segbar { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: var(--line); }
.segbar span { display: block; height: 100%; }
.legend { display: flex; flex-direction: column; gap: 8px; }
.legend div { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legend b { margin-left: auto; }
svg.chart { display: block; }
svg.chart text { fill: var(--faint); font-size: 11px; font-family: var(--font); }
svg.chart .b { fill: var(--accent); } svg.chart .b2 { fill: var(--blue); }
svg.chart .b2.bad { fill: var(--bad); }
svg.chart line, svg.chart .grid { stroke: var(--line); }
.feed { max-height: 460px; overflow-y: auto; }
.feed .it { padding: 10px 0; border-top: 1px solid var(--line); display: flex; gap: 12px; align-items: center; }
.feed .it:first-child { border-top: none; }
.feed .it .tm { width: 42px; font-size: 12px; color: var(--faint); font-weight: 600; flex-shrink: 0; }
.feed .it .tx { display: flex; flex-direction: column; min-width: 0; }
.feed .it .tx b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed .it .tx span { font-size: 12px; color: var(--faint); }
.feed .it .end { margin-left: auto; font-weight: 600; white-space: nowrap; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--ok); background: var(--ok-bg); padding: 3px 9px; border-radius: 99px; }
.live::before { content: ""; width: 6px; height: 6px; border-radius: 99px; background: var(--ok); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.tabs { display: flex; gap: 4px; margin-bottom: 16px; flex-wrap: wrap; padding: 4px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); width: fit-content; max-width: 100%; }
.tabs button { border: none; background: none; height: 34px; padding: 0 14px; color: var(--muted); border-radius: 9px; }
.tabs button:hover { color: var(--text); background: var(--panel-2); }
.tabs button.active { color: var(--accent-fill-ink); background: var(--accent-fill); }
.skel { background: linear-gradient(90deg, var(--panel-2) 0, var(--line) 50%, var(--panel-2) 100%); background-size: 200% 100%; animation: skel 1.2s infinite linear; border-radius: 10px; }
@keyframes skel { to { background-position: -200% 0; } }

/* ------------------------------------------------------------------ login / lock */
.center { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login { width: min(400px, 100%); }
.lock { width: min(720px, 100%); }
.code { font-family: var(--mono); background: var(--panel-3); border: 1px dashed var(--line-2); padding: 12px; border-radius: 10px; word-break: break-all; font-size: 12.5px; }
.keybox { font-family: var(--mono); font-size: 20px; letter-spacing: .06em; text-align: center; padding: 14px; background: var(--ok-bg); color: var(--ok); border-radius: 10px; }
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(400px, 1fr); }
.login-hero { position: relative; overflow: hidden; padding: 60px 72px; display: flex; flex-direction: column; gap: 0; color: #f1f5f9;
  background: radial-gradient(900px 600px at 10% 110%, rgba(34, 197, 94, .22), transparent 60%), radial-gradient(700px 500px at 90% -10%, rgba(52, 211, 153, .16), transparent 60%), #0d2430; }
.login-hero::before { content: ""; position: absolute; inset: 0; opacity: .35; background-image: linear-gradient(#173544 1px, transparent 1px), linear-gradient(90deg, #173544 1px, transparent 1px); background-size: 40px 40px; }
.login-hero > * { position: relative; }
.login-hero img.logo { width: 230px; height: auto; }
.login-hero .kicker { margin-top: auto; font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #22c55e; }
.login-hero h2 { font-family: var(--display); font-size: clamp(34px, 3.6vw, 52px); line-height: 1.08; font-weight: 600; letter-spacing: -.02em; margin: 18px 0 0; max-width: 620px; }
.login-hero p.lead { font-size: 17px; line-height: 1.6; color: #94afc0; max-width: 520px; margin: 18px 0 0; }
.login-hero .feats { display: flex; flex-direction: column; gap: 20px; margin: 48px 0 auto; }
.login-hero .feat { display: flex; gap: 14px; align-items: flex-start; }
.login-hero .feat .ico { width: 40px; height: 40px; border-radius: 12px; background: rgba(34, 197, 94, .12); display: grid; place-items: center; color: #22c55e; flex-shrink: 0; }
.login-hero .feat b { display: block; font-size: 15px; }
.login-hero .feat span { font-size: 13px; color: #94afc0; }
.login-hero .by { font-size: 12px; color: #849fb0; }
.login-hero .by a { color: #94afc0; }
.login-side { display: grid; place-items: center; padding: 48px 24px; background: var(--bg); }
.login-box { width: min(440px, 100%); display: flex; flex-direction: column; gap: 20px; }
.login-box h1 { font-size: 30px; margin: 0; }
.login-box .sub { color: var(--muted); margin-top: -12px; font-size: 15px; }
.login-box input { height: 50px; border-radius: 12px; font-size: 15px; padding: 0 16px; background: var(--panel); }
.login-box .field { margin-bottom: 4px; }
.login-box button.go { height: 52px; border-radius: 12px; font-size: 16px; font-weight: 600; justify-content: center; width: 100%; }
.login-box .note { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.login-box .note svg.i { color: var(--accent); }
.langs { display: flex; gap: 6px; flex-wrap: wrap; }
.langs button { height: 34px; padding: 0 11px; font-size: 12px; font-weight: 600; background: transparent; color: var(--muted); border-color: var(--line); }
.langs button[aria-pressed=true] { background: var(--accent-fill); color: var(--accent-fill-ink); border-color: var(--accent-fill); }
.lang-row { display: flex; justify-content: flex-end; gap: 8px; align-items: center; margin-bottom: 14px; }
select.lang { width: auto; }
/* language dropdown (shared by cloud + site, login pages and top bar) */
.lang-dd { position: relative; display: inline-block; max-width: 100%; }
.lang-dd .lang-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px 0 14px; border-radius: 12px; background: var(--panel);
  color: var(--text); border: 1px solid var(--line); font-size: 14px; font-weight: 600; cursor: pointer; min-width: 150px; justify-content: flex-start; }
.lang-dd .lang-btn:hover { border-color: var(--line-2); }
.lang-dd.open .lang-btn { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.lang-dd .lang-btn svg.i { color: var(--muted); }
.lang-dd .lang-btn .lang-cur { flex: 1; text-align: left; white-space: nowrap; }
.lang-dd .lang-btn svg.chev { transition: transform .15s ease; transform-origin: 50% 50%; transform-box: fill-box; }
.lang-dd.open .lang-btn svg.chev { transform: rotate(180deg); }
.lang-dd.compact .lang-btn { height: 40px; min-width: 0; font-size: 13px; background: var(--panel); }
.lang-dd .lang-list { position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; min-width: 100%; width: max-content; max-width: calc(100vw - 24px);
  max-height: min(340px, 70vh); overflow-y: auto; margin: 0; padding: 6px; list-style: none; background: var(--panel); border: 1px solid var(--line-2);
  border-radius: 12px; box-shadow: var(--shadow), 0 18px 40px -18px rgba(0, 0, 0, .55); }
.lang-dd.right .lang-list { left: auto; right: 0; }
.lang-dd.up .lang-list { top: auto; bottom: calc(100% + 6px); }
.lang-dd .lang-list[hidden] { display: none; }
.lang-dd .lang-list li { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 10px 12px; min-height: 40px; box-sizing: border-box;
  border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--text); outline: none; }
.lang-dd .lang-list li.active { background: var(--accent-soft); }
.lang-dd .lang-list li:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.lang-dd .lang-list li .tick { visibility: hidden; color: var(--accent); }
.lang-dd .lang-list li[aria-selected=true] { font-weight: 600; }
.lang-dd .lang-list li[aria-selected=true] .tick { visibility: visible; }
.login-box .lang-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; }
.login-box .lang-row > span { font-size: 13px; font-weight: 600; color: var(--muted); }
.login-hero.clean .logo { margin-bottom: auto; }

select.lang.compact { height: 40px; font-size: 13px; font-weight: 600; background: var(--panel); }
@media (max-width: 960px) { .login-wrap { grid-template-columns: 1fr; } .login-hero { padding: 28px 20px; } .login-hero .feats, .login-hero p.lead, .login-hero h2, .login-hero .kicker { display: none; } .login-hero img.logo { width: 180px; } }

/* ------------------------------------------------------------------ lanes (cashier) */
/* 3.9 Lanes: every lane on one screen, rail with live events and the shift */
.lane-strip { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.lane-chips { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; flex: 1; min-width: 0; }
.chip-s { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); font-size: 13px; color: var(--muted); white-space: nowrap; text-decoration: none; }
.chip-s b { color: var(--text); font-weight: 600; }
.chip-s.warn { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); background: var(--warn-bg); color: var(--warn); } .chip-s.warn b { color: inherit; }
.chip-s.bad { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); background: var(--bad-bg); color: var(--bad); }
.chip-s.ok { color: var(--ok); }
.lane-search { width: 280px; max-width: 100%; } .lane-search .kbd { margin-left: auto; }
.lane-results:not(:empty) { margin-bottom: 14px; }
.lanes-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
@media (max-width: 1180px) { .lanes-layout { grid-template-columns: minmax(0, 1fr); } }
.emergency-card { margin-top: 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); background: color-mix(in srgb, var(--bad-bg) 55%, var(--panel)); }
.emergency-card .em-t { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); flex: 1; min-width: 220px; } .emergency-card .em-t b { color: var(--text); }
.lane-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); gap: 14px; }
.lane { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 14px; --lc: var(--ok); border-top: 3px solid var(--lc); }
.lane.s-ok { --lc: var(--ok); } .lane.s-warn { --lc: var(--warn); } .lane.s-bad { --lc: var(--bad); }
.lane.s-warn { box-shadow: 0 0 0 1px color-mix(in srgb, var(--warn) 40%, transparent), 0 16px 36px -22px color-mix(in srgb, var(--warn) 70%, transparent); }
.lane.sel { outline: 2px solid var(--accent); outline-offset: 1px; }
.lane .lh { display: flex; align-items: center; gap: 8px; min-width: 0; }
.lane .lh b { font-size: 15px; white-space: nowrap; } .lane .lh .sub { font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lane .lh .st { margin-left: auto; flex-shrink: 0; }
.lane .lb { display: flex; gap: 12px; align-items: stretch; }
.lane .lb .info { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lane .meta { font-size: 12.5px; color: var(--muted); }
.lane .dec { font: 600 15px/1.3 var(--display); } .lane .dec.warn { color: var(--warn); } .lane .dec.bad { color: var(--bad); }
.lane .amount { display: flex; align-items: baseline; gap: 6px; }
.lane .amount b { font-family: var(--display); font-size: 30px; font-weight: 700; line-height: 1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.lane .amount span { font-size: 14px; font-weight: 600; color: var(--muted); }
.lane-last { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--muted); min-height: 116px; }
.lane-last > div { display: flex; gap: 8px; align-items: center; min-width: 0; } .lane-last .tm { width: 40px; flex-shrink: 0; font-family: var(--mono); font-size: 12px; color: var(--faint); }
.lane-last .tx { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.lane-last.empty { justify-content: center; align-items: center; }
.lane .acts { display: flex; gap: 6px; margin-top: auto; align-items: center; }
.lane .acts > button, .lane .acts > a.btn { flex: 1; justify-content: center; height: 42px; padding: 0 8px; min-width: 0; }
.lane .acts .kbd { font-size: 10.5px; padding: 1px 5px; opacity: .85; }
.lane .acts .menu-host .kebab { height: 42px; width: 42px; }
.lane .manual { display: flex; gap: 8px; } .lane .manual[hidden] { display: none; }
.lane .manual input { font-family: var(--mono); }
.lane .manual input::placeholder { font-family: var(--font-body); }
button.primary .kbd, a.btn.primary .kbd { background: rgba(5, 46, 22, .14); color: var(--accent-fill-ink); border-color: rgba(5, 46, 22, .35); }
.cam { position: relative; width: 140px; flex-shrink: 0; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: radial-gradient(420px 220px at 50% 115%, #2a3e4c, #0a1620 70%); }
.cam img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cam svg.ph { position: absolute; inset: 0; width: 100%; height: 100%; }
.cam .lbl { position: absolute; left: 6px; top: 6px; display: flex; gap: 5px; align-items: center; padding: 2px 6px; border-radius: 6px; background: rgba(0, 0, 0, .55); font: 500 10.5px var(--mono); color: #d6e2e7; }
.cam.dim svg.ph { opacity: .35; }
@media (max-width: 700px) { .lane .lb { flex-direction: column; } .cam { width: 100%; } .lane .acts { flex-wrap: wrap; } }
.rail { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 90px; }
.lane-feed .it { gap: 7px; padding: 7px 0; } .lane-feed .it .tm { width: 38px; } .lane-feed .it .ln { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.kv-sum { display: grid; grid-template-columns: 1fr auto; row-gap: 8px; font-size: 13.5px; color: var(--muted); }
.kv-sum b { color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
.kv-sum .tot { border-top: 1px solid var(--line); padding-top: 8px; color: var(--text); font-weight: 600; }
/* 3.9 Cash desk on one screen */
.cash-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 14px; align-items: start; }
@media (max-width: 1100px) { .cash-layout { grid-template-columns: 1fr; } }
.cash-main { display: flex; flex-direction: column; gap: 14px; padding: 18px; }
.cash-main .lh { display: flex; align-items: center; gap: 8px; } .cash-main .lh b { font-size: 16px; } .cash-main .lh .st { margin-left: auto; }
.cash-main .lb { display: flex; gap: 14px; } .cash-main .lb .cam { width: 190px; } .cash-main .info { flex: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cash-kv { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.cash-kv div { background: var(--panel-2); border-radius: 10px; padding: 9px 12px; } .cash-kv span { display: block; font-size: 12px; color: var(--faint); } .cash-kv b { font-size: 15px; }
.cash-due { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--warn-bg); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); }
.cash-due > div > span { color: var(--warn); font-weight: 600; font-size: 13px; }
.cash-due .amount { display: flex; align-items: baseline; gap: 6px; } .cash-due .amount b { font: 700 44px/1 var(--display); font-variant-numeric: tabular-nums; } .cash-due .amount span { font-size: 16px; color: var(--muted); font-weight: 600; }
.cash-meth { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cash-meth button { height: 60px; justify-content: center; font-size: 15px; font-weight: 600; }
.cash-meth button.on { background: var(--accent-soft); border: 2px solid var(--accent); color: var(--text); }
.cash-pad { display: grid; grid-template-columns: 1.5fr 1fr; gap: 14px; align-items: end; }
.cash-quick { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 8px; } .cash-quick button { height: 38px; padding: 0 12px; font-family: var(--mono); }
.cash-quick button.on { border-color: var(--accent); color: var(--accent); }
input.cash-in { height: 48px; font-size: 22px; font-weight: 600; }
.cash-change { text-align: right; } .cash-change span { display: block; font-size: 12.5px; color: var(--muted); } .cash-change b { font: 700 30px var(--display); } .cash-change b.ok { color: var(--ok); }
button.cash-go { height: 56px; font-size: 16px; width: 100%; justify-content: center; }
.cash-idle { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 48px 16px; } .cash-idle svg { width: 36px; height: 36px; color: var(--faint); } .cash-idle b { font-size: 16px; }
.chip-s select { height: 28px; border: 0; background: transparent; padding: 0 4px; font-weight: 600; color: var(--text); }
@media (max-width: 700px) { .cash-kv { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cash-main .lb { flex-direction: column; } .cash-main .lb .cam { width: 100%; } .cash-pad { grid-template-columns: 1fr; } }
.keys { display: flex; flex-direction: column; gap: 9px; }
.keys div { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.keys .kbd { min-width: 32px; text-align: center; color: var(--text); }

/* ------------------------------------------------------------------ cloud map & license rows */
.map-wrap { display: flex; flex-direction: column; height: 100%; }
.map-wrap svg { width: 100%; height: auto; max-height: 470px; display: block; }
.map-wrap .map-main { flex: 1; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.map-wrap .map-country { align-self: flex-start; max-width: 100%; }
.map-wrap .map-box { flex: 1; display: grid; place-items: center; min-height: 0; }
.map-wrap .map-box svg { border-radius: 10px; }
.map-wrap .land { fill: var(--panel-2); stroke: var(--line-2); stroke-width: 1; vector-effect: non-scaling-stroke; cursor: pointer; }
.map-wrap .land.bg { fill: var(--bg); opacity: .6; cursor: default; }
.map-wrap .land.has { fill: color-mix(in srgb, var(--accent) 14%, var(--panel-2)); }
.map-wrap .land.sel { fill: color-mix(in srgb, var(--accent) 22%, var(--panel-2)); stroke: var(--accent); stroke-width: 1.5; cursor: default; }
.map-wrap .land:not(.sel):not(.bg):hover { fill: color-mix(in srgb, var(--accent) 10%, var(--panel-2)); }
.map-wrap .pin { cursor: pointer; }
.map-wrap .pin:focus-visible { outline: none; }
.map-wrap .pin:focus-visible .halo { stroke: var(--text); }
.map-wrap text { font: 600 12px var(--font); fill: var(--text); }
.map-wrap text.n { fill: #06231c; font-size: 11px; font-weight: 600; }
.map-wrap .halo { stroke: var(--panel); stroke-width: 2; vector-effect: non-scaling-stroke; }
.lrow { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); }
.lrow:first-of-type { border-top: none; }
.lrow .days { width: 54px; height: 54px; flex-shrink: 0; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--info-bg); color: var(--info); }
.lrow .days.warn { background: var(--warn-bg); color: var(--warn); } .lrow .days.bad { background: var(--bad-bg); color: var(--bad); }
.lrow .days b { font-family: var(--display); font-size: 19px; line-height: 1; }
.lrow .days span { font-size: 9.5px; font-weight: 600; letter-spacing: .04em; }
.lrow .tx { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.lrow .tx b { font-size: 14px; } .lrow .tx span { font-size: 12px; color: var(--faint); }

@media print { .side, .top, .banner, button { display: none !important; } .app { display: block; } body { background: #fff; color: #000; } }

/* v1.5 – 2FA enrolment */
.login-box .banner, .stack > .banner, .card .banner { margin: 0; }
.login-box ol.steps { margin: 0; padding-left: 20px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.qr-box { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.qr-box .qr { background: #fff; padding: 8px; border-radius: 12px; line-height: 0; flex-shrink: 0; }
.qr-box .qr svg { width: 232px; height: 232px; display: block; }
.qr-box .qr.sm svg { width: 120px; height: 120px; }
.qr-box .stack { flex: 1; min-width: 180px; gap: 8px; }
.codes-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.codes-grid code { font-family: var(--mono); font-size: 15px; padding: 8px 10px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line); text-align: center; letter-spacing: .06em; }
@media (max-width: 420px) { .qr-box .qr svg { width: 168px; height: 168px; } }
.checks-list { display: grid; gap: 4px; margin-top: 8px; }

/* v1.7 – picture viewer */
table.kv{border-collapse:collapse;width:100%;font-size:13px}table.kv th{text-align:left;font-weight:500;color:var(--muted);padding:4px 10px 4px 0;white-space:nowrap;vertical-align:top;width:1%}
table.kv td{padding:4px 0;word-break:break-word}
.pic-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:10px;margin:10px 0}
.pic{margin:0;background:var(--panel);border:1px solid var(--line);border-radius:10px;overflow:hidden;cursor:pointer}
.pic:hover{outline:2px solid var(--accent)}
.pic img{width:100%;aspect-ratio:16/9;object-fit:cover;display:block;background:#0003}
.pic figcaption{padding:6px 8px;display:flex;flex-direction:column;gap:4px}
/* v2.2 occupancy heat map (cloud pricing page) */
.hm-wrap { overflow-x: auto; }
.hm-table { border-collapse: separate; border-spacing: 2px; font-size: 11px; min-width: 640px; }
.hm-table th { color: var(--muted); font-weight: 600; padding: 2px 4px; text-align: center; }
.hm-table td.hm { width: 26px; height: 22px; text-align: center; border-radius: 4px; color: #fff; font-variant-numeric: tabular-nums; }
/* platform terms page (cloud console) */
.login-box.terms-box { width: min(680px, 100%); min-width: 0; gap: 14px; overflow-wrap: anywhere; }
.terms-text { max-height: 46vh; overflow: auto; padding: 4px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); font-size: 14px; line-height: 1.55; }
.terms-text h1 { font-size: 20px; } .terms-text h2 { font-size: 17px; } .terms-text h3 { font-size: 15px; }
.login-box label.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.login-box label.check input { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px; padding: 0; }
.legal-pre { white-space: pre-wrap; max-height: 60vh; overflow: auto; font: 12.5px/1.5 var(--font-mono); background: var(--panel-2); padding: 12px; border-radius: 10px; }

/* v2.2.4 deletion dialog */
.del-list { margin: 6px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.del-list .muted { font-size: 12px; }

/* v2.4 guidance: bay tiles */
.bays { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.bay { min-width: 64px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel2, rgba(255,255,255,.04));
  color: var(--text); display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; cursor: pointer; }
.bay b { font-weight: 600; font-size: 12px; }
.bay small { font-size: 11px; opacity: .8; }
.bay.FREE { border-color: color-mix(in srgb, var(--ok) 60%, transparent); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.bay.OCCUPIED { border-color: color-mix(in srgb, var(--bad) 60%, transparent); background: color-mix(in srgb, var(--bad) 14%, transparent); }
.bay.OUT_OF_ORDER { border-color: color-mix(in srgb, var(--warn) 60%, transparent); background: color-mix(in srgb, var(--warn) 12%, transparent); }
.bay.UNKNOWN { opacity: .6; }

/* v2.5 clickable dashboard cards, attention lines and notifications */
.clickable { cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.card.clickable:hover { border-color: var(--accent); }
.card.clickable:hover .ico { background: color-mix(in srgb, var(--accent) 18%, var(--panel-2)); }
.clickable:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.feed .it.clickable { padding-left: 6px; padding-right: 6px; margin: 0 -6px; border-radius: 8px; }
.feed .it.clickable:hover { background: var(--panel-2); }
.feed .it.unread .tx b, .feed .it.unread .nt { font-weight: 600; }
.kpi .sub a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.banner.clickable:hover { filter: brightness(1.08); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 13.5px; margin: 0; }
.facts dt { color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.map-wrap circle.halo { cursor: pointer; }

/* UX phase 1: status chip (icon + word), empty / loading / error states, tables that turn into cards on a phone */
.badge.chip::before { display: none; }
.badge.chip { gap: 5px; padding-left: 8px; }
.empty-state { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 12px; background: var(--panel-3); border: 1px dashed var(--line-2); }
.empty-state.ok { border-style: solid; border-color: color-mix(in srgb, var(--ok) 30%, var(--line)); background: color-mix(in srgb, var(--ok) 6%, var(--panel-3)); }
.empty-state .es-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.empty-state .es-t b { font-size: 14px; }
.empty-state .es-t span { font-size: 13px; color: var(--muted); }
.tablewrap > .empty-state { margin: 14px; }
.err-state .empty-state { border: none; background: transparent; padding: 4px; flex-wrap: wrap; }
.skel-page { display: none; flex-direction: column; gap: 14px; }
.stack > .skel-page:only-child { display: flex; }
@media (prefers-reduced-motion: reduce) { .skel, .live::before { animation: none; } .clickable { transition: none; } }
table.t tr.click:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
table.t tr.attn td:first-child { box-shadow: inset 3px 0 0 var(--warn); }
table.t tr.down td:first-child { box-shadow: inset 3px 0 0 var(--bad); }
@media (max-width: 700px) {
  .tablewrap.cards { border: none; background: transparent; overflow: visible; }
  .card .tablewrap.cards { margin: 0; }
  table.t.cards, table.t.cards tbody, table.t.cards tr, table.t.cards td { display: block; width: 100%; }
  table.t.cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.t.cards tr { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; background: var(--panel); }
  table.t.cards td { border: none; padding: 4px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  table.t.cards td::before { content: attr(data-label); color: var(--faint); font: 600 12px/1.35 var(--font-body); text-align: left; flex-shrink: 0; }
  table.t.cards td:first-child { font-size: 15px; text-align: left; justify-content: flex-start; }
  table.t.cards td:first-child::before { display: none; }
  table.t.cards tr.attn td:first-child, table.t.cards tr.down td:first-child { box-shadow: none; }
  table.t.cards tr.attn { border-left: 3px solid var(--warn); } table.t.cards tr.down { border-left: 3px solid var(--bad); }
}

/* UX phase 1: cloud dashboard: parking operations command center */
.ops-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.ops-head .h { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ops-head .h .hello { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.ops-head .h .sub { color: var(--muted); font-size: 14px; }
.ops-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.attn-list { display: flex; flex-direction: column; }
.attn-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 6px; margin: 0 -6px; border-top: 1px solid var(--line); border-radius: 8px; }
.attn-row:first-child { border-top: none; }
.attn-row:hover { background: var(--panel-2); }
.attn-row .what { font-weight: 600; font-size: 13.5px; overflow-wrap: anywhere; }
.attn-row .where { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--faint); }
.attn-row .where span { display: inline-flex; align-items: center; gap: 5px; }
.attn-row .todo { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.attn-bar { padding: 12px 16px; }
.attn-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; cursor: pointer; }
.attn-head h2 { margin: 0; font-size: 15px; }
.attn-head .sub { font-size: 12.5px; color: var(--faint); }
.attn-head .end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.attn-toggle svg.i { transition: transform .18s; }
.attn-bar.open .attn-toggle svg.i { transform: rotate(180deg); }
.attn-bar:not(.open) .attn-list { display: none; }
.attn-bar.open .attn-list { margin-top: 8px; border-top: 1px solid var(--line); }
.net-counts { display: flex; flex-wrap: wrap; gap: 6px; }
.sec-title { display: flex; align-items: center; gap: 10px; margin: 8px 0 -4px; font: 600 12px/1.3 var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.sec-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.cp-name { display: flex; flex-direction: column; min-width: 0; }
.cp-name b { overflow-wrap: anywhere; } .cp-name span { font-size: 12px; color: var(--faint); }
.g-ops { grid-template-columns: minmax(0, 1.7fr) minmax(340px, 1fr); grid-template-areas: "health map" "act map"; align-items: start; }
.g-ops > * { min-width: 0; }
.g-ops > #health { grid-area: health; } .g-ops > .map-wrap { grid-area: map; } .g-ops > #activity { grid-area: act; }
.g-ops > .map-wrap { height: auto; }
.cp-name { min-width: 150px; }
@media (max-width: 700px) { .cp-name { min-width: 0; } }
@media (max-width: 1760px) { .g-ops { grid-template-columns: 1fr; grid-template-areas: "health" "map" "act"; } }
@media (max-width: 700px) {
  .attn-row { grid-template-columns: auto minmax(0, 1fr); }
  .attn-row > .btn { grid-column: 2; justify-self: start; }
  .ops-head .actions { margin-left: 0; }
}
@media (max-width: 700px) {
  .grid.kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .grid.kpis .kpi.ic { padding: 14px; gap: 0; }
  .grid.kpis .kpi.ic .ico { display: none; }
  .grid.kpis .kpi.ic .value { font-size: 24px; }
  .grid.kpis .kpi .label { font-size: 12px; }
}

/* UX phase 2: car park detail – action menu, health summary, readable events */
.menu-host { position: relative; display: inline-flex; }
.menu-host .menu { top: calc(100% + 6px); }
.menu-host .menu.fixed { position: fixed; right: auto; z-index: 60; }
.row-acts { display: flex; gap: 4px; align-items: center; justify-content: flex-end; flex-wrap: nowrap; }
button.kebab { padding: 0; width: 30px; min-width: 30px; justify-content: center; }
.kebab-gap { width: 30px; flex-shrink: 0; }
button.kebab svg.i { width: 18px; height: 18px; stroke-width: 2.6; }
.menu button.danger { color: var(--bad); }
.site-health { display: flex; flex-direction: column; gap: 14px; }
.site-health .sh-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.site-health .sh-state { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.site-health .sh-state .badge.chip { font-size: 14px; padding: 5px 12px; align-self: flex-start; }
.site-health .sh-state .when { color: var(--muted); font-size: 13px; }
.site-health .sh-facts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-left: auto; font-size: 13px; }
.site-health .sh-facts span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.site-health .sh-facts b { color: var(--text); font-weight: 600; }
.site-health .sh-notes { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.tabs .tab-n { margin-left: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; font-size: 11px; font-weight: 600; display: inline-grid; place-items: center; background: var(--bad-bg); color: var(--bad); }
.tabs button.active .tab-n { background: rgba(0,0,0,.18); color: inherit; }
.ev-what { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ev-what b { white-space: nowrap; }
.ev-sum { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
details.raw summary { cursor: pointer; color: var(--muted); font-size: 12px; margin-top: 4px; }
details.raw pre { white-space: pre-wrap; word-break: break-all; font: 12px/1.45 var(--font-mono); background: var(--panel-2); border-radius: 8px; padding: 8px 10px; margin: 6px 0 0; max-width: 100%; }
.list-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.list-tools select { max-width: 260px; }
@media (max-width: 700px) {
  .card-head { flex-wrap: wrap; }
  .card-head .end { max-width: 100%; flex-wrap: wrap; }
  .card-head .end .badge { white-space: normal; }
  .site-health .sh-facts { margin-left: 0; }
  .tabs { overflow-x: auto; flex-wrap: nowrap; width: 100%; }
  .tabs button { flex-shrink: 0; }
}

/* UX phase 3: control room network + devices */
.cr-grid { grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); }
@media (max-width: 900px) { .cr-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .attn-row > button { grid-column: 2; justify-self: start; } }

/* UX phase 4: menu groups, header search with results */
.search { position: relative; }
.search input { flex: 1; min-width: 0; }
.search-pop { position: absolute; left: -1px; right: -1px; top: calc(100% + 8px); min-width: 380px; max-height: min(70vh, 520px); overflow-y: auto; padding: 6px;
  border-radius: 14px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .55); z-index: 45; color: var(--text); }
.search-pop[hidden] { display: none; }
.sr-head { font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--faint); font-weight: 600; padding: 10px 10px 4px; }
.sr-opt { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; cursor: pointer; }
.sr-opt svg.i { color: var(--faint); }
.sr-opt:hover, .sr-opt.on { background: var(--panel-2); }
.sr-opt.on { box-shadow: inset 3px 0 0 var(--accent); }
.sr-opt.on svg.i { color: var(--accent); }
.sr-t { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.sr-t b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-t small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-note { padding: 12px 10px; color: var(--muted); font-size: 13px; }
.sr-note.bad { color: var(--bad); }
.search-btn { display: none; }
@media (max-width: 900px) {
  .search-btn { display: inline-flex; }
  .top .search.open { display: flex; position: absolute; left: 10px; right: 10px; width: auto; top: 50%; transform: translateY(-50%); z-index: 46; min-width: 0; flex: none;
    box-shadow: 0 0 0 100vmax var(--overlay); background: var(--panel); }
  .top .search.open .kbd { display: none; }
  .search-pop { min-width: 0; }
}

/* UX phase 5: tables with search, sorting and "Show more" */
.dt { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.dt-tools input[type=search] { max-width: 320px; flex: 1 1 220px; }
.dt-count { color: var(--muted); font-size: 12.5px; margin-left: auto; }
table.t th.sortable { padding: 0; }
table.t th .th-sort { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 6px; width: 100%; padding: 12px 14px; cursor: pointer; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; }
table.t th.num .th-sort { justify-content: flex-end; }
table.t th .th-sort:hover { color: var(--text); }
table.t th .th-sort:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 6px; }
table.t th .sort-ic { font-size: 9px; opacity: .55; }
table.t th[aria-sort="ascending"], table.t th[aria-sort="descending"] { color: var(--text); }
table.t th[aria-sort="ascending"] .sort-ic, table.t th[aria-sort="descending"] .sort-ic { opacity: 1; color: var(--accent); }
.dt .cp-name { min-width: 200px; }
table.t td.nowrap { white-space: nowrap; }
.dt-more { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 4px 2px; }
@media (max-width: 700px) {
  table.t.cards td.ph-hide { display: none; }
  .dt .cp-name { min-width: 0; }
  .dt-tools input[type=search] { max-width: none; }
}

/* UX phase 6: business pages (licence period bar, limits in use, clickable money figures) */
.lic-bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.lic-bar span { display: block; height: 100%; border-radius: 99px; background: var(--ok); }
.lic-bar.sm { height: 5px; }
.lic-sum.warn .lic-bar span, .lim.warn .lic-bar span { background: var(--warn); }
.lic-sum.bad .lic-bar span, .lim.bad .lic-bar span { background: var(--bad); }
.lic-sum.info .lic-bar span { background: var(--info); }
.lic-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: -8px; }
.lims { margin-top: 12px; gap: 12px; }
.lim { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.lim-t { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); }
.lim-t b { color: var(--text); }
.lim.bad .lim-t b { color: var(--bad); } .lim.warn .lim-t b { color: var(--warn); }
/* small laptops/tablets: a long page title gives way instead of pushing the account button off the screen */
.top .iconbtn, .top .who { flex-shrink: 0; }
@media (max-width: 1100px) and (min-width: 601px) {
  .top .title { flex: 0 1 auto; min-width: 130px; }
}
@media (max-width: 1100px) { .top .lang-dd .lang-cur { display: none; } }

/* UX phase 7: accessibility (skip link, focus on the page after "Skip to content") */
.skip { position: absolute; left: 12px; top: -60px; z-index: 1000; padding: 10px 14px; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
main.content:focus { outline: none; }

/* 2.11 dashboard: operational map (MapLibre), occupancy, activity */
.om-host { position: relative; height: 420px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); background: var(--panel-3); }
.om-host > .skel-page, .om-host > .stack { padding: 12px; }
.om-host .om-map { position: absolute; inset: 0; font: inherit; }
.om-legend { gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.om-legend .row { gap: 6px; }
.om-dot { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; color: var(--bg); }
.om-dot svg.i { width: 10px; height: 10px; stroke-width: 3; }
.om-dot.ok, .om-mk.ok, .om-cl.ok { background: var(--success); } .om-dot.warn, .om-mk.warn, .om-cl.warn { background: var(--warning); }
.om-dot.bad, .om-mk.bad, .om-cl.bad { background: var(--danger); } .om-dot.info, .om-mk.info, .om-cl.info { background: var(--info); }
.om-mk.none, .om-cl.none { background: var(--neutral); }
.om-mk, .om-cl { display: grid; place-items: center; padding: 0; cursor: pointer; color: var(--bg); border: 2px solid var(--bg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .45); font: 600 12px/1 var(--font); }
.om-mk { width: 26px; height: 26px; border-radius: 50%; }
.om-mk svg.i { width: 14px; height: 14px; stroke-width: 2.6; }
.om-cl { min-width: 32px; height: 32px; padding: 0 8px; border-radius: 16px; }
.om-mk.sel, .om-cl.sel { outline: 3px solid var(--selected); outline-offset: 2px; z-index: 2; }
.om-mk:focus-visible, .om-cl:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
.om-off { display: inline-flex; align-items: center; gap: 4px; }
.om-map .maplibregl-ctrl-group { background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.om-map .maplibregl-ctrl-group button { width: 32px; height: 32px; }
.om-map .maplibregl-ctrl-group button + button { border-top: 1px solid var(--border); }
.om-map .maplibregl-ctrl-group button .maplibregl-ctrl-icon { filter: none; }
:root:not([data-theme="light"]) .om-map .maplibregl-ctrl-group button .maplibregl-ctrl-icon { filter: invert(1) brightness(1.4); }
.om-map .maplibregl-ctrl-group button.om-fit { display: grid; place-items: center; color: var(--text); }
.om-map .maplibregl-ctrl-group button:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.om-map .maplibregl-ctrl-attrib { background: color-mix(in srgb, var(--surface) 85%, transparent); color: var(--text-secondary); font-size: 11px; }
.om-map .maplibregl-ctrl-attrib a { color: var(--text-secondary); }
.om-map .maplibregl-ctrl-attrib-button { background-color: var(--surface-elevated); }
.om-pop .maplibregl-popup-content { background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); padding: 12px 14px; font: inherit; }
.om-pop.maplibregl-popup-anchor-bottom .maplibregl-popup-tip, .om-pop.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip,
.om-pop.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip { border-top-color: var(--border-strong); }
.om-pop.maplibregl-popup-anchor-top .maplibregl-popup-tip, .om-pop.maplibregl-popup-anchor-top-left .maplibregl-popup-tip,
.om-pop.maplibregl-popup-anchor-top-right .maplibregl-popup-tip { border-bottom-color: var(--border-strong); }
.om-pop.maplibregl-popup-anchor-left .maplibregl-popup-tip { border-right-color: var(--border-strong); }
.om-pop.maplibregl-popup-anchor-right .maplibregl-popup-tip { border-left-color: var(--border-strong); }
.om-pop .maplibregl-popup-close-button { color: var(--text-secondary); font-size: 18px; width: 28px; height: 28px; border-radius: 6px; }
.om-card { display: grid; gap: 8px; min-width: 200px; }
.om-card .nm { padding-right: 20px; }
.om-facts { display: grid; gap: 3px; margin: 0; font-size: 12.5px; }
.om-facts > div { display: flex; justify-content: space-between; gap: 12px; }
.om-facts dt { color: var(--text-secondary); } .om-facts dd { margin: 0; font-weight: 600; text-align: right; }
/* 3.8 Live map of the chargers (cloud EV Charging): offline = grey, groups show a ring of their states */
.om-dot.off, .om-mk.off, .om-cl.off { background: var(--neutral); } .om-dot.none { background: var(--border-strong); }
.om-cl.ring { --om-ok: var(--success); --om-warn: var(--warning); --om-bad: var(--danger); --om-info: var(--info); --om-off: var(--neutral); --om-none: var(--border-strong);
  width: 38px; min-width: 38px; height: 38px; padding: 0; border-radius: 50%; background: var(--ring); }
.om-cl.ring > span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--bg); color: var(--text); font: 600 12.5px/1 var(--font-display); }
.om-dot.ring-dot { background: conic-gradient(var(--info) 0 40%, var(--success) 0 85%, var(--danger) 0); }
.evm-page { min-width: 0; }
.evm { position: relative; height: calc(100vh - 168px); min-height: 520px; scroll-margin-top: 16px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--panel-3); }
.evm-map { position: absolute; inset: 0; }
.evm-map .om-map { position: absolute; inset: 0; font: inherit; }
.evm-map > .skel-page { padding: 16px; }
.evm-nomap { position: absolute; inset: 0 392px 0 0; display: grid; place-items: center; padding: 24px; }
.evm-bar, .evm-panel, .evm-foot > * { background: color-mix(in srgb, var(--surface) 94%, transparent); border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: 0 10px 28px -14px rgba(0, 0, 0, .55); backdrop-filter: blur(6px); }
.evm-bar { position: absolute; left: 12px; top: 12px; right: 392px; z-index: 3; display: grid; gap: 8px; padding: 10px 12px; }
.evm-row1 { gap: 12px; flex-wrap: wrap; }
.evm-q { flex: 1 1 220px; max-width: 360px; height: 34px; }
.evm-upd { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.evm-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); } .evm-dot.warn { background: var(--warning); }
.evm-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.evm-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 15px; border: 1px solid var(--border); background: var(--panel-3);
  color: var(--text); font-size: 13px; cursor: pointer; }
.evm-chip b { font-variant-numeric: tabular-nums; }
.evm-chip.on { border-color: var(--accent); background: var(--accent-soft); }
.evm-chip .om-dot { width: 14px; height: 14px; } .evm-chip .om-dot svg.i { width: 9px; height: 9px; }
.evm-foot { position: absolute; left: 12px; bottom: 12px; z-index: 3; display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; right: 392px; pointer-events: none; }
.evm-foot > * { pointer-events: auto; }
.evm-legend { display: grid; gap: 6px; padding: 9px 12px; justify-items: start; }
.evm-legend .ov-seg button { height: 28px; }
.evm-leg { display: grid; grid-template-columns: repeat(2, auto); gap: 4px 14px; font-size: 12.5px; color: var(--text-secondary); }
.evm-leg > span { display: inline-flex; align-items: center; gap: 6px; }
.evm-note:empty { display: none; }
.evm-missing { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--text-secondary); }
.evm-panel { position: absolute; right: 12px; top: 12px; bottom: 12px; width: 368px; z-index: 3; overflow: auto; padding: 14px 16px; display: grid; gap: 12px; align-content: start; }
.evm-ph { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.evm-ph h2 { margin: 0; font: var(--text-section-title); }
.evm-x { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border-radius: 8px; border: 1px solid var(--border); background: transparent; color: var(--text-secondary); }
.evm-counts { gap: 6px; flex-wrap: wrap; }
.evm-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.evm-fact { display: grid; gap: 2px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel-3); min-width: 0; }
.evm-fact b { font: 600 17px/1.2 var(--font-display); font-variant-numeric: tabular-nums; }
.evm-list { display: grid; gap: 0; border-top: 1px solid var(--border); }
.evm-item, .evm-ch-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 9px 2px; border: 0; border-radius: 0;
  background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.evm-item { border-bottom: 1px solid var(--border); }
.evm-item:hover, .evm-ch-head:hover { background: var(--accent-soft); }
.evm-ch { border-bottom: 1px solid var(--border); }
.evm-ch.sel { box-shadow: inset 3px 0 0 var(--accent); padding-left: 8px; }
.evm-ch-name { display: grid; gap: 1px; min-width: 0; }
.evm-ch-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evm-ch-body { display: grid; gap: 6px; padding: 0 2px 10px; }
.evm-cons { display: flex; gap: 6px; flex-wrap: wrap; }
.evm-con { display: inline-flex; align-items: center; gap: 4px; }
.evm-acts { gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.evm .maplibregl-ctrl-top-right { top: auto; bottom: 28px; right: 380px; }
.evm .maplibregl-ctrl-bottom-right { right: 380px; }
@media (max-width: 900px) {
  .evm { height: calc(100vh - 150px); }
  .evm-bar, .evm-foot { right: 12px; }
  .evm-bar { left: 8px; right: 8px; top: 8px; padding: 8px; gap: 6px; }
  .evm-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -8px; padding: 0 8px; }
  .evm-chip { flex: none; }
  .evm-note, .evm-upd { display: none; }
  .evm-nomap { inset: 0; }
  .evm-foot { display: none; }
  .evm-panel { left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 46%; border-radius: 16px 16px 0 0; }
  .evm-panel:not(.open) { max-height: 30%; }
  .evm .maplibregl-ctrl-top-right { right: 0; bottom: auto; top: 128px; }
  .evm .maplibregl-ctrl-bottom-right { right: 0; bottom: 46%; }
}
.occ { display: inline-flex; align-items: center; gap: 8px; justify-content: flex-end; }
.occ-bar { display: inline-block; width: 36px; height: 5px; border-radius: 3px; background: var(--surface-elevated); overflow: hidden; }
.occ-bar span { display: block; height: 100%; background: var(--info); }
.cp-name .loc { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-left: 6px; padding: 0; vertical-align: -4px; border: 1px solid var(--border);
  border-radius: 6px; background: transparent; color: var(--text-secondary); cursor: pointer; }
.cp-name .loc:hover { color: var(--selected); border-color: var(--selected); }
.cp-name .loc svg.i { width: 13px; height: 13px; }
table.t td.act, table.t th.act { text-align: right; white-space: nowrap; }
table.t tr.sel td { background: color-mix(in srgb, var(--selected) 12%, transparent); }
table.t tr.sel td:first-child { box-shadow: inset 3px 0 0 var(--selected); }
.act-list { list-style: none; margin: 0; padding: 0; display: grid; }
.act-list li { display: grid; grid-template-columns: 76px 22px minmax(0, 1fr); gap: 10px; align-items: start; padding: 9px 0; border-top: 1px solid var(--border); }
.act-list li:first-child { border-top: 0; }
.act-list time { color: var(--text-secondary); font-size: 12px; padding-top: 2px; }
.act-ic { color: var(--text-secondary); padding-top: 1px; }
.act-tx { min-width: 0; font-size: 13px; }
.act-sum { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--text-secondary); font-size: 12.5px; margin-top: 2px; }
@media (max-width: 1200px) { .om-host { height: 380px; } }
@media (max-width: 600px) { .om-host { height: 320px; } .act-list li { grid-template-columns: 64px minmax(0, 1fr); } .act-ic { display: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* 2.14 site configuration: 8 categories → 35 sections, compact field grid */
.cfg { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 16px; align-items: start; }
.cfg-nav { position: sticky; top: 88px; max-height: calc(100vh - 104px); overflow: auto; display: grid; gap: 2px; align-content: start; padding: 10px 8px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.cfg-find { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px; margin-bottom: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-3); color: var(--faint); }
.cfg-find:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
.cfg-find input { border: 0; background: none; height: 36px; padding: 0; box-shadow: none !important; }
.cfg-tree, .cfg-hits { display: grid; gap: 2px; }
.cfg-grp { display: flex; align-items: center; gap: 8px; width: 100%; height: 34px; padding: 0 8px; border: 0; border-radius: 8px; background: none; color: var(--muted);
  font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; text-align: left; cursor: pointer; }
.cfg-grp:hover { background: var(--panel-2); color: var(--text); }
.cfg-grp > span:nth-child(2) { flex: 1; min-width: 0; }
.cfg-chev { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; flex: none; margin: 0 3px; }
.cfg-grp[aria-expanded="true"] .cfg-chev { transform: rotate(45deg); }
.cfg-secs { display: grid; gap: 1px; padding: 0 0 6px 18px; }
.cfg-sec { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 32px; padding: 5px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 13.5px; }
.cfg-sec:hover { background: var(--panel-2); text-decoration: none; }
.cfg-tree[hidden], .cfg-hits[hidden], .cfg-secs[hidden] { display: none; }
.cfg-sec.active { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); font-weight: 600; }
.cfg-n { font-size: 11px; font-weight: 600; color: var(--faint); font-variant-numeric: tabular-nums; }
.cfg-hit { display: grid; gap: 1px; width: 100%; padding: 7px 10px; border: 0; border-radius: 8px; background: none; color: var(--text); text-align: left; cursor: pointer; font-size: 13.5px; }
.cfg-hit:hover, .cfg-hit:focus-visible { background: var(--panel-2); }
.cfg-hit small { color: var(--faint); font-size: 11.5px; }
.cfg-none { padding: 6px 10px; margin: 0; }
.cfg-main { display: grid; gap: 12px; min-width: 0; }
.cfg-title { margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text); font-weight: 600; }
.page-crumbs { margin: 0 0 10px; }
.cfg-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px 16px; margin-top: 14px; }
.cfg-f { min-width: 0; padding: 6px; margin: 0 -6px 4px; border-radius: 10px; transition: background .4s; }
.cfg-f.w2 { grid-column: span 2; } .cfg-f.w3 { grid-column: span 3; } .cfg-f.w6 { grid-column: span 6; }
.cfg-f.hl { background: var(--accent-soft); }
.cfg-f label { cursor: help; }
.cfg-save { position: sticky; bottom: 0; z-index: 2; display: flex; align-items: center; gap: 10px; justify-content: flex-end; padding: 12px 0 2px; margin-top: 6px; border-top: 1px solid var(--line); background: var(--panel); }
@media (max-width: 1200px) { .cfg-f.w2 { grid-column: span 3; } }
@media (max-width: 900px) { .cfg { grid-template-columns: 1fr; } .cfg-nav { position: static; max-height: none; } }
@media (max-width: 600px) { .cfg-f.w2, .cfg-f.w3 { grid-column: span 6; } }

/* 2.15 drawer: a dialog docked to the right edge (secondary details: logs, full histories, technical metadata) */
.overlay.drawer-ov { place-items: stretch end; padding: 0; }
.modal.drawer { width: min(760px, 100vw); max-height: none; height: 100%; border-radius: 0; border-width: 0 0 0 1px; display: flex; flex-direction: column; overflow: hidden; }
.modal.drawer .body { flex: 1; overflow: auto; min-height: 0; }
@media (max-width: 640px) { .modal.drawer { width: 100vw; border-left: 0; } }

/* 2.15 System & updates: compact control centre (cloud #/system) */
.sys-page { gap: 14px; }
.sys-page .card { padding: 14px 16px; }
.sys-page .card-head { margin-bottom: 8px; }
.sys-page .sys-kpis { gap: 12px; }
.sys-page .sys-kpis .kpi.ic { padding: 12px 14px; gap: 12px; align-items: center; }
.sys-page .sys-kpis .kpi.ic .ico { width: 34px; height: 34px; border-radius: 10px; }
.sys-page .sys-kpis .kpi.ic .value { font-size: 20px; margin-top: 2px; }
.sys-page .sys-kpis .kpi .label { font-size: 12px; }
.sys-page .sys-kpis .kpi .sub { margin-top: 2px; font-size: 12px; }
.sys-status { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; }
.sys-status .ttl { font-weight: 600; font-size: 14px; }
.sys-status .msg { color: var(--muted); font-size: 13px; min-width: 0; flex: 1 1 260px; }
.sys-status .end { margin-left: auto; }
.sys-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.sys-filters select, .sys-filters input[type=search] { height: 34px; width: auto; min-width: 150px; }
.sys-filters input[type=search] { flex: 1 1 200px; }
.sys-filters label.chk { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); white-space: nowrap; }
.sys-filters label.chk input { width: auto; }
.vgroups { border-top: 1px solid var(--line); }
.vgroup { border-bottom: 1px solid var(--line); }
.vgroup > .vhead { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 6px 8px; background: none; border: 0; border-radius: 0;
  color: var(--text); text-align: left; cursor: pointer; font-size: 14px; }
.vgroup > .vhead:hover { background: var(--panel-2); }
.vgroup > .vhead .chev { transition: transform .15s; flex-shrink: 0; }
.vgroup > .vhead[aria-expanded="false"] .chev { transform: rotate(-90deg); }
.vgroup > .vhead .ver { font-family: var(--font-mono); font-weight: 500; min-width: 72px; }
.vgroup > .vhead .cnt { color: var(--faint); font-size: 12.5px; }
.vgroup > .vhead .st { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.vgroup .vbody { padding: 0 0 8px 28px; }
.vgroup .vbody table td, .vgroup .vbody table th { padding-top: 6px; padding-bottom: 6px; }
.vgroup .vbody td { height: 44px; }
.pkg-acts { display: flex; gap: 6px; justify-content: flex-end; align-items: center; }
.sys-sec { display: flex; flex-direction: column; gap: 6px; }
.sys-sec .line { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.sys-sec .foot { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.sys-gh { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.sys-gh .field { margin: 0; flex: 1 1 220px; min-width: 0; }
.sys-hist table td { height: 38px; padding-top: 4px; padding-bottom: 4px; }
.link-btn { background: none; border: 0; padding: 0 2px; height: auto; color: var(--accent); font-weight: 600; font-size: 13px; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 2px; }
.vgroup .vbody { overflow-x: auto; }
.sys-filters .dates { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.sys-filters input[type=date] { height: 34px; width: auto; }
@media (max-width: 700px) { .sys-page .sys-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .sys-page .sys-kpis .kpi.ic .ico { display: none; } }
@media (max-width: 640px) { .vgroup .vbody { padding-left: 0; } .sys-filters select { flex: 1 1 140px; } }

/* 3.1 charging network → Live operations center */
.ch-groups { display: grid; gap: 6px; margin-bottom: 14px; }
.ch-groups .tabs { margin-bottom: 0; }
.ch-groups .tabs:first-child button { font-weight: 600; }
.ch-subtabs { margin-bottom: 12px; }
.ch-subtabs .tabs { margin-bottom: 0; }
.live-ops { display: grid; gap: 14px; min-width: 0; }
.lv-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lv-head .lv-err { flex-basis: 100%; }
.lv-fresh { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; }
.lv-dot { width: 8px; height: 8px; border-radius: 99px; background: var(--faint); flex: none; }
.lv-dot.ok { background: var(--ok); } .lv-dot.warn { background: var(--warn); } .lv-dot.bad { background: var(--bad); }
.lv-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 10px; }
.lv-kpis .kpi { padding: 12px 14px; margin: 0; min-width: 0; }
.lv-kgroups { display: grid; gap: 12px; }
.lv-kgroup { display: grid; gap: 6px; min-width: 0; align-content: start; }
.lv-klabel { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
/* 3.7: between 1100 and 1600 px "Network now" takes the first row, "Today" and "Reliability" share the second */
@media (min-width: 1100px) and (max-width: 1599px) { .lv-kgroups { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); }
  .lv-kgroups > .lv-kgroup:first-child { grid-column: 1 / -1; } .lv-kpis.n5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .lv-kpis.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .lv-kpis.n1 { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 1600px) { .lv-kgroups { grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 1fr); }
  .lv-kpis.n5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } .lv-kpis.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .lv-kpis.n1 { grid-template-columns: minmax(0, 1fr); } }
.lv-kpis .kpi .value { font-size: 22px; margin-top: 4px; overflow-wrap: anywhere; }
.lv-kpis .kpi .sub { font-size: 12px; }
.lv-tone.bad { color: var(--bad); font-weight: 600; }
.lv-att-list { list-style: none; margin: 0; padding: 0; display: grid; }
.lv-att-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--border); }
.lv-att-list li:first-child { border-top: 0; }
/* 3.7: EV overview – last 14 days, connectors now, top locations */
.lv-trend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 1500px) { .lv-trend { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 760px) { .lv-trend { grid-template-columns: minmax(0, 1fr); } }
.lv-tcard { margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.lv-tcard .card-head { margin-bottom: 0; }
.lv-tcard svg.chart { display: block; }
.lv-tempty { display: grid; place-items: center; min-height: 120px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 12px; }
.lv-facts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); }
.lv-fact { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lv-fact b { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.lv-legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.lv-legend i { width: 9px; height: 9px; border-radius: 2px; background: var(--accent); margin-left: 6px; }
.lv-legend i.bad { background: var(--bad); }
.lv-mix { display: flex; gap: 2px; height: 14px; border-radius: 99px; overflow: hidden; background: var(--line); }
.lv-mix > span { min-width: 4px; }
.lv-mix > .t-accent, .lv-mixrow i.t-accent { background: var(--accent); } .lv-mix > .t-ok, .lv-mixrow i.t-ok { background: var(--ok); }
.lv-mix > .t-info, .lv-mixrow i.t-info { background: var(--info); } .lv-mix > .t-bad, .lv-mixrow i.t-bad { background: var(--bad); }
.lv-mix > .t-warn, .lv-mixrow i.t-warn { background: var(--warn); } .lv-mix > .t-neutral, .lv-mixrow i.t-neutral { background: var(--faint); }
.lv-mix > .t-muted, .lv-mixrow i.t-muted { background: var(--border-strong); }
.lv-mixlist, .lv-top { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.lv-mixrow, .lv-toprow { all: unset; box-sizing: border-box; width: 100%; display: grid; align-items: center; gap: 4px 10px; padding: 6px 8px; border-radius: var(--radius-sm); cursor: pointer; }
.lv-mixrow { grid-template-columns: 10px minmax(0, 1fr) auto 44px; }
.lv-mixrow i { width: 10px; height: 10px; border-radius: 3px; }
.lv-mixrow b, .lv-toprow b { font-variant-numeric: tabular-nums; text-align: right; }
.lv-mixrow .small { text-align: right; font-variant-numeric: tabular-nums; }
.lv-mixrow:disabled { cursor: default; }
.lv-mixrow:not(:disabled):hover, .lv-toprow:hover { background: var(--panel-2); }
.lv-mixrow:focus-visible, .lv-toprow:focus-visible { outline: 2px solid var(--accent-ring); outline-offset: -2px; }
.lv-toprow { grid-template-columns: minmax(0, 1fr) auto; }
.lv-toprow .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.lv-toprow .meter { grid-column: 1; height: 5px; border-radius: 99px; background: var(--line); overflow: hidden; }
.lv-toprow .meter span { display: block; height: 100%; background: var(--grad); border-radius: 99px; }
.lv-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: 14px; align-items: start; }
.lv-main, .lv-side { display: grid; gap: 14px; min-width: 0; }
.lv-filters { display: grid; gap: 10px; }
.lv-frow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lv-frow .lv-q { flex: 1 1 220px; min-width: 0; }
.lv-frow select { width: auto; max-width: 220px; }
.lv-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lv-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 99px; border: 1px solid var(--border); background: var(--panel); color: var(--text); font-size: 13px; }
.lv-chip.t-ok svg { color: var(--ok); } .lv-chip.t-warn svg { color: var(--warn); } .lv-chip.t-bad svg { color: var(--bad); } .lv-chip.t-info svg { color: var(--info); }
.lv-con { white-space: nowrap; display: inline-flex; align-items: center; gap: 3px; }
.lv-chip[aria-pressed=true] { border-color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.lv-chip .lv-n { font-family: var(--mono); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lv-ids { margin: 0; }
.lv-count { margin-bottom: 6px; }
.lv-countrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.lv-countrow .lv-count { margin-bottom: 0; }
/* 3.1 bulk operations */
.bk-list { max-height: 260px; overflow: auto; border: 1px solid var(--border); border-radius: var(--radius, 8px); padding: 4px 8px; }
.bk-check { display: flex; gap: 8px; align-items: flex-start; justify-content: flex-start; text-align: left; font-weight: 400; }
.bk-check input, .bk-row input { width: 18px; height: 18px; flex: 0 0 auto; margin: 1px 0 0; padding: 0; }
.bk-row { display: flex; justify-content: flex-start; text-align: left; font-weight: 400; align-items: center; gap: 8px; padding: 4px 0; flex-wrap: wrap; }
.bk-prog { min-width: 160px; }
.bk-prog progress { width: 100%; height: 8px; accent-color: var(--accent); }
.warn-text { color: var(--warn); }
.lv-maphost { height: 340px; }
.lv-nomap { display: flex; gap: 6px; align-items: center; margin-top: 8px; }
/* geolocated chargers on a wide screen: the map gets a real share of the workspace next to the list */
@media (min-width: 1600px) { .lv-grid.has-map { grid-template-columns: minmax(0, 1fr) minmax(420px, 36%); } .lv-grid.has-map .lv-maphost { height: 460px; } }
.lv-events .act-list li { grid-template-columns: 70px 22px minmax(0, 1fr); }
.act-ic.ok { color: var(--ok); } .act-ic.bad { color: var(--bad); } .act-ic.warn { color: var(--warn); } .act-ic.info { color: var(--info); }
.lv-events { max-height: 520px; overflow: auto; }
.linkbtn { border: 0; background: none; padding: 0; height: auto; color: var(--text); cursor: pointer; text-align: left; font: inherit; }
.linkbtn:hover { text-decoration: underline; }
.lv-drawer table.kv th { width: 42%; }
@media (max-width: 1280px) { .lv-grid { grid-template-columns: minmax(0, 1fr); } .lv-side { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } }
/* 3.6.4 EV Charging Network Overview */
.ov-page { display: grid; gap: 14px; }
.ov-page [hidden] { display: none !important; }
.ov-page.ov-stale .ov-kpis, .ov-page.ov-stale .ov-health { opacity: .72; }
.ov-top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; width: 100%; }
.ov-scope { min-width: 0; }
.ov-ctl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ov-ctl select { width: auto; max-width: 240px; height: 34px; }
.ov-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel-3); }
.ov-seg button { height: 32px; border: 0; border-radius: 0; background: transparent; padding: 0 12px; font-size: 13px; color: var(--muted); }
.ov-seg button + button { border-left: 1px solid var(--line); }
.ov-seg button[aria-pressed=true] { background: var(--accent-soft); color: var(--text); font-weight: 600; }
.ov-state { font-weight: 600; } .ov-state.ok { color: var(--ok); } .ov-state.warn { color: var(--warn); } .ov-state.bad { color: var(--bad); }
.ov-banners:empty { display: none; }
.ov-banners { flex-basis: 100%; display: grid; gap: 8px; }
.ov-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1499px) { .ov-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .ov-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
@media (max-width: 420px) { .ov-kpis { grid-template-columns: minmax(0, 1fr); } }
.ov-kpi { position: relative; margin: 0; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ov-kpi:hover { border-color: var(--line-2); }
.ov-kpi:focus-within { outline: 2px solid var(--accent-ring); outline-offset: 1px; }
.ov-kl { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.ov-help { position: relative; z-index: 2; width: 24px; height: 24px; min-width: 24px; padding: 0; justify-content: center; border-radius: 99px; font-size: 12px; color: var(--muted); background: transparent; }
.ov-help[aria-expanded=true] { color: var(--text); border-color: var(--accent); }
.ov-tip { position: relative; z-index: 2; font-size: 12px; line-height: 1.45; color: var(--text); background: var(--panel-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 8px 10px; }
.ov-kv { font-family: var(--font-display); font-size: 28px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ov-kv small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.ov-ks { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--muted); }
.ov-delta { font-weight: 600; color: var(--muted); } .ov-delta.up { color: var(--ok); } .ov-delta.down { color: var(--bad); }
.ov-kpi.t-bad .ov-kv { color: var(--bad); } .ov-kpi.t-warn .ov-kv { color: var(--warn); }
.ov-go { position: absolute; inset: 0; z-index: 1; border: 0; background: transparent; border-radius: inherit; height: auto; padding: 0; }
.ov-go:hover { background: transparent; }
.ov-go:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ov-hbar { display: flex; gap: 2px; height: 16px; border-radius: 99px; overflow: hidden; background: var(--line); margin: 4px 0 12px; }
.ov-hbar > span { min-width: 4px; }
.h-ok { background: var(--ok); } .h-info { background: var(--info); } .h-bad { background: var(--bad); } .h-warn { background: var(--warn); }
.h-occ { background: color-mix(in srgb, var(--info) 45%, var(--panel)); } .h-muted { background: var(--line-2); }
.h-off { background: repeating-linear-gradient(135deg, var(--bad) 0 4px, color-mix(in srgb, var(--bad) 35%, var(--panel)) 4px 8px); }
.h-unk { background: transparent; box-shadow: inset 0 0 0 1px var(--faint); }
.ov-hchips { display: flex; flex-wrap: wrap; gap: 8px; }
.ov-hchip { height: 34px; padding: 0 12px; gap: 8px; font-size: 13px; background: var(--panel-2); }
.ov-hchip i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.ov-hchip b { font-variant-numeric: tabular-nums; }
.ov-hchip em { font-style: normal; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.ov-hchip:disabled { opacity: .55; cursor: default; }
.ov-how { margin-top: 10px; } .ov-how summary { cursor: pointer; font-size: 12.5px; color: var(--muted); } .ov-how p { margin: 6px 0 0; }
.ov-grid { grid-template-columns: minmax(0, 1.35fr) minmax(360px, 1fr); }
.ov-grid.ov-single { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1180px) { .ov-grid { grid-template-columns: minmax(0, 1fr); } .ov-grid .lv-side { grid-template-columns: minmax(0, 1fr); } }
.ov-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.ov-tabs button { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 99px; background: var(--panel-2); }
.ov-tabs button[aria-pressed=true] { border-color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.ov-n { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.ov-acts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ov-act { position: relative; display: grid; grid-template-columns: 4px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 12px 12px 0;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel-3); overflow: hidden; }
.ov-stripe { align-self: stretch; margin: -12px 0; background: var(--line-2); }
.ov-act.s-critical .ov-stripe, .ov-act.s-high .ov-stripe { background: var(--bad); } .ov-act.s-medium .ov-stripe { background: var(--warn); } .ov-act.s-low .ov-stripe { background: var(--info); }
.ov-abody { display: grid; gap: 4px; min-width: 0; }
.ov-atitle { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ov-ameta { display: flex; flex-wrap: wrap; gap: 2px 14px; }
.ov-ameta span { overflow-wrap: anywhere; }
.ov-anext { color: var(--text); line-height: 1.45; }
.ov-abtns { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; max-width: 220px; }
@media (max-width: 760px) { .ov-act { grid-template-columns: 4px minmax(0, 1fr); } .ov-abtns { grid-column: 2; justify-content: flex-start; max-width: none; } }
.ov-more, .ov-note, .ov-none { margin-top: 10px; }
.ov-ctitle { margin-bottom: 4px; }
svg.ov-chart { display: block; overflow: visible; }
svg.ov-chart text { fill: var(--faint); font-size: 11px; font-family: var(--font); }
svg.ov-chart .grid { stroke: var(--line); }
svg.ov-chart .col.b { fill: var(--accent); } svg.ov-chart .col.bad { fill: var(--bad); }
svg.ov-chart .hit { fill: transparent; }
svg.ov-chart .day { cursor: pointer; outline: none; }
svg.ov-chart .day:hover .hit, svg.ov-chart .day:focus-visible .hit { fill: var(--accent-soft); }
svg.ov-chart .day.on .hit { fill: var(--accent-soft); stroke: var(--accent); }
svg.ov-chart line.target { stroke: var(--warn); stroke-dasharray: 4 4; } svg.ov-chart text.target { fill: var(--warn); }
.ov-legend { flex-wrap: wrap; margin-top: 6px; }
.ov-day { margin-top: 10px; }
.ov-map .lv-maphost { height: 300px; }
@media (min-width: 1600px) { .ov-map .lv-maphost { height: 360px; } }
.ov-locs { margin-top: 10px; }
.ov-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.ov-av { display: inline-flex; align-items: center; gap: 8px; justify-content: flex-end; }
.ov-meter { width: 40px; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; display: inline-block; }
.ov-meter span { display: block; height: 100%; background: var(--ok); } .ov-meter.warn span { background: var(--warn); }
@media (max-width: 760px) { .ov-ctl { width: 100%; } .ov-ctl select { flex: 1 1 140px; max-width: none; } .ov-seg { order: -1; width: 100%; } .ov-seg button { flex: 1; padding: 0 6px; } }
@media (max-width: 600px) { .lv-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .lv-frow select { flex: 1 1 140px; max-width: none; }
  .lv-att-list li { grid-template-columns: auto minmax(0, 1fr); } .lv-maphost { height: 280px; }
  .lv-events .act-list li { grid-template-columns: 64px minmax(0, 1fr); } }
/* 3.1 related problems and runbooks (charging incidents) */
.rp-list { display: grid; gap: 12px; }
.rp-item { border: 1px solid var(--border); border-radius: 10px; padding: 12px; display: grid; gap: 8px; }
.rp-inc { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.rb-steps { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.rb-step { display: flex; gap: 8px; align-items: flex-start; color: var(--text); font-weight: 400; }
.rb-step input { margin-top: 3px; flex: none; }
.rp-stats { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; font-size: 13px; }
.rp-stats div { display: flex; flex-direction: column; min-width: 0; }
.rp-stats dt { color: var(--muted); font-size: 12px; }
.rp-stats dd { margin: 0; font-weight: 600; }
/* 3.1 firmware center */
.fw-vers { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.fw-ver { border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; font-size: 12.5px; white-space: nowrap; }
.fw-ver.bad { border-color: var(--bad); color: var(--bad); }
/* 3.1 reliability + NOC screen */
.rel-open { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.rel-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rel-bars li { display: grid; grid-template-columns: 92px minmax(60px, 1fr) minmax(130px, auto); gap: 10px; align-items: center; }
.rel-bar { height: 10px; border-radius: 99px; background: var(--panel-3); overflow: hidden; }
.rel-bar i { display: block; height: 100%; min-width: 2px; background: var(--info); border-radius: 99px; }
@media (max-width: 640px) { .rel-bars li { grid-template-columns: 76px 1fr; } .rel-bars li > :last-child { grid-column: 1 / -1; } }
.noc { background: var(--bg); color: var(--text); border-radius: 12px; padding: 20px; display: grid; gap: 18px; }
.noc:fullscreen { border-radius: 0; padding: 32px; overflow: auto; align-content: start; }
.noc-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.noc-title { font-family: var(--display); font-weight: 700; font-size: 26px; }
.noc-fresh { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; margin-top: 2px; }
.noc-clock { font-size: 34px; font-weight: 500; letter-spacing: .02em; }
.noc-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.noc-tile { background: var(--panel); border: 1px solid var(--line); border-left: 6px solid var(--line-2); border-radius: 12px; padding: 14px 16px; }
.noc-tile.ok { border-left-color: var(--ok); } .noc-tile.warn { border-left-color: var(--warn); } .noc-tile.bad { border-left-color: var(--bad); }
.noc-l { color: var(--muted); font-size: 15px; }
.noc-v { font-family: var(--display); font-weight: 700; font-size: 44px; line-height: 1.1; margin-top: 4px; font-variant-numeric: tabular-nums; }
.noc-s { color: var(--muted); font-size: 14px; margin-top: 2px; }
.noc-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 14px; }
.noc-attn, .noc-ev { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.noc h2 { font-family: var(--display); font-weight: 600; font-size: 20px; margin: 0 0 10px; }
.noc-attn ul, .noc-ev ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.noc-attn li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: 19px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.noc-attn li:last-child { border-bottom: 0; }
.noc-dur { color: var(--muted); font-size: 16px; white-space: nowrap; }
.noc-ok { font-size: 20px; color: var(--ok); display: flex; align-items: center; gap: 6px; }
.noc-more { color: var(--muted); margin: 8px 0 0; }
.noc-ev li { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 10px; font-size: 15px; align-items: baseline; }
.noc-ev li time { color: var(--muted); }
@media (max-width: 900px) { .noc-grid { grid-template-columns: 1fr; } .noc-v { font-size: 34px; } .noc-attn li { font-size: 16px; grid-template-columns: auto minmax(0, 1fr); } .noc-dur { grid-column: 2; } }

/* 3.3 site console: users, grouped permissions, role comparison */
.users-filters { gap: 10px; align-items: center; margin-bottom: 12px; }
.row.users-filters > select, .row.users-filters > input { flex: 0 1 230px; width: 230px; min-width: 0; }
.user-cell { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
tr.muted-row td { opacity: .62; }
tr.muted-row td:last-child { opacity: 1; }
.perm-groups { gap: 10px; }
details.perm-group { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
details.perm-group > summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 14px; list-style: none; }
details.perm-group > summary::-webkit-details-marker { display: none; }
details.perm-group > summary::before { content: "▸"; color: var(--muted); transition: transform .15s; }
details.perm-group[open] > summary::before { transform: rotate(90deg); }
details.perm-group > summary:focus-visible { outline: 2px solid var(--accent-ring); outline-offset: -2px; border-radius: var(--radius-sm); }
details.perm-group > .tablewrap, details.perm-group > ul { margin: 0 14px 14px; }
.perm-sum { margin-left: auto; display: flex; flex-wrap: wrap; gap: 12px; }
.act-chip { display: inline-block; font-family: var(--font-mono); font-size: 11.5px; padding: 2px 7px; border-radius: 6px; background: var(--info-bg); color: var(--info); white-space: nowrap; }
.act-chip.a-R { background: var(--surface-elevated); color: var(--text-secondary); }
.act-chip.a-A, .act-chip.a-D { background: var(--warn-bg); color: var(--warn); }
.act-chip.a-X { background: var(--ok-bg); color: var(--ok); }
td.c, th.c { text-align: center; }
.perm-yes { color: var(--ok); display: inline-flex; }
.perm-no { color: var(--faint); }
ul.findings, ul.rules-list, ul.cmp-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
ul.findings li, ul.rules-list li { line-height: 1.5; }
ul.findings code { word-break: break-word; }
.cmp-items { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.cmp-item { border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; font-size: 12.5px; }
.cmp-item.risk { border-color: var(--warn); }
@media (max-width: 700px) { .row.users-filters > select, .row.users-filters > input { flex: 1 1 100%; width: 100%; } .perm-sum { margin-left: 0; } }
/* step-by-step trace (LPR event → decision → barrier command): outcome in words, not only in colour */
.trace { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.trace-step { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 8px; border: 1px solid var(--border); border-radius: var(--radius, 8px); }
.trace-t { display: grid; gap: 2px; min-width: 0; } .trace-t .small { overflow-wrap: anywhere; }
@media (max-width: 600px) { .trace-step { grid-template-columns: auto minmax(0, 1fr); } .trace-step > .badge { grid-column: 2; justify-self: start; } }
/* live updates interrupted (Client Software): a bar at the bottom, above the content, with the text in words */
.live-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: flex; gap: 10px; align-items: center;
  max-width: min(640px, calc(100vw - 32px)); padding: 10px 14px; border-radius: var(--radius, 8px); border: 1px solid var(--border); background: var(--panel); box-shadow: var(--shadow, 0 8px 24px rgba(0,0,0,.35)); }
.live-bar.warn { border-color: var(--warn); } .live-bar.warn .i { color: var(--warn); } .live-bar.ok .i { color: var(--ok); }
@media (prefers-reduced-motion: no-preference) { .live-bar { transition: opacity .2s; } }
.live-bar[hidden] { display: none; }

/* 3.5 EV Charging workspace: group subtitle, inventory, connection paths, registration wizard */
.ch-sub { margin: 2px 0 0; }
.lv-inv { display: grid; gap: 14px; min-width: 0; }
.lv-pick { width: auto; margin: 0; }
.cp-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.cp-paths.compact { margin-bottom: 12px; }
.cp-path { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--panel-2); min-width: 0; }
.cp-path p { margin: 6px 0 0; }
.cp-path-h { display: flex; align-items: center; gap: 8px; }
.cp-kv { grid-column: 1 / -1; min-width: 0; overflow-x: auto; }
.reg-steps { display: flex; flex-wrap: wrap; gap: 6px 14px; list-style: none; margin: 0 0 6px; padding: 0; font-size: 13px; }
.reg-steps li { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.reg-steps .n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); font-size: 12px; }
.reg-steps li.on { color: var(--text); font-weight: 600; }
.reg-steps li.on .n { background: var(--accent-fill); color: var(--accent-fill-ink); border-color: transparent; }
.reg-steps li.done .n { border-color: var(--ok); color: var(--ok); }
.reg-nav { margin-top: 8px; gap: 8px; }
.reg-todo, .reg-help ul { margin: 6px 0; padding-left: 20px; display: grid; gap: 4px; }
.reg-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.reg-check li { display: flex; align-items: center; gap: 8px; }
.reg-check li.ok .i { color: var(--ok); } .reg-check li.no .i { color: var(--warn); }
.reg-wiz .field-err { color: var(--bad); font-size: 12px; min-height: 0; }
.reg-wiz .spin { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: sp-spin 1s linear infinite; }
@keyframes sp-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .reg-wiz .spin { animation: none; } }
@media (max-width: 720px) { .cp-paths { grid-template-columns: minmax(0, 1fr); } }
.lv-states { display: grid; gap: 4px; justify-items: start; }
.lv-one { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.lv-kind { font-size: 11px; font-weight: 500; padding: 1px 7px; border-radius: 9px; background: var(--panel-3); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.lv-dots { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.lv-cd { min-width: 18px; height: 18px; padding: 0 3px; border-radius: 5px; display: inline-grid; place-items: center; font: 500 10.5px/1 var(--font-mono);
  color: var(--faint); background: var(--panel-3); box-shadow: inset 0 0 0 1.5px var(--faint); }
.lv-cd.t-ok { color: var(--ok); background: var(--ok-bg); box-shadow: inset 0 0 0 1.5px var(--ok); }
.lv-cd.t-info { color: var(--info); background: var(--info-bg); box-shadow: inset 0 0 0 1.5px var(--info); }
.lv-cd.t-warn { color: var(--warn); background: var(--warn-bg); box-shadow: inset 0 0 0 1.5px var(--warn); }
.lv-cd.t-bad { color: var(--bad); background: var(--bad-bg); box-shadow: inset 0 0 0 1.5px var(--bad); }
.lv-cd.t-none { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--border-strong); }
.t-bad-tx { color: var(--bad); }
.lv-inv td { padding-top: 7px; padding-bottom: 7px; }
.lv-inv table.t th { white-space: normal; } .lv-inv table.t th, .lv-inv table.t td { padding-left: 8px; padding-right: 8px; }
.lv-inv table.t th button, .lv-inv table.t th * { white-space: normal; }
/* 3.5: money steps of a charging session (energy, calculated, reserved, collected, refunded, outstanding) */
.money-steps { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 8px; }
/* 3.5: charger page – connection setup folded away */
.st-setup > summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.st-setup[open] > summary { margin-bottom: 8px; }

/* 3.8 screen ads (cloud): picture thumbnails in the list and the preview in the form */
.ad-thumb { width: 72px; height: 96px; object-fit: contain; border-radius: 6px; border: 1px solid var(--border); background: var(--bg); display: block; }
.ad-preview { display: block; max-width: 220px; max-height: 300px; margin-top: 8px; border-radius: 8px; border: 1px solid var(--border); object-fit: contain; background: var(--bg); }
.ad-preview[hidden] { display: none; }
.lv-inv td .small { white-space: nowrap; }
.lv-inv tr.lv-att > td:first-child { box-shadow: inset 3px 0 0 var(--bad); }
/* 3.8 overview rows: the cards of one row end together; long lists scroll inside their card */
.ov-grid.ov-rows { align-items: stretch; }
.ov-grid.ov-rows > .card { min-width: 0; }
.ov-rows .lv-events { max-height: 480px; }
.ov-rows .ov-map { display: flex; flex-direction: column; }
.ov-rows .ov-locs { max-height: 380px; overflow: auto; }
.ov-rows .ov-actions .ov-acts { max-height: 640px; overflow: auto; }
.lv-states.lv-one { align-items: center; }
.ov-cwrap { position: relative; }
.ov-tip { position: absolute; top: 4px; transform: translateX(-50%); z-index: 3; pointer-events: none; min-width: 150px; padding: 8px 10px; border-radius: 8px;
  background: var(--panel-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 12px; line-height: 1.5; white-space: nowrap; }
.ov-tip[hidden] { display: none; }
.ov-tip-hint { margin-top: 4px; color: var(--accent); }
/* 3.8 Client Software EV page: five figures, charger cards with a bar per connector, today per hour and power sharing */
.grid.kpis.ev-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1280px) { .grid.kpis.ev-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ev-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1100px) { .ev-layout { grid-template-columns: minmax(0, 1fr); } }
.ev-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.ev-card { cursor: pointer; }
.ev-card.off { box-shadow: inset 3px 0 0 var(--bad); }
.ev-side { display: grid; gap: 16px; }
.ev-conn { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.ev-tx { margin-top: 4px; }
.ev-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 6px; }
.ev-bar.big { height: 10px; border-radius: 5px; }
.ev-bar i { display: block; height: 100%; background: var(--info); border-radius: inherit; }
.ev-bar i.soc { background: var(--ok); } .ev-bar i.warn { background: var(--warn); }
.ev-share { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.ev-share li { display: flex; justify-content: space-between; gap: 8px; }
.lv-legend i.b2 { background: var(--blue); }
.ev-kpis .kpi .value { font-size: 26px; white-space: nowrap; }
.ev-kpis .kpi.ic { padding: 16px; gap: 12px; }
@media (max-width: 700px) { .grid.kpis.ev-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ev-kpis .kpi .value { font-size: 21px; } }
/* 3.9 Devices: status pills and type names */
.pills { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pills .pill { height: 32px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel); display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.pills .pill .n { font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
.pills .pill.on { background: var(--accent-soft); border-color: var(--accent); color: var(--text); } .pills .pill.on .n { color: var(--text); }
.dev-type { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; } .dev-type svg { color: var(--muted); flex-shrink: 0; }
.rep-pick { margin: 4px 0 14px; } .rep-pick .pill { text-decoration: none; }
/* 3.9 own date field + calendar (UI.dateField) and the Period presets */
input.dp-field { font-family: var(--mono); font-variant-numeric: tabular-nums; min-width: 9.5em; }
input.dp-field[data-dp="datetime"] { min-width: 12.5em; }
input.dp-field[aria-invalid="true"] { border-color: var(--bad); }
.dp-pop { position: fixed; z-index: 1000; width: 272px; padding: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, .35); }
.dp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.dp-head b { font-weight: 600; text-transform: capitalize; }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-wd { font-size: 11px; color: var(--faint); text-align: center; padding: 4px 0; text-transform: capitalize; }
.dp-day { height: 32px; min-width: 0; padding: 0; border: 1px solid transparent; background: transparent; border-radius: 8px; color: var(--text); font-family: var(--mono); font-size: 12.5px; }
.dp-day:hover { background: var(--accent-soft); }
.dp-day.today { border-color: var(--line); }
.dp-day.on { background: var(--accent-fill); color: var(--accent-fill-ink); }
.dp-foot { display: flex; justify-content: space-between; margin-top: 6px; }
/* 3.9 HTML bar chart (UI.barChart): normal small labels at any width, light value axis */
.bchart { display: grid; grid-template-columns: auto 1fr; gap: 0 8px; font-size: 11px; color: var(--faint); }
.bchart .bc-axis { height: var(--bc-h); display: flex; flex-direction: column; justify-content: space-between; text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; padding-bottom: 18px; }
.bchart .bc-axis span { line-height: 1; transform: translateY(-50%); } .bchart .bc-axis span:last-child { transform: translateY(50%); }
.bchart .bc-plot { height: var(--bc-h); display: flex; align-items: stretch; gap: 2px; min-width: 0;
  background: linear-gradient(var(--line), var(--line)) 0 calc(100% - 18px) / 100% 1px no-repeat, linear-gradient(var(--line), var(--line)) 0 calc((100% - 18px) / 2) / 100% 1px no-repeat; }
.bchart .bc-col { flex: 1 1 0; min-width: 0; max-width: 70px; display: flex; flex-direction: column; }
.bchart .bc-bars { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 2px; padding: 0 15%; }
.bchart .bc-bars span { flex: 1; max-width: 100%; border-radius: 2px 2px 0 0; min-height: 0; }
.bchart .b { background: var(--accent); } .bchart .b2 { background: var(--blue); } .bchart .b2.bad { background: var(--bad); }
.bchart .bc-col:hover .bc-bars span { filter: brightness(1.2); }
.bchart .bc-lab { height: 18px; line-height: 18px; text-align: center; white-space: nowrap; overflow: visible; font-family: var(--mono); font-size: 10.5px; }
.rep-star { font-size: 16px; line-height: 1; color: var(--faint); } .rep-star.on { color: var(--warn); } .rep-chart { margin-bottom: 12px; }
.row > input.dp-field, .row > .field input.dp-field, .users-filters input.dp-field, .sys-filters input.dp-field { width: 9.5em; flex: none; }
.row > input.dp-field[data-dp="datetime"] { width: 12.5em; }
/* 3.9 car parks not set up yet: a quiet onboarding line under Needs attention (audit K1) */
.setup-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; }
.setup-bar > div:nth-child(2) { flex: 1 1 260px; }
.setup-links { display: flex; gap: 6px; flex-wrap: wrap; }
.warn-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-radius: 10px; margin-bottom: 12px; }
/* 3.9 filters that fold on a phone (sessions), the session timeline (audit C9/C10) */
.fold-btn { display: none; }
@media (max-width: 720px) {
  .fold-btn { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; }
  .fold-btn .n:not(:empty) { background: var(--accent-fill); color: var(--accent-fill-ink); border-radius: 99px; padding: 0 6px; font-size: 11px; }
  .fold-filters { display: none !important; }
  .fold-filters.open { display: flex !important; }
}
.tl { list-style: none; margin: 0; padding: 0 0 0 26px; position: relative; }
.tl::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl li { position: relative; display: grid; grid-template-columns: 118px 1fr; gap: 10px; padding: 8px 0; }
.tl li::before { content: ""; position: absolute; left: -25px; top: 13px; width: 10px; height: 10px; border-radius: 50%; background: var(--panel); border: 2px solid var(--faint); }
.tl li.tl-in::before, .tl li.tl-out::before { border-color: var(--accent); background: var(--accent); }
.tl li.tl-pay::before { border-color: var(--blue); }
.tl time { font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 1px; }
.tl .tl-img img { margin-top: 6px; max-width: 100%; max-height: 220px; border-radius: 8px; display: block; }
@media (max-width: 720px) { .tl li { grid-template-columns: 1fr; gap: 2px; } }
.sess-grid { align-items: start; }
/* 3.9 phone top bar: language and theme move into the user menu (audit C14/K10) */
@media (max-width: 720px) { .top .top-lang, .top .top-theme { display: none; } }
.lang-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
td.wide-text { min-width: 260px; max-width: 420px; white-space: normal; } td.wide-text span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lic-tabs { margin: 0 0 6px; } .lic-tabs .pill { text-decoration: none; height: 36px; font-size: 13.5px; }
.focus-sec .sec-title { margin: 4px 0 12px; }
/* 3.9 (audit P1/P3): one template for the public pages – header (mark, SmartPark, car park / page name, language),
   one card, one main button style, the same footer */
.pub-page { min-height: 100vh; display: flex; flex-direction: column; }
.pub-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--sb-bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.pub-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pub-brand .mark { width: 32px; height: 32px; flex-shrink: 0; }
.pub-brand .bt { min-width: 0; }
.pub-brand b { display: block; font: 700 17px/1.1 var(--font-display); color: var(--text); letter-spacing: .01em; }
.pub-brand small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pub-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.pub-main { flex: 1; width: min(560px, 100%); margin: 0 auto; padding: 16px; }
.pub-main.wide { width: min(980px, 100%); }
.pub-main > .card { width: 100%; max-width: none; }
.pub-foot { text-align: center; color: var(--faint); font-size: 12px; padding: 18px 16px 22px; }
.pub-foot a { color: inherit; }
.pub button.grad { background: var(--accent-fill); color: var(--accent-fill-ink); }
.pub input::placeholder { text-transform: none; }
.pub-msg { text-align: center; padding: 18px 6px; }
.pub-msg .ico { width: 56px; height: 56px; border-radius: 99px; margin: 0 auto 12px; display: grid; place-items: center; background: var(--warn-soft, var(--panel-2)); color: var(--warn); }
/* 3.9 (audit P7): staff phone page – alarms on top, three large job buttons */
.staff-alarms { margin-bottom: 12px; } .staff-alarms .banner { border-radius: 10px; }
.staff-jobs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 4px 0 18px; }
.staff-jobs button { min-height: 84px; flex-direction: column; justify-content: center; font-size: 15px; gap: 6px; }
.staff-pick { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; min-height: 56px; text-align: left; }
.cfg-save .cfg-dirty { margin-right: auto; font-size: 13px; }
.cfg-main.dirty .cfg-save { box-shadow: 0 -6px 16px rgba(0, 0, 0, .18); }
.toast .toast-undo { margin-left: 12px; } .toast { display: flex; align-items: center; }
