/* =====================================================================
   maxcomp · PLAN-B NET ZERO Konkurrenzanalyse
   Design-Tokens nach PLAN-B CI (Creme / Schwarz / Pastellgelb, Inter)
   ===================================================================== */
:root {
  color-scheme: light;
  --bg: #f3f0e8;
  --bg-2: #ebe7dc;
  --surface: #ffffff;
  --surface-2: #faf8f2;
  --ink: #0b0b0b;
  --ink-2: #55534e;
  --muted: #8b8983;
  --line: rgba(11, 11, 11, 0.10);
  --line-2: rgba(11, 11, 11, 0.06);
  --grid: #e4e1d8;
  --accent: #f5e86e;
  --accent-2: #e9d63f;
  --accent-ink: #c9a800;
  --accent-soft: #fbf6c9;
  --accent-wash: rgba(245, 232, 110, 0.35);
  --good: #006300;
  --good-soft: #e3f3e3;
  --bad: #c43b3b;
  --bad-soft: #fbe6e6;
  --warn: #b8860b;
  --term-bg: #121212;
  --term-ink: #e8e6df;
  --term-dim: #8f8d86;
  --term-accent: #f5e86e;
  --term-good: #7ee787;
  --term-bad: #ff7b72;
  --radius: 16px;
  --radius-s: 9px;
  --shadow: 0 1px 2px rgba(11, 11, 11, 0.04), 0 8px 28px rgba(11, 11, 11, 0.06);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --row-h: 46px;
}
/* Mandanten ohne PLAN-B-CI (Firmenprofil, Mandantenfähigkeit MP2): neutrale Grundfarben; die Akzentfarbe setzt js/tenant.js als Variablen am html-Element */
html[data-brand="neutral"] { --bg: #f4f4f1; --bg-2: #ebebe6; --surface-2: #f9f9f7; --ink-2: #52525b; --muted: #85858c; --grid: #e2e2dd; }
html[data-no-beat] #btn-neobeat { display: none; } /* Modul Puls (NEO BEAT) abgeschaltet (MP5) */
.int-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.int-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
@media (max-width: 720px) { .int-cols { grid-template-columns: minmax(0, 1fr); } }


* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  font-feature-settings: 'cv11', 'ss01';
}
body.terminal-open { padding-bottom: 46vh; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-weight: 400; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 30px; line-height: 1.15; }
h2 { font-size: 20px; line-height: 1.25; }
h3 { font-size: 15px; }
.num, .tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Eyebrow „[ LABEL ]“ ---------- */
.eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 8px;
}
.eyebrow::before { content: '[ '; color: var(--muted); }
.eyebrow::after { content: ' ]'; color: var(--muted); }

