/* ============================================================================
   Mega CRM – Thamm & Kriston
   Gestaltung: ruhige, kühle Arbeitsfläche; das Markenzeichen ist der "Laufweg"
   (Prozesskette Anfrage → Bezahlt). Statusfarben wie im alten CRM:
   gelb = neu, rot = fällig, grün = in Bearbeitung, lila = hervorgehoben.
   ============================================================================ */
@font-face { font-family: 'Plex'; src: url('../fonts/plex-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Plex'; src: url('../fonts/plex-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Plex'; src: url('../fonts/plex-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Plex'; src: url('../fonts/plex-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --bg: #EDF0F4;
  --surface: #FFFFFF;
  --surface-2: #F5F7FA;
  --surface-3: #EEF2F6;
  --ink: #16202C;
  --ink-2: #475365;
  --ink-3: #7C889A;
  --line: #DAE0E8;
  --line-2: #E7EBF0;
  --brand: #2457C5;
  --brand-ink: #1A4399;
  --brand-soft: #E6EDFB;
  --rail: #14213A;
  --rail-ink: #A9B6CC;

  --neu: #9A6B00;      --neu-bg: #FFF2CC;   --neu-dot: #F0B000;
  --faellig: #B5322A;  --faellig-bg: #FCE6E3; --faellig-dot: #E0463B;
  --bearb: #0A6F54;    --bearb-bg: #DBF2E9;  --bearb-dot: #13A177;
  --closed: #667184;   --closed-bg: #ECEFF3; --closed-dot: #A3ACBA;
  --star: #6447C7;     --star-bg: #EEE9FC;
  --danger: #C23A30;
  --mail-in: #2457C5;  --mail-out: #0E7C93;  --call: #13A177;
  --c-offen-bg: #FDF1B7;   --c-offen-bd: #FFCC00;
  --c-bearb-bg: #B9EDC4;   --c-bearb-bd: #28A745;
  --c-faellig-bg: #F5B5AF; --c-faellig-bd: #DC3545;
  --c-closed-bg: #DCE0E5;  --c-closed-bd: #6C757D;
  --c-star-bg: #DDBBEA;    --c-star-bd: #6A1B9A;

  --r-sm: 6px; --r: 10px; --r-lg: 14px;
  --shadow-pop: 0 10px 30px -8px rgba(20, 33, 58, .25), 0 2px 6px rgba(20, 33, 58, .08);
  --font: 'Plex', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1520; --surface: #172030; --surface-2: #1B2638; --surface-3: #223047;
    --ink: #E6ECF4; --ink-2: #B2BDCC; --ink-3: #7F8BA0; --line: #2A3850; --line-2: #233046;
    --brand: #6C9BFF; --brand-ink: #9CBBFF; --brand-soft: #1E2F52; --rail: #0B111B; --rail-ink: #8796AE;
    --neu: #F3C451; --neu-bg: #3A3018; --faellig: #FF8A80; --faellig-bg: #42201F; --bearb: #5FD6AE; --bearb-bg: #15372D;
    --closed: #9AA5B6; --closed-bg: #232D3D; --star: #B9A6FF; --star-bg: #2C2550; --danger: #FF8A80;
    --mail-in: #6C9BFF; --mail-out: #4FC3D9; --call: #5FD6AE;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F1520; --surface: #172030; --surface-2: #1B2638; --surface-3: #223047;
  --ink: #E6ECF4; --ink-2: #B2BDCC; --ink-3: #7F8BA0; --line: #2A3850; --line-2: #233046;
  --brand: #6C9BFF; --brand-ink: #9CBBFF; --brand-soft: #1E2F52; --rail: #0B111B; --rail-ink: #8796AE;
  --neu: #F3C451; --neu-bg: #3A3018; --faellig: #FF8A80; --faellig-bg: #42201F; --bearb: #5FD6AE; --bearb-bg: #15372D;
  --closed: #9AA5B6; --closed-bg: #232D3D; --star: #B9A6FF; --star-bg: #2C2550; --danger: #FF8A80;
  --mail-in: #6C9BFF; --mail-out: #4FC3D9; --call: #5FD6AE;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font); font-size: 14.5px; line-height: 1.45; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 1;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.icon { flex: none; display: block; }
.muted { color: var(--ink-3); }
.muted-p { color: var(--ink-2); }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ------------------------------------------------------------------ App-Gerüst */
.app { display: grid; grid-template-rows: 58px minmax(0, 1fr); height: 100dvh; overflow: hidden; }
.rail { background: var(--rail); color: var(--rail-ink); display: flex; flex-direction: column; align-items: stretch; padding: 14px 8px; gap: 4px; }
.rail-logo { display: grid; place-items: center; height: 44px; margin-bottom: 14px; }
.rail-logo span { width: 38px; height: 38px; border-radius: 11px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; letter-spacing: .02em; }
.rail a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 9px 4px 8px; border-radius: 10px; color: var(--rail-ink); font-size: 11.5px; font-weight: 500; text-decoration: none; }
.rail a:hover { background: rgba(255,255,255,.06); color: #fff; }
.rail a.active { background: rgba(108,155,255,.16); color: #fff; }
.rail a.active .icon { color: #8FB2FF; }
.rail .badge { position: absolute; top: 4px; right: 12px; }
.rail-spacer { flex: 1; }
.rail-me { display: grid; place-items: center; padding: 8px 0 2px; }
.main { min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.tabbar { display: none; }

.badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--faellig-dot); color: #fff; font-size: 11px; font-weight: 600; display: inline-grid; place-items: center; line-height: 1; }
.badge.neu { background: var(--neu-dot); color: #2a1f00; }

.page { flex: 1; min-height: 0; overflow: auto; }
.page-pad { padding: 24px 28px 48px; max-width: 1280px; margin: 0 auto; width: 100%; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; }
.page-head .sub { color: var(--ink-3); margin-top: 2px; }

/* ------------------------------------------------------------------ Buttons & Formulare */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 500; font-size: 14px; cursor: pointer; text-decoration: none !important; white-space: nowrap; transition: background .12s, border-color .12s; }
.btn:hover { background: var(--surface-2); border-color: #c7d0dc; }
.btn:disabled { opacity: .5; cursor: default; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-ink); border-color: var(--brand-ink); }
.btn-danger { background: var(--surface); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); }
.btn-danger:hover { background: var(--faellig-bg); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-3); border-color: transparent; color: var(--ink); }
.btn-soft { background: var(--brand-soft); border-color: transparent; color: var(--brand-ink); }
.btn-soft:hover { background: color-mix(in srgb, var(--brand-soft) 70%, var(--brand) 12%); border-color: transparent; }
.btn-sm { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 8px; gap: 5px; }
.btn-icon { width: 36px; padding: 0; }
.btn-sm.btn-icon { width: 30px; }
.btn-lg { height: 44px; padding: 0 18px; font-size: 15px; }

.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field-label { font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.field-hint { font-size: 12px; color: var(--ink-3); }
.input, .field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea, .select {
  width: 100%; height: 38px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); outline: none; transition: border-color .12s, box-shadow .12s;
}
.field textarea, textarea.input { height: auto; min-height: 84px; padding: 9px 11px; resize: vertical; line-height: 1.45; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus, .select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px 14px; }
.span-2 { grid-column: span 2; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; align-items: center; gap: 8px; }
.row-wrap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.spacer { flex: 1; }

.segmented { display: inline-flex; background: var(--surface-3); border-radius: 10px; padding: 3px; gap: 2px; }
.segmented button { border: 0; background: transparent; height: 30px; padding: 0 11px; border-radius: 8px; color: var(--ink-2); font-weight: 500; font-size: 13.5px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.segmented button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(20,33,58,.12); }
.seg-count { font-size: 12px; color: var(--ink-3); font-weight: 500; }

.chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 12px; font-size: 12.5px; font-weight: 500; background: var(--surface-3); color: var(--ink-2); white-space: nowrap; }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-neu { background: var(--neu-bg); color: var(--neu); }
.st-faellig { background: var(--faellig-bg); color: var(--faellig); }
.st-bearbeitung { background: var(--bearb-bg); color: var(--bearb); }
.st-geschlossen { background: var(--closed-bg); color: var(--closed); }
.st-star { background: var(--star-bg); color: var(--star); }

.avatar { flex: none; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 600; letter-spacing: .02em; color: #fff; background: var(--av); }
.avatar.avatar-none { background: transparent; border: 1.5px dashed var(--line); color: var(--ink-3); }

.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--brand); animation: spin .7s linear infinite; display: inline-block; }
.spinner.sm { width: 14px; height: 14px; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.center-fill { flex: 1; display: grid; place-items: center; min-height: 200px; }

.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 40px 20px; color: var(--ink-3); }
.empty strong { color: var(--ink-2); font-weight: 600; }
.empty p { max-width: 36ch; }

.card { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); }
.card-pad { padding: 16px 18px; }
.panel { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; }
.panel-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px 10px 16px; }
.panel-head h3 { font-size: 14.5px; flex: 1; display: flex; align-items: center; gap: 8px; }
.panel-head h3 .count { color: var(--ink-3); font-weight: 500; }
.panel-body { padding: 0 16px 14px; }
.kv { display: grid; grid-template-columns: 112px 1fr; gap: 6px 10px; font-size: 13.5px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* ------------------------------------------------------------------ Dialoge */
.overlay { position: fixed; inset: 0; background: rgba(14, 22, 36, .42); display: grid; place-items: center; z-index: 100; padding: 20px; animation: fade .12s ease-out; }
.modal { background: var(--surface); border-radius: 16px; width: min(520px, 100%); max-height: calc(100dvh - 40px); display: flex; flex-direction: column; box-shadow: var(--shadow-pop); outline: none; animation: pop .16s ease-out; }
.modal-wide { width: min(860px, 100%); }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 16px 14px 8px 22px; }
.modal-head h2 { font-size: 18px; flex: 1; }
.modal-body { padding: 8px 22px 18px; overflow: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 22px 18px; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.modal-foot .spacer { flex: 1; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.985); } }
body.modal-open { overflow: hidden; }

