:root {
  --ink: #07111f;
  --muted: #607086;
  --line: #d9e2ef;
  --soft: #f5f7fb;
  --panel: #ffffff;
  --blue: #2563eb;
  --blue-dark: #0b3f82;
  --red: #c53131;
  --gold: #d97706;
  --purple: #6d28d9;
  --shadow: 0 24px 70px rgba(15, 31, 54, 0.12);
}

/* 2026-05-27 desktop cockpit redesign */
:root {
  --ink: #0f172a;
  --muted: #64748b;
  --line: #d8e0ec;
  --soft: #f5f7fb;
  --panel: #ffffff;
  --blue: #1e40af;
  --blue-dark: #17345d;
  --red: #b91c1c;
  --gold: #b7791f;
  --green: #166534;
  --shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  --radius-lg: 14px;
  --radius-md: 10px;
}

html,
body {
  overflow-x: hidden;
}

body {
  color: var(--ink);
  background: #eef2f7;
  font-size: 15px;
  letter-spacing: 0;
}

.dashboard-shell {
  width: calc(100vw - 32px);
  margin: 16px;
  padding: 0 0 64px;
  gap: 0;
}

.hero {
  order: 0;
}

.filter-bar {
  order: 1;
}

.filter-state-bar {
  order: 2;
}

.executive-overview {
  order: 3;
}

.metrics-grid {
  order: 4;
}

.map-stage {
  order: 5;
}

.analysis-board {
  order: 6;
}

.product-strip {
  order: 7;
}

.insights-grid {
  order: 8;
}

.cockpit-header {
  min-height: 0;
  border: 1px solid rgba(15, 23, 42, 0.96);
  border-radius: var(--radius-lg);
  background: #111827;
  box-shadow: var(--shadow);
}

.cockpit-nav {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 16px;
  padding: 12px 18px;
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.cockpit-brand {
  display: grid !important;
  gap: 3px !important;
}

.cockpit-brand strong {
  font-size: 17px;
  line-height: 1.2;
}

.cockpit-brand span {
  padding: 0;
  border: 0;
  color: rgba(226, 232, 240, 0.74);
  background: transparent;
  font-size: 12px;
  line-height: 1.3;
}

.cockpit-actions {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px !important;
}

.cockpit-actions a,
.cockpit-actions button,
.cockpit-actions span {
  min-height: 34px;
  border-radius: 999px;
  padding: 0 11px;
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 800;
}

.cockpit-actions button {
  font-size: 13px;
}

.cockpit-titlebar {
  grid-template-columns: minmax(0, 1fr) minmax(420px, 600px);
  gap: 22px;
  align-items: end;
  padding: 22px 24px 24px;
}

.hero-copy span,
.section-head span,
.eyebrow,
.drawer-head span,
.filter-title span {
  margin-bottom: 7px;
  color: #6b86ad;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.cockpit-header .hero-copy span {
  color: #93a4bd;
}

.hero-copy h1 {
  max-width: none;
  font-size: 32px;
  line-height: 1.16;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 860px;
  margin-top: 9px;
  color: rgba(241, 245, 249, 0.78);
  font-size: 15px;
  line-height: 1.55;
}

.hero-facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.hero-facts div {
  border-radius: var(--radius-md);
  padding: 11px 12px;
  background: rgba(15, 23, 42, 0.5);
}

.hero-facts span {
  margin-bottom: 5px;
  font-size: 12px;
}

.hero-facts strong {
  font-size: 17px;
}

.filter-bar,
.filter-state-bar,
.executive-overview,
.metrics-grid,
.map-stage,
.analysis-board,
.product-strip,
.insights-grid {
  margin-top: 14px;
}

.filter-bar {
  position: sticky;
  top: 8px;
  z-index: 80;
  gap: 10px;
  align-items: end;
  border-radius: var(--radius-lg);
  padding: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(12px);
}

.filter-title {
  flex-basis: 82px;
}

.filter-title strong {
  font-size: 16px;
}

.filter-bar label {
  flex-basis: 132px;
  min-width: 126px;
  gap: 5px;
}

.filter-bar label span {
  font-size: 12px;
}

.filter-bar input,
.filter-bar select {
  min-height: 36px;
  border-radius: var(--radius-md);
  background: #f8fafc;
  font-size: 14px;
}

.filter-bar .select-search {
  min-height: 30px;
  font-size: 13px;
}

.search-field {
  flex-basis: 190px !important;
  min-width: 180px;
}

.filter-actions {
  gap: 7px;
}

.filter-actions button,
.map-tools button,
.secondary-action,
.primary-action,
.drawer-actions button,
.amap-actions button,
.method-stats button,
.drawer-head button {
  min-height: 36px;
  border-radius: var(--radius-md);
  padding: 0 10px;
  font-size: 14px;
}

.more-filters {
  padding-top: 9px;
}

.more-filters summary {
  min-height: 34px;
  border-radius: var(--radius-md);
  font-size: 13px;
}

.more-filter-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.filter-state-bar {
  border-radius: var(--radius-lg);
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.92);
}

.filter-state-bar strong {
  font-size: 14px;
}

.filter-chips button,
.filter-state-bar > button {
  min-height: 30px;
  font-size: 12px;
}

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

.overview-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.overview-card span,
.analysis-card .section-head p {
  color: var(--muted);
}

.overview-card span {
  display: block;
  font-size: 12px;
  font-weight: 900;
}

.overview-card strong {
  display: block;
  margin-top: 8px;
  font-size: 25px;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.overview-card em {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.date-card {
  background: #0f172a;
  color: #fff;
}

.date-card span,
.date-card em {
  color: rgba(226, 232, 240, 0.76);
}

.comparison-card strong.delta-positive,
.metric-card #metricGrowth {
  color: var(--green);
}

.comparison-card strong.delta-negative {
  color: var(--red);
}

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

.metric-card {
  min-height: 104px;
  border-radius: var(--radius-lg);
  padding: 15px 16px;
  box-shadow: var(--shadow);
}

.metric-card span {
  font-size: 13px;
}

.metric-card strong {
  margin-top: 8px;
  font-size: 27px;
  line-height: 1.08;
}

.metric-card em {
  margin-top: 7px;
  font-size: 12px;
}

.metric-card.active {
  border-color: rgba(30, 64, 175, 0.56);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.12), var(--shadow);
}

.map-stage {
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
}

.map-card,
.map-summary,
.insight-card,
.analysis-card,
.product-strip {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.map-card {
  min-height: 720px;
}

.map-toolbar {
  gap: 12px;
  padding: 12px 14px;
}

.map-toolbar strong {
  font-size: 19px;
}

.map-toolbar span {
  font-size: 13px;
}

.map-tools {
  gap: 7px;
}

.gis-toolbar {
  gap: 8px;
  padding: 10px 14px;
}

.gis-tool-title {
  min-width: 116px;
}

.gis-tool-title strong {
  font-size: 14px;
}

.gis-toolbar button,
.gis-toolbar select,
.layer-toggle,
.geojson-upload {
  min-height: 34px;
  border-radius: var(--radius-md);
  padding: 0 9px;
  font-size: 13px;
}

.gis-toolbar select {
  min-width: 116px;
}

.highlight-status {
  padding: 9px 14px;
  font-size: 14px;
}

.map-canvas {
  min-height: 560px;
}

.map-summary {
  gap: 14px;
  max-height: 720px;
  padding: 16px;
}

.map-summary h2 {
  font-size: 21px;
}

.view-count {
  border-radius: var(--radius-lg);
  padding: 16px;
  background: #17345d;
}

.view-count span,
.summary-block span {
  font-size: 13px;
}

.view-count strong {
  font-size: 28px;
}

.summary-block,
.summary-alert,
.gis-side-panel {
  border-radius: var(--radius-md);
}

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

.analysis-card {
  min-width: 0;
  border: 1px solid var(--line);
  padding: 18px;
  background: #fff;
  overflow: hidden;
}

.analysis-card .section-head h2 {
  font-size: 18px;
}

.analysis-card .section-head p {
  margin-top: 7px;
  font-size: 13px;
}

.trend-card {
  grid-column: span 6;
}

.anomaly-card,
.terminal-card {
  grid-column: span 3;
}

.report-card {
  grid-column: 1 / -1;
}

.trend-chart {
  min-height: 264px;
  margin-top: 14px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 12px;
  background: #f8fafc;
  overflow: hidden;
}

.trend-chart svg {
  display: block;
  width: 100%;
  height: auto;
}

.axis-line {
  stroke: #cbd5e1;
  stroke-width: 1;
}

.trend-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trend-line-scan {
  stroke: #1e40af;
}

.trend-line-people {
  stroke: #15803d;
}

.trend-dot-scan {
  fill: #1e40af;
}

.trend-dot-people {
  fill: #15803d;
}

.trend-label {
  fill: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.trend-day-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.trend-day-grid div {
  min-width: 0;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  padding: 8px;
  background: #fff;
}

.trend-day-grid span,
.trend-day-grid em {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.trend-day-grid strong {
  display: block;
  margin: 4px 0;
  font-size: 17px;
}

.trend-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.trend-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.trend-legend i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.legend-blue {
  background: #1e40af;
}

.legend-green {
  background: #15803d;
}

.anomaly-summary,
.terminal-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 12px;
}

.terminal-summary {
  grid-template-columns: 1fr;
}

.anomaly-summary article,
.terminal-summary article {
  min-width: 0;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 10px;
  background: #f8fafc;
}

.anomaly-summary span,
.terminal-summary span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.anomaly-summary strong,
.terminal-summary strong {
  display: block;
  margin-top: 5px;
  font-size: 18px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.anomaly-summary em,
.terminal-summary em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
}

.anomaly-list,
.terminal-list {
  display: grid;
  gap: 8px;
}

.analysis-row {
  position: relative;
  min-width: 0;
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 10px;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 9px 10px;
  color: var(--ink);
  background: #fff;
  text-align: left;
  overflow: hidden;
  isolation: isolate;
}

.analysis-row::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--bar, 0%);
  background: rgba(30, 64, 175, 0.1);
  z-index: -1;
}

.analysis-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.analysis-row span {
  color: #17345d;
  font-size: 12px;
  font-weight: 900;
}

.analysis-row em {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

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

.report-actions button,
.report-actions a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #bfd1e8;
  border-radius: var(--radius-md);
  padding: 0 12px;
  color: var(--blue-dark);
  background: #f8fafc;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.report-actions button:first-child {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
}

.report-status {
  margin-top: 12px;
  border: 1px solid #d8e0ec;
  border-radius: var(--radius-md);
  padding: 10px 12px;
  color: var(--muted);
  background: #f8fafc;
  font-size: 13px;
  line-height: 1.45;
}

