:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --ink: #202533;
  --muted: #667085;
  --line: #d9dfeb;
  --panel: #ffffff;
  --accent: #1f7a8c;
  --accent-strong: #14576a;
  --good: #18794e;
  --warn: #a15c07;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: var(--accent-strong);
  text-decoration: none;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 240px;
  background: #0f2d46;
  color: #fff;
  padding: 18px 14px;
  border-right: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 12px 0 28px rgba(16, 42, 67, .08);
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  padding: 12px 10px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.brand img {
  display: block;
  width: 100%;
  max-width: 188px;
  height: auto;
}

.sidebar nav {
  display: grid;
  gap: 7px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.sidebar a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #d8e8f5;
  padding: 11px 12px 11px 13px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .025));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .07),
    0 8px 14px rgba(3, 20, 34, .12);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.25;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease, transform .15s ease;
}

.sidebar a::before {
  content: "";
  position: absolute;
  inset: 10px auto 10px 0;
  width: 3px;
  border-radius: 999px;
  background: transparent;
}

.sidebar a svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: currentColor;
  color: #8fd3dc;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .2));
}

.sidebar a svg.platform-mark {
  padding: 3px;
  border-radius: 5px;
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .2),
    0 2px 4px rgba(0, 0, 0, .22);
}

.sidebar a svg.facebook-mark {
  background: #1877f2;
}

.sidebar a svg.tiktok-mark {
  background: #111827;
}

.sidebar a svg.linkedin-mark {
  background: #0a66c2;
}

.sidebar a span {
  min-width: 0;
}

.sidebar a:hover,
.sidebar a.active {
  color: #ffffff;
  border-color: rgba(120, 221, 232, .28);
  background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .07));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .12),
    0 10px 18px rgba(3, 20, 34, .2);
}

.sidebar a:hover {
  transform: translateX(2px) translateY(-1px);
}

.sidebar a:hover svg,
.sidebar a.active svg {
  color: #ffffff;
}

.sidebar a.active {
  background: linear-gradient(180deg, rgba(86, 194, 207, .28), rgba(255, 255, 255, .08));
  border-color: rgba(86, 194, 207, .42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .16),
    inset 0 0 0 1px rgba(255, 255, 255, .05),
    0 10px 20px rgba(3, 20, 34, .24);
}

.sidebar a.active::before {
  background: #56c2cf;
}

.content {
  margin-left: 240px;
  padding: 24px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.topbar strong {
  font-size: 24px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topbar-actions form {
  margin: 0;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.language-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 11px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
}

.language-globe {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  color: currentColor;
}

.language-globe circle,
.language-globe path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.language-switch a.active {
  background: var(--accent);
  color: #fff;
}

.stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.stats div,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stats div {
  padding: 18px;
}

.stats span {
  display: block;
  font-size: 30px;
  font-weight: 700;
}

.stats small,
.hint {
  color: var(--muted);
}

.dashboard-stage {
  position: relative;
  display: grid;
  gap: 16px;
  isolation: isolate;
}

.content:has(.dashboard-stage) .topbar {
  position: relative;
  z-index: 1;
  padding: 12px 14px;
  border: 1px solid rgba(31, 122, 140, .13);
  border-radius: 8px;
  background: rgba(255, 255, 255, .78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .72),
    0 12px 28px rgba(16, 42, 67, .06);
  backdrop-filter: blur(14px) saturate(1.1);
}

.content:has(.dashboard-stage) .topbar strong {
  color: #142034;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .65);
}

.dashboard-stage::before {
  content: "";
  position: fixed;
  inset: 0 0 0 240px;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(229, 247, 238, .9), rgba(244, 248, 255, .9) 44%, rgba(255, 248, 229, .72)),
    repeating-linear-gradient(135deg, rgba(31, 122, 140, .07) 0 1px, transparent 1px 22px);
  animation: dashboardBackplane 18s linear infinite;
}

.dashboard-stage::after {
  content: "";
  position: fixed;
  inset: 0 0 0 240px;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0%, rgba(45, 127, 240, .12) 36%, rgba(33, 208, 178, .1) 58%, transparent 78%),
    linear-gradient(0deg, rgba(255, 209, 102, .12), transparent 46%);
  opacity: .72;
  transform: translateX(-18%);
  animation: dashboardAmbientSweep 11s ease-in-out infinite;
}

.dashboard-hero {
  position: relative;
  min-height: 238px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(31, 122, 140, .22);
  background:
    linear-gradient(135deg, rgba(13, 39, 67, .96), rgba(19, 70, 82, .88) 54%, rgba(21, 122, 103, .82)),
    #102a43;
  box-shadow:
    0 18px 36px rgba(16, 42, 67, .16),
    inset 0 1px 0 rgba(255, 255, 255, .16);
}

.dashboard-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 52px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 42px);
  mask-image: linear-gradient(90deg, #000, transparent 80%);
}

.hero-energy-map {
  position: absolute;
  inset: 0;
  opacity: .96;
}

.hero-energy-map svg {
  display: block;
  width: 100%;
  height: 100%;
}

.dash-map-line {
  fill: none;
  stroke: rgba(165, 226, 231, .34);
  stroke-width: 2;
  stroke-dasharray: 10 15;
  animation: dashboardMapFlow 14s linear infinite;
}

.map-line-b {
  stroke: rgba(255, 209, 102, .24);
  animation-duration: 18s;
}

.dash-sun {
  transform-box: fill-box;
  transform-origin: center;
  filter: drop-shadow(0 0 16px rgba(255, 209, 102, .64));
  animation: dashboardSunPulse 4.4s ease-in-out infinite;
}

.dash-panels {
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .24));
}

.dash-panel-shine {
  opacity: .42;
  stroke-dasharray: 72 250;
  stroke-dashoffset: 250;
  animation: dashboardPanelSweep 3.7s ease-in-out infinite;
}

.dash-battery {
  filter: drop-shadow(0 13px 18px rgba(0, 0, 0, .25));
}

.dash-battery-fill {
  transform-box: fill-box;
  transform-origin: left center;
  animation: dashboardBattery 4.6s ease-in-out infinite;
}

