/* ──────────────────────────────────────────────────────────────
   Botty Components — v1  shared widget vocabulary
   Loaded AFTER botty-shell.css. Used by every page.
   ────────────────────────────────────────────────────────────── */

/* ── Buttons ────────────────────────────────────────────────── */
.botty-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px;
  font-family: var(--ff-sans); font-size: 13px; font-weight: 600;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer; text-decoration: none;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.botty-btn:hover { background: var(--surface-3); border-color: var(--brand-tint); text-decoration: none; }
.botty-btn:active { transform: translateY(1px); }
.botty-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.botty-btn.primary {
  background: linear-gradient(180deg, var(--brand), var(--brand-deep));
  border-color: var(--brand-deep); color: var(--text-on-accent);
  box-shadow: 0 2px 14px var(--brand-glow);
}
.botty-btn.primary:hover { filter: brightness(1.06); }
.botty-btn.cta {
  background: var(--warn-solid); border-color: var(--warn-solid); color: #07131f;
  box-shadow: 0 2px 14px var(--warn-glow);
}
.botty-btn.cta:hover { filter: brightness(1.04); }
.botty-btn.ghost { background: transparent; border-color: var(--line); }
.botty-btn.ghost:hover { background: var(--surface-2); }
.botty-btn.sm { padding: 5px 11px; font-size: 12px; }
.botty-iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text-muted);
  cursor: pointer; transition: all var(--t-fast);
}
.botty-iconbtn:hover { color: var(--text); background: var(--surface-3); border-color: var(--line-strong); }

/* ── Cards ──────────────────────────────────────────────────── */
.botty-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}
.botty-card.flat { padding: 0; overflow: hidden; }
.botty-card.glow { box-shadow: var(--shadow-md), 0 0 0 1px var(--brand-tint); }
/* aufwärts-gerichtete Akzentkante oben */
.botty-card.accent::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--profit) 100%);
  border-radius: var(--r-md) var(--r-md) 0 0;
}
.botty-card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; gap: 12px;
}
.botty-card-title { font-size: 14px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 8px; }
.botty-card-sub { font-size: 12px; color: var(--text-subtle); margin-top: 2px; }
.botty-card-link { font-size: 12px; color: var(--brand); text-decoration: none; font-weight: 500; }
.botty-card-link:hover { text-decoration: underline; }

/* Grids */
.botty-grid { display: grid; gap: 16px; }
.botty-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.botty-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.botty-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .botty-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } .botty-grid.cols-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px)  { .botty-grid.cols-2, .botty-grid.cols-3, .botty-grid.cols-4 { grid-template-columns: 1fr; } }

/* ── KPI tile ───────────────────────────────────────────────── */
.botty-kpi {
  display: flex; flex-direction: column; gap: 5px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  min-width: 0; position: relative; overflow: hidden;
}
.botty-kpi-label {
  font-size: 11px; font-weight: 600; color: var(--text-subtle);
  text-transform: uppercase; letter-spacing: 0.08em;
  display: flex; align-items: center; gap: 6px;
}
.botty-kpi-value {
  font-family: var(--ff-mono);
  font-size: 27px; font-weight: 600; color: var(--text);
  letter-spacing: -0.01em; line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.botty-kpi-value.sm { font-size: 20px; }
.botty-kpi-delta {
  font-family: var(--ff-mono); font-size: 12px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 4px;
}
.botty-kpi-delta.up { color: var(--profit); }
.botty-kpi-delta.down { color: var(--loss); }
.botty-kpi-spark { position: absolute; right: 0; bottom: 0; left: 0; height: 34px; opacity: .5; pointer-events: none; }

/* ── Data tables ────────────────────────────────────────────── */
.botty-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.botty-table th {
  text-align: left; font-size: 11px; font-weight: 600;
  color: var(--text-subtle); text-transform: uppercase; letter-spacing: 0.06em;
  padding: 10px 14px; border-bottom: 1px solid var(--line);
  background: var(--surface-2); white-space: nowrap; position: sticky; top: 0;
}
.botty-table td {
  padding: 10px 14px; border-bottom: 1px solid var(--line);
  vertical-align: middle; white-space: nowrap; color: var(--text-muted);
}
.botty-table tr:last-child td { border-bottom: none; }
.botty-table tbody tr { transition: background var(--t-fast); }
.botty-table tbody tr:hover td { background: var(--surface-2); }
.botty-table .num, .botty-table td.num { font-family: var(--ff-mono); color: var(--text); font-variant-numeric: tabular-nums; }
.botty-table .profit, .botty-table .pos { color: var(--profit); font-weight: 600; }
.botty-table .loss, .botty-table .neg { color: var(--loss); font-weight: 600; }
.botty-table.clickable tbody tr { cursor: pointer; }

/* ── Segmented control / tabs ───────────────────────────────── */
.botty-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); }
.botty-tab {
  position: relative; padding: 10px 16px;
  font-size: 13.5px; font-weight: 500; color: var(--text-muted);
  cursor: pointer; background: none; border: none; font-family: inherit; text-decoration: none;
  transition: color var(--t-fast);
}
.botty-tab:hover { color: var(--text); }
.botty-tab.active { color: var(--brand); font-weight: 600; }
.botty-tab.active::after {
  content: ''; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px;
  background: var(--brand); border-radius: 1px; box-shadow: 0 0 10px var(--brand-glow);
}
.botty-tab .count { margin-left: 6px; font-family: var(--ff-mono); font-size: 11px; color: var(--text-subtle); }

