:root {
  --vlm-navy: #0c223c;
  --vlm-navy-soft: #1a3a62;
  --vlm-green: #1f8a70;
  --vlm-green-dark: #176b56;
  --vlm-neon: #ff2d8b;
  --vlm-neon-hot: #ff5aad;
  --vlm-neon-deep: #c40068;
  --vlm-cyan: #22d3ee;
  --vlm-bg: #e8eef6;
  --vlm-card: rgba(255, 255, 255, 0.92);
  --vlm-border: rgba(210, 222, 236, 0.95);
  --vlm-text: #152033;
  --vlm-muted: #64748b;
  --vlm-status-new: #0f2744;
  --vlm-status-called-no: #3b82c4;
  --vlm-status-called-yes: #1f8a70;
  --vlm-status-appointment: #16a34a;
  --vlm-status-planning: #7c3aed;
  --vlm-status-negative: #94a3b8;
  --vlm-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 12px 32px rgba(12, 34, 60, 0.08),
    0 2px 6px rgba(12, 34, 60, 0.04);
  --vlm-glow: 0 0 22px rgba(255, 45, 139, 0.42);
  --vlm-glow-soft: 0 0 28px rgba(255, 45, 139, 0.18);
  --vlm-radius: 1.05rem;
  --vlm-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --vlm-font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--vlm-font);
  background-color: #e6edf6;
  background-image:
    radial-gradient(ellipse 70% 45% at 100% -5%, rgba(255, 45, 139, 0.14), transparent 55%),
    radial-gradient(ellipse 55% 40% at -5% 95%, rgba(34, 211, 238, 0.1), transparent 50%),
    radial-gradient(ellipse 40% 30% at 55% 40%, rgba(15, 39, 68, 0.05), transparent 60%),
    linear-gradient(rgba(15, 39, 68, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 39, 68, 0.028) 1px, transparent 1px),
    linear-gradient(180deg, #f5f8fc 0%, var(--vlm-bg) 55%, #e4ebf4 100%);
  background-size: auto, auto, auto, 48px 48px, 48px 48px, auto;
  background-attachment: fixed;
  color: var(--vlm-text);
  -webkit-font-smoothing: antialiased;
}
body.vlm-dialog-open { overflow: hidden; }

a { color: var(--vlm-navy-soft); text-decoration: none; transition: color .18s var(--vlm-ease); }
a:hover { color: var(--vlm-neon-deep); }

.app-shell { min-height: 100vh; display: flex; }

.sidebar {
  width: 268px;
  background:
    radial-gradient(circle at 50% -8%, rgba(255, 45, 139, 0.32), transparent 46%),
    radial-gradient(circle at 100% 80%, rgba(34, 211, 238, 0.1), transparent 36%),
    linear-gradient(175deg, #04050a 0%, #0a1020 48%, #121c30 100%);
  color: #fff;
  padding: 0.75rem 0.85rem 0.9rem;
  flex-shrink: 0;
  box-shadow:
    8px 0 36px rgba(0, 0, 0, 0.32),
    inset -1px 0 0 rgba(255, 45, 139, 0.12);
  position: sticky;
  top: 0;
  height: 100vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 2;
}

.brand-block { margin-bottom: 0.65rem; flex: 0 0 auto; }
.brand-logo-wrap {
  background: #000;
  border-radius: 0.85rem;
  padding: 0.28rem;
  margin-bottom: 0.45rem;
  max-width: 7.5rem;
  box-shadow:
    0 0 0 1px rgba(255, 45, 139, 0.45),
    0 0 24px rgba(255, 45, 139, 0.28),
    0 0 36px rgba(34, 211, 238, 0.06),
    0 10px 20px rgba(0, 0, 0, 0.4);
  transition: box-shadow .35s var(--vlm-ease);
}
.brand-logo-wrap:hover {
  box-shadow:
    0 0 0 1px rgba(255, 90, 173, 0.65),
    0 0 32px rgba(255, 45, 139, 0.4),
    0 0 48px rgba(34, 211, 238, 0.1),
    0 10px 20px rgba(0, 0, 0, 0.4);
}
.brand-logo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 4.4rem;
  object-fit: contain;
  border-radius: 0.65rem;
}
.brand-copy .brand,
.sidebar .brand {
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 0.08rem;
}
.brand-copy .brand-sub,
.sidebar .brand-sub {
  color: rgba(255,255,255,0.68);
  font-size: 0.7rem;
  margin-bottom: 0;
  line-height: 1.25;
}
.brand-block-inline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0;
  min-width: 0;
}
.brand-block-inline .brand-logo-wrap {
  width: 52px;
  flex-shrink: 0;
  margin-bottom: 0;
  padding: 0.22rem;
  border-radius: 0.85rem;
}
.brand-block-inline .brand-copy { min-width: 0; }
.sidebar .vlm-nav {
  flex: 0 0 auto;
  margin-bottom: 0.35rem;
}
.sidebar .nav-link {
  color: rgba(255,255,255,0.78);
  border-radius: 0.9rem;
  padding: 0.55rem 0.7rem;
  margin-bottom: 0.18rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.88rem;
  border: 1px solid transparent;
  transition: background .2s var(--vlm-ease), box-shadow .2s var(--vlm-ease), color .2s var(--vlm-ease), border-color .2s var(--vlm-ease), transform .2s var(--vlm-ease);
}
.sidebar .nav-link svg { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.9; }
.sidebar .nav-link:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.06);
  transform: translateX(2px);
}
html[dir="rtl"] .sidebar .nav-link:hover { transform: translateX(-2px); }
.sidebar .nav-link.active {
  background: linear-gradient(90deg, rgba(255, 45, 139, 0.22) 0%, rgba(255, 45, 139, 0.08) 100%);
  color: #fff;
  border-color: rgba(255, 45, 139, 0.28);
  box-shadow:
    inset 3px 0 0 var(--vlm-neon),
    0 0 0 1px rgba(255, 45, 139, 0.18),
    0 0 24px rgba(255, 45, 139, 0.22),
    0 8px 20px rgba(0, 0, 0, 0.2);
}
.sidebar .nav-link.nav-link-notes {
  color: #7ee0c8;
}
.sidebar .nav-link.nav-link-notes:hover {
  color: #b8f5e6;
  background: rgba(45, 212, 191, 0.1);
  border-color: rgba(45, 212, 191, 0.18);
}
.sidebar .nav-link.nav-link-notes.active {
  background: linear-gradient(90deg, rgba(45, 212, 191, 0.24) 0%, rgba(45, 212, 191, 0.08) 100%);
  color: #fff;
  border-color: rgba(45, 212, 191, 0.32);
  box-shadow:
    inset 3px 0 0 #2dd4bf,
    0 0 0 1px rgba(45, 212, 191, 0.2),
    0 0 22px rgba(45, 212, 191, 0.2),
    0 8px 20px rgba(0, 0, 0, 0.2);
}
html[dir="rtl"] .sidebar .nav-link.active {
  background: linear-gradient(270deg, rgba(255, 45, 139, 0.22) 0%, rgba(255, 45, 139, 0.08) 100%);
  box-shadow:
    inset -3px 0 0 var(--vlm-neon),
    0 0 0 1px rgba(255, 45, 139, 0.18),
    0 0 24px rgba(255, 45, 139, 0.22),
    0 8px 20px rgba(0, 0, 0, 0.2);
}
html[dir="rtl"] .sidebar .nav-link.nav-link-notes.active {
  background: linear-gradient(270deg, rgba(45, 212, 191, 0.24) 0%, rgba(45, 212, 191, 0.08) 100%);
  box-shadow:
    inset -3px 0 0 #2dd4bf,
    0 0 0 1px rgba(45, 212, 191, 0.2),
    0 0 22px rgba(45, 212, 191, 0.2),
    0 8px 20px rgba(0, 0, 0, 0.2);
}

.main-area { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: relative;
  z-index: 1040;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  border-bottom: 1px solid rgba(226, 234, 244, 0.85);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset, 0 8px 24px rgba(12, 34, 60, 0.04);
  padding: 0.7rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.topbar-mid {
  flex: 1 1 auto;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0.65rem;
  min-width: 0;
}
.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  min-width: 0;
  flex: 0 0 auto;
}
.topbar-account { display: contents; }
.topbar-controls { display: contents; }
.topbar-quote {
  flex: 1 1 34rem;
  min-width: 24rem;
  max-width: 44rem;
  padding: 0.32rem 0.75rem 0.4rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(243, 213, 228, 0.9);
  background:
    linear-gradient(135deg, rgba(255, 247, 251, 0.95) 0%, rgba(255, 255, 255, 0.88) 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5) inset, 0 6px 18px rgba(255, 45, 139, 0.06);
}
.topbar-quote-kicker {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--vlm-neon-deep);
  line-height: 1.2;
}
.topbar-quote-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
  min-width: 0;
}
.topbar-quote-text {
  flex: 1 1 100%;
  min-width: 0;
  white-space: normal;
  overflow: visible;
  font-size: 0.84rem;
  font-weight: 600;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--vlm-navy);
  line-height: 1.4;
}
.topbar-quote-source {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 700;
  color: #6b7280;
}
.content { padding: 1.25rem; }

.card-soft {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.97) 0%, rgba(248, 251, 255, 0.94) 100%);
  border: 1px solid rgba(214, 226, 240, 0.95);
  border-radius: var(--vlm-radius);
  box-shadow: var(--vlm-shadow);
  backdrop-filter: blur(8px);
}

