:root {
  /* ── Backgrounds ── */
  --bg: #060a15;
  --bg-2: #070c1a;
  --panel: #0c1526;
  --panel-2: #0e1830;
  --panel-glass: rgba(18, 30, 54, 0.55);

  /* ── Electric blue accent (reference) ── */
  --blue: #3b82f6;
  --blue-bright: #4f9dff;
  --blue-deep: #1e5fd8;
  --ice: #81C3F4;
  --ice-soft: #B8DFF9;

  /* ── Secondary accents ── */
  --purple: #8b5cf6;
  --cyan: #38bdf8;

  /* ── Semantic ── */
  --green: #22c55e;
  --amber: #f59e0b;
  --red: #f87171;

  /* ── Text ── */
  --text: #eaf2ff;
  --text-muted: #8595ad;
  --text-dim: #5b6b84;

  /* ── Borders ── */
  --border: rgba(90, 140, 210, 0.14);
  --border-strong: rgba(90, 150, 230, 0.32);

  /* ── Glows ── */
  --glow-blue: 0 0 24px rgba(59, 130, 246, 0.35);
  --glow-blue-strong: 0 0 34px rgba(59, 130, 246, 0.55);

  --sidebar-w: 262px;
  --topbar-h: 66px;
  --radius: 16px;
  --radius-sm: 11px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background:
    radial-gradient(1000px 620px at 78% -140px, rgba(47, 107, 255, 0.14), transparent 55%),
    radial-gradient(820px 520px at 108% 118%, rgba(139, 92, 246, 0.07), transparent 55%),
    radial-gradient(600px 400px at -5% 0%, rgba(56, 189, 248, 0.05), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

/* ───── Layout ───── */
.layout { display: flex; min-height: 100vh; }

/* ───── Sidebar ───── */
.sidebar {
  width: var(--sidebar-w);
  background: linear-gradient(180deg, rgba(12, 21, 38, 0.92), rgba(8, 14, 26, 0.92));
  border-right: 1px solid var(--border);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 100;
  overflow-y: auto;
}

.sidebar-brand {
  padding: 1.4rem 1.35rem 1.15rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-logo { height: 38px; width: auto; object-fit: contain; }

.sidebar-nav {
  padding: 1.1rem 0.85rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.72rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  position: relative;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.25s ease, transform 0.15s ease;
}

/* Admin-Navigation nur für Admin-Session sichtbar */
.nav-admin-only {
  display: none !important;
}
.layout.is-admin .nav-item.nav-admin-only {
  display: flex !important;
}
.layout.is-admin .nav-section-label.nav-admin-only {
  display: block !important;
}

.nav-item:hover {
  color: var(--text);
  background: rgba(59, 130, 246, 0.08);
}

.nav-item:hover .nav-icon { color: var(--blue-bright); }

.nav-item.active {
  color: #ffffff;
  background: linear-gradient(135deg, #2f6bff 0%, #1e5fd8 100%);
  border-color: rgba(120, 175, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(120, 175, 255, 0.2), 0 10px 26px -8px rgba(47, 107, 255, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  animation: navPulse 3.6s ease-in-out infinite;
}

.nav-item.active .nav-icon { color: #ffffff; }

.nav-icon {
  width: 20px; height: 20px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

/* ───── Sidebar System Card (GRID AI Core) ───── */
.sidebar-bottom {
  padding: 0.85rem;
  border-top: 1px solid var(--border);
}

.sidebar-system-card {
  background: linear-gradient(160deg, rgba(59, 130, 246, 0.12), rgba(139, 92, 246, 0.05));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 1.1rem;
  position: relative;
  overflow: hidden;
}

.ai-orb {
  position: absolute;
  top: -26px; right: -26px;
  width: 96px; height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, var(--blue-bright), var(--blue-deep) 55%, transparent 72%);
  filter: blur(2px);
  opacity: 0.55;
  animation: orbPulse 4s ease-in-out infinite;
  pointer-events: none;
}

.system-card-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  position: relative;
  z-index: 1;
}

.system-card-header strong { display: block; font-size: 0.84rem; color: var(--ice-soft); }
.system-subtitle { font-size: 0.72rem; color: var(--text-muted); }

.system-icon {
  width: 26px; height: 26px;
  color: var(--blue-bright);
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(79, 157, 255, 0.6));
}

.btn-pipeline {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 9px;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(135deg, #3b82f6, #1e5fd8);
  box-shadow: 0 8px 22px -8px rgba(47, 107, 255, 0.8);
  transition: box-shadow 0.25s ease, transform 0.15s ease;
  position: relative;
  z-index: 1;
  text-decoration: none;
}

.btn-pipeline:hover {
  box-shadow: 0 0 0 1px rgba(120, 175, 255, 0.5), 0 12px 30px -6px rgba(47, 107, 255, 1);
  transform: translateY(-1px);
}

.btn-pipeline:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-arrow { width: 16px; height: 16px; }

.pipeline-msg {
  font-size: 0.72rem;
  color: var(--ice-soft);
  margin: 0 0 0.65rem;
  text-align: left;
  line-height: 1.45;
  position: relative;
  z-index: 1;
}

.btn-grid-core {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(8, 145, 178, 0.85));
}

/* ───── Main ───── */
.main {
  flex: 1;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
}

/* ───── Topbar ───── */
.topbar {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  background: rgba(10, 17, 32, 0.72);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 50;
  gap: 1rem;
}

.topbar.topbar-grid-mode {
  justify-content: flex-end;
}

.topbar-search { position: relative; flex: 1; max-width: 460px; }

.search-icon {
  position: absolute; left: 13px; top: 50%;
  transform: translateY(-50%);
  width: 17px; height: 17px;
  color: var(--text-muted);
  pointer-events: none;
}

.topbar-search input {
  width: 100%;
  padding: 0.6rem 3rem 0.6rem 2.6rem;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(6, 12, 24, 0.8);
  color: var(--text);
  font-size: 0.86rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.25s;
}

.topbar-search input::placeholder { color: var(--text-dim); }
.topbar-search input:focus {
  border-color: var(--border-strong);
  box-shadow: var(--glow-blue);
}

.search-kbd {
  position: absolute; right: 11px; top: 50%;
  transform: translateY(-50%);
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.7rem;
  font-family: inherit;
}

.topbar-actions { display: flex; align-items: center; gap: 0.6rem; }

.topbar-btn,
.topbar-notification {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(6, 12, 24, 0.6);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, box-shadow 0.25s;
  position: relative;
}

.topbar-btn:hover,
.topbar-notification:hover {
  color: var(--blue-bright);
  border-color: var(--border-strong);
  box-shadow: var(--glow-blue);
}

.topbar-btn svg,
.topbar-notification svg { width: 18px; height: 18px; }

.notif-dot {
  position: absolute;
  top: 8px; right: 9px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue-bright);
  box-shadow: 0 0 8px 1px rgba(79, 157, 255, 0.9);
  animation: dotPulse 2s ease-in-out infinite;
}

.topbar-user { display: flex; align-items: center; gap: 0.5rem; margin-left: 0.2rem; }

.user-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-bright), var(--blue-deep));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.76rem; font-weight: 700;
  color: #ffffff;
  border: 1px solid rgba(120, 175, 255, 0.4);
  box-shadow: 0 0 14px -2px rgba(47, 107, 255, 0.6);
}

/* ───── Content ───── */
.content { padding: 1.6rem; flex: 1; }

/* ───── Cards (glassmorphism + depth) ───── */
.card {
  background: linear-gradient(180deg, rgba(20, 32, 58, 0.5), rgba(11, 19, 37, 0.55));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem;
  margin-bottom: 1.1rem;
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-color 0.25s, box-shadow 0.3s, transform 0.2s;
}

.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--glow-blue), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.grid { display: grid; gap: 1.1rem; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.dash-two-col { grid-template-columns: 1fr 1fr; }
.account-grid { grid-template-columns: 1fr 1fr; }

/* ───── Stat Cards ───── */
.stat-card {
  background: linear-gradient(180deg, rgba(20, 32, 58, 0.5), rgba(11, 19, 37, 0.55));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-color 0.25s, box-shadow 0.3s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79, 157, 255, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.stat-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--glow-blue), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}

