:root {
  color-scheme: light;
  --bg: #eef2f3;
  --surface: #ffffff;
  --surface-soft: #f6f8f8;
  --ink: #1d292f;
  --muted: #68777f;
  --line: #d9e1e4;
  --accent: #126a75;
  --green: #0f8b6f;
  --yellow: #d6a21f;
  --orange: #d97706;
  --red: #c0362c;
  --shadow: 0 16px 42px rgba(27, 43, 49, 0.09);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 1180px;
  background: var(--bg);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
}

button,
input,
select {
  font: inherit;
}

.app-shell {
  width: min(1560px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 22px 0 34px;
}

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

.eyebrow {
  margin: 0 0 5px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: 0;
}

h2 {
  font-size: 17px;
  line-height: 1.25;
}

.topbar p,
.panel-head p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.meta-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.meta-strip span,
.ghost-button,
.risk-pill {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  padding: 7px 10px;
  font-size: 12px;
  white-space: nowrap;
}

.ghost-button {
  cursor: pointer;
  color: var(--accent);
  font-weight: 700;
}

.ghost-button:disabled {
  cursor: not-allowed;
  color: #9aa7ad;
  background: #f1f4f5;
}

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

.map-search {
  display: inline-flex;
  flex: 1 1 330px;
  min-width: 260px;
  max-width: 460px;
  align-items: center;
  gap: 6px;
}

.map-search-input {
  width: 100%;
  height: 34px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 10px;
  font: inherit;
  font-size: 12px;
  outline: 0;
}

.map-search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(29, 95, 159, 0.12);
}

.search-button {
  height: 34px;
}

#mapSearchStatus {
  min-width: 58px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.year-control {
  display: inline-flex;
  height: 34px;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
}

.year-control select {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
}

