/* RustHelper2 – Theme "Slate" (Entscheidung Bob 27.09.2026): ruhiges Dunkelgrau, ein Akzent (Stahlblau),
   Status-Punkt statt Volltext-Rot, eine Karte pro Gruppe mit gemeinsamem Spaltenraster. Bootstrap wird nur
   noch fuer Modals/Dropdowns/Collapse/Alerts genutzt und ueber seine CSS-Variablen an das Theme gehaengt. */

:root {
  --rh-bg: #0e1116; --rh-nav: #12161c; --rh-panel: #151a21; --rh-panel-2: #12161c; --rh-hover: #181e27;
  --rh-hover-2: #1f2733; /* Hover auf Knoepfen/Menues, Spur der Gametime-Balken */
  --rh-chip: #1b2230; --rh-chip-hover: #26303d; --rh-chip-text: #838d9a; /* Chips, Pills, Tags, aktiver Nav-Punkt */
  --rh-border: #222a34; --rh-border-2: #1a2029; --rh-field: #0f1319; --rh-btn: #171d25;
  --rh-line: #2a323d; --rh-line-2: #354050; /* Rahmen von Feldern/Knoepfen, -2 beim Hover */
  --rh-grid: #1f262f; /* Linien in Diagramm, Heatmap, unter Tabellenkoepfen */
  --rh-faint: #3b4552; /* Griff, gesperrte Icons, Punkt "offline" */
  --rh-pop: #1c232d; --rh-pop-border: #2c3541; /* schwebende Flaechen: Tooltip, Toast, Chart-Tooltip */
  /* Text-Hierarchie (Audit 27.09.): bright (online) > head (Titel) > text > text-2 > muted > dim, nirgends Reinweiss */
  --rh-text: #97a1ac; --rh-text-2: #838d9a; --rh-muted: #6f7986; --rh-dim: #525c68;
  --rh-head: #a4adb7; /* Ueberschriften: bewusst kein Reinweiss (Zweitmonitor nachts, Bob 27.09.) */
  --rh-bright: #b1bac3; /* hellster Text ueberhaupt: Name eines Online-Spielers */
  /* Akzent: accent = Buttons/Balken, accent-2 = Brand-Text auf dunkel, accent-3 = Links/Code, accent-rgb = Heatmap/Fokus */
  --rh-accent: #4f6f96; --rh-accent-2: #6a8bb5; --rh-accent-3: #97b0cf; --rh-accent-rgb: 79, 111, 150; --rh-accent-soft: rgba(var(--rh-accent-rgb), .3);
  /* Status: on = online, warn = Feed alt/Wipe, off = offline/Gefahr; -rgb fuer Glow/Flaechen, -soft = Hintergrund, -text/-muted = Schrift */
  --rh-on: #37cc7b; --rh-on-rgb: 55, 204, 123; --rh-on-soft: rgba(var(--rh-on-rgb), .16); --rh-on-muted: color-mix(in srgb, var(--rh-on) 60%, var(--rh-text-2));
  --rh-warn: #e5b04b; --rh-warn-rgb: 229, 176, 75; --rh-warn-soft: rgba(var(--rh-warn-rgb), .14);
  --rh-off: #d9737f; --rh-off-rgb: 217, 115, 127; --rh-off-soft: rgba(var(--rh-off-rgb), .16); --rh-off-text: #f2a6b0;
  /* Diagramm-Serien (visual.js): ohne Gruen/Amber/Rot, Reihenfolge mit dem Farbfehlsicht-Validator (dataviz) gegen das Panel
     geprueft: Nachbarn dE >= 14.7 (Deutan/Protan), >= 16 normal, alle >= 3:1 Kontrast. Reihenfolge nicht umsortieren. */
  --rh-series-1: #3a75bf; --rh-series-2: #17a8a9; --rh-series-3: #7c5ec2; --rh-series-4: #b2580b;
  --rh-series-5: #9c4fae; --rh-series-6: #9a692a; --rh-series-7: #768ce9; --rh-series-8: #af4a88;
  --rh-now: #a4adb7; /* NOW-Linie im Diagramm: neutral, weder Serien- noch Statusfarbe */
  --rh-font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
/* Palette "Denim" (Bob, 27.09.2026, aus Steel/Cobalt/Denim/Ocean gewaehlt): gedaempftes Graublau, das Online-Gruen
   traegt die Aufmerksamkeit. Die Vergleichsseite liegt unter https://claude.ai/artifact/NjTBBB7cTo9fu8vew11q6q. */

/* ---------- Bootstrap an das Theme haengen ---------- */
[data-bs-theme=dark] {
  --bs-body-bg: var(--rh-bg); --bs-body-color: var(--rh-text); --bs-body-font-family: var(--rh-font);
  --bs-border-color: var(--rh-border); --bs-secondary-color: var(--rh-muted); --bs-tertiary-bg: var(--rh-panel);
  --bs-link-color: var(--rh-accent-3); --bs-link-hover-color: var(--rh-head); --bs-emphasis-color: var(--rh-head); --bs-code-color: var(--rh-accent-3);
  --bs-link-color-rgb: 151, 176, 207; --bs-link-hover-color-rgb: 195, 204, 214; /* Bootstrap 5.3 faerbt <a> ueber die -rgb-Variante (= accent-3 / head) */
  --bs-focus-ring-color: var(--rh-accent-soft);
}
body { background: var(--rh-bg); font-size: 14px; -webkit-font-smoothing: antialiased; }
b, strong { font-weight: 700; }

.btn { --bs-btn-font-weight: 700; --bs-btn-border-radius: 8px; --bs-btn-padding-y: .42rem; --bs-btn-padding-x: .85rem; --bs-btn-font-size: 13px; }
/* #fff nur auf gefuellten Akzent-Knoepfen; alle anderen Hover/Active gehen hoechstens auf --rh-head */
.btn-primary { --bs-btn-bg: var(--rh-accent); --bs-btn-border-color: var(--rh-accent); --bs-btn-color: #fff; --bs-btn-hover-bg: var(--rh-accent-2); --bs-btn-hover-border-color: var(--rh-accent-2); --bs-btn-hover-color: #fff; --bs-btn-active-bg: var(--rh-accent-2); --bs-btn-active-border-color: var(--rh-accent-2); --bs-btn-active-color: #fff; --bs-btn-disabled-bg: var(--rh-accent); --bs-btn-disabled-border-color: var(--rh-accent); --bs-btn-disabled-color: #fff; --bs-btn-focus-shadow-rgb: var(--rh-accent-rgb); }
.btn-secondary { --bs-btn-bg: var(--rh-btn); --bs-btn-border-color: var(--rh-line); --bs-btn-color: var(--rh-text); --bs-btn-hover-bg: var(--rh-hover-2); --bs-btn-hover-border-color: var(--rh-line-2); --bs-btn-hover-color: var(--rh-head); --bs-btn-active-bg: var(--rh-hover-2); --bs-btn-active-border-color: var(--rh-line-2); --bs-btn-active-color: var(--rh-head); --bs-btn-disabled-bg: var(--rh-btn); --bs-btn-disabled-border-color: var(--rh-line); --bs-btn-disabled-color: var(--rh-muted); --bs-btn-focus-shadow-rgb: var(--rh-accent-rgb); }
/* Segment-Auswahl (Visual 1d/3d/7d, Berlin/US East): gewaehlt = weicher Akzent + Akzent-Rahmen statt Vollblau mit Weiss */
.btn-outline-secondary { --bs-btn-color: var(--rh-text-2); --bs-btn-border-color: var(--rh-line); --bs-btn-hover-bg: var(--rh-hover-2); --bs-btn-hover-border-color: var(--rh-line-2); --bs-btn-hover-color: var(--rh-head); --bs-btn-active-bg: var(--rh-accent-soft); --bs-btn-active-border-color: var(--rh-accent); --bs-btn-active-color: var(--rh-head); --bs-btn-disabled-color: var(--rh-dim); --bs-btn-disabled-border-color: var(--rh-line); --bs-btn-focus-shadow-rgb: var(--rh-accent-rgb); }
/* Gefahr (Bestaetigungs-Modal mit data-confirm-danger): gedaempftes Rot aus --rh-off, kein Signalrot */
.btn-danger { --bs-btn-bg: var(--rh-off-soft); --bs-btn-border-color: rgba(var(--rh-off-rgb), .45); --bs-btn-color: var(--rh-off-text); --bs-btn-hover-bg: rgba(var(--rh-off-rgb), .28); --bs-btn-hover-border-color: var(--rh-off); --bs-btn-hover-color: var(--rh-off-text); --bs-btn-active-bg: rgba(var(--rh-off-rgb), .34); --bs-btn-active-border-color: var(--rh-off); --bs-btn-active-color: var(--rh-off-text); --bs-btn-disabled-bg: var(--rh-off-soft); --bs-btn-disabled-border-color: rgba(var(--rh-off-rgb), .3); --bs-btn-disabled-color: var(--rh-off-text); --bs-btn-focus-shadow-rgb: var(--rh-off-rgb); }
.btn-group-sm > .btn { --bs-btn-font-size: 12px; }

/* background-color, nicht die Kurzform: die loescht den Pfeil, den Bootstrap per background-image in .form-select malt */
.form-control, .form-select { background-color: var(--rh-field); border-color: var(--rh-line); color: var(--rh-text); border-radius: 8px; }
.form-control:focus, .form-select:focus { background-color: var(--rh-field); border-color: var(--rh-accent); box-shadow: 0 0 0 3px var(--rh-accent-soft); color: var(--rh-text); }
.form-control::placeholder { color: var(--rh-dim); }
[data-bs-theme=dark] .form-select { --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%237d8794' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); }
/* gewaehlte Zeile in Listen-Selects: Verlauf statt background-color, sonst malt Chrome sein Systemblau */
.form-select option:checked { background: linear-gradient(rgba(var(--rh-accent-rgb), .45), rgba(var(--rh-accent-rgb), .45)); color: var(--rh-head); }
.form-select option.rh-opt-on { color: var(--rh-on); }
/* Such-Feld: eigenes Kreuz in Muted (Maske, folgt den Tokens) statt des grauen Browser-Kreises */
input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; width: 14px; height: 14px; margin-left: 8px; cursor: pointer; filter: none; background-color: var(--rh-muted); -webkit-mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath stroke='%23000' stroke-width='2' stroke-linecap='round' d='M4 4l8 8M12 4l-8 8'/%3e%3c/svg%3e") center / 12px 12px no-repeat; mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath stroke='%23000' stroke-width='2' stroke-linecap='round' d='M4 4l8 8M12 4l-8 8'/%3e%3c/svg%3e") center / 12px 12px no-repeat; }
input[type=search]::-webkit-search-cancel-button:hover { background-color: var(--rh-head); }
.form-label { font-size: 13px; font-weight: 600; color: var(--rh-text-2); }
.form-check-input { background-color: var(--rh-field); border-color: var(--rh-line); }
.form-check-input:checked { background-color: var(--rh-accent); border-color: var(--rh-accent); }
.form-check-input:focus { border-color: var(--rh-accent); box-shadow: 0 0 0 3px var(--rh-accent-soft); }

.modal-content { background: var(--rh-panel); border: 1px solid var(--rh-border); border-radius: 12px; }
.modal-header, .modal-footer { border-color: var(--rh-border); }
.modal-title { font-weight: 800; font-size: 16px; color: var(--rh-head); }
.btn-close { --bs-btn-close-focus-shadow: 0 0 0 3px var(--rh-accent-soft); }
.dropdown-menu { --bs-dropdown-bg: var(--rh-panel); --bs-dropdown-border-color: var(--rh-border); --bs-dropdown-color: var(--rh-text); --bs-dropdown-link-color: var(--rh-text); --bs-dropdown-link-hover-bg: var(--rh-hover-2); --bs-dropdown-link-hover-color: var(--rh-head); --bs-dropdown-link-active-bg: var(--rh-accent-soft); --bs-dropdown-link-active-color: var(--rh-head); --bs-dropdown-border-radius: 10px; --bs-dropdown-padding-y: .35rem; --bs-dropdown-divider-bg: var(--rh-border); font-size: 13px; }
.card { --bs-card-bg: var(--rh-panel); --bs-card-border-color: var(--rh-border); --bs-card-border-radius: 12px; }
.alert-dark { --bs-alert-bg: var(--rh-panel); --bs-alert-border-color: var(--rh-border); --bs-alert-color: var(--rh-text); border-radius: 10px; }
.alert-success { --bs-alert-bg: var(--rh-on-soft); --bs-alert-border-color: rgba(var(--rh-on-rgb), .3); --bs-alert-color: var(--rh-on-muted); }
.alert-danger { --bs-alert-bg: var(--rh-off-soft); --bs-alert-border-color: rgba(var(--rh-off-rgb), .35); --bs-alert-color: var(--rh-off-text); }
.text-secondary { color: var(--rh-muted) !important; }

/* nur noch die Heatmap (visual.ejs) nutzt table-dark */
.table-dark { --bs-table-bg: var(--rh-panel); --bs-table-color: var(--rh-text); --bs-table-border-color: var(--rh-border-2); --bs-table-striped-bg: var(--rh-btn); --bs-table-striped-color: var(--rh-text); --bs-table-hover-bg: var(--rh-chip); --bs-table-hover-color: var(--rh-head); font-size: 13px; }
.table-dark th { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rh-muted); }
.table-dark td { vertical-align: middle; }
.table-dark.table-bordered { --bs-table-border-color: var(--rh-grid); }
.rh-brand-b { color: var(--rh-accent-2); }