.report-status[data-tone="success"] {
  color: #166534;
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.report-status[data-tone="info"] {
  color: #17345d;
  border-color: #bfdbfe;
  background: #eff6ff;
}

.state-loading,
.state-empty,
.state-error {
  display: grid;
  place-items: center;
  min-height: 112px;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-md);
  color: var(--muted);
  background: #f8fafc;
  font-weight: 800;
  text-align: center;
}

.state-error {
  color: var(--red);
  border-color: #fecaca;
  background: #fef2f2;
}

.product-strip {
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
}

.section-head h2 {
  font-size: 22px;
}

.section-head p {
  font-size: 14px;
}

.product-card {
  flex-basis: 178px;
  min-height: 178px;
  border-radius: var(--radius-lg);
}

.insights-grid {
  gap: 14px;
}

.insight-card {
  border-radius: var(--radius-lg);
  padding: 18px;
}

.rank-head,
.rank-row,
.data-head,
.data-row {
  min-width: 0;
}

.rank-head.district-head,
.rank-row.district-row {
  grid-template-columns: minmax(96px, 1.1fr) 86px 82px 74px 84px 116px;
}

#districtTable .rank-row {
  padding: 8px 9px;
}

.rank-row strong,
.data-row strong,
.data-row span {
  min-width: 0;
}

.full-list,
.award-panorama-card,
.rank-list {
  scrollbar-gutter: stable;
}

.data-head,
.data-row {
  width: max-content;
  min-width: 100%;
}

.award-head,
.award-row {
  grid-template-columns: minmax(240px, 2fr) 112px 98px 82px 96px 96px 96px 170px;
}

.street-head,
.street-row {
  grid-template-columns: 82px minmax(132px, 1.25fr) 72px 92px 92px 82px 126px;
}

.product-head,
.product-row {
  grid-template-columns: minmax(110px, 1fr) 94px 94px 82px 78px 128px;
}

.award-card-grid {
  grid-template-columns: repeat(4, minmax(190px, 1fr));
}

body.dashboard-export-mode .filter-bar {
  position: static;
}

body.dashboard-export-mode .map-tools,
body.dashboard-export-mode .gis-toolbar,
body.dashboard-export-mode .back-top {
  display: none;
}

@media (max-width: 1360px) {
  .more-filter-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .metric-card strong {
    font-size: 24px;
  }

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

  .trend-card,
  .anomaly-card,
  .terminal-card,
  .report-card {
    grid-column: auto;
  }

  .trend-card {
    grid-column: 1 / -1;
  }

  .award-card-grid {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }
}

@media (max-width: 1279px) {
  .cockpit-nav {
    grid-template-columns: 1fr;
  }

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

  .cockpit-titlebar {
    grid-template-columns: 1fr;
  }

  .hero-facts {
    max-width: 680px;
  }

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

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

  .map-stage {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

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

@media (max-width: 1100px) {
  .dashboard-shell {
    width: calc(100vw - 24px);
    margin: 12px;
  }

  .filter-bar {
    position: static;
  }

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

  .map-stage {
    grid-template-columns: minmax(0, 1fr) 292px;
    gap: 12px;
  }

  .map-card {
    min-height: 650px;
  }

  .map-summary {
    max-height: 650px;
  }

  .map-canvas {
    min-height: 505px;
  }

  .analysis-board {
    grid-template-columns: 1fr;
  }

  .product-strip {
    grid-template-columns: 1fr;
  }

  .trend-day-grid {
    grid-template-columns: repeat(5, minmax(86px, 1fr));
    overflow-x: auto;
  }
}

@media (max-width: 767px) {
  body {
    background: #07111f;
  }

  .executive-overview,
  .analysis-board {
    display: none !important;
  }
}

@media print {
  body {
    background: #fff;
  }

  .filter-bar,
  .filter-state-bar,
  .map-tools,
  .gis-toolbar,
  .back-top,
  .drawer,
  .mobile-app-shell {
    display: none !important;
  }

  .dashboard-shell {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .map-card,
  .map-summary,
  .analysis-card,
  .metric-card,
  .overview-card {
    box-shadow: none;
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 0%, rgba(197, 49, 49, 0.12), transparent 34rem),
    radial-gradient(circle at 92% 8%, rgba(37, 99, 235, 0.14), transparent 34rem),
    #eef3f9;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 16px;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.dashboard-shell {
  display: flex;
  flex-direction: column;
  width: calc(100vw - 32px);
  max-width: none;
  margin: 16px;
  padding: 16px 0 72px;
}

.hero {
  order: 0;
}

.filter-bar {
  order: 1;
}

.filter-state-bar {
  order: 2;
}

.map-stage {
  order: 3;
}

.metrics-grid {
  order: 4;
}

.product-strip {
  order: 5;
}

.insights-grid {
  order: 6;
}

.hero {
  min-height: 250px;
  border-radius: 28px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(7, 17, 31, 0.96), rgba(11, 63, 130, 0.92)),
    linear-gradient(45deg, rgba(197, 49, 49, 0.55), rgba(37, 99, 235, 0.38));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-nav strong {
  font-size: 20px;
}

.hero-nav div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-nav a,
.hero-nav button,
.hero-nav span {
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-nav button {
  font-size: 16px;
}

.hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(560px, 760px);
  gap: 48px;
  align-items: center;
  padding: 34px 56px 36px;
}

.hero-copy span,
.section-head span,
.eyebrow,
.drawer-head span,
.filter-title span {
  display: inline-block;
  margin-bottom: 10px;
  color: #9db9e8;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-copy h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(34px, 3.1vw, 56px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy p {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 20px;
  line-height: 1.6;
}

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

.hero-facts div {
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.09);
}

.hero-facts span {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.hero-facts strong {
  display: block;
  font-size: 22px;
  line-height: 1.15;
}

.product-strip,
.filter-bar,
.metrics-grid,
.map-stage,
.insights-grid {
  margin-top: 22px;
}

.product-strip {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 36px rgba(15, 31, 54, 0.07);
}

.section-head h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
}

.section-head p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.product-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 2px 4px 6px;
}

.product-card {
  flex: 0 0 205px;
  min-height: 200px;
  display: grid;
  grid-template-rows: 80px auto auto auto;
  gap: 6px;
  align-items: center;
  justify-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 31, 54, 0.06);
}

.product-card.dimmed,
.data-row.dimmed,
.rank-row.dimmed {
  opacity: 0.42;
}

.product-card.active {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15), 0 18px 38px rgba(37, 99, 235, 0.16);
}

.product-card img {
  max-width: 90px;
  max-height: 80px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.product-card strong {
  font-size: 18px;
}

.product-card span {
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(15, 31, 54, 0.06);
}

.filter-title {
  flex: 0 0 106px;
}

.filter-title strong {
  display: block;
  font-size: 20px;
}

.filter-bar label {
  display: grid;
  gap: 7px;
  flex: 1 1 145px;
  min-width: 138px;
}

.filter-bar label span {
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
  color: var(--ink);
  background: #f8fbff;
  font-size: 16px;
}

.filter-bar .select-search {
  min-height: 34px;
  border-color: #c8d6ea;
  border-radius: 10px;
  padding: 0 10px;
  background: #fff;
  color: #304158;
  font-size: 14px;
}

.filter-bar > label > .select-search {
  display: none;
}

.more-filter-grid .select-search {
  display: block;
}

.search-field {
  flex-basis: 220px !important;
  min-width: 210px;
}

.more-filters {
  flex: 1 0 100%;
  min-width: 100%;
  border-top: 1px solid #e6edf7;
  padding-top: 8px;
}

.more-filters summary {
  width: max-content;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #bfd1e8;
  border-radius: 999px;
  padding: 0 14px;
  color: var(--blue-dark);
  background: #f8fbff;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.more-filters summary::-webkit-details-marker {
  display: none;
}

.more-filters summary::after {
  content: "＋";
  margin-left: 8px;
  font-weight: 900;
}

.more-filters[open] summary::after {
  content: "－";
}

.more-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.more-filter-grid label {
  min-width: 0;
  flex: none;
}

.filter-state-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 26px rgba(15, 31, 54, 0.05);
}

.filter-state-bar strong {
  white-space: nowrap;
  font-size: 16px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}

.filter-chips button,
.filter-state-bar > button {
  min-height: 34px;
  border: 1px solid #bfd1e8;
  border-radius: 999px;
  padding: 0 12px;
  color: var(--blue-dark);
  background: #f8fbff;
  font-size: 14px;
  font-weight: 800;
}

.empty-chip {
  color: var(--muted);
}

.filter-actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
  margin-left: auto;
}

.filter-actions button,
.map-tools button,
.secondary-action,
.primary-action,
.drawer-actions button,
.amap-actions button,
.method-stats button,
.drawer-head button {
  min-height: 44px;
  border: 1px solid #bfd1e8;
  border-radius: 12px;
  padding: 0 12px;
  color: var(--blue-dark);
  background: #f8fbff;
  font-size: 16px;
  font-weight: 800;
}

.primary-action {
  width: 100%;
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

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

.metric-card {
  min-height: 128px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 16px 38px rgba(15, 31, 54, 0.07);
  text-align: left;
}

.metric-card.active {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12), 0 20px 42px rgba(15, 31, 54, 0.1);
}

.metric-card span {
  color: var(--muted);
  font-size: 16px;
  font-weight: 800;
}

.metric-card strong {
  display: block;
  margin-top: 10px;
  font-size: 36px;
  line-height: 1;
  letter-spacing: 0;
}

.metric-card em {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 15px;
  font-style: normal;
  line-height: 1.45;
}

.metric-card.warning strong {
  color: var(--gold);
}

.metric-card.dark strong {
  color: #111827;
}

.metric-card.accent strong {
  color: var(--red);
}

.hidden-metric {
  display: none;
}

.map-stage {
  display: grid;
  grid-template-columns: minmax(860px, 3fr) minmax(320px, 0.82fr);
  gap: 20px;
  align-items: stretch;
}

.map-card,
.map-summary,
.insight-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(15, 31, 54, 0.08);
}

.map-card {
  min-height: 860px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  position: relative;
  z-index: 5;
}

.map-toolbar strong {
  display: block;
  font-size: 24px;
}

.map-toolbar span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 15px;
}

.map-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: flex-end;
}

