﻿.ldash-root {
  --bg: #030d1a;
  --panel: #071a2e;
  --line: #123355;
  --line-soft: #0f2a45;
  --text: #d8e8fb;
  --muted: #7f9dbb;
  --green: #31c28a;
  --red: #d9536f;
  --amber: #f6b94d;

  font-family: 'Geist', system-ui, sans-serif;
  background:
    radial-gradient(circle at 18% -10%, rgba(32, 116, 192, .16), transparent 36%),
    radial-gradient(circle at 90% -20%, rgba(20, 183, 227, .12), transparent 34%),
    linear-gradient(180deg, #031021 0%, var(--bg) 100%);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px;
  position: relative;
  overflow: hidden;
}

.ldash-root::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(91,139,185,.05) 0, rgba(91,139,185,.05) 1px, transparent 1px, transparent 22px);
  mix-blend-mode: screen;
}

.ldash-topbar {
  height: 28px;
  border: 1px solid var(--line-soft);
  background: #041426;
  display: grid;
  grid-template-columns: 260px 1fr auto;
  align-items: center;
  margin-bottom: 6px;
}

.ldash-brand {
  padding: 0 8px;
  color: #7ab0e8;
  font-size: 9px;
  letter-spacing: .12em;
  font-weight: 700;
  border-right: 1px solid var(--line-soft);
  text-transform: uppercase;
}

.ldash-ticker {
  padding: 0 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #89c9ff;
  font-size: 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ldash-theme-toggle {
  margin-right: 6px;
  height: 20px;
  border: 1px solid #1d4b77;
  background: #0e3254;
  color: #d7e9fb;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: 8px;
  font-weight: 700;
  padding: 0 8px;
  border-radius: 1px;
  cursor: pointer;
}

.ldash-panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(7,26,46,.95), rgba(6,22,38,.95));
  border-radius: 2px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

.ldash-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 6px;
}

.ldash-hero-left,
.ldash-hero-right { padding: 8px; }

.ldash-kicker {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 700;
  color: #76b6ef;
  font-size: 9px;
}

.ldash-hero h1 {
  margin: 7px 0;
  font-size: 50px;
  line-height: .93;
  letter-spacing: .01em;
  font-weight: 700;
  color: #f0f7ff;
}

.ldash-hero h1 span { color: #3a94ff; }

.ldash-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 520px;
  font-size: 11px;
  line-height: 1.4;
}

.ldash-hero-actions {
  margin-top: 8px;
  display: flex;
  gap: 6px;
}