/* ---------- Layout / Navbar ---------- */
.rh-wrap { max-width: 1600px; margin: 0 auto; padding: 0 32px; }
.rh-nav { background: var(--rh-nav); border-bottom: 1px solid var(--rh-border); min-height: 56px; padding: 0; }
.rh-nav .navbar-brand { font-weight: 800; font-size: 17px; letter-spacing: -.02em; color: var(--rh-head); }
.rh-nav .navbar-brand b { color: var(--rh-accent-2); }
.rh-nav .nav-link { color: var(--rh-text-2); font-weight: 600; padding: 6px 12px; border-radius: 8px; }
.rh-nav .nav-link:hover { color: var(--rh-head); }
.rh-nav .nav-link.active { background: var(--rh-chip); color: var(--rh-head); }
.rh-nav .navbar-toggler { border-color: var(--rh-line); padding: 4px 8px; }
.rh-status { color: var(--rh-muted); font-size: 13px; display: flex; align-items: center; gap: 16px; white-space: nowrap; }
.rh-status b { color: var(--rh-text); font-weight: 700; }
/* Feed-Ampel: derselbe 8-px-Punkt wie in den Monitor-Zeilen (Bob 27.09.: das FA-Icon klebte an der Uhr), gruen = live, gelb = Feed alt, rot = keine Verbindung */
.rh-live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--rh-dim); vertical-align: 1px; flex: none; }
.rh-status-clock { display: inline-flex; align-items: center; gap: 10px; }
.rh-live.on { background: var(--rh-on); box-shadow: 0 0 0 3px var(--rh-on-soft); }
.rh-live.off { background: var(--rh-off); box-shadow: 0 0 0 3px var(--rh-off-soft); }
.rh-live.stale { background: var(--rh-warn); box-shadow: 0 0 0 3px var(--rh-warn-soft); }
.rh-live-sm { margin-left: auto; margin-right: 14px; }
.rh-user { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--rh-text) !important; padding: 4px 6px !important; }
.rh-user::after { color: var(--rh-muted); }
.rh-avatar { width: 26px; height: 26px; border-radius: 50%; background: #2a3444; display: grid; place-items: center; font-size: 11px; color: var(--rh-head); }
/* Luft unter der letzten Karte (der Footer mit der Version ist seit 27.09.2026 weg, Handy setzt unten 88px fuer die Leiste) */
main.rh-wrap { padding-bottom: 24px; }

/* ---------- Seiten-Titel, Textlinks ---------- */
.rh-page-title { font-size: 22px; font-weight: 800; color: var(--rh-head); letter-spacing: -.01em; margin: 0; }
.rh-dim { color: var(--rh-muted); }
.rh-link { background: none; border: 0; padding: 0; color: var(--rh-text-2); text-decoration: none; font: inherit; font-weight: 600; cursor: pointer; }
.rh-link:hover { color: var(--rh-head); }
.rh-link:disabled { color: var(--rh-dim); cursor: default; }

/* ---------- Monitor: Toolbar ---------- */
.rh-toolbar { display: flex; align-items: center; gap: 10px; margin: 18px 0 16px; }
.rh-sum { color: var(--rh-muted); font-size: 13px; }
.rh-sum b { color: var(--rh-text); }
.rh-sum b.rh-sum-on { color: var(--rh-on); }
.rh-spacer { flex: 1; }

/* ---------- Monitor: Gruppen-Karten ---------- */
.rh-card { background: var(--rh-panel); border: 1px solid var(--rh-border); border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.rh-card-h { display: flex; align-items: center; gap: 12px; padding: 9px 10px 9px 12px; border-bottom: 1px solid var(--rh-border); min-height: 52px; }
.rh-drag { color: var(--rh-faint); cursor: grab; padding: 6px 4px; font-size: 13px; touch-action: none; user-select: none; -webkit-user-select: none; }
.rh-drag:hover { color: var(--rh-text-2); }
.rh-drag:active { cursor: grabbing; }
.rh-ghost { opacity: .35; outline: 1px dashed var(--rh-accent-2); }
.rh-chosen { box-shadow: 0 12px 32px rgba(0, 0, 0, .5); }
.rh-gname { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: -.01em; color: var(--rh-head); min-width: 0; }
.rh-pill { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--rh-chip); color: var(--rh-chip-text); white-space: nowrap; }
.rh-pill.on { background: var(--rh-on-soft); color: var(--rh-on); }
/* Gruppen-Notiz: eine Zeile, Klick klappt auf (Zustand pro Gruppe in localStorage, monitor.js) */
.rh-card .rh-note { display: flex; align-items: flex-start; gap: 10px; width: 100%; margin: 0; padding: 8px 14px 8px 18px; font: inherit; font-size: 13px; line-height: 1.45; text-align: left; color: var(--rh-text-2); background: var(--rh-panel-2); border: 0; border-bottom: 1px solid var(--rh-border); cursor: default; }
.rh-note-long .rh-note { cursor: pointer; }
.rh-note-long .rh-note:hover { color: var(--rh-text); }
.rh-note-txt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rh-note-open .rh-note-txt { white-space: pre-wrap; }
.rh-note-chev { display: none; flex: none; margin-top: 3px; font-size: 11px; color: var(--rh-dim); transition: transform .15s; }
.rh-note-long .rh-note-chev { display: inline-block; }
.rh-note-open .rh-note-chev { transform: rotate(180deg); }
.rh-hist { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 4px; background: var(--rh-chip); color: var(--rh-muted); cursor: default; line-height: 1.5; }
.rh-hist:hover { background: var(--rh-chip-hover); color: var(--rh-head); }
.rh-hist i { font-size: 10px; }
.rh-empty { padding: 14px 18px; color: var(--rh-muted); font-size: 13px; }

/* Icon-Buttons (Gruppe + Zeile) */
.rh-ib { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 30px; height: 30px; border-radius: 7px; border: 0; background: transparent; color: var(--rh-muted); font: inherit; font-size: 13px; text-decoration: none; cursor: pointer; padding: 0; white-space: nowrap; }
.rh-ib:hover { background: var(--rh-hover-2); color: var(--rh-head); }
.rh-ib:disabled { color: var(--rh-faint); cursor: default; background: transparent; }
.rh-ib.rh-danger:hover { background: var(--rh-off-soft); color: var(--rh-off-text); }
.rh-ib .rh-txt { display: none; }
.rh-form { display: inline; margin: 0; }
.rh-gacts, .rh-acts { display: flex; align-items: center; gap: 2px; }
.rh-gacts { margin-left: auto; }
.rh-more { display: none; }

/* Zeilen-Raster: gilt fuer Kopfzeile und alle Zeilen aller Gruppen -> Spalten stehen ueberall gleich */
/* Spalten: Punkt, Spieler, Metal, Sulfur, Rockets, C4 (Moose, seit 27.09. mittags feste Spalten statt Chips; Breite = Icon 14 + 4 + Zahl 30
   [+ 4 + Delta 26], die C4-Spur ist absichtlich breiter = Luft zur Gametime), Gametime, Last seen, Aktionen */
.rh-grid { display: grid; grid-template-columns: 18px minmax(0, 1fr) 48px 78px 78px 76px 230px 130px 170px; align-items: center; column-gap: 12px; padding: 0 10px 0 18px; }
.rh-thead { height: 34px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rh-dim); border-bottom: 1px solid var(--rh-grid); }
.rh-row { min-height: 42px; border-bottom: 1px solid var(--rh-border-2); }
.rh-row:last-child { border-bottom: 0; }
.rh-row:hover { background: var(--rh-hover); }
.rh-dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--rh-faint); }
.rh-row.rh-on .rh-dot, .rh-dot.on { background: var(--rh-on); box-shadow: 0 0 0 3px var(--rh-on-soft); }
.rh-row.rh-never .rh-dot { background: var(--rh-line); }
.rh-name { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 700; color: var(--rh-text-2); }
.rh-name-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rh-row.rh-on .rh-name { color: var(--rh-bright); }
.rh-row.rh-never .rh-name { color: var(--rh-muted); font-weight: 600; }
.rh-ico { color: var(--rh-dim); font-size: 12px; }
.rh-ext { display: inline-flex; gap: 4px; margin-left: 2px; }
.rh-ext a { font-size: 10px; font-weight: 800; letter-spacing: .05em; padding: 2px 5px; border-radius: 4px; background: var(--rh-chip); color: var(--rh-muted); text-decoration: none; line-height: 1.3; }
.rh-ext a:hover { background: var(--rh-chip-hover); color: var(--rh-head); }
/* Moose-Werte als feste Spalten (Bob 27.09. mittags, Mockup-Canvas Variante C): Icon + Zahl als Einheit links in der Spur, die Zahl in
   einer festen Box und das 24-h-Delta in einem festen Schlitz daneben - alle Teile haben feste Breiten, so stehen Icons UND Werte
   aller Zeilen buendig und jede Zahl klebt an ihrem Icon (space-between hatte sie optisch zum naechsten Icon geschoben). Keine Spaltenkoepfe, keine Gefahrenfarben. Zeilen ohne Werte lassen die Spalten leer (gt/ls/acts sind
   ab 768px fest auf Spalte 7-9 gesetzt). Handy: .rh-stats wird eine dritte Zeile (unten im Media-Block). */