.dash-energy-flow {
  fill: none;
  stroke: url(#dashEnergyLine);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 14 18;
  filter: drop-shadow(0 0 7px rgba(33, 208, 178, .7));
  animation: dashboardEnergyFlow 2s linear infinite;
}

.flow-b {
  animation-delay: -.8s;
}

.dash-node {
  fill: #28d9c2;
  stroke: #ffffff;
  stroke-width: 3;
  filter: drop-shadow(0 0 10px rgba(40, 217, 194, .75));
  transform-box: fill-box;
  transform-origin: center;
  animation: dashboardNodePulse 2.4s ease-in-out infinite;
}

.node-two,
.node-five {
  animation-delay: -.55s;
}

.node-three,
.node-six {
  animation-delay: -1.15s;
}

.dashboard-hero-copy {
  position: relative;
  z-index: 2;
  width: min(520px, 56%);
  padding: 32px 36px;
  color: #ffffff;
}

.dashboard-hero-copy span,
.panel-title-row span,
.monitor-head > div > span {
  display: inline-flex;
  color: #65e2d3;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.dashboard-hero-copy h2 {
  margin: 9px 0 11px;
  font-size: 33px;
  line-height: 1.12;
}

.dashboard-hero-status {
  position: absolute;
  z-index: 3;
  right: 24px;
  bottom: 22px;
  min-width: 210px;
  padding: 15px 16px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  background: rgba(255, 255, 255, .12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .2),
    0 14px 28px rgba(0, 0, 0, .18);
  backdrop-filter: blur(12px) saturate(1.2);
}

.dashboard-hero-status span,
.dashboard-hero-status strong {
  display: block;
}

.dashboard-hero-status span {
  color: rgba(235, 250, 255, .72);
  font-size: 12px;
  font-weight: 750;
}

.dashboard-hero-status strong {
  margin-top: 4px;
  color: #ffffff;
  font-size: 19px;
}

.dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.kpi-card {
  position: relative;
  min-height: 128px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(31, 122, 140, .18);
  border-radius: 8px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: rgba(255, 255, 255, .9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .8),
    0 15px 30px rgba(16, 42, 67, .08);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.kpi-card:hover {
  border-color: rgba(33, 208, 178, .38);
  background: rgba(255, 255, 255, .96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 20px 36px rgba(16, 42, 67, .12),
    0 0 0 3px rgba(33, 208, 178, .08);
  transform: translateY(-2px);
}

.kpi-card:focus-visible {
  outline: 3px solid rgba(45, 127, 240, .35);
  outline-offset: 3px;
}

.kpi-card:active {
  transform: translateY(0);
}

.kpi-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, .72) 45%, transparent 58%);
  opacity: .38;
  transform: translateX(-95%);
  animation: kpiSweep 5.6s ease-in-out infinite;
}

.kpi-card::after {
  content: "";
  position: absolute;
  inset: auto 14px 11px;
  height: 3px;
  border-radius: 999px;
  background: var(--kpi-accent);
  box-shadow: 0 0 18px var(--kpi-glow);
}

.kpi-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--kpi-accent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .28),
    0 10px 20px var(--kpi-glow);
}

.kpi-icon svg {
  width: 25px;
  height: 25px;
}

