:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --card: rgba(255, 255, 255, 0.72);
  --glass: rgba(255, 255, 255, 0.6);
  --glass-strong: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(255, 255, 255, 0.65);
  --text: #1d1d1f;
  --muted: #6e6e73;
  --accent: #0071e3;
  --accent-2: #5856d6;
  --call: #34c759;
  --call-text: #043814;
  --danger: #ff3b30;
  --border: rgba(0, 0, 0, 0.08);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  --radius: 18px;
  --radius-lg: 22px;
  --pill: 980px;
  --tabbar-h: 72px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; min-height: 100%;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(0,113,227,.12), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(88,86,214,.10), transparent 50%),
    radial-gradient(700px 400px at 50% 100%, rgba(255,45,85,.06), transparent 45%),
    var(--bg);
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
}
body.sheet-open { overflow: hidden; overscroll-behavior: none; }
.hidden { display: none !important; }
a { color: var(--accent); }

#app {
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 8px);
}
.view {
  padding: clamp(12px, 3vw, 20px);
  padding-top: calc(clamp(12px, 3vw, 20px) + var(--safe-top));
  max-width: min(720px, 100%);
  margin: 0 auto;
  width: 100%;
}

/* Login — elegant glass, matches app Apple-Light language */
.login-wrap {
  position: relative;
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding: calc(24px + var(--safe-top)) 20px calc(28px + var(--safe-bottom));
  overflow: hidden;
}
.login-ambient {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
}
.login-orb {
  position: absolute; border-radius: 50%; filter: blur(48px); opacity: .55;
  animation: loginFloat 12s ease-in-out infinite;
}
.login-orb-a {
  width: min(340px, 70vw); height: min(340px, 70vw);
  left: -8%; top: 8%;
  background: radial-gradient(circle, rgba(0,113,227,.35), transparent 68%);
}
.login-orb-b {
  width: min(280px, 60vw); height: min(280px, 60vw);
  right: -6%; top: 42%;
  background: radial-gradient(circle, rgba(52,199,89,.22), transparent 70%);
  animation-delay: -4s;
}
.login-orb-c {
  width: min(220px, 50vw); height: min(220px, 50vw);
  left: 30%; bottom: -4%;
  background: radial-gradient(circle, rgba(255,45,85,.12), transparent 70%);
  animation-delay: -7s;
}
@keyframes loginFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, -14px, 0) scale(1.04); }
}
.login-box {
  position: relative; z-index: 1;
  width: min(400px, 100%);
  padding: 36px 28px 28px;
  border-radius: 28px;
  background:
    linear-gradient(165deg, rgba(255,255,255,.92), rgba(255,255,255,.72));
  border: 1px solid rgba(255,255,255,.8);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  box-shadow:
    0 24px 64px rgba(15, 23, 42, 0.1),
    0 2px 0 rgba(255,255,255,.9) inset,
    0 0 0 1px rgba(0,0,0,.03);
  animation: loginIn .55s cubic-bezier(.22,1,.36,1) both;
}
@keyframes loginIn {
  from { opacity: 0; transform: translateY(18px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.login-mark {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  margin-bottom: 18px;
}
.login-icon {
  width: 72px; height: 72px; border-radius: 20px;
  box-shadow: 0 12px 28px rgba(0,113,227,.18), 0 1px 0 rgba(255,255,255,.8) inset;
  object-fit: cover;
}
.login-oj {
  font-size: 15px; font-weight: 800; letter-spacing: .12em;
  color: var(--text);
}
.login-heart {
  display: inline-block; margin: 0 .28em;
  color: #ff2d55; font-size: 13px;
  transform: translateY(-1px);
  animation: heartPulse 2.4s ease-in-out infinite;
}
@keyframes heartPulse {
  0%, 100% { transform: translateY(-1px) scale(1); }
  50% { transform: translateY(-1px) scale(1.12); }
}
.login-brand {
  text-align: center;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); font-weight: 700;
}
.login-title {
  margin: 6px 0 8px; text-align: center;
  font-size: clamp(32px, 8vw, 40px); font-weight: 800;
  letter-spacing: -0.045em; line-height: 1.05;
  background: linear-gradient(135deg, #1d1d1f 20%, #0071e3 140%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.login-lead {
  margin: 0 auto 22px; text-align: center;
  max-width: 28ch;
  color: var(--muted); font-size: 15px; line-height: 1.45; font-weight: 500;
}
.login-fields { display: grid; gap: 12px; }
.login-field {
  display: grid; gap: 6px; margin: 0;
  font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: .02em;
}
.login-field input {
  width: 100%; padding: 15px 16px; border-radius: 16px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.88);
  color: inherit; font-size: 16px; font-family: inherit;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.03);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.login-field input::placeholder { color: #aeaeb2; }
.login-field input:focus {
  outline: none;
  border-color: rgba(0,113,227,.45);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0,113,227,.12), inset 0 1px 2px rgba(0,0,0,.02);
}
.login-submit {
  margin-top: 18px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px rgba(0,113,227,.28);
  letter-spacing: -.01em;
}
.login-submit:active { transform: scale(.985); }
.login-box .err {
  text-align: center; min-height: 20px; margin-top: 12px;
}
.login-foot {
  margin: 18px 0 0; text-align: center;
  font-size: 12px; font-weight: 600; color: #aeaeb2; letter-spacing: .01em;
}

.brand { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
h1 { margin: 8px 0; font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
label { display: block; margin: 14px 0 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
input, textarea, select {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border);
  background: rgba(255,255,255,.9); color: inherit; font-size: 16px; font-family: inherit;
}
textarea { resize: vertical; min-height: 88px; }
.btn, button.btn {
  appearance: none; border: 0; cursor: pointer; font-family: inherit; font-weight: 700;
  border-radius: var(--pill); padding: 14px 18px; font-size: 16px; min-height: 48px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
}
.btn.block { width: 100%; display: block; text-align: center; text-decoration: none; }
.btn.ghost {
  background: var(--glass); color: var(--text); border: 1px solid var(--border);
  backdrop-filter: blur(16px);
}
.btn.call {
  background: rgba(52, 199, 89, 0.16);
  color: #0b5c28;
  border: 1px solid rgba(52, 199, 89, 0.38);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 8px 24px rgba(52, 199, 89, 0.12);
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
}
.btn.call:active { background: rgba(52, 199, 89, 0.24); }
.ico-phone {
  flex: 0 0 auto;
  color: #043814; /* sehr dunkelgrün — klarer als Text, kein Rot-Konflikt */
  vertical-align: -2px;
}
.ico-phone-lg { width: 18px; height: 18px; }
.btn.call.block { display: flex; }
.btn.sm { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.err { color: var(--danger); min-height: 18px; margin-top: 10px; font-size: 14px; }
.ok { color: #15803d; font-size: 14px; }

/* Header */
.topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.topbar h1 { font-size: 28px; margin: 4px 0 0; }
.counts { color: var(--muted); font-size: 14px; font-weight: 600; }

/* Glass cards / KPIs */
.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.kpi {
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius);
  backdrop-filter: blur(26px) saturate(165%); padding: 12px 14px; box-shadow: var(--shadow);
}
.kpi .n { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.kpi .l { font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.progress {
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius);
  padding: 12px 14px; margin-bottom: 10px; backdrop-filter: blur(20px);
}
.progress-bar { height: 8px; border-radius: 980px; background: rgba(0,0,0,.06); overflow: hidden; margin-top: 10px; }
.progress-bar > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--call)); border-radius: 980px; transition: width .35s ease; }
.progress-bar.team { height: 6px; margin-top: 8px; }
.progress-bar.team > i { background: linear-gradient(90deg, #8e8e93, #aeaeb2); }

/* Challenge duel */
.challenge-card { margin-bottom: 14px; }
.challenge-title { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.challenge-title h3 { margin: 0; }
.challenge-flag {
  display: inline-flex; color: var(--accent);
  animation: challenge-pulse 2.4s ease-in-out infinite;
}
@keyframes challenge-pulse {
  0%, 100% { opacity: .75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}
.challenge-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.challenge-chip {
  border: 1px solid var(--border); background: rgba(255,255,255,.65);
  border-radius: 980px; padding: 6px 12px; font-size: 12px; font-weight: 700;
  color: var(--muted); cursor: pointer;
}
.challenge-chip.is-on { background: var(--accent); color: #fff; border-color: transparent; }
.challenge-row { margin-bottom: 12px; }
.challenge-row:last-child { margin-bottom: 0; }
.challenge-row-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.challenge-cat { font-size: 13px; font-weight: 800; }
.challenge-lead { font-size: 11px; font-weight: 600; color: var(--muted); }
.challenge-lead.is-me { color: var(--accent); }
.challenge-names {
  display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 5px;
}
.challenge-names b { color: var(--text); font-weight: 800; }
.challenge-track {
  display: flex; height: 8px; border-radius: 980px; overflow: hidden; background: rgba(0,0,0,.05);
}
.challenge-track > i { display: block; height: 100%; transition: width .35s ease; }
.challenge-track > i.j { background: linear-gradient(90deg, #0071e3, #34aadc); }
.challenge-track > i.o { background: linear-gradient(90deg, #ff9f0a, #ffd60a); }
.challenge-loading { font-size: 13px; color: var(--muted); padding: 8px 0; }

/* Filters */
.filter-glass {
  background: var(--glass-strong); border: 1px solid var(--glass-border); border-radius: var(--radius);
  backdrop-filter: blur(26px); padding: 12px; margin-bottom: 12px; display: grid; gap: 8px;
}
.filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.filter-glass input[type="search"] { grid-column: 1 / -1; }

/* Lead cards */
.lead-list { display: grid; gap: 10px; }
.hunt-mcard {
  position: relative;
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius);
  backdrop-filter: blur(22px); padding: 14px 16px; padding-right: 92px; box-shadow: var(--shadow);
  transition: transform .12s ease;
}
.hunt-mcard:active { transform: scale(0.985); }
.hunt-mcard h2 { margin: 0 0 4px; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.hunt-mcard .sub { color: var(--muted); font-size: 13px; line-height: 1.4; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip {
  font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: var(--pill);
  background: rgba(255,255,255,.7); border: 1px solid var(--border); color: var(--muted);
}
.card-actions { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; margin-top: 12px; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; gap: 8px; }
.meta { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.skeleton { height: 120px; border-radius: var(--radius); background: linear-gradient(90deg, rgba(0,0,0,.04), rgba(0,0,0,.08), rgba(0,0,0,.04)); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* Tabbar */
.tabbar {
  position: fixed; left: 12px; right: 12px; bottom: calc(8px + var(--safe-bottom));
  height: var(--tabbar-h); display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px;
  padding: 6px; border-radius: 22px; z-index: 40;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(32px) saturate(190%);
  box-shadow: 0 12px 40px rgba(0,0,0,.10), inset 0 1px 0 rgba(255,255,255,.9);
}
.tabbar button {
  border: 0; background: transparent; border-radius: 14px; font-family: inherit;
  font-size: 10px; font-weight: 650; letter-spacing: -0.01em;
  color: var(--muted); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px; cursor: pointer;
  min-height: 56px; min-width: 0; padding: 6px 2px;
  -webkit-tap-highlight-color: transparent;
}
.tabbar button .ico {
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; line-height: 1;
}
.tabbar button .ico svg { width: 22px; height: 22px; display: block; }
.tabbar button.is-on {
  color: var(--accent);
  background: rgba(0, 113, 227, 0.10);
  box-shadow: inset 0 0 0 1px rgba(0, 113, 227, 0.08);
}

/* Focus sheet — bottom sheet, compact top (NO safe-area-top: sheet starts mid-screen) */
.sheet { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.35); backdrop-filter: blur(4px); }
.sheet-panel {
  position: relative; z-index: 1;
  width: 100%;
  max-width: 100%;
  max-height: min(92dvh, calc(100dvh - 12px));
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: rgba(255,255,255,.96);
  border-radius: 20px 20px 0 0;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(28px) saturate(170%);
  padding: 4px clamp(12px, 4vw, 18px) calc(16px + var(--safe-bottom));
  box-shadow: 0 -20px 60px rgba(0,0,0,.18);
}
.de-pin-hit { cursor: pointer; }
.de-pin-group { -webkit-tap-highlight-color: transparent; }
.sheet-handle {
  width: 36px; height: 5px; border-radius: 980px; background: rgba(0,0,0,.15);
  margin: 6px auto 4px;
}
.sheet-top {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 4px 0 8px; margin: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.98) 55%, rgba(255,255,255,.88) 85%, transparent);
  backdrop-filter: blur(14px);
}
.sheet-close {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 980px; border: 1px solid var(--border);
  background: rgba(255,255,255,.95); backdrop-filter: blur(16px); color: var(--text);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
  box-shadow: 0 4px 14px rgba(0,0,0,.1);
  -webkit-tap-highlight-color: transparent;
}
.sheet-close svg { width: 18px; height: 18px; }
.lead-focus-kicker { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.lead-focus-title {
  margin: 2px 0 2px; font-size: clamp(20px, 5.5vw, 26px); font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.15;
}
.lead-focus-sub { color: var(--muted); font-size: clamp(12px, 3.4vw, 14px); margin-bottom: 12px; }
.lead-focus-call {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; border-radius: var(--pill);
  background: rgba(52, 199, 89, 0.16); color: #0b5c28;
  border: 1px solid rgba(52, 199, 89, 0.38);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 8px 24px rgba(52, 199, 89, 0.12);
  font-weight: 800; text-decoration: none; margin-bottom: 10px;
}
.lead-focus-call .ico-phone { color: #043814; }
.lead-focus-secondary { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.lead-focus-sec-btn {
  text-align: center; text-decoration: none; color: var(--text); font-weight: 700; font-size: 14px;
  min-height: 44px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--pill); background: var(--glass); border: 1px solid var(--border);
}
.lead-focus-sec-btn.is-muted { opacity: .4; pointer-events: none; }
.lead-focus-grid { display: grid; gap: 8px; margin-bottom: 12px; }
.lead-focus-row {
  display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px;
  border-radius: 14px; background: rgba(255,255,255,.65); border: 1px solid var(--border);
}
.lead-focus-row-k { color: var(--muted); font-size: 12px; font-weight: 600; }
.lead-focus-row-v { font-size: 13px; font-weight: 700; text-align: right; }
.lead-focus-section {
  border-radius: 16px; background: rgba(255,255,255,.7); border: 1px solid var(--border);
  margin-bottom: 10px; overflow: hidden;
}
.lead-focus-section > summary {
  list-style: none; cursor: pointer; padding: 14px 16px; font-weight: 800; font-size: 15px;
}
.lead-focus-section > summary::-webkit-details-marker { display: none; }
.lead-focus-section-body { padding: 0 16px 16px; }
.lead-focus-tips { margin: 0; padding-left: 18px; color: var(--text); font-size: 14px; line-height: 1.45; }
.lead-focus-tips li { margin-bottom: 8px; }
.lead-focus-outcomes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.lead-outcome {
  border: 1px solid var(--border); background: #fff; border-radius: 14px; min-height: 48px;
  font-weight: 700; font-size: 13px; cursor: pointer; font-family: inherit;
}
.lead-outcome.is-on { border-color: var(--accent); background: rgba(0,113,227,.1); color: var(--accent); }
.lead-outcome.is-good.is-on { border-color: var(--call); background: rgba(52,199,89,.12); color: #15803d; }
.lead-outcome.is-bad.is-on { border-color: var(--danger); background: rgba(255,59,48,.08); color: var(--danger); }
.lead-stars { display: flex; gap: 6px; margin-bottom: 10px; }
.lead-star {
  border: 0; background: transparent; font-size: 28px; color: rgba(0,0,0,.18); cursor: pointer; line-height: 1;
}
.lead-star.is-on { color: #f5a524; }
.lead-focus-note { width: 100%; margin-bottom: 10px; }
.lead-focus-save { width: 100%; }
.score-row { display: flex; flex-wrap: wrap; gap: 6px; }
.score-pick {
  min-width: 44px; min-height: 44px; border-radius: 12px; border: 1px solid var(--border);
  background: #fff; font-weight: 700; cursor: pointer; font-family: inherit;
}
.score-pick.is-on { background: var(--accent); color: #fff; border-color: var(--accent); }
.call-history { display: grid; gap: 6px; margin-top: 8px; }
.call-history .item {
  font-size: 12px; color: var(--muted); padding: 8px 10px; border-radius: 12px;
  background: rgba(0,0,0,.03); border: 1px solid var(--border);
}

/* More tab */
.more-card {
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius);
  backdrop-filter: blur(22px); padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow);
}
.mehr-hero { display: flex; align-items: center; gap: 14px; margin: 8px 16px 4px; }
.mehr-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(160deg, #0071e3, #5856d6);
  color: #fff; font-size: 24px; font-weight: 700;
}
.mehr-hero-name { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.mehr-hero-sub { color: var(--muted); font-size: 14px; margin-top: 2px; }
.mehr-lead { margin: 8px 20px 0; color: var(--muted); font-size: 14px; line-height: 1.4; }
.mehr-group { margin: 18px 16px 0; }
.mehr-label { margin: 0 12px 6px; color: var(--muted); font-size: 13px; font-weight: 600; }
.mehr-list, #outbox-list { background: rgba(255,255,255,.86); border-radius: 14px; overflow: hidden; }
.mehr-row {
  width: 100%; display: flex; align-items: center; gap: 12px;
  min-height: 60px; padding: 10px 12px; border: 0; border-bottom: 1px solid rgba(0,0,0,.06);
  background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.mehr-list .mehr-row:last-child, #outbox-list .mehr-row:last-child { border-bottom: 0; }
.mehr-row:active { background: rgba(0,0,0,.04); }
.mehr-ico {
  width: 30px; height: 30px; border-radius: 8px; color: #fff;
  display: grid; place-items: center; flex: 0 0 auto;
}
.mehr-ico svg { width: 18px; height: 18px; }
.mehr-row-text { min-width: 0; display: grid; gap: 1px; flex: 1; }
.mehr-row-title { font-weight: 600; font-size: 16px; }
.mehr-row-sub { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mehr-chev { width: 8px; height: 8px; border-right: 2px solid #c7c7cc; border-top: 2px solid #c7c7cc; transform: rotate(45deg); flex: 0 0 auto; }
.mehr-back {
  margin: 4px 8px 0; border: 0; background: transparent; color: var(--accent);
  font: inherit; font-size: 17px; font-weight: 500; min-height: 44px; padding: 8px 8px; cursor: pointer;
}
.mail-read {
  margin: 8px 16px 24px; padding: 18px 16px; border-radius: 16px;
  background: #fff; box-shadow: var(--shadow);
}
.mail-read h2 { margin: 6px 0 8px; font-size: 22px; letter-spacing: -0.02em; }
.mail-read-kicker, .mail-read-meta { margin: 0 0 4px; color: var(--muted); font-size: 14px; }
.mail-read-body {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border);
  white-space: pre-wrap; font-size: 16px; line-height: 1.45;
}
.more-card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 800; }
.more-card p, .help li { color: var(--muted); font-size: 14px; line-height: 1.45; }
.quick-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-filters button { font-size: 13px; }

@media (min-width: 900px) {
  .sheet { align-items: center; padding: 24px; }
  .sheet-panel {
    width: min(560px, 100%);
    max-height: min(88dvh, 900px);
    border-radius: 22px;
    padding-bottom: 20px;
    margin: 0;
  }
}

/* —— Call-Pro polish v5 —— */
.btn:active, .lead-outcome:active, .tabbar button:active { transform: scale(0.97); }
.sheet-panel { animation: sheetUp .28s cubic-bezier(.2,.8,.2,1); }
@keyframes sheetUp { from { transform: translateY(40px); opacity: .6; } to { transform: translateY(0); opacity: 1; } }
@media (min-width: 900px) {
  .sheet-panel { animation: sheetFade .28s cubic-bezier(.2,.8,.2,1); }
  @keyframes sheetFade { from { transform: translateY(16px); opacity: .6; } to { transform: none; opacity: 1; } }
}

/* Short / landscape phones: use more of the viewport, tighter type */
@media (max-height: 700px) {
  .sheet-panel { max-height: calc(100dvh - 8px); }
  .lead-focus-title { font-size: 20px; }
  .lead-focus-call { min-height: 46px; }
  .de-map-wrap { height: 210px; min-height: 200px; }
}
@media (max-width: 380px) {
  .lead-focus-outcomes { grid-template-columns: 1fr; }
  .kpi .n { font-size: 22px; }
  .tabbar { left: 8px; right: 8px; }
  .filter-row { grid-template-columns: 1fr; }
  .geo-card-title { font-size: 18px; }
  .map-hud-split { grid-template-columns: 1fr 1fr; font-size: 11px; }
}
@media (min-width: 720px) {
  .kpi-grid { grid-template-columns: repeat(4, 1fr); }
  .de-map-wrap { height: 340px; max-height: 380px; }
  .map-hud-split { grid-template-columns: repeat(4, 1fr); }
}
.kpi { animation: fadeUp .45s ease both; }
.kpi:nth-child(1) { animation-delay: .02s; }
.kpi:nth-child(2) { animation-delay: .06s; }
.kpi:nth-child(3) { animation-delay: .1s; }
.kpi:nth-child(4) { animation-delay: .14s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.streak {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: var(--pill);
  background: rgba(0,113,227,.08); color: var(--accent); font-weight: 700; font-size: 12px;
  border: 1px solid rgba(0,113,227,.12);
}
.heatbar {
  display: flex; height: 8px; border-radius: 980px; overflow: hidden; background: rgba(0,0,0,.06); margin: 10px 0 6px;
}
.heatbar > i { display: block; height: 100%; min-width: 2px; }
.heat-legend { display: flex; flex-wrap: wrap; gap: 8px; font-size: 11px; color: var(--muted); font-weight: 600; }
.heat-legend span::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; background: var(--c, #999);
}

.inbox-list { display: grid; gap: 8px; margin: 12px 0 16px; }
.inbox-item {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 14px; background: var(--glass); border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px); cursor: pointer;
}
.inbox-item.is-overdue { border-color: rgba(255,59,48,.35); background: rgba(255,59,48,.06); }
.inbox-item .t { font-weight: 800; font-size: 14px; }
.inbox-item .m { font-size: 12px; color: var(--muted); margin-top: 2px; }
.cal-kind {
  font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: var(--pill);
}
.cal-kind.callback { background: rgba(255,149,0,.15); color: #c45c00; }
.cal-kind.appointment { background: rgba(52,199,89,.15); color: #15803d; }
.cal-kind.mailbox { background: rgba(0,0,0,.06); color: var(--muted); }

/* Geo Command Card */
.geo-card {
  margin: 8px 0 14px; padding: 12px 12px 10px; border-radius: calc(var(--radius) + 2px);
  background: linear-gradient(165deg, rgba(255,255,255,.97), rgba(245,248,252,.88));
  border: 1px solid var(--glass-border); backdrop-filter: blur(26px) saturate(170%);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.9);
}
.geo-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 6px; }
.geo-card-title { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.03em; }
.geo-card-sub { font-size: 11px; font-weight: 650; color: var(--muted); margin-top: 2px; }
.geo-card-stat { text-align: right; }
.geo-card-stat .n { font-size: 22px; font-weight: 800; letter-spacing: -.03em; color: var(--accent); line-height: 1; }
.geo-card-stat .l { font-size: 10px; font-weight: 650; color: var(--muted); margin-top: 2px; }
.geo-truth-hint {
  font-size: 11px; font-weight: 600; color: var(--muted);
  margin: -2px 0 8px; line-height: 1.35;
}
.map-toolbar { margin-bottom: 8px; display: grid; gap: 6px; }
.map-mini-row { display: flex; gap: 5px; }
.map-mini-chip {
  flex: 0 0 auto; border: 1px solid var(--border); background: rgba(255,255,255,.75);
  color: var(--muted); border-radius: 980px; padding: 4px 9px; font-size: 11px; font-weight: 750;
  font-family: inherit; cursor: pointer; min-height: 28px;
}
.map-mini-chip.is-on { color: var(--accent); border-color: rgba(0,113,227,.35); background: rgba(0,113,227,.1); }
.map-tone-row { display: flex; gap: 5px; overflow-x: auto; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
.map-tone-chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid var(--border); background: rgba(255,255,255,.75); color: var(--muted);
  border-radius: 980px; padding: 4px 9px; font-size: 11px; font-weight: 700; font-family: inherit; cursor: pointer;
  min-height: 28px;
}
.map-tone-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: #0071e3; }
.map-tone-chip .dot.tone-called { background: #ffcc00; }
.map-tone-chip .dot.tone-interest { background: #ff9500; }
.map-tone-chip .dot.tone-lost { background: #ff3b30; }
.map-tone-chip.is-on { color: var(--accent); border-color: rgba(0,113,227,.35); background: rgba(0,113,227,.10); }

.de-map-wrap {
  position: relative; height: min(360px, 62vw); min-height: 260px; max-height: 420px;
  margin: 0 0 8px; border-radius: 16px;
  background:
    radial-gradient(ellipse at 32% 28%, rgba(0,113,227,.2), transparent 52%),
    radial-gradient(ellipse at 70% 70%, rgba(90,200,250,.1), transparent 48%),
    linear-gradient(165deg, rgba(255,255,255,.99), rgba(232,242,255,.92));
  border: 1px solid rgba(0,113,227,.14);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 8px 28px rgba(0,113,227,.06);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.de-map-svg {
  width: 100%; height: 100%; display: block; padding: 6px 10px 12px; box-sizing: border-box;
  position: relative; z-index: 1; cursor: grab;
  /* keep SVG on a crisp compositor layer (avoids blurry text while panning) */
  transform: translateZ(0);
  -webkit-font-smoothing: antialiased;
}
.de-map-wrap:active .de-map-svg { cursor: grabbing; }
.de-land-shine { opacity: .9; }
.map-zoom-controls {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  display: flex; flex-direction: row; gap: 4px; align-items: center;
  touch-action: manipulation;
}
.map-zoom-controls button {
  width: 28px; height: 28px; border-radius: 9px; border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.94); backdrop-filter: blur(12px);
  font-size: 15px; font-weight: 700; color: var(--text); cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,.08); font-family: inherit; line-height: 1;
  padding: 0; touch-action: manipulation;
}
.map-zoom-controls button:active { transform: scale(.96); }
#map-zoom-label {
  font-size: 9px; font-weight: 750; color: var(--muted);
  background: rgba(255,255,255,.9); padding: 2px 5px; border-radius: 980px;
}
.de-city-label-g { pointer-events: none; }
.de-city-label {
  font-size: 5.6px; font-weight: 750; fill: #1d1d1f;
  paint-order: stroke; stroke: rgba(255,255,255,.95); stroke-width: 1.2px;
  font-family: var(--font), system-ui, sans-serif;
  text-rendering: geometricPrecision;
  dominant-baseline: auto;
}
.de-city-label .de-city-n { fill: #6e6e73; font-weight: 650; }
.de-pin-group { cursor: pointer; animation: pinIn .45s ease both; animation-delay: var(--delay, 0s); }
.de-pin-svg { transition: opacity .15s ease; }
.de-pin-halo { transition: opacity .2s ease; }
.de-pin-pulse {
  transform-origin: center; transform-box: fill-box;
  animation: pinPulse 2.4s ease-out infinite;
}
.de-pin-active {
  stroke-width: 1.6; opacity: .95;
  animation: pinActive .9s ease-in-out infinite alternate;
}
.de-pin-group.is-on .de-pin-svg { stroke: rgba(0,113,227,.55); stroke-width: 1.2; }
.map-float-chip {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  z-index: 2; padding: 6px 12px; border-radius: 980px; font-size: 12px; font-weight: 750;
  background: rgba(29,29,31,.88); color: #fff; backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0,0,0,.18); pointer-events: none; white-space: nowrap; max-width: 90%;
  overflow: hidden; text-overflow: ellipsis;
}
@keyframes pinIn {
  from { opacity: 0; transform: scale(.4); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes pinPulse {
  0% { opacity: .75; transform: scale(1); stroke-width: 1.4; }
  70% { opacity: 0; transform: scale(2.4); stroke-width: .5; }
  100% { opacity: 0; transform: scale(2.6); }
}
@keyframes pinActive {
  from { opacity: .55; stroke-width: 1.4; }
  to { opacity: 1; stroke-width: 2; }
}

.map-hud {
  border-radius: 16px; padding: 12px; margin-bottom: 10px;
  background: rgba(255,255,255,.82); border: 1px solid rgba(0,113,227,.12);
  box-shadow: 0 6px 20px rgba(0,113,227,.06);
}
.map-hud.is-empty { padding: 10px 12px; background: rgba(0,0,0,.03); border-color: var(--border); box-shadow: none; }
.map-hud-hint { font-size: 12px; font-weight: 650; color: var(--muted); text-align: center; }
.map-hud-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.map-hud-city { font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.map-hud-sub { font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.map-hud-x {
  width: 32px; height: 32px; border-radius: 980px; border: 1px solid var(--border);
  background: #fff; font-size: 18px; line-height: 1; cursor: pointer; color: var(--muted);
}
.map-hud-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; margin-bottom: 10px;
  font-size: 12px; color: var(--muted); font-weight: 650;
}
.map-hud-split b { color: var(--text); font-weight: 800; margin-right: 4px; }

.map-top-label { font-size: 11px; font-weight: 750; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; margin: 2px 0 8px; }
.map-top-strip { display: grid; gap: 6px; }
.map-top-item {
  display: grid; grid-template-columns: 24px 1fr auto 8px; align-items: center; gap: 6px;
  width: 100%; text-align: left; padding: 8px 10px; border-radius: 12px;
  border: 1px solid var(--border); background: rgba(255,255,255,.7);
  font-family: inherit; cursor: pointer;
}
.map-top-item.is-on { border-color: rgba(0,113,227,.35); background: rgba(0,113,227,.08); }
.map-top-item .rank {
  width: 24px; height: 24px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; background: rgba(0,113,227,.1); color: var(--accent);
}
.map-top-item .name { font-size: 14px; font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-top-item .cnt { font-size: 13px; font-weight: 800; color: var(--muted); }
.map-top-item .tone-dot { width: 8px; height: 8px; border-radius: 50%; background: #0071e3; }
.map-top-item .tone-dot.tone-called { background: #ffcc00; }
.map-top-item .tone-dot.tone-interest { background: #ff9500; }
.map-top-item .tone-dot.tone-lost { background: #ff3b30; }
.map-top-empty { font-size: 13px; color: var(--muted); font-weight: 600; padding: 8px 0 4px; text-align: center; }

.scripts-row { display: grid; gap: 8px; margin-top: 8px; }
.script-chip {
  text-align: left; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--border);
  background: rgba(255,255,255,.8); font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; line-height: 1.35;
}
.script-chip:active { background: rgba(0,113,227,.08); }

.lead-focus-outcomes { grid-template-columns: 1fr 1fr; }
.lead-outcome { font-size: 12px; padding: 8px 6px; }
.follow-box {
  display: none; margin: 10px 0; padding: 12px; border-radius: 14px;
  background: rgba(0,113,227,.06); border: 1px solid rgba(0,113,227,.15);
}
.follow-box.is-on { display: grid; gap: 8px; }
.follow-box .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gate-box { margin: 8px 0; }

.bucket-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.bucket {
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius);
  backdrop-filter: blur(22px); padding: 14px; box-shadow: var(--shadow); cursor: pointer;
  transition: transform .12s ease, border-color .15s;
}
.bucket:active { transform: scale(.98); }
.bucket.is-on { border-color: var(--accent); background: rgba(0,113,227,.08); }
.bucket .n { font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.bucket .l { font-size: 12px; color: var(--muted); font-weight: 700; margin-top: 2px; }
.pipe-toolbar { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.pipe-toolbar select { flex: 1; min-width: 140px; }

.cal-week { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 10px; }
.cal-day-chip {
  flex: 0 0 auto; min-width: 52px; padding: 10px 8px; border-radius: 14px; text-align: center;
  border: 1px solid var(--border); background: var(--glass); font-weight: 700; cursor: pointer;
}
.cal-day-chip .d { font-size: 18px; }
.cal-day-chip .w { font-size: 10px; color: var(--muted); text-transform: uppercase; }
.cal-day-chip.is-on { background: rgba(0,113,227,.12); border-color: var(--accent); color: var(--accent); }
.cal-day-chip.has-items::after {
  content: ""; display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin: 4px auto 0;
}
.cal-list { display: grid; gap: 8px; }
.stars-mini { color: #f5a524; letter-spacing: 1px; font-size: 12px; }

/* —— CRM v6 —— */
.lead-outcome {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding: 10px 6px; min-height: 64px;
}
.lead-outcome .oc-smile { font-size: 22px; line-height: 1; }
.lead-outcome .oc-label { font-size: 11px; font-weight: 700; }
.lead-outcome.is-good.is-on { border-color: var(--call); background: rgba(52,199,89,.12); color: #15803d; }
.lead-outcome.is-bad { border-color: rgba(255,59,48,.2); }
.lead-outcome.is-bad.is-on { border-color: var(--danger); background: rgba(255,59,48,.1); color: var(--danger); }

.filter-extra {
  border-radius: 14px; border: 1px solid var(--border); background: rgba(255,255,255,.7);
  padding: 0 12px;
}
.filter-extra > summary {
  list-style: none; cursor: pointer; font-weight: 750; font-size: 13px; padding: 12px 0; color: var(--accent);
}
.filter-extra > summary::-webkit-details-marker { display: none; }
.filter-checks {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-bottom: 12px;
}
.filter-checks .chk {
  display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  margin: 0; color: var(--text);
}
.filter-checks .chk input { width: auto; }
.filter-checks .chk.full { grid-column: 1 / -1; display: grid; gap: 6px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.fchip {
  border: 1px solid rgba(0,113,227,.2); background: rgba(0,113,227,.08); color: var(--accent);
  border-radius: 980px; padding: 6px 10px; font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit;
}
.chip.warn { color: #c45c00; background: rgba(255,149,0,.12); }
.chip.web-ok { color: #1a7f37; background: rgba(52,199,89,.14); font-weight: 750; }
.chip.web-miss { color: #c62828; background: rgba(255,59,48,.12); font-weight: 750; }
.chip.prio { color: #5856d6; background: rgba(88,86,214,.12); font-weight: 750; }
.chip.money { color: #0b6b2a; background: rgba(52,199,89,.16); font-weight: 750; }
.chip.fee { color: #0051a8; background: rgba(0,113,227,.1); font-weight: 700; }
.chip.vendor { color: #c45c00; background: rgba(255,149,0,.14); font-weight: 700; }
.chip.owner { color: #9a7b00; background: rgba(255,204,0,.18); font-weight: 700; }
.cal-kind.email { background: rgba(0,113,227,.12); color: #0051a8; }
.cal-kind.brief { background: rgba(175,82,222,.12); color: #7a3aa8; }
.wish-row {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 8px;
}
.wish-chip {
  border: 1px solid rgba(0,0,0,.08); background: rgba(255,255,255,.7);
  border-radius: 980px; padding: 5px 9px; font-size: 11px; font-weight: 650;
  color: var(--muted); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.wish-chip.is-on { border-color: var(--accent); background: rgba(0,113,227,.1); color: var(--accent); font-weight: 750; }
.wish-chip[data-wish="callback"].is-on { border-color: #c45c00; background: rgba(255,149,0,.12); color: #c45c00; }
.wish-chip[data-wish="live_call"].is-on { border-color: #15803d; background: rgba(52,199,89,.12); color: #15803d; }
.wish-chip[data-wish="email"].is-on { border-color: #0051a8; background: rgba(0,113,227,.1); color: #0051a8; }
.wish-chip[data-wish="brief"].is-on { border-color: #7a3aa8; background: rgba(175,82,222,.1); color: #7a3aa8; }
.wish-chip[data-wish="consult"].is-on { border-color: #5856d6; background: rgba(88,86,214,.1); color: #5856d6; }
.wish-chip[data-wish="new_website"].is-on { border-color: #0a84ff; background: rgba(10,132,255,.12); color: #0051a8; }
.wish-chip[data-wish="app"].is-on { border-color: #5e5ce6; background: rgba(94,92,230,.12); color: #3a38b0; }
.web-score-block { margin-bottom: 10px; }
.cal-kind.website { background: rgba(10,132,255,.14); color: #0051a8; }
.cal-kind.app { background: rgba(94,92,230,.14); color: #3a38b0; }
.wish-label { font-size: 11px; font-weight: 700; color: var(--muted); margin: 2px 0 0; }
.web-mark.ok { color: #1a7f37; font-weight: 750; }
.web-mark.miss { color: #c62828; font-weight: 750; }
.econ-card {
  margin: 0 0 12px; padding: 12px 14px; border-radius: 14px;
  background: rgba(0,113,227,.06); border: 1px solid rgba(0,113,227,.12);
}
.econ-title { font-size: 13px; font-weight: 800; margin-bottom: 8px; }
.econ-title span { font-weight: 650; color: var(--muted); font-size: 11px; }
.econ-row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 3px 0; }
.econ-row span { color: var(--muted); font-weight: 600; }
.econ-row b { font-weight: 750; text-align: right; }
.econ-row.good b { color: #1a7f37; }
.econ-row.accent b { color: var(--accent); }
.econ-row.muted b { color: var(--muted); font-weight: 650; }
.econ-note { font-size: 11px; color: var(--muted); margin-top: 6px; line-height: 1.35; }
.econ-foot { font-size: 10px; color: var(--muted); margin-top: 8px; font-weight: 600; }
.tf-card {
  margin: 0 0 12px; padding: 12px 14px; border-radius: 14px;
  background: rgba(88,86,214,.06); border: 1px solid rgba(88,86,214,.14);
}
.tf-card.is-held {
  border-color: rgba(255,59,48,.35);
  background: rgba(255,59,48,.06);
}
.tf-title { font-size: 13px; font-weight: 800; margin-bottom: 8px; }
.tf-title span { font-weight: 650; color: var(--muted); font-size: 11px; }
.tf-held { font-size: 12px; color: #c62828; font-weight: 700; margin: 0 0 8px; }
.tf-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.tf-row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 3px 0; }
.tf-row span { color: var(--muted); font-weight: 600; }
.tf-row b { font-weight: 750; text-align: right; }
.tf-row b small { font-weight: 600; color: var(--muted); font-size: 10px; }
.tf-hook { margin-top: 8px; font-size: 13px; }
.tf-hook p { margin: 4px 0 6px; line-height: 1.4; }
.tf-hook.is-weak { opacity: 0.72; color: var(--muted, #7a7a7a); }
.tf-hook.is-weak p { font-size: 12px; }
.tf-hook-note { font-size: 11px; color: var(--muted, #7a7a7a); margin: 0; font-style: italic; }

.tf-quote { margin-top: 8px; font-size: 12px; line-height: 1.45; color: var(--text); }
.tf-quote a { font-size: 11px; margin-left: 6px; }
.tf-warn { margin-top: 8px; font-size: 12px; color: #c62828; font-weight: 600; }
.tf-foot { font-size: 10px; color: var(--muted); margin-top: 8px; font-weight: 600; line-height: 1.35; }
.tf-held-note { color: #c62828 !important; font-weight: 700; }
.lead-data summary { font-weight: 800; }
.lead-data.is-warn > summary { color: #b45309; }
.ld-pill {
  display: inline-block; font-size: 11px; font-weight: 800;
  padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.06);
  vertical-align: middle;
}
.ld-pill.warn { background: rgba(255,149,0,.18); color: #b45309; }
.ld-body { display: grid; gap: 10px; }
.ld-block { padding: 8px 10px; border-radius: 12px; background: rgba(0,0,0,.03); }
.ld-h { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 4px; }
.ld-row { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; padding: 2px 0; align-items: flex-start; }
.ld-k { color: var(--muted); font-weight: 650; flex: 0 0 38%; }
.ld-v { font-weight: 650; text-align: right; flex: 1; line-height: 1.35; word-break: break-word; }
.ld-v a.ld-link { font-size: 12px; }
.ld-muted { font-size: 10px; color: var(--muted); font-weight: 600; }
.ld-flag { display: inline-block; font-size: 10px; font-weight: 800; margin-left: 4px; }
.ld-flag.ok { color: #1a7f37; }
.ld-flag.warn { color: #b45309; }
.ld-flag.bad { color: #c62828; }
.ld-field-meta { display: block; margin-top: 4px; }
.ld-prov { font-size: 10px; font-weight: 650; color: var(--muted); }
.ld-prov summary {
  list-style: none; cursor: pointer; display: inline-block;
  padding: 1px 6px; border-radius: 6px; background: rgba(0,0,0,.05);
}
.ld-prov summary::-webkit-details-marker { display: none; }
.ld-prov-body { margin-top: 4px; font-size: 11px; font-weight: 650; }
.ld-prov-body a { color: var(--accent); }
.ld-raw-key { font-size: 10px; color: var(--muted); margin-bottom: 4px; font-weight: 600; }
.ld-raw-key code { font-size: 10px; font-weight: 650; }
.ld-conf { display: inline-block; margin-left: 4px; vertical-align: middle; }
.ld-conf-pill {
  list-style: none; cursor: pointer; display: inline-block;
  font-size: 9px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 999px;
  background: rgba(255,149,0,.2); color: #9a5b00;
}
.ld-conf summary::-webkit-details-marker { display: none; }
.ld-conf-list {
  margin: 6px 0 0; padding: 0 0 0 16px; font-size: 11px; line-height: 1.4;
  text-align: left; color: var(--text);
}
.ld-conf-list li { margin-bottom: 4px; }
.ld-conf-list strong { font-weight: 750; }
.call-history .item { font-size: 13px; padding: 6px 0; border-bottom: 1px solid rgba(0,0,0,.06); }
.call-history .item:last-child { border-bottom: 0; }
.call-history .item.muted { color: var(--muted); font-weight: 600; }
.chips-compact .chip { font-size: 11px; }

.de-map-glow {
  position: absolute; inset: -30% -15%; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse at 35% 30%, rgba(0,113,227,.22), transparent 52%),
    radial-gradient(ellipse at 75% 65%, rgba(90,200,250,.14), transparent 48%),
    radial-gradient(ellipse at 50% 90%, rgba(0,113,227,.10), transparent 45%);
  animation: mapGlow 12s ease-in-out infinite alternate;
}
@keyframes mapGlow {
  from { transform: translate3d(-2%, -1%, 0) scale(1); opacity: .8; }
  to { transform: translate3d(3%, 2%, 0) scale(1.06); opacity: 1; }
}
.de-land { transform-origin: center; }
@keyframes landBreath {
  from { opacity: .96; }
  to { opacity: 1; }
}
.de-pin-svg.tone-called { stroke: rgba(255,204,0,.55); stroke-width: .6; }
.de-pin-svg.tone-interest { stroke: rgba(255,149,0,.55); stroke-width: .6; }
.de-pin-svg.tone-lost { stroke: rgba(255,59,48,.5); stroke-width: .6; }
.de-pin-svg.tone-fresh { stroke: rgba(0,113,227,.4); stroke-width: .55; }

.map-legend {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; font-size: 11px; font-weight: 700; color: var(--muted);
}
.map-legend .ml {
  appearance: none; border: 1px solid var(--border); background: rgba(255,255,255,.7);
  border-radius: 980px; padding: 6px 10px; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer;
}
.map-legend .ml.is-on { border-color: rgba(0,113,227,.3); color: var(--accent); background: rgba(0,113,227,.08); }
.map-legend .ml::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: middle;
}
.map-legend .fresh::before { background: #0071e3; }
.map-legend .called::before { background: #ffcc00; }
.map-legend .interest::before { background: #ff9500; }
.map-legend .lost::before { background: #ff3b30; }

@media (prefers-reduced-motion: reduce) {
  .de-map-glow, .de-land, .de-pin-pulse, .de-pin-active, .de-pin-group { animation: none !important; }
}

.empty-card {
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius);
  padding: 20px 16px; text-align: center; backdrop-filter: blur(16px);
}
.empty-card.compact { padding: 12px; }
.empty-card h3 { margin: 0 0 6px; font-size: 17px; }
.empty-card p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }

/* Follow-up items (Heute + Kalender) */
.fu-item {
  position: relative; overflow: hidden; border-radius: 14px; margin-bottom: 8px;
  background: transparent;
}
.fu-item.is-overdue .fu-card { border-color: rgba(255,59,48,.35); background: rgba(255,59,48,.06); }
.fu-swipe {
  position: absolute; inset: 0; display: flex; justify-content: flex-end; align-items: stretch;
  pointer-events: none; z-index: 0;
}
.fu-swipe-del {
  width: 88px; border: 0; background: #ff3b30; color: #fff; font-weight: 800; font-size: 13px;
  pointer-events: auto; font-family: inherit; cursor: pointer;
}
.fu-card {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 10px;
  padding: 12px 12px 12px 14px; background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 14px; backdrop-filter: blur(16px);
  transition: transform .18s ease;
}
.fu-main { flex: 1; min-width: 0; cursor: pointer; }
.fu-main .t { font-weight: 800; font-size: 14px; }
.fu-main .m { font-size: 12px; color: var(--muted); margin-top: 2px; }
.fu-dt {
  border: 0; background: transparent; padding: 0; font: inherit; color: var(--accent);
  font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 2px;
}
.fu-side {
  display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0;
}
.fu-check, .fu-x {
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(0,0,0,.1);
  background: rgba(255,255,255,.8); font-size: 14px; font-weight: 800; line-height: 1;
  cursor: pointer; font-family: inherit; color: var(--muted);
  display: grid; place-items: center; -webkit-tap-highlight-color: transparent;
}
.fu-check { color: #15803d; border-color: rgba(52,199,89,.35); background: rgba(52,199,89,.12); }
.fu-x { color: #c62828; border-color: rgba(255,59,48,.25); background: rgba(255,59,48,.08); font-size: 12px; }
.fu-side .cal-kind { font-size: 10px; padding: 3px 7px; }

.fu-overlay {
  position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.35);
  display: grid; place-items: end center; padding: 16px; padding-bottom: max(16px, env(safe-area-inset-bottom));
}
.fu-modal {
  width: min(420px, 100%); background: #fff; border-radius: 18px; padding: 18px 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,.2);
}
.fu-modal h3 { margin: 0 0 8px; font-size: 18px; }
.fu-modal p { margin: 0 0 12px; font-size: 14px; color: var(--text); line-height: 1.35; }
.fu-hint { font-size: 12px !important; color: var(--muted) !important; }
.fu-modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; }
.fu-result-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.fu-result {
  border: 1px solid rgba(0,0,0,.1); background: rgba(0,0,0,.03); border-radius: 980px;
  padding: 8px 12px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit;
}
.fu-result.is-on { border-color: var(--accent); background: rgba(0,113,227,.12); color: var(--accent); }
.fu-note-lab { display: grid; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.fu-note-lab textarea { font: inherit; font-weight: 500; color: var(--text); border-radius: 12px; border: 1px solid rgba(0,0,0,.12); padding: 10px; }
.fu-dt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fu-dt-row label { display: grid; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.fu-dt-row input { font: inherit; font-weight: 600; padding: 10px; border-radius: 12px; border: 1px solid rgba(0,0,0,.12); }
.btn.danger {
  background: #ff3b30; color: #fff; border: 0;
}
.fu-sheet-bar {
  margin: 0 0 12px; padding: 12px; border-radius: 14px;
  background: rgba(0,113,227,.06); border: 1px solid rgba(0,113,227,.12);
}
.fu-sheet-lab { font-size: 12px; font-weight: 750; margin-bottom: 8px; color: var(--muted); }
.fu-sheet-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* #1 Combo celebration */
.combo-flash {
  position: fixed; left: 50%; top: 18%;
  transform: translate(-50%, -8px) scale(.96);
  z-index: 120; pointer-events: none; opacity: 0;
  transition: opacity .2s ease, transform .25s cubic-bezier(.22,1,.36,1);
}
.combo-flash.is-on {
  opacity: 1; transform: translate(-50%, 0) scale(1);
}
.combo-flash-inner {
  display: inline-block; padding: 10px 18px; border-radius: 980px;
  font-weight: 800; font-size: 14px; letter-spacing: -.01em;
  color: #fff; background: rgba(52,199,89,.94);
  box-shadow: 0 14px 36px rgba(52,199,89,.28);
  backdrop-filter: blur(12px);
}
.combo-flash.is-milestone .combo-flash-inner {
  background: linear-gradient(135deg, #0071e3, #34c759);
  box-shadow: 0 16px 40px rgba(0,113,227,.3);
  font-size: 15px;
}
#heute-progress-bar.is-pulse {
  animation: barPulse .65s ease;
}
@keyframes barPulse {
  0% { filter: brightness(1); }
  40% { filter: brightness(1.25); }
  100% { filter: brightness(1); }
}

/* #10 Flow polish */
.lead-outcome .oc-smile {
  display: inline-block;
  transition: transform .18s cubic-bezier(.22,1,.36,1);
}
.lead-outcome.is-on .oc-smile {
  transform: scale(1.18);
  animation: smilePop .28s cubic-bezier(.22,1,.36,1);
}
@keyframes smilePop {
  from { transform: scale(.85); }
  to { transform: scale(1.18); }
}
.btn.call.is-ready-pulse {
  animation: callReady 2.4s ease-in-out infinite;
}
@keyframes callReady {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 8px 24px rgba(52,199,89,.12); }
  50% { box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 10px 28px rgba(52,199,89,.28); }
}
.lead-focus-call {
  animation: callReady 2.8s ease-in-out infinite;
}
.empty-motivate { text-align: left; }
.empty-motivate .empty-title {
  margin: 0 0 4px; font-size: 15px; font-weight: 800; color: var(--text);
}
.empty-motivate p { margin: 0 0 10px; }
.empty-motivate .btn.call { width: 100%; }
.skeleton {
  opacity: .9;
  animation: sk 1.05s ease-in-out infinite;
}
.view { animation: tabFade .22s ease both; }
@keyframes tabFade {
  from { opacity: .72; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .combo-flash, .btn.call.is-ready-pulse, .lead-focus-call,
  .lead-outcome .oc-smile, .view, #heute-progress-bar.is-pulse {
    animation: none !important; transition: none !important;
  }
}

/* Session bar — wer ist eingeloggt */
.session-bar {
  position: sticky; top: 0; z-index: 35;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 0 0 0;
  padding: 8px clamp(12px, 3vw, 20px);
  padding-top: calc(8px + var(--safe-top));
  background: rgba(255,255,255,.82);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px) saturate(180%);
  font-size: 12px;
}
.session-who { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.session-who strong { color: var(--text); font-weight: 800; }
.session-letter {
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: #fff;
  background: var(--accent);
}
.session-jenny .session-letter { background: linear-gradient(135deg, #af52de, #ff2d55); }
.session-onur .session-letter { background: linear-gradient(135deg, #0071e3, #5856d6); }
.session-logout {
  border: 0; background: rgba(0,0,0,.06); color: var(--muted);
  border-radius: var(--pill); padding: 6px 12px; font: inherit; font-size: 11px; font-weight: 700;
  cursor: pointer;
}
.session-logout:active { transform: scale(.97); }

/* Login user picker */
.login-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 14px; }
.login-pick-btn {
  border: 1px solid var(--border); background: rgba(255,255,255,.7);
  border-radius: 14px; padding: 10px 12px; font: inherit; font-weight: 750; cursor: pointer;
  color: var(--text);
}
.login-pick-btn.is-on {
  border-color: transparent; color: #fff;
  background: linear-gradient(135deg, #0071e3, #5856d6);
}
.login-pick-btn[data-login-user="jenny"].is-on {
  background: linear-gradient(135deg, #af52de, #ff2d55);
}

/* Jagd corner badges */
.hunt-corner {
  position: absolute; top: 10px; right: 10px;
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
  max-width: 46%;
  pointer-events: none;
  z-index: 2;
}
.hunt-corner-fresh {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 8px; border-radius: 10px;
  background: rgba(52,199,89,.14); color: #0b7a2d;
  font-size: 10px; font-weight: 800; letter-spacing: -0.01em;
  border: 1px solid rgba(52,199,89,.28);
  white-space: nowrap;
}
.hunt-corner-fresh .ico-fresh { flex-shrink: 0; }
.hunt-corner-calls {
  display: flex; flex-direction: column; align-items: flex-end; gap: 3px;
}
.hunt-call-row {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px 6px 3px 5px; border-radius: 980px;
  background: rgba(255,255,255,.92); border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.hunt-call-row .ico-phone-mini { opacity: .9; }
.hunt-call-jenny { color: #9b3db8; }
.hunt-call-onur { color: #0071e3; }
.hunt-call-letter {
  margin-left: 3px; min-width: 14px; height: 14px; border-radius: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 900; color: #fff; background: currentColor;
  -webkit-text-fill-color: #fff;
  background: #1d1d1f;
}
.hunt-call-jenny .hunt-call-letter { background: #af52de; }
.hunt-call-onur .hunt-call-letter { background: #0071e3; }
.hunt-call-more { font-size: 9px; font-weight: 800; margin-left: 1px; }
.hunt-channel {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 6px; border-radius: 980px;
  background: rgba(255,255,255,.92); border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  font-size: 9px; font-weight: 750; letter-spacing: -0.01em; color: var(--muted);
  line-height: 1.2;
}
.hunt-status-pill {
  width: 18px; height: 18px; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800;
  background: rgba(0,0,0,.08); color: var(--muted);
}
.hunt-status-pill.is-dnc { background: #1c1c1e; color: #fff; }
.hunt-status-pill.is-lost { background: rgba(255,59,48,.15); color: #ff3b30; }

.chip.actor-j { background: rgba(175,82,222,.12); color: #7a2a9a; border-color: rgba(175,82,222,.25); }
.chip.actor-o { background: rgba(0,113,227,.10); color: #0051a8; border-color: rgba(0,113,227,.22); }
.chip.actor-jenny { background: rgba(175,82,222,.12); color: #7a2a9a; border-color: rgba(175,82,222,.25); }
.chip.actor-onur { background: rgba(0,113,227,.10); color: #0051a8; border-color: rgba(0,113,227,.22); }
.chip.actor-lost { background: rgba(255,59,48,.10); color: #c41e16; border-color: rgba(255,59,48,.22); }
.chip.actor-dnc { background: rgba(28,28,30,.9); color: #fff; border-color: transparent; }

/* Touch quick filters */
.touch-filters {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px;
}
.touch-chip {
  border: 1px solid var(--border); background: rgba(255,255,255,.75);
  border-radius: var(--pill); padding: 6px 11px;
  font: inherit; font-size: 11px; font-weight: 700; color: var(--muted); cursor: pointer;
}
.touch-chip.is-on {
  background: var(--accent); color: #fff; border-color: transparent;
}
.pitch-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.pitch-pick { min-height: 44px; font-size: 14px; }
.script-card { display: grid; gap: 6px; padding: 10px 0; border-top: 1px solid var(--border); }
.script-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* Calendar owner crowns */
.cal-owner {
  display: inline-flex; align-items: center; gap: 3px;
  margin-left: 6px; padding: 2px 7px 2px 5px;
  border-radius: var(--pill); font-size: 10px; font-weight: 800;
  vertical-align: middle;
}
.cal-owner-jenny {
  background: rgba(175,82,222,.14); color: #7a2a9a;
}
.cal-owner-onur {
  background: rgba(0,113,227,.12); color: #0051a8;
}
.cal-owner .ico-crown { display: block; }
.fu-item .t { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }

.save-as-hint {
  margin: 8px 0 4px; font-size: 12px; color: var(--muted); font-weight: 600;
}
.save-as-hint strong { color: var(--text); font-weight: 800; }

/* Session bar sits above tab views */
#view-app { display: flex; flex-direction: column; min-height: 100dvh; }
#view-app > .view { flex: 1; }
#view-app > .session-bar { flex-shrink: 0; }

/* Pipeline dual-user scope */
.pipe-scope {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  margin: 0 0 14px; padding: 4px;
  background: rgba(255,255,255,.65); border: 1px solid var(--border);
  border-radius: 14px;
}
.pipe-scope-btn {
  border: 0; background: transparent; border-radius: 11px;
  padding: 10px 8px; font: inherit; font-size: 13px; font-weight: 750;
  color: var(--muted); cursor: pointer;
}
.pipe-scope-btn.is-on {
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 14px rgba(0,113,227,.22);
}
.pipe-scope-btn[data-scope="jenny"].is-on {
  background: linear-gradient(135deg, #af52de, #ff2d55);
  box-shadow: 0 4px 14px rgba(175,82,222,.25);
}
.pipe-scope-btn[data-scope="onur"].is-on {
  background: linear-gradient(135deg, #0071e3, #5856d6);
}
.bucket-group { margin-bottom: 14px; }
.bucket-group-title {
  font-size: 11px; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 8px;
}
.bucket-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 520px) {
  .bucket-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Phone provenance / extra contacts */
.phone-src-badge {
  display: inline-block; margin-left: 6px; padding: 2px 8px;
  border-radius: 980px; font-size: 10px; font-weight: 800;
  background: rgba(255,255,255,.35); color: inherit; vertical-align: middle;
}
.phone-src-hint {
  display: block; margin-top: 4px; font-size: 11px; color: var(--muted); font-weight: 600;
}
.lead-focus-extra-phones {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px;
}
.chip.phone-src { background: rgba(0,113,227,.08); color: #0051a8; }
.chip.wa { background: rgba(37,211,102,.14); color: #128c7e; }

/* Kalender scope — reuse pipe-scope, slight spacing */
.cal-scope { margin-bottom: 12px; }

.topbar-cal {
  align-items: center;
  gap: 12px;
}
.cal-head-left {
  flex: 1;
  min-width: 0;
}
.cal-head-left h1 { margin: 4px 0 0; }
.apple-cal-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex-shrink: 0;
  align-self: center;
  min-height: 42px;
  max-width: 48%;
  padding: 10px 16px 10px 14px;
  border-radius: 980px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: linear-gradient(180deg, #fff 0%, #f2f2f7 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  color: #1d1d1f;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.apple-cal-pill-label {
  flex: 1;
  min-width: 0;
}
.apple-cal-pill:active { transform: scale(0.97); }
.apple-cal-pill.is-open {
  background: #1d1d1f;
  color: #f5f5f7;
  border-color: #1d1d1f;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.2);
}
.apple-cal-pill-ico {
  font-size: 17px;
  line-height: 1;
  font-weight: 600;
  flex-shrink: 0;
}
.apple-cal-pill-chev {
  width: 0;
  height: 0;
  margin-left: 2px;
  flex-shrink: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.55;
  transition: transform .18s ease;
}
.apple-cal-pill.is-open .apple-cal-pill-chev { transform: rotate(180deg); opacity: 0.85; }
@media (max-width: 380px) {
  .apple-cal-pill {
    max-width: 46%;
    font-size: 12.5px;
    min-height: 40px;
    padding: 8px 12px 8px 11px;
  }
}

.apple-cal-panel {
  margin-top: 14px;
  margin-bottom: 8px;
}
.apple-cal-panel-inner {
  padding: 14px 14px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.apple-cal-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.apple-cal-panel-head strong { font-size: 15px; }
.apple-cal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.apple-cal-help {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}
.apple-cal-help summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
}
.apple-cal-help summary::-webkit-details-marker { display: none; }
.apple-cal-help summary::after {
  content: " ▾";
  opacity: 0.45;
}
.apple-cal-help[open] summary::after { content: " ▴"; }
.apple-cal-steps {
  margin: 8px 0 0;
  padding-left: 18px;
}
.apple-cal-steps li { margin: 4px 0; }

.apple-cal-card summary.apple-cal-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  list-style: none;
  font-size: 17px;
  font-weight: 800;
}
.apple-cal-card summary.apple-cal-summary::-webkit-details-marker { display: none; }
.apple-cal-card summary.apple-cal-summary .apple-cal-pill-ico { margin-right: 4px; }
.apple-cal-card:not([open]) { padding-bottom: 14px; }

.apple-cal-panel[hidden] { display: none !important; }


.degrade-banner {
  margin: 10px 16px 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.35);
  color: #854d0e;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.degrade-banner.global {
  margin: 0;
  border-radius: 0;
  position: sticky;
  top: 0;
  z-index: 90;
}


/* Sales line picker */
.line-pick-box { max-width: 420px; }
.line-pick-grid {
  display: grid;
  gap: 12px;
  margin: 18px 0 8px;
}
.line-pick-card {
  display: grid;
  gap: 4px;
  text-align: left;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.82);
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.line-pick-card:active { transform: scale(.98); }
.line-pick-card strong { font-size: 17px; font-weight: 800; }
.line-pick-card span:last-child { font-size: 13px; color: #6e6e73; }
.line-pick-ico { font-size: 22px; }
.session-line-pill {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 980px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(0,113,227,.12);
  color: #0071e3;
  vertical-align: middle;
}
.session-line-website .session-line-pill {
  background: rgba(175,82,222,.14);
  color: #7a2a9a;
}
.line-switch-card .muted { font-size: 13px; color: #6e6e73; margin: 0 0 12px; }

/* Website sell / gold nuggets */
.sell-card {
  margin: 10px 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(175, 82, 222, 0.08);
  border: 1px solid rgba(175, 82, 222, 0.22);
}
.sell-card-empty { opacity: 0.85; }
.sell-card-empty span { display: block; font-size: 12px; color: #6e6e73; margin-top: 4px; }
.sell-score { font-size: 15px; font-weight: 650; margin-bottom: 10px; letter-spacing: -0.02em; }
.sell-score-n { color: #6b2d91; font-size: 22px; font-weight: 700; margin-right: 8px; }
.sell-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sell-lines li { font-size: 15px; line-height: 1.35; font-weight: 500; color: #1d1d1f; }
.sell-platz { margin-top: 10px; font-size: 14px; font-weight: 650; color: #1d1d1f; }
.sell-seo { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(0,0,0,.08); }
.sell-seo b { display: block; margin-bottom: 6px; font-size: 13px; letter-spacing: .02em; color: #6e6e73; }
.prio { display: inline-block; margin-right: 8px; padding: 2px 7px; border-radius: 999px; font-size: 12px; font-weight: 700; vertical-align: 3px; }
.prio-a { background: #6b2d91; color: #fff; }
.prio-b { background: rgba(107,45,145,.12); color: #6b2d91; }
.sell-card .btn { margin-top: 8px; }

.mail-block { margin-top: 12px; }
.mail-note { margin: 0 0 8px; font-size: 13px; line-height: 1.35; color: #6e6e73; }
.mail-label { display: grid; gap: 4px; font-size: 12px; font-weight: 650; color: #6e6e73; }
.mail-grid { display: grid; gap: 8px; }
.mail-grid input, .mail-grid textarea, .mail-grid select, .mail-live input, .mail-filters select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.mail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.mail-actions .btn { flex: 1 1 calc(50% - 8px); max-width: 100%; }
.mail-offers { display: grid; gap: 6px; }
.mail-offer { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.mail-offer-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin: 0 4px 4px 0;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 113, 227, 0.1);
  color: #0a4f9c;
  font-size: 12px;
  font-weight: 650;
}
.mail-live { display: grid; gap: 8px; margin-bottom: 12px; }
.mail-live[hidden] { display: none; }
.mail-filters { display: grid; gap: 8px; margin-top: 8px; }
.mail-template-list { display: grid; gap: 8px; margin: 8px 0 12px; }
.mail-template-row { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.mail-template-row span { min-width: 0; overflow-wrap: anywhere; }
.mail-subhead { margin: 16px 0 8px; font-size: 17px; }

/* Akte: E-Mail und Brief klappen unter der Button-Zeile auf */
.akte-channel {
  margin: 12px 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.akte-channel-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr));
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.akte-channel-btn {
  appearance: none;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 980px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.9);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 750;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.akte-channel-btn.is-on {
  border-color: var(--accent);
  background: rgba(0,113,227,.12);
  color: var(--accent);
}
.akte-channel-panel {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin-top: 10px;
}
.akte-channel-panel[hidden] {
  display: none;
}
.akte-channel-panel .mail-grid,
.akte-channel-panel .mail-actions,
.akte-channel-panel .mail-live,
.akte-channel-panel .mail-note {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* Lead-Akte: Website, E-Mail und Brief als kompakte Pills in einer Zeile */
.lead-akte {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0 0 14px;
  container-type: inline-size;
  container-name: lead-akte;
}
.lead-akte-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.lead-akte-pill {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 44px;
  padding: 8px 8px;
  border-radius: 980px;
  border: 1px solid var(--border);
  background: var(--glass);
  color: var(--text);
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}
.lead-akte-pill .lead-akte-ico {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  display: block;
}
.lead-akte-pill span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lead-akte-pill.is-muted {
  opacity: .4;
  pointer-events: none;
}
.lead-akte-pill.is-on {
  border-color: var(--accent);
  background: rgba(0, 113, 227, .12);
  color: var(--accent);
}
.lead-akte-panel {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
@container lead-akte (max-width: 250px) {
  .lead-akte-pill {
    gap: 0;
    padding-left: 4px;
    padding-right: 4px;
  }
  .lead-akte-pill span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

.next-step { font-weight: 700; margin: 4px 0 8px; font-size: 14px; }

/* Handy: Tippziele mindestens 44 px, Schnellfilter in einer wischbaren Zeile */
@media (pointer: coarse), (max-width: 760px) {
  .touch-chip, .fchip, .wish-chip {
    min-height: 44px; padding: 8px 14px; display: inline-flex; align-items: center;
  }
  #hunt-quick.touch-filters {
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity; padding-bottom: 4px; margin-right: -4px;
    scrollbar-width: none;
  }
  #hunt-quick.touch-filters::-webkit-scrollbar { display: none; }
  #hunt-quick .touch-chip { flex: 0 0 auto; scroll-snap-align: start; white-space: nowrap; }
}

/* Dashboard v74 */
.hero3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.hero3-i { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 10px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.hero3-i b { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.hero3-i span { font-size: 12px; font-weight: 700; }
.hero3-i small { font-size: 11px; color: var(--muted); }
.hero3-i.is-hot b { color: var(--danger); }
.next-card { background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--call); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 12px; }
.next-k { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.next-t { font-size: 17px; font-weight: 800; margin-top: 2px; }
.next-m { font-size: 13px; color: var(--muted); margin-top: 2px; }
.fill-row { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.dash-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 12px; }
.dash-h { font-size: 13px; font-weight: 800; margin-bottom: 10px; }
.dash-empty { font-size: 13px; color: var(--muted); }
.wk-chart { display: flex; align-items: flex-end; gap: 6px; height: 104px; }
.wk-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; height: 100%; }
.wk-n { font-size: 11px; font-weight: 700; min-height: 13px; }
.wk-bar { width: 100%; max-width: 34px; display: flex; flex-direction: column; border-radius: 6px; overflow: hidden; background: rgba(0,0,0,.06); }
.wk-bar i { display: block; min-height: 0; }
.wk-bar .on { background: var(--accent); }
.wk-bar .je { background: #ff9f0a; }
.wk-d { font-size: 11px; color: var(--muted); font-weight: 600; }
.wk-col.is-today .wk-d { color: var(--text); font-weight: 800; }
.wk-legend { display: flex; gap: 12px; font-size: 11px; color: var(--muted); margin-top: 8px; }
.wk-legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; background: var(--accent); }
.wk-legend .je::before { background: #ff9f0a; }
.fn-row { display: grid; grid-template-columns: 96px 1fr 34px; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 6px; }
.fn-l { color: var(--muted); font-weight: 600; }
.fn-bar { height: 8px; border-radius: 980px; background: rgba(0,0,0,.06); overflow: hidden; }
.fn-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--call)); border-radius: 980px; }
.fn-row b { text-align: right; }
.dash-asof { font-size: 12px; color: var(--muted); text-align: center; margin: 0 0 12px; }
@media (max-width: 380px) { .hero3-i b { font-size: 24px; } }

/* —— Dark Mode Switch & Editorial "Rule of 100" Design —— */
.session-right { display: inline-flex; align-items: center; gap: 8px; }
.topbar-switch { flex-shrink: 0; align-self: flex-start; margin-top: 2px; }
.dm-switch {
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  border-radius: 980px;
  padding: 5px 10px 5px 8px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.2s cubic-bezier(.22,1,.36,1);
  -webkit-tap-highlight-color: transparent;
}
.dm-switch:active { transform: scale(0.96); }
.dm-switch.is-compact { min-height: 28px; padding: 3px 8px 3px 7px; font-size: 9.5px; gap: 5px; }
.dm-switch-ico { font-size: 12px; line-height: 1; color: #ff6b35; }
.dm-switch-track {
  width: 28px; height: 16px; border-radius: 980px;
  background: rgba(0, 0, 0, 0.14);
  position: relative;
  display: inline-block;
  transition: background 0.2s ease;
}
.dm-switch.is-compact .dm-switch-track { width: 24px; height: 14px; }
.dm-switch-thumb {
  position: absolute; top: 2px; left: 2px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
  transition: transform 0.22s cubic-bezier(.22,1,.36,1), background 0.2s ease;
}
.dm-switch.is-compact .dm-switch-thumb { width: 10px; height: 10px; }
.dm-switch.is-on {
  background: #141418;
  border-color: rgba(255, 107, 53, 0.45);
  color: #f5f5f7;
  box-shadow: 0 0 18px rgba(255, 107, 53, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.dm-switch.is-on .dm-switch-track { background: #ff6b35; }
.dm-switch.is-on .dm-switch-thumb { transform: translateX(12px); background: #0c0c0f; }
.dm-switch.is-compact.is-on .dm-switch-thumb { transform: translateX(10px); }
.dm-switch-state { color: var(--muted); font-weight: 800; }
.dm-switch.is-on .dm-switch-state { color: #56e39f; }

/* Dark Mode Root Theme — AWWWARDS "GOTHAM HYPERCAR" EDITION (Ferrari / Porsche / Batmobile) */
@property --conic-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@keyframes conicSpin {
  to { --conic-angle: 360deg; }
}
@keyframes radarSweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes curveDraw {
  from { stroke-dashoffset: 100; }
  to { stroke-dashoffset: 0; }
}
@keyframes areaFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes sheenSweep {
  0%, 100% { transform: translateX(-140%) skewX(-22deg); }
  55% { transform: translateX(220%) skewX(-22deg); }
}
@keyframes livePulseDot {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 8px #56e39f; }
  50% { opacity: 0.45; transform: scale(0.82); box-shadow: 0 0 2px #56e39f; }
}
@keyframes cardCascade {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

html.dark-mode {
  --bg: #050508;
  --surface: #0b0b11;
  --card: #101018;
  --glass: rgba(16, 16, 24, 0.9);
  --glass-strong: rgba(20, 20, 30, 0.95);
  --glass-border: rgba(255, 255, 255, 0.11);
  --text: #f7f7fb;
  --muted: #8f90a2;
  --accent: #ff5e1a;
  --accent-2: #bfb0ff;
  --call: #56e39f;
  --call-text: #041d10;
  --danger: #ff4d42;
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.72);
  --font: "Space Grotesk", -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --serif-editorial: "Instrument Serif", "Playfair Display", "New York", Georgia, serif;
  color-scheme: dark;
}

html.dark-mode body {
  font-family: var(--font);
  background-color: #050508;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.085) 1px, transparent 1px),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.014) 0px, rgba(255, 255, 255, 0.014) 1px, transparent 1px, transparent 9px),
    radial-gradient(1000px 480px at 10% -8%, rgba(255, 94, 26, 0.14), transparent 62%),
    radial-gradient(900px 460px at 90% 2%, rgba(191, 176, 255, 0.12), transparent 58%),
    radial-gradient(800px 420px at 50% 102%, rgba(86, 227, 159, 0.08), transparent 55%);
  background-size: 20px 20px, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
  background-attachment: fixed;
  color: var(--text);
}

/* Editorial Rule of 100 Banner — Ferrari Rosso Corsa + Carbon Fiber + Animated Laser Rim */
.rule-banner {
  position: relative;
  display: grid;
  grid-template-columns: 98px 1fr;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 94, 26, 0.35);
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.022) 0px, rgba(255, 255, 255, 0.022) 2px, transparent 2px, transparent 8px),
    linear-gradient(165deg, #13131c 0%, #09090f 100%);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.72),
    0 0 38px rgba(255, 94, 26, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  margin-bottom: 10px;
  animation: cardCascade 0.45s cubic-bezier(.22,1,.36,1) both;
}
.rule-banner::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  pointer-events: none;
  animation: sheenSweep 7.5s ease-in-out infinite;
}
.rule-badge {
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 220, 180, 0.35), transparent 55%),
    linear-gradient(180deg, #ff6b2b 0%, #e03a00 100%);
  color: #09090d;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
  position: relative;
}
.rule-badge span {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.9;
}
.rule-badge b {
  font-family: var(--mono);
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.92;
  margin: 4px 0;
}
.rule-gt-tag {
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(9, 9, 13, 0.22);
  color: #09090d;
  align-self: flex-start;
}
.rule-main {
  padding: 15px 17px 13px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.rule-kicker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.rule-kicker {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ff6b2b;
}
.rule-vin {
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #6c6d80;
}
.rule-headline {
  font-size: clamp(24px, 6vw, 33px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: #ffffff;
}
.rule-headline em {
  font-family: var(--serif-editorial);
  font-style: italic;
  font-weight: 400;
  font-size: 1.12em;
  color: #ffffff;
  letter-spacing: -0.005em;
  padding-left: 3px;
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.22);
}
.rule-sub {
  font-size: 12.5px;
  color: #a6a7b8;
  margin-top: 6px;
  line-height: 1.4;
}
.rule-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 13px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.rule-steps span {
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #6b6c7e;
  padding-top: 6px;
  border-top: 2px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rule-steps span.is-done { color: #b4b5c6; border-top-color: #56e39f; }
.rule-steps span.is-active {
  color: #ffffff;
  border-top-color: #ff5e1a;
  text-shadow: 0 0 12px rgba(255, 94, 26, 0.5);
}

.rule-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2px 0 10px;
  position: relative;
}
.rule-divider::before,
.rule-divider::after {
  content: "";
  width: 1.5px;
  height: 11px;
  background: linear-gradient(180deg, rgba(255, 94, 26, 0.5), rgba(191, 176, 255, 0.5));
}
.rule-divider span {
  font-family: var(--mono);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 13px;
  border-radius: 980px;
  background: #12121b;
  border: 1px solid rgba(191, 176, 255, 0.28);
  color: #d4c6ff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

/* Porsche 911 GT3 RS / Ferrari Digital Tachometer Cockpit */
.telemetry-cockpit {
  display: grid;
  grid-template-columns: 122px 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 10px;
}
.rpm-dial {
  position: relative;
  width: 122px;
  height: 122px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #171723 0%, #0b0b12 68%, #07070c 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 0 22px rgba(0, 0, 0, 0.85),
    0 10px 28px rgba(0, 0, 0, 0.6),
    0 0 24px rgba(255, 94, 26, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}
.rpm-ticks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.rpm-tick {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2.5px;
  height: 8px;
  margin-left: -1.25px;
  margin-top: -4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.14);
  transform: rotate(var(--ang)) translateY(-50px);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.rpm-tick.is-redline {
  background: rgba(255, 77, 66, 0.28);
}
.rpm-tick.is-on {
  background: #ff6b2b;
  box-shadow: 0 0 8px #ff6b2b;
}
.rpm-tick.is-redline.is-on {
  background: #56e39f;
  box-shadow: 0 0 10px #56e39f;
}
.rpm-core {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}
.rpm-mode {
  font-family: var(--mono);
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #ff6b2b;
  margin-bottom: 4px;
}
.rpm-num {
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: #ffffff;
  text-shadow: 0 0 18px rgba(255, 107, 43, 0.45);
}
.rpm-sub {
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 700;
  color: #9394a8;
  margin-top: 4px;
}
.telemetry-side {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}
.gear-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.gear-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(255, 94, 26, 0.12);
  border: 1px solid rgba(255, 94, 26, 0.35);
}
.xp-badge {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 9px;
  border-radius: 8px;
  background: rgba(86, 227, 159, 0.14);
  border: 1px solid rgba(86, 227, 159, 0.38);
  color: #56e39f;
  box-shadow: 0 0 16px rgba(86, 227, 159, 0.18);
}
.rank-strip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border-radius: 9px;
  background: rgba(191, 176, 255, 0.09);
  border: 1px solid rgba(191, 176, 255, 0.24);
  font-family: var(--mono);
  font-size: 9.5px;
}
.rank-code {
  padding: 2px 6px;
  border-radius: 5px;
  background: #bfb0ff;
  color: #09090d;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.rank-title {
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rank-next {
  margin-left: auto;
  color: #9e9fb4;
  font-size: 8.5px;
  white-space: nowrap;
}
.shift-lights {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 5px;
  margin-bottom: 12px;
  padding: 6px 8px;
  border-radius: 10px;
  background: #08080d;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.shift-led {
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.09);
  transition: all 0.25s ease;
}
.shift-led.zone-g.is-on { background: #56e39f; box-shadow: 0 0 8px #56e39f; }
.shift-led.zone-a.is-on { background: #ff6b2b; box-shadow: 0 0 8px #ff6b2b; }
.shift-led.zone-r.is-on { background: #ff3b30; box-shadow: 0 0 10px #ff3b30; animation: livePulseDot 0.9s infinite; }
.mission-briefing {
  margin: 10px 0 6px;
  padding: 8px 11px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid #bfb0ff;
  font-family: var(--serif-editorial);
  font-style: italic;
  font-size: 15px;
  color: #d8d9e8;
  letter-spacing: 0.01em;
}
.next-card.is-tactical {
  padding: 12px 14px;
}
.next-target-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.next-target-top .next-k {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.next-target-top .next-k i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #56e39f;
  display: inline-block;
  animation: livePulseDot 1.4s infinite;
}
.next-xp-pill {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(86, 227, 159, 0.18);
  border: 1px solid rgba(86, 227, 159, 0.45);
  color: #56e39f;
}
.next-target-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.next-target-info { min-width: 0; flex: 1; }
.next-engage-btn {
  flex-shrink: 0;
  font-family: var(--mono) !important;
  letter-spacing: 0.08em;
  padding: 10px 16px !important;
}
@keyframes sparkBurst {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.2); }
}
.arcade-spark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sc, #56e39f);
  box-shadow: 0 0 12px var(--sc, #56e39f);
  pointer-events: none;
  animation: sparkBurst 0.85s cubic-bezier(.16,1,.3,1) forwards;
}
html.dark-mode .combo-flash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 12px 22px;
  border-radius: 16px;
  background: linear-gradient(160deg, #171724 0%, #0c0c14 100%);
  border: 1.5px solid #56e39f;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 32px rgba(86, 227, 159, 0.38);
}
html.dark-mode .combo-flash-inner.is-win {
  border-color: #ff6b2b;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.85), 0 0 40px rgba(255, 107, 43, 0.5);
}
.combo-flash-top {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #56e39f;
}
html.dark-mode .combo-flash-inner.is-win .combo-flash-top {
  color: #ffb340;
}
.combo-flash-sub {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #d4c6ff;
}
.gear-lbl {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #ff8c5a;
}
.gear-val {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  padding: 1px 6px;
  border-radius: 5px;
  background: #ff5e1a;
  color: #09090d;
}
.gear-sub {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  color: #d4c6ff;
}
.telemetry-bars { display: flex; flex-direction: column; gap: 5px; }
.tbar-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #b4b5c6;
}
.tbar-head b { color: #ffffff; font-size: 11px; }
.tbar-head.is-team { margin-top: 4px; font-size: 9.5px; color: #8f90a2; }
@media (max-width: 390px) {
  .telemetry-cockpit { grid-template-columns: 104px 1fr; gap: 10px; }
  .rpm-dial { width: 104px; height: 104px; }
  .rpm-tick { transform: rotate(var(--ang)) translateY(-42px); }
  .rpm-num { font-size: 25px; }
}

.heatbar-empty { width: 100%; background: rgba(0, 0, 0, 0.08); }
html.dark-mode .heatbar-empty { background: rgba(255, 255, 255, 0.08); }

/* Hero3 Lavender / Periwinkle Cards in Dark Mode (Screenshot 1 bottom) */
.hero3-kicker {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9e9fb4;
  padding: 2px 4px 2px;
}
.hero3-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 9px;
  color: #56e39f;
  letter-spacing: 0.14em;
}
.hero3-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #56e39f;
  display: inline-block;
  animation: livePulseDot 1.8s ease-in-out infinite;
}
html.dark-mode .hero3 {
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.018) 0px, rgba(255, 255, 255, 0.018) 2px, transparent 2px, transparent 8px),
    linear-gradient(180deg, #111119 0%, #0a0a10 100%);
  border: 1px solid rgba(191, 176, 255, 0.22);
  border-radius: 20px;
  padding: 13px;
  gap: 10px;
  box-shadow:
    0 24px 55px rgba(0, 0, 0, 0.65),
    0 0 32px rgba(191, 176, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: cardCascade 0.52s cubic-bezier(.22,1,.36,1) both;
}
html.dark-mode .hero3-i {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.45), transparent 55%),
    linear-gradient(180deg, #c6b8ff 0%, #a590f7 100%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 15px;
  padding: 17px 8px 15px;
  color: #0d0c14;
  box-shadow:
    0 12px 28px rgba(185, 167, 255, 0.22),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.78),
    inset 0 -2px 0 rgba(17, 15, 30, 0.18);
  transition: transform 0.22s cubic-bezier(.22,1,.36,1), box-shadow 0.22s ease;
}
html.dark-mode .hero3-i:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 34px rgba(185, 167, 255, 0.32),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.85);
}
html.dark-mode .hero3-i b {
  font-family: var(--mono);
  font-size: clamp(30px, 7.2vw, 40px);
  font-weight: 800;
  color: #0b0a12;
  letter-spacing: -0.055em;
}
html.dark-mode .hero3-i span {
  font-size: 13px;
  font-weight: 800;
  color: #161422;
  margin-top: 3px;
  letter-spacing: -0.01em;
}
html.dark-mode .hero3-i small {
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(14, 13, 22, 0.66);
  margin-top: 4px;
}
html.dark-mode .hero3-i.is-hot {
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 230, 200, 0.45), transparent 55%),
    linear-gradient(180deg, #ff7a45 0%, #ed470e 100%);
  border-color: rgba(255, 220, 200, 0.55);
  box-shadow:
    0 12px 28px rgba(255, 94, 26, 0.28),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.65);
  color: #0b0a12;
}
html.dark-mode .hero3-i.is-hot b { color: #0b0a12; }

/* Skill Curve (Screenshot 2) — Animated Telemetry Draw */
.skill-curve-wrap { display: flex; flex-direction: column; gap: 8px; }
.skill-curve-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 2px; }
.skill-curve-title {
  font-size: clamp(19px, 5vw, 24px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.15;
}
.skill-curve-title em {
  font-family: var(--serif-editorial);
  font-style: italic;
  font-weight: 400;
  font-size: 1.1em;
  color: #56e39f;
  letter-spacing: -0.01em;
  text-shadow: 0 0 18px rgba(86, 227, 159, 0.25);
}
.skill-curve-sub {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
}
.skill-curve-svg {
  width: 100%;
  height: 122px;
  display: block;
  overflow: visible;
}
.skill-line-path {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: curveDraw 1.35s cubic-bezier(.22,1,.36,1) 0.12s forwards;
  filter: drop-shadow(0 0 8px rgba(86, 227, 159, 0.32));
}
.skill-area-path {
  animation: areaFadeIn 1.1s ease 0.22s both;
}
.skill-axis { stroke: rgba(255, 255, 255, 0.12); stroke-width: 1; }
.skill-dot { fill: #14141b; stroke: #f7b267; stroke-width: 2; }
.skill-dot.is-today { fill: #56e39f; stroke: #0c0c0f; stroke-width: 2; filter: drop-shadow(0 0 6px #56e39f); }
.skill-axis-lbl { font-family: var(--mono); font-size: 8.5px; fill: #7f7f8c; font-weight: 700; }
.skill-axis-lbl.is-today { fill: #56e39f; font-weight: 800; }
.skill-val-lbl { font-family: var(--mono); font-size: 8.5px; fill: #f5f5f7; font-weight: 800; }
.skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: space-between;
  margin-top: 2px;
}
.skill-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  background: #171722;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e5e5ea;
}
.skill-pill.is-end {
  border-color: rgba(86, 227, 159, 0.55);
  background: rgba(86, 227, 159, 0.12);
  color: #56e39f;
  box-shadow: 0 0 18px rgba(86, 227, 159, 0.16);
}
.skill-calls-axis {
  font-family: var(--mono);
  margin-left: auto;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* Comprehensive Dark Mode Overrides — 10/10 Strict Editorial Polish */
html.dark-mode .session-bar {
  background: rgba(11, 11, 16, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}
html.dark-mode .session-onur .session-letter {
  background: linear-gradient(135deg, #ff6b35, #e84e1b);
  color: #09090c;
}
html.dark-mode .session-jenny .session-letter {
  background: linear-gradient(135deg, #b9a7ff, #8f77f2);
  color: #09090c;
}
html.dark-mode .session-line-pill {
  background: rgba(185, 167, 255, 0.16);
  color: #d4c6ff;
  border: 1px solid rgba(185, 167, 255, 0.28);
}
html.dark-mode .session-line-website .session-line-pill {
  background: rgba(255, 107, 53, 0.16);
  color: #ff9870;
  border: 1px solid rgba(255, 107, 53, 0.3);
}
html.dark-mode .session-logout {
  background: #1a1a24;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e2ec;
}
html.dark-mode .topbar h1 {
  letter-spacing: -0.035em;
  color: #fafaff;
}
html.dark-mode .brand {
  color: #ff6b35;
  letter-spacing: 0.14em;
  font-weight: 800;
}
html.dark-mode .progress,
html.dark-mode .kpi,
html.dark-mode .dash-card,
html.dark-mode .more-card,
html.dark-mode .hunt-mcard,
html.dark-mode .bucket,
html.dark-mode .fu-card,
html.dark-mode .empty-card,
html.dark-mode .filter-glass {
  position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.015) 0px, rgba(255, 255, 255, 0.015) 1px, transparent 1px, transparent 7px),
    linear-gradient(180deg, #14141e 0%, #0d0d14 100%);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
  transition: transform 0.2s cubic-bezier(.22,1,.36,1), border-color 0.2s ease, box-shadow 0.2s ease;
}
html.dark-mode .hunt-mcard:hover,
html.dark-mode .bucket:hover,
html.dark-mode .kpi:hover {
  border-color: rgba(255, 107, 43, 0.35);
  box-shadow:
    0 20px 46px rgba(0, 0, 0, 0.68),
    0 0 24px rgba(255, 94, 26, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
html.dark-mode .kpi .n,
html.dark-mode .bucket .n,
html.dark-mode .fn-row b {
  font-family: var(--mono);
  color: #fafaff;
  letter-spacing: -0.04em;
}
html.dark-mode .kpi:nth-child(2) .n {
  color: #56e39f;
  text-shadow: 0 0 16px rgba(86, 227, 159, 0.28);
}
html.dark-mode .kpi:nth-child(1) .n {
  color: #d4c6ff;
  text-shadow: 0 0 16px rgba(191, 176, 255, 0.25);
}
html.dark-mode .next-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 0% 50%, rgba(86, 227, 159, 0.18), transparent 55%),
    linear-gradient(90deg, rgba(86, 227, 159, 0.12) 0%, #13131d 52%);
  border-color: rgba(86, 227, 159, 0.42);
  border-left: 4px solid #56e39f;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.58), 0 0 26px rgba(86, 227, 159, 0.12);
}
html.dark-mode .next-k {
  font-family: var(--mono);
  color: #56e39f;
  letter-spacing: 0.14em;
}
html.dark-mode .progress-bar,
html.dark-mode .fn-bar,
html.dark-mode .heatbar,
html.dark-mode .challenge-track,
html.dark-mode .wk-bar {
  background: rgba(255, 255, 255, 0.09);
}
html.dark-mode .progress-bar > i,
html.dark-mode .fn-bar i {
  background: linear-gradient(90deg, #ff6b35 0%, #f7b267 50%, #56e39f 100%);
}
html.dark-mode .progress-bar.team > i {
  background: linear-gradient(90deg, #b9a7ff, #8f77f2);
}

/* Challenge Duel Bars — Lavendel (Jenny) vs Signal-Orange (Onur), kein Alt-Blau */
html.dark-mode .challenge-card {
  background: linear-gradient(180deg, #14141d 0%, #0f0f16 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
html.dark-mode .challenge-flag { color: #ff6b35; }
html.dark-mode .challenge-lead { color: #9d9dad; }
html.dark-mode .challenge-lead.is-me { color: #56e39f; font-weight: 800; }
html.dark-mode .challenge-track {
  height: 10px;
  padding: 1px;
  gap: 2px;
  background: #1b1b26;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
html.dark-mode .challenge-track > i.j {
  background: linear-gradient(90deg, #a590f5, #cfc2ff);
  border-radius: 980px 0 0 980px;
  box-shadow: 0 0 12px rgba(185, 167, 255, 0.35);
}
html.dark-mode .challenge-track > i.o {
  background: linear-gradient(90deg, #ff6b35, #ffa366);
  border-radius: 0 980px 980px 0;
  box-shadow: 0 0 12px rgba(255, 107, 53, 0.35);
}
html.dark-mode .wk-legend span::before { background: #ff6b35; }
html.dark-mode .wk-legend .je::before { background: #b9a7ff; }

/* Inputs & Selects */
html.dark-mode input,
html.dark-mode textarea,
html.dark-mode select {
  background: #181822;
  border-color: rgba(255, 255, 255, 0.14);
  color: #f5f5f7;
}
html.dark-mode input::placeholder,
html.dark-mode textarea::placeholder {
  color: #6e6e7e;
}
html.dark-mode input:focus,
html.dark-mode textarea:focus,
html.dark-mode select:focus {
  outline: none;
  background: #1c1c28;
  border-color: #ff6b35;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

/* Buttons — High-Contrast Tactile Hierarchy (never too dark!) */
html.dark-mode .btn {
  background: linear-gradient(180deg, #ff7847 0%, #f2541b 100%);
  color: #0b0b0e;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 22px rgba(255, 107, 53, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
html.dark-mode .btn.ghost {
  background: linear-gradient(180deg, #232331 0%, #1b1b26 100%);
  color: #f2f2f7;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
html.dark-mode .btn.ghost:active {
  background: #2a2a3a;
}
html.dark-mode .btn.ghost:disabled {
  background: #15151e;
  color: #5c5c6b;
  border-color: rgba(255, 255, 255, 0.07);
  box-shadow: none;
}
/* Anrufen-Buttons: Leuchtend Smaragd-Mint mit tiefer dunkler Schrift — knallt sofort ins Auge */
html.dark-mode .btn.call,
html.dark-mode .lead-focus-call {
  background: linear-gradient(180deg, #64f0ad 0%, #3dd68c 100%);
  color: #052012;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 10px 28px rgba(86, 227, 159, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
html.dark-mode .btn.call:active,
html.dark-mode .lead-focus-call:active {
  background: linear-gradient(180deg, #52df9b 0%, #32c27c 100%);
}
html.dark-mode .btn.call .ico-phone,
html.dark-mode .lead-focus-call .ico-phone {
  color: #052012;
}
html.dark-mode .lead-focus-call .phone-src-badge {
  background: rgba(5, 32, 18, 0.16);
  color: #052012;
}
@keyframes callReadyDark {
  0%, 100% { box-shadow: 0 10px 26px rgba(86, 227, 159, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.55); }
  50% { box-shadow: 0 12px 34px rgba(86, 227, 159, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.7); }
}
html.dark-mode .btn.call.is-ready-pulse,
html.dark-mode .lead-focus-call {
  animation: callReadyDark 2.6s ease-in-out infinite;
}

/* Tabbar */
html.dark-mode .tabbar {
  background: rgba(15, 15, 22, 0.94);
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.78), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
html.dark-mode .tabbar button {
  color: #8e8e9e;
}
html.dark-mode .tabbar button.is-on {
  color: #ff7847;
  background: rgba(255, 107, 53, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 107, 53, 0.32);
}

/* Mehr-Tab */
html.dark-mode .mehr-avatar {
  background: linear-gradient(145deg, #ff6b35, #b9a7ff);
  color: #0b0b0e;
  font-weight: 900;
}
html.dark-mode .mehr-list,
html.dark-mode #outbox-list {
  background: #12121a;
  border: 1px solid rgba(255, 255, 255, 0.11);
}
html.dark-mode .mehr-row {
  border-bottom-color: rgba(255, 255, 255, 0.07);
}
html.dark-mode .mehr-row:active {
  background: rgba(255, 255, 255, 0.06);
}
html.dark-mode .mehr-chev {
  border-right-color: #727284;
  border-top-color: #727284;
}

/* Chips & Filter Pills */
html.dark-mode .chip,
html.dark-mode .touch-chip,
html.dark-mode .challenge-chip,
html.dark-mode .wish-chip,
html.dark-mode .map-mini-chip,
html.dark-mode .map-tone-chip,
html.dark-mode .map-legend .ml {
  background: #1b1b26;
  border-color: rgba(255, 255, 255, 0.13);
  color: #c8c8d6;
}
html.dark-mode .touch-chip.is-on,
html.dark-mode .challenge-chip.is-on {
  background: #ff6b35;
  color: #0b0b0e;
  border-color: transparent;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(255, 107, 53, 0.3);
}
html.dark-mode .fchip {
  background: rgba(255, 107, 53, 0.16);
  border-color: rgba(255, 107, 53, 0.35);
  color: #ff9870;
}
html.dark-mode .chip.web-ok { background: rgba(86, 227, 159, 0.16); color: #56e39f; border-color: rgba(86, 227, 159, 0.3); }
html.dark-mode .chip.web-miss { background: rgba(255, 85, 73, 0.16); color: #ff7b72; border-color: rgba(255, 85, 73, 0.3); }
html.dark-mode .chip.prio { background: rgba(185, 167, 255, 0.18); color: #d4c6ff; border-color: rgba(185, 167, 255, 0.3); }
html.dark-mode .chip.prio-a { background: #ff6b35; color: #0b0b0e; border-color: transparent; font-weight: 800; }
html.dark-mode .chip.money { background: rgba(86, 227, 159, 0.18); color: #56e39f; }
html.dark-mode .chip.fee { background: rgba(185, 167, 255, 0.16); color: #d4c6ff; }
html.dark-mode .chip.vendor { background: rgba(247, 178, 103, 0.16); color: #f7b267; }
html.dark-mode .chip.warn { background: rgba(247, 178, 103, 0.18); color: #f7b267; border-color: rgba(247, 178, 103, 0.32); }
html.dark-mode .chip.owner { background: rgba(255, 214, 10, 0.15); color: #ffd60a; }
html.dark-mode .chip.phone-src { background: rgba(185, 167, 255, 0.14); color: #d4c6ff; }
html.dark-mode .chip.wa { background: rgba(86, 227, 159, 0.16); color: #56e39f; }
html.dark-mode .mail-offer-chip { background: rgba(185, 167, 255, 0.16); color: #d4c6ff; }
html.dark-mode .chip.actor-o,
html.dark-mode .chip.actor-onur,
html.dark-mode .cal-owner-onur { background: rgba(255, 107, 53, 0.16); color: #ff9870; border-color: rgba(255, 107, 53, 0.3); }
html.dark-mode .chip.actor-j,
html.dark-mode .chip.actor-jenny,
html.dark-mode .cal-owner-jenny { background: rgba(185, 167, 255, 0.18); color: #d4c6ff; border-color: rgba(185, 167, 255, 0.32); }
html.dark-mode .chip.actor-lost { background: rgba(255, 85, 73, 0.16); color: #ff7b72; border-color: rgba(255, 85, 73, 0.3); }
html.dark-mode .chip.actor-dnc { background: #262636; color: #f5f5f7; border-color: rgba(255, 255, 255, 0.16); }

/* Jagd Corner Badges */
html.dark-mode .hunt-corner-fresh {
  background: rgba(86, 227, 159, 0.16);
  color: #56e39f;
  border-color: rgba(86, 227, 159, 0.35);
}
html.dark-mode .hunt-call-row,
html.dark-mode .hunt-channel {
  background: #1b1b26;
  border-color: rgba(255, 255, 255, 0.13);
  color: #d4d4e0;
}
html.dark-mode .hunt-call-jenny { color: #d4c6ff; }
html.dark-mode .hunt-call-onur { color: #ff9870; }
html.dark-mode .hunt-call-jenny .hunt-call-letter { background: #b9a7ff; color: #0b0b0e; -webkit-text-fill-color: #0b0b0e; }
html.dark-mode .hunt-call-onur .hunt-call-letter { background: #ff6b35; color: #0b0b0e; -webkit-text-fill-color: #0b0b0e; }

/* Calendar Kind Badges & Scope Switchers */
html.dark-mode .cal-kind.callback { background: rgba(247, 178, 103, 0.18); color: #f7b267; }
html.dark-mode .cal-kind.appointment { background: rgba(86, 227, 159, 0.18); color: #56e39f; }
html.dark-mode .cal-kind.email,
html.dark-mode .cal-kind.website { background: rgba(185, 167, 255, 0.18); color: #d4c6ff; }
html.dark-mode .cal-kind.brief,
html.dark-mode .cal-kind.app { background: rgba(255, 107, 53, 0.18); color: #ff9870; }
html.dark-mode .cal-kind.mailbox { background: rgba(255, 255, 255, 0.08); color: #a0a0b0; }
html.dark-mode .pipe-scope,
html.dark-mode .filter-extra {
  background: #14141d;
  border-color: rgba(255, 255, 255, 0.11);
}
html.dark-mode .pipe-scope-btn { color: #9a9aa8; }
html.dark-mode .pipe-scope-btn.is-on {
  background: #ff6b35;
  color: #0b0b0e;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(255, 107, 53, 0.28);
}
html.dark-mode .pipe-scope-btn[data-scope="jenny"].is-on,
html.dark-mode .pipe-scope-btn[data-cal-scope="jenny"].is-on {
  background: linear-gradient(135deg, #b9a7ff, #967ef0);
  color: #0b0b0e;
  box-shadow: 0 4px 14px rgba(185, 167, 255, 0.28);
}
html.dark-mode .pipe-scope-btn[data-scope="onur"].is-on,
html.dark-mode .pipe-scope-btn[data-cal-scope="onur"].is-on {
  background: linear-gradient(135deg, #ff6b35, #f2541b);
  color: #0b0b0e;
  box-shadow: 0 4px 14px rgba(255, 107, 53, 0.28);
}
html.dark-mode .bucket.is-on,
html.dark-mode .cal-day-chip.is-on {
  border-color: #ff6b35;
  background: rgba(255, 107, 53, 0.16);
  color: #ff7847;
}
html.dark-mode .cal-day-chip {
  background: #13131b;
  border-color: rgba(255, 255, 255, 0.1);
  color: #e5e5ef;
}

/* Sheet, Lead Dossier & Modals */
html.dark-mode .sheet-backdrop,
html.dark-mode .fu-overlay {
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(6px);
}
html.dark-mode .sheet-panel,
html.dark-mode .fu-modal,
html.dark-mode .mail-read {
  background: #111118;
  border-color: rgba(255, 255, 255, 0.14);
  color: #f5f5f7;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.75);
}
html.dark-mode .sheet-top {
  background: linear-gradient(180deg, rgba(17, 17, 24, 0.98) 55%, rgba(17, 17, 24, 0.88) 85%, transparent);
}
html.dark-mode .sheet-handle { background: rgba(255, 255, 255, 0.25); }
html.dark-mode .sheet-close,
html.dark-mode .map-hud-x {
  background: #222230;
  border-color: rgba(255, 255, 255, 0.16);
  color: #f5f5f7;
}
html.dark-mode .lead-focus-row,
html.dark-mode .lead-focus-section,
html.dark-mode .lead-outcome,
html.dark-mode .score-pick,
html.dark-mode .script-chip,
html.dark-mode .akte-channel-btn,
html.dark-mode .lead-akte-pill,
html.dark-mode .fu-result {
  background: #191924;
  border-color: rgba(255, 255, 255, 0.13);
  color: #f2f2f7;
}
html.dark-mode .lead-akte-pill.is-on,
html.dark-mode .akte-channel-btn.is-on,
html.dark-mode .fu-result.is-on,
html.dark-mode .lead-outcome.is-on {
  border-color: #b9a7ff;
  background: rgba(185, 167, 255, 0.18);
  color: #d4c6ff;
}
html.dark-mode .lead-outcome.is-good.is-on {
  border-color: #56e39f;
  background: rgba(86, 227, 159, 0.18);
  color: #56e39f;
}
html.dark-mode .lead-outcome.is-bad.is-on {
  border-color: #ff5549;
  background: rgba(255, 85, 73, 0.18);
  color: #ff7b72;
}
html.dark-mode .wish-chip.is-on {
  border-color: #ff6b35 !important;
  background: rgba(255, 107, 53, 0.18) !important;
  color: #ff9870 !important;
}
html.dark-mode .follow-box,
html.dark-mode .fu-sheet-bar,
html.dark-mode .econ-card {
  background: rgba(185, 167, 255, 0.08);
  border-color: rgba(185, 167, 255, 0.24);
}
html.dark-mode .econ-row.good b,
html.dark-mode .web-mark.ok { color: #56e39f; }
html.dark-mode .web-mark.miss { color: #ff7b72; }
html.dark-mode .call-history .item {
  background: #14141d;
  border-color: rgba(255, 255, 255, 0.08);
  color: #c2c2d0;
}
html.dark-mode .lead-star { color: rgba(255, 255, 255, 0.22); }
html.dark-mode .lead-star.is-on { color: #f7b267; }
html.dark-mode .sell-card {
  background: rgba(185, 167, 255, 0.1);
  border-color: rgba(185, 167, 255, 0.28);
}
html.dark-mode .sell-score-n { color: #d4c6ff; }
html.dark-mode .sell-lines li,
html.dark-mode .sell-platz { color: #f5f5f7; }
html.dark-mode .fu-item.is-overdue .fu-card {
  border-color: rgba(255, 107, 53, 0.45);
  background: linear-gradient(90deg, rgba(255, 107, 53, 0.12) 0%, #13131b 50%);
}
html.dark-mode .fu-check { background: rgba(86, 227, 159, 0.18); color: #56e39f; border-color: rgba(86, 227, 159, 0.45); }
html.dark-mode .fu-x { background: rgba(255, 85, 73, 0.18); color: #ff7b72; border-color: rgba(255, 85, 73, 0.4); }

/* Dashboard Germany Map — Batmobile Tactical Radar + Telemetry */
html.dark-mode .geo-card {
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.015) 0px, rgba(255, 255, 255, 0.015) 1px, transparent 1px, transparent 7px),
    linear-gradient(180deg, #14141e 0%, #0b0b12 100%);
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
html.dark-mode .geo-card-stat .n {
  font-family: var(--mono);
  color: #d4c6ff;
  text-shadow: 0 0 18px rgba(191, 176, 255, 0.35);
}
html.dark-mode .de-map-wrap {
  background:
    radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, transparent 28%, rgba(191, 176, 255, 0.06) 28.5%, transparent 29%),
    radial-gradient(circle at 50% 50%, transparent 52%, rgba(191, 176, 255, 0.05) 52.5%, transparent 53%),
    radial-gradient(ellipse at 35% 28%, rgba(185, 167, 255, 0.2), transparent 55%),
    radial-gradient(ellipse at 68% 72%, rgba(255, 107, 53, 0.15), transparent 52%),
    linear-gradient(165deg, #08080d 0%, #11111a 100%);
  background-size: 14px 14px, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
  border-color: rgba(191, 176, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 0 40px rgba(0, 0, 0, 0.7), 0 12px 34px rgba(0, 0, 0, 0.55);
}
.map-radar-sweep {
  position: absolute;
  width: 440px;
  height: 440px;
  left: 50%;
  top: 50%;
  margin-left: -220px;
  margin-top: -220px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(86, 227, 159, 0.16) 0deg, rgba(191, 176, 255, 0.06) 40deg, transparent 90deg, transparent 360deg);
  pointer-events: none;
  z-index: 0;
  animation: radarSweep 9s linear infinite;
}
.map-hud-corners {
  position: absolute;
  inset: 8px;
  pointer-events: none;
  z-index: 2;
}
.map-hud-corners i {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: rgba(255, 107, 43, 0.65);
  border-style: solid;
}
.map-hud-corners i:nth-child(1) { top: 0; left: 0; border-width: 2px 0 0 2px; }
.map-hud-corners i:nth-child(2) { top: 0; right: 0; border-width: 2px 2px 0 0; }
.map-hud-corners i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.map-hud-corners i:nth-child(4) { bottom: 0; right: 0; border-width: 0 2px 2px 0; }
.map-hud-telemetry {
  position: absolute;
  left: 14px;
  bottom: 10px;
  z-index: 2;
  pointer-events: none;
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: rgba(86, 227, 159, 0.85);
  background: rgba(8, 8, 13, 0.78);
  padding: 3px 7px;
  border-radius: 5px;
  border: 1px solid rgba(86, 227, 159, 0.28);
}
html.dark-mode .de-map-glow {
  background:
    radial-gradient(ellipse at 35% 30%, rgba(185, 167, 255, 0.2), transparent 52%),
    radial-gradient(ellipse at 72% 68%, rgba(86, 227, 159, 0.12), transparent 48%),
    radial-gradient(ellipse at 50% 90%, rgba(255, 107, 53, 0.12), transparent 45%);
}
html.dark-mode .de-pin-svg.tone-fresh { stroke: rgba(218, 208, 255, 0.75); stroke-width: 0.65; }
html.dark-mode .de-pin-svg.tone-called { stroke: rgba(247, 178, 103, 0.75); stroke-width: 0.65; }
html.dark-mode .de-pin-svg.tone-interest { stroke: rgba(86, 227, 159, 0.8); stroke-width: 0.7; }
html.dark-mode .de-pin-svg.tone-lost { stroke: rgba(255, 85, 73, 0.7); stroke-width: 0.65; }
html.dark-mode .de-pin-group.is-on .de-pin-svg { stroke: #ffffff; stroke-width: 1.4; }
html.dark-mode .map-tone-chip .dot,
html.dark-mode .map-top-item .tone-dot,
html.dark-mode .map-legend .fresh::before { background: #b9a7ff; }
html.dark-mode .map-tone-chip .dot.tone-called,
html.dark-mode .map-top-item .tone-dot.tone-called,
html.dark-mode .map-legend .called::before { background: #f7b267; }
html.dark-mode .map-tone-chip .dot.tone-interest,
html.dark-mode .map-top-item .tone-dot.tone-interest,
html.dark-mode .map-legend .interest::before { background: #56e39f; }
html.dark-mode .map-tone-chip .dot.tone-lost,
html.dark-mode .map-top-item .tone-dot.tone-lost,
html.dark-mode .map-legend .lost::before { background: #ff5549; }
html.dark-mode .map-mini-chip.is-on,
html.dark-mode .map-tone-chip.is-on,
html.dark-mode .map-legend .ml.is-on {
  color: #0b0b0e;
  background: #b9a7ff;
  border-color: transparent;
  font-weight: 800;
}
html.dark-mode .map-zoom-controls button,
html.dark-mode #map-zoom-label,
html.dark-mode .map-hud,
html.dark-mode .map-top-item {
  background: #181822;
  border-color: rgba(255, 255, 255, 0.13);
  color: #f5f5f7;
}
html.dark-mode .map-top-item.is-on {
  border-color: #b9a7ff;
  background: rgba(185, 167, 255, 0.16);
}
html.dark-mode .map-top-item .rank {
  background: rgba(185, 167, 255, 0.18);
  color: #d4c6ff;
}
html.dark-mode .de-city-label {
  fill: #f5f5f7;
  stroke: rgba(10, 10, 14, 0.94);
}
html.dark-mode .de-city-label .de-city-n { fill: #d4c6ff; }

/* Login & Line Picker in Dark Mode */
html.dark-mode .login-box,
html.dark-mode .line-pick-card,
html.dark-mode .apple-cal-panel-inner {
  background: #12121a;
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.72);
}
html.dark-mode .login-pick-btn {
  background: #1a1a25;
  border-color: rgba(255, 255, 255, 0.13);
  color: #f5f5f7;
}
html.dark-mode .login-pick-btn.is-on {
  background: linear-gradient(135deg, #ff6b35, #f2541b);
  color: #0b0b0e;
}
html.dark-mode .login-pick-btn[data-login-user="jenny"].is-on {
  background: linear-gradient(135deg, #b9a7ff, #967ef0);
  color: #0b0b0e;
}
html.dark-mode .login-title {
  background: linear-gradient(135deg, #ffffff 20%, #ff6b35 120%);
  -webkit-background-clip: text;
  background-clip: text;
}
html.dark-mode .apple-cal-pill {
  background: #1a1a25;
  border-color: rgba(255, 255, 255, 0.15);
  color: #f5f5f7;
  box-shadow: none;
}
html.dark-mode .apple-cal-pill.is-open {
  background: #ff6b35;
  border-color: #ff6b35;
  color: #0b0b0e;
}
html.dark-mode .degrade-banner {
  background: rgba(247, 178, 103, 0.14);
  border-color: rgba(247, 178, 103, 0.4);
  color: #f7b267;
}
html.dark-mode .skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.1), rgba(255,255,255,.04));
  background-size: 200% 100%;
}
@media (max-width: 420px) {
  .rule-banner { grid-template-columns: 74px 1fr; }
  .rule-badge b { font-size: 30px; }
  .rule-steps { grid-template-columns: repeat(2, 1fr); }
}