.rh-stats { display: contents; }
.rh-st { display: flex; align-items: center; justify-content: flex-start; gap: 4px; min-width: 0; font-size: 12px; font-weight: 600; color: var(--rh-text-2); font-variant-numeric: tabular-nums; white-space: nowrap; cursor: default; }
.rh-st img { flex: none; }
.rh-st.rh-zero { color: var(--rh-dim); }
.rh-st.rh-zero img { opacity: .45; }
.rh-row.rh-never .rh-st { color: var(--rh-dim); }
.rh-stn { display: inline-block; min-width: 30px; text-align: right; } /* NICHT .rh-num: das ist die Zahlen-Zelle der Tabellen (td) */
.rh-dlt { display: inline-block; width: 26px; text-align: left; font-size: 11px; font-weight: 700; color: var(--rh-on); } /* leer, wenn kein Zuwachs: haelt die Spalte buendig */
@media (min-width: 768px) { .rh-row .rh-gt { grid-column: 7; } .rh-row .rh-ls { grid-column: 8; } .rh-row .rh-acts { grid-column: 9; } }
/* Zaehler Namen/bekannt/Freunde: immer sichtbar (Hover-only aus dem Mockup war Bob zu versteckt, 27.09. nachmittags) */
.rh-meta { display: inline-flex; align-items: center; gap: 8px; }
.rh-gt { display: flex; align-items: center; gap: 12px; font-variant-numeric: tabular-nums; color: var(--rh-text-2); font-weight: 600; }
.rh-gt-n { width: 56px; text-align: right; white-space: nowrap; }
.rh-bar { width: 110px; height: 4px; border-radius: 2px; background: var(--rh-hover-2); overflow: hidden; }
.rh-bar i { display: block; height: 100%; background: var(--rh-accent); border-radius: 2px; }
.rh-row.rh-never .rh-gt { color: var(--rh-dim); }
.rh-ls { font-variant-numeric: tabular-nums; color: var(--rh-text-2); font-weight: 600; white-space: nowrap; }
.rh-row.rh-on .rh-ls { color: var(--rh-on); font-weight: 800; }
.rh-row.rh-never .rh-ls { color: var(--rh-dim); }
.rh-acts { justify-content: flex-end; opacity: .6; }
.rh-row:hover .rh-acts { opacity: 1; }
.rh-acts .rh-ib { width: 28px; height: 28px; }