.kpi-icon path,
.kpi-icon circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kpi-card div {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.kpi-card strong,
.kpi-card small {
  display: block;
}

.kpi-card strong {
  color: #12263a;
  font-size: 36px;
  line-height: 1;
  text-shadow: 0 5px 18px var(--kpi-glow);
}

.kpi-card small {
  margin-top: 8px;
  color: #506178;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.25;
}

.kpi-total {
  --kpi-accent: linear-gradient(135deg, #2d7ff0, #21d0b2);
  --kpi-glow: rgba(45, 127, 240, .32);
}

.kpi-new {
  --kpi-accent: linear-gradient(135deg, #21b47b, #91df48);
  --kpi-glow: rgba(33, 180, 123, .34);
}

.kpi-qualified {
  --kpi-accent: linear-gradient(135deg, #ffd166, #21d0b2);
  --kpi-glow: rgba(33, 208, 178, .34);
}

.kpi-due {
  --kpi-accent: linear-gradient(135deg, #ff8a3d, #e14248);
  --kpi-glow: rgba(225, 66, 72, .32);
}

.kpi-won {
  --kpi-accent: linear-gradient(135deg, #1fbf75, #1f7a8c);
  --kpi-glow: rgba(31, 191, 117, .32);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(320px, .62fr);
  gap: 16px;
}

.intelligence-panel,
.source-energy-panel,
.monitor-panel {
  position: relative;
  border-color: rgba(31, 122, 140, .18);
  background: rgba(255, 255, 255, .91);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .8),
    0 16px 32px rgba(16, 42, 67, .08);
}

.panel-title-row,
.monitor-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.panel-title-row h2,
.monitor-head h2 {
  margin: 4px 0 0;
}

.intel-table {
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.intel-table thead th {
  border-bottom: 0;
  color: #61728a;
  font-size: 12px;
}

.intel-table tbody tr {
  background: linear-gradient(180deg, #ffffff, #f7fbfd);
  box-shadow: 0 8px 18px rgba(16, 42, 67, .06);
}

.intel-table tbody td {
  border-bottom: 0;
  border-top: 1px solid #dbe8ee;
  border-bottom: 1px solid #dbe8ee;
  padding: 13px 10px;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.intel-table tbody td:first-child {
  border-left: 1px solid #dbe8ee;
  border-radius: 8px 0 0 8px;
}

.intel-table tbody td:last-child {
  border-right: 1px solid #dbe8ee;
  border-radius: 0 8px 8px 0;
}

.lead-intel-name,
.lead-intel-sub {
  display: block;
}

.lead-intel-name {
  color: #0b5f72;
  font-weight: 850;
  line-height: 1.25;
}

.lead-intel-sub {
  margin-top: 5px;
  color: #667085;
  font-size: 12px;
  line-height: 1.35;
}

.data-pill,
.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #edf8fa;
  color: #14576a;
  font-size: 12px;
  font-weight: 780;
}

.score-orb {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  padding: 0 7px;
  border: 1px solid rgba(33, 208, 178, .45);
  border-radius: 999px;
  background: radial-gradient(circle at 35% 28%, #ffffff, #c9fbf2 58%, #64ddc8);
  color: #0f4f4d;
  font-weight: 850;
  box-shadow: 0 8px 18px rgba(33, 208, 178, .16);
}

.source-energy-list {
  display: grid;
  gap: 14px;
}

.source-energy-row {
  display: grid;
  gap: 8px;
}

.source-energy-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.source-energy-meta strong {
  min-width: 0;
  color: #1f2937;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.source-energy-meta span {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 28px;
  border-radius: 999px;
  background: #12263a;
  color: #ffffff;
  font-weight: 850;
}

.source-energy-track {
  height: 14px;
  overflow: hidden;
  border: 1px solid #cddde6;
  border-radius: 999px;
  background: linear-gradient(180deg, #eef5f8, #dfeaf0);
  box-shadow: inset 0 2px 4px rgba(16, 42, 67, .08);
}

.source-energy-track i {
  display: block;
  width: max(8%, var(--bar-width));
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffd166, #21d0b2 52%, #2d7ff0);
  box-shadow: 0 0 18px rgba(33, 208, 178, .46);
  animation: sourceBarPulse 3s ease-in-out infinite;
}

.empty-state {
  margin: 0;
  color: var(--muted);
}

.monitor-panel {
  overflow: hidden;
}

.monitor-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, .7) 46%, transparent 58%);
  opacity: .26;
  transform: translateX(-90%);
  animation: monitorSweep 8s ease-in-out infinite;
}

.monitor-head {
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
}

.monitor-head p {
  max-width: 800px;
  margin: 8px 0 0;
  color: #5b6b82;
  line-height: 1.55;
}

.monitor-state {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 120px;
  justify-content: center;
  padding: 10px 13px;
  border: 1px solid rgba(31, 122, 140, .2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 10px 20px rgba(16, 42, 67, .08);
}

.monitor-state i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #21b47b;
  box-shadow: 0 0 0 6px rgba(33, 180, 123, .14), 0 0 18px rgba(33, 180, 123, .5);
}

.monitor-alert .monitor-state i {
  background: #e14248;
  box-shadow: 0 0 0 6px rgba(225, 66, 72, .14), 0 0 18px rgba(225, 66, 72, .5);
}

.monitor-empty {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid rgba(33, 180, 123, .28);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(233, 249, 241, .9), rgba(255, 255, 255, .9));
  color: #18794e;
}

.monitor-empty strong {
  font-size: 18px;
}

.monitor-empty span {
  color: #4d6b59;
}

.monitor-table {
  position: relative;
  z-index: 1;
}

@keyframes dashboardBackplane {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 0 0, 44px 44px;
  }
}

@keyframes dashboardAmbientSweep {
  0%,
  100% {
    transform: translateX(-18%);
  }
  50% {
    transform: translateX(12%);
  }
}

@keyframes dashboardMapFlow {
  to {
    stroke-dashoffset: -240;
  }
}

@keyframes dashboardSunPulse {
  0%,
  100% {
    opacity: .82;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes dashboardPanelSweep {
  0%,
  24% {
    opacity: .12;
    stroke-dashoffset: 260;
  }
  55% {
    opacity: .58;
  }
  100% {
    opacity: .14;
    stroke-dashoffset: -150;
  }
}

@keyframes dashboardBattery {
  0%,
  100% {
    transform: scaleX(.36);
  }
  52% {
    transform: scaleX(1);
  }
}

@keyframes dashboardEnergyFlow {
  to {
    stroke-dashoffset: -128;
  }
}

@keyframes dashboardNodePulse {
  0%,
  100% {
    opacity: .7;
    transform: scale(.86);
  }
  50% {
    opacity: 1;
    transform: scale(1.16);
  }
}

@keyframes kpiSweep {
  0%,
  44%,
  100% {
    transform: translateX(-95%);
  }
  58% {
    transform: translateX(94%);
  }
}

@keyframes sourceBarPulse {
  0%,
  100% {
    filter: saturate(1) brightness(1);
  }
  50% {
    filter: saturate(1.18) brightness(1.08);
  }
}

@keyframes monitorSweep {
  0%,
  52%,
  100% {
    transform: translateX(-90%);
  }
  70% {
    transform: translateX(90%);
  }
}

.grid {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel {
  padding: 18px;
  overflow-x: auto;
}

.docs-panel {
  margin-bottom: 16px;
}

.docs-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.docs-heading h2 {
  margin-bottom: 0;
}

.docs-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.docs-accordion {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.doc-item {
  min-width: 0;
  border: 1px solid #d5e1ea;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfd 100%);
  box-shadow: 0 8px 18px rgba(16, 42, 67, 0.05);
  overflow: hidden;
}

.doc-item[open] {
  grid-column: 1 / -1;
  border-color: #9fcbd7;
  box-shadow: 0 14px 26px rgba(16, 42, 67, 0.08);
}

.doc-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 12px 14px;
  color: #1f2937;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  user-select: none;
}

.doc-item summary::-webkit-details-marker {
  display: none;
}

.doc-item summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #e8f5f7;
  color: #218596;
  font-weight: 800;
}

.doc-item[open] summary {
  border-bottom: 1px solid #dce8ef;
  background: #f2fafb;
}

.doc-item[open] summary::after {
  content: "-";
}

.doc-item table,
.doc-item .checklist,
.doc-item .workflow,
.doc-item p {
  margin: 14px;
}

.doc-item table {
  width: calc(100% - 28px);
}

h1,
h2 {
  margin: 0 0 14px;
}

h2 {
  font-size: 18px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-weight: 600;
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  background: #e7f5f7;
  color: var(--accent-strong);
  border-radius: 999px;
  font-size: 12px;
}

button,
.button {
  border: 0;
  background: var(--accent);
  color: white;
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 650;
}

button:hover {
  background: var(--accent-strong);
}

button.ghost {
  background: transparent;
  color: var(--accent-strong);
  border: 1px solid var(--line);
}

button.small {
  padding: 6px 10px;
}

.filters {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  gap: 10px;
}

.lead-list-page {
  position: relative;
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: calc(100vh - 128px);
  isolation: isolate;
}

.lead-list-page::before {
  content: "";
  position: fixed;
  inset: 0 0 0 240px;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(243, 250, 246, .96), rgba(247, 251, 253, .96)),
    repeating-linear-gradient(135deg, rgba(31, 122, 140, .045) 0 1px, transparent 1px 28px);
}

.lead-list-page::after {
  content: "";
  position: fixed;
  inset: 0 0 0 240px;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(33, 180, 123, .08), transparent);
  opacity: .38;
}

.content:has(.lead-list-page) .topbar {
  position: relative;
  z-index: 1;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 8px;
  background: rgba(255, 255, 255, .76);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .78),
    0 12px 26px rgba(16, 42, 67, .08);
  backdrop-filter: blur(14px) saturate(1.12);
}

.content:has(.lead-list-page) .topbar strong {
  color: #123322;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .72);
}

.lead-filter-panel,
.lead-table-panel {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 255, 255, .58);
  background: rgba(255, 255, 255, .88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .8),
    0 14px 30px rgba(16, 42, 67, .09);
  backdrop-filter: blur(14px) saturate(1.16);
}

.lead-filter-panel::before,
.lead-table-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, .46) 45%, transparent 58%);
  opacity: .18;
  transform: translateX(-92%);
}