.botty-segment { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); }
.botty-segment button {
  padding: 5px 12px; font: inherit; font-size: 12.5px; font-weight: 500;
  border: none; background: none; color: var(--text-muted); border-radius: var(--r-xs); cursor: pointer;
  transition: all var(--t-fast);
}
.botty-segment button:hover { color: var(--text); }
.botty-segment button.active { background: var(--surface-4); color: var(--text); box-shadow: var(--shadow-sm); }

/* ── Inputs ─────────────────────────────────────────────────── */
.botty-input, .botty-select {
  width: 100%; font: inherit; font-size: 13.5px;
  padding: 9px 13px; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  color: var(--text); outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.botty-input:focus, .botty-select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.botty-search { position: relative; }
.botty-search .botty-input { padding-left: 36px; }
.botty-search .search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-subtle); pointer-events: none; display: inline-flex; }
.botty-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-btn {
  padding: 5px 12px; font: inherit; font-size: 12.5px; font-weight: 500;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-full);
  color: var(--text-muted); cursor: pointer; transition: all var(--t-fast);
}
.filter-btn:hover { color: var(--text); border-color: var(--line-strong); }
.filter-btn.active { background: var(--brand-soft); color: var(--brand); border-color: var(--brand-tint); }

/* ── Empty state ────────────────────────────────────────────── */
.botty-empty {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 48px 20px; text-align: center; color: var(--text-subtle);
}
.botty-empty .botty-empty-title { font-size: 14px; font-weight: 600; color: var(--text-muted); }
.botty-empty .botty-empty-body { font-size: 13px; max-width: 340px; }

/* ── Chart frame ────────────────────────────────────────────── */
.chart-frame {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden;
}
.chart-frame .chart-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
}
.chart-frame .chart-body { position: relative; width: 100%; }
.chart-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: var(--text-muted); }
.chart-legend .lg { display: inline-flex; align-items: center; gap: 5px; }
.chart-legend .lg i { width: 11px; height: 3px; border-radius: 2px; display: inline-block; }

/* ── Glossary tooltip (botty-glossary.js) ───────────────────── */
.glossy-term {
  border-bottom: 1.5px dotted var(--brand);
  cursor: help; color: inherit; text-decoration: none;
}
.glossy-term.linked { cursor: pointer; }
#botty-tip {
  position: fixed; z-index: 9000; max-width: 320px;
  background: var(--surface-3); color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm); padding: 11px 13px;
  font-size: 12.5px; line-height: 1.5; pointer-events: none;
  box-shadow: var(--shadow-pop); display: none;
  opacity: 0; transform: translateY(4px); transition: opacity var(--t-fast), transform var(--t-fast);
}
#botty-tip.show { opacity: 1; transform: translateY(0); }
#botty-tip .tip-title { font-weight: 700; color: var(--brand); margin-bottom: 3px; }
#botty-tip .tip-goto { color: var(--profit); margin-top: 5px; display: block; font-size: 11.5px; }