.drill-trail {
  display: flex;
  align-items: center;
  min-height: 34px;
  margin: -2px 0 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fbfb;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.kpi,
.map-panel,
.side-panel,
.detail-panel,
.insight-panel,
.indicator-panel,
.notice {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.kpi {
  padding: 14px 16px;
}

.kpi span,
.kpi small,
.province-stats span,
.metric-grid span,
.component-list span {
  color: var(--muted);
  font-size: 12px;
}

.kpi strong {
  display: block;
  margin: 7px 0 5px;
  font-size: 28px;
  line-height: 1;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(760px, 1fr) 390px;
  gap: 14px;
  align-items: stretch;
}

.map-panel,
.side-panel,
.detail-panel,
.insight-panel,
.indicator-panel {
  padding: 16px;
}

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

.map-wrap {
  position: relative;
  height: 630px;
  background: linear-gradient(180deg, #fafdff 0%, #eef5f6 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

#chinaMap {
  display: block;
  width: 100%;
  height: 100%;
  background: #eef5f6;
}

.leaflet-container {
  background: #eef5f6;
  font-family: inherit;
}

.leaflet-interactive {
  cursor: pointer;
}

.leaflet-control-zoom {
  border: 1px solid var(--line) !important;
  border-radius: 7px !important;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(27, 43, 49, 0.1) !important;
}

.leaflet-control-zoom a {
  color: var(--ink) !important;
  border-color: var(--line) !important;
}

.province-label {
  width: 54px;
  height: 18px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  fill: #ffffff;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.55),
    0 -1px 2px rgba(0, 0, 0, 0.35),
    1px 0 2px rgba(0, 0, 0, 0.35),
    -1px 0 2px rgba(0, 0, 0, 0.35);
  pointer-events: none !important;
}

.gis-tooltip {
  border: 0 !important;
  border-radius: 7px !important;
  padding: 9px 10px !important;
  color: #ffffff !important;
  background: rgba(29, 41, 47, 0.94) !important;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18) !important;
  font-size: 12px;
  line-height: 1.6;
}

.gis-tooltip::before {
  display: none;
}

.gis-tooltip strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.legend {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

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

.legend i {
  width: 16px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}

.risk-green {
  background: var(--green);
}

.risk-yellow {
  background: var(--yellow);
}

.risk-orange {
  background: var(--orange);
}

.risk-red {
  background: var(--red);
}

.map-tooltip {
  position: fixed;
  z-index: 10;
  width: 210px;
  padding: 11px 12px;
  border-radius: 7px;
  color: #ffffff;
  background: rgba(29, 41, 47, 0.94);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

.map-tooltip strong,
.map-tooltip span {
  display: block;
}

.map-tooltip strong {
  font-size: 14px;
  margin-bottom: 7px;
}

.map-tooltip span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1.55;
}

.province-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.province-stats div,
.metric-grid div {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px;
  min-width: 0;
}

.province-stats strong,
.metric-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 20px;
  line-height: 1.1;
}

.section-title {
  margin: 14px 0 10px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}

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

.rank-item {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 10px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.rank-item.active {
  border-color: var(--accent);
  box-shadow: inset 3px 0 0 var(--accent);
}

.rank-item b,
.rank-item small {
  display: block;
}

.rank-item small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.rank-item strong {
  font-size: 20px;
}

.diagnosis-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fbfb;
}

.diagnosis-head,
.diagnosis-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.diagnosis-head strong {
  font-size: 14px;
  line-height: 1.3;
}

.diagnosis-head span {
  font-size: 22px;
  font-weight: 900;
}

.diagnosis-card p,
.diagnosis-empty {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

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

.diagnosis-bars div {
  display: grid;
  grid-template-columns: 62px 1fr 30px;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.diagnosis-bars i {
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #e3e9eb;
}

.diagnosis-bars b {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.diagnosis-bars em {
  color: var(--ink);
  font-style: normal;
  font-weight: 800;
  text-align: right;
}

.diagnosis-foot span {
  min-width: 0;
  padding: 6px 8px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
}

.analysis-grid {
  display: grid;
  grid-template-columns: minmax(760px, 1fr) 390px;
  gap: 14px;
  margin-top: 14px;
}

.charts-panel {
  margin-top: 14px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

.chart-grid-secondary {
  margin-top: 12px;
}

.chart-box {
  min-height: 258px;
  padding: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.chart-title {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.chart-box svg {
  width: 100%;
  height: 210px;
  display: block;
}

.chart-axis {
  stroke: #aab8be;
  stroke-width: 1;
}

.chart-grid-line {
  stroke: #dce5e8;
  stroke-width: 1;
}

.chart-tick,
.chart-label,
.chart-value,
.chart-note,
.donut-label,
.empty-chart {
  fill: var(--muted);
  font-size: 11px;
}

.chart-label {
  fill: var(--ink);
  font-weight: 700;
}

.chart-value,
.chart-note {
  fill: var(--ink);
  font-weight: 800;
}

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

.trend-dot {
  fill: var(--surface);
  stroke: var(--accent);
  stroke-width: 2;
}

.trend-dot.active {
  fill: var(--accent);
}

.donut-number {
  fill: var(--ink);
  font-size: 24px;
  font-weight: 900;
  text-anchor: middle;
}

.donut-label {
  text-anchor: middle;
}

.bar-bg {
  fill: #e2eaed;
}

.radar-ring {
  fill: none;
  stroke: #dce5e8;
  stroke-width: 1;
}

.radar-axis {
  stroke: #cad6da;
  stroke-width: 1;
}

.radar-fill {
  fill: rgba(18, 106, 117, 0.18);
}

.radar-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.4;
  stroke-linejoin: round;
}

.risk-threshold {
  stroke: rgba(192, 54, 44, 0.22);
  stroke-dasharray: 4 4;
  stroke-width: 1;
}

.flow-link {
  fill: none;
  stroke: #91a3aa;
  stroke-width: 2;
}

.flow-number {
  fill: #ffffff;
  font-size: 22px;
  font-weight: 900;
}

.flow-label {
  fill: rgba(255, 255, 255, 0.88);
  font-size: 11px;
  font-weight: 800;
}

.filters {
  display: flex;
  gap: 8px;
}

.filters input,
.filters select {
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  padding: 0 10px;
  color: var(--ink);
}

.filters input {
  width: 220px;
}

.table-wrap {
  max-height: 480px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #edf3f4;
  color: var(--muted);
  text-align: left;
  font-size: 12px;
}

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

td:first-child {
  min-width: 230px;
}

td:first-child strong,
td:first-child span {
  display: block;
}

td:first-child span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

tbody tr {
  cursor: pointer;
}

tbody tr:hover,
.active-row {
  background: #f3f8f8;
}

.risk-pill {
  display: inline-block;
  color: #ffffff;
  border: 0;
  padding: 5px 8px;
}

.score-block {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 14px;
  align-items: center;
}

.score-ring {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  background:
    radial-gradient(circle at center, var(--surface) 57%, transparent 58%),
    conic-gradient(var(--score-color) calc(var(--score) * 1%), #e2e8ea 0);
}

.score-ring strong {
  font-size: 28px;
  line-height: 1;
}

.score-ring span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.reason-box {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reason-box span {
  display: inline-flex;
  padding: 7px 9px;
  border-radius: 6px;
  background: #f6eeee;
  color: #8d2d27;
  border: 1px solid #efd4d1;
  font-size: 12px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.metric-grid strong {
  font-size: 16px;
}

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

.component-list > div {
  display: grid;
  grid-template-columns: 110px 1fr 38px;
  gap: 8px;
  align-items: center;
}

.bar {
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #e3e9eb;
}

.bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.component-list b {
  text-align: right;
  font-size: 12px;
}

.notice {
  grid-column: 1 / -1;
  padding: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.model-panel {
  margin-top: 14px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.formula-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.formula-strip span {
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fbfb;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

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

.theory-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-soft);
}

.theory-card b {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
}

.theory-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

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

  .app-shell {
    width: calc(100vw - 24px);
  }

  .workspace,
  .analysis-grid,
  .kpi-grid,
  .chart-grid,
  .formula-strip,
  .model-grid {
    grid-template-columns: 1fr;
  }

  .topbar,
  .panel-head {
    flex-direction: column;
    align-items: stretch;
  }

  .map-wrap {
    height: 520px;
  }

  .filters {
    flex-wrap: wrap;
  }
}

:root {
  color-scheme: dark;
  --bg: #07110f;
  --surface: rgba(13, 24, 20, 0.92);
  --surface-soft: rgba(18, 33, 28, 0.9);
  --ink: #edf7f0;
  --muted: #9cafaa;
  --line: rgba(119, 163, 148, 0.23);
  --accent: #34d39f;
  --green: #19b98d;
  --yellow: #e5b83f;
  --orange: #ee7b2c;
  --red: #e54b4b;
  --shadow: 0 18px 46px rgba(0, 0, 0, 0.32);
}

body {
  background:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(135deg, #07110f 0%, #0f1611 48%, #19100f 100%);
  background-size: 34px 34px, 34px 34px, 100% 100%;
}

.app-shell {
  padding-top: 18px;
}

.topbar {
  align-items: center;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(112, 156, 142, 0.22);
  border-radius: 8px;
  background: rgba(8, 17, 15, 0.72);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.eyebrow {
  color: #83f4c8;
}

h1 {
  color: #f5fff8;
  font-size: 30px;
}

h2 {
  color: #f2fff7;
}

.topbar p,
.panel-head p {
  color: var(--muted);
}

.meta-strip span,
.ghost-button,
.risk-pill {
  border-color: rgba(122, 177, 158, 0.28);
  background: rgba(16, 30, 25, 0.88);
  color: #b9cbc4;
}

.ghost-button {
  color: #9ff5cc;
  transition:
    border-color 160ms ease,
    color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.ghost-button:hover:not(:disabled) {
  border-color: rgba(94, 235, 179, 0.56);
  background: rgba(42, 98, 78, 0.4);
  color: #ffffff;
  transform: translateY(-1px);
}

.ghost-button:disabled {
  background: rgba(40, 50, 47, 0.62);
  color: #6f827b;
}

.year-control,
.filters input,
.filters select {
  border-color: rgba(122, 177, 158, 0.28);
  background: rgba(10, 20, 17, 0.84);
  color: var(--muted);
}

.year-control select,
.filters input,
.filters select {
  color: var(--ink);
}

.filters input::placeholder {
  color: #72867e;
}

.hero-3d {
  position: relative;
  min-height: 360px;
  margin-bottom: 14px;
  border: 1px solid rgba(139, 191, 172, 0.24);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(7, 14, 13, 0.9), rgba(13, 22, 17, 0.45) 44%, rgba(26, 15, 13, 0.9)),
    #08110f;
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  isolation: isolate;
}

.hero-3d::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.28));
  pointer-events: none;
}

.hero-3d::after {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(104, 243, 189, 0.72), rgba(229, 184, 63, 0.42), transparent);
  box-shadow: 0 -12px 38px rgba(52, 211, 159, 0.28);
}

#riskHeroCanvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: transparent;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 11, 10, 0.78) 0%, rgba(5, 11, 10, 0.38) 36%, rgba(5, 11, 10, 0.2) 62%, rgba(5, 11, 10, 0.74) 100%),
    linear-gradient(180deg, rgba(5, 11, 10, 0.18), rgba(5, 11, 10, 0.72));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(330px, 0.9fr) minmax(420px, 1fr) auto;
  gap: 18px;
  align-items: end;
  min-height: 360px;
  padding: 28px;
}

.hero-copy {
  align-self: center;
  max-width: 460px;
}

.hero-kicker {
  margin: 0 0 8px;
  color: #8af7cd;
  font-size: 13px;
  font-weight: 800;
}

.hero-copy h2 {
  margin: 0;
  color: #ffffff;
  font-size: 46px;
  line-height: 1.05;
}

.hero-copy p:last-child {
  margin-top: 12px;
  color: #c4d6cf;
  font-size: 15px;
  line-height: 1.7;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(112px, 1fr));
  gap: 10px;
}

.hero-metrics div,
.hero-status {
  border: 1px solid rgba(145, 194, 176, 0.25);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(20, 36, 30, 0.78), rgba(9, 20, 17, 0.86));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 34px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.hero-metrics div {
  min-width: 0;
  padding: 14px 15px;
}

.hero-metrics span,
.hero-status span {
  display: block;
  color: #8fa79f;
  font-size: 12px;
}

.hero-metrics strong {
  display: block;
  margin-top: 8px;
  color: #ffffff;
  font-size: 30px;
  line-height: 1;
}

.hero-status {
  display: grid;
  gap: 7px;
  align-self: end;
  min-width: 160px;
  padding: 14px 16px;
}

.hero-status b {
  color: #f4fff8;
  font-size: 14px;
}

.kpi,
.map-panel,
.side-panel,
.detail-panel,
.insight-panel,
.notice,
.charts-panel,
.model-panel {
  border-color: rgba(119, 163, 148, 0.24);
  background:
    linear-gradient(180deg, rgba(19, 34, 29, 0.94), rgba(10, 19, 17, 0.94));
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(12px);
}

.kpi {
  position: relative;
  overflow: hidden;
}

.kpi::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, rgba(52, 211, 159, 0.68), rgba(229, 184, 63, 0.48), rgba(229, 75, 75, 0.36));
  opacity: 0.68;
}

.kpi span,
.kpi small,
.province-stats span,
.metric-grid span,
.component-list span {
  color: var(--muted);
}

.kpi strong,
.province-stats strong,
.metric-grid strong,
.rank-item strong {
  color: #ffffff;
}

.drill-trail,
.province-stats div,
.metric-grid div,
.diagnosis-card,
.chart-box,
.formula-strip span,
.theory-card,
.rank-item {
  border-color: rgba(119, 163, 148, 0.22);
  background: rgba(11, 23, 20, 0.74);
}

.drill-trail {
  color: #9ff5cc;
}

.map-wrap {
  background:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(180deg, #0c1816 0%, #0f1b16 100%);
  background-size: 38px 38px, 38px 38px, 100% 100%;
  border-color: rgba(122, 177, 158, 0.26);
}

#chinaMap,
.leaflet-container {
  background: #0d1916;
}

.leaflet-control-zoom {
  border-color: rgba(122, 177, 158, 0.26) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28) !important;
}

.leaflet-control-zoom a {
  background: #0f1c18 !important;
  color: #eaf8f1 !important;
  border-color: rgba(122, 177, 158, 0.2) !important;
}

.gis-tooltip,
.map-tooltip {
  background: rgba(5, 12, 10, 0.96) !important;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.36) !important;
}

.rank-item:hover {
  border-color: rgba(94, 235, 179, 0.42);
  background: rgba(22, 44, 36, 0.84);
}

.rank-item.active {
  border-color: rgba(94, 235, 179, 0.75);
  box-shadow:
    inset 3px 0 0 var(--accent),
    0 10px 24px rgba(31, 201, 143, 0.08);
}

.rank-item small,
.diagnosis-card p,
.diagnosis-empty,
.theory-card p,
td:first-child span {
  color: var(--muted);
}

.diagnosis-foot span {
  background: rgba(20, 35, 30, 0.86);
  color: #b7cbc3;
}

.diagnosis-bars i,
.bar,
.bar-bg {
  background: rgba(135, 164, 154, 0.18);
  fill: rgba(135, 164, 154, 0.18);
}

.chart-axis,
.radar-axis {
  stroke: rgba(158, 184, 176, 0.42);
}

.chart-grid-line,
.radar-ring {
  stroke: rgba(158, 184, 176, 0.15);
}

.trend-line,
.radar-line {
  stroke: #5ee9b5;
}

.trend-dot {
  fill: #0d1815;
  stroke: #5ee9b5;
}

.trend-dot.active {
  fill: #5ee9b5;
}

.chart-label,
.chart-value,
.chart-note,
.donut-number,
.empty-chart {
  fill: #f1fff6;
}

.chart-tick,
.donut-label {
  fill: #9cafaa;
}

.radar-fill {
  fill: rgba(94, 233, 181, 0.2);
}

.flow-link {
  stroke: rgba(155, 185, 174, 0.55);
}

.table-wrap {
  border-color: rgba(119, 163, 148, 0.22);
}

th {
  background: #101d18;
  color: #adc2ba;
}

th,
td {
  border-color: rgba(119, 163, 148, 0.17);
}

tbody tr:hover,
.active-row {
  background: rgba(35, 76, 61, 0.32);
}

.score-ring {
  background:
    radial-gradient(circle at center, rgba(13, 24, 20, 0.96) 57%, transparent 58%),
    conic-gradient(var(--score-color) calc(var(--score) * 1%), rgba(137, 165, 154, 0.2) 0);
}

.reason-box span {
  border-color: rgba(229, 75, 75, 0.28);
  background: rgba(91, 31, 31, 0.36);
  color: #ffb4a9;
}

.formula-strip span {
  color: #a8f5cf;
}

@media (max-width: 1200px) {
  .hero-3d {
    min-height: 520px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    align-content: end;
    min-height: 520px;
    padding: 22px;
  }

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

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

@media (max-width: 720px) {
  .hero-3d {
    min-height: 560px;
  }

  .hero-inner {
    min-height: 560px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }
}

/* Light relief-map theme override */
:root {
  color-scheme: light;
  --bg: #edf3f2;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-soft: #f7faf9;
  --ink: #172522;
  --muted: #61736e;
  --line: #d5e0dd;
  --accent: #147a6c;
  --green: #10866f;
  --yellow: #c49a1b;
  --orange: #c96f05;
  --red: #c83b32;
  --shadow: 0 18px 46px rgba(36, 63, 58, 0.12);
}

body {
  background:
    linear-gradient(rgba(22, 54, 48, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 54, 48, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, #f7faf9 0%, #eaf2f0 48%, #f3f6f4 100%);
  background-size: 36px 36px, 36px 36px, 100% 100%;
  color: var(--ink);
}

.topbar {
  border-color: rgba(24, 89, 78, 0.14);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 42px rgba(34, 61, 56, 0.1);
}

.eyebrow {
  color: var(--accent);
}

h1,
h2 {
  color: var(--ink);
}

.topbar p,
.panel-head p {
  color: var(--muted);
}

.meta-strip span,
.ghost-button,
.risk-pill,
.year-control,
.filters input,
.filters select {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
}

.ghost-button {
  color: var(--accent);
}

.ghost-button:hover:not(:disabled) {
  border-color: rgba(20, 122, 108, 0.38);
  background: #edf8f5;
  color: #0c5f54;
}

.ghost-button:disabled {
  background: #eef3f2;
  color: #9aaaa6;
}

.year-control select,
.filters input,
.filters select {
  color: var(--ink);
}

.filters input::placeholder {
  color: #8a9b96;
}

.hero-3d {
  min-height: 430px;
  border-color: rgba(39, 96, 86, 0.18);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.66) 38%, rgba(234, 243, 240, 0.4) 100%),
    #f7fbfa;
  box-shadow:
    0 24px 68px rgba(34, 62, 57, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.hero-3d::before {
  background:
    linear-gradient(90deg, rgba(20, 87, 76, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(20, 87, 76, 0.055) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.85));
}

.hero-3d::after {
  background: linear-gradient(90deg, transparent, rgba(20, 122, 108, 0.48), rgba(201, 111, 5, 0.34), transparent);
  box-shadow: 0 -12px 34px rgba(20, 122, 108, 0.16);
}

.hero-scrim {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 255, 255, 0.62) 28%, rgba(255, 255, 255, 0.08) 58%, rgba(255, 255, 255, 0.28) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(240, 248, 245, 0.72));
}

.hero-inner {
  grid-template-columns: minmax(330px, 0.78fr) minmax(500px, 1.18fr) auto;
  min-height: 430px;
}

.hero-kicker {
  color: var(--accent);
}

.hero-copy h2 {
  color: #12231f;
}

.hero-copy p:last-child {
  color: #50645f;
}

.hero-metrics div,
.hero-status {
  border-color: rgba(37, 97, 86, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 250, 249, 0.88));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 16px 34px rgba(34, 62, 57, 0.12);
}

.hero-metrics span,
.hero-status span {
  color: #637772;
}

.hero-metrics strong,
.hero-status b {
  color: #152822;
}

.kpi,
.map-panel,
.side-panel,
.detail-panel,
.insight-panel,
.notice,
.charts-panel,
.model-panel {
  border-color: rgba(37, 97, 86, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 250, 0.95));
  box-shadow:
    0 18px 46px rgba(35, 61, 56, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.kpi::after {
  background: linear-gradient(90deg, rgba(20, 122, 108, 0.65), rgba(196, 154, 27, 0.5), rgba(200, 59, 50, 0.38));
}

.kpi strong,
.province-stats strong,
.metric-grid strong,
.rank-item strong {
  color: var(--ink);
}

.kpi span,
.kpi small,
.province-stats span,
.metric-grid span,
.component-list span {
  color: var(--muted);
}

.drill-trail,
.province-stats div,
.metric-grid div,
.diagnosis-card,
.chart-box,
.formula-strip span,
.theory-card,
.rank-item {
  border-color: var(--line);
  background: #f8fbfa;
}

.drill-trail {
  color: var(--accent);
}

.map-wrap {
  background:
    linear-gradient(rgba(22, 85, 75, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 85, 75, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, #fbfdfc 0%, #eef5f3 100%);
  background-size: 38px 38px, 38px 38px, 100% 100%;
  border-color: var(--line);
}

#chinaMap,
.leaflet-container {
  background: #eef5f3;
}

.leaflet-control-zoom {
  border-color: var(--line) !important;
  box-shadow: 0 12px 28px rgba(34, 62, 57, 0.14) !important;
}

.leaflet-control-zoom a {
  background: #ffffff !important;
  color: var(--ink) !important;
  border-color: var(--line) !important;
}

.gis-tooltip,
.map-tooltip {
  background: rgba(22, 37, 34, 0.94) !important;
  box-shadow: 0 18px 36px rgba(24, 43, 39, 0.22) !important;
}

.rank-item:hover {
  border-color: rgba(20, 122, 108, 0.32);
  background: #f0f8f5;
}

.rank-item.active {
  border-color: rgba(20, 122, 108, 0.52);
  box-shadow:
    inset 3px 0 0 var(--accent),
    0 10px 24px rgba(20, 122, 108, 0.08);
}

.rank-item small,
.diagnosis-card p,
.diagnosis-empty,
.theory-card p,
td:first-child span {
  color: var(--muted);
}

.diagnosis-foot span {
  background: #ffffff;
  color: #61736e;
}

.diagnosis-bars i,
.bar,
.bar-bg {
  background: #e1ebe8;
  fill: #e1ebe8;
}

.chart-axis,
.radar-axis {
  stroke: #aab8be;
}

.chart-grid-line,
.radar-ring {
  stroke: #dce5e8;
}

.trend-line,
.radar-line {
  stroke: var(--accent);
}

.trend-dot {
  fill: #ffffff;
  stroke: var(--accent);
}

.trend-dot.active {
  fill: var(--accent);
}

.chart-label,
.chart-value,
.chart-note,
.donut-number,
.empty-chart {
  fill: var(--ink);
}

.chart-tick,
.donut-label {
  fill: var(--muted);
}

.radar-fill {
  fill: rgba(20, 122, 108, 0.18);
}

.flow-link {
  stroke: #91a3aa;
}

.table-wrap {
  border-color: var(--line);
}

th {
  background: #edf3f4;
  color: var(--muted);
}

th,
td {
  border-color: var(--line);
}

tbody tr:hover,
.active-row {
  background: #f3f8f8;
}

.score-ring {
  background:
    radial-gradient(circle at center, #ffffff 57%, transparent 58%),
    conic-gradient(var(--score-color) calc(var(--score) * 1%), #e2e8ea 0);
}

.reason-box span {
  border-color: #efd4d1;
  background: #f6eeee;
  color: #8d2d27;
}

.formula-strip span {
  color: var(--accent);
}

@media (max-width: 1200px) {
  .hero-3d {
    min-height: 560px;
  }

  .hero-inner {
    min-height: 560px;
  }
}

.risk-map-3d {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(rgba(22, 85, 75, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 85, 75, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.96), rgba(231, 241, 238, 0.92) 62%, rgba(222, 235, 231, 0.84));
  background-size: 40px 40px, 40px 40px, 100% 100%;
}

.risk-map-3d-canvas,
.risk-map-3d-labels {
  position: absolute;
  inset: 0;
}

.risk-map-3d-canvas {
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
}

.risk-map-3d-labels {
  z-index: 2;
  pointer-events: none;
}

.risk-map-3d-label {
  position: absolute;
  min-width: 38px;
  max-width: 92px;
  padding: 2px 4px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.56),
    0 -1px 2px rgba(0, 0, 0, 0.32),
    1px 0 2px rgba(0, 0, 0, 0.32),
    -1px 0 2px rgba(0, 0, 0, 0.32);
  transform-origin: center;
}

.risk-map-3d-tooltip {
  position: absolute;
  z-index: 4;
  width: 214px;
  padding: 10px 11px;
  border-radius: 7px;
  color: #ffffff;
  background: rgba(22, 37, 34, 0.94);
  box-shadow: 0 18px 36px rgba(24, 43, 39, 0.22);
  font-size: 12px;
  line-height: 1.6;
  pointer-events: none;
}

.risk-map-3d-tooltip strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.risk-map-3d-controls {
  position: absolute;
  z-index: 5;
  top: 16px;
  left: 16px;
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(34, 62, 57, 0.14);
}

.risk-map-3d-controls button {
  width: 34px;
  height: 34px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.risk-map-3d-controls button:last-child {
  border-bottom: 0;
}

.risk-map-3d-controls button:hover {
  background: #edf8f5;
  color: var(--accent);
}

/* Refined flat-dashboard finish */
:root {
  --bg: #eef4f2;
  --surface: rgba(255, 255, 255, 0.96);
  --surface-soft: #f7fbfa;
  --ink: #142521;
  --muted: #63766f;
  --line: #d7e2df;
  --accent: #087d70;
  --green: #11856e;
  --yellow: #c79a1c;
  --orange: #d47408;
  --red: #c93d35;
  --shadow: 0 18px 44px rgba(35, 61, 56, 0.12);
}

body {
  background:
    linear-gradient(rgba(15, 87, 74, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 87, 74, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 18% 6%, rgba(255, 255, 255, 0.95), transparent 34%),
    linear-gradient(135deg, #f8fbfa 0%, #e8f1ee 52%, #f3f6f3 100%);
  background-size: 36px 36px, 36px 36px, 100% 100%, 100% 100%;
}

.app-shell {
  width: min(1600px, calc(100vw - 40px));
  padding-top: 18px;
}

.topbar {
  min-height: 86px;
  padding: 16px 18px;
  border-color: rgba(32, 92, 82, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(250, 253, 252, 0.92));
  box-shadow:
    0 18px 46px rgba(30, 57, 52, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.eyebrow {
  margin-bottom: 7px;
  color: #0b7f71;
  letter-spacing: 0.02em;
}

h1 {
  font-size: 31px;
  letter-spacing: 0;
}

.meta-strip span,
.ghost-button,
.year-control,
.filters input,
.filters select {
  border-color: rgba(32, 92, 82, 0.16);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.hero-3d {
  min-height: 236px;
  margin-bottom: 14px;
  border-color: rgba(32, 92, 82, 0.15);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.88) 48%, rgba(235, 244, 241, 0.82) 100%),
    radial-gradient(circle at 72% 32%, rgba(8, 125, 112, 0.12), transparent 30%);
  box-shadow:
    0 24px 58px rgba(32, 61, 56, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.hero-3d::before {
  background:
    linear-gradient(90deg, rgba(8, 125, 112, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(8, 125, 112, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.64));
}

.hero-inner {
  grid-template-columns: minmax(360px, 1fr) minmax(420px, 1.25fr) 180px;
  align-items: center;
  min-height: 236px;
  padding: 24px 28px;
}

.hero-copy h2 {
  font-size: 40px;
  color: #10231f;
}

.hero-copy p:last-child {
  max-width: 560px;
  color: #536862;
}

.hero-metrics {
  align-self: center;
}

.hero-metrics div,
.hero-status {
  border-color: rgba(32, 92, 82, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 251, 250, 0.92));
  box-shadow:
    0 16px 34px rgba(35, 61, 56, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.hero-metrics strong {
  font-size: 32px;
}

.kpi,
.map-panel,
.side-panel,
.detail-panel,
.insight-panel,
.indicator-panel,
.charts-panel,
.model-panel {
  border-color: rgba(32, 92, 82, 0.15);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(249, 252, 251, 0.96));
  box-shadow:
    0 18px 42px rgba(34, 61, 56, 0.105),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.kpi {
  padding: 16px 17px;
}

.kpi strong {
  font-size: 30px;
}

.panel-head {
  padding-bottom: 2px;
}

.map-wrap {
  border-color: rgba(32, 92, 82, 0.16);
  background:
    linear-gradient(rgba(8, 125, 112, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 125, 112, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, #fbfdfc 0%, #edf5f2 100%);
  background-size: 40px 40px, 40px 40px, 100% 100%;
}

#chinaMap,
.leaflet-container {
  background: #edf5f2;
}

.leaflet-pane,
.leaflet-map-pane {
  z-index: 1;
}

.leaflet-control-zoom {
  border-color: rgba(32, 92, 82, 0.16) !important;
  box-shadow: 0 14px 28px rgba(35, 61, 56, 0.13) !important;
}

.leaflet-control-zoom a {
  background: rgba(255, 255, 255, 0.96) !important;
}

.province-label {
  font-weight: 900;
}

.chart-box,
.province-stats div,
.metric-grid div,
.diagnosis-card,
.rank-item,
.formula-strip span,
.theory-card {
  border-color: rgba(32, 92, 82, 0.13);
  background:
    linear-gradient(180deg, #fbfdfc, #f6faf8);
}

.chart-box {
  min-height: 264px;
}

.chart-title,
.section-title {
  color: #12231f;
}

.rank-item:hover,
tbody tr:hover,
.active-row {
  background: #eef8f5;
}

.table-wrap {
  border-color: rgba(32, 92, 82, 0.14);
}

th {
  background: #eef5f3;
}

.risk-map-3d {
  display: none;
}

@media (max-width: 1200px) {
  .hero-3d,
  .hero-inner {
    min-height: 0;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 22px;
  }
}

/* Government-service portal finish */
:root {
  --gov-blue: #0b5cad;
  --gov-blue-dark: #074986;
  --gov-blue-soft: #eaf4ff;
  --gov-red: #d33131;
  --bg: #f3f6fb;
  --surface: #ffffff;
  --surface-soft: #f7faff;
  --ink: #17233d;
  --muted: #66758c;
  --line: #dbe5f2;
  --accent: var(--gov-blue);
  --green: #12805c;
  --yellow: #c68b00;
  --orange: #d66a00;
  --red: #cc3030;
  --shadow: 0 10px 28px rgba(24, 58, 104, 0.1);
}

body {
  background:
    linear-gradient(180deg, #eaf3ff 0, #f3f6fb 260px),
    #f3f6fb;
  color: var(--ink);
}

.app-shell {
  width: min(1640px, calc(100vw - 36px));
  padding-top: 14px;
}

.topbar {
  position: relative;
  min-height: 78px;
  padding: 15px 18px 15px 20px;
  border: 0;
  border-radius: 6px;
  background:
    linear-gradient(90deg, var(--gov-blue-dark), var(--gov-blue) 56%, #1673c7);
  box-shadow: 0 14px 34px rgba(7, 73, 134, 0.2);
}

.topbar::after {
  position: absolute;
  right: 18px;
  bottom: 0;
  left: 18px;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--gov-red), #f7c948 48%, rgba(255, 255, 255, 0.76));
}

.eyebrow,
.topbar p,
.topbar h1 {
  color: #ffffff;
}

.topbar h1 span + span::before {
  content: "";
}

.eyebrow {
  margin-bottom: 5px;
  font-size: 12px;
  opacity: 0.86;
}

h1 {
  font-size: 28px;
  font-weight: 900;
}

h2 {
  color: #14213d;
}

.meta-strip span {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  box-shadow: none;
}

.hero-3d {
  min-height: 178px;
  border: 1px solid #d8e6f6;
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.94)),
    linear-gradient(135deg, rgba(11, 92, 173, 0.12), rgba(211, 49, 49, 0.06));
  box-shadow: var(--shadow);
}

.hero-3d::before {
  background:
    linear-gradient(90deg, rgba(11, 92, 173, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(11, 92, 173, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
}

.hero-3d::after {
  height: 3px;
  background: linear-gradient(90deg, var(--gov-red), #f3b61f, var(--gov-blue), transparent);
  box-shadow: none;
}

.hero-inner {
  grid-template-columns: minmax(340px, 1fr) minmax(420px, 1.15fr) 180px;
  min-height: 178px;
  padding: 20px 24px;
}

.hero-kicker {
  color: var(--gov-red);
  font-size: 12px;
}

.hero-copy h2 {
  color: #122448;
  font-size: 34px;
}

.hero-copy p:last-child {
  color: #5c6f88;
  font-size: 14px;
}

.hero-metrics div,
.hero-status,
.kpi,
.map-panel,
.side-panel,
.detail-panel,
.insight-panel,
.charts-panel,
.model-panel,
.notice {
  border: 1px solid #dbe5f2;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.hero-metrics div,
.hero-status {
  background: linear-gradient(180deg, #ffffff, #f3f8ff);
}

.hero-metrics strong,
.hero-status b,
.kpi strong,
.province-stats strong,
.metric-grid strong,
.rank-item strong {
  color: #132446;
}

.hero-metrics span,
.hero-status span,
.kpi span,
.kpi small,
.province-stats span,
.metric-grid span,
.component-list span {
  color: var(--muted);
}

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

.kpi {
  position: relative;
  padding: 13px 15px;
  overflow: hidden;
}

.kpi::after {
  height: 3px;
  background: linear-gradient(90deg, var(--gov-blue), var(--gov-red));
}

.kpi strong {
  font-size: 26px;
}

.panel-head {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #edf2f8;
}

.panel-head p {
  color: var(--muted);
}

.ghost-button,
.year-control,
.filters input,
.filters select {
  border-color: #cddbeb;
  border-radius: 4px;
  background: #ffffff;
  color: #20446f;
  box-shadow: none;
}

.ghost-button {
  color: var(--gov-blue);
}

.ghost-button:hover:not(:disabled),
.risk-map-3d-controls button:hover {
  border-color: #94bae5;
  background: var(--gov-blue-soft);
  color: var(--gov-blue-dark);
  transform: none;
}

.drill-trail {
  border-color: #d4e2f0;
  border-radius: 4px;
  background: #f1f7ff;
  color: var(--gov-blue);
}

.map-wrap {
  height: 610px;
  border-color: #d8e6f6;
  border-radius: 6px;
  background:
    linear-gradient(rgba(11, 92, 173, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 92, 173, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, #fbfdff, #eef6ff);
  background-size: 40px 40px, 40px 40px, 100% 100%;
}

#chinaMap,
.leaflet-container {
  background: #eef6ff;
}

.gis-tooltip,
.map-tooltip,
.risk-map-3d-tooltip {
  background: rgba(15, 38, 70, 0.94) !important;
}

.legend {
  padding-top: 2px;
}

.province-stats,
.city-debt-grid {
  gap: 8px;
}

.province-stats div,
.metric-grid div,
.chart-box,
.diagnosis-card,
.rank-item,
.formula-strip span,
.theory-card,
.city-debt-panel,
.case-card {
  border: 1px solid #dce8f5;
  border-radius: 5px;
  background: #f8fbff;
}

.city-debt-panel {
  display: grid;
  gap: 9px;
  padding: 10px;
}

.ai-prevention-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dce8f5;
  border-radius: 5px;
  background: linear-gradient(180deg, #f8fbff, #ffffff);
}

.ai-prevention-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ai-prevention-head strong {
  color: #132446;
  font-size: 15px;
}

.ai-prevention-head span {
  color: var(--gov-blue);
  font-size: 12px;
  font-weight: 800;
}

.ai-signal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ai-signal-list i {
  padding: 5px 7px;
  border-radius: 3px;
  background: #fff3f3;
  color: #9e2929;
  font-size: 12px;
  font-style: normal;
}

.ai-prevention-card ol {
  margin: 0;
  padding-left: 20px;
  color: #43536b;
  font-size: 12px;
  line-height: 1.75;
}

.ai-prevention-card small {
  color: var(--muted);
  font-size: 12px;
}

.city-debt-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 8px;
  align-items: end;
}

.city-debt-head span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
}

.city-debt-head strong {
  color: #132446;
  font-size: 16px;
}

.city-debt-head b {
  font-size: 24px;
  line-height: 1;
}

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

.city-rank-panel,
.city-exit-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.city-debt-grid div {
  min-width: 0;
  padding: 8px;
  border: 1px solid #e3edf8;
  border-radius: 4px;
  background: #ffffff;
}

.city-rank-panel div,
.city-exit-panel div {
  min-width: 0;
  padding: 8px;
  border: 1px solid #e3edf8;
  border-radius: 4px;
  background: #ffffff;
}

.city-debt-grid span,
.city-rank-panel span,
.city-exit-panel span,
.empty-text,
.case-list small {
  color: var(--muted);
  font-size: 12px;
}

.city-debt-grid strong {
  display: block;
  margin-top: 5px;
  color: #132446;
  font-size: 15px;
}

.city-rank-panel strong,
.city-exit-panel strong {
  display: block;
  margin-top: 5px;
  color: #132446;
  font-size: 14px;
  line-height: 1.25;
}

.city-debt-components,
.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.city-debt-components span,
.case-tags i {
  padding: 4px 6px;
  border-radius: 3px;
  background: #eaf4ff;
  color: #1d5f9f;
  font-size: 11px;
  font-style: normal;
}

.case-list {
  display: grid;
  gap: 8px;
}

.case-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-left: 3px solid var(--gov-red);
  background: #fff7f7;
}

.case-summary strong {
  color: var(--gov-red);
  font-size: 20px;
}

.case-summary span {
  color: #6c5360;
  font-size: 12px;
}

.case-card {
  display: grid;
  gap: 7px;
  padding: 10px;
}

.case-card > div:first-child {
  display: grid;
  gap: 4px;
}

.case-card b {
  color: #132446;
  font-size: 13px;
  line-height: 1.45;
}

.case-card span,
.case-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.case-card > strong {
  color: var(--gov-red);
  font-size: 17px;
}

.indicator-panel {
  margin-top: 14px;
}

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

.indicator-group {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #dce8f5;
  border-radius: 5px;
  background: #f8fbff;
}

.indicator-group > div:first-child {
  display: grid;
  gap: 4px;
}

.indicator-group strong {
  color: #132446;
  font-size: 14px;
}

.indicator-group span {
  color: var(--muted);
  font-size: 12px;
}

.indicator-group dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

.indicator-group dl div {
  display: grid;
  grid-template-columns: minmax(94px, 0.72fr) minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  padding: 6px 0;
  border-top: 1px solid #e7eef7;
}

.indicator-group dt {
  color: #66758c;
  font-size: 12px;
}

.indicator-group dd {
  min-width: 0;
  margin: 0;
  color: #162744;
  font-size: 12px;
  font-weight: 800;
  text-align: right;
  overflow-wrap: anywhere;
}

.diagnosis-card {
  background: linear-gradient(180deg, #f8fbff, #ffffff);
}

.rank-item.active {
  border-color: #8db8e5;
  box-shadow: inset 3px 0 0 var(--gov-blue);
}

.map-panel-head {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(540px, 1.28fr);
  align-items: start;
  gap: 18px;
}

.workspace {
  align-items: start;
}

.map-panel {
  align-self: start;
}

.map-actions {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) auto;
  align-items: start;
  justify-content: stretch;
  gap: 10px 12px;
  width: 100%;
}

.map-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 7px;
  min-width: 0;
  max-width: none;
  width: 100%;
}

.map-search-input {
  height: 40px;
  border-color: #cfe0f2;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  color: #14233d;
  font-size: 13px;
  font-weight: 650;
}

.search-button,
.map-control-cluster .ghost-button,
.map-control-cluster .year-control {
  height: 40px;
}

.search-button {
  min-width: 58px;
  background: #f2f7ff;
  color: var(--gov-blue);
}

#mapSearchStatus {
  grid-column: 1 / -1;
  display: block;
  min-width: 0;
  min-height: 26px;
  padding: 5px 9px;
  border: 1px solid #d9e8f8;
  border-radius: 6px;
  background: #f4f9ff;
  color: #1d5f9f;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#mapSearchStatus:empty {
  display: none;
}

.map-control-cluster {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: end;
  align-items: start;
}

.map-control-cluster #backLevel {
  justify-self: auto;
}

.map-control-cluster .year-control {
  min-width: 108px;
  justify-content: center;
  border-color: #cfe0f2;
  background: #ffffff;
}

.map-wrap {
  height: clamp(480px, 42vw, 540px);
}

.table-wrap {
  border-color: #dce8f5;
  border-radius: 6px;
}

th {
  background: #f0f6fd;
  color: #50647e;
}

tbody tr:hover,
.active-row {
  background: #f1f7ff;
}

.risk-pill {
  color: #ffffff;
}

.reason-box span {
  border-color: #f2d0d0;
  background: #fff3f3;
  color: #9e2929;
}

@media (max-width: 1200px) {
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .map-panel-head,
  .map-actions {
    grid-template-columns: 1fr;
  }

  .map-control-cluster {
    justify-content: start;
    flex-wrap: wrap;
  }

  .map-control-cluster #backLevel {
    justify-self: start;
  }

  .indicator-matrix {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .app-shell {
    width: calc(100vw - 20px);
  }

  .topbar {
    align-items: stretch;
    gap: 12px;
    padding: 13px 14px 15px;
  }

  h1 {
    max-width: 100%;
    font-size: 22px;
    line-height: 1.25;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .eyebrow {
    font-size: 11px;
  }

  .meta-strip {
    justify-content: flex-start;
  }

  .meta-strip span {
    padding: 6px 8px;
    font-size: 11px;
  }

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

  .hero-inner,
  .hero-copy,
  .panel-head,
  .map-actions,
  .filters {
    min-width: 0;
  }

  .map-search {
    flex-basis: 100%;
    max-width: none;
    width: 100%;
  }

  .map-search {
    grid-template-columns: 1fr;
  }

  .search-button {
    width: 100%;
    min-width: 0;
  }

  .map-control-cluster {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .map-control-cluster #backLevel {
    grid-column: 1 / -1;
  }

  .map-control-cluster .year-control,
  .map-control-cluster .ghost-button {
    width: 100%;
    justify-content: center;
  }

  .map-wrap {
    height: 500px;
  }

  .kpi-grid,
  .city-debt-grid {
    grid-template-columns: 1fr;
  }

  .city-rank-panel,
  .city-exit-panel {
    grid-template-columns: 1fr;
  }

  .filters input {
    width: 100%;
  }
}

.workspace,
.analysis-grid {
  align-items: start;
}

.side-panel,
.insight-panel {
  align-self: start;
  max-height: min(700px, calc(100vh - 28px));
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.insight-panel {
  max-height: min(680px, calc(100vh - 28px));
}

.side-panel::-webkit-scrollbar,
.insight-panel::-webkit-scrollbar {
  width: 8px;
}

.side-panel::-webkit-scrollbar-thumb,
.insight-panel::-webkit-scrollbar-thumb {
  background: #c8d8ea;
  border-radius: 999px;
}

.side-panel::-webkit-scrollbar-track,
.insight-panel::-webkit-scrollbar-track {
  background: #f3f7fc;
}

.map-wrap {
  height: clamp(440px, 36vw, 520px);
}

.province-label {
  width: 52px;
  height: 16px;
  font-size: 11px;
  line-height: 16px;
}

@media (max-width: 1200px) {
  .side-panel,
  .insight-panel {
    max-height: none;
    overflow-y: visible;
  }
}

@media (max-width: 720px) {
  .map-wrap {
    height: 500px;
  }
}

body {
  background:
    linear-gradient(180deg, #e7f1fc 0, #f8fbfe 360px, #eef4f9 100%);
}

.topbar {
  position: relative;
  top: auto;
  z-index: 30;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background:
    linear-gradient(135deg, #0757a6 0%, #1167bd 52%, #0b4f92 100%);
  box-shadow: 0 18px 34px rgba(10, 76, 141, 0.22);
}

.topbar::after {
  right: 18px;
  left: 18px;
  height: 4px;
  background: linear-gradient(90deg, #d2333f 0, #f0b429 34%, #1b75d0 68%, #ffffff 100%);
}

.hero-3d {
  min-height: 168px;
  border-color: #d8e6f6;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.88) 48%, rgba(232, 243, 255, 0.78) 100%),
    linear-gradient(90deg, rgba(11, 92, 173, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(11, 92, 173, 0.045) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
  box-shadow: 0 18px 46px rgba(56, 92, 130, 0.12);
}

.hero-copy h2 {
  color: #10264a;
}

.kpi {
  position: relative;
  overflow: hidden;
  border: 1px solid #d8e6f6;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 12px 28px rgba(58, 92, 126, 0.08);
}

.kpi::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  content: "";
  background: linear-gradient(180deg, #0b5cad, #d2333f);
}

.map-panel,
.side-panel,
.charts-panel,
.detail-panel,
.insight-panel,
.indicator-panel,
.model-panel {
  border-color: #d7e6f7;
  box-shadow: 0 18px 42px rgba(42, 82, 123, 0.11);
}

.map-panel h2,
.charts-panel h2,
.detail-panel h2,
.insight-panel h2,
.indicator-panel h2,
.model-panel h2 {
  color: #112a50;
}

.chart-box,
.metric-grid div,
.indicator-group,
.theory-card,
.formula-strip span,
.diagnosis-card,
.rank-item,
.case-card {
  border-color: #dce9f7;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
}

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

.formula-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.algorithm-card {
  position: relative;
  border-color: #b9d6f4;
  background:
    linear-gradient(180deg, #f4f9ff 0%, #ffffff 100%);
}

.algorithm-card::before {
  display: block;
  width: 42px;
  height: 4px;
  margin-bottom: 10px;
  border-radius: 999px;
  content: "";
  background: linear-gradient(90deg, #0b5cad, #d2333f);
}

.ai-model-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ai-model-metrics div {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #dce9f7;
  border-radius: 6px;
  background: #f8fbff;
}

.ai-model-metrics span {
  display: block;
  color: #66758c;
  font-size: 12px;
}

.ai-model-metrics b {
  display: block;
  margin-top: 4px;
  color: #132446;
  font-size: 15px;
}

.ai-prevention-card {
  border-color: #cfe2f6;
  background:
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.score-ring {
  box-shadow: 0 12px 28px rgba(39, 67, 100, 0.12);
}

@media (max-width: 1200px) {
  .model-grid,
  .formula-strip {
    grid-template-columns: 1fr;
  }
}

/* 2026 research-console refresh */
:root {
  --bg: #edf0ef;
  --surface: #ffffff;
  --surface-soft: #f5f7f6;
  --ink: #18211f;
  --muted: #68736f;
  --line: #d8dfdc;
  --accent: #0a6e65;
  --accent-2: #8f2f37;
  --gold: #a87915;
  --shadow: 0 12px 30px rgba(25, 39, 35, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  overflow-x: hidden;
  background: #edf0ef;
}

.brand-block,
.topbar,
.hero-inner,
.hero-copy,
.hero-metrics,
.hero-status,
.workspace,
.map-panel,
.side-panel,
.analysis-grid,
.detail-panel,
.insight-panel,
.charts-panel,
.chart-grid,
.indicator-panel,
.policy-panel,
.model-panel {
  min-width: 0;
  max-width: 100%;
}

.app-shell {
  width: min(1600px, calc(100vw - 32px));
  padding-top: 16px;
}

.topbar {
  align-items: center;
  margin-bottom: 0;
  padding: 22px 24px;
  border: 0;
  border-radius: 8px 8px 0 0;
  background: #172521;
  box-shadow: 0 14px 32px rgba(20, 35, 31, 0.18);
}

.topbar::after {
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #0a8175 0 45%, #c5962c 45% 68%, #a23a42 68% 100%);
}

.brand-block {
  max-width: 960px;
}

.topbar h1 {
  color: #ffffff;
  font-size: 27px;
  font-weight: 750;
}

.topbar .eyebrow {
  color: #7cd0c6;
  letter-spacing: 0;
}

.brand-subtitle {
  margin-top: 7px !important;
  color: #b9c7c2 !important;
  font-size: 12px !important;
}

.topbar .meta-strip span {
  border-color: #40534d;
  background: #21332e;
  color: #d5dfdc;
}

.section-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  gap: 4px;
  align-items: center;
  min-height: 44px;
  margin-bottom: 14px;
  padding: 0 18px;
  border: 1px solid #d8dfdc;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 20px rgba(25, 39, 35, 0.06);
  backdrop-filter: blur(10px);
}

.section-nav a {
  padding: 12px 14px 10px;
  border-bottom: 2px solid transparent;
  color: #53615d;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.section-nav a:hover,
.section-nav a:focus-visible {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

.hero-3d {
  min-height: 190px;
  border: 1px solid #d5ddda;
  background:
    linear-gradient(90deg, rgba(247, 250, 249, 0.98), rgba(247, 250, 249, 0.9)),
    #f7faf9;
  box-shadow: var(--shadow);
}

.hero-copy {
  max-width: 720px;
}

.hero-copy h2 {
  max-width: 690px;
  color: #192622;
  font-size: 32px;
  line-height: 1.2;
}

.hero-copy > p:last-child {
  max-width: 680px;
  color: #5d6a66;
  line-height: 1.7;
}

.hero-kicker,
.section-kicker {
  color: var(--accent) !important;
  font-size: 11px !important;
  font-weight: 800;
}

.hero-metrics div {
  border-color: #d9e2df;
  background: #ffffff;
}

.hero-status {
  border-color: #d8dfdc;
  background: #172521;
}

.hero-status span,
.hero-status b {
  color: #ffffff;
}

.kpi,
.map-panel,
.side-panel,
.charts-panel,
.detail-panel,
.insight-panel,
.indicator-panel,
.model-panel,
.policy-panel {
  border-color: #d8dfdc;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.kpi::before {
  background: var(--accent);
}

.kpi:nth-child(2)::before {
  background: var(--accent-2);
}

.kpi:nth-child(3)::before {
  background: var(--gold);
}

.kpi:nth-child(4)::before {
  background: #3f596f;
}

.map-panel h2,
.charts-panel h2,
.detail-panel h2,
.insight-panel h2,
.indicator-panel h2,
.model-panel h2,
.policy-panel h2 {
  color: #192622;
}

.map-wrap,
#chinaMap,
.leaflet-container {
  background: #eef3f1;
}

.chart-box,
.metric-grid div,
.indicator-group,
.theory-card,
.formula-strip span,
.diagnosis-card,
.rank-item,
.case-card {
  border-color: #dbe2df;
  background: #f8faf9;
}

.algorithm-card {
  border-top: 3px solid var(--accent);
  background: #f7fbfa;
}

.algorithm-card::before {
  display: none;
}

.formula-strip span {
  min-height: 88px;
  padding: 14px;
  line-height: 1.6;
}

.formula-strip b {
  display: block;
  margin-bottom: 5px;
  color: var(--accent);
}

.policy-panel {
  margin-top: 14px;
  padding: 18px;
  border-radius: 8px;
}

.map-policy-panel {
  scroll-margin-top: 54px;
  margin-top: 16px;
  padding: 18px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.map-policy-panel .policy-list {
  max-height: 520px;
}

.policy-head {
  align-items: flex-end;
}

.policy-controls {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 140px 140px;
  gap: 8px;
  width: min(680px, 62%);
}

.policy-controls input,
.policy-controls select {
  min-width: 0;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 10px;
  font-size: 12px;
  outline: 0;
}

.policy-controls input:focus,
.policy-controls select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(10, 110, 101, 0.1);
}

.policy-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.policy-context {
  position: sticky;
  top: 60px;
  padding: 16px;
  border-left: 4px solid var(--accent);
  background: #f1f6f4;
}

.policy-context span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.policy-context strong {
  display: block;
  margin: 5px 0 12px;
  font-size: 20px;
}

.policy-context p {
  color: #5d6a66;
  font-size: 12px;
  line-height: 1.7;
}

.policy-list {
  display: grid;
  max-height: 650px;
  overflow-y: auto;
  border-top: 1px solid var(--line);
}

.policy-item {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 8px;
  border-bottom: 1px solid var(--line);
}

.policy-date {
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 800;
}

.policy-content h3 {
  margin: 7px 0 6px;
  font-size: 15px;
  line-height: 1.5;
}

.policy-content p {
  color: #5c6965;
  font-size: 12px;
  line-height: 1.7;
}

.policy-tags,
.policy-source {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
}

.policy-tags span {
  padding: 3px 6px;
  border: 1px solid #d7e2de;
  border-radius: 4px;
  color: #50605b;
  background: #f5f8f7;
  font-size: 10px;
}

.policy-source {
  justify-content: space-between;
  margin-top: 10px;
  font-size: 11px;
}

.policy-source a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.policy-empty {
  padding: 40px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1200px) {
  .app-shell {
    width: min(100% - 20px, 1000px);
  }

  .topbar,
  .policy-head {
    align-items: flex-start;
  }

  .policy-head {
    flex-direction: column;
  }

  .policy-controls {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .app-shell {
    width: min(100% - 12px, 680px);
    padding-top: 6px;
  }

  .topbar {
    padding: 18px;
  }

  .brand-block {
    width: 100%;
  }

  .topbar h1 {
    width: calc(100vw - 48px);
    max-width: 100%;
    font-size: 19px;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-all;
    white-space: normal;
  }

  .topbar h1 span {
    display: block;
    width: 100%;
  }

  .section-nav {
    overflow-x: auto;
    padding: 0 8px;
  }

  .section-nav a {
    flex: 0 0 auto;
  }

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

  .policy-controls,
  .policy-layout {
    grid-template-columns: 1fr;
  }

  .policy-context {
    position: static;
  }

  .policy-item {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}