.map-tools button.active {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.map-locate-button {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 28;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(37, 99, 235, 0.35);
  border-radius: 16px;
  color: #174278;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 38px rgba(15, 31, 54, 0.2);
  font-size: 24px;
  font-weight: 1000;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.map-locate-button:hover {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.map-interaction-panel {
  position: relative;
  z-index: 5;
  width: auto;
  margin: 0 18px 12px;
  border: 1px solid #c9d8ee;
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 54px rgba(15, 31, 54, 0.2);
}

.map-interaction-panel[hidden] {
  display: none;
}

.map-interaction-panel > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.map-interaction-panel strong {
  font-size: 17px;
}

.map-interaction-panel button {
  width: 32px;
  height: 32px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  font-weight: 900;
}

.map-interaction-panel label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  color: #17345d;
  font-size: 15px;
  font-weight: 900;
}

.map-interaction-panel p {
  margin: 10px 0 0;
  color: #607086;
  font-size: 14px;
  line-height: 1.5;
}

.map-gesture-hint {
  position: absolute;
  left: 22px;
  bottom: 24px;
  z-index: 12;
  border: 1px solid #c8d6ea;
  border-radius: 999px;
  padding: 8px 12px;
  color: #17345d;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(15, 31, 54, 0.16);
  font-size: 14px;
  font-weight: 900;
  pointer-events: none;
}

.gis-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: #f8fbff;
  position: relative;
  z-index: 5;
}

.gis-tool-title {
  display: grid;
  gap: 3px;
  margin-right: 4px;
}

.gis-tool-title span,
.gis-panel-head span {
  color: #6b86ad;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.gis-tool-title strong {
  font-size: 17px;
}

.gis-toolbar button,
.gis-toolbar select,
.layer-toggle,
.geojson-upload {
  min-height: 40px;
  border: 1px solid #bfd1e8;
  border-radius: 12px;
  padding: 0 12px;
  color: var(--blue-dark);
  background: #fff;
  font-size: 15px;
  font-weight: 900;
}

.gis-toolbar select {
  min-width: 130px;
}

.gis-tool-control {
  display: grid;
  gap: 5px;
}

.gis-tool-control span {
  color: #5b6f8e;
  font-size: 12px;
  font-weight: 900;
}

.gis-toolbar .gis-tool-control select {
  min-height: 40px;
}

.layer-toggle,
.geojson-upload {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}

.geojson-upload input {
  display: none;
}

.highlight-status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid #c8d6ea;
  background: #fff7ed;
  color: #7c2d12;
  font-size: 17px;
  font-weight: 800;
  position: relative;
  z-index: 4;
}

.highlight-status[hidden] {
  display: none;
}

.highlight-status button {
  min-height: 36px;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  padding: 0 12px;
  color: #9a3412;
  background: #fff;
  font-weight: 800;
}

.map-canvas {
  flex: 1;
  width: 100%;
  height: auto;
  min-height: 720px;
  touch-action: none;
  overscroll-behavior: contain;
}

.map-notice {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 10;
  max-width: 480px;
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(15, 31, 54, 0.12);
}

.map-notice.hide {
  display: none;
}

.map-summary {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 860px;
  overflow: auto;
}

.map-summary h2 {
  margin: 0;
  font-size: 28px;
}

.view-count {
  padding: 20px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(135deg, #0b3f82, #2563eb);
}

.view-count span,
.summary-block span {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  font-weight: 700;
}

.summary-block span {
  color: var(--muted);
}

.view-count strong {
  display: block;
  margin-top: 8px;
  font-size: 48px;
  line-height: 1;
}

.view-count .view-count-secondary {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.72);
}

.view-count #currentViewCount {
  font-size: 34px;
}

.view-count p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
}

.summary-block strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
}

.summary-rank {
  display: grid;
  gap: 9px;
  margin-top: 12px;
  max-height: 610px;
  overflow: auto;
  padding-right: 3px;
}

.summary-rank button {
  display: grid;
  grid-template-columns: minmax(86px, 1fr) 105px;
  gap: 5px 8px;
  align-items: center;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 9px 12px;
  color: var(--ink);
  background: #f8fbff;
  font-size: 16px;
}

.summary-rank button.total-row {
  border-color: var(--blue);
  background: #eff6ff;
}

.summary-rank button em {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  text-align: left;
}

.summary-alert {
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  padding: 16px;
  color: #111827;
  background: #f8fafc;
  font-size: 16px;
  line-height: 1.55;
}

.gis-side-panel {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  background: #f8fbff;
}

.gis-panel-head h3 {
  margin: 6px 0 0;
  font-size: 22px;
}

.gis-panel-body {
  display: grid;
  gap: 12px;
}

.gis-target-card,
.gis-range-card,
.gis-message,
.gis-empty,
.gis-footnote,
.geocode-success-banner,
.route-summary,
.coverage-grid > div,
.gis-stat-strip > div,
.gis-status-grid > div,
.gis-status-grid > button {
  border: 1px solid #d5e1f0;
  border-radius: 16px;
  padding: 13px;
  background: #fff;
}

.gis-target-card span,
.gis-range-card span,
.gis-range-stats span,
.geocode-success-banner p,
.gis-stat-strip span,
.coverage-grid span,
.route-summary span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.gis-target-card strong,
.gis-range-card strong,
.gis-range-stats strong,
.gis-stat-strip strong,
.coverage-grid strong,
.route-summary strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
}

.gis-target-card em,
.gis-target-card p,
.gis-range-card em,
.gis-message,
.gis-footnote,
.route-summary p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
  line-height: 1.5;
}

.route-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.route-action-bar button {
  min-height: 36px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 0 12px;
  color: #174278;
  background: #eff6ff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.gis-message {
  color: #174278;
  background: #eff6ff;
}

.gis-range-card {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-width: min(320px, 100%);
}

.gis-range-copy {
  flex: 1 1 320px;
  min-width: min(320px, 100%);
  writing-mode: horizontal-tb;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: normal;
}

.gis-range-copy strong {
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}

.gis-range-copy em {
  display: block;
  max-width: 520px;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: normal;
}

.gis-range-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.gis-range-card button {
  flex: 0 0 auto;
  min-height: 36px;
  border: 1px solid #bfd1e8;
  border-radius: 999px;
  padding: 0 12px;
  color: var(--blue-dark);
  background: #f8fbff;
  font-weight: 900;
  white-space: nowrap;
}

.gis-range-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.gis-range-stats div {
  border: 1px solid #d5e1f0;
  border-radius: 16px;
  padding: 13px;
  background: #fff;
}

.geocode-success-banner {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.geocode-success-banner strong {
  display: block;
  color: #166534;
  font-size: 19px;
}

.geocode-success-banner p {
  margin: 5px 0 0;
  color: #2f6b42;
  line-height: 1.45;
}

.status-check,
.status-check-small {
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #16a34a;
  font-weight: 900;
}

.status-check {
  width: 44px;
  height: 44px;
  font-size: 22px;
}

.gis-status-grid,
.gis-stat-strip,
.coverage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.gis-status-grid div,
.gis-status-grid button {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 7px 9px;
  align-items: center;
  color: var(--ink);
  text-align: left;
}

.gis-status-grid i {
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  color: #fff;
  background: var(--status-color, #64748b);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.gis-status-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.gis-status-grid strong {
  grid-column: 1 / -1;
  font-size: 20px;
}

.gis-mini-list {
  display: grid;
  gap: 9px;
  max-height: 430px;
  overflow: auto;
  padding-right: 3px;
}

.gis-mini-list > button,
.poi-row,
.dev-row {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.gis-mini-list button strong,
.poi-row strong,
.dev-row strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 16px;
}

.gis-mini-list button span,
.gis-mini-list button em,
.poi-row span,
.poi-row em,
.dev-row span,
.dev-row em,
.dev-row p {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
  line-height: 1.45;
}

.poi-row {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.poi-row label,
.dev-actions label {
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 900;
}

.poi-row button {
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.dev-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 10px;
}

.dev-row.fallback {
  border-style: dashed;
  background: #faf5ff;
}

.dev-actions {
  display: grid;
  gap: 8px;
  align-content: start;
}

.dev-actions button,
.gis-export {
  min-height: 36px;
  border: 1px solid #bfd1e8;
  border-radius: 999px;
  padding: 0 12px;
  color: var(--blue-dark);
  background: #fff;
  font-size: 14px;
  font-weight: 900;
}

.gis-export {
  width: max-content;
}

.route-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
}

.route-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

.route-list li.active {
  border-radius: 16px;
  padding: 8px;
  outline: 2px solid rgba(245, 158, 11, 0.45);
  background: rgba(255, 247, 237, 0.92);
}

.route-list span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.route-list button {
  flex: 0 0 auto;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 7px 11px;
  color: #174278;
  background: #eff6ff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.insight-card {
  padding: 24px;
  overflow: hidden;
}

.award-panorama-card {
  overflow-x: auto;
}

.insight-card.wide {
  grid-column: 1 / -1;
}

.rank-head,
.rank-row {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) 110px 110px;
  gap: 12px;
  align-items: center;
}

.rank-head.four,
.rank-row.four {
  grid-template-columns: minmax(170px, 1fr) 110px 110px 130px;
}

.rank-head.district-head,
.rank-row.district-row {
  grid-template-columns: minmax(150px, 1fr) 105px 105px 95px 115px 150px;
}

.rank-head {
  margin: 18px 0 8px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.rank-list {
  display: grid;
  gap: 9px;
}

#districtTable {
  max-height: 575px;
  overflow: auto;
  padding-right: 4px;
  gap: 6px;
}

#districtTable .rank-row {
  min-height: 44px;
  border-radius: 12px;
  padding: 0 10px;
}

#districtTable .rank-row strong {
  font-size: 15px;
}

#districtTable .rank-row span {
  font-size: 14px;
}

.rank-list.compact {
  max-height: 410px;
  overflow: auto;
}

.rank-row {
  min-height: 52px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  overflow: hidden;
  background: #fff;
  isolation: isolate;
}

.rank-row::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--pct);
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.13), rgba(37, 99, 235, 0.03));
  z-index: -1;
}

.rank-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 17px;
}

.rank-row span {
  color: #304158;
  font-size: 16px;
  font-weight: 800;
  text-align: right;
}

.rank-row.active,
.data-row.active {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.13);
}

.total-row {
  font-weight: 900;
}

.row-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

.row-actions button,
.card-actions button {
  min-height: 32px;
  border: 1px solid #bfd1e8;
  border-radius: 999px;
  padding: 0 10px;
  color: var(--blue-dark);
  background: #fff;
  font-size: 13px;
  font-weight: 900;
}

.card-actions {
  justify-content: center;
}

.module-actions,
.table-controls,
.detail-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}

.table-controls input,
.table-controls select,
.detail-filter-row input,
.detail-filter-row select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
  background: #f8fbff;
  font-size: 15px;
}