.stat-card:hover::before { opacity: 1; }

.stat-card .stat-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.22), rgba(59, 130, 246, 0.08));
  border: 1px solid rgba(79, 157, 255, 0.25);
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 12px rgba(79, 157, 255, 0.15);
}

.stat-card .stat-icon svg { width: 21px; height: 21px; color: var(--blue-bright); }

.stat-label { color: var(--text-muted); font-size: 0.82rem; font-weight: 500; }
.stat-value { font-size: 2.1rem; font-weight: 700; color: #ffffff; line-height: 1; letter-spacing: -0.01em; }

/* ───── Section title ───── */
.section-title { font-size: 0.92rem; font-weight: 600; margin-bottom: 0.85rem; color: var(--text); }

/* ───── Tables ───── */
table {
  width: 100%;
  border-collapse: collapse;
  background: linear-gradient(180deg, rgba(20, 32, 58, 0.42), rgba(11, 19, 37, 0.5));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(12px);
}

th, td { text-align: left; padding: 0.8rem 1.05rem; border-bottom: 1px solid var(--border); font-size: 0.85rem; }

th {
  background: rgba(8, 14, 28, 0.6);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

td { color: var(--text); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(59, 130, 246, 0.06); }
tr.clickable { cursor: pointer; transition: background 0.15s; }

/* ───── Badges ───── */
.badge {
  display: inline-flex; align-items: center;
  padding: 0.22rem 0.62rem;
  border-radius: 7px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge-A { background: rgba(34, 197, 94, 0.14); color: var(--green); border: 1px solid rgba(34, 197, 94, 0.3); }
.badge-B { background: rgba(59, 130, 246, 0.16); color: var(--blue-bright); border: 1px solid rgba(79, 157, 255, 0.35); box-shadow: 0 0 10px -2px rgba(59, 130, 246, 0.4); }
.badge-C { background: rgba(245, 158, 11, 0.14); color: var(--amber); border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-D { background: rgba(133, 149, 173, 0.12); color: var(--text-muted); border: 1px solid rgba(133, 149, 173, 0.22); }

/* ───── Status dot ───── */
.status-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 0.45rem;
  vertical-align: middle;
}
.status-pending { background: var(--amber); box-shadow: 0 0 8px 1px rgba(245, 158, 11, 0.7); }
.status-accepted { background: var(--green); box-shadow: 0 0 8px 1px rgba(34, 197, 94, 0.7); }
.status-rejected, .status-blocked, .status-bad_evidence { background: var(--red); box-shadow: 0 0 8px 1px rgba(248, 113, 113, 0.7); }
.status-needs_more_data, .status-wrong_product_fit, .status-wrong_contact { background: var(--blue-bright); box-shadow: 0 0 8px 1px rgba(79, 157, 255, 0.7); }
.status-duplicate { background: var(--text-muted); }

/* ───── Review status text ───── */
.review-pending { color: var(--amber); }
.review-accepted { color: var(--green); }
.review-rejected, .review-blocked, .review-bad_evidence { color: var(--red); }
.review-needs_more_data, .review-wrong_product_fit, .review-wrong_contact { color: var(--blue-bright); }
.review-duplicate { color: var(--text-muted); }

/* ───── Progress bars ───── */
.bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  border: 1px solid var(--border);
}
.bar > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-deep), var(--blue-bright));
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.55);
  animation: barGrow 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.bar.bar-green > span { background: linear-gradient(90deg, #15803d, var(--green)); box-shadow: 0 0 12px rgba(34, 197, 94, 0.5); }
.bar.bar-amber > span { background: linear-gradient(90deg, #b45309, var(--amber)); box-shadow: 0 0 12px rgba(245, 158, 11, 0.5); }
.bar.bar-purple > span { background: linear-gradient(90deg, #6d28d9, var(--purple)); box-shadow: 0 0 12px rgba(139, 92, 246, 0.5); }
.bar.bar-muted > span { background: linear-gradient(90deg, #475569, #94a3b8); box-shadow: none; }

.bar-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.7rem; }
.bar-row .bar-label { min-width: 90px; font-size: 0.8rem; color: var(--text-muted); }
.bar-row .bar { flex: 1; }
.bar-row .bar-value { min-width: 42px; text-align: right; font-size: 0.82rem; font-weight: 600; color: var(--text); }

/* ───── Buttons ───── */
.btn {
  border: none;
  border-radius: 10px;
  padding: 0.6rem 1.1rem;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: box-shadow 0.25s, transform 0.15s, border-color 0.2s, color 0.2s;
  display: inline-flex; align-items: center; gap: 0.5rem;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #1e5fd8);
  color: #ffffff;
  box-shadow: 0 8px 22px -8px rgba(47, 107, 255, 0.8);
}
.btn-primary:hover {
  box-shadow: 0 0 0 1px rgba(120, 175, 255, 0.5), 0 12px 30px -6px rgba(47, 107, 255, 1);
  transform: translateY(-1px);
  text-decoration: none;
}
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-secondary {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid var(--border-strong);
  color: var(--ice-soft);
}
.btn-secondary:hover {
  border-color: rgba(120, 175, 255, 0.55);
  box-shadow: var(--glow-blue);
  transform: translateY(-1px);
}
.btn-secondary:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-ghost {
  background: rgba(6, 12, 24, 0.6);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.btn-ghost:hover { color: var(--blue-bright); border-color: var(--border-strong); box-shadow: var(--glow-blue); text-decoration: none; }

.btn-block { width: 100%; justify-content: center; }

/* ───── Filters ───── */
.filters { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.3rem; }

.filters input, .filters select {
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(6, 12, 24, 0.7);
  color: var(--text);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.25s;
}
.filters input::placeholder { color: var(--text-dim); }
.filters input:focus, .filters select:focus { border-color: var(--border-strong); box-shadow: var(--glow-blue); }
.filters select option { background: var(--panel); }

/* ───── Detail grid ───── */
.detail-grid { display: grid; grid-template-columns: 1fr 360px; gap: 1.25rem; }
@media (max-width: 1024px) { .detail-grid { grid-template-columns: 1fr; } }

/* ───── Lead-Header ───── */
.lead-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.25rem;
}
.lead-header-main { min-width: 0; }
.lead-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  margin: 0;
  word-break: break-word;
}
.lead-sub { margin-top: 0.35rem; font-size: 0.86rem; }
.lead-sub a { color: var(--blue-bright); }
.lead-metrics { display: flex; gap: 0.75rem; flex-shrink: 0; }
.metric-box {
  min-width: 82px;
  text-align: center;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(59, 130, 246, 0.05);
}
.metric-box .metric-value { font-size: 1.9rem; font-weight: 800; line-height: 1; }
.metric-box .metric-label {
  margin-top: 0.35rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.metric-score .metric-value {
  color: var(--ice);
  background: linear-gradient(180deg, var(--ice-soft), var(--blue-bright));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.metric-prio.prio-A { background: rgba(34, 197, 94, 0.12); border-color: rgba(34, 197, 94, 0.35); }
.metric-prio.prio-A .metric-value { color: var(--green); }
.metric-prio.prio-B { background: rgba(79, 157, 255, 0.12); border-color: rgba(79, 157, 255, 0.4); box-shadow: 0 0 14px -4px rgba(79, 157, 255, 0.5); }
.metric-prio.prio-B .metric-value { color: var(--blue-bright); }
.metric-prio.prio-C { background: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.35); }
.metric-prio.prio-C .metric-value { color: var(--amber); }
.metric-prio.prio-D { background: rgba(133, 149, 173, 0.1); border-color: rgba(133, 149, 173, 0.25); }
.metric-prio.prio-D .metric-value { color: var(--text-muted); }
.lead-summary {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 1.15rem 0 0;
}
.lead-meta { margin-top: 0.85rem; }
@media (max-width: 640px) {
  .lead-header-top { flex-direction: column; }
  .lead-metrics { width: 100%; }
  .metric-box { flex: 1; }
}

/* ───── Claims / pages / product fit ───── */
.claim-item, .page-item, .correction-item {
  border-left: 3px solid var(--blue);
  padding: 0.65rem 0.9rem;
  margin-bottom: 0.5rem;
  background: rgba(59, 130, 246, 0.05);
  border-radius: 0 9px 9px 0;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.claim-item a, .page-item a { color: var(--blue-bright); word-break: break-all; text-decoration: none; }
.claim-item a:hover, .page-item a:hover { text-decoration: underline; }

.page-type {
  display: inline-block;
  margin-right: 0.5rem;
  padding: 0.1rem 0.5rem;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ice-soft);
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid var(--border);
  vertical-align: middle;
}

.product-fit {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.9rem;
  margin-bottom: 0.5rem;
  background: rgba(59, 130, 246, 0.04);
}
.product-fit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.product-fit-name { color: var(--ice-soft); font-size: 0.95rem; }
.fit-score {
  flex-shrink: 0;
  min-width: 42px;
  text-align: center;
  padding: 0.3rem 0.6rem;
  border-radius: 10px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--blue-bright);
  background: rgba(79, 157, 255, 0.14);
  border: 1px solid rgba(79, 157, 255, 0.4);
  box-shadow: 0 0 12px -3px rgba(79, 157, 255, 0.45);
}
.claim-group { margin-bottom: 1rem; }

/* ───── Claim-Belege ───── */
.claim-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.4rem; }
.claim-text { display: block; }
.claim-excerpt { margin-top: 0.35rem; }
.claim-best {
  border-left-color: var(--green);
  background: rgba(34, 197, 94, 0.06);
  box-shadow: 0 0 16px -6px rgba(34, 197, 94, 0.4);
}
.claim-best-tag,
.claim-product {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}
.claim-best-tag { color: var(--green); background: rgba(34, 197, 94, 0.14); border: 1px solid rgba(34, 197, 94, 0.35); }
.claim-product { color: var(--ice); background: rgba(129, 195, 244, 0.12); border: 1px solid rgba(129, 195, 244, 0.3); }

/* ───── Aufklappbare Bereiche ───── */
.disclosure-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--blue-bright);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.25s;
}
.disclosure-toggle:hover { border-color: var(--border-strong); box-shadow: var(--glow-blue); }
.disclosure-toggle-title { margin-top: 0; background: transparent; border: none; padding: 0; color: var(--text); }
.disclosure-toggle-title:hover { box-shadow: none; }
.disclosure-toggle-title .disclosure-label { color: var(--text); }
.disclosure-chevron { flex-shrink: 0; transition: transform 0.3s ease; color: var(--blue-bright); }
.disclosure-toggle.open .disclosure-chevron { transform: rotate(180deg); }
.disclosure {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s ease;
}
.disclosure.open { grid-template-rows: 1fr; }
.disclosure-inner { overflow: hidden; }
.disclosure.open .disclosure-inner { padding-top: 0.6rem; }

.lead-source { margin-top: 1.25rem; text-align: center; opacity: 0.7; }

/* ───── Review panel ───── */
.review-panel { position: static; }

.review-panel select,
.review-panel textarea,
.review-panel input[type="text"] {
  width: 100%;
  margin-bottom: 0.6rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(6, 12, 24, 0.7);
  color: var(--text);
  font-size: 0.85rem;
  outline: none;
  font-family: inherit;
  resize: vertical;
}
.review-panel select option { background: var(--panel); }
.review-panel select:focus, .review-panel textarea:focus, .review-panel input:focus {
  border-color: var(--border-strong);
  box-shadow: var(--glow-blue);
}

/* ───── Helpers ───── */
.muted { color: var(--text-muted); }
.small { font-size: 0.8rem; }
.empty { text-align: center; padding: 3rem; color: var(--text-muted); }

.back-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  margin-bottom: 1.25rem;
  color: var(--blue-bright);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  transition: color 0.2s;
}
.back-link:hover { color: var(--ice-soft); }

a { color: var(--blue-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

hr { border: none; border-top: 1px solid var(--border); margin: 1rem 0; }

/* ───── Priority grid ───── */
.priority-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; margin-top: 0.5rem; }
.priority-cell {
  text-align: center;
  padding: 0.7rem 0.5rem;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: rgba(59, 130, 246, 0.04);
  transition: border-color 0.2s, box-shadow 0.25s;
}
.priority-cell:hover { border-color: var(--border-strong); box-shadow: var(--glow-blue); }
.priority-cell .prio-label { font-size: 0.75rem; color: var(--text-muted); }
.priority-cell .prio-value { font-size: 1.35rem; font-weight: 700; margin-top: 0.2rem; }

/* ───── Hero ───── */
.hero-card {
  background:
    radial-gradient(600px 300px at 92% -40%, rgba(59, 130, 246, 0.18), transparent 60%),
    linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(15, 24, 48, 0.5) 60%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 1.9rem;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hero-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; color: #ffffff; letter-spacing: -0.01em; }
.hero-desc { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 1.15rem; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

#dashboard-welcome-title {
  font-size: clamp(2rem, 3.4vw, 2.55rem);
  line-height: 1.12;
}

#dashboard-welcome-desc {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  line-height: 1.45;
  max-width: 72ch;
}

.dashboard-stack {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.dashboard-stack > .hero-card,
.dashboard-stack > .card,
.dashboard-stack > .grid,
.dashboard-stack > .next-steps {
  margin: 0;
}

.dashboard-stack .grid > .card {
  margin-bottom: 0;
}

/* ───── Next steps ───── */
.next-steps {
  background: linear-gradient(180deg, rgba(20, 32, 58, 0.42), rgba(11, 19, 37, 0.5));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  backdrop-filter: blur(12px);
}
.next-steps p { color: var(--text-muted); font-size: 0.86rem; line-height: 1.55; }
.next-steps a { color: var(--blue-bright); font-weight: 600; }

/* ───── GRID Chat ───── */
.grid-chat-shell {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1rem;
  min-height: calc(100vh - 140px);
}
.grid-chat-left,
.grid-chat-main {
  margin-bottom: 0;
  background:
    radial-gradient(420px 180px at 80% -10%, rgba(79, 157, 255, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(20, 32, 58, 0.52), rgba(11, 19, 37, 0.58));
}
.grid-chat-left {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  overflow: hidden;
}
.grid-orb-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0.2rem 0 0.3rem;
}
.grid-main-orb {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #c3ebff 0%, #4f9dff 35%, #1e5fd8 68%, #0a1f4f 100%);
  box-shadow: 0 0 36px rgba(79, 157, 255, 0.45), inset 0 0 22px rgba(255, 255, 255, 0.2);
  animation: orbPulse 4.5s ease-in-out infinite;
}
.grid-orb-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(129, 195, 244, 0.45);
  box-shadow: 0 0 22px rgba(79, 157, 255, 0.45);
}
.grid-chat-left h2 {
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}
.grid-conversation-list {
  margin-top: 0.5rem;
  overflow-y: auto;
  max-height: calc(100vh - 420px);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.grid-conversation-item {
  width: 100%;
  border: 1px solid var(--border);
  background: rgba(6, 12, 24, 0.6);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  cursor: pointer;
  text-align: left;
}
.grid-conversation-item strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
}
.grid-conversation-item span {
  font-size: 0.69rem;
  color: var(--text-muted);
}
.grid-conversation-item.active {
  border-color: rgba(120, 175, 255, 0.6);
  background: rgba(59, 130, 246, 0.16);
}
.grid-conversation-delete {
  color: var(--text-dim) !important;
  font-size: 1.05rem !important;
  line-height: 1;
  margin-top: -1px;
}
.grid-conversation-item:hover .grid-conversation-delete {
  color: #fca5a5 !important;
}
.grid-chat-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.grid-chat-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
}
.grid-chat-header strong {
  font-size: 1rem;
}
.grid-messages {
  flex: 1;
  min-height: 320px;
  max-height: calc(100vh - 320px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-right: 0.3rem;
}
.grid-message {
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 0.75rem 0.85rem;
  max-width: min(840px, 92%);
  backdrop-filter: blur(8px);
}
.grid-message-user {
  margin-left: auto;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(30, 95, 216, 0.24));
  border-color: rgba(79, 157, 255, 0.45);
}
.grid-message-assistant {
  margin-right: auto;
  background: linear-gradient(135deg, rgba(14, 24, 48, 0.72), rgba(11, 19, 37, 0.78));
}
.grid-message-role {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.grid-message-content {
  font-size: 0.88rem;
  line-height: 1.58;
}
.grid-message-content p {
  margin: 0 0 0.5rem;
}
.grid-message-content p:last-child {
  margin-bottom: 0;
}
.grid-message-content h1,
.grid-message-content h2,
.grid-message-content h3,
.grid-message-content h4,
.grid-message-content h5,
.grid-message-content h6 {
  margin: 0.2rem 0 0.55rem;
  line-height: 1.3;
  font-weight: 700;
}
.grid-message-content h1 { font-size: 1.2rem; }
.grid-message-content h2 { font-size: 1.1rem; }
.grid-message-content h3 { font-size: 1rem; }
.grid-message-content h4 { font-size: 0.95rem; }
.grid-message-content h5 { font-size: 0.9rem; }
.grid-message-content h6 { font-size: 0.86rem; }
.grid-message-content ul,
.grid-message-content ol {
  margin: 0.2rem 0 0.55rem 1.1rem;
}
.grid-message-content li {
  margin: 0.15rem 0;
}
.grid-message-content code {
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
  font-size: 0.8em;
  padding: 0.12rem 0.3rem;
  border-radius: 6px;
  background: rgba(6, 12, 24, 0.75);
  border: 1px solid rgba(120, 175, 255, 0.18);
}
.grid-message-content pre {
  margin: 0.35rem 0 0.55rem;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  background: rgba(4, 9, 20, 0.88);
  border: 1px solid rgba(120, 175, 255, 0.2);
  overflow: auto;
}
.grid-message-content pre code {
  background: transparent;
  border: none;
  padding: 0;
  font-size: 0.82rem;
}
.grid-message-content blockquote {
  margin: 0.3rem 0 0.55rem;
  padding: 0.35rem 0.65rem;
  border-left: 2px solid rgba(120, 175, 255, 0.55);
  color: var(--ice-soft);
  background: rgba(79, 157, 255, 0.08);
  border-radius: 7px;
}
.grid-message-content hr {
  border: 0;
  border-top: 1px solid rgba(120, 175, 255, 0.28);
  margin: 0.55rem 0 0.7rem;
}
.grid-message-meta {
  margin-top: 0.45rem;
  display: flex;
  gap: 0.5rem;
}
.grid-empty {
  border: 1px dashed var(--border-strong);
  border-radius: 14px;
  padding: 1rem;
  background: rgba(6, 12, 24, 0.45);
}
.grid-empty p:first-child {
  font-weight: 600;
}
.grid-input-wrap {
  display: flex;
  gap: 0.7rem;
  align-items: flex-end;
  margin-top: 0.85rem;
}
.grid-input-wrap textarea {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(6, 12, 24, 0.72);
  color: var(--text);
  padding: 0.75rem 0.9rem;
  resize: vertical;
  min-height: 52px;
  max-height: 180px;
  font: inherit;
}
.grid-input-wrap textarea:focus {
  outline: none;
  border-color: var(--border-strong);
  box-shadow: var(--glow-blue);
}

/* ───── GRID Admin ───── */
.grid-admin-form {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(3, minmax(170px, 1fr));
}
.grid-admin-form label {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  font-size: 0.76rem;
  color: var(--text-muted);
}
.grid-admin-form input,
.grid-admin-form textarea {
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(6, 12, 24, 0.75);
  color: var(--text);
  padding: 0.55rem 0.7rem;
  font: inherit;
}
.grid-admin-form textarea {
  resize: vertical;
}
.grid-admin-form-full {
  grid-column: 1 / -1;
}
.grid-admin-form button {
  width: fit-content;
}
.grid-admin-detail {
  margin-top: 0.9rem;
  border-top: 1px solid var(--border);
  padding-top: 0.8rem;
}
.grid-admin-message-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: 520px;
  overflow-y: auto;
}
.grid-admin-message {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  background: rgba(6, 12, 24, 0.58);
}
.grid-admin-message header {
  margin-bottom: 0.35rem;
}

/* ───── Mobile toggle ───── */
.mobile-toggle {
  display: none;
  position: fixed;
  top: 15px; left: 15px;
  z-index: 200;
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  align-items: center; justify-content: center;
}
.mobile-toggle svg { width: 20px; height: 20px; }

/* ───── Mobile overlay backdrop ───── */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(4, 8, 18, 0.6);
  backdrop-filter: blur(4px);
}
.sidebar-backdrop.visible { display: block; }

/* ───── Table scroll wrapper for mobile ───── */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
}
.table-wrap table {
  min-width: 640px;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE: TABLET (≤1024px)
   ═══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .grid-chat-shell { grid-template-columns: 260px 1fr; }
  .grid-chat-left .grid-orb-wrap { width: 80px; height: 80px; }
  .grid-conversation-list { max-height: calc(100vh - 380px); }
  .hero-card { padding: 1.5rem; }
  .hero-title { font-size: 1.3rem; }
  .content { padding: 1.25rem; }
  .reveal-lead-grid { gap: 0.7rem; }
  .stat-value { font-size: 1.85rem; }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE: SMALL TABLET (≤900px)
   ═══════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .grid-chat-shell { grid-template-columns: 1fr; }
  .grid-chat-left { order: 2; }
  .grid-chat-main { order: 1; }
  .grid-chat-left .grid-orb-wrap { display: none; }
  .grid-conversation-list { max-height: 200px; }
  .grid-messages { max-height: 50vh; }

  .detail-grid { grid-template-columns: 1fr !important; }

  .dash-two-col { grid-template-columns: 1fr !important; }
  .account-grid { grid-template-columns: 1fr !important; }

  .user-meta { display: none; }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE: MOBILE (≤768px)
   ═══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root {
    --topbar-h: 56px;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
  }
  .main { margin-left: 0; }
  .mobile-toggle { display: flex; }

  .topbar {
    padding: 0 0.75rem 0 3.5rem;
    gap: 0.5rem;
  }
  .topbar-search { max-width: none; flex: 1; }
  .topbar-search input { font-size: 0.84rem; padding: 0.55rem 2.4rem 0.55rem 2.3rem; }
  .search-kbd { display: none; }

  .topbar-btn,
  .topbar-notification {
    width: 36px; height: 36px;
  }
  .user-avatar { width: 32px; height: 32px; font-size: 0.7rem; }
  .user-meta { display: none; }
  .account-menu-toggle { width: 28px; height: 28px; }

  .content { padding: 1rem 0.75rem; }

  .grid-4 { grid-template-columns: 1fr 1fr; }
  .priority-grid { grid-template-columns: repeat(2, 1fr); }

  .hero-card { padding: 1.25rem; }
  .hero-title { font-size: 1.2rem; }
  .hero-desc { font-size: 0.84rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .grid-admin-form { grid-template-columns: 1fr; }

  .filters {
    flex-direction: column;
    gap: 0.5rem;
  }
  .filters input, .filters select {
    width: 100%;
  }

  .stat-card { padding: 1rem; }
  .stat-value { font-size: 1.7rem; }
  .stat-label { font-size: 0.78rem; }
  .stat-card .stat-icon { width: 38px; height: 38px; }
  .stat-card .stat-icon svg { width: 18px; height: 18px; }

  .card { padding: 1rem; border-radius: 12px; }
  .section-title { font-size: 0.88rem; }

  .btn { padding: 0.65rem 1rem; font-size: 0.84rem; min-height: 44px; }
  .btn-block { min-height: 48px; }

  .lead-title { font-size: 1.2rem; }
  .lead-summary { font-size: 0.84rem; }

  .grid-input-wrap { flex-direction: column; gap: 0.5rem; }
  .grid-input-wrap textarea { min-height: 48px; }
  .grid-input-wrap .btn { width: 100%; justify-content: center; min-height: 44px; }
  .grid-messages { max-height: 55vh; min-height: 240px; }

  .reveal-overlay { padding: 0.75rem; }
  .reveal-modal { max-height: 92vh; }
  .reveal-results { padding: 1.25rem; }
  .reveal-lead-grid { grid-template-columns: 1fr; }
  .reveal-results-foot { flex-direction: column; }
  .reveal-results-foot .btn { width: 100%; justify-content: center; }

  .mail-panel-actions { flex-direction: column; }
  .mail-panel-actions .btn { width: 100%; min-width: auto; }

  .preview-controls { flex-direction: column; align-items: stretch; }
  .preview-presets { justify-content: center; }
  .preview-hint { margin-left: 0; text-align: center; }
  .mail-preview { height: 480px; }

  .rte-toolbar { gap: 0.15rem; }
  .rte-btn { min-width: 28px; padding: 0.35rem 0.4rem; }

  .admin-table-actions { flex-direction: column; }
  .admin-table-actions button { width: 100%; }

  .auth-card { padding: 1.5rem 1.25rem; }
  .auth-form input,
  .auth-form select { padding: 0.7rem 0.85rem; font-size: 0.92rem; min-height: 44px; }

  .spotlight-content { flex-direction: column; align-items: stretch; }
  .btn-spotlight { width: 100%; justify-content: center; }

  .next-steps { padding: 1rem; }

  .nav-item { padding: 0.8rem 1rem; font-size: 0.92rem; }
  .sidebar-nav { padding: 1rem 0.75rem; gap: 4px; }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE: SMALL MOBILE (≤480px)
   ═══════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .priority-grid { grid-template-columns: 1fr 1fr; }
  .topbar-actions { gap: 0.25rem; }

  .content { padding: 0.75rem 0.6rem; }
  .card { padding: 0.85rem; margin-bottom: 0.85rem; }

  .hero-card { padding: 1rem; }
  .hero-title { font-size: 1.1rem; }

  .stat-value { font-size: 1.5rem; }
  .stat-card { padding: 0.85rem; }

  .lead-header-top { flex-direction: column; }
  .lead-metrics { width: 100%; }
  .metric-box { flex: 1; }

  .grid-message { max-width: 96%; padding: 0.6rem 0.7rem; }
  .grid-message-content { font-size: 0.84rem; }

  .bar-row .bar-label { min-width: 70px; font-size: 0.74rem; }

  .reveal-results { padding: 1rem 0.75rem; }
  .reveal-lead-card { padding: 0.9rem; }
  .reveal-lead-name { font-size: 0.92rem; }

  .topbar-search input { font-size: 0.82rem; }

  table th, table td { padding: 0.6rem 0.7rem; font-size: 0.78rem; }

  .auth-card { padding: 1.25rem 1rem; }
  .auth-brand h1 { font-size: 1.1rem; }
}

/* ───── Scrollbar ───── */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1c2c4a; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue-deep); }

