@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');
/* ============================================================
   Platzhirsch Fulfillment OS — Design System
   High-Tech Monochrom · Schwarz → Grau → Weiß · Geist + JetBrains Mono
   ============================================================ */

:root {
  /* Canvas & surfaces — Schwarz → Grau → Weiß-Verlauf mit klarer Stufung */
  --bg: #0a0b0e;
  --bg-grad-a: #14161b;
  --bg-grad-b: #08090b;
  --surface: #181b21;
  --surface-hi: #383e4b;       /* oberer Kartenton, deutlich Richtung Grau-Weiß */
  --surface-lo: #101216;       /* unterer Kartenton, fast schwarz */
  --surface-muted: #262b34;
  --surface-sunken: #0f1115;

  /* Ink — auf dunklem Grund deutlich lesbar */
  --ink: #f3f5f9;
  --ink-2: #c2c9d4;
  --ink-3: #98a1b0;
  --ink-on-brand: #07080a;

  /* Lines — sichtbarer für saubere Flächen-Trennung */
  --line: rgba(255,255,255,.10);
  --line-strong: rgba(255,255,255,.20);

  /* Brand — Elektrik-Blau als einziger Akzent auf Schwarz→Grau→Weiß-Basis */
  --brand: #3b82f6;
  --brand-strong: #2f6fe0;
  --brand-ink: #ffffff;
  --brand-soft: rgba(59,130,246,.16);
  --brand-soft-2: rgba(59,130,246,.30);

  /* Interaktion — dunkelblauer Hover-Akzent */
  --blue: #3b6fe0;
  --blue-line: rgba(74,124,232,.62);
  --blue-glow: rgba(59,111,224,.20);

  /* Semantic tones — entsättigt, nur für Status */
  --red: #e0675c;
  --red-soft: rgba(224,103,92,.13);
  --red-line: rgba(224,103,92,.30);
  --amber: #d6a64a;
  --amber-soft: rgba(214,166,74,.13);
  --green: #57c98c;
  --green-soft: rgba(87,201,140,.12);
  --green-line: rgba(87,201,140,.28);

  /* Effects */
  --r-xs: 7px;
  --r-sm: 9px;
  --r: 13px;
  --r-lg: 18px;
  --r-pill: 999px;
  --sh-1: 0 1px 0 rgba(255,255,255,.04), 0 2px 6px rgba(0,0,0,.40), 0 1px 2px rgba(0,0,0,.30);
  --sh-2: 0 2px 8px rgba(0,0,0,.45), 0 16px 38px rgba(0,0,0,.40);
  --sh-3: 0 22px 60px rgba(0,0,0,.6);
  --sh-pop: 0 28px 80px rgba(0,0,0,.7);
  --ring: 0 0 0 3px rgba(255,255,255,.14);

  --sidebar-w: 248px;
  --topbar-h: 64px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  background-image:
    radial-gradient(130% 90% at 50% -20%, var(--bg-grad-a), var(--bg-grad-b) 70%);
  background-attachment: fixed;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
  min-height: 100vh;
  position: relative;
}
/* Blueprint-Grid-Backdrop — ruhig driftend, hinter allem */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.013) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(255,255,255,.013) 1px, transparent 1px) 0 0 / 48px 48px;
  -webkit-mask: radial-gradient(120% 95% at 50% 0%, #000 22%, transparent 88%);
  mask: radial-gradient(120% 95% at 50% 0%, #000 22%, transparent 88%);
}
@keyframes gridDrift { from { background-position: 0 0, 0 0; } to { background-position: 48px 48px, 48px 48px; } }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; color: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 14px; color: var(--ink); }
::selection { background: var(--brand-soft-2); color: #fff; }
h1,h2,h3,h4 { font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; }

.mono { font-family: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace; font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; letter-spacing: -0.01em; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }

/* ===================== App shell ===================== */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background: linear-gradient(180deg, #15181e 0%, #101216 55%, #0d0f12 100%);
  color: #c4cad6;
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  padding: 18px 14px;
  z-index: 30;
  border-right: 1px solid var(--line);
}
.sidebar::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(75% 26% at 50% 0%, rgba(255,255,255,.06), transparent 72%);
}
.brand {
  display: flex; align-items: center; gap: 11px;
  padding: 6px 8px 18px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: relative;
}
.brand-mark { width: 34px; height: 34px; flex: 0 0 34px; background: var(--brand); -webkit-mask: url(logo.png) center / contain no-repeat; mask: url(logo.png) center / contain no-repeat; filter: drop-shadow(0 0 8px rgba(59,130,246,.5)); }
.brand-mark svg, .brand-mark img { display: none; }
.brand-name { font-size: 14.5px; font-weight: 650; color: #fff; letter-spacing: -0.02em; line-height: 1.15; }
.brand-name small { display: block; font-size: 10px; font-weight: 500; color: #7c8696; letter-spacing: 0.10em; text-transform: uppercase; margin-top: 2px; font-family: 'JetBrains Mono', monospace; }

.nav { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
.nav-label { font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #5d6675; padding: 14px 10px 6px; font-family: 'JetBrains Mono', monospace; }
.nav a {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 11px; border-radius: var(--r-sm);
  color: #aeb6c4; font-weight: 500; font-size: 13.5px;
  transition: background .15s, color .15s, box-shadow .15s;
  position: relative;
}
.nav a svg { width: 17px; height: 17px; flex: 0 0 17px; opacity: .8; }
.nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.nav a.active { background: linear-gradient(90deg, rgba(59,130,246,.22), rgba(59,130,246,.06)); color: #fff; box-shadow: inset 2px 0 0 var(--brand), 0 0 18px rgba(59,130,246,.10); }
.nav a.active svg { opacity: 1; color: #6aa6ff; }
.nav a .count { margin-left: auto; font-size: 11px; font-weight: 600; font-family: 'JetBrains Mono', monospace; background: rgba(255,255,255,.10); color: #d6dde8; padding: 1px 7px; border-radius: var(--r-pill); }
.nav a.active .count { background: rgba(255,255,255,.22); color: #fff; }

.sidebar-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); position: relative; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: var(--r-sm); transition: background .15s; }
.user-chip:hover { background: rgba(255,255,255,.06); }
.user-chip .avatar { width: 30px; height: 30px; flex: 0 0 30px; }
.user-chip .u-name { font-size: 13px; font-weight: 600; color: #fff; line-height: 1.2; }
.user-chip .u-role { font-size: 11px; color: #818c9c; }

/* ===================== Main / topbar ===================== */
.main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: var(--topbar-h);
  display: flex; align-items: center; gap: 16px;
  padding: 0 30px;
  position: sticky; top: 0; z-index: 20;
  background: rgba(9,10,12,.72);
  backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid var(--line);
}
.topbar h1 { font-size: 18px; }
.topbar .crumb { font-size: 12.5px; color: var(--ink-3); font-weight: 500; }
.topbar .crumb a:hover { color: var(--brand); }
.topbar .spacer { flex: 1; }
.search {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line-strong);
  padding: 8px 13px; border-radius: var(--r-pill); width: 260px;
  color: var(--ink-3); box-shadow: var(--sh-1);
}
.search input { border: none; outline: none; background: none; width: 100%; }
.search input::placeholder { color: var(--ink-3); }
.search svg { width: 15px; height: 15px; flex: 0 0 15px; }
.search { position: relative; }
.search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; min-width: 320px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r);
  box-shadow: var(--sh-pop); padding: 6px; z-index: 60; display: none; max-height: 380px; overflow-y: auto;
}
.search-results.open { display: block; }
.sr-item { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: var(--r-sm); cursor: pointer; }
.sr-item:hover { background: var(--surface-muted); }
.sr-item .sr-type { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-family: 'JetBrains Mono', monospace; color: #d6dce6; background: rgba(255,255,255,.09); padding: 2px 7px; border-radius: 5px; flex: 0 0 auto; }
.sr-item .sr-text { font-size: 13px; color: var(--ink); }
.sr-empty { padding: 16px; text-align: center; color: var(--ink-3); font-size: 13px; }

/* Bell / notifications */
.bell-wrap { position: relative; }
.bell-dot { position: absolute; top: 5px; right: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); border: 1.5px solid var(--bg); display: none; }
.bell-dot.on { display: block; }
.notif-panel {
  position: absolute; top: calc(100% + 8px); right: 0; width: 340px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r);
  box-shadow: var(--sh-pop); z-index: 60; display: none; overflow: hidden;
}
.notif-panel.open { display: block; }
.notif-head { padding: 13px 16px; border-bottom: 1px solid var(--line); font-weight: 650; font-size: 13.5px; display: flex; align-items: center; justify-content: space-between; }
.notif-head .tag-soft { font-weight: 600; }
.notif-list { max-height: 360px; overflow-y: auto; }
.notif-item { display: flex; align-items: flex-start; gap: 11px; padding: 12px 16px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .12s; }
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--surface-muted); }
.notif-item .ni-ic { width: 32px; height: 32px; border-radius: 9px; flex: 0 0 32px; display: flex; align-items: center; justify-content: center; }
.notif-item .ni-ic svg { width: 16px; height: 16px; }
.notif-item .ni-ic.blue { background: var(--brand-soft); color: #87b6f7; }
.notif-item .ni-ic.amber { background: var(--amber-soft); color: var(--amber); }
.notif-item .ni-text { font-size: 13px; line-height: 1.4; }
.notif-item .ni-when { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.notif-empty { padding: 30px 16px; text-align: center; color: var(--ink-3); font-size: 13px; }

.content { padding: 26px 30px 60px; max-width: 1380px; width: 100%; }
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
.page-head .ph-titles h2 { font-size: 23px; letter-spacing: -0.025em; }
.page-head .ph-titles p { color: var(--ink-2); margin-top: 4px; font-size: 13.5px; }
.page-head .ph-actions { margin-left: auto; display: flex; gap: 10px; }

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border-radius: var(--r-sm);
  font-weight: 600; font-size: 13.5px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong);
  box-shadow: var(--sh-1); transition: all .15s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { border-color: rgba(255,255,255,.30); background: var(--surface-muted); transform: translateY(-1px); box-shadow: var(--sh-2); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand); color: var(--brand-ink); border-color: transparent; box-shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 20px rgba(47,128,237,.30); }
.btn-primary:hover { background: var(--brand-strong); border-color: transparent; color: var(--brand-ink); box-shadow: 0 2px 8px rgba(0,0,0,.4), 0 8px 26px rgba(47,128,237,.42); }
.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-sunken); border-color: transparent; box-shadow: none; color: var(--ink); transform: none; }
.btn-danger { color: var(--red); border-color: var(--red-line); background: var(--red-soft); }
.btn-danger:hover { background: rgba(224,103,92,.20); }
.btn-sm { padding: 6px 11px; font-size: 12.5px; border-radius: var(--r-xs); }
.btn-icon { padding: 8px; }
.btn-icon svg { width: 17px; height: 17px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ===================== Cards & surfaces ===================== */
.card {
  background: linear-gradient(170deg, var(--surface-hi) 0%, var(--surface) 50%, var(--surface-lo) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--sh-1);
  position: relative;
}
.card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.card-pad { padding: 20px; }
.section-title { font-size: 11.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 14px; font-family: 'JetBrains Mono', monospace; }

/* ===================== KPI tiles ===================== */
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 26px; }
.kpi {
  background: linear-gradient(170deg, var(--surface-hi) 0%, var(--surface) 52%, var(--surface-lo) 100%);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px 22px 38px; box-shadow: var(--sh-1); position: relative; overflow: hidden;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.kpi { transition: border-color .18s var(--ease), transform .18s var(--ease); }
.kpi:hover { border-color: var(--line-strong); transform: translateY(-2px); }

/* ---- Dezenter, neutraler Hover für Boxen (kein blaues Leuchten) ---- */
.card, .cust-card, .task-item {
  transition: border-color .18s var(--ease);
}
.card:hover, .cust-card:hover, .task-item:hover {
  border-color: var(--line-strong);
}
.table tbody tr.row-click:hover,
.table tbody tr:hover { background: var(--surface-muted); }

/* ---- Onboarding: innere Boxen/Zeilen ---- */
.step, .rm-item, .ab-row, .rail-row, .access-box, .step-link {
  transition: background .18s var(--ease);
}
.step:hover, .rm-item:hover, .ab-row:hover, .rail-row:hover, .access-box:hover, .step-link:hover {
  background: var(--surface-muted);
}
/* Animierte Sparkline — Live-Signal entlang einer statischen Kurve */
.kpi::after {
  content: ''; position: absolute; left: 20px; right: 16px; bottom: 9px; height: 22px; z-index: 0;
  background-image:
    linear-gradient(90deg, transparent 0%, rgba(96,160,255,.95) 50%, transparent 100%),
    linear-gradient(0deg, rgba(47,128,237,.5), rgba(47,128,237,.5));
  background-size: 230% 100%, 100% 100%;
  background-repeat: no-repeat;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 48' preserveAspectRatio='none'><path d='M0 38 L20 32 L36 35 L54 22 L72 27 L92 14 L112 20 L134 9 L158 24 L180 15 L208 26 L240 11' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center / 100% 100%;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 48' preserveAspectRatio='none'><path d='M0 38 L20 32 L36 35 L54 22 L72 27 L92 14 L112 20 L134 9 L158 24 L180 15 L208 26 L240 11' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center / 100% 100%;
  opacity: .55;
}
@keyframes sparkFlow { from { background-position: 135% 0, 0 0; } to { background-position: -135% 0, 0 0; } }
.kpi .kpi-label { font-size: 12px; color: var(--ink-2); font-weight: 600; display:flex; align-items:center; gap:8px; position:relative; z-index:1; text-transform: uppercase; letter-spacing: .04em; font-family: 'JetBrains Mono', monospace; }
.kpi .kpi-label svg { width: 16px; height: 16px; color: var(--brand); }
.kpi .kpi-val { font-size: 42px; font-weight: 600; letter-spacing: -0.04em; margin-top: 12px; line-height: 1; position:relative; z-index:1; text-shadow: 0 0 28px rgba(255,255,255,.10); }
.kpi .kpi-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 8px; position:relative; z-index:1; }
.kpi .kpi-sub b { color: var(--green); }

