/* t_8d8fde74: Service-Statistik als eigene Vollbild-Seite (Route #service-status).
   Vorher: Modal-Tabellen-CSS (t_f746a4f1) — entfernt. Nur eigene Klassen, keine
   App-Regeln anfassend; Farben ausschliesslich ueber theme-Tokens (theme.css),
   keine Farbliterale. Layout-Massstab (Jörg 02.12.): Grosszahlen >= 28 px,
   Labels >= 15 px, Touch-Ziele >= 44 px; 1-spaltig mobil, 2x2 ab ~700 px. */

#service-status.svc-page {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  padding: 12px 12px 32px;
  box-sizing: border-box;
}
@media (min-width: 700px) {
  #service-status.svc-page { padding: 20px 28px 48px; }
}

/* ---------- Kopf ---------- */
.svc-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  padding: 6px 2px 12px;
}
.svc-title { margin: 0; font-size: 1.45rem; }
.svc-live {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ok); font-size: .95rem;
}
.svc-dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--ok);
  display: inline-block; animation: svc-pulse 2s infinite;
}
@keyframes svc-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.svc-stand { color: var(--muted); font-size: .95rem; }
.svc-head .spacer { flex: 1; }
/* Touch-Ziele >= 44 px (Jörg-Regel) */
.svc-head .btn, .svc-more { min-height: 44px; min-width: 44px; }

.svc-note { margin: 0 2px 12px; padding: 8px 12px; border-radius: var(--radius); font-size: .95rem; }

/* ---------- Kartenraster: mobil 1-spaltig, ab 700 px 2x2 ---------- */
.svc-grid { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: start; }
@media (min-width: 700px) {
  .svc-grid { grid-template-columns: 1fr 1fr; }
}
.svc-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px 16px 16px;
}
.svc-card h3 { margin: 0 0 10px; font-size: 1.1rem; }
.svc-2fa { margin-top: 14px; }

.svc-sub { color: var(--muted); font-size: .95rem; margin: 8px 0 0; line-height: 1.5; }
.svc-line { margin-top: 10px; padding: 6px 10px; border-radius: 8px; font-size: 1.02rem; }
.ax-warn-soft { background: var(--warn-soft); color: var(--warn-soft-ink); }

/* ---------- Top-10-Nutzer ( t_c39e69d7) ---------- */
/* Metrik-Auswahl: vier Chips, aktiver Chip eindeutig (Primärrahmen + Feld). */
.svc-mchips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.svc-mchip {
  font: inherit; font-size: .92rem; padding: 6px 10px; min-height: 36px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--btn-bg); color: var(--ink); cursor: pointer;
}
.svc-mchip:hover { background: var(--btn-hover); }
.svc-mchip.on {
  border-color: var(--primary); border-width: 2px;
  background: var(--sel); color: var(--link); font-weight: 600;
}
.ax-rank-row {
  display: flex; align-items: baseline; gap: 8px;
  padding: 5px 2px; border-bottom: 1px solid var(--line);
}
.ax-rank-row:last-of-type { border-bottom: 0; }
.ax-rank { color: var(--muted); font-size: .9rem; min-width: 2ch; }
.ax-rank-mail { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: .98rem; }
.ax-rank-n { font-size: 1.05rem; }

/* ---------- Ampel-Kacheln ---------- */
.ax-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 1000px) { .ax-tiles { grid-template-columns: repeat(4, 1fr); } }
.ax-tile {
  border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 12px; background: var(--bg);
}
.ax-lab { color: var(--muted); font-size: .95rem; }   /* Labels >= 15 px */
.ax-val { font-size: 1.9rem; line-height: 1.2; font-weight: 700; margin-top: 2px; } /* >= 28 px */
.ax-sub { color: var(--muted); font-size: .9rem; margin-top: 2px; }
.ax-tile.ok   { border-left: 5px solid var(--ok); }
.ax-tile.ok .ax-val { color: var(--ok); }
.ax-tile.warn { border-left: 5px solid var(--warn); background: var(--warn-soft); }
.ax-tile.warn .ax-val { color: var(--warn-soft-ink); }
.ax-tile.bad  { border-left: 5px solid var(--danger); background: var(--danger-soft); }
.ax-tile.bad .ax-val { color: var(--danger-soft-ink); }

/* ---------- CSS-Balkencharts mit echter Achse ( keine Libs) ---------- */
.ax-scale { text-align: right; font-size: .78rem; color: var(--ink); opacity: .7;
  margin-top: 10px; }