/* ── Context rail (_ctx_rail.html) ──────────────────────────── */
.ctx-layout { display: grid; grid-template-columns: minmax(0,1fr) var(--rail-w); gap: 24px; align-items: start; }
@media (max-width: 1180px) { .ctx-layout { grid-template-columns: 1fr; } }
.ctx-rail { position: sticky; top: calc(var(--topbar-h) + 16px); display: flex; flex-direction: column; gap: 14px; }
.ctx-rail .ctx-card {
  background: linear-gradient(180deg, var(--surface), var(--surface));
  border: 1px solid var(--line); border-left: 2px solid var(--brand);
  border-radius: var(--r-md); padding: 14px 16px;
}
.ctx-rail .ctx-eyebrow { font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); margin-bottom: 6px; }
.ctx-rail .ctx-card h4 { margin: 0 0 6px; font-size: 13.5px; color: var(--text); }
.ctx-rail .ctx-card p { margin: 0 0 8px; font-size: 12.5px; color: var(--text-muted); line-height: 1.55; }
.ctx-rail .ctx-card p:last-child { margin-bottom: 0; }
.ctx-rail .ctx-metric { display: flex; align-items: baseline; gap: 8px; margin: 8px 0; }
.ctx-rail .ctx-metric .v { font-family: var(--ff-mono); font-size: 18px; font-weight: 600; }
.ctx-rail .ctx-link { font-size: 12px; font-weight: 600; color: var(--brand); display: inline-flex; align-items: center; gap: 4px; }
.ctx-rail .ctx-verdict { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: var(--r-full); font-size: 11.5px; font-weight: 600; }
.ctx-rail .ctx-verdict.good { background: var(--profit-bg); color: var(--profit); }
.ctx-rail .ctx-verdict.warn { background: var(--warn-bg); color: var(--warn); }
.ctx-rail .ctx-verdict.bad  { background: var(--loss-bg); color: var(--loss); }

/* ── Pipeline nodes (Cockpit mini-pipeline) ─────────────────── */
.pipeline { display: flex; align-items: stretch; gap: 0; flex-wrap: wrap; }
.pipe-node {
  position: relative; flex: 1 1 0; min-width: 120px;
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 16px; text-decoration: none; color: inherit;
  background: var(--surface-2); border: 1px solid var(--line);
  transition: background var(--t-fast), transform var(--t-fast);
}
.pipe-node:first-child { border-radius: var(--r-md) 0 0 var(--r-md); }
.pipe-node:last-child  { border-radius: 0 var(--r-md) var(--r-md) 0; }
.pipe-node:hover { background: var(--surface-3); text-decoration: none; transform: translateY(-2px); z-index: 2; }
.pipe-node + .pipe-node { margin-left: -1px; }
.pipe-node .pn-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-subtle); font-weight: 600; }
.pipe-node .pn-value { font-family: var(--ff-mono); font-size: 18px; font-weight: 600; color: var(--text); }
.pipe-node .pn-sub { font-size: 11.5px; color: var(--text-muted); }
.pipe-arrow { display: flex; align-items: center; color: var(--text-faint); padding: 0 2px; z-index: 3; }
@media (max-width: 760px) {
  .pipe-node { border-radius: var(--r-sm) !important; min-width: 44%; margin: 0 !important; }
  .pipe-arrow { display: none; }
}