/* ───── Animations ───── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes navPulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(120, 175, 255, 0.2), 0 10px 26px -8px rgba(47, 107, 255, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15); }
  50% { box-shadow: 0 0 0 1px rgba(120, 175, 255, 0.4), 0 12px 34px -6px rgba(47, 107, 255, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
}

@keyframes orbPulse {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.08); }
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px 1px rgba(79, 157, 255, 0.9); }
  50% { opacity: 0.55; box-shadow: 0 0 4px 0 rgba(79, 157, 255, 0.5); }
}

@keyframes barGrow {
  from { width: 0 !important; }
}

.content > * { animation: fadeInUp 0.35s ease; }

/* ───── Mail Add-On ───── */
.nav-section-label {
  padding: 1rem 1.35rem 0.4rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.mail-status {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 600;
  vertical-align: middle;
}
.mail-status-draft { background: rgba(79, 157, 255, 0.14); color: var(--blue-bright); border: 1px solid rgba(79, 157, 255, 0.3); }
.mail-status-sending { background: rgba(245, 158, 11, 0.14); color: var(--amber); border: 1px solid rgba(245, 158, 11, 0.3); }
.mail-status-sent { background: rgba(34, 197, 94, 0.14); color: var(--green); border: 1px solid rgba(34, 197, 94, 0.3); }
.mail-status-failed { background: rgba(248, 113, 113, 0.14); color: var(--red); border: 1px solid rgba(248, 113, 113, 0.3); }

.mail-warn { color: var(--amber); }
.mail-warn-card {
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.06);
  color: var(--amber);
  font-size: 0.85rem;
}
.mail-warn-card code { color: var(--text); background: rgba(6, 12, 24, 0.6); padding: 0.1rem 0.35rem; border-radius: 5px; }