.ldash-hero-actions button,
.ldash-filter-row button,
.tier button,
.ldash-cta-row button,
.ldash-btn {
  height: 24px;
  border: 1px solid #1d4b77;
  background: #0e3254;
  color: #d7e9fb;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: 9px;
  font-weight: 700;
  padding: 0 8px;
  border-radius: 1px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ldash-hero-actions button.ghost {
  background: transparent;
  border-color: #2a4a69;
}

.ldash-hero-stats {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.ldash-stat {
  border: 1px solid var(--line-soft);
  background: #041426;
  padding: 6px;
  border-radius: 1px;
}

.ldash-stat .k {
  color: #7f9fc0;
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.ldash-stat .v {
  margin-top: 3px;
  color: #f3f9ff;
  font-size: 19px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
}

.ldash-panel-title {
  color: #94b9de;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 5px;
}

.ldash-map {
  height: 410px;
  border: 1px solid var(--line-soft);
  border-radius: 1px;
}

.leaflet-tooltip.ldash-map-tooltip {
  background: linear-gradient(180deg, #071a2e, #061426);
  border: 1px solid #2a4f74;
  color: #dcecff;
  border-radius: 2px;
  box-shadow: 0 10px 28px rgba(0, 12, 26, 0.42);
  padding: 8px 10px;
}

.leaflet-tooltip.ldash-map-tooltip:before {
  border-top-color: #2a4f74;
}

.ldash-tooltip-title {
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: .01em;
}

.ldash-tooltip-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 10px;
  line-height: 1.35;
}

.ldash-tooltip-row span { color: #8eb1d4; }
.ldash-tooltip-row strong {
  color: #f3f9ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.ldash-council-kpis {
  margin-top: 7px;
  border-top: 1px solid var(--line-soft);
  padding-top: 7px;
  font-size: 10px;
  color: #c8daef;
}

.ldash-council-kpis h4 {
  margin: 0 0 8px;
  font-size: 15px;
  color: #eff6ff;
}

.ldash-council-row {
  display: flex;
  justify-content: space-between;
  margin: 3px 0;
  gap: 10px;
}

.ldash-council-row .k { color: #86a5c4; }
.ldash-council-row .v {
  color: #f4f9ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
}

.ldash-region-strip {
  margin-top: 6px;
  border: 1px solid var(--line);
  background: #05182b;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ldash-region-cell {
  border-right: 1px solid var(--line-soft);
  padding: 6px;
}

.ldash-region-cell:last-child { border-right: 0; }

.ldash-region-cell .n {
  color: #9ec1e4;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.ldash-region-cell .v {
  margin-top: 4px;
  color: #f4f9ff;
  font-size: 15px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
}

.ldash-region-cell .s {
  margin-top: 2px;
  color: #7999ba;
  font-size: 9px;
}

.ldash-filters {
  margin-top: 6px;
  padding: 8px;
}

.ldash-filters-head,
.ldash-table-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.ldash-filters h3,
.ldash-table-head h3,
.ldash-cta h3 {
  margin: 0;
  color: #eaf3fe;
  font-size: 14px;
  letter-spacing: .02em;
}

.ldash-quote {
  color: #86a6c6;
  font-size: 10px;
  font-style: italic;
}

.ldash-filter-row {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.ldash-filter-row .chip {
  border: 1px solid #1e3f60;
  background: #071a2e;
  color: #88a8c9;
  font-size: 8px;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: 4px 6px;
  border-radius: 1px;
}

.ldash-filter-row .chip.on {
  border-color: #2a83da;
  background: #0c2b48;
  color: #d7ebff;
}

.ldash-filter-row button { margin-left: auto; }

.ldash-table-wrap {
  margin-top: 6px;
  padding: 8px;
}

.ldash-council-grid {
  margin-top: 6px;
  padding: 8px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 8px;
}

.ldash-council-table-wrap {
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.ldash-council-map-wrap {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(7,26,46,.95), rgba(6,22,38,.95));
  border-radius: 2px;
  padding: 8px;
}

.ldash-council-map {
  height: 430px;
  border: 1px solid var(--line-soft);
  border-radius: 1px;
}

.ldash-table-head { margin-bottom: 6px; }

.ldash-meta {
  color: #8aa9c8;
  font-size: 9px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.ldash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
}

.ldash-table th,
.ldash-table td {
  border-bottom: 1px solid var(--line-soft);
  padding: 5px;
  text-align: left;
  vertical-align: middle;
}

.ldash-table th {
  color: #89afd2;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.ldash-table td { color: #d5e4f5; }

.ldash-table td.num {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.ldash-status {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 5px;
}

.ldash-pricing-wrap {
  margin-top: 6px;
  padding-top: 30px;
  padding-bottom: 30px;
}

.ldash-pricing-title {
  margin: 0 0 6px;
  text-align: center;
  color: #ffffff !important;
  font-size: 22px;
  letter-spacing: .02em;
  text-shadow: 0 0 10px rgba(118, 182, 239, 0.18);
}

.ldash-pricing {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.tier {
  border: 1px solid var(--line);
  background: #06192d;
  padding: 8px;
  border-radius: 2px;
}

.tier.featured {
  border-color: #2a83da;
  background: linear-gradient(180deg, #0a2440, #071d34);
}

.tier-tag {
  color: #7ea4c8;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.tier h4 {
  margin: 6px 0 5px;
  color: #f0f7ff;
  font-size: 20px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.tier p {
  margin: 0;
  color: #84a5c6;
  font-size: 10px;
  min-height: 28px;
}

.tier button { margin-top: 8px; width: 100%; }

.ldash-cta {
  margin-top: 6px;
  padding: 10px;
  text-align: center;
}

.ldash-cta-form {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.ldash-form-row {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.ldash-form-row input {
  height: 26px;
  background: #041325;
  border: 1px solid #1d4264;
  color: #e4effd;
  padding: 0 10px;
  border-radius: 1px;
  font-size: 10px;
}

.ldash-form-row input[type="text"] {
  width: 180px;
}

.ldash-form-row input[type="email"] {
  width: 100%;
  max-width: 486px;
}

.ldash-single-row {
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ldash-single-row input[type="text"] {
  width: 160px;
  flex: 0 0 160px;
}

.ldash-single-row input[type="email"] {
  width: 220px;
  flex: 0 0 220px;
}

.ldash-form-row input::placeholder { color: #6f8faf; }

.ldash-submit-row {
  justify-content: space-between;
  align-items: center;
}

.ldash-checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 10px;
  color: #d5e4f5;
}

.ldash-checkbox-label input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: #2a83da;
  cursor: pointer;
}

.ldash-checkbox-text {
  user-select: none;
}

.ldash-inline-link {
  color: #3a94ff;
  text-decoration: underline;
  font-weight: inherit;
  font-size: inherit;
}

.ldash-inline-link:hover {
  color: #5aa5ff;
  text-decoration: underline;
}

.ldash-change.positive {
  color: #31c28a;
}

.ldash-change.negative {
  color: #d9536f;
}

.ldash-charts-wrap {
  margin-top: 6px;
  padding: 8px;
}

.ldash-charts-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.ldash-charts-head h3 {
  margin: 0;
  color: #eaf3fe;
  font-size: 14px;
  letter-spacing: .02em;
}

.ldash-charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.ldash-chart-item {
  border: 1px solid var(--line-soft);
  background: #041426;
  padding: 8px;
  border-radius: 1px;
}

.ldash-chart-item h4 {
  margin: 0 0 8px 0;
  color: #94b9de;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.ldash-chart-item canvas {
  width: 100% !important;
  height: 120px !important;
}

.ldash-form-status {
  margin-top: 8px;
  text-align: center;
  font-size: 10px;
  min-height: 16px;
}

.ldash-form-status.success { color: #31c28a; }
.ldash-form-status.error { color: #d9536f; }
.ldash-form-status.loading { color: #f6b94d; }

@media (max-width: 1180px) {
  .ldash-hero { grid-template-columns: 1fr; }
  .ldash-stats-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ldash-region-strip { grid-template-columns: 1fr 1fr; }
  .ldash-pricing { grid-template-columns: 1fr; }
  .ldash-council-grid { grid-template-columns: 1fr; }
  .ldash-charts-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1200px) {
  .ldash-single-row {
    flex-direction: column;
    align-items: stretch;
  }
  
  .ldash-single-row input,
  .ldash-single-row .ldash-checkbox-label,
  .ldash-single-row .ldash-btn {
    width: 100% !important;
    max-width: 280px;
    flex: none;
    margin: 0 auto;
  }
  
  .ldash-single-row .ldash-checkbox-label {
    justify-content: center;
    margin: 4px auto;
  }
}

@media (max-width: 760px) {
  .ldash-root { padding: 8px; }
  .ldash-hero h1 { font-size: 38px; }
  .ldash-stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ldash-region-strip { grid-template-columns: 1fr; }
  .ldash-form-row { flex-direction: column; align-items: center; }
  .ldash-form-row input { width: 100% !important; max-width: 280px; }
  .ldash-submit-row { flex-direction: column; gap: 8px; }
}

.ldash-root.theme-light {
  --bg: #edf3fa;
  --panel: #f9fcff;
  --line: #bdd0e4;
  --line-soft: #d1dfed;
  --text: #0c2945;
  --muted: #4e6a86;
  background:
    radial-gradient(circle at 18% -10%, rgba(32, 116, 192, .08), transparent 36%),
    radial-gradient(circle at 90% -20%, rgba(20, 183, 227, .06), transparent 34%),
    linear-gradient(180deg, #f5f9ff 0%, var(--bg) 100%);
}

.ldash-root.theme-light::before {
  background: repeating-linear-gradient(180deg, rgba(32,87,138,.05) 0, rgba(32,87,138,.05) 1px, transparent 1px, transparent 22px);
  mix-blend-mode: multiply;
}

.ldash-root.theme-light .ldash-topbar,
.ldash-root.theme-light .ldash-stat,
.ldash-root.theme-light .ldash-region-strip,
.ldash-root.theme-light .ldash-filter-row .chip,
.ldash-root.theme-light .tier,
.ldash-root.theme-light .ldash-cta-row input {
  background: #ffffff;
}

.ldash-root.theme-light .ldash-panel,
.ldash-root.theme-light .tier.featured {
  background: linear-gradient(180deg, #ffffff, #f7fbff);
}

.ldash-root.theme-light .ldash-brand,
.ldash-root.theme-light .ldash-panel-title,
.ldash-root.theme-light .ldash-region-cell .n,
.ldash-root.theme-light .ldash-table th,
.ldash-root.theme-light .tier-tag,
.ldash-root.theme-light .ldash-meta,
.ldash-root.theme-light .ldash-quote,
.ldash-root.theme-light .ldash-stat .k,
.ldash-root.theme-light .ldash-council-row .k {
  color: #335876;
}

.ldash-root.theme-light .ldash-ticker,
.ldash-root.theme-light .ldash-hero h1,
.ldash-root.theme-light .ldash-stat .v,
.ldash-root.theme-light .ldash-council-kpis h4,
.ldash-root.theme-light .ldash-region-cell .v,
.ldash-root.theme-light .ldash-table td,
.ldash-root.theme-light .tier h4,
.ldash-root.theme-light .ldash-pricing-title,
.ldash-root.theme-light .ldash-filters h3,
.ldash-root.theme-light .ldash-table-head h3,
.ldash-root.theme-light .ldash-cta h3,
.ldash-root.theme-light .ldash-council-row .v {
  color: #12395b;
}

.ldash-root.theme-light .ldash-pricing-title { color: #ffffff !important; }

.ldash-root.theme-light .ldash-theme-toggle,
.ldash-root.theme-light .ldash-hero-actions button,
.ldash-root.theme-light .ldash-filter-row button,
.ldash-root.theme-light .tier button,
.ldash-root.theme-light .ldash-cta-row button,
.ldash-root.theme-light .ldash-btn {
  border-color: #8eb1d2;
  background: #e7f1fb;
  color: #12395b;
}

.ldash-root.theme-light .ldash-hero-actions button.ghost {
  background: #ffffff;
  border-color: #9fbcdc;
}

.ldash-root.theme-light .ldash-inline-link {
  color: #1565c0;
}

.ldash-root.theme-light .ldash-inline-link:hover {
  color: #0d47a1;
}