/* Desktop: das Aktionsmenue ist kein Dropdown, sondern eine Icon-Leiste */
@media (min-width: 768px) {
  /* z-index auto ist Pflicht: als Flex-Item wuerde Bootstraps z-index 1000 sonst ueber Navbar-Dropdowns liegen */
  .rh-menu.dropdown-menu { display: flex !important; position: static !important; z-index: auto !important; transform: none !important; inset: auto !important; background: none; border: 0; padding: 0; margin: 0; min-width: 0; gap: 2px; align-items: center; }
}

/* ---------- Visual: Heatmap ---------- */
.rh-heat td { text-align: center; font-size: .72rem; min-width: 1.9rem; color: var(--rh-text); }
.rh-heat td.rh-hot { background: rgba(var(--rh-accent-rgb), var(--rh-a, .5)); }
.rh-heat th { font-size: .72rem; text-align: center; color: var(--rh-muted); text-transform: none; letter-spacing: 0; }

/* ---------- Handy ---------- */
@media (max-width: 767.98px) {
  .rh-wrap { padding: 0 12px; }
  main.rh-wrap { padding-bottom: 88px !important; }
  .rh-nav .navbar-collapse { padding: 6px 0 10px; }
  .rh-status { padding: 8px 12px 0; white-space: normal; flex-wrap: wrap; gap: 4px 14px; }
  .rh-nav .navbar-nav .nav-link { padding: 8px 12px; }
  .rh-page-title { font-size: 19px; }
  .rh-toolbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1020; margin: 0; padding: 10px 12px; background: rgba(14, 17, 22, .94); border-top: 1px solid var(--rh-border); backdrop-filter: blur(6px); }
  .rh-toolbar .btn { flex: 1; height: 46px; border-radius: 10px; font-size: 14px; }
  .rh-sum, .rh-spacer { display: none; }
  .rh-card { margin-bottom: 12px; }
  .rh-card-h { padding: 6px 4px 6px 8px; gap: 8px; }
  .rh-gname { font-size: 15px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rh-card .rh-note { padding: 8px 10px 8px 14px; font-size: 12px; }
  .rh-thead { display: none; }
  .rh-grid { grid-template-columns: 14px minmax(0, 1fr) auto 40px; grid-template-rows: auto auto; column-gap: 10px; row-gap: 0; padding: 7px 2px 7px 14px; }
  .rh-row { min-height: 54px; }
  .rh-dot { grid-row: 1 / 4; }
  .rh-name { grid-column: 2 / 4; }
  .rh-ext { display: none; }
  .rh-stats { display: flex; grid-row: 3; grid-column: 2 / 4; gap: 14px; margin-top: 3px; } /* Moose-Werte als dritte Zeile */
  .rh-st { justify-content: flex-start; gap: 5px; }
  .rh-stn { min-width: 0; }
  .rh-dlt { width: auto; margin-left: 2px; }
  .rh-dlt:empty { display: none; }
  .rh-gt { grid-row: 2; grid-column: 2; font-size: 12px; color: var(--rh-muted); gap: 6px; }
  .rh-gt-n { width: auto; text-align: left; }
  .rh-gt-n::after { content: ' since wipe'; font-weight: 500; }
  .rh-bar { display: none; }
  .rh-ls { grid-row: 2; grid-column: 3; font-size: 12px; }
  .rh-row.rh-off .rh-ls::before { content: 'seen '; font-weight: 500; }
  .rh-row.rh-never .rh-ls::after { content: ' seen'; }
  .rh-row.rh-on .rh-ls::before { content: 'online '; }
  .rh-acts, .rh-gacts { grid-row: 1 / 4; grid-column: 4; opacity: 1; }
  .rh-more { display: inline-flex; width: 40px; height: 40px; }
  .rh-menu.dropdown-menu { min-width: 200px; }
  .rh-menu .rh-form { display: block; }
  .rh-menu .rh-ib { width: 100%; height: 40px; justify-content: flex-start; padding: 0 14px; border-radius: 0; color: var(--rh-text); gap: 12px; }
  .rh-menu .rh-ib i { width: 16px; text-align: center; color: var(--rh-muted); }
  .rh-menu .rh-ib .rh-txt { display: inline; }
  .rh-menu .rh-ib:disabled { color: var(--rh-dim); }
}