.mail-edited-tag {
  font-size: 0.68rem; font-weight: 600; color: var(--amber);
  background: rgba(245, 158, 11, 0.12); border-radius: 5px; padding: 0.05rem 0.35rem;
}
.mail-open-tag {
  font-size: 0.72rem; font-weight: 700; color: var(--green);
  background: rgba(34, 197, 94, 0.12); border-radius: 5px; padding: 0.05rem 0.4rem;
}

.mail-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0.35rem 0 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.card input[type="email"],
.card input[type="text"],
.card textarea {
  width: 100%;
  margin-bottom: 0.5rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(6, 12, 24, 0.7);
  color: var(--text);
  font-size: 0.85rem;
  outline: none;
  font-family: inherit;
  resize: vertical;
}
.card input:focus, .card textarea:focus {
  border-color: var(--border-strong);
  box-shadow: var(--glow-blue);
}
.card select {
  width: 100%;
  margin-bottom: 0.5rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(6, 12, 24, 0.7);
  color: var(--text);
  font-size: 0.85rem;
  outline: none;
  font-family: inherit;
}
.card select:focus {
  border-color: var(--border-strong);
  box-shadow: var(--glow-blue);
}

.mail-blacklist-form {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 220px auto;
  gap: 0.55rem;
  align-items: center;
}
.mail-blacklist-form input,
.mail-blacklist-form select {
  margin-bottom: 0;
}
.mail-blacklist-table {
  margin-top: 0.75rem;
}
.mail-blacklist-table code {
  color: var(--ice-soft);
  background: rgba(6, 12, 24, 0.62);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.15rem 0.4rem;
}
.btn-inline {
  padding: 0.28rem 0.55rem;
  font-size: 0.74rem;
}
@media (max-width: 900px) {
  .mail-blacklist-form {
    grid-template-columns: 1fr;
  }
}