/* ===================== Badges / pills ===================== */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: var(--r-pill);
  font-size: 11.5px; font-weight: 600; line-height: 1.4;
  background: var(--surface-sunken); color: var(--ink-2);
  border: 1px solid var(--line);
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-blue { background: var(--brand-soft); color: #87b6f7; border-color: rgba(47,128,237,.32); }
.pill-green { background: var(--green-soft); color: #7fd9aa; border-color: var(--green-line); }
.pill-green .dot { box-shadow: 0 0 6px rgba(87,201,140,.8); }
.pill-amber { background: var(--amber-soft); color: #e0bd72; border-color: rgba(214,166,74,.26); }
.pill-red { background: var(--red-soft); color: #ec8a81; border-color: var(--red-line); }
.pill-grey { background: var(--surface-sunken); color: var(--ink-2); }

/* ===================== Avatar ===================== */
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 650; color: #e9edf3;
  background: #34393f; flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.10);
}
.avatar.sm { width: 26px; height: 26px; font-size: 10.5px; }
.avatar.a1{background:#3b82f6}.avatar.a2{background:#4d8bf5}.avatar.a3{background:#3f7fe6}
.avatar.a4{background:#5a93f8}.avatar.a5{background:#3b82f6}.avatar.a6{background:#3a6fd0}
.avatar-stack { display: flex; }
.avatar-stack .avatar { margin-left: -8px; box-shadow: 0 0 0 2px var(--surface); }
.avatar-stack .avatar:first-child { margin-left: 0; }

/* ===================== Tables ===================== */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); padding: 11px 14px; border-bottom: 1px solid var(--line); font-family: 'JetBrains Mono', monospace; }
.table td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: var(--surface-muted); }
.table .row-click { cursor: pointer; }

/* ===================== Progress / stepper (Onboarding) ===================== */
.progress { height: 7px; background: rgba(255,255,255,.06); border-radius: var(--r-pill); overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #6aa6ff); border-radius: inherit; transition: width .5s var(--ease); position: relative; overflow: hidden; }

/* ===================== Forms ===================== */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field .hint { font-size: 12px; color: var(--ink-3); margin-top: 5px; }
.input, .select, .textarea {
  width: 100%; padding: 10px 13px; border-radius: var(--r-sm);
  border: 1px solid var(--line-strong); background: var(--surface-sunken);
  outline: none; transition: border .15s, box-shadow .15s;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: var(--ring); background: var(--surface); }
.textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
.input-row { display: flex; gap: 12px; }
.input-row > * { flex: 1; }
.check { display: flex; align-items: center; gap: 9px; cursor: pointer; font-size: 13.5px; }
.check input { width: 17px; height: 17px; accent-color: var(--brand); }

/* ===================== Modal ===================== */
.scrim {
  position: fixed; inset: 0; background: rgba(0,0,0,.62);
  backdrop-filter: blur(4px); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 30px;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.scrim.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-lg); box-shadow: var(--sh-pop);
  width: 100%; max-width: 560px; max-height: 88vh; overflow: auto;
  transform: translateY(12px) scale(.99); transition: transform .22s var(--ease);
}
.scrim.open .modal { transform: none; }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 20px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.modal-head h3 { font-size: 17px; }
.modal-head .x { margin-left: auto; }
.modal-body { padding: 22px; }
.modal-foot { padding: 16px 22px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; position: sticky; bottom: 0; background: var(--surface); }

/* ===================== Banner / toast ===================== */
.banner {
  display: flex; align-items: center; gap: 12px; padding: 13px 16px;
  border-radius: var(--r); margin-bottom: 18px; font-weight: 500; font-size: 13.5px;
}
.banner-blue { background: rgba(255,255,255,.05); color: var(--ink); border: 1px solid var(--line-strong); }
.banner-green { background: var(--green-soft); color: #7fd9aa; border: 1px solid var(--green-line); }
.banner svg { width: 19px; height: 19px; flex: 0 0 19px; }
.banner .b-strong { font-weight: 700; }
.banner .b-actions { margin-left: auto; }

.toast-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: #1b1d22; color: #fff; padding: 12px 16px; border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  box-shadow: var(--sh-3); font-size: 13.5px; font-weight: 500; display: flex; align-items: center; gap: 10px;
  transform: translateX(120%); transition: transform .3s var(--ease); max-width: 340px;
}
.toast.show { transform: none; }
.toast svg { width: 17px; height: 17px; color: var(--green); flex: 0 0 17px; }

/* ===================== Empty state ===================== */
.empty { text-align: center; padding: 50px 20px; color: var(--ink-3); }
.empty svg { width: 40px; height: 40px; opacity: .45; margin-bottom: 12px; }
.empty h4 { color: var(--ink-2); font-size: 15px; margin-bottom: 5px; }

/* ===================== Misc layout ===================== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.flex { display: flex; align-items: center; gap: 10px; }
.flex-col { display: flex; flex-direction: column; }
.between { justify-content: space-between; }
.wrap-2col { display: grid; grid-template-columns: 1fr 320px; gap: 22px; align-items: start; }
.divider { height: 1px; background: var(--line); margin: 18px 0; }
.tag-soft { font-size: 11.5px; color: var(--ink-2); background: var(--surface-sunken); padding: 2px 8px; border-radius: var(--r-xs); font-weight: 500; border: 1px solid var(--line); }
.link { color: var(--brand); font-weight: 600; cursor: pointer; }
.link:hover { text-decoration: underline; }
.mt-s{margin-top:8px}.mt-m{margin-top:16px}.mt-l{margin-top:24px}
.fade-in { animation: fadeIn .35s var(--ease) both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ===================== Rail (right column) — einheitliche Karten-Familie ===================== */
/* Gemeinsamer Kartenkopf: Eyebrow links, Status-Pill rechts */
.rail-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.rail-head .section-title { margin: 0; }
.rail-sub { font-size: 12.5px; color: var(--ink-2); line-height: 1.55; margin-bottom: 14px; }
.rail-sub.faint { color: var(--ink-3); }

/* Einheitliche Zeile: Icon-Kachel · Titel+Sub · eine Aktion */
.rail-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.rail-row:first-of-type { border-top: none; padding-top: 0; }
.rail-row:last-child { padding-bottom: 0; }
.rail-ic { width: 34px; height: 34px; border-radius: var(--r-sm); flex: 0 0 34px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.07); color: #dbe1ea; }
.rail-ic svg { width: 17px; height: 17px; }
.rail-ic.is-muted { background: var(--surface-sunken); color: var(--ink-3); }
.rail-ic.is-ok { background: var(--green-soft); color: #7fd9aa; }
.rail-row .rr-main { flex: 1 1 auto; min-width: 0; }
.rail-row .rr-main b { display: block; font-size: 13px; font-weight: 600; }
.rail-row .rr-sub { font-size: 11.5px; color: var(--ink-3); line-height: 1.4; word-break: break-word; margin-top: 1px; }
.rail-row .rr-act { flex: 0 0 auto; display: flex; gap: 6px; }

/* Einheitliche Button-Anordnung statt Rag-Wrap */
.btn-block { width: 100%; justify-content: center; }
.rail-actions { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; margin-top: 10px; }
.rail-actions .btn { width: 100%; justify-content: center; padding-left: 9px; padding-right: 9px; }

/* Kennzahl-Chips (z.B. Deal-Eckdaten) — nur was gefüllt ist */
.rail-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 2px; }
.rail-meta .rm-item { font-size: 11.5px; font-weight: 500; color: var(--ink-2); background: var(--surface-sunken); border: 1px solid var(--line); padding: 5px 10px; border-radius: var(--r-xs); }
.rail-meta .rm-item b { color: var(--ink); font-weight: 700; }

/* ---------- Fragebogen (intern) ---------- */
.fb-linkbox { margin-bottom: 12px; }
.fb-ans-sec { margin-bottom: 18px; }
.fb-ans-sec:last-child { margin-bottom: 0; }
.fb-ans-sec .section-title { margin-bottom: 8px; }
.fb-ans-row { display: grid; grid-template-columns: 220px 1fr; gap: 14px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.fb-ans-row:first-of-type { border-top: none; }
.fb-ans-k { color: var(--ink-3); font-weight: 500; }
.fb-ans-v { color: var(--ink); line-height: 1.5; word-break: break-word; }

/* ===================== Logo-Kacheln monochrom halten ===================== */
.cust-card .cc-logo, .cust-box .cb-logo, .cc-logo-sm { border-radius: 50%; overflow: hidden; }
.cust-logo { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; font-weight: 800; letter-spacing: -.02em; flex-shrink: 0; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 4px 14px rgba(0,0,0,.35); }
.cust-logo img { width: 100%; height: 100%; object-fit: cover; }