/* ---------- Tabellen-Seiten (Admin, Friends, Visual): gleiche Optik wie die Monitor-Karten ---------- */
.rh-page-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 4px 0 18px; }
.rh-page-head .rh-dim { font-size: 13px; }
.rh-page-head .rh-dim b { color: var(--rh-text); }
.rh-table { --bs-table-bg: transparent; --bs-table-color: var(--rh-text); --bs-table-border-color: var(--rh-border-2); --bs-table-hover-bg: var(--rh-hover); --bs-table-hover-color: var(--rh-text); --bs-table-striped-bg: transparent; margin: 0; font-size: 13.5px; }
.rh-table th { height: 34px; padding: 0 12px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rh-dim); border-bottom: 1px solid var(--rh-grid); vertical-align: middle; white-space: nowrap; }
.rh-table td { padding: 0 12px; height: 42px; vertical-align: middle; border-bottom: 1px solid var(--rh-border-2); }
.rh-table tbody tr:last-child td { border-bottom: 0; }
.rh-table tbody tr:hover td { background: var(--rh-hover); }
.rh-table th:first-child, .rh-table td:first-child { padding-left: 18px; }
.rh-table th:last-child, .rh-table td:last-child { padding-right: 10px; }
.rh-table td.rh-id { color: var(--rh-dim); font-variant-numeric: tabular-nums; width: 1%; }
.rh-table td.rh-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.rh-table th.rh-fit { width: 1%; } /* Zahlenspalte so schmal wie ihr Inhalt, die erste Spalte nimmt den Rest */
.rh-legend .rh-dot { margin: 0 3px 0 5px; }
.rh-table td.rh-dim { color: var(--rh-muted); } /* sonst gewinnt Bootstraps .table>:not(caption)>*>* die Farbe */
.rh-table td.rh-strong { font-weight: 700; white-space: nowrap; }
.rh-table tr.rh-inactive td { color: var(--rh-muted); }
.rh-table tr.rh-inactive td.rh-strong { font-weight: 600; }
.rh-table .rh-acts { opacity: .6; }
.rh-table tr:hover .rh-acts { opacity: 1; }
.rh-table img { vertical-align: -3px; margin-right: 2px; }
/* Online in Tabellen (Friends, History-Suche) wie im Monitor: Punkt + heller Name, "now" gruen.
   Eigene Klasse .rh-who, weil .rh-pname in monitor.css schon die Add-player-Liste meint. */