.ax-legend { display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
  color: var(--muted); font-size: .85rem; margin-top: 6px; }
.ax-sw { width: 12px; height: 12px; border-radius: 3px; background: var(--primary);
  display: inline-block; }
.ax-sw.bad { background: var(--danger); }
.ax-chart {
  display: flex; align-items: flex-end; gap: 2px;
  height: 140px; margin-top: 10px;
  border-bottom: 1px solid var(--line);
}
.ax-col {
  flex: 1; min-width: 0; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
}
.ax-cnt { font-size: .7rem; color: var(--muted); margin-bottom: 2px; }
.ax-cnt.bad { color: var(--danger); font-weight: 700; }
.ax-cnt.faint { opacity: .45; }
.ax-cnt.hidden { visibility: hidden; }
.ax-bar { width: 78%; min-height: 2px; border-radius: 2px 2px 0 0;
  background: var(--primary); opacity: .85; }
.ax-bar.zero { background: var(--line); opacity: .7; }
.ax-bar.bad { background: var(--danger); opacity: 1; }
.ax-tick { font-size: .8rem; color: var(--ink); opacity: .78; padding-top: 4px;
  white-space: nowrap; min-height: 1.2em; }
.ax-chart { overflow: hidden; }
/* Handy (<700 px): schmale Spaalten — Datums-/Stunden-Ticks senkrecht, damit
   die Achsenbeschriftung nie seitlich ueber den 360-px-Viewport quillt. */
@media (max-width: 699px) {
  .ax-chart { height: 170px; }
  .ax-tick { writing-mode: vertical-rl; text-orientation: mixed;
    font-size: .7rem; height: 52px; }
  /* Zahlen ueber schmalen Stunden-Spaalten wuerden kollidieren: ausser auf
     dem Handy nur die roten Bot-Zahlen (Registrierungs-Chart) behalten. */
  .ax-cnt { display: none; }
  .ax-cnt.bad { display: block; width: 100%; text-align: center;
    font-size: .6rem; overflow: hidden; }
}

/* ---------- Audit-Kurzliste ---------- */
.ax-audit { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 8px;
  max-height: 340px; overflow: auto; font-size: .92rem; }
.ax-audit-row { padding: 3px 0; }
.svc-more { margin-top: 8px; }

/* ---------- Farben der Textmarker (nur Tokens) ---------- */
.ax-ok { color: var(--ok); }
.ax-bad { color: var(--danger); }
.ax-warn { color: var(--warn); }

/* ---------- Offene Konto-Bewerbungen (t_a2f358f4) ---------- */
.svc-reqs { margin-top: 14px; }
.svc-reqs-count {
  font-size: .85rem; font-weight: 600; color: var(--warn-soft-ink);
  background: var(--warn-soft); border-radius: 999px; padding: 3px 10px;
  vertical-align: middle;
}
.ax-req {
  border: 1px solid var(--line); border-radius: 8px; background: var(--bg);
  padding: 10px 12px; margin-top: 8px;
}
.ax-req.warn { border-left: 5px solid var(--warn); background: var(--warn-soft); }
.ax-req-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.ax-req-mail { font-family: ui-monospace, monospace; font-size: .92rem;
  color: var(--muted); word-break: break-all; }
.ax-req-ok { font-size: .85rem; color: var(--ok); }
.ax-req-meta { color: var(--muted); font-size: .9rem; margin-top: 3px; }
.ax-req-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
/* Touch-Ziele >= 44 px (Jörg-Regel, Betreiberansicht) */
.ax-req-actions .btn { min-height: 44px; min-width: 96px; }
.ax-req-err { color: var(--danger); font-size: .92rem; margin-top: 6px; }
.ax-req-unv { margin: 10px 0 0; line-height: 1.5; }

/* ---------- Zwei-Faktor-Block (unveraert) ---------- */
.ax-codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
.ax-codes code { font-family: ui-monospace, monospace; letter-spacing: .06em;
  background: var(--field-bg); padding: 3px 6px; border-radius: 4px; }
.ax-steps { margin: 0 0 8px; padding-left: 20px; }
.ax-steps code { font-family: ui-monospace, monospace; letter-spacing: .08em; }
#ax-disable-form, #ax-verify-form { margin-top: 10px; }
#ax-disable-form label, #ax-verify-form label { display: block; margin-bottom: 8px; }