.table-controls input,
.detail-filter-row input {
  min-width: 260px;
  flex: 1;
}

.data-head,
.data-row {
  display: grid;
  gap: 12px;
  align-items: center;
}

.data-head {
  margin: 16px 0 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.data-row {
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  background: #fff;
}

.award-head,
.award-row {
  grid-template-columns: minmax(280px, 2fr) 132px 110px 90px 110px 110px 110px 210px;
}

.street-head,
.street-row {
  grid-template-columns: 100px minmax(150px, 1.35fr) 80px 105px 105px 95px 150px;
}

.product-head,
.product-row {
  grid-template-columns: minmax(120px, 1fr) 110px 110px 95px 90px 150px;
}

.data-row strong,
.data-row span {
  overflow-wrap: anywhere;
  font-size: 15px;
}

.data-row em {
  border-radius: 999px;
  padding: 5px 9px;
  color: #166534;
  background: #dcfce7;
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.data-row.blank em {
  color: #6d28d9;
  background: #f3e8ff;
}

.full-list {
  max-height: 520px;
  overflow: auto;
  padding-right: 3px;
}

.rank-row .abnormal,
.rank-row .warning {
  color: var(--red);
}

.secondary-action {
  margin-top: 18px;
}

.award-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.award-summary div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fbff;
}

.award-summary span {
  display: block;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.award-summary strong {
  display: block;
  margin-top: 8px;
  color: var(--red);
  font-size: 32px;
}

.award-card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(210px, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.award-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  border: 1px solid var(--line);
  border-top: 6px solid var(--award-color, var(--blue));
  border-radius: 22px;
  padding: 18px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.92)),
    #fff;
  box-shadow: 0 14px 34px rgba(15, 31, 54, 0.07);
}

.award-card.active {
  border-color: var(--award-color, var(--blue));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--award-color, var(--blue)) 18%, transparent), 0 20px 42px rgba(15, 31, 54, 0.12);
}

.award-card span {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--award-color, var(--blue));
  background: color-mix(in srgb, var(--award-color, var(--blue)) 12%, #fff);
  font-size: 13px;
  font-weight: 900;
}

.award-card h3 {
  margin: 0;
  min-height: 56px;
  font-size: 18px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.award-card > strong {
  color: var(--award-color, var(--blue));
  font-size: 34px;
  line-height: 1;
}

.award-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.award-meta em {
  border-radius: 10px;
  padding: 7px 8px;
  color: #334155;
  background: #f1f5f9;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.award-red { --award-color: #c53131; }
.award-orange { --award-color: #ea580c; }
.award-purple { --award-color: #7c3aed; }
.award-blue { --award-color: #2563eb; }
.award-slate { --award-color: #475569; }

.method-summary {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px dashed #b7c7df;
  border-radius: 18px;
  background: #f8fbff;
  font-size: 17px;
  line-height: 1.7;
}

.method-summary span {
  color: var(--muted);
}

.blank-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.blank-type-grid article {
  min-height: 160px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: #fff;
}

.blank-type-grid strong {
  display: block;
  font-size: 20px;
}

.blank-type-grid span,
.blank-type-grid em {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  font-style: normal;
  line-height: 1.55;
}

.blank-type-grid em {
  color: var(--blue-dark);
  font-weight: 900;
}

.method-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  align-items: center;
}

.method-stats span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--blue-dark);
  background: #fff;
  font-weight: 800;
}

.opportunity-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-height: 540px;
  overflow: auto;
  padding-right: 4px;
}

.opportunity-row {
  min-height: 148px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  text-align: left;
  background: #fff;
}

.opportunity-row.review {
  background: #f8fafc;
}

.opportunity-row.opportunity-A {
  border-color: #fecaca;
  background: #fff1f2;
}

.opportunity-row.opportunity-B {
  border-color: #fed7aa;
  background: #fff7ed;
}

.opportunity-row.opportunity-C {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.opportunity-row strong {
  display: block;
  font-size: 17px;
  margin-bottom: 10px;
}

.opportunity-row span {
  display: inline-block;
  margin: 0 6px 8px 0;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--blue-dark);
  background: #eaf2ff;
  font-size: 14px;
  font-weight: 800;
}

.opportunity-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.opportunity-note {
  grid-column: 1 / -1;
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  padding: 14px 16px;
  color: #174278;
  background: #eff6ff;
  font-size: 16px;
  line-height: 1.55;
}

.opportunity-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.opportunity-actions em {
  border-radius: 999px;
  padding: 5px 8px;
  color: #334155;
  background: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.definition-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.definition-cards article {
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 31, 54, 0.06);
}

.definition-cards strong {
  display: block;
  margin-top: 12px;
  font-size: 24px;
  line-height: 1.15;
}

.definition-cards span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.amap-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.amap-license-panel {
  background:
    linear-gradient(135deg, rgba(7, 17, 31, 0.98), rgba(11, 63, 130, 0.94)),
    #07111f;
  color: #fff;
}

.amap-license-panel .section-head h2 {
  color: #fff;
}

.amap-license-panel .section-head p {
  color: rgba(255, 255, 255, 0.72);
}

.license-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.license-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.08);
}

.license-card span {
  color: #9db9e8;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.license-card h3 {
  margin: 0;
  font-size: 25px;
  line-height: 1.2;
}

.license-card strong {
  display: block;
  margin-top: 4px;
  font-size: 30px;
  line-height: 1.1;
  color: #fff;
}

.license-card p,
.license-card em {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 16px;
  line-height: 1.65;
}

.license-card em {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-style: normal;
  color: #dbeafe;
}

.map-service {
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.22);
}

.lbs-service {
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.22);
}

.search-service {
  box-shadow: inset 0 0 0 1px rgba(197, 49, 49, 0.28);
}

.license-roadmap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.license-roadmap > div,
.license-checklist > div {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.07);
}

.license-roadmap h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.license-roadmap ol {
  margin: 0;
  padding-left: 22px;
}

.license-roadmap li {
  margin: 10px 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  line-height: 1.65;
}

.license-roadmap li strong {
  color: #fff;
}

.license-checklist {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.license-checklist strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 17px;
}

.license-checklist span {
  display: block;
  color: rgba(255, 255, 255, 0.74);
  font-size: 15px;
  line-height: 1.55;
}

.license-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.license-links a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0 15px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.08);
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
}

.amap-key-panel {
  background:
    linear-gradient(135deg, rgba(7, 17, 31, 0.98), rgba(21, 72, 128, 0.94)),
    #07111f;
  color: #fff;
}

.amap-key-panel .section-head h2 {
  color: #fff;
}

.amap-key-panel .section-head p {
  color: rgba(255, 255, 255, 0.76);
}

.key-check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.key-check-card {
  min-height: 250px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.08);
}

.key-check-card span {
  display: inline-flex;
  margin-bottom: 14px;
  border: 1px solid rgba(134, 239, 172, 0.4);
  border-radius: 999px;
  padding: 6px 10px;
  color: #bbf7d0;
  background: rgba(22, 101, 52, 0.24);
  font-size: 14px;
  font-weight: 900;
}

.key-check-card h3 {
  margin: 0;
  font-size: 25px;
}

.key-check-card p {
  min-height: 84px;
  margin: 12px 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 16px;
  line-height: 1.65;
}

.key-check-card strong {
  display: block;
  color: #fff;
  font-size: 17px;
  line-height: 1.45;
}

.key-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.key-feature-grid > div,
.key-quota-strip > div {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.07);
}

.key-feature-grid h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.key-feature-grid ul {
  margin: 0;
  padding-left: 20px;
}

.key-feature-grid li {
  margin: 10px 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  line-height: 1.65;
}

.key-feature-grid li strong {
  color: #fff;
}

.key-quota-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.key-quota-strip strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 17px;
}

.key-quota-strip span {
  display: block;
  color: rgba(255, 255, 255, 0.74);
  font-size: 15px;
  line-height: 1.55;
}

.key-doc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.key-doc-links a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0 15px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.08);
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
}

.amap-test-result {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  color: var(--muted);
  background: #f8fbff;
  font-size: 16px;
  line-height: 1.6;
}

.amap-test-result.success {
  border-color: #bbf7d0;
  color: #166534;
  background: #f0fdf4;
}

.amap-test-result.error {
  border-color: #fecaca;
  color: #991b1b;
  background: #fef2f2;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1000;
  width: min(780px, 92vw);
  height: 100vh;
  padding: 24px;
  border-left: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: -28px 0 80px rgba(15, 31, 54, 0.22);
  transform: translateX(105%);
  transition: transform 0.24s ease;
  overflow: auto;
}

.drawer.open {
  transform: translateX(0);
}

.detail-drawer {
  top: 7.5vh;
  left: 7.5vw;
  right: auto;
  width: 85vw;
  height: 85vh;
  border: 1px solid var(--line);
  border-radius: 26px;
  transform: translateY(112vh);
  box-shadow: 0 30px 100px rgba(15, 31, 54, 0.32);
}

.detail-drawer.open {
  transform: translateY(0);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.drawer-head h2 {
  margin: 0;
  font-size: 30px;
}

.drawer-actions {
  display: flex;
  gap: 10px;
}

.guide-drawer {
  width: min(720px, 92vw);
}

.guide-content {
  display: grid;
  gap: 14px;
}

.guide-content article {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: #f8fbff;
}

.guide-content h3 {
  margin: 0 0 12px;
  font-size: 21px;
}

.guide-content p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.guide-content strong {
  color: var(--ink);
}

.legend-explain {
  display: grid;
  gap: 12px;
}

.legend-explain div {
  display: grid;
  grid-template-columns: 38px 160px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: #f8fbff;
}

.legend-explain i,
.district-legend i {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-block;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6), 0 0 0 1px rgba(15, 31, 54, 0.16);
}

.legend-explain strong {
  font-size: 17px;
}