.rh-who { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; vertical-align: middle; }
.rh-table tr.rh-on .rh-dot { background: var(--rh-on); box-shadow: 0 0 0 3px var(--rh-on-soft); }
.rh-table tr.rh-on .rh-who, .rh-table tr.rh-on .rh-who a { color: var(--rh-bright); }
.rh-table tr.rh-on .rh-seen { color: var(--rh-on); font-weight: 800; }
.rh-table tr.rh-never .rh-dot { background: var(--rh-line); }
.rh-table tr.rh-nomatch .rh-dot { visibility: hidden; }
.rh-page-head .rh-dot { vertical-align: 1px; margin-left: 2px; }
.rh-table tr.rh-nomatch .rh-who { color: var(--rh-muted); }
.rh-mono { font-family: ui-monospace, Consolas, 'Cascadia Mono', monospace; font-size: 12.5px; color: var(--rh-text-2); }
.rh-tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--rh-chip); color: var(--rh-chip-text); line-height: 1.5; white-space: nowrap; vertical-align: 1px; }
.rh-tag-on { background: var(--rh-on-soft); color: var(--rh-on); }
.rh-tag-off { background: rgba(var(--rh-off-rgb), .14); color: var(--rh-off); }
.rh-tag-warn { background: var(--rh-warn-soft); color: var(--rh-warn); }
.rh-warn-txt { color: var(--rh-warn); }
/* Wipe-Zeitfeld neben dem Besen (Admin): schmal, gleiche Hoehe wie der Icon-Knopf */
.rh-wipe-form { display: inline-flex; align-items: center; gap: 6px; }
.rh-wipe-at { width: 165px; font-size: 12px; padding: 2px 6px; color-scheme: dark; }
.rh-tag-accent { background: var(--rh-accent-soft); color: var(--rh-accent-3); }
.rh-chip { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .03em; padding: 2px 7px; border-radius: 4px; background: var(--rh-chip); color: var(--rh-text-2); text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rh-chip:hover { background: var(--rh-chip-hover); color: var(--rh-head); }
.rh-ib.rh-wipe:hover { background: var(--rh-warn-soft); color: var(--rh-warn); }
.rh-card-foot { padding: 10px 18px; font-size: 12px; color: var(--rh-muted); border-top: 1px solid var(--rh-border); background: var(--rh-panel-2); }
.rh-card-foot code { color: var(--rh-accent-3); font-size: 12px; }
.rh-card > .table-responsive { margin: 0; }
.rh-card .btn-sm { --bs-btn-padding-y: .3rem; --bs-btn-padding-x: .7rem; --bs-btn-font-size: 12.5px; }
.rh-card.table-responsive { overflow-x: auto; }

/* ---------- Sofort-Tooltip (app.js): [data-tip] + optional [data-tip-title], ohne die Browser-Verzoegerung ---------- */
.rh-tip { position: fixed; z-index: 2000; max-width: 320px; padding: 7px 10px; border-radius: 8px; background: var(--rh-pop); border: 1px solid var(--rh-pop-border); color: var(--rh-text); font-size: 12.5px; line-height: 1.45; white-space: pre-line; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); pointer-events: none; opacity: 0; transition: opacity .08s; }
.rh-tip.show { opacity: 1; }
.rh-tip b { display: block; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--rh-dim); margin-bottom: 2px; }

