/* Neutral-professioneller Baseline-Rahmen. Branding/Feinschliff später per CSS. */
:root {
  --bg: #f6f7f9;
  --panel: #ffffff;
  --ink: #1c2230;
  --ink-soft: #5b6472;
  --line: #e6e9ee;
  --accent: #4f46e5;       /* Indigo – später durch deep5-Akzent ersetzbar */
  --accent-soft: #eef0fe;
  --ats: #2563eb;          /* blau */
  --hris: #059669;         /* grün */
  --crm: #d97706;          /* amber */
  --agg: #6b7280;          /* grau */
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.1);
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.5;
}

.app { display: grid; grid-template-columns: 280px 1fr; height: 100vh; }

/* ---------- Sidebar ---------- */
.sidebar {
  background: var(--panel);
  border-right: 1px solid var(--line);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 700; letter-spacing: .5px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 16px; }
.brand-text span { font-size: 12px; color: var(--ink-soft); }

.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.panel-title { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--ink-soft); margin-bottom: 8px; }
.company { font-weight: 600; }
.company-sub { font-size: 12px; color: var(--ink-soft); }

.sources { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.sources li { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.sources em { color: var(--ink-soft); font-style: normal; margin-left: auto; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot.ats { background: var(--ats); }
.dot.hris { background: var(--hris); }
.dot.crm { background: var(--crm); }

.layers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-soft); }

.badge-synth {
  margin-top: auto;
  font-size: 11.5px; color: var(--ink-soft);
  background: var(--accent-soft); border: 1px solid #e0e3fb;
  padding: 8px 10px; border-radius: 8px; text-align: center;
}
.badge-synth.is-live { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }

/* ---------- Main ---------- */
.main { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px; border-bottom: 1px solid var(--line); background: var(--panel);
}
.topbar h1 { font-size: 18px; margin: 0; }
.subtitle { margin: 2px 0 0; font-size: 13px; color: var(--ink-soft); }
.model-switch { text-align: right; }
.model-switch label { font-size: 11px; color: var(--ink-soft); margin-right: 6px; }
.model-switch select {
  font-size: 13px; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); border: 1px solid #e0e3fb;
  padding: 6px 10px; border-radius: 8px; cursor: pointer;
}
.model-note { font-size: 11px; color: var(--ink-soft); margin-top: 4px; max-width: 280px; }

.chat { flex: 1; overflow-y: auto; padding: 24px 28px; }