/* ---------- Layout ---------- */
.wrap { max-width: 1520px; margin: 0 auto; padding: 0 24px; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(243, 240, 232, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { height: 26px; width: auto; display: block; }
.brand .wordmark { font-weight: 600; letter-spacing: 0.02em; font-size: 15px; display: none; }
.brand.no-logo img { display: none; }
.brand.no-logo .wordmark { display: block; }
.brand-sep { width: 1px; height: 24px; background: var(--line); }
.brand-app { font-size: 13px; color: var(--ink-2); letter-spacing: 0.08em; text-transform: uppercase; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.hero { padding: 34px 0 18px; display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.hero .lead { max-width: 720px; color: var(--ink-2); margin-top: 8px; }
.hero-meta { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Pills / Badges / Buttons ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  font-size: 12px; color: var(--ink-2); white-space: nowrap;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.pill.live .dot { background: var(--good); }
.pill.demo .dot { background: var(--accent-2); }
.pill.err .dot { background: var(--bad); }
.pill.link { cursor: pointer; }
.pill.link:hover { border-color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--ink); background: var(--ink); color: #fff;
  font-size: 13px; font-weight: 500; line-height: 1; white-space: nowrap;
  transition: background .15s, color .15s, transform .1s;
}
.btn:hover { background: #262626; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--surface); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn.accent:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn.sm { padding: 6px 12px; font-size: 12px; }
.btn.icon { padding: 8px; width: 34px; height: 34px; justify-content: center; }
.btn:disabled { opacity: .45; cursor: default; }
.btn svg { width: 14px; height: 14px; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-h { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px 0; flex-wrap: wrap; }
.card-h .grow { flex: 1; min-width: 0; }
.card-h h2 { margin-top: 2px; }
.card-b { padding: 16px 20px 20px; }
.card-note { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ---------- Filter bar ---------- */
.filterbar {
  display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end;
  padding: 14px 18px; margin-bottom: 18px;
}
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field label, .field .lbl { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.field select, .field input[type=text], .field input[type=number], .field input[type=search] {
  height: 36px; padding: 0 12px; border-radius: var(--radius-s);
  border: 1px solid var(--line); background: var(--surface-2);
  min-width: 140px; outline: none;
}
.field input:focus, .field select:focus { border-color: var(--ink); background: #fff; }
.field.plz { position: relative; }
.field.plz input { min-width: 220px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); padding: 3px; }
.seg button {
  border: 0; background: transparent; padding: 5px 12px; border-radius: 999px;
  font-size: 12px; color: var(--ink-2); font-weight: 500;
}
.seg button.on { background: var(--ink); color: #fff; }
.seg button:hover:not(.on) { color: var(--ink); }
.autocomplete {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 20;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s);
  box-shadow: var(--shadow); max-height: 260px; overflow: auto; margin-top: 4px;
}
.autocomplete div { padding: 8px 12px; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; }
.autocomplete div:hover, .autocomplete div.sel { background: var(--accent-soft); }
.autocomplete .c { color: var(--muted); font-size: 12px; }
.autocomplete .n { color: var(--muted); font-size: 11px; }

/* ---------- KPI tiles ---------- */
/* Kennzahl-Reihe: Kachel mindestens --kpi-min breit; js/shell.js verteilt die Kacheln gleichmäßig auf die nötigen Zeilen (--kpi-cols, Klasse kpi-bal),
   z. B. 11 Kacheln bei Platz für 7 → 6 + 5 statt 7 + 4. Ohne Skript gilt die Auto-Verteilung darunter. */
.kpis { --kpi-min: 190px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(var(--kpi-min), 100%), 1fr)); gap: 12px; margin-bottom: 18px; }
.kpis.kpi-bal { grid-template-columns: repeat(var(--kpi-cols), minmax(0, 1fr)); }
@media (max-width: 720px) { .kpis { --kpi-min: 150px; } }
.kpi { padding: 14px 16px 12px; min-height: 96px; display: flex; flex-direction: column; }
.kpi .k { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.kpi .v { font-size: 25px; line-height: 1.1; margin-top: 6px; letter-spacing: -0.02em; white-space: nowrap; }
.kpi .u { font-size: 12px; color: var(--muted); margin-top: 2px; white-space: nowrap; }
.kpi .d { font-size: 12px; margin-top: auto; padding-top: 6px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.kpi .d.up { color: var(--good); }
.kpi .d.down { color: var(--bad); }
.kpi.planb { background: linear-gradient(135deg, var(--accent-soft), #fff 70%); border-color: var(--accent-2); }
.kpi svg.spark { width: 100%; height: 26px; margin-top: 4px; overflow: visible; }
/* Endpunkt der Sparkline: runder Punkt (Pixel, nicht gestreckt) mit dezentem Puls */
.kpi svg.spark .spark-pulse { transform-box: fill-box; transform-origin: center; opacity: 0; animation: spark-pulse 2.8s ease-out infinite; pointer-events: none; }
@keyframes spark-pulse { 0% { transform: scale(1); opacity: .32; } 65%, 100% { transform: scale(3.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .kpi svg.spark .spark-pulse { animation: none; } }
.kpi .v.sm { font-size: 18px; white-space: normal; line-height: 1.25; }

/* ---------- Main grid ---------- */
.main { display: grid; grid-template-columns: 350px minmax(0, 1fr); gap: 18px; align-items: start; margin-bottom: 18px; }
.main > * { min-width: 0; }
@media (max-width: 1100px) { .main { grid-template-columns: 1fr; } }
.config { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow: auto; }
body.terminal-open .config { max-height: calc(54vh - 92px); }
.config .card-b { padding-top: 6px; }
.cfg-group { border-top: 1px solid var(--line-2); padding: 12px 0 4px; }
.cfg-group:first-child { border-top: 0; }
.cfg-group h3 { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.cfg-group h3 .hint { margin-left: auto; font-size: 11px; color: var(--muted); letter-spacing: 0; text-transform: none; }
.ctl { display: grid; grid-template-columns: 1fr 88px; gap: 6px 10px; align-items: center; padding: 6px 0; }
.ctl .l { grid-column: 1; font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.ctl .l .u { color: var(--muted); font-size: 11px; }
.ctl input[type=number], .ctl input[type=text] {
  grid-column: 2; grid-row: 1; height: 30px; padding: 0 8px; border-radius: 7px;
  border: 1px solid var(--line); background: var(--surface-2); width: 100%; text-align: right;
  font-variant-numeric: tabular-nums;
}
.ctl input[type=text] { text-align: left; }
.ctl input:focus { border-color: var(--ink); background: #fff; outline: none; }
.ctl input[type=range] { grid-column: 1 / -1; width: 100%; margin: 0; accent-color: var(--ink); height: 22px; }
.ctl.wide input[type=text] { grid-column: 1 / -1; text-align: left; }
.ctl .flag { grid-column: 1 / -1; font-size: 11px; color: var(--warn); }
.switch { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; font-size: 13px; color: var(--ink-2); }
.switch input { accent-color: var(--ink); width: 16px; height: 16px; }
.presets { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0 8px; }
.presets button {
  border: 1px solid var(--line); background: var(--surface-2); border-radius: 999px;
  padding: 4px 10px; font-size: 12px; color: var(--ink-2);
}
.presets button:hover { border-color: var(--ink); color: var(--ink); }
.derived { background: var(--surface-2); border-radius: var(--radius-s); padding: 10px 12px; margin-top: 8px; font-size: 12px; }
.derived .row { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.derived .row.total { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 6px; font-weight: 600; font-size: 13px; }
.derived .row .v { font-variant-numeric: tabular-nums; }
.derived.margin .row .v.neg { color: var(--bad); font-weight: 600; }
.derived.margin .row .v.pos { color: var(--good); font-weight: 600; }
.target { display: grid; grid-template-columns: 1fr 88px; gap: 8px; align-items: center; margin-top: 6px; }
.target-out { font-size: 12px; color: var(--ink-2); margin-top: 6px; line-height: 1.5; }
.target-out b { color: var(--ink); }

/* ---------- Ranking table + player ---------- */
.ranking .card-h { align-items: center; flex-wrap: wrap; }
.ranking .search { height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); min-width: 200px; outline: none; }
.ranking .search:focus { border-color: var(--ink); background: #fff; }
.player { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; width: 100%; padding: 12px 20px 0; }
.player .frame-label { font-size: 13px; min-width: 200px; }
.player .frame-label b { font-weight: 600; }
.player .scrub { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 4px; }
.player .scrub input[type=range] { width: 100%; accent-color: var(--ink); margin: 0; }
.player .ticks { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); }
.player .ticks span { position: relative; white-space: nowrap; }
.player .speed select { height: 30px; border-radius: 7px; border: 1px solid var(--line); background: var(--surface-2); padding: 0 8px; font-size: 12px; }
.frame-badges { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 20px 0; }
.frame-badge {
  font-size: 11px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--ink-2); cursor: pointer;
}
.frame-badge.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.frame-badge.running { border-style: dashed; }
.frame-badge:hover:not(.on) { border-color: var(--ink); }

.tbl-wrap { overflow: auto; margin-top: 12px; border-top: 1px solid var(--line); max-height: 72vh; }
.tbl { position: relative; min-width: 1040px; }
.tbl .thead, .tbl .row {
  display: grid;
  grid-template-columns: 44px 40px minmax(180px, 1.4fr) 84px 72px 78px 72px 70px 62px 64px 36px 62px 46px;
  align-items: center; gap: 0 6px; padding: 0 20px;
}
.tbl .thead { height: 40px; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 3; }
.tbl .thead > div { cursor: pointer; user-select: none; display: flex; align-items: center; gap: 4px; }
.tbl .thead > div.right, .tbl .row > div.right { justify-content: flex-end; text-align: right; }
.tbl .thead > div.sorted { color: var(--ink); font-weight: 600; }
.tbl .thead > div.sorted::after { content: '▾'; font-size: 10px; }
.tbl .thead > div.sorted.asc::after { content: '▴'; }
.tbl .body { position: relative; }
.tbl .row {
  position: absolute; left: 0; right: 0; height: var(--row-h);
  border-bottom: 1px solid var(--line-2);
  transition: transform var(--move-ms, 900ms) cubic-bezier(.2,.8,.2,1), opacity .5s;
  will-change: transform; background: var(--surface); font-size: 13px;
}
.tbl .row:hover { background: var(--surface-2); }
.tbl .row.planb { background: var(--accent-soft); border-bottom-color: var(--accent-2); z-index: 2; font-weight: 500; }
.tbl .row.planb::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent-2); }
.tbl .row.planb.hist { background: #fff; }
.tbl .row.planb.hist::before { background: var(--ink); }
.tbl .row.gv { color: var(--ink-2); }
.tbl .row.cmp0 { box-shadow: inset 4px 0 0 #2a78d6; }
.tbl .row.cmp1 { box-shadow: inset 4px 0 0 #eb6834; }
.tbl .row.enter { opacity: 0; }
.tbl .row > div { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tbl .row .pos { font-size: 15px; font-variant-numeric: tabular-nums; font-weight: 500; }
.tbl .row .delta { font-size: 11px; font-variant-numeric: tabular-nums; color: var(--muted); }
.tbl .row .delta.up { color: var(--good); }
.tbl .row .delta.down { color: var(--bad); }
.tbl .row .delta.new { color: var(--accent-ink); }
.tbl .row .prov { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tbl .row .prov img { width: 26px; height: 26px; border-radius: 6px; object-fit: contain; background: #fff; border: 1px solid var(--line-2); flex: none; }
.tbl .row .prov .ini { width: 26px; height: 26px; border-radius: 6px; background: var(--bg-2); color: var(--ink-2); font-size: 10px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex: none; }
.tbl .row .prov .txt { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.tbl .row .prov .line { display: flex; align-items: center; min-width: 0; }
.tbl .row .prov .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tbl .row .prov .t { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.tbl .row .prov .tag { flex: none; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; padding: 1px 5px; border-radius: 4px; background: var(--ink); color: #fff; margin-left: 6px; }
.tbl .row .prov .tag.hist { background: transparent; border: 1px solid var(--ink); color: var(--ink); }
.tbl .row .sorted { font-weight: 600; }
.tbl .row .eco { text-align: center; }
.tbl .row .eco .leaf { color: var(--good); }
.tbl .row .metric { font-variant-numeric: tabular-nums; }
.tbl .row .metric small { color: var(--muted); font-size: 10px; margin-left: 2px; }
.tbl .row .metric.na { color: var(--muted); }
.tbl .row .link { text-decoration: underline dotted; text-underline-offset: 3px; cursor: pointer; color: var(--ink-2); font-size: 12px; }
.tbl .row .link:hover { color: var(--ink); }
.tbl .empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.tbl-foot { display: flex; align-items: center; gap: 12px; padding: 10px 20px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); flex-wrap: wrap; }
.tbl-foot .grow { flex: 1; }
.planb-sticky {
  position: sticky; bottom: 0; z-index: 4; display: none;
  background: var(--accent-soft); border-top: 1px solid var(--accent-2);
  padding: 8px 20px; font-size: 12px; cursor: pointer;
}
.planb-sticky.show { display: flex; align-items: center; gap: 12px; }
.planb-sticky b { font-size: 15px; }

/* ---------- Charts ---------- */
.charts { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; margin-bottom: 30px; }
.charts .card { grid-column: span 6; min-width: 0; }
.charts .card.w4 { grid-column: span 4; }
.charts .card.w8 { grid-column: span 8; }
.charts .card.w12 { grid-column: span 12; }
@media (max-width: 1100px) { .charts .card, .charts .card.w4, .charts .card.w8 { grid-column: span 12; } }
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .axis text { font-size: 10.5px; fill: var(--muted); font-family: var(--font); }
.chart .axis line, .chart .axis path { stroke: var(--grid); }
.chart .grid line { stroke: var(--grid); stroke-dasharray: 2 3; }
.chart .baseline { stroke: #c3c2b7; }
.chart .lbl { font-size: 11px; fill: var(--ink-2); font-family: var(--font); }
.chart .lbl.strong { fill: var(--ink); font-weight: 500; }
.chart .bar { fill: var(--ink); }
.chart .bar.dim { fill: #cfcdc4; }
.chart .bar.planb { fill: var(--accent); stroke: var(--ink); stroke-width: 1.2; }
.chart .bar.hover { opacity: .75; }
.chart .line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .line.dim { stroke: #b9b7ae; stroke-width: 1.5; }
.chart .line.accent { stroke: var(--accent-ink); }
.chart .area { fill: rgba(11, 11, 11, 0.06); }
.chart .band { fill: rgba(11, 11, 11, 0.08); }
.chart .dot { fill: var(--ink); stroke: #fff; stroke-width: 2; }
.chart .dot.planb { fill: var(--accent); stroke: var(--ink); stroke-width: 1.5; }
.chart .crosshair { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; }
.chart .marker { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 4 3; }
.chart .hit { fill: transparent; }
.chart .ref { stroke: var(--bad); stroke-width: 1; stroke-dasharray: 3 3; }
.tooltip {
  position: fixed; z-index: 95; pointer-events: none; display: none;               /* über Vollbild-Popups (80) und Info (85) */
  background: var(--ink); color: #fff; border-radius: 10px; padding: 8px 11px;
  font-size: 12px; min-width: 120px; box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
}
.tooltip .tt-h { color: #bdbbb2; margin-bottom: 4px; font-size: 11px; }
.tooltip .tt-r { display: flex; align-items: center; gap: 8px; padding: 1px 0; }
.tooltip .tt-r .k { flex: 1; color: #d8d6cc; }
.tooltip .tt-r .v { font-weight: 600; font-variant-numeric: tabular-nums; }
.tooltip .tt-r .sw { width: 12px; height: 2px; background: #fff; border-radius: 1px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--ink-2); margin-top: 10px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; width: 14px; height: 3px; background: var(--ink); border-radius: 2px; }
.legend i.dim { background: #b9b7ae; }
.legend i.accent { background: var(--accent); border: 1px solid var(--ink); height: 8px; border-radius: 2px; }
.legend i.ink { background: var(--ink); height: 8px; border-radius: 2px; }
.legend i.band { background: rgba(11,11,11,.12); height: 8px; border-radius: 2px; }
.chart-tabs { display: inline-flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.chart-tabs button { border: 1px solid var(--line); background: var(--surface-2); border-radius: 999px; padding: 3px 10px; font-size: 11px; color: var(--ink-2); }
.chart-tabs button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.spot-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.spot-tiles .st { background: var(--surface-2); border-radius: var(--radius-s); padding: 8px 10px; }
.spot-tiles .st .k { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.spot-tiles .st .v { font-size: 17px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.spot-tiles .st .v small { font-size: 11px; color: var(--muted); }
.mini-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.mini-table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.mini-table td { padding: 6px 8px; border-bottom: 1px solid var(--line-2); font-variant-numeric: tabular-nums; }
.mini-table td.r, .mini-table th.r { text-align: right; }
.mini-table tr.planb td { background: var(--accent-soft); font-weight: 600; }

/* ---------- Marktdynamik (Puls, Newcomer, Verschwunden) ---------- */
.chart .lbl.muted { fill: var(--muted); font-size: 10px; }
.chart .slot-now { fill: rgba(11, 11, 11, 0.045); }
.chart .pulse-base { stroke: #d6d4cb; stroke-width: 1.5; }
.chart .pulse-base.past { stroke: var(--ink); }
.chart .beat { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .beat.future { stroke: #c9c7be; }
.chart .beat.prelim { stroke-dasharray: 4 3; }
.chart .beat.now { stroke-width: 2.6; }
.chart .beat.draw { animation: beat-draw .7s cubic-bezier(.3,.7,.2,1) forwards; }
@keyframes beat-draw { to { stroke-dashoffset: 0; } }
.chart .beat.pop { animation: beat-pop .6s cubic-bezier(.3,.7,.2,1) both; }
@keyframes beat-pop { 0% { transform: scaleY(0); } 60% { transform: scaleY(1.18); } 100% { transform: scaleY(1); } }
.chart .peak { fill: var(--ink); stroke: #fff; stroke-width: 1.5; }
.chart .peak.down { fill: var(--muted); }
.chart .peak.future { fill: #c9c7be; }
.chart .ping { fill: none; stroke: var(--ink); stroke-width: 1.5; animation: ping .9s ease-out .45s both; }
@keyframes ping { from { r: 3px; opacity: .9; } to { r: 16px; opacity: 0; } }
.pulse-ticker { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; min-height: 24px; }
.pulse-ticker .tk { font-size: 12px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.pulse-ticker .tk.in { border-color: var(--ink); color: var(--ink); background: #fff; }
.pulse-ticker .tk.in.new { background: var(--ink); color: #fff; }
.pulse-ticker .tk.out { color: var(--muted); }
.pulse-ticker .tk.more { border-style: dashed; }
.pulse-ticker .tk.flash { animation: tk-in .45s ease-out both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes tk-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.flux-list { overflow-x: auto; }
.flux-list .mini-table td { white-space: nowrap; }
.flux-list .mini-table td.name { white-space: normal; min-width: 160px; }
.flux-list .mini-table td.name small { display: block; color: var(--muted); font-size: 11px; }
.flux-list .mini-table tr.click { cursor: pointer; }
.flux-list .mini-table tr.click:hover td { background: var(--surface-2); }
.flux-list .mini-table tr.cmp0 td:first-child { box-shadow: inset 3px 0 0 #2a78d6; }
.flux-list .mini-table tr.cmp1 td:first-child { box-shadow: inset 3px 0 0 #eb6834; }
.flux-list .empty { color: var(--muted); font-size: 13px; padding: 8px 0; }
.flux-list .more { margin-top: 10px; }
.fx-badge { display: inline-block; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; padding: 1px 6px; border-radius: 4px; border: 1px solid var(--ink); color: var(--ink); }
.fx-badge.new { background: var(--ink); color: #fff; }
.fx-badge.gone { background: var(--muted); border-color: var(--muted); color: #fff; }
.fx-badge.shrink, .fx-badge.first_outside { border-color: var(--muted); color: var(--ink-2); }

/* ---------- Charts der Unternehmens-Ansichten (Schritt 5a) ---------- */
.chart .stack-area { stroke: none; }
.chart .stack-edge { fill: none; stroke: #fff; stroke-width: 2; }
.chart .stack-col { stroke: none; }
.chart .tile { stroke: #fff; stroke-width: 2; }
.chart .tile-abbr { font-size: 13px; font-weight: 600; fill: var(--ink); font-family: var(--font); }
.chart .tile-val { font-size: 10.5px; fill: var(--ink-2); font-family: var(--font); font-variant-numeric: tabular-nums; }
.chart .tile-abbr.inv, .chart .tile-val.inv { fill: #fff; }
.legend.ramp { align-items: center; gap: 8px; }
.legend.ramp i { width: 120px; height: 8px; border-radius: 4px; }
.race { position: relative; }
.race-row { position: absolute; left: 0; right: 0; display: grid; grid-template-columns: minmax(90px, 34%) 1fr; align-items: center; gap: 10px;
  transition: transform .6s cubic-bezier(.2,.8,.2,1), opacity .4s; font-size: 12.5px; }
.race-row.enter { opacity: 0; }
.race-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; color: var(--ink-2); }
.race-t { display: flex; align-items: center; gap: 8px; min-width: 0; }
.race-t i { display: block; height: 18px; border-radius: 0 4px 4px 0; transition: width .6s cubic-bezier(.2,.8,.2,1); min-width: 2px; }
.race-t b { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chart .wf.total { fill: var(--ink); }
.chart .wf.delta { fill: #b0aea6; }
.chart .wf.pos { fill: var(--good); }
.chart .wf.neg { fill: var(--bad); }
.chart .wf-link { stroke: #b0aea6; stroke-dasharray: 2 2; }
.chart .hm { stroke: none; }
.chart .bubble { fill-opacity: .82; stroke: #fff; stroke-width: 2; }
.assump-sum { font-size: 12px; color: var(--ink-2); line-height: 1.6; }
.assump-sum b { font-weight: 600; color: var(--ink); }
.assump-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 20px; margin-top: 14px; }
.assump-form h4 { grid-column: 1 / -1; margin: 10px 0 2px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.assump-form label { display: grid; grid-template-columns: 1fr 92px; gap: 8px; align-items: center; font-size: 12.5px; color: var(--ink-2); }
.assump-form label small { display: block; color: var(--muted); font-size: 10.5px; }
.assump-form input[type=number] { height: 28px; padding: 0 8px; border-radius: 7px; border: 1px solid var(--line); background: var(--surface-2); text-align: right; font-variant-numeric: tabular-nums; width: 100%; }
.assump-form input[type=number]:focus { border-color: var(--ink); background: #fff; outline: none; }
.assump-form input.changed { border-color: var(--accent-ink); background: var(--accent-soft); }
.assump-form .chk { grid-template-columns: 1fr auto; }
.assump-form input[type=checkbox] { accent-color: var(--ink); width: 16px; height: 16px; }
.score td.neg { color: var(--bad); }
.score td.pos { color: var(--good); }
.score tr.click { cursor: pointer; }
.score tr.click:hover td { background: var(--surface-2); }
.score tr.sel td { background: var(--accent-soft); }
.co-content .kpi.neg .v { color: var(--bad); }
.co-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.co-grid > .card { grid-column: span 12; min-width: 0; }
.co-grid > .card.w4 { grid-column: span 4; }
.co-grid > .card.w6 { grid-column: span 6; }
.co-grid > .card.w8 { grid-column: span 8; }
@media (max-width: 1100px) { .co-grid > .card.w4, .co-grid > .card.w6, .co-grid > .card.w8 { grid-column: span 12; } }
.card-note.stale::after { content: ' · aktualisiere …'; color: var(--accent-ink); }
.co-content .kpi .u { white-space: normal; }
.beat { display: grid; gap: 18px; transition: opacity .2s; } /* KPI-Reihe und Karten-Raster mit demselben Abstand wie zwischen den Karten */
.beat > * { min-width: 0; }
.beat > .kpis:empty { display: none; }
/* Bereich lädt neu (Filter, Stichtag, Annahmen): bisherige Werte abgeblendet, darüber deutlich „Daten werden aktualisiert …“ */
.beat.loading { position: relative; pointer-events: none; }
.beat.loading > * { opacity: .4; transition: opacity .2s; }
.beat.loading::before { content: 'Daten werden aktualisiert …'; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 6;
  padding: 7px 14px 7px 30px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12.5px; white-space: nowrap; box-shadow: var(--shadow);
  background-image: radial-gradient(circle at 15px 50%, var(--accent) 0 4px, transparent 5px); animation: busy-pill 1.1s ease-in-out infinite; }
@keyframes busy-pill { 50% { background-image: radial-gradient(circle at 15px 50%, var(--accent-2) 0 2px, transparent 3px); } }
@media (prefers-reduced-motion: reduce) { .beat.loading::before { animation: none; } }
/* Kennzahl-Kacheln, bevor die Daten da sind (js/loader.js animiert sie wie Karten) */
.kpi.kpi-ph { min-height: 92px; }
.score th.sort { cursor: pointer; user-select: none; }
.score th.sort.on { color: var(--ink); }
.score th.sort:hover { color: var(--ink); }
.score th.sort:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; border-radius: 4px; }
.score th .sort-ind { white-space: nowrap; }
.score td .sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }
.score tr.total td { font-weight: 600; border-top: 1px solid var(--line); }
.score td.na { color: var(--muted); }

/* ---------- App-Rahmen: Navigation, Ansichten, Zeitleiste, Filter ---------- */
.mainnav { display: flex; gap: 2px; align-items: center; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.mainnav::-webkit-scrollbar { display: none; }
.mainnav a { padding: 7px 13px; border-radius: 999px; text-decoration: none; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.mainnav a:hover { color: var(--ink); background: var(--surface); }
.mainnav a.on { background: var(--ink); color: #fff; }
.mainnav a:focus-visible, .subnav a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.view { display: none; }
.view.on { display: block; }
.co-sticky { position: sticky; top: 64px; z-index: 20; background: var(--bg); padding: 6px 0 2px; margin-bottom: 6px; }
.subnav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.subnav a { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 14px; font-size: 13px; text-decoration: none; color: var(--ink-2); }
.subnav a:hover { border-color: var(--ink); color: var(--ink); }
.subnav a.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.timebar { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; padding: 12px 18px; }
.timebar .tb-btns { display: flex; gap: 6px; }
.timebar .tb-label { min-width: 210px; display: flex; flex-direction: column; line-height: 1.3; }
.timebar .tb-label b { font-size: 15px; font-weight: 600; }
.timebar .tb-label span { font-size: 12px; color: var(--muted); }
.timebar .tb-scrub { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 4px; }
.timebar .tb-scrub input[type=range] { width: 100%; margin: 0; accent-color: var(--ink); }
.timebar .tb-scrub .ticks { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); }
.timebar select { height: 30px; border-radius: 7px; border: 1px solid var(--line); background: var(--surface-2); padding: 0 8px; font-size: 12px; }
.filterbar .field.reset { margin-left: auto; }
.ms { position: relative; }
.ms-btn { height: 36px; padding: 0 12px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--surface-2); display: inline-flex; align-items: center; gap: 8px; min-width: 150px; max-width: 240px; font-size: 13px; }
.ms-btn.on { border-color: var(--ink); background: #fff; font-weight: 500; }
.ms-btn .ms-l { display: none; }
.ms-btn .ms-v { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-btn .ms-caret { color: var(--muted); font-size: 11px; }
.ms-panel { position: absolute; top: calc(100% + 4px); left: 0; z-index: 25; width: 310px; max-width: calc(100vw - 32px); max-height: 360px; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s); box-shadow: var(--shadow); }
.ms-head { display: flex; gap: 6px; padding: 8px; border-bottom: 1px solid var(--line-2); }
.ms-head input { flex: 1; min-width: 0; height: 30px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--line); background: var(--surface-2); outline: none; }
.ms-head input:focus { border-color: var(--ink); background: #fff; }
.ms-list { overflow: auto; padding: 4px 0; }
.ms-opt { display: flex; align-items: center; gap: 8px; padding: 5px 12px; cursor: pointer; font-size: 13px; }
.ms-opt:hover { background: var(--accent-soft); }
.ms-opt input { accent-color: var(--ink); }
.ms-opt .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-opt .hint { font-size: 10px; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; white-space: nowrap; }
.ms-opt small { color: var(--muted); font-variant-numeric: tabular-nums; }
.co-content { display: grid; gap: 18px; margin-bottom: 30px; }
.co-content > * { min-width: 0; } /* breite Tabellen scrollen in der Karte statt die Seite zu verbreitern */
.co-content .kpis { margin-bottom: 0; }
.notice .card-b b { font-size: 15px; font-weight: 600; }
.notice .card-b p { margin: 6px 0 0; color: var(--ink-2); }
.notice.err { border-color: var(--bad); }
.card.plan { background: var(--surface-2); box-shadow: none; border-style: dashed; }
.plan-list { margin: 0; padding-left: 18px; color: var(--ink-2); }
.plan-list li { padding: 3px 0; }
@media (max-width: 720px) {
  .mainnav { order: 3; width: 100%; }
  .co-sticky { position: static; }
  .timebar .tb-label { min-width: 0; }
  .filterbar .field.reset { margin-left: 0; }
}

/* ---------- Footer ---------- */
footer { padding: 24px 0 40px; color: var(--muted); font-size: 12px; display: flex; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); }
footer .grow { flex: 1; }

/* ---------- Terminal ---------- */
.terminal {
  position: fixed; left: 0; right: 0; bottom: 0; height: 46vh; z-index: 50;
  background: var(--term-bg); color: var(--term-ink);
  font-family: var(--mono); font-size: 12px;
  visibility: hidden;
  transform: translateY(100%); transition: transform .25s ease, visibility 0s linear .25s;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, .25);
  display: flex; flex-direction: column;
}
.terminal.open { transform: translateY(0); visibility: visible; transition: transform .25s ease, visibility 0s; }
.term-bar { display: flex; align-items: center; gap: 4px; padding: 8px 14px; border-bottom: 1px solid #2a2a2a; background: #171717; }
.term-bar .title { color: var(--term-dim); margin-right: 12px; letter-spacing: .08em; text-transform: uppercase; font-size: 11px; }
.term-bar .title b { color: var(--term-accent); font-weight: 600; }
.term-bar button { background: transparent; border: 1px solid transparent; color: var(--term-dim); padding: 4px 10px; border-radius: 6px; font-family: var(--mono); font-size: 12px; }
.term-bar button.on { color: var(--term-ink); border-color: #3a3a3a; background: #222; }
.term-bar button:hover { color: var(--term-ink); }
.term-bar .grow { flex: 1; }
.term-bar .close { font-size: 16px; line-height: 1; }
.term-body { flex: 1; overflow: auto; padding: 12px 16px; white-space: pre-wrap; word-break: break-word; }
.term-body .ln { display: block; padding: 1px 0; }
.term-body .k { color: var(--term-accent); }
.term-body .g { color: var(--term-good); }
.term-body .r { color: var(--term-bad); }
.term-body .d { color: var(--term-dim); }
.term-body .s { color: #a5d6ff; }
.term-body a { color: #a5d6ff; }
.term-body table { border-collapse: collapse; margin: 6px 0 10px; }
.term-body th, .term-body td { text-align: left; padding: 2px 14px 2px 0; border-bottom: 1px solid #262626; white-space: nowrap; }
.term-body th { color: var(--term-dim); font-weight: 400; }
.term-body td.n { text-align: right; }
.term-body .clickable { cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.term-body .clickable:hover { color: var(--term-accent); }
.term-body .prompt { color: var(--term-good); }
.term-body .prompt::before { content: '$ '; }

/* ---------- Loading / toast ---------- */
/* Ladebalken unter der Kopfleiste – nur über die ID (die Klasse „loading“ setzen auch Ansichten auf ihre Bereiche, 21.10.2026):
   .on = Markt lädt (js/app.js), .net = eine Datenanfrage läuft (js/loader.js) */
#loading { position: fixed; top: 64px; left: 0; right: 0; height: 3px; background: var(--accent-2); z-index: 40; transform-origin: left; animation: load 1.2s ease-in-out infinite; display: none; pointer-events: none; }
#loading.on, #loading.net { display: block; }
@keyframes load { 0% { transform: scaleX(0); } 50% { transform: scaleX(.7); } 100% { transform: scaleX(1); opacity: 0; } }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 13px; z-index: 80; display: none; box-shadow: var(--shadow); }
.toast.on { display: block; }
.toast.err { background: var(--bad); }
body.terminal-open .toast { bottom: calc(46vh + 16px); }

@media (prefers-reduced-motion: reduce) {
  .tbl .row { transition: none; }
  .terminal { transition: none; }
  .chart .beat.draw { animation: none; stroke-dashoffset: 0 !important; }
  .chart .beat.pop { animation: none; }
  .chart .ping, .pulse-ticker .tk.flash { animation: none; }
  .chart .ping { display: none; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .topbar-right { margin-left: 0; width: 100%; flex-wrap: wrap; }
  .brand-app, .brand-sep { display: none; }
  .config { position: static; max-height: none; }
  h1 { font-size: 24px; }
  .hero { padding-top: 22px; }
  .spot-tiles { grid-template-columns: repeat(2, 1fr); }
  .tbl .thead, .tbl .row { padding: 0 12px; }
}
@media print {
  .topbar, .terminal, .config, .player, .modal-bg, .toast { display: none !important; }
  body { background: #fff; }
}

/* ---------- Upload (Ansicht Daten, Schritt 4) ---------- */
.card.up { margin-bottom: 18px; }
.co-content > .card.up { margin-bottom: 0; }        /* in „Daten“ regelt der Rasterabstand (18 px) */
.up-head-r { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.up-conn { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.up-conn.on { color: var(--good); }
.up-drop { border: 1.5px dashed rgba(11, 11, 11, .22); border-radius: var(--radius-s); background: var(--surface-2); padding: 18px; text-align: center; cursor: pointer; display: grid; gap: 4px; transition: background .15s, border-color .15s; }
.up-drop b { font-weight: 500; font-size: 14px; }
.up-drop > span { font-size: 12px; color: var(--ink-2); }
.up-drop:hover, .up-drop:focus-visible, .card.up.drag .up-drop { background: var(--accent-soft); border-color: var(--accent-ink); outline: none; }
.up-drop.off { cursor: default; opacity: .6; pointer-events: none; }
.up-formats { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-top: 8px; }
.up-formats span { display: inline-flex; gap: 6px; align-items: baseline; font-size: 11.5px; }
.up-formats i { font-style: normal; font-weight: 500; }
.up-formats small { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.up-list { display: grid; gap: 12px; margin-top: 14px; }
.up-list:empty { display: none; }
.up-job { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 12px 14px; background: var(--surface); min-width: 0; }
.up-job[data-state="done"] { background: var(--surface-2); }
.up-jh { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.up-kind { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 4px; background: var(--ink); color: #fff; }
.up-name { font-weight: 500; overflow-wrap: anywhere; min-width: 0; }
.up-size { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.up-ref { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-2); }
.up-date { font: inherit; font-family: var(--mono); font-size: 11.5px; padding: 3px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); }
.up-date:disabled { opacity: .6; }
.up-pill { margin-left: auto; font-family: var(--mono); font-size: 11px; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.up-pill.run { border-color: var(--ink); color: var(--ink); }
.up-pill.ok { background: var(--good-soft); border-color: transparent; color: var(--good); }
.up-pill.err { background: var(--bad-soft); border-color: transparent; color: var(--bad); }
.up-pill.warn { background: var(--accent-soft); border-color: transparent; color: #7a6400; }
.up-act { display: inline-flex; gap: 6px; }
.up-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 10px 0 8px; padding: 0; font-size: 11.5px; color: var(--muted); }
.up-steps li { display: inline-flex; align-items: center; gap: 6px; }
.up-steps li i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid #b0aea6; background: transparent; }
.up-steps li.done { color: var(--ink-2); }
.up-steps li.done i { background: var(--ink); border-color: var(--ink); }
.up-steps li.now { color: var(--ink); font-weight: 500; }
.up-steps li.now i { background: var(--accent); border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-wash); }
.up-steps li.err { color: var(--bad); font-weight: 500; }
.up-steps li.err i { background: var(--bad); border-color: var(--bad); }
.up-bar { height: 6px; border-radius: 99px; background: var(--grid); overflow: hidden; position: relative; }
.up-bar i { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 99px; transition: width .35s linear; }
.up-bar.err i { background: var(--bad); }
.up-bar.ind i { width: 30% !important; position: absolute; animation: up-ind 1.2s ease-in-out infinite; }
@keyframes up-ind { from { left: -30%; } to { left: 100%; } }
.up-stats { font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); margin-top: 6px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; min-height: 1.4em; }
.up-detail:not(:empty) { margin-top: 10px; display: grid; gap: 8px; }
.up-note { font-size: 12.5px; padding: 8px 10px; border-radius: 7px; background: var(--surface-2); border-left: 3px solid var(--line); }
.up-note.warn { background: var(--accent-soft); border-left-color: var(--accent-ink); }
.up-note.err { background: var(--bad-soft); border-left-color: var(--bad); color: #7d1f1f; }
.up-note.ok { background: var(--good-soft); border-left-color: var(--good); }
.up-note a { color: inherit; font-weight: 500; }
.up-pv { border-top: 1px solid var(--line-2); padding-top: 10px; display: grid; gap: 8px; min-width: 0; }
.up-pv-h { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.up-facts { display: grid; grid-template-columns: minmax(150px, max-content) 1fr; gap: 4px 16px; margin: 0; font-size: 12.5px; }
.up-facts dt { color: var(--ink-2); }
.up-facts dd { margin: 0; font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; }
.up-facts dd small { display: block; color: var(--muted); font-size: 11px; }
.up-extras { display: grid; gap: 4px; }
.up-extras summary { cursor: pointer; font-size: 12px; color: var(--ink-2); padding: 3px 0; }
.up-extras details[open] summary { color: var(--ink); }
.up-extras .mini-table { margin: 4px 0 8px; }
.up-rates td { white-space: nowrap; }
.up-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.up-run { flex: 1 1 260px; min-width: 0; display: grid; gap: 6px; }
.up-run-t { font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.up-run-t.err { color: var(--bad); }
.up-run-t.ok { color: var(--good); }
.up-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.up-auto { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); }
.up-auto input { accent-color: var(--ink); }
.up-log { margin-top: 14px; }
.up-log summary { cursor: pointer; font-size: 12px; color: var(--ink-2); }
.up-term { margin-top: 8px; background: var(--term-bg); color: var(--term-ink); font-family: var(--mono); font-size: 11.5px; line-height: 1.55; border-radius: var(--radius-s); padding: 10px 12px; max-height: 240px; overflow: auto; }
.up-term:empty::before { content: 'Noch keine Ereignisse.'; color: var(--term-dim); }
.up-term .ln { display: grid; grid-template-columns: 92px 150px 1fr; gap: 10px; }
.up-term .t { color: var(--term-dim); }
.up-term .w { color: var(--term-accent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-term .x { overflow-wrap: anywhere; }
.up-term .ok .x { color: var(--term-good); }
.up-term .warn .x { color: var(--term-accent); }
.up-term .error .x { color: var(--term-bad); }
@media (max-width: 640px) {
  .up-pill { margin-left: 0; }
  .up-facts { grid-template-columns: 1fr; }
  .up-facts dt { margin-top: 4px; }
  .up-term .ln { grid-template-columns: 1fr; gap: 0; }
  .up-term .w { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { .up-bar.ind i { animation: none; width: 100% !important; opacity: .35; } .up-bar i { transition: none; } }
.card.up [hidden] { display: none !important; }
details.up-pv summary { cursor: pointer; }
.chart .range { fill: #9ec5f4; }
.chart .range-mid { fill: #0d366b; stroke: #fff; stroke-width: 2; }
.co-grid > .card[hidden] { display: none; }
.bo-checks { display: grid; gap: 4px; }
.bo-group { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 8px 0 2px; }
.bo-group:first-child { margin-top: 0; }
.bo-case { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: start; text-align: left; font: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; cursor: pointer; color: var(--ink); }
.bo-case:hover { background: var(--surface-2); }
.bo-case.on { border-color: var(--ink); background: var(--accent-soft); }
.bo-case.zero { cursor: default; opacity: .55; }
.bo-case .n { font-family: var(--mono); font-size: 14px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.bo-case.err .n { color: var(--bad); }
.bo-case.warn .n { color: #7a6400; }
.bo-case .t b { display: block; font-weight: 500; font-size: 12.5px; }
.bo-case .t small { display: block; font-size: 11px; color: var(--ink-2); line-height: 1.4; }
.bo-foot { font-size: 11.5px; margin-top: 6px; }
.bo-cases-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 12px; }
.bo-cases td { white-space: nowrap; }
.bo-cases td.mono { font-family: var(--mono); font-size: 11.5px; }
.err-box { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }

/* ---------- NEO BEAT (Schritt 6): EKG-Streifen unter der Navigation ---------- */
.btn.neo { gap: 6px; }
.btn.neo svg { width: 15px; height: 15px; }
.btn.neo.on { background: var(--accent); border-color: var(--accent-2); color: var(--ink); }
.neobeat { background: #0e0e0e; color: #e8e6df; border-radius: var(--radius); padding: 10px 14px 8px; margin: 2px 0 10px; box-shadow: var(--shadow); }
.neobeat[hidden] { display: none; }
.nb-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-family: var(--mono); font-size: 11.5px; }
.nb-logo { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; letter-spacing: .16em; color: var(--accent); }
.nb-logo i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(245, 232, 110, .6); }
.neobeat.playing .nb-logo i { animation: nb-pulse .9s ease-out infinite; }
@keyframes nb-pulse { 0% { box-shadow: 0 0 0 0 rgba(245, 232, 110, .65); } 100% { box-shadow: 0 0 0 9px rgba(245, 232, 110, 0); } }
.nb-date { color: #fff; }
.nb-sub { color: #9a9890; overflow-wrap: anywhere; }
.nb-ctl { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.nb-ctl button, .nb-ctl select { font: inherit; font-size: 11px; color: #e8e6df; background: transparent; border: 1px solid rgba(255, 255, 255, .2); border-radius: 6px; padding: 3px 8px; cursor: pointer; }
.nb-ctl select option { color: #0b0b0b; }
.nb-ctl button:hover, .nb-ctl select:hover { border-color: rgba(255, 255, 255, .45); }
.nb-ctl .nb-play.on, .nb-ctl .nb-sound.on { background: var(--accent); color: #0b0b0b; border-color: var(--accent); }
.nb-ctl .nb-close { font-size: 14px; line-height: 1; padding: 2px 8px; }
.nb-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; margin-top: 8px; align-items: center; }
.nb-canvas { display: block; width: 100%; height: 96px; border-radius: 8px; background: #080808; }
.nb-read { display: grid; grid-template-columns: repeat(5, minmax(84px, auto)); gap: 4px 16px; }
.nb-r .l { font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: #9a9890; }
.nb-r .v { font-family: var(--mono); font-size: 22px; font-weight: 600; line-height: 1.15; color: #fff; font-variant-numeric: tabular-nums; }
.nb-r .u { font-size: 10px; color: #9a9890; }
.nb-r.puls .v { color: var(--accent); }
/* Umsatz/Profit: feste Spalten – sonst ändert sich mit jedem €-Wert die Breite des EKG beim Abspielen */
.neobeat.eur .nb-read { grid-template-columns: repeat(5, 128px); }
.neobeat.eur .nb-r .v { font-size: 18px; white-space: nowrap; }
.neobeat.eur .nb-r .u { overflow-wrap: anywhere; }
.nb-legend { margin-top: 6px; font-family: var(--mono); font-size: 10.5px; color: #8f8d86; }
@media (max-width: 1100px) { .nb-body { grid-template-columns: minmax(0, 1fr); } .nb-read, .neobeat.eur .nb-read { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .neobeat.playing .nb-logo i { animation: none; } }

/* ---------- Tarif-Design (Schritt 8) ---------- */
.td-subnav { margin-bottom: 14px; }
.td-field { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 8px; align-items: center; font-size: 12.5px; color: var(--ink-2); padding: 4px 0; }
.td-field small { display: block; font-size: 10.5px; color: var(--muted); }
.td-field select, .td-in input { width: 100%; height: 30px; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-2); font: inherit; font-size: 12.5px; color: var(--ink); }
.td-in { display: flex; align-items: center; gap: 6px; }
.td-in input { text-align: right; font-variant-numeric: tabular-nums; }
.td-in input[type=text] { text-align: left; }
.td-in i { font-style: normal; font-size: 11px; color: var(--muted); min-width: 42px; }
.td-in input:focus, .td-field select:focus { border-color: var(--ink); background: #fff; outline: none; }
.td-row { display: flex; justify-content: flex-end; gap: 8px; margin: 4px 0 6px; }
.td-inline { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 4px 24px; margin-bottom: 8px; }
.td-prov input { width: 92px; height: 26px; padding: 0 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); text-align: right; font: inherit; font-size: 12px; }
.td-prov input:not(:placeholder-shown) { border-color: var(--accent-ink); background: var(--accent-soft); }
.td-pos { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.td-rank { font-size: 30px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.td-near { margin-top: 10px; }
.td-near td small { color: var(--muted); }
.td-near tr.planb td { background: var(--accent-soft); font-weight: 500; }
.td-assump tr.grp td { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 12px; }
.td-assump input[type=number] { width: 110px; height: 28px; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-2); text-align: right; font: inherit; font-size: 12.5px; }
.td-assump input.changed { border-color: var(--accent-ink); background: var(--accent-soft); }
.td-assump input[type=checkbox] { accent-color: var(--ink); width: 16px; height: 16px; }
.assump-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 8px 0 4px; font-size: 12.5px; }
.assump-bar .neg { color: var(--bad); }
.chart .tornado { opacity: .9; }
@media (max-width: 640px) { .td-field { grid-template-columns: 1fr; } }
.td-near td.r { white-space: nowrap; }

/* ---------- Markt: Aktualisieren (neue Runs, Spotpreise) ---------- */
.player .refresh { display: flex; align-items: center; gap: 8px; margin-left: 4px; }
.player .refresh .btn { gap: 6px; }
.player .refresh .btn svg { width: 14px; height: 14px; }
.player .refresh .btn.busy svg { animation: spin 0.9s linear infinite; }
.player .refresh .btn.news { background: var(--accent); border-color: var(--accent-2); color: var(--ink); }
.refresh-note { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; max-width: 260px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .player .refresh .btn.busy svg { animation: none; } }
.player .ticks { overflow: hidden; } /* Marken werden in app.js ausgedünnt; der Rest wird abgeschnitten statt die Seite zu verbreitern */

/* ---------- Analysen (Schritt 9) ---------- */
.an-subnav { margin-bottom: 14px; }
.an-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 16px; margin-bottom: 18px; font-size: 12.5px; }
.an-bar label { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.an-bar input[type=date], .an-bar select { height: 30px; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-2); font: inherit; font-size: 12.5px; color: var(--ink); max-width: 100%; }
.an-bar .an-info { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.an-q .an-answer { font-size: 15px; line-height: 1.55; margin: 0 0 14px; color: var(--ink); max-width: 80ch; }
.an-q .an-answer b { font-weight: 600; }
.an-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.an-nums:empty { display: none; }
.an-num { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: var(--surface-2); min-width: 0; }
.an-num .k { font-size: 11px; color: var(--muted); }
.an-num .v { font-size: 20px; line-height: 1.25; margin-top: 2px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.an-num .u { font-size: 11px; color: var(--muted); margin-top: 2px; }
.an-num.neg .v { color: var(--bad); }
.an-more:not(:empty) { margin-top: 14px; }
.an-foot { margin-top: 14px; line-height: 1.55; }
.an-sub { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 4px 0 6px; }
.an-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.an-chip { border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-size: 12px; background: var(--surface-2); color: var(--ink-2); font-variant-numeric: tabular-nums; }
button.an-chip { cursor: pointer; font: inherit; font-size: 12px; }
button.an-chip:hover { border-color: var(--ink); color: var(--ink); }
.an-presets { margin-bottom: 12px; }
.an-saved { display: inline-flex; align-items: center; gap: 6px; padding-right: 6px; }
.an-saved button { border: 0; background: none; padding: 0; font: inherit; font-size: 12px; color: var(--ink); cursor: pointer; }
.an-saved .an-link:hover { text-decoration: underline; }
.an-saved .an-x { color: var(--muted); font-size: 14px; line-height: 1; }
.an-saved .an-x:hover { color: var(--bad); }
.an-name input { width: 260px; max-width: 100%; height: 30px; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-2); font: inherit; font-size: 12.5px; text-align: left; }
.an-ctls { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 18px; }
.an-ctl { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--muted); min-width: 0; }
.an-ctl select { height: 30px; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-2); font: inherit; font-size: 12.5px; color: var(--ink); width: 100%; }
.an-ctl .seg { align-self: flex-start; }
.ibar { display: flex; height: 12px; min-width: 6px; border-radius: 3px; overflow: hidden; }
.ibar i { display: block; height: 100%; }
.ibar i + i { margin-left: 2px; }
.an-bk td:nth-child(4) { min-width: 180px; width: 40%; }
.an-tbl tr.dim td { color: var(--muted); }
.an-tbl td .sw, .an-bk td .sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.chart .hm-l { font-size: 10px; fill: var(--ink); font-variant-numeric: tabular-nums; }
.chart .hm-l.inv { fill: #fff; }
@media (max-width: 640px) { .an-bar { padding: 10px 12px; } .an-q .an-answer { font-size: 14px; } .an-name input { width: 100%; } }
@media (max-width: 640px) { .an-q .card-h { flex-wrap: wrap; } .an-q .card-h > .grow { flex-basis: 100%; } }

/* ---------- Daten: Beschaffungspreise H0 ---------- */
.pr-card .an-nums { margin-top: 2px; }
.pr-scroll { max-height: 440px; overflow: auto; margin-top: 6px; }
.pr-tbl input[type=text], .pr-tbl input[type=month] { height: 28px; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-2); font: inherit; font-size: 12.5px; color: var(--ink); }
.pr-tbl input[type=text] { width: 104px; text-align: right; font-variant-numeric: tabular-nums; }
.pr-tbl input.changed, .pr-tbl tr.new input { border-color: var(--accent-ink); background: var(--accent-soft); }
.pr-tbl input:focus { border-color: var(--ink); background: #fff; outline: none; }
.pr-tbl tr.del td { color: var(--muted); text-decoration: line-through; }
.pr-tbl tr.del td:last-child { text-decoration: none; }
.pr-tbl .an-x { border: 0; background: none; cursor: pointer; font-size: 15px; color: var(--muted); padding: 0 4px; }
.pr-tbl .an-x:hover { color: var(--bad); }
.pr-msg { font-size: 12.5px; margin: 6px 0; padding: 6px 10px; border-radius: 8px; background: var(--surface-2); }
.pr-msg.ok { background: var(--good-soft); color: var(--good); }
.pr-msg.err { background: var(--bad-soft); color: var(--bad); }
.pr-card .an-sub { margin-top: 16px; }
.pr-review { margin: 10px 0; padding: 12px 14px; border: 1px solid var(--ink); border-radius: 10px; background: var(--surface-2); }
.pr-review-h { margin-bottom: 8px; font-size: 13px; }
.pr-review .mini-table { background: #fff; }
.pr-warns { margin: 10px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--warn); }
.pr-warns li + li { margin-top: 3px; }
.pr-review-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
/* Kanäle & Akquise → Beschaffung (Entscheidung 84) */
.pc-root { display: grid; gap: 18px; margin-top: 28px; }
.pc-root > * { min-width: 0; }
.pc-head { margin: 4px 0 -4px; scroll-margin-top: 150px; }
.pc-head h2 { font-size: 22px; font-weight: 400; margin: 4px 0; }
.pc-head p { margin: 0; font-size: 13px; max-width: 900px; }
.pc-scroll { max-height: 560px; overflow: auto; }
.pc-tbl th { position: sticky; top: 0; background: #fff; z-index: 1; }
.pc-tbl td.neg { color: var(--bad); }
.pc-tbl tr.sum td { font-weight: 600; border-top: 1px solid var(--line); border-bottom: 0; }
.pc-root .chart > .btn { margin-top: 10px; }
.up-formats small, .up-formats i { overflow-wrap: anywhere; } /* lange Beispiel-Dateinamen (Beschaffungspreise) dürfen umbrechen */
.assump-form select, .td-assump select { height: 28px; padding: 0 6px; border-radius: 7px; border: 1px solid var(--line); background: var(--surface-2); font: inherit; font-size: 12px; color: var(--ink); width: 100%; max-width: 320px; }
.assump-form select.changed, .td-assump select.changed { border-color: var(--accent-ink); background: var(--accent-soft); }
.assump-form label.sel { grid-template-columns: 1fr; }
.assump-form label.sel select { max-width: none; }
/* Hinweis „Kennzahlen aktualisieren“ (Einkaufsmodell oder Beschaffungspreise geändert) */
.upd-bar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 70; display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap;
  max-width: min(760px, calc(100% - 32px)); padding: 10px 14px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 12.5px; box-shadow: 0 8px 30px rgba(0, 0, 0, .25); }
.upd-bar.hidden { display: none; }
.upd-bar .upd-i { font-size: 16px; color: var(--accent); }
.upd-bar .upd-t { flex: 1 1 260px; line-height: 1.45; }
.upd-bar.busy { background: #1d1d1b; }
.upd-bar .upd-i.spin { display: inline-block; animation: spin 1.1s linear infinite; }
@media (prefers-reduced-motion: reduce) { .upd-bar .upd-i.spin { animation: none; } }

/* ---------- Info-Popups (js/info.js): dezentes ⓘ an Ansichten, Karten, Kacheln ---------- */
.info-btn { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--muted); cursor: pointer; opacity: .55; transition: opacity .15s, background .15s, color .15s; vertical-align: middle; }
.info-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.info-btn:hover, .info-btn:focus-visible { opacity: 1; color: var(--ink); background: var(--bg-2); outline: none; }
.info-btn:focus-visible { box-shadow: 0 0 0 2px var(--accent-2); }
.card-h > .info-btn { order: 99; margin: -2px -8px 0 auto; }
.info-btn.abs { position: absolute; top: 6px; right: 6px; z-index: 2; }
.info-rel { position: relative; }
.hero h1 .info-btn { width: 26px; height: 26px; margin-left: 6px; position: relative; top: -2px; }
.hero h1 .info-btn svg { width: 19px; height: 19px; }
.filterbar[data-info], .timebar[data-info], .an-bar[data-info], .notice[data-info] { padding-right: 38px; }
.kpi[data-info] .k { padding-right: 16px; hyphens: auto; }
.kpi > .info-btn.abs { top: 4px; right: 4px; }
.nb-info .info-btn { color: #8f8d86; opacity: .8; }
.nb-info .info-btn:hover, .nb-info .info-btn:focus-visible { color: #e8e6df; background: rgba(255, 255, 255, .1); }
.info-overlay { position: fixed; inset: 0; z-index: 85; background: rgba(11, 11, 11, .32); display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px 24px; overflow-y: auto; }
.info-box { position: relative; width: 100%; max-width: 780px; background: var(--surface); border-radius: var(--radius); box-shadow: 0 24px 64px rgba(11, 11, 11, .22); padding: 20px 22px 18px; }
.info-head { display: flex; align-items: flex-start; gap: 12px; }
.info-head .grow { flex: 1; min-width: 0; }
.info-head h3 { font-size: 20px; font-weight: 400; margin: 2px 0 0; letter-spacing: -.01em; }
.info-ctx { font-size: 12px; color: var(--muted); margin-top: 4px; }
.info-x { flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--bg-2); color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; }
.info-x:hover, .info-x:focus-visible { background: var(--accent); outline: none; }
.info-what { font-size: 14px; line-height: 1.5; margin: 12px 0 2px; }
.info-sec { margin-top: 14px; }
.info-sec h4 { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin: 0 0 6px; }
.info-list { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.5; }
.info-list li { margin: 2px 0; }
.info-list li.f { list-style: none; margin-left: -18px; }
.info-list code, .info-sec code { font-family: var(--mono); font-size: 12px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 5px; overflow-wrap: anywhere; }
.info-list li.f code { display: inline-block; padding: 3px 8px; }
.info-list.warn li::marker { content: '! '; color: var(--warn); font-weight: 700; }
.info-terms { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0; font-size: 13px; line-height: 1.45; }
.info-terms dt { font-weight: 600; }
.info-terms dd { margin: 0; color: var(--ink-2); }
.info-tech { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 10px; }
.info-tech > summary { cursor: pointer; font-size: 13px; font-weight: 500; padding: 4px 0; }
.info-tech > summary:hover { color: var(--accent-ink); }
.info-sqlh { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0 6px; font-size: 12px; color: var(--ink-2); flex-wrap: wrap; }
.info-sql { margin: 0; background: var(--term-bg); color: var(--term-ink); border-radius: var(--radius-s); padding: 12px 14px; font-family: var(--mono); font-size: 12px; line-height: 1.5; overflow-x: auto; white-space: pre; }
.info-sample .mini-table td { white-space: nowrap; }
.info-tbl { overflow-x: auto; border: 1px solid var(--line-2); border-radius: var(--radius-s); }
.info-src { font-size: 11px; margin-top: 6px; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .info-overlay { padding: 8px; }
  .info-box { padding: 16px 14px 14px; }
  .info-terms { grid-template-columns: 1fr; gap: 0; }
  .info-terms dd { margin-bottom: 6px; }
  .hero h1 .info-btn { width: 22px; height: 22px; }
}

/* ---------- Anmeldung: Benutzermenü in der Kopfleiste (js/session.js) ---------- */
.topbar-gear { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); display: inline-grid; place-items: center; }
.topbar-gear[hidden] { display: none; }
.topbar-gear svg { width: 17px; height: 17px; }
.topbar-gear:hover { color: var(--ink); border-color: var(--ink); }
.topbar-gear.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.topbar-gear:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* Terminal nur als Symbol (Tooltip „Terminal (Taste T)“): die Kopfleiste ist auf 1.520 px begrenzt, mit Beschriftung bricht sie um */
#btn-terminal .lbl { display: none; } #btn-terminal { padding: 8px; width: 34px; height: 34px; justify-content: center; }
.user-wrap { position: relative; }
.user-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 12px; font-weight: 600; letter-spacing: .02em; cursor: pointer; }
.user-btn:hover, .user-btn[aria-expanded="true"] { border-color: var(--ink); }
.user-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.user-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 45; min-width: 240px; max-width: calc(100vw - 32px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s);
  box-shadow: 0 12px 32px rgba(11, 11, 11, .14); padding: 6px; display: flex; flex-direction: column; }
.user-menu[hidden] { display: none; }
.user-menu .um-who { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; font-size: 13px; overflow-wrap: anywhere; }
.user-menu .um-who .muted { font-size: 11px; }
.user-menu button, .user-menu a { text-align: left; border: 0; background: transparent; padding: 8px 10px; border-radius: 6px; font-size: 13px; color: var(--ink); text-decoration: none; cursor: pointer; }
.user-menu button:hover, .user-menu a:hover, .user-menu button:focus-visible, .user-menu a:focus-visible { background: var(--bg-2); outline: none; }
.um-role { display: inline-block; align-self: flex-start; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 500; border: 1px solid var(--line); color: var(--ink-2); background: var(--surface-2); }
.um-role.role-admin { background: var(--ink); color: #fff; border-color: var(--ink); }
.um-role.role-editor { border-color: var(--ink); color: var(--ink); background: var(--surface); }
.pw-box { max-width: 440px; }
.pw-form { display: flex; flex-direction: column; margin-top: 12px; }
.pw-form label { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 10px 0 5px; }
.pw-form input { height: 38px; padding: 0 12px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--surface-2); }
.pw-form input:focus { border-color: var(--ink); background: #fff; outline: none; }
.pw-form .muted { margin: 10px 0 0; min-height: 1.2em; font-size: 12px; }
.pw-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
/* Abteilungen (Entscheidung 67): Auswahl (js/session.js departmentPicker), Dialog beim ersten Login, Einstellungen → Benutzer */
.dp-box { max-width: 620px; }
.dp-body { margin-top: 10px; }
.dp-lead { margin: 0 0 12px; font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.dp { display: grid; gap: 6px; }
.dp-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface-2); }
.dp-row.on { border-color: var(--ink); background: #fff; }
.dp-pick { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; cursor: pointer; min-width: 0; }
.dp-pick input, .dp-main input { accent-color: var(--ink); margin: 3px 0 0; }
.dp-l { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.dp-l b { font-weight: 500; font-size: 13.5px; }
.dp-l small { font-size: 11.5px; color: var(--muted); overflow-wrap: anywhere; }
.dp-main { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.dp-row:not(.on) .dp-main { opacity: .45; cursor: default; }
.dp-box .pw-actions { flex-wrap: wrap; }
.user-menu .um-who .um-dept { font-size: 11.5px; }
.st-dept-add { margin-top: 12px; }
.st-dept-add > summary { cursor: pointer; font-size: 12.5px; color: var(--ink-2); margin-bottom: 8px; }
.st-dept-add .dp { grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.st-users td.st-dept { white-space: normal; min-width: 150px; }
/* Transaktionen (Entscheidung 80): Datenbasis-Zeilen, gestrichelte Modell-Linie */
.tx-progress { display: flex; flex-direction: column; gap: 6px; align-items: stretch; padding: 16px 20px; }
/* Transaktionen → Buchungsarten mit Zeitraum und vier Karten darunter (27.10.2026) */
.tx-range-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; max-width: 100%; }
.tx-range { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; justify-content: flex-end; }
.tx-range .lbl { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.tx-dl { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.tx-date { height: 30px; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-2); font: inherit; font-size: 12.5px; color: var(--ink); max-width: 100%; }
.tx-range .tx-reset[disabled] { opacity: .45; cursor: default; }
.tx-range-msg { font-size: 12px; color: var(--muted); text-align: right; }
.tx-range-msg.bad { color: var(--bad); }
.tx-range-msg:empty { display: none; }
.tx-period { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.tx-period > .card { min-width: 0; display: flex; flex-direction: column; }
.tx-period > .card > .card-b { padding-top: 10px; }
@media (max-width: 1100px) { .tx-period { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tx-period { grid-template-columns: minmax(0, 1fr); } .tx-range-wrap, .tx-range { align-items: flex-start; justify-content: flex-start; } .tx-range-msg { text-align: left; } }
.tx-pv { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tx-pv-v { font-size: 28px; line-height: 1.1; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-pv-v.neg { color: var(--bad); }
.tx-pv-l, .tx-pv-p, .tx-pv-s { font-size: 12px; }
.tx-pv-n { font-size: 14px; margin-top: 8px; }
.tx-pv-d { font-size: 13px; margin-top: 8px; }
.tx-pv-d.up { color: var(--good); }
.tx-pv-d.down { color: var(--bad); }
.tx-pv-s { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.tx-progress-text { font-size: 12px; }
.tx-step { font-size: 13px; padding: 18px 0; }
/* Datenbasis (27.10.2026): Kennzahl-Kacheln, Katalog mit Suche, festem Kopf und begrenzter Höhe */
.tx-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-bottom: 20px; }
.tx-fact { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--surface-2); min-width: 0; }
.tx-fact .k { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tx-fact .v { font-size: 16px; margin-top: 4px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tx-fact .s { font-size: 12px; color: var(--muted); margin-top: 3px; overflow-wrap: anywhere; }
.tx-fact.ok { box-shadow: inset 3px 0 0 var(--good); }
.tx-fact.bad { box-shadow: inset 3px 0 0 var(--bad); } .tx-fact.bad .s { color: var(--bad); }
.tx-fact.warn { box-shadow: inset 3px 0 0 #c9a227; }
.tx-codes-bar { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; margin-bottom: 8px; }
.tx-codes-bar .grow { flex: 1; }
.tx-codes-n { font-size: 12px; }
.tx-codes-q { height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-2); font: inherit; font-size: 12.5px; color: var(--ink); width: 280px; max-width: 100%; }
.tx-codes { max-height: 560px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.tx-codes .mini-table { margin: 0; }
.tx-codes thead th { position: sticky; top: 0; background: var(--surface); z-index: 1; box-shadow: inset 0 -1px 0 var(--line); }
.tx-codes td.mono { font-family: var(--mono); font-size: 12px; }
.tx-codes tr.tx-storno-row td { color: var(--ink-2); }
.tx-codes .tx-sub { color: var(--muted); }
.tx-codes .empty { padding: 12px; }
@media (max-width: 560px) { .tx-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .tx-fact { padding: 8px 10px; } .tx-fact .v { font-size: 14px; } .tx-codes-q { width: 100%; } }
.chart svg path.line.dashed { stroke-dasharray: 5 4; }
.score td.neg, .score td.warn { color: var(--bad); }
.score tr.warn td { background: rgba(227, 73, 72, 0.08); }
.st-users td.name .st-first { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } /* Vorname über der E-Mail (Entscheidung 79) */
.st-users td.name .st-fn { font-weight: 500; }
.st-users td.name .st-mail { display: block; color: var(--muted); font-size: 12px; }
.st-users td.st-dept .btn { margin-left: 6px; }
.st-depts td { vertical-align: top; }
.st-depts td small { display: block; margin-top: 2px; }
.st-depts td.num { text-align: right; font-variant-numeric: tabular-nums; width: 70px; }
.st-depts tr.dept-rest td { background: var(--surface-2); }
.dept-chips { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.dept-chip { display: inline-block; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 12px; overflow-wrap: anywhere; }
.dept-chip.main { border-color: var(--ink); font-weight: 500; }
.dept-chip.off { color: var(--muted); border-style: dashed; }

/* ---------- Einstellungen (js/admin.js) ---------- */
.st-subnav { margin-bottom: 14px; }
.st-add { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; }
.st-add .field.grow { flex: 1 1 260px; }
.st-add input[type=email] { height: 36px; padding: 0 12px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--surface-2); min-width: 0; width: 100%; outline: none; }
.st-add input[type=email]:focus { border-color: var(--ink); background: #fff; }
.st-add select { height: 36px; }
.st-msg { min-height: 1.2em; margin: 8px 0 0; font-size: 12px; }
.st-invite { margin: 12px 0 4px; padding: 12px 14px; border-radius: var(--radius-s); background: var(--surface-2); border: 1px solid var(--accent-2); }
.st-invite .muted { font-size: 12px; margin: 8px 0 0; }
.st-row { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.st-link { flex: 1 1 280px; min-width: 0; height: 34px; padding: 0 10px; border-radius: var(--radius-s); border: 1px solid var(--line); background: #fff; font-family: var(--mono); font-size: 12px; }
.st-roles { margin-top: 16px; max-width: 640px; }
.st-roles td.yes { color: var(--good); } .st-roles td.no { color: var(--muted); }
.st-users td { vertical-align: middle; }
.st-users td.name { white-space: normal; min-width: 200px; overflow-wrap: break-word; } /* Umbruch am <wbr> hinter dem „@“, nicht mitten in der Domain */
.st-users td small.warn { color: var(--warn); }
.st-users td .st-status + small { white-space: nowrap; }
.st-users .st-sound { max-width: 156px; }
.st-users td small, .int-secrets td small, .int-objects td small { display: block; color: var(--muted); font-size: 11px; white-space: normal; }
.st-users tr.self td { background: var(--surface-2); }
.st-users select { height: 30px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--surface-2); padding: 0 8px; }
.st-actions { white-space: nowrap; }
.st-actions .btn + .btn { margin-left: 4px; }
.btn.ghost.danger { color: var(--bad); border-color: var(--bad); }
.btn.ghost.danger:hover { background: var(--bad-soft); }
.st-status { font-size: 12px; white-space: nowrap; }
.st-status.good, .chk.good { color: var(--good); } .st-status.bad, .chk.bad { color: var(--bad); } .st-status.warn { color: var(--warn); } .st-status.muted, .chk.muted { color: var(--muted); }
.chk { display: inline-block; width: 1.1em; font-weight: 700; text-align: center; }

/* Integrationen */
.int-bar .card-b { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 20px; }
.int-card .card-h { align-items: center; }
.int-logo { position: relative; flex: none; width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); display: grid; place-items: center; }
.int-logo-svg { width: 26px; height: 27px; }
.int-kind { position: absolute; right: -6px; bottom: -6px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; border: 2px solid var(--surface); }
.int-kind-svg { width: 13px; height: 13px; }
.int-status { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 12px; border: 1px solid currentColor; white-space: nowrap; }
.int-status.good { color: var(--good); background: var(--good-soft); } .int-status.bad { color: var(--bad); background: var(--bad-soft); }
.int-status.warn { color: var(--warn); background: #fdf5e1; } .int-status.muted { color: var(--ink-2); background: var(--surface-2); border-color: var(--line); }
.int-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 8px 28px; }
.int-col h4 { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin: 6px 0 8px; }
.int-col h4:not(:first-child) { margin-top: 18px; }
.int-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; margin: 0; font-size: 13px; }
.int-dl dt { color: var(--muted); } .int-dl dd { margin: 0; overflow-wrap: anywhere; }
.mono, td.mono { font-family: var(--mono); font-size: 12px; }
.int-secrets td { white-space: nowrap; vertical-align: top; }
.int-checks { list-style: none; margin: 0; padding: 0; font-size: 13px; line-height: 1.45; }
.int-checks li { display: flex; gap: 6px; margin: 4px 0; }
.int-objects { margin-top: 10px; font-size: 12px; }
.int-objects summary { cursor: pointer; color: var(--ink-2); }
.int-objects .mini-table { margin-top: 6px; }
.int-warn { margin-top: 0; }
.int-warn li { overflow-wrap: anywhere; } /* lange Adressen in Hinweisen (z. B. R2-Bucket) brechen um – sonst bei 420 px seitlicher Überlauf */
.int-warn li.lvl-error::marker { content: '✕ '; color: var(--bad); }
.int-warn li.lvl-info::marker { content: '• '; color: var(--muted); }
.int-wide { grid-column: 1 / -1; }
.int-time { font-size: 11px; margin-top: 12px; }
@media (max-width: 900px) { .int-body { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .int-card .card-h { flex-wrap: wrap; }
  .int-card .card-h > .grow { flex: 1 1 calc(100% - 110px); }
  .int-status { order: 3; margin-left: 62px; }
  .st-actions { white-space: normal; }
  .st-actions .btn { margin: 2px 4px 2px 0; }
}

/* ---------- Power Units: Countdown des Abgleichs (js/pusync.js) und Ansicht (js/powerunits.js) ---------- */
.ps-wrap { position: relative; }
.pill.pu-sync { cursor: pointer; font-family: var(--mono); font-variant-numeric: tabular-nums; gap: 5px; }
.pill.pu-sync[hidden] { display: none; }
.pill.pu-sync .i { color: var(--muted); font-family: var(--font); }
.pill.pu-sync .lbl { font-family: var(--font); color: var(--muted); font-size: 11px; }
.pill.pu-sync .t { min-width: 3.4em; text-align: right; color: var(--ink); }
.pill.pu-sync.run .i { animation: spin 1.1s linear infinite; color: var(--ink); }
.pill.pu-sync.err .t { color: var(--bad); }
.pill.pu-sync:hover { border-color: var(--ink); }
.ps-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 45; width: 300px; max-width: calc(100vw - 32px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s);
  box-shadow: 0 12px 32px rgba(11, 11, 11, .14); padding: 12px 14px; font-size: 13px; }
.ps-panel[hidden] { display: none; }
.ps-panel .ps-h { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.ps-panel .ps-h .muted { font-size: 11px; }
.ps-panel dl { display: grid; grid-template-columns: max-content 1fr; gap: 3px 10px; margin: 0 0 10px; font-size: 12px; }
.ps-panel dt { color: var(--muted); } .ps-panel dd { margin: 0; }
.ps-panel .ps-err { color: var(--bad); }
@media (prefers-reduced-motion: reduce) { .pill.pu-sync.run .i { animation: none; } }
@media (max-width: 1599px) { .brand-app, .brand-sep { display: none; } }
.pu-types td.name { white-space: nowrap; }
.pu-types td.name small { display: block; color: var(--muted); font-size: 11px; }
.pu-types .sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; }
.pu-types tr.sum td { font-weight: 600; border-top: 1px solid var(--line); }
.pu-dl dd { font-size: 13px; }
.pu-assump { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.pu.stale [data-info="pu.ladder"] .chart, .pu.stale [data-info="pu.rebuy"] .chart, .pu.stale [data-info="pu.funnel"] .chart, .pu.stale [data-info="pu.retention"] .chart,
.pu.stale [data-info="pu.churn"] .chart, .pu.stale [data-info="pu.reach"] .chart, .pu.stale [data-info="pu.appstatus"] .chart, .pu.stale [data-info="pu.overlap"] .chart,
.pu.stale [data-info="pu.gap"] .chart, .pu.stale [data-info="pu.ends"] .chart { opacity: .55; transition: opacity .2s; }

/* Gutschriften (Entscheidung 48, js/credits.js) */
.credits .card-h select.sel, .cr-var-ctl select, .cr-var-ctl input { height: 30px; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-2); font: inherit; font-size: 12.5px; color: var(--ink); max-width: 100%; }
.cr-var-ctl { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.cr-var-ctl input { width: 200px; }
.cr-var-n { font-size: 12px; margin-bottom: 6px; }
.credits .sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; }
.cr-share { white-space: nowrap; }
.cr-bar { display: inline-block; height: 8px; border-radius: 0 4px 4px 0; margin-right: 6px; vertical-align: 0; }
.cr-reasons td, .cr-rules td { white-space: nowrap; }
.cr-rules th.cr-grp { text-align: center; border-bottom: 1px solid var(--line); }
.credits tr.click { cursor: pointer; }
.credits tr.sel td { background: var(--accent-soft); }
@media (max-width: 640px) { .cr-var-ctl input { width: 100%; } }
.chart.cr-variants .flux-list, .chart.cr-cases .flux-list, .chart.cr-channels .flux-list { max-height: 560px; overflow: auto; } /* Klassen statt IDs (P0.7) */
.score td.est { color: var(--ink-2); font-style: italic; }

/* Automatische Abmeldung (Entscheidung 49, js/session.js): dezenter Countdown neben dem Benutzermenü */
.idle-t { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; cursor: default; user-select: none; }
.idle-t svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.idle-t.warn { color: var(--bad); }
/* Platz für den Abmelde-Countdown (Entscheidung 49): Zusatz der Datenquelle (Datum bzw. „Supabase“) nur im Tooltip, engere Abstände */
.topbar-right { gap: 8px; } .pill .opt { display: none; }

/* Gutschriften → Einzelbuchungen (Entscheidung 50, js/credit-detail.js): Vollbild-Popup */
.cr-detail { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; padding: 0; }
.cr-detail:hover, .cr-detail:focus-visible { border-color: var(--ink); color: var(--ink); }
.cr-detail svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cd-overlay { position: fixed; inset: 0; z-index: 80; background: rgba(11, 11, 11, .32); }
.cd-box { position: absolute; inset: 20px; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); box-shadow: 0 24px 64px rgba(11, 11, 11, .22); overflow: hidden; }
.cd-head { display: flex; align-items: flex-start; gap: 10px; padding: 18px 22px 8px; }
.cd-head .grow { flex: 1; min-width: 0; }
.cd-head h2 { margin: 2px 0 4px; font-size: 22px; font-weight: 400; }
.cd-sub { font-size: 12px; color: var(--ink-2); }
.cd-head .info-x { position: static; }
.cd-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 22px 10px; }
.cd-tools .grow { flex: 1; }
.cd-q, .cd-sel { height: 30px; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-2); font: inherit; font-size: 12.5px; color: var(--ink); }
.cd-q { width: 260px; max-width: 100%; }
.cd-chk { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ink-2); }
.cd-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; padding: 0 22px 12px; }
.cd-tile { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 8px 10px; background: var(--surface-2); }
.cd-tile .k { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cd-tile .v { font-size: 18px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.cd-tile .u { font-size: 11px; color: var(--ink-2); }
.cd-note { grid-column: 1 / -1; font-size: 12px; }
.cd-body { flex: 1; overflow: auto; border-top: 1px solid var(--line); }
.cd-msg { padding: 24px 22px; }
.cd-table { width: 100%; font-size: 12.5px; }
.cd-table thead th { position: sticky; top: 0; z-index: 1; background: var(--surface); box-shadow: 0 1px 0 var(--line); white-space: nowrap; }
.cd-table th.sort { cursor: pointer; } .cd-table th.sort.on { color: var(--ink); }
.cd-table td { vertical-align: top; }
.cd-table td small { display: block; font-size: 11px; line-height: 1.35; }
.cd-table td.nowrap { white-space: nowrap; }
.cd-table td.cd-art { min-width: 150px; max-width: 260px; }
.cd-table td:nth-child(2) { min-width: 180px; }
.cd-table td small.neg { color: var(--bad); }
.cd-app { display: inline-flex; vertical-align: -3px; margin-right: 6px; }
.cd-phone { width: 15px; height: 15px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; opacity: .7; }
.cd-phone.on { stroke: var(--good); opacity: 1; }
.cd-progw { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.cd-progw small { display: inline !important; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cd-prog { position: relative; display: inline-block; width: 92px; height: 6px; border-radius: 3px; background: var(--line); flex: none; }
.cd-prog .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--ink-2); }
.cd-prog.ended .fill { background: var(--muted); }
.cd-prog .tick { position: absolute; top: -3px; width: 1.5px; height: 12px; background: var(--ink); opacity: .45; transform: translateX(-50%); }
.cd-prog .dot { position: absolute; top: 50%; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); border: 1.5px solid var(--ink); transform: translate(-50%, -50%); }
.cd-prog .dot.sched { background: var(--surface); }
.cd-chip { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px; white-space: nowrap; }
.cd-chip.paid { background: var(--good-soft); color: var(--good); }
.cd-chip.sched { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.cd-score { display: inline-block; padding: 1px 8px; border-radius: 999px; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 500; }
.cd-score.plus { background: var(--good-soft); color: var(--good); }
.cd-score.minus { background: var(--bad-soft); color: var(--bad); }
.cd-score-sub { color: var(--ink-2); white-space: nowrap; }
.cd-code { display: inline-block; margin: 0 4px 3px 0; padding: 0 6px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--line); font-size: 10.5px; color: var(--ink-2); white-space: nowrap; }
.cd-inf { color: var(--warn) !important; }
.cd-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 22px; border-top: 1px solid var(--line); font-size: 12px; }
.cd-foot .grow { flex: 1; }
.cd-legend { font-size: 11px; }
@media (max-width: 720px) {
  .cd-box { inset: 0; border-radius: 0; }
  .cd-head, .cd-tools, .cd-tiles, .cd-foot { padding-left: 14px; padding-right: 14px; }
  .cd-q { width: 100%; }
  .cd-tiles { grid-template-columns: repeat(2, 1fr); }
  .cd-box { overflow-y: auto; }                                   /* mobil scrollt das ganze Fenster, die Tabelle nur seitlich */
  .cd-body { flex: none; overflow-x: auto; overflow-y: visible; }
}

/* Analysen Frage 7: Cashflow der Kunden (Entscheidung 51) */
.chart path.line.dash { stroke-dasharray: 5 4; }
.an-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.an-q7-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 18px 0 6px; font-size: 13px; }
.an-q7-tbl { margin-top: 14px; }
.an-q7-tbl summary { cursor: pointer; font-size: 12.5px; color: var(--ink-2); margin-bottom: 6px; }
.an-q7-tbl tr.an-fc td { color: var(--ink-2); font-style: italic; }
.an-q7-tbl tr.an-run td { background: var(--surface-2); }
/* Prüffälle im Vollbild (Kachel „Prüffälle“ in „Gutschriften“) */
.kpi button.cr-kpi-link { display: block; background: none; border: 0; padding: 0; margin: 6px 0 0; font-family: inherit; font-weight: inherit; color: inherit; text-align: left; cursor: pointer; text-decoration: underline dotted 1.5px; text-underline-offset: 6px; }
.kpi button.cr-kpi-link:hover, .kpi button.cr-kpi-link:focus-visible { text-decoration-style: solid; outline: none; }
.cd-codes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 22px 10px; }
.cd-codes-l { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cd-codes .chart-tabs { justify-content: flex-start; }
.cd-codes button.lvl-err:not(.on) { color: var(--bad); }
@media (max-width: 720px) { .cd-codes { padding-left: 14px; padding-right: 14px; } }
.cd-table td.cd-codes-td { min-width: 150px; max-width: 220px; }
.cd-code.sev { border-color: rgba(196, 59, 59, .35); color: var(--bad); }

/* ---------- Kunde im Vollbild (Entscheidung 52): Tooltip und Detailansicht, js/customer.js ---------- */
.cd-box > [hidden] { display: none !important; }
.cd-cust { padding: 0; border: 0; background: none; font: inherit; font-family: var(--mono); font-size: 12px; color: var(--ink); cursor: pointer;
  text-decoration: underline dotted rgba(11, 11, 11, .45); text-underline-offset: 3px; }
.cd-cust:hover, .cd-cust:focus-visible { text-decoration-style: solid; text-decoration-color: var(--ink); outline: none; }
.cd-cust:focus-visible { box-shadow: 0 0 0 2px var(--accent); border-radius: 3px; }
.cu-tip { position: fixed; z-index: 92; width: 380px; max-width: calc(100vw - 16px); max-height: calc(100vh - 16px); overflow: auto; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 44px rgba(11, 11, 11, .22); font-size: 12.5px; line-height: 1.45; }
.cu-tip-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.cu-tip-h .mono { font-size: 12px; color: var(--ink-2); }
.cu-tip-name { font-size: 17px; line-height: 1.25; }
.cu-tip-sub { color: var(--ink-2); }
.cu-tip-sec { margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--line-2); }
.cu-tip-sec > .k { display: block; margin-bottom: 2px; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cu-tip-contact div { overflow-wrap: anywhere; }
.cu-tip-c { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; margin-top: 4px; }
.cu-tip-c small { flex-basis: 100%; font-size: 11px; }
.cu-tip-note, .cu-note { margin-top: 8px; padding: 7px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); font-size: 12px; }
.cu-tip-foot { margin-top: 10px; font-size: 11px; color: var(--muted); }
.cu-tip-msg { padding: 6px 0; }
.cu-st { display: inline-block; padding: 0 7px; border-radius: 999px; font-size: 10.5px; line-height: 17px; white-space: nowrap; border: 1px solid transparent; }
.cu-st.ok { background: var(--good-soft); color: var(--good); }
.cu-st.warn { background: #fbf0d9; color: #8a6408; }
.cu-st.info { background: #e6effa; color: #1d5fae; }
.cu-st.bad { background: var(--bad-soft); color: var(--bad); }
.cu-st.off { background: var(--surface-2); color: var(--ink-2); border-color: var(--line); }
.cu-view { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.cu-head { display: flex; align-items: flex-start; gap: 12px; padding: 4px 22px 10px; }
.cu-head .grow { flex: 1; min-width: 0; }
.cu-head h2 { margin: 2px 0 4px; font-size: 22px; font-weight: 400; overflow-wrap: anywhere; }
.cu-back { flex: none; margin-top: 4px; }
.cu-body { flex: 1; overflow: auto; border-top: 1px solid var(--line); padding: 14px 22px 28px; }
.cu-tiles { padding: 0 0 12px; }
.cu-score.plus .v { color: var(--good); } .cu-score.minus .v { color: var(--bad); }
.cu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 12px; margin-top: 12px; }
.cu-card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 12px 14px; background: var(--surface); }
.cu-card.wide { grid-column: 1 / -1; }
.cu-h { display: flex; flex-direction: column; gap: 1px; margin-bottom: 8px; }
.cu-h small { font-size: 11px; }
.cu-dl { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 4px 12px; margin: 0; font-size: 12.5px; }
.cu-dl dt { color: var(--muted); font-size: 11.5px; }
.cu-dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.cu-dl a { color: var(--ink); }
.cu-dl a.cu-map { display: inline-block; margin-top: 2px; font-size: 11.5px; color: var(--ink-2); text-underline-offset: 2px; white-space: nowrap; } /* Google Maps je Anschrift */
.cu-dl a.cu-map:hover, .cu-dl a.cu-map:focus-visible { color: var(--ink); }
.cu-place + .cu-place { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-2); }
.cu-place-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.cu-chart-note { margin-top: 4px; font-size: 11.5px; }
.cu-use + .cu-use { margin-top: 10px; }
.cu-use-h { margin-bottom: 3px; font-size: 12.5px; }
.cu-bar { display: grid; grid-template-columns: 124px 1fr 72px; align-items: center; gap: 8px; font-size: 11.5px; margin-top: 2px; }
.cu-bar .k { color: var(--ink-2); }
.cu-bar .v { text-align: right; font-variant-numeric: tabular-nums; }
.cu-bar .track { position: relative; height: 8px; border-radius: 4px; background: var(--line-2); }
.cu-bar .track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: #b0aea6; }
.cu-bar.base .k, .cu-bar.base .v { color: var(--ink); font-weight: 500; }
.cu-bar.base .track i { background: var(--ink); }
.cu-time .cu-grid-l { stroke: var(--grid); stroke-dasharray: 2 3; }
.cu-time .cu-seg.backlog { fill: #b0aea6; }
.cu-time .cu-seg.live { fill: var(--ink); }
.cu-time .cu-seg.ended { fill: #8b8983; }
.cu-time .cu-seg.future { fill: var(--surface); stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 3 2; }
.cu-time .cu-seg.pu { fill: #1baf7a; stroke: var(--surface); stroke-width: 2; }
.cu-time .cu-seg.pu.unpaid { fill: var(--surface); stroke: #1baf7a; }
.cu-time .cu-credit { fill: #eb6834; stroke: var(--surface); stroke-width: 2; }
.cu-time .cu-credit.sched { fill: var(--surface); stroke: #eb6834; stroke-width: 2; }
.cu-time .cu-due { stroke: var(--ink-2); stroke-width: 1.5; }
.cu-time .cu-block { stroke: var(--bad); stroke-width: 2; fill: none; }
.cu-time .cu-now { stroke: var(--ink); stroke-dasharray: 4 3; opacity: .55; }
.cu-time rect, .cu-time circle, .cu-time line.cu-due, .cu-time path { cursor: default; }
.cu-sec { margin-top: 22px; }
.cu-sec h3 { margin: 0 0 8px; font-size: 16px; font-weight: 400; }
.cu-contract { border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); margin-top: 8px; }
.cu-contract > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; padding: 10px 12px; cursor: pointer; font-size: 13px; }
.cu-contract[open] > summary { border-bottom: 1px solid var(--line-2); }
.cu-grps { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 12px 20px; padding: 10px 12px 14px; }
.cu-grp h4 { margin: 0 0 4px; font-size: 10.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cu-tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-s); }
@media (max-width: 720px) {
  .cu-head { padding-left: 14px; padding-right: 14px; flex-wrap: wrap; }
  .cu-body { flex: none; overflow: visible; padding: 12px 14px 24px; }
  .cu-grid { grid-template-columns: 1fr; }
  .cu-bar { grid-template-columns: 96px 1fr 60px; }
  .cu-tip { width: auto; left: 8px !important; right: 8px; }
}

/* ---------- Analysen Frage 8: CashScore je Vertrag (Entscheidung 53) ---------- */
.an-legend { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12px; color: var(--ink-2); }
.an-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: -4px; }
.an-splits { display: grid; gap: 8px; }
.an-split { display: grid; grid-template-columns: minmax(150px, 210px) 1fr minmax(150px, auto); align-items: center; gap: 12px; }
.an-split.sub .an-split-l b { font-weight: 400; color: var(--ink-2); padding-left: 12px; }
.an-split.sub .an-split-bar { height: 20px; }
.an-split-l { display: flex; flex-direction: column; min-width: 0; font-size: 13px; }
.an-split-l small { font-size: 11px; }
.an-split-bar { display: flex; gap: 2px; height: 28px; border-radius: 6px; overflow: hidden; background: var(--line-2); }
.an-split-seg { display: flex; align-items: center; justify-content: center; min-width: 2px; color: #fff; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; }
.an-split-r { font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.an-split-r .neg, .an-q td.neg { color: var(--bad); }
.an-q8-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 8px 24px; }
.an-even { display: grid; gap: 4px; margin-top: 6px; }
.an-even .cu-bar { grid-template-columns: 190px 1fr 110px; }
.an-even .cu-bar .track i { background: var(--bad); opacity: .75; }
.an-pbar { display: inline-block; position: relative; width: 54px; height: 7px; border-radius: 4px; background: var(--line-2); vertical-align: 1px; overflow: hidden; }
.an-pbar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--bad); opacity: .75; }
tr.an-sum td { font-weight: 500; border-top: 1px solid var(--line); }
@media (max-width: 720px) {
  .an-split { grid-template-columns: 1fr; gap: 4px; }
  .an-split-r { text-align: left; }
  .an-even .cu-bar { grid-template-columns: 120px 1fr 92px; }
}

/* ---------- Lade-Animation statt „lädt …“ (js/loader.js): grob pixelig, hell, im Hintergrund der Karte ---------- */
.px-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; margin: -1px; padding: 0; border: 0; }
.px-loading { position: relative; isolation: isolate; }
.card.px-loading:not(.kpi) { min-height: 170px; }
.cd-body.px-loading, .cu-body.px-loading { min-height: 240px; }
.px-load { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; border-radius: inherit; image-rendering: pixelated; }

/* ---------- Neuigkeiten-Glocke (js/notify.js, Entscheidung 54) ---------- */
.nt-wrap { position: relative; }
.nt-btn { position: relative; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); display: inline-grid; place-items: center; cursor: pointer; padding: 0; }
.nt-btn[hidden] { display: none; }
.nt-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nt-btn:hover, .nt-btn[aria-expanded="true"] { color: var(--ink); border-color: var(--ink); }
.nt-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.nt-badge { position: absolute; top: -3px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--bad); color: #fff; font-size: 10px; font-weight: 600; line-height: 16px; text-align: center; box-shadow: 0 0 0 2px var(--surface); }
.nt-badge[hidden] { display: none; }
.nt-panel { position: absolute; right: -40px; top: calc(100% + 8px); z-index: 46; width: 360px; max-width: calc(100vw - 24px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s);
  box-shadow: 0 12px 32px rgba(11, 11, 11, .14); padding: 6px; }
.nt-panel[hidden] { display: none; }
.nt-head { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 9px; border-bottom: 1px solid var(--line); margin-bottom: 4px; font-size: 13px; }
.nt-head .muted { font-size: 11.5px; }
.nt-list { list-style: none; margin: 0; padding: 0; }
.nt-item { display: flex; align-items: flex-start; gap: 9px; width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: 8px; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.nt-item:hover, .nt-item:focus-visible { background: var(--surface-2); outline: none; }
.nt-dot { flex: none; width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: transparent; }
.nt-item.unread .nt-dot { background: var(--bad); }
.nt-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.nt-title { font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nt-item:not(.unread) .nt-title { color: var(--ink-2); }
.nt-txt small { font-size: 11px; }
.nt-empty { padding: 10px; margin: 0; font-size: 13px; }
.nt-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px 4px; border-top: 1px solid var(--line); margin-top: 4px; font-size: 11.5px; min-height: 26px; }
.nt-all { border: 0; background: none; padding: 0; font: inherit; font-size: 11.5px; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; cursor: pointer; }
.nt-all:hover { color: var(--ink); text-decoration-color: var(--ink); }
@media (max-width: 720px) { .nt-panel { position: fixed; left: 12px; right: 12px; top: 64px; width: auto; } }

/* ---------- Einstellungen: Login-Ton, Anmeldungen, Login-MP3 (Entscheidung 54) ---------- */
.st-sound { max-width: 210px; font-size: 12px; }
.st-filter { flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.st-filter select { font-size: 12.5px; }
.st-logins td small, .snd-table td small { display: block; font-size: 11px; color: var(--muted); }
.st-logins td.nowrap { white-space: nowrap; }
.snd-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.snd-drop { display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center; text-align: center; padding: 22px 16px; margin-top: 10px; border: 1.5px dashed var(--line); border-radius: var(--radius-s);
  background: var(--surface-2); cursor: pointer; font-size: 13px; }
.snd-drop:hover, .snd-drop.over { border-color: var(--ink); background: var(--accent-soft); }
.snd-drop.off { opacity: .5; pointer-events: none; }
.snd-drop .muted { font-size: 11.5px; }
.snd-play { min-width: 34px; }
.snd-table td.r, .snd-table th.r { text-align: right; }
.int-cloud { width: 34px; height: 34px; }

/* Kopfleiste mit Glocke (Entscheidung 54): engere Abstände – einzeilig ab 1.440 px, Logo bündig mit dem Inhalt (Rahmen 1.520 px) */
.topbar .wrap { gap: 14px; }
.topbar-right { gap: 6px; }
.mainnav a { padding: 7px 11px; }

/* ---------- Unternehmen → NEO App (js/neoapp.js, Entscheidung 56) ---------- */
.na-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.na-sub { margin: 14px 0 4px; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.na-data { margin: 0; }
@media (max-width: 720px) { .na-tiles { grid-template-columns: 1fr; } }

/* ---------- Filterleiste „Unternehmen“ je Ansicht (js/company.js, 12.10.2026) ---------- */
#co-filters.filterbar { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
#co-filters .frow { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; }
#co-filters .fhint { flex: 1 1 220px; min-width: 180px; max-width: 460px; margin: 0 0 0 auto; align-self: center; font-size: 12px; line-height: 1.4; color: var(--muted); }
.fchips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding-top: 10px; border-top: 1px solid var(--line-2); }
.fchips[hidden] { display: none; }
.fchips-l { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fchips-l.off { margin-left: 6px; }
.fchip { display: inline-flex; align-items: center; gap: 4px; max-width: 380px; padding: 2px 3px 2px 10px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; border: 1px solid var(--ink); }
.fchip .fk { opacity: .7; white-space: nowrap; }
.fchip .fv { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fchip .fx { flex: none; width: 20px; height: 20px; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 14px; line-height: 1; cursor: pointer; }
.fchip .fx:hover { background: rgba(255, 255, 255, .18); }
.fchip.off { background: var(--surface-2); color: var(--ink-2); border: 1px dashed var(--line); }
.fchip.off .fx:hover { background: var(--line-2); }
.fchips-reset { margin-left: auto; }
.ms-opt.ms-one { width: 100%; border: 0; background: none; font: inherit; font-size: 13px; color: var(--ink); text-align: left; }
.ms-opt.ms-one.sel { background: var(--accent-soft); font-weight: 500; }
.ms-opt.ms-one .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-more { padding: 6px 12px; font-size: 12px; }
@media (max-width: 720px) { #co-filters .fhint { margin-left: 0; max-width: none; } .fchips-reset { margin-left: 0; } }

/* ---- Kundenliste im Vollbild (Entscheidung 57) ---- */
.cl-open { display: inline-flex; align-items: center; gap: 8px; }
.cl-ico { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
button.cd-tile { text-align: left; font: inherit; color: inherit; cursor: pointer; }
button.cd-tile:hover, button.cd-tile:focus-visible { border-color: var(--ink-2); outline: none; }
.cd-tile.cl-sev .v { color: var(--bad); }
.cd-table small.cl-due { color: #8a6408; }

/* ---- Vertragsverlauf mit allen Ereignissen (Entscheidung 57) ---- */
.cu-tl-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 6px; }
.cu-tl-tools .grow { flex: 1; }
.cu-tl-tools .chart-tabs { justify-content: flex-start; }
.cu-tl-grp { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font: inherit; font-size: 11.5px; color: var(--ink); cursor: pointer; }
.cu-tl-grp i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.cu-tl-grp.bonus i { background: #eb6834; } .cu-tl-grp.app i { background: #1baf7a; } .cu-tl-grp.pu i { background: #008300; } .cu-tl-grp.import i { background: #b0aea6; }
.cu-tl-grp.off { color: var(--muted); background: var(--surface-2); text-decoration: line-through; }
.cu-tl-grp.off i { opacity: .35; }
.cu-tl-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 11.5px; color: var(--ink-2); }
.cu-tl-lg { display: inline-flex; align-items: center; gap: 4px; }
.cu-tl-lg .bar { display: inline-block; width: 18px; height: 7px; border-radius: 3px; }
.cu-tl-lg .bar.backlog { background: #b0aea6; height: 5px; } .cu-tl-lg .bar.live { background: var(--ink); } .cu-tl-lg .bar.future { border: 1.2px dashed var(--ink); background: var(--surface); }
.cu-tl-list { margin-top: 14px; }
.cu-ev-table td { vertical-align: middle; }
.cu-ev-table td .ev-ico { vertical-align: -4px; margin-right: 5px; }
.cu-ev-table td small { display: inline !important; margin-left: 6px; }
.cu-ev-table tr.fut td { color: var(--ink-2); }
.cu-ev-info { font-size: 11.5px; color: var(--ink-2); min-width: 240px; }
.cu-ev-more { margin-top: 8px; }
.cu-time .cu-row-l { stroke: var(--line-2); }
.cu-time .ev { stroke: none; }
.cu-time .ev-diamond { fill: var(--ink); stroke: var(--surface); stroke-width: 1.5; }
.cu-time .ev-odiamond { fill: none; stroke: var(--muted); stroke-width: 1.4; stroke-dasharray: 2 1.5; }
.cu-time .ev-tick { stroke: var(--ink-2); stroke-width: 2; }
.cu-time .ev-dot { fill: var(--surface); stroke: var(--ink); stroke-width: 2; }
.cu-time .ev-term { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 3 2; }
.cu-time .ev-tri { fill: #c48a12; }
.cu-time .ev-square { fill: var(--bad); stroke: var(--surface); stroke-width: 1.5; }
.cu-time .ev-osquare { fill: var(--surface); stroke: var(--ink-2); stroke-width: 1.6; }
.cu-time .ev-x { stroke: var(--bad); stroke-width: 2.2; fill: none; }
.cu-time .ev-due { stroke: var(--ink-2); stroke-width: 1.6; }
.cu-time .ev-forfeit { stroke: var(--bad); stroke-width: 1.8; fill: none; }
.cu-time .ev-credit { fill: #eb6834; stroke: var(--surface); stroke-width: 2; }
.cu-time .ev-credit2 { fill: #8b8983; stroke: var(--surface); stroke-width: 2; }
.cu-time .ev-credit.fut, .cu-time .ev-credit2.fut { fill: var(--surface); stroke: #eb6834; }
.cu-time .ev-credit2.neutral { fill: var(--surface); stroke: #b0aea6; stroke-dasharray: 2 1.5; }
.cu-time .ev-version { fill: #b0aea6; }
.cu-time .ev-phone { fill: #1baf7a; stroke: var(--surface); stroke-width: 1.5; }
.cu-time .ev-login { stroke: #1baf7a; stroke-width: 1.5; opacity: .8; }
.cu-time .ev-login2 { stroke: #1baf7a; stroke-width: 2.6; }
.cu-time .ev-triup { fill: #1baf7a; }
.cu-time .ev-t-push_no, .cu-time .ev-t-trust { stroke: var(--muted); stroke-width: 1.6; }
.cu-time .ev-t-wallet { stroke: #1baf7a; }
.cu-time .ev-kwh { fill: #1baf7a; opacity: .85; }
.cu-time .ev-invite { fill: #2a78d6; stroke: var(--surface); stroke-width: 2; }
.cu-time .ev-pu { fill: var(--ink); stroke: var(--surface); stroke-width: 1.5; }
.cu-time .ev.fut:not(.ev-credit):not(.ev-credit2) { opacity: .55; }
.ev-ico { overflow: visible; }
.cd-tools .chart-tabs { justify-content: flex-start; }
.cd-table td b.nowrap { white-space: nowrap; }
.px-board { display: flex; justify-content: center; padding: 34px 0 10px; }
.px-board-cv { display: block; image-rendering: pixelated; }
.cl-loading { position: relative; }

/* ---- NEO App → Push-Benachrichtigungen (OneSignal, Entscheidung 58) ---- */
.na-push { display: flex; flex-direction: column; gap: 18px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.na-push-h { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.na-push-h .grow { flex: 1; min-width: 240px; }
.na-push-h h2 { margin: 4px 0 4px; font-size: 24px; font-weight: 400; }
.na-push-note { margin: 0; }
.na-push-table td small { display: block; font-size: 11px; line-height: 1.35; }
.na-push-table td.na-push-msg { min-width: 220px; max-width: 420px; }
.na-push-table tr.muted td { color: var(--muted); }
.na-push-table td.na-push-msg, .na-push-table td.na-push-msg small { white-space: normal; }
.na-push-plat { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.na-push-plat-l { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.na-push-plat .chart-tabs { justify-content: flex-start; }
.na-push-plat-n { font-size: 12px; }
tr.na-push-on td { background: var(--accent-soft); }
/* Push im Vertragsverlauf (Entscheidung 59): angetippt = orange, empfangen = blau, nur übergeben = hohl, Fehler = rot; Kampagne = hohl, blass */
.cu-time .ev-bell { fill: var(--surface); stroke: #2a78d6; stroke-width: 1.4; }
.cu-time .ev-bell.p-recv { fill: #2a78d6; }
.cu-time .ev-bell.p-clicked { fill: #eb6834; stroke: #eb6834; }
.cu-time .ev-bell.p-fail { stroke: var(--bad); }
.cu-time .ev-bello { fill: none; stroke: var(--muted); stroke-width: 1.2; stroke-dasharray: 2 1.5; }
.cu-tl-grp.push i { background: #2a78d6; }

/* ---------- Daten → Datenstand aller Quellen (js/freshness.js, Entscheidung 60) ---------- */
.fr-root { display: grid; gap: 18px; }                          /* wie .co-content: Kacheln, Karte und folgende Karten mit gleichem Abstand */
.fr-root > * { min-width: 0; }
.fr-kpis .kpi .u { white-space: normal; }
.fr-ic { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; border-radius: 50%; color: #fff; font-size: 9.5px; font-weight: 700; margin-right: 5px; vertical-align: -2px; font-style: normal; }
.st-ok { --st: var(--good); } .st-warn { --st: var(--warn); } .st-stale, .st-error { --st: var(--bad); } .st-never, .st-off, .st-demo { --st: var(--muted); }
.fr-ic { background: var(--st); }
.fr-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.fr-chart { margin-top: 4px; }
.fr-svg .fr-track { stroke: var(--line-2, #ece9e1); stroke-width: 1; }
.fr-svg .fr-bar { fill: #c9c6bd; }
.fr-svg .fr-dot { fill: var(--st); stroke: #fff; stroke-width: 2; }
.fr-svg .fr-icc { fill: var(--st); }
.fr-svg .fr-tri { fill: var(--ink); stroke: #fff; stroke-width: 1; }
.fr-svg .fr-now { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 3; }
.fr-svg .fr-now-t { fill: var(--ink); font-weight: 500; }
.fr-svg .fr-name { font-size: 12.5px; fill: var(--ink); font-family: var(--font); font-weight: 500; }
.fr-svg .fr-sub { font-size: 10.5px; fill: var(--muted); }
.fr-svg .fr-age { font-size: 12px; fill: var(--ink); font-family: var(--font); font-variant-numeric: tabular-nums; }
.fr-svg .fr-ic-t { font-size: 9px; font-weight: 700; fill: #fff; font-family: var(--font); pointer-events: none; }
.fr-svg .fr-head { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; fill: var(--muted); font-family: var(--font); }
.fr-svg .fr-sep { stroke: var(--line); }
.fr-svg .fr-more { fill: var(--muted); font-size: 10.5px; }
.fr-svg .fr-colh { fill: var(--muted); font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; }
.fr-svg .fr-row:hover .fr-name { text-decoration: underline; }
.fr-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: 11.5px; color: var(--ink-2); margin: 10px 0 14px; }
.fr-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.fr-legend i { display: inline-block; }
.fr-legend .lg-bar { width: 22px; height: 8px; border-radius: 4px; background: #c9c6bd; }
.fr-legend .lg-hatch { width: 22px; height: 8px; border-radius: 4px; background: repeating-linear-gradient(45deg, #9c9a93 0 2px, #efece4 2px 5px); }
.fr-legend .lg-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-2); box-shadow: 0 0 0 2px #fff; }
.fr-legend .lg-tri { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 7px solid var(--ink); }
.fr-legend .lg-now { width: 0; height: 14px; border-left: 1px dashed var(--ink); }
.fr-legend .fr-st { gap: 10px; margin-left: auto; }
.fr-legend .fr-st b { font-weight: 400; display: inline-flex; align-items: center; gap: 4px; }
.fr-legend .fr-st em, .fr-badge em { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; border-radius: 50%; background: var(--st); color: #fff; font-size: 9px; font-weight: 700; font-style: normal; }
.fr-badge { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.fr-table .mini-table td { vertical-align: top; }
.fr-table .mini-table td { white-space: normal; }
.fr-table .mini-table td:nth-child(3), .fr-table .mini-table td:nth-child(6) { min-width: 112px; }
.fr-table .mini-table td:nth-child(4) { min-width: 96px; max-width: 170px; }
.fr-table .mini-table td:nth-child(5) { white-space: nowrap; }
.fr-table .mini-table td small.fr-s { display: block; color: var(--muted); font-size: 11px; }
.fr-table .mini-table td.fr-notes { min-width: 200px; color: var(--ink-2); overflow-wrap: anywhere; }
.fr-table .mini-table td.name { min-width: 150px; max-width: 240px; }
.fr-table .mini-table td.fr-file { min-width: 120px; max-width: 190px; overflow-wrap: anywhere; }
.fr-table .mini-table td.fr-notes div + div { margin-top: 2px; }
.fr-table .mini-table tr.fr-grp td { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
@media (max-width: 640px) { .fr-legend .fr-st { margin-left: 0; } .fr-tools { justify-content: flex-start; } .fr-svg .fr-name { font-size: 11.5px; } }

/* Analysen Frage 9: Kanäle ein-/ausblenden (Entscheidung 61) */
.q9-legend { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 10px 0 12px; }
.q9-chip { display: inline-flex; align-items: center; gap: 6px; }
.q9-chip i { display: inline-block; width: 16px; height: 3px; border-radius: 2px; }
.q9-chip .q9-v { color: var(--muted); font-variant-numeric: tabular-nums; }
.q9-chip.off { opacity: .45; }
.q9-chip.off i { background: var(--muted) !important; }
.q9-tbl td.name small { display: block; color: var(--muted); font-size: 11px; }
.q9-tbl td .sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }

/* ---------- Prüffälle: Prüfstatus und Kommentar (js/reviews.js, Entscheidung 62) ---------- */
.toast.rv-toast { z-index: 96; }                                   /* über Vollbild-Popups */
.rv-td { white-space: nowrap; }
.rv-cell { display: inline-flex; align-items: center; gap: 4px; --st: var(--muted); }
.rv-cell.st-ok { --st: var(--good); } .rv-cell.st-fixed { --st: #2a78d6; }
.rv-sel { font: inherit; font-size: 11.5px; height: 26px; padding: 0 22px 0 8px; border: 1px solid var(--line); border-left: 3px solid var(--st); border-radius: 7px; background: var(--surface); color: var(--ink); max-width: 168px; cursor: pointer; }
.rv-cell.st-open .rv-sel { color: var(--ink-2); }
.rv-cell.busy { opacity: .6; }
.rv-badge { font-size: 11.5px; padding: 3px 8px; border-radius: 7px; border-left: 3px solid var(--st); background: var(--surface-2); color: var(--ink); }
.rv-cmt { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--muted); cursor: pointer; padding: 0; }
.rv-cmt svg { width: 15px; height: 15px; }
.rv-cmt svg path { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.rv-cmt.has { color: var(--ink); border-color: var(--ink-2); }
.rv-cmt.has svg path.f { fill: var(--accent); }
.rv-cmt:hover, .rv-sel:hover { border-color: var(--ink); }
.rv-new { font-size: 10px; font-weight: 600; color: #fff; background: var(--warn); border-radius: 999px; padding: 1px 6px; cursor: help; }
.rv-filter-box { display: inline-flex; }
.rv-filter { align-items: center; justify-content: flex-start; }
.rv-filter .rv-filter-l { font-size: 11px; color: var(--muted); margin-right: 4px; }
.rv-filter button.st-ok:not(.on) { box-shadow: inset 3px 0 0 var(--good); } .rv-filter button.st-fixed:not(.on) { box-shadow: inset 3px 0 0 #2a78d6; }
.bo-cases-n { font-size: 12px; margin: 0 0 8px; }
.rv-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(11, 11, 11, .32); display: flex; align-items: flex-start; justify-content: center; padding: 64px 16px 24px; overflow-y: auto; }
.rv-dlg { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); width: 560px; max-width: 100%; padding: 18px 20px 16px; display: flex; flex-direction: column; gap: 10px; }
.rv-dlg.wide { width: 980px; }
.rv-head { display: flex; gap: 12px; align-items: flex-start; }
.rv-head h3 { margin: 4px 0 0; font-size: 18px; font-weight: 400; }
.rv-sub { font-size: 12px; margin-top: 2px; }
.rv-codes { display: flex; flex-wrap: wrap; gap: 4px; }
.rv-lbl { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--ink-2); }
.rv-lbl > span { display: flex; justify-content: space-between; }
.rv-dsel { font: inherit; font-size: 13px; height: 32px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); max-width: 260px; }
.rv-ta { font: inherit; font-size: 13px; line-height: 1.45; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; resize: vertical; min-height: 96px; background: var(--surface); color: var(--ink); }
.rv-ta:focus, .rv-dsel:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--ink); }
.rv-cnt { font-size: 11px; }
.rv-hint { margin: 0; font-size: 12px; color: var(--ink-2); min-height: 1em; }
.rv-hint.err { color: var(--bad); }
.rv-last { margin: 0; font-size: 11.5px; }
.rv-btns { display: flex; gap: 8px; align-items: center; }
.rv-sec { border-top: 1px solid var(--line); padding-top: 8px; }
.rv-hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 260px; overflow-y: auto; }
.rv-hist li { font-size: 12px; }
.rv-q { display: block; margin-top: 2px; padding-left: 8px; border-left: 2px solid var(--line); color: var(--ink-2); white-space: pre-wrap; quotes: none; }
.rv-q.del { text-decoration: line-through; color: var(--muted); }
.rv-log td { vertical-align: top; }
.rv-log td.rv-log-c { white-space: pre-wrap; max-width: 420px; }
.rv-fsel { max-width: 230px; }
@media (max-width: 640px) { .rv-overlay { padding: 12px 8px; } .rv-dlg { padding: 14px; } .rv-btns { flex-wrap: wrap; } }

/* ---------- CSV-Export: Spaltenauswahl und Verlauf (js/exports.js, Entscheidung 64) ---------- */
.ex-overlay { position: fixed; inset: 0; z-index: 84; background: rgba(11, 11, 11, .32); display: flex; align-items: center; justify-content: center; padding: 32px 16px; overflow-y: auto; overscroll-behavior: contain; } /* über der Kundenliste (80), unter Info-Popups (85) */
/* Dialog höchstens fensterhoch: Kopf, Reiter und Fuß stehen, nur .ex-body scrollt (sonst schaut Inhalt unter dem Fuß hervor) */
.ex-dlg { position: relative; width: 1100px; max-width: 100%; max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); overflow: hidden; background: var(--surface); border-radius: var(--radius); box-shadow: 0 24px 64px rgba(11, 11, 11, .22); display: flex; flex-direction: column; }
.ex-head, .ex-tabs, .ex-foot { flex: none; }
.ex-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.ex-dlg [hidden] { display: none !important; }
.ex-head { display: flex; align-items: flex-start; gap: 10px; padding: 18px 22px 8px; }
.ex-head .grow { flex: 1; min-width: 0; }
.ex-head h3 { margin: 2px 0 4px; font-size: 20px; font-weight: 400; }
.ex-head [data-info-slot] { display: inline-flex; align-items: center; min-height: 32px; }
.ex-sub { font-size: 12px; color: var(--ink-2); overflow-wrap: anywhere; }
.ex-tabs { display: flex; justify-content: flex-start; padding: 2px 22px 12px; border-bottom: 1px solid var(--line); }
.ex-tabs button { font-size: 12px; padding: 4px 12px; }
.ex-cols, .ex-histbox { padding: 14px 22px 18px; }
.ex-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; position: sticky; top: 0; z-index: 1; margin: -14px -22px 0; padding: 14px 22px 10px; background: var(--surface); border-bottom: 1px solid var(--line-2); } /* Schnellauswahl und Suche bleiben beim Scrollen sichtbar */
.ex-bar .btn[aria-pressed="true"] { background: var(--ink); color: #fff; }
.ex-q { height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-2); font-size: 12.5px; color: var(--ink); width: 230px; max-width: 100%; outline: none; }
.ex-q:focus { border-color: var(--ink); background: #fff; }
.ex-count { margin-left: auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ex-sech { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 18px 0 8px; }
.ex-sec { font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.ex-secn { font-size: 12px; color: var(--muted); }
.ex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; align-items: start; }
.ex-grp { min-width: 0; min-inline-size: 0; margin: 0; padding: 6px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface-2); }
.ex-grp-h { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0 8px; padding: 4px 6px 7px; margin-bottom: 3px; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.ex-gl { font-size: 13px; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.ex-n { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ex-grp-h small { grid-column: 2 / -1; font-size: 11px; line-height: 1.35; color: var(--muted); }
.ex-grp input[type=checkbox] { width: 15px; height: 15px; margin: 0; accent-color: var(--ink); cursor: pointer; }
.ex-f { position: relative; display: block; margin-top: 2px; padding: 5px 6px 6px 29px; border-radius: 7px; cursor: pointer; line-height: 1.3; }
.ex-f input[type=checkbox] { position: absolute; left: 7px; top: 6px; }
.ex-f:hover { background: var(--surface); }
.ex-f.on { background: var(--surface); box-shadow: inset 2px 0 0 var(--ink-2), 0 0 0 1px var(--line-2); } /* gewählt: weiß mit dunkler Kante (Gelb bleibt PLAN-B vorbehalten) */
.ex-l { display: block; font-size: 12.5px; color: var(--ink-2); }
.ex-f.on .ex-l { color: var(--ink); }
.ex-h { display: inline-block; margin: 2px 6px 0 0; padding: 0 5px; border-radius: 4px; background: var(--bg-2); font-family: var(--mono); font-size: 10.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.ex-d { font-size: 11px; color: var(--muted); }
.ex-none { margin: 14px 0 0; font-size: 13px; }
.ex-order { margin: 16px 0 0; font-size: 12px; color: var(--ink-2); }
.ex-histbox .chart-tabs { justify-content: flex-start; margin-bottom: 10px; }
.ex-hnote { margin: 0 0 10px; font-size: 12px; }
.ex-dlg:focus, .ex-body:focus { outline: none; }                    /* tabindex -1: nur Ziel für Klicks in freie Flächen */
.ex-nr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 10px; }
.ex-nr-l { font-size: 12px; color: var(--ink-2); }
.ex-nr-q { width: 130px; height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-2); font: inherit; font-size: 12.5px; color: var(--ink); outline: none; }
.ex-nr-q:focus { border-color: var(--ink); background: #fff; }
.ex-nr small { font-size: 11px; }
.ex-more { margin-top: 10px; }
.ex-err { margin: 0 0 8px; font-size: 12.5px; color: var(--bad); }
.ex-hist td { vertical-align: top; }
.ex-hist td.ex-nr, .ex-hist td.ex-file { font-family: var(--mono); font-size: 11.5px; }
.ex-hist td small { display: block; font-size: 11px; }
.flux-list .ex-hist td.ex-ctx { white-space: normal; min-width: 220px; max-width: 380px; color: var(--ink-2); }
.ex-acts-w { display: flex; flex-direction: column; align-items: stretch; gap: 4px; } /* Knöpfe untereinander – die Tabelle passt so in die Dialogbreite */
.ex-hist tr.ex-new td { background: var(--surface-2); }
.ex-hist tr.ex-new td:first-child { box-shadow: inset 3px 0 0 var(--ink); }
.ex-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 22px 14px; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 18px rgba(11, 11, 11, .04); }
.ex-note { flex: 1 1 100%; margin: 0; font-size: 11.5px; color: var(--muted); }
.ex-msg { flex: 1 1 280px; min-width: 0; min-height: 1.3em; margin: 0; font-size: 12.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.ex-msg.ok { color: var(--good); } .ex-msg.warn { color: var(--warn); } .ex-msg.err { color: var(--bad); }
.ex-foot .ex-clchip { order: -1; flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border: 1px dashed var(--line); border-radius: 999px; background: transparent; font: inherit; font-size: 12px; color: var(--muted); cursor: pointer; }
.ex-foot .ex-clchip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.ex-foot .ex-clchip.on { border-style: solid; border-color: var(--ink); color: var(--ink); background: var(--surface-2); }
.ex-foot .ex-clchip.on::before { background: var(--good); }
.ex-foot .ex-clchip:hover { border-color: var(--ink); color: var(--ink); }
/* Bereinigung (Entscheidung 92): Voreinstellungen als Karten, Abschnitte Namen und E-Mail mit Schaltern, Kategorien als Tabelle mit Segmenten */
.ex-clean { padding: 14px 22px 18px; }
.ex-cl-head { position: relative; padding-right: 36px; }
.ex-cl-head .ex-sec { margin: 4px 0 4px; }
.ex-cl-lead { margin: 0 0 12px; font-size: 12.5px; color: var(--ink-2); max-width: 820px; }
.ex-cl-presets { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; margin-bottom: 14px; }
.ex-cl-preset { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface-2); text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.ex-cl-preset b { font-size: 13px; font-weight: 500; }
.ex-cl-preset small { font-size: 11.5px; line-height: 1.35; color: var(--muted); }
.ex-cl-preset:hover:not([disabled]) { border-color: var(--ink-2); }
.ex-cl-preset.on { border-color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--ink); }
.ex-cl-preset.own { cursor: default; border-style: dashed; }
.ex-cl-preset[disabled] { opacity: .55; cursor: default; }
.ex-cl-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 12px; padding: 10px 12px; border-radius: var(--radius-s); background: var(--bg-2); font-size: 12.5px; color: var(--ink-2); }
.ex-cl-sec { margin: 0 0 12px; padding: 4px 14px 12px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); }
.ex-cl-sec.off .ex-cl-opt, .ex-cl-sec.off .ex-cl-check { opacity: .55; }
.ex-cl-sh { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 8px 0 6px; border-bottom: 1px solid var(--line-2); }
.ex-cl-sh h5 { margin: 0; font-size: 14px; font-weight: 500; }
.ex-cl-scope { font-size: 12px; color: var(--muted); }
.ex-cl-sh .btn { margin-left: auto; }
.ex-cl-opt { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.ex-cl-opt .tgl { margin-top: 1px; }
.ex-cl-opt.col { grid-template-columns: minmax(0, 1fr); }
.ex-cl-ot { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ex-cl-ot b { font-size: 13px; font-weight: 500; color: var(--ink); }
.ex-cl-ot small { font-size: 11.5px; line-height: 1.35; color: var(--muted); }
.ex-cl-ex { font-size: 11.5px; color: var(--ink-2); }
.ex-cl-ex code, .ex-cl-ext code, .ex-cl-tl code { font-family: var(--mono); font-size: 11px; padding: 0 4px; border-radius: 4px; background: var(--bg-2); color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.ex-cl-seg { flex-wrap: wrap; border-radius: 12px; justify-self: start; max-width: 100%; }
.ex-cl-seg button { white-space: nowrap; }
.ex-cl-seg button[disabled] { cursor: default; opacity: .6; }
.ex-cl-chk { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); cursor: pointer; }
.ex-cl-chk input { width: 15px; height: 15px; margin: 0; accent-color: var(--ink); }
.ex-cl-res { padding: 10px 0 2px; font-size: 12.5px; }
.ex-cl-ext { width: auto; margin-top: 6px; }
.ex-cl-ext td { padding: 3px 8px 3px 0; border: 0; }
.ex-cl-check { padding-top: 12px; }
.ex-cl-run { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 10px; }
.ex-cl-run small { font-size: 12px; }
.ex-cl-cats { width: 100%; }
.ex-cl-cats th[scope=row] { text-align: left; font-weight: 400; vertical-align: top; min-width: 220px; text-transform: none; letter-spacing: 0; font-size: 12px; color: var(--ink); padding: 8px; border-bottom: 1px solid var(--line-2); }
.ex-cl-cats th[scope=row] b { display: block; font-size: 13px; font-weight: 500; }
.ex-cl-cats th[scope=row] small { display: block; font-size: 11.5px; line-height: 1.35; color: var(--muted); }
.ex-cl-cats .ex-cl-pat { margin-top: 2px; font-family: var(--mono); font-size: 10.5px !important; color: var(--ink-2) !important; overflow-wrap: anywhere; }
.ex-cl-cats td { vertical-align: top; }
.ex-cl-n span { display: inline-flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.ex-cl-n small { font-size: 11px; color: var(--muted); }
.ex-cl-okline { margin: 8px 0 0; font-size: 12.5px; color: var(--ink-2); }
.ex-cl-typos { margin-top: 12px; padding: 10px 12px; border-radius: var(--radius-s); background: var(--surface-2); border: 1px solid var(--line-2); }
.ex-cl-typos.off .ex-cl-tl { opacity: .6; }
.ex-cl-th { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 12.5px; }
.ex-cl-th .muted { font-size: 12px; }
.ex-cl-tb { display: inline-flex; gap: 6px; margin-left: auto; }
.ex-cl-tl { list-style: none; margin: 8px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 4px 16px; }
.ex-cl-tl li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 3px 0; border-bottom: 1px solid var(--line-2); font-size: 12px; }
.ex-cl-tl label { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-width: 0; cursor: pointer; }
.ex-cl-tl input { width: 15px; height: 15px; margin: 0; accent-color: var(--ink); }
.ex-cl-arrow { color: var(--muted); }
.ex-cl-tn { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.ex-cl-conf { font-size: 10.5px; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.ex-cl-tl li.conf-sicher .ex-cl-conf { border-color: var(--good); color: var(--good); }
.ex-cl-tl li.conf-wahrscheinlich .ex-cl-conf { border-color: var(--ink-2); color: var(--ink-2); }
.ex-cl-rules { margin: 10px 0 0; font-size: 11.5px; }
.ex-cl-rules a { color: var(--ink); }
.ex-cl-sum { position: sticky; bottom: -18px; margin: 4px -22px -18px; padding: 10px 22px; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 16px rgba(11, 11, 11, .05); font-size: 12.5px; color: var(--ink); }
.ex-cl-sum.muted { position: static; margin: 4px 0 0; padding: 0; border: 0; box-shadow: none; color: var(--muted); }
@media (max-width: 640px) {
  .ex-overlay { padding: 8px; }
  .ex-dlg { max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); }
  .ex-head, .ex-tabs, .ex-cols, .ex-histbox, .ex-clean, .ex-foot { padding-left: 14px; padding-right: 14px; }
  .ex-cl-sum { margin-left: -14px; margin-right: -14px; padding-left: 14px; padding-right: 14px; }
  .ex-cl-sec { padding-left: 10px; padding-right: 10px; }
  .ex-cl-cats, .ex-cl-cats tbody, .ex-cl-cats tr, .ex-cl-cats th, .ex-cl-cats td { display: block; width: auto; }
  .ex-cl-cats thead { display: none; }
  .ex-cl-cats tr { padding: 8px 0; border-bottom: 1px solid var(--line-2); }
  .ex-cl-cats th[scope=row] { min-width: 0; }
  .ex-cl-cats td.r { text-align: left; }
  .ex-cl-n span { flex-direction: row; gap: 6px; align-items: baseline; }
  .ex-cl-tl { grid-template-columns: 1fr; }
  .ex-cl-tb { margin-left: 0; }
  .ex-bar { margin-left: -14px; margin-right: -14px; padding-left: 14px; padding-right: 14px; }
  .ex-grid { grid-template-columns: 1fr; }
  .ex-q { flex: 1 1 100%; width: auto; }
  .ex-count { margin-left: 0; }
  .ex-foot { gap: 6px 8px; padding-top: 8px; padding-bottom: 10px; }
  .ex-note { font-size: 11px; line-height: 1.35; }
  .ex-msg:empty { display: none; }
  .ex-foot .btn { flex: 0 1 auto; justify-content: center; }
  .ex-foot .ex-go { flex: 1 1 190px; white-space: normal; line-height: 1.3; text-align: center; }
}

/* ---------- Verstecktes Spiel NEO RIDERS: Start-Screen (js/game.js, Entscheidung 63; Logo nach neo-riders-logo.html) ---------- */
html.gm-open, html.gm-open body { overflow: hidden; }
.gm { position: fixed; inset: 0; z-index: 120; background: #0b0a14; color: #fff; overflow: hidden; }
.gm:fullscreen { width: 100vw; height: 100vh; }
.gm:focus { outline: none; }
.gm-esc { position: absolute; z-index: 3; top: max(16px, env(safe-area-inset-top)); right: max(16px, env(safe-area-inset-right)); padding: 0; border: 0; background: #0b0a14; cursor: pointer; line-height: 0; image-rendering: pixelated; }
.gm-esc canvas { display: block; image-rendering: pixelated; }
.gm-esc:hover canvas { filter: invert(1); }
.gm-esc:focus-visible { outline: 2px dashed #f5e86e; outline-offset: 4px; }
.gm .nr-stage { --shine: 7s; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 48px 24px; box-sizing: border-box;
  background: radial-gradient(ellipse at 50% 60%, #1a1636 0%, #0b0a14 65%); font-family: 'Press Start 2P', ui-monospace, monospace; overflow: hidden; }
.gm .nr-logo { position: relative; width: min(100%, 1040px); display: flex; flex-direction: column; align-items: center; gap: clamp(14px, 2.4vw, 28px); animation: nrPulse 4s ease-in-out 2.6s infinite;
  transform: translateY(0); transition: transform 1.4s cubic-bezier(.65, 0, .35, 1); }
.gm .nr-p2 .nr-logo { transform: translateY(var(--lift, 0px)); }
.gm .nr-title { position: relative; display: inline-block; font-size: clamp(34px, 8vw, 86px); line-height: 1; letter-spacing: .04em; white-space: nowrap; animation: nrIntro 1.6s steps(1, end) both; }
.gm .nr-title span { position: absolute; inset: 0; }
.gm .nr-ghost-c { color: #1cf2ff; mix-blend-mode: screen; animation: nrGhostC 1.6s steps(1, end) both; }
.gm .nr-ghost-m { color: #ff2bd6; mix-blend-mode: screen; animation: nrGhostM 1.6s steps(1, end) both; }
.gm .nr-depth { color: #2a0f3f; text-shadow: .04em .04em 0 #2a0f3f, .08em .08em 0 #1b0a2a, .12em .12em 0 #1b0a2a, .14em .14em 0 #0e0a16; }
.gm .nr-title .nr-face { position: relative; display: inline-block; color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .95) 50%, transparent 58%), linear-gradient(180deg, #e9fdff 0%, #1cf2ff 28%, #ffffff 46%, #ff2bd6 52%, #ff2bd6 72%, #5a0e5c 100%);
  background-size: 260% 100%, 100% 100%; background-position: -120% 0, 0 0; background-repeat: no-repeat; animation: nrShine var(--shine) ease-in-out 2.6s infinite; }
.gm .nr-sub { display: flex; align-items: center; gap: clamp(10px, 1.6vw, 20px); width: 100%; justify-content: center; }
.gm .nr-line { flex: 1; max-width: 160px; height: 2px; animation: nrLines .5s ease-out 1.5s both; }
.gm .nr-line.l { background: linear-gradient(90deg, transparent, #1cf2ff); transform-origin: right; }
.gm .nr-line.r { background: linear-gradient(90deg, #1cf2ff, transparent); transform-origin: left; }
.gm .nr-sub-text { font-size: clamp(10px, 1.55vw, 16px); letter-spacing: .32em; color: #ff2bd6; text-shadow: 0 0 8px rgba(255, 43, 214, .75); white-space: nowrap; padding-left: .32em; animation: nrSub 1s steps(17, end) 1.6s both; }
.gm .nr-press { font-size: clamp(7px, .9vw, 10px); letter-spacing: .3em; color: #6c7499; animation: nrBlink 1.6s steps(1, end) 3s infinite; }
.gm .nr-press b { font-weight: normal; color: #1cf2ff; }
.gm .nr-beam { position: absolute; left: -4%; right: -4%; height: 3px; background: linear-gradient(90deg, transparent, #1cf2ff, #ffffff, #1cf2ff, transparent); box-shadow: 0 0 14px #1cf2ff; pointer-events: none; animation: nrBeam 1.2s linear .3s both; }
.gm .nr-scan { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .28) 0 2px, transparent 2px 4px); }
.gm .nr-chars { position: absolute; left: 0; right: 0; top: 60%; display: flex; justify-content: center; align-items: flex-end; pointer-events: none; }
.gm .nr-char { display: block; image-rendering: pixelated; opacity: 0; transform: translateY(18px); transition: opacity .6s steps(6, end), transform .6s steps(6, end); transition-delay: calc(1.2s + var(--i, 0) * .3s); }
.gm .nr-chars.on .nr-char { opacity: 1; transform: none; }
@keyframes nrIntro { 0% { opacity: 0; transform: scale(1.3); } 6% { opacity: 1; } 10% { opacity: 0; } 16% { opacity: 1; transform: scale(1.18) translateX(-10px); } 20% { opacity: .2; } 27% { opacity: 1; transform: scale(1.06) translateX(8px); } 32% { opacity: .6; transform: scale(1.02) translateX(-3px); } 38%, 100% { opacity: 1; transform: scale(1) translateX(0); } }
@keyframes nrGhostC { 0%, 30% { transform: translateX(-26px) skewX(-8deg); opacity: 0; } 8% { opacity: .9; } 14% { transform: translateX(18px); opacity: .3; } 22% { transform: translateX(-14px); opacity: .9; } 36%, 100% { transform: translateX(-5px) skewX(0); opacity: .55; } }
@keyframes nrGhostM { 0%, 30% { transform: translateX(26px) skewX(8deg); opacity: 0; } 8% { opacity: .9; } 14% { transform: translateX(-18px); opacity: .3; } 22% { transform: translateX(14px); opacity: .9; } 36%, 100% { transform: translateX(5px) skewX(0); opacity: .55; } }
@keyframes nrShine { 0%, 78% { background-position: -120% 0, 0 0; } 100% { background-position: 220% 0, 0 0; } }
@keyframes nrPulse { 0%, 100% { filter: drop-shadow(0 0 10px rgba(255, 43, 214, .35)) drop-shadow(0 0 2px rgba(28, 242, 255, .5)); } 50% { filter: drop-shadow(0 0 26px rgba(255, 43, 214, .7)) drop-shadow(0 0 6px rgba(28, 242, 255, .9)); } }
@keyframes nrSub { 0% { clip-path: inset(0 100% 0 0); } 100% { clip-path: inset(0 0 0 0); } }
@keyframes nrLines { 0% { transform: scaleX(0); opacity: 0; } 100% { transform: scaleX(1); opacity: 1; } }
@keyframes nrBeam { 0% { top: -6%; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: 104%; opacity: 0; } }
@keyframes nrBlink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) {
  .gm .nr-logo, .gm .nr-logo *, .gm .nr-char { animation: none !important; transition: none !important; }
  .gm .nr-beam { display: none; }
}
/* Markt: Platzhalter der Tabelle bis zum ersten Zeichnen (index.html, js/app.js entfernt ihn) */
.tbl .body > .tbl-ph { padding: 28px 0; min-height: 180px; }
/* Vollbild-Listen (Kundenliste, Einzelbuchungen/Prüffälle): Filter in beschrifteten Gruppen, je Gruppe ein Segment-Schalter – was zusammengehört,
   steht in einem Rahmen; Aktionen rechts (21.10.2026) */
.cd-tools { align-items: flex-end; gap: 10px 16px; }
.cd-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 16px; flex: 1 1 auto; min-width: 0; }
.cd-acts { display: flex; align-items: center; gap: 8px; margin-left: auto; padding-bottom: 1px; }
.cd-tools .field .lbl { font-size: 10.5px; }
.cd-tools .field select.cd-sel, .cd-tools .field input.cd-q { height: 32px; min-width: 0; font-size: 12.5px; border-radius: 7px; padding: 0 9px; }
.cd-tools .field select.cd-sel { max-width: 230px; }
.cd-tools .field input.cd-q { width: 240px; }
.cd-tools .seg button { padding: 4px 10px; white-space: nowrap; }
.cd-tools .field .cd-chk { height: 32px; }
@media (max-width: 640px) {
  .cd-filters { gap: 8px 10px; }
  .cd-tools .cd-f-q { flex: 1 1 100%; } .cd-tools .field input.cd-q { width: 100%; }
  .cd-tools .seg { flex-wrap: wrap; border-radius: 14px; }
  .cd-acts { margin-left: 0; }
}

/* ---------- NEO – Assistent auf jeder Seite (Entscheidung 75): Knopf unten rechts (Taste N), Panel daneben (js/neo.js) ----------
   z-index: Knopf 75 und Panel 76 über der Seite und dem Hinweis „Kennzahlen aktualisieren“ (70), unter Vollbild-Listen (80), Info-Popups (85) und
   Chart-Tooltips (95) – die Kundenansicht aus NEO öffnet als Vollbild (80) darüber. */
.neo-launch { position: fixed; right: 20px; bottom: 20px; z-index: 75; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px 0 14px;
  border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font: inherit; font-weight: 600; font-size: 14px; letter-spacing: .08em;
  cursor: pointer; box-shadow: 0 10px 28px rgba(11, 11, 11, .22); transition: transform .15s ease, box-shadow .15s ease; }
.neo-launch[hidden] { display: none; }
.neo-launch:hover { transform: translateY(-1px); box-shadow: 0 14px 32px rgba(11, 11, 11, .28); }
.neo-launch:focus-visible, .neo-icon:focus-visible, .neo-chip:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; }
.neo-launch.on { background: var(--accent); color: var(--ink); }
.neo-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(245, 232, 110, .25); }
.neo-launch.on .neo-dot { background: var(--ink); box-shadow: none; }
.neo-panel { position: fixed; right: 20px; bottom: 76px; z-index: 76; width: min(440px, calc(100vw - 32px)); height: min(680px, calc(100vh - 150px)); display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 24px 64px rgba(11, 11, 11, .22); overflow: hidden; }
.neo-panel[hidden] { display: none; }
.neo-head { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.neo-ava { flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.neo-head b { font-size: 15px; letter-spacing: .06em; }
.neo-sub { font-size: 12px; color: var(--muted); }
.neo-icon { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 17px; line-height: 1; cursor: pointer; }
.neo-icon:hover { background: var(--bg-2); }
.neo-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; }
.neo-msg { max-width: 92%; font-size: 13.5px; line-height: 1.5; overflow-wrap: anywhere; }
.neo-msg p { margin: 0 0 8px; }
.neo-msg p:last-child, .neo-msg ul:last-child, .neo-msg ol:last-child { margin-bottom: 0; }
.neo-msg ul, .neo-msg ol { margin: 0 0 8px; padding-left: 20px; }
.neo-msg li + li { margin-top: 2px; }
.neo-user { align-self: flex-end; background: var(--ink); color: #fff; padding: 9px 12px; border-radius: 14px 14px 4px 14px; white-space: pre-wrap; }
.neo-bot { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line-2); padding: 10px 12px; border-radius: 14px 14px 14px 4px; }
.neo-bot strong { font-weight: 650; background: linear-gradient(transparent 60%, var(--accent-wash) 60%); }
.neo-link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent-ink); text-underline-offset: 2px; }
.neo-status { font-size: 12.5px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.neo-status::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); animation: neo-pulse 1s ease-in-out infinite; }
.neo-status[hidden] { display: none; }
@keyframes neo-pulse { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1); } }
.neo-src { margin-top: 6px; font-size: 11px; color: var(--muted); }
.neo-src:empty { display: none; }
.neo-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.neo-chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 5px 11px; font: inherit; font-size: 12.5px; line-height: 1.35; text-align: left; cursor: pointer; }
.neo-chip:hover { border-color: var(--ink); }
.neo-chip-k { display: block; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); line-height: 1.2; } /* Stichwort über der Frage (Anknüpfungspunkt) */
.neo-chip-q { display: block; }
/* Auffälligkeit (<auffaellig>): Nebenbefund aus den Daten als Kasten in der Antwort */
.neo-insight { margin: 8px 0 0; padding: 7px 10px; border-left: 3px solid var(--accent-2); background: var(--accent-wash); border-radius: 0 var(--radius-s) var(--radius-s) 0; font-size: 13px; }
.neo-insight-k { display: block; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 2px; }
.neo-insight p:last-child { margin-bottom: 0; }
/* Tagesbegrüßung (Entscheidung 79): Sprechblase über dem NEO-Knopf, Begrüßungsnachricht im Panel */
.neo-hello { position: fixed; right: 20px; bottom: 76px; z-index: 74; width: min(340px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: 14px 14px 4px 14px; box-shadow: 0 14px 32px rgba(11, 11, 11, .18); padding: 12px 14px; font-size: 13.5px; line-height: 1.45; }
.neo-hello b { display: block; font-size: 15px; margin: 0 24px 4px 0; }
.neo-hello p { margin: 0 0 10px; color: var(--ink-2); }
.neo-hello-x { position: absolute; top: 6px; right: 8px; border: 0; background: transparent; font-size: 18px; line-height: 1; cursor: pointer; color: var(--muted); }
.neo-hello-x:hover { color: var(--ink); }
.neo-daystart ul { margin: 0 0 8px; padding-left: 18px; }
.st-first .muted { font-style: italic; }
.user-menu .um-who .um-mail { font-size: 11.5px; }
/* Meine NEO-Gespräche (js/neo-history.js, Entscheidung 78): Filterzeile, Gliederung Anmeldung → Gespräch → Frage/Antwort (Blasen wie im Panel) */
.nh-filters { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: flex-end; }
.nh-filters .field.grow { flex: 1 1 260px; }
.nh-filters .field input[type=search] { width: 100%; }
.nh-filters .nh-reset { align-self: flex-end; }
.nh-session { border-top: 1px solid var(--line); padding: 16px 0 4px; }
.nh-session:first-child { border-top: 0; padding-top: 0; }
.nh-session-h { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; margin-bottom: 10px; }
.nh-session-h h3 { margin: 0; font-size: 15px; font-weight: 600; }
.nh-conv { border-left: 3px solid var(--line); padding: 2px 0 2px 14px; margin: 8px 0 16px; }
.nh-conv-h { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 10px; }
.nh-turn { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.nh-turn .neo-bot { max-width: 100%; }
.nh-meta { font-size: 11.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.nh-meta a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.nh-badge { display: inline-block; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line); font-size: 11px; color: var(--ink-2); }
.nh-badge.bad { border-color: var(--bad); color: var(--bad); }
.nh-more { display: flex; justify-content: center; padding: 12px 0 0; }
mark.nh-hit { background: var(--accent-wash); color: inherit; padding: 0 1px; border-radius: 2px; }
.nh-empty { color: var(--ink-2); }
.nh-empty p { margin: 0 0 8px; }
.neo-welcome p:first-child { font-weight: 600; }
.neo-err { border-color: rgba(196, 59, 59, .25); }
.neo-errt { color: var(--ink-2); }
.neo-cu-btn { margin-top: 6px; }
.neo-note { align-self: center; font-size: 12px; color: var(--muted); text-align: center; }
.neo-foot { border-top: 1px solid var(--line); padding: 10px 12px; background: var(--surface); }
.neo-form { display: flex; gap: 8px; align-items: flex-end; }
.neo-in { flex: 1; min-width: 0; resize: none; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface-2); padding: 8px 10px; font: inherit; font-size: 13.5px;
  line-height: 1.4; max-height: 132px; outline: none; }
.neo-in:focus { border-color: var(--ink); background: #fff; }
.neo-stop[hidden] { display: none; }
.neo-meta { margin-top: 6px; font-size: 11px; color: var(--muted); line-height: 1.4; }
.neo-budget { white-space: nowrap; }
.neo-busy .neo-in { opacity: .6; }
.info-head .neo-ask { flex: none; margin-right: 8px; align-self: center; }
/* NEO Teil 2 – Sprache (js/neo.js, js/neo-voice.js): Mikrofon, Vorlesen, Stummschalten, „Hey NEO“ */
.neo-svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.neo-svg.fill { fill: currentColor; stroke: none; }
.neo-icon { display: inline-grid; place-items: center; }
.neo-icon[hidden] { display: none; }
.neo-icon[aria-pressed="true"].neo-mute { background: var(--bg-2); color: var(--muted); }
.neo-wake.on { background: var(--ink); color: var(--accent); border-color: var(--ink); }
.neo-wake.on.hear { box-shadow: 0 0 0 3px var(--accent-2); }
.neo-mic { --lvl: 0; flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: inline-grid; place-items: center; cursor: pointer;
  transition: box-shadow .08s linear, background .15s ease; }
.neo-mic[hidden] { display: none; }
.neo-mic:hover { border-color: var(--ink); }
.neo-mic:focus-visible, .neo-say:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; }
.neo-mic.on { background: var(--bad); border-color: var(--bad); color: #fff; box-shadow: 0 0 0 calc(2px + var(--lvl) * 9px) rgba(196, 59, 59, .22); }
.neo-mic.busy { background: var(--accent); border-color: var(--ink); animation: neo-pulse 1s ease-in-out infinite; }
.neo-vstat { margin: 0 0 8px; font-size: 12.5px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.neo-vstat::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); animation: neo-pulse 1s ease-in-out infinite; }
.neo-vstat[hidden] { display: none; }
.neo-say { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; padding: 2px 9px 2px 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink);
  font: inherit; font-size: 11.5px; line-height: 1.5; cursor: pointer; vertical-align: middle; }
.neo-say .neo-svg { width: 12px; height: 12px; }
.neo-say:hover { border-color: var(--ink); }
.neo-speaking { box-shadow: inset 3px 0 0 var(--accent-2); }
.neo-speaking .neo-say { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .neo-status::before, .neo-vstat::before, .neo-mic.busy { animation: none; } .neo-launch, .neo-mic { transition: none; } }
@media (max-width: 720px) {
  .neo-panel { right: 0; left: 0; bottom: 0; width: auto; height: calc(100vh - 64px); height: calc(100dvh - 64px); border-radius: var(--radius) var(--radius) 0 0; }
  .neo-launch { right: 14px; bottom: 14px; }
  .neo-launch.on { display: none; }
  .neo-budget { white-space: normal; }
}
/* NEO in den Einstellungen (js/admin.js): Modell und Kontingente, Verbrauch, Dialog und Tonart */
.neo-check { display: flex; align-items: center; gap: 8px; font-size: 13px; margin: 2px 0 12px; cursor: pointer; }
.neo-check input { width: 16px; height: 16px; accent-color: var(--ink); }
.neo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 12px 18px; }
.neo-grid3 { grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); }
.neo-grid .field select, .neo-grid .field input { width: 100%; min-width: 0; }
.neo-grid select { height: 36px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--surface-2); padding: 0 8px; font: inherit; font-size: 13px; }
.neo-num { height: 34px; width: 100%; max-width: 160px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--surface-2); padding: 0 10px; font: inherit; font-size: 13px; font-variant-numeric: tabular-nums; }
.neo-num:focus, .neo-instr:focus { outline: none; border-color: var(--ink); background: #fff; }
.neo-h4 { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin: 18px 0 8px; }
.neo-over-t td { vertical-align: middle; }
.neo-over-t .neo-num { max-width: 120px; }
.neo-over-limit { color: var(--bad); font-weight: 600; }
.neo-save { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.neo-days { margin-top: 4px; }
.neo-models, .neo-rl { font-size: 12px; margin: 10px 0 0; }
.neo-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 8px; }
.neo-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface-2); cursor: pointer; }
.neo-opt.on { border-color: var(--ink); background: #fff; }
.neo-opt input { margin-top: 3px; accent-color: var(--ink); }
.neo-opt b { display: block; font-size: 13px; }
.neo-opt small { display: block; font-size: 12px; color: var(--ink-2); line-height: 1.4; margin-top: 2px; }
.neo-instr { width: 100%; resize: vertical; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface-2); padding: 8px 10px; font: inherit; font-size: 13px; line-height: 1.45; }
/* Stimme (Einstellungen → NEO, Teil 2) */
.neo-range { display: flex; align-items: center; gap: 10px; }
.neo-range input[type="range"] { flex: 1; min-width: 0; accent-color: var(--ink); }
.neo-range output { flex: none; min-width: 44px; text-align: right; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.neo-range-ends { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 2px; }
.neo-voice-row { display: flex; gap: 8px; align-items: center; }
.neo-voice-row select { flex: 1; }
.neo-voice-row .btn { flex: none; }

/* ---------- Eigene Dashboards (Entscheidung 81) ---------- */
.dash-body { display: grid; gap: 18px; }
.dash-notices:empty, .dash-editor-host:empty { display: none; }
.dash-bar-b { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; justify-content: space-between; }
.dash-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; font-size: 13px; }
.dash-meta-i { display: inline-flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.dash-chips, .dash-actions { display: inline-flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.dash-chip { padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); font-size: 12px; }
.dash-confirm { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; color: var(--bad); }
.btn.danger:not(.ghost) { background: var(--bad); border-color: var(--bad); color: #fff; } /* nur gefüllt („Ja, löschen“) – .btn.ghost.danger bleibt rote Schrift ohne Fläche */
.btn.sm.on { background: var(--accent); border-color: var(--accent-2); color: var(--ink); }
/* Kennzahl-Reihe: die Reihen der Module liegen als display: contents darin – gewählte Kacheln und Reihenfolge regelt das erzeugte CSS, Spalten js/dashboards.js */
.dash-kpis { display: grid; gap: 12px; grid-template-columns: repeat(var(--dk-cols, 4), minmax(0, 1fr)); }
.dash-kpis.off, .dash-kpis:empty { display: none; }
.dash-kpis > .kpis { display: contents; }
.dash-kpis .kpi { display: none; }
.dash-kpis .kpi.dash-dim, .dash-dim .kpi { opacity: .4; pointer-events: none; }
.dash-grid > .card { transition: opacity .2s; }
.dash-grid > .card.dash-dim { opacity: .4; pointer-events: none; }
.dash-pill { display: none; justify-self: center; padding: 4px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; }
.dash-pill.on { display: inline-block; }
/* Hosts der Module: außerhalb des Bildes, aber nicht display: none (Module prüfen offsetParent, bevor sie bei geänderten Annahmen neu zeichnen) */
.dash-fams { position: absolute; left: -200vw; top: 0; width: 1200px; height: 0; overflow: hidden; pointer-events: none; }
.dash-fams [data-info="app.push"], .dash-fams [data-info="app.push.plat"], .dash-fams .card-note { display: none; }
.dash-note .card-b p { margin: 0 0 6px; }
.dash-hint .card-b { text-align: center; padding: 28px 20px; }
.dash-new-b { display: flex; flex-wrap: wrap; gap: 10px; }
.dash-tbl { overflow-x: auto; }
.dash-tbl table { width: 100%; border-collapse: collapse; font-size: 13px; }
.dash-tbl th { text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.dash-tbl td { padding: 8px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.dash-tbl th.right, .dash-tbl td.right { text-align: right; }
.dash-tbl td.right .dash-actions { justify-content: flex-end; }
.dash-link { color: var(--ink); font-weight: 500; text-decoration: underline dotted 1.5px; text-underline-offset: 4px; }
.dash-link:hover { text-decoration-style: solid; }
.dash-desc { font-size: 12px; margin-top: 2px; }
.dash-empty { padding: 16px 8px; }
/* Editor */
.dash-ed-b { display: grid; gap: 16px; }
.dash-ed-row { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: flex-start; }
.dash-ed-row .field.grow { flex: 1 1 260px; }
.dash-ed input[type=text], .dash-ed input[type=search], .dash-ed input[type=date], .dash-ed textarea, .dash-ed select { font: inherit; font-size: 13px; padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface-2); color: var(--ink); width: 100%; box-sizing: border-box; }
.dash-ed textarea { resize: vertical; min-height: 38px; }
.dash-ed input:focus, .dash-ed textarea:focus, .dash-ed select:focus { border-color: var(--ink); background: #fff; outline: none; }
.dash-inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dash-inline input[type=date] { width: auto; }
.dash-det { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 6px 10px; min-width: 240px; flex: 1 1 240px; }
.dash-det summary { cursor: pointer; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.dash-det-n { font-size: 12px; }
.dash-chk { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 2px 12px; margin-top: 8px; max-height: 220px; overflow: auto; }
.dash-chk label, .dash-pick-i, .dash-share-i { display: flex; gap: 8px; align-items: baseline; font-size: 13px; padding: 3px 0; cursor: pointer; }
.dash-ed-cards { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; }
.dash-list { display: grid; gap: 6px; align-content: start; }
.dash-item { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface-2); font-size: 13px; }
.dash-item-n { min-width: 18px; text-align: right; font-size: 12px; }
.dash-item-t { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.dash-item select { width: auto; padding: 4px 6px; font-size: 12px; }
.dash-item .btn.sm { padding: 3px 8px; }
.dash-pick { max-height: 360px; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 6px 12px 10px; margin-top: 6px; }
.dash-pick-g h4 { margin: 10px 0 4px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.dash-pick-t { min-width: 0; overflow-wrap: anywhere; }
.dash-ed-foot { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line-2); padding-top: 12px; }
.dash-msg:empty { display: none; }
/* Teilen */
.dash-share { max-width: 560px; }
.dash-share-g { margin-top: 12px; display: grid; gap: 4px; }
.dash-share-g .lbl { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.dash-share-g input[type=search] { font: inherit; font-size: 13px; padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface-2); width: 100%; box-sizing: border-box; }
.dash-share-list { max-height: 240px; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 4px 10px; }
@media (max-width: 720px) {
  .dash-ed-cards { grid-template-columns: minmax(0, 1fr); }
  .dash-bar-b, .dash-ed-foot { justify-content: flex-start; }
  .dash-item { flex-wrap: wrap; }
}

/* ---------- Eigene Dashboards: Bearbeiten-Modus, Zauberstab, Verlauf (Entscheidung 82) ---------- */
.dash-icon { flex: none; }
.dash-edit-btn { display: inline-flex; align-items: center; gap: 6px; }
.toast .toast-act { margin-left: 12px; background: transparent; border: 1px solid rgba(255, 255, 255, .45); color: inherit; border-radius: 999px; padding: 2px 10px; font: inherit; font-size: 12px; cursor: pointer; }
.toast .toast-act:hover { background: rgba(255, 255, 255, .12); }
/* Leiste oben: klebt unter der Kopfleiste, solange man das Raster bearbeitet */
.dash-ed { position: sticky; top: 64px; z-index: 25; box-shadow: 0 8px 28px rgba(11, 11, 11, .08); }
.dash-ed .dash-ed-b { padding-top: 12px; padding-bottom: 12px; padding-right: 44px; } /* rechts Platz für ⓘ */
.dash-tools { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.dash-tools-m, .dash-tools-r { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dash-tools-l { display: grid; gap: 4px; min-width: 0; }
.dash-tools-l1 { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.dash-tools-l .dash-count { font-size: 12px; }
.dash-tools-r { margin-left: auto; }
.dash-tools-badge { display: inline-flex; gap: 6px; align-items: center; padding: 4px 12px 4px 10px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12.5px; }
.dash-tools-hint { font-size: 12.5px; }
.dash-sep { width: 1px; height: 22px; background: var(--line); margin: 0 2px; }
.dash-ic { display: inline-flex; align-items: center; justify-content: center; padding: 4px 8px; }
.dash-tg.on { background: var(--accent-soft); border-color: var(--ink); color: var(--ink); }
.dash-ed-panel { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 14px; display: grid; gap: 14px; }
.dash-ed-panel[hidden] { display: none; }
.dash-ed-catalog .dash-pick { max-height: 46vh; overflow: auto; }
@media (max-width: 720px) { .dash-ed { position: static; } .dash-tools-hint { display: none; } }
/* Karten im Bearbeiten-Modus: gestrichelter Rahmen, Inhalte nicht bedienbar (Diagramm-Hover, Reiter), Griff-Streifen oben über die ganze Breite
   (wie eine Titelleiste: dort ziehen, rechts Größe und Entfernen) – er liegt über dem Inhalt, nicht auf ihm, damit Reiter und ⓘ frei bleiben */
.dash-editing .dash-grid > .card, .dash-editing .dash-kpis .kpi { position: relative; outline: 1.5px dashed rgba(11, 11, 11, .2); outline-offset: 3px; transition: outline-color .15s, box-shadow .15s, opacity .15s; }
.dash-editing .dash-grid > .card:hover, .dash-editing .dash-kpis .kpi:hover, .dash-editing .dash-grid > .card:focus-within, .dash-editing .dash-kpis .kpi:focus-within { outline-color: var(--ink); }
.dash-editing .dash-grid > .card > .card-b, .dash-editing .dash-grid > .card > .card-h > :not(.dash-ctl), .dash-editing .dash-kpis .kpi > :not(.dash-ctl) { pointer-events: none; }
.dash-editing .dash-grid > .card { padding-top: 38px; }
.dash-editing .dash-kpis .kpi { padding-top: 46px; }
.dash-editing .dash-grid > .card > .info-btn.abs, .dash-editing .dash-kpis .kpi > .info-btn.abs { top: 44px; }
.dash-ctl { position: absolute; top: 0; left: 0; right: 0; height: 36px; z-index: 3; display: none; gap: 2px; align-items: center; padding: 0 5px 0 0; background: var(--surface-2); border-bottom: 1px solid var(--line); border-top-left-radius: inherit; border-top-right-radius: inherit; transition: background .15s; }
.dash-editing .dash-ctl, .dash-ghost .dash-ctl { display: flex; }
.dash-editing .dash-grid > .card:hover > .dash-ctl, .dash-editing .dash-kpis .kpi:hover > .dash-ctl, .dash-picked > .dash-ctl, .dash-ghost .dash-ctl { background: var(--accent-soft); }
.dash-ctl button { border: 0; background: transparent; border-radius: 999px; height: 28px; min-width: 28px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); font: inherit; font-size: 12px; cursor: pointer; }
.dash-ctl button:hover, .dash-ctl button:focus-visible { background: var(--surface-2); color: var(--ink); }
.dash-ctl button:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.dash-ctl .dash-rm:hover { color: var(--bad); background: var(--bad-soft); }
.dash-ctl .dash-size { font-variant-numeric: tabular-nums; min-width: 52px; border: 1px solid var(--line); }
.dash-ctl .dash-grip { flex: 1; min-width: 0; height: 100%; justify-content: flex-start; gap: 8px; padding: 0 12px; border-radius: 0; border-top-left-radius: inherit; cursor: grab; touch-action: none; color: var(--muted); }
.dash-ctl .dash-grip:hover, .dash-ctl .dash-grip:focus-visible { background: transparent; }
.dash-ctl .dash-grip:focus-visible { outline-offset: -3px; }
.dash-grip-t { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; opacity: 0; transition: opacity .15s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-ctl:hover .dash-grip-t, .dash-grip:focus-visible .dash-grip-t, .dash-picked .dash-grip-t { opacity: 1; }
@media (hover: none) { .dash-grip-t { opacity: 1; } }
/* Ziehkanten: rechts = Breite, unten = Höhe (nur Karten mit Diagramm), Ecke = beides */
.dash-rz { position: absolute; display: none; z-index: 2; touch-action: none; }
.dash-editing .dash-rz-x { display: block; top: 44px; bottom: 14px; right: -9px; width: 16px; cursor: ew-resize; }
.dash-editing .dash-has-chart > .dash-rz-y { display: block; left: 14px; right: 14px; bottom: -9px; height: 16px; cursor: ns-resize; }
.dash-editing .dash-has-chart > .dash-rz-xy { display: block; right: -9px; bottom: -9px; width: 20px; height: 20px; cursor: nwse-resize; }
.dash-rz::after { content: ''; position: absolute; background: var(--ink); border-radius: 3px; opacity: .22; transition: opacity .15s; }
.dash-rz-x::after { left: 6px; top: 50%; width: 4px; height: 40px; margin-top: -20px; }
.dash-rz-y::after { top: 6px; left: 50%; height: 4px; width: 40px; margin-left: -20px; }
.dash-rz-xy::after { right: 6px; bottom: 6px; width: 9px; height: 9px; background: transparent; border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink); border-radius: 0 0 3px 0; }
.dash-editing .dash-grid > .card:hover > .dash-rz::after, .dash-resizing > .dash-rz::after { opacity: .85; }
@media (max-width: 1100px) { .dash-editing .dash-rz-x, .dash-editing .dash-has-chart > .dash-rz-xy { display: none; } }
.dash-rz-badge { position: absolute; right: 14px; bottom: 14px; z-index: 4; background: var(--ink); color: #fff; font-size: 12px; padding: 3px 10px; border-radius: 999px; font-variant-numeric: tabular-nums; pointer-events: none; }
/* Ziehen: Platzhalter im Raster, schwebende Karte, Spaltenraster im Hintergrund */
.dash-drag-src { opacity: .38; outline: 2px dashed var(--ink) !important; }
.dash-ghost { position: fixed !important; left: 0; top: 0; margin: 0 !important; z-index: 300; padding-top: 38px; pointer-events: none; opacity: .97; box-shadow: 0 22px 60px rgba(11, 11, 11, .24) !important; transform-origin: 20% 10%; }
.dash-ghost.kpi { padding-top: 46px; }
.dash-ghost .dash-rz, .dash-ghost .dash-wand, .dash-ghost .dash-size, .dash-ghost .dash-rm { display: none !important; }
body.dash-dragging, body.dash-dragging * { cursor: grabbing !important; user-select: none; -webkit-user-select: none; }
body.dash-rz-x, body.dash-rz-x * { cursor: ew-resize !important; } body.dash-rz-y, body.dash-rz-y * { cursor: ns-resize !important; } body.dash-rz-xy, body.dash-rz-xy * { cursor: nwse-resize !important; }
body.dash-dragging .dash-editing .dash-grid { background-image: repeating-linear-gradient(90deg, rgba(11, 11, 11, .04) 0 calc((100% - 198px) / 12), transparent calc((100% - 198px) / 12) calc((100% - 198px) / 12 + 18px)); border-radius: var(--radius); }
.dash-picked, .dash-resizing { outline: 2px solid var(--ink) !important; box-shadow: 0 12px 34px rgba(11, 11, 11, .16) !important; }
.dash-flash { animation: dash-flash 1.8s ease-out; }
@keyframes dash-flash { 0%, 30% { box-shadow: 0 0 0 4px var(--accent), var(--shadow); } 100% { box-shadow: var(--shadow); } }
/* Größen-Menü */
.dash-menu { position: absolute; z-index: 310; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 40px rgba(11, 11, 11, .18); padding: 12px 14px; display: grid; gap: 8px; min-width: 240px; }
.dash-menu .lbl { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.dash-menu .seg button[disabled] { opacity: .35; cursor: not-allowed; }
.dash-menu-n { font-size: 12px; }
/* Zauberstab an der Karte: erscheint beim Überfahren neben ⓘ */
.dash-wand { order: 98; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin: -3px 0 0 4px; border-radius: 999px; border: 1px solid transparent; background: transparent; color: var(--ink-2); cursor: pointer; opacity: 0; transition: opacity .15s, background .15s, color .15s; }
.dash-grid > .card:hover .dash-wand, .dash-grid > .card:focus-within .dash-wand, .dash-wand-on .dash-wand { opacity: 1; }
.dash-wand:hover, .dash-wand:focus-visible, .dash-wand-on .dash-wand { background: var(--accent-soft); color: var(--ink); border-color: var(--line); }
.dash-wand:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.dash-editing .dash-wand { display: none; }
@media (hover: none) { .dash-wand { opacity: 1; } }
/* Vorschau an der Karte */
.dash-grid > .card.dash-preview { position: relative; outline: 2px solid var(--ink); outline-offset: 3px; }
.dash-grid > .card.dash-preview::before { content: 'Vorschau'; position: absolute; top: -12px; left: 18px; z-index: 3; background: var(--accent); color: var(--ink); border: 1px solid var(--ink); border-radius: 999px; padding: 1px 9px; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; }
/* Fenster des Zauberstabs */
.dash-wand-pop { position: fixed; z-index: 260; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 70px rgba(11, 11, 11, .24); padding: 14px 16px 16px; display: grid; gap: 14px; max-height: calc(100vh - 24px); overflow: auto; animation: dw-in .16s ease-out; }
@keyframes dw-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .dash-wand-pop, .dash-flash { animation: none; } }
.dw-h { display: flex; gap: 10px; align-items: center; }
.dw-h .grow { flex: 1; min-width: 0; } .dw-h b { display: block; font-weight: 500; overflow-wrap: anywhere; }
.dw-logo { width: 28px; height: 28px; flex: none; border-radius: 999px; background: radial-gradient(circle at 50% 50%, var(--accent) 0 34%, var(--ink) 36%); box-shadow: 0 0 0 3px var(--accent-soft); }
.dw-sec { display: grid; gap: 7px; }
.dw-sec > .lbl { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.dw-chips { display: flex; flex-direction: column; gap: 6px; }
.dw-chip { display: flex; gap: 8px; align-items: center; width: 100%; border: 1px solid var(--line); background: var(--surface-2); border-radius: 12px; padding: 8px 12px; font: inherit; font-size: 13px; color: var(--ink); cursor: pointer; text-align: left; transition: border-color .15s, background .15s; }
.dw-chip:hover, .dw-chip:focus-visible { border-color: var(--ink); background: var(--accent-soft); }
.dw-chip .dash-icon { color: var(--ink-2); }
.dw-ask { display: flex; gap: 8px; align-items: flex-end; border: 1px solid var(--line); border-radius: 14px; padding: 6px 6px 6px 12px; background: var(--surface-2); }
.dw-ask:focus-within { border-color: var(--ink); background: #fff; }
.dw-ask textarea { flex: 1; border: 0; background: transparent; resize: none; font: inherit; font-size: 13px; line-height: 1.4; min-height: 40px; outline: none; color: var(--ink); padding: 4px 0; }
.dw-ask textarea:disabled { color: var(--muted); }
.dw-send { width: 34px; height: 34px; padding: 0; border-radius: 999px; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; }
.dw-res { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.dw-res[hidden] { display: none; }
.dw-status { display: flex; gap: 8px; align-items: center; font-size: 12.5px; }
.dw-spin { width: 12px; height: 12px; flex: none; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--ink); animation: dw-spin .8s linear infinite; }
@keyframes dw-spin { to { transform: rotate(360deg); } }
.dw-answer { font-size: 13px; line-height: 1.5; white-space: pre-line; }
.dw-sum { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; font-size: 13px; }
.dw-badge { background: var(--accent); border: 1px solid var(--ink); border-radius: 999px; padding: 1px 8px; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; }
.dw-checks { list-style: none; margin: 0; padding: 10px 12px; display: grid; gap: 5px; font-size: 12.5px; background: var(--surface-2); border-radius: 12px; }
.dw-checks li { display: flex; gap: 8px; align-items: baseline; }
.dw-checks .ok .dw-ck { color: var(--good); font-weight: 600; }
.dw-checks .bad { color: var(--bad); } .dw-checks .bad .dw-ck { font-weight: 600; }
.dw-acts { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.dw-err { color: var(--bad); font-size: 13px; }
/* Tabelle als Darstellung eines Diagramms (js/charts.js, Ansicht „Tabelle“) */
.chart-table { max-height: 420px; overflow: auto; }
.chart-table .mini-table { width: 100%; }
.chart-table thead th { position: sticky; top: 0; background: var(--surface); z-index: 1; }
/* Verlauf eines Dashboards */
.dash-log { display: grid; gap: 12px; max-height: 62vh; overflow: auto; }
.dash-log-i { border-bottom: 1px solid var(--line-2); padding-bottom: 10px; }
.dash-log-h { font-size: 13px; }
.dash-log-l { font-size: 12.5px; color: var(--ink-2); margin-top: 3px; overflow-wrap: anywhere; }
.st-dl-lines div { font-size: 12px; }

/* ---------- Sammelüberweisungen (Entscheidung 85): Karte in „Daten“, Prüfliste im Vollbild, Herleitung, Kundenansicht ---------- */
.tf-card.tf-dim .card-b { opacity: .55; transition: opacity .2s; }
.tf-card .card-b { display: grid; gap: 14px; }
.tf-card .kpis { margin: 0; }
.tf-card .kpi.tf-k-bad .v, .cd-tile.tf-t-bad .v { color: var(--bad); }
.cd-tile.tf-t-warn .u { color: #8a6408; }
.tf-scroll { overflow-x: auto; }
.tf-runs td, .tf-erp td { vertical-align: top; }
.tf-runs td small, .tf-erp td small { display: block; font-size: 11px; line-height: 1.35; }
.tf-runs tr.tf-gone td { color: var(--muted); }
.tf-acts { white-space: nowrap; text-align: right; }
.tf-acts .btn + .btn { margin-left: 6px; }
.tf-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; cursor: pointer; }
.tf-link:hover, .tf-link:focus-visible { text-decoration-color: var(--ink); }
.tf-link.r { display: block; margin-left: auto; text-align: right; font-variant-numeric: tabular-nums; }
.tf-st { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px; white-space: nowrap; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); }
.tf-st.open { background: #fdf3dc; border-color: rgba(184, 134, 11, .35); color: #8a6408; }
.tf-st.done { background: var(--good-soft); border-color: rgba(0, 99, 0, .25); color: var(--good); }
.tf-st.discarded { color: var(--muted); text-decoration: line-through; }
.tf-sum { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px; }
.tf-b { font-size: 11px; padding: 0 6px; border-radius: 5px; border: 1px solid var(--line); background: var(--surface-2); font-variant-numeric: tabular-nums; }
.tf-b.ok { color: var(--good); } .tf-b.warn { color: #8a6408; } .tf-b.severe { color: var(--bad); border-color: rgba(196, 59, 59, .35); }
.tf-ok { color: var(--good); } .tf-warn { color: #8a6408; }
.tf-note, .tf-empty { margin: 0; }
.tf-sec { margin-top: 4px; }
.tf-head-acts { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.tf-table td.neg, .tf-table td .neg, .tf-detail .neg, .cu-dl small.neg { color: var(--bad); }
.tf-table td.tf-ok { color: var(--good); }
.tf-table tr.tf-row { cursor: pointer; }
.tf-table tr.tf-row:hover td { background: var(--surface-2); }
.tf-table tr.tf-row.severe td:first-child { box-shadow: inset 3px 0 0 var(--bad); }
.tf-table tr.tf-row.warn td:first-child { box-shadow: inset 3px 0 0 var(--warn); }
.tf-table td.tf-holder { min-width: 120px; max-width: 220px; }
.tf-table td.tf-holder.warn { color: #8a6408; }
.tf-table td.tf-codes { min-width: 150px; max-width: 260px; }
.tf-res { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px; white-space: nowrap; border: 1px solid var(--line); }
.tf-res.ok { background: var(--good-soft); color: var(--good); border-color: transparent; }
.tf-res.warn { background: #fdf3dc; color: #8a6408; border-color: transparent; }
.tf-res.severe { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.tf-vcard { padding: 0; overflow: hidden; }
.tf-verdict { padding: 14px 18px; border-left: 4px solid var(--good); display: grid; gap: 8px; }
.tf-verdict.warn { border-left-color: var(--warn); } .tf-verdict.severe { border-left-color: var(--bad); }
.tf-verdict p { margin: 0; }
.tf-v-h { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.tf-findings { margin: 0; padding-left: 18px; display: grid; gap: 3px; font-size: 12.5px; }
.tf-findings li.sev b { color: var(--bad); }
.tf-ledger td { font-variant-numeric: tabular-nums; }
.tf-ledger td small { display: block; }
.tf-ledger tr.tf-sumrow td { font-weight: 600; border-top: 1px solid var(--line); }
.tf-ledger tr.tf-sumrow.ok td:last-child { color: var(--good); } .tf-ledger tr.tf-sumrow.bad td:last-child { color: var(--bad); }
.tf-ledger tr.tf-pay td { background: var(--surface-2); }
.tf-ledger tr.fut td { color: var(--muted); }
.tf-ledger-box { max-height: 420px; overflow-y: auto; margin-top: 10px; }
.tf-paynote { margin: 8px 0 0; font-size: 12px; }
.tf-chart { min-height: 170px; }
.tf-dlg p { margin: 0; }
.cu-tl-grp.pay i { background: #4a3aa7; }
.cu-time .ev-payout { fill: none; stroke: #4a3aa7; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cu-time .ev-payout.p-storno { stroke: var(--bad); }
.cu-time .ev-transfer { fill: #4a3aa7; stroke: var(--surface); stroke-width: 1.5; }
.cu-time .ev-transfer.p-open { fill: var(--surface); stroke: #4a3aa7; stroke-width: 1.4; stroke-dasharray: 2 1.5; }
@media (max-width: 720px) {
  .tf-acts { white-space: normal; text-align: left; }
  .tf-acts .btn { margin: 0 6px 6px 0; }
  .tf-acts .btn + .btn { margin-left: 0; }
}
.up-note .up-tf-open { margin-left: 10px; vertical-align: middle; }
/* Buchungsgründe eines Überweisungslaufs (28.10.2026): Link ganz rechts je Zeile, Vollbild mit Wasserfall, Eingang/Ausgang, Hauptgrund, Betreff, Tabelle */
.tf-why { text-align: right; white-space: nowrap; }
.tf-why-l { font-size: 12.5px; }
.tf-rz-body { padding: 0 22px 28px; }
.tf-rz { grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); }
.tf-rz-col { display: grid; gap: 12px; align-content: start; min-width: 0; }
.tf-rz-tbl td.r, .tf-rz-tbl th.r { white-space: nowrap; }
.tf-rz .neg { color: var(--bad); }
.tf-rz .cd-table td:nth-child(2) { min-width: 0; }
.tf-rz .cd-table thead th { position: static; }
.tf-rz-tbl tr.tf-rz-p td { border-top: 1px solid var(--line); background: var(--surface-2); }
.tf-rz-tbl tr.tf-rz-k td:first-child { padding-left: 22px; }
.tf-rz-tbl td:first-child { min-width: 220px; }
.tf-rz-wf, .tf-rz-tn, .tf-rz-main { min-height: 120px; }
.tf-rz-sub { margin-top: 14px; }
.cd-tile.tf-t-in { box-shadow: inset 3px 0 0 #2a78d6; }
.cd-tile.tf-t-out { box-shadow: inset 3px 0 0 #eb6834; }
.cd-tile.tf-t-text .v { font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .tf-rz-body { padding: 0 12px 20px; }
  .tf-rz-tbl td:first-child { min-width: 160px; }
}
/* Sammelüberweisungen: Prüfstatus je Überweisung (28.10.2026) – Fortschritt in der Karte, Kachel der Prüfliste, Auswahl in der Herleitung */
.tf-runs td small.tf-rvp { color: var(--ink-2); }
.tf-runs td small.tf-rvp.bad { color: var(--bad); }
.tf-runs td small.tf-rvp.done { color: var(--good); }
.cd-tile.tf-t-ok .v { color: var(--good); }
.tf-v-rv { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.tf-v-rv > b { font-size: 12.5px; }
.tf-v-rv > small { flex: 1 1 240px; font-size: 11.5px; }
.tf-dlg .tf-rvp-d { margin: 0; font-size: 12.5px; }
/* Prüfliste mit Spalte „Prüfstatus“ bei 1.440 px ohne Querscrollen: Überschriften dürfen umbrechen, Beträge bleiben einzeilig */
.tf-table thead th { white-space: normal; vertical-align: bottom; }
.tf-table td:nth-child(2) { min-width: 140px; }
.tf-table td.r { white-space: nowrap; }
.tf-table td.r small { white-space: normal; }
.tf-table td small .nowrap { white-space: nowrap; }

/* ---------- Menü Reporting · Business (Entscheidung 86, 29.10.2026) ---------- */
/* Seiten der Gruppe (js/shell.js [data-groupnav]) wie bisher als Pillen; Reiter einer Seite ([data-pagetabs]) als Unterstrich-Reiter darunter */
.groupnav[hidden], .pagetabs[hidden] { display: none; }
.groupnav { margin-bottom: 6px; }
.pagetabs { display: flex; gap: 2px 18px; flex-wrap: wrap; margin: 0 0 10px; padding: 0 4px; border-bottom: 1px solid var(--line); }
.pagetabs a { padding: 7px 2px 8px; font-size: 13px; text-decoration: none; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.pagetabs a:hover { color: var(--ink); }
.pagetabs a.on { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }
.pagetabs a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.topbar-link { padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.topbar-link:hover { color: var(--ink); border-color: var(--ink); }
.topbar-link.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.topbar-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* Übersicht: Kacheln öffnen ihre Seite */
.kpi.kpi-link { cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.kpi.kpi-link:hover { border-color: var(--ink); box-shadow: 0 2px 10px rgba(11, 11, 11, .08); }
.kpi.kpi-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* Seiten aus mehreren Modulen: Abstand zwischen den Teilen */
.co-part + .co-part { margin-top: 18px; }
.co-part:empty { display: none; }
#co-actions .btn, #bz-actions .btn { text-decoration: none; }
#co-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.wf-ch { font: inherit; font-size: 13px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); max-width: 220px; }
/* Listen eingebettet statt Vollbild (Business): gleiche Bausteine wie .cd-overlay, als Karte in der Seite */
.cd-inline > .cd-box { position: relative; inset: auto; height: max(560px, calc(100vh - 150px)); border: 1px solid var(--line); box-shadow: none; }
.bz-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.bz-tbl { max-height: 70vh; overflow: auto; }
.bz-tbl th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
.bz-tbl th.sortable:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
@media (max-width: 720px) {
  .cd-inline > .cd-box { height: auto; min-height: 480px; }
  .pagetabs { gap: 2px 12px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .pagetabs a { white-space: nowrap; }
}

/* ---------- Business › Bundles (Entscheidung 87, 29.10.2026): Liste und Bundle-Builder (js/bundles.js) ---------- */
.bd-tbl td.name a { font-weight: 600; color: var(--ink); text-decoration: none; }
.bd-tbl td.name a:hover { text-decoration: underline; }
.bd-tbl td small { display: block; color: var(--muted); font-size: 11px; }
.fx-badge.bd-st.info { border-color: var(--accent-ink); background: var(--accent-soft); color: var(--ink); }
.bd-head .card-b, .bd-head { padding: 0; }
.bd-bar { display: flex; align-items: flex-start; gap: 12px 18px; flex-wrap: wrap; padding: 14px 20px; }
.bd-bar .grow { flex: 1 1 320px; min-width: 0; }
.bd-back { font-size: 12.5px; color: var(--ink-2); text-decoration: none; }
.bd-back:hover { color: var(--ink); text-decoration: underline; }
.bd-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 2px; }
.bd-title h2 { font-size: 20px; font-weight: 400; margin: 0; overflow-wrap: anywhere; }
.bd-dirty { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--accent); color: var(--ink); }
.bd-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.bd-msgs:empty { display: none; }
.bd-msgs { margin: 10px 0; }
.bd-errs { font-size: 12.5px; margin: 6px 0; padding: 6px 10px; border-radius: 8px; background: var(--bad-soft); color: var(--bad); }
.bd-errs summary { cursor: pointer; }
.bd-errs ul { margin: 6px 0 2px 18px; padding: 0; }
.bd-errs a { color: var(--bad); }
.bd-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: 18px; align-items: start; margin-top: 14px; }
.bd-main { display: grid; gap: 14px; min-width: 0; }
.bd-side { display: grid; gap: 14px; position: sticky; top: 76px; min-width: 0; }
.bd-sec .card-b { display: grid; gap: 12px; }
.bd-f { display: grid; gap: 4px; min-width: 0; }
.bd-f > .lbl, .bd-store > .lbl { font-size: 11px; line-height: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.bd-f > .lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* einzeilig – sonst rutscht das Feld unter einer umbrochenen Beschriftung tiefer */
.bd-f > small { font-size: 11.5px; }
.bd-in { font: inherit; font-size: 13px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--ink); width: 100%; min-width: 0; box-sizing: border-box; }
/* eine Höhe für Text-, Zahl-, Datums- und Auswahlfelder (Datumsfelder sind sonst höher; die Tarif-Liste mit size bleibt mehrzeilig) */
input.bd-in, select.bd-in:not([size]) { height: 34px; }
textarea.bd-in { resize: vertical; line-height: 1.45; }
.bd-in:focus { outline: 2px solid var(--ink); outline-offset: 1px; background: var(--surface); }
.bd-in:disabled { color: var(--ink-2); background: var(--surface); }
.bd-row { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-start; } /* oben: Beschriftung und Feld auf einer Linie, Hinweise darunter verschieben nichts */
.bd-row > .bd-chk { min-height: 34px; margin-top: 18px; } /* Häkchen auf Höhe der Felder (unter der Beschriftung) */
.bd-store > .bd-row { align-items: center; }           /* Store-Link und „Abrufen“ ohne Beschriftung */
.bd-row > .bd-f { flex: 1 1 160px; }
.bd-row > .bd-f.bd-sm { flex: 0 1 120px; }
.bd-row > .bd-in { flex: 1 1 220px; width: auto; }
.bd-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bd-list { display: grid; gap: 10px; }
.bd-item { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 10px 12px 12px; background: var(--surface-2); display: grid; gap: 10px; }
.bd-item-h { display: flex; align-items: center; gap: 8px; }
.bd-item-h b { flex: 1; font-size: 13px; overflow-wrap: anywhere; }
.bd-chk { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.bd-multi { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 4px 12px; padding: 8px 0 2px; max-height: 220px; overflow: auto; }
.bd-det summary { cursor: pointer; font-size: 13px; color: var(--ink-2); }
.bd-tsel { min-height: 150px; }
.bd-tinfo { font-size: 13px; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line-2); overflow-wrap: anywhere; }
.bd-tinfo .muted { font-size: 12px; margin-top: 2px; }
.bd-feat { margin: 6px 0 4px 18px; padding: 0; font-size: 12.5px; }
.bd-store { display: grid; gap: 6px; min-width: 0; }
.bd-store small.neg { color: var(--bad); }
.bd-app { display: flex; gap: 10px; align-items: flex-start; padding: 8px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); min-width: 0; }
.bd-app img, .bd-app-ph { width: 48px; height: 48px; border-radius: 11px; flex: none; object-fit: cover; }
.bd-app-ph { display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.bd-app .grow { min-width: 0; }
.bd-app b { font-size: 13px; overflow-wrap: anywhere; }
.bd-app .muted { font-size: 11.5px; }
.bd-app-d { font-size: 11.5px; color: var(--ink-2); margin-top: 3px; overflow-wrap: anywhere; }
.bd-pv { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 12px 14px; display: grid; gap: 6px; position: relative; }
.bd-pv.hl { border-color: var(--accent-2); background: linear-gradient(135deg, var(--accent-soft), #fff 70%); }
.bd-pv-img { width: 100%; max-height: 140px; object-fit: cover; border-radius: 8px; }
.bd-pv-badge { justify-self: start; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; padding: 1px 7px; border-radius: 999px; background: var(--accent); }
.bd-pv-t { font-size: 15px; overflow-wrap: anywhere; }
.bd-pv ul { margin: 2px 0 0 18px; padding: 0; font-size: 12.5px; display: grid; gap: 2px; }
.bd-pv li { overflow-wrap: anywhere; }
.bd-pv-p { font-size: 12.5px; font-weight: 600; }
.bd-ctbl td.name { white-space: normal; overflow-wrap: anywhere; }
.bd-ctbl td.r { white-space: nowrap; }
.bd-ctbl td.neg { color: var(--bad); }
.bd-ctbl tr.total td { font-weight: 600; border-top: 1px solid var(--line); }
.bd-cnote { font-size: 11.5px; margin: 8px 0 0; }
.bd-cal { margin: 0; padding: 0 0 0 18px; display: grid; gap: 6px; font-size: 12.5px; }
.bd-cal li { overflow-wrap: anywhere; }
.bd-vers { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
.bd-vers .lbl { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.bd-log { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 12.5px; max-height: 320px; overflow: auto; }
.bd-log .muted { font-size: 11.5px; }
[data-path].bd-bad, .bd-item[data-path].bd-bad { border-color: var(--bad) !important; box-shadow: 0 0 0 1px var(--bad); }
@media (max-width: 1100px) {
  .bd-layout { grid-template-columns: minmax(0, 1fr); }
  .bd-side { position: static; }
}
@media (max-width: 720px) {
  .bd-two { grid-template-columns: minmax(0, 1fr); }
  .bd-bar { padding: 12px 14px; }
}

/* ---------- Auto-Save (Entscheidung 88, 02.11.2026): Stand des automatischen Sicherns und Hinweis „Wiederherstellen · Verwerfen“ (js/autosave.js) ---------- */
.as-st { font-size: 12px; color: var(--muted); }
.as-st.as-saved, .as-st.as-copy { color: var(--good); }
.as-st.as-error, .as-st.as-sql { color: var(--bad); }
.as-st[hidden] { display: none; }
.as-banner { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; padding: 10px 14px; margin: 10px 0; border-radius: 10px;
  background: var(--accent-soft); border: 1px solid var(--accent-ink); font-size: 13px; }
.as-banner .grow { flex: 1 1 320px; min-width: 0; }
.as-banner b { display: block; margin-bottom: 2px; }
.as-banner .muted { color: var(--ink-2); }
.as-banner .as-note { margin-top: 4px; font-size: 12.5px; color: var(--warn); }
.as-banner .as-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.assump-bar .as-banner { flex: 1 1 100%; margin: 0 0 4px; }
.bd-as:empty, .dash-as:empty, .pr-as:empty { display: none; }
.bd-auto { font-size: 12px; margin-top: 2px; }
.bd-auto .as-st { margin-left: 2px; }

/* ---------- MailerSend (Entscheidung 89, 02.11.2026): Test-E-Mail in der Integrationskarte (js/admin.js) ---------- */
.int-mail .st-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.int-mail-msg { font-size: 12.5px; margin: 8px 0 0; overflow-wrap: anywhere; }
.int-mail-msg:empty { display: none; }
.int-mail-msg.pos { color: var(--good); }
.int-mail-msg.neg { color: var(--bad); }

/* ---------- Zeitraum mit Vergleich (Entscheidung 90, 03.11.2026): Zeitleiste, Kalender (js/period.js), Trend an den Kacheln, Band in Verlaufscharts ---------- */
.timebar .tb-period { display: flex; align-items: center; gap: 4px; }
.timebar .tb-pbtn { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font-size: 13px; font-weight: 500; }
.timebar .tb-pbtn:hover, .timebar .tb-pbtn:focus-visible { border-color: var(--ink); }
.timebar.period .tb-pbtn { background: var(--accent-soft); border-color: var(--accent-ink); }
.timebar svg.tb-cal { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.timebar .tb-pclear { font-size: 18px; line-height: 1; width: 30px; height: 30px; }
.timebar .tb-pclear[hidden], .timebar .tb-step[hidden] { display: none; }
.timebar.period .tb-label b { font-size: 16px; }
.timebar .tb-track { position: relative; display: flex; align-items: center; }
.timebar .tb-bands { position: absolute; left: 8px; right: 8px; top: 50%; height: 14px; transform: translateY(-50%); pointer-events: none; }
.timebar .tb-band { position: absolute; top: 0; height: 100%; border-radius: 4px; }
.timebar .tb-band[hidden] { display: none; }
.timebar .tb-band.sel { background: var(--accent); box-shadow: inset 0 0 0 1px var(--accent-ink); }
.timebar .tb-band.cmp { background: repeating-linear-gradient(135deg, rgba(139, 137, 131, .38) 0 3px, rgba(139, 137, 131, .14) 3px 6px); }
.timebar .tb-track input[type=range] { position: relative; }

.kpi .trend { font-size: 12px; margin-top: 4px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; color: var(--muted); }
.kpi .trend b { font-weight: 600; white-space: nowrap; }
.kpi .trend span { font-size: 11px; color: var(--muted); }
.kpi .trend.good b { color: var(--good); }
.kpi .trend.bad b { color: var(--bad); }
.kpi .trend.neutral b { color: var(--ink-2); }
.kpi .trend.none b { color: var(--muted); }
.kpi .trend.none span { font-style: italic; }

.period-band { fill: var(--accent); opacity: .26; pointer-events: none; }
.period-band.cmp { fill: #8b8983; opacity: .14; }

.pp-back { position: fixed; inset: 0; z-index: 86; background: rgba(11, 11, 11, .12); }
.pp-pop { position: fixed; z-index: 87; width: 780px; max-width: calc(100vw - 16px); max-height: calc(100vh - 16px); overflow: auto; background: var(--surface); border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(11, 11, 11, .24); padding: 16px 18px 14px; display: grid; gap: 12px; }
.pp-pop.narrow { left: 8px; right: 8px; top: 8px; width: auto; }
.pp-head { display: flex; align-items: flex-start; gap: 12px; }
.pp-head h3 { margin: 2px 0 4px; font-size: 18px; font-weight: 400; }
.pp-lead { font-size: 12.5px; }
.pp-body { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; }
.pp-pop.narrow .pp-body { grid-template-columns: minmax(0, 1fr); }
.pp-presets { display: flex; flex-direction: column; gap: 4px; }
.pp-pop.narrow .pp-presets { flex-direction: row; flex-wrap: wrap; }
.pp-presets .lbl, .pp-cmp .lbl { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.pp-preset { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 1px; padding: 6px 9px; border-radius: 8px; border: 1px solid transparent; background: none; font: inherit; font-size: 13px; color: var(--ink); cursor: pointer; }
.pp-preset small { font-size: 11px; color: var(--muted); }
.pp-preset:hover, .pp-preset:focus-visible { background: var(--surface-2); border-color: var(--line); outline: none; }
.pp-cal { min-width: 0; display: grid; gap: 8px; }
.pp-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pp-nav .pp-arrow { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; transition: background .15s, border-color .15s; }
.pp-nav .pp-arrow svg { width: 16px; height: 16px; display: block; }
.pp-nav .pp-arrow:hover:not([disabled]) { background: var(--surface-2); border-color: var(--ink); }
.pp-nav .pp-arrow:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.pp-nav .pp-arrow[disabled] { color: #c9c7c0; border-color: var(--line); cursor: default; }
.pp-jump { display: flex; gap: 6px; }
.pp-jump select { height: 30px; border-radius: 7px; border: 1px solid var(--line); background: var(--surface-2); padding: 0 8px; font-size: 13px; }
.pp-months { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.pp-pop.narrow .pp-months { grid-template-columns: minmax(0, 1fr); }
.pp-mname { font-size: 13px; font-weight: 600; margin-bottom: 6px; text-align: center; }
.pp-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px 0; }
.pp-wd { font-size: 10.5px; color: var(--muted); text-align: center; padding: 2px 0 4px; }
.pp-day { position: relative; height: 36px; border: 0; background: none; font: inherit; font-size: 13px; color: var(--ink); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border-radius: 0; }
.pp-day .pp-n { width: 28px; height: 22px; line-height: 22px; border-radius: 7px; }
.pp-day:hover:not([disabled]) .pp-n { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.pp-day:focus-visible { outline: none; }
.pp-day:focus-visible .pp-n { box-shadow: inset 0 0 0 2px var(--ink); }
.pp-day[disabled] { color: #c9c7c0; cursor: default; }
.pp-day.cmp { background: repeating-linear-gradient(135deg, rgba(139, 137, 131, .26) 0 3px, rgba(139, 137, 131, .08) 3px 6px); }
.pp-day.cmp.cstart { border-top-left-radius: 9px; border-bottom-left-radius: 9px; }
.pp-day.cmp.cend { border-top-right-radius: 9px; border-bottom-right-radius: 9px; }
.pp-day.sel, .pp-day.hov { background: var(--accent-soft); }
.pp-day.hov.hstart { border-top-left-radius: 9px; border-bottom-left-radius: 9px; }
.pp-day.hov.hend { border-top-right-radius: 9px; border-bottom-right-radius: 9px; }
.pp-day.sel.start { border-top-left-radius: 9px; border-bottom-left-radius: 9px; }
.pp-day.sel.end { border-top-right-radius: 9px; border-bottom-right-radius: 9px; }
.pp-day.start .pp-n, .pp-day.end .pp-n { background: var(--ink); color: #fff; font-weight: 600; }
.pp-day.max .pp-n { box-shadow: inset 0 0 0 1.5px var(--accent-ink); }
.pp-dots { display: flex; gap: 2px; height: 5px; }
.pp-dots i { width: 5px; height: 5px; border-radius: 50%; display: block; }
.pp-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 11.5px; color: var(--ink-2); }
.pp-leg { display: inline-flex; align-items: center; gap: 5px; }
.pp-leg i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.pp-leg i.pp-maxdot { border-radius: 3px; background: none; box-shadow: inset 0 0 0 1.5px var(--accent-ink); width: 11px; height: 11px; }
.pp-leg i.pp-selbox { border-radius: 3px; background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-ink); width: 14px; height: 10px; }
.pp-leg i.pp-cmpbox { border-radius: 3px; background: repeating-linear-gradient(135deg, rgba(139, 137, 131, .45) 0 3px, rgba(139, 137, 131, .12) 3px 6px); width: 14px; height: 10px; }
.pp-cmp { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.pp-cmpinfo { font-size: 12.5px; color: var(--ink-2); }
.pp-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.pp-sum { font-size: 13px; }
.pp-acts { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 720px) {
  .timebar .tb-period { order: 3; }
  .pp-day { height: 34px; }
}

/* ===================== Release-Mail (Entscheidung 91): Schalter, Einstellungen → E-Mails, Profil ===================== */
.tgl { position: relative; flex: none; width: 40px; height: 22px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); cursor: pointer; padding: 0; transition: background .15s, border-color .15s; vertical-align: middle; }
.tgl i { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(11, 11, 11, .25); transition: transform .15s; }
.tgl.on { background: var(--ink); border-color: var(--ink); }
.tgl.on i { transform: translateX(18px); background: var(--accent); }
.tgl:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.tgl[disabled] { opacity: .45; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) { .tgl, .tgl i { transition: none; } }
.st-users td.st-mailsw { text-align: center; }
.st-users td, .st-users th { padding-left: 6px; padding-right: 6px; } /* 9 Spalten seit der Release-Mail (Entscheidung 91) */
.st-users th.st-mailh { white-space: normal; min-width: 0; width: 56px; } /* „Release-“/„Mail“ zweizeilig: hält die Tabelle bei 1.440 px ohne seitliches Scrollen */
.warn-box { background: #fdf5dc; border: 1px solid rgba(184, 134, 11, .35); color: #6b4f05; border-radius: var(--radius-s); padding: 10px 12px; font-size: 13px; margin: 0 0 14px; }
.err-text { color: var(--bad); }
.ml-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ml-field input[type=text], .ml-field input[type=url], .ml-field input[type=email], .ml-field select, .ml-testrow input {
  height: 36px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface-2); padding: 0 10px; font: inherit; font-size: 13.5px; color: var(--ink); min-width: 0; }
.ml-field small { font-size: 11.5px; line-height: 1.4; }
.ml-sched { display: grid; grid-template-columns: minmax(200px, 1fr) 170px 150px minmax(260px, 2fr); gap: 14px 18px; align-items: start; }
.ml-swrow { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: 13.5px; }
.ml-sched-info { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin-top: 18px; padding: 14px 16px; border-radius: var(--radius-s); background: var(--surface-2); border: 1px solid var(--line-2); }
.ml-sched-info > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ml-sched-info b { font-weight: 500; font-size: 15px; }
.ml-sched-info small { font-size: 12px; }
.ml-run { display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.ml-run small { flex: 1 1 320px; font-size: 12px; }
.ml-savebar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-2); font-size: 12.5px; }
.ml-acts { display: flex; gap: 8px; align-items: center; }
.ml-editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.ml-left, .ml-right { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ml-html { width: 100%; min-height: 520px; resize: vertical; border: 1px solid var(--line); border-radius: var(--radius-s); background: #121212; color: #e8e6df; padding: 12px 14px;
  font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; tab-size: 2; white-space: pre; overflow: auto; }
.ml-html:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.ml-under { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ml-vars { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ml-vars .lbl { margin-right: 4px; }
.ml-var { border: 1px solid var(--line); background: var(--surface-2); border-radius: 999px; padding: 3px 9px; font: 11.5px ui-monospace, SFMono-Regular, Menlo, monospace; cursor: pointer; color: var(--ink-2); }
.ml-var:hover { background: var(--accent-soft); border-color: var(--accent-2); color: var(--ink); }
.ml-var.req { border-color: var(--ink); color: var(--ink); }
.ml-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; }
.ml-checks li::before { content: '✓ '; font-weight: 700; }
.ml-checks li.err { color: var(--bad); } .ml-checks li.err::before { content: '✕ '; }
.ml-checks li.warn { color: var(--warn); } .ml-checks li.warn::before { content: '! '; }
.ml-checks li.ok { color: var(--good); }
.ml-ptool { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ml-pname { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.ml-pname input { height: 30px; width: 130px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface-2); padding: 0 8px; font: inherit; }
.ml-pbox { border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--bg-2); overflow: hidden; }
.ml-pmeta { display: flex; gap: 10px; align-items: baseline; padding: 9px 12px; background: var(--surface); border-bottom: 1px solid var(--line-2); font-size: 13px; }
.ml-psubj { font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.ml-frame { display: block; width: 100%; height: 640px; border: 0; background: #f3f0e8; margin: 0 auto; transition: width .2s; }
.ml-frame.mobile { width: 390px; max-width: 100%; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.ml-test { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: var(--radius-s); background: var(--surface-2); border: 1px solid var(--line-2); }
.ml-testrow { display: flex; gap: 8px; }
.ml-testrow input { flex: 1 1 auto; background: var(--surface); }
.ml-test-out { font-size: 12.5px; min-height: 1em; overflow-wrap: anywhere; }
.ml-test-out.ok { color: var(--good); } .ml-test-out.err { color: var(--bad); }
.ml-test small { font-size: 11.5px; line-height: 1.4; }
.ml-logtools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ml-chk { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; cursor: pointer; }
.ml-chart { margin-bottom: 16px; }
.ml-chart .chart { margin-top: 6px; }
.ml-issues tr.ml-row { cursor: pointer; }
.ml-issues tr.ml-row:hover td, .ml-issues tr.ml-row.on td { background: var(--accent-soft); }
.ml-issues tr.ml-row:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: -2px; }
.ml-issues tr.ml-detail > td { background: var(--surface-2); padding: 12px 14px 16px; white-space: normal; }
.ml-detailbox .ml-dhead { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; margin-bottom: 10px; font-size: 13px; }
.ml-detailbox .ml-dhead small { flex-basis: 100%; font-size: 12px; }
.ml-dels td.name b { display: block; font-weight: 500; }
.ml-dels td.name small { display: block; font-size: 11.5px; }
.ml-dels td small { display: block; font-size: 11px; max-width: 220px; white-space: normal; }
.ml-targets { white-space: normal; max-width: 200px; }
.pf-mail { display: flex; flex-direction: column; gap: 14px; }
.pf-mailrow { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius-s); background: var(--surface-2); border: 1px solid var(--line-2); }
.pf-mailrow b { display: block; font-weight: 500; font-size: 15px; }
.pf-mailrow small { display: block; font-size: 12px; margin-top: 2px; overflow-wrap: anywhere; }
.pf-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
.pf-facts li { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.pf-facts li > span:last-child { overflow-wrap: anywhere; }
.pf-recent { margin-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.pf-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 10px; }
@media (max-width: 1180px) { .ml-sched { grid-template-columns: 1fr 1fr; } .ml-editor { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .ml-sched, .ml-sched-info { grid-template-columns: 1fr; }
  .ml-testrow { flex-direction: column; }
  .ml-frame { height: 560px; }
  .pf-facts li { grid-template-columns: 1fr; gap: 2px; }
  .ml-savebar { flex-direction: column; align-items: stretch; }
}
.ml-root .lbl, [data-view="profil"] .lbl { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 500; }

/* Einstellungen → Export-Regeln (Entscheidung 92): Listen-Editor mit Zeilennummern, Prüfung beim Tippen, Adresse testen */
.er-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.er-chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); color: var(--ink); text-decoration: none; font-size: 12.5px; }
.er-chip span { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.er-chip:hover { border-color: var(--ink); }
.er-chip.bad { border-color: var(--bad); }
.er-tag { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); font-size: 10.5px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted); vertical-align: middle; }
.er-tag:empty { display: none; }
.er-tag.own { border-color: var(--ink-2); color: var(--ink-2); }
.er-tag.dirty { border-color: var(--warn); color: var(--warn); background: #fff8e6; }
.er-save { margin-top: 12px; }
.er-state { font-size: 12px; color: var(--muted); }
.er-state.dirty { color: var(--warn); }
.er-msg { flex: 1 1 260px; font-size: 12.5px; color: var(--ink-2); }
.er-msg.err { color: var(--bad); } .er-msg.ok { color: var(--good); }
.er-ed { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface-2); overflow: hidden; }
.er-ed:focus-within { border-color: var(--ink); background: #fff; }
.er-gut { position: relative; overflow: hidden; width: 46px; background: var(--bg-2); color: var(--muted); font-family: var(--mono); font-size: 11.5px; line-height: 18px; text-align: right; user-select: none; }
.er-gut-in { position: absolute; top: 8px; left: 0; right: 6px; will-change: transform; }
.er-gut span { display: block; height: 18px; padding-left: 4px; }
.er-gut span.e { color: #fff; background: var(--bad); border-radius: 3px; }
.er-gut span.d { color: var(--ink); background: var(--accent); border-radius: 3px; }
.er-ta { display: block; width: 100%; min-height: 220px; max-height: 60vh; resize: vertical; margin: 0; padding: 8px 10px; border: 0; outline: none; background: transparent; font-family: var(--mono); font-size: 11.5px; line-height: 18px; color: var(--ink); white-space: pre; overflow: auto; tab-size: 2; }
.er-status { margin-top: 8px; font-size: 12px; }
.er-status .bad, .er-errs .bad { color: var(--bad); } .er-status .warn, .er-errs .warn { color: var(--warn); } .er-status .good { color: var(--good); }
.er-errs { list-style: none; margin: 4px 0 0; padding: 0; font-size: 12px; }
.er-errs li { margin: 2px 0; }
.er-errs code, .er-test-out code, .er-ht code, .er-log code { font-family: var(--mono); font-size: 11px; padding: 0 4px; border-radius: 4px; background: var(--bg-2); color: var(--ink); }
.er-link { border: 0; padding: 0; background: none; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.er-help { margin-top: 10px; font-size: 12px; }
.er-help summary { cursor: pointer; color: var(--ink-2); }
.er-help .mini-table { margin-top: 6px; }
.er-ht td { vertical-align: top; }
.er-ht td.good { color: var(--good); }
.er-test-in { width: 100%; max-width: 560px; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface-2); font-family: var(--mono); font-size: 13px; color: var(--ink); outline: none; }
.er-test-in:focus { border-color: var(--ink); background: #fff; }
.er-samples { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0 10px; font-size: 12px; }
.er-samples .btn { font-family: var(--mono); font-size: 11px; padding: 3px 9px; }
.er-test-out { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; min-height: 30px; font-size: 12.5px; }
.er-res { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); font-weight: 500; }
.er-res.ok { border-color: var(--good); color: var(--good); background: var(--good-soft); }
.er-res.warn { border-color: var(--warn); color: var(--warn); background: #fff8e6; }
.er-res.bad { border-color: var(--bad); color: var(--bad); }
.er-log td { vertical-align: top; }
.er-ld { margin: 1px 0; }
.er-ld small { display: block; font-size: 11px; overflow-wrap: anywhere; }
.er-ld small.good { color: var(--good); } .er-ld small.bad { color: var(--bad); }

/* ==== mfa-ui · Anfang ==== Zwei-Faktor-Anmeldung (js/mfa-ui.js, Entscheidung 93): Einrichtung, Wiederherstellungscodes, Code-Feld.
   Derselbe Text steht in css/styles.css (am Ende) und im <style> von login.html – Änderungen immer in beiden. Wirkt nur unter .mfa und setzt sich
   gegen die allgemeinen button-, input- und label-Regeln von login.html durch; Variablen, die login.html nicht kennt, mit Ersatzwert. */
.mfa { --mfa-mono: var(--mono, 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace); --mfa-bg2: var(--bg-2, #ebe7dc);
  --mfa-focus: var(--accent-ink, #c9a800); --mfa-soft: var(--accent-soft, #fbf6c9); --mfa-r: var(--radius-s, 9px);
  width: 100%; min-width: 0; container: mfa / inline-size; color: var(--ink); font-size: 14px; line-height: 1.45; text-align: left; }
.mfa *, .mfa *::before, .mfa *::after { box-sizing: border-box; }
.mfa [hidden] { display: none !important; }
.mfa-step { display: flex; flex-direction: column; align-items: stretch; min-width: 0; }
.mfa-progress { display: flex; flex-direction: column; gap: 7px; margin: 0 0 14px; }
.mfa-eyebrow { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.mfa-eyebrow::before { content: '[ '; color: var(--muted); }
.mfa-eyebrow::after { content: ' ]'; color: var(--muted); }
.mfa-bar { display: flex; gap: 4px; }
.mfa-bar i { flex: 1 1 0; height: 3px; border-radius: 2px; background: var(--mfa-bg2); }
.mfa-bar i.done { background: var(--ink); }
.mfa-bar i.cur { background: var(--accent-2); }
.mfa .mfa-h { margin: 0 0 6px; font-size: 19px; font-weight: 400; line-height: 1.25; letter-spacing: -.01em; color: var(--ink); }
.mfa .mfa-h:focus { outline: none; }
.mfa .mfa-h:focus-visible { outline: 2px solid var(--mfa-focus); outline-offset: 3px; border-radius: 4px; }
.mfa-p { margin: 0 0 12px; color: var(--ink-2); }
.mfa-sub { margin: 16px 0 8px; font-size: 13px; font-weight: 500; color: var(--ink); }
.mfa-hint { margin: 6px 0 0; font-size: 12.5px; color: var(--ink-2); }
.mfa-note { margin: 0 0 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--mfa-r); background: var(--surface-2); color: var(--ink-2); font-size: 12.5px; }
.mfa-msg { margin: 8px 0 0; font-size: 12.5px; color: var(--ink-2); }
.mfa-msg:empty { margin: 0; }
.mfa-msg.ok { color: var(--good); }
.mfa-msg.err:not(:empty) { padding: 8px 12px; border-radius: var(--mfa-r); background: var(--bad-soft); color: var(--bad); }
/* Pill-Knöpfe wie .btn des Dashboards (gefüllt schwarz, ghost, accent = PLAN-B-Gelb, link = Textknopf) */
.mfa .mfa-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: auto; height: auto; min-height: 40px; margin: 0; padding: 9px 18px;
  border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: #fff; font: inherit; font-size: 13px; font-weight: 500; line-height: 1.2;
  text-align: center; text-decoration: none; white-space: normal; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.mfa .mfa-btn:not(:disabled):not([aria-disabled="true"]):hover { background: #262626; border-color: #262626; }
.mfa .mfa-btn:not(:disabled):not([aria-disabled="true"]):active { transform: translateY(1px); }
.mfa .mfa-btn.ghost { background: transparent; color: var(--ink); }
.mfa .mfa-btn.ghost:not(:disabled):not([aria-disabled="true"]):hover { background: var(--surface-2); border-color: var(--ink); }
.mfa .mfa-btn.accent { background: var(--accent); border-color: var(--accent-2); color: var(--ink); }
.mfa .mfa-btn.accent:not(:disabled):not([aria-disabled="true"]):hover { background: var(--accent-2); border-color: var(--accent-2); }
.mfa .mfa-btn.sm { min-height: 32px; padding: 6px 12px; font-size: 12px; }
.mfa .mfa-btn.link { min-height: 32px; padding: 6px 4px; border-color: transparent; background: transparent; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.mfa .mfa-btn.link:not(:disabled):not([aria-disabled="true"]):hover { background: transparent; border-color: transparent; color: var(--ink); }
.mfa .mfa-btn:disabled, .mfa .mfa-btn[aria-disabled="true"] { opacity: .45; cursor: default; }
.mfa .mfa-btn:focus-visible { outline: 2px solid var(--mfa-focus); outline-offset: 2px; }
@media (pointer: coarse) { .mfa .mfa-btn { min-height: 44px; } .mfa .mfa-btn.sm, .mfa .mfa-btn.link { min-height: 40px; } }
.mfa-acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin: 18px 0 0; }
.mfa-acts .mfa-cancel { margin-right: auto; }
.mfa-tools { display: flex; flex-wrap: wrap; gap: 8px; }
/* Schritt „App“ */
.mfa-intro { display: flex; align-items: flex-start; gap: 14px; }
.mfa-ico { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--mfa-soft); }
.mfa-ico svg { display: block; width: 34px; height: 34px; }
.mfa-apps { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 4px; padding: 0; list-style: none; }
.mfa-apps li { padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); color: var(--ink); font-size: 12.5px; }
/* Schritt „QR-Code“: Knopf „In Authenticator-App öffnen“ nur auf Touch-Geräten bzw. unter 720 px, QR-Code, Schlüssel zum Abtippen */
.mfa-openbox { margin: 0 0 14px; }
.mfa .mfa-open { width: 100%; }
@media (hover: hover) and (pointer: fine) and (min-width: 720px) { .mfa-openbox { display: none; } }
.mfa-qr { display: flex; justify-content: center; margin: 2px 0 4px; }
.mfa-qr-frame { max-width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: #fff; line-height: 0; box-shadow: 0 1px 2px rgba(11, 11, 11, .04); }
.mfa-qr svg { display: block; max-width: 100%; height: auto; }
.mfa-qr.fail { justify-content: flex-start; }
.mfa-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 14px; align-items: baseline; margin: 0; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: var(--mfa-r); background: var(--surface-2); }
.mfa-facts dt { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.mfa-facts dd { margin: 0; min-width: 0; color: var(--ink); overflow-wrap: anywhere; }
.mfa-keyrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.mfa-key { font-family: var(--mfa-mono); font-size: 15px; font-weight: 600; letter-spacing: .04em; word-spacing: .2em; color: var(--ink); }
/* Code-Feld: große Ziffern in fester Breite, kein maxlength (Leerzeichen beim Einfügen) */
.mfa-field { display: flex; flex-direction: column; gap: 6px; }
.mfa .mfa-lbl { display: block; margin: 0; font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.mfa-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.mfa input.mfa-code { flex: 0 1 240px; width: 240px; max-width: 100%; height: 52px; margin: 0; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--mfa-r);
  background: var(--surface-2); color: var(--ink); font-family: var(--mfa-mono); font-size: 24px; font-weight: 500; line-height: 1; letter-spacing: .3em; text-indent: .3em;
  text-align: center; font-variant-numeric: tabular-nums; outline: none; box-shadow: none; -webkit-appearance: none; appearance: none; }
.mfa input.mfa-code.rec { flex-basis: 280px; width: 280px; font-size: 19px; letter-spacing: .08em; text-indent: .08em; }
.mfa input.mfa-code::placeholder { color: var(--muted); opacity: 1; }
.mfa input.mfa-code:focus { border-color: var(--ink); background: #fff; }
.mfa input.mfa-code:focus-visible { outline: 2px solid var(--mfa-focus); outline-offset: 2px; }
.mfa input.mfa-code[aria-invalid="true"] { border-color: var(--bad); }
.mfa input.mfa-code:read-only { color: var(--ink-2); }
.mfa input.mfa-code:disabled { opacity: .55; cursor: not-allowed; }
/* Wiederherstellungscodes: zwei Spalten von oben nach unten (1–5 | 6–10), Häkchen „sicher gespeichert“ */
.mfa-codes { display: grid; grid-auto-flow: column; grid-template-rows: repeat(var(--mfa-rows, 5), auto); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 18px;
  margin: 0 0 12px; padding: 14px 16px; list-style: none; border: 1px dashed rgba(11, 11, 11, .28); border-radius: var(--mfa-r); background: var(--surface-2); counter-reset: mfa-code; }
.mfa-codes li { display: flex; align-items: baseline; gap: 8px; min-width: 0; counter-increment: mfa-code; }
.mfa-codes li::before { content: counter(mfa-code) '.'; flex: none; min-width: 1.6em; text-align: right; font-size: 11px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.mfa-codes code { font-family: var(--mfa-mono); font-size: 14.5px; font-weight: 500; letter-spacing: .03em; color: var(--ink); white-space: nowrap; }
.mfa .mfa-check { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--mfa-r);
  background: var(--surface); color: var(--ink); font-size: 13.5px; font-weight: 400; line-height: 1.4; letter-spacing: 0; text-transform: none; cursor: pointer; }
.mfa .mfa-check.on { border-color: var(--ink); background: var(--mfa-soft); }
.mfa .mfa-check input { flex: none; width: 18px; height: 18px; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; accent-color: var(--ink); cursor: pointer; }
.mfa .mfa-check input:focus-visible { outline: 2px solid var(--mfa-focus); outline-offset: 2px; }
.mfa-done { align-items: flex-start; }
.mfa-ok { display: grid; place-items: center; width: 40px; height: 40px; margin: 0 0 10px; border-radius: 50%; background: var(--good-soft); color: var(--good); font-size: 20px; font-weight: 600; }
/* schmale Flächen (Login-Karte, Dialog, Handy): Knöpfe untereinander, der wichtigste oben */
@container mfa (max-width: 460px) {
  .mfa-acts { flex-direction: column-reverse; align-items: stretch; }
  .mfa-acts .mfa-btn { width: 100%; }
  .mfa-acts .mfa-cancel { margin-right: 0; }
}
@container mfa (max-width: 360px) {
  .mfa-row { flex-direction: column; align-items: stretch; }
  .mfa input.mfa-code, .mfa input.mfa-code.rec { flex-basis: auto; width: 100%; }
  .mfa-row .mfa-btn { width: 100%; }
  .mfa-facts { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .mfa-facts dd + dt { margin-top: 8px; }
}
@container mfa (max-width: 280px) { .mfa-codes { grid-auto-flow: row; grid-template-rows: none; grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) {
  .mfa .mfa-btn { transition: none; }
  .mfa .mfa-btn:not(:disabled):not([aria-disabled="true"]):active { transform: none; }
}
/* ==== mfa-ui · Ende ==== */

/* ==== Anmeldung & 2FA im Dashboard (Entscheidung 93): Hinweis bei offener Pflicht (js/session.js), Profil-Karte pf.mfa und ihre Dialoge (js/profile.js),
   Einstellungen → Benutzer: Karte „Anmeldung & Sicherheit“, Markierung und Dialog „2FA …“, Notfall-Schlüssel (js/admin.js). Bausteine der Einrichtung: mfa-ui oben. */
.sec-banner { display: flex; align-items: center; gap: 14px; margin: 14px 0 4px; padding: 12px 16px; border: 1px solid var(--accent-2); border-radius: var(--radius-s); background: var(--accent-soft); }
.sec-banner .grow { flex: 1; min-width: 0; margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--ink); }
.sec-banner .grow b { font-weight: 600; }
.sec-ico { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--surface); border: 1px solid var(--accent-2); }
.sec-ico svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sec-acts { flex: none; display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 720px) { .sec-banner { flex-wrap: wrap; } .sec-ico { display: none; } .sec-acts { width: 100%; } }
/* Profil: Konto-Karte rechts über zwei Zeilen (2FA und Release-Mail links untereinander) */
@media (min-width: 1101px) { .co-grid > .card.pf-span2 { grid-row: span 2; align-self: start; } }
.pm-state { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; border-radius: var(--radius-s); background: var(--surface-2); border: 1px solid var(--line-2); margin-bottom: 14px; }
.pm-state.on { background: var(--good-soft); border-color: rgba(0, 99, 0, .18); }
.pm-state.bad { background: var(--bad-soft); border-color: rgba(196, 59, 59, .25); }
.pm-state.warn { background: #fdf5dc; border-color: rgba(184, 134, 11, .35); }
.pm-ico { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 15px; color: var(--ink-2); }
.pm-state.on .pm-ico { color: var(--good); border-color: rgba(0, 99, 0, .3); }
.pm-state.bad .pm-ico { color: var(--bad); border-color: rgba(196, 59, 59, .35); }
.pm-state.warn .pm-ico { color: var(--warn); border-color: rgba(184, 134, 11, .45); }
.pm-st { min-width: 0; }
.pm-st b { display: block; font-weight: 500; font-size: 15px; }
.pm-st small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-2); line-height: 1.45; overflow-wrap: anywhere; }
.pm-p { font-size: 13px; line-height: 1.5; color: var(--ink-2); margin: 12px 0 0; }
.pm-facts { margin-bottom: 4px; }
.pm-card .warn-box { margin: 12px 0 0; }
.pm-hint { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 12px 0 0; padding: 10px 12px; border-radius: var(--radius-s); background: var(--accent-soft); border: 1px solid var(--accent-2); font-size: 13px; }
.pm-hint span { flex: 1 1 260px; }
.pm-card > small.muted { display: block; font-size: 12px; }
.pm-box { max-width: 560px; }
.pm-body { margin-top: 14px; }
.pm-form { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.mfa input.pm-input { width: 100%; max-width: 360px; height: 40px; margin: 0; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--mfa-r); background: var(--surface-2); color: var(--ink); font: inherit; font-size: 14px; }
.mfa input.pm-input:focus { border-color: var(--ink); background: #fff; outline: none; }
.mfa input.pm-input:focus-visible { outline: 2px solid var(--mfa-focus); outline-offset: 2px; }
.mfa input.pm-input[aria-invalid="true"] { border-color: var(--bad); }
.pm-code { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-top: 12px; }
.pm-code > .mfa-field { width: 100%; }
/* Einstellungen → Benutzer: Markierung und Knopf „2FA …“ unter dem Status (keine eigene Spalte – Tabelle bei 1.440 px ohne seitliches Scrollen) */
.st-users .st-mfa { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 4px; }
.st-users .st-mfa .btn.sm { padding: 3px 9px; font-size: 11px; }
.st-mfa-m { font-size: 11px; white-space: nowrap; font-weight: 500; }
.st-mfa-m.good { color: var(--good); } .st-mfa-m.warn { color: var(--warn); } .st-mfa-m.bad { color: var(--bad); }
.sa-invite-mfa { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface-2); font-size: 13px; cursor: pointer; }
.sa-invite-mfa input { margin: 3px 0 0; accent-color: var(--ink); }
.sa-invite-mfa b { font-weight: 500; }
/* Karte „Anmeldung & Sicherheit“ */
.sa-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
@media (max-width: 1100px) { .sa-grid { grid-template-columns: minmax(0, 1fr); } }
.sa-sec { min-width: 0; }
.sa-sec h3 { margin: 0 0 10px; font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.sa-sec h4, .sa-dsec h4 { margin: 16px 0 8px; font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sa-sec .pf-acts { margin: 0 0 4px; }
.sa-checks li { align-items: flex-start; }
.sa-checks li > span { min-width: 0; overflow-wrap: anywhere; }
.sa-checks li b { font-weight: 500; }
.sa-fix { display: block; margin-top: 2px; font-size: 12px; color: var(--bad); }
.sa-facts { margin-top: 14px; }
.sa-facts li { grid-template-columns: 150px minmax(0, 1fr); }
.sa-facts .lbl { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.sa-v { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sa-v > small { display: block; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.sa-v .bad, .sa-v small.bad { color: var(--bad); }
.sa-v select { align-self: flex-start; height: 32px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--surface-2); padding: 0 8px; }
.sa-v .mono { overflow-wrap: anywhere; }
.sa-sw { flex-direction: row; align-items: flex-start; gap: 10px; }
.sa-sw .tgl { margin-top: 1px; }
.sa-base-act { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 4px; }
.sa-base-act .btn { max-width: 100%; white-space: normal; text-align: left; overflow-wrap: anywhere; }
.sa-foot { margin: 18px 0 0; font-size: 12px; }
.sa-dsec { margin-top: 6px; }
.sa-dsec .dp-lead { margin-bottom: 8px; }
.sa-mfa .sa-facts { margin-top: 0; }
.sa-envbox { max-width: 560px; }
.sa-steps { margin: 0 0 14px; padding-left: 20px; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.sa-steps li { margin: 3px 0; }
.sa-steps code { font-family: var(--mono); font-size: 12px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 5px; }
.sa-envkey .mfa-secret { margin-top: 10px; }
.sa-envcheck { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
@media (max-width: 640px) { .sa-facts li { grid-template-columns: 1fr; gap: 2px; } }
/* ==== Anmeldung & 2FA im Dashboard · Ende ==== */