/* ── Evidence funnel host (botty-funnel.js) ─────────────────── */
.funnel-host { position: relative; min-height: 420px; }
.funnel-host .funnel-viewport { position: relative; inset: 0; cursor: grab; overflow: hidden; }
.funnel-host .funnel-viewport.dragging { cursor: grabbing; }
.funnel-host .funnel-inner { transform-origin: 0 0; }
.funnel-host svg text { user-select: none; }
.funnel-zoombar { position: absolute; top: 10px; right: 10px; z-index: 5; display: flex; gap: 6px; }
.funnel-zoombar button { width: 30px; height: 30px; border: 1px solid var(--line); background: var(--surface-2); border-radius: var(--r-xs); font-size: 15px; cursor: pointer; color: var(--brand); font-weight: bold; }
.funnel-zoombar button:hover { background: var(--surface-3); }
.funnel-seg { cursor: pointer; transition: filter .12s; }
.funnel-seg:hover .seg-body { filter: brightness(1.1); }
.funnel-seg.selected .seg-body { stroke: var(--warn-solid); stroke-width: 3; }

/* ── Stat blocks / meta rows ────────────────────────────────── */
.statrow { display: flex; flex-wrap: wrap; gap: 22px; }
.statrow .st { display: flex; flex-direction: column; gap: 2px; }
.statrow .st .k { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-subtle); font-weight: 600; }
.statrow .st .v { font-family: var(--ff-mono); font-size: 16px; font-weight: 600; color: var(--text); }

/* badges inline */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: var(--r-xs); font-size: 11px; font-weight: 600; background: var(--surface-3); color: var(--text-muted); }
.badge.b-brand { background: var(--brand-soft); color: var(--brand); }
.badge.b-profit { background: var(--profit-bg); color: var(--profit); }
.badge.b-loss { background: var(--loss-bg); color: var(--loss); }
.badge.b-warn { background: var(--warn-bg); color: var(--warn); }

/* progress bar */
.botty-progress { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.botty-progress > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--profit)); transition: width var(--t-slow) var(--ease); }

/* divider */
.botty-hr { height: 1px; background: var(--line); border: none; margin: 4px 0; }

/* fade-in on load */
.fade-up { animation: fadeUp .5s var(--ease-out) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ──────────────────────────────────────────────────────────────
   BottyTimeline — Leitkomponente "Zeit" (reusable multi-lane scrubber)
   Markup is produced by botty-timeline.js; host provides positioning.
   Recolours entirely through design tokens + per-lane --lane-ac.
   ────────────────────────────────────────────────────────────── */
.btl { font-family: var(--ff-sans); }
.btl-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.btl-play { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--brand); cursor: pointer; font-size: 13px; flex-shrink: 0; }
.btl-play:hover { background: var(--surface-3); }
.btl-date { font-family: var(--ff-mono); font-weight: 700; font-size: 14px; min-width: 96px; }
.btl-sum { font-size: 12.5px; color: var(--text-muted); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btl-sum b { color: var(--text); }

.btl-lanes { position: relative; }
.btl-lane { display: grid; grid-template-columns: 88px 1fr; align-items: center; height: 20px; }
.btl-lane + .btl-lane { margin-top: 3px; }
.btl-lane-label { font-size: 10.5px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 8px; }
.btl-lane-label .btl-dot { width: 7px; height: 7px; border-radius: 2px; background: var(--lane-ac, var(--neutral)); flex-shrink: 0; }
.btl-track { position: relative; height: 100%; border-left: 1px solid var(--line); }
.btl-lane-ticks .btl-track::before, .btl-lane-flags .btl-track::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); }