.lead-current-view {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(33, 180, 123, .2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(236, 253, 245, .94), rgba(239, 246, 255, .92)),
    rgba(255, 255, 255, .88);
  color: #164e3a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .82),
    0 12px 24px rgba(16, 42, 67, .07);
}

.lead-current-view span {
  font-size: 13px;
  font-weight: 760;
}

.lead-current-view strong {
  color: #102a43;
  font-weight: 900;
}

.lead-current-view a {
  flex: 0 0 auto;
  color: #0f766e;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.lead-current-view a:hover {
  color: #0f5f59;
  text-decoration: underline;
}

.lead-empty-action-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border-color: rgba(33, 180, 123, .22);
  background:
    linear-gradient(135deg, rgba(240, 253, 244, .96), rgba(239, 246, 255, .92)),
    rgba(255, 255, 255, .9);
}

.lead-empty-action-panel h2 {
  margin: 0 0 7px;
  color: #102a43;
  font-size: 20px;
}

.lead-empty-action-panel p {
  margin: 0;
  max-width: 680px;
  color: #506178;
  font-weight: 650;
  line-height: 1.55;
}

.lead-empty-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.lead-empty-actions .button {
  text-decoration: none;
}

.lead-filters {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(150px, .8fr) minmax(190px, 1fr) minmax(220px, 1.25fr) minmax(190px, 1fr) minmax(150px, .75fr);
}

