/* Inter (SIL OFL 1.1), servie localement : pas d'appel externe depuis le serveur de logs. */
@font-face {
  font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
}

/* ---------- Thème ---------- */
:root {
  --bg: #0a0d13; --panel: #11151d; --panel-2: #161b25; --hover: #1a202c;
  --line: #222938; --line-soft: #1a2030;
  --text: #e7eaf0; --muted: #8a93a6; --faint: #5b6477;
  --accent: #4f8cff; --accent-soft: rgba(79, 140, 255, .14); --accent-ink: #fff;
  --emerg: #ff5c7a; --err: #f06a6a; --warn: #f2b33d; --notice: #5aa9e6; --info: #9aa5b8; --debug: #5f6b7e;
  --good: #34c77b;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3);
  --radius: 12px;
  --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f6fa; --panel: #fff; --panel-2: #f8fafc; --hover: #f1f4f9;
    --line: #e3e8ef; --line-soft: #eef1f6;
    --text: #0f172a; --muted: #5b6474; --faint: #94a0b3;
    --accent: #2563eb; --accent-soft: rgba(37, 99, 235, .1);
    --emerg: #d61f45; --err: #d03b3b; --warn: #b7791f; --notice: #2b7bc0; --info: #4a5563; --debug: #8a939f;
    --good: #16a34a;
    --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 3px rgba(15, 23, 42, .04);
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 14px/1.45 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased; font-feature-settings: 'cv11', 'ss01';
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--mono); font-size: .92em; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: 13px; }
.ok { color: var(--good); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Coquille : navigation latérale ---------- */
.app { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.sidenav {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 20px;
  padding: 18px 12px; background: var(--panel); border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px; color: var(--text); font-size: 15px; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand b { font-weight: 700; }
.brand-mark {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, #4f8cff, #7c5cff); color: #fff; box-shadow: 0 4px 14px rgba(79, 140, 255, .35);
}
.brand-mark svg { width: 18px; height: 18px; stroke-width: 2.4; }
.nav-links { display: flex; flex-direction: column; gap: 2px; }
.nav-links a {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px;
  color: var(--muted); font-weight: 500; transition: background .12s, color .12s;
}
.nav-links a:hover { background: var(--hover); color: var(--text); text-decoration: none; }
.nav-links a.active { background: var(--accent-soft); color: var(--accent); }
.sidenav-foot {
  margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 10px 8px 0;
  border-top: 1px solid var(--line);
}
.sidenav-foot .user { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 13px; }
.icon-btn { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border-radius: 8px; background: transparent; border: 1px solid transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--hover); color: var(--text); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 18px 28px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 85%, transparent);
  position: sticky; top: 0; z-index: 5; backdrop-filter: blur(8px);
}
.topbar h1 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.subheading { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.topbar-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.page { width: 100%; max-width: 920px; padding: 24px 28px 40px; }
.page.wide { max-width: 1320px; }

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidenav { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .nav-links { flex-direction: row; flex-wrap: wrap; order: 3; width: 100%; }
  .nav-links a span { display: none; }
  .sidenav-foot { margin: 0 0 0 auto; border: 0; padding: 0; }
  .sidenav-foot .user { display: none; }
  .topbar { position: static; padding: 14px 16px; }
  .page { padding: 16px; }
}

/* ---------- Contrôles ---------- */
input, select, button, textarea {
  font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--line);
  border-radius: 8px; padding: 7px 11px; outline: none; transition: border-color .12s, box-shadow .12s;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type=checkbox] { accent-color: var(--accent); width: 15px; height: 15px; padding: 0; }
button { cursor: pointer; font-weight: 500; }
button:hover { background: var(--hover); }
button.primary, .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
button.primary:hover { filter: brightness(1.08); background: var(--accent); }
select { padding-right: 28px; }

.segmented { display: inline-flex; padding: 3px; gap: 2px; border-radius: 9px; background: var(--panel); border: 1px solid var(--line); }
.segmented button { border: 0; padding: 5px 11px; border-radius: 6px; background: transparent; color: var(--muted); }
.segmented button:hover { color: var(--text); background: var(--hover); }
.segmented button.on { background: var(--accent-soft); color: var(--accent); }

/* ---------- Cartes, tableaux ---------- */
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; margin-bottom: 16px; box-shadow: var(--shadow);
}
.card h2, .card-title { margin: 0 0 12px; font-size: 14px; font-weight: 600; letter-spacing: -.005em; color: var(--text); }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card-head h2 { margin: 0; }
.card-head small { color: var(--muted); }
.card p, .card li { line-height: 1.55; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid2 > .card { margin-bottom: 0; }
.grid2 + .card, .grid2 + .grid2 { margin-top: 16px; }
.stack { display: flex; flex-direction: column; gap: 16px; }

table { width: 100%; border-collapse: collapse; }
th {
  text-align: left; color: var(--muted); font-weight: 500; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em;
  border-bottom: 1px solid var(--line); padding: 8px 10px; white-space: nowrap;
}
td { padding: 8px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
.card table { margin: 0 -2px; }
.card tbody tr:hover { background: var(--hover); }
.table-scroll { overflow-x: auto; }

.badge {
  display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 999px;
  background: color-mix(in srgb, var(--err) 16%, transparent); color: var(--err); white-space: nowrap;
}
.pill {
  display: inline-block; min-width: 54px; text-align: center; font: 600 11px/1.6 Inter, system-ui, sans-serif;
  padding: 0 7px; border-radius: 6px; background: color-mix(in srgb, currentColor 14%, transparent);
}
.chip { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); margin: 1px 2px 1px 0; }

.s0, .s1, .s2 { color: var(--emerg); } .s3 { color: var(--err); } .s4 { color: var(--warn); }
.s5 { color: var(--notice); } .s6 { color: var(--info); } .s7 { color: var(--debug); }

/* ---------- KPI ---------- */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.kpis.auto { grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); }
.kpi {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
.kpi > span { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.kpi b { font-size: 26px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.25; }
.kpi b span { font-size: inherit; }
.kpi b span.ok { color: var(--good); } .kpi b span.s3 { color: var(--err); }
.kpi small { color: var(--muted); font-size: 12px; }
.trend { display: inline-flex; align-items: center; gap: 2px; font-size: 11.5px; font-weight: 600; padding: 0 6px; border-radius: 999px; }
.trend.up { color: var(--err); background: color-mix(in srgb, var(--err) 14%, transparent); }
.trend.down { color: var(--good); background: color-mix(in srgb, var(--good) 14%, transparent); }
.trend.flat { color: var(--muted); background: var(--panel-2); }
.trend.neutral.up, .trend.neutral.down { color: var(--muted); background: var(--panel-2); }

@media (max-width: 900px) { .grid2, .kpis { grid-template-columns: 1fr; } }

/* ---------- Page Logs ---------- */
.logs-layout { display: grid; grid-template-columns: 270px 1fr; flex: 1; min-height: 0; }
.logs-side { border-right: 1px solid var(--line); padding: 20px 16px; display: flex; flex-direction: column; gap: 22px; }
.logs-side h2 { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; margin: 0 0 10px; }
.host { display: flex; align-items: center; gap: 8px; padding: 5px 8px; margin: 0 -8px; border-radius: 7px; cursor: pointer; }
.host:hover { background: var(--hover); }
.host .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--debug); flex: none; }
.host .dot.ok { background: var(--good); box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 20%, transparent); }
.host .dot.stale { background: var(--warn); }
.host small { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.host input { margin: 0; }
#histogram { display: flex; align-items: flex-end; gap: 1px; height: 80px; }
#histogram div { flex: 1; display: flex; flex-direction: column-reverse; min-width: 1px; }
#histogram span { display: block; border-radius: 1px; }

#storage small { display: block; color: var(--muted); margin-top: 2px; font-size: 12px; }
.storage-total b { font-size: 20px; font-weight: 650; letter-spacing: -.02em; }
.storage-hosts { margin-top: 12px; }
.storage-host { display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; margin-bottom: 8px; font-size: 13px; }
.storage-host small { margin: 0 !important; }
.storage-host i { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: var(--accent); min-width: 2px; }
.storage-bar { height: 5px; border-radius: 3px; background: var(--line); margin-top: 6px; overflow: hidden; }
.storage-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #7c5cff); }

.logs-main { padding: 20px 24px; min-width: 0; }
#counters { display: flex; gap: 8px; flex-wrap: wrap; }
#counters span { display: inline-flex; gap: 5px; align-items: baseline; padding: 4px 10px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
#counters b { color: var(--text); font-variant-numeric: tabular-nums; }
#counters .s3 b { color: var(--err); } #counters .s4 b { color: var(--warn); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.search { position: relative; flex: 1; min-width: 240px; }
.search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--faint); width: 16px; height: 16px; }
.search input { width: 100%; padding-left: 34px; }
.live { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); cursor: pointer; }
.live:has(input:checked) { color: var(--good); border-color: color-mix(in srgb, var(--good) 40%, var(--line)); }
.live:has(input:checked)::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--good); animation: pulse 1.6s infinite; }
.live input { display: none; }
@keyframes pulse { 50% { opacity: .3; } }
.period { font-size: 12.5px; color: var(--accent); background: var(--accent-soft); padding: 5px 10px; border-radius: 8px; }
.period button { border: 0; background: none; color: inherit; padding: 0 0 0 6px; }

