/* Design 0.01w – erzeugt aus tokens.json, nicht von Hand ändern */
:root, [data-theme="light"] {
  --fg: #111111;
  --fg-hover: #333333;
  --muted: #6b6b6b;
  --faint: #9a9a9a;
  --line: #e6e6e6;
  --line-strong: #cfcfcf;
  --bg: #ffffff;
  --hover: #f6f6f6;
  --press: #eeeeee;
  --danger: #b3261e;
  --danger-bg: #fdf0ef;
  --danger-line: #f3d4d1;
  --warn-bg: #fbf6e9;
  --warn-fg: #6b5310;
  --warn-line: #efe3bf;
  --warn-flash-bg: #fffaeb;
  --warn-flash-line: #d9a400;
  --highlight: #fff4c2;
  --ok: #1a7f37;
  --ok-bg: #eaf5ec;
  --late: #8a5a00;
  --late-bg: #fbf3e2;
  --shadow-pop: 0 4px 14px rgba(0,0,0,0.08);
}
:root {
  --space-4: 4px;
  --space-6: 6px;
  --space-8: 8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-14: 14px;
  --space-18: 18px;
  --space-24: 24px;
  --radius: 3px;
  --radius-sm: 2px;
  --radius-pill: 999px;
  --control-h: 28px;
  --header-h: 44px;
  --row-min-h: 34px;
  --content-max: 1040px;
  --form-max: 720px;
  --login-max: 300px;
  --breakpoint: 760px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.text-title { font-family: var(--font-sans); font-size: 15px; line-height: 1.45; font-weight: 600; }
.text-heading { font-family: var(--font-sans); font-size: 13.5px; line-height: 1.45; font-weight: 600; }
.text-body { font-family: var(--font-sans); font-size: 13.5px; line-height: 1.45; font-weight: 400; }
.text-small { font-family: var(--font-sans); font-size: 12px; line-height: 1.45; font-weight: 400; }
.text-meta { font-family: var(--font-sans); font-size: 11.5px; line-height: 1.45; font-weight: 400; }
.text-byline { font-family: var(--font-sans); font-size: 10.5px; line-height: 1.15; font-weight: 400; }
.text-log { font-family: var(--font-mono); font-size: 12px; line-height: 1.5; font-weight: 400; }

/* Design 0.01 – Bausteine aus HenningHuelsebusch/reminder (style.css), auf Tokens umgestellt.
   Wird nach tokens.css geladen. */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  zoom: var(--zoom, 1);
  background: var(--bg);
  color: var(--fg);
  font: 13.5px/1.45 var(--font-sans);
}
a { color: inherit; }
h1 { font-size: 15px; font-weight: 600; margin: 0 0 12px; }
h2 { font-size: 13.5px; font-weight: 600; margin: 0 0 10px; }

/* ---- Kopfzeile */
.top {
  display: flex; align-items: center; gap: var(--space-24);
  height: var(--header-h); padding: 0 var(--space-24);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; flex-direction: column; justify-content: center; white-space: nowrap; line-height: 1.15; }
.brand-name { font-weight: 600; letter-spacing: -0.01em; }
.brand a { text-decoration: none; color: inherit; }
.brand .version { font-weight: 400; font-size: 11.5px; color: var(--faint); margin-left: 2px; }
.brand .byline { font-size: 10.5px; color: var(--faint); margin-top: 1px; }
.nav { display: flex; gap: var(--space-18); flex: 1; height: 100%; }
.nav a {
  display: flex; align-items: center; height: 100%;
  color: var(--muted); text-decoration: none; border-bottom: 1.5px solid transparent;
}
.nav a:hover { color: var(--fg); }
.nav a.on { color: var(--fg); border-bottom-color: var(--fg); }
/* 0.01v: Admin-Punkte als eigene Gruppe rechts davon (auf dem Handy in eigener Zeile) */
.nav-admin { display: flex; gap: var(--space-18); height: 100%; margin-left: var(--space-6); }
.top form { margin: 0; }
.session-timer { font-size: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.session-timer.warn { color: var(--danger); font-weight: 600; }
.fontsize { display: flex; gap: var(--space-4); }
.fs-btn {
  font: inherit; font-size: 13px; line-height: 1; width: 20px; height: 20px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  color: var(--muted); background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius);
}
.fs-btn:hover { color: var(--fg); border-color: var(--fg); }

main { max-width: var(--content-max); margin: 0 auto; padding: 20px var(--space-24) 60px; }