.lead-filters input,
.lead-filters select {
  min-height: 42px;
  border-color: rgba(21, 106, 78, .18);
  background: rgba(255, 255, 255, .82);
  color: #163524;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .92),
    0 8px 18px rgba(19, 103, 75, .08);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.lead-filters input::placeholder {
  color: #6e7f77;
}

.lead-filters input:focus,
.lead-filters select:focus {
  outline: none;
  border-color: rgba(33, 180, 123, .72);
  background: rgba(255, 255, 255, .96);
  box-shadow:
    0 0 0 3px rgba(33, 180, 123, .14),
    0 12px 22px rgba(19, 103, 75, .12);
  transform: translateY(-1px);
}

.lead-filter-button {
  position: relative;
  min-height: 42px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .44);
  border-radius: 8px;
  background: linear-gradient(180deg, #1f8b68, #176d58);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .36),
    0 10px 20px rgba(21, 145, 99, .22);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.lead-filter-button::before {
  content: none;
}

.lead-filter-button span {
  position: relative;
  z-index: 1;
}

.lead-filter-button:hover {
  background: linear-gradient(180deg, #229a74, #176d58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .44),
    0 14px 26px rgba(21, 145, 99, .28);
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.lead-filter-button:active {
  transform: translateY(1px) scale(.99);
}

.lead-table-panel {
  padding: 18px;
}

.lead-table-shell {
  position: relative;
  z-index: 1;
  overflow-x: auto;
}

.lead-table {
  min-width: 1040px;
  border-collapse: separate;
  border-spacing: 0 7px;
  color: #173324;
}

.lead-table thead th {
  padding: 6px 10px 11px;
  border-bottom: 0;
  font-size: 12px;
  font-weight: 780;
  color: #53657d;
}

.lead-table tbody tr {
  background: rgba(255, 255, 255, .94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .8),
    0 8px 18px rgba(16, 42, 67, .06);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.lead-table tbody tr:hover {
  background: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 12px 24px rgba(16, 42, 67, .09);
  transform: translateY(-1px);
}

.lead-table tbody td {
  border-top: 1px solid #dce8e1;
  border-bottom: 1px solid #dce8e1;
  padding: 14px 10px;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.lead-table tbody td:first-child {
  border-left: 1px solid #dce8e1;
  border-radius: 8px 0 0 8px;
}

.lead-table tbody td:last-child {
  border-right: 1px solid #dce8e1;
  border-radius: 0 8px 8px 0;
}

.lead-name-link {
  color: #006d77;
  font-weight: 900;
  line-height: 1.25;
  text-shadow: 0 8px 18px rgba(0, 109, 119, .14);
}

.lead-name-link:hover {
  color: #0a9396;
}

.lead-phone-text {
  color: #1d4ed8;
  font-weight: 650;
}

.lead-region-text {
  color: #0f766e;
}

.lead-company-text {
  color: #8b3f12;
  font-weight: 650;
}

.lead-company-link {
  color: #9a3412;
  font-weight: 850;
  text-decoration: none;
}

.lead-company-link:hover {
  color: #c2410c;
  text-decoration: underline;
}

.lead-trade-pill,
.lead-status-pill,
.lead-tag-chip,
.lead-score-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lead-trade-pill {
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(237, 233, 254, .95), rgba(224, 242, 254, .95));
  color: #5b21b6;
  font-size: 12px;
  font-weight: 850;
}

.trade-solar,
.trade-general {
  background: linear-gradient(135deg, rgba(220, 252, 231, .96), rgba(187, 247, 208, .9));
  color: #166534;
}

.trade-electrical,
.trade-network {
  background: linear-gradient(135deg, rgba(219, 234, 254, .96), rgba(191, 219, 254, .9));
  color: #1d4ed8;
}

.lead-score-pill {
  min-width: 40px;
  height: 40px;
  border: 1px solid rgba(245, 158, 11, .35);
  border-radius: 999px;
  background: radial-gradient(circle at 30% 24%, #fff7ed, #fde68a 58%, #f59e0b);
  color: #713f12;
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(245, 158, 11, .18);
}

.lead-status-pill {
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
}

.status-new {
  background: linear-gradient(135deg, #dff8ff, #c7f9ee);
  color: #0f6674;
}

.status-contacted {
  background: linear-gradient(135deg, #e0e7ff, #bfdbfe);
  color: #1e40af;
}

.status-qualified {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: #166534;
}

.status-won {
  background: linear-gradient(135deg, #bbf7d0, #86efac);
  color: #14532d;
}

.status-lost {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #991b1b;
}

.lead-tag-chip {
  min-height: 30px;
  max-width: 190px;
  padding: 6px 10px;
  border: 1px solid rgba(34, 197, 94, .28);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .78), rgba(220, 252, 231, .94)),
    linear-gradient(90deg, #21d0b2, #2d7ff0);
  color: #14532d;
  font-size: 12px;
  font-weight: 820;
  line-height: 1.25;
  box-shadow: 0 9px 18px rgba(34, 197, 94, .11);
}

.lead-empty-row {
  color: #3f6b55;
  font-weight: 760;
  text-align: center;
}

@keyframes leadListBackgroundDrift {
  from {
    background-position: 0 0, -40% 0;
  }
  to {
    background-position: 52px 52px, 140% 0;
  }
}

@keyframes leadPanelSweep {
  0%,
  72% {
    transform: translateX(-92%);
  }
  100% {
    transform: translateX(92%);
  }
}

@keyframes leadButtonSweep {
  0%,
  45% {
    transform: translateX(0) skewX(-18deg);
  }
  100% {
    transform: translateX(310%) skewX(-18deg);
  }
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}

.lead-action-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  border-color: rgba(31, 122, 140, .16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(247, 252, 250, .96));
  box-shadow: 0 12px 26px rgba(16, 42, 67, .07);
}

.lead-action-panel span,
.lead-action-panel strong {
  display: block;
}

.lead-action-panel span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.lead-action-panel strong {
  margin-top: 4px;
  color: #143524;
  font-size: 19px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.lead-quick-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.lead-quick-actions .button {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, .36);
  box-shadow: 0 8px 16px rgba(16, 42, 67, .09);
}

.lead-action-call {
  background: #18794e;
}

.lead-action-call.is-disabled {
  cursor: not-allowed;
  opacity: .58;
  box-shadow: none;
}

.lead-action-hangup {
  background: #b42318;
}

.lead-action-mail {
  background: #2563eb;
}

.lead-action-follow {
  background: #1f7a8c;
}

.lead-action-edit {
  background: #42526b;
}

.lead-call-status {
  flex-basis: 100%;
  margin-top: 2px;
  color: #0f5f45;
  font-size: 13px;
  font-weight: 760;
}

.lead-call-status.is-warning,
.lead-call-status[data-call-state="error"] {
  color: #b42318;
}

.lead-call-status[data-call-state="connected"] {
  color: #18794e;
}

.lead-call-status[data-call-state="dialing"],
.lead-call-status[data-call-state="ringing"],
.lead-call-status[data-call-state="microphone"] {
  color: #1f7a8c;
}

.lead-summary-grid {
  margin-bottom: 16px;
}

.lead-summary-card h2 {
  margin-bottom: 14px;
}

.lead-detail-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.lead-detail-list div {
  display: grid;
  grid-template-columns: minmax(104px, .34fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 10px 12px;
  border: 1px solid rgba(183, 228, 202, .78);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(240, 253, 244, .78));
}

.lead-detail-list dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.lead-detail-list dd {
  margin: 0;
  color: #143524;
  font-weight: 720;
  overflow-wrap: anywhere;
}

.lead-detail-link {
  color: #0f766e;
  font-weight: 780;
}

.lead-notes-text {
  min-height: 120px;
  padding: 12px;
  border: 1px solid rgba(183, 228, 202, .78);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(240, 253, 244, .78));
  color: #143524;
  font-weight: 650;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.form-panel form p {
  margin: 0 0 14px;
}

.form-panel label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 12px;
}

.button-row button {
  min-height: 38px;
}

.code-block {
  max-height: 460px;
  overflow: auto;
  padding: 14px;
  border: 1px solid #dbe5ee;
  border-radius: 8px;
  background: #0f172a;
  color: #e5edf7;
  font-size: 13px;
  line-height: 1.55;
}

.messages {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.message {
  padding: 10px 12px;
  border-radius: 6px;
  background: #e7f7ef;
  color: var(--good);
  border: 1px solid #b7e4ca;
}

.message.warning {
  background: #fff8eb;
  color: var(--warn);
  border-color: #f5c26b;
}

.webhook-url {
  padding: 12px;
  background: #f1f5f9;
  border: 1px solid var(--line);
  border-radius: 6px;
  word-break: break-all;
}

.platform-settings-page {
  display: grid;
  gap: 16px;
}

.platform-overview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  overflow: hidden;
  border-color: rgba(31, 122, 140, .18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(241, 250, 249, .94)),
    repeating-linear-gradient(135deg, rgba(31, 122, 140, .06) 0 1px, transparent 1px 24px);
  box-shadow: 0 14px 30px rgba(16, 42, 67, .08);
}

.platform-overview h2 {
  margin: 4px 0 8px;
  color: #12263a;
  font-size: 24px;
}

.platform-overview p {
  max-width: 820px;
  margin: 0;
  color: #5b6b82;
  line-height: 1.55;
}

.platform-kicker {
  display: inline-flex;
  color: #1f7a8c;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.platform-status-card {
  min-width: 178px;
  padding: 14px 16px;
  border: 1px solid rgba(31, 122, 140, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 10px 22px rgba(16, 42, 67, .08);
}

.platform-status-card span,
.platform-status-card strong {
  display: block;
}

.platform-status-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.platform-status-card strong {
  margin-top: 5px;
  color: #14576a;
  font-size: 21px;
  line-height: 1.2;
}

.platform-config-grid {
  margin-bottom: 0;
}

.platform-form-panel,
.platform-status-panel,
.platform-events-panel {
  border-color: rgba(31, 122, 140, .14);
  box-shadow: 0 12px 26px rgba(16, 42, 67, .07);
}

.platform-status-list {
  display: grid;
  gap: 9px;
  margin: 12px 0 16px;
}

.platform-status-list div {
  display: grid;
  grid-template-columns: minmax(118px, .38fr) minmax(0, 1fr);
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid #dce8ef;
  border-radius: 8px;
  background: #f8fbfd;
}

.platform-status-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.platform-status-list strong {
  color: #1f2937;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.strategy-hero {
  border-left: 4px solid var(--accent);
  margin-bottom: 16px;
}

.strategy-hero p {
  max-width: 860px;
  color: var(--muted);
  line-height: 1.6;
}

.energy-hero {
  position: relative;
  min-height: 250px;
  margin-bottom: 16px;
  padding: 0;
  overflow: hidden;
  border-color: #c9e0e7;
  background: #f5fbfd;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .82),
    0 14px 32px rgba(16, 42, 67, .08);
}

.energy-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(31, 122, 140, .1), transparent 36%, rgba(36, 171, 123, .08)),
    repeating-linear-gradient(135deg, rgba(31, 122, 140, .08) 0 1px, transparent 1px 19px);
  opacity: .52;
  animation: energyGridDrift 15s linear infinite;
}

.energy-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, .65) 48%, transparent 62%);
  opacity: .34;
  transform: translateX(-75%);
  animation: heroLightSweep 8s ease-in-out infinite;
}

.energy-field {
  position: relative;
  z-index: 1;
}

.energy-scene {
  display: block;
  width: 100%;
  height: 250px;
}

.energy-contour {
  fill: none;
  stroke: rgba(31, 122, 140, .32);
  stroke-width: 2;
  stroke-dasharray: 10 16;
  animation: contourFlow 13s linear infinite;
}

.contour-b {
  stroke: rgba(69, 177, 92, .28);
  animation-duration: 16s;
}

.energy-sun {
  transform-box: fill-box;
  transform-origin: center;
  animation: sunPulse 4.2s ease-in-out infinite;
}

.sun-rays {
  transform-box: fill-box;
  transform-origin: center;
  animation: sunRaySpin 26s linear infinite;
}

.solar-array {
  filter: drop-shadow(0 14px 18px rgba(16, 42, 67, .18));
}

.panel-shine {
  stroke-dasharray: 70 260;
  stroke-dashoffset: 260;
  animation: panelSweep 3.8s ease-in-out infinite;
}

.inverter-block,
.battery-stack,
.wind-turbine {
  filter: drop-shadow(0 12px 18px rgba(16, 42, 67, .12));
}

.battery-fill {
  transform-box: fill-box;
  transform-origin: left center;
  animation: batteryCharge 4.6s ease-in-out infinite;
}

.battery-dot {
  animation: dotPulse 1.9s ease-in-out infinite;
}

.turbine-blades {
  transform-box: fill-box;
  transform-origin: center;
  animation: turbineSpin 7s linear infinite;
}

.energy-line {
  fill: none;
  stroke: url(#energyStroke);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 12 18;
  filter: drop-shadow(0 0 6px rgba(44, 189, 194, .48));
  animation: energyFlow 2.1s linear infinite;
}

.line-b {
  animation-delay: -.7s;
}

.line-c {
  stroke-width: 4;
  animation-delay: -1.2s;
}

.energy-node {
  fill: #36d7c6;
  stroke: #ffffff;
  stroke-width: 3;
  filter: drop-shadow(0 0 8px rgba(35, 173, 186, .55));
  transform-box: fill-box;
  transform-origin: center;
  animation: nodePulse 2.4s ease-in-out infinite;
}

.node-b,
.node-e {
  animation-delay: -.6s;
}

.node-c,
.node-f {
  animation-delay: -1.2s;
}

.energy-brand {
  filter: drop-shadow(0 8px 12px rgba(16, 42, 67, .08));
}

.energy-hero-metrics {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  width: min(392px, 42%);
}

.energy-hero-metrics div {
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid rgba(127, 192, 205, .42);
  border-radius: 8px;
  background: rgba(255, 255, 255, .78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .78),
    0 10px 20px rgba(16, 42, 67, .08);
  backdrop-filter: blur(10px) saturate(1.15);
}

.energy-hero-metrics span,
.energy-hero-metrics strong {
  display: block;
}

.energy-hero-metrics div > span {
  color: #587087;
  font-size: 11px;
  font-weight: 760;
}

.energy-hero-metrics strong {
  margin-top: 4px;
  color: #12263a;
  font-size: 13px;
  font-weight: 820;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

@keyframes energyGridDrift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 0 0, 38px 38px;
  }
}

@keyframes heroLightSweep {
  0%,
  42%,
  100% {
    transform: translateX(-75%);
    opacity: .18;
  }
  58% {
    transform: translateX(78%);
    opacity: .46;
  }
}

@keyframes contourFlow {
  to {
    stroke-dashoffset: -260;
  }
}

@keyframes sunPulse {
  0%,
  100% {
    opacity: .92;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

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

@keyframes panelSweep {
  0%,
  24% {
    stroke-dashoffset: 280;
    opacity: .12;
  }
  55% {
    opacity: .58;
  }
  100% {
    stroke-dashoffset: -170;
    opacity: .1;
  }
}

@keyframes batteryCharge {
  0%,
  100% {
    transform: scaleX(.42);
  }
  52% {
    transform: scaleX(1);
  }
}

@keyframes dotPulse {
  0%,
  100% {
    opacity: .5;
  }
  50% {
    opacity: 1;
  }
}

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

@keyframes energyFlow {
  to {
    stroke-dashoffset: -120;
  }
}

@keyframes nodePulse {
  0%,
  100% {
    opacity: .72;
    transform: scale(.88);
  }
  50% {
    opacity: 1;
    transform: scale(1.16);
  }
}

.prospect-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: stretch;
  overflow: hidden;
  padding: 24px 24px 22px;
}

.prospect-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(31, 122, 140, .08), transparent 42%),
    repeating-linear-gradient(135deg, rgba(31, 122, 140, .08) 0 1px, transparent 1px 18px);
  opacity: .45;
}

.prospect-hero-copy,
.strategy-card {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
  padding: 5px 9px;
  border: 1px solid #b9dde3;
  border-radius: 999px;
  background: #effbfc;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 760;
}

.prospect-hero h2 {
  margin-bottom: 10px;
  font-size: 24px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-tags span {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #344054;
  font-size: 12px;
  font-weight: 700;
}

.strategy-card {
  padding: 16px;
  border: 1px solid #c9e5ea;
  border-radius: 8px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 12px 28px rgba(16, 42, 67, .09);
}

.strategy-card h3 {
  margin: 0 0 12px;
  font-size: 15px;
}

.strategy-card dl {
  display: grid;
  gap: 9px;
  margin: 0;
}

.strategy-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e4edf2;
}

.strategy-card dl div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.strategy-card dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.strategy-card dd {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 760;
  text-align: right;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.button.secondary {
  background: #42526b;
}

button.secondary {
  background: #42526b;
}

.prospect-tool {
  margin-bottom: 16px;
  padding: 18px;
  background: #fbfdff;
}

.prospect-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr)) minmax(132px, auto) minmax(132px, auto);
  gap: 12px;
  align-items: end;
}

