/* Social Insights – lokale Styles, keine externen Assets */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ------------------------------------------------------------------ Tokens */
:root {
  color-scheme: light;
  --page: #f4f4f1;
  --surface: #fcfcfb;
  --surface-2: #f0efec;
  --surface-hover: #ecebe7;
  --border: rgba(11, 11, 11, 0.09);
  --border-strong: rgba(11, 11, 11, 0.17);
  --text: #0b0b0b;
  --text-2: #52514e;
  --muted: #74726d;
  --grid: #e7e6e0;
  --axis: #c3c2b7;
  --accent: #2a78d6;
  --accent-ink: #1c5cab;
  --accent-soft: rgba(42, 120, 214, 0.10);
  --on-accent: #ffffff;
  --good: #006300;
  --good-soft: rgba(12, 163, 12, 0.10);
  --bad: #b42827;
  --bad-soft: rgba(208, 59, 59, 0.09);
  --warn: #7a4f00;
  --warn-bg: #fff3d6;
  --warn-border: #f0c76a;
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100;
  --s5: #e87ba4; --s6: #008300; --s7: #6250d6; --s8: #e34948;
  --div-n3: #d64b45; --div-n2: #ec8f86; --div-n1: #f6c9c4; --div-0: #e9e8e3;
  --div-p1: #b7d3f6; --div-p2: #6da7ec; --div-p3: #2a78d6; --div-p4: #184f95;
  --heat-empty: #f4f4f1;
  --shadow: 0 1px 2px rgba(11, 11, 11, 0.04), 0 2px 8px rgba(11, 11, 11, 0.04);
  --shadow-lg: 0 10px 40px rgba(11, 11, 11, 0.18);
  --radius: 12px;
  --radius-sm: 8px;
  --sidebar: 236px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #0f0f0e; --surface: #1a1a19; --surface-2: #242422; --surface-hover: #2a2a28;
    --border: rgba(255, 255, 255, 0.08); --border-strong: rgba(255, 255, 255, 0.16);
    --text: #f0efec; --text-2: #c3c2b7; --muted: #94928b; --grid: #2c2c2a; --axis: #45453f;
    --accent: #3987e5; --accent-ink: #86b6ef; --accent-soft: rgba(57, 135, 229, 0.16); --on-accent: #ffffff;
    --good: #3fc23f; --good-soft: rgba(12, 163, 12, 0.16); --bad: #ee7a7a; --bad-soft: rgba(230, 103, 103, 0.14);
    --warn: #fab219; --warn-bg: #2d2412; --warn-border: #6b5217;
    --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500;
    --s5: #d55181; --s6: #0ca30c; --s7: #9085e9; --s8: #e66767;
    --div-n3: #ee8a8a; --div-n2: #c64744; --div-n1: #7a3230; --div-0: #383835;
    --div-p1: #184f95; --div-p2: #2a78d6; --div-p3: #5598e7; --div-p4: #9ec5f4;
    --heat-empty: #1f1f1e;
    --shadow: none; --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.55);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0f0f0e; --surface: #1a1a19; --surface-2: #242422; --surface-hover: #2a2a28;
  --border: rgba(255, 255, 255, 0.08); --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f0efec; --text-2: #c3c2b7; --muted: #94928b; --grid: #2c2c2a; --axis: #45453f;
  --accent: #3987e5; --accent-ink: #86b6ef; --accent-soft: rgba(57, 135, 229, 0.16); --on-accent: #ffffff;
  --good: #3fc23f; --good-soft: rgba(12, 163, 12, 0.16); --bad: #ee7a7a; --bad-soft: rgba(230, 103, 103, 0.14);
  --warn: #fab219; --warn-bg: #2d2412; --warn-border: #6b5217;
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500;
  --s5: #d55181; --s6: #0ca30c; --s7: #9085e9; --s8: #e66767;
  --div-n3: #ee8a8a; --div-n2: #c64744; --div-n1: #7a3230; --div-0: #383835;
  --div-p1: #184f95; --div-p2: #2a78d6; --div-p3: #5598e7; --div-p4: #9ec5f4;
  --heat-empty: #1f1f1e;
  --shadow: none; --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.55);
}

/* ------------------------------------------------------------------ Basis */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--page); color: var(--text);
  font-family: var(--font); font-size: 14px; line-height: 1.5;
  font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -0.01em; }
h1 { font-size: 22px; line-height: 1.25; }
h2 { font-size: 15px; line-height: 1.35; }
h3 { font-size: 14px; }
p { margin: 0 0 8px; }
code, .mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 12.5px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.small { font-size: 12.5px; }
.xs { font-size: 11.5px; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.good { color: var(--good); }
.bad { color: var(--bad); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.boot { min-height: 100vh; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); }
.spin {
  width: 16px; height: 16px; border-radius: 50%; display: inline-block; flex: none;
  border: 2px solid var(--border-strong); border-top-color: var(--accent); animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ Layout */
.shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh;
  background: linear-gradient(to right, var(--surface) calc(var(--sidebar) - 1px), var(--border) calc(var(--sidebar) - 1px), var(--border) var(--sidebar), transparent var(--sidebar)); }
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 18px 14px 14px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 6px 18px; }
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand-name { font-weight: 700; font-size: 15px; line-height: 1.2; }
.brand-sub { color: var(--muted); font-size: 12px; line-height: 1.3; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm);
  color: var(--text-2); font-weight: 500; text-decoration: none;
}
.nav a svg { width: 18px; height: 18px; flex: none; opacity: 0.8; }
.nav a:hover { background: var(--surface-hover); color: var(--text); }
.nav a.active { background: var(--accent-soft); color: var(--accent-ink); }
.nav a.active svg { opacity: 1; }
.sidebar-foot { margin-top: auto; padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.sync-box {
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px;
  background: var(--surface-2); font-size: 12.5px; color: var(--text-2);
}
.sync-box .row { display: flex; justify-content: space-between; gap: 8px; }
.progress { height: 4px; border-radius: 2px; background: var(--border); overflow: hidden; margin: 8px 0 6px; }
.progress > i { display: block; height: 100%; background: var(--accent); width: 0; transition: width 0.4s ease; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px;
  padding: 12px 28px; background: color-mix(in srgb, var(--page) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
}
.topbar .title { font-weight: 650; font-size: 15px; margin-right: auto; display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar .title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-btn { display: none; }
.content { padding: 24px 28px 56px; max-width: 1480px; width: 100%; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 20px; margin-bottom: 18px; }
.page-head .lead { color: var(--text-2); margin: 4px 0 0; max-width: 760px; }
.page-head .grow { flex: 1 1 320px; min-width: 0; }

.demo-banner {
  display: flex; align-items: center; gap: 10px; padding: 9px 28px; font-size: 13px;
  background: var(--warn-bg); color: var(--warn); border-bottom: 1px solid var(--warn-border); font-weight: 550;
}
.demo-banner svg { width: 18px; height: 18px; flex: none; }
.demo-banner b { font-weight: 750; letter-spacing: 0.02em; }
.demo-banner a { color: inherit; text-decoration: underline; margin-left: auto; white-space: nowrap; }

/* ------------------------------------------------------------------ Bausteine */
.grid { display: grid; gap: 16px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; } .span-3 { grid-column: span 3; } .span-9 { grid-column: span 9; }
.span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row-gap { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mt { margin-top: 16px; } .mt-lg { margin-top: 28px; } .mb { margin-bottom: 16px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.card-head { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px 0; flex-wrap: wrap; }
.card-head .grow { flex: 1 1 200px; min-width: 0; }
.card-head .sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.card-body { padding: 14px 18px 18px; }
.card-body.flush { padding: 10px 0 4px; }
.card-foot { padding: 0 18px 14px; color: var(--muted); font-size: 12px; }
.section-title { display: flex; align-items: baseline; gap: 10px; margin: 30px 0 12px; }
.section-title h2 { font-size: 16px; }
.section-title .sub { color: var(--muted); font-size: 13px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 14px;
  border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--text); font-weight: 550; cursor: pointer; white-space: nowrap; text-decoration: none;
}
.btn:hover { background: var(--surface-hover); text-decoration: none; }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
:root[data-theme="dark"] .btn.primary:hover { background: #2a78d6; }
.btn.danger { color: var(--bad); }
.btn.danger:hover { background: var(--bad-soft); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--surface-hover); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12.5px; }
.btn.icon { width: 34px; padding: 0; }
.btn.block { width: 100%; }

.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 2px; gap: 2px; flex-wrap: wrap; }
.seg button {
  border: 0; background: transparent; padding: 4px 10px; border-radius: 6px; cursor: pointer;
  color: var(--text-2); font-weight: 550; font-size: 12.5px; white-space: nowrap; min-height: 26px;
}
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--border), 0 1px 2px rgba(0, 0, 0, 0.06); }

.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > label, .field > .label { font-size: 12.5px; color: var(--text-2); font-weight: 550; }
.field .hint { font-size: 12px; color: var(--muted); }
.input, select.input {
  height: 36px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: var(--surface); padding: 0 11px; min-width: 0; width: 100%;
}
select.input { padding-right: 28px; appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 15px) 15px, calc(100% - 10px) 15px; background-size: 5px 5px; background-repeat: no-repeat; }
.input:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.input.sm, select.input.sm { height: 32px; font-size: 13px; }
select.input.sm { background-position: calc(100% - 15px) 13px, calc(100% - 10px) 13px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; color: var(--text-2); user-select: none; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.filters .input, .filters select.input { width: auto; }
.filters .search { flex: 1 1 200px; max-width: 320px; }

.notice {
  display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: var(--radius-sm);
  background: var(--accent-soft); color: var(--text); font-size: 13px; border: 1px solid transparent;
}
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--accent-ink); }
.notice.warn { background: var(--warn-bg); border-color: var(--warn-border); color: var(--warn); }
.notice.warn svg { color: var(--warn); }
.notice.bad { background: var(--bad-soft); color: var(--bad); }
.notice.bad svg { color: var(--bad); }
.notice p:last-child { margin: 0; }