.menu-wrap { position: relative; }
.menu { position: absolute; top: calc(100% + 6px); z-index: 60; min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-pop); padding: 5px; animation: pop .12s ease-out; }
.menu-right { right: 0; } .menu-left { left: 0; }
.menu-item { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; background: transparent; border-radius: 8px; cursor: pointer; text-align: left; font-size: 14px; color: var(--ink); }
.menu-item:hover { background: var(--surface-3); }
.menu-item.danger { color: var(--danger); }
.menu-item .menu-check { margin-left: auto; color: var(--brand); }
.menu-gap { width: 16px; }
.menu-sep { height: 1px; background: var(--line-2); margin: 4px 6px; }

.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: flex; flex-direction: column; gap: 8px; width: min(380px, calc(100vw - 24px)); }
.toast { display: flex; align-items: flex-start; gap: 10px; background: var(--ink); color: #fff; border-radius: 12px; padding: 11px 10px 11px 14px; box-shadow: var(--shadow-pop); animation: pop .18s ease-out; }
:root[data-theme="dark"] .toast { background: #2B3A55; }
.toast-text { flex: 1; display: flex; flex-direction: column; font-size: 13.5px; cursor: default; }
.toast-text strong { font-weight: 600; }
.toast-error { background: #8F2620; }
.toast-mail .icon, .toast-info .icon { color: #9CBBFF; }
.toast-action { border: 0; background: rgba(255,255,255,.14); color: #fff; border-radius: 7px; padding: 4px 10px; font-weight: 600; cursor: pointer; font-size: 13px; }
.toast-x { border: 0; background: transparent; color: rgba(255,255,255,.6); cursor: pointer; padding: 2px; }

/* ------------------------------------------------------------------ Login */
.login { min-height: 100dvh; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--surface); }
.login-art { background: var(--rail); color: #DCE5F3; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.login-art h1 { font-size: 30px; line-height: 1.2; color: #fff; max-width: 16ch; }
.login-art p { color: var(--rail-ink); max-width: 40ch; margin-top: 10px; }
.login-track { display: flex; flex-direction: column; gap: 0; margin: 36px 0; }
.login-track div { display: flex; align-items: center; gap: 14px; font-size: 14px; color: #9FB0CB; position: relative; padding: 7px 0; }
.login-track div::before { content: ''; width: 12px; height: 12px; border-radius: 4px; border: 2px solid #4C6CA8; flex: none; background: var(--rail); z-index: 1; }
.login-track div::after { content: ''; position: absolute; left: 5px; top: 50%; height: 100%; width: 2px; background: #2C3F64; }
.login-track div:last-child::after { display: none; }
.login-track div.done { color: #fff; }
.login-track div.done::before { background: #6C9BFF; border-color: #6C9BFF; }
.login-form { display: grid; place-items: center; padding: 32px; }
.login-form form { width: min(360px, 100%); display: flex; flex-direction: column; gap: 14px; }
.login-form h2 { font-size: 22px; }
.login-err { color: var(--danger); font-size: 13.5px; }

/* ------------------------------------------------------------------ Laufweg (Prozesskette) */
.track { display: grid; grid-template-columns: repeat(9, minmax(64px, 1fr)); position: relative; padding: 4px 0 2px; }
.track-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: transparent; cursor: pointer; padding: 0 2px; color: var(--ink-3); text-align: center; }
.track-step::before { content: ''; position: absolute; top: 15px; left: -50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.track-step:first-child::before { display: none; }
.track-step.reached::before { background: var(--brand); }
.track-node { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--line); color: var(--ink-3); transition: transform .12s; }
.track-step:hover .track-node { transform: translateY(-1px); border-color: var(--brand); color: var(--brand); }
.track-step.reached .track-node { background: var(--brand); border-color: var(--brand); color: #fff; }
.track-step.current .track-node { box-shadow: 0 0 0 4px var(--brand-soft); }
.track-label { font-size: 12px; font-weight: 500; color: var(--ink-2); line-height: 1.2; }
.track-step.reached .track-label { color: var(--ink); }
.track-date { font-size: 11px; color: var(--ink-3); min-height: 14px; }

.minitrack { display: flex; gap: 2px; }
.minitrack i { width: 9px; height: 4px; border-radius: 2px; background: var(--line); }
.minitrack i.on { background: var(--brand); }

/* ------------------------------------------------------------------ Leads */
.search { position: relative; flex: 1; }
.search .icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search input { padding-left: 36px !important; }
.statusbar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.statusbar button { border: 1px solid var(--line-2); background: var(--surface-2); border-radius: 10px; padding: 7px 8px 6px; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 1px; }
.statusbar button strong { font-size: 19px; font-weight: 600; line-height: 1.1; }
.statusbar button span { font-size: 11.5px; color: var(--ink-3); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.statusbar button.on { border-color: currentColor; background: var(--surface); }
.statusbar .sb-neu strong { color: var(--neu); } .statusbar .sb-neu.on { color: var(--neu); background: var(--neu-bg); }
.statusbar .sb-antwort strong { color: var(--mail-in); } .statusbar .sb-antwort.on { color: var(--mail-in); background: var(--brand-soft); }
.statusbar .sb-faellig strong { color: var(--faellig); } .statusbar .sb-faellig.on { color: var(--faellig); background: var(--faellig-bg); }
.statusbar .sb-bearbeitung strong { color: var(--bearb); } .statusbar .sb-bearbeitung.on { color: var(--bearb); background: var(--bearb-bg); }
.statusbar .sb-star strong { color: var(--star); } .statusbar .sb-star.on { color: var(--star); background: var(--star-bg); }
.filters { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.filters .select { height: 32px; width: auto; font-size: 13px; padding: 0 8px; border-radius: 8px; }


/* Lead-Karten – Farben wie im alten CRM: Offen gelb, In Bearbeitung grün, Fällig rot, Markiert lila, Geschlossen grau */
.lead-card { min-width: 0; --cbg: var(--surface); --cbd: var(--line); position: relative; margin: 0; padding: 10px 12px 9px 14px; border-radius: 12px;
  background: var(--cbg); border-left: 5px solid var(--cbd); box-shadow: 0 1px 2px rgba(20,33,58,.10), 0 2px 6px -3px rgba(20,33,58,.18);
  cursor: pointer; display: flex; flex-direction: column; gap: 4px; color: #1b2430; transition: transform .12s ease, box-shadow .12s; }
.lead-card:hover { transform: translateX(4px); box-shadow: 0 2px 4px rgba(20,33,58,.12), 0 6px 14px -6px rgba(20,33,58,.30); }
.lead-card.c-neu { --cbg: var(--c-offen-bg); --cbd: var(--c-offen-bd); }
.lead-card.c-bearbeitung { --cbg: var(--c-bearb-bg); --cbd: var(--c-bearb-bd); }
.lead-card.c-faellig { --cbg: var(--c-faellig-bg); --cbd: var(--c-faellig-bd); }
.lead-card.c-geschlossen { --cbg: var(--c-closed-bg); --cbd: var(--c-closed-bd); }
.lead-card.c-star { --cbg: var(--c-star-bg); --cbd: var(--c-star-bd); }
.lead-card.active { outline: 2.5px solid var(--brand); outline-offset: 1px; }
.lead-card.selecting { padding-left: 42px; }
.lead-card .check { position: absolute; left: 12px; top: 12px; width: 18px; height: 18px; accent-color: var(--brand); }
.lc-top { display: flex; align-items: flex-start; gap: 8px; }
.lc-name { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; }
.lc-name .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-name.noname .t { font-style: italic; font-weight: 600; }
.lc-name .unread { width: 9px; height: 9px; border-radius: 50%; background: var(--mail-in); flex: none; box-shadow: 0 0 0 2px rgba(255,255,255,.7); }
.lc-star { color: #5B1A87; }
.lc-badge { flex: none; background: rgba(0,0,0,.72); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 10px; white-space: nowrap; }
.lc-mid { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.lc-cat { background: rgba(255,255,255,.92); color: #1b2430; font-weight: 700; font-size: 12px; padding: 2px 8px; border-radius: 7px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-cat.replied { box-shadow: inset 0 0 0 1.5px #1F5FBF; color: #1A4399; }
.lc-when { font-size: 12.5px; font-weight: 500; color: rgba(27,36,48,.85); white-space: nowrap; }
.lc-mail { font-size: 12.5px; color: rgba(27,36,48,.75); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-last { font-size: 12.5px; color: rgba(27,36,48,.78); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-foot { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.lc-foot .minitrack i { background: rgba(27,36,48,.16); }
.lc-foot .minitrack i.on { background: #1F5FBF; }
.lc-city { font-size: 12px; color: rgba(27,36,48,.7); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-owner { flex: none; background: rgba(0,0,0,.10); color: #1b2430; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; letter-spacing: .03em; }
.lc-owner.none { background: transparent; border: 1.5px dashed rgba(27,36,48,.3); padding: 1px 8px; }
.lc-actions { display: none; gap: 3px; }
.lead-card:hover .lc-actions, .lead-card:focus-within .lc-actions { display: inline-flex; }
.lead-card:hover .lc-city { display: none; }
.lc-act { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 7px; border: 0; border-radius: 7px; background: rgba(255,255,255,.85); color: #1b2430; font-size: 11.5px; font-weight: 600; cursor: pointer; }
.lc-act:hover { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.batchbar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--brand); color: #fff; }
.batchbar .btn { height: 30px; font-size: 13px; }


/* Lead-Detail */
.ld { padding: 20px 26px 60px; max-width: 1240px; margin: 0 auto; }
.ld-head { display: flex; gap: 16px; align-items: flex-start; }
.ld-title { flex: 1; min-width: 0; }
.ld-title h1 { font-size: 24px; line-height: 1.2; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ld-title h1 .nm { overflow-wrap: anywhere; }
.ld-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; color: var(--ink-3); font-size: 13px; }
.ld-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.ld-track { margin-top: 18px; padding: 14px 10px 10px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow-x: auto; }
.ld-track .track { min-width: 640px; }
.ld-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; margin-top: 18px; align-items: start; }
.ld-side { display: flex; flex-direction: column; gap: 14px; }
.ld-tabs { display: none; }
.owner-btn { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px 0 4px; border-radius: 15px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 13px; font-weight: 500; }
.owner-btn:hover { background: var(--surface-2); }

/* Kontakt-Zeilen */
.contact-line { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 14px; min-width: 0; }
.contact-line .icon { color: var(--ink-3); }
.contact-line .v { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-line .v.empty-v { color: var(--ink-3); font-style: italic; }

/* Verlauf */
.composer { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 12px; }
.composer textarea { width: 100%; border: 0; outline: none; resize: vertical; min-height: 60px; background: transparent; padding: 6px 4px; }
.composer-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--line-2); padding-top: 10px; }
.timeline { position: relative; margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.tl-day { font-size: 12.5px; font-weight: 600; color: var(--ink-3); padding: 6px 2px 0; }
.tl-item { display: grid; grid-template-columns: 34px 1fr; gap: 10px; }
.tl-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line-2); color: var(--ink-2); }
.tl-card { background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 14px 11px; min-width: 0; }
.tl-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-3); margin-bottom: 4px; flex-wrap: wrap; }
.tl-head strong { color: var(--ink-2); font-weight: 600; }
.tl-head .when { margin-left: auto; white-space: nowrap; }
.tl-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.tl-subject { font-weight: 600; font-size: 14.5px; margin-bottom: 4px; overflow-wrap: anywhere; }
.tl-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13.5px; color: var(--ink-2); }
.tl-body.clamped { max-height: 9.5em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.tl-quote { margin-top: 8px; padding-left: 10px; border-left: 3px solid var(--line); color: var(--ink-3); font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.tl-more { border: 0; background: transparent; color: var(--brand); font-weight: 500; cursor: pointer; padding: 6px 0 0; font-size: 13px; }
.tl-atts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.att { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 5px 10px; border-radius: 8px; background: var(--surface-3); color: var(--ink); font-size: 12.5px; text-decoration: none !important; }
.att span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att:hover { background: var(--brand-soft); }
.att-wrap { display: inline-flex; align-items: center; gap: 2px; max-width: 100%; }
.att-more { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-3); cursor: pointer; flex: none; }
.att-more:hover { background: var(--brand-soft); color: var(--brand-ink); }
.k-mail_in .tl-icon { color: var(--mail-in); background: color-mix(in srgb, var(--mail-in) 10%, var(--surface)); border-color: transparent; }
.k-mail_out .tl-icon { color: var(--mail-out); background: color-mix(in srgb, var(--mail-out) 10%, var(--surface)); border-color: transparent; }
.k-call .tl-icon { color: var(--call); background: color-mix(in srgb, var(--call) 12%, var(--surface)); border-color: transparent; }
.k-note .tl-card { background: color-mix(in srgb, var(--neu-bg) 45%, var(--surface)); }
.k-status .tl-card, .k-system .tl-card { background: transparent; border-style: dashed; padding: 6px 12px; }
.k-status .tl-text, .k-system .tl-text { font-size: 13px; color: var(--ink-2); }
.call-pill { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; font-size: 12.5px; }
.call-pill.ok { color: var(--call); } .call-pill.no { color: var(--faellig); }

/* Listen in Panels */
.mini-list { display: flex; flex-direction: column; }
.mini-item { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line-2); font-size: 13.5px; min-width: 0; }
.mini-item:first-child { border-top: 0; }
.mini-item .grow { flex: 1; min-width: 0; }
.mini-item .grow > div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-item .sub { font-size: 12.5px; color: var(--ink-3); }
.date-tile { flex: none; width: 42px; text-align: center; border-radius: 9px; background: var(--surface-3); padding: 4px 0; line-height: 1.1; }
.date-tile b { display: block; font-size: 16px; }
.date-tile span { font-size: 10.5px; color: var(--ink-3); font-weight: 600; }
.date-tile.future { background: var(--brand-soft); color: var(--brand-ink); }

/* Übersicht */
.dash-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.dash-col-7 { grid-column: span 7; } .dash-col-5 { grid-column: span 5; } .dash-col-12 { grid-column: span 12; }
.dash-hello { font-size: 26px; }
.agenda-item { display: grid; grid-template-columns: 58px 4px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-2); cursor: pointer; }
.agenda-item:first-child { border-top: 0; }
.agenda-time { font-weight: 600; font-size: 15px; }
.agenda-time span { display: block; font-size: 12px; color: var(--ink-3); font-weight: 500; }
.agenda-bar { align-self: stretch; border-radius: 2px; background: var(--brand); }
.agenda-bar.intern { background: var(--ink-3); }
.agenda-bar.coaching { background: var(--bearb-dot); }
.agenda-item.past { opacity: .55; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 14px 16px; cursor: pointer; text-align: left; }
.kpi strong { display: block; font-size: 26px; font-weight: 600; line-height: 1.15; }
.kpi span { color: var(--ink-3); font-size: 13px; }
.kpi.k-neu strong { color: var(--neu); } .kpi.k-faellig strong { color: var(--faellig); } .kpi.k-bearb strong { color: var(--bearb); }

/* Tabellen (Angebote/Rechnungen) */
.table-wrap { overflow: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-weight: 600; color: var(--ink-3); font-size: 12.5px; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; background: var(--surface); cursor: pointer; user-select: none; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tr:hover td { background: var(--surface-2); }
.tbl .num { text-align: right; white-space: nowrap; }

.doc-preview { background: #fff; color: #2c3e50; border-radius: 8px; padding: 26px; border: 1px solid var(--line); overflow: auto; }

.placeholder-note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-ink); font-size: 13.5px; }

/* ------------------------------------------------------------------ Handy */
@media (max-width: 1180px) {
  .ld-body { grid-template-columns: 1fr; }
  .ld-side { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  body { font-size: 15px; }
  .app { grid-template-rows: 52px minmax(0, 1fr) auto; }
  .rail { display: none; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface); border-top: 1px solid var(--line); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); }
  .tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0 4px; font-size: 11px; font-weight: 500; color: var(--ink-3); text-decoration: none; }
  .tabbar a.active { color: var(--brand); }
  .tabbar .badge { position: absolute; top: 1px; left: calc(50% + 6px); }
  .page-pad { padding: 16px 14px 32px; }
  .lc-actions { display: none !important; }
  .lead-card:hover { transform: none; }
  .ld { padding: 12px 14px 40px; }
  .ld-title h1 { font-size: 21px; }
  .ld-actions .btn span { display: none; }
  .ld-actions .btn { width: 44px; height: 44px; padding: 0; }
  .ld-actions { display: grid; grid-template-columns: repeat(6, 1fr); }
  .ld-actions .btn { width: 100%; }
  .ld-tabs { display: flex; margin-top: 14px; }
  .ld-body { margin-top: 12px; }
  .ld-body[data-tab="verlauf"] .ld-side { display: none; }
  .ld-body[data-tab="details"] .ld-timeline { display: none; }
  .ld-side { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .overlay { place-items: end stretch; padding: 0; }
  .modal, .modal-wide { width: 100%; max-height: 92dvh; border-radius: 18px 18px 0 0; animation: sheet .2s ease-out; }
  .modal-foot { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .modal-foot .btn { flex: 1; }
  @keyframes sheet { from { transform: translateY(40px); opacity: .6; } }
  .toasts { left: 12px; right: 12px; bottom: calc(70px + env(safe-area-inset-bottom)); width: auto; }
  .login { grid-template-columns: 1fr; }
  .login-art { padding: 28px 24px; }
  .login-track { display: none; }
  .dash-col-7, .dash-col-5 { grid-column: span 12; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .statusbar button strong { font-size: 17px; }
  .btn { height: 40px; }
  .btn-sm { height: 34px; }
}

/* Kategorie & Namenshinweis im Lead-Kopf */
.chip-replied { background: var(--brand-soft); color: var(--brand-ink); }
.name-hint { border: 1px dashed var(--line); background: transparent; color: var(--ink-3); font-size: 12px; border-radius: 10px; padding: 2px 8px; cursor: pointer; }
.name-hint:hover { color: var(--brand); border-color: var(--brand); }


/* ------------------------------------------------------------------ Leadliste (volle Breite, Karten-Raster) */
.leads-page { background: var(--bg); }
.leads-wrap { max-width: 1480px; margin: 0 auto; padding: 20px 24px 48px; }
.leads-top { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.leads-titlebar { display: flex; align-items: center; gap: 10px; }
.leads-titlebar h1 { font-size: 24px; margin-right: 8px; }
.leads-titlebar .search { max-width: 460px; }
.leads-top .statusbar button { padding: 9px 12px 8px; }
.leads-top .statusbar button strong { font-size: 22px; }
.leads-top .statusbar button span { font-size: 12.5px; }
.list-count { font-size: 13px; color: var(--ink-3); }
.lead-grid { display: flex; flex-direction: column; gap: 10px; }
.batchbar { border-radius: 12px; margin-bottom: 12px; }

/* ------------------------------------------------------------------ Lead-Fenster über der aktuellen Seite */
.lead-overlay { position: fixed; inset: 0; z-index: 80; background: rgba(14, 22, 36, .45); display: grid; place-items: center; padding: 18px; animation: fade .12s ease-out; }
.lead-sheet { width: min(1260px, 100%); height: min(100%, 940px); background: var(--bg); border-radius: 18px; box-shadow: var(--shadow-pop); overflow: auto; overscroll-behavior: contain; animation: pop .16s ease-out; }
.lead-sheet .ld { padding-top: 18px; }
.ld-controls { display: flex; align-items: center; gap: 2px; margin-left: 4px; }
.appt-when { display: flex; align-items: center; gap: 12px; }
.owner-btn.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }

@media (max-width: 860px) {
  .leads-top .statusbar button { padding: 7px 8px 6px; }
  .leads-top .statusbar button strong { font-size: 18px; }
  .leads-top .statusbar button span { font-size: 11px; }
  .lead-overlay { padding: 0; place-items: stretch; }
  .lead-sheet { width: 100%; height: 100%; border-radius: 0; animation: sheet .2s ease-out; }
  .ld-controls .btn-ghost { display: none; }
}
.chip.not-crm { height: 20px; font-size: 11.5px; background: var(--surface-3); color: var(--ink-3); margin-left: 4px; vertical-align: 1px; }


/* ------------------------------------------------------------------ Aufbau wie im alten CRM:
   Kopfzeile · links Lead-Spalte · rechts Hauptbereich · Leadliste & Lead-Details als Fenster */
.topbar { display: flex; align-items: center; gap: 14px; padding: 0 16px 0 14px; background: var(--rail); color: #fff; min-width: 0; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none !important; width: 326px; flex: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: 13px; letter-spacing: .02em; }
.brand-name { font-weight: 600; font-size: 16px; letter-spacing: -.01em; }
.topnav { display: flex; gap: 4px; min-width: 0; overflow-x: auto; }
.topnav a { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 10px; color: var(--rail-ink); font-weight: 500; text-decoration: none !important; white-space: nowrap; }
.topnav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.topnav a.active { background: rgba(108,155,255,.2); color: #fff; }
.bell { position: relative; width: 40px; height: 40px; border-radius: 10px; border: 0; background: transparent; color: #DCE5F3; display: grid; place-items: center; cursor: pointer; }
.bell:hover { background: rgba(255,255,255,.08); color: #fff; }
.bell .badge { position: absolute; top: 1px; right: -2px; }
.me-btn { border: 0; background: transparent; padding: 2px; border-radius: 50%; cursor: pointer; display: grid; }
.workspace { display: grid; grid-template-columns: 340px minmax(0, 1fr); min-height: 0; }
.workspace > .main { min-height: 0; }

/* Lead-Spalte links */
.lead-side { min-height: 0; overflow: auto; background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; padding: 14px 14px 16px; }
.statusbar.compact { grid-template-columns: repeat(6, 1fr); gap: 6px; }
.statusbar.compact button:nth-child(-n+3) { grid-column: span 2; }
.statusbar.compact button:nth-child(n+4) { grid-column: span 3; }
.statusbar.compact button { padding: 6px 8px 5px; }
.statusbar.compact button strong { font-size: 18px; }
.statusbar.compact button span { font-size: 11px; }
.lead-side .filters { gap: 6px; }
.lead-side .filters .select { flex: 1 1 120px; min-width: 0; }
.ls-preview { border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface-2); overflow: hidden; }
.ls-preview-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--line-2); background: var(--surface); cursor: pointer; text-align: left; font-size: 13.5px; color: var(--ink); }
.ls-preview-head:hover { background: var(--brand-soft); }
.ls-preview-head .muted { font-size: 12.5px; }
.ls-count { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; color: var(--brand); }
.ls-items { display: flex; flex-direction: column; gap: 6px; padding: 8px; }
.ls-item { --cbg: var(--surface); --cbd: var(--line); display: flex; flex-direction: column; gap: 1px; width: 100%; text-align: left; border: 0; border-left: 4px solid var(--cbd); background: var(--cbg); border-radius: 9px; padding: 7px 10px 7px 10px; cursor: pointer; color: #1b2430; box-shadow: 0 1px 2px rgba(20,33,58,.08); transition: transform .12s; }
.ls-item:hover { transform: translateX(3px); }
.ls-item.c-neu { --cbg: var(--c-offen-bg); --cbd: var(--c-offen-bd); }
.ls-item.c-bearbeitung { --cbg: var(--c-bearb-bg); --cbd: var(--c-bearb-bd); }
.ls-item.c-faellig { --cbg: var(--c-faellig-bg); --cbd: var(--c-faellig-bd); }
.ls-item.c-geschlossen { --cbg: var(--c-closed-bg); --cbd: var(--c-closed-bd); }
.ls-item.c-star { --cbg: var(--c-star-bg); --cbd: var(--c-star-bd); }
.ls-name { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-name .unread { width: 8px; height: 8px; border-radius: 50%; background: var(--mail-in); flex: none; }
.ls-when { font-size: 12px; color: rgba(27,36,48,.72); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-more { width: 100%; border: 0; border-top: 1px solid var(--line-2); background: var(--surface); color: var(--brand); font-weight: 600; padding: 9px; cursor: pointer; font-size: 13.5px; }
.ls-more:hover { background: var(--brand-soft); }
.ls-actions { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 4px; }
.ls-actions .row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ls-actions .row .btn { padding: 0 6px; font-size: 12.5px; }
.ls-actions .row .btn:first-child { grid-column: span 2; }

/* Komplette Leadliste als Fenster (unter den Lead-Details) */
.list-overlay { position: fixed; inset: 0; z-index: 70; background: rgba(14, 22, 36, .42); display: grid; place-items: center; padding: 18px; animation: fade .12s ease-out; }
.list-sheet { width: min(980px, 100%); height: min(100%, 980px); background: var(--bg); border-radius: 18px; box-shadow: var(--shadow-pop); overflow: auto; overscroll-behavior: contain; padding: 18px 22px 30px; animation: pop .16s ease-out; }
.list-sheet .leads-top { position: sticky; top: -18px; z-index: 2; background: var(--bg); padding-top: 4px; padding-bottom: 12px; margin-bottom: 4px; }
.list-sheet .leads-titlebar .search { flex: 1; max-width: 520px; }

/* ------------------------------------------------------------------ Handy (muss am Ende stehen) */
@media (max-width: 860px) {
  .topbar { padding: 0 8px 0 12px; gap: 6px; }
  .brand { width: auto; flex: 1; }
  .brand-name { font-size: 15px; }
  .topnav { display: none; }
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .lead-side { display: none; }
  .list-overlay { padding: 0; place-items: stretch; }
  .list-sheet { width: 100%; height: 100%; border-radius: 0; padding: 12px 12px 40px; animation: sheet .2s ease-out; }
  .list-sheet .leads-top { top: -12px; }
  .list-sheet .leads-titlebar { flex-wrap: wrap; gap: 8px; }
  .list-sheet .leads-titlebar h1 { flex: 1; font-size: 21px; }
  .list-sheet .leads-titlebar .search { order: 5; flex: 1 1 100%; max-width: none; }
  .list-sheet .leads-titlebar .btn-primary span { display: none; }
  .list-sheet .leads-titlebar .btn-primary { width: 40px; padding: 0; }
  .list-sheet .statusbar { grid-template-columns: repeat(6, 1fr); }
  .list-sheet .statusbar button:nth-child(-n+3) { grid-column: span 2; }
  .list-sheet .statusbar button:nth-child(n+4) { grid-column: span 3; }
  .list-sheet .statusbar button { padding: 6px 8px 5px; }
  .list-sheet .statusbar button strong { font-size: 18px; }
  .list-sheet .filters { flex-wrap: nowrap; overflow-x: auto; }
  .list-sheet .filters .select, .list-sheet .filters .btn { flex: none; }
  .list-count { width: 100%; }
}

/* Leadliste als Liste (eine Spalte, wie im alten CRM) */
.list-sheet .lead-card { padding: 11px 16px 10px 18px; }
@media (hover: hover) { .list-sheet .lead-card:hover { transform: translateX(6px); } }
.list-sheet .lc-last { white-space: nowrap; }

/* Lead-Wert & UE-Fortschritt im Lead-Kopf */
.chip-value { background: #E4F4EC; color: #0A6F54; font-weight: 600; }
.chip-ue { background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }
.chip-sub { font-weight: 500; opacity: .75; margin-left: 2px; }
.ue-bar { display: inline-block; width: 46px; height: 5px; border-radius: 3px; background: rgba(36,87,197,.18); margin-left: 4px; overflow: hidden; }
.ue-bar i, .ue-track i { display: block; height: 100%; background: var(--brand); border-radius: 3px; }
.ue-track { flex-basis: 100%; height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; margin: 2px 0 0 26px; }
:root[data-theme="dark"] .chip-value { background: #15372D; color: #5FD6AE; }