/* ---- Formularelemente */
input[type=text], input[type=email], input[type=password], input[type=date], input[type=time],
input[type=number], input[type=search], select, textarea {
  font: inherit; color: var(--fg); background: var(--bg);
  height: var(--control-h); padding: 0 var(--space-8);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  width: 100%; min-width: 0;
}
textarea { height: auto; min-height: var(--control-h); padding: 5px var(--space-8); resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--fg); }
label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 3px; }
.field { margin-bottom: var(--space-10); }
.check { display: inline-flex; align-items: center; gap: var(--space-6); color: var(--muted); font-size: 12px; margin: 0; }

/* ---- Buttons */
.btn {
  font: inherit; display: inline-flex; align-items: center; gap: var(--space-6);
  height: var(--control-h); padding: 0 var(--space-12); cursor: pointer; white-space: nowrap;
  border: 1px solid var(--fg); border-radius: var(--radius);
  background: var(--fg); color: var(--bg); text-decoration: none;
}
.btn:hover { background: var(--fg-hover); border-color: var(--fg-hover); }
.btn.ghost { background: var(--bg); color: var(--fg); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--fg); background: var(--bg); }
.btn.link { background: none; border: 0; color: var(--muted); padding: 0 var(--space-4); height: auto; }
.btn.link:hover { color: var(--fg); background: none; }
.btn.danger { background: var(--bg); color: var(--danger); border-color: var(--line-strong); }
.btn.danger:hover { border-color: var(--danger); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn[disabled]:hover { background: var(--fg); border-color: var(--fg); }
.btn.ghost[disabled]:hover, .btn.danger[disabled]:hover { background: var(--bg); border-color: var(--line-strong); }
.btn.link[disabled]:hover { background: none; color: var(--muted); }

/* 0.01e: gesperrte Aktion – Knopf ausgegraut, daneben ein kurzer Hinweis, warum (sichtbar auch ohne Hover/Touch) */
.locked { display: inline-flex; align-items: center; gap: var(--space-6); flex-wrap: wrap; }
.locked-hint { font-size: 12px; color: var(--muted); }
.menu .pop button[disabled], .menu .pop .disabled { color: var(--faint); cursor: not-allowed; background: none; }
.menu .pop .locked-hint { display: block; padding: 0 var(--space-12) var(--space-4); }

/* ---- Meldungen */
.flash { padding: 7px var(--space-10); margin-bottom: var(--space-14); border: 1px solid var(--line-strong); border-radius: var(--radius); }
.flash.error, .errors { border-color: var(--danger); color: var(--danger); }
.flash.warn { border-color: var(--warn-flash-line); background: var(--warn-flash-bg); }
.errors { padding: 7px var(--space-10); margin-bottom: var(--space-10); border: 1px solid var(--danger); border-radius: var(--radius); }
.errors ul { margin: 0; padding-left: 16px; }
.notice { background: var(--warn-bg); padding: var(--space-6) var(--space-24); font-size: 12px; color: var(--warn-fg); border-bottom: 1px solid var(--warn-line); }
.failbanner { padding: 7px var(--space-24); background: var(--danger-bg); color: var(--danger); border-bottom: 1px solid var(--danger-line); font-size: 12.5px; }
.failbanner a { color: var(--danger); }
.err { color: var(--danger); font-size: 12px; display: block; }
.warn-text { color: var(--warn-fg); font-size: 12px; display: block; }

/* ---- Werkzeugleiste */
.toolbar { display: flex; align-items: center; gap: var(--space-10); margin-bottom: var(--space-12); }
.toolbar h1 { margin: 0; flex: 1; }
.toolbar .count { color: var(--faint); font-weight: 400; margin-left: var(--space-6); }
.toolbar input[type=search] { width: 200px; }

/* ---- Listen */
.list { border-top: 1px solid var(--line); }
.row {
  display: grid; align-items: start; gap: var(--space-12);
  padding: var(--space-6) var(--space-4); border-bottom: 1px solid var(--line); min-height: var(--row-min-h);
}
.row:hover { background: var(--hover); }
.row.head { color: var(--faint); font-size: 11.5px; min-height: 0; padding-top: var(--space-4); padding-bottom: var(--space-4); }
.row.head:hover { background: none; }
.row.fresh { animation: fresh 2.5s ease-out; }
@keyframes fresh { from { background: var(--highlight); } to { background: transparent; } }
.sub { display: block; font-size: 12px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { padding: 28px var(--space-4); color: var(--muted); border-bottom: 1px solid var(--line); }
.tag { font-size: 11.5px; color: var(--muted); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 0 var(--space-4); margin-left: var(--space-6); }

/* ---- Zeilenmenü */
.menu { position: relative; justify-self: end; margin-top: -2px; }
.menu summary {
  list-style: none; cursor: pointer; width: 24px; height: 24px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; color: var(--faint); font-size: 16px; line-height: 1;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover, .menu[open] summary { color: var(--fg); background: var(--press); }
.menu .pop {
  position: absolute; right: 0; top: 26px; z-index: 5; min-width: 130px;
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: var(--shadow-pop); padding: var(--space-4) 0;
}
.menu .pop a, .menu .pop button {
  display: block; width: 100%; text-align: left; font: inherit; color: var(--fg);
  background: none; border: 0; padding: 5px var(--space-12); cursor: pointer; text-decoration: none;
}
.menu .pop a:hover, .menu .pop button:hover { background: var(--hover); }
.menu .pop .danger { color: var(--danger); }
.menu form { margin: 0; }

/* ---- Reiter */
.tabs { display: flex; gap: 2px; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 2px;
  max-width: 100%; overflow-x: auto; scrollbar-width: none; }   /* 0.01n: viele Reiter → waagerecht wischen */
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 2px var(--space-10); border-radius: var(--radius-sm); color: var(--muted); text-decoration: none; font-size: 12.5px;
  white-space: nowrap; flex: none; }
.tabs a .count { margin-left: var(--space-4); opacity: .65; font-variant-numeric: tabular-nums; }   /* 0.01n: Anzahl im Reiter */
.tabs a:hover { color: var(--fg); }
.tabs a.on { background: var(--fg); color: var(--bg); }

/* ---- Abschnitte (Einstellungen) */
.section { padding: var(--space-18) 0; border-bottom: 1px solid var(--line); }
.section .hint { color: var(--muted); font-size: 12px; margin: var(--space-6) 0 var(--space-10); }
.section h2 + .hint, .section h3 + .hint, .section .subhead + .hint { margin-top: -4px; }   /* direkt unter einer Überschrift: eng dran */
.grid { display: grid; gap: var(--space-10) var(--space-12); }
.grid.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: var(--form-max); }
.inline { display: flex; align-items: center; gap: var(--space-8); max-width: var(--form-max); }
.inline input, .inline select { flex: 1; }
.inline label { margin: 0; }   /* 0.01g: Label neben dem Feld sitzt mittig */
/* 0.01g: Zeile mit Umbruch – Label, Felder und Knöpfe in Eigenbreite (Eingabefelder brauchen eine eigene Breite) */
.inline.wrap { flex-wrap: wrap; margin-top: var(--space-8); }
.inline.wrap input, .inline.wrap select { flex: none; }
.inline.wrap select { width: auto; }
/* 0.01s: Meldungen am Feld in einzeiligen Formularen (Technik T8.3) – eigene Zeile unter Feld und Knopf */
.inline[data-check], form.edit[data-check] { flex-wrap: wrap; }
.inline > .err, .inline > .warn-text, form.edit > .err, form.edit > .warn-text { flex: 1 1 100%; }
.devices form.edit[data-check] input { flex: 1 1 0; min-width: 0; }
.field-inline { display: inline-flex; flex-direction: column; }   /* Feld mit Meldung darunter mitten in einer Zeile */
.formfoot { display: flex; align-items: center; gap: var(--space-8); margin-top: var(--space-10); }

/* ---- Login */
.login { max-width: var(--login-max); margin: 14vh auto 0; padding: 0 var(--space-24); }
.login .brand { margin-bottom: var(--space-18); font-size: 15px; }
.login .brand .byline { font-size: 11.5px; }
.login .btn { width: 100%; justify-content: center; margin-top: var(--space-4); }
.or { display: flex; align-items: center; gap: var(--space-8); color: var(--faint); font-size: 12px; margin: var(--space-14) 0 var(--space-10); }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

/* ---- Log und Code */
pre.log { font: 12px/1.5 var(--font-mono); white-space: pre-wrap; border: 1px solid var(--line); padding: var(--space-12); border-radius: var(--radius); margin: 0; }
* + pre.log { margin-top: var(--space-8); }   /* 0.01g: klebt nicht am Element darüber */

/* ---- 0.01d: Kacheln (z. B. Projekte auf der Startseite). Linie statt Schatten, Hover nur, wenn klickbar. */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-12); }
.tile {
  display: flex; flex-direction: column; gap: var(--space-4); min-height: 96px; padding: var(--space-14);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); color: inherit; text-decoration: none;
}
a.tile:hover { border-color: var(--line-strong); background: var(--hover); }
.tile .tile-name { font-weight: 600; }
.tile .tile-desc {
  font-size: 12px; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tile .tile-foot { margin-top: auto; padding-top: var(--space-6); font-size: 12px; color: var(--muted); display: flex; gap: var(--space-10); flex-wrap: wrap; }

/* ---- Status (neu in 0.01, für Sonar) */
.status { display: inline-flex; align-items: center; gap: var(--space-6); font-size: 12px; white-space: nowrap; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: var(--radius-pill); background: currentColor; flex: none; }
.status.up { color: var(--ok); }
.status.late { color: var(--late); }
.status.down { color: var(--danger); font-weight: 600; }
.status.new, .status.paused { color: var(--muted); }
.status.paused::before { background: none; border: 1.5px solid currentColor; }
.status.chip { padding: 1px var(--space-8) 1px var(--space-6); border-radius: var(--radius-pill); }
.status.chip.up { background: var(--ok-bg); }
.status.chip.late { background: var(--late-bg); }
.status.chip.down { background: var(--danger-bg); }
.status.chip.new, .status.chip.paused { background: var(--hover); }

/* Schalter (0.01l): an/aus als Knopf im Aussehen des Status – das Zeichen selbst wird angeklickt */
.switch { display: inline-flex; align-items: center; gap: var(--space-6); height: auto; padding: 1px var(--space-8) 1px var(--space-6);
  box-sizing: border-box; min-width: 4.5em; /* 0.01m: „an“ so breit wie „aus“ (reicht für „aus“ in allen gängigen Schriften) */
  font: inherit; font-size: 12px; white-space: nowrap; cursor: pointer; color: var(--muted); background: var(--hover);
  border: 1px solid transparent; border-radius: var(--radius-pill); }
.switch::before { content: ""; width: 8px; height: 8px; border-radius: var(--radius-pill); flex: none;
  border: 1.5px solid currentColor; box-sizing: border-box; }
.switch[aria-pressed="true"] { color: var(--ok); background: var(--ok-bg); }
.switch[aria-pressed="true"]::before { background: currentColor; }
.switch:hover { border-color: var(--line-strong); }
.switch:focus-visible { outline: none; border-color: var(--fg); }
.switch-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-6) var(--space-18); }
.switch-row > span, .switch-row > form { display: inline-flex; align-items: center; gap: var(--space-6); }

