
:root {
  --bg: #0c1119;
  --sidebar: #0e141e;
  --surface: #141c28;
  --surface-2: #101722;
  --surface-3: #182231;
  --hover: #1a2737;
  --selected: #192c40;
  --input: #101823;
  --border: rgba(180, 205, 240, .11);
  --border-strong: rgba(255, 255, 255, .1);
  --divider: rgba(180, 205, 240, .075);
  --text: #edf3fb;
  --text-2: #d5e0ee;
  --text-3: #bac8db;
  --muted: #9cacc1;
  --faint: #8294ad;

  --ice: oklch(0.80 0.12 222);
  --ice-fg: oklch(0.82 0.11 222);
  --ice-hover: oklch(0.86 0.1 222);
  --ice-text: #06121a;
  --frost: oklch(0.88 0.07 215);
  --ok: oklch(0.78 0.13 155);
  --ok-fg: oklch(0.82 0.13 155);
  --warn: oklch(0.78 0.13 78);
  --warn-fg: oklch(0.86 0.12 78);
  --bad: oklch(0.78 0.13 22);
  --bad-fg: oklch(0.82 0.13 22);
  --violet: oklch(0.78 0.13 295);
  --violet-fg: oklch(0.86 0.1 295);
  --info: oklch(0.78 0.13 250);
  --info-fg: oklch(0.84 0.11 250);
  --rookie: #a3a5b2;

  --serif: var(--sans);
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 14.5px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--ice-fg); text-decoration: none; }
a:hover { color: var(--ice-hover); }
button, input, textarea, select { font-family: inherit; }
::selection { background: var(--ice); color: var(--ice-text); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.08); border-radius: 10px; border: 3px solid var(--bg); }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 1px; }

/* ── Tonfarben ───────────────────────────────────────────────────────────── */
.t-ice    { --tone: var(--ice);    --tone-fg: var(--ice-fg); }
.t-frost  { --tone: var(--frost);  --tone-fg: var(--frost); }
.t-ok     { --tone: var(--ok);     --tone-fg: var(--ok-fg); }
.t-warn   { --tone: var(--warn);   --tone-fg: var(--warn-fg); }
.t-bad    { --tone: var(--bad);    --tone-fg: var(--bad-fg); }
.t-info   { --tone: var(--info);   --tone-fg: var(--info-fg); }
.t-violet { --tone: var(--violet); --tone-fg: var(--violet-fg); }
.t-mute   { --tone: var(--muted);  --tone-fg: var(--muted); }
.t-rookie { --tone: var(--rookie); --tone-fg: var(--rookie); }

/* ── Grundgerüst ─────────────────────────────────────────────────────────── */
.shell {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 28px;
  padding: 28px 16px 18px;
  background: var(--sidebar);
  border-right: 1px solid rgba(255,255,255,.06);
}

.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand__logo {
  flex: none; width: 40px; height: 40px; border-radius: 11px; overflow: hidden; background: var(--bg);
  box-shadow: 0 0 0 1px rgba(170,210,255,.2);
}
.brand__logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.brand__name { font-family: var(--serif); font-size: 23px; font-weight: 700; line-height: 1.1; letter-spacing: -.04em; }
.brand__sub { font-size: 11px; letter-spacing: .01em; color: oklch(0.82 0.08 222); }

.eyebrow-label {
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--faint); padding: 0 10px 8px;
}

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav__item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px; border-radius: 10px;
  font-size: 14px; font-weight: 500; color: var(--muted);
}
.nav__item:hover { background: var(--hover); color: var(--text); }
.nav__item[aria-current="page"] {
  background: #1c2d40; color: var(--text);
  box-shadow: inset 2px 0 0 var(--ice);
}
.nav__num { font-family: var(--mono); font-size: 10.5px; color: var(--muted); width: 16px; }
.nav__item[aria-current="page"] .nav__num { color: var(--ice); }
.nav__label { flex: 1; }
.nav__count {
  min-width: 22px; padding: 1px 7px; border-radius: 999px; text-align: center;
  background: var(--ice); color: var(--ice-text); font-size: 11px; font-weight: 700;
}

.sidebar__foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.sysbox {
  border: 1px solid rgba(255,255,255,.06); border-radius: 14px; padding: 14px; background: var(--surface-2);
  display: flex; flex-direction: column; gap: 10px;
}
.sysbox__head { display: flex; justify-content: space-between; align-items: center; gap: 6px; flex-wrap: wrap; }
.sysbox__head span:first-child {
  font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint);
}
.sysbox__state { font-family: var(--mono); font-size: 10.5px; color: var(--tone-fg, var(--ok)); }
.sysrow { display: flex; align-items: center; gap: 9px; font-size: 12.5px; }
.sysrow__label { color: var(--text-3); flex: 1; }
.sysrow__value { font-family: var(--mono); font-size: 11px; color: var(--muted); }

.dot {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: var(--tone, var(--ok));
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--tone, var(--ok)) 20%, transparent);
}

.whoami { display: flex; align-items: center; gap: 11px; padding: 8px; }
.whoami__text { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.whoami__name { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.whoami__level { font-size: 11.5px; color: var(--muted); }

.main { min-width: 0; width: 100%; }
.topbar { min-height: 72px; padding: 16px 36px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 12px; color: var(--muted); }
.topbar strong { font-weight: 500; color: var(--text-2); }
.topbar__sep { padding: 0 12px; color: var(--faint); }
.main__content { width: 100%; max-width: 1640px; margin: 0 auto; padding: 36px 36px 28px; display: flex; flex-direction: column; gap: 32px; }
.pagefoot { margin-top: 12px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; font-size: 11px; color: var(--faint); }
.workspace-label { display: flex; align-items: center; gap: 10px; padding: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; font-size: 12px; font-weight: 600; }
.workspace-label > span:nth-child(2) { flex: 1; }
.workspace-label small { display: block; font-size: 10px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.workspace-label__avatar { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #3e5875; background: #223850; color: #badcff; border-radius: 7px; }
.nav__icon { flex: none; width: 18px; height: 18px; color: var(--muted); }
.nav__item[aria-current="page"] .nav__icon { color: var(--ice); }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; padding: 12px; background: var(--ice); color: var(--bg); }
.skip-link:focus { top: 12px; }

/* ── Seitenkopf ──────────────────────────────────────────────────────────── */
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.pagehead__text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.eyebrow__dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ice);
  box-shadow: 0 0 10px var(--ice);
}
.eyebrow__sep { color: #3d3f4a; }
h1 {
  margin: 0; font-family: var(--sans); font-weight: 650;
  font-size: 32px; line-height: 1.2; letter-spacing: -.04em; text-wrap: balance;
}
.lede { margin: 0; color: var(--muted); font-size: 14.5px; text-wrap: pretty; }
.pagehead__actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-left: auto; }
.phase {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.07); font-size: 12.5px; color: var(--text-3);
}
.phase .dot { box-shadow: none; }

h2 { margin: 0; font-size: 15px; font-weight: 600; }

/* ── Karten & Raster ─────────────────────────────────────────────────────── */
.stack { display: flex; flex-direction: column; gap: 28px; }
.cards { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.col-wide { flex: 2 1 560px; min-width: 0; }
.col-side { flex: 1 1 320px; min-width: 0; }
.grid-300 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; align-items: start; }
.grid-330 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 16px; align-items: start; }

