/* Fission Control – dunkles Leitwarten-Design */
:root {
  color-scheme: dark;
  --bg: #0b1016;
  --bg-2: #0f151d;
  --surface: #161d26;
  --surface-2: #1c2530;
  --line: #263240;
  --line-2: #33414f;
  --text: #e6ecf2;
  --text-2: #b4c0cc;
  --muted: #7f8c99;
  --accent: #2fc4b2;
  --accent-ink: #04221e;
  /* Datenfarben (validiert gegen --surface, dunkler Modus) */
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s5: #d55181; --s6: #9085e9;
  /* Statusfarben – nur für Zustände, nie als Datenreihe */
  --good: #0ca30c; --warning: #fab219; --serious: #ec835a; --critical: #d03b3b;
  --radius: 12px;
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 8px 24px rgba(0,0,0,.25);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: radial-gradient(1200px 600px at 70% -10%, #13202c 0%, var(--bg) 60%) fixed, var(--bg);
  color: var(--text); font: 14px/1.45 "Segoe UI", system-ui, -apple-system, sans-serif;
}
.hidden { display: none !important; }
h1, h2, h3 { margin: 0; font-weight: 600; }
h2 { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin: 16px 0 8px; }
h2:first-child { margin-top: 0; }
.num, .tab-num { font-variant-numeric: tabular-nums; }

button {
  background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 8px;
  padding: 8px 12px; font: inherit; font-weight: 600; cursor: pointer; transition: filter .15s, transform .05s;
}
button:hover { filter: brightness(1.12); }
button:active { transform: translateY(1px); }
button:disabled { opacity: .4; cursor: not-allowed; filter: none; }
button.ghost { background: transparent; color: var(--text-2); border: 1px solid var(--line-2); }
button.ghost:hover { color: var(--text); border-color: var(--muted); }
button.danger { background: linear-gradient(180deg, #e5484d, #b4262b); color: #fff; letter-spacing: .12em; box-shadow: 0 0 0 1px #ff7a7f55, 0 4px 18px #d03b3b55; }
button.small { font-size: 12px; padding: 5px 9px; }
input { background: var(--bg-2); color: var(--text); border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; width: 100%; font: inherit; }
input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
input[type=range] { padding: 0; accent-color: var(--accent); border: 0; background: none; }
input[type=checkbox] { width: auto; accent-color: var(--accent); }
.error { color: var(--critical); }

/* Anmeldung */
#login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login-box { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 32px; max-width: 420px; width: 100%; box-shadow: var(--shadow); text-align: center; }
.login-box .logo { width: 96px; height: 96px; filter: drop-shadow(0 0 18px #2fc4b255); }
.wordmark { letter-spacing: .01em; }
.wordmark span { color: var(--accent); }
.login-box h1 { margin: 8px 0; }
.login-box p { color: var(--text-2); }
.login-box form { display: grid; gap: 10px; margin-top: 16px; }

/* Kopfzeile */
.topbar { position: sticky; top: 0; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 10px 16px;
  background: rgba(15, 21, 29, .85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.logo-sm { width: 28px; height: 28px; filter: drop-shadow(0 0 6px #2fc4b266); }
.kpis { display: flex; gap: 22px; flex-wrap: wrap; }
.kpi { display: flex; flex-direction: column; }
.kpi span { font-size: 11px; color: var(--muted); }
.kpi b { font-variant-numeric: tabular-nums; }
.spacer { flex: 1; }

/* Layout */
.layout { display: grid; grid-template-columns: 250px minmax(0, 1fr) 270px; gap: 14px; padding: 14px; align-items: start; }
.side { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); position: sticky; top: 70px; max-height: calc(100vh - 84px); overflow: auto; }
.center { min-width: 0; }

.plant-item { padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 6px; cursor: pointer; background: var(--bg-2); transition: border-color .15s; }
.plant-item:hover { border-color: var(--line-2); }
.plant-item.active { border-color: var(--accent); background: linear-gradient(180deg, #12302c, #0f2321); }
.plant-item .row { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.plant-item small { color: var(--muted); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.build-item { border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin: 6px 0; background: var(--bg-2); }
.build-item p { margin: 2px 0 8px; color: var(--muted); font-size: 12px; }
#build-name { margin: 8px 0 4px; }
.build-open { width: 100%; margin: 10px 0 14px; }
.build-dlg { width: min(860px, calc(100vw - 32px)); }
.build-dlg #build-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; max-height: 70vh; overflow: auto; }
.build-dlg #build-list > p { grid-column: 1 / -1; }
.build-dlg .build-item { margin: 0; display: flex; flex-direction: column; }
.build-dlg .build-item > :last-child { margin-top: auto; align-self: flex-start; }
.dlg-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dlg-head h2 { margin: 0; }

.plant-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.plant-head h1 { font-size: 22px; }
.tags { display: flex; gap: 6px; margin-top: 4px; }
.tag { border: 1px solid var(--line-2); border-radius: 20px; padding: 1px 10px; font-size: 12px; color: var(--text-2); }
.tag:empty { display: none; }
.tag.s-betrieb { color: var(--good); border-color: var(--good); }
.tag.s-bau, .tag.s-revision { color: var(--warning); border-color: var(--warning); }
.tag.s-zerstoert, .tag.s-scram { color: #ff8a8a; border-color: var(--critical); }
.progress { min-width: 240px; font-size: 12px; color: var(--text-2); }
.bar { height: 8px; background: var(--bg-2); border-radius: 4px; overflow: hidden; margin-top: 4px; border: 1px solid var(--line); }
.bar > div { height: 100%; background: linear-gradient(90deg, var(--accent), #7fe3d6); transition: width .5s; }

/* Tabs */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 14px; align-items: end; overflow-x: auto; scrollbar-width: thin; }
.tabs .tab { white-space: nowrap; flex: none; }
.tabs .tab { background: none; color: var(--muted); border-radius: 8px 8px 0 0; padding: 9px 11px; border-bottom: 2px solid transparent; font-weight: 600; }
.tabs .tab:hover { color: var(--text); filter: none; }
.tabs .tab.active { color: var(--text); border-bottom-color: var(--accent); }
.tabs .tab-tools { margin-left: auto; position: relative; padding-bottom: 6px; }
.menu { position: absolute; right: 0; top: 100%; z-index: 20; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 8px; min-width: 240px; box-shadow: var(--shadow); }
.menu label { display: flex; gap: 8px; align-items: center; padding: 5px 6px; border-radius: 6px; cursor: pointer; }
.menu label:hover { background: var(--bg-2); }

/* Widget-Raster */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.widget { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; display: flex; flex-direction: column; }
.widget > header { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.widget > header h3 { font-size: 13px; color: var(--text-2); font-weight: 600; letter-spacing: .02em; }
.widget > header .w-icon { opacity: .85; }
.widget > header .w-actions { margin-left: auto; display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); }
.widget > .w-body { padding: 14px; flex: 1; min-width: 0; }
.widget.flush > .w-body { padding: 0; }
.size-sm { grid-column: span 4; } .size-md { grid-column: span 6; } .size-lg { grid-column: span 8; } .size-full { grid-column: span 12; }
.empty { color: var(--muted); padding: 40px; text-align: center; background: var(--surface); border-radius: var(--radius); border: 1px dashed var(--line-2); }

/* Kennzahlen-Kacheln */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.tile { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 11px; }
.tile span { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.tile b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; font-weight: 600; }
.tile.warn { border-color: var(--warning); } .tile.warn span::before { content: '▲'; color: var(--warning); font-size: 9px; }
.tile.alarm { border-color: var(--critical); animation: blink 1s infinite; } .tile.alarm span::before { content: '⚠'; color: #ff8a8a; }
@keyframes blink { 50% { background: #3a1416; } }
.hero { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.hero-sub { color: var(--muted); font-size: 12px; }

/* Steuerung */
.controls label.slider { display: block; margin-bottom: 12px; }
.controls label.slider .lbl { display: flex; justify-content: space-between; color: var(--text-2); font-size: 13px; }
.controls label.slider b { font-variant-numeric: tabular-nums; color: var(--text); }
.toggles { display: flex; gap: 14px; flex-wrap: wrap; margin: 4px 0 12px; }
.toggle { display: flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 13px; }
.buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.buttons .danger { flex: 1; font-size: 16px; padding: 10px; }
.alarms { list-style: none; padding: 0; margin: 0 0 12px; }
.alarms li { display: flex; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 8px; margin-bottom: 4px; background: #3a141633; border: 1px solid #d03b3b55; color: #ffb3b3; }
.alarms li.ok { background: #0ca30c18; border-color: #0ca30c55; color: #9fe39f; }
.help { color: var(--text-2); font-size: 13px; margin-top: 12px; }
.help summary { cursor: pointer; color: var(--text); }

/* Diagramme */
.chart { position: relative; }
.chart canvas { width: 100%; display: block; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--text-2); margin-bottom: 6px; }
.legend i { display: inline-block; width: 12px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.chart-title { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-2); margin-bottom: 2px; }
.chart-title b { color: var(--text); font-variant-numeric: tabular-nums; }
.multiples { display: grid; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); border-radius: 20px; padding: 3px 10px; font-size: 12px; color: var(--text-2); cursor: pointer; user-select: none; }
.chip.on { color: var(--text); border-color: var(--muted); background: var(--bg-2); }
.chip i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.tooltip { position: fixed; z-index: 50; pointer-events: none; background: #0b1016ee; border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 10px; font-size: 12px; box-shadow: var(--shadow); min-width: 120px; }
.tooltip .t-head { color: var(--muted); margin-bottom: 3px; }
.tooltip .t-row { display: flex; justify-content: space-between; gap: 14px; }
.tooltip .t-row b { font-variant-numeric: tabular-nums; }
.tooltip i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
svg text { font-family: inherit; }
.table-view { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 8px; }
.table-view td, .table-view th { padding: 4px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.table-view .num { text-align: right; }
details.tv summary { cursor: pointer; color: var(--muted); font-size: 12px; margin-top: 8px; }

/* Ereignisse */
#events { list-style: none; padding: 0; margin: 0; font-size: 12px; }
#events li { padding: 6px 0 6px 10px; border-left: 2px solid var(--line-2); margin-bottom: 4px; color: var(--text-2); }
#events li time { color: var(--muted); display: block; font-size: 11px; }
#events li.alarm { border-left-color: var(--critical); color: #ffb3b3; }
#events li.warn { border-left-color: var(--warning); color: #f5d58a; }
#events li.info { border-left-color: var(--accent); }
#events li.success { border-left-color: var(--good); color: #b6f0b6; }
#events li.sim { opacity: .6; border-left-style: dashed; }
#events li.muted { border-left-color: transparent; color: var(--muted); }
.ev-filter { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin: 4px 0 8px; cursor: pointer; }
.w-body:has(> .gauges) { container-type: inline-size; }
.gauges { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@container (min-width: 400px) { .gauges { grid-template-columns: repeat(3, 1fr); } }
@container (min-width: 760px) { .gauges { grid-template-columns: repeat(6, 1fr); } }
.fold { margin-top: 10px; }
.fold > summary { cursor: pointer; color: var(--muted); font-size: 13px; padding: 6px 0; }
.fold > .cards { margin-top: 8px; }
.sc-more > summary { cursor: pointer; color: var(--muted); font-size: 12px; }
.sc-more p { margin: 6px 0 0; }
.acc-restart { margin: 12px 0; border-top: 1px solid var(--line); padding-top: 10px; }
.kpi .weather { font-size: 15px; }
.inc { border: 1px solid #fab21966; background: #fab21912; border-radius: 10px; padding: 10px; margin-bottom: 8px; }
.inc b { color: #f5d58a; }
.inc p { margin: 4px 0 0; color: var(--text-2); font-size: 13px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.card2 { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.card2 p { margin: 0; color: var(--text-2); font-size: 13px; }
.card2 .meta { color: var(--muted); font-size: 12px; }
.card2.locked { opacity: .45; filter: grayscale(1); }
.card2.done { border-color: #0ca30c88; }
.badge { font-size: 26px; line-height: 1; }
.kbd { display: inline-block; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; padding: 0 6px; font-size: 12px; font-family: Consolas, monospace; background: var(--bg-2); }
.login-box input + input { margin-top: 0; }

dialog { background: var(--surface); color: var(--text); border: 1px solid var(--line-2); border-radius: 14px; min-width: 340px; box-shadow: var(--shadow); }
dialog::backdrop { background: #000a; backdrop-filter: blur(2px); }
table { width: 100%; border-collapse: collapse; margin: 10px 0; }
td, th { text-align: left; padding: 5px 8px; border-bottom: 1px solid var(--line); }
td.num, th.num { text-align: right; }

#toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--critical); color: #fff; padding: 10px 16px; border-radius: 10px; opacity: 0; transition: opacity .3s; pointer-events: none; z-index: 60; }
#toast.show { opacity: 1; }

/* Fließbild */
.schema svg { width: 100%; height: auto; display: block; }
.flowline { fill: none; stroke-linecap: round; }
.flowdash { fill: none; stroke-dasharray: 6 10; animation: flow 1s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -16; } }

/* Flotte */
.fleet { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.fleet-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; transition: border-color .15s; }
.fleet-card:hover { border-color: var(--line-2); }
.fleet-card.active { border-color: var(--accent); }
.fleet-card .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.fleet-card .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0; font-size: 12px; color: var(--muted); }
.fleet-card .stats b { display: block; color: var(--text); font-size: 15px; font-variant-numeric: tabular-nums; }

@media (max-width: 1250px) {
  .layout { grid-template-columns: 230px minmax(0, 1fr); }
  .side.log { grid-column: 1 / -1; position: static; max-height: 320px; }
  .size-sm { grid-column: span 6; } .size-lg { grid-column: span 12; }
}
@media (max-width: 860px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; max-height: none; }
  .size-sm, .size-md, .size-lg { grid-column: span 12; }
  .kpis { gap: 12px; }
}
select { background: var(--bg-2); color: var(--text); border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; font: inherit; }
.card2.pick { cursor: pointer; }
.card2.pick.on { border-color: var(--accent); background: #12302c; }

/* Druckhalter-Widget */
.pz-wrap { display: flex; gap: 10px; align-items: center; }
.pz-svg { width: 96px; flex: 0 0 96px; }
.pz-svg [data-pz=water] { transition: y .6s, height .6s; }
.pz-lbl { font-size: 10px; fill: var(--text-2); }
.pz-info { display: grid; gap: 6px; font-size: 12px; flex: 1; }
.pz-info span { display: block; color: var(--muted); font-size: 11px; }
.pz-rate { height: 6px; background: var(--bg-2); border-radius: 3px; overflow: hidden; margin-top: 4px; }
.pz-rate > div { height: 100%; border-radius: 3px; transition: width .4s; }

/* Anmeldung: Reiter, Links, Hinweise */
.auth-tabs { display: flex; gap: 6px; margin-top: 16px; background: var(--bg-2); padding: 4px; border-radius: 10px; }
.auth-tab { flex: 1; background: transparent; color: var(--text-2); border: 0; }
.auth-tab.active { background: var(--surface-2, #1d2631); color: var(--text); }
button.link { background: none; border: 0; color: var(--accent); padding: 2px; font-size: 13px; cursor: pointer; text-decoration: underline; }
.success { color: var(--good, #0ca30c); }
.small-print { font-size: 12px; text-align: left; margin: 0; }
/* Konto-Dialog */
.acc-info { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 8px 0 12px; }
.acc-info dt { color: var(--muted); font-size: 12px; align-self: center; }
.acc-info dd { margin: 0; overflow-wrap: anywhere; }
.row-form { display: flex; gap: 8px; margin: 8px 0; }
.row-form input { flex: 1; min-width: 0; }
.danger-zone { margin: 12px 0; border-top: 1px solid var(--line); padding-top: 10px; }
.danger-zone summary { cursor: pointer; color: var(--critical); }
.badge-warn { display: inline-block; margin-left: 6px; min-width: 16px; padding: 0 4px; border-radius: 8px; background: var(--warning, #fab219); color: #000; font-size: 11px; font-weight: 700; }
#account-dlg, #email-dlg { max-width: 460px; }
#toast.ok { background: var(--good); }

/* Standorte mit mehreren Blöcken in der Seitenleiste */
.site-group { border: 1px solid var(--line); border-radius: 10px; padding: 6px; margin-bottom: 8px; background: var(--bg-2); }
.site-group .plant-item { margin: 4px 0 0; }
.site-head { display: flex; justify-content: space-between; align-items: baseline; padding: 2px 4px 4px; gap: 8px; }

/* Tutorial und Infokarten */
.tut { position: fixed; right: 16px; bottom: 16px; z-index: 50; width: min(360px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--accent); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow); }
.tut h3 { margin: 4px 0 6px; font-size: 1.05em; }
.tut p { margin: 0 0 10px; line-height: 1.45; }
.tut-head { display: flex; justify-content: space-between; align-items: center; color: var(--muted); }
.tut-btns { display: flex; justify-content: flex-end; gap: 8px; }
.tut-target { outline: 2px solid var(--accent) !important; outline-offset: 3px; border-radius: 8px; animation: tutPulse 1.6s ease-in-out infinite; }
@keyframes tutPulse { 50% { outline-color: transparent; } }
@media (prefers-reduced-motion: reduce) { .tut-target { animation: none; } }
.type-dlg { max-width: min(640px, calc(100vw - 32px)); }
.type-dlg h4 { margin: 14px 0 4px; }
.type-dlg p, .type-dlg li { line-height: 1.45; }
#p-help { margin-left: 6px; padding: 0 8px; }

/* Bauartspezifische Aufgaben */
.ops-gauges { display: grid; grid-template-columns: 1fr; gap: 4px; margin-bottom: 10px; }
.ops-g { display: flex; justify-content: space-between; gap: 8px; font-size: .92em; }
.ops-g b.bad { color: var(--warning); }
.ops-hint { display: block; color: var(--muted); margin: -2px 0 10px; line-height: 1.35; }
.ops-act { margin-top: 4px; }

/* Kühlwasser-Widget: Schlüssel/Wert-Liste */
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 8px 0 0; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }

/* Kopfzeile: Aktionen rechts, Einstellungsmenü */
.top-actions { display: flex; gap: 8px; align-items: center; }
.menu-wrap { position: relative; }
.top-menu { display: flex; flex-direction: column; gap: 2px; min-width: 220px; }
.top-menu.hidden { display: none; }
.top-menu button { text-align: left; justify-content: flex-start; width: 100%; border-color: transparent; }
.top-menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; width: 100%; }
.mobile-only { display: none; }
/* Reiterleiste scrollt waagerecht statt umzubrechen; Widget-Menü bleibt rechts sichtbar */
.tabs .tab-tools { position: sticky; right: 0; background: var(--bg); padding-left: 6px; flex: none; }
.tabs .tab-tools .menu { position: fixed; right: 16px; top: auto; }

@media (max-width: 860px) {
  .topbar { gap: 8px 12px; padding: 8px 12px; }
  .brand .wordmark, .kpi-opt, .lbl-wide { display: none; }
  .kpis { gap: 14px; flex-wrap: nowrap; }
  .kpi b { font-size: 14px; }
  #plant-list, .side:not(.log) > h2 { display: none; }
  .mobile-only { display: block; width: 100%; }
  .build-open { margin: 8px 0; }
  .side:not(.log) { padding: 10px; }
}

/* Aufsicht: INES-Meldungen */
.ines-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.ines-list li { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.ines-list small { color: var(--muted); }
.ines-badge { color: #fff; font-weight: 700; font-size: 11px; padding: 1px 6px; border-radius: 6px; }

/* Ereignisliste: aufklappbar (am Handy anfangs zu) */
#events-box > summary { list-style: none; cursor: pointer; }
#events-box > summary::-webkit-details-marker { display: none; }
#events-box > summary h2 { display: inline; }
#events-box > summary h2::after { content: ' ▾'; color: var(--muted); font-size: 11px; }
#events-box:not([open]) > summary h2::after { content: ' ▸'; }

/* Statistik */
.stat-bars { display: grid; gap: 6px; }
.stat-bar { display: grid; grid-template-columns: 60px 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.stat-bar > div { height: 12px; background: var(--bg-2); border-radius: 4px; overflow: hidden; }
.stat-bar i { display: block; height: 100%; border-radius: 0 4px 4px 0; }
.stat-bar b { font-variant-numeric: tabular-nums; font-weight: 600; }
.stat-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.stat-table th, .stat-table td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.stat-table th { color: var(--muted); font-weight: 600; font-size: 12px; }
.stat-table .num { text-align: right; font-variant-numeric: tabular-nums; }