.legend-explain span {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.ring-swatch {
  background: conic-gradient(#c53131, #ea580c, #db2777, #1d4ed8, #c53131);
}

.blank-flag-swatch,
.blank-flag i,
.flag-icon {
  position: relative;
  width: 22px !important;
  height: 24px !important;
  border: 2px dashed var(--flag-color, var(--purple));
  border-radius: 3px 10px 10px 3px !important;
  background: transparent !important;
  box-shadow: none !important;
}

.blank-flag-swatch::after,
.blank-flag i::after,
.flag-icon::after {
  content: "";
  position: absolute;
  left: -5px;
  top: -2px;
  width: 2px;
  height: 32px;
  background: var(--flag-color, var(--purple));
}

.district-color-grid,
.district-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.district-color-grid button,
.district-legend button,
.legend-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  color: var(--ink);
  background: #fff;
  text-align: left;
}

.district-color-grid button span {
  display: block;
  grid-column: 2;
  color: var(--muted);
  font-size: 13px;
}

.drawer-section h3 {
  margin: 24px 0 0;
  font-size: 22px;
}

.detail-guard,
.drill-note {
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  padding: 15px 16px;
  color: #174278;
  background: #eff6ff;
  font-size: 16px;
  line-height: 1.6;
}

.detail-table {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.detail-overview {
  display: grid;
  gap: 18px;
}

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

.detail-kpi-grid article {
  min-height: 118px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: #fff;
}

.detail-kpi-grid span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.detail-kpi-grid strong {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-size: 26px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.detail-chart-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.mini-chart-card {
  min-height: 250px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: #fff;
}

.mini-chart-card h3,
.drill-section h3 {
  margin: 0 0 14px;
  font-size: 20px;
}

.mini-bars {
  display: grid;
  gap: 8px;
}

.mini-bar-row {
  position: relative;
  min-height: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px;
  gap: 10px;
  align-items: center;
  border: 1px solid #dbe7f5;
  border-radius: 12px;
  padding: 0 10px;
  overflow: hidden;
  color: var(--ink);
  background: #f8fbff;
  text-align: left;
  isolation: isolate;
}

.mini-bar-row::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--bar);
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.18), rgba(37, 99, 235, 0.03));
  z-index: -1;
}

.mini-bar-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 800;
}

.mini-bar-row strong {
  font-size: 14px;
  text-align: right;
}

.detail-table-section {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.detail-table-scroll {
  min-width: 1120px;
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

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

.drill-kpis article {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: #fff;
}

.drill-kpis span,
.drill-kpis em {
  color: var(--muted);
  font-style: normal;
}

.drill-kpis strong {
  display: block;
  margin: 8px 0;
  font-size: 22px;
}

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

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

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

.drill-row,
.rule-card {
  min-height: 86px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  color: var(--ink);
  background: #fff;
  text-align: left;
}

.drill-row strong,
.rule-card strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 17px;
  line-height: 1.35;
}

.drill-row span,
.rule-card span {
  display: inline-block;
  margin: 10px 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.rule-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.blank-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

.blank-list button {
  min-height: 44px;
  border: 1px dashed #c4b5fd;
  border-radius: 12px;
  color: #4c1d95;
  background: #faf5ff;
  font-size: 15px;
}

.blank-opportunity-chip {
  display: grid;
  gap: 6px;
  text-align: left;
}

.blank-opportunity-chip strong {
  font-size: 16px;
}

.blank-opportunity-chip span,
.blank-opportunity-chip em {
  color: #5b4b8a;
  font-size: 13px;
  font-style: normal;
  line-height: 1.4;
}

.blank-opportunity-chip.priority-A {
  border-color: #fca5a5;
  color: #7f1d1d;
  background: #fff1f2;
}

.blank-opportunity-chip.priority-B {
  border-color: #fdba74;
  color: #7c2d12;
  background: #fff7ed;
}

.blank-opportunity-chip.priority-C {
  border-color: #93c5fd;
  color: #1e3a8a;
  background: #eff6ff;
}

.detail-row {
  display: grid;
  grid-template-columns: 170px minmax(230px, 1.2fr) 130px 170px minmax(210px, 1.1fr) minmax(300px, 1.4fr) 150px;
  gap: 14px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: #fff;
  font-size: 15px;
  line-height: 1.45;
}

.detail-row strong {
  display: block;
  font-size: 16px;
}

.detail-row span,
.detail-row p {
  color: var(--muted);
}

.detail-actions {
  display: grid;
  gap: 8px;
}

.detail-actions button {
  min-height: 32px;
  border: 1px solid #bfd1e8;
  border-radius: 999px;
  color: var(--blue-dark);
  background: #fff;
  font-size: 13px;
  font-weight: 900;
}

.geocode-detail-table {
  min-width: 1180px;
  max-height: 560px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.geocode-detail-head,
.geocode-detail-row {
  display: grid;
  grid-template-columns: 110px 110px minmax(240px, 1.3fr) 150px 140px 160px 90px 100px;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.geocode-detail-head {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--muted);
  background: #f8fbff;
  font-weight: 900;
}

.geocode-detail-row span {
  overflow-wrap: anywhere;
}

.abnormal,
.black-row {
  color: var(--red) !important;
}

.scan-hit-marker {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  pointer-events: auto;
  cursor: pointer;
}

.marker-dot {
  display: block;
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(15, 31, 54, 0.28);
  pointer-events: auto;
}

.scan-hover-card {
  display: grid;
  gap: 4px;
  min-width: 190px;
  max-width: 260px;
  border: 1px solid rgba(191, 209, 232, 0.96);
  border-radius: 14px;
  padding: 10px 12px;
  color: #07111f;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 14px 34px rgba(15, 31, 54, 0.18);
}

.scan-hover-card strong {
  font-size: 14px;
  font-weight: 1000;
}

.scan-hover-card span,
.scan-hover-card em {
  color: #607086;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.cluster-dot {
  display: grid;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
  pointer-events: auto;
}

.geocode-marker {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: var(--status-color, #64748b);
  box-shadow: 0 8px 18px rgba(15, 31, 54, 0.26);
  font-size: 14px;
  font-weight: 900;
}

.geocode-marker::after {
  content: "!";
}

.geocode-marker.status-已补准::after {
  content: "✓";
}

.poi-marker {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid #fff;
  border-radius: 10px;
  color: #fff;
  background: var(--poi-color, #2563eb);
  box-shadow: 0 10px 24px rgba(15, 31, 54, 0.28);
  font-size: 13px;
  font-weight: 900;
}

.route-stop {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  border: 2px solid #0f766e;
  border-radius: 999px;
  padding: 4px 10px 4px 5px;
  color: #064e3b;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(15, 31, 54, 0.2);
  white-space: nowrap;
}

.route-stop.active,
.route-stop-planned.active {
  border-color: #f97316;
  color: #7c2d12;
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.35);
}

.route-stop strong {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: #fff;
  background: #0f766e;
  font-size: 13px;
}

.route-stop.active strong,
.route-stop-planned.active strong {
  background: #f97316;
}

.route-stop span {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
  font-weight: 900;
}

.user-location-marker {
  position: relative;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: #dc2626;
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.35);
}

.user-location-marker::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 999px;
  border: 2px solid rgba(220, 38, 38, 0.42);
  background: rgba(220, 38, 38, 0.16);
  animation: userLocationPulse 2.6s ease-out infinite;
  pointer-events: none;
}

.user-location-marker strong,
.user-location-marker span {
  display: none;
}

@keyframes userLocationPulse {
  0% {
    transform: scale(0.55);
    opacity: 0.55;
  }
  70% {
    transform: scale(1.8);
    opacity: 0.1;
  }
  100% {
    transform: scale(2.1);
    opacity: 0;
  }
}

.blank-badge,
.focus-marker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  border: 2px dashed var(--flag-color, #7c3aed);
  border-radius: 14px;
  padding: 8px 12px;
  color: var(--flag-color, #4c1d95);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 28px rgba(15, 31, 54, 0.18);
  font-weight: 900;
  white-space: nowrap;
}

.blank-badge em {
  color: #475569;
  font-style: normal;
}

.blank-flag-marker {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px dashed var(--flag-color, #7c3aed);
  border-radius: 12px;
  color: var(--flag-color, #7c3aed);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 22px rgba(15, 31, 54, 0.18);
  pointer-events: auto;
}

.blank-flag-marker::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  display: none;
  width: max-content;
  max-width: 320px;
  border: 1px solid #bfd1e8;
  border-radius: 12px;
  padding: 8px 10px;
  color: #10213a;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 34px rgba(15, 31, 54, 0.18);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
  z-index: 10;
}

.blank-flag-marker:hover::after {
  display: block;
}

.focus-marker.active {
  border-style: solid;
  border-color: var(--blue);
  color: var(--blue-dark);
}

.pin-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
}

.popup {
  min-width: 420px;
  max-width: 560px;
  color: var(--ink);
}

.detail-filter-row {
  align-items: stretch;
  border: 1px solid #d5e1f0;
  border-radius: 20px;
  padding: 14px;
  background: #f7fbff;
}

.detail-filter-shell {
  position: relative;
  border: 1px solid #d5e1f0;
  border-radius: 20px;
  padding: 14px;
  background: #f7fbff;
}

.detail-core-filter-row {
  display: grid;
  grid-template-columns: minmax(320px, 2fr) minmax(160px, 0.8fr) minmax(190px, 1fr) minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.detail-core-filter-row label,
.advanced-filter-grid label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.detail-core-filter-row label > span,
.advanced-filter-grid label > span {
  color: #334155;
  font-size: 14px;
  font-weight: 900;
}

.detail-core-filter-row input,
.detail-core-filter-row select,
.advanced-filter-grid input,
.advanced-filter-grid select {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
  background: #fff;
  font-size: 15px;
}

.detail-core-filter-row .select-search,
.advanced-filter-grid .select-search {
  min-height: 34px;
  font-size: 14px;
  background: #f8fbff;
}

.detail-core-actions {
  display: flex;
  gap: 9px;
  justify-content: flex-end;
  align-items: end;
  min-width: 212px;
}

.detail-core-actions button,
.advanced-filter-actions button {
  min-height: 46px;
  border: 1px solid #bfd1e8;
  border-radius: 999px;
  padding: 0 14px;
  color: var(--blue-dark);
  background: #fff;
  font-weight: 900;
}

.detail-core-actions button:first-child,
.advanced-filter-actions button:last-child {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
}

.detail-filter-row label {
  display: grid;
  gap: 7px;
  min-width: 170px;
  flex: 1 1 170px;
}

.detail-filter-row label > span {
  color: #334155;
  font-size: 14px;
  font-weight: 900;
}

.detail-filter-row .detail-search-field {
  min-width: 360px;
  flex: 2 1 360px;
}

.detail-filter-row .select-search {
  min-height: 36px;
  border-color: #dbe6f4;
  background: #fff;
  font-size: 14px;
}

.detail-filter-state {
  flex: 1 0 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  border-top: 1px solid #dbe6f4;
  padding-top: 12px;
}

.detail-filter-shell .detail-filter-state {
  margin-top: 12px;
  border-top: 1px solid #dbe6f4;
}

.detail-filter-state > strong {
  color: #334155;
  white-space: nowrap;
}

.detail-filter-state .filter-chips {
  flex: 1;
}

.detail-filter-state > button,
.poi-list-actions button,
.opportunity-toolbar button,
.poi-detail-actions button,
.opportunity-actions button {
  min-height: 36px;
  border: 1px solid #bfd1e8;
  border-radius: 999px;
  padding: 0 12px;
  color: var(--blue-dark);
  background: #fff;
  font-weight: 900;
}

.advanced-detail-panel {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 8;
  width: min(720px, calc(100% - 28px));
  max-height: min(68vh, 680px);
  display: none;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  border: 1px solid #c9d8ee;
  border-radius: 20px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 24px 70px rgba(15, 31, 54, 0.22);
}

.advanced-detail-panel.open {
  display: grid;
}

.advanced-filter-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #dbe6f4;
}

.advanced-filter-head span {
  display: block;
  color: #6b86ad;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.advanced-filter-head strong {
  display: block;
  margin-top: 3px;
  font-size: 24px;
}

.advanced-filter-head button {
  width: 36px;
  height: 36px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: 22px;
  font-weight: 900;
}

.advanced-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  overflow: auto;
  padding-right: 4px;
}

.advanced-filter-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid #dbe6f4;
}

.visual-detail-row.row-review {
  border-color: #fecaca;
  background: #fff7f7;
}

.visual-detail-row.row-non-primary {
  box-shadow: inset 5px 0 0 #111827;
}

.visual-detail-row > div > span:first-child {
  display: block;
  margin-bottom: 5px;
  color: #64748b;
  font-size: 13px;
  font-weight: 900;
}

.visual-detail-row em {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-style: normal;
}

.visual-detail-row .review-prize {
  color: #b91c1c;
  font-weight: 900;
}

.poi-detail-card,
.poi-result-note,
.route-logic {
  position: relative;
  border: 1px solid #d5e1f0;
  border-radius: 18px;
  padding: 16px;
  background: #fff;
}

.poi-detail-card {
  border-color: #bfdbfe;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.12);
}

.poi-detail-card .poi-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  color: #475569;
  background: #fff;
  font-size: 20px;
  font-weight: 900;
}