@media (max-width: 760px) {
  .top { flex-wrap: wrap; height: auto; column-gap: var(--space-14); row-gap: 0; justify-content: flex-end; padding: 0 var(--space-14); }
  .brand { display: none; }
  .top > .session-timer, .top > .fontsize, .top > form { height: 36px; display: flex; align-items: center; }
  .session-timer { margin-right: auto; gap: var(--space-4); }
  .nav { order: 2; flex-basis: 100%; height: 38px; gap: var(--space-14); overflow-x: auto; scrollbar-width: none; }
  /* 0.01v: mit Admin-Gruppe bricht das Menü in zwei Zeilen um statt zu wischen */
  .nav:has(.nav-admin) { flex-wrap: wrap; height: auto; overflow-x: visible; row-gap: 0; }
  .nav:has(.nav-admin) a { height: 34px; }
  .nav-admin { flex-basis: 100%; height: auto; margin-left: 0; gap: var(--space-14); }
  /* 0.01v: auf der Anmeldeseite bleibt die Marke sichtbar (nur in der Kopfzeile entfällt sie) */
  .login .brand { display: flex; }
  .notice, .failbanner { padding-left: var(--space-14); padding-right: var(--space-14); }
  .toolbar { flex-wrap: wrap; }
  .toolbar h1 { flex-basis: 100%; }
  .toolbar input[type=search] { flex: 1; width: auto; min-width: 120px; }
  main { padding: 16px var(--space-14) 40px; }
  .grid.two { grid-template-columns: minmax(0, 1fr); }
  .row { row-gap: 2px; }
}