.prospect-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.prospect-form label > span {
  color: #53657d;
  font-size: 12px;
  font-weight: 760;
}

.primary-command,
.command-main {
  background: linear-gradient(180deg, #2293a6, #176f81);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .22),
    0 10px 18px rgba(31, 122, 140, .2);
}

.command-secondary,
.button.secondary {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .12),
    0 8px 14px rgba(16, 42, 67, .12);
}

.search-box {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
  padding: 16px;
  background: #f7fbfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}

.search-box strong,
.search-box span,
.search-box small {
  display: block;
}

.search-box strong {
  margin-top: 5px;
  color: #1f2937;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.search-box small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.action-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  justify-items: center;
  gap: 8px;
  min-height: 174px;
  padding: 16px 14px 15px;
  border: 2px solid #bfd2df;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fbfd);
  color: var(--ink);
  text-align: center;
  box-shadow:
    inset 0 0 0 1px rgba(31, 122, 140, .16),
    0 8px 18px rgba(16, 42, 67, .06);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.action-card.featured {
  border-color: #bfd2df;
  background: linear-gradient(180deg, #f7feff, #ffffff);
}

.action-card:hover {
  border-color: #1f7a8c;
  box-shadow:
    inset 0 0 0 1px rgba(31, 122, 140, .45),
    0 14px 28px rgba(16, 42, 67, .12);
  transform: translateY(-2px);
}

.action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 5px 12px rgba(16, 42, 67, .12);
}

.action-icon svg {
  width: 38px;
  height: 38px;
  fill: currentColor;
}

.action-icon.solar {
  background: #e0a10c;
}

.enf-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f8bd18, #e09100);
  color: #172033;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  overflow: hidden;
}

.enf-logo b {
  position: relative;
  z-index: 1;
}

.enf-logo i {
  position: absolute;
  inset: 5px auto auto 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff7bf;
  box-shadow: 0 0 0 3px rgba(255, 247, 191, .32);
}

.action-card strong,
.action-card span,
.action-card em {
  display: block;
}

.action-card span {
  color: var(--muted);
  line-height: 1.45;
  font-size: 13px;
}

.action-card em {
  position: relative;
  align-self: end;
  justify-self: center;
  min-width: 104px;
  margin-top: 9px;
  padding: 9px 15px;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 255, 255, .98), rgba(255, 255, 255, .22) 38%, transparent 39%),
    linear-gradient(180deg, rgba(238, 253, 255, .96) 0%, rgba(130, 225, 236, .72) 48%, rgba(28, 139, 157, .92) 100%);
  color: #063f4e;
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, .86),
    inset 0 -2px 5px rgba(7, 75, 91, .28),
    0 1px 0 rgba(255, 255, 255, .7),
    0 10px 18px rgba(31, 122, 140, .26);
  backdrop-filter: blur(14px) saturate(1.25);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .55);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  overflow: hidden;
}