/* ---------- History ---------- */
a.rh-hist { text-decoration: none; }
.rh-hist-known { color: var(--rh-accent-3); background: rgba(var(--rh-accent-rgb), .18); }
.rh-hist-known:hover { color: var(--rh-head); background: rgba(var(--rh-accent-rgb), .32); }
.rh-search { display: flex; gap: 8px; max-width: 640px; margin: 0 0 18px; }
.rh-search .form-control { height: 40px; }
.rh-plain { color: inherit; text-decoration: none; }
.rh-plain:hover { color: var(--rh-head); }
.rh-hist-summary { color: var(--rh-muted); font-size: 13px; margin: -8px 0 16px; max-width: 80ch; }
.rh-hist-summary b { color: var(--rh-text); }
.rh-title-on { color: var(--rh-bright); }
.rh-txt-on { color: var(--rh-on); font-weight: 700; }
.rh-chips-wrap, .rh-members { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 18px; }
.rh-mate { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; background: var(--rh-chip); color: var(--rh-text); font-weight: 600; font-size: 13px; text-decoration: none; line-height: 1.5; }
.rh-mate:hover { background: var(--rh-chip-hover); color: var(--rh-head); }
.rh-mate b { color: var(--rh-accent-3); font-weight: 800; }
.rh-mate small { color: var(--rh-muted); font-size: 11px; font-weight: 500; }
.rh-note-static { padding: 8px 18px; font-size: 13px; color: var(--rh-text-2); background: var(--rh-panel-2); border-bottom: 1px solid var(--rh-border); white-space: pre-wrap; }
@media (max-width: 767.98px) {
  .rh-search { max-width: none; }
  .rh-chips-wrap, .rh-members { padding: 10px 14px; }
}
.rh-search .btn { flex: none; white-space: nowrap; }
.rh-members.rh-collapsed { max-height: 92px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
section.rh-open .rh-members.rh-collapsed { max-height: none; -webkit-mask-image: none; mask-image: none; }
.rh-expand { display: block; padding: 0 18px 12px; }
.rh-wrap-h { flex-wrap: wrap; row-gap: 6px; }
.rh-wrap-h .rh-gname { flex: 0 1 auto; white-space: normal; }

/* ---------- Tastatur-Fokus: ein gemeinsamer Ring im Akzent (Bootstraps Blau ist oben ueberall ersetzt) ---------- */
:focus-visible { outline: 2px solid var(--rh-accent-2); outline-offset: 2px; }
.rh-card button:focus-visible, .dropdown-menu :focus-visible { outline-offset: -2px; } /* .rh-card hat overflow:hidden */
.nav-link:focus-visible { box-shadow: 0 0 0 3px var(--rh-accent-soft); }

/* ---------- Toasts (app.js: rh.toast(text, { type, timeout, undo }); Server-Flash rendert foot.ejs als Toast) ---------- */
.rh-toasts { position: fixed; right: 20px; bottom: 20px; z-index: 1090; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; width: min(420px, calc(100vw - 40px)); pointer-events: none; }
.rh-toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 10px 8px 10px 12px; border: 1px solid var(--rh-pop-border); border-left: 3px solid var(--rh-accent-2); border-radius: 10px; background: var(--rh-pop); color: var(--rh-text); font-size: 13px; line-height: 1.45; box-shadow: 0 12px 32px rgba(0, 0, 0, .45); opacity: 0; transform: translateY(8px); transition: opacity .18s ease, transform .18s ease; }
.rh-toast.show { opacity: 1; transform: none; }
.rh-toast-ico { flex: none; margin-top: 3px; color: var(--rh-accent-2); }
.rh-toast-success { border-left-color: var(--rh-on-muted); }
.rh-toast-success .rh-toast-ico { color: var(--rh-on-muted); }
.rh-toast-danger { border-left-color: var(--rh-off); }
.rh-toast-danger .rh-toast-ico { color: var(--rh-off); }
.rh-toast-txt { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.rh-toast-undo { flex: none; margin: -2px 0; padding: 2px 8px; border: 0; border-radius: 6px; background: none; font: inherit; font-weight: 800; color: var(--rh-accent-3); cursor: pointer; }
.rh-toast-undo:hover { background: var(--rh-hover-2); color: var(--rh-head); }
.rh-toast-x { flex: none; display: grid; place-items: center; width: 24px; height: 24px; margin: -2px 0; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--rh-muted); cursor: pointer; }
.rh-toast-x:hover { background: var(--rh-hover-2); color: var(--rh-head); }
@media (max-width: 767.98px) { .rh-toasts { left: 12px; right: 12px; bottom: 76px; width: auto; } } /* ueber der Bottom-Toolbar */
@media (prefers-reduced-motion: reduce) { .rh-toast { transition: none; transform: none; } }