.mail-panel-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.5rem; }
.mail-panel-actions .btn { flex: 1; min-width: 120px; justify-content: center; }
.mail-panel-actions .btn.is-loading { opacity: 0.8; pointer-events: none; }
.mail-regen-state {
  margin-top: 0.55rem;
  padding: 0.5rem 0.65rem;
  border-radius: 9px;
  border: 1px solid rgba(79, 157, 255, 0.4);
  background: rgba(30, 95, 216, 0.15);
  color: var(--ice-soft);
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.mail-spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(191, 219, 254, 0.45);
  border-top-color: #93c5fd;
  animation: spin 0.85s linear infinite;
}

/* ── Editor-Layout mit ziehbarem Trenner ── */
.mail-editor-layout {
  --preview-w: 560px;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 14px var(--preview-w);
  align-items: start;
  gap: 0;
}
.mail-editor-col { min-width: 0; }
.mail-preview-col { min-width: 0; }
.mail-split {
  align-self: stretch;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: col-resize;
  margin: 0 4px;
}
.mail-split span {
  display: block;
  width: 4px;
  height: 46px;
  border-radius: 99px;
  background: var(--border-strong);
  transition: background 0.15s, height 0.15s;
}
.mail-split:hover span { background: var(--blue-bright); height: 70px; }
body.resizing-x { cursor: col-resize; user-select: none; }
body.resizing-x iframe { pointer-events: none; }
@media (max-width: 1024px) {
  .mail-editor-layout { grid-template-columns: 1fr; }
  .mail-split { display: none; }
  .mail-preview { height: 520px; }
}
@media (max-width: 768px) {
  .mail-preview { height: 420px; }
}