.btl-tick { position: absolute; top: 50%; width: 2px; height: 11px; transform: translateY(-50%); border-radius: 1px; cursor: pointer; transition: opacity .2s, height .12s; }
.btl-tick:hover { height: 15px; }
.btl-band { position: absolute; top: 4px; bottom: 4px; border-radius: 2px; }
.btl-flag { position: absolute; top: 0; bottom: 0; transform: translateX(-50%); background: none; border: 0; padding: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; z-index: 2; }
.btl-flag-mark { width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--bg); transition: transform .12s; }
.btl-flag:hover .btl-flag-mark { transform: scale(1.35); }
.btl-flag-cap { font-size: 8.5px; color: var(--text-faint); font-family: var(--ff-mono); max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btl-tick.future, .btl-flag.future { opacity: .26; }

.btl-axis-row { height: 14px; }
.btl-mlabel { position: absolute; top: 0; font-size: 9px; color: var(--text-faint); font-family: var(--ff-mono); transform: translateX(-50%); }
.btl-playhead { position: absolute; top: 0; bottom: 14px; width: 2px; background: var(--brand); pointer-events: none; z-index: 3; }
.btl-playhead::after { content: ''; position: absolute; top: -3px; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 12px var(--brand-glow); }
/* size variant: prominent (system Verlauf lens) */
.btl-lg .btl-head { margin-bottom: 12px; }
.btl-lg .btl-date { font-size: 16px; min-width: 110px; }
.btl-lg .btl-sum { font-size: 13.5px; }
.btl-lg .btl-play { width: 34px; height: 34px; font-size: 14px; }
.btl-lg .btl-lane { height: 30px; grid-template-columns: 104px 1fr; }
.btl-lg .btl-lane + .btl-lane { margin-top: 5px; }
.btl-lg .btl-lane-label { font-size: 12px; }
.btl-lg .btl-lane-label .btl-dot { width: 9px; height: 9px; }
.btl-lg .btl-tick { width: 2px; height: 16px; } .btl-lg .btl-tick:hover { height: 22px; }
.btl-lg .btl-band { top: 6px; bottom: 6px; }
.btl-lg .btl-flag-mark { width: 10px; height: 10px; }
.btl-lg .btl-flag-cap { font-size: 9.5px; max-width: 80px; }
.btl-lg .btl-playhead { bottom: 16px; }
.btl-lg .btl-playhead::after { top: -4px; left: -5px; width: 12px; height: 12px; }
.btl-lg .btl-axis-row { height: 16px; }
.btl-lg .btl-mlabel { font-size: 10px; }

/* zoom / pan controls (cfg.zoom !== false) */
.btl-zoom { display: flex; gap: 3px; margin-left: auto; flex-shrink: 0; }
.btl-zb { width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text-muted); cursor: pointer; font-size: 13px; line-height: 1; display: flex; align-items: center; justify-content: center; padding: 0; }
.btl-zb:hover { background: var(--surface-3); color: var(--text); }
.btl-reset { opacity: .4; pointer-events: none; }
.btl-reset.on { opacity: 1; pointer-events: auto; color: var(--brand); border-color: var(--brand-tint); }
.btl-zoomable .btl-track { cursor: grab; }
.btl-zoomable.btl-panning, .btl-zoomable.btl-panning * { cursor: grabbing !important; }

/* ──────────────────────────────────────────────────────────────
   BottyLadder — Leitkomponente "Evidenz" (graded gauntlet of hurdles)
   Markup is produced by botty-ladder.js. A clickable rung spine + a
   detail panel beside it. State per rung: pass | warn | fail | na.
   .rd-* / .lev-row / .bk-row are detail-content helpers callers can use.
   ────────────────────────────────────────────────────────────── */