.page-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.page-header h1 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--vlm-navy);
}
.page-subtitle { color: var(--vlm-muted); font-size: 0.92rem; margin-top: 0.2rem; }
.page-header-stack {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.95rem;
}
.page-header-copy { max-width: 42rem; }
.lead-action-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 0.7rem;
  width: 100%;
  padding: 0.95rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(243, 248, 252, 0.95) 100%);
  border: 1px solid rgba(215, 227, 240, 0.95);
  border-radius: 1.25rem;
  box-shadow: var(--vlm-shadow);
}
.lead-action-form { margin: 0; }
.lead-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 50px;
  padding: 0.72rem 1.25rem;
  border: 0;
  border-radius: 0.95rem;
  font-weight: 700;
  font-size: 0.96rem;
  line-height: 1.2;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(15, 39, 68, 0.14);
  transition: transform .2s var(--vlm-ease), box-shadow .2s var(--vlm-ease), filter .2s var(--vlm-ease);
}
.lead-action svg { width: 18px; height: 18px; flex-shrink: 0; }
.lead-action:hover { color: #fff; transform: translateY(-3px); filter: brightness(1.06); }
.lead-action:active { transform: translateY(-1px); }
.lead-action-meta {
  background: linear-gradient(180deg, #3dd2a3 0%, #1f8a70 100%);
  box-shadow: 0 12px 26px rgba(31, 138, 112, 0.34), 0 0 22px rgba(31, 138, 112, 0.28);
  min-width: 170px;
  font-size: 1.02rem;
}
.lead-action-assign {
  background: linear-gradient(180deg, #ff7ec2 0%, var(--vlm-neon) 48%, var(--vlm-neon-deep) 100%);
  box-shadow:
    0 12px 28px rgba(255, 45, 139, 0.42),
    0 0 28px rgba(255, 45, 139, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.18) inset;
}
.lead-action-excel {
  background: linear-gradient(180deg, #5aa0e0 0%, #1d4f91 100%);
  box-shadow: 0 12px 24px rgba(29, 79, 145, 0.28), 0 0 18px rgba(59, 130, 196, 0.18);
}
.lead-action-test {
  background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%);
  color: #1f2937;
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.28);
}
.lead-action-test:hover { color: #111827; }
.back-link { color: var(--vlm-muted); display: inline-block; margin-bottom: 0.25rem; }
.back-link:hover { color: var(--vlm-neon-deep); }

.daily-quote {
  position: relative;
  overflow: hidden;
  padding: 1.25rem 1.35rem 1.2rem;
  border-radius: 1.2rem;
  border: 1px solid #f3d5e4;
  background:
    linear-gradient(135deg, #fff7fb 0%, #fffdf8 55%, #f7f3ea 100%);
  box-shadow: var(--vlm-shadow);
}
.daily-quote-embed {
  margin-top: 0.85rem;
  padding: 0.85rem 0.95rem 0.8rem;
  border-radius: 1rem;
  box-shadow: none;
}
.daily-quote-mark {
  position: absolute;
  top: -0.35rem;
  inset-inline-start: 0.7rem;
  font-size: 5rem;
  line-height: 1;
  color: rgba(255, 45, 139, 0.16);
  font-family: Georgia, "Times New Roman", serif;
  pointer-events: none;
}
.daily-quote-embed .daily-quote-mark { font-size: 4.2rem; top: -0.2rem; }
.daily-quote-kicker {
  position: relative;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vlm-neon-deep);
  margin-bottom: 0.45rem;
}
.daily-quote-text {
  position: relative;
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--vlm-navy);
  font-weight: 600;
  font-family: Georgia, "Times New Roman", serif;
}
.daily-quote-embed .daily-quote-text { font-size: 1.02rem; line-height: 1.5; }
.daily-quote-source {
  position: relative;
  display: block;
  margin-top: 0.65rem;
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 700;
  color: #6b7280;
}
.dash-panel {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(214, 226, 240, 0.95);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75) inset,
    0 14px 36px rgba(12, 34, 60, 0.08),
    0 0 24px rgba(255, 45, 139, 0.05);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #f7fafd 100%);
}
.dash-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0.75rem 1.1rem;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 45, 139, 0.36) 0%, transparent 52%),
    radial-gradient(90% 120% at 0% 100%, rgba(34, 211, 238, 0.16) 0%, transparent 48%),
    linear-gradient(120deg, #0b1f36 0%, #143556 58%, #0e4f63 100%);
  color: #fff;
  position: relative;
}
.dash-panel-head::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 45, 139, 0.55), rgba(34, 211, 238, 0.35), transparent);
}
.dash-panel-head h2,
.dash-panel-head .h5 {
  margin: 0;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.015em;
}
.dash-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 750;
  box-shadow: 0 0 14px rgba(255, 45, 139, 0.15);
  transition: background .18s var(--vlm-ease), border-color .18s var(--vlm-ease), transform .18s var(--vlm-ease);
}
a.dash-chip:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 182, 216, 0.55);
  color: #fff;
  transform: translateY(-1px);
}
.dash-panel > .muted {
  padding: 0.95rem 1.1rem;
  margin: 0;
}
.dash-panel > .status-legend {
  margin: 0.85rem 1.1rem 1rem;
}
.dash-panel > .focus-list {
  margin: 0.35rem 0.7rem 0;
  flex: 1 1 auto;
}
.dash-panel > .focus-summary {
  margin: 0.75rem 1.1rem 1.05rem;
}
.dash-panel > .perf-legend {
  margin: 0.55rem 1.1rem 0;
}
.dash-panel > .perf-list {
  margin: 0 1.1rem 1rem;
}
.dash-panel-compact {
  min-height: 0;
}
.dash-twin-row > [class*="col-"] {
  display: flex;
}
.dash-panel-fill {
  flex: 1 1 auto;
  min-height: 100%;
  align-self: stretch;
}
.dash-panel-fill > .status-legend,
.dash-panel-fill > .perf-list {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  min-height: 0;
}
.dash-panel-fill.dash-panel-compact > .status-legend {
  flex: 1 1 auto;
  margin: 0.55rem 0.95rem 0.75rem;
  gap: 0.12rem;
}
.dash-panel-fill.dash-panel-compact > .perf-legend {
  margin: 0.45rem 0.9rem 0;
  padding: 0 0.45rem;
  font-size: 0.7rem;
}
.dash-panel-fill.dash-panel-compact > .perf-list {
  flex: 1 1 auto;
  margin: 0 0.9rem 0.75rem;
}
.dash-panel-fill .status-legend-item {
  flex: 1 1 0;
  min-height: 2.15rem;
  padding: 0.28rem 0.4rem;
  gap: 0.6rem;
  align-items: center;
}
.dash-panel-fill .status-dot {
  width: 10px;
  height: 10px;
  margin-top: 0;
}
.dash-panel-fill .status-legend-label {
  font-size: 0.95rem;
}
.dash-panel-fill .status-legend-value {
  font-size: 0.98rem;
  font-weight: 800;
}
.dash-panel-fill .status-legend-percent {
  font-size: 0.84rem;
  min-width: 2.4rem;
}
.dash-panel-fill .status-track {
  height: 5px;
  margin-top: 0.28rem;
}
.dash-panel-fill .perf-row {
  flex: 1 1 0;
  min-height: 2.55rem;
  padding: 0.42rem 0.5rem;
  gap: 0.55rem;
  grid-template-columns: 32px minmax(5rem, 1.1fr) minmax(2.6rem, 0.75fr) auto;
}
.dash-panel-fill .perf-legend {
  grid-template-columns: 32px minmax(5rem, 1.1fr) minmax(2.6rem, 0.75fr) auto;
}
.dash-panel-fill .perf-avatar {
  width: 32px;
  height: 32px;
  font-size: 0.74rem;
  border-radius: 9px;
}
.dash-panel-fill .perf-name {
  font-size: 0.98rem;
}
.dash-panel-fill .perf-badge {
  font-size: 0.66rem;
  padding: 0.1rem 0.42rem;
}
.dash-panel-fill .perf-bar {
  height: 5px;
}
.dash-panel-fill .perf-nums {
  font-size: 0.88rem;
  column-gap: 0.32rem;
  grid-template-columns: 2.8rem 2.4rem 2.8rem 2.3rem 2.4rem 2.4rem 2.6rem;
}
.dash-panel-fill .perf-nums strong {
  font-size: 1.02rem;
}
.dash-panel-fill .perf-legend,
.dash-panel-fill .perf-legend .perf-nums {
  font-size: 0.68rem;
  letter-spacing: 0;
}
.dash-panel-fill .dash-panel-head h2,
.dash-panel-fill .dash-panel-head .h5 {
  font-size: 1.05rem;
}
.dash-panel-fill .dash-chip {
  min-height: 1.55rem;
  font-size: 0.78rem;
  padding: 0.14rem 0.62rem;
}
.dash-panel-compact .dash-panel-head {
  padding: 0.55rem 0.95rem;
}
.dash-panel-compact .dash-panel-head h2,
.dash-panel-compact .dash-panel-head .h5 {
  font-size: 0.98rem;
}
.dash-panel-compact .dash-chip {
  min-height: 1.45rem;
  padding: 0.12rem 0.55rem;
  font-size: 0.72rem;
}
.dash-panel-compact > .status-legend {
  margin: 0.5rem 0.85rem 0.65rem;
  gap: 0.22rem;
  justify-content: flex-start;
  flex: 0 0 auto;
}
.dash-panel-compact .status-legend-item {
  padding: 0.15rem 0.3rem;
  gap: 0.5rem;
}
.dash-panel-compact .status-dot {
  width: 8px;
  height: 8px;
  margin-top: 0.35rem;
}
.dash-panel-compact .status-legend-label {
  font-size: 0.82rem;
}
.dash-panel-compact .status-legend-value {
  font-size: 0.84rem;
}
.dash-panel-compact .status-legend-percent {
  font-size: 0.74rem;
  min-width: 2.1rem;
}
.dash-panel-compact .status-track {
  height: 4px;
  margin-top: 0.18rem;
}
.dash-panel-compact > .perf-legend {
  margin: 0.35rem 0.75rem 0;
  padding: 0 0.4rem;
}
.dash-panel-compact > .perf-list {
  margin: 0 0.75rem 0.65rem;
  flex: 0 0 auto;
}
.dash-panel-compact .perf-row {
  flex: 0 0 auto;
  min-height: 0;
  padding: 0.3rem 0.4rem;
  border-radius: 0.55rem;
  transition: background .15s var(--vlm-ease), box-shadow .15s var(--vlm-ease);
}
.dash-panel-compact .perf-row:hover {
  background: linear-gradient(90deg, rgba(255, 247, 251, 0.9) 0%, #f8fafc 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 45, 139, 0.1);
}
.dash-panel-compact .perf-row-1 {
  background: linear-gradient(90deg, rgba(255, 247, 237, 0.95) 0%, rgba(255, 251, 235, 0.6) 100%);
  box-shadow: inset 3px 0 0 #f59e0b;
}
.dash-panel-compact .perf-row-1:hover {
  background: linear-gradient(90deg, #fff7ed 0%, #fffbeb 100%);
}
.dash-panel-compact .perf-avatar {
  width: 26px;
  height: 26px;
  font-size: 0.64rem;
  border-radius: 7px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25) inset;
}
.dash-panel-compact .perf-name {
  font-size: 0.84rem;
}
.dash-panel-compact .perf-bar {
  height: 3px;
}
.dash-panel-compact .perf-bar-fill {
  background: linear-gradient(90deg, #1c3b63 0%, var(--vlm-neon) 100%);
  box-shadow: 0 0 8px rgba(255, 45, 139, 0.25);
}
.dash-panel-compact .perf-nums {
  font-size: 0.74rem;
}
.dash-panel-compact .perf-nums strong {
  font-size: 0.86rem;
}
.dash-panel-compact .perf-legend {
  font-size: 0.6rem;
}
.dash-panel-compact .perf-legend .perf-nums {
  font-size: 0.58rem;
  letter-spacing: -0.02em;
}
.dash-panel-compact > .muted {
  padding: 0.7rem 0.95rem;
}
.dash-panel-compact > .focus-list {
  margin: 0.2rem 0.55rem 0;
  gap: 0.2rem;
  flex: 0 0 auto;
}
.dash-panel-compact .focus-row {
  padding: 0.32rem 0.5rem;
  gap: 0.45rem;
  border-radius: 0.55rem;
}
.dash-panel-compact .focus-row:hover {
  transform: none;
}
.dash-panel-compact .focus-name {
  font-size: 0.84rem;
}
.dash-panel-compact .focus-status {
  font-size: 0.7rem;
}
.dash-panel-compact .focus-open {
  font-size: 0.68rem;
  padding: 0.18rem 0.42rem;
}
.dash-panel-compact .focus-row .status-dot {
  width: 8px;
  height: 8px;
  box-shadow: 0 0 0 2px rgba(15, 39, 68, 0.05);
}
.dash-panel-compact > .focus-summary {
  margin: 0.4rem 0.65rem 0.6rem;
  padding: 0.45rem 0.6rem;
}
.dash-panel-compact .focus-summary-title {
  font-size: 0.64rem;
  margin-bottom: 0.3rem;
}
.dash-panel-compact .focus-summary-chip {
  padding: 0.28rem 0.5rem;
  gap: 0.28rem;
}
.dash-panel-compact .focus-summary-chip strong {
  font-size: 0.88rem;
}
.dash-panel-compact .focus-summary-chip span {
  font-size: 0.68rem;
}
.insight-panel { padding: 0; overflow: hidden; }
.insight-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.05rem 0.75rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(34, 197, 94, 0.16), transparent 42%),
    linear-gradient(135deg, #0f2744 0%, #1c3b63 58%, #16324f 100%);
  color: #fff;
  cursor: pointer;
  list-style: none;
}
.insight-hero::-webkit-details-marker { display: none; }
.insight-hero::marker { content: ""; }
.insight-hero:hover { filter: brightness(1.06); }
.insight-hero:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -2px;
}
.insight-hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}
.insight-chevron {
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid rgba(255, 255, 255, 0.85);
  border-bottom: 2px solid rgba(255, 255, 255, 0.85);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
  margin-top: -0.15rem;
}
.insight-panel[open] .insight-chevron {
  transform: rotate(225deg);
  margin-top: 0.15rem;
}
.insight-kicker {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.insight-title { color: #fff; font-weight: 750; }
.insight-sub {
  margin-top: 0.18rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.78);
}
.insight-count {
  min-width: 1.7rem;
  height: 1.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.78rem;
  font-weight: 800;
}
.insight-headline {
  margin: 0.75rem 1.05rem 0;
  padding: 0.55rem 0.7rem;
  border-radius: 0.7rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 0.84rem;
  font-weight: 650;
}
.insight-team {
  margin: 0.45rem 1.05rem 0;
  font-size: 0.78rem;
  font-weight: 650;
  color: #475569;
}
.insight-summary-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.55rem 1.05rem 0;
}
.insight-summary-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 750;
  border: 1px solid transparent;
}
.insight-summary-chip.is-watch { background: #ffedd5; color: #9a3412; border-color: rgba(251, 146, 60, 0.35); }
.insight-summary-chip.is-focus { background: #dbeafe; color: #1e40af; border-color: rgba(96, 165, 250, 0.35); }
.insight-summary-chip.is-praise { background: #dcfce7; color: #14532d; border-color: rgba(74, 222, 128, 0.35); }
.insight-section-head {
  margin: 0.85rem 1.05rem 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}
.insight-grid-leads {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.insight-card-lead,
.insight-card-featured {
  box-shadow: 0 10px 28px rgba(15, 39, 68, 0.12);
}
.insight-chip-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  align-items: center;
}
.insight-lead-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: #0f2744;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.insight-period {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 650;
  color: #64748b;
}
.insight-period strong {
  color: #0f2744;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-inline-end: 0.2rem;
}
.insight-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}
.insight-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  border: 1px solid #e8edf3;
  background: #fff;
  color: #334155;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
}
.insight-link strong { color: var(--vlm-navy); }
.insight-link:hover {
  border-color: #c9d7ea;
  background: #f8fafc;
  color: var(--vlm-navy);
}
.insight-link.is-primary {
  border-color: rgba(255, 45, 139, 0.28);
  background: #fff7fb;
  color: var(--vlm-neon-deep, #be185d);
}
.insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  padding: 0.8rem 1.05rem 1.05rem;
}
.insight-card {
  padding: 0.75rem 0.8rem 0.7rem;
  border-radius: 0.85rem;
  border: 1px solid #e8edf3;
  background: #fff;
}
.insight-tone-watch {
  border-color: #fb923c;
  background: linear-gradient(180deg, #ffedd5 0%, #fff7ed 42%, #fff 68%);
  box-shadow: inset 3px 0 0 rgba(251, 146, 60, 0.55);
}
.insight-card.insight-tone-praise {
  border-color: #3b82f6;
  background: linear-gradient(180deg, #bfdbfe 0%, #dbeafe 40%, #f8fbff 100%);
  box-shadow: inset 4px 0 0 #2563eb;
}
.insight-card.insight-tone-elite {
  border-color: #22c55e;
  background: linear-gradient(180deg, #bbf7d0 0%, #dcfce7 40%, #f7fef9 100%);
  box-shadow: inset 4px 0 0 #16a34a;
}
.insight-card.insight-tone-focus {
  border-color: #818cf8;
  background: linear-gradient(180deg, #e0e7ff 0%, #eef2ff 42%, #fff 68%);
  box-shadow: inset 3px 0 0 rgba(129, 140, 248, 0.55);
}
.insight-tone-idle { background: #f8fafc; }
.insight-card-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.45rem;
}
.insight-avatar {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  flex-shrink: 0;
}
.insight-card-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  min-width: 0;
  flex: 1;
}
.insight-card-name strong {
  font-size: 0.88rem;
  color: var(--vlm-navy);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.insight-tone-chip {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.12rem 0.42rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  white-space: nowrap;
}
.insight-tone-watch .insight-tone-chip { background: #fed7aa; color: #9a3412; border: 1px solid rgba(251, 146, 60, 0.32); }
.insight-card.insight-tone-praise .insight-tone-chip {
  background: #2563eb;
  color: #fff;
  border: 1px solid #1d4ed8;
}
.insight-card.insight-tone-elite .insight-tone-chip {
  background: #16a34a;
  color: #fff;
  border: 1px solid #15803d;
}
.insight-card.insight-tone-focus .insight-tone-chip {
  background: #c7d2fe;
  color: #4338ca;
  border: 1px solid rgba(129, 140, 248, 0.35);
}
.insight-comment {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #334155;
}
.insight-advice {
  font-size: 0.78rem;
  line-height: 1.4;
  color: #475569;
  padding: 0.42rem 0.55rem;
  border-radius: 0.55rem;
  background: #f8fafc;
}
.insight-advice span {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--vlm-neon-deep, #be185d);
  margin-bottom: 0.12rem;
}
.insight-funnel {
  display: grid;
  gap: 0.28rem;
  margin: 0.15rem 0 0.55rem;
}
.insight-funnel-step {
  display: grid;
  grid-template-columns: 4.6rem minmax(0, 1fr) 3.4rem;
  align-items: center;
  gap: 0.4rem;
}
.insight-funnel-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.insight-funnel-track {
  height: 7px;
  border-radius: 999px;
  background: #eef2f6;
  overflow: hidden;
}
.insight-funnel-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1c3b63 0%, #3b82c4 100%);
}
.insight-funnel-called .insight-funnel-fill { background: linear-gradient(90deg, #1f8a70 0%, #34d399 100%); }
.insight-funnel-appointments .insight-funnel-fill { background: linear-gradient(90deg, #16a34a 0%, #86efac 100%); }
.insight-funnel-blood .insight-funnel-fill { background: linear-gradient(90deg, #ea580c 0%, #fdba74 100%); }
.insight-funnel-treatments .insight-funnel-fill { background: linear-gradient(90deg, #0284c7 0%, #7dd3fc 100%); }
.insight-funnel-nums {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 0.28rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: #94a3b8;
  white-space: nowrap;
}
.insight-funnel-nums strong { color: var(--vlm-navy); font-size: 0.76rem; }
.status-legend-main { min-width: 0; }
.status-legend-top {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.55rem;
  align-items: center;
}
.status-track {
  height: 6px;
  margin-top: 0.35rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #e8eef5 0%, #f1f5f9 100%);
  overflow: hidden;
  box-shadow: inset 0 1px 1px rgba(15, 39, 68, 0.06);
}
.status-track-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  min-width: 0;
  box-shadow: 0 0 10px rgba(15, 39, 68, 0.18);
}
.perf-list {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  gap: 0;
}
.race-panel {
  padding: 0;
  overflow: hidden;
  align-self: start;
}
.race-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  padding: 0.55rem 0.85rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 45, 139, 0.18), transparent 42%),
    linear-gradient(135deg, #0f2744 0%, #1c3b63 58%, #243f68 100%);
  color: #fff;
}
.race-kicker {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
.race-week {
  margin-top: 0.1rem;
  font-size: 0.82rem;
  font-weight: 650;
}
.race-you-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.72rem;
  white-space: nowrap;
}
.race-you-pill strong { font-size: 0.82rem; }
.race-chase {
  margin: 0.45rem 0.85rem 0;
  padding: 0.35rem 0.6rem;
  border-radius: 0.55rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 0.78rem;
  font-weight: 650;
}
.race-chase.after-champion {
  margin-top: 0.75rem;
}
.race-chase.is-leader {
  background: #ecfdf5;
  border-color: #86efac;
  color: #166534;
}
.race-champion {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.45rem 0.85rem 0;
  padding: 0.32rem 0.55rem;
  border-radius: 0.55rem;
  background: linear-gradient(135deg, #fff7ed 0%, #fff 70%);
  border: 1px solid #fed7aa;
  min-width: 0;
}
.race-champion.is-monday {
  background: linear-gradient(135deg, #fef3c7 0%, #fff7ed 55%, #fff 100%);
  border-color: #fbbf24;
}
.race-champion-badge { font-size: 0.95rem; line-height: 1; flex-shrink: 0; }
.race-champion-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
  min-width: 0;
}
.race-champion strong {
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #9a3412;
  white-space: nowrap;
}
.race-champion-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--vlm-navy);
}
.admin-competition {
  margin-bottom: 0.85rem;
}
.admin-competition .race-champion {
  margin: 0;
}
.race-list {
  display: grid;
  gap: 0;
  padding: 0.35rem 0.85rem 0.45rem;
}
.race-row {
  display: grid;
  grid-template-columns: 2.4rem 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.15rem;
  border-radius: 0.65rem;
}
.race-row + .race-row { box-shadow: inset 0 1px 0 #eef2f6; }
.race-row.is-me {
  background: linear-gradient(90deg, rgba(255, 45, 139, 0.07) 0%, rgba(255, 255, 255, 0) 78%);
  box-shadow: inset 0 0 0 1px rgba(255, 45, 139, 0.16);
}
.race-row-top-1 { background: linear-gradient(90deg, rgba(251, 191, 36, 0.12) 0%, rgba(255, 255, 255, 0) 72%); }
.race-row-top-2 { background: linear-gradient(90deg, rgba(148, 163, 184, 0.12) 0%, rgba(255, 255, 255, 0) 72%); }
.race-row-top-3 { background: linear-gradient(90deg, rgba(251, 146, 60, 0.12) 0%, rgba(255, 255, 255, 0) 72%); }
.race-rank-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
}
.race-medal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  font-size: 1.35rem;
  line-height: 1;
  border-radius: 999px;
  filter: drop-shadow(0 3px 6px rgba(15, 39, 68, 0.18));
}
.race-medal-gold {
  font-size: 1.55rem;
  background: radial-gradient(circle at 30% 25%, #fff7db 0%, #fde68a 55%, #f59e0b 100%);
  box-shadow: inset 0 0 0 1px rgba(180, 83, 9, 0.18);
}
.race-medal-silver {
  font-size: 1.48rem;
  background: radial-gradient(circle at 30% 25%, #f8fafc 0%, #cbd5e1 55%, #94a3b8 100%);
  box-shadow: inset 0 0 0 1px rgba(100, 116, 139, 0.18);
}
.race-medal-bronze {
  font-size: 1.42rem;
  background: radial-gradient(circle at 30% 25%, #fff7ed 0%, #fdba74 55%, #ea580c 100%);
  box-shadow: inset 0 0 0 1px rgba(234, 88, 12, 0.18);
}
.race-baby-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.08rem;
  filter: drop-shadow(0 3px 6px rgba(15, 39, 68, 0.16));
}
.race-baby {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border-radius: 999px;
  overflow: hidden;
}
.race-baby svg {
  width: 100%;
  height: 100%;
  display: block;
}
.race-baby-num {
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1;
  color: #0f2744;
}
.race-baby-wrap.race-baby-happy .race-baby {
  background: radial-gradient(circle at 30% 20%, #fff7ed 0%, #fde68a 52%, #fbbf24 100%);
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.22);
}
.race-baby-wrap.race-baby-sad .race-baby {
  background: radial-gradient(circle at 30% 20%, #f8fafc 0%, #dbeafe 55%, #93c5fd 100%);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.2);
}
.race-baby-wrap.race-baby-sad .race-baby-num { color: #1e40af; }
.race-rank-num {
  font-size: 0.82rem;
  font-weight: 800;
  color: #94a3b8;
}
.race-rank-num.is-muted { color: #cbd5e1; }
.race-row-zero { opacity: 0.92; }
.race-row-zero:not(.is-me) .race-name { color: #64748b; }
.race-score-box.is-zero strong { color: #94a3b8; }
.race-avatar {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  flex-shrink: 0;
}
.race-avatar-muted {
  background: #e2e8f0;
  color: #64748b;
}
.race-main { min-width: 0; }
.race-name-line {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
}
.race-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--vlm-navy);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.race-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.45rem;
  margin-top: 0.08rem;
  font-size: 0.68rem;
  color: #64748b;
  font-weight: 650;
}
.race-bar {
  width: 100%;
  height: 4px;
  margin-top: 0.28rem;
  border-radius: 999px;
  background: #e8edf3;
  overflow: hidden;
}
.race-score-box {
  text-align: end;
  min-width: 2.8rem;
}
.race-score-box strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.1;
  color: var(--vlm-navy);
}
.race-score-box span {
  display: block;
  font-size: 0.62rem;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
}
.race-row-empty .race-score-box strong { color: #94a3b8; }
.race-rules {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0 0.85rem 0.65rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #fff7fb 0%, #fff 100%);
  border: 1px solid #f3d5e4;
}
.race-rules-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
}
.race-rules-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--vlm-neon-deep);
  margin-inline-end: 0.15rem;
}
.race-rule-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e8edf3;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--vlm-navy);
  box-shadow: 0 1px 0 rgba(15, 39, 68, 0.04);
}
.race-rules .race-rule-note {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  font-size: 0.68rem !important;
  line-height: 1.35;
  font-weight: 800 !important;
  color: #0a1520 !important;
  letter-spacing: 0.01em;
}
.race-scope-note {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin: 0 0.85rem 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(37, 99, 235, 0.22);
  background:
    radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.18), transparent 42%),
    linear-gradient(135deg, #eff6ff 0%, #f0fdf4 55%, #fff 100%);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.08);
}
.race-scope-icon {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  font-style: italic;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
}
.race-scope-copy {
  min-width: 0;
}
.race-scope-copy strong {
  display: block;
  margin-bottom: 0.18rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: #1e3a8a;
}
.race-scope-copy p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #334155;
  font-weight: 600;
}
.race-you-pill-muted {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.74rem;
  font-weight: 650;
}
.race-you-label {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffb8da;
}
.race-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--vlm-neon) 0%, #ff7eb8 100%);
}
.race-me-tag {
  margin-inline-start: 0.25rem;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--vlm-neon-deep);
}
.focus-list { display: grid; gap: 0.35rem; }
.focus-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.65rem 0.75rem;
  color: inherit;
  border-radius: 0.8rem;
  border: 1px solid transparent;
  background: linear-gradient(165deg, #fff 0%, #f8fafc 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  transition: border-color .18s var(--vlm-ease), box-shadow .18s var(--vlm-ease), transform .18s var(--vlm-ease), background .18s var(--vlm-ease);
}
.focus-row:first-child { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset; }
.focus-row:hover {
  background: linear-gradient(90deg, rgba(255, 247, 251, 0.95) 0%, #fff 100%);
  border-color: rgba(255, 45, 139, 0.22);
  box-shadow: 0 8px 20px rgba(12, 34, 60, 0.07), 0 0 16px rgba(255, 45, 139, 0.1);
  transform: translateY(-1px);
  color: inherit;
}
.focus-row .status-dot {
  margin-top: 0;
  width: 9px;
  height: 9px;
  box-shadow: 0 0 0 3px rgba(15, 39, 68, 0.06), 0 0 10px currentColor;
}
.focus-name {
  font-weight: 750;
  font-size: 0.92rem;
  color: var(--vlm-navy);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.focus-status {
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  color: #64748b;
}
.focus-open {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--vlm-neon-deep);
  white-space: nowrap;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(243, 198, 220, 0.95);
  background: linear-gradient(180deg, #fff 0%, #fff5fa 100%);
  box-shadow: 0 0 12px rgba(255, 45, 139, 0.08);
  transition: background .15s var(--vlm-ease), box-shadow .15s var(--vlm-ease);
}
.focus-row:hover .focus-open {
  background: linear-gradient(180deg, #ff7ec2 0%, var(--vlm-neon) 55%, var(--vlm-neon-deep) 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 45, 139, 0.32);
}
.focus-summary {
  margin-top: 0.9rem;
  padding: 0.8rem 0.9rem;
  border-radius: 0.95rem;
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(255, 45, 139, 0.08), transparent 55%),
    linear-gradient(135deg, #f8fbff 0%, #fff7fb 100%);
  border: 1px solid rgba(231, 238, 246, 0.95);
  box-shadow: 0 6px 18px rgba(12, 34, 60, 0.04);
}
.focus-summary-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--vlm-neon-deep);
  margin-bottom: 0.5rem;
}
.focus-summary-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.focus-summary-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e8edf3;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 4px 12px rgba(12, 34, 60, 0.04);
}
.focus-summary-chip strong {
  font-size: 1rem;
  line-height: 1;
  color: var(--vlm-navy);
  font-weight: 800;
}
.focus-summary-chip span {
  font-size: 0.74rem;
  font-weight: 700;
  color: #64748b;
}
.perf-row {
  display: grid;
  grid-template-columns: 28px minmax(4.5rem, 1fr) minmax(2.4rem, 0.7fr) auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.28rem 0.2rem;
  border: 0;
  border-radius: 0.45rem;
  background: transparent;
  flex: 1 1 0;
  min-height: 2.35rem;
}
.perf-row + .perf-row { box-shadow: inset 0 1px 0 #eef2f6; }
.perf-row-1 { background: #fffaf3; }
.perf-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.perf-name {
  min-width: 0;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--vlm-navy);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.perf-badge {
  display: inline-block;
  margin-inline-start: 0.3rem;
  padding: 0.08rem 0.38rem;
  border-radius: 999px;
  background: #f5e6b8;
  color: #8a6110;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}
.perf-bar {
  height: 4px;
  border-radius: 999px;
  background: #e8eef5;
  overflow: hidden;
}
.perf-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1c3b63 0%, var(--vlm-neon) 100%);
}
.perf-legend {
  display: grid;
  grid-template-columns: 28px minmax(4.5rem, 1fr) minmax(2.4rem, 0.7fr) auto;
  align-items: end;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
  padding: 0 0.2rem;
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1.15;
}
.perf-legend .perf-nums {
  color: #64748b;
  font-size: 0.64rem;
  font-weight: 700;
}
.perf-nums {
  display: grid;
  grid-template-columns: 2.6rem 2.2rem 2.5rem 2.1rem 2.2rem 2.2rem 2.4rem;
  align-items: baseline;
  justify-items: center;
  column-gap: 0.28rem;
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 600;
  white-space: nowrap;
}
.perf-nums span {
  min-width: 0;
  width: 100%;
  text-align: center;
}
.perf-legend .perf-nums span {
  text-align: center;
}
.perf-nums strong { font-size: 0.92rem; color: var(--vlm-navy); }
.perf-nums .is-green { color: #176b56; }
.perf-nums .is-amber { color: #c2410c; }
.perf-nums .is-ocean { color: #0369a1; }
.perf-nums .is-mint { color: #047857; font-weight: 700; }
.perf-nums .is-score { color: #be185d; font-weight: 800; }
.lead-bulk-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin-bottom: 0.85rem;
  padding: 0.65rem 0.9rem;
  background: #fff;
  border: 1px solid var(--vlm-border);
  border-radius: 0.95rem;
  box-shadow: 0 4px 14px rgba(15, 39, 68, 0.04);
}
.lead-bulk-select-all {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--vlm-navy);
  margin: 0;
  cursor: pointer;
}
.lead-check {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--vlm-neon);
  cursor: pointer;
}
.lead-check-col { width: 2.1rem; }

.stat-card {
  position: relative;
  overflow: hidden;
  padding: 0.72rem 0.85rem 0.75rem 1rem;
  border-radius: 1rem;
  border: 1px solid transparent;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75) inset,
    0 8px 22px rgba(15, 39, 68, 0.06);
  transition: transform .22s var(--vlm-ease), box-shadow .22s var(--vlm-ease);
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 14px 28px rgba(15, 39, 68, 0.1);
}
.stat-card::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 18%;
  bottom: 18%;
  width: 3px;
  border-radius: 99px;
  background: currentColor;
  opacity: 0.7;
  box-shadow: 0 0 12px currentColor;
}
.stat-card .label {
  color: var(--vlm-muted);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.25;
}
.stat-card .value {
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--vlm-navy);
  margin-top: 0.12rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.stat-card .value-sm { font-size: 0.95rem; margin-top: 0.28rem; font-weight: 700; }
.stat-card-mint {
  color: #1f8a70;
  border-color: #d5ebe4;
  background: linear-gradient(180deg, #f3faf7 0%, #fff 86%);
}
.stat-card-mint .label { color: #5b8378; }
.stat-card-mint .value { color: #176b56; }
.stat-card-sky {
  color: #3b82c4;
  border-color: #d7e6f4;
  background: linear-gradient(180deg, #f4f8fc 0%, #fff 86%);
}
.stat-card-sky .label { color: #5d7893; }
.stat-card-sky .value { color: #1c4e7a; }
.stat-card-lilac {
  color: #7c3aed;
  border-color: #e4dcf6;
  background: linear-gradient(180deg, #f7f4fc 0%, #fff 86%);
}
.stat-card-lilac .label { color: #74648f; }
.stat-card-lilac .value { color: #5b21b6; }
.stat-card-peach {
  color: #c2410c;
  border-color: #f0dfd2;
  background: linear-gradient(180deg, #fdf7f2 0%, #fff 86%);
}
.stat-card-peach .label { color: #8d7264; }
.stat-card-peach .value { color: #9a3412; }
.stat-card-gold {
  color: #b45309;
  border-color: #ead9b4;
  background: linear-gradient(180deg, #fffaf0 0%, #fff 86%);
}
.stat-card-gold .label { color: #8a7350; }
.stat-card-gold .value { color: #92400e; }
.stat-card-sage {
  color: #4d7c0f;
  border-color: #dbe8cc;
  background: linear-gradient(180deg, #f6faf1 0%, #fff 86%);
}
.stat-card-sage .label { color: #6b7d58; }
.stat-card-sage .value { color: #3f6212; }
.stat-card-amber {
  color: #c2410c;
  border-color: #f5e2c8;
  background: linear-gradient(180deg, #fff8ef 0%, #fff 86%);
}
.stat-card-amber .label { color: #9a6b3a; }
.stat-card-amber .value { color: #c2410c; }
.stat-card-amber::before { background: #ea580c; }
.stat-card-ocean {
  color: #0369a1;
  border-color: #d0e8f8;
  background: linear-gradient(180deg, #eff8ff 0%, #fff 86%);
}
.stat-card-ocean .label { color: #4d7694; }
.stat-card-ocean .value { color: #0369a1; }
.stat-card-ocean::before { background: #0284c7; }
@media (min-width: 1200px) {
  .dash-stat-row.row-cols-xl-8 > *,
  .dash-stat-row.row-cols-xl-9 > * {
    flex: 0 0 auto;
    width: 12.5%;
  }
  .dash-stat-row.row-cols-xl-9 > * {
    width: 11.11111111%;
  }
  .dash-stat-row .stat-card {
    min-height: 4.7rem;
    padding: 0.62rem 0.42rem 0.58rem 0.58rem;
  }
  .dash-stat-row .stat-card .label {
    font-size: 0.7rem;
    line-height: 1.2;
    min-height: 1.55rem;
  }
  .dash-stat-row .stat-card .value {
    font-size: 1.38rem;
  }
  .dash-stat-row.row-cols-xl-9 .stat-card {
    min-height: 4.65rem;
    padding: 0.58rem 0.36rem 0.52rem 0.52rem;
  }
  .dash-stat-row.row-cols-xl-9 .stat-card .label {
    font-size: 0.66rem;
    line-height: 1.2;
    min-height: 1.55rem;
  }
  .dash-stat-row.row-cols-xl-9 .stat-card .value {
    font-size: 1.32rem;
  }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .dash-stat-row.row-cols-xl-8,
  .dash-stat-row.row-cols-xl-9,
  .dash-stat-row.row-cols-lg-9 {
    --bs-columns: 8;
  }
  .dash-stat-row.row-cols-xl-8 > * {
    flex: 0 0 auto;
    width: 12.5%;
  }
  .dash-stat-row.row-cols-xl-9,
  .dash-stat-row.row-cols-lg-9 {
    --bs-columns: 9;
  }
  .dash-stat-row.row-cols-xl-9 > *,
  .dash-stat-row.row-cols-lg-9 > * {
    flex: 0 0 auto;
    width: 11.11111111%;
  }
  .dash-stat-row .stat-card {
    min-height: 4.5rem;
    padding: 0.55rem 0.34rem 0.5rem 0.48rem;
  }
  .dash-stat-row .stat-card .label {
    font-size: 0.62rem;
    line-height: 1.18;
    min-height: 1.5rem;
  }
  .dash-stat-row .stat-card .value {
    font-size: 1.22rem;
  }
}
.stat-card-alert {
  border-color: #e8c56a;
  box-shadow: 0 6px 16px rgba(180, 83, 9, 0.08);
}
.alert-banner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid #f5c451;
  background: #fff8e8;
}
.alert-banner-warning { color: #7a4d00; }

.activity-row-important td:first-child { box-shadow: inset 3px 0 0 #1f8a70; }
.activity-row-system td {
  padding: 0.55rem 0.85rem;
  background: #f5f7fa;
  border-bottom: 1px dashed #e4ebf3;
}
.activity-system-line {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  color: #64748b;
  font-size: 0.86rem;
}
.activity-system-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: #e8eef5;
  color: #475569;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.activity-system-time { color: #94a3b8; font-size: 0.78rem; }
.activity-system-text { color: #4b5563; }
.timeline-item.is-system { padding: 0.45rem 0; border-left: 0; }
.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.quick-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--vlm-border);
  background: #fff;
  color: var(--vlm-navy);
  font-size: 0.86rem;
  font-weight: 600;
}
.quick-filter span {
  background: #eef2f6;
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  font-size: 0.75rem;
}
.quick-filter.is-active,
.quick-filter:hover {
  border-color: #c9d7ea;
  background: #f4f8fc;
  color: var(--vlm-navy);
}
.quick-filter-unreachable {
  border-color: #f3d0cd;
  background: #fff8f7;
  color: #9f1f17;
}
.quick-filter-unreachable span { background: #fde8ea; color: #9f1f17; }
.quick-filter-unreachable.is-active,
.quick-filter-unreachable:hover {
  border-color: #e8b4af;
  background: #fde8ea;
  color: #9f1f17;
}
.quick-filter-deleted span { background: #eceff3; color: #475569; }
.quick-filter-deleted.is-active,
.quick-filter-deleted:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}
.meta-toggle-btn {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  color: var(--vlm-muted);
  border-color: var(--vlm-border);
}
.meta-toggle-btn:hover,
.meta-toggle-btn:focus,
.meta-toggle-btn[aria-expanded="true"] {
  color: var(--vlm-navy);
  border-color: #c9d7ea;
  background: #f4f8fc;
}

.chart-wrap-horizontal {
  width: 100%;
  height: 280px;
  max-height: 280px;
  position: relative;
  overflow: hidden;
}

.status-legend {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1 1 auto;
  gap: 0.35rem;
  margin-bottom: 0;
}
.status-legend-item {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 0.7rem;
  align-items: start;
  min-width: 0;
  padding: 0.35rem 0.45rem;
  border-radius: 0.7rem;
  transition: background .15s var(--vlm-ease);
}
.status-legend-item:hover {
  background: rgba(255, 247, 251, 0.7);
}
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
  margin-top: 0.42rem;
  box-shadow: 0 0 0 3px rgba(15, 39, 68, 0.06), 0 0 10px rgba(15, 39, 68, 0.18);
}
.status-legend-label {
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--vlm-navy);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.status-legend-value {
  font-weight: 800;
  color: var(--vlm-navy);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.status-legend-percent {
  min-width: 2.5rem;
  text-align: right;
  font-size: 0.82rem;
  font-weight: 700;
}

.btn {
  border-radius: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 0.55rem 1.1rem;
  border-width: 1px;
  box-shadow: 0 1px 2px rgba(15, 39, 68, 0.05);
  transition: transform .2s var(--vlm-ease), box-shadow .2s var(--vlm-ease), background .2s var(--vlm-ease), border-color .2s var(--vlm-ease), color .2s var(--vlm-ease), filter .2s var(--vlm-ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { border-radius: 0.75rem; padding: 0.38rem 0.85rem; }
.btn-icon { width: 40px; height: 40px; padding: 0; display: inline-grid; place-items: center; }
.btn-primary, .btn-primary:focus {
  background: linear-gradient(180deg, #ff7ec2 0%, var(--vlm-neon) 48%, var(--vlm-neon-deep) 100%);
  border-color: transparent;
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 10px 24px rgba(255, 45, 139, 0.38),
    0 0 22px rgba(255, 45, 139, 0.32);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #ff92cc 0%, #ff3b96 50%, #ad005c 100%);
  border-color: transparent;
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.28) inset,
    0 14px 32px rgba(255, 45, 139, 0.48),
    0 0 36px rgba(255, 45, 139, 0.45);
  filter: brightness(1.04);
}
.btn-success, .btn-whatsapp {
  background: linear-gradient(180deg, #34c4a0 0%, var(--vlm-green) 100%);
  border-color: transparent;
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.15) inset,
    0 8px 20px rgba(31, 138, 112, 0.28),
    0 0 16px rgba(31, 138, 112, 0.18);
}
.btn-whatsapp:hover, .btn-success:hover {
  background: linear-gradient(180deg, #2aa889 0%, var(--vlm-green-dark) 100%);
  border-color: transparent;
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 12px 26px rgba(31, 138, 112, 0.36),
    0 0 22px rgba(31, 138, 112, 0.26);
}
.btn-group > .vlm-whatsapp-open {
  display: inline-flex;
  align-items: center;
}
.btn-outline-primary, .btn-outline-success, .btn-outline-secondary, .btn-outline-danger {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 2px rgba(15, 39, 68, 0.04);
}
.btn-outline-primary {
  color: var(--vlm-neon-deep);
  border-color: rgba(243, 198, 220, 0.95);
}
.btn-outline-primary:hover {
  background: linear-gradient(180deg, #fff7fb 0%, #ffeaf4 100%);
  color: var(--vlm-neon-deep);
  border-color: #ef9ec6;
  box-shadow: 0 0 0 1px rgba(255, 45, 139, 0.12), 0 0 20px rgba(255, 45, 139, 0.22);
}
.btn-outline-success { color: var(--vlm-green-dark); border-color: #cde8df; }
.btn-outline-success:hover {
  background: #f1faf7;
  color: var(--vlm-green-dark);
  border-color: #b7ddd1;
  box-shadow: 0 0 16px rgba(31, 138, 112, 0.16);
}
.btn-outline-secondary { color: #475569; border-color: #e2e8f0; }
.btn-outline-secondary:hover { background: #f8fafc; color: #334155; }
.btn-outline-danger { color: #b42318; border-color: #f3d0cd; }
.btn-outline-danger:hover {
  background: #fff6f5;
  color: #9f1f17;
  border-color: #ecc0bc;
  box-shadow: 0 0 14px rgba(180, 35, 24, 0.12);
}
.btn-warning {
  background: linear-gradient(180deg, #fff8e8 0%, #fff4d6 100%);
  border-color: #f0d48a;
  color: #7a4d00;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.1);
}
.btn-warning:hover { background: #ffefc2; border-color: #e7c56a; color: #7a4d00; }

@media (prefers-reduced-motion: reduce) {
  .btn:hover, .lead-action:hover, .stat-card:hover, .sidebar .nav-link:hover { transform: none; }
}

.badge-status {
  font-weight: 700;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.76rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset;
}
.badge-status-new { background: #e8eef7; color: #0f2744; border-color: #d5e0ef; }
.badge-status-mail_sent { background: #e0e7ff; color: #3730a3; border-color: #c7d2fe; }
.badge-status-called_no_answer { background: #e8f1fb; color: #1d4f91; border-color: #cfe0f5; }
.badge-status-called_reached { background: #e7f6f1; color: #14624f; border-color: #cdebe3; }
.badge-status-called_positive { background: #def7f4; color: #115e59; border-color: #bcefe9; }
.badge-status-appointment { background: #e9f8ee; color: #157a3a; border-color: #cfeed8; }
.badge-status-planning { background: #f1e9fb; color: #5b21b6; border-color: #e0d0f7; }
.badge-status-blood_tests_sent { background: #fef3e2; color: #9a3412; border-color: #fde0b8; }
.badge-status-treatment_started { background: #e0f2fe; color: #0369a1; border-color: #bae6fd; }
.badge-status-treatment_completed { background: #d1fae5; color: #047857; border-color: #a7f3d0; }
.badge-status-negative { background: #eef2f6; color: #475569; border-color: #dde3ea; }
.badge-status-deleted { background: #fde8ea; color: #9f1f17; border-color: #f0c4c4; }

.lang-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0.2rem 0.45rem;
  border-radius: 0.45rem;
  background: #eef4fa;
  color: var(--vlm-navy);
  font-size: 0.75rem;
  font-weight: 700;
}
.lang-badge-tr { background: #dc2626; color: #fff; }
.lang-badge-en { background: #2563eb; color: #fff; }
.lang-badge-ar { background: #059669; color: #fff; }
.lang-badge-fr { background: #ea580c; color: #fff; }
.lang-badge-sw { background: #7c3aed; color: #fff; }
.lang-badge-de { background: #475569; color: #fff; }
.lang-badge + .lang-badge { margin-inline-start: 0.25rem; }

html[dir="rtl"] body {
  font-family: "Plus Jakarta Sans", "Segoe UI", Tahoma, Arial, sans-serif;
}

.table-responsive {
  border-radius: calc(var(--vlm-radius) - 2px);
}
.table {
  --bs-table-bg: transparent;
  margin-bottom: 0;
}
.table > :not(caption) > * > * { padding: 0.85rem 0.75rem; vertical-align: middle; }
.table thead th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
  color: #64748b;
  border-bottom-width: 1px;
  background: linear-gradient(180deg, #f4f7fb 0%, #eef3f9 100%);
  border-color: rgba(214, 226, 240, 0.95);
}
.table > tbody > tr {
  transition: filter .18s var(--vlm-ease), box-shadow .18s var(--vlm-ease);
}
.table > tbody > tr:not([class*="lead-row-"]):hover > td {
  background-color: rgba(255, 247, 251, 0.65);
}
.table > tbody > tr > td {
  border-color: rgba(226, 234, 244, 0.9);
}
.card-soft .table {
  border-collapse: separate;
  border-spacing: 0;
}

.table > tbody > tr.lead-row-lang-tr > td { background-color: #f9d4d4; }
.table > tbody > tr.lead-row-lang-en > td { background-color: #d9e8f8; }
.table > tbody > tr.lead-row-lang-ar > td { background-color: #d5f0e4; }
.table > tbody > tr.lead-row-lang-fr > td { background-color: #ffe4cf; }
.table > tbody > tr.lead-row-lang-sw > td { background-color: #ead9f8; }
.table > tbody > tr.lead-row-lang-de > td { background-color: #dde3ea; }
.table > tbody > tr.lead-row-lang-tr:hover > td { background-color: #f3c0c0; }
.table > tbody > tr.lead-row-lang-en:hover > td { background-color: #c6daf3; }
.table > tbody > tr.lead-row-lang-ar:hover > td { background-color: #bfe6d5; }
.table > tbody > tr.lead-row-lang-fr:hover > td { background-color: #ffd4b3; }
.table > tbody > tr.lead-row-lang-sw:hover > td { background-color: #dcc4f2; }
.table > tbody > tr.lead-row-lang-de:hover > td { background-color: #c9d3de; }

/* Coordinator view: row colors match status badge palette. */
.table > tbody > tr.lead-row-status-new > td { background-color: #e8eef7 !important; }
.table > tbody > tr.lead-row-status-mail_sent > td { background-color: #e0e7ff !important; }
.table > tbody > tr.lead-row-status-called_no_answer > td { background-color: #e8f1fb !important; }
.table > tbody > tr.lead-row-status-called_reached > td { background-color: #e7f6f1 !important; }
.table > tbody > tr.lead-row-status-called_positive > td { background-color: #def7f4 !important; }
.table > tbody > tr.lead-row-status-appointment > td { background-color: #e9f8ee !important; }
.table > tbody > tr.lead-row-status-planning > td { background-color: #f1e9fb !important; }
.table > tbody > tr.lead-row-status-blood_tests_sent > td { background-color: #fef3e2 !important; }
.table > tbody > tr.lead-row-status-treatment_started > td { background-color: #e0f2fe !important; }
.table > tbody > tr.lead-row-status-treatment_completed > td { background-color: #d1fae5 !important; }
.table > tbody > tr.lead-row-status-negative > td { background-color: #eef2f6 !important; }

.table > tbody > tr.lead-row-status-new:hover > td { background-color: #d5e0ef !important; }
.table > tbody > tr.lead-row-status-mail_sent:hover > td { background-color: #c7d2fe !important; }
.table > tbody > tr.lead-row-status-called_no_answer:hover > td { background-color: #cfe0f5 !important; }
.table > tbody > tr.lead-row-status-called_reached:hover > td { background-color: #cdebe3 !important; }
.table > tbody > tr.lead-row-status-called_positive:hover > td { background-color: #bcefe9 !important; }
.table > tbody > tr.lead-row-status-appointment:hover > td { background-color: #cfeed8 !important; }
.table > tbody > tr.lead-row-status-planning:hover > td { background-color: #e0d0f7 !important; }
.table > tbody > tr.lead-row-status-blood_tests_sent:hover > td { background-color: #fde0b8 !important; }
.table > tbody > tr.lead-row-status-treatment_started:hover > td { background-color: #bae6fd !important; }
.table > tbody > tr.lead-row-status-treatment_completed:hover > td { background-color: #a7f3d0 !important; }
.table > tbody > tr.lead-row-status-negative:hover > td { background-color: #dde3ea !important; }

/* Inline color fallback from view (coordinator only). */
.table > tbody > tr[class*="lead-row-status-"] > td {
  background-color: var(--lead-row-color) !important;
}

.lead-card.lead-card-status-new { border-left: 4px solid #6366f1; }
.lead-card.lead-card-status-mail_sent { border-left: 4px solid #4f46e5; }
.lead-card.lead-card-status-called_no_answer { border-left: 4px solid #3b82f6; }
.lead-card.lead-card-status-called_reached { border-left: 4px solid #06b6d4; }
.lead-card.lead-card-status-called_positive { border-left: 4px solid #10b981; }
.lead-card.lead-card-status-appointment { border-left: 4px solid #16a34a; }
.lead-card.lead-card-status-planning { border-left: 4px solid #7c3aed; }
.lead-card.lead-card-status-blood_tests_sent { border-left: 4px solid #ea580c; }
.lead-card.lead-card-status-treatment_started { border-left: 4px solid #0284c7; }
.lead-card.lead-card-status-treatment_completed { border-left: 4px solid #059669; }
.lead-card.lead-card-status-negative { border-left: 4px solid #64748b; }

.lead-row-unassigned td:first-child { box-shadow: inset 3px 0 0 #f59e0b; }

.lead-card {
  border: 1px solid var(--vlm-border);
  border-radius: 1rem;
  background: #fff;
  padding: 1rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 1px 2px rgba(15, 39, 68, 0.03);
}
.lead-card.is-unassigned { border-color: #f6d9a6; }
.lead-card.lead-card-lang-tr { background: #fecaca; border-color: #f87171; }
.lead-card.lead-card-lang-en { background: #bfdbfe; border-color: #60a5fa; }
.lead-card.lead-card-lang-ar { background: #a7f3d0; border-color: #34d399; }
.lead-card.lead-card-lang-fr { background: #fdba74; border-color: #fb923c; }
.lead-card.lead-card-lang-sw { background: #d8b4fe; border-color: #c084fc; }
.lead-card.lead-card-lang-de { background: #cbd5e1; border-color: #94a3b8; }
.lead-card-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.55rem;
}
.lead-card-meta { color: var(--vlm-muted); font-size: 0.86rem; margin-bottom: 0.7rem; }
.lead-card-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.lead-assign-form { min-width: 9.25rem; max-width: 12.5rem; }
.lead-assign-form .form-select {
  font-size: 0.82rem;
  padding: 0.32rem 1.7rem 0.32rem 0.55rem;
  border-radius: 0.75rem;
}

.filter-card {
  padding: 0.9rem 1.05rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(214, 226, 240, 0.95);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 249, 253, 0.95) 100%);
}
.filter-card .form-label { font-size: 0.78rem; color: var(--vlm-muted); margin-bottom: 0.25rem; font-weight: 700; }
.filter-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 0.5rem;
}
.filter-field {
  flex: 1 1 0;
  min-width: 0;
}
.filter-field-search { flex: 1.25 1 0; }
.filter-field-date { flex: 0.85 1 110px; max-width: 150px; }
.filter-field-daterange {
  flex: 1.1 1 160px;
  max-width: 200px;
}
.filter-date-cell {
  position: relative;
  min-width: 0;
}
.filter-date-cell-btn {
  display: flex;
  align-items: center;
  width: 100%;
  text-align: start;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.92);
  color: var(--vlm-navy);
  overflow: hidden;
}
.filter-date-cell-btn:hover {
  border-color: #f0a0c8;
}
.filter-date-cell-text {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.84rem;
  font-weight: 600;
}
.filter-date-cell.is-empty .filter-date-cell-text {
  color: #94a3b8;
  font-weight: 600;
}
.filter-date-cell.is-picking .filter-date-cell-text {
  color: var(--vlm-neon-deep);
}
.filter-date-cell-picker {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  pointer-events: none;
  color-scheme: light;
}
.filter-date-cell.is-picking .filter-date-cell-picker {
  pointer-events: auto;
}
.filter-field-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 0.4rem;
  padding-bottom: 1px;
}
.filter-field-actions .btn { white-space: nowrap; }

@media (max-width: 1199.98px) {
  .filter-bar { flex-wrap: wrap; }
  .filter-field { flex: 1 1 140px; }
  .filter-field-date,
  .filter-field-daterange { max-width: none; flex: 1 1 180px; }
}

.detail-hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.85rem;
  padding: 0.95rem 1.1rem;
  border-radius: 0.95rem;
  background: linear-gradient(135deg, #0f2744 0%, #1c3b63 55%, #1f8a70 140%);
  color: #fff;
}
.detail-hero a.back-link { color: rgba(255,255,255,0.8); font-size: 0.85rem; }
.detail-hero h1 { margin: 0.25rem 0 0; font-size: 1.35rem; }
.detail-hero .hero-meta { opacity: 0.85; font-size: 0.88rem; margin-top: 0.3rem; }
.detail-hero .btn { border: 0; }
.detail-hero .btn-outline-light { border: 1px solid rgba(255,255,255,0.35); color: #fff; }
.detail-hero .btn-outline-light:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* Hasta Detay ? profesyonel kart UI */
.detail-page {
  --dp-pink: #e91e63;
  --dp-pink-deep: #c2185b;
  --dp-pink-soft: #fce4ec;
  --dp-pink-border: #f4c2d4;
  --dp-head: #fff0f5;
  --dp-radius: 0.85rem;
}
.detail-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  gap: 0.75rem;
  align-items: start;
}
.detail-main-left,
.detail-main-right {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-width: 0;
}
.detail-main-right .detail-card-history {
  flex: 1 1 auto;
}
.detail-main-right .detail-history-scroll,
.detail-main-left .detail-history-scroll {
  max-height: min(42vh, 22rem);
}
.detail-card {
  background: #fff;
  border: 1px solid #e8eef5;
  border-radius: var(--dp-radius);
  box-shadow: 0 6px 18px rgba(15, 39, 68, 0.05);
  overflow: hidden;
}
.detail-card-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.8rem;
  background: linear-gradient(180deg, #fff7fb 0%, var(--dp-head) 100%);
  border-bottom: 1px solid #f3d5e3;
  font-size: 0.88rem;
  font-weight: 700;
  color: #5a1a3a;
}
.detail-card-head .history-count {
  margin-left: auto;
}
.detail-card-ico {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--dp-pink);
  color: #fff;
  flex-shrink: 0;
}
.detail-card-body {
  padding: 0.7rem 0.8rem 0.85rem;
}
.detail-field { margin-bottom: 0.55rem; }
.detail-field .form-label {
  margin-bottom: 0.2rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
}
.detail-input-ico {
  position: relative;
}
.detail-input-ico > span,
.detail-input-svg {
  position: absolute;
  left: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
  z-index: 1;
  display: grid;
  place-items: center;
}
.detail-input-ico .form-control {
  padding-left: 2rem;
}
.detail-page .form-control,
.detail-page .form-select {
  border-radius: 0.65rem;
  border-color: #e5e7eb;
  min-height: 2.15rem;
  font-size: 0.88rem;
}
.detail-page .form-control:focus,
.detail-page .form-select:focus {
  border-color: #f0a3c0;
  box-shadow: 0 0 0 0.2rem rgba(233, 30, 99, 0.12);
}
.detail-info-grid {
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}
.detail-info-grid .info-item {
  padding: 0.45rem 0.6rem;
  border-radius: 0.6rem;
}
.btn-detail-outline {
  background: #fff;
  color: var(--dp-pink-deep);
  border: 1.5px solid #f0a8c4;
  border-radius: 0.7rem;
  font-weight: 650;
  padding: 0.48rem 1rem;
}
.btn-detail-outline:hover {
  background: #fff5f8;
  color: var(--dp-pink-deep);
  border-color: var(--dp-pink);
}
.btn-detail-soft {
  background: var(--dp-pink-soft);
  color: var(--dp-pink-deep);
  border: 1px solid #f0b4cc;
  border-radius: 0.7rem;
  font-weight: 650;
  padding: 0.42rem 0.95rem;
}
.btn-detail-soft:hover {
  background: #f8d5e3;
  color: var(--dp-pink-deep);
  border-color: #eb92b4;
}
.btn-detail-primary {
  background: linear-gradient(180deg, #ff5aa3 0%, var(--dp-pink) 48%, var(--dp-pink-deep) 100%);
  border: 0;
  color: #fff;
  border-radius: 0.75rem;
  font-weight: 700;
  padding: 0.58rem 1rem;
  box-shadow: 0 8px 18px rgba(233, 30, 99, 0.28);
}
.btn-detail-primary:hover {
  background: linear-gradient(180deg, #ff6eb0 0%, #e91e63 50%, #ad1457 100%);
  color: #fff;
}
.detail-history-scroll { max-height: 28rem; }
.detail-timeline-item {
  display: grid;
  grid-template-columns: 0.7rem minmax(0, 1fr);
  gap: 0.55rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid #eef2f6;
  align-items: start;
}
.detail-timeline-item:last-child { border-bottom: 0; }
.detail-timeline-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  margin-top: 0.4rem;
  background: #94a3b8;
}
.detail-timeline-dot.is-green { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15); }
.detail-timeline-dot.is-blue { background: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15); }
.detail-timeline-dot.is-purple { background: #8b5cf6; box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15); }
.detail-timeline-top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: baseline;
}
.detail-timeline-text {
  margin-top: 0.15rem;
  font-size: 0.86rem;
  color: #374151;
}
.voice-note-timer {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  color: #be185d;
  font-size: 1.05rem;
}
.voice-note-preview,
.voice-note-player {
  width: 100%;
  max-width: 100%;
  height: 2.4rem;
}
.voice-note-entry {
  display: grid;
  gap: 0.35rem;
}
.voice-note-actions .btn {
  min-height: 2.2rem;
}
.detail-meta-wrap { margin-top: 0.15rem; }
.detail-page .anamnesis-panel {
  margin-top: 0;
  border-radius: var(--dp-radius);
  box-shadow: 0 6px 18px rgba(194, 24, 91, 0.06);
}

@media (max-width: 991.98px) {
  .detail-main-grid {
    grid-template-columns: 1fr;
  }
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.info-item {
  padding: 0.75rem 0.8rem;
  border-radius: 0.75rem;
  background: #f7fafc;
  border: 1px solid #eef2f6;
}
.info-item .label { display: block; font-size: 0.75rem; color: var(--vlm-muted); margin-bottom: 0.2rem; }
.info-item .value { font-weight: 600; color: var(--vlm-navy); word-break: break-word; }

.section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--vlm-navy);
  margin-bottom: 0.85rem;
}

.timeline-item {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--vlm-border);
}
.timeline-item:last-child { border-bottom: 0; }
.history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.history-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6rem;
  height: 1.45rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: #e8eef7;
  color: var(--vlm-navy);
  font-size: 0.75rem;
  font-weight: 800;
}
.history-scroll {
  max-height: 280px;
  overflow-y: auto;
  padding-inline-end: 0.35rem;
  margin-top: 0.15rem;
}
.history-scroll::-webkit-scrollbar { width: 8px; }
.history-scroll::-webkit-scrollbar-thumb {
  background: #c5d4e6;
  border-radius: 999px;
}

.user-list { display: grid; gap: 0.75rem; }
.user-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.85rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border: 1px solid var(--vlm-border);
  border-radius: 1rem;
  background: #fff;
}
.user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #e8eef7;
  color: var(--vlm-navy);
  font-weight: 700;
  flex-shrink: 0;
}
.user-main { display: flex; gap: 0.8rem; align-items: center; min-width: 0; }
.user-name { font-weight: 700; color: var(--vlm-navy); }
.user-email { color: var(--vlm-muted); font-size: 0.88rem; }
.user-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #eef2f6;
  color: #475569;
}
.pill-active { background: #e7f6f1; color: #14624f; }
.pill-inactive { background: #f1f5f9; color: #64748b; }
.pill-admin { background: #e8eef7; color: #0f2744; }
.pill-coordinator { background: #eef6ff; color: #1d4f91; }

.settings-grid { display: grid; gap: 1rem; max-width: 920px; }
.settings-block { padding: 1.15rem 1.2rem; }
.settings-block h2 { font-size: 1rem; margin-bottom: 0.35rem; color: var(--vlm-navy); }
.settings-help { color: var(--vlm-muted); font-size: 0.9rem; margin-bottom: 1rem; }
.settings-tools {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 0.32rem;
  max-width: none;
}
.settings-tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 2.35rem;
  padding: 0.28rem 0.18rem;
  border-radius: 0.55rem;
  border: 1px solid #e4ebf3;
  background: #fff;
  text-decoration: none;
  text-align: center;
  box-shadow: var(--vlm-shadow);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.settings-tool:hover {
  transform: translateY(-1px);
  border-color: #f3a8cb;
  color: inherit;
  box-shadow: 0 10px 18px rgba(15, 39, 68, 0.1);
}
.settings-tool-title {
  font-weight: 800;
  color: var(--vlm-navy);
  font-size: 0.82rem;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.settings-tool-text {
  display: none;
}
.settings-tool-campaigns { background: linear-gradient(180deg, #f3faf7 0%, #fff 78%); }
.settings-tool-activity { background: linear-gradient(180deg, #fff7fb 0%, #fff 78%); }
.settings-tool-presence { background: linear-gradient(180deg, #eef6ff 0%, #fff 78%); }
.settings-tool-reports { background: linear-gradient(180deg, #fff8ef 0%, #fff 78%); }
.settings-tool-users { background: linear-gradient(180deg, #f5f3ff 0%, #fff 78%); }
.settings-tool-chat { background: linear-gradient(180deg, #ecfeff 0%, #fff 78%); }
.settings-tool-scoring { background: linear-gradient(180deg, #fff1f2 0%, #fff 78%); }
.settings-tool-quotes { background: linear-gradient(180deg, #f0fdf4 0%, #fff 78%); }
.settings-tool-notes { background: linear-gradient(180deg, #ecfeff 0%, #fff 78%); }
.quotes-today-text {
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--vlm-navy);
  font-weight: 600;
}
.quotes-queue-item {
  display: flex;
  justify-content: space-between;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(15, 39, 68, 0.08);
}
.quotes-queue-item:last-child { border-bottom: 0; }
@media (max-width: 1200px) {
  .settings-tools { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .settings-tool { min-height: 2.5rem; }
  .settings-tool-title { font-size: 0.8rem; }
}
@media (max-width: 700px) {
  .settings-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-tool { min-height: 2.55rem; padding: 0.35rem 0.3rem; }
  .settings-tool-title { font-size: 0.84rem; }
}
.chat-admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.chat-admin-tabs { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.chat-admin-list { max-height: 32rem; overflow: auto; }
.chat-admin-item {
  display: block;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid rgba(15, 39, 68, 0.08);
  color: inherit;
  text-decoration: none;
}
.chat-admin-item:last-child { border-bottom: 0; }
.chat-admin-link:hover,
.chat-admin-link.is-active {
  background: rgba(255, 45, 139, 0.06);
}
.chat-admin-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.78rem;
  margin-bottom: 0.2rem;
}
.chat-admin-meta span { color: #64748b; white-space: nowrap; }
.chat-admin-body {
  font-size: 0.9rem;
  line-height: 1.4;
  word-break: break-word;
}
.scoring-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.85rem;
}
@media (max-width: 900px) {
  .chat-admin-stats { grid-template-columns: 1fr; }
}

.reports-page {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.reports-page-header {
  margin-bottom: 0;
  align-items: flex-start;
}
.reports-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.reports-note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.8rem;
  border: 1px solid #f5c451;
  background: #fff8e8;
  color: #7a4d00;
  font-size: 0.84rem;
}
.reports-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  padding: 0.7rem 0.85rem;
  border-radius: 1rem;
  border: 1px solid #e4ebf3;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  box-shadow: var(--vlm-shadow);
}
.reports-period-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.reports-period-tab {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  margin: 0;
}
.reports-period-tab input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.reports-period-tab span {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  border: 1px solid #d7e0ea;
  background: #fff;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 700;
  transition: border-color .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}
.reports-period-tab:hover span {
  border-color: #94a3b8;
  color: var(--vlm-navy);
}
.reports-period-tab.is-active span {
  border-color: #0f2744;
  background: #0f2744;
  color: #fff;
  box-shadow: 0 4px 12px rgba(15, 39, 68, 0.18);
}
.reports-month-pick {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.reports-month-pick input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.reports-month-pick select {
  min-height: 1.9rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid #d7e0ea;
  background: #fff;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}
.reports-month-pick.is-active select {
  border-color: #0f2744;
  color: #0f2744;
  box-shadow: 0 4px 12px rgba(15, 39, 68, 0.12);
}
.reports-range {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  font-size: 0.8rem;
  line-height: 1.3;
  color: #64748b;
  text-align: end;
}
.reports-range strong {
  color: var(--vlm-navy);
  font-size: 0.86rem;
}

.reports-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}
@media (min-width: 768px) {
  .reports-kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .reports-kpi-grid-wide { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}
.reports-kpi {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-height: 4.1rem;
  padding: 0.65rem 0.7rem 0.55rem 0.8rem;
  border-radius: 0.9rem;
  border: 1px solid #e4ebf3;
  background: #fff;
  box-shadow: var(--vlm-shadow);
  position: relative;
  overflow: hidden;
}
.reports-kpi::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 18%;
  bottom: 18%;
  width: 3px;
  border-radius: 99px;
  background: currentColor;
  opacity: 0.75;
}
.reports-kpi span {
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.2;
  color: inherit;
  opacity: 0.78;
}
.reports-kpi strong {
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: inherit;
  line-height: 1.1;
}
.reports-kpi em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 750;
  opacity: 0.72;
}
.reports-kpi.is-mint { color: #176b56; background: linear-gradient(180deg, #f3faf7 0%, #fff 88%); border-color: #d5ebe4; }
.reports-kpi.is-sky { color: #1c4e7a; background: linear-gradient(180deg, #f0f7ff 0%, #fff 88%); border-color: #d5e5f5; }
.reports-kpi.is-sage { color: #3f6212; background: linear-gradient(180deg, #f5f9ef 0%, #fff 88%); border-color: #dde8cb; }
.reports-kpi.is-green { color: #15803d; background: linear-gradient(180deg, #f0fdf4 0%, #fff 88%); border-color: #bbf7d0; }
.reports-kpi.is-amber { color: #c2410c; background: linear-gradient(180deg, #fff7ed 0%, #fff 88%); border-color: #fde0b8; }
.reports-kpi.is-teal { color: #0f766e; background: linear-gradient(180deg, #f0fdfa 0%, #fff 88%); border-color: #ccfbf1; }
.reports-kpi.is-slate { color: #475569; background: linear-gradient(180deg, #f8fafc 0%, #fff 88%); border-color: #e2e8f0; }
.reports-kpi.is-navy { color: #0f2744; background: linear-gradient(180deg, #eef3f8 0%, #fff 88%); border-color: #d5dee8; }

.reports-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  align-items: start;
}
@media (min-width: 1100px) {
  .reports-body {
    grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.95fr);
  }
}
.reports-main {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}
.reports-side {
  min-width: 0;
}
@media (min-width: 1100px) {
  .reports-side {
    position: sticky;
    top: 0.75rem;
    align-self: start;
    max-height: calc(100vh - 1.5rem);
    overflow: auto;
  }
}

.reports-card {
  border-radius: 1rem;
  border: 1px solid #e4ebf3;
  background: #fff;
  box-shadow: var(--vlm-shadow);
  overflow: hidden;
}
.reports-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid #eef2f6;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}
.reports-card-head h2 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--vlm-navy);
  font-weight: 800;
}
.reports-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.45rem;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  background: #eef3f8;
  color: var(--vlm-navy);
  font-size: 0.72rem;
  font-weight: 800;
}

.reports-funnel { padding: 0.55rem 0.85rem 0.75rem; display: flex; flex-direction: column; gap: 0.55rem; }
.reports-funnel-step { display: flex; flex-direction: column; gap: 0.28rem; }
.reports-funnel-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}
.reports-funnel-meta span {
  color: #475569;
  font-size: 0.84rem;
  font-weight: 650;
}
.reports-funnel-meta strong {
  color: var(--vlm-navy);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}
.reports-funnel-meta em {
  font-style: normal;
  color: #64748b;
  font-weight: 700;
  margin-inline-start: 0.35rem;
}
.reports-funnel-bar {
  display: block;
  height: 7px;
  border-radius: 99px;
  background: #eef2f6;
  overflow: hidden;
}
.reports-funnel-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f2744 0%, #1f8a70 100%);
}

.reports-lang-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
  padding: 0.55rem 0.75rem 0.7rem;
}
@media (min-width: 640px) {
  .reports-lang-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.reports-lang-card {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  grid-template-areas:
    "dot text"
    "bar bar";
  column-gap: 0.55rem;
  row-gap: 0.28rem;
  align-items: center;
  padding: 0.55rem 0.6rem;
  border: 1px solid #eef2f6;
  border-radius: 0.75rem;
  background: #fbfcfe;
}
.reports-lang-dot {
  grid-area: dot;
  width: 8px;
  height: 8px;
  border-radius: 99px;
}
.reports-lang-card > div {
  grid-area: text;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}
.reports-lang-card strong {
  color: var(--vlm-navy);
  font-size: 0.86rem;
}
.reports-lang-card span {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.reports-lang-bar {
  grid-area: bar;
  display: block;
  height: 4px;
  border-radius: 99px;
  background: #eef2f6;
  overflow: hidden;
}
.reports-lang-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  min-width: 0;
}

.reports-metric-list { padding: 0.2rem 0.35rem 0.35rem; }
.reports-metric-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.2rem;
  padding: 0.4rem 0.65rem;
  border-radius: 0.55rem;
}
.reports-metric-row + .reports-metric-row {
  box-shadow: inset 0 1px 0 #eef2f6;
}
.reports-metric-row span {
  color: #64748b;
  font-size: 0.84rem;
  font-weight: 600;
}
.reports-metric-row strong {
  color: var(--vlm-navy);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}

.reports-status-list { padding: 0.35rem 0.75rem 0.55rem; }
.reports-status-row {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) 2.4rem 2.6rem;
  grid-template-areas:
    "dot label count pct"
    "bar bar bar bar";
  column-gap: 0.55rem;
  row-gap: 0.22rem;
  align-items: center;
  padding: 0.42rem 0.2rem;
  border-bottom: 1px solid #eef2f6;
}
.reports-status-row:last-child { border-bottom: 0; }
.reports-status-dot {
  grid-area: dot;
  width: 8px;
  height: 8px;
  border-radius: 99px;
}
.reports-status-label {
  grid-area: label;
  min-width: 0;
  font-size: 0.84rem;
  font-weight: 650;
  color: var(--vlm-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reports-status-count,
.reports-status-pct {
  font-size: 0.82rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.reports-status-count { grid-area: count; color: var(--vlm-navy); }
.reports-status-pct { grid-area: pct; color: #64748b; }
.reports-status-bar {
  grid-area: bar;
  display: block;
  height: 4px;
  border-radius: 99px;
  background: #eef2f6;
  overflow: hidden;
}
.reports-status-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  min-width: 0;
}

.reports-coord-panel {
  border-color: #c9d7e8;
  box-shadow: 0 10px 28px rgba(15, 39, 68, 0.08);
}
.reports-coord-filter {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid #eef2f6;
  background: linear-gradient(180deg, #eef5ff 0%, #fff 100%);
}
.reports-coord-filter label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #1c4e7a;
}
.reports-coord-filter .form-select {
  min-height: 2.35rem;
  font-size: 0.92rem;
  font-weight: 650;
  border-color: #b7cce3;
  background: #fff;
}
.reports-team-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid #eef2f6;
  background: #f8fafc;
}
.reports-team-strip > div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.45rem 0.55rem;
  border-radius: 0.65rem;
  border: 1px solid #e4ebf3;
  background: #fff;
}
.reports-team-strip span {
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.reports-team-strip strong {
  color: var(--vlm-navy);
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}
.reports-coord-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.75rem;
}
.reports-empty {
  padding: 1.25rem 0.75rem;
  text-align: center;
  color: #94a3b8;
  font-size: 0.9rem;
}
.reports-coord-card {
  border: 1px solid #e4ebf3;
  border-radius: 0.85rem;
  background: #fff;
  padding: 0.7rem 0.75rem 0.8rem;
}
.reports-coord-card header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}
.reports-coord-card h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--vlm-navy);
}
.reports-coord-card header > span {
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
.reports-coord-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  margin-bottom: 0.55rem;
}
.reports-coord-stats > div {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  padding: 0.35rem 0.4rem;
  border-radius: 0.5rem;
  background: #f8fafc;
}
.reports-coord-stats em {
  font-style: normal;
  font-size: 0.65rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.reports-coord-stats b {
  font-size: 0.92rem;
  color: #334155;
  font-variant-numeric: tabular-nums;
}
.reports-coord-stats b.is-green { color: #176b56; }
.reports-coord-stats b.is-amber { color: #c2410c; }
.reports-coord-stats b.is-sky { color: #0369a1; }
.reports-coord-stats b.is-teal { color: #0f766e; }
.reports-coord-rates {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.reports-rate-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.6rem;
  grid-template-areas:
    "label value"
    "bar bar";
  column-gap: 0.5rem;
  row-gap: 0.18rem;
  align-items: center;
}
.reports-rate-row > span {
  grid-area: label;
  font-size: 0.72rem;
  font-weight: 650;
  color: #64748b;
}
.reports-rate-row > strong {
  grid-area: value;
  text-align: right;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--vlm-navy);
  font-variant-numeric: tabular-nums;
}
.reports-rate-row > i {
  grid-area: bar;
  display: block;
  height: 5px;
  border-radius: 99px;
  background: #eef2f6;
  overflow: hidden;
  font-style: normal;
}
.reports-rate-row > i > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1c4e7a 0%, #0f766e 100%);
}

@media (max-width: 767.98px) {
  .reports-toolbar { padding: 0.65rem 0.7rem; }
  .reports-range { text-align: start; width: 100%; }
  .reports-period-tabs { width: 100%; }
  .reports-period-tab span { font-size: 0.76rem; padding: 0.26rem 0.58rem; }
  .reports-kpi { min-height: 3.7rem; padding: 0.55rem 0.6rem 0.5rem 0.7rem; }
  .reports-kpi strong { font-size: 1.1rem; }
  .reports-coord-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .reports-coord-stats > div {
    min-width: 0;
  }
  .reports-coord-stats em {
    font-size: 0.62rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .reports-team-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .reports-card-head {
    padding: 0.6rem 0.75rem;
  }
  .reports-funnel,
  .reports-status-list,
  .reports-metric-list,
  .reports-lang-grid {
    padding-inline: 0.65rem;
  }
}

.presence-panel { padding: 0; overflow: hidden; }
.presence-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 45, 139, 0.32) 0%, transparent 52%),
    linear-gradient(120deg, #0b1f36 0%, #143556 58%, #0e4f63 100%);
  color: #fff;
}
.presence-panel-head-soft {
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(34, 211, 238, 0.2) 0%, transparent 50%),
    linear-gradient(120deg, #102a44 0%, #1a3f63 100%);
}
.presence-kicker {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.78;
  margin-bottom: 0.12rem;
}
.presence-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.015em;
}
.presence-live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.72rem;
  font-weight: 800;
}
.presence-live.is-on {
  background: rgba(34, 197, 94, 0.22);
  border-color: rgba(74, 222, 128, 0.45);
}
.presence-live.is-on::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: #4ade80;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.8);
}
.presence-empty { padding: 1rem 1.1rem; }
.presence-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  background: #f6f9fc;
}
.presence-row.is-online td {
  background: linear-gradient(90deg, rgba(220, 252, 231, 0.55) 0%, transparent 55%);
}
.presence-duration { color: var(--vlm-navy); font-variant-numeric: tabular-nums; }
.presence-device { color: #475569; white-space: nowrap; }
.presence-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}
.presence-badge.is-online { background: #dcfce7; color: #166534; }
.presence-badge.is-idle { background: #ffedd5; color: #9a3412; }
.presence-badge.is-offline { background: #f1f5f9; color: #64748b; }
.template-divider {
  margin: 1.1rem 0 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--vlm-border);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--vlm-navy);
  letter-spacing: 0.02em;
}
.language-picker {
  padding: 0.9rem 1rem;
  border: 1px solid var(--vlm-border);
  border-radius: 0.85rem;
  background: #fbfcfe;
}
.language-check {
  min-width: 160px;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--vlm-border);
  border-radius: 0.7rem;
  background: #fff;
  margin: 0;
}
.language-check .form-check-label {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin-left: 0.15rem;
}
.language-check .form-check-label span {
  color: var(--vlm-muted);
  font-size: 0.82rem;
  font-weight: 400;
}

.empty-state {
  text-align: center;
  padding: 2.2rem 1.2rem;
  border: 1px dashed #d7dee8;
  border-radius: 1rem;
  background: #fbfcfe;
}
.empty-state-title { font-weight: 700; color: var(--vlm-navy); margin-bottom: 0.35rem; }
.empty-state-text { color: var(--vlm-muted); margin-bottom: 1rem; }

.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
  background-color: #050608;
  background-image:
    radial-gradient(circle at 18% 18%, rgba(255, 45, 139, 0.34), transparent 38%),
    radial-gradient(circle at 88% 82%, rgba(34, 211, 238, 0.14), transparent 42%),
    radial-gradient(circle at 50% 50%, rgba(28, 59, 99, 0.35), transparent 55%),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(145deg, #050608, #0b1020 55%, #101828);
  background-size: auto, auto, auto, 56px 56px, 56px 56px, auto;
}
.auth-shell {
  width: min(920px, 100%);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  overflow: hidden;
  border-radius: 1.35rem;
  border: 1px solid rgba(255, 45, 139, 0.22);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 50px rgba(255, 45, 139, 0.22),
    0 0 80px rgba(34, 211, 238, 0.06);
  background: #fff;
}
.auth-brand {
  padding: 2.1rem 1.9rem;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 45, 139, 0.22), transparent 46%),
    linear-gradient(180deg, #050608 0%, #0b1020 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}
.auth-logo-wrap {
  background: #000;
  border-radius: 1.15rem;
  padding: 0.55rem;
  margin-bottom: 1.15rem;
  box-shadow:
    0 0 0 1px rgba(255, 45, 139, 0.4),
    0 0 32px rgba(255, 45, 139, 0.32);
}
.auth-logo {
  display: block;
  width: 100%;
  max-width: 220px;
  margin-inline: auto;
  height: auto;
}
.setup-logo {
  width: 92px;
  height: auto;
  border-radius: 1rem;
  margin-bottom: 0.8rem;
  background: #000;
  box-shadow: 0 0 0 1px rgba(255, 45, 139, 0.4), 0 0 22px rgba(255, 45, 139, 0.3);
}
.auth-brand-kicker {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 0.6rem;
}
.auth-brand h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
}
.auth-brand p { margin: 0; opacity: 0.88; line-height: 1.5; }
.auth-brand-footer { font-size: 0.85rem; opacity: 0.75; }
.auth-card {
  width: 100%;
  max-width: none;
  padding: 2.2rem 2rem;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.auth-card .auth-title { font-size: 1.25rem; font-weight: 700; color: var(--vlm-navy); margin-bottom: 0.25rem; }
.auth-card .auth-subtitle { color: var(--vlm-muted); margin-bottom: 1.25rem; }
.muted { color: var(--vlm-muted); }

.form-control, .form-select {
  border-radius: 0.85rem;
  border-color: #d5e0ec;
  padding: 0.58rem 0.85rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 1px rgba(15, 39, 68, 0.03);
  transition: border-color .18s var(--vlm-ease), box-shadow .18s var(--vlm-ease), background .18s var(--vlm-ease);
}
.form-control:focus, .form-select:focus {
  border-color: #f0a0c8;
  background: #fff;
  box-shadow:
    0 0 0 4px rgba(255, 45, 139, 0.14),
    0 0 18px rgba(255, 45, 139, 0.12);
}

.lang-switch {
  display: inline-flex;
  background: rgba(243, 246, 250, 0.9);
  border: 1px solid rgba(228, 235, 243, 0.95);
  border-radius: 999px;
  padding: 0.18rem;
  gap: 0.12rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}
.topbar-notes-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(45, 212, 191, 0.28);
  background: rgba(45, 212, 191, 0.1);
  color: #0f766e;
  text-decoration: none;
  transition: background .18s var(--vlm-ease), color .18s var(--vlm-ease), box-shadow .18s var(--vlm-ease), border-color .18s var(--vlm-ease);
}
.topbar-notes-btn:hover,
.topbar-notes-btn.is-active {
  background: rgba(45, 212, 191, 0.2);
  border-color: rgba(13, 148, 136, 0.45);
  color: #0f766e;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.18);
}
.topbar-notes-btn svg {
  display: block;
}
.lang-switch a {
  min-width: 2.15rem;
  text-align: center;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  transition: background .18s var(--vlm-ease), color .18s var(--vlm-ease), box-shadow .18s var(--vlm-ease);
}
.lang-switch a.is-active,
.lang-switch a:hover {
  background: #fff;
  color: var(--vlm-neon-deep);
  box-shadow: 0 2px 12px rgba(255, 45, 139, 0.2), 0 0 10px rgba(255, 45, 139, 0.12);
}

.notify-wrap { position: relative; z-index: 1050; }
.notify-panel,
.notify-wrap .dropdown-menu {
  z-index: 1060;
}
.notify-bell {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #ffeaf3 0%, #ffd0e4 100%);
  color: var(--vlm-neon-deep);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.55) inset,
    0 8px 18px rgba(255, 45, 139, 0.26),
    0 0 16px rgba(255, 45, 139, 0.22);
  position: relative;
  transition: transform .2s var(--vlm-ease), filter .2s var(--vlm-ease), box-shadow .2s var(--vlm-ease);
}
.notify-bell svg { width: 18px; height: 18px; }
.notify-bell:hover, .notify-bell:focus, .notify-bell.show {
  color: #9d174d;
  filter: brightness(1.03);
  transform: translateY(-1px);
}
.notify-badge {
  position: absolute;
  top: -5px;
  inset-inline-end: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff6bb8 0%, var(--vlm-neon) 100%);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 2px #fff, 0 0 10px rgba(255, 45, 139, 0.55);
  line-height: 1;
}
.notify-bell.has-new { animation: notify-wiggle 2.6s ease-in-out infinite; }
.today-list-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0f2744 0%, #1c3b63 58%, #0e7490 100%);
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 39, 68, 0.22);
  position: relative;
}
.today-list-btn:hover, .today-list-btn:focus, .today-list-btn.show {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.today-list-mark { display: grid; place-items: center; line-height: 1; }
.today-list-btn.has-new { box-shadow: 0 8px 18px rgba(15, 39, 68, 0.28), 0 0 0 2px rgba(253, 230, 138, 0.55); }
.today-list-panel { width: min(380px, calc(100vw - 1.5rem)); }
.today-list-panel-head { background: linear-gradient(180deg, #ecfeff 0%, #fff 100%); }
.today-list-scroll { max-height: min(26rem, 70vh); overflow: auto; }
.today-list-row {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: start;
  padding: 0.7rem 1rem;
  border-top: 1px solid #f1f5f9;
  text-decoration: none;
  color: inherit;
}
.today-list-row:hover { background: #f8fafc; }
.today-list-ico { font-size: 0.95rem; line-height: 1.2; }
.today-list-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--vlm-navy);
}
.today-list-names {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.45rem;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  color: #64748b;
}
.today-list-count {
  font-size: 0.95rem;
  color: var(--vlm-navy);
  line-height: 1.2;
}
.team-pulse {
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(214, 226, 240, 0.95);
  border-radius: var(--vlm-radius);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75) inset,
    0 14px 36px rgba(12, 34, 60, 0.09),
    0 0 28px rgba(255, 45, 139, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #f7fafd 100%);
}
.team-pulse > summary.team-pulse-head {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  user-select: none;
}
.team-pulse > summary.team-pulse-head::-webkit-details-marker { display: none; }
.team-pulse > summary.team-pulse-head::marker { content: ""; }
.team-pulse > summary.team-pulse-head:hover { filter: brightness(1.06); }
.team-pulse > summary.team-pulse-head:focus-visible {
  outline: 2px solid rgba(255, 182, 216, 0.85);
  outline-offset: -2px;
}
.team-pulse-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 16px rgba(255, 45, 139, 0.2);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  line-height: 1;
}
.team-pulse-toggle-text.is-open { display: none; }
.team-pulse[open] .team-pulse-toggle-text.is-closed { display: none; }
.team-pulse[open] .team-pulse-toggle-text.is-open { display: inline; }
.team-pulse-chevron {
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid rgba(255, 255, 255, 0.9);
  border-bottom: 2px solid rgba(255, 255, 255, 0.9);
  transform: rotate(45deg);
  transition: transform 0.18s var(--vlm-ease);
  margin-top: -0.18rem;
}
.team-pulse[open] .team-pulse-chevron {
  transform: rotate(225deg);
  margin-top: 0.12rem;
}
.team-pulse-head {
  padding: 0.7rem 1.15rem;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 45, 139, 0.42) 0%, transparent 52%),
    radial-gradient(90% 120% at 0% 100%, rgba(34, 211, 238, 0.2) 0%, transparent 48%),
    linear-gradient(120deg, #0b1f36 0%, #143556 58%, #0e4f63 100%);
  color: #fff;
  position: relative;
}
.team-pulse-head::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 45, 139, 0.6), rgba(34, 211, 238, 0.4), transparent);
}
.team-pulse-head-text { min-width: 0; }
.team-pulse-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.35;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
}
.team-pulse-sep {
  opacity: 0.45;
  font-weight: 600;
  color: #ffb6d8;
}
.team-pulse-sub {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 0.88;
  line-height: 1.35;
}
.team-desk-sla-bar {
  padding: 0.55rem 1.15rem;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
  border-bottom: 1px solid rgba(226, 234, 244, 0.95);
}
.team-desk-sla-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  align-items: center;
  justify-content: space-between;
}
.team-desk-sla-label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.45rem;
  min-width: 0;
  flex: 1 1 16rem;
}
.team-desk-sla-label strong {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--vlm-navy);
  letter-spacing: -0.01em;
}
.team-desk-sla-label strong::after {
  content: ":";
  margin-inline-start: 0.1rem;
}
.team-desk-sla-label > span:not(.team-desk-sla-sep):not(.team-desk-sla-help) {
  font-size: 0.84rem;
  color: #475569;
  font-weight: 650;
}
.team-desk-sla-sep {
  color: #cbd5e1;
  font-weight: 600;
  font-size: 0.84rem;
}
.team-desk-sla-help {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #64748b;
  font-weight: 550;
  flex: 1 1 12rem;
}
.team-desk-sla {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.12rem;
  align-items: center;
  padding: 0.2rem;
  border-radius: 0.8rem;
  background: linear-gradient(180deg, #eef2f7 0%, #e8eef5 100%);
  border: 1px solid #dbe4ef;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
  flex-shrink: 0;
}
.team-desk-sla-btn {
  font-size: 0.84rem;
  font-weight: 750;
  color: #334155;
  text-decoration: none;
  padding: 0.4rem 0.7rem;
  border-radius: 0.6rem;
  border: 0;
  background: transparent;
  line-height: 1.2;
  transition: background 0.18s var(--vlm-ease), color 0.18s var(--vlm-ease), box-shadow 0.18s var(--vlm-ease);
}
.team-desk-sla-btn:hover {
  background: rgba(255, 255, 255, 0.85);
  color: var(--vlm-navy);
}
.team-desk-sla-btn.is-active {
  background: linear-gradient(180deg, #ff7ec2 0%, var(--vlm-neon) 55%, var(--vlm-neon-deep) 100%);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 6px 16px rgba(255, 45, 139, 0.35),
    0 0 16px rgba(255, 45, 139, 0.28);
}
.team-desk-alerts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.55rem;
  padding: 0.85rem 1.15rem 0.35rem;
}
.team-desk-alert {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.8rem;
  border: 1px solid #e8edf3;
  background: linear-gradient(165deg, #fff 0%, #fafbfd 100%);
  text-decoration: none;
  color: inherit;
  min-width: 0;
  box-shadow: 0 4px 14px rgba(12, 34, 60, 0.04);
  transition: border-color 0.18s var(--vlm-ease), transform 0.18s var(--vlm-ease), box-shadow 0.18s var(--vlm-ease);
}
.team-desk-alert:hover {
  border-color: rgba(255, 45, 139, 0.28);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(12, 34, 60, 0.08), 0 0 16px rgba(255, 45, 139, 0.1);
  color: inherit;
}
.team-desk-alert strong {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--vlm-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.team-desk-alert span {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.35;
  font-weight: 600;
}
.team-desk-alert.is-rose {
  background: linear-gradient(165deg, #fff5f6 0%, #fff1f2 100%);
  border-color: #fecdd3;
}
.team-desk-alert.is-amber {
  background: linear-gradient(165deg, #fffdf5 0%, #fffbeb 100%);
  border-color: #fde68a;
}
.team-desk-alert.is-sky {
  background: linear-gradient(165deg, #f5fbff 0%, #f0f9ff 100%);
  border-color: #bae6fd;
}
.team-desk-alert.is-mint {
  background: linear-gradient(165deg, #f3fdf8 0%, #ecfdf5 100%);
  border-color: #a7f3d0;
}
.team-desk-alert.is-violet {
  background: linear-gradient(165deg, #f8f6ff 0%, #f5f3ff 100%);
  border-color: #ddd6fe;
}
.team-desk-table-wrap {
  overflow-x: auto;
  padding: 0.35rem 0.85rem 0.85rem;
}
.team-desk-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 860px;
}
.team-desk-table th {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  font-weight: 800;
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
  background: linear-gradient(180deg, #f6f9fc 0%, #eef3f9 100%);
}
.team-desk-table th:first-child { border-radius: 0.55rem 0 0 0; }
.team-desk-table th:last-child { border-radius: 0 0.55rem 0 0; }
.team-desk-table td {
  padding: 0.6rem 0.4rem;
  border-bottom: 1px solid #eef2f7;
  vertical-align: middle;
}
.team-desk-table tbody tr {
  transition: background 0.15s var(--vlm-ease);
}
.team-desk-table tbody tr:hover td {
  background: linear-gradient(90deg, rgba(255, 247, 251, 0.85) 0%, #f8fafc 100%);
}
.team-desk-table tr.is-quiet { opacity: 0.55; }
.team-desk-table tr.is-quiet:hover { opacity: 0.92; }
.team-desk-name {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}
.team-desk-name strong {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--vlm-navy);
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.team-desk-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.team-desk-reason {
  font-size: 0.72rem;
  font-weight: 750;
  color: #9a3412;
  background: #ffedd5;
  border: 1px solid rgba(253, 186, 116, 0.55);
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
  white-space: nowrap;
  line-height: 1.25;
}
.team-desk-num {
  display: inline-grid;
  place-items: center;
  min-width: 1.9rem;
  height: 1.9rem;
  padding: 0 0.4rem;
  border-radius: 0.55rem;
  background: linear-gradient(180deg, #fff 0%, #f4f7fb 100%);
  border: 1px solid #dde5ef;
  color: var(--vlm-navy);
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  transition: border-color 0.15s var(--vlm-ease), background 0.15s var(--vlm-ease), box-shadow 0.15s var(--vlm-ease), transform 0.15s var(--vlm-ease);
}
.team-desk-num:hover {
  border-color: rgba(255, 45, 139, 0.35);
  background: #fff;
  color: var(--vlm-neon-deep);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 45, 139, 0.12);
}
.team-desk-num.is-hot {
  background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
  border-color: #fdba74;
  color: #9a3412;
  box-shadow: 0 0 12px rgba(251, 146, 60, 0.18);
}
.team-desk-num.is-done {
  background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
  border-color: #6ee7b7;
  color: #047857;
}
.team-desk-actions { text-align: end; white-space: nowrap; }
.team-desk-action-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  justify-content: flex-end;
}
.team-desk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 750;
  line-height: 1.15;
  padding: 0.42rem 0.65rem;
  border-radius: 0.55rem;
  border: 1px solid #cbd5e1;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  color: #334155;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s var(--vlm-ease), box-shadow .16s var(--vlm-ease), border-color .16s var(--vlm-ease), background .16s var(--vlm-ease);
}
.team-desk-btn:hover {
  border-color: #94a3b8;
  background: #fff;
  color: var(--vlm-navy);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(12, 34, 60, 0.08);
}
.team-desk-btn-warn {
  border-color: #fcd34d;
  background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
  color: #92400e;
}
.team-desk-btn-warn:hover { background: #fef3c7; color: #78350f; }
.team-desk-btn-primary {
  border-color: transparent;
  background: linear-gradient(180deg, #ff7ec2 0%, var(--vlm-neon) 50%, var(--vlm-neon-deep) 100%);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 5px 14px rgba(255, 45, 139, 0.35),
    0 0 14px rgba(255, 45, 139, 0.25);
}
.team-desk-btn-primary:hover {
  filter: brightness(1.08);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.22) inset,
    0 8px 18px rgba(255, 45, 139, 0.45),
    0 0 20px rgba(255, 45, 139, 0.35);
}
.team-desk-aging {
  border-top: 1px solid #e8edf3;
  padding: 0.85rem 1.15rem 1rem;
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(255, 45, 139, 0.05), transparent 50%),
    linear-gradient(180deg, #fff 0%, #fffaf5 100%);
}
.team-desk-aging-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.65rem;
  align-items: baseline;
  margin-bottom: 0.55rem;
}
.team-desk-aging-head strong {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--vlm-navy);
  letter-spacing: -0.01em;
}
.team-desk-aging-head span {
  font-size: 0.82rem;
  color: #94a3b8;
  font-weight: 600;
}
.team-desk-aging-list { display: grid; gap: 0.4rem; }
.team-desk-aging-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.5rem 0.7rem;
  align-items: center;
  padding: 0.55rem 0.7rem;
  border-radius: 0.75rem;
  border: 1px solid #fde68a;
  background: linear-gradient(165deg, #fffdf7 0%, #fffbeb 100%);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.06);
  transition: border-color 0.15s var(--vlm-ease), box-shadow 0.15s var(--vlm-ease);
}
.team-desk-aging-item:hover {
  border-color: #fbbf24;
  box-shadow: 0 8px 18px rgba(217, 119, 6, 0.1);
}
.team-desk-aging-main {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.team-desk-aging-main:hover strong { color: var(--vlm-neon-deep); }
.team-desk-aging-main strong {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--vlm-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}
.team-desk-aging-main span {
  font-size: 0.8rem;
  color: #9a3412;
  font-weight: 600;
  line-height: 1.35;
}
.team-desk-aging-age {
  flex-shrink: 0;
  font-size: 0.84rem;
  font-weight: 800;
  color: #9a3412;
  font-variant-numeric: tabular-nums;
  padding: 0.25rem 0.45rem;
  border-radius: 0.45rem;
  background: rgba(255, 237, 213, 0.75);
}
.team-desk-reassign {
  display: inline-flex;
  gap: 0.3rem;
  align-items: center;
  margin: 0;
}
.team-desk-reassign .form-select {
  width: auto;
  min-width: 7.5rem;
  max-width: 9.5rem;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: 0.55rem;
}
@media (max-width: 900px) {
  .team-desk-alerts { grid-template-columns: 1fr 1fr; }
  .team-desk-aging-item {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .team-desk-reassign {
    grid-column: 1 / -1;
    width: 100%;
  }
  .team-desk-reassign .form-select { flex: 1; max-width: none; }
}
@media (max-width: 560px) {
  .team-desk-alerts { grid-template-columns: 1fr; }
}
.notify-panel {
  width: min(340px, calc(100vw - 1.5rem));
  border: 0 !important;
  border-radius: 1.2rem !important;
  padding: 0 !important;
  overflow: hidden;
  box-shadow: 0 20px 44px rgba(15, 39, 68, 0.16) !important;
}
.notify-panel-head {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding: 0.9rem 1rem 0.75rem;
  background: linear-gradient(180deg, #fff6fa 0%, #fff 100%);
  font-weight: 800;
  color: var(--vlm-navy);
}
.notify-panel-head small {
  font-weight: 600;
  color: #94a3b8;
  font-size: 0.75rem;
}
.notify-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.8rem 1rem;
  text-decoration: none;
  color: var(--vlm-text);
  border-top: 1px solid #f1f5f9;
}
.notify-item:hover { background: #f8fafc; color: var(--vlm-navy); }
.notify-dot {
  width: 36px;
  height: 36px;
  border-radius: 0.9rem;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.notify-item-mint .notify-dot { background: #d8f3e7; }
.notify-item-rose .notify-dot { background: #fde8ea; }
.notify-item-sky .notify-dot { background: #dceafb; }
.notify-item-amber .notify-dot { background: #fef3c7; }
.notify-item-violet .notify-dot { background: #ede9fe; }
.notify-text { display: block; font-size: 0.9rem; font-weight: 600; line-height: 1.35; }
.notify-go { display: block; margin-top: 0.18rem; font-size: 0.75rem; font-weight: 700; color: var(--vlm-neon-deep); }
.notify-empty { padding: 1.25rem 1rem 1.35rem; text-align: center; color: #64748b; font-size: 0.9rem; }
.notify-empty-emoji { font-size: 1.5rem; margin-bottom: 0.35rem; }

@keyframes notify-wiggle {
  0%, 82%, 100% { transform: rotate(0deg); }
  86% { transform: rotate(10deg); }
  90% { transform: rotate(-8deg); }
  94% { transform: rotate(6deg); }
}

.vlm-offcanvas {
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 45, 139, 0.28), transparent 42%),
    linear-gradient(180deg, #050608 0%, #0b1020 100%);
  color: #fff;
  border: 0;
  box-shadow: 8px 0 40px rgba(0, 0, 0, 0.4);
}
.vlm-offcanvas .offcanvas-header {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.vlm-offcanvas .nav-link {
  color: rgba(255,255,255,0.84);
}
.nav-link-mobile {
  display: flex !important;
  align-items: center;
  gap: 0.65rem;
  border-radius: 0.85rem;
  padding: 0.75rem 0.85rem;
}
.nav-link-mobile svg { width: 18px; height: 18px; }
.nav-link-mobile.active {
  background: rgba(255, 45, 139, 0.16) !important;
  color: #fff !important;
  box-shadow: inset 3px 0 0 var(--vlm-neon), 0 0 0 1px rgba(255, 45, 139, 0.28);
}
.nav-link-mobile.nav-link-notes {
  color: #7ee0c8 !important;
}
.nav-link-mobile.nav-link-notes.active {
  background: rgba(45, 212, 191, 0.16) !important;
  color: #fff !important;
  box-shadow: inset 3px 0 0 #2dd4bf, 0 0 0 1px rgba(45, 212, 191, 0.28);
}

.vlm-toast-stack {
  position: fixed;
  top: 1rem;
  inset-inline-end: 1rem;
  z-index: 1080;
  display: grid;
  gap: 0.7rem;
  width: min(380px, calc(100vw - 2rem));
}
.vlm-toast {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 39, 68, 0.16);
  border: 1px solid rgba(228, 235, 243, 0.95);
  animation: vlm-toast-in .28s ease;
}
.vlm-toast.is-leaving { animation: vlm-toast-out .2s ease forwards; }
.vlm-toast-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 800;
  flex-shrink: 0;
}
.vlm-toast-success .vlm-toast-icon { background: #e7f6f1; color: #14624f; }
.vlm-toast-error .vlm-toast-icon { background: #fde8ea; color: #b42318; }
.vlm-toast-body { min-width: 0; flex: 1; }
.vlm-toast-body strong { display: block; color: var(--vlm-navy); font-size: 0.9rem; }
.vlm-toast-body p { margin: 0.2rem 0 0; color: #475569; font-size: 0.86rem; line-height: 1.45; }
.vlm-toast-close {
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 1.2rem;
  line-height: 1;
  padding: 0;
}
.vlm-toast-close:hover { color: #475569; }

.vlm-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1090;
  background: rgba(12, 26, 44, 0.42);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 1rem;
}
.vlm-dialog {
  width: min(440px, 100%);
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.45rem 1.4rem 1.25rem;
  box-shadow: 0 28px 60px rgba(12, 26, 44, 0.28);
  animation: vlm-dialog-in .22s ease;
}
.vlm-dialog-icon {
  width: 42px;
  height: 42px;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  background: #e8eef7;
  color: var(--vlm-navy);
  font-weight: 800;
  margin-bottom: 0.85rem;
}
.vlm-dialog-backdrop[data-variant="danger"] .vlm-dialog-icon { background: #fde8ea; color: #b42318; }
.vlm-dialog h3 {
  margin: 0 0 0.4rem;
  font-size: 1.12rem;
  color: var(--vlm-navy);
}
.vlm-dialog p {
  margin: 0 0 1.15rem;
  color: #5b6776;
  line-height: 1.5;
  font-size: 0.94rem;
}
.vlm-dialog-actions { display: flex; justify-content: flex-end; gap: 0.55rem; }

@keyframes vlm-toast-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
@keyframes vlm-toast-out {
  to { opacity: 0; transform: translateY(-8px); }
}
@keyframes vlm-dialog-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.form-answers { margin: 0; display: grid; gap: 0.7rem; }
.form-answer dt {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--vlm-muted);
  margin-bottom: 0.15rem;
}
.form-answer dd { margin: 0; color: var(--vlm-navy); font-weight: 600; }
.reminder-list { display: grid; gap: 0.55rem; }
.reminder-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.15rem;
  border-bottom: 1px solid #eef2f6;
}
.reminder-row:last-child { border-bottom: 0; }
.reminder-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; flex-shrink: 0; }
.campaign-rate { display: grid; gap: 0.25rem; min-width: 4.5rem; }
.campaign-track {
  display: block;
  height: 5px;
  border-radius: 99px;
  background: #eef2f6;
  overflow: hidden;
}
.campaign-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #1c3b63, var(--vlm-neon));
}
.campaign-spend-input { max-width: 8.5rem; }
.campaign-spend-source { font-size: 0.72rem; color: #7b8794; margin-top: 0.2rem; }
.campaign-spend-note {
  font-size: 0.86rem;
  color: #6b4a16;
  background: #fff7e8;
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
}
.campaign-total-row th {
  border-top: 1px solid #e6ebf1;
  font-weight: 700;
  color: #1c3b63;
}

html[dir="rtl"] .vlm-toast-stack { inset-inline-end: 1rem; }

@media (max-width: 991.98px) {
  .sidebar { display: none; }
  .content { padding: 0.85rem; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand { min-height: 180px; }
  .info-grid { grid-template-columns: 1fr; }
  .lead-action-bar { padding: 0.75rem; gap: 0.55rem; }
  .lead-action { min-height: 46px; flex: 1 1 calc(50% - 0.55rem); padding: 0.65rem 0.85rem; font-size: 0.9rem; white-space: normal; }
  .lead-action-meta { flex-basis: 100%; font-size: 0.98rem; }
  .settings-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .topbar {
    flex-wrap: wrap;
    align-items: center;
    padding: 0.55rem 0.8rem;
    gap: 0.5rem;
  }
  .topbar-mid {
    flex: 1 1 100%;
    order: 4;
  }
  .topbar-actions {
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.35rem;
  }
  .topbar .btn-sm {
    padding: 0.28rem 0.55rem;
    font-size: 0.75rem;
  }
  .topbar-controls {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.35rem;
    flex: 0 0 auto;
    margin-inline-start: auto;
  }
  .topbar-account {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.35rem;
    flex: 0 0 auto;
  }
  .topbar-quote {
    flex: 1 1 100%;
    max-width: none;
    min-width: 0;
  }
  .topbar-quote {
    display: block;
  }
  .topbar-quote-text { font-size: 0.8rem; }

  .dash-stat-row .stat-card {
    min-height: 4.5rem;
    padding: 0.7rem 0.65rem 0.65rem 0.8rem;
  }
  .dash-stat-row .stat-card .label {
    min-height: 0;
    font-size: 0.74rem;
  }
  .stat-card .label { font-size: 0.76rem; }
  .stat-card .value { font-size: 1.28rem; }

  /* Admin KPI: 3 cards per row on mobile only */
  .dash-stat-row-admin {
    --bs-gutter-x: 0.4rem;
    --bs-gutter-y: 0.4rem;
  }
  .dash-stat-row-admin .stat-card {
    min-height: 4.1rem;
    padding: 0.45rem 0.35rem 0.4rem 0.45rem;
  }
  .dash-stat-row-admin .stat-card .label {
    font-size: 0.58rem;
    line-height: 1.15;
    min-height: 1.55rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .dash-stat-row-admin .stat-card .value {
    font-size: 1.12rem;
    margin-top: 0.15rem;
  }

  .dash-panel-head { padding: 0.65rem 0.85rem; }
  .dash-panel-head h2,
  .dash-panel-head .h5 { font-size: 0.98rem; }
  .dash-panel > .status-legend { margin: 0.7rem 0.85rem 0.85rem; }
  .dash-panel > .focus-list { margin: 0.3rem 0.55rem 0; }
  .dash-panel > .focus-summary { margin: 0.65rem 0.85rem 0.85rem; }
  .dash-panel > .perf-legend,
  .dash-panel-fill > .perf-legend,
  .dash-panel-compact > .perf-legend { display: none !important; }
  .dash-panel > .perf-list { margin: 0 0.75rem 0.85rem; }

  /* Status overview: flatten nested layout so bars/dots align on mobile */
  .status-legend-item,
  .dash-panel-fill .status-legend-item,
  .dash-panel-compact .status-legend-item,
  .dash-panel-fill.dash-panel-compact .status-legend-item {
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr) 2.1rem 2.5rem;
    grid-template-areas:
      "dot label value pct"
      ". track track track";
    column-gap: 0.45rem;
    row-gap: 0.22rem;
    align-items: center;
    flex: 0 0 auto;
    min-height: 0;
    padding: 0.32rem 0.1rem;
  }
  .status-legend-main,
  .status-legend-top {
    display: contents;
  }
  .status-dot,
  .dash-panel-fill .status-dot,
  .dash-panel-compact .status-dot,
  .dash-panel-fill.dash-panel-compact .status-dot {
    grid-area: dot;
    width: 8px;
    height: 8px;
    margin-top: 0 !important;
    align-self: center;
    flex-shrink: 0;
  }
  .status-legend-label,
  .dash-panel-fill .status-legend-label,
  .dash-panel-compact .status-legend-label {
    grid-area: label;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    font-size: 0.8rem;
  }
  .status-legend-value,
  .dash-panel-fill .status-legend-value,
  .dash-panel-compact .status-legend-value {
    grid-area: value;
    text-align: right;
    font-size: 0.82rem;
    padding-top: 0;
    align-self: center;
  }
  .status-legend-percent,
  .dash-panel-fill .status-legend-percent,
  .dash-panel-compact .status-legend-percent {
    grid-area: pct;
    text-align: right;
    min-width: 0;
    font-size: 0.72rem;
    padding-top: 0;
    align-self: center;
  }
  .status-track,
  .dash-panel-fill .status-track,
  .dash-panel-compact .status-track {
    grid-area: track;
    margin-top: 0 !important;
    height: 4px;
  }

  .dash-panel-fill > .status-legend,
  .dash-panel-fill.dash-panel-compact > .status-legend,
  .dash-panel-compact > .status-legend {
    flex: 0 0 auto;
    justify-content: flex-start;
    gap: 0.15rem;
    margin: 0.55rem 0.75rem 0.75rem;
  }

  .chart-wrap-horizontal {
    overflow: visible;
  }

  /* Mobile: labeled metric cards — desktop table layout unchanged */
  .perf-legend { display: none; }
  .perf-row,
  .dash-panel-fill .perf-row,
  .dash-panel-compact .perf-row,
  .dash-panel-fill.dash-panel-compact .perf-row {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 0.35rem 0.55rem;
    padding: 0.55rem 0.15rem 0.65rem;
    align-items: start;
    flex: 0 0 auto;
    min-height: 0;
  }
  .perf-row .perf-bar,
  .dash-panel-fill .perf-row .perf-bar { display: none; }
  .perf-row .perf-name,
  .dash-panel-fill .perf-name {
    padding-top: 0.25rem;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    line-height: 1.25;
  }
  .perf-row .perf-nums,
  .dash-panel-fill .perf-nums,
  .dash-panel-compact .perf-nums,
  .dash-panel-fill.dash-panel-compact .perf-nums {
    grid-column: 1 / -1;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.16rem;
    justify-items: stretch;
    font-size: 0.7rem;
    white-space: normal;
  }
  .perf-row .perf-nums span,
  .dash-panel-fill .perf-nums span {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.04rem;
    width: 100%;
    min-width: 0;
    padding: 0.22rem 0.04rem;
    border-radius: 0.4rem;
    background: #f5f8fb;
    border: 1px solid #e8eef5;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    font-variant-numeric: tabular-nums;
  }
  .perf-row .perf-nums span::before {
    content: attr(data-label);
    display: block;
    width: 100%;
    font-size: 0.42rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #94a3b8;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .perf-row .perf-nums strong,
  .dash-panel-fill .perf-nums strong,
  .dash-panel-compact .perf-nums strong {
    font-size: 0.72rem;
    line-height: 1.05;
  }
  .perf-row .perf-nums .is-score,
  .dash-panel-fill .perf-nums .is-score {
    font-size: 0.68rem;
    letter-spacing: -0.03em;
  }
  .dash-panel-fill > .status-legend,
  .dash-panel-fill > .perf-list {
    justify-content: flex-start;
  }
  .dash-panel-fill > .perf-list {
    gap: 0;
  }
  .dash-panel-fill .perf-row {
    flex: 0 0 auto;
  }
  .dash-panel-fill.dash-panel-compact > .perf-list {
    margin: 0 0.75rem 0.75rem;
  }
  .dash-twin-row > [class*="col-"] {
    display: block;
  }
  .dash-panel-fill {
    min-height: 0;
  }

  .focus-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.4rem;
  }
  .focus-status { display: none; }
  .focus-summary {
    padding: 0.65rem 0.7rem;
  }
  .focus-summary-chips {
    gap: 0.35rem;
  }
  .focus-summary-chip {
    width: 100%;
    justify-content: space-between;
  }

  .race-hero {
    flex-direction: column;
    align-items: flex-start;
  }
  .race-row {
    grid-template-columns: 2.2rem 28px minmax(0, 1fr) auto;
    gap: 0.35rem;
  }
  .race-medal { width: 1.85rem; height: 1.85rem; font-size: 1.25rem; }
  .race-medal-gold { font-size: 1.4rem; }
  .race-baby { width: 1.85rem; height: 1.85rem; }
  .race-baby-num { font-size: 0.68rem; }

  .insight-grid { grid-template-columns: 1fr; }
  .insight-grid-leads { grid-template-columns: 1fr; }
  .insight-hero { flex-direction: column; }
  .insight-funnel-step {
    grid-template-columns: 3.8rem minmax(0, 1fr) 3.2rem;
    gap: 0.3rem;
  }

  .chart-wrap-horizontal {
    height: auto;
    min-height: 300px;
    max-height: none;
  }

  .detail-hero { padding: 0.9rem 0.95rem; }
  .detail-hero h1 { font-size: 1.2rem; }
}

/* ?? T?bbi Anamnez ?? */
.anamnesis-panel {
  --an-accent: #c2185b;
  --an-accent-soft: #fce4ec;
  --an-border: #f3b6cb;
  --an-head: #f8e7ef;
  --an-block: #faf5f8;
  margin-top: 0.75rem;
  border: 1.5px solid var(--an-border);
  border-radius: 0.9rem;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(194, 24, 91, 0.05);
}
.anamnesis-head {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.55rem 0.8rem;
  background: linear-gradient(180deg, #fff5f8 0%, #ffe8f0 100%);
  border-bottom: 1px solid var(--an-border);
}
.anamnesis-head-icon {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--an-accent);
  color: #fff;
  flex-shrink: 0;
}
.anamnesis-head-icon svg { width: 14px; height: 14px; }
.anamnesis-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #5a1030;
  line-height: 1.2;
}
.anamnesis-lock-note {
  margin-top: 0.1rem;
  font-size: 0.72rem;
  color: #8a4a63;
  line-height: 1.25;
}
.anamnesis-form { padding: 0.55rem 0.7rem 0.7rem; }
.anamnesis-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0.5rem;
}
.anamnesis-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}
.anamnesis-block {
  border: 1px solid #f0d4e0;
  border-radius: 0.65rem;
  background: var(--an-block);
  padding: 0.45rem 0.6rem 0.55rem;
}
.anamnesis-block-head {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.8rem;
  color: #6b1a3d;
  margin-bottom: 0.4rem;
  padding: 0.2rem 0.35rem;
  border-radius: 0.4rem;
  background: rgba(255, 255, 255, 0.7);
}
.anamnesis-block-icon {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--an-accent-soft);
  color: var(--an-accent);
  font-size: 0.72rem;
}
.anamnesis-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 0.5rem;
}
.anamnesis-field .form-label {
  margin-bottom: 0.15rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #6b1a3d;
}
.anamnesis-field .form-control,
.anamnesis-field .form-select,
.anamnesis-block .form-control,
.anamnesis-block .form-select {
  padding: 0.28rem 0.45rem;
  font-size: 0.84rem;
  min-height: 2rem;
}
.anamnesis-field-span { grid-column: 1 / -1; }
.anamnesis-input-suffix {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.anamnesis-input-suffix .form-control { flex: 1; }
.anamnesis-input-suffix > span {
  font-size: 0.72rem;
  color: #8a4a63;
  white-space: nowrap;
}
.anamnesis-gp {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
}
.anamnesis-inline-radios {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}
.anamnesis-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  margin: 0;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  border: 1px solid #ecc0d2;
  background: #fff;
  cursor: pointer;
  font-size: 0.78rem;
  color: #5a1030;
  line-height: 1.2;
}
.anamnesis-chip input { accent-color: var(--an-accent); }
.anamnesis-chip:has(input:checked) {
  border-color: var(--an-accent);
  background: var(--an-accent-soft);
  font-weight: 600;
}
.anamnesis-ivf-count {
  display: none;
  align-items: center;
  gap: 0.3rem;
  margin-left: 0.15rem;
}
.anamnesis-ivf-count.is-visible { display: inline-flex; }
.anamnesis-ivf-count .form-label { font-size: 0.72rem; }
.anamnesis-ivf-count .form-control { width: 3.6rem; }
.anamnesis-checks {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}
.anamnesis-checks-row {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.2rem 0.55rem;
}
.anamnesis-check {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
  font-size: 0.8rem;
  color: #3d2030;
  cursor: pointer;
  line-height: 1.2;
}
.anamnesis-check input { accent-color: var(--an-accent); width: 0.9rem; height: 0.9rem; }
.anamnesis-block .form-control.mt-2 { margin-top: 0.35rem !important; }
.anamnesis-block-note { position: relative; background: #fff; }
.anamnesis-block-note textarea {
  min-height: 5.5rem;
  resize: vertical;
  border-color: #ecc0d2;
  font-size: 0.84rem;
  padding: 0.4rem 0.5rem;
}
.anamnesis-note-badge {
  position: absolute;
  right: 0.55rem;
  bottom: 0.45rem;
  opacity: 0.35;
  color: var(--an-accent);
  pointer-events: none;
}
.anamnesis-actions {
  margin-top: 0.55rem;
  display: flex;
  justify-content: flex-end;
}
.btn-anamnesis {
  background: linear-gradient(180deg, #ff5aa3 0%, #e91e63 48%, #c2185b 100%);
  border: 0;
  color: #fff;
  font-weight: 700;
  padding: 0.45rem 1.05rem;
  border-radius: 0.7rem;
  font-size: 0.88rem;
  box-shadow: 0 8px 16px rgba(233, 30, 99, 0.25);
}
.btn-anamnesis:hover {
  background: linear-gradient(180deg, #ff6eb0 0%, #e91e63 50%, #ad1457 100%);
  color: #fff;
}
.anamnesis-panel.is-readonly .anamnesis-chip,
.anamnesis-panel.is-readonly .anamnesis-check {
  cursor: default;
  opacity: 0.92;
}
.anamnesis-panel.is-readonly .form-control,
.anamnesis-panel.is-readonly .form-select {
  background: #faf7f9;
}

@media (max-width: 991.98px) {
  .anamnesis-grid { grid-template-columns: 1fr; }
  .anamnesis-fields { grid-template-columns: 1fr; }
}

/* ?? Premium surface polish ?? */
.dropdown-menu {
  border: 1px solid rgba(214, 226, 240, 0.95);
  border-radius: 0.95rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 18px 40px rgba(12, 34, 60, 0.12),
    0 0 0 1px rgba(255, 45, 139, 0.04);
  padding: 0.4rem;
  backdrop-filter: blur(12px);
}
.dropdown-item {
  border-radius: 0.65rem;
  font-weight: 600;
  transition: background .15s var(--vlm-ease), color .15s var(--vlm-ease);
}
.dropdown-item:hover, .dropdown-item:focus {
  background: linear-gradient(90deg, rgba(255, 45, 139, 0.08), rgba(255, 247, 251, 0.9));
  color: var(--vlm-neon-deep);
}
.alert {
  border-radius: 0.95rem;
  border-width: 1px;
  box-shadow: 0 6px 18px rgba(12, 34, 60, 0.05);
}
.modal-content {
  border: 1px solid rgba(214, 226, 240, 0.95);
  border-radius: 1.15rem;
  box-shadow: 0 24px 60px rgba(12, 34, 60, 0.2), 0 0 40px rgba(255, 45, 139, 0.08);
  overflow: hidden;
}
.modal-header {
  border-bottom-color: rgba(226, 234, 244, 0.95);
  background: linear-gradient(180deg, #fafcfe 0%, #fff 100%);
}
.topbar > .d-flex > div > strong {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--vlm-navy);
}
.card-soft > .card-body,
.card-soft.p-3,
.card-soft.p-4 {
  position: relative;
}
.table > tbody > tr[class*="lead-row-"]:hover {
  filter: brightness(0.985) saturate(1.05);
}
.btn-primary:focus-visible,
.btn-outline-primary:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible {
  outline: none;
}
.lead-action-assign:hover {
  box-shadow:
    0 16px 34px rgba(255, 45, 139, 0.48),
    0 0 34px rgba(255, 45, 139, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.22) inset;
}
@media (prefers-reduced-motion: reduce) {
  body { background-attachment: scroll; }
}

/* ?? Sidebar team chat ?? */
.sidebar-chat {
  flex: 1 1 auto;
  min-height: 12rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: auto;
  padding: 0.55rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(15, 39, 68, 0.55) 0%, rgba(8, 18, 34, 0.85) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.sidebar-chat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.4rem;
}
.sidebar-chat-head strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
}
.sidebar-chat-sub {
  display: block;
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.05rem;
}
.sidebar-chat-badge {
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #ff2d8b;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  display: inline-grid;
  place-items: center;
  line-height: 1;
}
.sidebar-chat-badge[hidden] { display: none !important; }
.sidebar-chat-inbox {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  max-height: 5.8rem;
  overflow: auto;
  padding-right: 0.1rem;
}
.sidebar-chat-inbox-empty {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.4);
  padding: 0.15rem 0.1rem;
}
.sidebar-chat-inbox-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-radius: 0.55rem;
  padding: 0.32rem 0.45rem;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.sidebar-chat-inbox-item:hover,
.sidebar-chat-inbox-item.is-active {
  background: rgba(255, 45, 139, 0.18);
  border-color: rgba(255, 45, 139, 0.45);
}
.sidebar-chat-inbox-item.is-team {
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.08);
}
.sidebar-chat-inbox-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
}
.sidebar-chat-inbox-top strong {
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.2;
}
.sidebar-chat-inbox-top em {
  font-style: normal;
  min-width: 1.1rem;
  padding: 0.05rem 0.3rem;
  border-radius: 999px;
  background: #ff2d8b;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  text-align: center;
}
.sidebar-chat-inbox-preview {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-chat-peer-label {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.sidebar-chat-peer {
  width: 100%;
  min-height: 2rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-size: 0.78rem;
  padding: 0.25rem 0.45rem;
}
.sidebar-chat-peer option { color: #0f2744; }
.sidebar-chat-thread {
  flex: 1 1 auto;
  min-height: 5.5rem;
  max-height: none;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.35rem 0.15rem;
  border-radius: 0.55rem;
  background: rgba(0, 0, 0, 0.18);
}
.sidebar-chat-empty {
  margin: auto;
  padding: 0.75rem 0.5rem;
  text-align: center;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.35;
}
.sidebar-chat-bubble {
  max-width: 92%;
  padding: 0.35rem 0.5rem;
  border-radius: 0.65rem;
  font-size: 0.74rem;
  line-height: 1.35;
  word-break: break-word;
}
.sidebar-chat-bubble.is-mine {
  align-self: flex-end;
  background: linear-gradient(135deg, #ff2d8b, #c2185b);
  color: #fff;
  border-bottom-right-radius: 0.25rem;
}
.sidebar-chat-bubble.is-theirs {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
  border-bottom-left-radius: 0.25rem;
}
.sidebar-chat-bubble time {
  display: block;
  margin-top: 0.18rem;
  font-size: 0.58rem;
  opacity: 0.7;
}
.sidebar-chat-sender {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  margin-bottom: 0.12rem;
  color: rgba(255, 180, 220, 0.95);
}
.sidebar-chat-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.35rem;
  align-items: end;
}
.sidebar-chat-input {
  width: 100%;
  min-height: 2.35rem;
  max-height: 4.5rem;
  resize: none;
  border-radius: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-size: 0.76rem;
  padding: 0.4rem 0.5rem;
  line-height: 1.3;
}
.sidebar-chat-input::placeholder { color: rgba(255, 255, 255, 0.4); }
.sidebar-chat-input:disabled,
.sidebar-chat-send:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.sidebar-chat-send {
  white-space: nowrap;
  min-height: 2.35rem;
  padding: 0.35rem 0.65rem !important;
  font-size: 0.72rem !important;
}
.sidebar-chat-mobile {
  margin-top: 1rem;
  min-height: 14rem;
}
.vlm-offcanvas .sidebar-chat-mobile {
  background: linear-gradient(180deg, #102a44 0%, #0b1a2c 100%);
}

/* Kendime Notlar — sticky stream */
.notes-board {
  padding: 1.1rem 1.15rem 1.25rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(248,250,252,0.96)),
    repeating-linear-gradient(0deg, transparent, transparent 19px, rgba(148,163,184,0.14) 20px),
    repeating-linear-gradient(90deg, transparent, transparent 19px, rgba(148,163,184,0.1) 20px);
  background-color: #eef2f6;
}
.notes-compose {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.1rem;
  padding: 0.85rem 0.95rem;
  border-radius: 1rem;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(15, 39, 68, 0.08);
  box-shadow: 0 8px 24px rgba(15, 39, 68, 0.06);
}
.notes-compose-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
}
.notes-compose-input {
  width: 100%;
  border: 1px solid rgba(15, 39, 68, 0.12);
  border-radius: 0.75rem;
  padding: 0.7rem 0.85rem;
  font-size: 0.95rem;
  resize: vertical;
  min-height: 4.5rem;
  background: #fff;
}
.notes-compose-input:focus {
  outline: none;
  border-color: rgba(45, 212, 191, 0.55);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.18);
}
.notes-compose-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.notes-swatches {
  display: flex;
  gap: 0.45rem;
}
.notes-swatch {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 0.4rem;
  border: 2px solid transparent;
  box-shadow: 0 2px 6px rgba(15, 39, 68, 0.12);
  cursor: pointer;
  padding: 0;
}
.notes-swatch.is-active {
  border-color: #0f2744;
  transform: translateY(-1px);
}
.notes-swatch-yellow { background: #ffe566; }
.notes-swatch-pink { background: #ffb4c8; }
.notes-swatch-blue { background: #9fd6ff; }
.notes-swatch-green { background: #b8e986; }
.btn-notes-add {
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
  color: #fff !important;
  border: none;
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-weight: 700;
  font-size: 0.86rem;
  box-shadow: 0 8px 18px rgba(13, 148, 136, 0.28);
}
.btn-notes-add:hover {
  filter: brightness(1.05);
  color: #fff !important;
}
.notes-empty {
  padding: 1.5rem 0.5rem;
  text-align: center;
}
.notes-stream {
  display: flex;
  gap: 1.15rem;
  overflow-x: auto;
  padding: 1.35rem 0.35rem 1.1rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.notes-sticker-form {
  margin: 0;
  flex: 0 0 auto;
  scroll-snap-align: start;
}
.notes-sticker {
  --notes-tilt: 0deg;
  position: relative;
  width: 11.5rem;
  min-height: 11.5rem;
  padding: 1.55rem 0.9rem 1.85rem;
  border: 0;
  border-radius: 0.15rem;
  text-align: start;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transform: rotate(var(--notes-tilt));
  box-shadow:
    0 1px 0 rgba(255,255,255,0.55) inset,
    0 14px 28px rgba(15, 39, 68, 0.16),
    0 2px 6px rgba(15, 39, 68, 0.08);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  cursor: pointer;
}
.notes-sticker:hover {
  transform: rotate(var(--notes-tilt)) translateY(-4px) scale(1.02);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.55) inset,
    0 18px 34px rgba(15, 39, 68, 0.2),
    0 4px 10px rgba(15, 39, 68, 0.1);
  filter: saturate(1.05);
}
.notes-sticker-yellow { background: linear-gradient(180deg, #fff3a3 0%, #ffe566 100%); color: #3f3a1f; }
.notes-sticker-pink { background: linear-gradient(180deg, #ffd0dc 0%, #ffb4c8 100%); color: #4a2433; }
.notes-sticker-blue { background: linear-gradient(180deg, #c7e8ff 0%, #9fd6ff 100%); color: #1f3550; }
.notes-sticker-green { background: linear-gradient(180deg, #d4f3ad 0%, #b8e986 100%); color: #2a3d1a; }
.notes-pin {
  position: absolute;
  top: 0.35rem;
  left: 50%;
  width: 0.85rem;
  height: 0.85rem;
  margin-left: -0.42rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #ff8a8a 0%, #e11d48 55%, #9f1239 100%);
  box-shadow:
    0 2px 3px rgba(0,0,0,0.28),
    0 0 0 2px rgba(255,255,255,0.35);
  z-index: 2;
}
.notes-pin::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 70%;
  width: 2px;
  height: 0.55rem;
  margin-left: -1px;
  background: linear-gradient(180deg, #94a3b8, #64748b);
  border-radius: 1px;
}
.notes-sticker-body {
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: 0.92rem;
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-word;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.notes-sticker-ago {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 0.72rem;
  color: rgba(15, 39, 68, 0.55);
  margin-top: auto;
}
.notes-hint {
  margin-top: 0.35rem;
  padding-inline: 0.25rem;
}
@media (max-width: 575.98px) {
  .notes-sticker {
    width: 10.25rem;
    min-height: 10.25rem;
  }
  .notes-compose-row {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-notes-add {
    width: 100%;
  }
}
.notes-admin-group {
  margin-bottom: 1.25rem;
}
.notes-admin-group:last-child {
  margin-bottom: 0;
}
.notes-admin-group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.75rem;
  margin-bottom: 0.15rem;
  padding-inline: 0.25rem;
}
.notes-sticker-readonly {
  cursor: default;
}
.notes-sticker-readonly:hover {
  transform: rotate(var(--notes-tilt));
  filter: none;
}