/* Empty-State */
.welcome { max-width: 720px; margin: 24px auto; text-align: center; }
.welcome h2 { font-size: 22px; margin: 0 0 6px; }
.welcome p { color: var(--ink-soft); margin: 0 0 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip {
  border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  padding: 9px 14px; border-radius: 999px; font-size: 13.5px; cursor: pointer;
  box-shadow: var(--shadow); transition: border-color .15s, transform .05s;
}
.chip:hover { border-color: var(--accent); }
.chip:active { transform: translateY(1px); }

/* Nachrichten */
.msg { max-width: 820px; margin: 0 auto 20px; display: flex; gap: 12px; }
.msg .avatar { width: 30px; height: 30px; border-radius: 8px; flex: 0 0 30px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; }
.msg.user .avatar { background: #334155; }
.msg.bot .avatar { background: var(--accent); }
.bubble { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); min-width: 0; flex: 1; }
.msg.user .bubble { background: #1c2230; color: #fff; border-color: #1c2230; }
.bubble .text { white-space: pre-wrap; word-wrap: break-word; }
.bubble .text b { font-weight: 600; }

/* Gerenderte Markdown-Antwort (Claude-Modus): Block-Layout statt pre-wrap */
.bubble .text.md { white-space: normal; }
.bubble .text.md p { margin: 0 0 9px; line-height: 1.55; }
.bubble .text.md p:last-child { margin-bottom: 0; }
.bubble .text.md .md-h { font-weight: 700; line-height: 1.3; margin: 14px 0 7px; }
.bubble .text.md .md-h:first-child { margin-top: 0; }
.bubble .text.md .md-h2 { font-size: 16px; color: var(--ink); }
.bubble .text.md .md-h3 { font-size: 14.5px; color: var(--ink); }
.bubble .text.md .md-h4, .bubble .text.md .md-h5, .bubble .text.md .md-h6 { font-size: 13px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .03em; }
.bubble .text.md .md-hr { border: none; border-top: 1px solid var(--line); margin: 12px 0; }
.bubble .text.md .md-list { margin: 4px 0 9px; padding-left: 20px; }
.bubble .text.md .md-list li { margin: 2px 0; line-height: 1.5; }
.bubble .text.md .md-q { margin: 8px 0; padding: 7px 12px; border-left: 3px solid var(--accent);
  background: #f6f7fb; border-radius: 0 6px 6px 0; color: var(--ink-soft); font-style: italic; }
.bubble .text.md code { background: #eef1f6; border-radius: 4px; padding: 1px 5px; font-size: 12.5px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.bubble .text.md .md-table { border-collapse: collapse; width: 100%; margin: 8px 0 10px; font-size: 13px; }
.bubble .text.md .md-table th { text-align: left; background: #f1f3f7; color: var(--ink); font-weight: 600;
  padding: 6px 10px; border: 1px solid var(--line); }
.bubble .text.md .md-table td { padding: 6px 10px; border: 1px solid var(--line); vertical-align: top; }
.bubble .text.md .md-table tbody tr:nth-child(even) { background: #fafbfc; }

/* Meta-Zeile (Filter/Intent) */
.meta-row { margin-top: 10px; font-size: 12px; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tag { background: #f1f3f7; border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; }

/* Modell-Herkunft (Reveal) */
.model-line { margin-top: 8px; font-size: 12px; color: var(--ink-soft); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.model-line .ml-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; }
.model-line .ml-sov { color: var(--hris); }
.model-line .ml-fallback { color: #c0392b; font-weight: 700; }

/* Citations-Chips */
.cites { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 7px; }
.cite { font-size: 12px; padding: 3px 9px; border-radius: 999px; color: #fff; font-weight: 600; }
.cite.ats { background: var(--ats); }
.cite.hris { background: var(--hris); }
.cite.crm { background: var(--crm); }
.cite.aggregat { background: var(--agg); }

/* Unification-Visual (3 Silos -> 1 goldener Datensatz) */
.unify { margin-top: 14px; }
.unify-title { font-size: 12px; color: var(--ink-soft); margin-bottom: 8px; }
.unify-flow { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; }
.silo-card { flex: 1; min-width: 150px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fcfcfd; }
.silo-card .silo-head { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.silo-card.ats .silo-head { color: var(--ats); }
.silo-card.hris .silo-head { color: var(--hris); }
.silo-card.crm .silo-head { color: var(--crm); }
.silo-card .silo-name { font-weight: 600; }
.silo-card .silo-fact { font-size: 12px; color: var(--ink-soft); }
.unify-arrow { display: grid; place-items: center; font-size: 22px; color: var(--accent); padding: 0 4px; }
.golden { border: 1.5px solid var(--accent); background: var(--accent-soft); border-radius: 10px; padding: 10px 12px; min-width: 170px; }
.golden .silo-head { color: var(--accent); }

/* Composer */
.composer { display: flex; gap: 10px; padding: 16px 28px; border-top: 1px solid var(--line); background: var(--panel); }
.composer input { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 15px; outline: none; }
.composer input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.composer button { background: var(--accent); color: #fff; border: none; border-radius: 10px; padding: 0 20px; font-size: 14px; font-weight: 600; cursor: pointer; }
.composer button:disabled { opacity: .5; cursor: not-allowed; }

.cursor::after { content: "▍"; color: var(--accent); animation: blink 1s steps(2) infinite; }
@keyframes blink { 0%,50% { opacity: 1; } 50.01%,100% { opacity: 0; } }

@media (max-width: 820px) { .app { grid-template-columns: 1fr; } .sidebar { display: none; } }

/* ============ Verständlichkeits-Pass ============ */

/* Sidebar-Quellen mit Beschreibung */
.sources li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; }
.sources li .dot { margin-top: 5px; }
.src-text { display: flex; flex-direction: column; line-height: 1.25; }
.src-text strong { font-size: 12.5px; }
.src-text span { font-size: 11px; color: var(--ink-soft); }
.sources em { color: var(--ink); font-style: normal; font-weight: 600; margin-left: auto; }
.src-hint { font-size: 11.5px; color: var(--ink-soft); margin-top: 10px; line-height: 1.4; }
.welcome-hint { margin-top: 16px; font-size: 13px; color: var(--ink-soft); }

/* Quellen-Chips: lesbar & klickbar */
.cites-label { font-size: 12px; color: var(--ink-soft); align-self: center; }
.cite {
  font-size: 12px; border: none; border-radius: 999px; color: #fff; cursor: pointer;
  padding: 0; display: inline-flex; align-items: center; overflow: hidden;
  font-family: inherit; transition: filter .15s; padding-right: 10px;
}
.cite:hover { filter: brightness(1.08); }
.cite.nolink { cursor: default; }
.cite.nolink:hover { filter: none; }
.cite .cite-sys {
  background: rgba(0,0,0,.18); padding: 3px 8px; margin-right: 7px;
  font-weight: 700; font-size: 11px;
}
.cite.ats { background: var(--ats); }
.cite.hris { background: var(--hris); }
.cite.crm { background: var(--crm); }
.cite.aggregat { background: var(--agg); }

/* Unify-Karten als klickbare Buttons */
.silo-card {
  text-align: left; cursor: pointer; font-family: inherit; transition: box-shadow .15s, transform .05s;
}
.silo-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.silo-card.golden { cursor: default; }
.silo-card.golden:hover { transform: none; }
.silo-mail { font-size: 11px; color: var(--ink-soft); margin: 2px 0; word-break: break-all; }
.unify-note {
  margin-top: 10px; font-size: 12.5px; color: var(--ink); background: #fffbeb;
  border: 1px solid #fde68a; border-radius: 8px; padding: 8px 11px; line-height: 1.45;
}

/* Datensatz-Modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(16,24,40,.45);
  display: grid; place-items: center; z-index: 50; padding: 20px;
}
.modal {
  background: #fff; border-radius: 14px; max-width: 560px; width: 100%;
  max-height: 80vh; overflow: auto; box-shadow: 0 20px 50px rgba(0,0,0,.25); padding: 18px 20px;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.modal-x { border: none; background: none; font-size: 18px; cursor: pointer; color: var(--ink-soft); }
.modal-sub { font-size: 12px; color: var(--ink-soft); margin: 6px 0 12px; }
.rec-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rec-table td { padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rec-table td:first-child { color: var(--ink-soft); width: 38%; font-family: ui-monospace, monospace; font-size: 12px; }

/* Zeitleiste */
.timeline { margin-top: 14px; border-left: 2px solid var(--line); padding-left: 4px; }
.tl-title { font-size: 12px; color: var(--ink-soft); margin: 0 0 8px 8px; }
.tl-row {
  display: flex; align-items: baseline; gap: 8px; width: 100%; text-align: left;
  background: none; border: none; font-family: inherit; font-size: 13px; cursor: pointer;
  padding: 6px 8px; border-radius: 8px; position: relative; color: var(--ink);
}
.tl-row:hover { background: #f6f7f9; }
.tl-row.rejected .tl-text { color: var(--crm); }
.tl-dot { position: absolute; left: -9px; top: 9px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid #fff; }
.tl-dot.ats { background: var(--ats); }
.tl-dot.hris { background: var(--hris); }
.tl-dot.crm { background: var(--crm); }
.tl-date { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink-soft); min-width: 56px; flex: 0 0 56px; }
.tl-sys { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; min-width: 78px; flex: 0 0 78px; }
.tl-sys.ats { color: var(--ats); }
.tl-sys.hris { color: var(--hris); }
.tl-sys.crm { color: var(--crm); }
.tl-text { flex: 1; }

/* ============ Tabs & Views (Case 1 / Case 2) ============ */
.tabs { display: flex; gap: 6px; margin-bottom: 4px; }
.tab { border: none; background: none; font-family: inherit; font-size: 15px; font-weight: 600;
  color: var(--ink-soft); cursor: pointer; padding: 4px 0; margin-right: 14px; border-bottom: 2px solid transparent; }
.tab.active { color: var(--ink); border-bottom-color: var(--accent); }
.view { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.view[hidden] { display: none; }

/* Active Sourcing */
.sourcing { flex: 1; overflow-y: auto; padding: 22px 28px; }
.sourcing-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.sourcing-bar label { font-size: 12px; color: var(--ink-soft); }
#roleSelect { font-size: 14px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; min-width: 280px; }
.primary-btn { background: var(--accent); color: #fff; border: none; border-radius: 10px; padding: 10px 18px; font-size: 14px; font-weight: 600; cursor: pointer; }
.primary-btn:hover { filter: brightness(1.05); }
.source-badge { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; margin-left: auto; }
.source-badge.sandbox { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.source-badge.real { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.loading { color: var(--ink-soft); padding: 20px 4px; }

.src-h { font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--ink-soft); margin: 18px 0 8px; }
.src-note { font-size: 13px; color: var(--ink-soft); margin: 10px 0 4px; }
.int-list { display: flex; flex-direction: column; gap: 6px; }
.int-item { font-size: 14px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fcfcfd; }
.int-item span { color: var(--ink-soft); }
.int-item em { color: var(--hris); font-style: normal; font-size: 12px; }
.mini-tag { background: var(--accent-soft); color: var(--accent); border-radius: 6px; padding: 1px 7px; font-size: 11px; font-weight: 600; }

.cand-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; box-shadow: var(--shadow); background: var(--panel); }
.cand-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cand-handle { color: var(--ink-soft); font-size: 13px; }
.muss-badge { font-size: 12px; font-weight: 700; background: var(--accent-soft); color: var(--accent); padding: 3px 10px; border-radius: 999px; }
.crits { display: flex; flex-direction: column; gap: 4px; }
.crit { display: grid; grid-template-columns: 230px 92px 1fr; gap: 8px; font-size: 12.5px; align-items: baseline; padding: 3px 0; border-top: 1px solid var(--line); }
.crit-l { color: var(--ink); }
.crit-s { font-weight: 700; }
.crit-b { color: var(--ink-soft); }
.crit.ok .crit-s { color: var(--hris); }
.crit.part .crit-s { color: var(--crm); }
.crit.unk .crit-s { color: var(--ink-soft); }
.crit.no .crit-s { color: #b91c1c; }
.crit.na .crit-s { color: #6b7280; }
.muss-hint { font-size: 11.5px; color: var(--ink-soft); margin: 2px 0 6px; }
.fit { font-size: 13px; font-weight: 700; border-radius: 8px; padding: 6px 10px; margin: 4px 0 6px; }
.fit.high { background: #dcfce7; color: #166534; }
.fit.mid { background: #e0e7ff; color: #3730a3; }   /* mittlerer Fit: ruhiges Blau statt Alarm-Gelb */
.fit.low { background: #fef3c7; color: #92400e; }   /* niedrig: Bernstein, kein Rot (kein 'Fehler') */
.fit-by { font-weight: 500; opacity: .8; font-size: 11px; }
.fit-why { font-weight: 400; font-size: 12px; margin-top: 3px; color: var(--ink); }
.chan-note { display: inline-block; font-size: 10.5px; color: var(--ink-soft); margin-left: 4px; font-style: italic; }
.cand-card.is-internal { border-color: #0a66c2; box-shadow: 0 0 0 1px #0a66c233; }
.internal-flag { font-size: 12.5px; background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; border-radius: 8px; padding: 6px 10px; margin: 4px 0 8px; font-weight: 600; }
.provider-warn { font-size: 12px; background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; border-radius: 8px; padding: 6px 10px; margin: 0 0 8px; }
.sourcing-block { background: #fff7ed; border: 1px solid #fdba74; color: #9a3412; border-radius: 12px; padding: 16px 18px; font-size: 14px; }
.sourcing-block ul { margin: 8px 0; padding-left: 20px; }
.sourcing-block li { margin: 3px 0; }
.block-hint { display: block; margin-top: 8px; font-size: 12px; color: var(--ink-soft); }
.draft-btn { margin-top: 12px; background: var(--panel); color: var(--accent); border: 1px solid var(--accent); border-radius: 9px; padding: 8px 14px; font-size: 13px; font-weight: 600; cursor: pointer; }
.draft-btn:hover { background: var(--accent-soft); }

.draft-betreff { font-size: 14px; margin: 6px 0; }
.draft-body { white-space: pre-wrap; background: #f6f7f9; border: 1px solid var(--line); border-radius: 8px; padding: 12px; font-family: inherit; font-size: 13.5px; }
.draft-art14 { font-size: 12px; color: var(--ink-soft); margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }

/* Active Sourcing — Stellenanzeige-Eingabe */
.sourcing-input { padding: 18px 0 6px; }
.si-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.si-head label { font-size: 13px; font-weight: 600; color: var(--ink); }
#jobAd { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  font-family: inherit; font-size: 14px; resize: vertical; outline: none; }
#jobAd:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.si-actions { display: flex; gap: 10px; margin-top: 10px; }
.ghost-btn { background: var(--panel); color: var(--ink-soft); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 14px; font-size: 13px; cursor: pointer; }
.ghost-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Abgeleitete Kriterien-Panel */
.crit-panel { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  background: var(--accent-soft); margin: 16px 0 6px; }
.cp-head { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
  color: var(--accent); margin-bottom: 6px; }
.cp-origin { background: #fff; color: var(--ink-soft); border: 1px solid #e0e3fb;
  border-radius: 999px; padding: 1px 8px; font-size: 10px; font-weight: 600; margin-left: 6px; }
.cp-row { font-size: 13px; margin: 2px 0; }

/* Quellen-Tag pro Kandidat */
.src-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
  padding: 1px 7px; border-radius: 999px; color: #fff; }
.src-tag.github { background: #24292f; }
.src-tag.linkedin { background: #0a66c2; }
.src-tag.xing { background: #0698a0; }
.src-tag.web { background: #6d28d9; }
.src-tag.sandbox { background: var(--agg); }
.cand-head a { color: var(--accent); font-size: 12px; text-decoration: none; }

/* Verdichtungs-Confidence (Cross-Source) */
.conf { font-size: 12px; margin: 4px 0 8px; padding: 3px 9px; border-radius: 6px; display: inline-block; }
.conf.high { background: #dcfce7; color: #166534; }
.conf.mid { background: #fef9c3; color: #854d0e; }
.conf.low { background: #fee2e2; color: #991b1b; }
.conf.single { background: #f1f3f7; color: var(--ink-soft); }
.conf-r { opacity: .85; }

/* Verifikation / Korroboration (belegt / Selbstauskunft / widersprüchlich) */
.verif { font-size: 12.5px; border-radius: 8px; padding: 7px 10px; margin: 4px 0 6px; border: 1px solid transparent; }
.verif .verif-l { font-weight: 700; }
.verif.ok { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.verif.neutral { background: #f1f3f7; color: #475569; border-color: #e2e8f0; }
.verif.info { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }
.verif.warn { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.verif .verif-multi { font-weight: 500; opacity: .8; }
.verif .ev-item { font-weight: 400; margin-top: 3px; padding-left: 2px; }
.verif .ev-src { display: inline-block; font-size: 10.5px; font-weight: 700; text-transform: uppercase;
  background: rgba(0,0,0,.08); border-radius: 4px; padding: 0 5px; margin-right: 5px; letter-spacing: .03em; }
/* Reachability (bester Kontaktkanal als Empfehlung) */
.reach { font-size: 12.5px; color: #334155; margin: 4px 0 6px; padding: 5px 10px; background: #eff6ff;
  border: 1px solid #dbeafe; border-radius: 8px; }
.reach .reach-note { color: var(--ink-soft); }
.reach .reach-mail { color: var(--hris); font-weight: 600; margin-left: 4px; }
.reach.otw-on { background: #ecfdf5; border-color: #a7f3d0; }
.reach .otw { display: inline-block; font-size: 10.5px; font-weight: 700; text-transform: uppercase;
  background: #10b981; color: #fff; border-radius: 4px; padding: 0 5px; margin-left: 4px; letter-spacing: .03em; }
/* Belegt-außerhalb-Top Sektion */
.src-h.src-h-extra { color: #166534; margin-top: 22px; }
.src-h .src-h-sub { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink-soft); font-size: 11.5px; }
a.src-tag { text-decoration: none; }

/* Pipeline-Panel (Live-Datenstrom-Sichtbarkeit) */
.pipe-panel { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 14px 0 6px; background: #fafbfc; }
.pipe-head { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--ink-soft); margin-bottom: 8px; }
.pipe-row { display: grid; grid-template-columns: 22px 230px 44px 1fr; gap: 8px; align-items: baseline; font-size: 12.5px; padding: 3px 0; }
.pipe-ic { font-weight: 700; text-align: center; }
.pipe-row.ok .pipe-ic { color: var(--hris); }
.pipe-row.failover .pipe-ic { color: var(--crm); }
.pipe-row.error .pipe-ic { color: #b91c1c; }
.pipe-row.skip .pipe-ic, .pipe-row.empty .pipe-ic { color: var(--ink-soft); }
.pipe-name { font-weight: 600; }
.pipe-count { color: var(--ink-soft); font-variant-numeric: tabular-nums; text-align: right; }
.pipe-note { color: var(--ink-soft); }
.cand-mail { font-size: 13px; color: var(--hris); margin: 4px 0; }
.pipe-row.failover .pipe-name { color: var(--crm); }

/* Live-Datenstrom: Schritte erscheinen einzeln */
.pipe-live { color: #16a34a; font-weight: 700; animation: pipePulse 1.1s ease-in-out infinite; }
@keyframes pipePulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.pipe-in { animation: pipeIn .35s ease; }
@keyframes pipeIn { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }

/* Feld-Provenance (Parität zu Case 1: je Feld die Quelle, klickbar) */
.prov { margin: 6px 0 4px; border: 1px dashed var(--line); border-radius: 8px; padding: 6px 10px; background: #fcfcfd; }
.prov > summary { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--ink-soft); cursor: pointer; }
.prov-row { display: grid; grid-template-columns: 110px 1fr auto; gap: 8px; align-items: baseline; font-size: 12px; padding: 3px 0; border-top: 1px solid var(--line); margin-top: 5px; }
.prov-f { color: var(--ink-soft); font-weight: 600; }
.prov-v { color: var(--ink); }
.sr-flag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; color: #92400e; background: #fef3c7; border-radius: 5px; padding: 1px 5px; margin-left: 4px; }

/* Review-Banner: niedrige Confidence -> Verdichtung nur als Vorschlag */
.cand-card.needs-review { border-color: #f59e0b; box-shadow: 0 0 0 1px #f59e0b33; }
.cand-card.confirmed { border-color: var(--hris); }
.review-banner { font-size: 12.5px; background: #fffbeb; border: 1px solid #fde68a; color: #92400e; border-radius: 8px; padding: 7px 10px; margin: 4px 0 8px; }
.review-actions { display: inline-flex; gap: 6px; margin-left: 8px; }
.review-actions button { font-size: 11px; font-weight: 700; border-radius: 6px; padding: 2px 9px; cursor: pointer; border: 1px solid var(--line); }
.rev-ok { background: #dcfce7; color: #166534; border-color: #86efac; }
.rev-no { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }

/* Rollentyp + Quellen-Routing (Stufe 0: GitHub ist nicht die Quelle der Wahrheit) */
.role-type { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; border-radius: 5px; padding: 1px 6px; margin-left: 6px; }
.role-type.tech { background: #e0e7ff; color: #3730a3; }
.role-type.general { background: #dcfce7; color: #166534; }
.src-hint-inline { font-size: 11px; color: var(--ink-soft); font-style: italic; margin-left: 6px; }

.build-info { font-size: 10.5px; color: var(--ink-soft); text-align: center; margin-top: 6px; }

/* Active-Sourcing: Tier-Kategorisierung + Download-Liste (Option A) */
.src-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 4px 0 12px; }
.tier-counts { display: flex; gap: 6px; }
.tier-pill { font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 9px; }
.tier-pill.top { background: #dcfce7; color: #166534; }
.tier-pill.mittel { background: #fef9c3; color: #854d0e; }
.tier-pill.niedrig { background: #e5e7eb; color: #4b5563; }
.dl-btn { margin-left: auto; font-size: 12.5px; padding: 7px 14px; cursor: pointer; }
.tier-h { margin: 16px 0 6px; padding-left: 8px; border-left: 3px solid #e5e7eb; font-size: 13px; }
.tier-h.tier-top { border-left-color: #16a34a; }
.tier-h.tier-mittel { border-left-color: #eab308; }
.tier-h.tier-niedrig { border-left-color: #9ca3af; color: var(--ink-soft); }
.low-list { display: flex; flex-direction: column; gap: 2px; }
.low-row { font-size: 12.5px; padding: 4px 8px; border-bottom: 1px solid #f1f5f9; display: flex; gap: 8px; align-items: baseline; }
.low-row b { font-weight: 600; min-width: 150px; }
.low-row .low-hl { color: var(--ink-soft); flex: 1; }
.low-row .low-src { font-size: 11px; color: var(--ink-soft); font-style: normal; text-transform: uppercase; letter-spacing: .3px; }