.action-card em::before {
  content: "";
  position: absolute;
  inset: 2px 8px auto;
  height: 42%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .1));
  pointer-events: none;
}

.action-card:hover em {
  border-color: rgba(255, 255, 255, .95);
  background:
    radial-gradient(circle at 50% 0, rgba(255, 255, 255, 1), rgba(255, 255, 255, .28) 38%, transparent 39%),
    linear-gradient(180deg, rgba(248, 254, 255, 1) 0%, rgba(151, 236, 244, .8) 48%, rgba(24, 130, 149, .98) 100%);
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, .94),
    inset 0 -2px 5px rgba(7, 75, 91, .32),
    0 1px 0 rgba(255, 255, 255, .8),
    0 13px 22px rgba(31, 122, 140, .32);
  transform: translateY(-2px);
}

.action-card:active em {
  box-shadow:
    inset 0 1px 3px rgba(7, 75, 91, .34),
    inset 0 -1px 2px rgba(255, 255, 255, .38),
    0 5px 10px rgba(31, 122, 140, .18);
  transform: translateY(1px);
}

.workbench-footer {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.workbench-footer .actions {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 12px;
  margin-top: 0;
}

.workbench-footer .workflow-action {
  position: relative;
  overflow: hidden;
  min-height: 42px;
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .32),
    inset 0 -1px 0 rgba(0, 0, 0, .12),
    0 10px 20px rgba(16, 42, 67, .14);
  text-decoration: none;
  white-space: nowrap;
  transition:
    box-shadow .22s ease,
    filter .22s ease,
    transform .22s ease;
  animation: actionPulse 2.9s ease-in-out infinite;
}

.workbench-footer .workflow-action::after {
  content: "";
  position: absolute;
  top: -80%;
  bottom: -80%;
  left: -55%;
  width: 42%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, .68) 50%, transparent 100%);
  opacity: 0;
  pointer-events: none;
  transform: translateX(0) rotate(16deg);
  transition:
    opacity .2s ease,
    transform .62s ease;
}

