/* Washroom Dashboard — bento grid SaaS style, light + dark. */
/* Plus Jakarta Sans (SIL OFL 1.1, see fonts/OFL.txt), served locally so the look does not depend on Google Fonts. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/PlusJakartaSans-latin.woff2") format("woff2");
}
:root {
  /* Light mode is a warm cream (2026-10-08: pure white was too bright). */
  --bg: #ece8e1;
  --surface: #f7f5f0;
  --surface-2: #efebe4;
  --border: #dcd6cc;
  --ink: #1c1a17;
  --ink-2: #4f4a42;
  --muted: #6b655b;
  --accent: #1f4fd8;
  --accent-soft: #e8eefc;
  --ok: #047857;
  --ok-soft: #e3f6ee;
  --warn: #b45309;
  --warn-soft: #fdf1e3;
  --bad: #be123c;
  --bad-soft: #fde8ee;
  --soon: #64748b;
  --wo: #ea7a12; --pink: #db2777; --recap: #4f46e5; --trigger: #0d9488;
  --hm-low: #86efac; --hm-mid: #fde047; --hm-high: #f87171; --hm-ink: #1c1a17;
  --shadow: 0 1px 2px rgba(15, 26, 46, .04), 0 4px 16px rgba(15, 26, 46, .05);
  --radius: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1220; --surface: #121b2d; --surface-2: #18233a; --border: #24314a;
    --ink: #e8edf6; --ink-2: #b6c1d3; --muted: #93a0b5;
    --accent: #7ea3ff; --accent-soft: #1b2a4d;
    --ok: #34d399; --ok-soft: #0f2e25; --warn: #fbbf24; --warn-soft: #33270f;
    --bad: #fb7185; --bad-soft: #3a1520; --soon: #8a97ab; --wo: #f59e0b; --pink: #f472b6; --recap: #818cf8; --trigger: #2dd4bf; --hm-low: #15803d; --hm-mid: #a16207; --hm-high: #b91c1c; --hm-ink: #f8fafc;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1220; --surface: #121b2d; --surface-2: #18233a; --border: #24314a;
  --ink: #e8edf6; --ink-2: #b6c1d3; --muted: #93a0b5;
  --accent: #7ea3ff; --accent-soft: #1b2a4d;
  --ok: #34d399; --ok-soft: #0f2e25; --warn: #fbbf24; --warn-soft: #33270f;
  --bad: #fb7185; --bad-soft: #3a1520; --soon: #8a97ab; --wo: #f59e0b; --pink: #f472b6; --recap: #818cf8; --trigger: #2dd4bf; --hm-low: #15803d; --hm-mid: #a16207; --hm-high: #b91c1c; --hm-ink: #f8fafc;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