.preview-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.preview-presets { display: inline-flex; gap: 0.3rem; }
.preview-preset {
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(6, 12, 24, 0.6);
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.preview-preset:hover { color: var(--text); border-color: var(--border-strong); }
.preview-hint { margin-left: auto; }

.mail-preview-wrap {
  padding: 4px;
  background: rgba(6, 12, 24, 0.35);
  border-radius: 10px;
}
.mail-preview {
  width: 100%;
  height: 680px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f1f5f9;
  display: block;
}

/* ── Rich-Text-Editor ── */
.editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
}
.rte-toolbar { display: inline-flex; align-items: center; gap: 0.25rem; flex-wrap: wrap; }
.rte-btn {
  min-width: 30px;
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: rgba(6, 12, 24, 0.6);
  color: var(--text);
  font-size: 0.78rem;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
  transition: all 0.15s;
}
.rte-btn:hover { border-color: var(--border-strong); background: rgba(59, 130, 246, 0.12); }
.rte-sep { width: 1px; height: 18px; background: var(--border); margin: 0 0.25rem; }

.editor-tabs { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.editor-tab {
  padding: 0.3rem 0.8rem;
  background: transparent;
  color: var(--text-muted);
  border: none;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.editor-tab.active { background: var(--blue); color: #fff; }

.rte-area {
  min-height: 260px;
  max-height: 460px;
  overflow-y: auto;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(6, 12, 24, 0.7);
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.6;
  outline: none;
  margin-bottom: 0.5rem;
}
.rte-area:focus { border-color: var(--border-strong); box-shadow: var(--glow-blue); }
.rte-area p { margin: 0 0 0.7rem; }
.rte-area a { color: var(--blue-bright); }
.rte-area ul { margin: 0 0 0.7rem; padding-left: 1.3rem; }
.rte-code {
  width: 100%;
  min-height: 300px;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(6, 12, 24, 0.7);
  color: var(--ice-soft);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.8rem;
  line-height: 1.55;
  outline: none;
  resize: vertical;
  margin-bottom: 0.5rem;
}
.rte-code:focus { border-color: var(--border-strong); box-shadow: var(--glow-blue); }

/* ── Mail-Verlauf (Timeline) ── */
.mail-timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item {
  position: relative;
  display: flex;
  gap: 0.7rem;
  padding: 0 0 1rem 0.1rem;
}
.timeline-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 14px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}
.timeline-dot {
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  margin-top: 3px;
  background: var(--text-dim);
  box-shadow: 0 0 0 3px rgba(6, 12, 24, 0.6);
  position: relative;
  z-index: 1;
}
.timeline-item.ev-gen .timeline-dot { background: var(--blue-bright); }
.timeline-item.ev-edit .timeline-dot { background: var(--amber); }
.timeline-item.ev-sent .timeline-dot { background: var(--green); }
.timeline-item.ev-fail .timeline-dot { background: var(--red); }
.timeline-item.ev-open .timeline-dot { background: var(--cyan); }
.timeline-item.ev-optout .timeline-dot { background: var(--text-muted); }
.timeline-body { display: flex; flex-direction: column; gap: 0.1rem; }
.timeline-label { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.timeline-time { font-size: 0.72rem; color: var(--text-muted); }
.timeline-detail { font-size: 0.76rem; color: var(--amber); margin-top: 0.2rem; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Auth / Login ── */
.layout.auth-hidden .sidebar,
.layout.auth-hidden .topbar,
.layout.auth-hidden .mobile-toggle {
  display: none !important;
}
.layout.auth-hidden .main {
  margin-left: 0;
  width: 100%;
}
.layout.auth-hidden .content {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(180deg, rgba(12, 21, 38, 0.96), rgba(8, 14, 26, 0.96));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.auth-brand {
  text-align: center;
  margin-bottom: 1.5rem;
}
.auth-brand img {
  height: 42px;
  margin-bottom: 0.75rem;
}
.auth-brand h1 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.auth-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.auth-form label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.auth-form input,
.auth-form select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(6, 12, 24, 0.7);
  color: var(--text);
  font-size: 0.9rem;
}
.auth-form input:focus,
.auth-form select:focus {
  outline: none;
  border-color: var(--border-strong);
  box-shadow: var(--glow-blue);
}
.auth-error {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fca5a5;
  padding: 0.65rem 0.85rem;
  border-radius: 9px;
  font-size: 0.85rem;
  margin-bottom: 0.85rem;
}
.auth-success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #86efac;
  padding: 0.65rem 0.85rem;
  border-radius: 9px;
  font-size: 0.85rem;
  margin-bottom: 0.85rem;
}
.auth-links {
  display: flex;
  justify-content: space-between;
  margin-top: 0.75rem;
  font-size: 0.82rem;
}
.auth-links a {
  color: var(--blue-bright);
  text-decoration: none;
}
.auth-links a:hover { text-decoration: underline; }
.auth-privacy {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.72rem;
  color: var(--text-dim);
  line-height: 1.55;
}
.auth-privacy a { color: var(--blue-bright); }

.topbar-user {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  position: relative;
}
.user-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
}
.user-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
}
.user-role {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.account-menu-toggle { margin-left: 0.1rem; width: 32px; height: 32px; }
.account-menu {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  min-width: 220px;
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(12, 21, 38, 0.98), rgba(8, 14, 26, 0.98));
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  z-index: 1000;
}
.account-menu a,
.account-menu button {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  text-align: left;
  padding: 0.72rem 0.9rem;
  font-size: 0.84rem;
  cursor: pointer;
}
.account-menu a:hover,
.account-menu button:hover {
  background: rgba(59, 130, 246, 0.13);
}
.account-menu svg {
  width: 16px;
  height: 16px;
  color: var(--blue-bright);
  flex-shrink: 0;
}

.admin-table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.admin-table-actions button {
  font-size: 0.72rem;
  padding: 0.25rem 0.5rem;
}
.status-pill {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 600;
}
.status-pill.active { background: rgba(34,197,94,0.15); color: #86efac; }
.status-pill.disabled { background: rgba(248,113,113,0.15); color: #fca5a5; }

.mfa-qr {
  display: block;
  margin: 0.75rem auto;
  max-width: 180px;
  border-radius: 8px;
}
.backup-codes {
  background: rgba(6, 12, 24, 0.7);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 0.75rem;
  font-family: monospace;
  font-size: 0.85rem;
  margin: 0.75rem 0;
}

/* ───── Lead Spotlight (Ein-Klick-Reveal) ───── */
.spotlight-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
  border-color: var(--border-strong);
  background: linear-gradient(140deg, rgba(59, 130, 246, 0.16), rgba(139, 92, 246, 0.06) 55%, rgba(12, 21, 38, 0.96));
}
.spotlight-glow {
  position: absolute;
  top: -80px; right: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(79, 157, 255, 0.45), transparent 70%);
  filter: blur(8px);
  opacity: 0.6;
  animation: orbPulse 4.5s ease-in-out infinite;
  pointer-events: none;
}
.spotlight-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.spotlight-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ice);
  margin-bottom: 0.5rem;
}
.spotlight-title {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.spotlight-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.55;
}
.btn-spotlight {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.6rem;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #1e5fd8);
  box-shadow: 0 12px 32px -10px rgba(47, 107, 255, 0.95);
  transition: box-shadow 0.25s, transform 0.15s;
}
.btn-spotlight:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(120, 175, 255, 0.5), 0 16px 40px -8px rgba(47, 107, 255, 1);
}
.btn-spotlight:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.spotlight-icon { width: 20px; height: 20px; }