/* ---------- Bestaetigungs-Modal #rh-confirm (foot.ejs; app.js: data-confirm-Formulare und rh.confirm()) ---------- */
.rh-confirm .modal-dialog { max-width: 460px; }
.rh-confirm-text { margin: 0; white-space: pre-line; color: var(--rh-text); }
.rh-confirm-warn { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; padding: 9px 12px; border-radius: 8px; background: var(--rh-warn-soft); color: var(--rh-warn); font-size: 13px; font-weight: 600; line-height: 1.45; }
.rh-confirm-warn i { margin-top: 3px; }
.rh-confirm-req { margin-top: 16px; }
/* Monospace: in Manrope sieht "|" aus wie "I" (Servername "Rusty Moose |US Small|") -> sonst tippt man das Falsche */
.rh-confirm-req b { color: var(--rh-head); font-weight: 700; font-family: ui-monospace, Consolas, 'Cascadia Mono', monospace; font-size: 12.5px; padding: 1px 5px; border-radius: 4px; background: var(--rh-chip); }
.rh-confirm .modal-footer .btn { min-width: 96px; }

/* ---------- Einfache Seiten (Profil, Fehler) + Karten-Innenraum (Visual) ---------- */
.rh-pad { padding: 16px 18px 18px; }
.rh-narrow { max-width: 440px; }
.rh-card-b { padding: 14px 18px 16px; }
.rh-card-h .rh-sub { font-size: 12.5px; color: var(--rh-muted); }
.rh-chart { position: relative; height: 380px; }
.rh-swatch { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 3px; } /* Serienfarbe neben dem Namen (Visual "Per player") */
@media (max-width: 767.98px) {
  .rh-card-b { padding: 10px 8px 12px; }
  .rh-chart { height: 300px; }
  /* Admin & Co. am Handy: engere Zellen, Namen einzeilig gekuerzt, Aktionen rechts angeheftet -> Stift/Besen ohne Scrollen */
  .rh-table th, .rh-table td { padding-left: 8px; padding-right: 8px; }
  .rh-table th:first-child, .rh-table td:first-child, .rh-table tr > .d-none:first-child + * { padding-left: 14px; }
  .rh-table td.rh-strong { max-width: 38vw; overflow: hidden; text-overflow: ellipsis; }
  .rh-table td:has(> .rh-acts) { position: sticky; right: 0; background: var(--rh-panel); }
  .rh-table .rh-acts { opacity: 1; } /* kein Hover auf Touch */
}
/* Moose-Stats-Chips (partials/groups.ejs): Delta der letzten 24 h, Fragezeichen-Chip ohne/mit Klick (Kandidat uebernehmen) */
.rh-delta { color: var(--rh-on); font-weight: 700; margin-left: 3px; font-size: 11px; }
button.rh-moose-q { border: 0; font: inherit; cursor: pointer; } .rh-form.rh-inline { display: inline; }

/* ---------- Steam-Feed (27.09.2026): Freundschafts-Chips im Monitor, Steam-ID-Hinweis im Modal, Avatare, Filter-Tabs ---------- */
.rh-fr { text-decoration: none; cursor: pointer; }
.rh-fr.rh-fr-x { background: rgba(var(--rh-accent-rgb), .22); color: var(--rh-accent-3); }
/* Im Monitor alle Zaehler gleich gedaempft: die Akzent-Chips (bekannt, Freunde in anderen Gruppen) waren Bob zu hell (27.09.); der Tooltip erklaert weiter */
.rh-row .rh-hist-known, .rh-row .rh-fr-x { background: var(--rh-chip); color: var(--rh-muted); }
.rh-row .rh-hist-known:hover, .rh-row .rh-fr-x:hover { background: var(--rh-chip-hover); color: var(--rh-head); }
.rh-steam-hint { font-size: 12.5px; line-height: 1.6; margin-top: 6px; }
.rh-steam-hint .rh-chip { margin: 2px 4px 2px 0; }
.rh-steam-hint img { width: 18px; height: 18px; border-radius: 4px; vertical-align: -4px; margin-right: 4px; }
.rh-steam-hint .btn { padding: 1px 8px; font-size: 12px; margin-left: 4px; }
.rh-sav { width: 22px; height: 22px; border-radius: 5px; vertical-align: middle; background: var(--rh-chip); flex: none; }
.rh-sav-l { width: 30px; height: 30px; border-radius: 7px; margin-right: 8px; vertical-align: -8px; }
.rh-ext-ico { display: inline-flex; opacity: .7; }
.rh-ext-ico:hover { opacity: 1; }
.rh-frof { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.rh-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.rh-tabs a { font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 999px; background: var(--rh-chip); color: var(--rh-chip-text); text-decoration: none; }
.rh-tabs a:hover { background: var(--rh-chip-hover); color: var(--rh-head); }
.rh-tabs a.on { background: var(--rh-accent-soft); color: var(--rh-head); }
.rh-table tr.rh-added td { opacity: .55; }
.rh-former summary { cursor: pointer; color: var(--rh-text-2); font-size: 13px; padding: 10px 18px; list-style: none; }
.rh-former summary::-webkit-details-marker { display: none; }
.rh-former[open] summary { border-bottom: 1px solid var(--rh-border); }
.rh-addbtn { white-space: nowrap; }
.rh-frof-sm { margin: 4px 0 0 18px; }