.log-table { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.log-table table { font-family: var(--mono); font-size: 12.5px; }
.log-table th { position: sticky; top: 0; background: var(--panel-2); font-family: Inter, system-ui, sans-serif; }
.log-table td { padding: 5px 10px; white-space: nowrap; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
.log-table td.msg { white-space: pre-wrap; word-break: break-word; width: 100%; }
tr.row { cursor: pointer; }
tr.row:hover { background: var(--hover); }
tr.new { animation: flash 1.5s; }
@keyframes flash { from { background: var(--accent-soft); } }
tr.detail td { background: var(--panel-2); white-space: pre-wrap; color: var(--muted); padding: 10px 14px; }
td.host-cell, td.app-cell { color: var(--accent); cursor: pointer; }
td.host-cell:hover, td.app-cell:hover { text-decoration: underline; }
#more { margin: 14px auto; display: block; }
#empty { color: var(--muted); text-align: center; padding: 40px 0; }

@media (max-width: 900px) {
  .logs-layout { grid-template-columns: 1fr; }
  .logs-side { border-right: 0; border-bottom: 1px solid var(--line); }
  .logs-main { padding: 16px; }
  .log-table td:nth-child(4), .log-table th:nth-child(4) { display: none; }
}

/* ---------- Connexion ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 16px;
  background: radial-gradient(1200px 500px at 50% -10%, var(--accent-soft), transparent 70%), var(--bg); }
.login { width: 100%; max-width: 380px; padding: 28px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.login .brand { padding: 0; margin-bottom: 6px; font-size: 18px; }
.login p { margin: 0 0 18px; color: var(--muted); }
.login label { display: block; margin: 12px 0 6px; color: var(--muted); font-size: 13px; font-weight: 500; }
.login input[type=email], .login input[type=password] { width: 100%; padding: 9px 12px; }
.login .remember { display: flex; align-items: center; gap: 8px; margin: 14px 0; }
.login button { width: 100%; padding: 10px; background: var(--accent); border-color: var(--accent); color: #fff; }
.login .error { color: var(--err); margin: 10px 0 0; }

/* ---------- Ajouter une machine ---------- */
.target { display: flex; gap: 12px; flex-wrap: wrap; }
.target label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 500; }
#host.target-host, .target #host { min-width: 260px; }
.target #port { width: 110px; }
.command { display: flex; gap: 8px; align-items: stretch; margin: 12px 0 8px; }
.command code {
  flex: 1; padding: 11px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
  font-size: 12.5px; overflow-x: auto; white-space: nowrap; color: var(--text);
}
.card details summary { cursor: pointer; color: var(--muted); margin-top: 10px; }
.os { display: flex; align-items: center; gap: 10px; }
.os-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); }

