/* Mod Tools Dashboard – Gestaltung wie smashthebunny.de: dunkles Violett mit Lichtflecken,
   Überschriften in Plus Jakarta Sans, Text in Inter, Pink für Aktionen, Blau für Links. Nur dunkel. */
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 500; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 700; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }
:root {
  --bg: #0b0a0d; --surface: #17151a; --surface-2: #27242c; --panel: rgba(23, 21, 26, .82);
  --fg: #dedbe3; --heading: #fff; --muted: #908a9b; --line: #2e2b33;
  --accent: #fc5a8d; --accent-soft: rgba(252, 90, 141, .14); --link: #0ea6ec; --chart: #b48ad6; --twitch: #9147ff;
  --apricot: #e6b893; --rose: #ac7b74;
  --good: #3cc489; --warn: #e6b893; --bad: #ff6b6b; --info: #0ea6ec;
  --font-head: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --radius: 16px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  color: var(--fg); font: 14px/1.55 var(--font-body); min-height: 100vh;
  background:
    radial-gradient(120% 40% at 75% 0%, rgba(122, 78, 158, .30), transparent 60%),
    radial-gradient(90% 25% at 10% 10%, rgba(93, 69, 94, .28), transparent 65%),
    linear-gradient(#16101c 0%, #120d17 40%, var(--bg) 100%) fixed;
  background-color: var(--bg);
}
h1, h2, h3 { margin: 0; font-family: var(--font-head); font-weight: 700; color: var(--heading); letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: 24px; } h2 { font-size: 17px; margin-bottom: 12px; } h3 { font-size: 14px; }
a { color: var(--link); }
code, .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.mt { margin-top: 16px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.app { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 100vh; }
.side { background: rgba(11, 10, 13, .72); backdrop-filter: blur(8px); border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 18px; }
.side-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.side-menu { display: flex; flex-direction: column; gap: 18px; flex: 1; }
.side .menu-toggle { display: none; position: relative; }
.menu-dot { position: absolute; top: -3px; right: -3px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; }
.brand-logo { width: 36px; height: 36px; border-radius: 50%; display: block; }
.brand strong { font-family: var(--font-head); color: var(--heading); font-size: 15px; }
.brand small { display: block; color: var(--muted); font-size: 12px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { padding: 8px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 14px; }
.nav a:hover { background: rgba(255, 255, 255, .06); color: var(--heading); }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--heading); box-shadow: inset 3px 0 0 var(--accent); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; font-size: 12px; }

main { padding-block: 22px 48px; padding-inline: 28px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
main.center { max-width: 460px; margin: 8vh auto 0; padding-inline: 16px; }
.topbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.topbar .muted { display: block; max-width: 70ch; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-width: 0; }
.panel.narrow { max-width: 460px; width: 100%; display: flex; flex-direction: column; gap: 14px; }
.panel.narrow-left { max-width: 520px; }
.panel.highlight { border-color: var(--accent); }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.panel-head h2 { margin: 0; }
.grid { display: grid; gap: 16px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.form { display: flex; flex-direction: column; gap: 6px; }
.form label { font-weight: 600; font-size: 13px; margin-top: 6px; }
.form label.check { font-weight: 400; display: flex; gap: 8px; align-items: center; }
.form label.check:has(small) { align-items: flex-start; }
.form label.check small { display: block; color: var(--muted); font-size: 12px; }
.form label.check:has(small) input { margin-top: 4px; }
.form .btn { align-self: flex-start; margin-top: 10px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hint { font-size: 12px; color: var(--muted); margin: 2px 0 0; }
.input { width: 100%; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--fg); font: inherit; }
.input:focus { outline: none; border-color: var(--accent); }
/* Auswahlfelder: eigener Pfeil, dunkle Liste (sonst zeigt der Browser eine helle Liste mit heller Schrift) */
select.input {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 34px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23908a9b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;
}
select.input:hover { border-color: rgba(255, 255, 255, .25); }
select.input:focus { border-color: var(--accent); }
select.input option { background: var(--surface); color: var(--fg); }
select.input option:checked { background: var(--surface-2); color: var(--heading); }
.input.small { width: auto; padding: 5px 8px; font-size: 13px; }
.input.small.wide { width: 100%; min-width: 160px; }
textarea.input { resize: vertical; }
input[type=color] { width: 38px; height: 30px; padding: 0; border: 0; background: none; }
.btn { display: inline-block; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); color: var(--heading); padding: 8px 16px; border-radius: 10px; cursor: pointer; font: inherit; font-family: var(--font-head); font-weight: 700; text-decoration: none; }
.btn:hover { border-color: rgba(255, 255, 255, .3); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger:hover { border-color: var(--bad); color: var(--bad); }
.btn.small { padding: 4px 10px; font-size: 12px; }
form.inline { display: inline-flex; gap: 6px; align-items: center; margin: 2px 4px 2px 0; }
.actions { white-space: normal; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; color: var(--muted); font-size: 12px; font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
td.wrap { min-width: 200px; }
tr:last-child td { border-bottom: 0; }
tr.dim td { opacity: .55; }

.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px 16px; margin: 0; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

.chip { display: inline-flex; align-items: center; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.chip.c-accent { background: var(--accent-soft); color: var(--accent); }
.chip.c-good { background: color-mix(in srgb, var(--good) 14%, transparent); color: var(--good); }
.chip.c-warn { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.chip.c-bad { background: color-mix(in srgb, var(--bad) 13%, transparent); color: var(--bad); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.off { color: var(--muted); background: var(--surface-2); }
.status.live { color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, transparent); }

.flash { padding: 10px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); }
.flash.ok { border-color: var(--good); }
.flash.err { border-color: var(--bad); color: var(--bad); }
.flash.info { border-color: var(--info); }
.keybox { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: var(--surface-2); padding: 10px 12px; border-radius: 8px; margin: 10px 0; }
.keybox code { font-size: 14px; overflow-wrap: anywhere; min-width: 0; }

@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 16px; gap: 0; }
  .side .menu-toggle { display: inline-block; }
  .side-menu { display: none; gap: 12px; padding-top: 12px; }
  .side.open .side-menu { display: flex; }
  .nav a { padding: 10px 12px; }
  .side-foot { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding-top: 12px; border-top: 1px solid var(--line); }
  .side-foot .muted { flex-basis: 100%; }
  main { padding-inline: 16px; }
  .g-2 { grid-template-columns: minmax(0, 1fr); }
}

/* ───────── Phase 2: Auswertungen ───────── */
.g-3-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.kpi .val { color: var(--heading); }
.kpis.k4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpis.k5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kpis.k7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
/* sieben schmale Kacheln: Überschrift, Wert und Zeile darunter über alle Kacheln auf einer Linie, auch wenn eine umbricht */
.kpis.k7 > .kpi { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 4px; align-content: start; }
.kpi .val .of { font-size: 14px; font-weight: 400; color: var(--muted); }
.kpi { background: var(--surface); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kpi .val { font: 600 22px var(--font-mono); font-variant-numeric: tabular-nums; }
.kpi .delta { font-size: 12px; font-family: var(--font-mono); color: var(--muted); }
.eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.up { color: var(--good) !important; } .down { color: var(--bad) !important; }

figure.chart-box { margin: 0; }
svg.chart { width: 100%; height: auto; display: block; overflow: visible; }
svg.chart text { fill: var(--muted); font: 11px var(--font-mono); }
svg.chart text.strong { fill: var(--fg); font-weight: 600; }
svg.chart text.seg-label { fill: var(--fg); font-weight: 500; }
svg.chart .grid { stroke: var(--line); }
svg.chart .bar { fill: var(--chart); }
svg.chart .bar.soft { fill: var(--chart); opacity: .55; }
svg.chart .line { fill: none; stroke: var(--info); stroke-width: 2; stroke-linejoin: round; }
svg.chart .line.accent { stroke: var(--chart); }
svg.chart .dot { fill: var(--info); } svg.chart .dot.accent { fill: var(--chart); }
svg.chart .area { fill: var(--chart); opacity: .18; }
svg.chart .band { fill: var(--surface-2); opacity: .7; }
svg.chart .ad { fill: var(--muted); opacity: .22; }
svg.chart .seg { opacity: .2; } svg.chart .seg0 { fill: var(--info); } svg.chart .seg1 { fill: var(--chart); } svg.chart .seg2 { fill: var(--good); } svg.chart .seg3 { fill: var(--warn); }
svg.chart .s-regular { fill: var(--chart); } svg.chart .s-back { fill: var(--good); } svg.chart .s-first { fill: var(--warn); }
svg.chart .s-warn { fill: var(--warn); } svg.chart .s-timeout { fill: var(--chart); } svg.chart .s-ban { fill: var(--bad); }
svg.chart .mark { stroke-width: 1; stroke-dasharray: 3 3; opacity: .8; }
svg.chart .m-mod { stroke: var(--bad); fill: var(--bad); } svg.chart .m-raid { stroke: var(--good); fill: var(--good); }
svg.chart .m-change { stroke: var(--info); fill: var(--info); } svg.chart .m-warn { stroke: var(--warn); fill: var(--warn); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.legend .l-accent { background: var(--chart); } .legend .l-info { background: var(--info); } .legend .l-good { background: var(--good); }
.legend .l-warn { background: var(--warn); } .legend .l-bad { background: var(--bad); } .legend .l-muted { background: var(--muted); opacity: .45; }
.legend .l-dash, .legend .l-ref { width: 16px; height: 0; border-radius: 0; background: none; border-top: 2px dashed var(--chart); vertical-align: 3px; }
.legend .l-ref { border-top-color: var(--accent); }
svg.chart .line.dashed { stroke-dasharray: 5 4; opacity: .75; }
svg.chart .ref { stroke: var(--accent); stroke-dasharray: 4 4; opacity: .6; }
svg.chart text.ref-label { fill: var(--accent); }
svg.chart .dot.peak { fill: var(--accent); }
/* Platz in der Kategorie im Zuschauerverlauf: rechte Achse, oben = Platz 1 */
svg.chart .rank-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
svg.chart .rank-halo { fill: none; stroke: var(--surface); stroke-width: 5; stroke-linejoin: round; opacity: .75; }
svg.chart .rank-dot { fill: var(--accent); }
svg.chart .rank-band { fill: var(--accent); opacity: .07; }
svg.chart text.rank-axis, svg.chart text.rank-band-label, svg.chart text.hover-sub.rank { fill: var(--accent); }
svg.chart text.rank-band-label { font-size: 10px; }
.legend .l-rank { width: 16px; height: 0; border-radius: 0; background: none; border-top: 3px solid var(--accent); vertical-align: 3px; }
.legend .l-top { background: var(--accent); opacity: .35; }
svg.chart .hit { fill: transparent; }
svg.chart .hit:hover { fill: var(--fg); fill-opacity: .04; }

/* Treue-Tabelle: Anzahl je Zelle, Hintergrund nach Anteil */
.coh { display: inline-block; min-width: 40px; padding: 2px 6px; border-radius: 6px; text-align: center; font-family: var(--font-mono); color: var(--heading); }

.bar-list { display: flex; flex-direction: column; gap: 9px; }
.bar-item { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr) 64px; gap: 10px; align-items: center; font-size: 13px; }
.bar-item > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-item .track { height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.bar-item .fill { height: 100%; background: var(--chart); border-radius: 4px; }
.bar-item .num { text-align: right; }
.bar-list.wide-num .bar-item { grid-template-columns: minmax(0, 150px) minmax(0, 1fr) 112px; }
.bar-list.wide-num .num { white-space: nowrap; }
.bar-list.with-rank .bar-item { grid-template-columns: minmax(0, 150px) minmax(0, 1fr) 54px 124px; }
.bar-list.with-rank .rank { text-align: right; white-space: nowrap; font-size: 12px; }
.note { font-size: 13px; color: var(--muted); border-left: 3px solid var(--apricot); padding: 4px 0 4px 12px; margin: 14px 0 0; }

.timeline { display: flex; flex-direction: column; }
.tl-row { display: grid; grid-template-columns: 74px 128px minmax(0, 1fr); gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; align-items: baseline; }
.tl-row:last-child { border-bottom: 0; }
.tl-row .by { color: var(--muted); }
a.vod { font-family: var(--font-mono); font-size: 12px; text-decoration: none; white-space: nowrap; color: var(--twitch); filter: brightness(1.35); }
a.vod:hover { text-decoration: underline; }
.chip.c-info { background: color-mix(in srgb, var(--info) 13%, transparent); color: var(--info); }

.msg { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.msg:last-child { border-bottom: 0; }
.msg .meta { font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.msg .body { min-width: 0; overflow-wrap: anywhere; }
.msg .who { font-weight: 600; margin-right: 6px; text-decoration: none; color: var(--fg); }
.msg.bot { opacity: .55; }
.msg .deleted { text-decoration: line-through; color: var(--muted); }
mark { background: color-mix(in srgb, var(--warn) 30%, transparent); color: inherit; border-radius: 3px; padding: 0 2px; }

.profile-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 14px; }
.profile-head .avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.fact { background: var(--surface-2); border-radius: 8px; padding: 10px 12px; min-width: 0; }
.fact .num { font: 600 17px var(--font-mono); }
.attend { display: grid; grid-template-columns: repeat(31, minmax(0, 1fr)); gap: 3px; margin-top: 6px; }
.attend span { aspect-ratio: 1; border-radius: 3px; background: var(--surface-2); max-width: 100%; }
.attend span.on { background: var(--accent); }

.search { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.search .input { flex: 1 1 200px; width: auto; min-width: 0; }
.search select.input { flex: 0 1 190px; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 12px; font-size: 13px; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 8px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg a { padding: 5px 10px; border-radius: 6px; font-size: 13px; color: var(--muted); text-decoration: none; }
.seg a[aria-current="true"] { background: var(--surface); color: var(--fg); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--surface-2); }
td.r, th.r { text-align: right; }
.nav-sep { height: 1px; background: var(--line); margin: 8px 6px; }

@media (max-width: 1100px) {
  .kpis, .kpis.k5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpis.k5 > .kpi:last-child { grid-column: span 2; }
  .kpis.k7 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kpis.k7 > .kpi:last-child { grid-column: span 2; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .g-3-1 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .kpis, .kpis.k4, .kpis.k5, .kpis.k7 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tl-row { grid-template-columns: 62px minmax(0, 1fr); }
  .tl-row .tl-type { display: none; }
  .msg { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .msg .meta { flex-direction: row; gap: 10px; }
  .bar-item { grid-template-columns: minmax(0, 100px) minmax(0, 1fr) 54px; }
  .bar-list.wide-num .bar-item { grid-template-columns: minmax(0, 90px) minmax(0, 1fr) 100px; }
  .bar-list.with-rank .bar-item { grid-template-columns: minmax(0, 100px) minmax(0, 1fr) 54px; row-gap: 2px; }
  .bar-list.with-rank .rank { grid-column: 1 / -1; text-align: left; }
}

/* Notiz im Nutzerprofil */
.note-box .form { margin-top: 4px; }
.note-box .row { margin-top: 6px; }
.note-box .row .btn { margin-top: 0; }

/* Verbindungsseite für den Streamer */
.connect { display: flex; flex-direction: column; gap: 12px; }
.connect h1 { font-size: 19px; }
.connect label.check { align-items: flex-start; }
.connect label.check small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.connect label.check input { margin-top: 4px; }

/* Twitch-Verbindung */
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.steps .keybox { margin-top: 6px; }
pre.code { background: var(--surface-2); border-radius: 8px; padding: 10px 12px; font-family: var(--font-mono); font-size: 12px; overflow-x: auto; margin: 6px 0 0; }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .g-4 { grid-template-columns: minmax(0, 1fr); } }
.ad-plan { font-size: 13px; padding-left: 10px; border-left: 1px solid var(--line); }

/* Stream-Bericht */
.report-card { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; border: 1px solid var(--accent); background: var(--accent-soft); border-radius: var(--radius); padding: 12px 16px; }
.names { margin: 0; font-size: 13px; line-height: 1.8; }

/* Release Notes */
.nav-badge { font-size: 10px; font-weight: 700; color: #fff; background: var(--accent); padding: 1px 6px; border-radius: 999px; margin-left: 6px; vertical-align: 1px; }
.rn-entry { display: flex; flex-direction: column; gap: 10px; }
.rn-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; }
.rn-date { font-size: 13px; }
.rn-new { font-size: 11px; font-weight: 700; color: #fff; background: var(--accent); padding: 2px 8px; border-radius: 999px; }
.rn-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rn-list li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: start; line-height: 1.5; }
.rn-tag { justify-content: center; }
@media (max-width: 520px) {
  .rn-list li { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .rn-tag { justify-self: start; }
}

/* Highlight-Marker */
svg.chart text.star { fill: var(--accent); font: 15px var(--font-body); }
svg.chart .star-line { stroke: var(--accent); stroke-dasharray: 3 3; opacity: .7; }
.chip.c-twitch { background: color-mix(in srgb, var(--twitch) 24%, transparent); color: #c7a8ff; }
.legend .l-star { background: var(--accent); }

/* Anleitung (Script-Installationen) */
.guide-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.guide-steps li { background: rgba(255, 255, 255, .035); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 6px; counter-increment: step; font-size: 13px; }
.guide-steps li::before { content: counter(step); width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font: 700 13px var(--font-head); }
.guide-steps li strong { color: var(--heading); font-family: var(--font-head); font-size: 14px; }
.guide-steps .btn { align-self: flex-start; margin-top: 4px; }
.guide-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 5px; font-size: 13px; }
.guide-table td { vertical-align: top; }
.guide-table td[rowspan] { white-space: nowrap; }
.guide-table td:last-child { min-width: 120px; }
.path { font-family: var(--font-mono); font-size: 12px; background: rgba(255, 255, 255, .06); padding: 1px 6px; border-radius: 6px; color: var(--fg); white-space: nowrap; }
.kbd { font-family: var(--font-mono); font-size: 11px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; }
.need { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 6px; white-space: nowrap; margin: 1px 0; }
.need.n-none { background: color-mix(in srgb, var(--good) 15%, transparent); color: var(--good); }
.need.n-dash { background: var(--accent-soft); color: var(--accent); }
.need.n-app { background: color-mix(in srgb, var(--twitch) 24%, transparent); color: #c7a8ff; }
.need.n-mod { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
details.fix { border-bottom: 1px solid var(--line); padding: 10px 0; }
details.fix:last-child { border-bottom: 0; }
details.fix summary { cursor: pointer; color: var(--heading); font-weight: 600; }
details.fix p { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
@media (max-width: 860px) { .guide-steps { grid-template-columns: minmax(0, 1fr); } }

/* Clips der Zuschauer */
svg.chart text.clip { fill: var(--info); font: 12px var(--font-body); }
.clips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.clip { background: rgba(255, 255, 255, .035); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.thumb { position: relative; aspect-ratio: 16 / 9; max-width: 100%; display: grid; place-items: center; color: rgba(255, 255, 255, .85); font: 700 22px var(--font-head); text-decoration: none; overflow: hidden; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb .dur, .thumb .views { position: absolute; bottom: 6px; font: 600 11px var(--font-mono); background: rgba(0, 0, 0, .65); color: #fff; padding: 1px 6px; border-radius: 4px; }
.thumb .dur { right: 6px; } .thumb .views { left: 6px; }
.t1 { background: linear-gradient(135deg, #3b2a52, #8a4f7d); } .t2 { background: linear-gradient(135deg, #1f3550, #4d7aa8); } .t3 { background: linear-gradient(135deg, #4a2f24, #b0734d); }
.t4 { background: linear-gradient(135deg, #263b2e, #5f9a6e); } .t5 { background: linear-gradient(135deg, #3a2240, #c15a8d); } .t6 { background: linear-gradient(135deg, #2b2b3a, #7a6fa6); }
.clip-body { padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; min-width: 0; }
.clip-body strong { color: var(--heading); font-family: var(--font-head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clip-foot { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: space-between; margin-top: 4px; }
a.chip { text-decoration: none; }
.expiry-card, .alert-card { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; border: 1px solid var(--bad); background: color-mix(in srgb, var(--bad) 10%, transparent); border-radius: var(--radius); padding: 12px 16px; font-size: 13px; }
.expiry-card strong, .alert-card strong { color: var(--heading); font-family: var(--font-head); }
/* Warnung bei hängenden Abgleichen: je Aufgabe eine Zeile, darunter der Fehlertext (kann lang sein, z. B. mit Dateipfad) */
.alert-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; flex: 1 1 320px; min-width: 0; }
.alert-card .cause { display: block; margin-top: 2px; font-size: 12px; overflow-wrap: anywhere; }
@media (max-width: 1100px) { .clips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .clips { grid-template-columns: minmax(0, 1fr); } }

/* Was aus neuen Chattern wird */
.funnel { display: flex; flex-direction: column; gap: 8px; }
.f-row { display: grid; grid-template-columns: 190px minmax(0, 1fr) 110px; gap: 12px; align-items: center; font-size: 13px; }
.f-track { height: 22px; background: rgba(255, 255, 255, .04); border-radius: 6px; overflow: hidden; }
.f-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--chart), var(--accent)); }
.f-num { font-family: var(--font-mono); text-align: right; }
.score { display: inline-flex; gap: 2px; }
.score i { width: 10px; height: 10px; border-radius: 2px; background: var(--surface-2); display: inline-block; }
.score i.on { background: var(--chart); }
.pct { display: grid; grid-template-columns: 40px minmax(60px, 1fr); gap: 8px; align-items: center; font-family: var(--font-mono); font-size: 12px; }
.pct .bar { height: 8px; background: rgba(255, 255, 255, .05); border-radius: 4px; overflow: hidden; }
.pct .bar span { display: block; height: 100%; background: var(--chart); border-radius: 4px; }
@media (max-width: 520px) { .f-row { grid-template-columns: 110px minmax(0, 1fr) 80px; } }
svg.chart text.clock { font-size: 10px; opacity: .7; }

/* Zuschauerkurve: Hover und Tooltips */
svg.chart .hover-pad { fill: transparent; cursor: crosshair; }
svg.chart .hover-line { stroke: var(--fg); stroke-width: 1; opacity: .35; }
svg.chart .hover-box { fill: var(--surface); stroke: var(--line); }
svg.chart text.hover-strong { fill: var(--heading); font: 600 12px var(--font-body); }
svg.chart text.hover-sub { fill: var(--muted); font: 11px var(--font-body); }
svg.chart .sym { cursor: help; }
svg.chart .ad { pointer-events: all; }
.tl-time { display: flex; flex-direction: column; line-height: 1.3; }
.tl-time small { font-size: 11px; }

/* Kategorie-Seite: kleine Verlaufslinie je Abschnitt, Kategorie-Links */
svg.spark { display: block; width: 120px; height: 30px; }
svg.spark .line { fill: none; stroke: var(--chart); stroke-width: 1.6; }
svg.spark .area { fill: var(--chart); opacity: .18; }
svg.spark line { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 3; }
a.cat-link { color: inherit; text-decoration: none; }
a.cat-link:hover, a.cat-link:focus-visible { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }

/* Kern und Treue: Anwesenheit je Person und Stream – eine Zelle je Stream, Farbe nach Nachrichtenzahl (b1–b5) */
.hm { font-size: 13px; }
.hm h3 { margin: 14px 0 4px; font-size: 13px; }
.hm h3 .muted { font-weight: 500; }
/* --tracks (je Stream eine Spur, vor Wochenwechseln eine schmale Lücke) und die Mindestbreite setzt die Ansicht */
.hm-row { display: grid; grid-template-columns: minmax(120px, 190px) var(--tracks); column-gap: 2px; align-items: center; min-height: 22px; }
.hm-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 10px; }
.hm-name a { text-decoration: none; }
.hm-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hm-c { height: 18px; border-radius: 4px; background: rgba(255, 255, 255, .05); }
.hm-c.b1 { background: color-mix(in srgb, var(--chart) 30%, transparent); }
.hm-c.b2 { background: color-mix(in srgb, var(--chart) 45%, transparent); }
.hm-c.b3 { background: color-mix(in srgb, var(--chart) 62%, transparent); }
.hm-c.b4 { background: color-mix(in srgb, var(--chart) 80%, transparent); }
.hm-c.b5 { background: var(--chart); }
.hm-row:not(.hm-head):not(.hm-rest) .hm-c:hover { outline: 1px solid var(--fg); }
.hm-head, .hm-rest { min-height: 18px; }
.hm-head .hm-c, .hm-rest .hm-c { background: none; font: 11px/18px var(--font-mono); color: var(--muted); text-align: center; white-space: nowrap; }
.hm-head.mon .hm-c { text-align: left; }
.hm-head .hm-c.day { color: var(--heading); font-weight: 600; }
.hm-rest { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.hm-rest .hm-c { color: var(--fg); }
/* Anteil der Nachrichten je Stufe als gestapelter Balken; Zwischenzeilen der Tageszeit-Tabelle eingerückt */
.share-list { display: flex; flex-direction: column; gap: 8px; }
.share-row { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; align-items: center; font-size: 13px; }
.share { display: flex; gap: 2px; height: 22px; border-radius: 6px; overflow: hidden; font: 600 11px/22px var(--font-mono); color: var(--surface); text-align: center; white-space: nowrap; }
.share span { overflow: hidden; min-width: 2px; }
.share span.lab { min-width: 28px; }
/* zwei Tabellen-Panels nebeneinander erst auf breiten Bildschirmen, sonst untereinander (die Tabellen brauchen Platz) */
.g-2x { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1500px) { .g-2x { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.funnel.compact .f-row { grid-template-columns: 170px minmax(0, 1fr) 84px; }
@media (max-width: 520px) { .funnel.compact .f-row { grid-template-columns: 110px minmax(0, 1fr) 80px; } }
.share .s-kern { background: var(--chart); } .share .s-stamm { background: var(--good); } .share .s-rand { background: var(--warn); }
td.sub { padding-left: 24px; color: var(--muted); }
/* Tabelle mit vielen Zahlenspalten: lieber seitlich scrollen als „34 /“ und „35“ in zwei Zeilen */
table.nowrap td { white-space: nowrap; }
table.nowrap td.wrap { white-space: normal; }

/* Kern und Treue: Reiter Anwesenheit / Wer mit wem spricht */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 9px 14px; color: var(--muted); text-decoration: none; font: 700 14px var(--font-head); }
.tabs a:hover { color: var(--heading); }
.tabs a[aria-current="page"] { color: var(--heading); box-shadow: inset 0 -2px 0 var(--accent); }

/* Wer mit wem spricht: Netz links, Erläuterung rechts; schmal untereinander */
.split { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.split-main { flex: 3 1 440px; min-width: 0; }
.split-side { flex: 2 1 280px; min-width: 0; }
.split-side h3 { margin-bottom: 4px; }
.net-fig { flex: 3 1 460px; min-width: 0; margin: 0; overflow-x: auto; }
.sub-note { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
/* auf dem Handy nicht kleiner als 480 px (sonst unlesbare Namen), dafür seitlich scrollen */
svg.net { width: 100%; min-width: 480px; height: auto; display: block; max-width: 720px; margin: 0 auto; }
svg.net .e { stroke: #d9cfe6; stroke-linecap: round; }
svg.net .e:hover { stroke: var(--accent); stroke-opacity: 1; }
svg.net .n { stroke: var(--surface); stroke-width: 2; }
svg.net .n.k { fill: var(--chart); } svg.net .n.s { fill: var(--good); }
svg.net .n.r { fill: color-mix(in srgb, var(--warn) 25%, transparent); stroke: var(--warn); stroke-width: 1.5; stroke-dasharray: 3 3; }
svg.net text { font: 500 11px var(--font-body); fill: var(--fg); paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; }
svg.net text.sub { fill: var(--muted); font-weight: 400; }
/* Person auswählen (assets/app.js): ihre Linien in Pink, sie und ihre Partner kräftig, der Rest blass */
svg.net [data-id] { cursor: pointer; }
svg.net .e, svg.net .n, svg.net text { transition: opacity .15s, stroke-opacity .15s; }
svg.net .n:focus { outline: none; }
svg.net .n:focus-visible, svg.net .n.sel { stroke: var(--heading); stroke-width: 3; }
svg.net.focus .e { stroke-opacity: .05; }
svg.net.focus .e.on { stroke: var(--accent); stroke-opacity: .85; }
svg.net.focus .n:not(.sel):not(.near), svg.net.focus text:not(.sel):not(.near) { opacity: .25; }
.net-info { font-size: 13px; color: var(--muted); margin-top: 8px; min-height: 2.6em; }
svg.net.focus + .net-info { color: var(--fg); }
button.net-pick { all: unset; cursor: pointer; border-bottom: 1px dotted var(--muted); }
button.net-pick:hover, button.net-pick.sel { color: var(--heading); border-bottom: 1px solid var(--accent); }
button.net-pick:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.legend .l-dot { border-radius: 50%; }
.legend .l-rand { background: color-mix(in srgb, var(--warn) 25%, transparent); border: 1px dashed var(--warn); border-radius: 50%; }
/* stärkste Paare: Balken in beide Richtungen */
.pair { display: flex; flex-direction: column; gap: 5px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.pair:last-of-type { border-bottom: 0; }
.pair-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.pair-bar { display: flex; gap: 2px; height: 8px; }
.pair-bar span { border-radius: 3px; background: var(--chart); min-width: 0; }
.pair-bar span.back { background: color-mix(in srgb, var(--chart) 45%, transparent); }
/* Wer spricht wen an: Zelle mit Zahl und Anteil der Zeile, Farbe nach Anteil */
.mx-c { display: inline-flex; flex-direction: column; align-items: flex-end; min-width: 70px; padding: 5px 9px; border-radius: 8px; font: 600 13px/1.3 var(--font-mono); color: var(--heading); background: rgba(255, 255, 255, .05); }
.mx-c small { font-weight: 400; font-size: 11px; }
.mx-c.m1 { background: color-mix(in srgb, var(--chart) 30%, transparent); }
.mx-c.m2 { background: color-mix(in srgb, var(--chart) 45%, transparent); }
.mx-c.m3 { background: color-mix(in srgb, var(--chart) 62%, transparent); }
.mx-c.m4 { background: color-mix(in srgb, var(--chart) 80%, transparent); color: var(--surface); }
.mx-c.m5 { background: var(--chart); color: var(--surface); }
.dual { display: grid; grid-template-columns: 56px minmax(0, 1fr) 44px; gap: 4px 10px; align-items: center; font-size: 12px; margin-bottom: 10px; }
.dual .track { height: 9px; background: rgba(255, 255, 255, .04); border-radius: 4px; overflow: hidden; }
.dual .track i { display: block; height: 100%; border-radius: 4px; }
.dual .d-msgs { background: var(--muted); opacity: .6; } .dual .d-k { background: var(--chart); } .dual .d-s { background: var(--good); } .dual .d-r { background: var(--warn); }
/* Neue im Gespräch: angesprochen gegen nicht angesprochen */
.cmp { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px 18px; align-items: center; font-size: 13px; }
.cmp-h { font-size: 12px; font-weight: 600; }
.pct.wide { grid-template-columns: 70px minmax(50px, 1fr); }
.pct .bar span.off { background: var(--muted); }
@media (max-width: 520px) { .cmp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .cmp > span:first-child { display: none; } .cmp > span:not(.cmp-h):not(.muted) { grid-column: 1 / -1; } }
/* Entdeckung: Lage in der Kategorie je Messung – vorn mit Publikum (Lila), vorn mit kaum Publikum (gestreift), Platz 11–30 (dunkler), dahinter (grau) */
:root { --dv-m: #6f5788; --dv-d: #353039; --dv-k: repeating-linear-gradient(135deg, var(--chart) 0 2px, #2a2430 2px 5px); }
.dv-sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.dv-sw.vp, .dv-stack .vp, .legend .l-vp { background: var(--chart); }
.dv-sw.vk, .dv-stack .vk, .legend .l-vk { background: var(--dv-k); }
.dv-sw.vm, .dv-stack .vm, .legend .l-vm { background: var(--dv-m); }
.dv-sw.vd, .dv-stack .vd, .legend .l-vd { background: var(--dv-d); }
.dv-legend { margin: 0 0 10px; }
.legend .l-gap { background: none; border: 1px dashed #5a5463; }
.legend .l-fo, .legend .l-rg { width: 7px; height: 7px; border-radius: 50%; background: #fff; vertical-align: 0; }
.legend .l-rg { background: var(--warn); }
.legend .l-ne, .legend .l-both { width: 9px; height: 9px; border-radius: 50%; background: none; border: 1.5px solid #fff; }
.legend .l-both { background: radial-gradient(circle, #fff 0 2px, transparent 2.5px); }
.legend .l-raid { width: 2px; height: 12px; border-radius: 0; background: var(--warn); vertical-align: -2px; }
.dv-sub { display: block; color: var(--muted); font: 12px/1.35 var(--font-body); white-space: nowrap; }
.dv-sub.w { white-space: normal; }
.dv-sub .dv-sw { width: 8px; height: 8px; margin-right: 4px; vertical-align: 0; }
.dv-take { margin: 14px 0 0; max-width: 100ch; }
.dv-rate { display: grid; grid-template-columns: minmax(70px, 1fr) 38px; gap: 8px; align-items: center; font: 12px var(--font-mono); font-variant-numeric: tabular-nums; }
.dv-rate span { text-align: right; }
.dv-rate .track { height: 8px; background: rgba(255, 255, 255, .05); border-radius: 4px; overflow: hidden; }
.dv-rate .track i { display: block; height: 100%; background: var(--chart); border-radius: 4px; }
.dv-rate .track i.all { background: var(--muted); opacity: .6; }
tr.dv-sum td { border-top: 1px solid #4a4452; font-weight: 600; }
tr.dv-hl td { background: color-mix(in srgb, var(--good) 5%, transparent); }
.kpi .val.txt { font-family: var(--font-head); font-weight: 700; }
.dv-slot { display: grid; grid-template-columns: 170px minmax(0, 1fr) 250px; gap: 18px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.dv-slot:last-of-type { border-bottom: 0; }
.dv-stack { display: flex; gap: 2px; height: 26px; }
.dv-stack span { display: flex; align-items: center; justify-content: center; min-width: 0; overflow: hidden; white-space: nowrap; font: 600 11px var(--font-mono); color: #fff; border-radius: 2px; }
.dv-stack span:first-child { border-top-left-radius: 6px; border-bottom-left-radius: 6px; }
.dv-stack span:last-child { border-top-right-radius: 6px; border-bottom-right-radius: 6px; }
.dv-stack .vp { color: var(--surface); } .dv-stack .vd { color: var(--fg); }
.dv-stack .vk b { background: var(--surface); color: var(--fg); padding: 1px 5px; border-radius: 4px; font-weight: 600; }
.pct .bar span.k { background: var(--dv-k); }
td.dv-strip { padding-top: 4px; padding-bottom: 4px; }
svg.dv, svg.dv-axis { display: block; }
svg.dv .b-p { fill: var(--chart); } svg.dv .b-m { fill: var(--dv-m); } svg.dv .b-d { fill: var(--dv-d); }
svg.dv rect[class^="b-"]:hover { stroke: var(--fg); stroke-width: 1; }
svg.dv .gap { fill: none; stroke: #5a5463; stroke-dasharray: 2 2; }
svg.dv .sw { stroke: var(--fg); stroke-width: 1.5; }
svg.dv .raid { stroke: var(--warn); stroke-width: 1.5; }
svg.dv circle.e { fill: none; stroke-width: 1.5; } svg.dv circle.e.many { stroke-width: 2.4; }
svg.dv circle.e.s { stroke: #fff; } svg.dv circle.e.r { stroke: var(--warn); } svg.dv circle.e.x { stroke: var(--muted); }
svg.dv circle.f.s { fill: #fff; } svg.dv circle.f.r { fill: var(--warn); } svg.dv circle.f.x { fill: var(--muted); }
svg.dv-axis text { font: 11px var(--font-body); fill: var(--muted); }
@media (max-width: 720px) { .dv-slot { grid-template-columns: minmax(0, 1fr); gap: 6px; } }

/* ───────── KI-Auswertung (Stream-Seite) ───────── */
.ai-panel { border-color: color-mix(in srgb, var(--chart) 45%, var(--line)); display: flex; flex-direction: column; gap: 16px; }
.ai-panel .panel-head { margin-bottom: 0; }
.ai-panel h3 { margin-bottom: 6px; }
.ai-panel .flash, .ai-panel p { margin: 0; }
.chip.c-ai { background: color-mix(in srgb, var(--chart) 18%, transparent); color: #c9a6e6; vertical-align: 2px; margin-left: 6px; }
.ai-lead { font-size: 16px; line-height: 1.6; color: var(--heading); max-width: 82ch; }
.ai-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.ai-cols > div { min-width: 0; }
.ai-box { background: rgba(255, 255, 255, .035); border-radius: 12px; padding: 14px 16px; }
.ai-list { margin: 0; padding: 0; list-style: none; counter-reset: ai; }
.ai-list li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.ai-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.ai-list li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; background: var(--muted); }
.ai-list.g li::before { background: var(--good); }
.ai-list.n li::before { background: var(--warn); }
.ai-list.num li { counter-increment: ai; }
.ai-list.num li::before { content: counter(ai); width: auto; height: auto; margin: 0; background: none; border-radius: 0; color: #c9a6e6; font-family: var(--font-mono); }
.tl-row.ai-moment { grid-template-columns: 44px 112px minmax(0, 1fr); }
.ai-foot { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 560px) { .tl-row.ai-moment { grid-template-columns: 44px minmax(0, 1fr); } .tl-row.ai-moment > span:last-child { grid-column: 1 / -1; } }
.ai-panel .bar-item { grid-template-columns: minmax(0, 220px) minmax(0, 1fr) 48px; }
.ai-panel .bar-item > span:first-child { white-space: normal; }
@media (max-width: 560px) { .ai-panel .bar-item { grid-template-columns: minmax(0, 1fr) 70px 48px; } }