.poi-detail-card .poi-type {
  display: inline-block;
  border-radius: 999px;
  padding: 6px 10px;
  color: #174278;
  background: #eaf2ff;
  font-size: 13px;
  font-weight: 900;
}

.poi-detail-card h4 {
  margin: 12px 36px 12px 0;
  font-size: 22px;
  line-height: 1.25;
}

.poi-detail-card dl,
.popup dl {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 8px 12px;
}

.poi-detail-card dt {
  color: #64748b;
  font-weight: 900;
}

.poi-detail-card dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #0f172a;
}

.poi-detail-actions,
.poi-list-actions,
.poi-layer-actions,
.opportunity-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.poi-layer-actions {
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid #d7e3f5;
  border-radius: 14px;
  background: #f7fbff;
}

.poi-list-actions span {
  color: #475569;
  font-weight: 900;
}

.poi-layer-actions span {
  color: #475569;
  font-size: 13px;
  font-weight: 900;
}

.poi-layer-actions button {
  min-height: 32px;
  border: 1px solid #bfd1e8;
  border-radius: 999px;
  padding: 0 12px;
  color: #174278;
  background: #fff;
  font-size: 13px;
  font-weight: 900;
}

.poi-layer-actions button:disabled,
.gis-toolbar button:disabled {
  color: #94a3b8;
  background: #eef3fa;
  cursor: not-allowed;
}

.poi-result-note strong,
.route-logic strong {
  display: block;
  margin-bottom: 6px;
  color: #174278;
  font-size: 16px;
}

.poi-result-note span,
.route-logic p {
  margin: 0;
  color: #475569;
  line-height: 1.55;
}

.opportunity-toolbar {
  grid-column: 1 / -1;
}

.opportunity-actions button {
  font-size: 13px;
  min-height: 32px;
  padding: 0 10px;
}

.opportunity-row.opportunity-X {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.popup h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.popup dl {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 8px 12px;
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
}

.popup dt {
  color: #5b6b82;
  font-weight: 800;
}

.popup dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.cluster-popup-row {
  display: grid;
  gap: 3px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 10px;
}

.back-top {
  position: fixed;
  right: 26px;
  bottom: 24px;
  z-index: 900;
  min-height: 46px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  padding: 0 18px;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.28);
}