.tag {
  display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; height: 22px; border-radius: 11px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); font-size: 12px; font-weight: 550; white-space: nowrap;
}
.tag.accent { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); }
.tag.good { background: var(--good-soft); border-color: transparent; color: var(--good); }
.tag.bad { background: var(--bad-soft); border-color: transparent; color: var(--bad); }
.tag.warn { background: var(--warn-bg); border-color: var(--warn-border); color: var(--warn); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12.5px; padding: 2px 9px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); }

.pf { display: inline-flex; align-items: center; gap: 7px; font-weight: 550; white-space: nowrap; }
.pf .dot { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.pico {
  width: 22px; height: 22px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11px; font-weight: 750; flex: none;
}

.delta { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 650; padding: 1px 6px; border-radius: 6px; white-space: nowrap; }
.delta.up { color: var(--good); background: var(--good-soft); }
.delta.down { color: var(--bad); background: var(--bad-soft); }
.delta.flat { color: var(--muted); background: var(--surface-2); }

.empty { padding: 28px 18px; text-align: center; color: var(--muted); font-size: 13px; }
.empty svg { width: 28px; height: 28px; display: block; margin: 0 auto 8px; opacity: 0.6; }

/* ------------------------------------------------------------------ KPI */
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.kpi { padding: 14px 16px 15px; display: flex; flex-direction: column; gap: 4px; }
.kpi .label { color: var(--text-2); font-size: 12.5px; font-weight: 550; display: flex; align-items: center; gap: 6px; }
.kpi .value { font-size: 25px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.kpi .foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--muted); min-height: 20px; }

/* ------------------------------------------------------------------ Diagramme */
.chart-box { position: relative; height: 260px; }
.chart-box.sm { height: 200px; }
.chart-box.lg { height: 300px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--text-2); padding: 0 18px 14px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.hbars { display: flex; flex-direction: column; gap: 9px; }
.hbar { display: grid; grid-template-columns: minmax(90px, 150px) minmax(0, 1fr) 62px; gap: 10px; align-items: center; font-size: 13px; }
.hbar .lab { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar .lab small { color: var(--muted); margin-left: 4px; }
.hbar .track { position: relative; height: 16px; }
.hbar .track::before { content: ""; position: absolute; inset: 7px 0; background: var(--grid); border-radius: 1px; }
.hbar .bar { position: absolute; top: 2px; bottom: 2px; left: 0; border-radius: 0 4px 4px 0; background: var(--s1); min-width: 2px; }
.hbar .bar.neg { background: var(--div-n2); }
.hbar .ref { position: absolute; top: -3px; bottom: -3px; width: 1px; background: var(--text-2); opacity: 0.55; }
.hbar .val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.hbar.dim .lab, .hbar.dim .val { color: var(--muted); }
.hbar.dim .bar { opacity: 0.45; }
.ref-note { font-size: 11.5px; color: var(--muted); margin-top: 10px; display: flex; align-items: center; gap: 6px; }
.ref-note i { width: 1px; height: 12px; background: var(--text-2); opacity: 0.55; display: inline-block; }

/* Heatmap */
.heat-wrap { overflow-x: auto; padding-bottom: 4px; }
.heatmap { display: grid; grid-template-columns: 26px repeat(24, minmax(16px, 1fr)); gap: 2px; min-width: 520px; font-size: 11px; }
.heatmap .hd { color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; padding-bottom: 2px; }
.heatmap .rl { color: var(--text-2); display: flex; align-items: center; font-weight: 550; }
.heat-legend .op { display: inline-flex; gap: 2px; margin-left: 10px; }
.heatmap .c { aspect-ratio: 1.25; min-height: 14px; border-radius: 3px; background: var(--heat-empty); cursor: default; }
.heatmap .c.has { cursor: pointer; }
.heatmap .c:hover { outline: 2px solid var(--text); outline-offset: -1px; }
.heatmap.mini { grid-template-columns: 18px repeat(24, minmax(8px, 1fr)); min-width: 0; gap: 1.5px; font-size: 10px; }
.heatmap.mini .c { aspect-ratio: 1; min-height: 8px; border-radius: 2px; }
.heat-legend { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); margin-top: 12px; }
.heat-legend .scale { display: inline-flex; gap: 2px; }
.heat-legend .scale i { width: 18px; height: 10px; border-radius: 2px; display: inline-block; }

.tip {
  position: fixed; z-index: 100; pointer-events: none; background: var(--surface); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  padding: 8px 10px; font-size: 12.5px; max-width: 260px; line-height: 1.45;
}
.tip b { font-weight: 650; }

/* ------------------------------------------------------------------ Tabellen */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th {
  text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; padding: 8px 12px;
  border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--surface);
}
table.t td.num { white-space: nowrap; }
table.t td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t th.r, table.t td.r { text-align: right; }
table.t th.sortable { cursor: pointer; user-select: none; }
table.t th.sortable:hover { color: var(--text); }
table.t th.sorted { color: var(--text); }
table.t th .arr { opacity: 0.8; margin-left: 3px; }
table.t tbody tr.click { cursor: pointer; }
table.t tbody tr.click:hover td { background: var(--surface-hover); }
table.t td:first-child, table.t th:first-child { padding-left: 18px; }
table.t td:last-child, table.t th:last-child { padding-right: 18px; }