/* ---------- Réglages ---------- */
.settings { display: block; }
.settings label { display: block; margin: 18px 0 6px; font-weight: 500; }
.settings label.check { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.settings input:not([type=checkbox]) { width: 100%; }
.settings small { display: block; color: var(--muted); margin-top: 5px; font-size: 12.5px; }
.settings .error { color: var(--err); margin: 4px 0 0; }
.settings .actions { display: flex; gap: 8px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.flash { padding: 10px 14px; border-radius: 10px; margin: 0 0 16px; border: 1px solid; }
.ok-bg { background: color-mix(in srgb, var(--good) 12%, transparent); border-color: color-mix(in srgb, var(--good) 35%, transparent); }
.err-bg { background: color-mix(in srgb, var(--err) 12%, transparent); border-color: color-mix(in srgb, var(--err) 35%, transparent); }

/* ---------- Statistiques ---------- */
.chart-box { position: relative; height: 250px; }
.chart-box.tall { height: 300px; }
.spark { width: 120px; height: 28px; display: block; }
.spark path { stroke: var(--accent); stroke-width: 1.5; fill: none; }
.spark path.area { fill: var(--accent-soft); stroke: none; }
.meter { display: inline-block; width: 60px; height: 5px; border-radius: 3px; background: var(--line); vertical-align: middle; margin-right: 6px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--err); }
.problem-msg { font-family: var(--mono); font-size: 12.5px; word-break: break-word; }
.problem-msg + small { display: block; color: var(--muted); margin-top: 2px; }
td.right, th.right { text-align: right; }
.empty-state { color: var(--muted); text-align: center; padding: 24px 0; }
.host-swatch { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 8px; vertical-align: 1px; }
td.right.muted, td.nowrap { white-space: nowrap; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.kpis.inner { margin-bottom: 12px; }
.kpi.flat { box-shadow: none; background: var(--panel-2); padding: 10px 14px; }
.kpi.flat b { font-size: 22px; }
.chart-box.short { height: 170px; margin-bottom: 12px; }
.grid2.flush { margin-top: 18px; gap: 24px; }
.card h3 { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.pill.ok-pill { color: var(--good); }
.retention { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.settings .retention input { width: 110px; }
.estimate { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); line-height: 1.6; }
.snippet { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-family: var(--mono); font-size: 12.5px; overflow-x: auto; white-space: pre; }

/* ---------- Proxmox ---------- */
.chip-toggle {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; padding: 4px 10px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line); color: var(--muted);
}
.chip-toggle i { width: 8px; height: 8px; border-radius: 2px; opacity: .35; }
.chip-toggle small { color: var(--faint); font-variant-numeric: tabular-nums; }
.chip-toggle.on { color: var(--text); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: var(--accent-soft); }
.chip-toggle.on i { opacity: 1; }
.cat-dot { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 8px; vertical-align: 1px; }
.badge.warn-badge { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); margin-left: 4px; }
tr.sensitive td:first-child { box-shadow: inset 3px 0 0 var(--warn); }
.tasks small.status { color: var(--muted); display: block; max-width: 360px; font-size: 12px; margin-top: 2px; word-break: break-word; }
.mono { font-family: var(--mono); }
.small, td.small { font-size: 12.5px; }
.pill.fail-pill { color: var(--err); }
button.link { background: none; border: 0; padding: 0 4px; color: var(--accent); font: inherit; }
button.link:hover { background: none; text-decoration: underline; }
button.link.danger { color: var(--err); }
form.inline { display: inline; }
#pve-form { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.more { text-align: center; padding-top: 12px; }

/* ---------- Statistiques : rubriques ---------- */
.tabs {
  display: flex; gap: 4px; margin: -4px 0 18px; border-bottom: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none;
}
.tabs a {
  padding: 10px 14px; color: var(--muted); font-weight: 500; white-space: nowrap; text-decoration: none;
  border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; align-items: center; gap: 7px;
}
.tabs a:hover { color: var(--text); }
.tabs a.on { color: var(--text); border-bottom-color: var(--accent); }
.tab-count:empty { display: none; }
.tab-count {
  font-size: 11px; font-weight: 600; padding: 0 7px; border-radius: 999px; line-height: 18px;
  background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); font-variant-numeric: tabular-nums;
}
#t-errors, #t-backups.bad { background: color-mix(in srgb, var(--err) 16%, transparent); color: var(--err); }
.kpis.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
a.kpi.link { color: inherit; text-decoration: none; transition: border-color .15s; }
a.kpi.link:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.kpi b.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.overview { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; align-items: start; }
.overview > .card { margin-bottom: 0; }
.watch { list-style: none; margin: 0; padding: 0; }
.watch li { display: flex; gap: 10px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--line-soft); line-height: 1.45; }
.watch li:first-child { border-top: 0; padding-top: 2px; }
.watch li i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); transform: translateY(-1px); }
.watch li.bad i { background: var(--err); } .watch li.warn i { background: var(--warn); } .watch li.good i { background: var(--good); }
.watch a { color: inherit; text-decoration: none; min-width: 0; word-break: break-word; }
.watch a:hover { color: var(--accent); }
.mono-inline { font-family: var(--mono); font-size: 12.5px; }
.problems td:nth-child(2) { max-width: 640px; }
@media (max-width: 1000px) {
  .overview { grid-template-columns: 1fr; }
  .kpis.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) { .card-head { flex-wrap: wrap; } .card-head small { flex-basis: 100%; } }
#flow-pick button small { color: var(--faint); margin-left: 4px; font-weight: 400; }
#flow-pick button.on small { color: var(--muted); }
#flows .card-head { flex-wrap: wrap; }
#flow-summary { margin: 4px 0 12px; }
@media (max-width: 700px) { #flow-pick button small { display: none; } }