.bl-evi { display: grid; grid-template-columns: minmax(228px, 320px) 1fr; gap: 16px; margin-top: 8px; align-items: start; }
@media (max-width: 780px) { .bl-evi { grid-template-columns: 1fr; } }
.bl-spine { display: flex; flex-direction: column; }
.bl-rung { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; cursor: pointer; padding: 9px 11px; background: var(--surface-2); border: 1px solid var(--line); border-left: 3px solid var(--ac, var(--neutral)); color: var(--text); font: inherit; }
.bl-rung:first-child { border-radius: var(--r-md) var(--r-md) 0 0; } .bl-rung:last-child { border-radius: 0 0 var(--r-md) var(--r-md); } .bl-rung + .bl-rung { margin-top: -1px; }
.bl-rung:hover { background: var(--surface-3); }
.bl-rung.active { background: var(--surface-3); box-shadow: inset 4px 0 0 0 var(--ac, var(--brand)); position: relative; z-index: 1; }
.bl-rung .bl-rn { width: 22px; height: 22px; border-radius: 6px; background: var(--surface-4); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--text-muted); flex-shrink: 0; }
.bl-rung .bl-rq { flex: 1; min-width: 0; overflow-wrap: anywhere; word-break: break-word; font-size: 12px; color: var(--text-muted); line-height: 1.3; } .bl-rung .bl-rq b { color: var(--text); }
.bl-rung .bl-rfeed { display: block; font-size: 9px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .04em; margin-top: 1px; }
.bl-rung .bl-rv { font-family: var(--ff-mono); font-size: 12px; font-weight: 600; flex-shrink: 0; text-align: right; max-width: 42%; overflow-wrap: anywhere; }
.bl-rung.pass { --ac: var(--profit); } .bl-rung.pass .bl-rn { color: var(--profit); } .bl-rung.pass .bl-rv { color: var(--profit); }
.bl-rung.warn { --ac: var(--warn); } .bl-rung.warn .bl-rv { color: var(--warn); }
.bl-rung.fail { --ac: var(--loss); } .bl-rung.fail .bl-rv { color: var(--loss); }
.bl-rung.na { --ac: var(--neutral); } .bl-rung.na .bl-rn { background: repeating-linear-gradient(45deg, var(--surface-4), var(--surface-4) 3px, transparent 3px, transparent 6px); } .bl-rung.na .bl-rq, .bl-rung.na .bl-rv { opacity: .6; font-style: italic; }
.bl-rung .bl-gate { width: 16px; flex-shrink: 0; text-align: center; font-size: 11px; line-height: 1; }
.bl-rung .bl-gate.none { opacity: 0; }
.bl-rung.is-gate { border-left-width: 4px; }
.bl-gate-legend { font-size: 10px; padding: 6px 4px 0; line-height: 1.4; }
.bl-detail { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; min-height: 170px; min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.bl-rdhead { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 11px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.bl-rdhead .bl-rdn { width: 26px; height: 26px; border-radius: 7px; background: var(--brand-soft); color: var(--brand); border: 1px solid var(--brand-tint); display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.bl-rdq { font-weight: 600; font-size: 14px; } .bl-rdfeed { font-size: 11px; margin-top: 1px; }
/* detail-content helpers */
.rd-lead { font-size: 12.5px; color: var(--text-muted); margin: 0 0 10px; line-height: 1.5; }
.rd-big { font-family: var(--ff-mono); font-size: 30px; font-weight: 600; margin: 2px 0 4px; } .rd-big span { font-size: 12.5px; color: var(--text-subtle); font-weight: 400; font-family: var(--ff-sans); margin-left: 8px; }
.lev-row { display: flex; gap: 8px; margin: 4px 0; } .lev-row .lev { flex: 1; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; text-align: center; } .lev-row .lev .k { display: block; font-size: 10px; color: var(--text-subtle); font-weight: 700; } .lev-row .lev .v { font-family: var(--ff-mono); font-size: 13px; font-weight: 600; }
.bk-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0; } .bk-row .bk { flex: 1; min-width: 66px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; display: flex; flex-direction: column; gap: 1px; } .bk .bl { font-size: 10px; color: var(--text-subtle); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; } .bk .bv { font-family: var(--ff-mono); font-size: 14px; font-weight: 600; } .bk .bn { font-size: 9.5px; }

/* ──────────────────────────────────────────────────────────────
   BottySpur — Leitkomponente "Kausalität" (result picker + causal caption)
   Markup from botty-spur.js. Host supplies positioning via panelClass/capClass;
   these are the inner visuals (recoloured via tokens).
   ────────────────────────────────────────────────────────────── */
.bsp-h { font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.bsp-item { display: flex; gap: 8px; align-items: center; width: 100%; text-align: left; font: inherit; color: var(--text); padding: 8px 10px; border-radius: 8px; cursor: pointer; border: 1px solid var(--line); background: var(--surface); margin-bottom: 5px; font-size: 12px; }
.bsp-item:hover { border-color: var(--brand-tint); background: var(--surface-2); }
.bsp-item.sel { border-color: var(--warn-solid); }
.bsp-item .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bsp-flow { font-size: 13px; line-height: 1.7; }
.bsp-flow b { color: var(--text); }
.bsp-arrow { color: var(--text-faint); margin: 0 5px; }