/* ---- 0.01a: Konto-, Bestätigungs- und Changelog-Seiten (aus dem Reminder-Tool) */
.back { color: var(--muted); text-decoration: none; font-size: 12px; }
.back:hover { color: var(--fg); }
.subhead { color: var(--muted); font-size: 12px; margin: var(--space-4) 0 var(--space-6); }
.actions { display: flex; gap: var(--space-4); justify-content: flex-end; }
.actions form { margin: 0; }
ul.plain { margin: var(--space-4) 0 var(--space-10); padding-left: var(--space-18); }
ul.plain li { margin: 2px 0; }
.confirm .check { margin: var(--space-4) 0 var(--space-12); font-size: 13px; color: var(--fg); }
.devices { max-width: var(--form-max); border-top: 1px solid var(--line); margin-bottom: var(--space-10); }
.devices .row { grid-template-columns: minmax(0, 1fr) 210px 90px; align-items: center; }
.devices .dev-name { font-weight: 500; }
.devices form.edit { display: flex; gap: var(--space-6); margin: 0; }
.devices form.edit input { height: 26px; }
.passkey-add { max-width: var(--form-max); margin-top: var(--space-6); }
.passkey-add .inline input[type=password] { flex: 0 1 190px; }
.section .flash { max-width: var(--form-max); margin: 0 0 var(--space-10); }
.section .formfoot form { margin: 0; }
.login.setup { max-width: 380px; margin-top: 6vh; margin-bottom: 40px; }
.login h1 { margin: var(--space-18) 0 var(--space-8); }
.login h2 { margin: var(--space-18) 0 var(--space-8); }
.login .hint { color: var(--muted); font-size: 12px; margin: 0 0 var(--space-12); }
.login .forgot { margin-top: var(--space-14); font-size: 12px; text-align: center; }
.login .forgot a { color: var(--muted); }
.changelog { max-width: var(--form-max); }
.changelog .release { padding: var(--space-14) 0; border-bottom: 1px solid var(--line); }
.changelog .release h2 { margin: 0 0 var(--space-6); }
.changelog .release h2 .date { font-weight: 400; color: var(--faint); margin-left: var(--space-8); }
.changelog ul { margin: 0; padding-left: var(--space-18); }
.changelog li { margin: 2px 0; }
.changelog p { margin: 0 0 var(--space-6); }
.changelog .current { font-size: 11.5px; font-weight: 400; color: var(--muted); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 0 var(--space-4); margin-left: var(--space-6); }
.session-warn { display: flex; align-items: center; gap: var(--space-10); }
.session-warn[hidden], [hidden] { display: none !important; }
.session-warn .btn.link { font-size: 12px; padding: 0; }
.fs-btn[aria-disabled="true"] { opacity: .35; cursor: default; }
@media (max-width: 760px) {
  .devices .row { grid-template-columns: minmax(0, 1fr) 80px; }
  .devices .row > .muted { grid-column: 1; grid-row: 2; }
  .devices form.edit, .passkey-add .inline, .section .formfoot { flex-wrap: wrap; }
  .passkey-add .inline > * { flex: 1 1 100%; }
}