@media (min-width: 1024px) {
  .dashboard-shell {
    width: calc(100vw - 32px);
    max-width: none;
    margin: 16px;
  }

  .map-stage {
    grid-template-columns: minmax(840px, 3fr) minmax(320px, 0.85fr);
  }

  .gis-range-card {
    flex-direction: row;
    align-items: center;
  }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .hero-main {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 30px 40px 34px;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: clamp(34px, 4.4vw, 48px);
    line-height: 1.08;
    word-break: keep-all;
    overflow-wrap: normal;
  }

  .hero-copy p {
    max-width: 760px;
  }

  .map-stage {
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  }

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

  .product-strip {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  body {
    min-width: 0;
  }

  .dashboard-shell {
    width: calc(100vw - 24px);
    margin: 12px;
  }

  .hero-main,
  .map-stage,
  .product-strip,
  .insights-grid {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .award-card-grid,
  .detail-chart-grid,
  .blank-type-grid,
  .definition-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .detail-core-filter-row {
    grid-template-columns: 1fr;
  }

  .detail-core-filter-row label:not(.detail-search-field) {
    display: none;
  }

  .detail-core-actions {
    min-width: 0;
    justify-content: stretch;
  }

  .detail-core-actions button {
    flex: 1;
  }

  .advanced-detail-panel {
    position: fixed;
    inset: 0;
    width: 100vw;
    max-height: none;
    border-radius: 0;
    padding: 18px;
  }

  .advanced-filter-grid {
    grid-template-columns: 1fr;
  }

  .map-interaction-panel {
    width: min(330px, calc(100vw - 32px));
    margin: 0 12px 12px;
  }

  .license-grid,
  .license-roadmap,
  .license-checklist,
  .key-check-grid,
  .key-feature-grid,
  .key-quota-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  body {
    min-width: 0;
  }

  .dashboard-shell {
    width: calc(100vw - 20px);
    margin: 10px;
  }

  .hero-main,
  .map-stage,
  .product-strip,
  .insights-grid,
  .award-card-grid,
  .detail-chart-grid,
  .blank-type-grid,
  .definition-cards {
    grid-template-columns: 1fr;
  }

  .filter-bar,
  .metrics-grid,
  .opportunity-list,
  .detail-kpi-grid {
    grid-template-columns: 1fr;
  }

  .gis-range-card {
    flex-direction: column;
    align-items: stretch;
  }

  .gis-range-copy,
  .gis-range-copy strong,
  .gis-range-copy em {
    writing-mode: horizontal-tb;
    word-break: keep-all;
    overflow-wrap: normal;
  }
}

.mobile-app-shell,
.mobile-full-panel,
.mobile-bottom-panel {
  display: none;
}

@media (max-width: 767px) {
  :root {
    --mobile-top: calc(58px + env(safe-area-inset-top, 0px));
    --mobile-tab: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  html,
  body {
    width: 100vw;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
    -webkit-tap-highlight-color: transparent;
    background: #07111f;
  }

  body.mobile-mode {
    color: #07111f;
  }

  .dashboard-shell {
    width: 100vw;
    height: 100dvh;
    margin: 0;
    padding: 0;
  }

  .hero,
  .filter-bar,
  .filter-state-bar,
  .metrics-grid,
  .product-strip,
  .insights-grid,
  .map-summary,
  .back-top {
    display: none !important;
  }

  .map-stage {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: block;
    width: 100vw;
    height: 100dvh;
    margin: 0;
  }

  .map-card {
    width: 100vw;
    height: 100dvh;
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #dce9f7;
  }

  .map-toolbar,
  .gis-toolbar,
  .highlight-status,
  .map-interaction-panel,
  .map-gesture-hint,
  .map-notice {
    display: none !important;
  }

  .map-canvas {
    width: 100vw;
    height: 100dvh;
    min-height: 100dvh;
  }

  .mobile-app-shell {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 20;
    pointer-events: none;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  }

  .mobile-topbar {
    position: fixed;
    left: 12px;
    right: 12px;
    top: calc(10px + env(safe-area-inset-top, 0px));
    z-index: 42;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 54px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 22px;
    padding: 8px 9px 8px 14px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 24px rgba(15, 31, 54, 0.12);
    pointer-events: auto;
  }

  .mobile-topbar strong {
    display: block;
    font-size: 18px;
    line-height: 1.05;
  }

  .mobile-topbar span {
    display: block;
    margin-top: 3px;
    max-width: 172px;
    overflow: hidden;
    color: #52647c;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-top-actions {
    display: flex;
    gap: 6px;
  }

  .mobile-top-actions button,
  .mobile-map-fab button,
  .mobile-page-head button,
  .mobile-panel-head button,
  .mobile-panel-actions button,
  .mobile-card-actions button,
  .mobile-layer-content button,
  .mobile-layer-content select {
    min-width: 44px;
    min-height: 44px;
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 999px;
    padding: 0 12px;
    color: #12366d;
    background: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-weight: 900;
  }

  .mobile-load-more {
    position: relative;
    z-index: 6;
    display: block;
    width: 100%;
    min-height: 50px;
    border: 1px solid rgba(37, 99, 235, 0.24);
    border-radius: 18px;
    margin: 0 0 12px;
    color: #12366d;
    background: #eaf2ff;
    font-size: 16px;
    font-weight: 900;
    pointer-events: auto;
  }

  .mobile-filter-state {
    position: fixed;
    left: 14px;
    right: 14px;
    top: calc(76px + env(safe-area-inset-top, 0px));
    z-index: 39;
    display: none;
    gap: 6px;
    overflow-x: auto;
    pointer-events: auto;
  }

  .mobile-filter-state.has-filters {
    display: flex;
  }

  .mobile-filter-state button,
  .mobile-chip-row button,
  .mobile-pill {
    flex: 0 0 auto;
    border: 1px solid rgba(37, 99, 235, 0.22);
    border-radius: 999px;
    padding: 7px 10px;
    color: #12366d;
    background: rgba(255, 255, 255, 0.94);
    font-size: 13px;
    font-weight: 900;
  }

  .mobile-map-fab {
    position: fixed;
    right: 12px;
    top: calc(142px + env(safe-area-inset-top, 0px));
    z-index: 35;
    display: grid;
    gap: 9px;
    pointer-events: auto;
  }

  .mobile-app-shell:not(.tab-map) .mobile-topbar,
  .mobile-app-shell:not(.tab-map) .mobile-filter-state,
  .mobile-app-shell:not(.tab-map) .mobile-map-fab,
  .mobile-app-shell:not(.tab-map) .mobile-bottom-sheet {
    display: none !important;
  }

  .mobile-map-fab button {
    width: 64px;
    height: 48px;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(15, 31, 54, 0.16);
    white-space: nowrap;
    writing-mode: horizontal-tb;
  }

  .scan-hit-marker {
    width: 44px;
    height: 44px;
  }

  .marker-dot {
    width: 22px;
    height: 22px;
    border-width: 3px;
    box-shadow: 0 8px 20px rgba(15, 31, 54, 0.28), 0 0 0 7px rgba(37, 99, 235, 0.08);
  }

  .mobile-bottom-sheet {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(var(--mobile-tab) + 10px);
    z-index: 40;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    max-height: min(46dvh, 410px);
    border: 1px solid rgba(255, 255, 255, 0.52);
    border-radius: 26px;
    padding: 10px 12px 12px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 44px rgba(15, 31, 54, 0.18);
    backdrop-filter: blur(18px);
    pointer-events: auto;
    touch-action: pan-y;
    transform: translate3d(0, var(--sheet-drag-y, 0px), 0);
    transition:
      transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
      opacity 180ms ease,
      max-height 260ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
  }

  .mobile-bottom-sheet.is-dragging {
    transition: none;
  }

  .mobile-bottom-sheet.sheet-collapsed {
    max-height: 64px;
    overflow: hidden;
  }

  .mobile-bottom-sheet.sheet-half {
    max-height: min(43dvh, 370px);
  }

  .mobile-bottom-sheet.sheet-full {
    max-height: calc(100dvh - var(--mobile-top) - var(--mobile-tab) - 22px);
  }

  .mobile-bottom-sheet.has-selection {
    max-height: min(44dvh, 390px);
  }

  .mobile-sheet-handle {
    display: none;
  }

  .mobile-sheet-summary {
    padding: 3px 0 8px;
    cursor: pointer;
  }

  .mobile-summary-line {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    color: #07111f;
    font-size: 15px;
    font-weight: 900;
    white-space: nowrap;
  }

  .mobile-summary-line button {
    order: -1;
    flex: 0 0 auto;
    min-height: 34px;
    border: 1px solid rgba(37, 99, 235, 0.28);
    border-radius: 999px;
    padding: 0 12px;
    color: #fff;
    background: #2563eb;
    font-size: 14px;
    font-weight: 900;
  }

  .mobile-sheet-body,
  .mobile-page-content {
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
    padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .mobile-kpi,
  .mobile-card,
  .mobile-award-card,
  .mobile-route-card,
  .mobile-detail-card {
    border: 1px solid rgba(203, 213, 225, 0.92);
    border-radius: 18px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 6px 16px rgba(15, 31, 54, 0.06);
  }

  .mobile-selected-card {
    border-color: rgba(37, 99, 235, 0.35);
    background: #fff;
    scroll-snap-align: start;
    transform: translateZ(0);
  }

  .mobile-route-card.active {
    border-color: rgba(249, 115, 22, 0.58);
    background: rgba(255, 247, 237, 0.96);
  }

  .mobile-kpi span,
  .mobile-card span,
  .mobile-award-card span,
  .mobile-detail-card span {
    display: block;
    color: #64748b;
    font-size: 13px;
    font-weight: 900;
  }

  .mobile-kpi strong {
    display: block;
    margin-top: 6px;
    color: #07111f;
    font-size: 28px;
    line-height: 1;
  }

  .mobile-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 18px 0 10px;
  }

  .mobile-section-title h3 {
    margin: 0;
    font-size: 19px;
  }

  .mobile-list {
    display: grid;
    gap: 10px;
  }

  .mobile-rank-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    border: 1px solid #d8e3f1;
    border-radius: 18px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.86);
  }

  .mobile-rank-row strong,
  .mobile-card h3,
  .mobile-award-card h3,
  .mobile-detail-card h3 {
    margin: 0;
    color: #07111f;
    font-size: 17px;
  }

  .mobile-rank-row em,
  .mobile-card p,
  .mobile-award-card p,
  .mobile-detail-card p {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 14px;
    font-style: normal;
    line-height: 1.45;
  }

  .mobile-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 46;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    min-height: var(--mobile-tab);
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(203, 213, 225, 0.75);
    background: rgba(255, 255, 255, 0.97);
    pointer-events: auto;
  }

  .mobile-tabbar button {
    display: grid;
    gap: 2px;
    justify-items: center;
    border: 0;
    border-radius: 18px;
    padding: 6px 2px;
    color: #64748b;
    background: transparent;
    font-size: 12px;
    font-weight: 900;
  }

  .mobile-tabbar button span {
    font-size: 19px;
    line-height: 1;
  }

  .mobile-tabbar button.active {
    color: #fff;
    background: #2563eb;
  }

  .mobile-page {
    position: fixed;
    inset: 0 0 var(--mobile-tab) 0;
    z-index: 44;
    display: none;
    grid-template-rows: auto minmax(0, 1fr);
    padding: calc(12px + env(safe-area-inset-top, 0px)) 12px 12px;
    background:
      radial-gradient(circle at 20% 0%, rgba(197, 49, 49, 0.10), transparent 20rem),
      linear-gradient(180deg, #f8fbff, #eef4fb);
    pointer-events: auto;
    overflow: hidden;
  }

  .mobile-page.active {
    display: grid;
  }

  .mobile-page-head,
  .mobile-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 4px 0 12px;
  }

  .mobile-page-head span,
  .mobile-panel-title span {
    display: block;
    color: #7f98c5;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
  }

  .mobile-page-head strong,
  .mobile-panel-head strong,
  .mobile-panel-title strong {
    display: block;
    color: #07111f;
    font-size: 24px;
    line-height: 1.1;
  }

  .mobile-full-panel {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    padding: calc(12px + env(safe-area-inset-top, 0px)) 14px calc(14px + env(safe-area-inset-bottom, 0px));
    background: #f8fbff;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(0, -104%, 0);
    transition:
      transform 360ms cubic-bezier(0.22, 1, 0.36, 1),
      opacity 220ms ease,
      visibility 0s linear 360ms;
    will-change: transform, opacity;
    contain: layout paint;
  }

  .mobile-full-panel.open {
    display: grid;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
    transition:
      transform 360ms cubic-bezier(0.22, 1, 0.36, 1),
      opacity 220ms ease,
      visibility 0s linear 0s;
  }

  .mobile-drill-panel,
  #mobileGuidePanel {
    grid-template-rows: auto minmax(0, 1fr);
  }

  .mobile-bottom-panel {
    position: fixed;
    left: 10px;
    right: 10px;
    top: calc(var(--mobile-top) + 8px);
    bottom: calc(var(--mobile-tab) + 8px);
    z-index: 68;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 0;
    border-radius: 24px;
    padding: 8px 10px 12px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 22px 46px rgba(15, 31, 54, 0.18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
    transform: translate3d(0, calc(-100% - var(--mobile-top)), 0);
    transition:
      transform 380ms cubic-bezier(0.22, 1, 0.36, 1),
      opacity 220ms ease,
      visibility 0s linear 380ms;
    will-change: transform, opacity;
    contain: layout paint;
    touch-action: pan-y;
  }

  .mobile-bottom-panel.open {
    display: grid;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
    transition:
      transform 380ms cubic-bezier(0.22, 1, 0.36, 1),
      opacity 220ms ease,
      visibility 0s linear 0s;
  }

  .mobile-bottom-panel > .mobile-sheet-handle {
    display: block;
    width: 54px;
    min-height: 6px;
    height: 6px;
    margin: 0 auto 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #cbd5e1;
    cursor: pointer;
  }

  .mobile-filter-form {
    display: grid;
    gap: 12px;
    min-height: 0;
    overflow: auto;
    padding-bottom: 12px;
  }

  .mobile-filter-form label {
    display: grid;
    gap: 7px;
    border: 1px solid #d8e3f1;
    border-radius: 18px;
    padding: 12px;
    background: #fff;
  }

  .mobile-filter-form label > span {
    color: #334155;
    font-size: 15px;
    font-weight: 900;
  }

  .mobile-filter-form input,
  .mobile-filter-form select,
  .mobile-date-pair input,
  .mobile-layer-content select {
    width: 100%;
    min-height: 44px;
    border: 1px solid #cbd9ea;
    border-radius: 14px;
    padding: 0 12px;
    background: #f8fbff;
    color: #07111f;
    font-size: 16px;
  }

  .mobile-date-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .mobile-chip-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .mobile-panel-actions {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid #d8e3f1;
  }

  .mobile-panel-actions button:last-child,
  .mobile-page-head button,
  #mobileApplyFilterButton,
  #mobileDrillExportButton {
    color: #fff;
    border-color: #2563eb;
    background: #2563eb;
  }

  .mobile-layer-content {
    display: grid;
    gap: 12px;
    min-height: 0;
    overflow: auto;
    padding: 12px 0;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  #mobilePoiContent {
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 12px 0 calc(18px + env(safe-area-inset-bottom, 0px));
  }

  @media (prefers-reduced-motion: reduce) {
    .mobile-full-panel,
    .mobile-full-panel.open,
    .mobile-bottom-panel,
    .mobile-bottom-panel.open,
    .mobile-bottom-sheet {
      transition: none;
    }
  }

  .mobile-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border: 1px solid #d8e3f1;
    border-radius: 18px;
    padding: 12px;
    background: #fff;
  }

  .mobile-toggle-row strong {
    display: block;
    font-size: 16px;
  }

  .mobile-toggle-row span {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 13px;
  }

  .mobile-toggle-row input {
    width: 24px;
    height: 24px;
  }

  .mobile-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
  }

  .mobile-award-card {
    border-top: 5px solid var(--award-color, #2563eb);
  }

  .mobile-award-card strong {
    display: block;
    margin-top: 8px;
    color: var(--award-color, #2563eb);
    font-size: 31px;
    line-height: 1;
  }

  .mobile-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
  }

  .mobile-tag-row em {
    border-radius: 999px;
    padding: 5px 8px;
    color: #174278;
    background: #eaf2ff;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
  }

  .mobile-fact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    margin: 10px 0 0;
  }

  .mobile-fact-grid div {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 8px 9px;
    background: rgba(248, 250, 252, 0.84);
  }

  .mobile-fact-grid dt {
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
  }

  .mobile-fact-grid dd {
    margin: 0;
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .mobile-drill-panel .mobile-page-content {
    display: grid;
    gap: 12px;
    pointer-events: none;
  }

  .mobile-drill-panel .mobile-page-content > * {
    position: relative;
    z-index: 1;
    pointer-events: auto;
  }

  .mobile-drill-panel .mobile-load-more {
    z-index: 8;
  }

  .mobile-horizontal-cards {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(245px, 78vw);
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
  }
}