.demo-badge-new {
  display: inline-block;
  margin-left: 0.45rem;
  padding: 0.12rem 0.5rem;
  border-radius: 99px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: rgba(59, 130, 246, 0.2);
  color: var(--ice-soft);
  border: 1px solid rgba(120, 175, 255, 0.35);
  vertical-align: middle;
}
.demo-row-new { background: rgba(59, 130, 246, 0.06); }

/* ───── Reveal-Fenster ───── */
body.modal-open { overflow: hidden; }
.reveal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(4, 8, 18, 0.82);
  backdrop-filter: blur(10px);
  animation: revealFade 0.25s ease;
}
.reveal-modal {
  width: min(880px, 100%);
  max-height: 88vh;
  overflow-y: auto;
}
.reveal-loading {
  width: min(440px, 100%);
  text-align: center;
  padding: 2.5rem 1.75rem;
}
.reveal-title { font-size: 1.25rem; margin-bottom: 0.5rem; }
.reveal-step {
  color: var(--text-muted);
  font-size: 0.92rem;
  min-height: 2.8em;
  margin-bottom: 1.2rem;
}
.reveal-progress {
  height: 5px;
  border-radius: 99px;
  background: rgba(59, 130, 246, 0.15);
  overflow: hidden;
}
.reveal-progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  animation: revealBar 5.2s ease-out forwards;
}
.reveal-radar {
  position: relative;
  width: 96px; height: 96px;
  margin: 0 auto 1.4rem;
}
.reveal-radar span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(79, 157, 255, 0.5);
  animation: revealPing 2.1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}