/* ---- 0.01h: Leitstand – farbige Kästchen je Status, in Gruppen mit Trennlinie (zuerst in Sonar) */
.board-group + .board-group { border-top: 1px solid var(--line); margin-top: var(--space-14); padding-top: var(--space-12); }
.board-head { display: flex; align-items: center; gap: var(--space-6); margin: 0 0 var(--space-8); font-size: 12px; font-weight: 400; color: var(--muted); }
.board-head .count { color: var(--faint); }
.board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-6); }
.board-cell {
  display: block; min-width: 0; padding: var(--space-8) var(--space-10); border: 1px solid var(--line-strong);
  border-radius: var(--radius); background: var(--hover); color: var(--fg); text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.board-cell.up { border-color: var(--ok); background: var(--ok-bg); }
.board-cell.late { border-color: var(--late); background: var(--late-bg); }
.board-cell.down { border-color: var(--danger); background: var(--danger-bg); font-weight: 600; }
.board-cell.new, .board-cell.paused { border-color: var(--line-strong); background: var(--hover); color: var(--muted); }
a.board-cell:hover { text-decoration: underline; }
/* 0.01i: ruht – gerade außerhalb der Überwachungszeit: gestrichelter Rand, zweite Zeile.
   0.01j: bei up blasse Fläche, bei late/down bleibt die Statusfläche */
.board-cell.resting { border-style: dashed; }
.board-cell.up.resting { background: var(--bg); }
.board-sub { display: block; overflow: hidden; text-overflow: ellipsis; font-size: 11.5px; font-weight: 400; color: var(--muted); }
/* 0.01k: alle Kästchen gleich hoch – ohne zweite Zeile wird ihr Platz freigehalten */
.board-cell:not(:has(.board-sub))::after { content: "\00a0"; display: block; font-size: 11.5px; font-weight: 400; }
.board-cell.fresh { animation: fresh-cell 2.5s ease-out; }
@keyframes fresh-cell { from { box-shadow: inset 0 0 0 999px var(--highlight); } to { box-shadow: inset 0 0 0 999px transparent; } }
@media (max-width: 760px) {
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- 0.01m: Blättern (.pager) */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); font-size: 12px; color: var(--muted);
  font-variant-numeric: tabular-nums; }