.workbench-footer .workflow-action:hover {
  filter: saturate(1.12) brightness(1.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .36),
    inset 0 -1px 0 rgba(0, 0, 0, .14),
    0 14px 28px var(--action-glow);
  transform: translateY(-2px);
}

.workbench-footer .workflow-action:hover::after {
  opacity: 1;
  transform: translateX(360%) rotate(16deg);
}

.workbench-footer .workflow-action:active {
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, .18),
    0 6px 12px var(--action-glow);
  transform: translateY(1px);
}

.action-red {
  --action-glow: rgba(225, 66, 72, .34);
  background: linear-gradient(180deg, #ff6b6f 0%, #e13942 54%, #b91f2b 100%);
  color: #fff;
}

.action-yellow {
  --action-glow: rgba(235, 177, 30, .38);
  background: linear-gradient(180deg, #ffd95d 0%, #f2b632 54%, #d59014 100%);
  color: #3f2b05;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .32);
}

.action-blue {
  --action-glow: rgba(51, 126, 228, .35);
  background: linear-gradient(180deg, #5aa4ff 0%, #2f73d8 54%, #2450a7 100%);
  color: #fff;
}

.action-green {
  --action-glow: rgba(32, 164, 111, .34);
  background: linear-gradient(180deg, #39d08e 0%, #1f9d68 54%, #137449 100%);
  color: #fff;
}

@keyframes actionPulse {
  0%,
  100% {
    filter: saturate(1) brightness(1);
  }
  50% {
    filter: saturate(1.08) brightness(1.03);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-stage::before,
  .dashboard-stage::after,
  .dash-map-line,
  .dash-sun,
  .dash-panel-shine,
  .dash-battery-fill,
  .dash-energy-flow,
  .dash-node,
  .kpi-card::before,
  .source-energy-track i,
  .monitor-panel::before {
    animation: none;
  }

  .lead-list-page::after,
  .lead-filter-panel::before,
  .lead-table-panel::before,
  .lead-filter-button::before {
    animation: none;
  }

  .lead-filter-button,
  .lead-table tbody tr {
    transition: none;
  }

  .energy-hero::before,
  .energy-hero::after,
  .energy-contour,
  .energy-sun,
  .sun-rays,
  .panel-shine,
  .battery-fill,
  .battery-dot,
  .turbine-blades,
  .energy-line,
  .energy-node {
    animation: none;
  }

  .workbench-footer .workflow-action {
    animation: none;
    transition: none;
  }

  .workbench-footer .workflow-action::after {
    display: none;
  }
}

.checklist {
  margin: 0;
  padding-left: 20px;
  color: #344054;
  line-height: 1.7;
}

.inline-code {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  background: #eef2f6;
  color: #102a43;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.prospect-workflow {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.workflow div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #f8fafc;
}

.workflow strong,
.workflow span {
  display: block;
}

.workflow span {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
}

.warning-panel {
  border-color: #f5c26b;
  background: #fff8eb;
}

.priority-a {
  background: #e7f7ef;
  color: #18794e;
}

.priority-b {
  background: #fff3d6;
  color: #8a4b00;
}

.login-page {
  display: grid;
  place-items: center;
  padding: 20px;
}

.login-box {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
}

.login-title {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 18px;
  color: #172033;
  font-size: 27px;
  font-weight: 680;
  letter-spacing: 0;
  line-height: 1.25;
  text-align: center;
}

.login-title span {
  min-width: 0;
}

.login-brand-mark {
  color: #0f233a;
  font-weight: 800;
}

.login-language-switch {
  width: 100%;
  margin: 0 0 18px;
}

.login-language-switch a {
  flex: 1;
}

@media (max-width: 1180px) {
  .dashboard-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .action-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lead-filters {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .lead-filter-button {
    min-width: 180px;
  }
}

@media (max-width: 900px) {
  .sidebar {
    position: static;
    width: auto;
  }

  .content {
    margin-left: 0;
  }

  .dashboard-stage::before,
  .dashboard-stage::after,
  .lead-list-page::before,
  .lead-list-page::after {
    inset: 0;
  }

  .dashboard-hero {
    min-height: 0;
  }

  .hero-energy-map {
    opacity: .55;
  }

  .dashboard-hero-copy {
    width: auto;
    padding: 26px 20px 92px;
  }

  .dashboard-hero-copy h2 {
    font-size: 28px;
  }

  .dashboard-hero-status {
    left: 20px;
    right: 20px;
    bottom: 18px;
    min-width: 0;
  }

  .dashboard-kpis {
    grid-template-columns: 1fr;
  }

  .kpi-card {
    min-height: 110px;
  }

  .intel-table {
    min-width: 760px;
  }

  .monitor-head {
    align-items: stretch;
    flex-direction: column;
  }

  .monitor-state {
    width: fit-content;
  }

  .lead-action-panel,
  .platform-overview {
    align-items: stretch;
    flex-direction: column;
  }

  .lead-quick-actions {
    justify-content: flex-start;
  }

  .lead-quick-actions .button {
    justify-content: center;
  }

  .platform-status-card {
    min-width: 0;
  }

  .platform-status-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-actions {
    justify-content: flex-start;
  }

  .stats,
  .grid.two,
  .filters,
  .lead-filters,
  .prospect-hero,
  .prospect-form,
  .action-grid,
  .docs-accordion,
  .workflow,
  .prospect-workflow {
    grid-template-columns: 1fr;
  }

  .lead-filter-panel,
  .lead-table-panel {
    padding: 14px;
  }

  .lead-current-view {
    align-items: flex-start;
    flex-direction: column;
  }

  .lead-empty-action-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .lead-empty-actions {
    justify-content: flex-start;
  }

  .lead-table {
    min-width: 940px;
  }

  .lead-detail-list div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .docs-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .energy-hero {
    min-height: 0;
  }

  .energy-scene {
    height: 238px;
  }

  .energy-hero-metrics {
    position: relative;
    top: auto;
    right: auto;
    width: auto;
    margin: 0 12px 14px;
  }

  .search-box {
    align-items: stretch;
    flex-direction: column;
  }

  .workbench-footer {
    flex-direction: column;
  }

  .workbench-footer .actions {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .workbench-footer .actions .button {
    width: 100%;
  }
}