.reveal-radar span:nth-child(2) { animation-delay: 0.7s; }
.reveal-radar span:nth-child(3) { animation-delay: 1.4s; }
.reveal-radar::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 16px; height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: var(--blue-bright);
  box-shadow: 0 0 16px rgba(79, 157, 255, 0.9);
}
.reveal-error { text-align: center; padding: 2.5rem 1.75rem; }
.reveal-error .btn { margin-top: 1rem; }
.reveal-results { padding: 1.75rem; }
.reveal-results-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.reveal-close-x {
  flex-shrink: 0;
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: rgba(6, 12, 24, 0.6);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.reveal-close-x:hover { color: var(--text); border-color: var(--border-strong); }
.reveal-close-x svg { width: 18px; height: 18px; }
.reveal-lead-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}
.reveal-lead-card {
  text-align: left;
  padding: 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(8, 14, 26, 0.7);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.25s, transform 0.15s;
  opacity: 0;
  transform: translateY(10px);
  animation: revealCardIn 0.4s ease forwards;
}
.reveal-lead-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--glow-blue);
  transform: translateY(-2px);
}
.reveal-lead-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
}
.reveal-lead-match { display: flex; flex-direction: column; }
.reveal-match-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--blue-bright);
  line-height: 1;
}
.reveal-match-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}
.reveal-lead-product {
  flex-shrink: 0;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(59, 130, 246, 0.15);
  color: var(--ice-soft);
  border: 1px solid rgba(120, 175, 255, 0.3);
}
.reveal-lead-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.15rem;
}
.reveal-lead-domain { font-size: 0.78rem; color: var(--text-dim); margin-bottom: 0.6rem; }
.reveal-lead-claim {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.reveal-results-foot {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-top: 1.4rem;
}
@keyframes revealFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes revealBar { to { width: 100%; } }
@keyframes revealCardIn { to { opacity: 1; transform: translateY(0); } }
@keyframes revealPing {
  0% { transform: scale(0.35); opacity: 0.9; }
  100% { transform: scale(1); opacity: 0; }
}
@media (max-width: 640px) {
  .reveal-lead-grid { grid-template-columns: 1fr; }
  .spotlight-content { flex-direction: column; align-items: flex-start; }
  .btn-spotlight { width: 100%; justify-content: center; }
}

/* ───── Touch-friendly tap targets ───── */
@media (pointer: coarse) {
  .nav-item { min-height: 44px; }
  .btn { min-height: 44px; }
  .topbar-btn, .topbar-notification { min-width: 44px; min-height: 44px; }
  .grid-conversation-item { min-height: 48px; padding: 0.65rem 0.75rem; }
  .filters input, .filters select { min-height: 44px; }
  .preview-preset { min-height: 36px; padding: 0.4rem 0.8rem; }
  tr.clickable td { padding: 0.85rem 1.05rem; }
}