.pager.end { justify-content: flex-end; }
.pager.center { justify-content: center; }
.pager > a, .pager > span.off { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-4);
  height: 26px; min-width: 26px; padding: 0 var(--space-8); box-sizing: border-box; white-space: nowrap;
  color: var(--fg); background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius); text-decoration: none; }
.pager > a:hover { border-color: var(--fg); }
.pager > a:focus-visible { outline: none; border-color: var(--fg); }
.pager > span.off { opacity: .45; cursor: default; }
.pager form { display: inline-flex; align-items: center; gap: var(--space-4); margin: 0 var(--space-4); white-space: nowrap; }
.pager input[type=number] { width: 4.5em; height: 26px; padding: 0 var(--space-4); text-align: center; -moz-appearance: textfield; }
.pager input[type=number]::-webkit-inner-spin-button, .pager input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.pager .pager-slash { display: none; }
@media (max-width: 760px) {
  .pager .pager-far, .pager .pager-word, .pager .pager-label { display: none; }
  .pager .pager-slash { display: inline; }
}

/* ---- 0.01o: Detailfenster (.peek) – schwebendes Fenster in fester Größe, z. B. beim Drüberfahren über eine Zeile */
.peek { position: fixed; z-index: 60; display: flex; flex-direction: column; box-sizing: border-box;
  width: min(640px, calc(100vw - 2 * var(--space-12))); height: min(440px, calc(100vh - 2 * var(--space-12)));
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow-pop); }
.peek.pinned { border-color: var(--fg); }
.peek-head { display: flex; align-items: center; gap: var(--space-8); min-height: 36px; padding: 0 var(--space-6) 0 var(--space-12);
  border-bottom: 1px solid var(--line); font-weight: 500; white-space: nowrap; }
.peek-head > .peek-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.peek-close { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0;
  border: 1px solid transparent; border-radius: var(--radius-sm); background: none; color: var(--muted); font: inherit; cursor: pointer; }
.peek-close:hover, .peek-close:focus-visible { outline: none; border-color: var(--line-strong); color: var(--fg); }
.peek-body { flex: 1; min-height: 0; overflow: auto; padding: var(--space-10) var(--space-12); }
.peek-body > * + * { margin-top: var(--space-10); }
.peek-body pre.log { margin-top: var(--space-4); }
.peek-foot { display: flex; justify-content: flex-end; gap: var(--space-10); padding: var(--space-6) var(--space-12);
  border-top: 1px solid var(--line); font-size: 12px; }
.peek-wait { color: var(--muted); }
@media (max-width: 760px) {
  .peek { left: var(--space-8) !important; right: var(--space-8) !important; top: var(--space-24) !important; bottom: var(--space-24) !important;
    width: auto; height: auto; }
}

/* ---- 0.01p: Kachel mit Warnzeichen (.tile-alert) und Status „ruht“ (.status.resting) */
.tile { position: relative; }
.tile .tile-alert { position: absolute; right: var(--space-14); bottom: var(--space-12); font-size: 15px; font-weight: 700;
  line-height: 1; color: var(--danger); }
.tile:has(.tile-alert:not([hidden])) { padding-right: calc(var(--space-14) + 14px); }
.status.resting { color: var(--muted); }
.status.resting::before { background: none; border: 1.5px dashed currentColor; }

/* ---- 0.01q: Filterleiste über langen Listen (.filterbar) – Filter wirken serverseitig (GET-Formular) */
.filterbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-8); margin: var(--space-12) 0 var(--space-6); }
.filterbar label { margin: 0; font-size: 12px; color: var(--muted); }
.filterbar select { width: auto; }
.filterbar input[type=search] { width: 220px; }
.filterbar .btn.link { font-size: 12px; }
@media (max-width: 760px) {
  .filterbar input[type=search] { width: 100%; }
}