/* 2026-05-27 desktop cockpit final overrides */
@media (min-width: 768px) {
  html,
  body {
    overflow-x: hidden;
  }

  body {
    color: var(--ink);
    background: #eef2f7;
    font-size: 15px;
    letter-spacing: 0;
  }

  .dashboard-shell {
    width: calc(100vw - 32px);
    max-width: none;
    margin: 16px;
    padding: 0 0 64px;
    gap: 0;
  }

  .hero {
    order: 0;
  }

  .filter-bar {
    order: 1;
  }

  .filter-state-bar {
    order: 2;
  }

  .executive-overview {
    order: 3;
  }

  .metrics-grid {
    order: 4;
  }

  .map-stage {
    order: 5;
  }

  .analysis-board {
    order: 6;
  }

  .product-strip {
    order: 7;
  }

  .insights-grid {
    order: 8;
  }

  .cockpit-header {
    min-height: 0;
    border-radius: var(--radius-lg);
    background: #111827;
    box-shadow: var(--shadow);
  }

  .cockpit-nav {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 16px;
    padding: 12px 18px;
  }

  .cockpit-brand {
    display: grid !important;
    gap: 3px !important;
  }

  .cockpit-brand strong {
    font-size: 17px;
  }

  .cockpit-brand span {
    padding: 0;
    border: 0;
    color: rgba(226, 232, 240, 0.74);
    background: transparent;
    font-size: 12px;
  }

  .cockpit-actions {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px !important;
  }

  .cockpit-actions a,
  .cockpit-actions button,
  .cockpit-actions span {
    min-height: 34px;
    border-radius: 999px;
    padding: 0 11px;
    font-size: 13px;
  }

  .cockpit-titlebar {
    grid-template-columns: minmax(0, 1fr) minmax(420px, 600px);
    gap: 22px;
    padding: 22px 24px 24px;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: 32px;
    line-height: 1.16;
  }

  .hero-copy p {
    margin-top: 9px;
    font-size: 15px;
    line-height: 1.55;
  }

  .hero-facts div {
    border-radius: var(--radius-md);
    padding: 11px 12px;
  }

  .hero-facts strong {
    font-size: 17px;
  }

  .filter-bar,
  .filter-state-bar,
  .executive-overview,
  .metrics-grid,
  .map-stage,
  .analysis-board,
  .product-strip,
  .insights-grid {
    margin-top: 14px;
  }

  .filter-bar {
    position: sticky;
    top: 8px;
    z-index: 80;
    gap: 10px;
    border-radius: var(--radius-lg);
    padding: 12px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(12px);
  }

  .filter-title {
    flex-basis: 82px;
  }

  .filter-title strong {
    font-size: 16px;
  }

  .filter-bar label {
    flex-basis: 132px;
    min-width: 126px;
    gap: 5px;
  }

  .filter-bar label span {
    font-size: 12px;
  }

  .filter-bar input,
  .filter-bar select {
    min-height: 36px;
    border-radius: var(--radius-md);
    font-size: 14px;
  }

  .filter-actions button,
  .map-tools button,
  .secondary-action,
  .primary-action,
  .drawer-actions button,
  .amap-actions button,
  .method-stats button,
  .drawer-head button {
    min-height: 36px;
    border-radius: var(--radius-md);
    padding: 0 10px;
    font-size: 14px;
  }

  .more-filter-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
  }

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

  .overview-card,
  .metric-card,
  .map-card,
  .map-summary,
  .insight-card,
  .analysis-card,
  .product-strip {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
  }

  .overview-card {
    padding: 14px 16px;
  }

  .overview-card strong {
    font-size: 25px;
  }

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

  .metric-card {
    min-height: 104px;
    padding: 15px 16px;
  }

  .metric-card span {
    font-size: 13px;
  }

  .metric-card strong {
    margin-top: 8px;
    font-size: 27px;
  }

  .metric-card em {
    font-size: 12px;
  }

  .map-stage {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 14px;
  }

  .map-card {
    min-height: 720px;
  }

  .map-toolbar {
    padding: 12px 14px;
  }

  .map-toolbar strong {
    font-size: 19px;
  }

  .map-toolbar span {
    font-size: 13px;
  }

  .gis-toolbar {
    gap: 8px;
    padding: 10px 14px;
  }

  .gis-toolbar button,
  .gis-toolbar select,
  .layer-toggle,
  .geojson-upload {
    min-height: 34px;
    border-radius: var(--radius-md);
    padding: 0 9px;
    font-size: 13px;
  }

  .map-canvas {
    min-height: 560px;
  }

  .map-summary {
    gap: 14px;
    max-height: 720px;
    padding: 16px;
  }

  .map-summary h2 {
    font-size: 21px;
  }

  .view-count {
    border-radius: var(--radius-lg);
    padding: 16px;
    background: #17345d;
  }

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

  .analysis-card {
    padding: 18px;
  }

  .trend-card {
    grid-column: span 6;
  }

  .anomaly-card,
  .terminal-card {
    grid-column: span 3;
  }

  .report-card {
    grid-column: 1 / -1;
  }

  .product-strip {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
  }

  .insights-grid {
    gap: 14px;
  }

  .insight-card {
    padding: 18px;
  }

  .rank-head.district-head,
  .rank-row.district-row {
    grid-template-columns: minmax(96px, 1.1fr) 86px 82px 74px 84px 116px;
  }

  .data-head,
  .data-row {
    width: max-content;
    min-width: 100%;
  }

  .award-head,
  .award-row {
    grid-template-columns: minmax(240px, 2fr) 112px 98px 82px 96px 96px 96px 170px;
  }

  .street-head,
  .street-row {
    grid-template-columns: 82px minmax(132px, 1.25fr) 72px 92px 92px 82px 126px;
  }

  .product-head,
  .product-row {
    grid-template-columns: minmax(110px, 1fr) 94px 94px 82px 78px 128px;
  }

  .award-card-grid {
    grid-template-columns: repeat(4, minmax(190px, 1fr));
  }

  body.dashboard-export-mode .filter-bar {
    position: static;
  }

  body.dashboard-export-mode .map-tools,
  body.dashboard-export-mode .gis-toolbar,
  body.dashboard-export-mode .back-top {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 1360px) {
  .more-filter-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .trend-card,
  .anomaly-card,
  .terminal-card,
  .report-card {
    grid-column: auto;
  }

  .trend-card {
    grid-column: 1 / -1;
  }
}

@media (min-width: 768px) and (max-width: 1279px) {
  .cockpit-nav {
    grid-template-columns: minmax(220px, 1fr) auto;
  }

  .cockpit-actions {
    justify-content: flex-end;
  }

  .cockpit-titlebar {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 430px);
    gap: 16px;
    padding: 18px;
  }

  .hero-facts {
    grid-template-columns: 1.45fr 0.9fr 0.9fr;
  }

  .hero-copy h1 {
    font-size: 26px;
  }

  .hero-copy p {
    font-size: 13px;
  }

  .hero-facts div {
    padding: 9px 10px;
  }

  .hero-facts strong {
    font-size: 14px;
    white-space: nowrap;
  }

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

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

  .map-stage {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

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

@media (min-width: 768px) and (max-width: 920px) {
  .cockpit-nav,
  .cockpit-titlebar {
    grid-template-columns: 1fr;
  }

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

@media (min-width: 768px) and (max-width: 1100px) {
  .dashboard-shell {
    width: calc(100vw - 24px);
    margin: 12px;
  }

  .filter-bar {
    position: static;
  }

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

  .map-stage {
    grid-template-columns: minmax(0, 1fr) 292px;
  }

  .map-card {
    min-height: 650px;
  }

  .map-summary {
    max-height: 650px;
  }

  .map-canvas {
    min-height: 505px;
  }

  .analysis-board {
    grid-template-columns: 1fr;
  }

  .product-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .executive-overview,
  .analysis-board {
    display: none !important;
  }
}

/* 2026-05-27 data accuracy + enterprise BI polish */
.desktop-cockpit .hidden-metric {
  display: none !important;
}

.desktop-cockpit .metric-card {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
  overflow: hidden;
}

.desktop-cockpit .metric-card > span:not(.metric-icon),
.desktop-cockpit .metric-card > strong,
.desktop-cockpit .metric-card > em {
  grid-column: 2;
  min-width: 0;
}

.desktop-cockpit .metric-icon {
  grid-row: 1 / span 3;
  grid-column: 1;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 10px;
  color: var(--blue);
  background: rgba(37, 99, 235, 0.08);
}

.desktop-cockpit .metric-card.warning .metric-icon {
  color: var(--gold);
  border-color: rgba(217, 119, 6, 0.26);
  background: rgba(217, 119, 6, 0.1);
}

.desktop-cockpit .metric-card.dark .metric-icon {
  color: #111827;
  border-color: rgba(17, 24, 39, 0.18);
  background: rgba(17, 24, 39, 0.07);
}

.desktop-cockpit .metric-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-data-note {
  display: block;
  min-height: 28px;
  margin: 10px 0 12px;
  border: 1px solid rgba(30, 64, 175, 0.14);
  border-radius: 10px;
  padding: 7px 10px;
  color: #334155;
  background: #f8fbff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.map-data-note {
  margin: 0 14px 10px;
}

.definition-drawer {
  width: min(760px, 92vw);
}

.definition-drawer .drawer-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.definition-current-scope {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
  border: 1px solid rgba(30, 64, 175, 0.16);
  border-radius: 16px;
  padding: 14px 16px;
  background: #f8fbff;
}

.definition-current-scope span,
.definition-current-scope em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.definition-current-scope strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.definition-list {
  display: grid;
  gap: 10px;
}

.definition-list article {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  background: #fff;
}

.definition-list strong {
  display: block;
  color: var(--blue-dark);
  font-size: 15px;
  line-height: 1.3;
}

.definition-list p {
  margin: 6px 0 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.55;
}

.definition-cards + .secondary-action {
  margin-top: 14px;
}

.rank-row.district-row.active {
  border-color: rgba(30, 64, 175, 0.72);
  background: #f8fbff;
}

.rank-row.district-row.active strong {
  color: var(--blue-dark);
}

@media (min-width: 768px) and (max-width: 1100px) {
  .desktop-cockpit .metric-card {
    grid-template-columns: 30px minmax(0, 1fr);
    column-gap: 10px;
  }

  .desktop-cockpit .metric-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }

  .desktop-cockpit .metric-icon svg {
    width: 18px;
    height: 18px;
  }

  .chart-data-note {
    font-size: 11px;
  }
}