.card {
  padding: 24px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 16px;
}
.card--flush { padding: 0; overflow: hidden; gap: 0; }
.card--plain { gap: 14px; }
.card__head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}
.card--flush > .card__head { padding: 18px 22px; border-bottom: 1px solid rgba(255,255,255,.06); }
.card__title { display: flex; align-items: center; gap: 10px; }
.card__titles { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.card__sub { font-size: 12.5px; color: var(--muted); }
.card__count { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.card__foot { padding: 14px 22px; font-size: 12px; color: var(--faint); line-height: 1.5; }
.card__note { font-size: 12px; color: var(--faint); line-height: 1.5; }

/* ── Kennzahlen ──────────────────────────────────────────────────────────── */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi {
  display: flex; flex-direction: column; gap: 14px;
  padding: 22px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
}
.kpi:hover { border-color: rgba(255,255,255,.14); background: var(--surface-3); color: var(--text); }
.kpi__top { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.kpi__label { font-size: 12.5px; color: var(--muted); }
.kpi__delta { font-size: 11px; color: var(--faint); }
.kpi__main { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.kpi__value { font-family: var(--serif); font-size: 38px; line-height: 1.2; font-weight: 600; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.kpi__value--tone { color: var(--tone-fg, var(--text)); }
.kpi__hint { font-size: 11.5px; color: var(--faint); }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 34px; }
.spark i {
  display: block; width: 5px; height: var(--h, 10%); border-radius: 2px;
  background: color-mix(in oklab, var(--tone, var(--ice)) 35%, transparent);
}
.spark i.is-last { background: var(--tone, var(--ice)); }

/* ── Diagramm ────────────────────────────────────────────────────────────── */
.chart { display: flex; flex-direction: column; gap: 18px; padding-bottom: 18px; }
.readout { display: flex; gap: 28px; align-items: baseline; flex-wrap: wrap; }
.readout__block { display: flex; flex-direction: column; gap: 2px; }
.readout__kw { font-family: var(--mono); font-size: 11px; color: oklch(0.82 0.08 222); letter-spacing: .06em; }
.readout__main { font-family: var(--serif); font-size: 30px; font-weight: 550; line-height: 1.3; letter-spacing: -.035em; }
.readout__label { font-size: 11.5px; color: var(--muted); }
.readout__value { font-size: 15px; font-weight: 500; }
.readout__value--tone { color: var(--tone-fg, var(--text)); }

.plot { position: relative; display: flex; flex-direction: column; gap: 10px; }
.plot__grid {
  position: absolute; inset: 0 0 26px 0; display: flex; flex-direction: column;
  justify-content: space-between; pointer-events: none;
}
.plot__line { display: flex; align-items: center; gap: 10px; }
.plot__line i { flex: 1; height: 1px; background: rgba(255,255,255,.05); }
.plot__line span { font-family: var(--mono); font-size: 10px; color: var(--faint); width: 40px; text-align: right; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 210px; padding-right: 50px; }
.bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; position: relative; z-index: 1; }
.bar i {
  display: block; height: var(--h, 0%); border-radius: 7px 7px 3px 3px;
  background: color-mix(in oklab, var(--ice) 24%, transparent);
}
.bar.is-active i { background: var(--ice); box-shadow: none; }
.bar.is-partial i {
  background: repeating-linear-gradient(135deg,
    color-mix(in oklab, var(--ice) 40%, transparent) 0 5px,
    color-mix(in oklab, var(--ice) 12%, transparent) 5px 10px);
  box-shadow: none;
}
.bar.is-partial.is-active i {
  background: repeating-linear-gradient(135deg,
    color-mix(in oklab, var(--ice) 75%, transparent) 0 5px,
    color-mix(in oklab, var(--ice) 30%, transparent) 5px 10px);
}
.barlabels { display: flex; gap: 10px; padding-right: 50px; }
.barlabels span { flex: 1; text-align: center; font-family: var(--mono); font-size: 10px; color: var(--faint); }
.barlabels span.is-active { color: var(--text); }

.segment { display: flex; padding: 3px; border-radius: 10px; background: var(--input); border: 1px solid rgba(255,255,255,.06); gap: 4px; }
.segment--grid { display: grid; }
.segment a, .segment button {
  border: 0; padding: 6px 12px; border-radius: 8px; background: transparent; color: var(--muted);
  font-size: 12.5px; font-weight: 500; cursor: pointer; text-align: center;
}
.segment a:hover, .segment button:hover { color: var(--text); }
.segment a[aria-current="page"] { background: #1d2130; color: var(--text); }
.segment button[aria-pressed="true"] {
  background: color-mix(in oklab, var(--tone, var(--ice)) 22%, transparent);
  color: var(--tone-fg, var(--text));
}
.segment--sm a, .segment--sm button { padding: 7px 4px; font-size: 12px; }
.segment form { display: flex; }
.segment form > button { flex: 1; }
.segment button[disabled] { opacity: 1; cursor: default; }

/* ── Lebenszyklus & Balken ───────────────────────────────────────────────── */
.funnel { display: flex; flex-direction: column; gap: 14px; }
.funnel__row { display: flex; flex-direction: column; gap: 7px; }
.funnel__top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.funnel__label { font-size: 13px; color: var(--text-2); }
.funnel__nums { display: flex; gap: 10px; align-items: baseline; }
.funnel__conv { font-family: var(--mono); font-size: 10.5px; color: var(--faint); }
.funnel__count { font-size: 15px; font-weight: 600; }
.meter { height: 10px; border-radius: 999px; background: rgba(255,255,255,.04); overflow: hidden; }
.meter i { display: block; height: 100%; width: var(--w, 0%); border-radius: 999px; background: var(--tone, var(--ice)); }
.meter--thin { height: 4px; }
.meter--mid { height: 8px; }
.meter--row { height: 5px; background: rgba(255,255,255,.06); }

.callout {
  margin-top: auto; padding: 14px; border-radius: 12px; background: #0e1016;
  border: 1px dashed oklch(0.80 0.12 222 / .25);
  display: flex; gap: 12px; align-items: flex-start;
}
.callout__big { font-family: var(--serif); font-size: 30px; line-height: .9; color: oklch(0.86 0.09 222); }
.callout__text { font-size: 12.5px; color: var(--muted); line-height: 1.45; text-wrap: pretty; }

/* ── Abzeichen, Avatare, Plattformen ─────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 600; white-space: nowrap;
  color: var(--tone-fg, var(--tone)); background: color-mix(in oklab, var(--tone) 15%, transparent);
}
.pill--ice { --tone: var(--ice); --tone-fg: var(--ice-fg); }
.pill--frost { --tone: var(--frost); --tone-fg: var(--frost); }
.pill--ok { --tone: var(--ok); --tone-fg: var(--ok-fg); }
.pill--warn { --tone: var(--warn); --tone-fg: var(--warn-fg); }
.pill--bad { --tone: var(--bad); --tone-fg: var(--bad-fg); }
.pill--info { --tone: var(--info); --tone-fg: var(--info-fg); }
.pill--violet { --tone: var(--violet); --tone-fg: var(--violet-fg); }
.pill--mute { --tone: var(--muted); --tone-fg: var(--muted); }
.pill--rookie { --tone: var(--rookie); --tone-fg: var(--rookie); }
.pill--lg { padding: 3px 9px; font-size: 11.5px; }

.tier { font-size: 12.5px; font-weight: 500; color: var(--tone-fg, var(--text)); }
.tier--ice { --tone-fg: var(--ice-fg); }
.tier--frost { --tone-fg: var(--frost); }
.tier--ok { --tone-fg: var(--ok-fg); }
.tier--info { --tone-fg: var(--info-fg); }
.tier--violet { --tone-fg: var(--violet-fg); }
.tier--mute { --tone-fg: var(--muted); }
.tier--rookie { --tone-fg: var(--rookie); }

.avatar {
  flex: none; display: grid; place-items: center; border-radius: 50%;
  width: 34px; height: 34px; font-size: 11.5px; font-weight: 600;
  background: oklch(0.34 0.07 var(--hue, 222)); color: oklch(0.9 0.08 var(--hue, 222));
}
.avatar--xs { width: 20px; height: 20px; font-size: 8.5px; font-weight: 700; }
.avatar--sm { width: 32px; height: 32px; font-size: 11.5px; }
.avatar--md { width: 34px; height: 34px; }
.avatar--lg { width: 54px; height: 54px; font-size: 17px; }
.avatar--xl { width: 56px; height: 56px; font-size: 18px; }

.platform { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); }
.platform__dot { width: 6px; height: 6px; border-radius: 2px; background: oklch(0.78 0.13 var(--hue, 100)); }
.platform--mono { font-family: var(--mono); font-size: 10px; color: oklch(0.78 0.13 var(--hue, 100)); }

/* ── Personenzeilen ──────────────────────────────────────────────────────── */
.person { display: flex; align-items: center; gap: 11px; min-width: 0; }
.person__text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.person__name { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person__meta { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Tabellen ────────────────────────────────────────────────────────────── */
.scroll-x { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
.dtable { table-layout: fixed; }
.dtable th {
  text-align: left; padding: 12px 22px; border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--faint);
}
.dtable td { padding: 13px 22px; border-bottom: 1px solid var(--divider); vertical-align: middle; font-size: 13px; }
.dtable tbody tr:last-child td { border-bottom: 0; }
.dtable tbody tr:hover { background: #151720; }
.dtable tbody tr.is-selected { background: var(--selected); }
.dtable .num { text-align: right; font-variant-numeric: tabular-nums; }
.dtable .mono { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.dtable .nowrap { white-space: nowrap; }
.dtable td.tight { padding: 10px 22px; }
.dtable .cell-right { display: flex; justify-content: flex-end; }
.dtable--min { min-width: var(--table-min, 740px); }
.cellstack { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.rowlink { color: var(--text); }
.rowlink:hover { color: var(--text); }
.progress { display: flex; align-items: center; gap: 8px; }
.progress .meter { flex: 1; }
.progress span { font-family: var(--mono); font-size: 11px; color: var(--muted); }

.empty { padding: 40px 22px; text-align: center; color: var(--muted); font-size: 13.5px; }
.empty--tight { padding: 26px 10px; }
.emptybox {
  padding: 22px 10px; text-align: center; font-size: 12.5px; color: var(--faint);
  border: 1px dashed rgba(255,255,255,.07); border-radius: 12px;
}

/* ── Listen auf der Übersicht ────────────────────────────────────────────── */
.toplist { display: flex; flex-direction: column; gap: 6px; }
.toprow {
  display: grid; grid-template-columns: 22px 34px minmax(0, 1fr) auto;
  align-items: center; gap: 11px; padding: 8px; border-radius: 12px; color: var(--text);
}
.toprow:hover { background: var(--hover); color: var(--text); }
.toprow__rank { font-family: var(--serif); font-size: 12px; color: var(--faint); text-align: center; }
.toprow.is-first .toprow__rank { color: var(--ice); }
.toprow__text { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.toprow__views small { display: block; font: 10px var(--sans); color: var(--muted); text-align: right; margin-top: 3px; }
.toprow__views { font-family: var(--mono); font-size: 12px; color: var(--text-2); }
.toprow .meter i { background: color-mix(in oklab, var(--ice) 40%, transparent); }
.toprow.is-first .meter i { background: var(--ice); }
.total-ital { font-family: var(--serif); font-style: italic; font-size: 20px; color: oklch(0.86 0.09 222); white-space: nowrap; }

.previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.preview {
  display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid rgba(255,255,255,.055);
}
.preview__thumb {
  height: 92px; border-radius: 10px; padding: 8px 10px;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 8px, transparent 8px 16px), #15171f;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 8px;
}
.preview__kind { font-family: var(--mono); font-size: 10px; color: var(--faint); }
.preview__text { display: flex; flex-direction: column; gap: 6px; }
.preview__title { font-size: 13.5px; font-weight: 600; line-height: 1.35; text-wrap: pretty; }
.preview__meta { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.preview__actions { display: flex; gap: 6px; margin-top: auto; }
.preview__actions form { flex: 1; display: flex; }
.preview__actions .btn { flex: 1; justify-content: center; }

.carelist { display: flex; flex-direction: column; gap: 4px; }
.carerow { display: flex; align-items: center; gap: 11px; padding: 10px 8px; border-radius: 12px; color: var(--text); }
.carerow:hover { background: var(--hover); color: var(--text); }
.carerow__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.carerow__name { font-size: 13.5px; font-weight: 600; }
.carerow__reason { font-size: 12px; color: var(--tone-fg, var(--muted)); }

.stackbar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; gap: 3px; }
.stackbar i { display: block; width: var(--w, 0%); background: var(--tone, var(--ice)); }
.legend { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.legend__row { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.legend__row i { width: 8px; height: 8px; border-radius: 3px; background: var(--tone, var(--ice)); flex: none; }
.legend__row span:nth-child(2) { color: var(--text-3); flex: 1; }
.legend__row strong { font-weight: 600; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile {
  padding: 12px; border-radius: 12px; background: var(--surface-2);
  border: 1px solid rgba(255,255,255,.05); display: flex; flex-direction: column; gap: 4px;
}
.tile__label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--tone-fg, var(--muted)); }
.tile__value { font-family: var(--serif); font-size: 30px; line-height: 1; }

.mix { display: flex; flex-direction: column; gap: 13px; }
.mix__row { display: grid; grid-template-columns: 78px minmax(0, 1fr) 46px 40px; align-items: center; gap: 12px; }
.mix__label { font-size: 13px; color: var(--text-2); }
.mix__views { font-family: var(--mono); font-size: 11.5px; color: var(--muted); text-align: right; }
.mix__pct { font-size: 12.5px; font-weight: 600; text-align: right; }

.feed { display: flex; flex-direction: column; }
.feed__row { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 10px; padding: 8px 0; align-items: start; }
.feed__dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; background: var(--tone, var(--ice)); }
.feed__text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.feed__action { font-size: 13px; color: var(--text); }
.feed__meta { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed__time { font-family: var(--mono); font-size: 10.5px; color: var(--faint); white-space: nowrap; }

/* ── Knöpfe & Formulare ──────────────────────────────────────────────────── */
.btn, button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
  padding: 9px 14px; border-radius: 10px; border: 1px solid var(--border-strong);
  background: var(--surface-2); color: var(--text); font-size: 13px; font-weight: 500;
}
.btn:hover, button:hover { background: var(--hover); color: var(--text); }
.btn--primary {
  border: 0; background: var(--ice); color: var(--ice-text); font-weight: 600;
  box-shadow: none;
}
.btn--primary:hover { background: var(--ice-hover); color: var(--ice-text); }
.btn--ghost { background: transparent; color: var(--text-2); }
.btn--tone {
  border: 0; font-weight: 600;
  color: var(--tone-fg, var(--text)); background: color-mix(in oklab, var(--tone) 15%, transparent);
}
.btn--tone:hover { background: color-mix(in oklab, var(--tone) 24%, transparent); color: var(--tone-fg, var(--text)); }
.btn--solid { border: 0; font-weight: 600; background: var(--tone); color: #06130b; }
.btn--solid:hover { background: color-mix(in oklab, var(--tone) 85%, white); color: #06130b; }
.btn--sm { padding: 6px 11px; font-size: 12.5px; border-radius: 8px; }
.btn--xs { padding: 5px 9px; font-size: 11.5px; border-radius: 8px; }
.btn--link { border: 0; background: transparent; color: var(--ice-fg); padding: 0; font-size: 12.5px; }
.btn--link:hover { background: transparent; color: var(--ice-hover); }
.btn--icon { width: 30px; height: 30px; padding: 0; border-radius: 8px; background: transparent; color: var(--muted); }
.btn--wide { width: 100%; justify-content: space-between; }
.btn[disabled], button[disabled] { opacity: .5; cursor: not-allowed; }

form.inline { display: inline-flex; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.actions__spacer { flex: 1; }

label { display: block; font-size: 12.5px; font-weight: 500; color: var(--text-3); margin-bottom: 6px; }
input[type=text], input[type=number], input[type=search], select, textarea {
  width: 100%; padding: 10px 13px; font: inherit; font-size: 13.5px;
  color: var(--text); background: var(--bg); border: 1px solid var(--border-strong); border-radius: 10px;
}
select { background: var(--input); font-family: var(--sans); font-size: 13px; color: var(--text); padding: 10px 12px; min-height: 42px; cursor: pointer; }
textarea { min-height: 78px; resize: vertical; line-height: 1.5; }
textarea.is-error { border-color: color-mix(in oklab, var(--bad) 70%, transparent); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field + .field { margin-top: 12px; }
.field--inline { flex-direction: row; gap: 8px; align-items: center; flex-wrap: wrap; }
.field--inline > :first-child { flex: 1; min-width: 140px; }
.hint { font-size: 11.5px; color: var(--faint); margin: 0; line-height: 1.45; }
.error { font-size: 12px; color: var(--bad-fg); }
.search { width: 280px; max-width: 100%; }
.search input { background: var(--surface); font-size: 13px; }

/* ── Reiter ──────────────────────────────────────────────────────────────── */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab {
  display: flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: transparent; color: var(--text-3);
  font-size: 13px; font-weight: 500;
}
.tab:hover { color: var(--text); background: var(--hover); }
.tab[aria-current="page"] { background: #edf3fb; border-color: #edf3fb; color: #0c1119; }
.tab__count { font-family: var(--mono); font-size: 11px; opacity: .75; }

/* ── Bewerbungen ─────────────────────────────────────────────────────────── */
.applist { display: flex; flex-direction: column; gap: 8px; flex: 1 1 300px; min-width: 0; }
.appcard {
  display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
}
.appcard:hover { border-color: rgba(255,255,255,.16); color: var(--text); }
.appcard.is-selected { background: var(--selected); border-color: color-mix(in oklab, var(--ice) 55%, transparent); }
.appcard__top { display: flex; align-items: center; gap: 11px; }
.appcard__id { font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
.appcard__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.appcard__niche { font-size: 12.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appcard__name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.detail { flex: 2 1 520px; min-width: 0; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.detail__head { padding: 24px 26px; border-bottom: 1px solid rgba(255,255,255,.06); display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.detail__who { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 200px; }
.detail__title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.detail__name { font-family: var(--serif); font-size: 32px; line-height: 1; }
.detail__meta { font-size: 12.5px; color: var(--muted); }
.detail__side { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.detail__id { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.detail__owner { font-size: 12px; color: var(--muted); }
.detail__body { padding: 22px 26px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px 28px; }
.detail__block { padding: 0 26px 22px; display: flex; flex-direction: column; gap: 8px; }
.detail__foot { padding: 20px 26px 24px; border-top: 1px solid rgba(255,255,255,.06); background: #101219; display: flex; flex-direction: column; gap: 14px; }

.ro { display: flex; flex-direction: column; gap: 5px; }
.ro__label, .eyebrow-sm {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint);
}
.ro__value { font-size: 14px; line-height: 1.55; color: var(--text-2); text-wrap: pretty; }
.quote {
  padding: 16px 18px; border-radius: 14px; background: var(--surface-2);
  border: 1px solid rgba(255,255,255,.05); display: flex; flex-direction: column; gap: 6px;
}
.quote__text { font-family: var(--serif); font-size: 21px; line-height: 1.35; color: var(--text); text-wrap: pretty; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 9px;
  background: var(--surface-2); border: 1px solid rgba(255,255,255,.07);
  font-family: var(--mono); font-size: 12px; color: var(--text-2);
}
.chip:hover { color: var(--text); border-color: rgba(255,255,255,.16); }
.chip--plain { color: var(--muted); }
.chip__arrow { color: var(--ice-fg); }

/* ── Roster & Profil ─────────────────────────────────────────────────────── */
.panel {
  flex: 1 1 340px; min-width: 0; border-radius: 12px; background: var(--surface);
  border: 1px solid var(--border); display: flex; flex-direction: column;
  position: sticky; top: 20px;
}
.panel__head { padding: 22px; display: flex; gap: 14px; align-items: center; border-bottom: 1px solid rgba(255,255,255,.06); }
.panel__who { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.panel__name { font-family: var(--serif); font-size: 28px; line-height: 1; }
.panel__meta { font-size: 12.5px; color: var(--muted); }
.panel__section { padding: 18px 22px; display: flex; flex-direction: column; gap: 14px; border-bottom: 1px solid rgba(255,255,255,.06); }
.panel__section:last-child { border-bottom: 0; }
.panel__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { display: flex; flex-direction: column; gap: 3px; }
.stat__label { font-size: 11px; color: var(--faint); }
.stat__value { font-family: var(--serif); font-size: 26px; line-height: 1; }
.deflist { display: grid; grid-template-columns: max-content 1fr; gap: 7px 16px; font-size: 13px; margin: 0; }
.deflist dt { color: var(--muted); }
.deflist dd { margin: 0; overflow-wrap: anywhere; }
.deflist dd.is-bad { color: var(--bad-fg); }

.checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.checklist form { display: block; }
.check {
  display: flex; align-items: center; gap: 11px; width: 100%; padding: 6px 4px; border-radius: 8px;
  border: 0; background: transparent; color: var(--text); text-align: left; font-size: 13px; font-weight: 400;
  justify-content: flex-start;
}
.check:hover { background: var(--hover); }
.check__box {
  flex: none; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: #0c1119;
  border: 1.5px solid rgba(255,255,255,.22); background: transparent;
}
.check.is-done .check__box { border-color: var(--ok); background: var(--ok); }
.check.is-done .check__label { color: var(--muted); text-decoration: line-through; }

details.more { border-top: 1px solid var(--divider); padding-top: 12px; }
details.more > summary {
  cursor: pointer; font-size: 12.5px; color: var(--muted); list-style: none;
  display: flex; align-items: center; gap: 6px;
}
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: '+'; font-family: var(--mono); color: var(--faint); }
details.more[open] > summary::before { content: '–'; }
details.more > summary:hover { color: var(--text); }
details.more > div { margin-top: 12px; }

.notetext { font-size: 13.5px; line-height: 1.5; color: var(--text-3); text-wrap: pretty; }
.sublist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; }
.sublist li { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.sublist .mono { font-family: var(--mono); font-size: 11px; color: var(--muted); }

/* ── Content-Board ───────────────────────────────────────────────────────── */
.board { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; align-items: start; }
.board__col {
  display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 18px;
  background: var(--surface-2); border: 1px solid rgba(255,255,255,.05); min-width: 0;
}
.board__head { display: flex; align-items: center; gap: 9px; padding: 6px 6px 4px; }
.board__head .dot { width: 8px; height: 8px; box-shadow: none; }
.board__title { font-size: 13.5px; font-weight: 600; flex: 1; }
.board__count { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.citem {
  display: flex; flex-direction: column; gap: 11px; padding: 14px; border-radius: 14px;
  background: var(--surface-3); border: 1px solid rgba(255,255,255,.06);
}
.citem__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.citem__id { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.citem__title { font-size: 14px; font-weight: 600; line-height: 1.35; text-wrap: pretty; }
.citem__title a { color: inherit; }
.citem__title a:hover { color: inherit; text-decoration: underline; }
.citem__who { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.citem__who span.grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.citem__views { display: flex; align-items: baseline; gap: 6px; }
.citem__views b { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1; }
.citem__views span { font-size: 11.5px; color: var(--muted); }
.citem__note {
  padding: 9px 11px; border-radius: 9px; font-size: 12.5px; line-height: 1.45;
  color: var(--warn-fg); background: color-mix(in oklab, var(--warn) 9%, transparent);
}
.citem__actions { display: flex; gap: 6px; flex-wrap: wrap; }
.citem__actions form { flex: 1; display: flex; min-width: 92px; }
.citem__actions .btn { flex: 1; padding: 7px 8px; font-size: 12px; white-space: nowrap; }

/* ── Protokoll ───────────────────────────────────────────────────────────── */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid; grid-template-columns: 92px 22px minmax(0, 1fr) auto; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--divider); align-items: start;
}
.timeline li:last-child { border-bottom: 0; }
.tl__when { display: flex; flex-direction: column; gap: 2px; }
.tl__rel { font-size: 12.5px; color: var(--text-2); }
.tl__date { font-family: var(--mono); font-size: 10.5px; color: var(--faint); }
.tl__dot {
  width: 10px; height: 10px; border-radius: 50%; margin-top: 4px; background: var(--tone, var(--ice));
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--tone, var(--ice)) 18%, transparent);
}
.tl__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tl__action { font-size: 14px; font-weight: 600; }
.tl__action span { font-weight: 400; color: var(--muted); }
.tl__detail { font-size: 13px; color: var(--text-3); line-height: 1.5; overflow-wrap: anywhere; }
.tl__actor { font-size: 12px; color: var(--muted); }

/* ── Einstellungen & automatisches Speichern ────────────────────────────── */
.settings-banner { display: flex; align-items: center; gap: 16px; padding: 20px 24px; border: 1px solid #294c48; background: #132826; border-radius: 12px; }
.settings-banner__icon { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #254c41; color: #8fe0b3; }
.settings-banner strong { font-size: 13px; font-weight: 600; color: #d6f0e2; }
.settings-banner p { margin: 3px 0 0; font-size: 12px; color: #a5c5b7; }
.save-summary { margin-left: auto; max-width: 240px; font-size: 12px; color: #9bdbb6; text-align: right; }
.save-summary[data-state="saving"] { color: var(--warn-fg); }
.save-summary[data-state="error"] { color: var(--bad-fg); }
.settings-layout { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 32px; align-items: start; }
.settings-nav { position: sticky; top: 28px; display: flex; flex-direction: column; gap: 5px; padding: 8px 0; }
.settings-nav .eyebrow-label { padding: 0 10px 12px; }
.settings-nav > a { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border-radius: 7px; color: var(--text-3); font-size: 13px; }
.settings-nav > a:hover { color: var(--text); background: var(--hover); }
.settings-nav > a span { font-size: 11px; color: var(--faint); }
.setup-progress { margin: 24px 10px 0; padding-top: 20px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 12px; }
.setup-progress strong { font-weight: 500; color: var(--ice); }
.setup-progress progress { width: 100%; height: 5px; appearance: none; border: 0; background: var(--border); border-radius: 5px; overflow: hidden; }
.setup-progress progress::-webkit-progress-bar { background: var(--border); }
.setup-progress progress::-webkit-progress-value { background: var(--ice); }
.setup-progress progress::-moz-progress-bar { background: var(--ice); }
.setup-progress p { margin: 0; color: var(--muted); font-size: 11px; }
.settings-content { min-width: 0; }
.settings-content section { scroll-margin-top: 24px; }
.section-icon { font: 500 24px var(--mono); color: var(--muted); }
.setting-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .9fr); align-items: start; gap: 20px; padding: 24px; border-bottom: 1px solid var(--divider); }
.setting-row:last-of-type { border-bottom: 0; }
.setting-row__label { padding-top: 6px; }
.setting-row label { font-size: 13px; font-weight: 550; color: var(--text-2); }
.setting-row .hint { max-width: 340px; margin: 4px 0 0; line-height: 1.6; }
.setting-row__field { min-width: 0; }
.setting-row select { width: 100%; max-width: 100%; }
.save-feedback { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-height: 22px; padding-top: 5px; font-size: 11px; color: var(--muted); }
.save-feedback:has([data-save-status]:empty) { padding-top: 0; min-height: 0; }
[data-save-state="saved"] .save-feedback { color: var(--ok-fg); }
[data-save-state="saving"] .save-feedback, [data-save-state="waiting"] .save-feedback { color: var(--warn-fg); }
[data-save-state="error"] .save-feedback { color: var(--bad-fg); }
[data-save-state="error"] select { border-color: var(--bad); }
[data-save-state="saving"] select { border-color: #477ea5; }
.phase-control { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 18px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; }
.phase-control strong, .operation-row strong { font-size: 13px; font-weight: 550; }
.phase-control .hint { display: block; margin-top: 4px; }
.phase-control > span { flex: 1; }
.phase-control select { flex: none; width: 170px; min-width: 150px; }
.storage-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 4px 0; }
.storage-details div { min-width: 0; }
.storage-details dt { font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.storage-details dd { margin: 0; font-size: 12px; overflow-wrap: anywhere; }
.storage-details dd .hint { display: block; margin-top: 6px; }
.storage-note { margin: 0; padding: 14px 16px; background: var(--surface-2); border-radius: 8px; font-size: 12px; color: var(--text-3); border-left: 2px solid var(--ice); }
.operation-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.operation-row p { margin: 4px 0 0; }
.operation-row form { flex: none; }
.mono-hint { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.locked { padding: 40px; text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.locked__title { font-size: 24px; font-weight: 600; }
[hidden] { display: none !important; }

/* ── Aufgaben & Performance ─────────────────────────────────────────────── */
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.section-heading h2 { margin-top: 5px; font-size: 18px; letter-spacing: -.02em; }
.eyebrow-sm { font-size: 10px; letter-spacing: .09em; font-weight: 550; color: var(--faint); }
.focus-section { gap: 16px; }
.focus-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.focus-card { display: flex; align-items: center; gap: 14px; padding: 22px 20px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); }
.focus-card:hover { color: var(--text); background: var(--hover); border-color: #3d566f; }
.focus-card__icon { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 10px; font-size: 23px; color: var(--tone-fg); background: color-mix(in oklab, var(--tone) 10%, transparent); }
.focus-card__text { flex: 1; min-width: 0; }
.focus-card__text strong { display: block; font-size: 13px; font-weight: 550; }
.focus-card__text > span { display: block; color: var(--muted); font-size: 11px; line-height: 1.6; margin-top: 5px; }
.focus-card__count { font-size: 28px; font-weight: 550; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.focus-card__arrow { color: var(--muted); }
.analytics-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(300px, 1fr); gap: 20px; align-items: stretch; }
.analytics-grid > * { min-width: 0; }
.analytics-grid--tasks { align-items: start; }
.data-note { font-size: 11px; line-height: 1.6; color: var(--muted); border-top: 1px solid var(--divider); padding-top: 14px; margin: auto 0 0; }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 32px 12px; min-height: 240px; }
.empty-state > span { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 4px; border-radius: 12px; background: var(--selected); color: var(--ice); font-size: 23px; }
.empty-state strong { font-size: 13px; font-weight: 550; }
.empty-state p { margin: 0; color: var(--muted); font-size: 12px; max-width: 270px; }
.empty-state a { font-size: 12px; }
.empty-state--small { min-height: 200px; }
.setup-banner { display: flex; align-items: center; gap: 14px; padding: 18px 22px; background: #132236; border: 1px solid #29445f; border-radius: 12px; color: var(--text); }
.setup-banner:hover { color: var(--text); border-color: #537391; }
.setup-banner > span:nth-child(2) { flex: 1; }
.setup-banner strong { display: block; font-size: 13px; font-weight: 550; }
.setup-banner > span:nth-child(2) > span { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.setup-banner__icon { font-size: 24px; color: var(--ice); }

/* ── Meldungen ───────────────────────────────────────────────────────────── */
.flash {
  position: fixed; right: 28px; bottom: 28px; z-index: 50; max-width: 380px;
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 14px;
  background: #1b293b; border: 1px solid color-mix(in oklab, var(--tone, var(--ice)) 30%, transparent);
  box-shadow: 0 20px 50px rgba(0,0,0,.5), 0 0 30px color-mix(in oklab, var(--tone, var(--ice)) 12%, transparent);
}
.flash__mark {
  flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: var(--ice-text); background: var(--tone, var(--ice));
}
.flash__text { display: flex; flex-direction: column; gap: 3px; }
.flash__title { font-size: 13.5px; font-weight: 600; }
.flash__sub { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.flash--warn { --tone: var(--warn); }
.flash--bad { --tone: var(--bad); }

.banner {
  padding: 12px 16px; border-radius: 12px; font-size: 13.5px;
  color: var(--tone-fg, var(--warn-fg));
  background: color-mix(in oklab, var(--tone, var(--warn)) 10%, transparent);
  border: 1px solid color-mix(in oklab, var(--tone, var(--warn)) 25%, transparent);
}

.flash__close { padding: 0 5px; background: transparent; border: 0; color: var(--muted); font-size: 20px; line-height: 1; margin-left: 4px; }

/* ── Verschiedenes ───────────────────────────────────────────────────────── */
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.mono { font-family: var(--mono); }
.prose { white-space: pre-wrap; overflow-wrap: anywhere; }
code {
  font-family: var(--mono); font-size: .85em; color: var(--text-3);
  background: var(--input); padding: .15em .45em; border-radius: 6px;
}

/* ── Anmeldeseite ────────────────────────────────────────────────────────── */
.login {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(900px 480px at 50% -10%, oklch(0.80 0.12 222 / .09), transparent 70%);
}
.login__card {
  max-width: 400px; width: 100%; text-align: center; padding: 36px 30px;
  border-radius: 12px; background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 14px; align-items: center;
}
.login__card h1 { font-size: 34px; }
.login__card .btn--primary { width: 100%; padding: 12px; }
.login .banner { text-align: left; }

/* ── Schmale Fenster ────────────────────────────────────────────────────── */
@media (min-width: 1800px) { .main__content { padding-top: 48px; } }
@media (max-width: 1350px) {
  .settings-layout { grid-template-columns: 150px minmax(0, 1fr); gap: 20px; }
  .setting-row { grid-template-columns: minmax(0, 1fr) minmax(210px, 1fr); }
  .focus-card { flex-wrap: wrap; gap: 10px; padding: 18px; }
  .focus-card__text { flex-basis: calc(100% - 60px); }
  .focus-card__count { margin-left: 48px; flex: 1; }
}
@media (max-width: 1150px) {
  .main__content { padding: 28px 24px; }
  .topbar { padding: 16px 24px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-grid { grid-template-columns: minmax(0, 1fr); }
  .settings-layout { grid-template-columns: minmax(0, 1fr); }
  .settings-nav { position: static; flex-direction: row; flex-wrap: wrap; padding: 0; gap: 4px; }
  .settings-nav > a { background: var(--surface); border: 1px solid var(--border); }
  .settings-nav > a span { display: none; }
  .settings-nav .eyebrow-label, .setup-progress { display: none; }
  .settings-banner { flex-wrap: wrap; gap: 12px; }
  .save-summary { margin-left: 44px; max-width: none; text-align: left; flex-basis: 100%; }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; height: auto; gap: 18px; padding: 18px 16px 12px; border-right: 0; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: minmax(0, 1fr) auto; overflow: hidden; }
  .brand { padding: 0; }
  .brand__logo { width: 34px; height: 34px; }
  .brand__name { font-size: 21px; }
  .brand__sub { font-size: 10px; }
  .workspace-label, .sysbox { display: none; }
  .nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-column: 1 / -1; grid-row: 2; min-width: 0; gap: 5px; }
  .nav__item { padding: 10px 8px; font-size: 11px; gap: 6px; }
  .nav__icon { width: 15px; height: 15px; }
  .eyebrow-label { display: none; }
  .sidebar__foot { margin: 0; grid-column: 2; grid-row: 1; }
  .whoami { padding: 0; gap: 8px; }
  .whoami__text { display: none; }
  .whoami .avatar { width: 28px; height: 28px; }
  .whoami .btn { font-size: 10px; padding: 5px; }
  .main__content { padding: 26px 16px 20px; gap: 26px; }
  .topbar { padding: 12px 16px; min-height: 48px; font-size: 11px; }
  .phase { padding: 4px 0; border: 0; font-size: 11px; }
  .topbar__sep { padding: 0 5px; }
  .pagehead { gap: 18px; }
  .pagehead__actions { margin-left: 0; }
  h1 { font-size: 29px; }
  .lede { font-size: 13px; }
  .eyebrow { font-size: 10px; flex-wrap: wrap; }
  .focus-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .focus-card { flex-wrap: nowrap; padding: 18px 16px; }
  .focus-card__text { flex-basis: auto; }
  .focus-card__count { margin-left: 0; flex: none; font-size: 25px; }
  .section-heading .card__sub { font-size: 11px; }
  .kpis { gap: 10px; }
  .kpi { padding: 18px 14px; gap: 12px; }
  .kpi__value { font-size: 32px; }
  .kpi__hint { font-size: 10px; }
  .kpi__label { font-size: 11px; }
  .card { padding: 20px; }
  .card--flush { padding: 0; }
  .card--flush > .card__head { padding: 18px 20px; }
  .setting-row { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 20px; }
  .setting-row__label { padding-top: 0; }
  .setting-row .hint { max-width: none; }
  .settings-banner { padding: 18px; align-items: flex-start; }
  .settings-banner > div { flex: 1; min-width: 0; }
  .settings-banner p { line-height: 1.6; }
  .settings-banner__icon { width: 26px; height: 26px; }
  .save-summary { margin-left: 38px; }
  .settings-nav > a { padding: 8px 10px; font-size: 12px; }
  .phase-control { flex-wrap: wrap; gap: 12px; }
  .phase-control select { width: 100%; }
  .storage-details { grid-template-columns: minmax(0, 1fr); }
  .operation-row { flex-wrap: wrap; gap: 12px; }
  .readout { gap: 18px; }
  .readout__main { font-size: 25px; }
  .plot { min-width: 0; }
  .bars, .barlabels { gap: 4px; padding-right: 35px; }
  .bars { height: 170px; }
  .barlabels span { font-size: 8px; }
  .plot__line span { width: 28px; font-size: 8px; }
  .panel { position: static; }
  .pagefoot { flex-direction: column; gap: 8px; }
  .flash { right: 12px; left: 12px; bottom: 12px; max-width: none; }
  .timeline li { grid-template-columns: 64px 10px minmax(0, 1fr); gap: 10px; }
  .timeline li > :last-child { grid-column: 3; }
}
@media (max-width: 420px) { .nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* ══════════════════════════════════════════════════════════════════════════
   Babylon 2.0 – Embed-Studio, Live-Monitor, Auswertung, Automationen
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Allgemeine Bausteine ─────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.rule { border: none; border-top: 1px solid var(--divider); margin: 18px 0; }
.kv {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 7px 0; border-bottom: 1px solid var(--divider); font-size: 13.5px;
}
.kv:last-of-type { border-bottom: none; }
.kv > span { color: var(--muted); }
.kv > strong { color: var(--text-2); font-weight: 600; text-align: right; }
.pillrow { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.issues { margin: 8px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.issues code { color: var(--warn-fg); }
.banner--ok { border-color: color-mix(in oklab, var(--ok) 35%, transparent); background: color-mix(in oklab, var(--ok) 9%, var(--surface)); }
.banner--warn { border-color: color-mix(in oklab, var(--warn) 35%, transparent); background: color-mix(in oklab, var(--warn) 9%, var(--surface)); }
.banner--bad { border-color: color-mix(in oklab, var(--bad) 35%, transparent); background: color-mix(in oklab, var(--bad) 9%, var(--surface)); }
.actions--tight { gap: 4px; }
.inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.inline-form select { flex: 1 1 160px; }
.eyebrow-label--sep { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--divider); }
.nav__count--live { background: var(--bad); color: #fff; }
.tabs--scroll { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: thin; }
.tabs--scroll .tab { white-space: nowrap; }

.switch { display: inline-flex; align-items: center; gap: 10px; margin: 6px 0; cursor: pointer; font-size: 13.5px; }
.switch input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--ice); }
.switch--sm { font-size: 12.5px; }
.colorfield { display: flex; gap: 8px; align-items: center; }
.colorfield input[type="color"] { width: 46px; height: 36px; padding: 2px; border-radius: 9px; border: 1px solid var(--border); background: var(--input); }
.colorfield input[type="text"] { flex: 1; }

.field--sm { margin: 0; }
.field--sm label { font-size: 11.5px; }
.field--action { display: flex; align-items: flex-end; gap: 8px; }
.filterbar {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px;
  padding: 14px 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2);
}

.kpi--static { cursor: default; }
.kpi--static:hover { border-color: var(--border); transform: none; }

/* ── Vorlagenliste ───────────────────────────────────────────────────────── */
.tmpl-list { display: flex; flex-direction: column; }
.tmpl-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto 16px; gap: 14px; align-items: center;
  padding: 13px 24px; border-top: 1px solid var(--divider); color: var(--text);
}
.tmpl-row:first-child { border-top: none; }
.tmpl-row:hover { background: var(--hover); color: var(--text); }
.tmpl-row__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tmpl-row__name { font-weight: 600; font-size: 14px; }
.tmpl-row__desc { font-size: 12.5px; color: var(--muted); }
.tmpl-row__meta { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.tmpl-row__arrow { color: var(--faint); }

/* ── Editor-Layout ───────────────────────────────────────────────────────── */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 460px); gap: 20px; align-items: start; }
.editor__form { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.editor__preview { min-width: 0; }
.editor__sticky { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 14px; }
.editor__actions {
  position: sticky; bottom: 0; display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 0;
  background: linear-gradient(to top, var(--bg) 60%, transparent);
}
@media (max-width: 1100px) {
  .editor { grid-template-columns: minmax(0, 1fr); }
  .editor__sticky { position: static; }
}

.fieldlist, .buttonlist { display: flex; flex-direction: column; gap: 12px; }
.fieldrow, .buttonrow {
  display: flex; flex-direction: column; gap: 8px;
  padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2);
}
.fieldrow__head { display: flex; align-items: center; gap: 8px; }
.fieldrow__index { flex: 1; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.fieldrow__pos { width: 56px; }
.fieldrow__foot { display: flex; align-items: center; gap: 10px; }
.fieldrow__foot label { margin: 0; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.fieldrow__foot select { flex: 1; }

.placeholder-box {
  display: flex; flex-direction: column; gap: 8px;
  padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2);
}

/* ── Discord-Vorschau ────────────────────────────────────────────────────── */
.dc-preview { display: flex; flex-direction: column; gap: 10px; }
.dc-msg {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px;
  padding: 16px; border-radius: 14px; background: #313338; color: #dbdee1;
  font: 400 15px/1.375 "gg sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.dc-avatar {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: #5865f2; color: #fff; font-weight: 700; font-size: 17px;
}
.dc-body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.dc-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.dc-author { color: #f2f3f5; font-weight: 600; font-size: 15px; }
.dc-bot {
  padding: 1px 4px; border-radius: 4px; background: #5865f2; color: #fff;
  font-size: 10px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase;
}
.dc-time { font-size: 12px; color: #949ba4; }
.dc-content { white-space: pre-wrap; overflow-wrap: anywhere; }
.dc-content a, .dc-embed a { color: #00a8fc; }
.dc-mention { padding: 0 2px; border-radius: 3px; background: rgba(88,101,242,.3); color: #c9cdfb; font-weight: 500; }
.dc-timestamp { padding: 0 2px; border-radius: 3px; background: rgba(255,255,255,.06); }
.dc-quote { display: block; padding-left: 12px; border-left: 4px solid #4e5058; }
.dc-code { margin: 6px 0; padding: 8px 10px; border-radius: 4px; background: #2b2d31; border: 1px solid #1e1f22; overflow-x: auto; font-family: var(--mono); font-size: 13px; }
.dc-inline { padding: 1px 4px; border-radius: 3px; background: #2b2d31; font-family: var(--mono); font-size: 13px; }

.dc-embed {
  position: relative; display: grid; gap: 8px; max-width: 520px;
  padding: 12px 16px 14px; border-radius: 4px; background: #2b2d31;
  border-left: 4px solid var(--dc-accent, #6d28d9);
}
.dc-embed__author { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: #f2f3f5; }
.dc-embed__author img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.dc-embed__title { font-size: 16px; font-weight: 600; color: #f2f3f5; }
.dc-embed__title a { color: #00a8fc; }
.dc-embed__desc { font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.dc-embed__fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dc-field { grid-column: span 3; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dc-field--inline { grid-column: span 1; }
.dc-field__name { font-size: 13.5px; font-weight: 600; color: #f2f3f5; }
.dc-field__value { font-size: 13.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.dc-embed__image img { width: 100%; border-radius: 4px; display: block; }
.dc-embed__thumb {
  position: absolute; top: 12px; right: 16px; width: 72px; height: 72px;
  border-radius: 4px; overflow: hidden;
}
.dc-embed__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dc-embed__footer { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #949ba4; flex-wrap: wrap; }
.dc-embed__footer img { width: 20px; height: 20px; border-radius: 50%; }
.dc-dot { opacity: .6; }

.dc-buttons { display: flex; flex-direction: column; gap: 8px; max-width: 520px; }
.dc-buttonrow { display: flex; flex-wrap: wrap; gap: 8px; }
.dc-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 3px; font-size: 14px; font-weight: 500; color: #fff;
}
.dc-btn--primary { background: #5865f2; }
.dc-btn--secondary { background: #4e5058; }
.dc-btn--success { background: #248046; }
.dc-btn--danger { background: #da373c; }
.dc-btn--link { background: #4e5058; }
.dc-btn.is-disabled { opacity: .5; }
.dc-btn__ext { font-size: 11px; opacity: .8; }

.dc-notes { display: flex; flex-wrap: wrap; gap: 6px; }
.dc-note {
  padding: 3px 9px; border-radius: 999px; font-size: 11.5px;
  background: var(--surface-3); color: var(--muted); border: 1px solid var(--border);
}
.dc-note--sample { border-color: color-mix(in oklab, var(--violet) 40%, transparent); color: var(--violet-fg); }
.dc-note--live { border-color: color-mix(in oklab, var(--ok) 40%, transparent); color: var(--ok-fg); }
.dc-note--warn { border-color: color-mix(in oklab, var(--warn) 40%, transparent); color: var(--warn-fg); }
.dc-note--bad { border-color: color-mix(in oklab, var(--bad) 40%, transparent); color: var(--bad-fg); }

/* ── Live-Monitor ────────────────────────────────────────────────────────── */
.livegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.livecard {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--border); border-radius: 16px; background: var(--surface);
}
.livecard__thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--surface-3); }
.livecard__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.livecard__thumb--empty { display: grid; place-items: center; }
.livecard__badge {
  position: absolute; top: 10px; left: 10px; padding: 3px 8px; border-radius: 4px;
  background: #e11d48; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .08em;
}
.livecard__body { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 16px; }
.livecard__who { display: flex; align-items: center; gap: 10px; }
.livecard__who .person__text { flex: 1; min-width: 0; }
.livecard__title { margin: 0; font-size: 14px; color: var(--text-2); overflow-wrap: anywhere; }
.livecard__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; margin: 0; }
.livecard__stats div { display: flex; flex-direction: column; gap: 1px; }
.livecard__stats dt { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.livecard__stats dd { margin: 0; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.livecard__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; }

/* ── Auswertung ──────────────────────────────────────────────────────────── */
.plot--simple { padding-top: 6px; }
.bars--dense { gap: 2px; align-items: flex-end; height: 150px; }
.bar--static { pointer-events: auto; cursor: default; }
.barlabels--sparse { font-size: 10.5px; }

/* ── Automationen ────────────────────────────────────────────────────────── */
.autolist { display: flex; flex-direction: column; }
.autorow { border-top: 1px solid var(--divider); }
.autorow:first-child { border-top: none; }
.autorow > summary {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 13px 24px; cursor: pointer; list-style: none;
}
.autorow > summary::-webkit-details-marker { display: none; }
.autorow > summary:hover { background: var(--hover); }
.autorow__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.autorow__text strong { font-size: 14px; }
.autorow__text span { font-size: 12.5px; color: var(--muted); }
.autorow__meta { font-size: 12px; color: var(--muted); }
.autorow__body { padding: 4px 24px 20px; display: flex; flex-direction: column; gap: 10px; }


/* ── Creator-Detailseite ─────────────────────────────────────────────────── */
.creatorhead { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; justify-content: space-between; }
.creatorhead__main { display: flex; gap: 16px; align-items: center; min-width: 0; }
.creatorhead__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.creatorhead__title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.creatorhead__title h2 { margin: 0; font-size: 22px; }
.creatorhead__meta { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.creatorhead__side { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.goalrow { display: flex; flex-direction: column; gap: 6px; padding: 14px 0; border-bottom: 1px solid var(--divider); }
.goalrow:last-child { border-bottom: none; }
.goalrow__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.goalrow__bar { display: flex; align-items: center; gap: 10px; }
.goalrow__bar .meter { flex: 1; }

/* Ein Feld pro Tag – dunkel heisst "keine erfassten Stunden", nicht "Fehler". */
.daycal { display: grid; grid-template-columns: repeat(auto-fill, minmax(12px, 1fr)); gap: 3px; margin: 6px 0; }
.daycal__cell { aspect-ratio: 1; border-radius: 3px; background: var(--surface-3); }
.daycal__cell--1 { background: color-mix(in oklab, var(--ice) 30%, var(--surface-3)); }
.daycal__cell--2 { background: color-mix(in oklab, var(--ice) 60%, var(--surface-3)); }
.daycal__cell--3 { background: var(--ice); }

.verify-pending { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.verify-pending__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.verify-pending__row input { flex: 1 1 260px; font-family: var(--mono); font-size: 12px; }
.verify-list { margin: 8px 0 16px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--text-3); font-size: 14px; }
.login__card--wide { max-width: 560px; text-align: left; }


/* ── Bewerbungsdetails ───────────────────────────────────────────────────── */
.detail__blockhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.accountlist { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.accountlist__row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center;
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface-2);
}
.accountlist__text { display: flex; flex-direction: column; gap: 1px; min-width: 0; font-size: 13.5px; }
.accountlist__metrics { font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.accountlist__row .pillrow { grid-column: 1 / -1; }
.followup { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 13px; }
.timeline--compact li { padding: 8px 0; }


/* Zehn Kennzahlen brauchen schmalere Karten als vier. */
.kpis--wide { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.kpis--wide .kpi__value { font-size: 26px; }