/* Components below set display, which would otherwise override the hidden attribute. */
[hidden] { display: none !important; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 14px/1.5 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
h1, h2 { margin: 0; letter-spacing: -.01em; }
.page { max-width: 1360px; margin: 0 auto; padding: 20px 24px 32px; display: flex; flex-direction: column; gap: 20px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.strong { font-weight: 700; }
.mono { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 12.5px; }
.text-ok { color: var(--ok); font-weight: 600; }
.text-bad { color: var(--bad); font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.icon { flex: none; vertical-align: -3px; }

/* ---------- top bar ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; }
/* Logos are JPEGs on white, so the tile stays white in dark mode too. */
.logo { display: inline-flex; align-items: center; height: 44px; padding: 4px 10px; background: #fff; border: 1px solid var(--border); border-radius: 12px; }
.logo-fallback { color: #1f4fd8; }
.logo img { height: 28px; width: auto; display: block; }
.logo-fallback { font-weight: 800; font-size: 13px; letter-spacing: .08em; color: var(--accent); }
.topbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.date-nav { display: flex; align-items: center; gap: 6px; }
.date-pill { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; font-weight: 600; cursor: pointer; }
.date-pill input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.updated { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { color: var(--ink); border-color: var(--muted); }

/* ---------- location header ---------- */
.location { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.location h1 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; margin: 4px 0 10px; }
.breadcrumb { display: flex; gap: 8px; font-size: 13px; color: var(--muted); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 4px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.chip--accent { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.filters, .toolbar { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.filters[aria-busy="true"] { opacity: .6; cursor: progress; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.field select, .field input {
  height: 40px; min-width: 140px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); color: var(--ink); font: 500 14px/1 inherit; text-transform: none; letter-spacing: 0;
}
.field select:focus-visible, .field input:focus-visible, .btn:focus-visible, .icon-btn:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- cards & bento ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.card-head h2 { font-size: 17px; font-weight: 700; }
.card-head p { margin: 2px 0 0; }
#content { display: flex; flex-direction: column; gap: 20px; }

.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.section { display: flex; flex-direction: column; gap: 12px; min-height: 170px; color: inherit; }
.section--soon { opacity: .72; }
.section--module { min-width: 0; }
.section-head { display: flex; justify-content: space-between; align-items: center; }
.section-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.section--soon .section-icon { background: var(--surface-2); color: var(--soon); }
.section-name { font-size: 16px; font-weight: 700; }
.section-metric { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.section-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: auto; }
.section-stats div { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: var(--surface-2); border-radius: 12px; }
.section-stats strong { font-size: 18px; }
.section-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 700; }
.metric { font-size: 44px; font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.section--module .metric { font-size: 40px; }
.metric small { font-size: 18px; font-weight: 600; color: var(--muted); }
.metric--empty { color: var(--soon); font-size: 32px; margin-top: auto; }
.metric-label { color: var(--muted); font-weight: 600; }
.module-readout { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.module-meter { display: flex; flex-direction: column; gap: 5px; }
.module-meter-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 600; }
.module-meter .progress { height: 6px; }
.module-meta { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; }
.module-meta .truncate { min-width: 0; }
.section--module > .module-meta:last-child { margin-top: auto; }
.module-feedback { display: flex; flex-direction: column; gap: 2px; padding-top: 4px; font-size: 12px; overflow-wrap: anywhere; }
.module-feedback strong { color: var(--ink-2); }
.module-feedback span { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: var(--muted); }

.progress { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.progress span.warn { background: var(--warn); }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.badge--lg { font-size: 15px; padding: 6px 14px; align-self: flex-start; }
.badge--ok { background: var(--ok-soft); color: var(--ok); }
.badge--bad { background: var(--bad-soft); color: var(--bad); }
.badge--soon { background: var(--surface-2); color: var(--soon); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.dot--pulse { animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 currentColor; } 70% { box-shadow: 0 0 0 6px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .dot--pulse { animation: none; } .section--people { transition: none; } }

/* ---------- KPIs ---------- */
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.kpi { display: flex; flex-direction: column; gap: 8px; }
.kpi-label { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.kpi-ring { display: flex; align-items: center; gap: 14px; }
.ring-box { position: relative; width: 56px; height: 56px; flex: none; }
.ring { width: 56px; height: 56px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 3.6; }
.ring-track { stroke: var(--surface-2); }
.ring-value { stroke: var(--accent); stroke-linecap: round; }
.ring--warn .ring-value { stroke: var(--warn); }
.ring-pct { position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; font-weight: 700; }

/* ---------- chart ---------- */
.legend { display: flex; gap: 16px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-bar { width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wo); }
.chart { display: flex; gap: 8px; height: 240px; }
.chart-scale { display: flex; flex-direction: column; justify-content: space-between; padding-bottom: 22px; min-width: 24px; text-align: right; }
.chart-bars { flex: 1; display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 6px; border-bottom: 1px solid var(--border);
  background: repeating-linear-gradient(to top, transparent 0 calc(25% - 1px), var(--border) calc(25% - 1px) 25%); background-size: 100% calc(100% - 22px); background-repeat: no-repeat; }
.bar-col { display: flex; flex-direction: column; min-width: 0; }
.bar-area { position: relative; flex: 1; display: flex; align-items: flex-end; justify-content: center; }
.bar { width: 100%; max-width: 22px; min-height: 2px; background: var(--accent); border-radius: 6px 6px 2px 2px; }
.bar-col:hover .bar { filter: brightness(1.15); }
.bar-wo { position: absolute; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--wo);
  box-shadow: 0 0 0 2px var(--surface); }
.bar-label { height: 22px; line-height: 22px; text-align: center; font-size: 10.5px; color: var(--muted); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th { position: sticky; top: 0; background: var(--surface); text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr:hover { background: var(--surface-2); }
tbody tr:last-child td { border-bottom: 0; }
.row-current td { background: var(--accent-soft); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.truncate { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { padding: 40px 12px; text-align: center; color: var(--muted); }

/* ---------- buttons & controls ---------- */
.btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); font: 600 13.5px/1 inherit; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--muted); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
:root[data-theme="dark"] .btn--primary { color: #0b1220; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn--primary { color: #0b1220; } }
.btn--ghost { background: transparent; }
.btn--sm { height: 32px; padding: 0 12px; font-size: 12.5px; }
.actions { display: flex; gap: 8px; }
.segmented { display: inline-flex; padding: 4px; gap: 4px; background: var(--surface-2); border-radius: 12px; }
.segmented a { padding: 6px 14px; border-radius: 9px; font-weight: 600; color: var(--muted); font-size: 13px; }
.segmented a[aria-current] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.pager-links { display: inline-flex; align-items: center; gap: 10px; }

/* ---------- footer ---------- */
.footer { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 12px; padding-top: 4px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .page { padding: 16px 16px 24px; gap: 16px; }
  .bento, .kpis { grid-template-columns: 1fr; gap: 14px; }
  .filters, .toolbar { width: 100%; }
  .field { flex: 1 1 140px; }
  .field select, .field input { min-width: 0; width: 100%; }
  .chart { height: 200px; }
  .chart-bars { gap: 2px; }
  .bar-label { font-size: 9px; }
  .bar-col:nth-child(odd) .bar-label { visibility: hidden; }
  .updated { display: none; }
}

/* ---------- per-device counters ---------- */
.counter-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.counter-list li, .counter-row { display: flex; flex-direction: column; gap: 4px; }
.counter-head { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.counter-head .truncate { max-width: none; flex: 1; min-width: 0; }

/* ---------- alerts & refresh state ---------- */
.alert { padding: 12px 16px; border-radius: 12px; font-weight: 600; font-size: 13.5px; }
.alert--warn { background: var(--warn-soft); color: var(--warn); }
.alert--bad { background: var(--bad-soft); color: var(--bad); }
[data-alerts]:empty { display: none; }
.updated.is-updating .icon { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .updated.is-updating .icon { animation: none; } }

/* ---------- language switch ---------- */
.segmented--sm { padding: 3px; }
.segmented--sm a { padding: 5px 10px; font-size: 12px; }

/* ---------- busiest hour ---------- */
.busiest { margin: 6px 0 0; font-weight: 600; color: var(--ink-2); }
.bar-col--peak .bar { background: var(--accent); filter: saturate(1.2) brightness(.9); }

/* ---------- empty state ---------- */
.empty-state { text-align: center; padding: 56px 24px; }
.empty-state h1 { font-size: 22px; margin-bottom: 8px; }

/* ---------- design 2026-10-06: header, people counting overview/detail ---------- */
.eyebrow { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.location h1 { margin-top: 6px; }
.presets { align-self: flex-end; }
.presets a { white-space: nowrap; }
.nowrap { white-space: nowrap; }
.badge--warn { background: var(--warn-soft); color: var(--warn); }
.breadcrumb a { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.alert--rich { display: flex; flex-direction: column; gap: 2px; }
.alert--rich span { font-weight: 500; }

.section-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.section-title h2 { font-size: 18px; }
.section--people { color: inherit; transition: transform .15s, box-shadow .15s; }
.section--people:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(31, 79, 216, .12); }
.section-metric--stack { flex-direction: column; align-items: flex-start; gap: 2px; }
.section-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 13px; }

.page-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.page-title h2 { font-size: 22px; font-weight: 800; }
.page-title .chip { display: inline-flex; align-items: center; gap: 6px; }
.page-title-action { margin-left: auto; }

.kpis--pc { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpi-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.sensor-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.sensor-list li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.sensor-list li:last-child { border-bottom: 0; }
.sensor-name { display: flex; flex-direction: column; min-width: 0; }
.sensor-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sensor-progress { display: flex; align-items: center; gap: 10px; }
.sensor-progress .progress { flex: 1; }
.sensor-status { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }

.toolbar--tab { margin-bottom: 16px; }
.summary-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.summary { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: var(--surface-2); border-radius: 12px; }
.summary strong { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.btn.is-disabled { opacity: .45; pointer-events: none; }

@media (max-width: 1100px) {
  .kpis--pc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi--status { grid-column: 1 / -1; }
  .summary-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .kpis--pc, .summary-cards { grid-template-columns: 1fr; }
  .sensor-list li { grid-template-columns: 1fr; }
  .sensor-status { flex-direction: row; align-items: center; justify-content: space-between; }
  .page-title-action { margin-left: 0; }
}

/* ---------- daily / monthly traffic chart (same look as the hourly one) ---------- */
.chart-block { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.chart-block h3 { margin: 0; font-size: 15px; }
.chart-bars--flex { grid-template-columns: repeat(var(--bars), minmax(0, 1fr)); }
.chart-bars--flex .bar-label { overflow: visible; white-space: nowrap; }

/* ---------- paired bars (visitors + notifications) with values on top ---------- */
.legend-bar--notif { background: var(--wo); }
.bar-pair { gap: 4px; }
.bar-stack { flex: 1; max-width: 22px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.bar-stack .bar { max-width: none; }
.bar--notif { background: var(--wo); }
.bar-value { height: 18px; line-height: 18px; font-size: 11px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.chart--paired .chart-scale { padding-top: 18px; }
.bar-col--peak .bar--notif { background: var(--wo); filter: none; }

/* ---------- pagination ---------- */
.pager-size label { display: inline-flex; align-items: center; gap: 8px; }
.pager-size select { height: 32px; padding: 0 8px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); font: 600 12.5px/1 inherit; }
.pager-links { flex-wrap: wrap; gap: 6px; }
.pager-links .btn--sm { min-width: 32px; justify-content: center; padding: 0 10px; }
.btn.is-current { background: var(--accent); border-color: var(--accent); color: #fff; }
:root[data-theme="dark"] .btn.is-current { color: #0b1220; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.is-current { color: #0b1220; } }
.pager-gap { padding: 0 2px; color: var(--muted); }

/* ---------- overview: device lists, sensor ids, total ---------- */
.section-meta { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.device-list { list-style: none; margin: 4px 0 0; padding: 10px 0 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.device-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-width: 0; }
.device-row .truncate { max-width: none; flex: 1; min-width: 0; }
.device-value { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; font-size: 13px; }
.sensor-ids { list-style: none; margin: 0; padding: 0; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.sensor-ids .mono { font-size: 11.5px; }
.device-list li { display: flex; flex-direction: column; gap: 2px; }
.device-list li + li { padding-top: 8px; border-top: 1px dashed var(--border); }
.device-list .truncate { display: block; max-width: 100%; }

/* ---------- overview: one card per device ---------- */
.device-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.device-title .truncate { display: block; max-width: 100%; }
.section--waiting { opacity: .8; }
#devices { display: flex; flex-direction: column; gap: 20px; }
#devices:empty { display: none; }

/* Hourly chart: axis labels and gridlines at the same heights as the bar values (--p = % of the plot,
   the plot being the chart minus the 22px hour-label row). */
.chart-scale--ticks { position: relative; display: block; padding: 0; min-width: 28px; }
.chart-scale--ticks span { position: absolute; right: 0; bottom: calc(22px + (100% - 22px) * var(--p) / 100); transform: translateY(50%); line-height: 1; }
.chart-bars--ticks { position: relative; background: none; }
.chart-grid { position: absolute; inset: 0; pointer-events: none; }
.chart-grid span { position: absolute; left: 0; right: 0; bottom: calc(22px + (100% - 22px) * var(--p) / 100); border-top: 1px dashed var(--border); }
.chart-grid span:first-child { border-top-style: solid; }
.chart-bars--ticks .bar-col { position: relative; z-index: 1; }

/* Notification traffic (one toilet / device): ONE bar chart per device (queries.notification_chart). Per hour a
   bar of accepted notifications, a pink bar beside it for failed sends (paired-bar styles .bar-pair /
   .bar-stack), and with Work Order finish times the average time to finish as a line on a right-hand axis. */
.gap-stats { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-bottom: 16px; }
.gap-stats div { display: flex; flex-direction: column; gap: 2px; }
.gap-stats strong { font-size: 20px; }
.ntraffic-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 16px; }
.field--inline { flex-direction: row; align-items: center; gap: 8px; }
.field--inline select { padding: 6px 10px; }
.ntchart-block + .ntchart-block { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.ntchart-device { margin: 0 0 12px; font-size: 15px; }
.ntchart { height: 280px; }
.ntchart-bars { gap: 10px; }
.ntchart-bars .bar-pair { gap: 3px; }
.ntchart-bars .bar-stack { max-width: 38px; }  /* wide bars like the design */
.ntbar--success { background: color-mix(in srgb, var(--wo) 55%, var(--surface)); }
.ntvalue--success { color: var(--wo); }
.ntbar--failed { background: var(--pink); }
/* Event Trigger Traffic bars (one per Automation ID): teal. */
.trbar, .legend-bar.trbar { background: var(--trigger); }
.ntchart .bar[style="height: 0%"] { min-height: 0; }
.ntvalue--failed { color: var(--pink); }
.text-pink { color: var(--pink); font-weight: 600; }
.text-accent { color: var(--accent); }
/* The "waktu tuntas" KPIs: uppercase label, big figure, caption (design canvas, stage 3). */
.nt-kpi { gap: 4px !important; }
.nt-kpi-label { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.nt-kpi strong { font-size: 32px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.gap-stats:has(.nt-kpi) { gap: 12px 56px; margin-bottom: 24px; }
.chart-scale--right span { right: auto; left: 0; }
.chart-scale--right { min-width: 36px; text-align: left; }
.ntline-area { position: absolute; left: 0; right: 0; top: 0; bottom: 22px; z-index: 2; pointer-events: none; }
.ntline-area svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ntline-area polyline { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ntline-dot { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--surface); transform: translate(-50%, 50%); }
.ntline-dot em { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); padding: 0 5px; border-radius: 999px; background: var(--surface); font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.legend-line { display: inline-block; width: 16px; height: 0; margin-right: 6px; vertical-align: middle; }
.ntline-key { border-top: 2px solid var(--accent); }
@media (max-width: 720px) {
  .ntchart-bars { gap: 4px; }
  .ntline-dot em { display: none; }
}

/* Overview search (name / ID of devices and locations, results swapped in while typing). */
.search-box { position: relative; display: flex; align-items: center; width: min(360px, 100%); }
.search-box .icon { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.search-box input { width: 100%; padding: 9px 34px 9px 36px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; }
.search-box input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
/* The box has its own clear button (.search-clear, which also resets the results): hide the browser's. */
.search-box input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
.search-clear { position: absolute; right: 6px; display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; }
.search-clear[hidden] { display: none; }
.search-clear .icon { position: static; width: 14px; height: 14px; }

/* ---------- overview: Sensor Summary (dashboard/_summary.html) ---------- */
.sensor-summary { margin-bottom: 28px; }
.status-critical { --c: var(--bad); }
.status-warning { --c: var(--wo); }
.status-normal { --c: var(--ok); }
.status-nodata { --c: var(--soon); }
.summary-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.summary-kpi { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; text-decoration: none; color: var(--ink); border-top: 3px solid transparent; }
.summary-kpi strong { font-size: 26px; line-height: 1.1; }
a.summary-kpi:hover { border-color: var(--accent); }
.summary-kpi--critical { border-top-color: #ef4444; }
.summary-kpi--warning { border-top-color: var(--wo); }
.summary-kpi--normal { border-top-color: var(--ok); }
.summary-kpi--nodata { border-top-color: #ffffff; }
:root:not([data-theme="dark"]) .summary-kpi--nodata { border-top-color: #cbd5e1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .summary-kpi--nodata { border-top-color: #ffffff; } }
.summary-kpi--battery { border-top-color: #eab308; }
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.summary-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; min-width: 0; }
.summary-card--link { text-decoration: none; color: var(--ink); }
.summary-card--link:hover { border-color: var(--accent); }
.summary-head { display: flex; align-items: center; gap: 10px; }
.summary-head h3 { flex: 1; margin: 0; font-size: 15px; }
.summary-metric { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.summary-metric strong { font-size: 30px; line-height: 1.1; }
.summary-metric small { font-size: 14px; color: var(--muted); font-weight: 600; }
.summary-foot { display: flex; justify-content: space-between; gap: 8px; padding-top: 8px; border-top: 1px solid var(--border); }

.status-legend { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; flex: 1; min-width: 0; }
.status-legend--inline { flex-direction: row; flex-wrap: wrap; gap: 4px 14px; }
.status-legend a { display: flex; align-items: center; gap: 6px; padding: 2px 4px; border-radius: 6px; color: var(--ink-2); text-decoration: none; }
.status-legend a:hover { background: var(--surface-2); }
.status-legend strong { margin-left: auto; padding-left: 8px; color: var(--ink); }
.status-legend--inline strong { margin-left: 0; padding-left: 2px; }
.status-dot { width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--c); }

.donut-wrap { display: flex; align-items: center; gap: 16px; }
.donut { width: 120px; height: 120px; flex: none; transform: none; }
.donut circle { fill: none; stroke-width: 5.5; }
.donut-track { stroke: var(--surface-2); }
.donut-seg { stroke: var(--c); }
.donut-total { text-anchor: middle; font-size: 9px; font-weight: 800; fill: var(--ink); }
.donut-caption { text-anchor: middle; font-size: 3.4px; fill: var(--muted); }

.stack-block { display: flex; flex-direction: column; gap: 6px; }
.stack-block + .stack-block { padding-top: 10px; border-top: 1px dashed var(--border); }
.stack-title { display: flex; justify-content: space-between; gap: 8px; }
.stack-bar { display: flex; gap: 2px; height: 12px; border-radius: 6px; overflow: hidden; background: var(--surface-2); }
.stack-bar span { background: var(--c); }




.summary-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.summary-list { padding: 16px; min-width: 0; }
.summary-list-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.summary-list-head h3 { margin: 0; font-size: 15px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--border); }
.summary-row-main, .summary-row-side { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.summary-row-side { align-items: flex-end; flex: none; }
.summary-row .truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip--filter { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); border-color: var(--accent); }
.chip--filter .icon { width: 12px; height: 12px; }

@media (max-width: 1100px) {
  .summary-kpis, .summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .summary-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-lists, .summary-grid { grid-template-columns: 1fr; }
}

/* People Counting: sensor status donut KPI + sensor table with filters. */
.status-donut { display: flex; align-items: center; gap: 16px; }
.donut--sm { width: 92px; height: 92px; }
.donut-seg--online { stroke: var(--ok); }
.donut-seg--offline { stroke: var(--bad); }
.status-donut .status-legend { max-width: 180px; }
.table-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 12px; }
.table-filters .search-box { flex: 1 1 260px; width: auto; max-width: 360px; }
.sensor-table { width: 100%; }
.sensor-table .count-cell { min-width: 220px; }
.sensor-table .sensor-progress { display: flex; align-items: center; gap: 10px; }
.sensor-table .progress { flex: 1; }
.search-form { display: flex; align-items: center; gap: 8px; flex: 0 1 460px; min-width: 0; }
.search-form .search-box { flex: 1; width: auto; }
.search-form .btn, .table-filters .btn { height: 38px; }

/* Summary v2: satisfaction levels, mini visitor bars, donut cards. */
.level-excellent { --c: var(--ok); }
.level-average { --c: #eab308; }
.level-bad { --c: var(--bad); }
.stack-bar .level-excellent, .stack-bar .level-average, .stack-bar .level-bad { background: var(--c); }
.status-legend .legend-item { display: flex; align-items: center; gap: 6px; padding: 2px 4px; color: var(--ink-2); }
.summary-note { margin: 0; }
.summary-card .donut { width: 104px; height: 104px; }
.level-rows { display: flex; flex-direction: column; gap: 6px; }
.level-row { display: grid; grid-template-columns: 78px 1fr 78px; align-items: center; gap: 8px; }
.level-row .level-value { text-align: right; white-space: nowrap; }
.level-bar { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.level-bar span { display: block; height: 100%; border-radius: 4px; background: var(--c); }
.summary-lists--single { grid-template-columns: 1fr; }
.section-title--search { align-items: center; }
.section-title--search p { margin: 2px 0 0; }
.section-title--search .search-form { margin-left: auto; }
@media (max-width: 720px) {
  .section-title--search .search-form { flex: 1 1 100%; margin-left: 0; }
}

/* All sensors: status boxes as a filter, active-filter chips, 6-column device grid. */
#devices .summary-kpis { margin-bottom: 12px; }
.summary-kpi.is-active { background: var(--surface-2); box-shadow: inset 0 0 0 2px var(--accent); }
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.active-filters .chip--filter .muted { font-weight: 500; }
.clear-filters { margin-left: 4px; color: var(--accent); font-weight: 600; text-decoration: none; }
.clear-filters:hover { text-decoration: underline; }
#devices .bento { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
#devices .bento .card { padding: 16px; }
#devices .bento .metric { font-size: 28px; }
#devices .bento .section-name { font-size: 15px; }
@media (max-width: 1023px) { #devices .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px) { #devices .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { #devices .bento { grid-template-columns: 1fr; } }
.chip--static { border-color: var(--border); }
.battery-line { display: flex; align-items: center; gap: 8px; }
.section--link { text-decoration: none; color: inherit; cursor: pointer; } .section--link:hover { border-color: var(--accent); }
.section-divider { height: 0; margin: 8px 0 24px; border: 0; border-top: 1px solid var(--border); }
.sensor-summary > .section-title, #all-sensors.section-title { margin-bottom: 14px; }
.summary-card .summary-foot { margin-top: auto; }

/* Sensor table: sortable column headers (click = ascending, again = descending). */
.sort-th { display: inline-flex; align-items: center; gap: 4px; color: inherit; text-decoration: none; }
.sort-th:hover { color: var(--ink); }
.sort-th--active { color: var(--accent); }
.sort-arrow { font-size: 11px; opacity: .5; }
.sort-th--active .sort-arrow { opacity: 1; }

/* ---------- washroom module pages (/modul/<type>/) ---------- */
/* As many equal columns as there are cards (4 or 5), so the row always reaches the right edge. */
.kpis--md { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
@media (max-width: 1100px) { .kpis--md { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .kpis--md { grid-template-columns: 1fr; } }
.mchart-wrap { overflow-x: auto; }
.mchart { display: block; width: 100%; min-width: 640px; height: auto; }
.mchart-grid { stroke: var(--border); stroke-width: 1; }
.mchart-day { stroke: var(--border); stroke-width: 1; stroke-dasharray: 2 3; }
/* Hover columns carrying each point's tooltip (2026-10-16): invisible, a faint band on hover. */
.mchart-hit { fill: transparent; cursor: crosshair; }
.mchart-guide { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; pointer-events: none; }
.mchart-point { transition: r .1s; }
.mchart-point.is-on { r: 5; stroke: var(--surface); stroke-width: 2; }
.mchart-tip { position: fixed; z-index: 50; display: grid; gap: 2px; max-width: 280px; padding: 8px 10px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--border); border-radius: 8px;
  box-shadow: var(--shadow); font-size: 12px; line-height: 1.4; pointer-events: none; }
.mchart-tip strong { font-size: 12.5px; margin-bottom: 2px; }
.mchart-tip span { color: var(--ink-2); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .mchart-point { transition: none; } }
.mchart-axis { fill: var(--muted); font-size: 11px; }
.mchart-axis--date { font-size: 10px; }
.mchart-line { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.mchart-area { fill: var(--accent); opacity: .12; }
.mchart-point { fill: var(--accent); }
.mchart-limit { stroke-width: 1.5; stroke-dasharray: 6 6; }
.mchart-limit--warning { stroke: var(--warn); }
.mchart-limit--critical { stroke: var(--bad); }
.mchart-limit-label { font-size: 11px; font-weight: 700; }
.mchart-limit-label--warning { fill: var(--warn); }
.mchart-limit-label--critical { fill: var(--bad); }
.mchart-mark { fill: var(--bad); stroke: var(--surface); stroke-width: 2; }
.mchart-mark-label { fill: var(--bad); font-size: 10.5px; font-weight: 700; }
.mchart-mark--warn { fill: var(--warn); }
.mchart-mark-label--warn { fill: var(--warn); }
.legend-dot.mlegend-mark--warn { background: var(--warn); }
/* Recap bars of the reading modules (average, or how often a dispenser ran empty): indigo. */
.mchart-bar--avg, .mchart-bar--empty { fill: var(--recap); }
.legend-bar.mlegend--recap { background: var(--recap); }
.mchart-bar--excellent { fill: var(--ok); }
.mchart-bar--average { fill: var(--warn); }
.mchart-bar--bad { fill: var(--bad); }
.mchart-value { fill: var(--ink); font-size: 10.5px; font-weight: 700; }
.mchart-peak { fill: var(--warn); stroke: var(--surface); stroke-width: 2; }
.mchart-peak--bad { fill: var(--bad); }
.mchart-peak-label { fill: var(--warn); font-size: 10.5px; font-weight: 700; }
.mchart-peak-label--bad { fill: var(--bad); }
.mchart-help { margin-top: 14px; padding: 12px 16px; border-radius: 12px; background: var(--surface-2); display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.mchart-help p { margin: 0; display: flex; align-items: center; gap: 10px; }
.mlegend-line { display: inline-block; width: 18px; height: 3px; border-radius: 2px; background: var(--accent); flex: none; }
.mlegend-dash { display: inline-block; width: 18px; border-top: 2px dashed; flex: none; }
.mlegend-dash--warning { border-color: var(--warn); }
.mlegend-dash--critical { border-color: var(--bad); }
.legend-dot.mlegend-mark { background: var(--bad); flex: none; }
.legend-bar.mlegend--excellent { background: var(--ok); }
.legend-bar.mlegend--average { background: var(--warn); }
.legend-bar.mlegend--bad { background: var(--bad); }
.mchart-help .legend-bar, .mchart-help .legend-dot { flex: none; }
.progress span.mprogress--critical { background: var(--bad); }
.progress span.mprogress--warning { background: var(--warn); }
.progress span.mprogress--normal { background: var(--ok); }
/* The whole summary card opens the module (the title link stretches over the card, so the status links
   inside stay separate links on top of it instead of a link nested in a link). */
.summary-card:has(.summary-title-link) { position: relative; }
.summary-card:has(.summary-title-link):hover { border-color: var(--accent); }
.summary-title-link { color: inherit; }
.summary-title-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.summary-card .status-legend a { position: relative; z-index: 1; }

/* Visitor heatmap (People Counting recap): hour × day / month; 3 levels from the busiest cell
   (green 0-33%, yellow 34-66%, red 67-100%), zero = grey. Compact so 24 hours fit a desktop card. */
.heatmap-wrap { overflow-x: auto; }
.heatmap { border-collapse: separate; border-spacing: 2px; width: 100%; min-width: 640px; table-layout: fixed;
  font-size: 10px; font-variant-numeric: tabular-nums; }
.heatmap th { font-weight: 500; color: var(--muted); padding: 1px 0; text-align: center; white-space: nowrap; font-size: 9px; }
.heatmap thead th:first-child, .heatmap tbody th, .heatmap tfoot th { width: 64px; text-align: left; padding-right: 4px; font-size: 10px; }
.heatmap .hm-total { width: 44px; }
.hm-cell { height: 20px; text-align: center; border-radius: 3px; color: var(--hm-ink); padding: 0; }
.hm-cell--zero { background: color-mix(in srgb, var(--muted) 12%, var(--surface)); }
.hm-cell--low { background: var(--hm-low); }
.hm-cell--mid { background: var(--hm-mid); }
.hm-cell--high { background: var(--hm-high); }
.hm-total { text-align: right; padding: 1px 4px; color: var(--muted); white-space: nowrap; }
.heatmap-legend { display: flex; align-items: center; gap: 6px; }
.heatmap-legend .hm-cell { display: inline-block; width: 12px; height: 12px; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- sign in (2026-10-23: solid card in the dashboard's own colours) ---------- */
.login-body { min-height: 100vh; display: flex; flex-direction: column; }
.login-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 24px; }
.login-main { flex: 1; display: grid; place-items: center; padding: 16px 16px 48px; }
.login-card {
  width: 100%; max-width: 400px; padding: 32px 28px; display: flex; flex-direction: column; gap: 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.login-card h1 { font-size: 26px; }
.login-card > .muted { margin: 0 0 12px; }
.login-form { display: flex; flex-direction: column; gap: 16px; }
.login-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.login-field input {
  width: 100%; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--ink); font: 400 15px/1 inherit;
}
.login-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.login-field input::placeholder { color: var(--muted); }
.login-password { position: relative; display: block; }
.login-password input { padding-right: 46px; }
.login-eye {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%); width: 34px; height: 34px;
  display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer;
}
.login-eye:hover, .login-eye[aria-pressed="true"] { color: var(--accent); }
.login-eye:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.login-submit { width: 100%; height: 44px; justify-content: center; font-size: 15px; margin-top: 4px; }
.login-submit:disabled { opacity: .7; cursor: progress; }
.login-error {
  display: flex; align-items: center; gap: 8px; margin: 0 0 4px; padding: 10px 12px; border-radius: 12px;
  background: var(--bad-soft); color: var(--bad); font-weight: 600;
}
@media (max-width: 480px) {
  .login-top { padding: 12px 16px; }
  .login-card { padding: 24px 18px; }
}
.user-menu { display: inline-flex; align-items: center; gap: 8px; }
.user-menu form { margin: 0; }
/* Sign-out confirmation (2026-10-23) */
.confirm-dialog {
  width: min(400px, calc(100vw - 32px)); padding: 24px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow);
}
.confirm-dialog::backdrop { background: rgba(11, 18, 32, .45); }
.confirm-dialog h2 { font-size: 18px; margin-bottom: 6px; }
.confirm-dialog p { margin: 0 0 20px; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 10px; }
.btn--danger { background: var(--bad); border-color: var(--bad); color: #fff; }