.post-cell { display: flex; gap: 12px; align-items: center; min-width: 260px; max-width: 520px; }
.thumb {
  width: 46px; height: 46px; border-radius: 8px; flex: none; object-fit: cover; background: var(--surface-2);
  border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
}
.thumb svg { width: 20px; height: 20px; color: var(--muted); }
.thumb.lg { width: 96px; height: 96px; border-radius: 12px; }
.post-cell .txt { min-width: 0; }
.post-cell .ex { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.4; }
.post-cell .meta { display: flex; gap: 8px; align-items: center; margin-top: 3px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.idx-cell { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.idx-bar { width: 54px; height: 6px; background: var(--grid); border-radius: 3px; position: relative; overflow: hidden; flex: none; }
.idx-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--s1); }
.idx-bar i.low { background: var(--div-n2); }
.rank { width: 26px; height: 26px; border-radius: 8px; background: var(--surface-2); display: inline-flex; align-items: center; justify-content: center; font-weight: 650; font-size: 12px; color: var(--text-2); flex: none; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); flex-wrap: wrap; }

.post-list { display: flex; flex-direction: column; }
.post-row { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-top: 1px solid var(--border); cursor: pointer; }
.post-row:first-child { border-top: 0; }
.post-row:hover { background: var(--surface-hover); }
.post-row .txt { flex: 1; min-width: 0; }
.post-row .ex { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-row .meta { font-size: 12px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.post-row .score { text-align: right; flex: none; }
.post-row .score b { display: block; font-size: 15px; font-variant-numeric: tabular-nums; }
.post-row .score span { font-size: 11.5px; color: var(--muted); }

/* ------------------------------------------------------------------ Empfehlungen */
.insights { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.insight { padding: 14px 16px; border-left: 3px solid var(--good); border-radius: var(--radius); }
.insight.bad { border-left-color: var(--div-n3); }
.insight h3 { font-size: 14px; line-height: 1.4; margin-bottom: 6px; display: flex; gap: 8px; align-items: flex-start; }
.insight h3 svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.insight.good h3 svg { color: var(--good); }
.insight.bad h3 svg { color: var(--bad); }
.insight .txt { color: var(--text-2); font-size: 13px; }
.insight .ev { color: var(--muted); font-size: 12px; margin-top: 6px; display: flex; gap: 6px; align-items: flex-start; }

.ideas { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.idea { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.idea-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.idea-head .kind { margin-left: auto; }
.idea h3 { font-size: 15px; line-height: 1.4; }
.idea .kv { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 6px 10px; font-size: 13px; }
.idea .kv dt { color: var(--muted); }
.idea .kv dd { margin: 0; color: var(--text); }
.idea .why { font-size: 12.5px; color: var(--text-2); background: var(--surface-2); border-radius: var(--radius-sm); padding: 9px 11px; }
.idea .caption { white-space: pre-wrap; font-size: 13px; background: var(--surface-2); border-radius: var(--radius-sm); padding: 9px 11px; }

/* ------------------------------------------------------------------ Plan */
.week { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.day { display: flex; flex-direction: column; }
.day-head { display: flex; align-items: baseline; gap: 8px; padding: 12px 16px 10px; border-bottom: 1px solid var(--border); }
.day-head b { font-size: 14px; }
.day-head .n { margin-left: auto; font-size: 12px; color: var(--muted); }
.slot { padding: 11px 16px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 5px; }
.slot:last-child { border-bottom: 0; }
.slot .top { display: flex; align-items: center; gap: 8px; }
.slot .time { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 14px; min-width: 44px; }
.slot .what { font-size: 13px; color: var(--text); }
.slot .why { font-size: 12px; color: var(--muted); }
.slot.sched { background: var(--surface-2); }
.slot .tags { font-size: 12px; color: var(--accent-ink); word-break: break-word; }
.times-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.best-slots { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.best-slot { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.best-slot .no { width: 22px; height: 22px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; flex: none; }
.best-slot .when { font-weight: 650; min-width: 130px; }
.best-slot .sc { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 650; }

/* ------------------------------------------------------------------ Einstellungen */
.settings { display: flex; flex-direction: column; gap: 16px; max-width: 980px; }
.settings-row { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; padding: 16px 18px; border-top: 1px solid var(--border); }
.settings-row:first-child { border-top: 0; }
.settings-row .label b { display: block; font-weight: 600; }
.settings-row .label span { font-size: 12.5px; color: var(--muted); }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline-form .input { flex: 1 1 260px; max-width: 460px; }
.keybox { display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
.acc-list { display: flex; flex-direction: column; }
.acc { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); flex-wrap: wrap; }
.acc:first-child { border-top: 0; }
.acc .pf { min-width: 96px; }
.acc .who { min-width: 0; flex: 1 1 200px; }
.acc .who b { display: block; }
.acc .who span { font-size: 12px; color: var(--muted); }

/* Konto-Kennzahlen */
.acc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.acc-card { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.acc-card .hd { display: flex; align-items: center; gap: 10px; }
.acc-card .hd .who { min-width: 0; }
.acc-card .hd .who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-card .hd .who span { font-size: 12px; color: var(--muted); }
.acc-card .avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; background: var(--surface-2); }
.acc-card .big { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.acc-card .big b { font-size: 20px; font-variant-numeric: tabular-nums; }
.acc-card dl { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; font-size: 12.5px; }
.acc-card dt { color: var(--muted); }
.acc-card dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: 550; }

/* ------------------------------------------------------------------ Setup */
.setup { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px 16px; }
.setup-card { width: 100%; max-width: 520px; padding: 30px 30px 26px; }
.setup-card .brand { padding: 0 0 22px; }
.setup-card h1 { margin-bottom: 8px; }
.setup-card .lead { color: var(--text-2); margin-bottom: 20px; }
.steps { margin: 0 0 20px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; counter-reset: st; }
.steps li { display: flex; gap: 10px; font-size: 13px; color: var(--text-2); counter-increment: st; }
.steps li::before { content: counter(st); width: 20px; height: 20px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: 11.5px; display: inline-flex; align-items: center; justify-content: center; flex: none; margin-top: 1px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; margin: 20px 0; }
.or::before, .or::after { content: ""; height: 1px; background: var(--border); flex: 1; }
.setup-foot { margin-top: 18px; font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.setup-foot svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.err { color: var(--bad); font-size: 13px; margin-top: 8px; min-height: 0; }
.err:empty { display: none; }

/* ------------------------------------------------------------------ Modal */
.modal-back { position: fixed; inset: 0; z-index: 60; background: rgba(10, 10, 10, 0.45); display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; }
.modal { width: 100%; max-width: 860px; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.modal-head { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.modal-head .grow { flex: 1; min-width: 0; }
.modal-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 18px; }
.post-text { white-space: pre-wrap; font-size: 13.5px; line-height: 1.55; background: var(--surface-2); border-radius: var(--radius-sm); padding: 12px 14px; max-height: 240px; overflow-y: auto; word-break: break-word; }
.metric-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.metric { background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 12px; }
.metric span { display: block; font-size: 12px; color: var(--muted); }
.metric b { font-size: 17px; font-variant-numeric: tabular-nums; }
.compare { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0; pointer-events: none;
  background: var(--text); color: var(--page); padding: 10px 16px; border-radius: 10px; font-size: 13px; font-weight: 550;
  transition: all 0.2s ease; z-index: 120; max-width: calc(100vw - 32px); box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.bad { background: var(--bad); color: #fff; }


/* ------------------------------------------------------------------ Ausbau 2: Wachstum & KI */
.nav-h { font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding: 14px 10px 4px; }
.nav-h:empty { padding: 6px 0; border-top: 1px solid var(--border); margin: 8px 6px 4px; }
.nav .nav-h:first-child { padding-top: 0; }
.kpis.kpis-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kpis.kpis-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card.flush-body > .card-body { padding: 0 0 14px; }
.card.flush-body > .card-body > .empty { padding: 28px 18px; }
.ai-card { border-left: 3px solid var(--accent); }
.ai-card h2 svg, .card-head h2 svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px; color: var(--accent-ink); }
.ai-meta { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.ai-meta svg { width: 13px; height: 13px; color: var(--accent-ink); }
.lead-text { font-size: 15px; line-height: 1.6; margin: 0; }
.job { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; margin-bottom: 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.job .grow { flex: 1; min-width: 0; }
.job .progress { margin: 6px 0 4px; }
.job .spin { margin-top: 2px; }
.page-head > .row-gap { align-self: flex-start; }
table.t.compact td, table.t.compact th { padding-top: 7px; padding-bottom: 7px; }
table.t tr.grp td { border-top: 1px solid var(--border-strong); }
.fc-card .card-head .sub { font-variant-numeric: tabular-nums; }
.fc-card table.t td:first-child, .fc-card table.t th:first-child { padding-left: 0; }
.fc-card table.t td:last-child, .fc-card table.t th:last-child { padding-right: 0; }
.drv-list { display: flex; flex-direction: column; gap: 12px; }
.drv { display: flex; gap: 10px; align-items: flex-start; }
.drv > svg { width: 18px; height: 18px; flex: none; margin-top: 2px; padding: 2px; border-radius: 6px; }
.drv.up > svg { color: var(--good); background: var(--good-soft); }
.drv.down > svg { color: var(--bad); background: var(--bad-soft); }
.drv b { display: block; font-size: 13.5px; }
.sw-list { display: flex; flex-direction: column; gap: 10px; }
.sw { display: flex; flex-direction: column; gap: 2px; padding-left: 10px; border-left: 3px solid var(--border-strong); }
.sw-list.good .sw { border-left-color: var(--good); }
.sw-list.bad .sw { border-left-color: var(--bad); }
.sw-list.accent .sw { border-left-color: var(--accent); }
.sw b { font-size: 13.5px; }
.sw span { font-size: 12.5px; color: var(--text-2); }
.actions { display: flex; flex-direction: column; gap: 10px; }
.action { display: flex; gap: 14px; padding: 14px 16px; align-items: flex-start; }
.action .grow { flex: 1; min-width: 0; }
.action .prio { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: var(--on-accent); font-weight: 750; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.action .a-title { font-size: 14.5px; }
dl.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 12px; margin: 0; font-size: 13px; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; }
ul.plain { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
ul.good-list li::marker { color: var(--good); }
ul.bad-list li::marker { color: var(--bad); }
details.method > summary { cursor: pointer; padding: 14px 18px; font-weight: 650; list-style: none; }
details.method > summary::before { content: "▸"; display: inline-block; width: 16px; color: var(--muted); }
details.method[open] > summary::before { content: "▾"; }
details.method p { margin-bottom: 8px; }
pre.digest { max-height: 420px; overflow: auto; font-size: 11.5px; background: var(--surface-2); padding: 12px; border-radius: var(--radius-sm); margin: 0; white-space: pre-wrap; word-break: break-word; }
.draft-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.draft-form .full { grid-column: 1 / -1; }
.draft-form textarea.input { height: auto; padding: 9px 11px; resize: vertical; line-height: 1.5; }
.pred-main { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pred-main .metric b { font-size: 21px; }
.pred h3 { font-size: 13px; margin: 14px 0 8px; }
.variants { display: flex; flex-direction: column; gap: 6px; }
.variant { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 6px 10px; background: var(--surface-2); border-radius: var(--radius-sm); }
.variant b { font-variant-numeric: tabular-nums; }
.sched-day { margin-bottom: 18px; }
.sched-day:last-of-type { margin-bottom: 0; }
.sched-date { font-weight: 650; font-size: 13px; color: var(--text-2); padding-bottom: 6px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.sched-item { padding: 10px 0 12px; border-bottom: 1px dashed var(--border); }
.sched-item:last-child { border-bottom: 0; }
.si-top { display: flex; align-items: center; gap: 10px; font-size: 13px; min-width: 0; }
.si-top .si-text { flex: 1; min-width: 0; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.si-plats { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 6px 0 0 52px; font-size: 12.5px; }
.si-plat { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
details.si-more { margin: 4px 0 0 52px; font-size: 12.5px; }
details.si-more > summary { cursor: pointer; color: var(--accent-ink); list-style: none; }
details.si-more > summary::-webkit-details-marker { display: none; }
details.si-more .si-hints, details.si-more .si-better { margin-left: 0; }
.si-top .time { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 42px; }
.si-pred { margin-left: auto; font-size: 12.5px; font-variant-numeric: tabular-nums; }

.si-hints { list-style: none; margin: 6px 0 0 52px; padding: 0; display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; }
.si-hints li { display: flex; gap: 6px; align-items: flex-start; }
.si-hints svg { width: 13px; height: 13px; flex: none; margin-top: 3px; color: var(--accent-ink); }
.si-better { margin: 6px 0 0 52px; font-size: 12.5px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.btn.copy { height: 26px; padding: 0 8px; font-size: 12px; gap: 5px; }
.btn.copy svg { width: 13px; height: 13px; }
.slot .caption.sm, .caption.sm { font-size: 12.5px; white-space: pre-wrap; background: var(--surface-2); border-radius: var(--radius-sm); padding: 7px 9px; margin: 6px 0; }
.factors { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.factors .chip { font-size: 11.5px; padding: 1px 7px; }
.ai-expl { display: flex; gap: 6px; font-size: 12.5px; color: var(--text-2); margin-top: 6px; }
.ai-expl svg { width: 13px; height: 13px; flex: none; margin-top: 3px; color: var(--accent-ink); }
.post-row .score { display: flex; flex-direction: column; align-items: flex-end; }
.post-row .score span + span { font-size: 11.5px; }
.rep-list { display: flex; flex-direction: column; }
.rep-item { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 10px 16px; border: 0; border-bottom: 1px solid var(--border); background: none; cursor: pointer; font: inherit; color: inherit; }
.rep-item:hover { background: var(--surface-hover); }
.rep-item.on { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.rep-item span { font-size: 12.5px; color: var(--text-2); }
ol.focus { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
ol.focus span { display: block; color: var(--text-2); font-size: 12.5px; }
.credit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.budget-row { display: grid; grid-template-columns: 60px minmax(80px, 1fr) auto 90px auto; gap: 10px; align-items: center; font-size: 13px; margin-bottom: 8px; }
.progress.budget { margin: 0; }
.progress.budget i.hot { background: var(--bad); }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 1320px) { .kpis.kpis-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .span-3, .span-9 { grid-column: span 12; } }
@media (max-width: 640px) {
  .kpis.kpis-5, .kpis.kpis-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .draft-form, .pred-main { grid-template-columns: minmax(0, 1fr); }
  .si-plats, details.si-more { margin-left: 0; }
  .si-top .si-text { white-space: normal; }
  .budget-row { grid-template-columns: 50px minmax(60px, 1fr) 70px; }
  .budget-row > span:nth-child(3), .budget-row > span:last-child { display: none; }
  .action { padding: 12px; gap: 10px; }
  .page-head { flex-wrap: wrap; }
}

/* ------------------------------------------------------------------ Responsiv */
@media (max-width: 1320px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .span-4, .span-5, .span-6, .span-7, .span-8 { grid-column: span 12; }
  .cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); background: none; }
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; width: 280px; z-index: 50; transform: translateX(-100%);
    transition: transform 0.2s ease; box-shadow: var(--shadow-lg);
  }
  .shell.nav-open .sidebar { transform: translateX(0); }
  .shell.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.35); z-index: 40; }
  .menu-btn { display: inline-flex; }
  .topbar { padding: 10px 16px; gap: 8px; }
  .content { padding: 18px 16px 48px; }
  .demo-banner { padding: 8px 16px; }
  .settings-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .cols-2, .cols-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  h1 { font-size: 20px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 12px 13px; }
  .kpi .value { font-size: 21px; }
  .chart-box { height: 220px; }
  .insights, .ideas, .times-grid, .week { grid-template-columns: minmax(0, 1fr); }
  .hbar { grid-template-columns: minmax(80px, 110px) minmax(0, 1fr) 52px; gap: 8px; }
  .topbar .sync-label { display: none; }
  .filters .search { max-width: none; flex-basis: 100%; }
  .filters > * { flex: 1 1 auto; }
  .filters .seg { flex-basis: 100%; }
  .modal-back { padding: 0; }
  .modal { border-radius: 0; min-height: 100vh; border: 0; }
  .card-head { padding: 14px 14px 0; }
  .card-body { padding: 12px 14px 14px; }
  table.t td:first-child, table.t th:first-child { padding-left: 14px; }
  table.t td:last-child, table.t th:last-child { padding-right: 14px; }
  .post-row { padding: 10px 14px; }
  .setup-card { padding: 22px 18px; }
  table.t .hide-m { display: none; }
  table.t td, table.t th { padding-left: 8px; padding-right: 8px; }
  .heatmap { min-width: 0; gap: 1.5px; grid-template-columns: 22px repeat(24, minmax(0, 1fr)); font-size: 10px; }
  .heatmap .c { min-height: 10px; border-radius: 2px; }
  .demo-banner { font-size: 12px; }
  /* Ranking-Tabelle als Karten */
  table.t.cards thead { display: none; }
  table.t.cards, table.t.cards tbody, table.t.cards tr, table.t.cards td { display: block; width: 100%; }
  table.t.cards tr { padding: 12px 14px; border-bottom: 1px solid var(--border); }
  table.t.cards td { border: 0; padding: 2px 0 !important; text-align: left !important; }
  table.t.cards td.hide-m { display: none; }
  table.t.cards td.m-inline { display: inline-block; width: auto; margin-right: 14px; font-size: 12.5px; }
  table.t.cards td.m-inline::before { content: attr(data-l) " "; color: var(--muted); }
  table.t.cards .idx-cell { justify-content: flex-start; }
  .post-cell { min-width: 0; max-width: none; margin-bottom: 6px; }
}
@media print {
  .sidebar, .topbar, .demo-banner { display: none; }
  .shell { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation-duration: 0.01ms !important; }
}

.slot .top { flex-wrap: wrap; min-width: 0; }
.slot .top .tag, .idea-head .tag { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.day, .slot, .idea { min-width: 0; }
.idea-head { flex-wrap: wrap; }
.si-plat { flex-wrap: wrap; }
.si-plat .xs { white-space: nowrap; }
@media (max-width: 640px) { .si-plat .xs { display: none; } .si-plats { gap: 6px 12px; } }

/* ------------------------------------------------------------------ Community (Ausbau 3) */
.cm-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin: 4px 0 18px; overflow-x: auto; scrollbar-width: none; }
.cm-tabs::-webkit-scrollbar { display: none; }
.cm-tabs a { padding: 9px 14px; font-size: 13.5px; font-weight: 500; color: var(--text-2); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.cm-tabs a:hover { color: var(--text); }
.cm-tabs a.on { color: var(--text); border-bottom-color: var(--accent); }
.cm-bars .hbar { grid-template-columns: minmax(90px, 140px) minmax(0, 1fr) 46px; }
.cm-bars .bar { border-radius: 0 3px 3px 0; }
.section-mini { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 16px 18px 6px; }
.clusters { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 14px; }
.cluster { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.cl-head { display: flex; gap: 12px; align-items: flex-start; }
.cl-head h3 { font-size: 15px; line-height: 1.35; margin-bottom: 4px; }
.cl-n { flex: none; min-width: 46px; height: 40px; padding: 0 8px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.canon { font-size: 13.5px; color: var(--text); }
.cl-stats { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--muted); }
.cl-stats b { color: var(--text); font-variant-numeric: tabular-nums; }
.cl-stats .warn-t b { color: var(--bad); }
.quotes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.quotes li { background: var(--surface-2); border-radius: var(--radius-sm); padding: 8px 11px; font-size: 12.5px; display: flex; flex-direction: column; gap: 2px; }
.quotes .q { color: var(--text-2); word-break: break-word; }
.cl-foot { border-top: 1px solid var(--border); padding-top: 10px; margin-top: auto; font-size: 12px; }
.pf-n { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; }
.pf-n b { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; }
.dot-only { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.cl-ref { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--accent-ink); background: var(--accent-soft); border-radius: var(--radius-sm); padding: 5px 9px; text-decoration: none; align-self: flex-start; }
.cl-ref svg { flex: none; }
.cm-idea { border-left: 3px solid var(--s3); }
.idea .caption.de { color: var(--text-2); }
.cm-list { display: flex; flex-direction: column; }
.cm-row { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 14px; padding: 12px 18px; border-top: 1px solid var(--border); cursor: pointer; align-items: start; }
.cm-row:first-child { border-top: 0; }
.cm-row:hover { background: var(--surface-hover); }
.cm-meta { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); }
.cm-text { font-size: 13.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; margin-top: 2px; }
.cm-tags { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; max-width: 260px; }
.thread { display: flex; flex-direction: column; gap: 8px; max-height: 380px; overflow-y: auto; padding-right: 4px; }
.bubble { background: var(--surface-2); border-radius: 10px; padding: 8px 12px; max-width: 88%; align-self: flex-start; border: 1px solid transparent; }
.bubble.reply { margin-left: 22px; }
.bubble.own { align-self: flex-end; background: var(--accent-soft); }
.bubble.sel { border-color: var(--accent); }
.b-text { font-size: 13.5px; white-space: pre-wrap; word-break: break-word; margin-top: 2px; }
.post-text.sm { font-size: 12.5px; max-height: 120px; }
.reply-item { padding: 14px 18px; display: flex; flex-direction: column; gap: 8px; }
.ri-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ri-text { white-space: pre-wrap; font-size: 13.5px; line-height: 1.5; word-break: break-word; }
.draft { background: var(--good-soft); border-radius: var(--radius-sm); padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.draft.empty-d { background: var(--surface-2); }
.draft-text { white-space: pre-wrap; font-size: 13.5px; }
.faq { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 12px; font-size: 13.5px; }
.faq p { margin: 4px 0 0; color: var(--text-2); }
.faq summary { cursor: pointer; margin-top: 4px; }
.mini-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.mini-kpis > div { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; color: var(--muted); }
.mini-kpis b { font-size: 20px; color: var(--text); font-variant-numeric: tabular-nums; font-weight: 650; }
.cm-top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 14px; }
.cm-top .chip { text-decoration: none; color: var(--text-2); }
.cm-top .chip:hover { border-color: var(--border-strong); color: var(--text); }
@media (max-width: 900px) {
  .cm-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .cm-meta { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .cm-tags { justify-content: flex-start; max-width: none; }
}
@media (max-width: 640px) {
  .clusters { grid-template-columns: minmax(0, 1fr); }
  .bubble { max-width: 100%; }
}
.subs { display: flex; flex-direction: column; gap: 4px; background: var(--surface-2); border-radius: var(--radius-sm); padding: 9px 11px; }
.subs .sub { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(40px, 1fr) 34px; gap: 8px; align-items: center; background: none; border: 0; padding: 2px 0; font: inherit; font-size: 12.5px; color: var(--text-2); cursor: pointer; text-align: left; }
.subs .sub:hover .lab { color: var(--text); text-decoration: underline; }
.subs .lab { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.subs .track { height: 8px; background: var(--grid); border-radius: 4px; overflow: hidden; }
.subs .track i { display: block; height: 100%; background: var(--s7); border-radius: 4px; }
.subs b { text-align: right; font-variant-numeric: tabular-nums; color: var(--text); }
.mini-kpis .delta { align-self: flex-start; }
.sticky-col > .card { position: sticky; top: 74px; }
@media (max-width: 1100px) { .sticky-col > .card { position: static; } }

/* ------------------------------------------------------------------ Login & Antworten senden (2.2) */
.login-card .lead { margin-bottom: 18px; }
.mt-sm { margin-top: 10px; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 42px; }
.pw-eye { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); }
.user-box { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 12.5px; color: var(--text-2); background: var(--surface); }
.user-box > svg { width: 16px; height: 16px; flex: none; color: var(--muted); }
.user-box .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn.icon.sm { width: 28px; height: 28px; }
.grow { flex: 1 1 auto; }
.notice.good-n { background: var(--good-soft); border-color: transparent; color: var(--text); }
.notice.good-n svg { color: var(--good); }
.cm-tabs { overflow-x: auto; scrollbar-width: none; }
.cm-tabs::-webkit-scrollbar { display: none; }

.composer { display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 14px; background: var(--surface-2); }
.composer .notice { margin: 0; }
.cmp-target { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--text-2); }
.cmp-target > svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--accent-ink); }
.cmp-target .pf { display: inline-flex; vertical-align: -1px; }
.cmp-win { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); }
.cmp-win svg { width: 14px; height: 14px; flex: none; }
.cmp-win.warn { color: var(--warn); }
.cmp-text { min-height: 104px; height: auto; padding: 10px 12px; line-height: 1.5; resize: vertical; font-size: 14px;
  background: var(--surface); }
.composer.confirming .cmp-text { opacity: 0.6; }
.composer.sent .cmp-text { opacity: 0.7; }
.cmp-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; min-height: 18px; }
.cmp-count.bad { color: var(--bad); font-weight: 600; }
.ph-lock { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; color: var(--bad); font-size: 12.5px; font-weight: 550; }
.ph-lock code { background: var(--bad-soft); padding: 0 5px; border-radius: 4px; color: var(--bad); }
.cmp-note:empty { display: none; }
.cmp-note svg { vertical-align: -2px; margin-right: 3px; }
.cmp-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.cmp-tools { flex: 1 1 260px; }
.cmp-send { min-width: 170px; }
.composer.confirming .cmp-actions { display: none; }
.cmp-hist { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--border); padding-top: 8px; }

.confirm-box { border: 2px solid var(--accent); border-radius: var(--radius); background: var(--surface); padding: 14px 16px;
  display: flex; flex-direction: column; gap: 10px; }
.confirm-box.sm { border-width: 1px; padding: 10px 12px; gap: 8px; font-size: 13px; }
.cb-title { display: flex; gap: 8px; align-items: center; font-size: 15px; }
.cb-title svg { width: 18px; height: 18px; color: var(--accent-ink); flex: none; }
.cb-kv { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 5px 12px; margin: 0; font-size: 13px; }
.cb-kv dt { color: var(--muted); }
.cb-kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.cb-label { margin-bottom: -6px; }
.cb-text { white-space: pre-wrap; word-break: break-word; font-size: 14.5px; line-height: 1.55; padding: 10px 12px;
  border-radius: var(--radius-sm); background: var(--accent-soft); }
.cb-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.confirm-box .notice { margin: 0; }

.q-card { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.q-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.q-pos { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 13px; padding: 2px 9px; border-radius: 12px;
  background: var(--accent); color: var(--on-accent); }
.q-reasons { display: flex; gap: 6px; flex-wrap: wrap; }
.q-text { white-space: pre-wrap; word-break: break-word; font-size: 15.5px; line-height: 1.55; padding: 12px 14px;
  border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.q-ctx { opacity: 0.9; }
.q-nav { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--border); padding-top: 12px; }
.q-tpl { border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); padding: 8px 12px; }
.q-tpl summary { cursor: pointer; display: flex; gap: 8px; align-items: center; font-size: 13px; list-style: none; }
.q-tpl summary::-webkit-details-marker { display: none; }
.q-tpl summary svg { flex: none; color: var(--accent-ink); }
.q-tpl[open] summary { margin-bottom: 8px; }
.q-tpl textarea { height: auto; padding: 8px 10px; resize: vertical; }
.q-list { display: flex; flex-direction: column; padding: 8px 8px 10px; }
.q-li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 8px; text-align: left; border: 0; background: none;
  padding: 8px 10px; border-radius: var(--radius-sm); cursor: pointer; color: var(--text); font: inherit; }
.q-li:hover { background: var(--surface-hover); }
.q-li.on { background: var(--accent-soft); }
.q-li .pf { grid-row: span 2; align-self: start; font-size: 12px; }
.q-li-text { font-size: 13px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.q-li-meta { grid-column: 2; }

.log-list { display: flex; flex-direction: column; }
.log-row { padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; }
.log-row:last-child { border-bottom: 0; }
.log-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.log-text { white-space: pre-wrap; word-break: break-word; font-size: 13.5px; padding: 8px 10px; background: var(--surface-2); border-radius: var(--radius-sm); }
.log-foot { display: flex; gap: 14px; flex-wrap: wrap; }
.log-foot code { font-size: 11.5px; overflow-wrap: anywhere; }

.facts { display: flex; flex-direction: column; gap: 8px; }
.fact { display: grid; grid-template-columns: minmax(140px, 220px) minmax(0, 1fr) 28px; gap: 8px; align-items: start; }
.fact textarea { height: auto; min-height: 36px; padding: 7px 10px; resize: vertical; }
.pw-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: end; max-width: 760px; }
.pw-form > div:last-child { grid-column: 1 / -1; }

@media (max-width: 900px) {
  .pw-form { grid-template-columns: minmax(0, 1fr); }
  .fact { grid-template-columns: minmax(0, 1fr) 28px; }
  .fact textarea { grid-column: 1 / 2; }
}
@media (max-width: 640px) {
  .composer { padding: 10px 12px; margin: 0 -2px; }
  .cmp-text { font-size: 16px; min-height: 130px; }       /* 16px: kein Auto-Zoom auf iOS */
  .cmp-actions { flex-direction: column; align-items: stretch; }
  .cmp-tools { flex: none; }
  .cmp-send, .cb-actions .btn, .q-nav .btn { height: 44px; font-size: 14.5px; }
  .cmp-send { width: 100%; }
  .cb-actions { flex-direction: column-reverse; }
  .cb-actions .btn { width: 100%; justify-content: center; }
  .cb-kv { grid-template-columns: 70px minmax(0, 1fr); }
  .q-card { padding: 14px; }
  .q-text { font-size: 15px; }
  .q-nav .grow { display: none; }
  .q-nav .btn { flex: 1 1 40%; justify-content: center; }
  .log-row { padding: 12px 14px; }
  .q-grid .sticky-col { order: 2; }
}

/* ---------------------------------------------------------------- Übersetzungen (seit 2.3) */
.fx { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fx[data-fxm="de"] > .fx-orig, .fx[data-fxm="orig"] > .fx-de { display: none; }
.fx[data-fxm="both"] > .fx-orig { color: var(--text-2); font-size: 0.93em; }
.fx[data-fxm="both"] > .fx-orig:not(.q-text):not(.post-text) { border-left: 2px solid var(--border-strong); padding-left: 8px; }
.fx[data-fxm="both"] > .fx-orig.q-text { border-left-color: var(--border-strong); font-size: 14px; }
.fx-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.fx-lang { display: inline-flex; gap: 4px; align-items: center; }
.fx-lang svg { width: 13px; height: 13px; flex: none; }
.fx-tg { border: 0; background: none; padding: 2px 0; color: var(--accent-ink); font: inherit; font-weight: 600; cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px; }
.fx-tg:hover { color: var(--text); }
.fx-tg:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.quotes li .fx { gap: 2px; }
.log-orig { margin-top: -2px; }
.cm-voices { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.draft-de, .log-de { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--text-2); white-space: pre-wrap;
  word-break: break-word; border-left: 2px solid var(--border-strong); padding: 2px 0 2px 9px; }
.draft-de span, .log-de span { display: inline-flex; gap: 4px; align-items: center; white-space: normal; }
.cmp-de { border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); padding: 8px 11px; display: flex;
  flex-direction: column; gap: 5px; background: var(--surface-2); }
.cmp-de.empty { display: none; }
.cmp-de-head { display: flex; gap: 6px 8px; align-items: center; flex-wrap: wrap; font-size: 12px; }
.cmp-de-head svg { width: 14px; height: 14px; color: var(--accent-ink); flex: none; }
.cmp-de-head .btn.sm { height: 26px; padding: 0 8px; font-size: 12px; }
.cmp-de-text { white-space: pre-wrap; word-break: break-word; font-size: 13.5px; line-height: 1.5; min-height: 1.2em; }
.cmp-de.stale .cmp-de-text { opacity: 0.5; }
.cmp-de [data-c="de-state"] { color: var(--muted); }
.cmp-de:not(.stale) [data-c="de-state"] { color: var(--good); }
.cmp-write-de { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 12px; background: var(--surface-2); }
.cmp-write-de textarea { height: auto; padding: 8px 10px; resize: vertical; }
.cb-de { white-space: pre-wrap; word-break: break-word; font-size: 13.5px; line-height: 1.5; padding: 8px 12px; color: var(--text-2);
  border-left: 3px solid var(--border-strong); background: var(--surface-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.cb-kv dd .fx { gap: 2px; }
@media (max-width: 640px) {
  .cmp-de-head .grow { display: none; }
  .cmp-de-head .muted { flex-basis: 100%; order: 3; }
  .cmp-write-de textarea { font-size: 16px; }
  .fx-tg { padding: 6px 0; }
}
.cmp-write-de[hidden], .cmp-de[hidden] { display: none; }

/* ------------------------------------------------------------------ Claude-Prompts (seit 2.4) */
.cprompt { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); min-width: 0; }
.cprompt > summary { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 7px 8px 7px 11px; cursor: pointer; list-style: none; font-size: 13px; min-height: 40px; }
.cprompt > summary::-webkit-details-marker { display: none; }
.cprompt > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: -3px 4px 0 2px; order: 9; transition: transform .15s; }
.cprompt[open] > summary::after { transform: rotate(-135deg); margin-top: 3px; }
.cprompt[open] > summary { border-bottom: 1px solid var(--border); }
.cp-title { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--text); }
.cp-title svg { width: 15px; height: 15px; color: var(--accent-ink); }
.cp-look { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 1px 9px 1px 6px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-look::before { content: ""; width: 10px; height: 10px; border-radius: 3px; flex: none; background: var(--muted); }
.cp-look.cp-dark::before { background: #000; box-shadow: inset 0 -3px 0 #DC2626; border: 1px solid #555; }
.cp-look.cp-yellow::before { background: #E9C34A; box-shadow: inset 0 -3px 0 #2B281F; }
.cp-look.cp-custom::before { background: linear-gradient(135deg, #000 50%, #DC2626 50%); border: 1px dashed var(--muted); }
.cp-n { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cp-quick { margin-left: auto; }
.cp-quick svg { width: 15px; height: 15px; }
.cp-body { padding: 10px 11px 11px; display: flex; flex-direction: column; gap: 9px; }
.cp-bar { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; }
.cp-sel { display: flex; flex-direction: column; gap: 4px; flex: 1 1 220px; min-width: 0; }
.cp-sel > span { font-size: 12px; color: var(--muted); }
.cp-sel select { width: 100%; }
.cp-text { margin: 0; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 11px 12px; max-height: 440px; overflow-y: auto; tab-size: 2; }
.cp-text:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.cp-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cp-note { font-size: 12.5px; padding: 8px 10px; }
.cprompt-none { display: flex; align-items: center; gap: 6px; padding: 6px 0 0; }
.slot .cprompt { margin-top: 4px; }
.slot .cp-text { max-height: 340px; font-size: 12px; }
.cp-status { align-items: center; margin-bottom: 14px; }
.cp-status .grow { min-width: 0; }
.cp-status.ok { background: var(--good-soft); border-color: transparent; }
.cp-open svg { width: 15px; height: 15px; }
.modal .cprompt { border: 0; }
.modal .cprompt > summary { padding-left: 0; }
.modal .cp-body { padding: 10px 0 0; }
.modal .cp-text { max-height: 58vh; }
/* Einstellungen: Design-Stichwörter */
.ds-list { display: flex; flex-direction: column; gap: 10px; }
.ds-item { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; background: var(--surface-2); }
.ds-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.ds-head .ds-name { flex: 1 1 220px; font-weight: 600; }
.ds-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
.ds-grid .full { grid-column: 1 / -1; }
.ds-grid textarea { resize: vertical; min-height: 44px; }
.task-models { display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 640px) {
  .cprompt > summary { gap: 6px; }
  .cp-quick { padding-left: 10px; padding-right: 10px; }
  .cp-bar .cp-copy { flex: 1 1 100%; justify-content: center; min-height: 40px; }
  .cp-foot .btn { flex: 1 1 auto; justify-content: center; }
  .cp-text { font-size: 12px; max-height: 60vh; padding: 10px; }
  .ds-grid { grid-template-columns: minmax(0, 1fr); }
}
.ds-grid [data-base][hidden] { display: none; }

/* ---------------------------------------------------------------- Website lifad.world (2.5) */
.web-page { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.web-page b { font-weight: 550; font-size: 13px; color: var(--text); overflow-wrap: anywhere; }
.web-page .mono { overflow-wrap: anywhere; }
a.web-page-link { text-decoration: none; color: inherit; }
a.web-page-link:hover b { color: var(--accent-ink); text-decoration: underline; }
.web-post { display: flex; gap: 10px; align-items: center; min-width: 0; }
.web-post .small { overflow-wrap: anywhere; }
.web-spark { display: block; }
.web-ins li { margin: 0 0 6px; line-height: 1.45; }
.web-ai { border-top: 1px solid var(--border); margin-top: 12px; padding-top: 12px; }
.web-goals { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; padding: 14px 18px 4px; }
.web-goal { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; background: var(--surface-2); }
.web-goal .row { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 13px; }
.web-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; }
.web-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--text-2); }
.url-box { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 12.5px; overflow-wrap: anywhere; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; color: var(--text); }
.web-url { overflow-wrap: anywhere; max-width: 520px; }
.warn-text { color: var(--warn); margin-top: 4px; min-height: 1em; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); display: inline-block; margin-right: 6px; vertical-align: 1px; }
.web-cockpit .cm-top .chip .delta { margin-left: 2px; }
@media (max-width: 760px) {
  .web-form { grid-template-columns: 1fr; }
  .web-spark { display: none; }
}

/* ------------------------------------------------------------------ Status der Ideen (seit 2.6) */
.ist { display: flex; flex-direction: column; gap: 7px; }
.ist-seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 3px; }
.ist-seg button { min-height: 34px; padding: 4px 2px; border: 0; border-radius: 6px; background: transparent; color: var(--text-2); font: inherit; font-size: 12.5px; font-weight: 550; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ist-seg button:hover { color: var(--text); background: var(--surface); }
.ist-seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.ist-seg button.on { color: var(--text); background: var(--surface); box-shadow: 0 0 0 1px var(--border), 0 1px 2px rgba(0, 0, 0, 0.06); }
.ist-seg button.s-geplant.on { background: var(--accent-soft); color: var(--accent-ink); box-shadow: 0 0 0 1px var(--accent); }
.ist-seg button.s-veroeffentlicht.on { background: var(--good-soft); color: var(--good); box-shadow: 0 0 0 1px var(--good); }
.ist-seg button.s-verworfen.on { background: var(--bad-soft); color: var(--bad); box-shadow: 0 0 0 1px var(--bad); }
.ist-seg.busy { opacity: 0.55; pointer-events: none; }
.ist-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12.5px; color: var(--text-2); }
.ist-line .btn.sm { padding: 2px 8px; min-height: 26px; }
.ist-when { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--text); }
.ist-link { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--accent-ink); }
.ist-res b { color: var(--text); }
.ist-auto { display: inline-flex; align-items: center; gap: 4px; }
.ist-reasons { display: flex; flex-wrap: wrap; gap: 6px; }
.ist-reasons .chip { cursor: pointer; font: inherit; font-size: 12px; }
.ist-reasons .chip:hover { border-color: var(--accent); color: var(--text); }
.ist-sim { display: flex; gap: 6px; align-items: center; color: var(--warn); }
.ist-sugg { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; padding: 9px 11px; border-radius: var(--radius-sm); border: 1px dashed var(--accent); background: var(--accent-soft); font-size: 13px; }
.ist-sugg-t { display: flex; gap: 8px; align-items: flex-start; min-width: 0; flex: 1 1 260px; }
.ist-sugg-t svg { color: var(--accent-ink); margin-top: 2px; flex: none; }
.ist-sugg-b { display: flex; gap: 6px; flex: none; }
.ist-panel .card-body { display: flex; flex-direction: column; gap: 10px; }
.ist-sugg-head { margin-top: 4px; }
#ist-sugg-list { display: flex; flex-direction: column; gap: 8px; }
.ist-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.ist-filter button { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 4px 12px; border-radius: 17px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font: inherit; font-size: 13px; cursor: pointer; }
.ist-filter button b { font-variant-numeric: tabular-nums; color: var(--text); }
.ist-filter button.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.ist-form { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 8px 10px; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
.ist-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); min-width: 0; }
.ist-form label.wide, .ist-form .row-gap { grid-column: 1 / -1; }
.ist-form .input { width: 100%; min-width: 0; }
.ist-seg .l-short { display: none; }
.ist.compact .ist-seg { grid-template-columns: repeat(4, auto); }
.ist.compact .ist-seg button { min-height: 30px; font-size: 12px; padding: 4px 3px; }
#ist-job:empty, #ist-sugg-list:empty { display: none; }
.ist.compact .ist-seg .l-full { display: none; }
.ist.compact .ist-seg .l-short { display: inline; }
@media (max-width: 1500px) { .ist-seg .l-full { display: none; } .ist-seg .l-short { display: inline; } }
.ist-cell .ist-sel { width: 132px; min-width: 132px; }
.ist-sel { width: auto; min-width: 128px; }
.ist-sel.s-geplant { border-color: var(--accent); color: var(--accent-ink); }
.ist-sel.s-veroeffentlicht { border-color: var(--good); color: var(--good); }
.ist-sel.s-verworfen { color: var(--bad); }
.slot.taken, tr.taken td { background: var(--surface-2); }
.slot.taken .what b { text-decoration: none; }
.slot.busy .pf { font-weight: 600; font-size: 12.5px; }
.busy-tag { background: var(--surface); }
.ist-none { display: none; }
.ideas-cockpit .ist-cta { text-decoration: none; }
.ideas-cockpit .mini-kpis > div > span.xs { color: var(--muted); }
/* Filter: nur Karten/Zeilen mit passendem Status zeigen */
.istf-offen [data-ist-st]:not([data-ist-st="offen"]), .istf-geplant [data-ist-st]:not([data-ist-st="geplant"]),
.istf-veroeffentlicht [data-ist-st]:not([data-ist-st="veroeffentlicht"]), .istf-verworfen [data-ist-st]:not([data-ist-st="verworfen"]) { display: none; }
.istf-offen .day:not(:has([data-ist-st="offen"])), .istf-geplant .day:not(:has([data-ist-st="geplant"])),
.istf-veroeffentlicht .day:not(:has([data-ist-st="veroeffentlicht"])), .istf-verworfen .day:not(:has([data-ist-st="verworfen"])) { display: none; }
.istf-offen .ist-older-title, .istf-geplant:not(:has(.ist-older [data-ist-st="geplant"])) .ist-older-title,
.istf-veroeffentlicht:not(:has(.ist-older [data-ist-st="veroeffentlicht"])) .ist-older-title,
.istf-verworfen:not(:has(.ist-older [data-ist-st="verworfen"])) .ist-older-title { display: none; }
.istf-offen:not(:has([data-ist-st="offen"])) .ist-none, .istf-geplant:not(:has([data-ist-st="geplant"])) .ist-none,
.istf-veroeffentlicht:not(:has([data-ist-st="veroeffentlicht"])) .ist-none, .istf-verworfen:not(:has([data-ist-st="verworfen"])) .ist-none { display: block; margin-top: 14px; }
@media (max-width: 640px) {
  .ist-seg button { min-height: 42px; font-size: 13px; }
  .ist-seg .l-full, .ist.compact .ist-seg .l-full { display: inline; } .ist-seg .l-short, .ist.compact .ist-seg .l-short { display: none; }
  .ist.compact .ist-seg button { min-height: 40px; }
  .ist.compact .ist-seg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ist-seg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ist-form { grid-template-columns: minmax(0, 1fr); }
  .ist-filter button { min-height: 38px; }
  .ist-sugg-b { width: 100%; }
  .ist-sugg-b .btn { flex: 1; justify-content: center; min-height: 40px; }
}
